vxe-pc-ui 3.5.2 → 3.5.4

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/icon/style.css +1 -1
  2. package/es/list/src/list.js +3 -2
  3. package/es/print/src/util.js +2 -1
  4. package/es/split/src/split-item.js +22 -2
  5. package/es/split/src/split.js +241 -52
  6. package/es/split/style.css +75 -15
  7. package/es/split/style.min.css +1 -1
  8. package/es/style.css +1 -1
  9. package/es/style.min.css +1 -1
  10. package/es/ui/index.js +7 -2
  11. package/es/ui/src/dom.js +0 -1
  12. package/es/ui/src/log.js +1 -1
  13. package/es/vxe-split/style.css +75 -15
  14. package/es/vxe-split/style.min.css +1 -1
  15. package/lib/icon/style/style.css +1 -1
  16. package/lib/icon/style/style.min.css +1 -1
  17. package/lib/index.umd.js +317 -56
  18. package/lib/index.umd.min.js +1 -1
  19. package/lib/list/src/list.js +2 -1
  20. package/lib/list/src/list.min.js +1 -1
  21. package/lib/print/src/util.js +2 -1
  22. package/lib/print/src/util.min.js +1 -1
  23. package/lib/split/src/split-item.js +22 -2
  24. package/lib/split/src/split-item.min.js +1 -1
  25. package/lib/split/src/split.js +281 -48
  26. package/lib/split/src/split.min.js +1 -1
  27. package/lib/split/style/style.css +75 -15
  28. package/lib/split/style/style.min.css +1 -1
  29. package/lib/style.css +1 -1
  30. package/lib/style.min.css +1 -1
  31. package/lib/ui/index.js +7 -2
  32. package/lib/ui/index.min.js +1 -1
  33. package/lib/ui/src/dom.js +0 -2
  34. package/lib/ui/src/dom.min.js +1 -1
  35. package/lib/ui/src/log.js +1 -1
  36. package/lib/ui/src/log.min.js +1 -1
  37. package/lib/vxe-split/style/style.css +75 -15
  38. package/lib/vxe-split/style/style.min.css +1 -1
  39. package/package.json +1 -1
  40. package/packages/list/src/list.ts +4 -2
  41. package/packages/print/src/util.ts +3 -1
  42. package/packages/split/src/split-item.ts +24 -2
  43. package/packages/split/src/split.ts +252 -52
  44. package/packages/ui/index.ts +7 -1
  45. package/packages/ui/src/dom.ts +0 -2
  46. package/styles/components/split.scss +98 -15
  47. package/types/components/split-item.d.ts +5 -1
  48. package/types/components/split.d.ts +87 -1
  49. package/types/ui/global-icon.d.ts +6 -0
  50. /package/es/icon/{iconfont.1743056503870.ttf → iconfont.1743125681770.ttf} +0 -0
  51. /package/es/icon/{iconfont.1743056503870.woff → iconfont.1743125681770.woff} +0 -0
  52. /package/es/icon/{iconfont.1743056503870.woff2 → iconfont.1743125681770.woff2} +0 -0
  53. /package/es/{iconfont.1743056503870.ttf → iconfont.1743125681770.ttf} +0 -0
  54. /package/es/{iconfont.1743056503870.woff → iconfont.1743125681770.woff} +0 -0
  55. /package/es/{iconfont.1743056503870.woff2 → iconfont.1743125681770.woff2} +0 -0
  56. /package/lib/icon/style/{iconfont.1743056503870.ttf → iconfont.1743125681770.ttf} +0 -0
  57. /package/lib/icon/style/{iconfont.1743056503870.woff → iconfont.1743125681770.woff} +0 -0
  58. /package/lib/icon/style/{iconfont.1743056503870.woff2 → iconfont.1743125681770.woff2} +0 -0
  59. /package/lib/{iconfont.1743056503870.ttf → iconfont.1743125681770.ttf} +0 -0
  60. /package/lib/{iconfont.1743056503870.woff → iconfont.1743125681770.woff} +0 -0
  61. /package/lib/{iconfont.1743056503870.woff2 → iconfont.1743125681770.woff2} +0 -0
@@ -1,5 +1,5 @@
1
1
  import { DefineVxeComponentApp, DefineVxeComponentOptions, DefineVxeComponentInstance, VxeComponentEventParams, ValueOf } from '@vxe-ui/core'
2
- import { VxeSplitItemProps } from './split-item'
2
+ import { VxeSplitItemProps, VxeSplitItemPropTypes } from './split-item'
3
3
 
4
4
  /* eslint-disable @typescript-eslint/no-empty-interface,no-use-before-define,@typescript-eslint/ban-types */
5
5
 
@@ -26,6 +26,33 @@ export namespace VxeSplitPropTypes {
26
26
  minWidth?: string | number
27
27
  minHeight?: string | number
28
28
  }
29
+ export interface BarConfig {
30
+ width?: string | number
31
+ height?: string | number
32
+ }
33
+ export interface ActionConfig {
34
+ /**
35
+ * 是否启用
36
+ */
37
+ enabled?: boolean
38
+ /**
39
+ * 触发方式
40
+ */
41
+ trigger?: 'click' | 'dblclick' | '' | null
42
+ /**
43
+ * 折叠方向
44
+ * 支持向前和向后折叠
45
+ */
46
+ direction?: 'prev' | 'next' | '' | null
47
+ /**
48
+ * 自定义展开图标
49
+ */
50
+ openIcon?: string
51
+ /**
52
+ * 自定义关闭图标
53
+ */
54
+ closeIcon?: string
55
+ }
29
56
  }
