chore: prettier source code
This commit is contained in:
@@ -57,7 +57,7 @@ export default {
|
||||
customCount: '自定义数量',
|
||||
readonly: '只读状态',
|
||||
changeEvent: '监听 change 事件',
|
||||
toastContent: value => `当前值:${value}`,
|
||||
toastContent: (value) => `当前值:${value}`,
|
||||
},
|
||||
'en-US': {
|
||||
halfStar: 'Half Star',
|
||||
@@ -67,7 +67,7 @@ export default {
|
||||
customCount: 'Custom Count',
|
||||
readonly: 'Readonly',
|
||||
changeEvent: 'Change Event',
|
||||
toastContent: value => `current value:${value}`,
|
||||
toastContent: (value) => `current value:${value}`,
|
||||
},
|
||||
},
|
||||
|
||||
|
||||
+3
-1
@@ -96,7 +96,9 @@ export default createComponent({
|
||||
|
||||
this.touchStart(event);
|
||||
|
||||
const rects = this.$refs.items.map(item => item.getBoundingClientRect());
|
||||
const rects = this.$refs.items.map((item) =>
|
||||
item.getBoundingClientRect()
|
||||
);
|
||||
const ranges = [];
|
||||
|
||||
rects.forEach((rect, index) => {
|
||||
|
||||
@@ -17,7 +17,7 @@ test('change event', () => {
|
||||
|
||||
const wrapper = mount(Rate, {
|
||||
listeners: {
|
||||
input: value => {
|
||||
input: (value) => {
|
||||
onInput(value);
|
||||
wrapper.setProps({ value });
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user