vxe-pc-ui 4.10.10 → 4.10.12
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/components.js +6 -0
- package/es/icon/style.css +1 -1
- package/es/split/index.js +2 -2
- package/es/split/style.css +81 -79
- package/es/split/style.min.css +1 -1
- package/es/split-pane/index.js +2 -2
- package/es/splitter/index.js +12 -0
- package/es/{split/src/split-pane.js → splitter/src/splitter-panel.js} +15 -15
- package/es/{split/src/split.js → splitter/src/splitter.js} +137 -68
- package/es/splitter/src/util.js +17 -0
- package/es/splitter/style.css +290 -0
- package/es/splitter/style.min.css +1 -0
- package/es/splitter-panel/index.js +12 -0
- package/es/splitter-panel/style.css +0 -0
- package/es/splitter-panel/style.min.css +0 -0
- package/es/style.css +1 -1
- package/es/style.min.css +1 -1
- package/es/ui/index.js +3 -3
- package/es/ui/src/log.js +1 -1
- package/es/vxe-split/style.css +81 -79
- package/es/vxe-split/style.min.css +1 -1
- package/es/vxe-splitter/index.js +3 -0
- package/es/vxe-splitter/style.css +290 -0
- package/es/vxe-splitter/style.min.css +1 -0
- package/es/vxe-splitter-panel/index.js +3 -0
- package/es/vxe-splitter-panel/style.css +0 -0
- package/es/vxe-splitter-panel/style.min.css +0 -0
- package/lib/components.js +25 -1
- package/lib/components.min.js +1 -1
- package/lib/icon/style/style.css +1 -1
- package/lib/icon/style/style.min.css +1 -1
- package/lib/index.umd.js +231 -115
- package/lib/index.umd.min.js +1 -1
- package/lib/split/index.js +4 -4
- package/lib/split/index.min.js +1 -1
- package/lib/split/style/style.css +81 -79
- package/lib/split/style/style.min.css +1 -1
- package/lib/split-pane/index.js +5 -5
- package/lib/split-pane/index.min.js +1 -1
- package/lib/splitter/index.js +19 -0
- package/lib/splitter/index.min.js +1 -0
- package/lib/{split/src/split-pane.js → splitter/src/splitter-panel.js} +14 -14
- package/lib/splitter/src/splitter-panel.min.js +1 -0
- package/lib/{split/src/split.js → splitter/src/splitter.js} +150 -72
- package/lib/splitter/src/splitter.min.js +1 -0
- package/lib/{split → splitter}/src/util.js +8 -8
- package/lib/splitter/src/util.min.js +1 -0
- package/lib/splitter/style/index.js +1 -0
- package/lib/splitter/style/style.css +290 -0
- package/lib/splitter/style/style.min.css +1 -0
- package/lib/splitter-panel/index.js +19 -0
- package/lib/splitter-panel/index.min.js +1 -0
- package/lib/splitter-panel/style/index.js +1 -0
- package/lib/splitter-panel/style/style.css +0 -0
- package/lib/splitter-panel/style/style.min.css +0 -0
- package/lib/style.css +1 -1
- package/lib/style.min.css +1 -1
- package/lib/ui/index.js +3 -3
- package/lib/ui/index.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 +81 -79
- package/lib/vxe-split/style/style.min.css +1 -1
- package/lib/vxe-splitter/index.js +22 -0
- package/lib/vxe-splitter/index.min.js +1 -0
- package/lib/vxe-splitter/style/index.js +1 -0
- package/lib/vxe-splitter/style/style.css +290 -0
- package/lib/vxe-splitter/style/style.min.css +1 -0
- package/lib/vxe-splitter-panel/index.js +22 -0
- package/lib/vxe-splitter-panel/index.min.js +1 -0
- package/lib/vxe-splitter-panel/style/index.js +1 -0
- package/lib/vxe-splitter-panel/style/style.css +0 -0
- package/lib/vxe-splitter-panel/style/style.min.css +0 -0
- package/package.json +1 -1
- package/packages/components.ts +6 -0
- package/packages/split/index.ts +2 -2
- package/packages/split-pane/index.ts +2 -2
- package/packages/splitter/index.ts +16 -0
- package/packages/splitter/src/splitter-panel.ts +145 -0
- package/packages/{split/src/split.ts → splitter/src/splitter.ts} +168 -96
- package/packages/splitter/src/util.ts +21 -0
- package/packages/splitter-panel/index.ts +16 -0
- package/packages/ui/index.ts +2 -2
- package/styles/components/split.scss +1 -317
- package/styles/components/splitter-panel.scss +0 -0
- package/styles/components/splitter.scss +319 -0
- package/styles/theme/base.scss +6 -6
- package/styles/theme/dark.scss +3 -3
- package/styles/theme/light.scss +3 -3
- package/styles/variable.scss +3 -3
- package/types/all.d.ts +6 -0
- package/types/components/split-pane.d.ts +42 -14
- package/types/components/split.d.ts +54 -18
- package/types/components/splitter-panel.d.ts +105 -0
- package/types/components/splitter.d.ts +288 -0
- package/types/components/table.d.ts +5 -0
- package/types/ui/global-config.d.ts +4 -0
- package/types/ui/global-icon.d.ts +1 -1
- package/es/split/src/util.js +0 -17
- package/lib/split/src/split-pane.min.js +0 -1
- package/lib/split/src/split.min.js +0 -1
- package/lib/split/src/util.min.js +0 -1
- package/packages/split/src/split-pane.ts +0 -145
- package/packages/split/src/util.ts +0 -21
- /package/es/icon/{iconfont.1761298747069.ttf → iconfont.1761641785778.ttf} +0 -0
- /package/es/icon/{iconfont.1761298747069.woff → iconfont.1761641785778.woff} +0 -0
- /package/es/icon/{iconfont.1761298747069.woff2 → iconfont.1761641785778.woff2} +0 -0
- /package/es/{iconfont.1761298747069.ttf → iconfont.1761641785778.ttf} +0 -0
- /package/es/{iconfont.1761298747069.woff → iconfont.1761641785778.woff} +0 -0
- /package/es/{iconfont.1761298747069.woff2 → iconfont.1761641785778.woff2} +0 -0
- /package/lib/icon/style/{iconfont.1761298747069.ttf → iconfont.1761641785778.ttf} +0 -0
- /package/lib/icon/style/{iconfont.1761298747069.woff → iconfont.1761641785778.woff} +0 -0
- /package/lib/icon/style/{iconfont.1761298747069.woff2 → iconfont.1761641785778.woff2} +0 -0
- /package/lib/{iconfont.1761298747069.ttf → iconfont.1761641785778.ttf} +0 -0
- /package/lib/{iconfont.1761298747069.woff → iconfont.1761641785778.woff} +0 -0
- /package/lib/{iconfont.1761298747069.woff2 → iconfont.1761641785778.woff2} +0 -0
|
@@ -2,12 +2,18 @@ import { RenderFunction, SetupContext, Ref } from 'vue'
|
|
|
2
2
|
import { DefineVxeComponentApp, DefineVxeComponentOptions, DefineVxeComponentInstance, VxeComponentBaseOptions, VxeComponentEventParams, ValueOf, VxeComponentSlotType } from '@vxe-ui/core'
|
|
3
3
|
|
|
4
4
|
/* eslint-disable no-use-before-define,@typescript-eslint/ban-types */
|
|
5
|
-
|
|
5
|
+
/**
|
|
6
|
+
* @deprecated
|
|
7
|
+
*/
|
|
6
8
|
export declare const VxeSplitPane: DefineVxeComponentApp<VxeSplitPaneProps, VxeSplitPaneEventProps, VxeSplitPaneSlots, VxeSplitPaneMethods>
|
|
7
9
|
export type VxeSplitPaneComponent = DefineVxeComponentOptions<VxeSplitPaneProps, VxeSplitPaneEventProps>
|
|
8
|
-
|
|
10
|
+
/**
|
|
11
|
+
* @deprecated
|
|
12
|
+
*/
|
|
9
13
|
export type VxeSplitPaneInstance = DefineVxeComponentInstance<VxeSplitPaneProps, VxeSplitPaneConstructor>
|
|
10
|
-
|
|
14
|
+
/**
|
|
15
|
+
* @deprecated
|
|
16
|
+
*/
|
|
11
17
|
export interface VxeSplitPaneConstructor extends VxeComponentBaseOptions, VxeSplitPaneMethods {
|
|
12
18
|
props: VxeSplitPaneProps
|
|
13
19
|
context: SetupContext<VxeSplitPaneEmits>
|
|
@@ -16,12 +22,16 @@ export interface VxeSplitPaneConstructor extends VxeComponentBaseOptions, VxeSpl
|
|
|
16
22
|
getComputeMaps(): SplitItemPrivateComputed
|
|
17
23
|
renderVN: RenderFunction
|
|
18
24
|
}
|
|
19
|
-
|
|
25
|
+
/**
|
|
26
|
+
* @deprecated
|
|
27
|
+
*/
|
|
20
28
|
export interface SplitItemPrivateRef {
|
|
21
29
|
refElem: Ref<HTMLDivElement | undefined>
|
|
22
30
|
}
|
|
23
31
|
export interface VxeSplitPanePrivateRef extends SplitItemPrivateRef { }
|
|
24
|
-
|
|
32
|
+
/**
|
|
33
|
+
* @deprecated
|
|
34
|
+
*/
|
|
25
35
|
export namespace VxeSplitPanePropTypes {
|
|
26
36
|
export type Name = string | number
|
|
27
37
|
export type Width = string | number
|
|
@@ -35,7 +45,9 @@ export namespace VxeSplitPanePropTypes {
|
|
|
35
45
|
*/
|
|
36
46
|
export type ShowAction = boolean
|
|
37
47
|
}
|
|
38
|
-
|
|
48
|
+
/**
|
|
49
|
+
* @deprecated
|
|
50
|
+
*/
|
|
39
51
|
export interface VxeSplitPaneProps {
|
|
40
52
|
name?: VxeSplitPanePropTypes.Name
|
|
41
53
|
width?: VxeSplitPanePropTypes.Width
|
|
@@ -56,10 +68,14 @@ export interface VxeSplitPaneProps {
|
|
|
56
68
|
export interface SplitItemPrivateComputed {
|
|
57
69
|
}
|
|
58
70
|
export interface VxeSplitPanePrivateComputed extends SplitItemPrivateComputed { }
|
|
59
|
-
|
|
71
|
+
/**
|
|
72
|
+
* @deprecated
|
|
73
|
+
*/
|
|
60
74
|
export interface SplitItemReactData {
|
|
61
75
|
}
|
|
62
|
-
|
|
76
|
+
/**
|
|
77
|
+
* @deprecated
|
|
78
|
+
*/
|
|
63
79
|
export interface SplitItemInternalData {
|
|
64
80
|
}
|
|
65
81
|
|
|
@@ -70,10 +86,14 @@ export interface VxeSplitPaneMethods extends SplitItemMethods { }
|
|
|
70
86
|
|
|
71
87
|
export interface SplitItemPrivateMethods { }
|
|
72
88
|
export interface VxeSplitPanePrivateMethods extends SplitItemPrivateMethods { }
|
|
73
|
-
|
|
89
|
+
/**
|
|
90
|
+
* @deprecated
|
|
91
|
+
*/
|
|
74
92
|
export type VxeSplitPaneEmits = [
|
|
75
93
|
]
|
|
76
|
-
|
|
94
|
+
/**
|
|
95
|
+
* @deprecated
|
|
96
|
+
*/
|
|
77
97
|
export namespace VxeSplitPaneDefines {
|
|
78
98
|
export interface SplitItemEventParams extends VxeComponentEventParams {
|
|
79
99
|
$splitPane: VxeSplitPaneConstructor
|
|
@@ -82,10 +102,14 @@ export namespace VxeSplitPaneDefines {
|
|
|
82
102
|
|
|
83
103
|
export type VxeSplitPaneEventProps = {
|
|
84
104
|
}
|
|
85
|
-
|
|
105
|
+
/**
|
|
106
|
+
* @deprecated
|
|
107
|
+
*/
|
|
86
108
|
export interface VxeSplitPaneListeners {
|
|
87
109
|
}
|
|
88
|
-
|
|
110
|
+
/**
|
|
111
|
+
* @deprecated
|
|
112
|
+
*/
|
|
89
113
|
export namespace VxeSplitPaneEvents {
|
|
90
114
|
}
|
|
91
115
|
|
|
@@ -96,10 +120,14 @@ export namespace VxeSplitPaneSlotTypes {
|
|
|
96
120
|
isExpand: boolean
|
|
97
121
|
}
|
|
98
122
|
}
|
|
99
|
-
|
|
123
|
+
/**
|
|
124
|
+
* @deprecated
|
|
125
|
+
*/
|
|
100
126
|
export interface VxeSplitPaneSlots {
|
|
101
127
|
default?: (params: VxeSplitPaneSlotTypes.DefaultSlotParams) => any
|
|
102
128
|
}
|
|
103
|
-
|
|
129
|
+
/**
|
|
130
|
+
* @deprecated
|
|
131
|
+
*/
|
|
104
132
|
export const SplitItem: typeof VxeSplitPane
|
|
105
133
|
export default VxeSplitPane
|
|
@@ -3,12 +3,18 @@ import { DefineVxeComponentApp, DefineVxeComponentOptions, DefineVxeComponentIns
|
|
|
3
3
|
import { VxeSplitPaneProps, VxeSplitPanePropTypes } from './split-pane'
|
|
4
4
|
|
|
5
5
|
/* eslint-disable no-use-before-define,@typescript-eslint/ban-types */
|
|
6
|
-
|
|
6
|
+
/**
|
|
7
|
+
* @deprecated
|
|
8
|
+
*/
|
|
7
9
|
export declare const VxeSplit: DefineVxeComponentApp<VxeSplitProps, VxeSplitEventProps, VxeSplitSlots, VxeSplitMethods>
|
|
8
10
|
export type VxeSplitComponent = DefineVxeComponentOptions<VxeSplitProps, VxeSplitEventProps>
|
|
9
|
-
|
|
11
|
+
/**
|
|
12
|
+
* @deprecated
|
|
13
|
+
*/
|
|
10
14
|
export type VxeSplitInstance = DefineVxeComponentInstance<VxeSplitProps, VxeSplitConstructor>
|
|
11
|
-
|
|
15
|
+
/**
|
|
16
|
+
* @deprecated
|
|
17
|
+
*/
|
|
12
18
|
export interface VxeSplitConstructor extends VxeComponentBaseOptions, VxeSplitMethods {
|
|
13
19
|
props: VxeSplitProps
|
|
14
20
|
context: SetupContext<VxeSplitEmits>
|
|
@@ -17,12 +23,16 @@ export interface VxeSplitConstructor extends VxeComponentBaseOptions, VxeSplitMe
|
|
|
17
23
|
getComputeMaps(): SplitPrivateComputed
|
|
18
24
|
renderVN: RenderFunction
|
|
19
25
|
}
|
|
20
|
-
|
|
26
|
+
/**
|
|
27
|
+
* @deprecated
|
|
28
|
+
*/
|
|
21
29
|
export interface SplitPrivateRef {
|
|
22
30
|
refElem: Ref<HTMLDivElement | undefined>
|
|
23
31
|
}
|
|
24
32
|
export interface VxeSplitPrivateRef extends SplitPrivateRef { }
|
|
25
|
-
|
|
33
|
+
/**
|
|
34
|
+
* @deprecated
|
|
35
|
+
*/
|
|
26
36
|
export namespace VxeSplitPropTypes {
|
|
27
37
|
export type Size = VxeComponentSizeType
|
|
28
38
|
export type Height = string | number
|
|
@@ -84,7 +94,9 @@ export namespace VxeSplitPropTypes {
|
|
|
84
94
|
direction?: 'prev' | 'next' | '' | null
|
|
85
95
|
}
|
|
86
96
|
}
|
|
87
|
-
|
|
97
|
+
/**
|
|
98
|
+
* @deprecated
|
|
99
|
+
*/
|
|
88
100
|
export type VxeSplitProps = {
|
|
89
101
|
size?: VxeSplitPropTypes.Size
|
|
90
102
|
/**
|
|
@@ -132,26 +144,34 @@ export type VxeSplitProps = {
|
|
|
132
144
|
*/
|
|
133
145
|
actionConfig?: VxeSplitPropTypes.ActionConfig
|
|
134
146
|
}
|
|
135
|
-
|
|
147
|
+
/**
|
|
148
|
+
* @deprecated
|
|
149
|
+
*/
|
|
136
150
|
export interface SplitPrivateComputed {
|
|
137
151
|
computeItemOpts: ComputedRef<VxeSplitPropTypes.ItemConfig>
|
|
138
152
|
computeBarOpts: ComputedRef<VxeSplitPropTypes.BarConfig>
|
|
139
153
|
computeActionOpts: ComputedRef<VxeSplitPropTypes.ActionConfig>
|
|
140
154
|
}
|
|
141
155
|
export interface VxeSplitPrivateComputed extends SplitPrivateComputed { }
|
|
142
|
-
|
|
156
|
+
/**
|
|
157
|
+
* @deprecated
|
|
158
|
+
*/
|
|
143
159
|
export interface SplitReactData {
|
|
144
160
|
staticItems: VxeSplitDefines.PaneConfig[]
|
|
145
161
|
itemList: VxeSplitDefines.PaneConfig[]
|
|
146
162
|
barWidth: number
|
|
147
163
|
barHeight: number
|
|
148
164
|
}
|
|
149
|
-
|
|
165
|
+
/**
|
|
166
|
+
* @deprecated
|
|
167
|
+
*/
|
|
150
168
|
export interface SplitInternalData {
|
|
151
169
|
wrapperWidth: number
|
|
152
170
|
wrapperHeight: number
|
|
153
171
|
}
|
|
154
|
-
|
|
172
|
+
/**
|
|
173
|
+
* @deprecated
|
|
174
|
+
*/
|
|
155
175
|
export interface SplitMethods {
|
|
156
176
|
dispatchEvent(type: ValueOf<VxeSplitEmits>, params: Record<string, any>, evnt: Event | null): void
|
|
157
177
|
/**
|
|
@@ -175,7 +195,9 @@ export interface VxeSplitMethods extends SplitMethods { }
|
|
|
175
195
|
|
|
176
196
|
export interface SplitPrivateMethods { }
|
|
177
197
|
export interface VxeSplitPrivateMethods extends SplitPrivateMethods { }
|
|
178
|
-
|
|
198
|
+
/**
|
|
199
|
+
* @deprecated
|
|
200
|
+
*/
|
|
179
201
|
export type VxeSplitEmits = [
|
|
180
202
|
'action-dblclick',
|
|
181
203
|
'action-click',
|
|
@@ -184,7 +206,9 @@ export type VxeSplitEmits = [
|
|
|
184
206
|
'resize-drag',
|
|
185
207
|
'resize-end'
|
|
186
208
|
]
|
|
187
|
-
|
|
209
|
+
/**
|
|
210
|
+
* @deprecated
|
|
211
|
+
*/
|
|
188
212
|
export namespace VxeSplitDefines {
|
|
189
213
|
export interface SplitEventParams extends VxeComponentEventParams {
|
|
190
214
|
$split: VxeSplitConstructor
|
|
@@ -227,7 +251,9 @@ export namespace VxeSplitDefines {
|
|
|
227
251
|
offsetWidth: number
|
|
228
252
|
}
|
|
229
253
|
}
|
|
230
|
-
|
|
254
|
+
/**
|
|
255
|
+
* @deprecated
|
|
256
|
+
*/
|
|
231
257
|
export type VxeSplitEventProps = {
|
|
232
258
|
onActionDblclick?: VxeSplitEvents.ActionDblclick
|
|
233
259
|
onActionClick?: VxeSplitEvents.ActionClick
|
|
@@ -236,7 +262,9 @@ export type VxeSplitEventProps = {
|
|
|
236
262
|
onResizeDrag?: VxeSplitEvents.ResizeDrag
|
|
237
263
|
onResizeEnd?: VxeSplitEvents.ResizeEnd
|
|
238
264
|
}
|
|
239
|
-
|
|
265
|
+
/**
|
|
266
|
+
* @deprecated
|
|
267
|
+
*/
|
|
240
268
|
export interface VxeSplitListeners {
|
|
241
269
|
actionDblclick?: VxeSplitEvents.ActionDblclick
|
|
242
270
|
actionClick?: VxeSplitEvents.ActionClick
|
|
@@ -245,7 +273,9 @@ export interface VxeSplitListeners {
|
|
|
245
273
|
resizeDrag?: VxeSplitEvents.ResizeDrag
|
|
246
274
|
resizeEnd?: VxeSplitEvents.ResizeEnd
|
|
247
275
|
}
|
|
248
|
-
|
|
276
|
+
/**
|
|
277
|
+
* @deprecated
|
|
278
|
+
*/
|
|
249
279
|
export namespace VxeSplitEvents {
|
|
250
280
|
export type ActionDblclick = (params: VxeSplitDefines.ActionDblclickEventParams) => void
|
|
251
281
|
export type ActionClick = (params: VxeSplitDefines.ActionClickEventParams) => void
|
|
@@ -254,12 +284,16 @@ export namespace VxeSplitEvents {
|
|
|
254
284
|
export type ResizeDrag = (params: VxeSplitDefines.ResizeDragEventParams) => void
|
|
255
285
|
export type ResizeEnd = (params: VxeSplitDefines.ResizeEndEventParams) => void
|
|
256
286
|
}
|
|
257
|
-
|
|
287
|
+
/**
|
|
288
|
+
* @deprecated
|
|
289
|
+
*/
|
|
258
290
|
export namespace VxeSplitSlotTypes {
|
|
259
291
|
export interface DefaultSlotParams {
|
|
260
292
|
}
|
|
261
293
|
}
|
|
262
|
-
|
|
294
|
+
/**
|
|
295
|
+
* @deprecated
|
|
296
|
+
*/
|
|
263
297
|
export interface VxeSplitSlots {
|
|
264
298
|
/**
|
|
265
299
|
* 自定义插槽模板
|
|
@@ -271,6 +305,8 @@ export interface VxeSplitSlots {
|
|
|
271
305
|
|
|
272
306
|
default?: (params: VxeSplitSlotTypes.DefaultSlotParams) => any
|
|
273
307
|
}
|
|
274
|
-
|
|
308
|
+
/**
|
|
309
|
+
* @deprecated
|
|
310
|
+
*/
|
|
275
311
|
export const Split: typeof VxeSplit
|
|
276
312
|
export default VxeSplit
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
import { RenderFunction, SetupContext, Ref } from 'vue'
|
|
2
|
+
import { DefineVxeComponentApp, DefineVxeComponentOptions, DefineVxeComponentInstance, VxeComponentBaseOptions, VxeComponentEventParams, ValueOf, VxeComponentSlotType } from '@vxe-ui/core'
|
|
3
|
+
|
|
4
|
+
/* eslint-disable no-use-before-define,@typescript-eslint/ban-types */
|
|
5
|
+
|
|
6
|
+
export declare const VxeSplitterPanel: DefineVxeComponentApp<VxeSplitterPanelProps, VxeSplitterPanelEventProps, VxeSplitterPanelSlots, VxeSplitterPanelMethods>
|
|
7
|
+
export type VxeSplitterPanelComponent = DefineVxeComponentOptions<VxeSplitterPanelProps, VxeSplitterPanelEventProps>
|
|
8
|
+
|
|
9
|
+
export type VxeSplitterPanelInstance = DefineVxeComponentInstance<VxeSplitterPanelProps, VxeSplitterPanelConstructor>
|
|
10
|
+
|
|
11
|
+
export interface VxeSplitterPanelConstructor extends VxeComponentBaseOptions, VxeSplitterPanelMethods {
|
|
12
|
+
props: VxeSplitterPanelProps
|
|
13
|
+
context: SetupContext<VxeSplitterPanelEmits>
|
|
14
|
+
reactData: SplitterItemReactData
|
|
15
|
+
getRefMaps(): SplitterItemPrivateRef
|
|
16
|
+
getComputeMaps(): SplitterItemPrivateComputed
|
|
17
|
+
renderVN: RenderFunction
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export interface SplitterItemPrivateRef {
|
|
21
|
+
refElem: Ref<HTMLDivElement | undefined>
|
|
22
|
+
}
|
|
23
|
+
export interface VxeSplitterPanelPrivateRef extends SplitterItemPrivateRef { }
|
|
24
|
+
|
|
25
|
+
export namespace VxeSplitterPanelPropTypes {
|
|
26
|
+
export type Name = string | number
|
|
27
|
+
export type Width = string | number
|
|
28
|
+
export type Height = string | number
|
|
29
|
+
export type MinWidth = string | number
|
|
30
|
+
export type MinHeight = string | number
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* 已废弃
|
|
34
|
+
* @deprecated
|
|
35
|
+
*/
|
|
36
|
+
export type ShowAction = boolean
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export interface VxeSplitterPanelProps {
|
|
40
|
+
name?: VxeSplitterPanelPropTypes.Name
|
|
41
|
+
width?: VxeSplitterPanelPropTypes.Width
|
|
42
|
+
height?: VxeSplitterPanelPropTypes.Height
|
|
43
|
+
minWidth?: VxeSplitterPanelPropTypes.MinWidth
|
|
44
|
+
minHeight?: VxeSplitterPanelPropTypes.MinHeight
|
|
45
|
+
slots?: {
|
|
46
|
+
default?: string | ((params: VxeSplitterPanelSlotTypes.DefaultSlotParams) => VxeComponentSlotType | VxeComponentSlotType[])
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* 已废弃
|
|
51
|
+
* @deprecated
|
|
52
|
+
*/
|
|
53
|
+
showAction?: VxeSplitterPanelPropTypes.ShowAction
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export interface SplitterItemPrivateComputed {
|
|
57
|
+
}
|
|
58
|
+
export interface VxeSplitterPanelPrivateComputed extends SplitterItemPrivateComputed { }
|
|
59
|
+
|
|
60
|
+
export interface SplitterItemReactData {
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export interface SplitterItemInternalData {
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export interface SplitterItemMethods {
|
|
67
|
+
dispatchEvent(type: ValueOf<VxeSplitterPanelEmits>, params: Record<string, any>, evnt: Event | null): void
|
|
68
|
+
}
|
|
69
|
+
export interface VxeSplitterPanelMethods extends SplitterItemMethods { }
|
|
70
|
+
|
|
71
|
+
export interface SplitterItemPrivateMethods { }
|
|
72
|
+
export interface VxeSplitterPanelPrivateMethods extends SplitterItemPrivateMethods { }
|
|
73
|
+
|
|
74
|
+
export type VxeSplitterPanelEmits = [
|
|
75
|
+
]
|
|
76
|
+
|
|
77
|
+
export namespace VxeSplitterPanelDefines {
|
|
78
|
+
export interface SplitterItemEventParams extends VxeComponentEventParams {
|
|
79
|
+
$splitterPanel: VxeSplitterPanelConstructor
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export type VxeSplitterPanelEventProps = {
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
export interface VxeSplitterPanelListeners {
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
export namespace VxeSplitterPanelEvents {
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
export namespace VxeSplitterPanelSlotTypes {
|
|
93
|
+
export interface DefaultSlotParams {
|
|
94
|
+
name: VxeSplitterPanelPropTypes.Name
|
|
95
|
+
isVisible: boolean
|
|
96
|
+
isExpand: boolean
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
export interface VxeSplitterPanelSlots {
|
|
101
|
+
default?: (params: VxeSplitterPanelSlotTypes.DefaultSlotParams) => any
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
export const SplitterItem: typeof VxeSplitterPanel
|
|
105
|
+
export default VxeSplitterPanel
|
|
@@ -0,0 +1,288 @@
|
|
|
1
|
+
import { RenderFunction, SetupContext, Ref, ComputedRef } from 'vue'
|
|
2
|
+
import { DefineVxeComponentApp, DefineVxeComponentOptions, DefineVxeComponentInstance, VxeComponentBaseOptions, VxeComponentEventParams, ValueOf, VxeComponentSizeType } from '@vxe-ui/core'
|
|
3
|
+
import { VxeSplitterPanelProps, VxeSplitterPanelPropTypes } from './splitter-panel'
|
|
4
|
+
|
|
5
|
+
/* eslint-disable no-use-before-define,@typescript-eslint/ban-types */
|
|
6
|
+
|
|
7
|
+
export declare const VxeSplitter: DefineVxeComponentApp<VxeSplitterProps, VxeSplitterEventProps, VxeSplitterSlots, VxeSplitterMethods>
|
|
8
|
+
export type VxeSplitterComponent = DefineVxeComponentOptions<VxeSplitterProps, VxeSplitterEventProps>
|
|
9
|
+
|
|
10
|
+
export type VxeSplitterInstance = DefineVxeComponentInstance<VxeSplitterProps, VxeSplitterConstructor>
|
|
11
|
+
|
|
12
|
+
export interface VxeSplitterConstructor extends VxeComponentBaseOptions, VxeSplitterMethods {
|
|
13
|
+
props: VxeSplitterProps
|
|
14
|
+
context: SetupContext<VxeSplitterEmits>
|
|
15
|
+
reactData: SplitterReactData
|
|
16
|
+
getRefMaps(): SplitterPrivateRef
|
|
17
|
+
getComputeMaps(): SplitterPrivateComputed
|
|
18
|
+
renderVN: RenderFunction
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export interface SplitterPrivateRef {
|
|
22
|
+
refElem: Ref<HTMLDivElement | undefined>
|
|
23
|
+
}
|
|
24
|
+
export interface VxeSplitterPrivateRef extends SplitterPrivateRef { }
|
|
25
|
+
|
|
26
|
+
export namespace VxeSplitterPropTypes {
|
|
27
|
+
export type Size = VxeComponentSizeType
|
|
28
|
+
export type Height = string | number
|
|
29
|
+
export type Width = string | number
|
|
30
|
+
export type Padding = boolean
|
|
31
|
+
export type Vertical = boolean
|
|
32
|
+
export type Border = boolean
|
|
33
|
+
export type Resize = boolean
|
|
34
|
+
export type Items = VxeSplitterPanelProps[]
|
|
35
|
+
export interface ItemConfig {
|
|
36
|
+
minWidth?: string | number
|
|
37
|
+
minHeight?: string | number
|
|
38
|
+
}
|
|
39
|
+
export interface BarConfig {
|
|
40
|
+
width?: string | number
|
|
41
|
+
height?: string | number
|
|
42
|
+
}
|
|
43
|
+
export interface ResizeConfig {
|
|
44
|
+
/**
|
|
45
|
+
* 是否实时同步渲染
|
|
46
|
+
*/
|
|
47
|
+
immediate?: boolean
|
|
48
|
+
/**
|
|
49
|
+
* 是否显示拖拽提示
|
|
50
|
+
*/
|
|
51
|
+
showTip?: boolean
|
|
52
|
+
}
|
|
53
|
+
export interface ActionConfig {
|
|
54
|
+
/**
|
|
55
|
+
* 是否启用
|
|
56
|
+
*/
|
|
57
|
+
enabled?: boolean
|
|
58
|
+
/**
|
|
59
|
+
* 触发方式
|
|
60
|
+
*/
|
|
61
|
+
trigger?: 'click' | 'dblclick' | '' | null
|
|
62
|
+
/**
|
|
63
|
+
* 显示往向前折叠按钮
|
|
64
|
+
*/
|
|
65
|
+
showPrevButton?: boolean
|
|
66
|
+
/**
|
|
67
|
+
* 显示往向后折叠按钮
|
|
68
|
+
*/
|
|
69
|
+
showNextButton?: boolean
|
|
70
|
+
/**
|
|
71
|
+
* 自定义展开图标
|
|
72
|
+
*/
|
|
73
|
+
openIcon?: string
|
|
74
|
+
/**
|
|
75
|
+
* 自定义关闭图标
|
|
76
|
+
*/
|
|
77
|
+
closeIcon?: string
|
|
78
|
+
|
|
79
|
+
/**
|
|
80
|
+
* 折叠方向
|
|
81
|
+
* 支持向前和向后折叠
|
|
82
|
+
* @deprecated
|
|
83
|
+
*/
|
|
84
|
+
direction?: 'prev' | 'next' | '' | null
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
export interface VxeSplitterProps {
|
|
89
|
+
size?: VxeSplitterPropTypes.Size
|
|
90
|
+
/**
|
|
91
|
+
* 高度
|
|
92
|
+
*/
|
|
93
|
+
height?: VxeSplitterPropTypes.Height
|
|
94
|
+
/**
|
|
95
|
+
* 宽度
|
|
96
|
+
*/
|
|
97
|
+
width?: VxeSplitterPropTypes.Width
|
|
98
|
+
/**
|
|
99
|
+
* 显示边距
|
|
100
|
+
*/
|
|
101
|
+
padding?: VxeSplitterPropTypes.Padding
|
|
102
|
+
/**
|
|
103
|
+
* 使用垂直布局
|
|
104
|
+
*/
|
|
105
|
+
vertical?: VxeSplitterPropTypes.Vertical
|
|
106
|
+
/**
|
|
107
|
+
* 是否带有边框
|
|
108
|
+
*/
|
|
109
|
+
border?: VxeSplitterPropTypes.Border
|
|
110
|
+
/**
|
|
111
|
+
* 是否允许拖拽
|
|
112
|
+
*/
|
|
113
|
+
resize?: VxeSplitterPropTypes.Resize
|
|
114
|
+
/**
|
|
115
|
+
* 面板列表
|
|
116
|
+
*/
|
|
117
|
+
items?: VxeSplitterPropTypes.Items
|
|
118
|
+
/**
|
|
119
|
+
* 面板的配置项
|
|
120
|
+
*/
|
|
121
|
+
itemConfig?: VxeSplitterPropTypes.ItemConfig
|
|
122
|
+
/**
|
|
123
|
+
* 拖动条配置项
|
|
124
|
+
*/
|
|
125
|
+
barConfig?: VxeSplitterPropTypes.BarConfig
|
|
126
|
+
/**
|
|
127
|
+
* 拖拽配置项
|
|
128
|
+
*/
|
|
129
|
+
resizeConfig?: VxeSplitterPropTypes.ResizeConfig
|
|
130
|
+
/**
|
|
131
|
+
* 折叠按钮配置项
|
|
132
|
+
*/
|
|
133
|
+
actionConfig?: VxeSplitterPropTypes.ActionConfig
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
export interface SplitterPrivateComputed {
|
|
137
|
+
computeItemOpts: ComputedRef<VxeSplitterPropTypes.ItemConfig>
|
|
138
|
+
computeBarOpts: ComputedRef<VxeSplitterPropTypes.BarConfig>
|
|
139
|
+
computeActionOpts: ComputedRef<VxeSplitterPropTypes.ActionConfig>
|
|
140
|
+
}
|
|
141
|
+
export interface VxeSplitterPrivateComputed extends SplitterPrivateComputed { }
|
|
142
|
+
|
|
143
|
+
export interface SplitterReactData {
|
|
144
|
+
staticItems: VxeSplitterDefines.PaneConfig[]
|
|
145
|
+
itemList: VxeSplitterDefines.PaneConfig[]
|
|
146
|
+
barWidth: number
|
|
147
|
+
barHeight: number
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
export interface SplitterInternalData {
|
|
151
|
+
wrapperWidth: number
|
|
152
|
+
wrapperHeight: number
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
export interface SplitterMethods {
|
|
156
|
+
dispatchEvent(type: ValueOf<VxeSplitterEmits>, params: Record<string, any>, evnt: Event | null): void
|
|
157
|
+
/**
|
|
158
|
+
* 设置指定面板的展开状态
|
|
159
|
+
*/
|
|
160
|
+
setItemExpand(name: VxeSplitterPanelPropTypes.Name, expanded: boolean): Promise<void>
|
|
161
|
+
/**
|
|
162
|
+
* 切换指定面板的展开状态
|
|
163
|
+
*/
|
|
164
|
+
toggleItemExpand(name: VxeSplitterPanelPropTypes.Name): Promise<void>
|
|
165
|
+
/**
|
|
166
|
+
* 获取指定面板的展开状态
|
|
167
|
+
*/
|
|
168
|
+
getItemExpand(name: VxeSplitterPanelPropTypes.Name): boolean
|
|
169
|
+
/**
|
|
170
|
+
* 重新计算布局
|
|
171
|
+
*/
|
|
172
|
+
recalculate(): Promise<void>
|
|
173
|
+
/**
|
|
174
|
+
* 重置面板
|
|
175
|
+
*/
|
|
176
|
+
reset(): Promise<void>
|
|
177
|
+
/**
|
|
178
|
+
* 加载面板配置
|
|
179
|
+
*/
|
|
180
|
+
loadItem(list: VxeSplitterPanelProps[]): Promise<void>
|
|
181
|
+
/**
|
|
182
|
+
* 重新加载面板配置,区别就是会重置
|
|
183
|
+
*/
|
|
184
|
+
reloadItem(list: VxeSplitterPanelProps[]): Promise<void>
|
|
185
|
+
}
|
|
186
|
+
export interface VxeSplitterMethods extends SplitterMethods { }
|
|
187
|
+
|
|
188
|
+
export interface SplitterPrivateMethods { }
|
|
189
|
+
export interface VxeSplitterPrivateMethods extends SplitterPrivateMethods { }
|
|
190
|
+
|
|
191
|
+
export type VxeSplitterEmits = [
|
|
192
|
+
'action-dblclick',
|
|
193
|
+
'action-click',
|
|
194
|
+
'toggle-expand',
|
|
195
|
+
'resize-start',
|
|
196
|
+
'resize-drag',
|
|
197
|
+
'resize-end'
|
|
198
|
+
]
|
|
199
|
+
|
|
200
|
+
export namespace VxeSplitterDefines {
|
|
201
|
+
export interface SplitterEventParams extends VxeComponentEventParams {
|
|
202
|
+
$splitter: VxeSplitterConstructor
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
export interface PaneConfig extends VxeSplitterPanelProps {
|
|
206
|
+
id: string
|
|
207
|
+
isExpand: boolean
|
|
208
|
+
renderWidth: number
|
|
209
|
+
foldWidth: number
|
|
210
|
+
resizeWidth: number
|
|
211
|
+
renderHeight: number
|
|
212
|
+
resizeHeight: number
|
|
213
|
+
foldHeight: number
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
export interface ActionClickEventParams extends SplitterEventParams {
|
|
217
|
+
prevItem: PaneConfig
|
|
218
|
+
nextItem: PaneConfig
|
|
219
|
+
}
|
|
220
|
+
export interface ActionDblclickEventParams extends ActionClickEventParams {}
|
|
221
|
+
export interface ToggleExpandEventParams extends SplitterEventParams {
|
|
222
|
+
prevItem: PaneConfig
|
|
223
|
+
nextItem: PaneConfig
|
|
224
|
+
expanded: boolean
|
|
225
|
+
item: PaneConfig
|
|
226
|
+
}
|
|
227
|
+
export interface ResizeStartEventParams extends SplitterEventParams {
|
|
228
|
+
prevItem: PaneConfig
|
|
229
|
+
nextItem: PaneConfig
|
|
230
|
+
}
|
|
231
|
+
export interface ResizeDragEventParams extends SplitterEventParams {
|
|
232
|
+
prevItem: PaneConfig
|
|
233
|
+
nextItem: PaneConfig
|
|
234
|
+
}
|
|
235
|
+
export interface ResizeEndEventParams extends SplitterEventParams {
|
|
236
|
+
item: PaneConfig
|
|
237
|
+
name: VxeSplitterPanelPropTypes.Name
|
|
238
|
+
offsetHeight: number
|
|
239
|
+
offsetWidth: number
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
export type VxeSplitterEventProps = {
|
|
244
|
+
onActionDblclick?: VxeSplitterEvents.ActionDblclick
|
|
245
|
+
onActionClick?: VxeSplitterEvents.ActionClick
|
|
246
|
+
onToggleExpand?: VxeSplitterEvents.ToggleExpand
|
|
247
|
+
onResizeStart?: VxeSplitterEvents.ResizeStart
|
|
248
|
+
onResizeDrag?: VxeSplitterEvents.ResizeDrag
|
|
249
|
+
onResizeEnd?: VxeSplitterEvents.ResizeEnd
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
export interface VxeSplitterListeners {
|
|
253
|
+
actionDblclick?: VxeSplitterEvents.ActionDblclick
|
|
254
|
+
actionClick?: VxeSplitterEvents.ActionClick
|
|
255
|
+
toggleExpand?: VxeSplitterEvents.ToggleExpand
|
|
256
|
+
resizeStart?: VxeSplitterEvents.ResizeStart
|
|
257
|
+
resizeDrag?: VxeSplitterEvents.ResizeDrag
|
|
258
|
+
resizeEnd?: VxeSplitterEvents.ResizeEnd
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
export namespace VxeSplitterEvents {
|
|
262
|
+
export type ActionDblclick = (params: VxeSplitterDefines.ActionDblclickEventParams) => void
|
|
263
|
+
export type ActionClick = (params: VxeSplitterDefines.ActionClickEventParams) => void
|
|
264
|
+
export type ToggleExpand = (params: VxeSplitterDefines.ToggleExpandEventParams) => void
|
|
265
|
+
export type ResizeStart = (params: VxeSplitterDefines.ResizeStartEventParams) => void
|
|
266
|
+
export type ResizeDrag = (params: VxeSplitterDefines.ResizeDragEventParams) => void
|
|
267
|
+
export type ResizeEnd = (params: VxeSplitterDefines.ResizeEndEventParams) => void
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
export namespace VxeSplitterSlotTypes {
|
|
271
|
+
export interface DefaultSlotParams {
|
|
272
|
+
}
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
export interface VxeSplitterSlots {
|
|
276
|
+
/**
|
|
277
|
+
* 自定义插槽模板
|
|
278
|
+
*/
|
|
279
|
+
[key: string]: ((params: {
|
|
280
|
+
name: VxeSplitterPanelPropTypes.Name
|
|
281
|
+
isExpand: boolean
|
|
282
|
+
}) => any) | undefined
|
|
283
|
+
|
|
284
|
+
default?: (params: VxeSplitterSlotTypes.DefaultSlotParams) => any
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
export const Splitter: typeof VxeSplitter
|
|
288
|
+
export default VxeSplitter
|
|
@@ -1519,6 +1519,10 @@ export namespace VxeTablePropTypes {
|
|
|
1519
1519
|
* 树节点的连接线(启用连接线会降低渲染性能)
|
|
1520
1520
|
*/
|
|
1521
1521
|
showLine?: boolean
|
|
1522
|
+
/**
|
|
1523
|
+
* 只对 showLine 有效,显示树的根节点连接线
|
|
1524
|
+
*/
|
|
1525
|
+
showRootLine?: boolean
|
|
1522
1526
|
/**
|
|
1523
1527
|
* 树结构序号显示模式,支持层级序号和自增序号(仅支持 transform)个固定序号
|
|
1524
1528
|
*/
|
|
@@ -5471,6 +5475,7 @@ export namespace VxeTableDefines {
|
|
|
5471
5475
|
resizeHeight: number
|
|
5472
5476
|
oTop: number
|
|
5473
5477
|
expandHeight: number
|
|
5478
|
+
oHeight?: number
|
|
5474
5479
|
lineHeight?: number
|
|
5475
5480
|
treeLoaded?: boolean
|
|
5476
5481
|
expandLoaded?: boolean
|