vxe-pc-ui 4.5.2 → 4.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.
- package/es/icon/style.css +1 -1
- package/es/list/src/list.js +3 -2
- package/es/print/src/util.js +2 -1
- package/es/split/src/split-item.js +16 -0
- package/es/split/src/split.js +226 -53
- package/es/split/style.css +75 -15
- package/es/split/style.min.css +1 -1
- package/es/style.css +1 -1
- package/es/style.min.css +1 -1
- package/es/ui/index.js +7 -2
- package/es/ui/src/dom.js +0 -1
- package/es/ui/src/log.js +1 -1
- package/es/vxe-split/style.css +75 -15
- package/es/vxe-split/style.min.css +1 -1
- package/lib/icon/style/style.css +1 -1
- package/lib/icon/style/style.min.css +1 -1
- package/lib/index.umd.js +304 -54
- package/lib/index.umd.min.js +1 -1
- package/lib/list/src/list.js +2 -1
- package/lib/list/src/list.min.js +1 -1
- package/lib/print/src/util.js +2 -1
- package/lib/print/src/util.min.js +1 -1
- package/lib/split/src/split-item.js +16 -0
- package/lib/split/src/split-item.min.js +1 -1
- package/lib/split/src/split.js +275 -48
- package/lib/split/src/split.min.js +1 -1
- package/lib/split/style/style.css +75 -15
- package/lib/split/style/style.min.css +1 -1
- package/lib/style.css +1 -1
- package/lib/style.min.css +1 -1
- package/lib/ui/index.js +7 -2
- package/lib/ui/index.min.js +1 -1
- package/lib/ui/src/dom.js +0 -2
- package/lib/ui/src/dom.min.js +1 -1
- package/lib/ui/src/log.js +1 -1
- package/lib/ui/src/log.min.js +1 -1
- package/lib/vxe-split/style/style.css +75 -15
- package/lib/vxe-split/style/style.min.css +1 -1
- package/package.json +1 -1
- package/packages/list/src/list.ts +4 -2
- package/packages/print/src/util.ts +3 -1
- package/packages/split/src/split-item.ts +18 -0
- package/packages/split/src/split.ts +237 -52
- package/packages/ui/index.ts +7 -1
- package/packages/ui/src/dom.ts +0 -2
- package/styles/components/split.scss +98 -15
- package/types/components/split-item.d.ts +5 -1
- package/types/components/split.d.ts +87 -1
- package/types/ui/global-icon.d.ts +6 -0
- /package/es/icon/{iconfont.1743056531953.ttf → iconfont.1743125694154.ttf} +0 -0
- /package/es/icon/{iconfont.1743056531953.woff → iconfont.1743125694154.woff} +0 -0
- /package/es/icon/{iconfont.1743056531953.woff2 → iconfont.1743125694154.woff2} +0 -0
- /package/es/{iconfont.1743056531953.ttf → iconfont.1743125694154.ttf} +0 -0
- /package/es/{iconfont.1743056531953.woff → iconfont.1743125694154.woff} +0 -0
- /package/es/{iconfont.1743056531953.woff2 → iconfont.1743125694154.woff2} +0 -0
- /package/lib/icon/style/{iconfont.1743056531953.ttf → iconfont.1743125694154.ttf} +0 -0
- /package/lib/icon/style/{iconfont.1743056531953.woff → iconfont.1743125694154.woff} +0 -0
- /package/lib/icon/style/{iconfont.1743056531953.woff2 → iconfont.1743125694154.woff2} +0 -0
- /package/lib/{iconfont.1743056531953.ttf → iconfont.1743125694154.ttf} +0 -0
- /package/lib/{iconfont.1743056531953.woff → iconfont.1743125694154.woff} +0 -0
- /package/lib/{iconfont.1743056531953.woff2 → iconfont.1743125694154.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
|
|
|
@@ -33,6 +33,33 @@ export namespace VxeSplitPropTypes {
|
|
|
33
33
|
minWidth?: string | number
|
|
34
34
|
minHeight?: string | number
|
|
35
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
|
+
}
|
|
36
63
|
}
|
|
37
64
|
|
|
38
65
|
export type VxeSplitProps = {
|
|
@@ -42,10 +69,15 @@ export type VxeSplitProps = {
|
|
|
42
69
|
vertical?: VxeSplitPropTypes.Vertical
|
|
43
70
|
border?: VxeSplitPropTypes.Border
|
|
44
71
|
itemConfig?: VxeSplitPropTypes.ItemConfig
|
|
72
|
+
barConfig?: VxeSplitPropTypes.BarConfig
|
|
73
|
+
actionConfig?: VxeSplitPropTypes.ActionConfig
|
|
45
74
|
}
|
|
46
75
|
|
|
47
76
|
export interface SplitPrivateComputed {
|
|
48
77
|
computeItemOpts: ComputedRef<VxeSplitPropTypes.ItemConfig>
|
|
78
|
+
computeBarOpts: ComputedRef<VxeSplitPropTypes.BarConfig>
|
|
79
|
+
computeActionOpts: ComputedRef<VxeSplitPropTypes.ActionConfig>
|
|
80
|
+
computeIsFoldNext: ComputedRef<boolean>
|
|
49
81
|
}
|
|
50
82
|
export interface VxeSplitPrivateComputed extends SplitPrivateComputed { }
|
|
51
83
|
|
|
@@ -59,6 +91,7 @@ export interface SplitInternalData {
|
|
|
59
91
|
export interface SplitMethods {
|
|
60
92
|
dispatchEvent(type: ValueOf<VxeSplitEmits>, params: Record<string, any>, evnt: Event | null): void
|
|
61
93
|
recalculate(): Promise<void>
|
|
94
|
+
reset(): Promise<void>
|
|
62
95
|
}
|
|
63
96
|
export interface VxeSplitMethods extends SplitMethods { }
|
|
64
97
|
|
|
@@ -66,6 +99,11 @@ export interface SplitPrivateMethods { }
|
|
|
66
99
|
export interface VxeSplitPrivateMethods extends SplitPrivateMethods { }
|
|
67
100
|
|
|
68
101
|
export type VxeSplitEmits = [
|
|
102
|
+
'action-dblclick',
|
|
103
|
+
'action-click',
|
|
104
|
+
'resize-start',
|
|
105
|
+
'resize-drag',
|
|
106
|
+
'resize-end'
|
|
69
107
|
]
|
|
70
108
|
|
|
71
109
|
export namespace VxeSplitDefines {
|
|
@@ -75,18 +113,66 @@ export namespace VxeSplitDefines {
|
|
|
75
113
|
|
|
76
114
|
export interface ChunkConfig extends VxeSplitItemProps {
|
|
77
115
|
id: string
|
|
116
|
+
isVisible: boolean
|
|
117
|
+
isExpand: boolean
|
|
78
118
|
renderWidth: number
|
|
119
|
+
foldWidth: number
|
|
120
|
+
resizeWidth: number
|
|
79
121
|
renderHeight: number
|
|
122
|
+
resizeHeight: number
|
|
123
|
+
foldHeight: number
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
export interface ActionClickEventParams extends SplitEventParams {
|
|
127
|
+
item: ChunkConfig
|
|
128
|
+
name: VxeSplitItemPropTypes.Name
|
|
129
|
+
targetItem: ChunkConfig
|
|
130
|
+
targetName: VxeSplitItemPropTypes.Name
|
|
131
|
+
expanded: boolean
|
|
132
|
+
}
|
|
133
|
+
export interface ActionDblclickEventParams extends ActionClickEventParams {}
|
|
134
|
+
export interface ResizeStartEventParams extends SplitEventParams {
|
|
135
|
+
item: ChunkConfig
|
|
136
|
+
name: VxeSplitItemPropTypes.Name
|
|
137
|
+
}
|
|
138
|
+
export interface ResizeDragEventParams extends SplitEventParams {
|
|
139
|
+
item: ChunkConfig
|
|
140
|
+
name: VxeSplitItemPropTypes.Name
|
|
141
|
+
offsetHeight: number
|
|
142
|
+
resizeHeight: number
|
|
143
|
+
offsetWidth: number
|
|
144
|
+
resizeWidth: number
|
|
145
|
+
}
|
|
146
|
+
export interface ResizeEndEventParams extends SplitEventParams {
|
|
147
|
+
item: ChunkConfig
|
|
148
|
+
name: VxeSplitItemPropTypes.Name
|
|
149
|
+
resizeHeight: number
|
|
150
|
+
resizeWidth: number
|
|
80
151
|
}
|
|
81
152
|
}
|
|
82
153
|
|
|
83
154
|
export type VxeSplitEventProps = {
|
|
155
|
+
onActionDblclick?: VxeSplitEvents.ActionDblclick
|
|
156
|
+
onActionClick?: VxeSplitEvents.ActionClick
|
|
157
|
+
onResizeStart?: VxeSplitEvents.ResizeStart
|
|
158
|
+
onResizeDrag?: VxeSplitEvents.ResizeDrag
|
|
159
|
+
onResizeEnd?: VxeSplitEvents.ResizeEnd
|
|
84
160
|
}
|
|
85
161
|
|
|
86
162
|
export interface VxeSplitListeners {
|
|
163
|
+
actionDblclick?: VxeSplitEvents.ActionDblclick
|
|
164
|
+
actionClick?: VxeSplitEvents.ActionClick
|
|
165
|
+
resizeStart?: VxeSplitEvents.ResizeStart
|
|
166
|
+
resizeDrag?: VxeSplitEvents.ResizeDrag
|
|
167
|
+
resizeEnd?: VxeSplitEvents.ResizeEnd
|
|
87
168
|
}
|
|
88
169
|
|
|
89
170
|
export namespace VxeSplitEvents {
|
|
171
|
+
export type ActionDblclick = (params: VxeSplitDefines.ActionDblclickEventParams) => void
|
|
172
|
+
export type ActionClick = (params: VxeSplitDefines.ActionClickEventParams) => void
|
|
173
|
+
export type ResizeStart = (params: VxeSplitDefines.ResizeStartEventParams) => void
|
|
174
|
+
export type ResizeDrag = (params: VxeSplitDefines.ResizeDragEventParams) => void
|
|
175
|
+
export type ResizeEnd = (params: VxeSplitDefines.ResizeEndEventParams) => void
|
|
90
176
|
}
|
|
91
177
|
|
|
92
178
|
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
|
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|