diff --git a/frontend/.eslintrc.js b/frontend/.eslintrc.js
index 0952760757..3240d4bf56 100644
--- a/frontend/.eslintrc.js
+++ b/frontend/.eslintrc.js
@@ -195,6 +195,9 @@ module.exports = {
'object-curly-spacing': [2, 'always', {
objectsInObjects: false
}],
- 'array-bracket-spacing': [2, 'never']
+ 'array-bracket-spacing': [2, 'never'],
+ "vue/no-use-v-if-with-v-for": ["error", {
+ "allowUsingIterationVar": true
+ }]
}
}
diff --git a/frontend/src/components/DeDrag/index.vue b/frontend/src/components/DeDrag/index.vue
index 51c9a25cd5..9b1ad5959f 100644
--- a/frontend/src/components/DeDrag/index.vue
+++ b/frontend/src/components/DeDrag/index.vue
@@ -20,14 +20,14 @@
@mouseleave="leave"
>
-
+
@@ -282,14 +282,17 @@ export default {
type: String,
default: 'mouseOn'
},
+ // eslint-disable-next-line vue/require-default-prop
element: {
require: true,
type: Object
},
+ // eslint-disable-next-line vue/require-default-prop
defaultStyle: {
require: true,
type: Object
},
+ // eslint-disable-next-line vue/require-default-prop
index: {
require: true,
type: [Number, String]
@@ -299,6 +302,7 @@ export default {
type: Boolean,
default: true
},
+ // eslint-disable-next-line vue/require-default-prop
changeStyle: {
require: true,
type: Object
diff --git a/frontend/src/views/panel/SubjectSetting/PanelStyle/ComponentGap.vue b/frontend/src/views/panel/SubjectSetting/PanelStyle/ComponentGap.vue
index 31753bb155..34dddcece0 100644
--- a/frontend/src/views/panel/SubjectSetting/PanelStyle/ComponentGap.vue
+++ b/frontend/src/views/panel/SubjectSetting/PanelStyle/ComponentGap.vue
@@ -17,6 +17,7 @@