vxe-pc-ui 4.9.14 → 4.9.16

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 (61) hide show
  1. package/es/countdown/src/countdown.js +2 -1
  2. package/es/icon/style.css +1 -1
  3. package/es/input/src/input.js +1 -1
  4. package/es/slider/src/slider.js +7 -1
  5. package/es/style.css +1 -1
  6. package/es/style.min.css +1 -1
  7. package/es/text/src/text.js +93 -30
  8. package/es/text/style.css +13 -8
  9. package/es/text/style.min.css +1 -1
  10. package/es/ui/index.js +1 -1
  11. package/es/ui/src/log.js +1 -1
  12. package/es/vxe-text/style.css +13 -8
  13. package/es/vxe-text/style.min.css +1 -1
  14. package/lib/countdown/src/countdown.js +4 -1
  15. package/lib/countdown/src/countdown.min.js +1 -1
  16. package/lib/icon/style/style.css +1 -1
  17. package/lib/icon/style/style.min.css +1 -1
  18. package/lib/index.umd.js +108 -22
  19. package/lib/index.umd.min.js +1 -1
  20. package/lib/input/src/input.js +1 -1
  21. package/lib/input/src/input.min.js +1 -1
  22. package/lib/slider/src/slider.js +13 -1
  23. package/lib/slider/src/slider.min.js +1 -1
  24. package/lib/style.css +1 -1
  25. package/lib/style.min.css +1 -1
  26. package/lib/text/src/text.js +86 -16
  27. package/lib/text/src/text.min.js +1 -1
  28. package/lib/text/style/style.css +13 -8
  29. package/lib/text/style/style.min.css +1 -1
  30. package/lib/ui/index.js +1 -1
  31. package/lib/ui/index.min.js +1 -1
  32. package/lib/ui/src/log.js +1 -1
  33. package/lib/ui/src/log.min.js +1 -1
  34. package/lib/vxe-text/style/style.css +13 -8
  35. package/lib/vxe-text/style/style.min.css +1 -1
  36. package/package.json +2 -2
  37. package/packages/countdown/src/countdown.ts +2 -1
  38. package/packages/input/src/input.ts +1 -1
  39. package/packages/slider/src/slider.ts +7 -1
  40. package/packages/text/src/text.ts +95 -24
  41. package/styles/components/text.scss +13 -5
  42. package/types/components/column.d.ts +1 -1
  43. package/types/components/gantt-plugins/extend-gantt-chart.d.ts +22 -0
  44. package/types/components/gantt-plugins/index.d.ts +1 -0
  45. package/types/components/gantt.d.ts +43 -0
  46. package/types/components/slider.d.ts +28 -1
  47. package/types/components/table-plugins/extend-cell-area.d.ts +2 -0
  48. package/types/components/table.d.ts +41 -0
  49. package/types/components/text.d.ts +20 -1
  50. /package/es/icon/{iconfont.1756870596899.ttf → iconfont.1757082114285.ttf} +0 -0
  51. /package/es/icon/{iconfont.1756870596899.woff → iconfont.1757082114285.woff} +0 -0
  52. /package/es/icon/{iconfont.1756870596899.woff2 → iconfont.1757082114285.woff2} +0 -0
  53. /package/es/{iconfont.1756870596899.ttf → iconfont.1757082114285.ttf} +0 -0
  54. /package/es/{iconfont.1756870596899.woff → iconfont.1757082114285.woff} +0 -0
  55. /package/es/{iconfont.1756870596899.woff2 → iconfont.1757082114285.woff2} +0 -0
  56. /package/lib/icon/style/{iconfont.1756870596899.ttf → iconfont.1757082114285.ttf} +0 -0
  57. /package/lib/icon/style/{iconfont.1756870596899.woff → iconfont.1757082114285.woff} +0 -0
  58. /package/lib/icon/style/{iconfont.1756870596899.woff2 → iconfont.1757082114285.woff2} +0 -0
  59. /package/lib/{iconfont.1756870596899.ttf → iconfont.1757082114285.ttf} +0 -0
  60. /package/lib/{iconfont.1756870596899.woff → iconfont.1757082114285.woff} +0 -0
  61. /package/lib/{iconfont.1756870596899.woff2 → iconfont.1757082114285.woff2} +0 -0
