vxe-pc-ui 4.14.8 → 4.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 +15 -4
  3. package/es/modal/src/modal.js +15 -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 +12 -2
  18. package/lib/drawer/src/drawer.min.js +1 -1
  19. package/lib/index.umd.js +70 -16
  20. package/lib/index.umd.min.js +1 -1
  21. package/lib/modal/src/modal.js +12 -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 +14 -5
  28. package/lib/tooltip/src/tooltip.min.js +1 -1
  29. package/lib/tree/src/tree.js +22 -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 +15 -4
  42. package/packages/modal/src/modal.ts +15 -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.1778552569676.ttf → iconfont.1778730197205.ttf} +0 -0
  56. /package/es/icon/{iconfont.1778552569676.woff → iconfont.1778730197205.woff} +0 -0
  57. /package/es/icon/{iconfont.1778552569676.woff2 → iconfont.1778730197205.woff2} +0 -0
  58. /package/es/{iconfont.1778552569676.ttf → iconfont.1778730197205.ttf} +0 -0
  59. /package/es/{iconfont.1778552569676.woff → iconfont.1778730197205.woff} +0 -0
  60. /package/es/{iconfont.1778552569676.woff2 → iconfont.1778730197205.woff2} +0 -0
  61. /package/lib/icon/style/{iconfont.1778552569676.ttf → iconfont.1778730197205.ttf} +0 -0
  62. /package/lib/icon/style/{iconfont.1778552569676.woff → iconfont.1778730197205.woff} +0 -0
  63. /package/lib/icon/style/{iconfont.1778552569676.woff2 → iconfont.1778730197205.woff2} +0 -0
  64. /package/lib/{iconfont.1778552569676.ttf → iconfont.1778730197205.ttf} +0 -0
  65. /package/lib/{iconfont.1778552569676.woff → iconfont.1778730197205.woff} +0 -0
  66. /package/lib/{iconfont.1778552569676.woff2 → iconfont.1778730197205.woff2} +0 -0
@@ -419,7 +419,7 @@ const VxeButtonComponent = defineVxeComponent({
419
419
  };
420
420
  const renderTooltipIcon = (tipOpts, type) => {
421
421
  return h(VxeTooltipComponent, {
422
- useHTML: tipOpts.useHTML,
422
+ useHtml: XEUtils.isBoolean(tipOpts.useHtml) ? tipOpts.useHtml : tipOpts.useHTML,
423
423
  content: tipOpts.content,
424
424
  enterable: tipOpts.enterable,
425
425
  theme: tipOpts.theme
@@ -61,6 +61,10 @@ export default defineVxeComponent({
61
61
  default: () => getConfig().drawer.showClose
62
62
  },
63
63
  content: [Number, String],
64
+ useHtml: {
65
+ type: Boolean,
66
+ default: () => getConfig().drawer.useHtml
67
+ },
64
68
  showCancelButton: {
65
69
  type: Boolean,
66
70
  default: null
@@ -436,7 +440,7 @@ export default defineVxeComponent({
436
440
  return renderEmptyElement($xeDrawer);
437
441
  };
438
442
  const renderBody = () => {
439
- const { slots: propSlots = {}, content } = props;
443
+ const { slots: propSlots = {}, content, useHtml } = props;
440
444
  const defaultSlot = slots.default || propSlots.default;
441
445
  const leftSlot = slots.left || propSlots.left;
442
446
  const rightSlot = slots.right || propSlots.right;
@@ -451,9 +455,16 @@ export default defineVxeComponent({
451
455
  h('div', {
452
456
  class: 'vxe-drawer--body-default'
453
457
  }, [
454
- h('div', {
455
- class: 'vxe-drawer--content'
456
- }, defaultSlot ? getSlotVNs(defaultSlot({ $drawer: $xeDrawer })) : getFuncText(content))
458
+ useHtml && !defaultSlot
459
+ ? h('div', {
460
+ key: 'hc',
461
+ class: 'vxe-drawer--content',
462
+ innerHTML: getFuncText(content)
463
+ })
464
+ : h('div', {
465
+ key: 'dc',
466
+ class: 'vxe-drawer--content'
467
+ }, defaultSlot ? getSlotVNs(defaultSlot({ $drawer: $xeDrawer })) : getFuncText(content))
457
468
  ]),
458
469
  rightSlot
459
470
  ? h('div', {
@@ -40,6 +40,10 @@ export default defineVxeComponent({
40
40
  default: () => getConfig().modal.duration
41
41
  },
42
42
  content: [Number, String],
43
+ useHtml: {
44
+ type: Boolean,
45
+ default: () => getConfig().modal.useHtml
46
+ },
43
47
  showCancelButton: {
44
48
  type: Boolean,
45
49
  default: null
@@ -1197,7 +1201,7 @@ export default defineVxeComponent({
1197
1201
  return renderEmptyElement($xeModal);
1198
1202
  };
1199
1203
  const renderBody = () => {
1200
- const { slots: propSlots = {}, status, message, iconStatus } = props;
1204
+ const { slots: propSlots = {}, status, message, iconStatus, useHtml } = props;
1201
1205
  const content = props.content || message;
1202
1206
  const isMsg = computeIsMsg.value;
1203
1207
  const defaultSlot = slots.default || propSlots.default;
@@ -1213,9 +1217,16 @@ export default defineVxeComponent({
1213
1217
  })
1214
1218
  ]));
1215
1219
  }
1216
- contVNs.push(h('div', {
1217
- class: 'vxe-modal--content'
1218
- }, defaultSlot ? getSlotVNs(defaultSlot({ $modal: $xeModal })) : getFuncText(content)));
1220
+ contVNs.push(useHtml && !defaultSlot
1221
+ ? h('div', {
1222
+ key: 'hc',
1223
+ class: 'vxe-modal--content',
1224
+ innerHTML: getFuncText(content)
1225
+ })
1226
+ : h('div', {
1227
+ key: 'dc',
1228
+ class: 'vxe-modal--content'
1229
+ }, defaultSlot ? getSlotVNs(defaultSlot({ $modal: $xeModal })) : getFuncText(content)));
1219
1230
  return h('div', {
1220
1231
  class: 'vxe-modal--body'
1221
1232
  }, [