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
package/lib/index.umd.js
CHANGED
|
@@ -4183,14 +4183,14 @@ function checkDynamic() {
|
|
|
4183
4183
|
}
|
|
4184
4184
|
;// CONCATENATED MODULE: ./packages/ui/src/log.ts
|
|
4185
4185
|
|
|
4186
|
-
const log_version = `ui v${"4.5.
|
|
4186
|
+
const log_version = `ui v${"4.5.5"}`;
|
|
4187
4187
|
const warnLog = log.create('warn', log_version);
|
|
4188
4188
|
const errLog = log.create('error', log_version);
|
|
4189
4189
|
;// CONCATENATED MODULE: ./packages/ui/index.ts
|
|
4190
4190
|
|
|
4191
4191
|
|
|
4192
4192
|
|
|
4193
|
-
const ui_version = "4.5.
|
|
4193
|
+
const ui_version = "4.5.5";
|
|
4194
4194
|
index_esm_VxeUI.uiVersion = ui_version;
|
|
4195
4195
|
index_esm_VxeUI.dynamicApp = dynamicApp;
|
|
4196
4196
|
function config(options) {
|
|
@@ -9664,7 +9664,7 @@ const Col = VxeCol;
|
|
|
9664
9664
|
default: () => getConfig().collapse.size || getConfig().size
|
|
9665
9665
|
}
|
|
9666
9666
|
},
|
|
9667
|
-
emits: ['update:modelValue', 'load', 'change'],
|
|
9667
|
+
emits: ['update:modelValue', 'load', 'change', 'toggle-expand'],
|
|
9668
9668
|
setup(props, context) {
|
|
9669
9669
|
const {
|
|
9670
9670
|
emit,
|
|
@@ -9790,7 +9790,9 @@ const Col = VxeCol;
|
|
|
9790
9790
|
} = item;
|
|
9791
9791
|
if (name) {
|
|
9792
9792
|
const aIndex = activeNames.indexOf(name);
|
|
9793
|
+
let expanded = false;
|
|
9793
9794
|
if (aIndex === -1) {
|
|
9795
|
+
expanded = true;
|
|
9794
9796
|
activeNames.push(name);
|
|
9795
9797
|
} else {
|
|
9796
9798
|
activeNames.splice(aIndex, 1);
|
|
@@ -9800,6 +9802,11 @@ const Col = VxeCol;
|
|
|
9800
9802
|
value: activeNames,
|
|
9801
9803
|
name
|
|
9802
9804
|
}, evnt);
|
|
9805
|
+
dispatchEvent('toggle-expand', {
|
|
9806
|
+
value: activeNames,
|
|
9807
|
+
name,
|
|
9808
|
+
expanded
|
|
9809
|
+
}, evnt);
|
|
9803
9810
|
}
|
|
9804
9811
|
};
|
|
9805
9812
|
const collapsePrivateMethods = {};
|
|
@@ -18439,19 +18446,17 @@ const validErrorRuleValue = (rule, val) => {
|
|
|
18439
18446
|
};
|
|
18440
18447
|
const loadItem = list => {
|
|
18441
18448
|
if (list.length) {
|
|
18442
|
-
|
|
18443
|
-
|
|
18444
|
-
|
|
18445
|
-
external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().
|
|
18446
|
-
if (!
|
|
18447
|
-
|
|
18448
|
-
errLog('vxe.error.notSlot', [func]);
|
|
18449
|
-
}
|
|
18449
|
+
list.forEach(item => {
|
|
18450
|
+
if (item.slots) {
|
|
18451
|
+
external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().each(item.slots, func => {
|
|
18452
|
+
if (!external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(func)) {
|
|
18453
|
+
if (!slots[func]) {
|
|
18454
|
+
errLog('vxe.error.notSlot', [func]);
|
|
18450
18455
|
}
|
|
18451
|
-
}
|
|
18452
|
-
}
|
|
18453
|
-
}
|
|
18454
|
-
}
|
|
18456
|
+
}
|
|
18457
|
+
});
|
|
18458
|
+
}
|
|
18459
|
+
});
|
|
18455
18460
|
}
|
|
18456
18461
|
reactData.staticItems = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().mapTree(list, item => createItem($xeForm, item), {
|
|
18457
18462
|
children: 'children'
|
|
@@ -19058,10 +19063,8 @@ const validErrorRuleValue = (rule, val) => {
|
|
|
19058
19063
|
});
|
|
19059
19064
|
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.onMounted)(() => {
|
|
19060
19065
|
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)(() => {
|
|
19061
|
-
if (
|
|
19062
|
-
|
|
19063
|
-
errLog('vxe.error.errConflicts', ['custom-layout', 'items']);
|
|
19064
|
-
}
|
|
19066
|
+
if (props.customLayout && props.items) {
|
|
19067
|
+
errLog('vxe.error.errConflicts', ['custom-layout', 'items']);
|
|
19065
19068
|
}
|
|
19066
19069
|
});
|
|
19067
19070
|
});
|
|
@@ -45112,6 +45115,7 @@ const Select = VxeSelect;
|
|
|
45112
45115
|
|
|
45113
45116
|
|
|
45114
45117
|
|
|
45118
|
+
|
|
45115
45119
|
/* harmony default export */ var split = ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.defineComponent)({
|
|
45116
45120
|
name: 'VxeSplit',
|
|
45117
45121
|
props: {
|
|
@@ -45129,11 +45133,12 @@ const Select = VxeSelect;
|
|
|
45129
45133
|
type: Boolean,
|
|
45130
45134
|
default: () => getConfig().split.padding
|
|
45131
45135
|
},
|
|
45136
|
+
items: Array,
|
|
45132
45137
|
itemConfig: Object,
|
|
45133
45138
|
barConfig: Object,
|
|
45134
45139
|
actionConfig: Object
|
|
45135
45140
|
},
|
|
45136
|
-
emits: ['action-dblclick', 'action-click', 'resize-start', 'resize-drag', 'resize-end'],
|
|
45141
|
+
emits: ['action-dblclick', 'action-click', 'toggle-expand', 'resize-start', 'resize-drag', 'resize-end'],
|
|
45137
45142
|
setup(props, context) {
|
|
45138
45143
|
const {
|
|
45139
45144
|
emit,
|
|
@@ -45142,7 +45147,8 @@ const Select = VxeSelect;
|
|
|
45142
45147
|
const xID = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().uniqueId();
|
|
45143
45148
|
const refElem = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)();
|
|
45144
45149
|
const reactData = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.reactive)({
|
|
45145
|
-
staticItems: []
|
|
45150
|
+
staticItems: [],
|
|
45151
|
+
itemList: []
|
|
45146
45152
|
});
|
|
45147
45153
|
const internalData = {};
|
|
45148
45154
|
const computeItemOpts = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
@@ -45241,13 +45247,66 @@ const Select = VxeSelect;
|
|
|
45241
45247
|
}
|
|
45242
45248
|
return '';
|
|
45243
45249
|
};
|
|
45250
|
+
const reset = () => {
|
|
45251
|
+
const {
|
|
45252
|
+
itemList
|
|
45253
|
+
} = reactData;
|
|
45254
|
+
itemList.forEach(item => {
|
|
45255
|
+
item.isExpand = true;
|
|
45256
|
+
item.isVisible = true;
|
|
45257
|
+
item.foldHeight = 0;
|
|
45258
|
+
item.foldWidth = 0;
|
|
45259
|
+
item.resizeHeight = 0;
|
|
45260
|
+
item.resizeWidth = 0;
|
|
45261
|
+
});
|
|
45262
|
+
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)();
|
|
45263
|
+
};
|
|
45264
|
+
const handleLoadItem = (list, isReset) => {
|
|
45265
|
+
const {
|
|
45266
|
+
staticItems
|
|
45267
|
+
} = reactData;
|
|
45268
|
+
const itemDef = {
|
|
45269
|
+
isVisible: true,
|
|
45270
|
+
isExpand: true,
|
|
45271
|
+
renderWidth: 0,
|
|
45272
|
+
resizeWidth: 0,
|
|
45273
|
+
foldWidth: 0,
|
|
45274
|
+
renderHeight: 0,
|
|
45275
|
+
resizeHeight: 0,
|
|
45276
|
+
foldHeight: 0
|
|
45277
|
+
};
|
|
45278
|
+
reactData.itemList = list.map(item => {
|
|
45279
|
+
if (item.slots) {
|
|
45280
|
+
external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().each(item.slots, func => {
|
|
45281
|
+
if (!external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(func)) {
|
|
45282
|
+
if (!slots[func]) {
|
|
45283
|
+
errLog('vxe.error.notSlot', [func]);
|
|
45284
|
+
}
|
|
45285
|
+
}
|
|
45286
|
+
});
|
|
45287
|
+
}
|
|
45288
|
+
return Object.assign({}, isReset ? null : itemDef, item, isReset ? itemDef : null, {
|
|
45289
|
+
id: external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().uniqueId()
|
|
45290
|
+
});
|
|
45291
|
+
});
|
|
45292
|
+
if (staticItems.length) {
|
|
45293
|
+
errLog('vxe.error.errConflicts', ['<vxe-split-item ...>', 'items']);
|
|
45294
|
+
}
|
|
45295
|
+
return recalculate();
|
|
45296
|
+
};
|
|
45297
|
+
const loadItem = list => {
|
|
45298
|
+
return handleLoadItem(list || [], false);
|
|
45299
|
+
};
|
|
45300
|
+
const reloadItem = list => {
|
|
45301
|
+
return handleLoadItem(list || [], true);
|
|
45302
|
+
};
|
|
45244
45303
|
const recalculate = () => {
|
|
45245
45304
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)().then(() => {
|
|
45246
45305
|
const {
|
|
45247
45306
|
vertical
|
|
45248
45307
|
} = props;
|
|
45249
45308
|
const {
|
|
45250
|
-
|
|
45309
|
+
itemList
|
|
45251
45310
|
} = reactData;
|
|
45252
45311
|
const el = refElem.value;
|
|
45253
45312
|
if (!el) {
|
|
@@ -45264,7 +45323,7 @@ const Select = VxeSelect;
|
|
|
45264
45323
|
const residueItems = [];
|
|
45265
45324
|
if (vertical) {
|
|
45266
45325
|
let countHeight = 0;
|
|
45267
|
-
|
|
45326
|
+
itemList.forEach(item => {
|
|
45268
45327
|
const {
|
|
45269
45328
|
height
|
|
45270
45329
|
} = item;
|
|
@@ -45289,7 +45348,7 @@ const Select = VxeSelect;
|
|
|
45289
45348
|
}
|
|
45290
45349
|
} else {
|
|
45291
45350
|
let countWidth = 0;
|
|
45292
|
-
|
|
45351
|
+
itemList.forEach(item => {
|
|
45293
45352
|
const {
|
|
45294
45353
|
width
|
|
45295
45354
|
} = item;
|
|
@@ -45321,7 +45380,7 @@ const Select = VxeSelect;
|
|
|
45321
45380
|
vertical
|
|
45322
45381
|
} = props;
|
|
45323
45382
|
const {
|
|
45324
|
-
|
|
45383
|
+
itemList
|
|
45325
45384
|
} = reactData;
|
|
45326
45385
|
const barEl = evnt.currentTarget;
|
|
45327
45386
|
const handleEl = barEl.parentElement;
|
|
@@ -45330,8 +45389,8 @@ const Select = VxeSelect;
|
|
|
45330
45389
|
return;
|
|
45331
45390
|
}
|
|
45332
45391
|
const itemId = handleEl.getAttribute('itemid');
|
|
45333
|
-
const itemIndex = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().findIndexOf(
|
|
45334
|
-
const item =
|
|
45392
|
+
const itemIndex = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().findIndexOf(itemList, item => item.id === itemId);
|
|
45393
|
+
const item = itemList[itemIndex];
|
|
45335
45394
|
if (!item) {
|
|
45336
45395
|
return;
|
|
45337
45396
|
}
|
|
@@ -45342,7 +45401,7 @@ const Select = VxeSelect;
|
|
|
45342
45401
|
const itemOpts = computeItemOpts.value;
|
|
45343
45402
|
const allMinWidth = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toNumber(itemOpts.minWidth);
|
|
45344
45403
|
const allMinHeight = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toNumber(itemOpts.minHeight);
|
|
45345
|
-
const targetItem =
|
|
45404
|
+
const targetItem = itemList[itemIndex + (isFoldNext ? 1 : -1)];
|
|
45346
45405
|
const targetItemEl = targetItem ? el.querySelector(`.vxe-split-item[itemid="${targetItem.id}"]`) : null;
|
|
45347
45406
|
const currItemEl = item ? el.querySelector(`.vxe-split-item[itemid="${item.id}"]`) : null;
|
|
45348
45407
|
const targetWidth = targetItemEl ? targetItemEl.clientWidth : 0;
|
|
@@ -45440,6 +45499,7 @@ const Select = VxeSelect;
|
|
|
45440
45499
|
resizeHeight: item.resizeHeight,
|
|
45441
45500
|
resizeWidth: item.resizeWidth
|
|
45442
45501
|
}, evnt);
|
|
45502
|
+
recalculate();
|
|
45443
45503
|
};
|
|
45444
45504
|
dispatchEvent('resize-start', {
|
|
45445
45505
|
item,
|
|
@@ -45455,15 +45515,15 @@ const Select = VxeSelect;
|
|
|
45455
45515
|
vertical
|
|
45456
45516
|
} = props;
|
|
45457
45517
|
const {
|
|
45458
|
-
|
|
45518
|
+
itemList
|
|
45459
45519
|
} = reactData;
|
|
45460
45520
|
const isFoldNext = computeIsFoldNext.value;
|
|
45461
45521
|
const btnEl = evnt.currentTarget;
|
|
45462
45522
|
const handleEl = btnEl.parentElement;
|
|
45463
45523
|
const itemId = handleEl.getAttribute('itemid');
|
|
45464
|
-
const itemIndex = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().findIndexOf(
|
|
45465
|
-
const item =
|
|
45466
|
-
const targetItem =
|
|
45524
|
+
const itemIndex = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().findIndexOf(itemList, item => item.id === itemId);
|
|
45525
|
+
const item = itemList[itemIndex];
|
|
45526
|
+
const targetItem = itemList[itemIndex + (isFoldNext ? 1 : -1)];
|
|
45467
45527
|
if (item) {
|
|
45468
45528
|
const {
|
|
45469
45529
|
showAction,
|
|
@@ -45487,22 +45547,62 @@ const Select = VxeSelect;
|
|
|
45487
45547
|
item.foldWidth = isExpand ? (targetItem.resizeWidth || targetItem.renderWidth) + (item.resizeWidth || item.renderWidth) : 0;
|
|
45488
45548
|
}
|
|
45489
45549
|
}
|
|
45490
|
-
dispatchEvent(
|
|
45550
|
+
dispatchEvent('toggle-expand', {
|
|
45491
45551
|
item,
|
|
45492
45552
|
name: item.name,
|
|
45493
45553
|
targetItem,
|
|
45494
45554
|
targetName: targetItem ? targetItem.name : '',
|
|
45495
45555
|
expanded: item.isExpand
|
|
45496
45556
|
}, evnt);
|
|
45557
|
+
recalculate();
|
|
45497
45558
|
}
|
|
45498
45559
|
}
|
|
45499
45560
|
};
|
|
45561
|
+
const handleActionDblclickEvent = evnt => {
|
|
45562
|
+
const {
|
|
45563
|
+
itemList
|
|
45564
|
+
} = reactData;
|
|
45565
|
+
const actionOpts = computeActionOpts.value;
|
|
45566
|
+
const btnEl = evnt.currentTarget;
|
|
45567
|
+
const handleEl = btnEl.parentElement;
|
|
45568
|
+
const itemId = handleEl.getAttribute('itemid');
|
|
45569
|
+
const itemIndex = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().findIndexOf(itemList, item => item.id === itemId);
|
|
45570
|
+
const item = itemList[itemIndex];
|
|
45571
|
+
if (actionOpts.trigger === 'dblclick') {
|
|
45572
|
+
handleItemActionEvent(evnt);
|
|
45573
|
+
}
|
|
45574
|
+
dispatchEvent('action-dblclick', {
|
|
45575
|
+
item,
|
|
45576
|
+
name: item ? item.name : ''
|
|
45577
|
+
}, evnt);
|
|
45578
|
+
};
|
|
45579
|
+
const handleActionClickEvent = evnt => {
|
|
45580
|
+
const {
|
|
45581
|
+
itemList
|
|
45582
|
+
} = reactData;
|
|
45583
|
+
const actionOpts = computeActionOpts.value;
|
|
45584
|
+
const btnEl = evnt.currentTarget;
|
|
45585
|
+
const handleEl = btnEl.parentElement;
|
|
45586
|
+
const itemId = handleEl.getAttribute('itemid');
|
|
45587
|
+
const itemIndex = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().findIndexOf(itemList, item => item.id === itemId);
|
|
45588
|
+
const item = itemList[itemIndex];
|
|
45589
|
+
if (actionOpts.trigger !== 'dblclick') {
|
|
45590
|
+
handleItemActionEvent(evnt);
|
|
45591
|
+
}
|
|
45592
|
+
dispatchEvent('action-click', {
|
|
45593
|
+
item,
|
|
45594
|
+
name: item ? item.name : ''
|
|
45595
|
+
}, evnt);
|
|
45596
|
+
};
|
|
45500
45597
|
const handleGlobalResizeEvent = () => {
|
|
45501
45598
|
recalculate();
|
|
45502
45599
|
};
|
|
45503
45600
|
const splitMethods = {
|
|
45504
45601
|
dispatchEvent,
|
|
45505
|
-
recalculate
|
|
45602
|
+
recalculate,
|
|
45603
|
+
reset,
|
|
45604
|
+
loadItem,
|
|
45605
|
+
reloadItem
|
|
45506
45606
|
};
|
|
45507
45607
|
const splitPrivateMethods = {};
|
|
45508
45608
|
Object.assign($xeSplit, splitMethods, splitPrivateMethods);
|
|
@@ -45515,12 +45615,6 @@ const Select = VxeSelect;
|
|
|
45515
45615
|
isExpand,
|
|
45516
45616
|
showAction
|
|
45517
45617
|
} = item;
|
|
45518
|
-
const btnOns = {};
|
|
45519
|
-
if (actionOpts.trigger === 'dblclick') {
|
|
45520
|
-
btnOns.onDblclick = handleItemActionEvent;
|
|
45521
|
-
} else {
|
|
45522
|
-
btnOns.onClick = handleItemActionEvent;
|
|
45523
|
-
}
|
|
45524
45618
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
45525
45619
|
itemid: id,
|
|
45526
45620
|
class: ['vxe-split-item-handle', isFoldNext ? 'to--next' : 'to--prev']
|
|
@@ -45530,7 +45624,8 @@ const Select = VxeSelect;
|
|
|
45530
45624
|
onMousedown: dragEvent
|
|
45531
45625
|
}), showAction ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('span', {
|
|
45532
45626
|
class: 'vxe-split-item-action-btn',
|
|
45533
|
-
|
|
45627
|
+
onDblclick: handleActionDblclickEvent,
|
|
45628
|
+
onClick: handleActionClickEvent
|
|
45534
45629
|
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('i', {
|
|
45535
45630
|
class: (isExpand ? actionOpts.openIcon : actionOpts.closeIcon) || getDefaultActionIcon(item)
|
|
45536
45631
|
})]) : renderEmptyElement($xeSplit)]);
|
|
@@ -45542,13 +45637,14 @@ const Select = VxeSelect;
|
|
|
45542
45637
|
vertical
|
|
45543
45638
|
} = props;
|
|
45544
45639
|
const {
|
|
45545
|
-
|
|
45640
|
+
itemList
|
|
45546
45641
|
} = reactData;
|
|
45547
45642
|
const isFoldNext = computeIsFoldNext.value;
|
|
45548
45643
|
const itemVNs = [];
|
|
45549
|
-
|
|
45644
|
+
itemList.forEach((item, index) => {
|
|
45550
45645
|
const {
|
|
45551
45646
|
id,
|
|
45647
|
+
name,
|
|
45552
45648
|
slots,
|
|
45553
45649
|
renderHeight,
|
|
45554
45650
|
resizeHeight,
|
|
@@ -45590,7 +45686,11 @@ const Select = VxeSelect;
|
|
|
45590
45686
|
class: 'vxe-split-item--wrapper'
|
|
45591
45687
|
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
45592
45688
|
class: 'vxe-split-item--inner'
|
|
45593
|
-
}, defaultSlot ? callSlot(defaultSlot, {
|
|
45689
|
+
}, defaultSlot ? callSlot(defaultSlot, {
|
|
45690
|
+
name,
|
|
45691
|
+
isVisible,
|
|
45692
|
+
isExpand
|
|
45693
|
+
}) : [])]), isFoldNext && index < itemList.length - 1 ? renderHandleBar(item) : renderEmptyElement($xeSplit)]));
|
|
45594
45694
|
});
|
|
45595
45695
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
45596
45696
|
class: 'vxe-split-wrapper'
|
|
@@ -45618,7 +45718,21 @@ const Select = VxeSelect;
|
|
|
45618
45718
|
class: 'vxe-split-slots'
|
|
45619
45719
|
}, defaultSlot ? defaultSlot({}) : []), renderItems()]);
|
|
45620
45720
|
};
|
|
45621
|
-
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.
|
|
45721
|
+
const itemFlag = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)(0);
|
|
45722
|
+
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.watch)(() => props.items ? props.items.length : -1, () => {
|
|
45723
|
+
itemFlag.value++;
|
|
45724
|
+
});
|
|
45725
|
+
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.watch)(() => props.items, () => {
|
|
45726
|
+
itemFlag.value++;
|
|
45727
|
+
});
|
|
45728
|
+
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.watch)(itemFlag, () => {
|
|
45729
|
+
loadItem(props.items || []);
|
|
45730
|
+
});
|
|
45731
|
+
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.watch)(() => reactData.staticItems, val => {
|
|
45732
|
+
if (props.items && props.items.length) {
|
|
45733
|
+
errLog('vxe.error.errConflicts', ['<vxe-split-item ...>', 'items']);
|
|
45734
|
+
}
|
|
45735
|
+
reactData.itemList = val;
|
|
45622
45736
|
recalculate();
|
|
45623
45737
|
});
|
|
45624
45738
|
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.onMounted)(() => {
|
|
@@ -45633,6 +45747,9 @@ const Select = VxeSelect;
|
|
|
45633
45747
|
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.onActivated)(() => {
|
|
45634
45748
|
recalculate();
|
|
45635
45749
|
});
|
|
45750
|
+
if (props.items) {
|
|
45751
|
+
loadItem(props.items);
|
|
45752
|
+
}
|
|
45636
45753
|
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.provide)('$xeSplit', $xeSplit);
|
|
45637
45754
|
$xeSplit.renderVN = renderVN;
|
|
45638
45755
|
return $xeSplit;
|