feat(Cascader): basic dom struct

This commit is contained in:
chenjiahan
2020-12-20 21:23:50 +08:00
committed by neverland
parent 8180478213
commit 0352f5d9a6
7 changed files with 236 additions and 55 deletions
+7 -2
View File
@@ -1,6 +1,6 @@
<template>
<demo-section>
<demo-block :title="t('basicUsage')">
<demo-block card :title="t('basicUsage')">
<van-field
is-link
readonly
@@ -8,17 +8,22 @@
:placeholder="t('selectArea')"
@click="showBase = true"
/>
<van-cascader :show.sync="showBase" :title="t('selectArea')" />
<van-popup v-model="showBase" round position="bottom">
<van-cascader :title="t('selectArea')" :options="t('options')" />
</van-popup>
</demo-block>
</demo-section>
</template>
<script>
import zhCNOptions from './area';
export default {
i18n: {
'zh-CN': {
area: '地区',
selectArea: '请选择地区',
options: zhCNOptions,
},
'en-US': {
area: 'Area',