@@ -0,0 +1 @@
1
+ export * from './extend-gantt-chart'
@@ -196,6 +196,46 @@ export namespace VxeGanttPropTypes {
196
196
  $gantt: VxeGanttConstructor<D>
197
197
  row: D
198
198
  }) => BarStyleConfig)
199
+ /**
200
+ * 是否启用拖拽移动日期
201
+ */
202
+ drag?: boolean
203
+ /**
204
+ * 是否启用拖拽调整日期
205
+ */
206
+ resize?: boolean
207
+ }
208
+ export interface TaskResizeConfig<D = any> {
209
+ /**
210
+ * 拖拽开始时是否允许行拖拽调整任务条日期的方法,该方法的返回值用来决定是否允许被拖拽
211
+ */
212
+ resizeStartMethod?(params: {
213
+ $gantt: VxeGanttConstructor<D>
214
+ row: D
215
+ }): boolean
216
+ /**
217
+ * 拖拽结束时是否允许行拖拽调整任务条日期的方法,该方法的返回值用来决定是否允许被拖拽调整日期范围
218
+ */
219
+ resizeEndMethod?(params: {
220
+ $gantt: VxeGanttConstructor<D>
221
+ row: D
222
+ }): Promise<boolean> | boolean
223
+ }
224
+ export interface TaskDragConfig<D = any> {
225
+ /**
226
+ * 拖拽开始时是否允许行拖拽移动任务条日期的方法,该方法的返回值用来决定是否允许被拖拽
227
+ */
228
+ dragStartMethod?(params: {
229
+ $gantt: VxeGanttConstructor<D>
230
+ row: D
231
+ }): boolean
232
+ /**
233
+ * 拖拽结束时是否允许行拖拽移动任务条日期的方法,该方法的返回值用来决定是否允许被拖拽移动到指定日期
234
+ */
235
+ dragEndMethod?(params: {
236
+ $gantt: VxeGanttConstructor<D>
237
+ row: D
238
+ }): Promise<boolean> | boolean
199
239
  }
200
240
  }
201
241
 
@@ -206,6 +246,8 @@ export interface VxeGanttProps<D = any> extends Omit<VxeGridProps<D>, 'layouts'>
206
246
  taskViewConfig?: VxeGanttPropTypes.TaskViewConfig<D>
207
247
  taskSplitConfig?: VxeGanttPropTypes.TaskSplitConfig
208
248
  taskBarConfig?: VxeGanttPropTypes.TaskBarConfig<D>
249
+ taskResizeConfig?: VxeGanttPropTypes.TaskResizeConfig<D>
250
+ taskDragConfig?: VxeGanttPropTypes.TaskDragConfig<D>
209
251
  }
210
252
 
