diff --git a/.eslintrc b/.eslintrc index 34ec7c1..4c54be6 100644 --- a/.eslintrc +++ b/.eslintrc @@ -46,6 +46,20 @@ "import/prefer-default-export": "off", "@typescript-eslint/no-explicit-any": "off", - "@typescript-eslint/explicit-module-boundary-types": "off" - } + "@typescript-eslint/explicit-module-boundary-types": "off", + "vue/first-attribute-linebreak": 0 + }, + "overrides": [ + { + "files": ["*.vue"], + "rules": { + "vue/component-name-in-template-casing": [2, "kebab-case"], + "vue/require-default-prop": 0, + "vue/multi-word-component-names": 0, + "vue/no-reserved-props": 0, + "vue/no-v-html": 0, + + } + } + ] } \ No newline at end of file diff --git a/package.json b/package.json index f893557..f491d1f 100644 --- a/package.json +++ b/package.json @@ -2,8 +2,8 @@ "name": "tdesign-vue-next-starter", "version": "0.0.1", "scripts": { - "start:mock": "vite --open --mode mock", - "start": "vite --open --mode development", + "dev:mock": "vite --open --mode mock", + "dev": "vite --open --mode development", "build:test": "vite build --mode test", "build": "vue-tsc --noEmit && vite build --mode release", "preview": "vite preview", @@ -17,7 +17,7 @@ "echarts": "^5.2.1", "nprogress": "^0.2.0", "qrcode.vue": "^3.2.2", - "tdesign-vue-next": "^0.4.1", + "tdesign-vue-next": "^0.5.0", "vue": "^3.1.5", "vue-router": "^4.0.11", "vue3-clipboard": "^1.0.0", diff --git a/src/App.vue b/src/App.vue index f7d008e..ad8a584 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,4 +1,21 @@ - + diff --git a/src/assets/assets-t-logo.svg b/src/assets/assets-t-logo.svg new file mode 100644 index 0000000..61044ed --- /dev/null +++ b/src/assets/assets-t-logo.svg @@ -0,0 +1,41 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/assets/login-bg-black.png b/src/assets/login-bg-black.png new file mode 100644 index 0000000..4f7bfaa Binary files /dev/null and b/src/assets/login-bg-black.png differ diff --git a/src/assets/login-bg-white.png b/src/assets/login-bg-white.png new file mode 100644 index 0000000..af68aa2 Binary files /dev/null and b/src/assets/login-bg-white.png differ diff --git a/src/assets/logo-full.svg b/src/assets/logo-full.svg new file mode 100644 index 0000000..5bb515d --- /dev/null +++ b/src/assets/logo-full.svg @@ -0,0 +1,39 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/pages/dashboard/base/index.less b/src/pages/dashboard/base/index.less index 7c6b142..1d62a37 100644 --- a/src/pages/dashboard/base/index.less +++ b/src/pages/dashboard/base/index.less @@ -1,4 +1,4 @@ -@import '@/style/index'; +@import '@/style/variables.less'; .t-tabs__content { padding-top: @spacer-3; @@ -72,7 +72,7 @@ > span { display: inline-block; - color: black; + color: @text-color-primary; font-size: 36px; line-height: 44px; } @@ -110,7 +110,7 @@ /* 计量统计 */ .dashboard-bottom-left-top-count-chart { padding: 20px 24px; - background-color: white; + background-color: @bg-color-container; border-radius: @border-radius; width: 100%; min-width: 300px; @@ -120,7 +120,7 @@ /* 动态监测 */ .dashboard-bottom-left-top-monitor-chart { padding: 20px 24px; - background-color: white; + background-color: @bg-color-container; border-radius: @border-radius; margin-left: 16px; width: 100%; @@ -130,7 +130,7 @@ /* 出入库概览() */ .dashboard-bottom-left-bottom { - background-color: white; + background-color: @bg-color-container; padding: 20px 24px; border-radius: @border-radius; margin-top: 16px; @@ -145,7 +145,7 @@ /* 右边列表-实时热度趋势 */ .dashboard-bottom-right { padding: 20px 24px; - background-color: white; + background-color: @bg-color-container; border-radius: @border-radius; margin-left: 16px; width: 426px; @@ -307,23 +307,7 @@ border-radius: 3px; } -.card-container.main-color { - background: @brand-color; - color: @text-color-primary; - - .card-describe { - color: white; - } - - .dashboard-item-top span { - color: white; - } - - .dashboard-item-block { - color: rgb(255 255 255 / 55%); - } - - .dashboard-item-bottom { - color: white; - } +.inner-card { + padding-left: 0 !important; + padding-right: 0 !important; } diff --git a/src/pages/dashboard/base/index.vue b/src/pages/dashboard/base/index.vue index 6090334..edf4583 100644 --- a/src/pages/dashboard/base/index.vue +++ b/src/pages/dashboard/base/index.vue @@ -98,7 +98,7 @@ 季度 - + - +