🎨 add eslint
This commit is contained in:
parent
829a2e4cfc
commit
b0893113b3
88 changed files with 376 additions and 370 deletions
|
@ -50,7 +50,7 @@
|
|||
showItems: [],
|
||||
query: '',
|
||||
showFooter: true
|
||||
}
|
||||
};
|
||||
},
|
||||
computed: {
|
||||
classes () {
|
||||
|
@ -59,7 +59,7 @@
|
|||
{
|
||||
[`${this.prefixCls}-with-footer`]: this.showFooter
|
||||
}
|
||||
]
|
||||
];
|
||||
},
|
||||
bodyClasses () {
|
||||
return [
|
||||
|
@ -68,7 +68,7 @@
|
|||
[`${this.prefixCls}-body-with-search`]: this.filterable,
|
||||
[`${this.prefixCls}-body-with-footer`]: this.showFooter
|
||||
}
|
||||
]
|
||||
];
|
||||
},
|
||||
count () {
|
||||
const validKeysCount = this.validKeysCount;
|
||||
|
@ -88,7 +88,7 @@
|
|||
{
|
||||
[`${this.prefixCls}-content-item-disabled`]: item.disabled
|
||||
}
|
||||
]
|
||||
];
|
||||
},
|
||||
showLabel (item) {
|
||||
return this.renderFormat(item);
|
||||
|
@ -125,5 +125,5 @@
|
|||
this.updateFilteredData();
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
|
|
@ -28,5 +28,5 @@
|
|||
this.$parent.moveTo('right');
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
|
|
@ -29,5 +29,5 @@
|
|||
this.query = '';
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
};
|
||||
</script>
|
||||
|
|
|
@ -47,7 +47,7 @@
|
|||
data: {
|
||||
type: Array,
|
||||
default () {
|
||||
return []
|
||||
return [];
|
||||
}
|
||||
},
|
||||
renderFormat: {
|
||||
|
@ -59,31 +59,31 @@
|
|||
targetKeys: {
|
||||
type: Array,
|
||||
default () {
|
||||
return []
|
||||
return [];
|
||||
}
|
||||
},
|
||||
selectedKeys: {
|
||||
type: Array,
|
||||
default () {
|
||||
return []
|
||||
return [];
|
||||
}
|
||||
},
|
||||
listStyle: {
|
||||
type: Object,
|
||||
default () {
|
||||
return {}
|
||||
return {};
|
||||
}
|
||||
},
|
||||
titles: {
|
||||
type: Array,
|
||||
default () {
|
||||
return ['源列表', '目的列表']
|
||||
return ['源列表', '目的列表'];
|
||||
}
|
||||
},
|
||||
operations: {
|
||||
type: Array,
|
||||
default () {
|
||||
return []
|
||||
return [];
|
||||
}
|
||||
},
|
||||
filterable: {
|
||||
|
@ -113,13 +113,13 @@
|
|||
rightData: [],
|
||||
leftCheckedKeys: [],
|
||||
rightCheckedKeys: []
|
||||
}
|
||||
};
|
||||
},
|
||||
computed: {
|
||||
classes () {
|
||||
return [
|
||||
`${prefixCls}`
|
||||
]
|
||||
];
|
||||
},
|
||||
leftValidKeysCount () {
|
||||
return this.getValidKeys('left').length;
|
||||
|
@ -182,5 +182,5 @@
|
|||
created () {
|
||||
this.splitData(true);
|
||||
}
|
||||
}
|
||||
</script>
|
||||
};
|
||||
</script>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue