vxe-pc-ui 3.9.0 → 3.9.2
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/split/src/split-pane.js +3 -3
- package/es/split/src/split.js +239 -139
- package/es/split/style.css +82 -45
- 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/upload/src/upload.js +3 -1
- package/es/vxe-split/style.css +82 -45
- 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 +267 -166
- package/lib/index.umd.min.js +1 -1
- package/lib/split/src/split-pane.js +3 -3
- package/lib/split/src/split-pane.min.js +1 -1
- package/lib/split/src/split.js +258 -160
- package/lib/split/src/split.min.js +1 -1
- package/lib/split/style/style.css +82 -45
- 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/upload/src/upload.js +3 -1
- package/lib/upload/src/upload.min.js +1 -1
- package/lib/vxe-split/style/style.css +82 -45
- package/lib/vxe-split/style/style.min.css +1 -1
- package/package.json +1 -1
- package/packages/split/src/split-pane.ts +4 -3
- package/packages/split/src/split.ts +236 -141
- package/packages/upload/src/upload.ts +3 -1
- package/styles/components/split.scss +109 -88
- package/types/components/split-pane.d.ts +11 -2
- package/types/components/split.d.ts +26 -20
- /package/es/icon/{iconfont.1756083812307.ttf → iconfont.1756133785685.ttf} +0 -0
- /package/es/icon/{iconfont.1756083812307.woff → iconfont.1756133785685.woff} +0 -0
- /package/es/icon/{iconfont.1756083812307.woff2 → iconfont.1756133785685.woff2} +0 -0
- /package/es/{iconfont.1756083812307.ttf → iconfont.1756133785685.ttf} +0 -0
- /package/es/{iconfont.1756083812307.woff → iconfont.1756133785685.woff} +0 -0
- /package/es/{iconfont.1756083812307.woff2 → iconfont.1756133785685.woff2} +0 -0
- /package/lib/icon/style/{iconfont.1756083812307.ttf → iconfont.1756133785685.ttf} +0 -0
- /package/lib/icon/style/{iconfont.1756083812307.woff → iconfont.1756133785685.woff} +0 -0
- /package/lib/icon/style/{iconfont.1756083812307.woff2 → iconfont.1756133785685.woff2} +0 -0
- /package/lib/{iconfont.1756083812307.ttf → iconfont.1756133785685.ttf} +0 -0
- /package/lib/{iconfont.1756083812307.woff → iconfont.1756133785685.woff} +0 -0
- /package/lib/{iconfont.1756083812307.woff2 → iconfont.1756133785685.woff2} +0 -0
|
@@ -118,6 +118,7 @@
|
|
|
118
118
|
}
|
|
119
119
|
|
|
120
120
|
.vxe-split-pane-handle {
|
|
121
|
+
display: flex;
|
|
121
122
|
position: relative;
|
|
122
123
|
flex-shrink: 0;
|
|
123
124
|
user-select: none;
|
|
@@ -143,18 +144,22 @@
|
|
|
143
144
|
background-color: var(--vxe-ui-split-handle-bar-hover-background-color);
|
|
144
145
|
}
|
|
145
146
|
}
|
|
146
|
-
|
|
147
|
+
|
|
148
|
+
.vxe-split-pane-action-btn-wrapper {
|
|
147
149
|
position: absolute;
|
|
150
|
+
display: flex;
|
|
151
|
+
top: 50%;
|
|
152
|
+
left: 50%;
|
|
153
|
+
transform: translate(-50%, -50%);
|
|
154
|
+
z-index: 2;
|
|
155
|
+
}
|
|
156
|
+
.vxe-split-pane-action-btn {
|
|
148
157
|
display: flex;
|
|
149
158
|
flex-direction: row;
|
|
150
159
|
align-items: center;
|
|
151
160
|
justify-content: center;
|
|
152
161
|
font-size: 0.5em;
|
|
153
162
|
border-radius: var(--vxe-ui-base-border-radius);
|
|
154
|
-
top: 50%;
|
|
155
|
-
left: 50%;
|
|
156
|
-
transform: translate(-50%, -50%);
|
|
157
|
-
z-index: 2;
|
|
158
163
|
color: var(--vxe-ui-layout-background-color);
|
|
159
164
|
background-color: var(--vxe-ui-split-handle-button-background-color);
|
|
160
165
|
border: 1px solid var(--vxe-ui-input-border-color);
|
|
@@ -165,7 +170,86 @@
|
|
|
165
170
|
background-color: var(--vxe-ui-font-primary-color);
|
|
166
171
|
}
|
|
167
172
|
&:active {
|
|
168
|
-
transform:
|
|
173
|
+
transform: scale(0.9);
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
.vxe-split-pane-handle {
|
|
177
|
+
&.is--horizontal {
|
|
178
|
+
flex-direction: row;
|
|
179
|
+
&.is--border {
|
|
180
|
+
border-width: 1px 0 1px 0;
|
|
181
|
+
}
|
|
182
|
+
.vxe-split-pane-action-btn-wrapper {
|
|
183
|
+
flex-direction: column;
|
|
184
|
+
& div {
|
|
185
|
+
margin-top: 1em;
|
|
186
|
+
&:first-child {
|
|
187
|
+
margin-top: 0;
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
.vxe-split-pane-handle-bar {
|
|
192
|
+
width: var(--vxe-ui-split-handle-bar-horizontal-width);
|
|
193
|
+
height: 100%;
|
|
194
|
+
}
|
|
195
|
+
.vxe-split-pane-action-btn {
|
|
196
|
+
width: var(--vxe-ui-split-handle-bar-horizontal-width);
|
|
197
|
+
height: var(--vxe-ui-split-handle-bar-horizontal-height);
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
&.is--vertical {
|
|
201
|
+
flex-direction: column;
|
|
202
|
+
&.is--border {
|
|
203
|
+
border-width: 0 1px 0 1px;
|
|
204
|
+
}
|
|
205
|
+
.vxe-split-pane-action-btn-wrapper {
|
|
206
|
+
flex-direction: row;
|
|
207
|
+
& div {
|
|
208
|
+
margin-left: 1em;
|
|
209
|
+
&:first-child {
|
|
210
|
+
margin-left: 0;
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
.vxe-split-pane-handle-bar {
|
|
215
|
+
height: var(--vxe-ui-split-handle-bar-vertical-height);
|
|
216
|
+
width: 100%;
|
|
217
|
+
}
|
|
218
|
+
.vxe-split-pane-action-btn {
|
|
219
|
+
width: var(--vxe-ui-split-handle-bar-vertical-width);
|
|
220
|
+
height: var(--vxe-ui-split-handle-bar-vertical-height);
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
&.is--resize {
|
|
224
|
+
&.is-resize--immediate {
|
|
225
|
+
&.is--horizontal {
|
|
226
|
+
.vxe-split-pane-handle-bar {
|
|
227
|
+
cursor: w-resize;
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
&.is--vertical {
|
|
231
|
+
.vxe-split-pane-handle-bar {
|
|
232
|
+
cursor: n-resize;
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
& > .vxe-split-pane-handle-bar {
|
|
236
|
+
&:active {
|
|
237
|
+
background-color: var(--vxe-ui-font-primary-color);
|
|
238
|
+
}
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
&.is-resize--lazy {
|
|
242
|
+
&.is--horizontal {
|
|
243
|
+
.vxe-split-pane-handle-bar {
|
|
244
|
+
cursor: col-resize;
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
&.is--vertical {
|
|
248
|
+
.vxe-split-pane-handle-bar {
|
|
249
|
+
cursor: row-resize;
|
|
250
|
+
}
|
|
251
|
+
}
|
|
252
|
+
}
|
|
169
253
|
}
|
|
170
254
|
}
|
|
171
255
|
|
|
@@ -173,17 +257,23 @@
|
|
|
173
257
|
display: flex;
|
|
174
258
|
position: relative;
|
|
175
259
|
overflow: hidden;
|
|
260
|
+
&.is--fill {
|
|
261
|
+
flex-grow: 1;
|
|
262
|
+
}
|
|
176
263
|
&.is--hidden {
|
|
177
|
-
|
|
264
|
+
&.is--horizontal {
|
|
265
|
+
width: 0;
|
|
266
|
+
}
|
|
267
|
+
&.is--vertical {
|
|
268
|
+
height: 0;
|
|
269
|
+
}
|
|
178
270
|
}
|
|
179
271
|
&.is--padding {
|
|
180
272
|
& > .vxe-split-pane--wrapper {
|
|
181
273
|
padding: var(--vxe-ui-layout-padding-default);
|
|
182
274
|
}
|
|
183
275
|
}
|
|
184
|
-
&.is--
|
|
185
|
-
flex-grow: 1;
|
|
186
|
-
}
|
|
276
|
+
&.is--hidden,
|
|
187
277
|
&.is--width,
|
|
188
278
|
&.is--height {
|
|
189
279
|
flex-shrink: 0;
|
|
@@ -193,84 +283,15 @@
|
|
|
193
283
|
border: 1px solid var(--vxe-ui-base-popup-border-color);
|
|
194
284
|
}
|
|
195
285
|
}
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
}
|
|
206
|
-
&.is--vertical {
|
|
207
|
-
& > .vxe-split-pane-handle {
|
|
208
|
-
.vxe-split-pane-handle-bar {
|
|
209
|
-
cursor: n-resize;
|
|
210
|
-
}
|
|
211
|
-
}
|
|
212
|
-
}
|
|
213
|
-
& > .vxe-split-pane-handle {
|
|
214
|
-
& > .vxe-split-pane-handle-bar {
|
|
215
|
-
&:active {
|
|
216
|
-
background-color: var(--vxe-ui-font-primary-color);
|
|
217
|
-
}
|
|
218
|
-
}
|
|
219
|
-
}
|
|
220
|
-
}
|
|
221
|
-
&.is-resize--lazy {
|
|
222
|
-
&.is--horizontal {
|
|
223
|
-
& > .vxe-split-pane-handle {
|
|
224
|
-
.vxe-split-pane-handle-bar {
|
|
225
|
-
cursor: col-resize;
|
|
226
|
-
}
|
|
227
|
-
}
|
|
228
|
-
}
|
|
229
|
-
&.is--vertical {
|
|
230
|
-
& > .vxe-split-pane-handle {
|
|
231
|
-
.vxe-split-pane-handle-bar {
|
|
232
|
-
cursor: row-resize;
|
|
233
|
-
}
|
|
234
|
-
}
|
|
235
|
-
}
|
|
236
|
-
}
|
|
237
|
-
}
|
|
238
|
-
}
|
|
239
|
-
&.is--horizontal {
|
|
240
|
-
flex-direction: row;
|
|
241
|
-
& > .vxe-split-pane-handle {
|
|
242
|
-
.vxe-split-pane-handle-bar {
|
|
243
|
-
width: var(--vxe-ui-split-handle-bar-horizontal-width);
|
|
244
|
-
height: 100%;
|
|
245
|
-
}
|
|
246
|
-
.vxe-split-pane-action-btn {
|
|
247
|
-
width: var(--vxe-ui-split-handle-bar-horizontal-width);
|
|
248
|
-
height: var(--vxe-ui-split-handle-bar-horizontal-height);
|
|
249
|
-
}
|
|
250
|
-
}
|
|
251
|
-
&.is--border {
|
|
252
|
-
& > .vxe-split-pane-handle {
|
|
253
|
-
border-width: 1px 0 1px 0;
|
|
254
|
-
}
|
|
255
|
-
}
|
|
256
|
-
}
|
|
257
|
-
&.is--vertical {
|
|
258
|
-
flex-direction: column;
|
|
259
|
-
& > .vxe-split-pane-handle {
|
|
260
|
-
.vxe-split-pane-handle-bar {
|
|
261
|
-
height: var(--vxe-ui-split-handle-bar-vertical-height);
|
|
262
|
-
width: 100%;
|
|
263
|
-
}
|
|
264
|
-
.vxe-split-pane-action-btn {
|
|
265
|
-
width: var(--vxe-ui-split-handle-bar-vertical-width);
|
|
266
|
-
height: var(--vxe-ui-split-handle-bar-vertical-height);
|
|
267
|
-
}
|
|
268
|
-
}
|
|
269
|
-
&.is--border {
|
|
270
|
-
& > .vxe-split-pane-handle {
|
|
271
|
-
border-width: 0 1px 0 1px;
|
|
272
|
-
}
|
|
273
|
-
}
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
.vxe-split--render-vars {
|
|
289
|
+
width: 0;
|
|
290
|
+
height: 0;
|
|
291
|
+
overflow: hidden;
|
|
292
|
+
.vxe-split--handle-bar-info {
|
|
293
|
+
width: var(--vxe-ui-split-handle-bar-horizontal-width);
|
|
294
|
+
height: var(--vxe-ui-split-handle-bar-vertical-height);
|
|
274
295
|
}
|
|
275
296
|
}
|
|
276
297
|
|
|
@@ -21,6 +21,11 @@ export namespace VxeSplitPanePropTypes {
|
|
|
21
21
|
export type Height = string | number
|
|
22
22
|
export type MinWidth = string | number
|
|
23
23
|
export type MinHeight = string | number
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* 已废弃
|
|
27
|
+
* @deprecated
|
|
28
|
+
*/
|
|
24
29
|
export type ShowAction = boolean
|
|
25
30
|
}
|
|
26
31
|
|
|
@@ -30,11 +35,15 @@ export interface VxeSplitPaneProps {
|
|
|
30
35
|
height?: VxeSplitPanePropTypes.Height
|
|
31
36
|
minWidth?: VxeSplitPanePropTypes.MinWidth
|
|
32
37
|
minHeight?: VxeSplitPanePropTypes.MinHeight
|
|
33
|
-
showAction?: VxeSplitPanePropTypes.ShowAction
|
|
34
|
-
|
|
35
38
|
slots?: {
|
|
36
39
|
default?: string | ((params: VxeSplitPaneSlotTypes.DefaultSlotParams) => VxeComponentSlotType | VxeComponentSlotType[])
|
|
37
40
|
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* 已废弃
|
|
44
|
+
* @deprecated
|
|
45
|
+
*/
|
|
46
|
+
showAction?: VxeSplitPanePropTypes.ShowAction
|
|
38
47
|
}
|
|
39
48
|
|
|
40
49
|
export interface SplitItemPrivateComputed {
|
|
@@ -52,10 +52,13 @@ export namespace VxeSplitPropTypes {
|
|
|
52
52
|
*/
|
|
53
53
|
trigger?: 'click' | 'dblclick' | '' | null
|
|
54
54
|
/**
|
|
55
|
-
*
|
|
56
|
-
* 支持向前和向后折叠
|
|
55
|
+
* 显示往向前折叠按钮
|
|
57
56
|
*/
|
|
58
|
-
|
|
57
|
+
showPrevButton?: boolean
|
|
58
|
+
/**
|
|
59
|
+
* 显示往向后折叠按钮
|
|
60
|
+
*/
|
|
61
|
+
showNextButton?: boolean
|
|
59
62
|
/**
|
|
60
63
|
* 自定义展开图标
|
|
61
64
|
*/
|
|
@@ -64,6 +67,13 @@ export namespace VxeSplitPropTypes {
|
|
|
64
67
|
* 自定义关闭图标
|
|
65
68
|
*/
|
|
66
69
|
closeIcon?: string
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* 折叠方向
|
|
73
|
+
* 支持向前和向后折叠
|
|
74
|
+
* @deprecated
|
|
75
|
+
*/
|
|
76
|
+
direction?: 'prev' | 'next' | '' | null
|
|
67
77
|
}
|
|
68
78
|
}
|
|
69
79
|
|
|
@@ -125,6 +135,8 @@ export interface VxeSplitPrivateComputed extends SplitPrivateComputed { }
|
|
|
125
135
|
export interface SplitReactData {
|
|
126
136
|
staticItems: VxeSplitDefines.PaneConfig[]
|
|
127
137
|
itemList: VxeSplitDefines.PaneConfig[]
|
|
138
|
+
barWidth: number
|
|
139
|
+
barHeight: number
|
|
128
140
|
}
|
|
129
141
|
|
|
130
142
|
export interface SplitInternalData {
|
|
@@ -172,7 +184,6 @@ export namespace VxeSplitDefines {
|
|
|
172
184
|
|
|
173
185
|
export interface PaneConfig extends VxeSplitPaneProps {
|
|
174
186
|
id: string
|
|
175
|
-
isVisible: boolean
|
|
176
187
|
isExpand: boolean
|
|
177
188
|
renderWidth: number
|
|
178
189
|
foldWidth: number
|
|
@@ -183,34 +194,29 @@ export namespace VxeSplitDefines {
|
|
|
183
194
|
}
|
|
184
195
|
|
|
185
196
|
export interface ActionClickEventParams extends SplitEventParams {
|
|
186
|
-
|
|
187
|
-
|
|
197
|
+
prevItem: PaneConfig
|
|
198
|
+
nextItem: PaneConfig
|
|
188
199
|
}
|
|
189
200
|
export interface ActionDblclickEventParams extends ActionClickEventParams {}
|
|
190
201
|
export interface ToggleExpandEventParams extends SplitEventParams {
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
targetItem: PaneConfig
|
|
194
|
-
targetName: VxeSplitPanePropTypes.Name
|
|
202
|
+
prevItem: PaneConfig
|
|
203
|
+
nextItem: PaneConfig
|
|
195
204
|
expanded: boolean
|
|
205
|
+
item: PaneConfig
|
|
196
206
|
}
|
|
197
207
|
export interface ResizeStartEventParams extends SplitEventParams {
|
|
198
|
-
|
|
199
|
-
|
|
208
|
+
prevItem: PaneConfig
|
|
209
|
+
nextItem: PaneConfig
|
|
200
210
|
}
|
|
201
211
|
export interface ResizeDragEventParams extends SplitEventParams {
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
offsetHeight: number
|
|
205
|
-
resizeHeight: number
|
|
206
|
-
offsetWidth: number
|
|
207
|
-
resizeWidth: number
|
|
212
|
+
prevItem: PaneConfig
|
|
213
|
+
nextItem: PaneConfig
|
|
208
214
|
}
|
|
209
215
|
export interface ResizeEndEventParams extends SplitEventParams {
|
|
210
216
|
item: PaneConfig
|
|
211
217
|
name: VxeSplitPanePropTypes.Name
|
|
212
|
-
|
|
213
|
-
|
|
218
|
+
offsetHeight: number
|
|
219
|
+
offsetWidth: number
|
|
214
220
|
}
|
|
215
221
|
}
|
|
216
222
|
|
|
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
|