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