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.
- package/es/button/src/button.js +1 -1
- package/es/drawer/src/drawer.js +15 -4
- package/es/modal/src/modal.js +15 -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 +12 -2
- package/lib/drawer/src/drawer.min.js +1 -1
- package/lib/index.umd.js +70 -16
- package/lib/index.umd.min.js +1 -1
- package/lib/modal/src/modal.js +12 -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 +14 -5
- package/lib/tooltip/src/tooltip.min.js +1 -1
- package/lib/tree/src/tree.js +22 -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 +15 -4
- package/packages/modal/src/modal.ts +15 -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.1778552569676.ttf → iconfont.1778730197205.ttf} +0 -0
- /package/es/icon/{iconfont.1778552569676.woff → iconfont.1778730197205.woff} +0 -0
- /package/es/icon/{iconfont.1778552569676.woff2 → iconfont.1778730197205.woff2} +0 -0
- /package/es/{iconfont.1778552569676.ttf → iconfont.1778730197205.ttf} +0 -0
- /package/es/{iconfont.1778552569676.woff → iconfont.1778730197205.woff} +0 -0
- /package/es/{iconfont.1778552569676.woff2 → iconfont.1778730197205.woff2} +0 -0
- /package/lib/icon/style/{iconfont.1778552569676.ttf → iconfont.1778730197205.ttf} +0 -0
- /package/lib/icon/style/{iconfont.1778552569676.woff → iconfont.1778730197205.woff} +0 -0
- /package/lib/icon/style/{iconfont.1778552569676.woff2 → iconfont.1778730197205.woff2} +0 -0
- /package/lib/{iconfont.1778552569676.ttf → iconfont.1778730197205.ttf} +0 -0
- /package/lib/{iconfont.1778552569676.woff → iconfont.1778730197205.woff} +0 -0
- /package/lib/{iconfont.1778552569676.woff2 → iconfont.1778730197205.woff2} +0 -0
package/es/button/src/button.js
CHANGED
|
@@ -419,7 +419,7 @@ const VxeButtonComponent = defineVxeComponent({
|
|
|
419
419
|
};
|
|
420
420
|
const renderTooltipIcon = (tipOpts, type) => {
|
|
421
421
|
return h(VxeTooltipComponent, {
|
|
422
|
-
|
|
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
|
package/es/drawer/src/drawer.js
CHANGED
|
@@ -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
|
-
|
|
455
|
-
|
|
456
|
-
|
|
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', {
|
package/es/modal/src/modal.js
CHANGED
|
@@ -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(
|
|
1217
|
-
|
|
1218
|
-
|
|
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
|
}, [
|