30
57
 
31
58
  export type VxeSplitProps = {
@@ -35,10 +62,15 @@ export type VxeSplitProps = {
35
62
  vertical?: VxeSplitPropTypes.Vertical
36
63
  border?: VxeSplitPropTypes.Border
37
64
  itemConfig?: VxeSplitPropTypes.ItemConfig
65
+ barConfig?: VxeSplitPropTypes.BarConfig
66
+ actionConfig?: VxeSplitPropTypes.ActionConfig
38
67
  }
39
68
 
40
69
  export interface SplitPrivateComputed {
41
70
  computeItemOpts: VxeSplitPropTypes.ItemConfig
71
+ computeBarOpts: VxeSplitPropTypes.BarConfig
72
+ computeActionOpts: VxeSplitPropTypes.ActionConfig
73
+ computeIsFoldNext: boolean
42
74
  }
43
75
  export interface VxeSplitPrivateComputed extends SplitPrivateComputed { }
44
76
 
@@ -52,6 +84,7 @@ export interface SplitInternalData {
52
84
  export interface SplitMethods {
53
85
  dispatchEvent(type: ValueOf<VxeSplitEmits>, params: Record<string, any>, evnt: Event | null): void
54
86
  recalculate(): Promise<void>
87
+ reset(): Promise<void>
55
88
  }
56
89
  export interface VxeSplitMethods extends SplitMethods { }
57
90
 
@@ -59,6 +92,11 @@ export interface SplitPrivateMethods { }
59
92
  export interface VxeSplitPrivateMethods extends SplitPrivateMethods { }
60
93
 
61
94
  export type VxeSplitEmits = [
95
+ 'action-dblclick',
96
+ 'action-click',
97
+ 'resize-start',
98
+ 'resize-drag',
99
+ 'resize-end'
62
100
  ]
63
101
 
64
102
  export namespace VxeSplitDefines {
@@ -68,18 +106,66 @@ export namespace VxeSplitDefines {
68
106
 
69
107
  export interface ChunkConfig extends VxeSplitItemProps {
70
108
  id: string
109
+ isVisible: boolean
110
+ isExpand: boolean
71
111
  renderWidth: number
112
+ foldWidth: number
113
+ resizeWidth: number
72
114
  renderHeight: number
115
+ resizeHeight: number
116
+ foldHeight: number
117
+ }
118
+
119
+ export interface ActionClickEventParams extends SplitEventParams {
120
+ item: ChunkConfig
121
+ name: VxeSplitItemPropTypes.Name
122
+ targetItem: ChunkConfig
123
+ targetName: VxeSplitItemPropTypes.Name
124
+ expanded: boolean
125
+ }
126
+ export interface ActionDblclickEventParams extends ActionClickEventParams {}
127
+ export interface ResizeStartEventParams extends SplitEventParams {
128
+ item: ChunkConfig
129
+ name: VxeSplitItemPropTypes.Name
130
+ }
131
+ export interface ResizeDragEventParams extends SplitEventParams {
132
+ item: ChunkConfig
133
+ name: VxeSplitItemPropTypes.Name
134
+ offsetHeight: number
135
+ resizeHeight: number
136
+ offsetWidth: number
137
+ resizeWidth: number
138
+ }
139
+ export interface ResizeEndEventParams extends SplitEventParams {
140
+ item: ChunkConfig
141
+ name: VxeSplitItemPropTypes.Name
142
+ resizeHeight: number
143
+ resizeWidth: number
73
144
  }
74
145
  }
75
146
 
76
147
  export type VxeSplitEventProps = {
148
+ onActionDblclick?: VxeSplitEvents.ActionDblclick
149
+ onActionClick?: VxeSplitEvents.ActionClick
150
+ onResizeStart?: VxeSplitEvents.ResizeStart
151
+ onResizeDrag?: VxeSplitEvents.ResizeDrag
152
+ onResizeEnd?: VxeSplitEvents.ResizeEnd
77
153
  }
78
154
 
79
155
  export interface VxeSplitListeners {
156
+ actionDblclick?: VxeSplitEvents.ActionDblclick
157
+ actionClick?: VxeSplitEvents.ActionClick
158
+ resizeStart?: VxeSplitEvents.ResizeStart
159
+ resizeDrag?: VxeSplitEvents.ResizeDrag
160
+ resizeEnd?: VxeSplitEvents.ResizeEnd
80
161
  }
81
162
 
82
163
  export namespace VxeSplitEvents {
164
+ export type ActionDblclick = (params: VxeSplitDefines.ActionDblclickEventParams) => void
165
+ export type ActionClick = (params: VxeSplitDefines.ActionClickEventParams) => void
166
+ export type ResizeStart = (params: VxeSplitDefines.ResizeStartEventParams) => void
167
+ export type ResizeDrag = (params: VxeSplitDefines.ResizeDragEventParams) => void
168
+ export type ResizeEnd = (params: VxeSplitDefines.ResizeEndEventParams) => void
83
169
  }
84
170
 
85
171
  export namespace VxeSplitSlotTypes {
@@ -239,5 +239,11 @@ declare module '@vxe-ui/core' {
239
239
  // color-picker
240
240
  COLOR_COPY?: string
241
241
  EYE_DROPPER?: string
242
+
243
+ // split
244
+ SPLIT_TOP_ACTION?: string
245
+ SPLIT_BOTTOM_ACTION?: string
246
+ SPLIT_LEFT_ACTION?: string
247
+ SPLIT_RIGHT_ACTION?: string
242
248
  }
243
249
  }