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

View File

@@ -61,7 +61,7 @@ export default {
status1: '【城市】物流状态1',
status2: '【城市】物流状态',
status3: '快件已发货',
customStyle: '自定义样式'
customStyle: '自定义样式',
},
'en-US': {
nextStep: 'Next Step',
@@ -74,21 +74,21 @@ export default {
status1: '【City】Status1',
status2: '【City】Status2',
status3: '【City】Status3',
customStyle: 'Custom Style'
}
customStyle: 'Custom Style',
},
},
data() {
return {
active: 1
active: 1,
};
},
methods: {
nextStep() {
this.active = ++this.active % 4;
}
}
},
},
};
</script>

View File

@@ -11,20 +11,20 @@ export default createComponent({
inactiveIcon: String,
active: {
type: Number,
default: 0
default: 0,
},
direction: {
type: String,
default: 'horizontal'
default: 'horizontal',
},
activeColor: {
type: String,
default: GREEN
default: GREEN,
},
activeIcon: {
type: String,
default: 'checked'
}
default: 'checked',
},
},
render() {
@@ -33,5 +33,5 @@ export default createComponent({
<div class={bem('items')}>{this.slots()}</div>
</div>
);
}
},
});

View File

@@ -22,8 +22,8 @@ test('icon slot', () => {
`,
components: {
Steps,
Step
}
Step,
},
});
expect(wrapper).toMatchSnapshot();
});