vxe-pc-ui 4.5.3 → 4.5.5
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/collapse/src/collapse.js +5 -1
- package/es/form/src/form.js +12 -16
- package/es/icon/style.css +1 -1
- package/es/split/src/split.js +126 -28
- package/es/split/style.css +1 -1
- 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 +1 -1
- package/es/ui/src/log.js +1 -1
- package/es/vxe-split/style.css +1 -1
- package/es/vxe-split/style.min.css +1 -1
- package/lib/collapse/src/collapse.js +8 -1
- package/lib/collapse/src/collapse.min.js +1 -1
- package/lib/form/src/form.js +12 -16
- package/lib/form/src/form.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 +162 -45
- package/lib/index.umd.min.js +1 -1
- package/lib/split/src/split.js +143 -28
- package/lib/split/src/split.min.js +1 -1
- package/lib/split/style/style.css +1 -1
- 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 +1 -1
- 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 +1 -1
- package/lib/vxe-split/style/style.min.css +1 -1
- package/package.json +1 -1
- package/packages/collapse/src/collapse.ts +5 -1
- package/packages/form/src/form.ts +12 -16
- package/packages/split/src/split.ts +134 -31
- package/styles/components/split.scss +1 -1
- package/types/components/carousel.d.ts +13 -3
- package/types/components/collapse.d.ts +23 -4
- package/types/components/split-item.d.ts +3 -0
- package/types/components/split.d.ts +63 -1
- /package/es/icon/{iconfont.1743080348682.ttf → iconfont.1743138565378.ttf} +0 -0
- /package/es/icon/{iconfont.1743080348682.woff → iconfont.1743138565378.woff} +0 -0
- /package/es/icon/{iconfont.1743080348682.woff2 → iconfont.1743138565378.woff2} +0 -0
- /package/es/{iconfont.1743080348682.ttf → iconfont.1743138565378.ttf} +0 -0
- /package/es/{iconfont.1743080348682.woff → iconfont.1743138565378.woff} +0 -0
- /package/es/{iconfont.1743080348682.woff2 → iconfont.1743138565378.woff2} +0 -0
- /package/lib/icon/style/{iconfont.1743080348682.ttf → iconfont.1743138565378.ttf} +0 -0
- /package/lib/icon/style/{iconfont.1743080348682.woff → iconfont.1743138565378.woff} +0 -0
- /package/lib/icon/style/{iconfont.1743080348682.woff2 → iconfont.1743138565378.woff2} +0 -0
- /package/lib/{iconfont.1743080348682.ttf → iconfont.1743138565378.ttf} +0 -0
- /package/lib/{iconfont.1743080348682.woff → iconfont.1743138565378.woff} +0 -0
- /package/lib/{iconfont.1743080348682.woff2 → iconfont.1743138565378.woff2} +0 -0
|
@@ -29,6 +29,7 @@ export namespace VxeSplitPropTypes {
|
|
|
29
29
|
export type Padding = boolean
|
|
30
30
|
export type Vertical = boolean
|
|
31
31
|
export type Border = boolean
|
|
32
|
+
export type Items = VxeSplitItemProps[]
|
|
32
33
|
export interface ItemConfig {
|
|
33
34
|
minWidth?: string | number
|
|
34
35
|
minHeight?: string | number
|
|
@@ -63,13 +64,41 @@ export namespace VxeSplitPropTypes {
|
|
|
63
64
|
}
|
|
64
65
|
|
|
65
66
|
export type VxeSplitProps = {
|
|
67
|
+
/**
|
|
68
|
+
* 高度
|
|
69
|
+
*/
|
|
66
70
|
height?: VxeSplitPropTypes.Height
|
|
71
|
+
/**
|
|
72
|
+
* 宽度
|
|
73
|
+
*/
|
|
67
74
|
width?: VxeSplitPropTypes.Width
|
|
75
|
+
/**
|
|
76
|
+
* 显示边距
|
|
77
|
+
*/
|
|
68
78
|
padding?: VxeSplitPropTypes.Padding
|
|
79
|
+
/**
|
|
80
|
+
* 使用垂直布局
|
|
81
|
+
*/
|
|
69
82
|
vertical?: VxeSplitPropTypes.Vertical
|
|
83
|
+
/**
|
|
84
|
+
* 是否带有边框
|
|
85
|
+
*/
|
|
70
86
|
border?: VxeSplitPropTypes.Border
|
|
87
|
+
/**
|
|
88
|
+
* 面板列表
|
|
89
|
+
*/
|
|
90
|
+
items?: VxeSplitPropTypes.Items
|
|
91
|
+
/**
|
|
92
|
+
* 面板的配置项
|
|
93
|
+
*/
|
|
71
94
|
itemConfig?: VxeSplitPropTypes.ItemConfig
|
|
95
|
+
/**
|
|
96
|
+
* 拖动条配置项
|
|
97
|
+
*/
|
|
72
98
|
barConfig?: VxeSplitPropTypes.BarConfig
|
|
99
|
+
/**
|
|
100
|
+
* 折叠按钮配置项
|
|
101
|
+
*/
|
|
73
102
|
actionConfig?: VxeSplitPropTypes.ActionConfig
|
|
74
103
|
}
|
|
75
104
|
|
|
@@ -83,6 +112,7 @@ export interface VxeSplitPrivateComputed extends SplitPrivateComputed { }
|
|
|
83
112
|
|
|
84
113
|
export interface SplitReactData {
|
|
85
114
|
staticItems: VxeSplitDefines.ChunkConfig[]
|
|
115
|
+
itemList: VxeSplitDefines.ChunkConfig[]
|
|
86
116
|
}
|
|
87
117
|
|
|
88
118
|
export interface SplitInternalData {
|
|
@@ -90,7 +120,22 @@ export interface SplitInternalData {
|
|
|
90
120
|
|
|
91
121
|
export interface SplitMethods {
|
|
92
122
|
dispatchEvent(type: ValueOf<VxeSplitEmits>, params: Record<string, any>, evnt: Event | null): void
|
|
123
|
+
/**
|
|
124
|
+
* 重新计算布局
|
|
125
|
+
*/
|
|
93
126
|
recalculate(): Promise<void>
|
|
127
|
+
/**
|
|
128
|
+
* 重置面板
|
|
129
|
+
*/
|
|
130
|
+
reset(): Promise<void>
|
|
131
|
+
/**
|
|
132
|
+
* 加载面板配置
|
|
133
|
+
*/
|
|
134
|
+
loadItem(list: VxeSplitItemProps[]): Promise<void>
|
|
135
|
+
/**
|
|
136
|
+
* 重新加载面板配置,区别就是会重置
|
|
137
|
+
*/
|
|
138
|
+
reloadItem(list: VxeSplitItemProps[]): Promise<void>
|
|
94
139
|
}
|
|
95
140
|
export interface VxeSplitMethods extends SplitMethods { }
|
|
96
141
|
|
|
@@ -100,6 +145,7 @@ export interface VxeSplitPrivateMethods extends SplitPrivateMethods { }
|
|
|
100
145
|
export type VxeSplitEmits = [
|
|
101
146
|
'action-dblclick',
|
|
102
147
|
'action-click',
|
|
148
|
+
'toggle-expand',
|
|
103
149
|
'resize-start',
|
|
104
150
|
'resize-drag',
|
|
105
151
|
'resize-end'
|
|
@@ -125,11 +171,15 @@ export namespace VxeSplitDefines {
|
|
|
125
171
|
export interface ActionClickEventParams extends SplitEventParams {
|
|
126
172
|
item: ChunkConfig
|
|
127
173
|
name: VxeSplitItemPropTypes.Name
|
|
174
|
+
}
|
|
175
|
+
export interface ActionDblclickEventParams extends ActionClickEventParams {}
|
|
176
|
+
export interface ToggleExpandEventParams extends SplitEventParams {
|
|
177
|
+
item: ChunkConfig
|
|
178
|
+
name: VxeSplitItemPropTypes.Name
|
|
128
179
|
targetItem: ChunkConfig
|
|
129
180
|
targetName: VxeSplitItemPropTypes.Name
|
|
130
181
|
expanded: boolean
|
|
131
182
|
}
|
|
132
|
-
export interface ActionDblclickEventParams extends ActionClickEventParams {}
|
|
133
183
|
export interface ResizeStartEventParams extends SplitEventParams {
|
|
134
184
|
item: ChunkConfig
|
|
135
185
|
name: VxeSplitItemPropTypes.Name
|
|
@@ -153,6 +203,7 @@ export namespace VxeSplitDefines {
|
|
|
153
203
|
export type VxeSplitEventProps = {
|
|
154
204
|
onActionDblclick?: VxeSplitEvents.ActionDblclick
|
|
155
205
|
onActionClick?: VxeSplitEvents.ActionClick
|
|
206
|
+
onToggleExpand?: VxeSplitEvents.ToggleExpand
|
|
156
207
|
onResizeStart?: VxeSplitEvents.ResizeStart
|
|
157
208
|
onResizeDrag?: VxeSplitEvents.ResizeDrag
|
|
158
209
|
onResizeEnd?: VxeSplitEvents.ResizeEnd
|
|
@@ -161,6 +212,7 @@ export type VxeSplitEventProps = {
|
|
|
161
212
|
export interface VxeSplitListeners {
|
|
162
213
|
actionDblclick?: VxeSplitEvents.ActionDblclick
|
|
163
214
|
actionClick?: VxeSplitEvents.ActionClick
|
|
215
|
+
toggleExpand?: VxeSplitEvents.ToggleExpand
|
|
164
216
|
resizeStart?: VxeSplitEvents.ResizeStart
|
|
165
217
|
resizeDrag?: VxeSplitEvents.ResizeDrag
|
|
166
218
|
resizeEnd?: VxeSplitEvents.ResizeEnd
|
|
@@ -169,6 +221,7 @@ export interface VxeSplitListeners {
|
|
|
169
221
|
export namespace VxeSplitEvents {
|
|
170
222
|
export type ActionDblclick = (params: VxeSplitDefines.ActionDblclickEventParams) => void
|
|
171
223
|
export type ActionClick = (params: VxeSplitDefines.ActionClickEventParams) => void
|
|
224
|
+
export type ToggleExpand = (params: VxeSplitDefines.ToggleExpandEventParams) => void
|
|
172
225
|
export type ResizeStart = (params: VxeSplitDefines.ResizeStartEventParams) => void
|
|
173
226
|
export type ResizeDrag = (params: VxeSplitDefines.ResizeDragEventParams) => void
|
|
174
227
|
export type ResizeEnd = (params: VxeSplitDefines.ResizeEndEventParams) => void
|
|
@@ -180,6 +233,15 @@ export namespace VxeSplitSlotTypes {
|
|
|
180
233
|
}
|
|
181
234
|
|
|
182
235
|
export interface VxeSplitSlots {
|
|
236
|
+
/**
|
|
237
|
+
* 自定义插槽模板
|
|
238
|
+
*/
|
|
239
|
+
[key: string]: ((params: {
|
|
240
|
+
name: VxeSplitItemPropTypes.Name
|
|
241
|
+
isVisible: boolean
|
|
242
|
+
isExpand: boolean
|
|
243
|
+
}) => any) | undefined
|
|
244
|
+
|
|
183
245
|
default?: (params: VxeSplitSlotTypes.DefaultSlotParams) => any
|
|
184
246
|
}
|
|
185
247
|
|
|
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
|