vxe-pc-ui 3.5.2 → 3.5.3

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 (58) 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 +225 -52
  6. package/es/split/style.css +74 -14
  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 +6 -1
  11. package/es/ui/src/dom.js +0 -1
  12. package/es/vxe-split/style.css +74 -14
  13. package/es/vxe-split/style.min.css +1 -1
  14. package/lib/icon/style/style.css +1 -1
  15. package/lib/icon/style/style.min.css +1 -1
  16. package/lib/index.umd.js +299 -54
  17. package/lib/index.umd.min.js +1 -1
  18. package/lib/list/src/list.js +2 -1
  19. package/lib/list/src/list.min.js +1 -1
  20. package/lib/print/src/util.js +2 -1
  21. package/lib/print/src/util.min.js +1 -1
  22. package/lib/split/src/split-item.js +22 -2
  23. package/lib/split/src/split-item.min.js +1 -1
  24. package/lib/split/src/split.js +265 -48
  25. package/lib/split/src/split.min.js +1 -1
  26. package/lib/split/style/style.css +74 -14
  27. package/lib/split/style/style.min.css +1 -1
  28. package/lib/style.css +1 -1
  29. package/lib/style.min.css +1 -1
  30. package/lib/ui/index.js +6 -1
  31. package/lib/ui/index.min.js +1 -1
  32. package/lib/ui/src/dom.js +0 -2
  33. package/lib/ui/src/dom.min.js +1 -1
  34. package/lib/vxe-split/style/style.css +74 -14
  35. package/lib/vxe-split/style/style.min.css +1 -1
  36. package/package.json +1 -1
  37. package/packages/list/src/list.ts +4 -2
  38. package/packages/print/src/util.ts +3 -1
  39. package/packages/split/src/split-item.ts +24 -2
  40. package/packages/split/src/split.ts +235 -52
  41. package/packages/ui/index.ts +7 -1
  42. package/packages/ui/src/dom.ts +0 -2
  43. package/styles/components/split.scss +97 -14
  44. package/types/components/split-item.d.ts +5 -1
  45. package/types/components/split.d.ts +86 -1
  46. package/types/ui/global-icon.d.ts +6 -0
  47. /package/es/icon/{iconfont.1743056503870.ttf → iconfont.1743080331925.ttf} +0 -0
  48. /package/es/icon/{iconfont.1743056503870.woff → iconfont.1743080331925.woff} +0 -0
  49. /package/es/icon/{iconfont.1743056503870.woff2 → iconfont.1743080331925.woff2} +0 -0
  50. /package/es/{iconfont.1743056503870.ttf → iconfont.1743080331925.ttf} +0 -0
  51. /package/es/{iconfont.1743056503870.woff → iconfont.1743080331925.woff} +0 -0
  52. /package/es/{iconfont.1743056503870.woff2 → iconfont.1743080331925.woff2} +0 -0
  53. /package/lib/icon/style/{iconfont.1743056503870.ttf → iconfont.1743080331925.ttf} +0 -0
  54. /package/lib/icon/style/{iconfont.1743056503870.woff → iconfont.1743080331925.woff} +0 -0
  55. /package/lib/icon/style/{iconfont.1743056503870.woff2 → iconfont.1743080331925.woff2} +0 -0
  56. /package/lib/{iconfont.1743056503870.ttf → iconfont.1743080331925.ttf} +0 -0
  57. /package/lib/{iconfont.1743056503870.woff → iconfont.1743080331925.woff} +0 -0
  58. /package/lib/{iconfont.1743056503870.woff2 → iconfont.1743080331925.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
 
@@ -59,6 +91,11 @@ export interface SplitPrivateMethods { }
59
91
  export interface VxeSplitPrivateMethods extends SplitPrivateMethods { }
60
92
 
61
93
  export type VxeSplitEmits = [
94
+ 'action-dblclick',
95
+ 'action-click',
96
+ 'resize-start',
97
+ 'resize-drag',
98
+ 'resize-end'
62
99
  ]
63
100
 
64
101
  export namespace VxeSplitDefines {
@@ -68,18 +105,66 @@ export namespace VxeSplitDefines {
68
105
 
69
106
  export interface ChunkConfig extends VxeSplitItemProps {
70
107
  id: string
108
+ isVisible: boolean
109
+ isExpand: boolean
71
110
  renderWidth: number
111
+ foldWidth: number
112
+ resizeWidth: number
72
113
  renderHeight: number
114
+ resizeHeight: number
115
+ foldHeight: number
116
+ }
117
+
118
+ export interface ActionClickEventParams extends SplitEventParams {
119
+ item: ChunkConfig
120
+ name: VxeSplitItemPropTypes.Name
121
+ targetItem: ChunkConfig
122
+ targetName: VxeSplitItemPropTypes.Name
123
+ expanded: boolean
124
+ }
125
+ export interface ActionDblclickEventParams extends ActionClickEventParams {}
126
+ export interface ResizeStartEventParams extends SplitEventParams {
127
+ item: ChunkConfig
128
+ name: VxeSplitItemPropTypes.Name
129
+ }
130
+ export interface ResizeDragEventParams extends SplitEventParams {
131
+ item: ChunkConfig
132
+ name: VxeSplitItemPropTypes.Name
133
+ offsetHeight: number
134
+ resizeHeight: number
135
+ offsetWidth: number
136
+ resizeWidth: number
137
+ }
138
+ export interface ResizeEndEventParams extends SplitEventParams {
139
+ item: ChunkConfig
140
+ name: VxeSplitItemPropTypes.Name
141
+ resizeHeight: number
142
+ resizeWidth: number
73
143
  }
74
144
  }
75
145
 
76
146
  export type VxeSplitEventProps = {
147
+ onActionDblclick?: VxeSplitEvents.ActionDblclick
148
+ onActionClick?: VxeSplitEvents.ActionClick
149
+ onResizeStart?: VxeSplitEvents.ResizeStart
150
+ onResizeDrag?: VxeSplitEvents.ResizeDrag
151
+ onResizeEnd?: VxeSplitEvents.ResizeEnd
77
152
  }
78
153
 
79
154
  export interface VxeSplitListeners {
155
+ actionDblclick?: VxeSplitEvents.ActionDblclick
156
+ actionClick?: VxeSplitEvents.ActionClick
157
+ resizeStart?: VxeSplitEvents.ResizeStart
158
+ resizeDrag?: VxeSplitEvents.ResizeDrag
159
+ resizeEnd?: VxeSplitEvents.ResizeEnd
80
160
  }
81
161
 
82
162
  export namespace VxeSplitEvents {
163
+ export type ActionDblclick = (params: VxeSplitDefines.ActionDblclickEventParams) => void
164
+ export type ActionClick = (params: VxeSplitDefines.ActionClickEventParams) => void
165
+ export type ResizeStart = (params: VxeSplitDefines.ResizeStartEventParams) => void
166
+ export type ResizeDrag = (params: VxeSplitDefines.ResizeDragEventParams) => void
167
+ export type ResizeEnd = (params: VxeSplitDefines.ResizeEndEventParams) => void
83
168
  }
84
169
 
85
170
  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
  }