From 04932ec0f559e632ec9fcb69cf0b99d7f39a44f6 Mon Sep 17 00:00:00 2001 From: pengYYY Date: Wed, 16 Feb 2022 20:22:02 +0800 Subject: [PATCH] fix(eslint): fix eslint globals --- .eslintrc | 4 + package.json | 6 +- src/components/card/Card.vue | 20 +-- src/components/card/index.vue | 2 +- src/components/color/index.vue | 2 +- src/components/result/index.vue | 2 +- src/components/thumbnail/index.vue | 2 +- src/components/trend/index.vue | 2 +- src/layouts/components/Header.vue | 2 +- src/layouts/components/Search.vue | 2 +- src/pages/list/card/components/DialogForm.vue | 131 ++++++++---------- src/pages/login/components/Register.vue | 2 +- 12 files changed, 82 insertions(+), 95 deletions(-) diff --git a/.eslintrc b/.eslintrc index 4c54be6..7467fd5 100644 --- a/.eslintrc +++ b/.eslintrc @@ -11,6 +11,10 @@ "jest": true, "es6": true }, + "globals": { + "defineProps": "readonly", + "defineEmits": "readonly" + }, "plugins": [ "vue", "@typescript-eslint" diff --git a/package.json b/package.json index 26c567b..6b1fcf6 100644 --- a/package.json +++ b/package.json @@ -23,9 +23,9 @@ "nprogress": "^0.2.0", "qrcode.vue": "^3.2.2", "tdesign-icons-vue-next": "^0.0.6", - "tdesign-vue-next": "0.7.0-alpha.0", + "tdesign-vue-next": "^0.8.0", "tvision-color": "^1.3.1", - "vue": "^3.1.5", + "vue": "^3.2.31", "vue-color-kit": "^1.0.5", "vue-router": "^4.0.11", "vue3-clipboard": "^1.0.0", @@ -83,4 +83,4 @@ "git add ." ] } -} \ No newline at end of file +} diff --git a/src/components/card/Card.vue b/src/components/card/Card.vue index a442d52..27ddec9 100644 --- a/src/components/card/Card.vue +++ b/src/components/card/Card.vue @@ -9,21 +9,15 @@ - {{ - product.isSetup ? '已启用' : '已停用' - }} + + {{ product.isSetup ? '已启用' : '已停用' }} + -

- {{ product.name }} -

-

- {{ product.description }} -

+

{{ product.name }}

+

{{ product.description }}

- - {{ typeMap[product.type - 1] }} - + {{ typeMap[product.type - 1] }} @@ -53,7 +47,7 @@
diff --git a/src/pages/login/components/Register.vue b/src/pages/login/components/Register.vue index e37f359..a28a008 100644 --- a/src/pages/login/components/Register.vue +++ b/src/pages/login/components/Register.vue @@ -71,7 +71,7 @@