vxe-table 3.8.7-beta.2 → 3.8.7-beta.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.
- 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 +239 -167
- 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/methods.js +9 -7
- package/lib/table/src/methods.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 +55 -17
- 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/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/methods.js +9 -7
- package/packages/table/src/table.js +3 -3
- package/packages/v-x-e-table/index.js +49 -5
- package/packages/v-x-e-table/src/conf.js +2 -0
- 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 +74 -8
- package/types/v-x-e-table/renderer.d.ts +6 -0
- package/lib/v-x-e-table/src/config.js +0 -27
- package/lib/v-x-e-table/src/config.min.js +0 -1
- package/packages/v-x-e-table/src/config.js +0 -21
- package/types/v-x-e-table/config.d.ts +0 -55
- /package/lib/icon/style/{iconfont.1715850304028.ttf → iconfont.1716213624034.ttf} +0 -0
- /package/lib/icon/style/{iconfont.1715850304028.woff → iconfont.1716213624034.woff} +0 -0
- /package/lib/icon/style/{iconfont.1715850304028.woff2 → iconfont.1716213624034.woff2} +0 -0
- /package/lib/{iconfont.1715850304028.ttf → iconfont.1716213624034.ttf} +0 -0
- /package/lib/{iconfont.1715850304028.woff → iconfont.1716213624034.woff} +0 -0
- /package/lib/{iconfont.1715850304028.woff2 → iconfont.1716213624034.woff2} +0 -0
|
@@ -128,20 +128,20 @@ export default {
|
|
|
128
128
|
const validRest = {}
|
|
129
129
|
const { editRules, afterFullData, visibleColumn, treeConfig, treeOpts } = this
|
|
130
130
|
const childrenField = treeOpts.children || treeOpts.childrenField
|
|
131
|
-
let
|
|
131
|
+
let validDatas
|
|
132
132
|
if (rows === true) {
|
|
133
|
-
|
|
133
|
+
validDatas = afterFullData
|
|
134
134
|
} else if (rows) {
|
|
135
135
|
if (XEUtils.isFunction(rows)) {
|
|
136
136
|
cb = rows
|
|
137
137
|
} else {
|
|
138
|
-
|
|
138
|
+
validDatas = XEUtils.isArray(rows) ? rows : [rows]
|
|
139
139
|
}
|
|
140
140
|
}
|
|
141
|
-
if (!
|
|
142
|
-
|
|
141
|
+
if (!validDatas) {
|
|
142
|
+
validDatas = this.getInsertRecords().concat(this.getUpdateRecords())
|
|
143
143
|
}
|
|
144
|
-
const
|
|
144
|
+
const rowValidErrs = []
|
|
145
145
|
this.lastCallTime = Date.now()
|
|
146
146
|
this.validRuleErr = false // 如果为快速校验,当存在某列校验不通过时将终止执行
|
|
147
147
|
this.clearValidate()
|
|
@@ -184,15 +184,15 @@ export default {
|
|
|
184
184
|
)
|
|
185
185
|
}
|
|
186
186
|
})
|
|
187
|
-
|
|
187
|
+
rowValidErrs.push(Promise.all(colVailds))
|
|
188
188
|
}
|
|
189
189
|
}
|
|
190
190
|
if (treeConfig) {
|
|
191
|
-
XEUtils.eachTree(
|
|
191
|
+
XEUtils.eachTree(validDatas, handleVaild, { children: childrenField })
|
|
192
192
|
} else {
|
|
193
|
-
|
|
193
|
+
validDatas.forEach(handleVaild)
|
|
194
194
|
}
|
|
195
|
-
return Promise.all(
|
|
195
|
+
return Promise.all(rowValidErrs).then(() => {
|
|
196
196
|
const ruleProps = Object.keys(validRest)
|
|
197
197
|
this.validErrorMaps = this.handleErrMsgMode(validErrMaps)
|
|
198
198
|
return this.$nextTick().then(() => {
|
|
@@ -237,9 +237,9 @@ export default {
|
|
|
237
237
|
const column = firstErrParams.column
|
|
238
238
|
const rowIndex = afterFullData.indexOf(row)
|
|
239
239
|
const columnIndex = visibleColumn.indexOf(column)
|
|
240
|
-
const
|
|
241
|
-
const
|
|
242
|
-
this.scrollToRow(
|
|
240
|
+
const targetRow = rowIndex > 0 ? afterFullData[rowIndex - 1] : row
|
|
241
|
+
const targetColumn = columnIndex > 0 ? visibleColumn[columnIndex - 1] : column
|
|
242
|
+
this.scrollToRow(targetRow, targetColumn).then(posAndFinish)
|
|
243
243
|
}
|
|
244
244
|
})
|
|
245
245
|
})
|
|
@@ -377,9 +377,9 @@ export default {
|
|
|
377
377
|
validErrMaps = Object.assign({}, validErrorMaps)
|
|
378
378
|
rowList.forEach(row => {
|
|
379
379
|
colList.forEach((column) => {
|
|
380
|
-
const
|
|
381
|
-
if (validErrMaps[
|
|
382
|
-
delete validErrMaps[
|
|
380
|
+
const validKey = `${getRowid(this, row)}:${column.id}`
|
|
381
|
+
if (validErrMaps[validKey]) {
|
|
382
|
+
delete validErrMaps[validKey]
|
|
383
383
|
}
|
|
384
384
|
})
|
|
385
385
|
})
|
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,65 @@ 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?: VxeGlobalIcon;
|
|
29
|
+
table?: any;
|
|
30
|
+
grid?: any;
|
|
31
|
+
export?: {
|
|
32
|
+
types?: {
|
|
33
|
+
[key: string]: 0 | 1 | 2;
|
|
34
|
+
}
|
|
35
|
+
[key: string]: any;
|
|
36
|
+
};
|
|
37
|
+
tooltip?: DefaultOptions;
|
|
38
|
+
pager?: any;
|
|
39
|
+
form?: DefaultOptions;
|
|
40
|
+
input?: DefaultOptions;
|
|
41
|
+
textarea?: DefaultOptions;
|
|
42
|
+
select?: DefaultOptions;
|
|
43
|
+
toolbar?: any;
|
|
44
|
+
button?: DefaultOptions;
|
|
45
|
+
radio?: DefaultOptions;
|
|
46
|
+
checkbox?: DefaultOptions;
|
|
47
|
+
switch?: DefaultOptions;
|
|
48
|
+
modal?: DefaultOptions;
|
|
49
|
+
list?: DefaultOptions;
|
|
50
|
+
translate?(key: string, args?: any): string;
|
|
51
|
+
i18n?(key: string, args?: any): string;
|
|
52
|
+
[key: string]: any;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export interface VxeGlobalIcon {
|
|
56
|
+
[ket: string]: string
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export type VxeGlobalConfigMethod = (options?: VXETableConfigOptions) => VxeGlobalStore
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* @deprecated
|
|
63
|
+
*/
|
|
64
|
+
export type VXETableSetupOptions = (options?: VXETableConfigOptions) => Required<VXETableConfigOptions>
|
|
65
|
+
/**
|
|
66
|
+
* @deprecated
|
|
67
|
+
*/
|
|
68
|
+
export type VxeGlobalSetup = (options?: VXETableConfigOptions) => Required<VXETableConfigOptions>;
|
|
69
|
+
|
|
14
70
|
export type VxeGlobalI18n = (key: string, args?: any) => number | string;
|
|
15
71
|
export type VxeGlobalTranslate = (key: string, args?: any) => string;
|
|
16
72
|
export type VxeGlobalUse = (plugin: VXETablePluginObject, ...options: any[]) => VXETableCore;
|
|
@@ -24,8 +80,12 @@ export interface VxeGlobalStore {
|
|
|
24
80
|
}
|
|
25
81
|
export const globalStore: VxeGlobalStore
|
|
26
82
|
|
|
27
|
-
export const config: VxeGlobalConfigMethod
|
|
28
83
|
export const setConfig: VxeGlobalConfigMethod
|
|
84
|
+
/**
|
|
85
|
+
* 请使用 setConfig
|
|
86
|
+
* @deprecated
|
|
87
|
+
*/
|
|
88
|
+
export const config: VXETableSetupOptions
|
|
29
89
|
export const interceptor: VxeGlobalInterceptor
|
|
30
90
|
export const renderer: VxeGlobalRenderer
|
|
31
91
|
export const commands: VxeGlobalCommands
|
|
@@ -40,10 +100,12 @@ export const _t: VxeGlobalTranslate
|
|
|
40
100
|
export const use: VxeGlobalUse
|
|
41
101
|
|
|
42
102
|
/**
|
|
43
|
-
* 请使用
|
|
103
|
+
* 请使用 setConfig
|
|
44
104
|
* @deprecated
|
|
45
105
|
*/
|
|
46
|
-
export const setup:
|
|
106
|
+
export const setup: VXETableSetupOptions
|
|
107
|
+
|
|
108
|
+
export function setIcon(options?: VxeGlobalIcon): VXETableCore
|
|
47
109
|
|
|
48
110
|
export interface VXETablePluginObject {
|
|
49
111
|
install(vxetable: VXETableCore, ...options: any[]): void;
|
|
@@ -63,6 +125,7 @@ export interface VXETableCore {
|
|
|
63
125
|
* 设置全局参数/获取所有参数
|
|
64
126
|
*/
|
|
65
127
|
setConfig: VxeGlobalConfigMethod;
|
|
128
|
+
setIcon: typeof setIcon
|
|
66
129
|
/**
|
|
67
130
|
* 读取内部数据
|
|
68
131
|
*/
|
|
@@ -119,17 +182,21 @@ export interface VXETableCore {
|
|
|
119
182
|
t: VxeGlobalI18n;
|
|
120
183
|
_t: VxeGlobalTranslate;
|
|
121
184
|
|
|
122
|
-
|
|
185
|
+
/**
|
|
186
|
+
* 请使用 setConfig
|
|
187
|
+
* @deprecated
|
|
188
|
+
*/
|
|
189
|
+
config: VXETableSetupOptions;
|
|
123
190
|
/**
|
|
124
191
|
* 已被 version 替换
|
|
125
192
|
* @deprecated
|
|
126
193
|
*/
|
|
127
194
|
v: VXETableVersion;
|
|
128
195
|
/**
|
|
129
|
-
* 请使用
|
|
196
|
+
* 请使用 setConfig
|
|
130
197
|
* @deprecated
|
|
131
198
|
*/
|
|
132
|
-
setup:
|
|
199
|
+
setup: VXETableSetupOptions;
|
|
133
200
|
}
|
|
134
201
|
|
|
135
202
|
/**
|
|
@@ -143,6 +210,5 @@ export * from './commands'
|
|
|
143
210
|
export * from './formats'
|
|
144
211
|
export * from './menus'
|
|
145
212
|
export * from './validators'
|
|
146
|
-
export * from './config'
|
|
147
213
|
|
|
148
214
|
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,27 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.config = void 0;
|
|
7
|
-
exports.setConfig = setConfig;
|
|
8
|
-
var _conf = _interopRequireDefault(require("./conf"));
|
|
9
|
-
var _domZindex = _interopRequireDefault(require("dom-zindex"));
|
|
10
|
-
var _xeUtils = _interopRequireDefault(require("xe-utils"));
|
|
11
|
-
var _theme = require("./theme");
|
|
12
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
|
-
/**
|
|
14
|
-
* 全局参数设置
|
|
15
|
-
*/
|
|
16
|
-
function setConfig(options) {
|
|
17
|
-
if (options) {
|
|
18
|
-
if (options.theme) {
|
|
19
|
-
(0, _theme.setTheme)(options);
|
|
20
|
-
}
|
|
21
|
-
if (options.zIndex) {
|
|
22
|
-
_domZindex.default.setCurrent(options.zIndex);
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
return _xeUtils.default.merge(_conf.default, options);
|
|
26
|
-
}
|
|
27
|
-
var config = exports.config = setConfig;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.config=void 0,exports.setConfig=setConfig;var _conf=_interopRequireDefault(require("./conf")),_domZindex=_interopRequireDefault(require("dom-zindex")),_xeUtils=_interopRequireDefault(require("xe-utils")),_theme=require("./theme");function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function setConfig(e){return e&&(e.theme&&(0,_theme.setTheme)(e),e.zIndex)&&_domZindex.default.setCurrent(e.zIndex),_xeUtils.default.merge(_conf.default,e)}var config=exports.config=setConfig;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import GlobalConfig from './conf'
|
|
2
|
-
import DomZIndex from 'dom-zindex'
|
|
3
|
-
import XEUtils from 'xe-utils'
|
|
4
|
-
import { setTheme } from './theme'
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* 全局参数设置
|
|
8
|
-
*/
|
|
9
|
-
export function setConfig (options) {
|
|
10
|
-
if (options) {
|
|
11
|
-
if (options.theme) {
|
|
12
|
-
setTheme(options)
|
|
13
|
-
}
|
|
14
|
-
if (options.zIndex) {
|
|
15
|
-
DomZIndex.setCurrent(options.zIndex)
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
return XEUtils.merge(GlobalConfig, options)
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
export const config = setConfig
|
|
@@ -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
|