docs(Cascader): add demos

This commit is contained in:
chenjiahan
2020-12-20 21:23:50 +08:00
committed by neverland
parent 04d6561315
commit 4c1c786ae6
8 changed files with 255 additions and 14 deletions
+122
View File
@@ -0,0 +1,122 @@
export default [
{
text: 'Zhejiang',
value: '330000',
children: [
{
text: 'Hangzhou',
value: '330100',
children: [
{
text: 'Shangcheng',
value: '330102',
},
{
text: 'Xiacheng',
value: '330103',
},
{
text: 'Jianggan',
value: '330104',
},
],
},
{
text: 'Ningbo',
value: '330200',
children: [
{
text: 'Haishu',
value: '330203',
},
{
text: 'Jiangbei',
value: '330205',
},
{
text: 'Beilun',
value: '330206',
},
],
},
{
text: 'Wenzhou',
value: '330300',
children: [
{
text: 'Lucheng',
value: '330302',
},
{
text: 'Longwan',
value: '330303',
},
{
text: 'Ouhai',
value: '330304',
},
],
},
],
},
{
text: 'Jiangsu',
value: '320000',
children: [
{
text: 'Nanjing',
value: '320100',
children: [
{
text: 'Xuanwu',
value: '320102',
},
{
text: 'Qinghuai',
value: '320104',
},
{
text: 'Jianye',
value: '320105',
},
],
},
{
text: 'Wuxi',
value: '320200',
children: [
{
text: 'Xishan',
value: '320205',
},
{
text: 'Huishan',
value: '320206',
},
{
text: 'Binhu',
value: '320211',
},
],
},
{
text: 'Xuzhou',
value: '320300',
children: [
{
text: 'Gulou',
value: '320302',
},
{
text: 'Yunlong',
value: '320303',
},
{
text: 'Jiawang',
value: '320305',
},
],
},
],
},
];
+3 -1
View File
@@ -44,7 +44,8 @@
</template>
<script>
import zhCNOptions from './area';
import zhCNOptions from './area-zh-CN';
import enUSOptions from './area-en-US';
export default {
i18n: {
@@ -56,6 +57,7 @@ export default {
},
'en-US': {
area: 'Area',
options: enUSOptions,
selectArea: 'Select Area',
customColor: 'Custom Color',
},