vxe-pc-ui 4.17.3 → 4.17.5

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 (162) hide show
  1. package/dist/all.esm.js +119 -71
  2. package/dist/style.css +1 -1
  3. package/dist/style.min.css +1 -1
  4. package/es/icon/style.css +1 -1
  5. package/es/input/src/input.js +10 -2
  6. package/es/language/ar-EG.js +2 -0
  7. package/es/language/de-DE.js +2 -0
  8. package/es/language/en-US.js +2 -0
  9. package/es/language/es-ES.js +2 -0
  10. package/es/language/fr-FR.js +2 -0
  11. package/es/language/hu-HU.js +2 -0
  12. package/es/language/hy-AM.js +2 -0
  13. package/es/language/id-ID.js +2 -0
  14. package/es/language/it-IT.js +2 -0
  15. package/es/language/ja-JP.js +2 -0
  16. package/es/language/ko-KR.js +2 -0
  17. package/es/language/ms-MY.js +2 -0
  18. package/es/language/nb-NO.js +2 -0
  19. package/es/language/pt-BR.js +2 -0
  20. package/es/language/ru-RU.js +2 -0
  21. package/es/language/th-TH.js +2 -0
  22. package/es/language/ug-CN.js +2 -0
  23. package/es/language/uk-UA.js +2 -0
  24. package/es/language/uz-UZ.js +2 -0
  25. package/es/language/vi-VN.js +2 -0
  26. package/es/language/zh-CHT.js +2 -0
  27. package/es/language/zh-CN.js +2 -0
  28. package/es/print/src/print.js +13 -3
  29. package/es/print/src/util.js +27 -5
  30. package/es/style.css +1 -1
  31. package/es/style.min.css +1 -1
  32. package/es/ui/index.js +1 -1
  33. package/es/ui/src/dom.js +7 -1
  34. package/es/ui/src/log.js +1 -1
  35. package/lib/icon/style/style.css +1 -1
  36. package/lib/icon/style/style.min.css +1 -1
  37. package/lib/index.umd.js +76 -13
  38. package/lib/index.umd.min.js +1 -1
  39. package/lib/input/src/input.js +12 -2
  40. package/lib/input/src/input.min.js +1 -1
  41. package/lib/language/ar-EG.js +2 -0
  42. package/lib/language/ar-EG.min.js +1 -1
  43. package/lib/language/ar-EG.umd.js +2 -0
  44. package/lib/language/de-DE.js +2 -0
  45. package/lib/language/de-DE.min.js +1 -1
  46. package/lib/language/de-DE.umd.js +2 -0
  47. package/lib/language/en-US.js +2 -0
  48. package/lib/language/en-US.min.js +1 -1
  49. package/lib/language/en-US.umd.js +2 -0
  50. package/lib/language/es-ES.js +2 -0
  51. package/lib/language/es-ES.min.js +1 -1
  52. package/lib/language/es-ES.umd.js +2 -0
  53. package/lib/language/fr-FR.js +2 -0
  54. package/lib/language/fr-FR.min.js +1 -1
  55. package/lib/language/fr-FR.umd.js +2 -0
  56. package/lib/language/hu-HU.js +2 -0
  57. package/lib/language/hu-HU.min.js +1 -1
  58. package/lib/language/hu-HU.umd.js +2 -0
  59. package/lib/language/hy-AM.js +2 -0
  60. package/lib/language/hy-AM.min.js +1 -1
  61. package/lib/language/hy-AM.umd.js +2 -0
  62. package/lib/language/id-ID.js +2 -0
  63. package/lib/language/id-ID.min.js +1 -1
  64. package/lib/language/id-ID.umd.js +2 -0
  65. package/lib/language/it-IT.js +2 -0
  66. package/lib/language/it-IT.min.js +1 -1
  67. package/lib/language/it-IT.umd.js +2 -0
  68. package/lib/language/ja-JP.js +2 -0
  69. package/lib/language/ja-JP.min.js +1 -1
  70. package/lib/language/ja-JP.umd.js +2 -0
  71. package/lib/language/ko-KR.js +2 -0
  72. package/lib/language/ko-KR.min.js +1 -1
  73. package/lib/language/ko-KR.umd.js +2 -0
  74. package/lib/language/ms-MY.js +2 -0
  75. package/lib/language/ms-MY.min.js +1 -1
  76. package/lib/language/ms-MY.umd.js +2 -0
  77. package/lib/language/nb-NO.js +2 -0
  78. package/lib/language/nb-NO.min.js +1 -1
  79. package/lib/language/nb-NO.umd.js +2 -0
  80. package/lib/language/pt-BR.js +2 -0
  81. package/lib/language/pt-BR.min.js +1 -1
  82. package/lib/language/pt-BR.umd.js +2 -0
  83. package/lib/language/ru-RU.js +2 -0
  84. package/lib/language/ru-RU.min.js +1 -1
  85. package/lib/language/ru-RU.umd.js +2 -0
  86. package/lib/language/th-TH.js +2 -0
  87. package/lib/language/th-TH.min.js +1 -1
  88. package/lib/language/th-TH.umd.js +2 -0
  89. package/lib/language/ug-CN.js +2 -0
  90. package/lib/language/ug-CN.min.js +1 -1
  91. package/lib/language/ug-CN.umd.js +2 -0
  92. package/lib/language/uk-UA.js +2 -0
  93. package/lib/language/uk-UA.min.js +1 -1
  94. package/lib/language/uk-UA.umd.js +2 -0
  95. package/lib/language/uz-UZ.js +2 -0
  96. package/lib/language/uz-UZ.min.js +1 -1
  97. package/lib/language/uz-UZ.umd.js +2 -0
  98. package/lib/language/vi-VN.js +2 -0
  99. package/lib/language/vi-VN.min.js +1 -1
  100. package/lib/language/vi-VN.umd.js +2 -0
  101. package/lib/language/zh-CHT.js +2 -0
  102. package/lib/language/zh-CHT.min.js +1 -1
  103. package/lib/language/zh-CHT.umd.js +2 -0
  104. package/lib/language/zh-CN.js +2 -0
  105. package/lib/language/zh-CN.min.js +1 -1
  106. package/lib/language/zh-CN.umd.js +2 -0
  107. package/lib/print/src/print.js +16 -3
  108. package/lib/print/src/print.min.js +1 -1
  109. package/lib/print/src/util.js +37 -5
  110. package/lib/print/src/util.min.js +1 -1
  111. package/lib/style.css +1 -1
  112. package/lib/style.min.css +1 -1
  113. package/lib/ui/index.js +1 -1
  114. package/lib/ui/index.min.js +1 -1
  115. package/lib/ui/src/dom.js +7 -1
  116. package/lib/ui/src/dom.min.js +1 -1
  117. package/lib/ui/src/log.js +1 -1
  118. package/lib/ui/src/log.min.js +1 -1
  119. package/package.json +1 -1
  120. package/packages/input/src/input.ts +12 -2
  121. package/packages/language/ar-EG.ts +2 -0
  122. package/packages/language/de-DE.ts +2 -0
  123. package/packages/language/en-US.ts +2 -0
  124. package/packages/language/es-ES.ts +2 -0
  125. package/packages/language/fr-FR.ts +2 -0
  126. package/packages/language/hu-HU.ts +2 -0
  127. package/packages/language/hy-AM.ts +2 -0
  128. package/packages/language/id-ID.ts +2 -0
  129. package/packages/language/it-IT.ts +2 -0
  130. package/packages/language/ja-JP.ts +2 -0
  131. package/packages/language/ko-KR.ts +2 -0
  132. package/packages/language/ms-MY.ts +2 -0
  133. package/packages/language/nb-NO.ts +2 -0
  134. package/packages/language/pt-BR.ts +2 -0
  135. package/packages/language/ru-RU.ts +2 -0
  136. package/packages/language/th-TH.ts +2 -0
  137. package/packages/language/ug-CN.ts +2 -0
  138. package/packages/language/uk-UA.ts +2 -0
  139. package/packages/language/uz-UZ.ts +2 -0
  140. package/packages/language/vi-VN.ts +2 -0
  141. package/packages/language/zh-CHT.ts +2 -0
  142. package/packages/language/zh-CN.ts +2 -0
  143. package/packages/print/src/print.ts +13 -4
  144. package/packages/print/src/util.ts +27 -5
  145. package/packages/ui/src/dom.ts +7 -1
  146. package/types/components/column.d.ts +1 -0
  147. package/types/components/gantt.d.ts +31 -5
  148. package/types/components/input.d.ts +6 -0
  149. package/types/components/print.d.ts +44 -5
  150. package/types/components/table.d.ts +29 -3
  151. /package/es/icon/{iconfont.1786945812996.ttf → iconfont.1787124948086.ttf} +0 -0
  152. /package/es/icon/{iconfont.1786945812996.woff → iconfont.1787124948086.woff} +0 -0
  153. /package/es/icon/{iconfont.1786945812996.woff2 → iconfont.1787124948086.woff2} +0 -0
  154. /package/es/{iconfont.1786945812996.ttf → iconfont.1787124948086.ttf} +0 -0
  155. /package/es/{iconfont.1786945812996.woff → iconfont.1787124948086.woff} +0 -0
  156. /package/es/{iconfont.1786945812996.woff2 → iconfont.1787124948086.woff2} +0 -0
  157. /package/lib/icon/style/{iconfont.1786945812996.ttf → iconfont.1787124948086.ttf} +0 -0
  158. /package/lib/icon/style/{iconfont.1786945812996.woff → iconfont.1787124948086.woff} +0 -0
  159. /package/lib/icon/style/{iconfont.1786945812996.woff2 → iconfont.1787124948086.woff2} +0 -0
  160. /package/lib/{iconfont.1786945812996.ttf → iconfont.1787124948086.ttf} +0 -0
  161. /package/lib/{iconfont.1786945812996.woff → iconfont.1787124948086.woff} +0 -0
  162. /package/lib/{iconfont.1786945812996.woff2 → iconfont.1787124948086.woff2} +0 -0
