chore: add trailingComma
This commit is contained in:
@@ -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>
|
||||
|
||||
|
||||
@@ -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>;
|
||||
}
|
||||
},
|
||||
});
|
||||
|
||||
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user