From 0af205e586aee7e51fea2346abce684ec343b918 Mon Sep 17 00:00:00 2001 From: lyuly <20879193+lyuly@users.noreply.github.com> Date: Mon, 13 Mar 2023 21:10:09 +0800 Subject: [PATCH] update alert (#104) --- .eslintignore | 2 -- .eslintrc.json | 8 ++--- .../src/example/other/alert/sizeAlert.vue | 1 + .../src/components/alert/wAlert.vue | 30 +++++++++++++++---- .../src/styles/components/alert.scss | 13 ++++++++ 5 files changed, 43 insertions(+), 11 deletions(-) diff --git a/.eslintignore b/.eslintignore index 87bd9d9..071bbd5 100644 --- a/.eslintignore +++ b/.eslintignore @@ -12,5 +12,3 @@ packages/wview-components/src/components/icons/font/food.js packages/wview-components/src/components/icons/font/goods.js packages/wview-components/src/components/progress/wProgress.vue packages/wview-components/src/components/modal/wModal.vue - - diff --git a/.eslintrc.json b/.eslintrc.json index e0fbc55..2654aa8 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -11,8 +11,9 @@ "parserOptions": { "ecmaVersion": "latest", "parser": "@typescript-eslint/parser", - "project": "packages/*/tsconfig.json", - "sourceType": "module" + // "project": "packages/*/tsconfig.json", + "sourceType": "module", + "extraFileExtensions": [".vue"] }, "plugins": [ "vue", @@ -26,8 +27,7 @@ }, "import/resolver": { "typescript": { - "alwaysTryTypes": true, - "project": "packages/*/tsconfig.json" + "alwaysTryTypes": true } } } diff --git a/packages/document/docs/src/example/other/alert/sizeAlert.vue b/packages/document/docs/src/example/other/alert/sizeAlert.vue index f2cf674..1a28358 100644 --- a/packages/document/docs/src/example/other/alert/sizeAlert.vue +++ b/packages/document/docs/src/example/other/alert/sizeAlert.vue @@ -3,6 +3,7 @@ import { Alert } from 'wviewui'