vxe-pc-ui 4.6.0 → 4.6.2
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/README.md +1 -0
- package/es/form/render/index.js +48 -8
- package/es/form/src/form-item.js +1 -0
- package/es/form/src/form.js +5 -1
- package/es/form/src/itemInfo.js +18 -0
- package/es/form/src/render.js +45 -5
- package/es/form/style.css +3 -0
- package/es/form/style.min.css +1 -1
- package/es/icon/style.css +1 -1
- package/es/language/ar-EG.js +3 -0
- package/es/language/de-DE.js +3 -0
- package/es/language/en-US.js +3 -0
- package/es/language/es-ES.js +3 -0
- package/es/language/fr-FR.js +3 -0
- package/es/language/hu-HU.js +3 -0
- package/es/language/hy-AM.js +3 -0
- package/es/language/id-ID.js +3 -0
- package/es/language/it-IT.js +3 -0
- package/es/language/ja-JP.js +3 -0
- package/es/language/ko-KR.js +3 -0
- package/es/language/ms-MY.js +3 -0
- package/es/language/nb-NO.js +3 -0
- package/es/language/pt-BR.js +3 -0
- package/es/language/ru-RU.js +3 -0
- package/es/language/th-TH.js +3 -0
- package/es/language/ug-CN.js +3 -0
- package/es/language/uk-UA.js +3 -0
- package/es/language/uz-UZ.js +3 -0
- package/es/language/vi-VN.js +3 -0
- package/es/language/zh-CHT.js +3 -0
- package/es/language/zh-CN.js +3 -0
- package/es/style.css +1 -1
- package/es/style.min.css +1 -1
- package/es/ui/index.js +1 -1
- package/es/ui/src/log.js +1 -1
- package/es/vxe-form/style.css +3 -0
- package/es/vxe-form/style.min.css +1 -1
- package/helper/vetur/attributes.json +1 -1
- package/helper/vetur/tags.json +1 -1
- package/lib/form/render/index.js +56 -8
- package/lib/form/render/index.min.js +1 -1
- package/lib/form/src/form-item.js +1 -0
- package/lib/form/src/form-item.min.js +1 -1
- package/lib/form/src/form.js +5 -1
- package/lib/form/src/form.min.js +1 -1
- package/lib/form/src/itemInfo.js +19 -0
- package/lib/form/src/itemInfo.min.js +1 -1
- package/lib/form/src/render.js +45 -3
- package/lib/form/src/render.min.js +1 -1
- package/lib/form/style/style.css +3 -0
- package/lib/form/style/style.min.css +1 -1
- package/lib/icon/style/style.css +1 -1
- package/lib/icon/style/style.min.css +1 -1
- package/lib/index.umd.js +136 -16
- package/lib/index.umd.min.js +1 -1
- package/lib/language/ar-EG.js +3 -0
- package/lib/language/ar-EG.min.js +1 -1
- package/lib/language/ar-EG.umd.js +3 -0
- package/lib/language/de-DE.js +3 -0
- package/lib/language/de-DE.min.js +1 -1
- package/lib/language/de-DE.umd.js +3 -0
- package/lib/language/en-US.js +3 -0
- package/lib/language/en-US.min.js +1 -1
- package/lib/language/en-US.umd.js +3 -0
- package/lib/language/es-ES.js +3 -0
- package/lib/language/es-ES.min.js +1 -1
- package/lib/language/es-ES.umd.js +3 -0
- package/lib/language/fr-FR.js +3 -0
- package/lib/language/fr-FR.min.js +1 -1
- package/lib/language/fr-FR.umd.js +3 -0
- package/lib/language/hu-HU.js +3 -0
- package/lib/language/hu-HU.min.js +1 -1
- package/lib/language/hu-HU.umd.js +3 -0
- package/lib/language/hy-AM.js +3 -0
- package/lib/language/hy-AM.min.js +1 -1
- package/lib/language/hy-AM.umd.js +3 -0
- package/lib/language/id-ID.js +3 -0
- package/lib/language/id-ID.min.js +1 -1
- package/lib/language/id-ID.umd.js +3 -0
- package/lib/language/it-IT.js +3 -0
- package/lib/language/it-IT.min.js +1 -1
- package/lib/language/it-IT.umd.js +3 -0
- package/lib/language/ja-JP.js +3 -0
- package/lib/language/ja-JP.min.js +1 -1
- package/lib/language/ja-JP.umd.js +3 -0
- package/lib/language/ko-KR.js +3 -0
- package/lib/language/ko-KR.min.js +1 -1
- package/lib/language/ko-KR.umd.js +3 -0
- package/lib/language/ms-MY.js +3 -0
- package/lib/language/ms-MY.min.js +1 -1
- package/lib/language/ms-MY.umd.js +3 -0
- package/lib/language/nb-NO.js +3 -0
- package/lib/language/nb-NO.min.js +1 -1
- package/lib/language/nb-NO.umd.js +3 -0
- package/lib/language/pt-BR.js +3 -0
- package/lib/language/pt-BR.min.js +1 -1
- package/lib/language/pt-BR.umd.js +3 -0
- package/lib/language/ru-RU.js +3 -0
- package/lib/language/ru-RU.min.js +1 -1
- package/lib/language/ru-RU.umd.js +3 -0
- package/lib/language/th-TH.js +3 -0
- package/lib/language/th-TH.min.js +1 -1
- package/lib/language/th-TH.umd.js +3 -0
- package/lib/language/ug-CN.js +3 -0
- package/lib/language/ug-CN.min.js +1 -1
- package/lib/language/ug-CN.umd.js +3 -0
- package/lib/language/uk-UA.js +3 -0
- package/lib/language/uk-UA.min.js +1 -1
- package/lib/language/uk-UA.umd.js +3 -0
- package/lib/language/uz-UZ.js +3 -0
- package/lib/language/uz-UZ.min.js +1 -1
- package/lib/language/uz-UZ.umd.js +3 -0
- package/lib/language/vi-VN.js +3 -0
- package/lib/language/vi-VN.min.js +1 -1
- package/lib/language/vi-VN.umd.js +3 -0
- package/lib/language/zh-CHT.js +3 -0
- package/lib/language/zh-CHT.min.js +1 -1
- package/lib/language/zh-CHT.umd.js +3 -0
- package/lib/language/zh-CN.js +3 -0
- package/lib/language/zh-CN.min.js +1 -1
- package/lib/language/zh-CN.umd.js +3 -0
- package/lib/style.css +1 -1
- package/lib/style.min.css +1 -1
- package/lib/ui/index.js +1 -1
- package/lib/ui/index.min.js +1 -1
- package/lib/ui/src/log.js +1 -1
- package/lib/ui/src/log.min.js +1 -1
- package/lib/vxe-form/style/style.css +3 -0
- package/lib/vxe-form/style/style.min.css +1 -1
- package/package.json +1 -1
- package/packages/form/render/index.ts +55 -7
- package/packages/form/src/form-item.ts +1 -0
- package/packages/form/src/form.ts +5 -1
- package/packages/form/src/itemInfo.ts +18 -0
- package/packages/form/src/render.ts +44 -5
- package/packages/language/ar-EG.ts +3 -0
- package/packages/language/de-DE.ts +3 -0
- package/packages/language/en-US.ts +3 -0
- package/packages/language/es-ES.ts +3 -0
- package/packages/language/fr-FR.ts +3 -0
- package/packages/language/hu-HU.ts +3 -0
- package/packages/language/hy-AM.ts +3 -0
- package/packages/language/id-ID.ts +3 -0
- package/packages/language/it-IT.ts +3 -0
- package/packages/language/ja-JP.ts +3 -0
- package/packages/language/ko-KR.ts +3 -0
- package/packages/language/ms-MY.ts +3 -0
- package/packages/language/nb-NO.ts +3 -0
- package/packages/language/pt-BR.ts +3 -0
- package/packages/language/ru-RU.ts +3 -0
- package/packages/language/th-TH.ts +3 -0
- package/packages/language/ug-CN.ts +3 -0
- package/packages/language/uk-UA.ts +3 -0
- package/packages/language/uz-UZ.ts +3 -0
- package/packages/language/vi-VN.ts +3 -0
- package/packages/language/zh-CHT.ts +3 -0
- package/packages/language/zh-CN.ts +3 -0
- package/styles/components/form.scss +3 -0
- package/types/components/column.d.ts +9 -0
- package/types/components/form-item.d.ts +17 -0
- package/types/components/form.d.ts +8 -0
- package/types/ui/formats.d.ts +14 -0
- /package/es/icon/{iconfont.1746782659171.ttf → iconfont.1746880516307.ttf} +0 -0
- /package/es/icon/{iconfont.1746782659171.woff → iconfont.1746880516307.woff} +0 -0
- /package/es/icon/{iconfont.1746782659171.woff2 → iconfont.1746880516307.woff2} +0 -0
- /package/es/{iconfont.1746782659171.ttf → iconfont.1746880516307.ttf} +0 -0
- /package/es/{iconfont.1746782659171.woff → iconfont.1746880516307.woff} +0 -0
- /package/es/{iconfont.1746782659171.woff2 → iconfont.1746880516307.woff2} +0 -0
- /package/lib/icon/style/{iconfont.1746782659171.ttf → iconfont.1746880516307.ttf} +0 -0
- /package/lib/icon/style/{iconfont.1746782659171.woff → iconfont.1746880516307.woff} +0 -0
- /package/lib/icon/style/{iconfont.1746782659171.woff2 → iconfont.1746880516307.woff2} +0 -0
- /package/lib/{iconfont.1746782659171.ttf → iconfont.1746880516307.ttf} +0 -0
- /package/lib/{iconfont.1746782659171.woff → iconfont.1746880516307.woff} +0 -0
- /package/lib/{iconfont.1746782659171.woff2 → iconfont.1746880516307.woff2} +0 -0
|
@@ -247,6 +247,7 @@
|
|
|
247
247
|
.vxe-number-input,
|
|
248
248
|
.vxe-password-input,
|
|
249
249
|
.vxe-date-picker,
|
|
250
|
+
.vxe-date-range-picker,
|
|
250
251
|
.vxe-textarea,
|
|
251
252
|
.vxe-select,
|
|
252
253
|
.vxe-tree-select,
|
|
@@ -260,6 +261,7 @@
|
|
|
260
261
|
.vxe-number-input,
|
|
261
262
|
.vxe-password-input,
|
|
262
263
|
.vxe-date-picker,
|
|
264
|
+
.vxe-date-range-picker,
|
|
263
265
|
.vxe-textarea > .vxe-textarea--inner,
|
|
264
266
|
.vxe-upload .vxe-upload--image-action-box,
|
|
265
267
|
.vxe-upload .vxe-upload--file-action-btn > .vxe-button,
|
|
@@ -276,6 +278,7 @@
|
|
|
276
278
|
.vxe-number-input,
|
|
277
279
|
.vxe-password-input,
|
|
278
280
|
.vxe-date-picker,
|
|
281
|
+
.vxe-date-range-picker,
|
|
279
282
|
.vxe-textarea>.vxe-textarea--inner,
|
|
280
283
|
.vxe-default-input[type="text"],
|
|
281
284
|
.vxe-default-input[type="search"],
|
|
@@ -131,6 +131,9 @@ export namespace VxeColumnPropTypes {
|
|
|
131
131
|
*/
|
|
132
132
|
children?: any[]
|
|
133
133
|
|
|
134
|
+
startField?: string
|
|
135
|
+
endField?: string
|
|
136
|
+
|
|
134
137
|
enabled?: boolean
|
|
135
138
|
options?: any[]
|
|
136
139
|
optionProps?: VxeGlobalRendererHandles.RenderOptionProps
|
|
@@ -219,6 +222,9 @@ export namespace VxeColumnPropTypes {
|
|
|
219
222
|
*/
|
|
220
223
|
children?: any[]
|
|
221
224
|
|
|
225
|
+
startField?: string
|
|
226
|
+
endField?: string
|
|
227
|
+
|
|
222
228
|
events?: Record<string, (cellParams: VxeColumnSlotTypes.DefaultSlotParams<D>, ...args: any[]) => any>
|
|
223
229
|
options?: any[]
|
|
224
230
|
optionProps?: VxeGlobalRendererHandles.RenderOptionProps
|
|
@@ -253,6 +259,9 @@ export namespace VxeColumnPropTypes {
|
|
|
253
259
|
*/
|
|
254
260
|
children?: any[]
|
|
255
261
|
|
|
262
|
+
startField?: string
|
|
263
|
+
endField?: string
|
|
264
|
+
|
|
256
265
|
events?: Record<string, (cellParams: VxeColumnSlotTypes.EditSlotParams<D>, ...args: any[]) => any>
|
|
257
266
|
enabled?: boolean
|
|
258
267
|
options?: any[]
|
|
@@ -70,6 +70,15 @@ export namespace VxeFormItemPropTypes {
|
|
|
70
70
|
|
|
71
71
|
export type TitleOverflow = VxeFormPropTypes.TitleOverflow
|
|
72
72
|
|
|
73
|
+
export type Formatter<D = any> = string | ((params: {
|
|
74
|
+
$grid: VxeGridConstructor | null | undefined
|
|
75
|
+
$form: VxeFormConstructor<D>
|
|
76
|
+
data: D
|
|
77
|
+
item: VxeFormDefines.ItemInfo
|
|
78
|
+
field: string
|
|
79
|
+
itemValue: any
|
|
80
|
+
}) => string | number)
|
|
81
|
+
|
|
73
82
|
export type ResetValue = string | number | any[] | object | RegExp | null | undefined | ((params: {
|
|
74
83
|
$grid: VxeGridConstructor | null | undefined
|
|
75
84
|
$form: VxeFormConstructor
|
|
@@ -115,6 +124,10 @@ export namespace VxeFormItemPropTypes {
|
|
|
115
124
|
key?: string
|
|
116
125
|
}
|
|
117
126
|
children?: any[]
|
|
127
|
+
|
|
128
|
+
startField?: string
|
|
129
|
+
endField?: string
|
|
130
|
+
|
|
118
131
|
/**
|
|
119
132
|
* 渲染组件的内容(需要渲染器支持)
|
|
120
133
|
*/
|
|
@@ -217,6 +230,10 @@ export interface VxeFormItemProps<D = any> {
|
|
|
217
230
|
*/
|
|
218
231
|
titleSuffix?: VxeFormItemPropTypes.TitleSuffix
|
|
219
232
|
titleOverflow?: VxeFormItemPropTypes.TitleOverflow
|
|
233
|
+
/**
|
|
234
|
+
* 格式化显示内容
|
|
235
|
+
*/
|
|
236
|
+
formatter?: VxeFormItemPropTypes.Formatter
|
|
220
237
|
/**
|
|
221
238
|
* 重置时的默认值
|
|
222
239
|
*/
|
|
@@ -146,6 +146,13 @@ export interface FormInternalData {
|
|
|
146
146
|
item: VxeFormDefines.ItemInfo | null
|
|
147
147
|
visible: boolean
|
|
148
148
|
}
|
|
149
|
+
itemFormatCache: Record<string, {
|
|
150
|
+
field: string
|
|
151
|
+
formatData?: {
|
|
152
|
+
value?: any
|
|
153
|
+
label?: any
|
|
154
|
+
}
|
|
155
|
+
}>
|
|
149
156
|
}
|
|
150
157
|
|
|
151
158
|
export interface FormMethods<D = any> {
|
|
@@ -257,6 +264,7 @@ export namespace VxeFormDefines {
|
|
|
257
264
|
readonly: VxeFormItemPropTypes.Readonly
|
|
258
265
|
itemRender: VxeFormItemPropTypes.ItemRender
|
|
259
266
|
rules: VxeFormItemPropTypes.Rules
|
|
267
|
+
formatter: VxeFormItemPropTypes.Formatter
|
|
260
268
|
// 渲染属性
|
|
261
269
|
showError: boolean
|
|
262
270
|
errRule: any
|
package/types/ui/formats.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { VxeFormDefines } from '../components/form'
|
|
1
2
|
import { VxeTableDefines } from '../components/table'
|
|
2
3
|
|
|
3
4
|
/* eslint-disable no-use-before-define */
|
|
@@ -5,6 +6,10 @@ import { VxeTableDefines } from '../components/table'
|
|
|
5
6
|
declare module '@vxe-ui/core' {
|
|
6
7
|
export namespace VxeGlobalFormatsHandles {
|
|
7
8
|
export interface FormatsOptions {
|
|
9
|
+
/**
|
|
10
|
+
* 表单 - 自定义表单项格式化方法
|
|
11
|
+
*/
|
|
12
|
+
formItemFormatMethod?: (params: FormItemFormatMethodParams, ...args: any[]) => string | number
|
|
8
13
|
/**
|
|
9
14
|
* 表格 - 自定义单元格格式化方法
|
|
10
15
|
*/
|
|
@@ -20,11 +25,20 @@ declare module '@vxe-ui/core' {
|
|
|
20
25
|
*/
|
|
21
26
|
cellFormatMethod?: (params: TableCellFormatMethodParams, ...args: any[]) => string | number
|
|
22
27
|
}
|
|
28
|
+
|
|
29
|
+
export interface FormItemFormatMethodParams {
|
|
30
|
+
itemValue: any
|
|
31
|
+
data: any
|
|
32
|
+
item: VxeFormDefines.ItemInfo
|
|
33
|
+
field: string
|
|
34
|
+
}
|
|
35
|
+
|
|
23
36
|
export interface TableCellFormatMethodParams {
|
|
24
37
|
cellValue: any
|
|
25
38
|
row: any
|
|
26
39
|
column: VxeTableDefines.ColumnInfo
|
|
27
40
|
}
|
|
41
|
+
|
|
28
42
|
export interface TableFooterCellFormatMethodParams {
|
|
29
43
|
itemValue: any
|
|
30
44
|
column: VxeTableDefines.ColumnInfo
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|