diff --git a/babel.config.js b/babel.config.js index 3ecebf1a5..df151586e 100644 --- a/babel.config.js +++ b/babel.config.js @@ -1,3 +1,3 @@ module.exports = { - presets: ["@vue/app"] -}; + presets: ['@vue/app'] +} diff --git a/src/components/AvatarList/Item.vue b/src/components/AvatarList/Item.vue index 26e149ee8..946f3646f 100644 --- a/src/components/AvatarList/Item.vue +++ b/src/components/AvatarList/Item.vue @@ -27,18 +27,18 @@ export default { default: '' } }, - data () { + data() { return { size: this.$parent.size } }, computed: { - avatarSize () { + avatarSize() { return this.size !== 'mini' && this.size || 20 } }, watch: { - '$parent.size' (val) { + '$parent.size'(val) { this.size = val } } diff --git a/src/components/AvatarList/List.vue b/src/components/AvatarList/List.vue index 446ceeb8f..933dbe2bb 100644 --- a/src/components/AvatarList/List.vue +++ b/src/components/AvatarList/List.vue @@ -60,11 +60,11 @@ export default { } } }, - data () { + data() { return {} }, methods: { - getItems (items) { + getItems(items) { const classString = { [`${this.prefixCls}-item`]: true, [`${this.size}`]: true @@ -80,7 +80,7 @@ export default { return itemList } }, - render () { + render() { const { prefixCls, size } = this.$props const classString = { [`${prefixCls}`]: true, diff --git a/src/components/CountDown/CountDown.vue b/src/components/CountDown/CountDown.vue index 575dd4aa7..bb27819bc 100644 --- a/src/components/CountDown/CountDown.vue +++ b/src/components/CountDown/CountDown.vue @@ -6,7 +6,7 @@