chore: add trailingComma

This commit is contained in:
陈嘉涵
2020-01-19 11:57:09 +08:00
parent e841175fe8
commit 389d68884d
269 changed files with 2706 additions and 2702 deletions
+17 -17
View File
@@ -1,66 +1,66 @@
const group1 = [
{
text: 'Delaware',
id: 1
id: 1,
},
{
text: 'Florida',
id: 2
id: 2,
},
{
text: 'Georqia',
id: 3,
disabled: true
disabled: true,
},
{
text: 'Indiana',
id: 4
}
id: 4,
},
];
const group2 = [
{
text: 'Alabama',
id: 5
id: 5,
},
{
text: 'Kansas',
id: 6
id: 6,
},
{
text: 'Louisiana',
id: 7
id: 7,
},
{
text: 'Texas',
id: 8
}
id: 8,
},
];
const group3 = [
{
text: 'Alabama',
id: 9
id: 9,
},
{
text: 'Kansas',
id: 10
}
id: 10,
},
];
export const enUSData = [
{
text: 'Group 1',
children: group1
children: group1,
},
{
text: 'Group 2',
children: group2
children: group2,
},
{
text: 'Group 3',
disabled: true,
children: group3
}
children: group3,
},
];
+17 -17
View File
@@ -1,65 +1,65 @@
const zhejiang = [
{
text: '杭州',
id: 1
id: 1,
},
{
text: '温州',
id: 2
id: 2,
},
{
text: '宁波',
id: 3,
disabled: true
disabled: true,
},
{
text: '义乌',
id: 4
}
id: 4,
},
];
const jiangsu = [
{
text: '南京',
id: 5
id: 5,
},
{
text: '无锡',
id: 6
id: 6,
},
{
text: '徐州',
id: 7
id: 7,
},
{
text: '苏州',
id: 8
}
id: 8,
},
];
const fujian = [
{
text: '泉州',
id: 9
id: 9,
},
{
text: '厦门',
id: 10
}
id: 10,
},
];
export const zhCNData = [
{
text: '浙江',
children: zhejiang
children: zhejiang,
},
{
text: '江苏',
children: jiangsu
children: jiangsu,
},
{
text: '福建',
disabled: true,
children: fujian
}
children: fujian,
},
];
+6 -6
View File
@@ -44,7 +44,7 @@ export default {
multipleMode: '多选模式',
customContent: '自定义内容',
data: zhCNData,
dataSimple: [{ text: '分组 1' }, { text: '分组 2' }]
dataSimple: [{ text: '分组 1' }, { text: '分组 2' }],
},
'en-US': {
showInfo: 'Show Info',
@@ -52,8 +52,8 @@ export default {
multipleMode: 'Multiple Mode',
customContent: 'Custom Content',
data: enUSData,
dataSimple: [{ text: 'Group 1' }, { text: 'Group 2' }]
}
dataSimple: [{ text: 'Group 1' }, { text: 'Group 2' }],
},
},
data() {
@@ -64,7 +64,7 @@ export default {
activeIndex: 0,
activeIndex2: 0,
activeIndex3: 0,
activeIndex4: 0
activeIndex4: 0,
};
},
@@ -84,7 +84,7 @@ export default {
data[1].info = 5;
return data;
}
}
},
},
};
</script>