vxe-pc-ui 3.17.0 → 3.17.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/es/date-picker/src/date-picker.js +6 -2
- package/es/date-range-picker/src/date-range-picker.js +6 -2
- package/es/icon/style.css +1 -1
- package/es/input/src/input.js +9 -4
- package/es/number-input/src/number-input.js +12 -1
- package/es/password-input/src/password-input.js +75 -27
- package/es/password-input/style.css +5 -0
- package/es/password-input/style.min.css +1 -1
- package/es/style.css +1 -1
- package/es/style.min.css +1 -1
- package/es/textarea/src/textarea.js +6 -2
- package/es/ui/index.js +1 -1
- package/es/ui/src/log.js +1 -1
- package/es/vxe-password-input/style.css +5 -0
- package/es/vxe-password-input/style.min.css +1 -1
- package/lib/date-picker/src/date-picker.js +8 -1
- package/lib/date-picker/src/date-picker.min.js +1 -1
- package/lib/date-range-picker/src/date-range-picker.js +8 -1
- package/lib/date-range-picker/src/date-range-picker.min.js +1 -1
- package/lib/icon/style/style.css +1 -1
- package/lib/icon/style/style.min.css +1 -1
- package/lib/index.umd.js +128 -39
- package/lib/index.umd.min.js +1 -1
- package/lib/input/src/input.js +11 -4
- package/lib/input/src/input.min.js +1 -1
- package/lib/number-input/src/number-input.js +14 -1
- package/lib/number-input/src/number-input.min.js +1 -1
- package/lib/password-input/src/password-input.js +74 -27
- package/lib/password-input/src/password-input.min.js +1 -1
- package/lib/password-input/style/style.css +5 -0
- package/lib/password-input/style/style.min.css +1 -1
- package/lib/style.css +1 -1
- package/lib/style.min.css +1 -1
- package/lib/textarea/src/textarea.js +8 -1
- package/lib/textarea/src/textarea.min.js +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-password-input/style/style.css +5 -0
- package/lib/vxe-password-input/style/style.min.css +1 -1
- package/package.json +1 -1
- package/packages/date-picker/src/date-picker.ts +6 -2
- package/packages/date-range-picker/src/date-range-picker.ts +6 -2
- package/packages/input/src/input.ts +9 -4
- package/packages/number-input/src/number-input.ts +16 -4
- package/packages/password-input/src/password-input.ts +78 -28
- package/packages/textarea/src/textarea.ts +6 -2
- package/styles/components/password-input.scss +4 -0
- package/types/components/date-picker.d.ts +2 -0
- package/types/components/date-range-picker.d.ts +2 -0
- package/types/components/input.d.ts +2 -0
- package/types/components/number-input.d.ts +2 -0
- package/types/components/password-input.d.ts +4 -0
- package/types/components/table-module/edit.d.ts +37 -4
- package/types/components/table.d.ts +9 -2
- package/types/components/textarea.d.ts +2 -0
- package/types/ui/renderer.d.ts +9 -3
- /package/es/icon/{iconfont.1786782457000.ttf → iconfont.1786868233929.ttf} +0 -0
- /package/es/icon/{iconfont.1786782457000.woff → iconfont.1786868233929.woff} +0 -0
- /package/es/icon/{iconfont.1786782457000.woff2 → iconfont.1786868233929.woff2} +0 -0
- /package/es/{iconfont.1786782457000.ttf → iconfont.1786868233929.ttf} +0 -0
- /package/es/{iconfont.1786782457000.woff → iconfont.1786868233929.woff} +0 -0
- /package/es/{iconfont.1786782457000.woff2 → iconfont.1786868233929.woff2} +0 -0
- /package/lib/icon/style/{iconfont.1786782457000.ttf → iconfont.1786868233929.ttf} +0 -0
- /package/lib/icon/style/{iconfont.1786782457000.woff → iconfont.1786868233929.woff} +0 -0
- /package/lib/icon/style/{iconfont.1786782457000.woff2 → iconfont.1786868233929.woff2} +0 -0
- /package/lib/{iconfont.1786782457000.ttf → iconfont.1786868233929.ttf} +0 -0
- /package/lib/{iconfont.1786782457000.woff → iconfont.1786868233929.woff} +0 -0
- /package/lib/{iconfont.1786782457000.woff2 → iconfont.1786868233929.woff2} +0 -0
|
@@ -22,6 +22,7 @@ export namespace VxeDatePickerPropTypes {
|
|
|
22
22
|
export type Size = VxeComponentSizeType
|
|
23
23
|
export type ModelValue = string | number | Date | null
|
|
24
24
|
export type ClassName = string
|
|
25
|
+
export type InputClassName = string
|
|
25
26
|
export type Immediate = boolean
|
|
26
27
|
export type Name = string
|
|
27
28
|
export type Type = VxeDatePanelPropTypes.Type
|
|
@@ -140,6 +141,7 @@ export interface VxeDatePickerProps {
|
|
|
140
141
|
size?: VxeDatePickerPropTypes.Size
|
|
141
142
|
value?: VxeDatePickerPropTypes.ModelValue
|
|
142
143
|
className?: VxeDatePickerPropTypes.ClassName
|
|
144
|
+
inputClassName?: VxeDatePickerPropTypes.InputClassName
|
|
143
145
|
immediate?: VxeDatePickerPropTypes.Immediate
|
|
144
146
|
name?: VxeDatePickerPropTypes.Name
|
|
145
147
|
type?: VxeDatePickerPropTypes.Type
|
|
@@ -24,6 +24,7 @@ export namespace VxeDateRangePickerPropTypes {
|
|
|
24
24
|
export type StartValue = string | number | Date | null
|
|
25
25
|
export type EndValue = string | number | Date | null
|
|
26
26
|
export type ClassName = string
|
|
27
|
+
export type InputClassName = string
|
|
27
28
|
export type Immediate = boolean
|
|
28
29
|
export type Name = string
|
|
29
30
|
export type Type = VxeDatePanelPropTypes.Type
|
|
@@ -125,6 +126,7 @@ export interface VxeDateRangePickerProps {
|
|
|
125
126
|
startValue?: VxeDateRangePickerPropTypes.StartValue
|
|
126
127
|
endValue?: VxeDateRangePickerPropTypes.EndValue
|
|
127
128
|
className?: VxeDateRangePickerPropTypes.ClassName
|
|
129
|
+
inputClassName?: VxeDateRangePickerPropTypes.InputClassName
|
|
128
130
|
immediate?: VxeDateRangePickerPropTypes.Immediate
|
|
129
131
|
name?: VxeDateRangePickerPropTypes.Name
|
|
130
132
|
type?: VxeDateRangePickerPropTypes.Type
|
|
@@ -19,6 +19,7 @@ export namespace VxeInputPropTypes {
|
|
|
19
19
|
export type Size = VxeComponentSizeType
|
|
20
20
|
export type ModelValue = string | number | Date | undefined | null
|
|
21
21
|
export type ClassName = string
|
|
22
|
+
export type InputClassName = string
|
|
22
23
|
export type Immediate = boolean
|
|
23
24
|
export type Name = string
|
|
24
25
|
export type Title = string
|
|
@@ -86,6 +87,7 @@ export interface VxeInputProps {
|
|
|
86
87
|
size?: VxeInputPropTypes.Size
|
|
87
88
|
value?: VxeInputPropTypes.ModelValue
|
|
88
89
|
className?: VxeInputPropTypes.ClassName
|
|
90
|
+
inputClassName?: VxeInputPropTypes.InputClassName
|
|
89
91
|
immediate?: VxeInputPropTypes.Immediate
|
|
90
92
|
name?: VxeInputPropTypes.Name
|
|
91
93
|
title?: VxeInputPropTypes.Title
|
|
@@ -19,6 +19,7 @@ export namespace VxeNumberInputPropTypes {
|
|
|
19
19
|
export type Size = VxeComponentSizeType
|
|
20
20
|
export type ModelValue = string | number | null
|
|
21
21
|
export type ClassName = string
|
|
22
|
+
export type InputClassName = string
|
|
22
23
|
export type Immediate = boolean
|
|
23
24
|
export type Name = string
|
|
24
25
|
export type Type = 'number' | 'integer' | 'float' | 'amount'
|
|
@@ -105,6 +106,7 @@ export interface VxeNumberInputProps {
|
|
|
105
106
|
size?: VxeNumberInputPropTypes.Size
|
|
106
107
|
value?: VxeNumberInputPropTypes.ModelValue
|
|
107
108
|
className?: VxeNumberInputPropTypes.ClassName
|
|
109
|
+
inputClassName?: VxeNumberInputPropTypes.InputClassName
|
|
108
110
|
immediate?: VxeNumberInputPropTypes.Immediate
|
|
109
111
|
name?: VxeNumberInputPropTypes.Name
|
|
110
112
|
type?: VxeNumberInputPropTypes.Type
|
|
@@ -19,6 +19,7 @@ export namespace VxePasswordInputPropTypes {
|
|
|
19
19
|
export type Size = VxeComponentSizeType
|
|
20
20
|
export type ModelValue = string | null
|
|
21
21
|
export type Immediate = boolean
|
|
22
|
+
export type InputClassName = string
|
|
22
23
|
export type ClassName = string
|
|
23
24
|
export type Name = string
|
|
24
25
|
export type Clearable = boolean
|
|
@@ -30,6 +31,7 @@ export namespace VxePasswordInputPropTypes {
|
|
|
30
31
|
export type PrefixIcon = string
|
|
31
32
|
export type SuffixIcon = string
|
|
32
33
|
export type Controls = boolean
|
|
34
|
+
export type Editable = boolean
|
|
33
35
|
/**
|
|
34
36
|
* 请使用 AutoComplete
|
|
35
37
|
* @deprecated
|
|
@@ -42,6 +44,7 @@ export interface VxePasswordInputProps {
|
|
|
42
44
|
value?: VxePasswordInputPropTypes.ModelValue
|
|
43
45
|
immediate?: VxePasswordInputPropTypes.Immediate
|
|
44
46
|
className?: VxePasswordInputPropTypes.ClassName
|
|
47
|
+
inputClassName?: VxePasswordInputPropTypes.InputClassName
|
|
45
48
|
name?: VxePasswordInputPropTypes.Name
|
|
46
49
|
clearable?: VxePasswordInputPropTypes.Clearable
|
|
47
50
|
readonly?: VxePasswordInputPropTypes.Readonly
|
|
@@ -52,6 +55,7 @@ export interface VxePasswordInputProps {
|
|
|
52
55
|
prefixIcon?: VxePasswordInputPropTypes.PrefixIcon
|
|
53
56
|
suffixIcon?: VxePasswordInputPropTypes.SuffixIcon
|
|
54
57
|
controls?: VxePasswordInputPropTypes.Controls
|
|
58
|
+
editable?: VxePasswordInputPropTypes.Editable
|
|
55
59
|
/**
|
|
56
60
|
* 请使用 AutoComplete
|
|
57
61
|
* @deprecated
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { VxeTableDefines } from '../table'
|
|
1
|
+
import { VxeTableConstructor, VxeTableDefines } from '../table'
|
|
2
2
|
|
|
3
3
|
/* eslint-disable @typescript-eslint/no-unused-vars,no-use-before-define */
|
|
4
4
|
|
|
@@ -208,7 +208,17 @@ export interface TableEditPrivateMethods<D = any> {
|
|
|
208
208
|
/**
|
|
209
209
|
* @private
|
|
210
210
|
*/
|
|
211
|
-
handleEdit(params:
|
|
211
|
+
handleEdit(params: {
|
|
212
|
+
$table: VxeTableConstructor<D>
|
|
213
|
+
column: VxeTableDefines.ColumnInfo<D>
|
|
214
|
+
columnIndex: number
|
|
215
|
+
_columnIndex: number
|
|
216
|
+
$columnIndex: number
|
|
217
|
+
row: D
|
|
218
|
+
rowIndex: number
|
|
219
|
+
$rowIndex: number
|
|
220
|
+
_rowIndex: number
|
|
221
|
+
}, evnt: any, options?: {
|
|
212
222
|
isClear?: boolean
|
|
213
223
|
}): Promise<any>
|
|
214
224
|
/**
|
|
@@ -218,11 +228,34 @@ export interface TableEditPrivateMethods<D = any> {
|
|
|
218
228
|
/**
|
|
219
229
|
* @private
|
|
220
230
|
*/
|
|
221
|
-
|
|
231
|
+
handleCellFocus(cell: HTMLElement, params: {
|
|
232
|
+
$table: VxeTableConstructor<D>
|
|
233
|
+
column: VxeTableDefines.ColumnInfo<D>
|
|
234
|
+
row: D
|
|
235
|
+
}): HTMLInputElement | null
|
|
236
|
+
/**
|
|
237
|
+
* @private
|
|
238
|
+
*/
|
|
239
|
+
handleFocus(params: {
|
|
240
|
+
$table: VxeTableConstructor<D>
|
|
241
|
+
column: VxeTableDefines.ColumnInfo<D>
|
|
242
|
+
row: D
|
|
243
|
+
cell: HTMLElement
|
|
244
|
+
}, evnt?: Event | null): void
|
|
222
245
|
/**
|
|
223
246
|
* @private
|
|
224
247
|
*/
|
|
225
|
-
handleSelected(params:
|
|
248
|
+
handleSelected(params: {
|
|
249
|
+
$table: VxeTableConstructor<D>
|
|
250
|
+
column: VxeTableDefines.ColumnInfo<D>
|
|
251
|
+
columnIndex: number
|
|
252
|
+
_columnIndex: number
|
|
253
|
+
$columnIndex: number
|
|
254
|
+
row: D
|
|
255
|
+
rowIndex: number
|
|
256
|
+
$rowIndex: number
|
|
257
|
+
_rowIndex: number
|
|
258
|
+
}, evnt: Event | null): Promise<any>
|
|
226
259
|
/**
|
|
227
260
|
* @private
|
|
228
261
|
*/
|
|
@@ -2579,12 +2579,17 @@ export namespace VxeTablePropTypes {
|
|
|
2579
2579
|
* 是否启用缓存,启用后渲染性能的大幅提升,数据越大提升越好
|
|
2580
2580
|
*/
|
|
2581
2581
|
cache?: boolean
|
|
2582
|
+
/**
|
|
2583
|
+
* 启用可复用渲染模式,对于全键盘方式编辑单元格时对中文输入法兼容性较好
|
|
2584
|
+
*/
|
|
2585
|
+
isReuseKeep?: boolean
|
|
2582
2586
|
/**
|
|
2583
2587
|
* 自定义编辑之前逻辑,该方法的返回值用来决定该单元格是否允许编辑
|
|
2584
2588
|
*/
|
|
2585
2589
|
beforeEditMethod?(params: {
|
|
2586
2590
|
$table: VxeTableConstructor<DT> & VxeTablePrivateMethods<DT>
|
|
2587
2591
|
$grid: VxeGridConstructor<DT> | null | undefined
|
|
2592
|
+
$gantt: VxeGanttConstructor | null | undefined
|
|
2588
2593
|
row: DT
|
|
2589
2594
|
rowIndex: number
|
|
2590
2595
|
column: VxeTableDefines.ColumnInfo<DT>
|
|
@@ -2596,6 +2601,7 @@ export namespace VxeTablePropTypes {
|
|
|
2596
2601
|
afterEditMethod?(params: {
|
|
2597
2602
|
$table: VxeTableConstructor<DT> & VxeTablePrivateMethods<DT>
|
|
2598
2603
|
$grid: VxeGridConstructor<DT> | null | undefined
|
|
2604
|
+
$gantt: VxeGanttConstructor | null | undefined
|
|
2599
2605
|
row: DT
|
|
2600
2606
|
rowIndex: number
|
|
2601
2607
|
column: VxeTableDefines.ColumnInfo<DT>
|
|
@@ -2609,6 +2615,7 @@ export namespace VxeTablePropTypes {
|
|
|
2609
2615
|
activeMethod?(params: {
|
|
2610
2616
|
$table: VxeTableConstructor<DT> & VxeTablePrivateMethods<DT>
|
|
2611
2617
|
$grid: VxeGridConstructor<DT> | null | undefined
|
|
2618
|
+
$gantt: VxeGanttConstructor | null | undefined
|
|
2612
2619
|
row: DT
|
|
2613
2620
|
rowIndex: number
|
|
2614
2621
|
column: VxeTableDefines.ColumnInfo<DT>
|
|
@@ -4484,7 +4491,7 @@ export interface TableMethods<DT = any> {
|
|
|
4484
4491
|
/**
|
|
4485
4492
|
* 获取单元格 td 元素
|
|
4486
4493
|
*/
|
|
4487
|
-
getCellElement(row: any, fieldOrColumn: VxeColumnPropTypes.Field | VxeTableDefines.ColumnInfo<any> | null):
|
|
4494
|
+
getCellElement(row: any, fieldOrColumn: VxeColumnPropTypes.Field | VxeTableDefines.ColumnInfo<any> | null): HTMLElement | null
|
|
4488
4495
|
/**
|
|
4489
4496
|
* 获取单元格显示值
|
|
4490
4497
|
*/
|
|
@@ -5870,7 +5877,7 @@ export interface TablePrivateMethods<D = any> {
|
|
|
5870
5877
|
* 已废弃,被 getCellElement 替换
|
|
5871
5878
|
* @deprecated
|
|
5872
5879
|
*/
|
|
5873
|
-
getCell(row: any, column: VxeTableDefines.ColumnInfo<any>): HTMLTableCellElement | null
|
|
5880
|
+
getCell(row: any, column: VxeTableDefines.ColumnInfo<any>): HTMLTableCellElement | HTMLElement | null
|
|
5874
5881
|
/**
|
|
5875
5882
|
* 内部方法
|
|
5876
5883
|
* @private
|
|
@@ -19,6 +19,7 @@ export namespace VxeTextareaPropTypes {
|
|
|
19
19
|
export type Size = VxeComponentSizeType
|
|
20
20
|
export type ModelValue = string | number | null
|
|
21
21
|
export type ClassName = string
|
|
22
|
+
export type InputClassName = string
|
|
22
23
|
export type Immediate = boolean
|
|
23
24
|
export type Name = string
|
|
24
25
|
export type Readonly = boolean
|
|
@@ -70,6 +71,7 @@ export interface VxeTextareaProps {
|
|
|
70
71
|
*/
|
|
71
72
|
value?: VxeTextareaPropTypes.ModelValue
|
|
72
73
|
className?: VxeTextareaPropTypes.ClassName
|
|
74
|
+
inputClassName?: VxeTextareaPropTypes.InputClassName
|
|
73
75
|
immediate?: VxeTextareaPropTypes.Immediate
|
|
74
76
|
/**
|
|
75
77
|
* 原生 name 属性
|
package/types/ui/renderer.d.ts
CHANGED
|
@@ -123,7 +123,7 @@ declare module '@vxe-ui/core' {
|
|
|
123
123
|
/**
|
|
124
124
|
* 表格 - 激活编辑状态时,设置自动聚焦的 class
|
|
125
125
|
*/
|
|
126
|
-
tableAutoFocus?: boolean | string | ((params: VxeGlobalRendererHandles.
|
|
126
|
+
tableAutoFocus?: boolean | string | ((params: VxeGlobalRendererHandles.TableAutoFocusParams) => HTMLElement | null)
|
|
127
127
|
/**
|
|
128
128
|
* 表格 - 激活编辑状态时,设置是否自动选中 tableAutoFocus 指定的元素
|
|
129
129
|
*/
|
|
@@ -206,12 +206,12 @@ declare module '@vxe-ui/core' {
|
|
|
206
206
|
* 已废弃,请使用 tableAutoFocus
|
|
207
207
|
* @deprecated
|
|
208
208
|
*/
|
|
209
|
-
autofocus?: string | ((params: VxeGlobalRendererHandles.
|
|
209
|
+
autofocus?: string | ((params: VxeGlobalRendererHandles.TableAutoFocusParams) => HTMLElement | null)
|
|
210
210
|
/**
|
|
211
211
|
* 已废弃,请使用 tableAutoFocus
|
|
212
212
|
* @deprecated
|
|
213
213
|
*/
|
|
214
|
-
tableAutofocus?: string | ((params: VxeGlobalRendererHandles.
|
|
214
|
+
tableAutofocus?: string | ((params: VxeGlobalRendererHandles.TableAutoFocusParams) => HTMLElement | null)
|
|
215
215
|
/**
|
|
216
216
|
* 已废弃,请使用 tableAutoSelect
|
|
217
217
|
* @deprecated
|
|
@@ -427,6 +427,12 @@ declare module '@vxe-ui/core' {
|
|
|
427
427
|
export interface TableCellCutMethodParams<D = any> extends VxeColumnDefines.CellCutParams<D> {}
|
|
428
428
|
export interface TableCellPasteMethodParams<D = any> extends VxeColumnDefines.CellPasteParams<D> {}
|
|
429
429
|
|
|
430
|
+
export interface TableAutoFocusParams<D = any> {
|
|
431
|
+
$table: VxeTableConstructor<D>
|
|
432
|
+
column: VxeTableDefines.ColumnInfo<D>
|
|
433
|
+
row: D
|
|
434
|
+
}
|
|
435
|
+
|
|
430
436
|
/**
|
|
431
437
|
* @deprecated
|
|
432
438
|
*/
|
|
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
|