vxe-pc-ui 3.14.8 → 3.14.10

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 (66) hide show
  1. package/es/button/src/button.js +1 -1
  2. package/es/drawer/src/drawer.js +16 -4
  3. package/es/modal/src/modal.js +17 -4
  4. package/es/style.css +1 -1
  5. package/es/style.min.css +1 -1
  6. package/es/table-select/src/table-select.js +5 -0
  7. package/es/tooltip/src/tooltip.js +14 -6
  8. package/es/tree/src/tree.js +17 -4
  9. package/es/tree/style.css +6 -0
  10. package/es/tree/style.min.css +1 -1
  11. package/es/ui/index.js +3 -1
  12. package/es/ui/src/log.js +1 -1
  13. package/es/vxe-tree/style.css +6 -0
  14. package/es/vxe-tree/style.min.css +1 -1
  15. package/lib/button/src/button.js +1 -1
  16. package/lib/button/src/button.min.js +1 -1
  17. package/lib/drawer/src/drawer.js +15 -2
  18. package/lib/drawer/src/drawer.min.js +1 -1
  19. package/lib/index.umd.js +78 -17
  20. package/lib/index.umd.min.js +1 -1
  21. package/lib/modal/src/modal.js +16 -2
  22. package/lib/modal/src/modal.min.js +1 -1
  23. package/lib/style.css +1 -1
  24. package/lib/style.min.css +1 -1
  25. package/lib/table-select/src/table-select.js +5 -0
  26. package/lib/table-select/src/table-select.min.js +1 -1
  27. package/lib/tooltip/src/tooltip.js +19 -6
  28. package/lib/tooltip/src/tooltip.min.js +1 -1
  29. package/lib/tree/src/tree.js +18 -4
  30. package/lib/tree/src/tree.min.js +1 -1
  31. package/lib/tree/style/style.css +6 -0
  32. package/lib/tree/style/style.min.css +1 -1
  33. package/lib/ui/index.js +3 -1
  34. package/lib/ui/index.min.js +1 -1
  35. package/lib/ui/src/log.js +1 -1
  36. package/lib/ui/src/log.min.js +1 -1
  37. package/lib/vxe-tree/style/style.css +6 -0
  38. package/lib/vxe-tree/style/style.min.css +1 -1
  39. package/package.json +1 -1
  40. package/packages/button/src/button.ts +1 -1
  41. package/packages/drawer/src/drawer.ts +16 -4
  42. package/packages/modal/src/modal.ts +17 -4
  43. package/packages/table-select/src/table-select.ts +5 -0
  44. package/packages/tooltip/src/tooltip.ts +14 -6
  45. package/packages/tree/src/tree.ts +17 -4
  46. package/packages/ui/index.ts +2 -0
  47. package/styles/components/tree.scss +10 -0
  48. package/styles/theme/base.scss +2 -0
  49. package/types/components/drawer.d.ts +2 -0
  50. package/types/components/gantt.d.ts +6 -1
  51. package/types/components/modal.d.ts +2 -0
  52. package/types/components/table.d.ts +11 -1
  53. package/types/components/tooltip.d.ts +18 -2
  54. package/types/components/tree.d.ts +4 -0
  55. /package/es/icon/{iconfont.1778552562258.ttf → iconfont.1778729810114.ttf} +0 -0
  56. /package/es/icon/{iconfont.1778552562258.woff → iconfont.1778729810114.woff} +0 -0
  57. /package/es/icon/{iconfont.1778552562258.woff2 → iconfont.1778729810114.woff2} +0 -0
  58. /package/es/{iconfont.1778552562258.ttf → iconfont.1778729810114.ttf} +0 -0
  59. /package/es/{iconfont.1778552562258.woff → iconfont.1778729810114.woff} +0 -0
  60. /package/es/{iconfont.1778552562258.woff2 → iconfont.1778729810114.woff2} +0 -0
  61. /package/lib/icon/style/{iconfont.1778552562258.ttf → iconfont.1778729810114.ttf} +0 -0
  62. /package/lib/icon/style/{iconfont.1778552562258.woff → iconfont.1778729810114.woff} +0 -0
  63. /package/lib/icon/style/{iconfont.1778552562258.woff2 → iconfont.1778729810114.woff2} +0 -0
  64. /package/lib/{iconfont.1778552562258.ttf → iconfont.1778729810114.ttf} +0 -0
  65. /package/lib/{iconfont.1778552562258.woff → iconfont.1778729810114.woff} +0 -0
  66. /package/lib/{iconfont.1778552562258.woff2 → iconfont.1778729810114.woff2} +0 -0
