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
+7 -7
View File
@@ -48,14 +48,14 @@ export default {
showInfo: '提示信息',
disabled: '禁用选项',
changeEvent: '监听切换事件',
selectTip: '你切换到了'
selectTip: '你切换到了',
},
'en-US': {
showInfo: 'Show Info',
disabled: 'Disabled',
changeEvent: 'Change Event',
selectTip: 'You select '
}
selectTip: 'You select ',
},
},
data() {
@@ -63,7 +63,7 @@ export default {
activeKey1: 0,
activeKey2: 0,
activeKey3: 0,
activeKey4: 0
activeKey4: 0,
};
},
@@ -71,10 +71,10 @@ export default {
onChange(index) {
this.$notify({
type: 'primary',
message: `${this.$t('selectTip')} ${this.$t('title')}${index + 1}`
message: `${this.$t('selectTip')} ${this.$t('title')}${index + 1}`,
});
}
}
},
},
};
</script>
+4 -4
View File
@@ -7,17 +7,17 @@ export default createComponent({
mixins: [ParentMixin('vanSidebar')],
model: {
prop: 'activeKey'
prop: 'activeKey',
},
props: {
activeKey: {
type: [Number, String],
default: 0
}
default: 0,
},
},
render() {
return <div class={bem()}>{this.slots()}</div>;
}
},
});
+6 -6
View File
@@ -12,8 +12,8 @@ test('click event & change event', () => {
`,
methods: {
onClick,
onChange
}
onChange,
},
});
wrapper.find('.van-sidebar-item').trigger('click');
@@ -32,9 +32,9 @@ test('v-model', () => {
`,
data() {
return {
active: 0
active: 0,
};
}
},
});
wrapper.findAll('.van-sidebar-item').at(1).trigger('click');
@@ -51,9 +51,9 @@ test('disabled prop', () => {
`,
data() {
return {
active: 0
active: 0,
};
}
},
});
wrapper.findAll('.van-sidebar-item').at(1).trigger('click');