Commit b107b5288695130592a82951012b743fc825880f

Authored by vben
1 parent 1a85dff5

fix: modifyVars not work

CHANGELOG.zh_CN.md
@@ -16,6 +16,7 @@ @@ -16,6 +16,7 @@
16 - 修复表格换行问题 16 - 修复表格换行问题
17 - 修复菜单外链不跳转 17 - 修复菜单外链不跳转
18 - 修复菜单顶部显示问题 18 - 修复菜单顶部显示问题
  19 +- 修复`modifyVars`配置失效问题
19 20
20 ## 2.0.0-rc.17 (2020-01-18) 21 ## 2.0.0-rc.17 (2020-01-18)
21 22
build/config/lessModifyVars.ts
@@ -7,23 +7,18 @@ const primaryColor = '#0084f4'; @@ -7,23 +7,18 @@ const primaryColor = '#0084f4';
7 //{ 7 //{
8 const modifyVars = { 8 const modifyVars = {
9 'primary-color': primaryColor, // Global dominant color 9 'primary-color': primaryColor, // Global dominant color
10 - 'info-color': primaryColor, // Default color  
11 'success-color': '#55D187', // Success color 10 'success-color': '#55D187', // Success color
12 'error-color': '#ED6F6F', // False color 11 'error-color': '#ED6F6F', // False color
13 'warning-color': '#EFBD47', // Warning color 12 'warning-color': '#EFBD47', // Warning color
14 'link-color': primaryColor, // Link color 13 'link-color': primaryColor, // Link color
15 - 'disabled-color': '#C2C2CC', // Failure color 14 + 'disabled-color': 'rgba(0, 0, 0, 0.25)', // Failure color
16 'heading-color': 'rgba(0, 0, 0, 0.85)', // Title color 15 'heading-color': 'rgba(0, 0, 0, 0.85)', // Title color
17 'text-color': 'rgba(0, 0, 0, 0.85)', // Main text color 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 'font-size-base': '14px', // Main font size 18 'font-size-base': '14px', // Main font size
23 'box-shadow-base': '0 2px 8px rgba(0, 0, 0, 0.15)', // Floating shadow 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
@@ -7,7 +7,7 @@ export function configStyleImportConfig() { @@ -7,7 +7,7 @@ export function configStyleImportConfig() {
7 libraryName: 'ant-design-vue', 7 libraryName: 'ant-design-vue',
8 esModule: true, 8 esModule: true,
9 resolveStyle: (name) => { 9 resolveStyle: (name) => {
10 - return `ant-design-vue/es/${name}/style/css`; 10 + return `ant-design-vue/es/${name}/style/index`;
11 }, 11 },
12 }, 12 },
13 ], 13 ],
src/design/color.less
@@ -16,8 +16,6 @@ @@ -16,8 +16,6 @@
16 @content-bg: #f4f7f9; 16 @content-bg: #f4f7f9;
17 // @content-bg: #f0f2f5; 17 // @content-bg: #f0f2f5;
18 18
19 -@info-color: @primary-color;  
20 -  
21 @basic-mask-color: fade(@white, 30%); 19 @basic-mask-color: fade(@white, 30%);
22 // :export { 20 // :export {
23 // name: "less"; 21 // name: "less";
src/types/global.d.ts
@@ -39,12 +39,6 @@ declare type DeepPartial<T> = { @@ -39,12 +39,6 @@ declare type DeepPartial<T> = {
39 [P in keyof T]?: DeepPartial<T[P]>; 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 declare type LabelValueOptions = { 42 declare type LabelValueOptions = {
49 label: string; 43 label: string;
50 value: any; 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 declare module 'ant-design-vue/es/locale/*' { 1 declare module 'ant-design-vue/es/locale/*' {
10 import { Locale } from 'ant-design-vue/types/locale-provider'; 2 import { Locale } from 'ant-design-vue/types/locale-provider';
11 const locale: Locale & ReadonlyRecordable; 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 &#39;*.vue&#39; { @@ -3,23 +3,3 @@ declare module &#39;*.vue&#39; {
3 const Component: ReturnType<typeof defineComponent>; 3 const Component: ReturnType<typeof defineComponent>;
4 export default Component; 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,17 +308,6 @@ export function getTreeTableData() {
308 address: 'New York No. 1 Lake ParkNew York No. 1 Lake Park', 308 address: 'New York No. 1 Lake ParkNew York No. 1 Lake Park',
309 beginTime: new Date().toLocaleString(), 309 beginTime: new Date().toLocaleString(),
310 endTime: new Date().toLocaleString(), 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 });