211
253
  export interface GanttPrivateComputed<D = any> extends GridPrivateComputed<D> {
@@ -446,6 +488,7 @@ export interface VxeGanttSlots<D = any> extends VxeGridSlots<D> {
446
488
  }
447
489
 
448
490
  export * from './gantt-module'
491
+ export * from './gantt-plugins'
449
492
 
450
493
  export const Gantt: typeof VxeGantt
451
494
  export default VxeGantt
@@ -66,25 +66,52 @@ export interface VxeSliderPrivateMethods extends SliderPrivateMethods { }
66
66
 
67
67
  export type VxeSliderEmits = [
68
68
  'update:modelValue',
69
- 'change'
69
+ 'change',
70
+ 'track-dragstart',
71
+ 'track-dragover',
72
+ 'track-dragend'
70
73
  ]
71
74
 
72
75
  export namespace VxeSliderDefines {
73
76
  export interface SliderEventParams extends VxeComponentEventParams {
74
77
  $slider: VxeSliderConstructor
75
78
  }
79
+
80
+ export interface ChangeEventParams extends SliderEventParams {
81
+ startValue: number
82
+ endValue: number
83
+ }
84
+
85
+ export interface TrackDragstartEventParams extends SliderEventParams {
86
+ startValue: number
87
+ endValue: number
88
+ }
89
+ export interface TrackDragoverEventParams extends TrackDragstartEventParams {}
90
+ export interface TrackDragendEventParams extends TrackDragstartEventParams {}
76
91
  }
77
92
 
78
93
  export type VxeSliderEventProps = {
79
94
  'onUpdate:modelValue'?: VxeSliderEvents.UpdateModelValue
95
+ onChange?: VxeSliderEvents.Change
96
+ onTrackDragstart?: VxeSliderEvents.TrackDragstart
97
+ onTrackDragover?: VxeSliderEvents.TrackDragover
98
+ onTrackDragend?: VxeSliderEvents.TrackDragend
80
99
  }
81
100
 
82
101
  export interface VxeSliderListeners {
83
102
  'update:modelValue'?: VxeSliderEvents.UpdateModelValue
103
+ change?: VxeSliderEvents.Change
104
+ trackDragstart?: VxeSliderEvents.TrackDragstart
105
+ trackDragover?: VxeSliderEvents.TrackDragover
106
+ trackDragend?: VxeSliderEvents.TrackDragend
84
107
  }
85
108
 
86
109
  export namespace VxeSliderEvents {
87
110
  export type UpdateModelValue = (modelValue: VxeSliderPropTypes.ModelValue) => void
111
+ export type Change = (params: VxeSliderDefines.ChangeEventParams) => void
112
+ export type TrackDragstart = (params: VxeSliderDefines.TrackDragstartEventParams) => void
113
+ export type TrackDragover = (params: VxeSliderDefines.TrackDragoverEventParams) => void
114
+ export type TrackDragend = (params: VxeSliderDefines.TrackDragendEventParams) => void
88
115
  }
89
116
 
90
117
  export namespace VxeSliderSlotTypes {
@@ -180,6 +180,8 @@ declare module '../table' {
180
180
  _r?: boolean
181
181
  } | null
182
182
 
183
+ trialElem?: HTMLElement | null
184
+
183
185
  _msTout?: any
184
186
  _isCAEd?: boolean
185
187
 
@@ -3655,6 +3655,7 @@ export interface TableReactData<D = any> {
3655
3655
  column: any
3656
3656
  content: any
3657
3657
  visible: boolean,
3658
+ type: null | 'header' | 'body' | 'footer'
3658
3659
  currOpts: {
3659
3660
  useHTML?: VxeTooltipPropTypes.UseHTML
3660
3661
  enterable?: VxeTooltipPropTypes.Enterable
@@ -4668,6 +4669,16 @@ export interface TableMethods<DT = any> {
4668
4669
  * 设置行分组
4669
4670
  */
4670
4671
  setRowGroups (fieldOrColumns: (VxeColumnPropTypes.Field | VxeTableDefines.ColumnInfo)[] | VxeColumnPropTypes.Field | VxeTableDefines.ColumnInfo | null): Promise<void>
4672
+ /**
4673
+ * 获取行分组列信息
4674
+ */
4675
+ getRowGroups (): ({
4676
+ field: VxeColumnPropTypes.Field
4677
+ } | VxeTableDefines.ColumnInfo)[]
4678
+ /**
4679
+ * 获取行分组列字段
4680
+ */
4681
+ getRowGroupFields (): VxeColumnPropTypes.Field[]
4671
4682
  /**
4672
4683
  * 清除行分组
4673
4684
  */
@@ -6582,6 +6593,21 @@ export namespace VxeTableSlotTypes {
6582
6593
  groupField: string
6583
6594
  childCount: number
6584
6595
  }
6596
+
6597
+ export interface HeaderTooltipSlotParams<D = any> {
6598
+ column: VxeTableDefines.ColumnInfo<D>
6599
+ tooltipContent: string
6600
+ }
6601
+ export interface TooltipSlotParams<D = any> {
6602
+ row: D
6603
+ column: VxeTableDefines.ColumnInfo<D>
6604
+ tooltipContent: string
6605
+ }
6606
+ export interface FooterTooltipSlotParams<D = any> {
6607
+ row: any
6608
+ column: VxeTableDefines.ColumnInfo<D>
6609
+ tooltipContent: string
6610
+ }
6585
6611
  }
6586
6612
 
6587
6613
  export interface VxeTableSlots<D = any> {
@@ -6622,6 +6648,21 @@ export interface VxeTableSlots<D = any> {
6622
6648
  */
6623
6649
  columnDragIcon?: (params: VxeTableSlotTypes.ColumnDragIconSlotParams<D>) => any
6624
6650
  'column-drag-icon'?: (params: VxeTableSlotTypes.ColumnDragIconSlotParams<D>) => any
6651
+
6652
+ /**
6653
+ * 用于 show-header-overflow=tooltip,自定义表头单元格提示内容模板
6654
+ */
6655
+ headerTooltip?: (params: VxeTableSlotTypes.HeaderTooltipSlotParams<D>) => any
6656
+ 'header-tooltip'?: (params: VxeTableSlotTypes.HeaderTooltipSlotParams<D>) => any
6657
+ /**
6658
+ * 用于 show-overflow=tooltip,自定义单元格提示内容模板
6659
+ */
6660
+ tooltip?: (params: VxeTableSlotTypes.TooltipSlotParams<D>) => any
6661
+ /**
6662
+ * 用于 show-footer-overflow=tooltip,自定义表尾单元格提示内容模板
6663
+ */
6664
+ footerTooltip?: (params: VxeTableSlotTypes.FooterTooltipSlotParams<D>) => any
6665
+ 'footer-tooltip'?: (params: VxeTableSlotTypes.FooterTooltipSlotParams<D>) => any
6625
6666
  }
6626
6667
 
6627
6668
  export * from './table-module'
@@ -26,19 +26,36 @@ export namespace VxeTextPropTypes {
26
26
  export type Status = VxeComponentStatusType
27
27
  export type Title = string | number
28
28
  export type Icon = string
29
+ export type PrefixIcon = string
30
+ export type SuffixIcon = string
29
31
  export type Loading = boolean
30
32
  export type Content = string | number
33
+ export type CopyIcon = string
31
34
  export type ClickToCopy = boolean
35
+ export type CopyLayout = 'left' | 'right' | '' | null
32
36
  export type Size = VxeComponentSizeType
33
37
  }
34
38
 
35
39
  export type VxeTextProps = {
36
40
  status?: VxeTextPropTypes.Status
37
41
  title?: VxeTextPropTypes.Title
42
+ /**
43
+ * 前缀图标,属于 prefix-icon 的简写
44
+ */
38
45
  icon?: VxeTextPropTypes.Icon
46
+ /**
47
+ * 前缀图标
48
+ */
49
+ prefixIcon?: VxeTextPropTypes.PrefixIcon
50
+ /**
51
+ * 后缀图标
52
+ */
53
+ suffixIcon?: VxeTextPropTypes.SuffixIcon
39
54
  loading?: VxeTextPropTypes.Loading
40
55
  content?: VxeTextPropTypes.Content
56
+ copyIcon?: VxeTextPropTypes.CopyIcon
41
57
  clickToCopy?: VxeTextPropTypes.ClickToCopy
58
+ copyLayout?: VxeTextPropTypes.CopyLayout
42
59
  size?: VxeTextPropTypes.Size
43
60
  }
44
61
 
@@ -58,7 +75,9 @@ export interface TextPrivateMethods { }
58
75
  export interface VxeTextPrivateMethods extends TextPrivateMethods { }
59
76
 
60
77
  export type VxeTextEmits = [
61
- 'click'
78
+ 'click',
79
+ 'prefix-click',
80
+ 'suffix-click'
62
81
  ]
63
82
 
64
83
  export namespace VxeTextDefines {