Commit b107b5288695130592a82951012b743fc825880f
1 parent
1a85dff5
fix: modifyVars not work
Showing
9 changed files
with
6 additions
and
82 deletions
CHANGELOG.zh_CN.md
build/config/lessModifyVars.ts
... | ... | @@ -7,23 +7,18 @@ const primaryColor = '#0084f4'; |
7 | 7 | //{ |
8 | 8 | const modifyVars = { |
9 | 9 | 'primary-color': primaryColor, // Global dominant color |
10 | - 'info-color': primaryColor, // Default color | |
11 | 10 | 'success-color': '#55D187', // Success color |
12 | 11 | 'error-color': '#ED6F6F', // False color |
13 | 12 | 'warning-color': '#EFBD47', // Warning color |
14 | 13 | 'link-color': primaryColor, // Link color |
15 | - 'disabled-color': '#C2C2CC', // Failure color | |
14 | + 'disabled-color': 'rgba(0, 0, 0, 0.25)', // Failure color | |
16 | 15 | 'heading-color': 'rgba(0, 0, 0, 0.85)', // Title color |
17 | 16 | 'text-color': 'rgba(0, 0, 0, 0.85)', // Main text color |
18 | - // 'heading-color': '#2C3A61', // Title color | |
19 | - // 'text-color': '#2C3A61', // Main text color | |
20 | - 'text-color-secondary ': '#606266', // Subtext color | |
21 | - 'background-color-base': '#f4f7f9', // background color | |
17 | + 'text-color-secondary ': 'rgba(0, 0, 0, 0.45)', // Subtext color | |
22 | 18 | 'font-size-base': '14px', // Main font size |
23 | 19 | 'box-shadow-base': '0 2px 8px rgba(0, 0, 0, 0.15)', // Floating shadow |
24 | - 'border-color-base': '#F0F0F0', // Border color, | |
25 | - 'border-color-split': '#F0F0F0', // Border color, | |
26 | - 'border-radius-base': '4px', // Component/float fillet | |
20 | + 'border-color-base': '#d9d9d9', // Border color, | |
21 | + 'border-radius-base': '2px', // Component/float fillet | |
27 | 22 | }; |
28 | 23 | //} |
29 | 24 | ... | ... |
build/vite/plugin/styleImport.ts
src/design/color.less
src/types/global.d.ts
... | ... | @@ -39,12 +39,6 @@ declare type DeepPartial<T> = { |
39 | 39 | [P in keyof T]?: DeepPartial<T[P]>; |
40 | 40 | }; |
41 | 41 | |
42 | -// type DeepPartial<T> = T extends Function | |
43 | -// ? T | |
44 | -// : T extends object | |
45 | -// ? { [K in keyof T]?: DeepPartial<T[K]> } | |
46 | -// : T; | |
47 | - | |
48 | 42 | declare type LabelValueOptions = { |
49 | 43 | label: string; |
50 | 44 | value: any; | ... | ... |
src/types/module.d.ts
1 | -declare module 'globby!/@/router/routes/modules/**/*.@(ts)'; | |
2 | - | |
3 | -declare module 'globby!/@/router/menus/modules/**/*.@(ts)'; | |
4 | - | |
5 | -declare module 'globby?locale!/@/locales/lang/**/*.@(ts)'; | |
6 | - | |
7 | -declare const React: string; | |
8 | - | |
9 | 1 | declare module 'ant-design-vue/es/locale/*' { |
10 | 2 | import { Locale } from 'ant-design-vue/types/locale-provider'; |
11 | 3 | const locale: Locale & ReadonlyRecordable; | ... | ... |
src/types/shim-tsx.d.ts deleted
100644 → 0
1 | -import type { ComponentRenderProxy, VNode } from 'vue'; | |
2 | - | |
3 | -declare module '*.tsx' { | |
4 | - import { defineComponent } from 'vue'; | |
5 | - const component: ReturnType<defineComponent>; | |
6 | - export default component; | |
7 | -} | |
8 | - | |
9 | -declare global { | |
10 | - namespace JSX { | |
11 | - // tslint:disable no-empty-interface | |
12 | - type Element = VNode; | |
13 | - // tslint:disable no-empty-interface | |
14 | - type ElementClass = ComponentRenderProxy; | |
15 | - interface ElementAttributesProperty { | |
16 | - $props: any; | |
17 | - } | |
18 | - interface IntrinsicElements { | |
19 | - [elem: string]: any; | |
20 | - } | |
21 | - interface IntrinsicAttributes { | |
22 | - [elem: string]: any; | |
23 | - } | |
24 | - } | |
25 | -} |
src/types/vue-app-env.d.ts
... | ... | @@ -3,23 +3,3 @@ declare module '*.vue' { |
3 | 3 | const Component: ReturnType<typeof defineComponent>; |
4 | 4 | export default Component; |
5 | 5 | } |
6 | - | |
7 | -declare namespace NodeJS { | |
8 | - interface Process { | |
9 | - env: ProcessEnv; | |
10 | - } | |
11 | - interface ProcessEnv { | |
12 | - /** | |
13 | - * By default, there are two modes in Vite: | |
14 | - * | |
15 | - * * `development` is used by vite and vite serve | |
16 | - * * `production` is used by vite build | |
17 | - * | |
18 | - * You can overwrite the default mode used for a command by passing the --mode option flag. | |
19 | - * | |
20 | - */ | |
21 | - readonly NODE_ENV: 'development' | 'production'; | |
22 | - } | |
23 | -} | |
24 | - | |
25 | -declare let process: NodeJS.Process; | ... | ... |
src/views/demo/table/tableData.tsx
... | ... | @@ -308,17 +308,6 @@ export function getTreeTableData() { |
308 | 308 | address: 'New York No. 1 Lake ParkNew York No. 1 Lake Park', |
309 | 309 | beginTime: new Date().toLocaleString(), |
310 | 310 | endTime: new Date().toLocaleString(), |
311 | - children: [ | |
312 | - { | |
313 | - id: `l3-${index}`, | |
314 | - name: 'John Brown', | |
315 | - age: `1${index}`, | |
316 | - no: `${index + 10}`, | |
317 | - address: 'New York No. 1 Lake ParkNew York No. 1 Lake Park', | |
318 | - beginTime: new Date().toLocaleString(), | |
319 | - endTime: new Date().toLocaleString(), | |
320 | - }, | |
321 | - ], | |
322 | 311 | }, |
323 | 312 | ], |
324 | 313 | }); | ... | ... |