vxe-pc-ui 3.5.2 → 3.5.3

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.
Files changed (58) hide show
  1. package/es/icon/style.css +1 -1
  2. package/es/list/src/list.js +3 -2
  3. package/es/print/src/util.js +2 -1
  4. package/es/split/src/split-item.js +22 -2
  5. package/es/split/src/split.js +225 -52
  6. package/es/split/style.css +74 -14
  7. package/es/split/style.min.css +1 -1
  8. package/es/style.css +1 -1
  9. package/es/style.min.css +1 -1
  10. package/es/ui/index.js +6 -1
  11. package/es/ui/src/dom.js +0 -1
  12. package/es/vxe-split/style.css +74 -14
  13. package/es/vxe-split/style.min.css +1 -1
  14. package/lib/icon/style/style.css +1 -1
  15. package/lib/icon/style/style.min.css +1 -1
  16. package/lib/index.umd.js +299 -54
  17. package/lib/index.umd.min.js +1 -1
  18. package/lib/list/src/list.js +2 -1
  19. package/lib/list/src/list.min.js +1 -1
  20. package/lib/print/src/util.js +2 -1
  21. package/lib/print/src/util.min.js +1 -1
  22. package/lib/split/src/split-item.js +22 -2
  23. package/lib/split/src/split-item.min.js +1 -1
  24. package/lib/split/src/split.js +265 -48
  25. package/lib/split/src/split.min.js +1 -1
  26. package/lib/split/style/style.css +74 -14
  27. package/lib/split/style/style.min.css +1 -1
  28. package/lib/style.css +1 -1
  29. package/lib/style.min.css +1 -1
  30. package/lib/ui/index.js +6 -1
  31. package/lib/ui/index.min.js +1 -1
  32. package/lib/ui/src/dom.js +0 -2
  33. package/lib/ui/src/dom.min.js +1 -1
  34. package/lib/vxe-split/style/style.css +74 -14
  35. package/lib/vxe-split/style/style.min.css +1 -1
  36. package/package.json +1 -1
  37. package/packages/list/src/list.ts +4 -2
  38. package/packages/print/src/util.ts +3 -1
  39. package/packages/split/src/split-item.ts +24 -2
  40. package/packages/split/src/split.ts +235 -52
  41. package/packages/ui/index.ts +7 -1
  42. package/packages/ui/src/dom.ts +0 -2
  43. package/styles/components/split.scss +97 -14
  44. package/types/components/split-item.d.ts +5 -1
  45. package/types/components/split.d.ts +86 -1
  46. package/types/ui/global-icon.d.ts +6 -0
  47. /package/es/icon/{iconfont.1743056503870.ttf → iconfont.1743080331925.ttf} +0 -0
  48. /package/es/icon/{iconfont.1743056503870.woff → iconfont.1743080331925.woff} +0 -0
  49. /package/es/icon/{iconfont.1743056503870.woff2 → iconfont.1743080331925.woff2} +0 -0
  50. /package/es/{iconfont.1743056503870.ttf → iconfont.1743080331925.ttf} +0 -0
  51. /package/es/{iconfont.1743056503870.woff → iconfont.1743080331925.woff} +0 -0
  52. /package/es/{iconfont.1743056503870.woff2 → iconfont.1743080331925.woff2} +0 -0
  53. /package/lib/icon/style/{iconfont.1743056503870.ttf → iconfont.1743080331925.ttf} +0 -0
  54. /package/lib/icon/style/{iconfont.1743056503870.woff → iconfont.1743080331925.woff} +0 -0
  55. /package/lib/icon/style/{iconfont.1743056503870.woff2 → iconfont.1743080331925.woff2} +0 -0
  56. /package/lib/{iconfont.1743056503870.ttf → iconfont.1743080331925.ttf} +0 -0
  57. /package/lib/{iconfont.1743056503870.woff → iconfont.1743080331925.woff} +0 -0
  58. /package/lib/{iconfont.1743056503870.woff2 → iconfont.1743080331925.woff2} +0 -0
