vxe-pc-ui 4.17.0 → 4.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/dist/all.esm.js +297 -152
- package/dist/style.css +1 -1
- package/dist/style.min.css +1 -1
- 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 +79 -51
- package/es/number-input/src/number-input.js +31 -23
- package/es/password-input/src/password-input.js +133 -62
- 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 +43 -13
- 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 +6 -1
- package/lib/date-picker/src/date-picker.min.js +1 -1
- package/lib/date-range-picker/src/date-range-picker.js +6 -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 +321 -168
- package/lib/index.umd.min.js +1 -1
- package/lib/input/src/input.js +83 -53
- package/lib/input/src/input.min.js +1 -1
- package/lib/number-input/src/number-input.js +35 -25
- package/lib/number-input/src/number-input.min.js +1 -1
- package/lib/password-input/src/password-input.js +140 -71
- 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 +46 -13
- 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 +85 -56
- package/packages/number-input/src/number-input.ts +32 -25
- package/packages/password-input/src/password-input.ts +145 -69
- package/packages/textarea/src/textarea.ts +49 -17
- 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.1786782471977.ttf → iconfont.1786868252000.ttf} +0 -0
- /package/es/icon/{iconfont.1786782471977.woff → iconfont.1786868252000.woff} +0 -0
- /package/es/icon/{iconfont.1786782471977.woff2 → iconfont.1786868252000.woff2} +0 -0
- /package/es/{iconfont.1786782471977.ttf → iconfont.1786868252000.ttf} +0 -0
- /package/es/{iconfont.1786782471977.woff → iconfont.1786868252000.woff} +0 -0
- /package/es/{iconfont.1786782471977.woff2 → iconfont.1786868252000.woff2} +0 -0
- /package/lib/icon/style/{iconfont.1786782471977.ttf → iconfont.1786868252000.ttf} +0 -0
- /package/lib/icon/style/{iconfont.1786782471977.woff → iconfont.1786868252000.woff} +0 -0
- /package/lib/icon/style/{iconfont.1786782471977.woff2 → iconfont.1786868252000.woff2} +0 -0
- /package/lib/{iconfont.1786782471977.ttf → iconfont.1786868252000.ttf} +0 -0
- /package/lib/{iconfont.1786782471977.woff → iconfont.1786868252000.woff} +0 -0
- /package/lib/{iconfont.1786782471977.woff2 → iconfont.1786868252000.woff2} +0 -0
|
@@ -2616,12 +2616,17 @@ export namespace VxeTablePropTypes {
|
|
|
2616
2616
|
* 是否启用缓存,启用后渲染性能的大幅提升,数据越大提升越好
|
|
2617
2617
|
*/
|
|
2618
2618
|
cache?: boolean
|
|
2619
|
+
/**
|
|
2620
|
+
* 启用可复用渲染模式,对于全键盘方式编辑单元格时对中文输入法兼容性较好
|
|
2621
|
+
*/
|
|
2622
|
+
isReuseKeep?: boolean
|
|
2619
2623
|
/**
|
|
2620
2624
|
* 自定义编辑之前逻辑,该方法的返回值用来决定该单元格是否允许编辑
|
|
2621
2625
|
*/
|
|
2622
2626
|
beforeEditMethod?(params: {
|
|
2623
2627
|
$table: VxeTableConstructor<DT> & VxeTablePrivateMethods<DT>
|
|
2624
2628
|
$grid: VxeGridConstructor<DT> | null | undefined
|
|
2629
|
+
$gantt: VxeGanttConstructor | null | undefined
|
|
2625
2630
|
row: DT
|
|
2626
2631
|
rowIndex: number
|
|
2627
2632
|
column: VxeTableDefines.ColumnInfo<DT>
|
|
@@ -2633,6 +2638,7 @@ export namespace VxeTablePropTypes {
|
|
|
2633
2638
|
afterEditMethod?(params: {
|
|
2634
2639
|
$table: VxeTableConstructor<DT> & VxeTablePrivateMethods<DT>
|
|
2635
2640
|
$grid: VxeGridConstructor<DT> | null | undefined
|
|
2641
|
+
$gantt: VxeGanttConstructor | null | undefined
|
|
2636
2642
|
row: DT
|
|
2637
2643
|
rowIndex: number
|
|
2638
2644
|
column: VxeTableDefines.ColumnInfo<DT>
|
|
@@ -2646,6 +2652,7 @@ export namespace VxeTablePropTypes {
|
|
|
2646
2652
|
activeMethod?(params: {
|
|
2647
2653
|
$table: VxeTableConstructor<DT> & VxeTablePrivateMethods<DT>
|
|
2648
2654
|
$grid: VxeGridConstructor<DT> | null | undefined
|
|
2655
|
+
$gantt: VxeGanttConstructor | null | undefined
|
|
2649
2656
|
row: DT
|
|
2650
2657
|
rowIndex: number
|
|
2651
2658
|
column: VxeTableDefines.ColumnInfo<DT>
|
|
@@ -4464,7 +4471,7 @@ export interface TableMethods<DT = any> {
|
|
|
4464
4471
|
/**
|
|
4465
4472
|
* 获取单元格 td 元素
|
|
4466
4473
|
*/
|
|
4467
|
-
getCellElement(row: any, fieldOrColumn: VxeColumnPropTypes.Field | VxeTableDefines.ColumnInfo<any> | null):
|
|
4474
|
+
getCellElement(row: any, fieldOrColumn: VxeColumnPropTypes.Field | VxeTableDefines.ColumnInfo<any> | null): HTMLElement | null
|
|
4468
4475
|
/**
|
|
4469
4476
|
* 获取单元格显示值
|
|
4470
4477
|
*/
|
|
@@ -5848,7 +5855,7 @@ export interface TablePrivateMethods<D = any> {
|
|
|
5848
5855
|
* 已废弃,被 getCellElement 替换
|
|
5849
5856
|
* @deprecated
|
|
5850
5857
|
*/
|
|
5851
|
-
getCell(row: any, column: VxeTableDefines.ColumnInfo<any>): HTMLTableCellElement | null
|
|
5858
|
+
getCell(row: any, column: VxeTableDefines.ColumnInfo<any>): HTMLTableCellElement | HTMLElement | null
|
|
5852
5859
|
/**
|
|
5853
5860
|
* 内部方法
|
|
5854
5861
|
* @private
|
|
@@ -27,6 +27,7 @@ export namespace VxeTextareaPropTypes {
|
|
|
27
27
|
export type Size = VxeComponentSizeType
|
|
28
28
|
export type ModelValue = string | number | null
|
|
29
29
|
export type ClassName = string
|
|
30
|
+
export type InputClassName = string
|
|
30
31
|
export type Immediate = boolean
|
|
31
32
|
export type Name = string
|
|
32
33
|
export type Readonly = boolean
|
|
@@ -78,6 +79,7 @@ export type VxeTextareaProps = {
|
|
|
78
79
|
*/
|
|
79
80
|
modelValue?: VxeTextareaPropTypes.ModelValue
|
|
80
81
|
className?: VxeTextareaPropTypes.ClassName
|
|
82
|
+
inputClassName?: VxeTextareaPropTypes.InputClassName
|
|
81
83
|
immediate?: VxeTextareaPropTypes.Immediate
|
|
82
84
|
/**
|
|
83
85
|
* 原生 name 属性
|
package/types/ui/renderer.d.ts
CHANGED
|
@@ -122,7 +122,7 @@ declare module '@vxe-ui/core' {
|
|
|
122
122
|
/**
|
|
123
123
|
* 表格 - 激活编辑状态时,设置自动聚焦的 class
|
|
124
124
|
*/
|
|
125
|
-
tableAutoFocus?: boolean | string | ((params: VxeGlobalRendererHandles.
|
|
125
|
+
tableAutoFocus?: boolean | string | ((params: VxeGlobalRendererHandles.TableAutoFocusParams) => HTMLElement | null)
|
|
126
126
|
/**
|
|
127
127
|
* 表格 - 激活编辑状态时,设置是否自动选中 tableAutoFocus 指定的元素
|
|
128
128
|
*/
|
|
@@ -205,12 +205,12 @@ declare module '@vxe-ui/core' {
|
|
|
205
205
|
* 已废弃,请使用 tableAutoFocus
|
|
206
206
|
* @deprecated
|
|
207
207
|
*/
|
|
208
|
-
autofocus?: string | ((params: VxeGlobalRendererHandles.
|
|
208
|
+
autofocus?: string | ((params: VxeGlobalRendererHandles.TableAutoFocusParams) => HTMLElement | null)
|
|
209
209
|
/**
|
|
210
210
|
* 已废弃,请使用 tableAutoFocus
|
|
211
211
|
* @deprecated
|
|
212
212
|
*/
|
|
213
|
-
tableAutofocus?: string | ((params: VxeGlobalRendererHandles.
|
|
213
|
+
tableAutofocus?: string | ((params: VxeGlobalRendererHandles.TableAutoFocusParams) => HTMLElement | null)
|
|
214
214
|
/**
|
|
215
215
|
* 已废弃,请使用 tableAutoSelect
|
|
216
216
|
* @deprecated
|
|
@@ -426,6 +426,12 @@ declare module '@vxe-ui/core' {
|
|
|
426
426
|
export interface TableCellCutMethodParams<D = any> extends VxeColumnDefines.CellCutParams<D> {}
|
|
427
427
|
export interface TableCellPasteMethodParams<D = any> extends VxeColumnDefines.CellPasteParams<D> {}
|
|
428
428
|
|
|
429
|
+
export interface TableAutoFocusParams<D = any> {
|
|
430
|
+
$table: VxeTableConstructor<D>
|
|
431
|
+
column: VxeTableDefines.ColumnInfo<D>
|
|
432
|
+
row: D
|
|
433
|
+
}
|
|
434
|
+
|
|
429
435
|
/**
|
|
430
436
|
* @deprecated
|
|
431
437
|
*/
|
|
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
|