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.
- package/es/button/src/button.js +1 -1
- package/es/drawer/src/drawer.js +16 -4
- package/es/modal/src/modal.js +17 -4
- package/es/style.css +1 -1
- package/es/style.min.css +1 -1
- package/es/table-select/src/table-select.js +5 -0
- package/es/tooltip/src/tooltip.js +14 -6
- package/es/tree/src/tree.js +17 -4
- package/es/tree/style.css +6 -0
- package/es/tree/style.min.css +1 -1
- package/es/ui/index.js +3 -1
- package/es/ui/src/log.js +1 -1
- package/es/vxe-tree/style.css +6 -0
- package/es/vxe-tree/style.min.css +1 -1
- package/lib/button/src/button.js +1 -1
- package/lib/button/src/button.min.js +1 -1
- package/lib/drawer/src/drawer.js +15 -2
- package/lib/drawer/src/drawer.min.js +1 -1
- package/lib/index.umd.js +78 -17
- package/lib/index.umd.min.js +1 -1
- package/lib/modal/src/modal.js +16 -2
- package/lib/modal/src/modal.min.js +1 -1
- package/lib/style.css +1 -1
- package/lib/style.min.css +1 -1
- package/lib/table-select/src/table-select.js +5 -0
- package/lib/table-select/src/table-select.min.js +1 -1
- package/lib/tooltip/src/tooltip.js +19 -6
- package/lib/tooltip/src/tooltip.min.js +1 -1
- package/lib/tree/src/tree.js +18 -4
- package/lib/tree/src/tree.min.js +1 -1
- package/lib/tree/style/style.css +6 -0
- package/lib/tree/style/style.min.css +1 -1
- package/lib/ui/index.js +3 -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-tree/style/style.css +6 -0
- package/lib/vxe-tree/style/style.min.css +1 -1
- package/package.json +1 -1
- package/packages/button/src/button.ts +1 -1
- package/packages/drawer/src/drawer.ts +16 -4
- package/packages/modal/src/modal.ts +17 -4
- package/packages/table-select/src/table-select.ts +5 -0
- package/packages/tooltip/src/tooltip.ts +14 -6
- package/packages/tree/src/tree.ts +17 -4
- package/packages/ui/index.ts +2 -0
- package/styles/components/tree.scss +10 -0
- package/styles/theme/base.scss +2 -0
- package/types/components/drawer.d.ts +2 -0
- package/types/components/gantt.d.ts +6 -1
- package/types/components/modal.d.ts +2 -0
- package/types/components/table.d.ts +11 -1
- package/types/components/tooltip.d.ts +18 -2
- package/types/components/tree.d.ts +4 -0
- /package/es/icon/{iconfont.1778552562258.ttf → iconfont.1778729810114.ttf} +0 -0
- /package/es/icon/{iconfont.1778552562258.woff → iconfont.1778729810114.woff} +0 -0
- /package/es/icon/{iconfont.1778552562258.woff2 → iconfont.1778729810114.woff2} +0 -0
- /package/es/{iconfont.1778552562258.ttf → iconfont.1778729810114.ttf} +0 -0
- /package/es/{iconfont.1778552562258.woff → iconfont.1778729810114.woff} +0 -0
- /package/es/{iconfont.1778552562258.woff2 → iconfont.1778729810114.woff2} +0 -0
- /package/lib/icon/style/{iconfont.1778552562258.ttf → iconfont.1778729810114.ttf} +0 -0
- /package/lib/icon/style/{iconfont.1778552562258.woff → iconfont.1778729810114.woff} +0 -0
- /package/lib/icon/style/{iconfont.1778552562258.woff2 → iconfont.1778729810114.woff2} +0 -0
- /package/lib/{iconfont.1778552562258.ttf → iconfont.1778729810114.ttf} +0 -0
- /package/lib/{iconfont.1778552562258.woff → iconfont.1778729810114.woff} +0 -0
- /package/lib/{iconfont.1778552562258.woff2 → iconfont.1778729810114.woff2} +0 -0
package/es/button/src/button.js
CHANGED
|
@@ -549,7 +549,7 @@ export default {
|
|
|
549
549
|
renderTooltipIcon(h, tipOpts, type) {
|
|
550
550
|
return h(VxeTooltipComponent, {
|
|
551
551
|
props: {
|
|
552
|
-
|
|
552
|
+
useHtml: XEUtils.isBoolean(tipOpts.useHtml) ? tipOpts.useHtml : tipOpts.useHTML,
|
|
553
553
|
content: tipOpts.content,
|
|
554
554
|
enterable: tipOpts.enterable,
|
|
555
555
|
theme: tipOpts.theme
|
package/es/drawer/src/drawer.js
CHANGED
|
@@ -64,6 +64,10 @@ export default {
|
|
|
64
64
|
default: () => getConfig().drawer.showClose
|
|
65
65
|
},
|
|
66
66
|
content: [Number, String],
|
|
67
|
+
useHtml: {
|
|
68
|
+
type: Boolean,
|
|
69
|
+
default: () => getConfig().drawer.useHtml
|
|
70
|
+
},
|
|
67
71
|
showCancelButton: {
|
|
68
72
|
type: Boolean,
|
|
69
73
|
default: null
|
|
@@ -513,7 +517,7 @@ export default {
|
|
|
513
517
|
const $xeDrawer = this;
|
|
514
518
|
const props = $xeDrawer;
|
|
515
519
|
const slots = $xeDrawer.$scopedSlots;
|
|
516
|
-
const { slots: propSlots = {}, content } = props;
|
|
520
|
+
const { slots: propSlots = {}, content, useHtml } = props;
|
|
517
521
|
const defaultSlot = slots.default || propSlots.default;
|
|
518
522
|
const leftSlot = slots.left || propSlots.left;
|
|
519
523
|
const rightSlot = slots.right || propSlots.right;
|
|
@@ -528,9 +532,17 @@ export default {
|
|
|
528
532
|
h('div', {
|
|
529
533
|
class: 'vxe-drawer--body-default'
|
|
530
534
|
}, [
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
535
|
+
useHtml && !defaultSlot
|
|
536
|
+
? h('div', {
|
|
537
|
+
key: 'hc',
|
|
538
|
+
class: 'vxe-drawer--content',
|
|
539
|
+
props: {
|
|
540
|
+
innerHTML: getFuncText(content)
|
|
541
|
+
}
|
|
542
|
+
})
|
|
543
|
+
: h('div', {
|
|
544
|
+
class: 'vxe-drawer--content'
|
|
545
|
+
}, defaultSlot ? $xeDrawer.callSlot(defaultSlot, { $drawer: $xeDrawer }, h) : getFuncText(content))
|
|
534
546
|
]),
|
|
535
547
|
rightSlot
|
|
536
548
|
? h('div', {
|
package/es/modal/src/modal.js
CHANGED
|
@@ -43,6 +43,10 @@ export default {
|
|
|
43
43
|
default: () => getConfig().modal.duration
|
|
44
44
|
},
|
|
45
45
|
content: [Number, String],
|
|
46
|
+
useHtml: {
|
|
47
|
+
type: Boolean,
|
|
48
|
+
default: () => getConfig().modal.useHtml
|
|
49
|
+
},
|
|
46
50
|
showCancelButton: {
|
|
47
51
|
type: Boolean,
|
|
48
52
|
default: null
|
|
@@ -1354,7 +1358,7 @@ export default {
|
|
|
1354
1358
|
const $xeModal = this;
|
|
1355
1359
|
const props = $xeModal;
|
|
1356
1360
|
const slots = $xeModal.$scopedSlots;
|
|
1357
|
-
const { slots: propSlots = {}, status, message, iconStatus } = props;
|
|
1361
|
+
const { slots: propSlots = {}, status, message, iconStatus, useHtml } = props;
|
|
1358
1362
|
const content = props.content || message;
|
|
1359
1363
|
const isMsg = $xeModal.computeIsMsg;
|
|
1360
1364
|
const defaultSlot = slots.default || propSlots.default;
|
|
@@ -1370,9 +1374,18 @@ export default {
|
|
|
1370
1374
|
})
|
|
1371
1375
|
]));
|
|
1372
1376
|
}
|
|
1373
|
-
contVNs.push(
|
|
1374
|
-
|
|
1375
|
-
|
|
1377
|
+
contVNs.push(useHtml && !defaultSlot
|
|
1378
|
+
? h('div', {
|
|
1379
|
+
key: 'hc',
|
|
1380
|
+
class: 'vxe-modal--content',
|
|
1381
|
+
props: {
|
|
1382
|
+
innerHTML: getFuncText(content)
|
|
1383
|
+
}
|
|
1384
|
+
})
|
|
1385
|
+
: h('div', {
|
|
1386
|
+
key: 'dc',
|
|
1387
|
+
class: 'vxe-modal--content'
|
|
1388
|
+
}, defaultSlot ? $xeModal.callSlot(defaultSlot, { $modal: $xeModal }, h) : getFuncText(content)));
|
|
1376
1389
|
return h('div', {
|
|
1377
1390
|
class: 'vxe-modal--body'
|
|
1378
1391
|
}, [
|