vxe-pc-ui 4.5.4 → 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 +113 -30
- 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/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 +147 -47
- package/lib/index.umd.min.js +1 -1
- package/lib/split/src/split.js +128 -30
- package/lib/split/src/split.min.js +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/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 +120 -33
- 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 +62 -1
- /package/es/icon/{iconfont.1743125694154.ttf → iconfont.1743138565378.ttf} +0 -0
- /package/es/icon/{iconfont.1743125694154.woff → iconfont.1743138565378.woff} +0 -0
- /package/es/icon/{iconfont.1743125694154.woff2 → iconfont.1743138565378.woff2} +0 -0
- /package/es/{iconfont.1743125694154.ttf → iconfont.1743138565378.ttf} +0 -0
- /package/es/{iconfont.1743125694154.woff → iconfont.1743138565378.woff} +0 -0
- /package/es/{iconfont.1743125694154.woff2 → iconfont.1743138565378.woff2} +0 -0
- /package/lib/icon/style/{iconfont.1743125694154.ttf → iconfont.1743138565378.ttf} +0 -0
- /package/lib/icon/style/{iconfont.1743125694154.woff → iconfont.1743138565378.woff} +0 -0
- /package/lib/icon/style/{iconfont.1743125694154.woff2 → iconfont.1743138565378.woff2} +0 -0
- /package/lib/{iconfont.1743125694154.ttf → iconfont.1743138565378.ttf} +0 -0
- /package/lib/{iconfont.1743125694154.woff → iconfont.1743138565378.woff} +0 -0
- /package/lib/{iconfont.1743125694154.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,8 +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
|
+
*/
|
|
94
130
|
reset(): Promise<void>
|
|
131
|
+
/**
|
|
132
|
+
* 加载面板配置
|
|
133
|
+
*/
|
|
134
|
+
loadItem(list: VxeSplitItemProps[]): Promise<void>
|
|
135
|
+
/**
|
|
136
|
+
* 重新加载面板配置,区别就是会重置
|
|
137
|
+
*/
|
|
138
|
+
reloadItem(list: VxeSplitItemProps[]): Promise<void>
|
|
95
139
|
}
|
|
96
140
|
export interface VxeSplitMethods extends SplitMethods { }
|
|
97
141
|
|
|
@@ -101,6 +145,7 @@ export interface VxeSplitPrivateMethods extends SplitPrivateMethods { }
|
|
|
101
145
|
export type VxeSplitEmits = [
|
|
102
146
|
'action-dblclick',
|
|
103
147
|
'action-click',
|
|
148
|
+
'toggle-expand',
|
|
104
149
|
'resize-start',
|
|
105
150
|
'resize-drag',
|
|
106
151
|
'resize-end'
|
|
@@ -126,11 +171,15 @@ export namespace VxeSplitDefines {
|
|
|
126
171
|
export interface ActionClickEventParams extends SplitEventParams {
|
|
127
172
|
item: ChunkConfig
|
|
128
173
|
name: VxeSplitItemPropTypes.Name
|
|
174
|
+
}
|
|
175
|
+
export interface ActionDblclickEventParams extends ActionClickEventParams {}
|
|
176
|
+
export interface ToggleExpandEventParams extends SplitEventParams {
|
|
177
|
+
item: ChunkConfig
|
|
178
|
+
name: VxeSplitItemPropTypes.Name
|
|
129
179
|
targetItem: ChunkConfig
|
|
130
180
|
targetName: VxeSplitItemPropTypes.Name
|
|
131
181
|
expanded: boolean
|
|
132
182
|
}
|
|
133
|
-
export interface ActionDblclickEventParams extends ActionClickEventParams {}
|
|
134
183
|
export interface ResizeStartEventParams extends SplitEventParams {
|
|
135
184
|
item: ChunkConfig
|
|
136
185
|
name: VxeSplitItemPropTypes.Name
|
|
@@ -154,6 +203,7 @@ export namespace VxeSplitDefines {
|
|
|
154
203
|
export type VxeSplitEventProps = {
|
|
155
204
|
onActionDblclick?: VxeSplitEvents.ActionDblclick
|
|
156
205
|
onActionClick?: VxeSplitEvents.ActionClick
|
|
206
|
+
onToggleExpand?: VxeSplitEvents.ToggleExpand
|
|
157
207
|
onResizeStart?: VxeSplitEvents.ResizeStart
|
|
158
208
|
onResizeDrag?: VxeSplitEvents.ResizeDrag
|
|
159
209
|
onResizeEnd?: VxeSplitEvents.ResizeEnd
|
|
@@ -162,6 +212,7 @@ export type VxeSplitEventProps = {
|
|
|
162
212
|
export interface VxeSplitListeners {
|
|
163
213
|
actionDblclick?: VxeSplitEvents.ActionDblclick
|
|
164
214
|
actionClick?: VxeSplitEvents.ActionClick
|
|
215
|
+
toggleExpand?: VxeSplitEvents.ToggleExpand
|
|
165
216
|
resizeStart?: VxeSplitEvents.ResizeStart
|
|
166
217
|
resizeDrag?: VxeSplitEvents.ResizeDrag
|
|
167
218
|
resizeEnd?: VxeSplitEvents.ResizeEnd
|
|
@@ -170,6 +221,7 @@ export interface VxeSplitListeners {
|
|
|
170
221
|
export namespace VxeSplitEvents {
|
|
171
222
|
export type ActionDblclick = (params: VxeSplitDefines.ActionDblclickEventParams) => void
|
|
172
223
|
export type ActionClick = (params: VxeSplitDefines.ActionClickEventParams) => void
|
|
224
|
+
export type ToggleExpand = (params: VxeSplitDefines.ToggleExpandEventParams) => void
|
|
173
225
|
export type ResizeStart = (params: VxeSplitDefines.ResizeStartEventParams) => void
|
|
174
226
|
export type ResizeDrag = (params: VxeSplitDefines.ResizeDragEventParams) => void
|
|
175
227
|
export type ResizeEnd = (params: VxeSplitDefines.ResizeEndEventParams) => void
|
|
@@ -181,6 +233,15 @@ export namespace VxeSplitSlotTypes {
|
|
|
181
233
|
}
|
|
182
234
|
|
|
183
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
|
+
|
|
184
245
|
default?: (params: VxeSplitSlotTypes.DefaultSlotParams) => any
|
|
185
246
|
}
|
|
186
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
|