diff --git a/packages/nutui-eslint-config/index.js b/packages/nutui-eslint-config/index.js index c8b22d4858..0a4368b9ce 100644 --- a/packages/nutui-eslint-config/index.js +++ b/packages/nutui-eslint-config/index.js @@ -29,13 +29,19 @@ module.exports = { 'no-unused-vars': 'off', '@typescript-eslint/no-unused-vars': 'error', // eslint-plugin-vue + 'vue/v-on-event-hyphenation': [ + 'error', + 'always', + { + autofix: true + } + ], 'vue/no-v-html': 'off', 'vue/first-attribute-linebreak': 'off', 'vue/multi-word-component-names': 'off', 'vue/no-v-text-v-html-on-component': 'off', // will be removed someday 'vue/attributes-order': 'off', - 'vue/attribute-hyphenation': 'off', - 'vue/v-on-event-hyphenation': 'off' + 'vue/attribute-hyphenation': 'off' } }; diff --git a/src/packages/__VUE/addresslist/index.taro.vue b/src/packages/__VUE/addresslist/index.taro.vue index 54ddc3095a..f7658277d8 100644 --- a/src/packages/__VUE/addresslist/index.taro.vue +++ b/src/packages/__VUE/addresslist/index.taro.vue @@ -6,13 +6,13 @@ :item="item" :longPress="longPress" :swipeEdition="swipeEdition" - @delIcon="clickDelIcon" - @editIcon="clickEditIcon" - @clickItem="clickContentItem" - @swipeDel="clickSwipeDel" - @longCopy="clickLongCopy" - @longSet="clickLongSet" - @longDel="clickLongDel" + @del-icon="clickDelIcon" + @edit-icon="clickEditIcon" + @click-item="clickContentItem" + @swipe-del="clickSwipeDel" + @long-copy="clickLongCopy" + @long-set="clickLongSet" + @long-del="clickLongDel" >