vxe-table 3.8.7-beta.2 → 3.8.7-beta.3
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.
- package/lib/form/src/form-config-item.js +2 -2
- package/lib/form/src/form-config-item.min.js +1 -1
- package/lib/form/src/form-gather.js +15 -12
- package/lib/form/src/form-gather.min.js +1 -1
- package/lib/form/src/form-item.js +2 -1
- package/lib/form/src/form-item.min.js +1 -1
- package/lib/form/src/form.js +1 -1
- package/lib/form/src/form.min.js +1 -1
- package/lib/form/src/util.js +1 -0
- package/lib/form/src/util.min.js +1 -1
- package/lib/form/style/style.css +91 -3
- package/lib/form/style/style.min.css +1 -1
- package/lib/icon/style/style.css +6 -2
- package/lib/icon/style/style.min.css +6 -2
- package/lib/index.css +1 -1
- package/lib/index.umd.js +110 -45
- package/lib/index.umd.min.js +1 -1
- package/lib/locale/lang/en-US.js +8 -1
- package/lib/locale/lang/en-US.min.js +1 -1
- package/lib/locale/lang/en-US.umd.js +8 -1
- package/lib/locale/lang/es-ES.js +9 -2
- package/lib/locale/lang/es-ES.min.js +1 -1
- package/lib/locale/lang/es-ES.umd.js +9 -2
- package/lib/locale/lang/ja-JP.js +7 -0
- package/lib/locale/lang/ja-JP.min.js +1 -1
- package/lib/locale/lang/ja-JP.umd.js +7 -0
- package/lib/locale/lang/pt-BR.js +191 -184
- package/lib/locale/lang/pt-BR.min.js +1 -1
- package/lib/locale/lang/pt-BR.umd.js +191 -184
- package/lib/locale/lang/zh-CN.js +7 -0
- package/lib/locale/lang/zh-CN.min.js +1 -1
- package/lib/locale/lang/zh-CN.umd.js +7 -0
- package/lib/locale/lang/zh-HK.min.js +1 -1
- package/lib/locale/lang/zh-HK.umd.js +7 -0
- package/lib/locale/lang/zh-MO.min.js +1 -1
- package/lib/locale/lang/zh-MO.umd.js +7 -0
- package/lib/locale/lang/zh-TC.js +7 -0
- package/lib/locale/lang/zh-TC.min.js +1 -1
- package/lib/locale/lang/zh-TC.umd.js +7 -0
- package/lib/locale/lang/zh-TW.min.js +1 -1
- package/lib/locale/lang/zh-TW.umd.js +7 -0
- package/lib/modal/src/modal.js +26 -8
- package/lib/modal/src/modal.min.js +1 -1
- package/lib/style.css +1 -1
- package/lib/style.min.css +1 -1
- package/lib/switch/src/switch.js +3 -1
- package/lib/switch/src/switch.min.js +1 -1
- package/lib/switch/style/style.css +10 -0
- package/lib/switch/style/style.min.css +1 -1
- package/lib/table/src/body.js +3 -3
- package/lib/table/src/body.min.js +1 -1
- package/lib/table/src/table.js +3 -3
- package/lib/table/src/table.min.js +1 -1
- package/lib/tools/log.js +1 -1
- package/lib/tools/log.min.js +1 -1
- package/lib/v-x-e-table/index.js +26 -4
- package/lib/v-x-e-table/index.min.js +1 -1
- package/lib/v-x-e-table/src/conf.js +2 -0
- package/lib/v-x-e-table/src/conf.min.js +1 -1
- package/lib/v-x-e-table/src/config.js +1 -3
- package/lib/v-x-e-table/src/config.min.js +1 -1
- package/lib/v-x-e-table/style/style.css +5 -1
- package/lib/v-x-e-table/style/style.min.css +1 -1
- package/lib/validator/src/mixin.js +16 -16
- package/lib/validator/src/mixin.min.js +1 -1
- package/lib/vxe-form/style/style.css +91 -3
- package/lib/vxe-form/style/style.min.css +1 -1
- package/lib/vxe-icon/style/style.css +5 -1
- package/lib/vxe-icon/style/style.min.css +1 -1
- package/lib/vxe-switch/style/style.css +10 -0
- package/lib/vxe-switch/style/style.min.css +1 -1
- package/package.json +1 -1
- package/packages/form/src/form-config-item.js +2 -2
- package/packages/form/src/form-gather.js +6 -11
- package/packages/form/src/form-item.js +2 -1
- package/packages/form/src/form.js +1 -1
- package/packages/form/src/util.js +1 -0
- package/packages/locale/lang/en-US.js +8 -1
- package/packages/locale/lang/es-ES.js +9 -2
- package/packages/locale/lang/ja-JP.js +7 -0
- package/packages/locale/lang/pt-BR.js +192 -185
- package/packages/locale/lang/zh-CN.js +7 -0
- package/packages/locale/lang/zh-TC.js +7 -0
- package/packages/modal/src/modal.js +13 -8
- package/packages/switch/src/switch.js +3 -1
- package/packages/table/src/body.js +3 -3
- package/packages/table/src/table.js +3 -3
- package/packages/v-x-e-table/index.js +24 -3
- package/packages/v-x-e-table/src/conf.js +2 -0
- package/packages/v-x-e-table/src/config.js +0 -2
- package/packages/validator/src/mixin.js +16 -16
- package/styles/form.scss +27 -3
- package/styles/icon.scss +1 -1
- package/styles/old-icon.scss +5 -0
- package/styles/switch.scss +10 -0
- package/types/form-item.d.ts +2 -1
- package/types/v-x-e-table/index.d.ts +69 -8
- package/types/v-x-e-table/renderer.d.ts +6 -0
- package/types/v-x-e-table/config.d.ts +0 -55
- /package/lib/icon/style/{iconfont.1715850304028.ttf → iconfont.1716169891278.ttf} +0 -0
- /package/lib/icon/style/{iconfont.1715850304028.woff → iconfont.1716169891278.woff} +0 -0
- /package/lib/icon/style/{iconfont.1715850304028.woff2 → iconfont.1716169891278.woff2} +0 -0
- /package/lib/{iconfont.1715850304028.ttf → iconfont.1716169891278.ttf} +0 -0
- /package/lib/{iconfont.1715850304028.woff → iconfont.1716169891278.woff} +0 -0
- /package/lib/{iconfont.1715850304028.woff2 → iconfont.1716169891278.woff2} +0 -0
package/styles/form.scss
CHANGED
|
@@ -13,6 +13,20 @@
|
|
|
13
13
|
text-align: left;
|
|
14
14
|
}
|
|
15
15
|
|
|
16
|
+
.vxe-form--item-row {
|
|
17
|
+
display: flex;
|
|
18
|
+
flex-direction: row;
|
|
19
|
+
flex-wrap: wrap;
|
|
20
|
+
$spans: 4.16667%, 8.33333%, 12.5%, 16.66667%, 20.83333%, 25%, 29.16667%, 33.33333%,
|
|
21
|
+
37.5%, 41.66667%, 45.83333%, 50%, 54.16667%, 58.33333%, 62.5%, 66.66667%,
|
|
22
|
+
70.83333%, 75%, 79.16667%, 83.33333%, 87.5%, 91.66667%, 95.83333%, 100%;
|
|
23
|
+
@for $index from 0 to length($spans) {
|
|
24
|
+
& > .vxe-form--item-col_#{$index + 1} {
|
|
25
|
+
width: nth($spans, $index + 1);
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
16
30
|
.vxe-form-slots {
|
|
17
31
|
display: none;
|
|
18
32
|
}
|
|
@@ -106,6 +120,9 @@
|
|
|
106
120
|
.vxe-form--item {
|
|
107
121
|
display: none;
|
|
108
122
|
padding: 0.5em 0.8em 0.5em 0;
|
|
123
|
+
&.is--vertical {
|
|
124
|
+
padding: 0.25em 0 0.25em 0;
|
|
125
|
+
}
|
|
109
126
|
&.is--active {
|
|
110
127
|
&:not(.is--hidden) {
|
|
111
128
|
display: inline-flex;
|
|
@@ -217,6 +234,7 @@
|
|
|
217
234
|
padding: 0 0.8em;
|
|
218
235
|
}
|
|
219
236
|
.vxe-default-textarea {
|
|
237
|
+
height: calc($vxe-button-height-default * 2);
|
|
220
238
|
padding: 0.3em 0.6em;
|
|
221
239
|
}
|
|
222
240
|
.vxe-default-input[type="number"] {
|
|
@@ -302,10 +320,12 @@
|
|
|
302
320
|
line-height: $vxe-button-height-medium - 2px;
|
|
303
321
|
}
|
|
304
322
|
.vxe-default-input,
|
|
305
|
-
.vxe-default-input,
|
|
306
323
|
.vxe-default-select {
|
|
307
324
|
height: $vxe-button-height-medium;
|
|
308
325
|
}
|
|
326
|
+
.vxe-default-textarea {
|
|
327
|
+
height: calc($vxe-button-height-medium * 2);
|
|
328
|
+
}
|
|
309
329
|
}
|
|
310
330
|
&.size--small {
|
|
311
331
|
font-size: $vxe-font-size-small;
|
|
@@ -317,10 +337,12 @@
|
|
|
317
337
|
line-height: $vxe-button-height-small - 2px;
|
|
318
338
|
}
|
|
319
339
|
.vxe-default-input,
|
|
320
|
-
.vxe-default-input,
|
|
321
340
|
.vxe-default-select {
|
|
322
341
|
height: $vxe-button-height-small;
|
|
323
342
|
}
|
|
343
|
+
.vxe-default-textarea {
|
|
344
|
+
height: calc($vxe-button-height-small * 2);
|
|
345
|
+
}
|
|
324
346
|
}
|
|
325
347
|
&.size--mini {
|
|
326
348
|
font-size: $vxe-font-size-mini;
|
|
@@ -332,9 +354,11 @@
|
|
|
332
354
|
line-height: $vxe-button-height-mini - 2px;
|
|
333
355
|
}
|
|
334
356
|
.vxe-default-input,
|
|
335
|
-
.vxe-default-input,
|
|
336
357
|
.vxe-default-select {
|
|
337
358
|
height: $vxe-button-height-mini;
|
|
338
359
|
}
|
|
360
|
+
.vxe-default-textarea {
|
|
361
|
+
height: calc($vxe-button-height-mini * 2);
|
|
362
|
+
}
|
|
339
363
|
}
|
|
340
364
|
}
|
package/styles/icon.scss
CHANGED
package/styles/old-icon.scss
CHANGED
package/styles/switch.scss
CHANGED
|
@@ -23,6 +23,7 @@
|
|
|
23
23
|
.vxe-switch--icon {
|
|
24
24
|
left: 100%;
|
|
25
25
|
transform: translateX(-1.4em);
|
|
26
|
+
color: $vxe-primary-color;
|
|
26
27
|
}
|
|
27
28
|
}
|
|
28
29
|
&.is--off {
|
|
@@ -33,6 +34,7 @@
|
|
|
33
34
|
.vxe-switch--icon {
|
|
34
35
|
left: 0.2em;
|
|
35
36
|
transform: translateX(0);
|
|
37
|
+
color: $vxe-switch-close-background-color;
|
|
36
38
|
}
|
|
37
39
|
}
|
|
38
40
|
&.is--on .vxe-switch--label-off,
|
|
@@ -63,11 +65,17 @@
|
|
|
63
65
|
.vxe-switch--button {
|
|
64
66
|
background-color: $vxe-primary-lighten-color;
|
|
65
67
|
}
|
|
68
|
+
.vxe-switch--icon {
|
|
69
|
+
color: $vxe-primary-lighten-color;
|
|
70
|
+
}
|
|
66
71
|
}
|
|
67
72
|
&.is--off {
|
|
68
73
|
.vxe-switch--button {
|
|
69
74
|
background-color: $vxe-switch-disabled-background-color;
|
|
70
75
|
}
|
|
76
|
+
.vxe-switch--icon {
|
|
77
|
+
color: $vxe-switch-disabled-background-color;
|
|
78
|
+
}
|
|
71
79
|
}
|
|
72
80
|
}
|
|
73
81
|
.vxe-switch--button {
|
|
@@ -93,6 +101,8 @@
|
|
|
93
101
|
left: 0;
|
|
94
102
|
width: 1.2em;
|
|
95
103
|
height: 1.2em;
|
|
104
|
+
line-height: 1.4em;
|
|
105
|
+
text-align: center;
|
|
96
106
|
border-radius: 50%;
|
|
97
107
|
background-color: $vxe-switch-icon-background-color;
|
|
98
108
|
}
|
package/types/form-item.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { VXETableComponent } from './component'
|
|
2
|
-
import { Form } from './form'
|
|
2
|
+
import { Form, FormRule } from './form'
|
|
3
3
|
import { RenderParams, RenderOptions, OptionProps, OptionGroupProps } from './v-x-e-table'
|
|
4
4
|
|
|
5
5
|
/* eslint-disable no-use-before-define */
|
|
@@ -119,6 +119,7 @@ export interface FormItemOptions {
|
|
|
119
119
|
* 项渲染配置项
|
|
120
120
|
*/
|
|
121
121
|
itemRender?: FormItemRenderOptions;
|
|
122
|
+
rules: FormRule[]
|
|
122
123
|
}
|
|
123
124
|
|
|
124
125
|
export interface FormItemTitleOptions {
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { SizeType } from '../component'
|
|
1
2
|
import { ModalController } from '../modal'
|
|
2
3
|
import { SaveFileFunction, ReadFileFunction, PrintFunction } from '../module/export'
|
|
3
4
|
|
|
@@ -7,10 +8,63 @@ import { VxeGlobalCommands } from './commands'
|
|
|
7
8
|
import { VxeGlobalFormats } from './formats'
|
|
8
9
|
import { VxeGlobalMenus } from './menus'
|
|
9
10
|
import { VxeGlobalValidators } from './validators'
|
|
10
|
-
import { VxeGlobalConfigMethod } from './config'
|
|
11
11
|
|
|
12
12
|
/* eslint-disable no-use-before-define */
|
|
13
13
|
|
|
14
|
+
interface DefaultOptions {
|
|
15
|
+
size?: SizeType;
|
|
16
|
+
[key: string]: any;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export interface VXETableConfigOptions {
|
|
20
|
+
/**
|
|
21
|
+
* 扩展插件授权码
|
|
22
|
+
*/
|
|
23
|
+
authId?: string
|
|
24
|
+
size?: SizeType;
|
|
25
|
+
zIndex?: number;
|
|
26
|
+
version?: number;
|
|
27
|
+
emptyCell?: string;
|
|
28
|
+
icon?: {
|
|
29
|
+
[key: string]: string;
|
|
30
|
+
};
|
|
31
|
+
table?: any;
|
|
32
|
+
grid?: any;
|
|
33
|
+
export?: {
|
|
34
|
+
types?: {
|
|
35
|
+
[key: string]: 0 | 1 | 2;
|
|
36
|
+
}
|
|
37
|
+
[key: string]: any;
|
|
38
|
+
};
|
|
39
|
+
tooltip?: DefaultOptions;
|
|
40
|
+
pager?: any;
|
|
41
|
+
form?: DefaultOptions;
|
|
42
|
+
input?: DefaultOptions;
|
|
43
|
+
textarea?: DefaultOptions;
|
|
44
|
+
select?: DefaultOptions;
|
|
45
|
+
toolbar?: any;
|
|
46
|
+
button?: DefaultOptions;
|
|
47
|
+
radio?: DefaultOptions;
|
|
48
|
+
checkbox?: DefaultOptions;
|
|
49
|
+
switch?: DefaultOptions;
|
|
50
|
+
modal?: DefaultOptions;
|
|
51
|
+
list?: DefaultOptions;
|
|
52
|
+
translate?(key: string, args?: any): string;
|
|
53
|
+
i18n?(key: string, args?: any): string;
|
|
54
|
+
[key: string]: any;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export type VxeGlobalConfigMethod = (options?: VXETableConfigOptions) => VxeGlobalStore
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* @deprecated
|
|
61
|
+
*/
|
|
62
|
+
export type VXETableSetupOptions = (options?: VXETableConfigOptions) => Required<VXETableConfigOptions>
|
|
63
|
+
/**
|
|
64
|
+
* @deprecated
|
|
65
|
+
*/
|
|
66
|
+
export type VxeGlobalSetup = (options?: VXETableConfigOptions) => Required<VXETableConfigOptions>;
|
|
67
|
+
|
|
14
68
|
export type VxeGlobalI18n = (key: string, args?: any) => number | string;
|
|
15
69
|
export type VxeGlobalTranslate = (key: string, args?: any) => string;
|
|
16
70
|
export type VxeGlobalUse = (plugin: VXETablePluginObject, ...options: any[]) => VXETableCore;
|
|
@@ -24,8 +78,12 @@ export interface VxeGlobalStore {
|
|
|
24
78
|
}
|
|
25
79
|
export const globalStore: VxeGlobalStore
|
|
26
80
|
|
|
27
|
-
export const config: VxeGlobalConfigMethod
|
|
28
81
|
export const setConfig: VxeGlobalConfigMethod
|
|
82
|
+
/**
|
|
83
|
+
* 请使用 setConfig
|
|
84
|
+
* @deprecated
|
|
85
|
+
*/
|
|
86
|
+
export const config: VXETableSetupOptions
|
|
29
87
|
export const interceptor: VxeGlobalInterceptor
|
|
30
88
|
export const renderer: VxeGlobalRenderer
|
|
31
89
|
export const commands: VxeGlobalCommands
|
|
@@ -40,10 +98,10 @@ export const _t: VxeGlobalTranslate
|
|
|
40
98
|
export const use: VxeGlobalUse
|
|
41
99
|
|
|
42
100
|
/**
|
|
43
|
-
* 请使用
|
|
101
|
+
* 请使用 setConfig
|
|
44
102
|
* @deprecated
|
|
45
103
|
*/
|
|
46
|
-
export const setup:
|
|
104
|
+
export const setup: VXETableSetupOptions
|
|
47
105
|
|
|
48
106
|
export interface VXETablePluginObject {
|
|
49
107
|
install(vxetable: VXETableCore, ...options: any[]): void;
|
|
@@ -119,17 +177,21 @@ export interface VXETableCore {
|
|
|
119
177
|
t: VxeGlobalI18n;
|
|
120
178
|
_t: VxeGlobalTranslate;
|
|
121
179
|
|
|
122
|
-
|
|
180
|
+
/**
|
|
181
|
+
* 请使用 setConfig
|
|
182
|
+
* @deprecated
|
|
183
|
+
*/
|
|
184
|
+
config: VXETableSetupOptions;
|
|
123
185
|
/**
|
|
124
186
|
* 已被 version 替换
|
|
125
187
|
* @deprecated
|
|
126
188
|
*/
|
|
127
189
|
v: VXETableVersion;
|
|
128
190
|
/**
|
|
129
|
-
* 请使用
|
|
191
|
+
* 请使用 setConfig
|
|
130
192
|
* @deprecated
|
|
131
193
|
*/
|
|
132
|
-
setup:
|
|
194
|
+
setup: VXETableSetupOptions;
|
|
133
195
|
}
|
|
134
196
|
|
|
135
197
|
/**
|
|
@@ -143,6 +205,5 @@ export * from './commands'
|
|
|
143
205
|
export * from './formats'
|
|
144
206
|
export * from './menus'
|
|
145
207
|
export * from './validators'
|
|
146
|
-
export * from './config'
|
|
147
208
|
|
|
148
209
|
export default VXETable
|
|
@@ -78,6 +78,12 @@ export interface RendererMapOptions {
|
|
|
78
78
|
itemResetMethod?(params: FormItemResetParams): void;
|
|
79
79
|
|
|
80
80
|
// 空内容渲染
|
|
81
|
+
renderTableEmptyView?(h: CreateElement, renderOpts: TableEmptyRender, params: EmptyRenderParams): SlotVNodeType | SlotVNodeType[];
|
|
82
|
+
|
|
83
|
+
/**
|
|
84
|
+
* 已废弃,请使用 renderTableEmptyView
|
|
85
|
+
* @deprecated
|
|
86
|
+
*/
|
|
81
87
|
renderEmpty?(h: CreateElement, renderOpts: TableEmptyRender, params: EmptyRenderParams): SlotVNodeType | SlotVNodeType[];
|
|
82
88
|
|
|
83
89
|
[key: string]: any;
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import { SizeType } from '../component'
|
|
2
|
-
|
|
3
|
-
interface DefaultOptions {
|
|
4
|
-
size?: SizeType;
|
|
5
|
-
[key: string]: any;
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
export interface VXETableConfigOptions {
|
|
9
|
-
/**
|
|
10
|
-
* 扩展插件授权码
|
|
11
|
-
*/
|
|
12
|
-
authId?: string
|
|
13
|
-
size?: SizeType;
|
|
14
|
-
zIndex?: number;
|
|
15
|
-
version?: number;
|
|
16
|
-
emptyCell?: string;
|
|
17
|
-
icon?: {
|
|
18
|
-
[key: string]: string;
|
|
19
|
-
};
|
|
20
|
-
table?: any;
|
|
21
|
-
grid?: any;
|
|
22
|
-
export?: {
|
|
23
|
-
types?: {
|
|
24
|
-
[key: string]: 0 | 1 | 2;
|
|
25
|
-
}
|
|
26
|
-
[key: string]: any;
|
|
27
|
-
};
|
|
28
|
-
tooltip?: DefaultOptions;
|
|
29
|
-
pager?: any;
|
|
30
|
-
form?: DefaultOptions;
|
|
31
|
-
input?: DefaultOptions;
|
|
32
|
-
textarea?: DefaultOptions;
|
|
33
|
-
select?: DefaultOptions;
|
|
34
|
-
toolbar?: any;
|
|
35
|
-
button?: DefaultOptions;
|
|
36
|
-
radio?: DefaultOptions;
|
|
37
|
-
checkbox?: DefaultOptions;
|
|
38
|
-
switch?: DefaultOptions;
|
|
39
|
-
modal?: DefaultOptions;
|
|
40
|
-
list?: DefaultOptions;
|
|
41
|
-
translate?(key: string, args?: any): string;
|
|
42
|
-
i18n?(key: string, args?: any): string;
|
|
43
|
-
[key: string]: any;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
export type VxeGlobalConfigMethod = (options?: VXETableConfigOptions) => Required<VXETableConfigOptions>
|
|
47
|
-
|
|
48
|
-
/**
|
|
49
|
-
* @deprecated
|
|
50
|
-
*/
|
|
51
|
-
export type VXETableSetupOptions = VXETableConfigOptions
|
|
52
|
-
/**
|
|
53
|
-
* @deprecated
|
|
54
|
-
*/
|
|
55
|
-
export type VxeGlobalSetup = VxeGlobalConfigMethod;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|