package/lib/index.umd.js CHANGED
@@ -13214,7 +13214,7 @@ function checkDynamic() {
13214
13214
  }
13215
13215
  ;// ./packages/ui/src/log.ts
13216
13216
 
13217
- var log_version = "ui v".concat("3.14.8");
13217
+ var log_version = "ui v".concat("3.14.9");
13218
13218
  var warnLog = log.create('warn', log_version);
13219
13219
  var errLog = log.create('error', log_version);
13220
13220
  ;// ./packages/ui/index.ts
@@ -13222,7 +13222,7 @@ var errLog = log.create('error', log_version);
13222
13222
 
13223
13223
 
13224
13224
 
13225
- var ui_version = "3.14.8";
13225
+ var ui_version = "3.14.9";
13226
13226
  VxeUI.uiVersion = ui_version;
13227
13227
  VxeUI.dynamicApp = dynamicApp;
13228
13228
  function config(options) {
@@ -13349,6 +13349,7 @@ setConfig({
13349
13349
  },
13350
13350
  drawer: {
13351
13351
  // size: null,
13352
+ // useHtml: false,
13352
13353
  position: 'right',
13353
13354
  showHeader: true,
13354
13355
  lockView: true,
@@ -13448,6 +13449,7 @@ setConfig({
13448
13449
  // size: null,
13449
13450
  top: 16,
13450
13451
  showHeader: true,
13452
+ // useHtml: false,
13451
13453
  // width: null,
13452
13454
  // height: null,
13453
13455
  minWidth: 340,
@@ -15983,7 +15985,19 @@ function _toConsumableArray(r) {
15983
15985
  type: [String, Number],
15984
15986
  default: null
15985
15987
  },
15986
- useHTML: Boolean,
15988
+ useHtml: {
15989
+ type: Boolean,
15990
+ default: function _default() {
15991
+ return external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isBoolean(getConfig().tooltip.useHtml) ? getConfig().tooltip.useHtml : null;
15992
+ }
15993
+ },
15994
+ // 已废弃,请使用 useHtml
15995
+ useHTML: {
15996
+ type: Boolean,
15997
+ default: function _default() {
15998
+ return getConfig().tooltip.useHTML;
15999
+ }
16000
+ },
15987
16001
  zIndex: [String, Number],
15988
16002
  popupClassName: [String, Function],
15989
16003
  width: {
@@ -16462,25 +16476,26 @@ function _toConsumableArray(r) {
16462
16476
  var props = $xeTooltip;
16463
16477
  var slots = $xeTooltip.$scopedSlots;
16464
16478
  var reactData = $xeTooltip.reactData;
16465
- var useHTML = props.useHTML;
16479
+ var useHtml = props.useHtml,
16480
+ useHTML = props.useHTML;
16466
16481
  var tipContent = reactData.tipContent;
16467
16482
  var wrapperStyle = $xeTooltip.computeWrapperStyle;
16468
16483
  var contentSlot = slots.content;
16469
16484
  var contVNs = [];
16470
16485
  if (contentSlot) {
16471
16486
  contVNs.push(h('div', {
16472
- key: 1
16487
+ key: 'ct'
16473
16488
  }, vn_getSlotVNs(contentSlot({}))));
16474
- } else if (useHTML) {
16489
+ } else if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isBoolean(useHtml) ? useHtml : useHTML) {
16475
16490
  contVNs.push(h('div', {
16476
- key: 2,
16491
+ key: 'ch',
16477
16492
  props: {
16478
16493
  innerHTML: tipContent
16479
16494
  }
16480
16495
  }));
16481
16496
  } else {
16482
16497
  contVNs.push(h('span', {
16483
- key: 3
16498
+ key: 'cd'
16484
16499
  }, "".concat(tipContent)));
16485
16500
  }
16486
16501
  return h('div', {
@@ -17223,7 +17238,7 @@ var Tooltip = VxeTooltip;
17223
17238
  renderTooltipIcon: function renderTooltipIcon(h, tipOpts, type) {
17224
17239
  return h(packages_tooltip, {
17225
17240
  props: {
17226
- useHTML: tipOpts.useHTML,
17241
+ useHtml: external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isBoolean(tipOpts.useHtml) ? tipOpts.useHtml : tipOpts.useHTML,
17227
17242
  content: tipOpts.content,
17228
17243
  enterable: tipOpts.enterable,
17229
17244
  theme: tipOpts.theme
@@ -35056,6 +35071,12 @@ var allActiveDrawers = [];
35056
35071
  }
35057
35072
  },
35058
35073
  content: [Number, String],
35074
+ useHtml: {
35075
+ type: Boolean,
35076
+ default: function _default() {
35077
+ return getConfig().drawer.useHtml;
35078
+ }
35079
+ },
35059
35080
  showCancelButton: {
35060
35081
  type: Boolean,
35061
35082
  default: null
@@ -35554,7 +35575,8 @@ var allActiveDrawers = [];
35554
35575
  var slots = $xeDrawer.$scopedSlots;
35555
35576
  var _props$slots3 = props.slots,
35556
35577
  propSlots = _props$slots3 === void 0 ? {} : _props$slots3,
35557
- content = props.content;
35578
+ content = props.content,
35579
+ useHtml = props.useHtml;
35558
35580
  var defaultSlot = slots.default || propSlots.default;
35559
35581
  var leftSlot = slots.left || propSlots.left;
35560
35582
  var rightSlot = slots.right || propSlots.right;
@@ -35566,7 +35588,13 @@ var allActiveDrawers = [];
35566
35588
  $drawer: $xeDrawer
35567
35589
  }, h)) : renderEmptyElement($xeDrawer), h('div', {
35568
35590
  class: 'vxe-drawer--body-default'
35569
- }, [h('div', {
35591
+ }, [useHtml && !defaultSlot ? h('div', {
35592
+ key: 'hc',
35593
+ class: 'vxe-drawer--content',
35594
+ props: {
35595
+ innerHTML: getFuncText(content)
35596
+ }
35597
+ }) : h('div', {
35570
35598
  class: 'vxe-drawer--content'
35571
35599
  }, defaultSlot ? $xeDrawer.callSlot(defaultSlot, {
35572
35600
  $drawer: $xeDrawer
@@ -42598,6 +42626,12 @@ var lockScrollCssWidthKey = '--vxe-ui-modal-lock-scroll-view-width';
42598
42626
  }
42599
42627
  },
42600
42628
  content: [Number, String],
42629
+ useHtml: {
42630
+ type: Boolean,
42631
+ default: function _default() {
42632
+ return getConfig().modal.useHtml;
42633
+ }
42634
+ },
42601
42635
  showCancelButton: {
42602
42636
  type: Boolean,
42603
42637
  default: null
@@ -44022,7 +44056,8 @@ var lockScrollCssWidthKey = '--vxe-ui-modal-lock-scroll-view-width';
44022
44056
  propSlots = _props$slots3 === void 0 ? {} : _props$slots3,
44023
44057
  status = props.status,
44024
44058
  message = props.message,
44025
- iconStatus = props.iconStatus;
44059
+ iconStatus = props.iconStatus,
44060
+ useHtml = props.useHtml;
44026
44061
  var content = props.content || message;
44027
44062
  var isMsg = $xeModal.computeIsMsg;
44028
44063
  var defaultSlot = slots.default || propSlots.default;
@@ -44036,7 +44071,14 @@ var lockScrollCssWidthKey = '--vxe-ui-modal-lock-scroll-view-width';
44036
44071
  class: ['vxe-modal--status-icon', iconStatus || getIcon()["MODAL_".concat(status).toLocaleUpperCase()]]
44037
44072
  })]));
44038
44073
  }
44039
- contVNs.push(h('div', {
44074
+ contVNs.push(useHtml && !defaultSlot ? h('div', {
44075
+ key: 'hc',
44076
+ class: 'vxe-modal--content',
44077
+ props: {
44078
+ innerHTML: getFuncText(content)
44079
+ }
44080
+ }) : h('div', {
44081
+ key: 'dc',
44040
44082
  class: 'vxe-modal--content'
44041
44083
  }, defaultSlot ? $xeModal.callSlot(defaultSlot, {
44042
44084
  $modal: $xeModal
@@ -53523,6 +53565,11 @@ function table_select_createInternalData() {
53523
53565
  },
53524
53566
  clearEvent: function clearEvent(params, evnt) {
53525
53567
  var $xeTableSelect = this;
53568
+ var $grid = $xeTableSelect.$refs.refGrid;
53569
+ if ($grid) {
53570
+ $grid.clearRadioRow();
53571
+ $grid.clearCheckboxRow();
53572
+ }
53526
53573
  $xeTableSelect.clearValueEvent(evnt, null);
53527
53574
  $xeTableSelect.hideOptionPanel();
53528
53575
  },
@@ -57019,6 +57066,8 @@ function tree_createReactData() {
57019
57066
  var customHeight = reactData.customHeight,
57020
57067
  customMinHeight = reactData.customMinHeight,
57021
57068
  customMaxHeight = reactData.customMaxHeight;
57069
+ var checkboxOpts = $xeTree.computeCheckboxOpts;
57070
+ var nodeStyle = checkboxOpts.nodeStyle;
57022
57071
  var stys = {};
57023
57072
  if (customHeight) {
57024
57073
  stys.height = toCssUnit(customHeight);
@@ -57032,6 +57081,16 @@ function tree_createReactData() {
57032
57081
  if (indent) {
57033
57082
  stys['--vxe-ui-tree-node-indent'] = toCssUnit(indent);
57034
57083
  }
57084
+ if (nodeStyle) {
57085
+ var indeterminateColor = nodeStyle.indeterminateColor,
57086
+ checkedColor = nodeStyle.checkedColor;
57087
+ if (indeterminateColor) {
57088
+ stys['--vxe-ui-tree-node-checkbox-indeterminate-color'] = indeterminateColor;
57089
+ }
57090
+ if (checkedColor) {
57091
+ stys['--vxe-ui-tree-node-checkbox-checked-color'] = checkedColor;
57092
+ }
57093
+ }
57035
57094
  return stys;
57036
57095
  },
57037
57096
  computeFilterOpts: function computeFilterOpts() {
@@ -58924,7 +58983,7 @@ function tree_createReactData() {
58924
58983
  }
58925
58984
  return renderEmptyElement($xeTree);
58926
58985
  },
58927
- renderCheckbox: function renderCheckbox(h, node, nodeid, isChecked) {
58986
+ renderCheckbox: function renderCheckbox(h, node, nodeid, isChecked, isIndeterminate) {
58928
58987
  var $xeTree = this;
58929
58988
  var props = $xeTree;
58930
58989
  var showCheckbox = props.showCheckbox;
@@ -58932,7 +58991,6 @@ function tree_createReactData() {
58932
58991
  var showIcon = checkboxOpts.showIcon,
58933
58992
  checkMethod = checkboxOpts.checkMethod,
58934
58993
  visibleMethod = checkboxOpts.visibleMethod;
58935
- var isIndeterminate = $xeTree.isIndeterminateByCheckboxNodeid(nodeid);
58936
58994
  var isVisible = !visibleMethod || visibleMethod({
58937
58995
  $tree: $xeTree,
58938
58996
  node: node
@@ -59004,8 +59062,10 @@ function tree_createReactData() {
59004
59062
  isRadioChecked = nodeid === String(selectRadioKey);
59005
59063
  }
59006
59064
  var isCheckboxChecked = false;
59065
+ var isIndeterminate = false;
59007
59066
  if (showCheckbox) {
59008
59067
  isCheckboxChecked = $xeTree.isCheckedByCheckboxNodeId(nodeid);
59068
+ isIndeterminate = $xeTree.isIndeterminateByCheckboxNodeid(nodeid);
59009
59069
  }
59010
59070
  var hasLazyChilds = false;
59011
59071
  var isLazyLoading = false;
@@ -59052,7 +59112,8 @@ function tree_createReactData() {
59052
59112
  class: ['vxe-tree--node-item', {
59053
59113
  'is--current': currentNode && nodeid === $xeTree.getNodeId(currentNode),
59054
59114
  'is-radio--checked': isRadioChecked,
59055
- 'is-checkbox--checked': isCheckboxChecked
59115
+ 'is-checkbox--checked': isCheckboxChecked,
59116
+ 'is-checkbox--indeterminate': isIndeterminate
59056
59117
  }]
59057
59118
  }, [showLine ? h('div', {
59058
59119
  class: 'vxe-tree--node-line-wrapper'
@@ -59072,7 +59133,7 @@ function tree_createReactData() {
59072
59133
  }
59073
59134
  }, iconSlot ? vn_getSlotVNs(iconSlot(nParams)) : [h('i', {
59074
59135
  class: isLazyLoading ? iconLoaded || tree_getIcon().TREE_NODE_LOADED : isExpand ? iconOpen || tree_getIcon().TREE_NODE_OPEN : iconClose || tree_getIcon().TREE_NODE_CLOSE
59075
- })])] : []), $xeTree.renderDragIcon(h, node, nodeid), $xeTree.renderRadio(h, node, nodeid, isRadioChecked), $xeTree.renderCheckbox(h, node, nodeid, isCheckboxChecked), h('div', {
59136
+ })])] : []), $xeTree.renderDragIcon(h, node, nodeid), $xeTree.renderRadio(h, node, nodeid, isRadioChecked), $xeTree.renderCheckbox(h, node, nodeid, isCheckboxChecked, isIndeterminate), h('div', {
59076
59137
  class: 'vxe-tree--node-item-inner'
59077
59138
  }, [h('div', {
59078
59139
  class: 'vxe-tree--node-item-title'