@@ -370,7 +370,7 @@ export namespace VxeGanttPropTypes {
370
370
  /**
371
371
  * 任务条样式
372
372
  */
373
- barStyle?: VxeGanttDefines.BarStyleConfig | ((params: {
373
+ barStyle?: VxeGanttDefines.DefaultBarStyleConfig | ((params: {
374
374
  source: string
375
375
  type: string
376
376
  scaleType: VxeGanttDefines.ColumnScaleType
@@ -379,7 +379,7 @@ export namespace VxeGanttPropTypes {
379
379
  rowIndex: number
380
380
  $rowIndex: number
381
381
  _rowIndex: number
382
- }) => void | null | undefined | VxeGanttDefines.BarStyleConfig)
382
+ }) => void | null | undefined | VxeGanttDefines.DefaultBarStyleConfig)
383
383
  /**
384
384
  * 是否启用拖拽移动日期
385
385
  */
@@ -423,6 +423,18 @@ export namespace VxeGanttPropTypes {
423
423
  * 是否显示图标
424
424
  */
425
425
  showIcon?: boolean
426
+ /**
427
+ * 里程碑任务条样式
428
+ */
429
+ barStyle?: VxeGanttDefines.MilestoneBarStyleConfig | ((params: {
430
+ source: string
431
+ type: string
432
+ scaleType: VxeGanttDefines.ColumnScaleType
433
+ row: D
434
+ rowIndex: number
435
+ $rowIndex: number
436
+ _rowIndex: number
437
+ }) => void | null | undefined | VxeGanttDefines.MilestoneBarStyleConfig)
426
438
  }
427
439
 
428
440
  /**
@@ -440,7 +452,7 @@ export namespace VxeGanttPropTypes {
440
452
  /**
441
453
  * 子视图任务条样式
442
454
  */
443
- barStyle?: VxeGanttDefines.BarStyleConfig | ((params: {
455
+ barStyle?: VxeGanttDefines.SubviewBarStyleConfig | ((params: {
444
456
  source: string
445
457
  type: string
446
458
  scaleType: VxeGanttDefines.ColumnScaleType
@@ -448,7 +460,7 @@ export namespace VxeGanttPropTypes {
448
460
  rowIndex: number
449
461
  $rowIndex: number
450
462
  _rowIndex: number
451
- }) => void | null | undefined | VxeGanttDefines.BarStyleConfig)
463
+ }) => void | null | undefined | VxeGanttDefines.SubviewBarStyleConfig)
452
464
  }
453
465
 
454
466
  export interface TaskBarTooltipConfig<D = any> {
@@ -916,7 +928,7 @@ export namespace VxeGanttDefines {
916
928
  fromRows: D[]
917
929
  }
918
930
 
919
- export interface BarStyleConfig {
931
+ export interface DefaultBarStyleConfig {
920
932
  /**
921
933
  * 圆角
922
934
  */
@@ -943,6 +955,20 @@ export namespace VxeGanttDefines {
943
955
  style?: Partial<CSSStyleDeclaration> | null
944
956
  }
945
957
 
958
+ export interface SubviewBarStyleConfig {
959
+ /**
960
+ * 给任务条附加 style
961
+ */
962
+ style?: Partial<CSSStyleDeclaration> | null
963
+ }
964
+
965
+ export interface MilestoneBarStyleConfig {
966
+ /**
967
+ * 给任务条附加 style
968
+ */
969
+ style?: Partial<CSSStyleDeclaration> | null
970
+ }
971
+
946
972
  export interface GroupColumn<D = any> {
947
973
  scaleItem: ColumnScaleObj
948
974
  columns: ViewColumn<D>[]
@@ -33,6 +33,7 @@ export namespace VxeInputPropTypes {
33
33
  export type Title = string
34
34
  export type Type = 'text' | 'search' | 'number' | 'integer' | 'float' | 'password' | 'date' | 'time' | 'datetime' | 'week' | 'month' | 'quarter' | 'year'
35
35
  export type Clearable = boolean
36
+ export type DelClearable = boolean
36
37
  export type Editable = boolean
37
38
  export type Readonly = boolean
38
39
  export type Disabled = boolean
@@ -101,6 +102,11 @@ export interface VxeInputProps {
101
102
  title?: VxeInputPropTypes.Title
102
103
  type?: VxeInputPropTypes.Type
103
104
  clearable?: VxeInputPropTypes.Clearable
105
+ /**
106
+ * 不建议使用
107
+ * @deprecated
108
+ */
109
+ delClearable?: VxeInputPropTypes.DelClearable
104
110
  readonly?: VxeInputPropTypes.Readonly
105
111
  disabled?: VxeInputPropTypes.Disabled
106
112
  placeholder?: VxeInputPropTypes.Placeholder
@@ -67,16 +67,44 @@ export namespace VxePrintPropTypes {
67
67
  export type FooterHtml = string | ((params: VxePrintDefines.PageBreakParams) => string)
68
68
  export type LeftHtml = string | ((params: VxePrintDefines.PageBreakParams) => string)
69
69
  export type RightHtml = string | ((params: VxePrintDefines.PageBreakParams) => string)
70
+ /**
71
+ * 已废弃,请使用 BeforePrintMethod
72
+ * @deprecated
73
+ */
70
74
  export type BeforeMethod = (params: {
71
75
  html: string
72
76
  options: VxePrintProps
73
77
 
78
+ /**
79
+ * 已废弃,请使用 html
80
+ * @deprecated
81
+ */
82
+ content: string
83
+ }) => string | boolean
84
+ export type BeforePrintMethod = (params: {
85
+ html: string
86
+ options: VxePrintProps
87
+
88
+ /**
89
+ * 已废弃,请使用 html
90
+ * @deprecated
91
+ */
92
+ content: string
93
+ }) => string | boolean
94
+ export type PrintMethod = (params: {
95
+ html: string
96
+ options: VxePrintProps
97
+
74
98
  /**
75
99
  * 已废弃,请使用 html
76
100
  * @deprecated
77
101
  */
78
102
  content: string
79
103
  }) => string
104
+ export type AfterPrintMethod = (params: {
105
+ html: string
106
+ options: VxePrintProps
107
+ }) => void
80
108
  }
81
109
 
82
110
  export interface VxePrintProps {
@@ -102,7 +130,23 @@ export interface VxePrintProps {
102
130
  rightHtml?: VxePrintPropTypes.RightHtml
103
131
  pageBreaks?: VxePrintPropTypes.PageBreaks
104
132
  showAllPageTitle?: VxePrintPropTypes.ShowAllPageTitle
133
+ /**
134
+ * 已废弃,请使用 beforePrintMethod
135
+ * @deprecated
136
+ */
105
137
  beforeMethod?: VxePrintPropTypes.BeforeMethod
138
+ /**
139
+ * 打印之前的方法,可以返回 false 阻止打印行为
140
+ */
141
+ beforePrintMethod?: VxePrintPropTypes.BeforePrintMethod
142
+ /**
143
+ * 自定义打印方法,可以通过返回自定义打印的内容
144
+ */
145
+ printMethod?: VxePrintPropTypes.PrintMethod
146
+ /**
147
+ * 打印之后的方法
148
+ */
149
+ afterPrintMethod?: VxePrintPropTypes.AfterPrintMethod
106
150
 
107
151
  /**
108
152
  * 已废弃,请使用 html
@@ -170,11 +214,6 @@ export namespace VxePrintDefines {
170
214
  * @deprecated
171
215
  */
172
216
  style?: string
173
- /**
174
- * 请使用 customStyle
175
- * @deprecated
176
- */
177
- beforePrintMethod?: VxePrintPropTypes.BeforeMethod
178
217
  }) => Promise<{
179
218
  status: boolean
180
219
  }>
@@ -3041,7 +3041,7 @@ export namespace VxeTablePropTypes {
3041
3041
  beforeImportMethod?(params: {
3042
3042
  $table: VxeTableConstructor
3043
3043
  options: any
3044
- }): void
3044
+ }): boolean
3045
3045
  afterImportMethod?(params: {
3046
3046
  $table: VxeTableConstructor
3047
3047
  options: any
@@ -3241,7 +3241,7 @@ export namespace VxeTablePropTypes {
3241
3241
  $grid: VxeGridConstructor | null | undefined
3242
3242
  $gantt: VxeGanttConstructor | null | undefined
3243
3243
  options: ExportHandleOptions
3244
- }): void
3244
+ }): boolean
3245
3245
  afterExportMethod?(params: {
3246
3246
  $table: VxeTableConstructor
3247
3247
  $grid: VxeGridConstructor | null | undefined
@@ -3292,7 +3292,7 @@ export namespace VxeTablePropTypes {
3292
3292
  */
3293
3293
  html?: string
3294
3294
  /**
3295
- * 打印之前的方法,可以通过返回自定义打印的内容
3295
+ * 打印之前的方法,可以通过返回自false阻止打印
3296
3296
  */
3297
3297
  beforePrintMethod?(params: {
3298
3298
  $table: VxeTableConstructor
@@ -3306,6 +3306,32 @@ export namespace VxeTablePropTypes {
3306
3306
  * @deprecated
3307
3307
  */
3308
3308
  content: string
3309
+ }): string | boolean
3310
+ /**
3311
+ * 自定义打印方法,可以通过返回自定义打印的内容
3312
+ */
3313
+ printMethod?(params: {
3314
+ $table: VxeTableConstructor
3315
+ $grid: VxeGridConstructor | null | undefined
3316
+ $gantt: VxeGanttConstructor | null | undefined
3317
+ html: string
3318
+ options: PrintHandleOptions
3319
+
3320
+ /**
3321
+ * 已被 html 替换
3322
+ * @deprecated
3323
+ */
3324
+ content: string
3325
+ }): string
3326
+ /**
3327
+ * 打印之后的方法
3328
+ */
3329
+ afterPrintMethod?(params: {
3330
+ $table: VxeTableConstructor
3331
+ $grid: VxeGridConstructor | null | undefined
3332
+ $gantt: VxeGanttConstructor | null | undefined
3333
+ html: string
3334
+ options: PrintHandleOptions
3309
3335
  }): string
3310
3336
 
3311
3337
  /**