@vue-ui-kit/ant 2.0.3 → 2.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -5,8 +5,10 @@
5
5
  padding: 16px;
6
6
  border-radius: 4px;
7
7
  }
8
-
9
- //region patch for env without unocss/tailwind/windicss
8
+ .text-slate-5 {
9
+ color: #64748b;
10
+ }
11
+ /* #region patch for env without unocss/tailwind/windicss */
10
12
  .w-full {
11
13
  width: 100%;
12
14
  }
@@ -88,9 +90,9 @@
88
90
  overflow-y: auto;
89
91
  }
90
92
 
91
- //endregion
93
+ /* #endregion */
92
94
 
93
- //region P family styles
95
+ /* #region P family styles */
94
96
  .p-theme-bg {
95
97
  background-color: var(--p-theme-bg);
96
98
  }
@@ -99,6 +101,9 @@
99
101
  .p-form-wrapper {
100
102
  z-index: 4;
101
103
  }
104
+ .p-canvas-pagination.ant-pagination {
105
+ padding: 16px 0;
106
+ }
102
107
  .p-error-hang-out {
103
108
  .ant-input-affix-wrapper-status-error:not(.ant-input-affix-wrapper-disabled):not(
104
109
  .ant-input-affix-wrapper-borderless
@@ -137,6 +142,10 @@
137
142
  border-radius: 0.5em 0.5em 0 0;
138
143
  margin-bottom: -0.5em;
139
144
  }
145
+ .p-canvas-toolbar-wrapper {
146
+ box-shadow: 0 8px #fff;
147
+ border-radius: 0.5em 0.5em 0 0;
148
+ }
140
149
 
141
150
  .ant-form {
142
151
  .ant-form-item {
@@ -295,10 +304,12 @@
295
304
  justify-content: flex-start;
296
305
  }
297
306
  }
298
- //endregion
307
+ /* #endregion */
299
308
 
300
309
  /* #region EVirtTable */
301
-
310
+ // .canvas-cell{
311
+ // tbd
312
+ // }
302
313
  /* #endregion */
303
314
 
304
315
  @each $align in right center {
@@ -1,4 +1,5 @@
1
1
  import { PFormProps, PGridProps } from '#/antProxy';
2
+ import { ConfigType } from 'e-virt-table';
2
3
  import { clone } from 'xe-utils';
3
4
 
4
5
  // 全局配置接口
@@ -11,7 +12,9 @@ export interface UIKitConfig {
11
12
  align?: 'left' | 'right' | 'center';
12
13
  lazyReset?: boolean;
13
14
  fitHeight?: number;
15
+ fitCanvasHeight?: number;
14
16
  };
17
+ canvasTable?: ConfigType;
15
18
  }
16
19
 
17
20
  // 默认配置
@@ -25,6 +28,9 @@ const defaultConfig: UIKitConfig = {
25
28
  lazyReset: false,
26
29
  fitHeight: 170,
27
30
  },
31
+ canvasTable: {
32
+ DISABLED: true,
33
+ },
28
34
  };
29
35
 
30
36
  // 当前配置(可被修改)
@@ -41,6 +47,10 @@ export function setUIKitConfig(config: Partial<UIKitConfig>): void {
41
47
  ...currentConfig.grid,
42
48
  ...config.grid,
43
49
  },
50
+ canvasTable: {
51
+ ...currentConfig.canvasTable,
52
+ ...config.canvasTable,
53
+ },
44
54
  };
45
55
  }
46
56
 
@@ -66,7 +76,12 @@ export function getGridDefaults(): Partial<PGridProps> {
66
76
  };
67
77
  }
68
78
 
79
+ // 获取CanvasTable默认配置
80
+ export function getCanvasTableDefaults(): ConfigType {
81
+ return currentConfig.canvasTable || ({} as ConfigType);
82
+ }
83
+
69
84
  // 重置为默认配置
70
85
  export function resetUIKitConfig(): void {
71
86
  currentConfig = JSON.parse(JSON.stringify(defaultConfig));
72
- }
87
+ }