docs: remove demo-section

This commit is contained in:
chenjiahan
2020-10-22 16:44:19 +08:00
parent 862c3ec1a4
commit e8244c44e1
69 changed files with 2732 additions and 2980 deletions
+8 -16
View File
@@ -7,22 +7,14 @@
:model-value="value"
:placeholder="t('placeholder')"
@click="showArea = true"
>
<template #extra>
<van-popup
v-model:show="showArea"
round
position="bottom"
teleport="body"
>
<van-area
:area-list="t('areaList')"
@confirm="onConfirm"
@cancel="onCancel"
/>
</van-popup>
</template>
</van-field>
/>
<van-popup v-model:show="showArea" round position="bottom" teleport="body">
<van-area
:area-list="t('areaList')"
@confirm="onConfirm"
@cancel="onCancel"
/>
</van-popup>
</template>
<script>
+7 -10
View File
@@ -7,16 +7,13 @@
:model-value="value"
:placeholder="t('placeholder')"
@click="showCalendar = true"
>
<template #extra>
<van-calendar
v-model:show="showCalendar"
round
teleport="body"
@confirm="onConfirm"
/>
</template>
</van-field>
/>
<van-calendar
v-model:show="showCalendar"
round
teleport="body"
@confirm="onConfirm"
/>
</template>
<script>
+4 -16
View File
@@ -7,22 +7,10 @@
:model-value="value"
:placeholder="t('placeholder')"
@click="showPicker = true"
>
<template #extra>
<van-popup
v-model:show="showPicker"
round
position="bottom"
teleport="body"
>
<van-datetime-picker
type="time"
@confirm="onConfirm"
@cancel="onCancel"
/>
</van-popup>
</template>
</van-field>
/>
<van-popup v-model:show="showPicker" round position="bottom" teleport="body">
<van-datetime-picker type="time" @confirm="onConfirm" @cancel="onCancel" />
</van-popup>
</template>
<script>
+8 -16
View File
@@ -7,22 +7,14 @@
:model-value="value"
:placeholder="t('placeholder')"
@click="showPicker = true"
>
<template #extra>
<van-popup
v-model:show="showPicker"
round
position="bottom"
teleport="body"
>
<van-picker
:columns="t('textColumns')"
@confirm="onConfirm"
@cancel="onCancel"
/>
</van-popup>
</template>
</van-field>
/>
<van-popup v-model:show="showPicker" round position="bottom" teleport="body">
<van-picker
:columns="t('textColumns')"
@confirm="onConfirm"
@cancel="onCancel"
/>
</van-popup>
</template>
<script>
+3 -5
View File
@@ -1,9 +1,7 @@
<template>
<demo-section>
<basic-usage />
<validate-rules />
<field-type />
</demo-section>
<basic-usage />
<validate-rules />
<field-type />
</template>
<script>