docs: remove demo-section
This commit is contained in:
@@ -1,52 +1,48 @@
|
||||
<template>
|
||||
<div>
|
||||
<demo-section>
|
||||
<demo-block :title="t('basicUsage')">
|
||||
<van-swipe-cell>
|
||||
<template #left>
|
||||
<van-button square type="primary" :text="t('select')" />
|
||||
</template>
|
||||
<van-cell :border="false" :title="t('title')" :value="t('content')" />
|
||||
<template #right>
|
||||
<van-button square type="danger" :text="t('delete')" />
|
||||
<van-button square type="primary" :text="t('collect')" />
|
||||
</template>
|
||||
</van-swipe-cell>
|
||||
</demo-block>
|
||||
<demo-block :title="t('basicUsage')">
|
||||
<van-swipe-cell>
|
||||
<template #left>
|
||||
<van-button square type="primary" :text="t('select')" />
|
||||
</template>
|
||||
<van-cell :border="false" :title="t('title')" :value="t('content')" />
|
||||
<template #right>
|
||||
<van-button square type="danger" :text="t('delete')" />
|
||||
<van-button square type="primary" :text="t('collect')" />
|
||||
</template>
|
||||
</van-swipe-cell>
|
||||
</demo-block>
|
||||
|
||||
<demo-block :title="t('customContent')">
|
||||
<van-swipe-cell>
|
||||
<van-card
|
||||
num="2"
|
||||
price="2.00"
|
||||
:desc="t('desc')"
|
||||
:title="t('cardTitle')"
|
||||
:thumb="imageURL"
|
||||
/>
|
||||
<template #right>
|
||||
<van-button
|
||||
square
|
||||
type="danger"
|
||||
class="delete-button"
|
||||
:text="t('delete')"
|
||||
/>
|
||||
</template>
|
||||
</van-swipe-cell>
|
||||
</demo-block>
|
||||
<demo-block :title="t('customContent')">
|
||||
<van-swipe-cell>
|
||||
<van-card
|
||||
num="2"
|
||||
price="2.00"
|
||||
:desc="t('desc')"
|
||||
:title="t('cardTitle')"
|
||||
:thumb="imageURL"
|
||||
/>
|
||||
<template #right>
|
||||
<van-button
|
||||
square
|
||||
type="danger"
|
||||
class="delete-button"
|
||||
:text="t('delete')"
|
||||
/>
|
||||
</template>
|
||||
</van-swipe-cell>
|
||||
</demo-block>
|
||||
|
||||
<demo-block :title="t('beforeClose')">
|
||||
<van-swipe-cell :before-close="beforeClose">
|
||||
<template #left>
|
||||
<van-button square type="primary" :text="t('select')" />
|
||||
</template>
|
||||
<van-cell :border="false" :title="t('title')" :value="t('content')" />
|
||||
<template #right>
|
||||
<van-button square type="danger" :text="t('delete')" />
|
||||
</template>
|
||||
</van-swipe-cell>
|
||||
</demo-block>
|
||||
</demo-section>
|
||||
</div>
|
||||
<demo-block :title="t('beforeClose')">
|
||||
<van-swipe-cell :before-close="beforeClose">
|
||||
<template #left>
|
||||
<van-button square type="primary" :text="t('select')" />
|
||||
</template>
|
||||
<van-cell :border="false" :title="t('title')" :value="t('content')" />
|
||||
<template #right>
|
||||
<van-button square type="danger" :text="t('delete')" />
|
||||
</template>
|
||||
</van-swipe-cell>
|
||||
</demo-block>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
|
||||
Reference in New Issue
Block a user