package/lib/index.umd.js CHANGED
@@ -13534,7 +13534,12 @@ setIcon({
13534
13534
  RATE_UNCHECKED: iconPrefix + 'star',
13535
13535
  // color-picker
13536
13536
  COLOR_COPY: iconPrefix + 'copy',
13537
- EYE_DROPPER: iconPrefix + 'dropper'
13537
+ EYE_DROPPER: iconPrefix + 'dropper',
13538
+ // split
13539
+ SPLIT_TOP_ACTION: iconPrefix + 'arrow-up',
13540
+ SPLIT_BOTTOM_ACTION: iconPrefix + 'arrow-down',
13541
+ SPLIT_LEFT_ACTION: iconPrefix + 'arrow-left',
13542
+ SPLIT_RIGHT_ACTION: iconPrefix + 'arrow-right'
13538
13543
  });
13539
13544
 
13540
13545
  /* harmony default export */ var ui = ((/* unused pure expression or super */ null && (VxeUI)));
@@ -13709,7 +13714,6 @@ var es_string_match = __webpack_require__(1761);
13709
13714
 
13710
13715
 
13711
13716
 
13712
- var dom_browse = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().browse();
13713
13717
  var tpImgEl;
13714
13718
  function initTpImg() {
13715
13719
  if (!tpImgEl) {
@@ -32830,6 +32834,7 @@ var Link = VxeLink;
32830
32834
 
32831
32835
 
32832
32836
 
32837
+ var browseObj = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().browse();
32833
32838
  /* harmony default export */ var list = (/* define-vxe-component start */defineVxeComponent({
32834
32839
  name: 'VxeList',
32835
32840
  mixins: [globalMixins.sizeMixin],
@@ -33045,7 +33050,7 @@ var Link = VxeLink;
33045
33050
  if (scrollYLoad) {
33046
33051
  var scrollBodyElem = $xeList.$refs.refVirtualWrapper;
33047
33052
  var visibleYSize = Math.max(8, Math.ceil(scrollBodyElem.clientHeight / rowHeight));
33048
- var offsetYSize = sYOpts.oSize ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toNumber(sYOpts.oSize) : dom_browse.edge ? 10 : 0;
33053
+ var offsetYSize = sYOpts.oSize ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toNumber(sYOpts.oSize) : browseObj.edge ? 10 : 0;
33049
33054
  scrollYStore.offsetSize = offsetYSize;
33050
33055
  scrollYStore.visibleSize = visibleYSize;
33051
33056
  scrollYStore.endIndex = Math.max(scrollYStore.startIndex + visibleYSize + offsetYSize, scrollYStore.endIndex);
@@ -40188,6 +40193,7 @@ var web_url_search_params_size = __webpack_require__(8721);
40188
40193
 
40189
40194
 
40190
40195
 
40196
+ var util_browseObj = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().browse();
40191
40197
  // 打印
40192
40198
  var printFrame;
40193
40199
  // 默认导出或打印的 HTML 样式
@@ -40239,7 +40245,7 @@ function handlePrint(opts) {
40239
40245
  printHtml = createHtmlPage(opts, printHtml);
40240
40246
  var blob = getExportBlobByString(printHtml, 'html');
40241
40247
  return new Promise(function (resolve) {
40242
- if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().browse().msie) {
40248
+ if (util_browseObj.msie) {
40243
40249
  removeFrame();
40244
40250
  printFrame = createPrintFrame();
40245
40251
  appendPrintFrame();
@@ -42178,6 +42184,7 @@ var es_string_split = __webpack_require__(744);
42178
42184
 
42179
42185
 
42180
42186
 
42187
+
42181
42188
  /* harmony default export */ var split = (/* define-vxe-component start */defineVxeComponent({
42182
42189
  name: 'VxeSplit',
42183
42190
  mixins: [globalMixins.sizeMixin],
@@ -42202,7 +42209,9 @@ var es_string_split = __webpack_require__(744);
42202
42209
  return getConfig().split.padding;
42203
42210
  }
42204
42211
  },
42205
- itemConfig: Object
42212
+ itemConfig: Object,
42213
+ barConfig: Object,
42214
+ actionConfig: Object
42206
42215
  },
42207
42216
  data: function data() {
42208
42217
  var xID = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().uniqueId();
@@ -42227,6 +42236,35 @@ var es_string_split = __webpack_require__(744);
42227
42236
  var $xeSplit = this;
42228
42237
  var props = $xeSplit;
42229
42238
  return Object.assign({}, getConfig().split.itemConfig, props.itemConfig);
42239
+ },
42240
+ computeBarOpts: function computeBarOpts() {
42241
+ var $xeSplit = this;
42242
+ var props = $xeSplit;
42243
+ return Object.assign({}, getConfig().split.barConfig, props.barConfig);
42244
+ },
42245
+ computeActionOpts: function computeActionOpts() {
42246
+ var $xeSplit = this;
42247
+ var props = $xeSplit;
42248
+ return Object.assign({}, getConfig().split.actionConfig, props.actionConfig);
42249
+ },
42250
+ computeIsFoldNext: function computeIsFoldNext() {
42251
+ var $xeSplit = this;
42252
+ var actionOpts = $xeSplit.computeActionOpts;
42253
+ return actionOpts.direction === 'next';
42254
+ },
42255
+ computeBarStyle: function computeBarStyle() {
42256
+ var $xeSplit = this;
42257
+ var barOpts = $xeSplit.computeBarOpts;
42258
+ var width = barOpts.width,
42259
+ height = barOpts.height;
42260
+ var stys = {};
42261
+ if (height) {
42262
+ stys.height = toCssUnit(height);
42263
+ }
42264
+ if (width) {
42265
+ stys.width = toCssUnit(width);
42266
+ }
42267
+ return stys;
42230
42268
  }
42231
42269
  }),
42232
42270
  methods: {
@@ -42328,12 +42366,13 @@ var es_string_split = __webpack_require__(744);
42328
42366
  evnt.preventDefault();
42329
42367
  var vertical = props.vertical;
42330
42368
  var staticItems = reactData.staticItems;
42331
- var handleEl = evnt.currentTarget;
42369
+ var barEl = evnt.currentTarget;
42370
+ var handleEl = barEl.parentElement;
42332
42371
  var el = $xeSplit.$refs.refElem;
42333
42372
  if (!el) {
42334
42373
  return;
42335
42374
  }
42336
- var itemId = handleEl.getAttribute('xid');
42375
+ var itemId = handleEl.getAttribute('itemid');
42337
42376
  var itemIndex = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().findIndexOf(staticItems, function (item) {
42338
42377
  return item.id === itemId;
42339
42378
  });
@@ -42341,19 +42380,23 @@ var es_string_split = __webpack_require__(744);
42341
42380
  if (!item) {
42342
42381
  return;
42343
42382
  }
42383
+ if (!item.isExpand) {
42384
+ return;
42385
+ }
42386
+ var isFoldNext = $xeSplit.computeIsFoldNext;
42344
42387
  var itemOpts = $xeSplit.computeItemOpts;
42345
42388
  var allMinWidth = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toNumber(itemOpts.minWidth);
42346
42389
  var allMinHeight = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toNumber(itemOpts.minHeight);
42347
- var prevItem = staticItems[itemIndex - 1];
42348
- var prevItemEl = prevItem ? el.querySelector(".vxe-split-item[xid=\"".concat(prevItem.id, "\"]")) : null;
42349
- var currItemEl = item ? el.querySelector(".vxe-split-item[xid=\"".concat(item.id, "\"]")) : null;
42350
- var prevWidth = prevItemEl ? prevItemEl.clientWidth : 0;
42390
+ var targetItem = staticItems[itemIndex + (isFoldNext ? 1 : -1)];
42391
+ var targetItemEl = targetItem ? el.querySelector(".vxe-split-item[itemid=\"".concat(targetItem.id, "\"]")) : null;
42392
+ var currItemEl = item ? el.querySelector(".vxe-split-item[itemid=\"".concat(item.id, "\"]")) : null;
42393
+ var targetWidth = targetItemEl ? targetItemEl.clientWidth : 0;
42351
42394
  var currWidth = currItemEl ? currItemEl.clientWidth : 0;
42352
- var prevHeight = prevItemEl ? prevItemEl.clientHeight : 0;
42395
+ var targetHeight = targetItemEl ? targetItemEl.clientHeight : 0;
42353
42396
  var currHeight = currItemEl ? currItemEl.clientHeight : 0;
42354
- var prevMinWidth = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toNumber(prevItem ? getGlobalDefaultConfig(prevItem.minWidth, allMinWidth) : allMinWidth);
42397
+ var targetMinWidth = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toNumber(targetItem ? getGlobalDefaultConfig(targetItem.minWidth, allMinWidth) : allMinWidth);
42355
42398
  var currMinWidth = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toNumber(getGlobalDefaultConfig(item.minWidth, allMinWidth));
42356
- var prevMinHeight = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toNumber(prevItem ? getGlobalDefaultConfig(prevItem.minHeight, allMinHeight) : allMinHeight);
42399
+ var targetMinHeight = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toNumber(targetItem ? getGlobalDefaultConfig(targetItem.minHeight, allMinHeight) : allMinHeight);
42357
42400
  var currMinHeight = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toNumber(getGlobalDefaultConfig(item.minHeight, allMinHeight));
42358
42401
  var disX = evnt.clientX;
42359
42402
  var disY = evnt.clientY;
@@ -42361,50 +42404,214 @@ var es_string_split = __webpack_require__(744);
42361
42404
  document.onmousemove = function (evnt) {
42362
42405
  evnt.preventDefault();
42363
42406
  if (vertical) {
42364
- var offsetTop = evnt.clientY - disY;
42407
+ var offsetTop = isFoldNext ? disY - evnt.clientY : evnt.clientY - disY;
42365
42408
  if (offsetTop > 0) {
42366
- if (prevItem) {
42409
+ if (targetItem) {
42367
42410
  if (currHeight - offsetTop >= currMinHeight) {
42368
- prevItem.renderHeight = prevHeight + offsetTop;
42369
- item.renderHeight = currHeight - offsetTop;
42411
+ var reHeight = currHeight - offsetTop;
42412
+ targetItem.resizeHeight = targetHeight + offsetTop;
42413
+ item.resizeHeight = reHeight;
42414
+ $xeSplit.dispatchEvent('resize-drag', {
42415
+ item: item,
42416
+ name: item.name,
42417
+ offsetHeight: offsetTop,
42418
+ resizeHeight: reHeight,
42419
+ offsetWidth: 0,
42420
+ resizeWidth: 0
42421
+ }, evnt);
42370
42422
  }
42371
42423
  }
42372
42424
  } else {
42373
- if (prevItem) {
42374
- if (prevHeight + offsetTop >= prevMinHeight) {
42375
- prevItem.renderHeight = prevHeight + offsetTop;
42376
- item.renderHeight = currHeight - offsetTop;
42425
+ if (targetItem) {
42426
+ if (targetHeight + offsetTop >= targetMinHeight) {
42427
+ var _reHeight = currHeight - offsetTop;
42428
+ targetItem.resizeHeight = targetHeight + offsetTop;
42429
+ item.resizeHeight = _reHeight;
42430
+ $xeSplit.dispatchEvent('resize-drag', {
42431
+ item: item,
42432
+ name: item.name,
42433
+ offsetHeight: offsetTop,
42434
+ resizeHeight: _reHeight,
42435
+ offsetWidth: 0,
42436
+ resizeWidth: 0
42437
+ }, evnt);
42377
42438
  }
42378
42439
  }
42379
42440
  }
42380
42441
  } else {
42381
- var offsetLeft = evnt.clientX - disX;
42442
+ var offsetLeft = isFoldNext ? disX - evnt.clientX : evnt.clientX - disX;
42382
42443
  if (offsetLeft > 0) {
42383
- if (prevItem) {
42444
+ if (targetItem) {
42384
42445
  if (currWidth - offsetLeft >= currMinWidth) {
42385
- prevItem.renderWidth = prevWidth + offsetLeft;
42386
- item.renderWidth = currWidth - offsetLeft;
42446
+ var reWidth = currWidth - offsetLeft;
42447
+ targetItem.resizeWidth = targetWidth + offsetLeft;
42448
+ item.resizeWidth = reWidth;
42449
+ $xeSplit.dispatchEvent('resize-drag', {
42450
+ item: item,
42451
+ name: item.name,
42452
+ offsetHeight: 0,
42453
+ resizeHeight: 0,
42454
+ offsetWidth: offsetLeft,
42455
+ resizeWidth: reWidth
42456
+ }, evnt);
42387
42457
  }
42388
42458
  }
42389
42459
  } else {
42390
- if (prevItem) {
42391
- if (prevWidth + offsetLeft >= prevMinWidth) {
42392
- prevItem.renderWidth = prevWidth + offsetLeft;
42393
- item.renderWidth = currWidth - offsetLeft;
42460
+ if (targetItem) {
42461
+ if (targetWidth + offsetLeft >= targetMinWidth) {
42462
+ var _reWidth = currWidth - offsetLeft;
42463
+ targetItem.resizeWidth = targetWidth + offsetLeft;
42464
+ item.resizeWidth = _reWidth;
42465
+ $xeSplit.dispatchEvent('resize-drag', {
42466
+ item: item,
42467
+ name: item.name,
42468
+ offsetHeight: 0,
42469
+ resizeHeight: 0,
42470
+ offsetWidth: offsetLeft,
42471
+ resizeWidth: _reWidth
42472
+ }, evnt);
42394
42473
  }
42395
42474
  }
42396
42475
  }
42397
42476
  }
42398
42477
  };
42399
- document.onmouseup = function () {
42478
+ document.onmouseup = function (evnt) {
42400
42479
  document.onmousemove = null;
42401
42480
  document.onmouseup = null;
42402
42481
  removeClass(el, 'is--drag');
42482
+ $xeSplit.dispatchEvent('resize-end', {
42483
+ item: item,
42484
+ name: item.name,
42485
+ resizeHeight: item.resizeHeight,
42486
+ resizeWidth: item.resizeWidth
42487
+ }, evnt);
42403
42488
  };
42489
+ $xeSplit.dispatchEvent('resize-start', {
42490
+ item: item,
42491
+ name: item.name
42492
+ }, evnt);
42493
+ },
42494
+ handleItemActionEvent: function handleItemActionEvent(evnt) {
42495
+ var $xeSplit = this;
42496
+ var props = $xeSplit;
42497
+ var reactData = $xeSplit.reactData;
42498
+ var el = $xeSplit.$refs.refElem;
42499
+ if (!el) {
42500
+ return;
42501
+ }
42502
+ var vertical = props.vertical;
42503
+ var staticItems = reactData.staticItems;
42504
+ var isFoldNext = $xeSplit.computeIsFoldNext;
42505
+ var btnEl = evnt.currentTarget;
42506
+ var handleEl = btnEl.parentElement;
42507
+ var itemId = handleEl.getAttribute('itemid');
42508
+ var itemIndex = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().findIndexOf(staticItems, function (item) {
42509
+ return item.id === itemId;
42510
+ });
42511
+ var item = staticItems[itemIndex];
42512
+ var targetItem = staticItems[itemIndex + (isFoldNext ? 1 : -1)];
42513
+ if (item) {
42514
+ var showAction = item.showAction,
42515
+ isExpand = item.isExpand;
42516
+ if (showAction) {
42517
+ if (vertical) {
42518
+ if (targetItem) {
42519
+ targetItem.isVisible = !isExpand;
42520
+ targetItem.foldHeight = 0;
42521
+ item.isExpand = !isExpand;
42522
+ item.isVisible = true;
42523
+ item.foldHeight = isExpand ? (targetItem.resizeHeight || targetItem.renderHeight) + (item.resizeHeight || item.renderHeight) : 0;
42524
+ }
42525
+ } else {
42526
+ if (targetItem) {
42527
+ targetItem.isVisible = !isExpand;
42528
+ targetItem.foldWidth = 0;
42529
+ item.isExpand = !isExpand;
42530
+ item.isVisible = true;
42531
+ item.foldWidth = isExpand ? (targetItem.resizeWidth || targetItem.renderWidth) + (item.resizeWidth || item.renderWidth) : 0;
42532
+ }
42533
+ }
42534
+ $xeSplit.dispatchEvent(evnt.type === 'dblclick' ? 'action-dblclick' : 'action-click', {
42535
+ item: item,
42536
+ name: item.name,
42537
+ targetItem: targetItem,
42538
+ targetName: targetItem ? targetItem.name : '',
42539
+ expanded: item.isExpand
42540
+ }, evnt);
42541
+ }
42542
+ }
42543
+ },
42544
+ handleGlobalResizeEvent: function handleGlobalResizeEvent() {
42545
+ var $xeSplit = this;
42546
+ $xeSplit.recalculate();
42547
+ },
42548
+ getDefaultActionIcon: function getDefaultActionIcon(item) {
42549
+ var $xeSplit = this;
42550
+ var props = $xeSplit;
42551
+ var vertical = props.vertical;
42552
+ var showAction = item.showAction,
42553
+ isExpand = item.isExpand;
42554
+ var isFoldNext = $xeSplit.computeIsFoldNext;
42555
+ var topIcon = 'SPLIT_TOP_ACTION';
42556
+ var bottomIcon = 'SPLIT_BOTTOM_ACTION';
42557
+ var leftIcon = 'SPLIT_LEFT_ACTION';
42558
+ var rightIcon = 'SPLIT_RIGHT_ACTION';
42559
+ if (showAction) {
42560
+ var iconName = '';
42561
+ if (isFoldNext) {
42562
+ if (vertical) {
42563
+ iconName = isExpand ? bottomIcon : topIcon;
42564
+ } else {
42565
+ iconName = isExpand ? rightIcon : leftIcon;
42566
+ }
42567
+ } else {
42568
+ if (vertical) {
42569
+ iconName = isExpand ? topIcon : bottomIcon;
42570
+ } else {
42571
+ iconName = isExpand ? leftIcon : rightIcon;
42572
+ }
42573
+ }
42574
+ if (iconName) {
42575
+ return getIcon()[iconName];
42576
+ }
42577
+ }
42578
+ return '';
42404
42579
  },
42405
42580
  //
42406
42581
  // Render
42407
42582
  //
42583
+ renderHandleBar: function renderHandleBar(h, item) {
42584
+ var $xeSplit = this;
42585
+ var barStyle = $xeSplit.computeBarStyle;
42586
+ var actionOpts = $xeSplit.computeActionOpts;
42587
+ var isFoldNext = $xeSplit.computeIsFoldNext;
42588
+ var id = item.id,
42589
+ isExpand = item.isExpand,
42590
+ showAction = item.showAction;
42591
+ var btnOns = {};
42592
+ if (actionOpts.trigger === 'dblclick') {
42593
+ btnOns.dblclick = $xeSplit.handleItemActionEvent;
42594
+ } else {
42595
+ btnOns.click = $xeSplit.handleItemActionEvent;
42596
+ }
42597
+ return h('div', {
42598
+ attrs: {
42599
+ itemid: id
42600
+ },
42601
+ class: ['vxe-split-item-handle', isFoldNext ? 'to--next' : 'to--prev']
42602
+ }, [h('div', {
42603
+ class: 'vxe-split-item-handle-bar',
42604
+ style: barStyle,
42605
+ on: {
42606
+ mousedown: $xeSplit.dragEvent
42607
+ }
42608
+ }), showAction ? h('span', {
42609
+ class: 'vxe-split-item-action-btn',
42610
+ on: btnOns
42611
+ }, [h('i', {
42612
+ class: (isExpand ? actionOpts.openIcon : actionOpts.closeIcon) || $xeSplit.getDefaultActionIcon(item)
42613
+ })]) : renderEmptyElement($xeSplit)]);
42614
+ },
42408
42615
  renderItems: function renderItems(h) {
42409
42616
  var $xeSplit = this;
42410
42617
  var props = $xeSplit;
@@ -42413,52 +42620,55 @@ var es_string_split = __webpack_require__(744);
42413
42620
  padding = props.padding,
42414
42621
  vertical = props.vertical;
42415
42622
  var staticItems = reactData.staticItems;
42623
+ var isFoldNext = $xeSplit.computeIsFoldNext;
42416
42624
  var itemVNs = [];
42417
42625
  staticItems.forEach(function (item, index) {
42418
42626
  var id = item.id,
42419
42627
  slots = item.slots,
42420
42628
  renderHeight = item.renderHeight,
42421
- renderWidth = item.renderWidth;
42629
+ resizeHeight = item.resizeHeight,
42630
+ foldHeight = item.foldHeight,
42631
+ renderWidth = item.renderWidth,
42632
+ resizeWidth = item.resizeWidth,
42633
+ foldWidth = item.foldWidth,
42634
+ isVisible = item.isVisible,
42635
+ isExpand = item.isExpand;
42422
42636
  var defaultSlot = slots ? slots.default : null;
42423
42637
  var stys = {};
42638
+ var itemWidth = isVisible ? foldWidth || resizeWidth || renderWidth : 0;
42639
+ var itemHeight = isVisible ? foldHeight || resizeHeight || renderHeight : 0;
42424
42640
  if (vertical) {
42425
- if (renderHeight) {
42426
- stys.height = toCssUnit(renderHeight);
42641
+ if (itemHeight) {
42642
+ stys.height = toCssUnit(itemHeight);
42427
42643
  }
42428
42644
  } else {
42429
- if (renderWidth) {
42430
- stys.width = toCssUnit(renderWidth);
42645
+ if (itemWidth) {
42646
+ stys.width = toCssUnit(itemWidth);
42431
42647
  }
42432
42648
  }
42433
42649
  itemVNs.push(h('div', {
42434
42650
  attrs: {
42435
- xid: id
42651
+ itemid: id
42436
42652
  },
42437
42653
  class: ['vxe-split-item', vertical ? 'is--vertical' : 'is--horizontal', {
42438
42654
  'is--padding': padding,
42439
42655
  'is--border': border,
42440
- 'is--height': renderHeight,
42441
- 'is--width': renderWidth,
42442
- 'is--fill': !renderHeight && !renderWidth,
42443
- 'is--handle': index > 0
42656
+ 'is--height': itemHeight,
42657
+ 'is--width': itemWidth,
42658
+ 'is--fill': isVisible && !itemHeight && !itemWidth,
42659
+ 'is--handle': index > 0,
42660
+ 'is--expand': isExpand,
42661
+ 'is--hidden': !isVisible
42444
42662
  }],
42445
42663
  style: stys
42446
- }, [index ? h('div', {
42664
+ }, [index && !isFoldNext ? $xeSplit.renderHandleBar(h, item) : renderEmptyElement($xeSplit), h('div', {
42447
42665
  attrs: {
42448
- xid: id
42449
- },
42450
- class: 'vxe-split-item-handle',
42451
- on: {
42452
- mousedown: $xeSplit.dragEvent
42453
- }
42454
- }) : renderEmptyElement($xeSplit), h('div', {
42455
- attrs: {
42456
- xid: id
42666
+ itemid: id
42457
42667
  },
42458
42668
  class: 'vxe-split-item--wrapper'
42459
42669
  }, [h('div', {
42460
42670
  class: 'vxe-split-item--inner'
42461
- }, defaultSlot ? $xeSplit.callSlot(defaultSlot, {}) : [])])]));
42671
+ }, defaultSlot ? $xeSplit.callSlot(defaultSlot, {}) : [])]), isFoldNext && index < staticItems.length - 1 ? $xeSplit.renderHandleBar(h, item) : renderEmptyElement($xeSplit)]));
42462
42672
  });
42463
42673
  return h('div', {
42464
42674
  class: 'vxe-split-wrapper'
@@ -42488,6 +42698,20 @@ var es_string_split = __webpack_require__(744);
42488
42698
  }, defaultSlot ? defaultSlot({}) : []), $xeSplit.renderItems(h)]);
42489
42699
  }
42490
42700
  },
42701
+ created: function created() {
42702
+ var $xeSplit = this;
42703
+ globalEvents.on($xeSplit, 'resize', $xeSplit.handleGlobalResizeEvent);
42704
+ },
42705
+ mounted: function mounted() {
42706
+ var $xeSplit = this;
42707
+ $xeSplit.$nextTick(function () {
42708
+ $xeSplit.recalculate();
42709
+ });
42710
+ },
42711
+ beforeDestroy: function beforeDestroy() {
42712
+ var $xeSplit = this;
42713
+ globalEvents.off($xeSplit, 'resize');
42714
+ },
42491
42715
  render: function render(h) {
42492
42716
  return this.renderVN(h);
42493
42717
  }
@@ -42537,12 +42761,15 @@ function destroySplitItem($xeSplit, chunkConfig) {
42537
42761
 
42538
42762
 
42539
42763
 
42764
+
42540
42765
  /* harmony default export */ var split_item = (/* define-vxe-component start */defineVxeComponent({
42541
42766
  name: 'VxeSplitItem',
42542
42767
  mixins: [globalMixins.sizeMixin],
42543
42768
  props: {
42769
+ name: [Number, String],
42544
42770
  width: [Number, String],
42545
42771
  height: [Number, String],
42772
+ showAction: Boolean,
42546
42773
  minWidth: {
42547
42774
  type: [Number, String],
42548
42775
  default: function _default() {
@@ -42572,12 +42799,20 @@ function destroySplitItem($xeSplit, chunkConfig) {
42572
42799
  var reactData = {};
42573
42800
  var chunkConfig = {
42574
42801
  id: xID,
42802
+ name: '',
42575
42803
  width: 0,
42576
42804
  height: 0,
42577
42805
  minWidth: 0,
42578
42806
  minHeight: 0,
42807
+ showAction: false,
42808
+ isVisible: true,
42809
+ isExpand: true,
42579
42810
  renderWidth: 0,
42811
+ resizeWidth: 0,
42812
+ foldWidth: 0,
42580
42813
  renderHeight: 0,
42814
+ resizeHeight: 0,
42815
+ foldHeight: 0,
42581
42816
  slots: {}
42582
42817
  };
42583
42818
  return {
@@ -42588,6 +42823,11 @@ function destroySplitItem($xeSplit, chunkConfig) {
42588
42823
  },
42589
42824
  computed: _objectSpread2({}, {}),
42590
42825
  watch: {
42826
+ name: function name(val) {
42827
+ var $xeSplitItem = this;
42828
+ var chunkConfig = $xeSplitItem.chunkConfig;
42829
+ chunkConfig.name = val;
42830
+ },
42591
42831
  width: function width(val) {
42592
42832
  var $xeSplitItem = this;
42593
42833
  var chunkConfig = $xeSplitItem.chunkConfig;
@@ -42607,6 +42847,11 @@ function destroySplitItem($xeSplit, chunkConfig) {
42607
42847
  var $xeSplitItem = this;
42608
42848
  var chunkConfig = $xeSplitItem.chunkConfig;
42609
42849
  chunkConfig.minHeight = val;
42850
+ },
42851
+ showAction: function showAction(val) {
42852
+ var $xeSplitItem = this;
42853
+ var chunkConfig = $xeSplitItem.chunkConfig;
42854
+ chunkConfig.showAction = val;
42610
42855
  }
42611
42856
  },
42612
42857
  methods: {
@@ -42634,12 +42879,12 @@ function destroySplitItem($xeSplit, chunkConfig) {
42634
42879
  var slots = $xeSplitItem.$scopedSlots;
42635
42880
  var chunkConfig = $xeSplitItem.chunkConfig;
42636
42881
  Object.assign(chunkConfig, {
42882
+ name: props.name,
42637
42883
  width: props.width,
42638
42884
  height: props.height,
42639
42885
  minWidth: props.minWidth,
42640
42886
  minHeight: props.minHeight,
42641
- renderWidth: 0,
42642
- renderHeight: 0,
42887
+ showAction: props.showAction,
42643
42888
  slots: slots
42644
42889
  });
42645
42890
  },