mirror of
https://github.com/youzan/vant.git
synced 2025-10-21 19:24:16 +00:00
chore: add trailingComma
This commit is contained in:
@@ -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>
|
||||
|
||||
|
@@ -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>
|
||||
);
|
||||
}
|
||||
},
|
||||
});
|
||||
|
@@ -22,8 +22,8 @@ test('icon slot', () => {
|
||||
`,
|
||||
components: {
|
||||
Steps,
|
||||
Step
|
||||
}
|
||||
Step,
|
||||
},
|
||||
});
|
||||
expect(wrapper).toMatchSnapshot();
|
||||
});
|
||||
|
Reference in New Issue
Block a user