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.
Files changed (73) hide show
  1. package/dist/all.esm.js +297 -152
  2. package/dist/style.css +1 -1
  3. package/dist/style.min.css +1 -1
  4. package/es/date-picker/src/date-picker.js +6 -2
  5. package/es/date-range-picker/src/date-range-picker.js +6 -2
  6. package/es/icon/style.css +1 -1
  7. package/es/input/src/input.js +79 -51
  8. package/es/number-input/src/number-input.js +31 -23
  9. package/es/password-input/src/password-input.js +133 -62
  10. package/es/password-input/style.css +5 -0
  11. package/es/password-input/style.min.css +1 -1
  12. package/es/style.css +1 -1
  13. package/es/style.min.css +1 -1
  14. package/es/textarea/src/textarea.js +43 -13
  15. package/es/ui/index.js +1 -1
  16. package/es/ui/src/log.js +1 -1
  17. package/es/vxe-password-input/style.css +5 -0
  18. package/es/vxe-password-input/style.min.css +1 -1
  19. package/lib/date-picker/src/date-picker.js +6 -1
  20. package/lib/date-picker/src/date-picker.min.js +1 -1
  21. package/lib/date-range-picker/src/date-range-picker.js +6 -1
  22. package/lib/date-range-picker/src/date-range-picker.min.js +1 -1
  23. package/lib/icon/style/style.css +1 -1
  24. package/lib/icon/style/style.min.css +1 -1
  25. package/lib/index.umd.js +321 -168
  26. package/lib/index.umd.min.js +1 -1
  27. package/lib/input/src/input.js +83 -53
  28. package/lib/input/src/input.min.js +1 -1
  29. package/lib/number-input/src/number-input.js +35 -25
  30. package/lib/number-input/src/number-input.min.js +1 -1
  31. package/lib/password-input/src/password-input.js +140 -71
  32. package/lib/password-input/src/password-input.min.js +1 -1
  33. package/lib/password-input/style/style.css +5 -0
  34. package/lib/password-input/style/style.min.css +1 -1
  35. package/lib/style.css +1 -1
  36. package/lib/style.min.css +1 -1
  37. package/lib/textarea/src/textarea.js +46 -13
  38. package/lib/textarea/src/textarea.min.js +1 -1
  39. package/lib/ui/index.js +1 -1
  40. package/lib/ui/index.min.js +1 -1
  41. package/lib/ui/src/log.js +1 -1
  42. package/lib/ui/src/log.min.js +1 -1
  43. package/lib/vxe-password-input/style/style.css +5 -0
  44. package/lib/vxe-password-input/style/style.min.css +1 -1
  45. package/package.json +1 -1
  46. package/packages/date-picker/src/date-picker.ts +6 -2
  47. package/packages/date-range-picker/src/date-range-picker.ts +6 -2
  48. package/packages/input/src/input.ts +85 -56
  49. package/packages/number-input/src/number-input.ts +32 -25
  50. package/packages/password-input/src/password-input.ts +145 -69
  51. package/packages/textarea/src/textarea.ts +49 -17
  52. package/styles/components/password-input.scss +4 -0
  53. package/types/components/date-picker.d.ts +2 -0
  54. package/types/components/date-range-picker.d.ts +2 -0
  55. package/types/components/input.d.ts +2 -0
  56. package/types/components/number-input.d.ts +2 -0
  57. package/types/components/password-input.d.ts +4 -0
  58. package/types/components/table-module/edit.d.ts +37 -4
  59. package/types/components/table.d.ts +9 -2
  60. package/types/components/textarea.d.ts +2 -0
  61. package/types/ui/renderer.d.ts +9 -3
  62. /package/es/icon/{iconfont.1786782471977.ttf → iconfont.1786868252000.ttf} +0 -0
  63. /package/es/icon/{iconfont.1786782471977.woff → iconfont.1786868252000.woff} +0 -0
  64. /package/es/icon/{iconfont.1786782471977.woff2 → iconfont.1786868252000.woff2} +0 -0
  65. /package/es/{iconfont.1786782471977.ttf → iconfont.1786868252000.ttf} +0 -0
  66. /package/es/{iconfont.1786782471977.woff → iconfont.1786868252000.woff} +0 -0
  67. /package/es/{iconfont.1786782471977.woff2 → iconfont.1786868252000.woff2} +0 -0
  68. /package/lib/icon/style/{iconfont.1786782471977.ttf → iconfont.1786868252000.ttf} +0 -0
  69. /package/lib/icon/style/{iconfont.1786782471977.woff → iconfont.1786868252000.woff} +0 -0
  70. /package/lib/icon/style/{iconfont.1786782471977.woff2 → iconfont.1786868252000.woff2} +0 -0
  71. /package/lib/{iconfont.1786782471977.ttf → iconfont.1786868252000.ttf} +0 -0
  72. /package/lib/{iconfont.1786782471977.woff → iconfont.1786868252000.woff} +0 -0
  73. /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): HTMLTableCellElement | 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 属性
@@ -122,7 +122,7 @@ declare module '@vxe-ui/core' {
122
122
  /**
123
123
  * 表格 - 激活编辑状态时,设置自动聚焦的 class
124
124
  */
125
- tableAutoFocus?: boolean | string | ((params: VxeGlobalRendererHandles.RenderTableEditParams<any> | VxeGlobalRendererHandles.RenderTableCellParams<any>) => HTMLElement | null)
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.RenderTableEditParams<any> | VxeGlobalRendererHandles.RenderTableCellParams<any>) => HTMLElement | null)
208
+ autofocus?: string | ((params: VxeGlobalRendererHandles.TableAutoFocusParams) => HTMLElement | null)
209
209
  /**
210
210
  * 已废弃,请使用 tableAutoFocus
211
211
  * @deprecated
212
212
  */
213
- tableAutofocus?: string | ((params: VxeGlobalRendererHandles.RenderTableEditParams<any> | VxeGlobalRendererHandles.RenderTableCellParams<any>) => HTMLElement | null)
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
  */