vxe-pc-ui 4.6.8 → 4.6.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/alert/src/alert.js +5 -5
- package/es/anchor/src/anchor-link.js +3 -2
- package/es/anchor/src/anchor.js +3 -3
- package/es/breadcrumb/src/breadcrumb-item.js +3 -2
- package/es/button/src/button-group.js +3 -3
- package/es/button/src/button.js +7 -8
- package/es/card/src/card.js +7 -7
- package/es/carousel/src/carousel.js +3 -3
- package/es/countdown/src/countdown.js +4 -4
- package/es/form/render/index.js +2 -4
- package/es/form/src/form-group.js +5 -3
- package/es/form/src/form-item.js +6 -4
- package/es/form/src/form.js +97 -37
- package/es/form-design/src/default-setting-form.js +1 -1
- package/es/form-design/src/form-view.js +7 -9
- package/es/icon/style.css +1 -1
- package/es/icon-picker/src/icon-picker.js +4 -4
- package/es/image/src/group.js +3 -1
- package/es/image/src/image.js +3 -1
- package/es/image/src/preview.js +33 -19
- package/es/image/src/util.js +1 -0
- package/es/list-design/src/layout-preview.js +5 -7
- package/es/list-design/src/list-view.js +8 -10
- package/es/loading/src/loading.js +3 -3
- package/es/menu/src/menu.js +9 -9
- package/es/modal/src/modal.js +16 -18
- package/es/pager/src/pager.js +1 -3
- package/es/password-input/src/password-input.js +7 -7
- package/es/print/src/print.js +6 -6
- package/es/pulldown/src/pulldown.js +4 -4
- package/es/style.css +1 -1
- package/es/style.min.css +1 -1
- package/es/switch/src/switch.js +4 -4
- package/es/table-select/src/table-select.js +5 -7
- package/es/tabs/src/tabs.js +11 -15
- package/es/tag/src/tag.js +3 -3
- package/es/tip/src/tip.js +5 -5
- package/es/tree/src/tree.js +245 -180
- package/es/ui/index.js +3 -7
- package/es/ui/src/log.js +1 -1
- package/es/upload/src/upload.js +31 -33
- package/lib/alert/src/alert.js +3 -3
- package/lib/alert/src/alert.min.js +1 -1
- package/lib/anchor/src/anchor-link.js +2 -1
- package/lib/anchor/src/anchor-link.min.js +1 -1
- package/lib/anchor/src/anchor.js +3 -3
- package/lib/anchor/src/anchor.min.js +1 -1
- package/lib/breadcrumb/src/breadcrumb-item.js +2 -1
- package/lib/breadcrumb/src/breadcrumb-item.min.js +1 -1
- package/lib/button/src/button-group.js +6 -6
- package/lib/button/src/button-group.min.js +1 -1
- package/lib/button/src/button.js +4 -6
- package/lib/button/src/button.min.js +1 -1
- package/lib/card/src/card.js +4 -4
- package/lib/card/src/card.min.js +1 -1
- package/lib/carousel/src/carousel.js +1 -1
- package/lib/carousel/src/carousel.min.js +1 -1
- package/lib/countdown/src/countdown.js +2 -2
- package/lib/countdown/src/countdown.min.js +1 -1
- package/lib/form/render/index.js +2 -4
- package/lib/form/render/index.min.js +1 -1
- package/lib/form/src/form-group.js +3 -1
- package/lib/form/src/form-group.min.js +1 -1
- package/lib/form/src/form-item.js +4 -2
- package/lib/form/src/form-item.min.js +1 -1
- package/lib/form/src/form.js +95 -36
- package/lib/form/src/form.min.js +1 -1
- package/lib/form-design/src/default-setting-form.js +12 -12
- package/lib/form-design/src/default-setting-form.min.js +1 -1
- package/lib/form-design/src/form-view.js +5 -7
- package/lib/form-design/src/form-view.min.js +1 -1
- package/lib/icon/style/style.css +1 -1
- package/lib/icon/style/style.min.css +1 -1
- package/lib/icon-picker/src/icon-picker.js +2 -2
- package/lib/icon-picker/src/icon-picker.min.js +1 -1
- package/lib/image/src/group.js +3 -0
- package/lib/image/src/group.min.js +1 -1
- package/lib/image/src/image.js +3 -0
- package/lib/image/src/image.min.js +1 -1
- package/lib/image/src/preview.js +20 -8
- package/lib/image/src/preview.min.js +1 -1
- package/lib/image/src/util.js +1 -0
- package/lib/image/src/util.min.js +1 -1
- package/lib/index.umd.js +549 -377
- package/lib/index.umd.min.js +1 -1
- package/lib/list-design/src/layout-preview.js +5 -7
- package/lib/list-design/src/layout-preview.min.js +1 -1
- package/lib/list-design/src/list-view.js +6 -8
- package/lib/list-design/src/list-view.min.js +1 -1
- package/lib/loading/src/loading.js +1 -1
- package/lib/loading/src/loading.min.js +1 -1
- package/lib/menu/src/menu.js +6 -6
- package/lib/menu/src/menu.min.js +1 -1
- package/lib/modal/src/modal.js +12 -14
- package/lib/modal/src/modal.min.js +1 -1
- package/lib/pager/src/pager.js +1 -3
- package/lib/pager/src/pager.min.js +1 -1
- package/lib/password-input/src/password-input.js +4 -4
- package/lib/password-input/src/password-input.min.js +1 -1
- package/lib/print/src/print.js +4 -4
- package/lib/print/src/print.min.js +1 -1
- package/lib/pulldown/src/pulldown.js +2 -2
- package/lib/pulldown/src/pulldown.min.js +1 -1
- package/lib/style.css +1 -1
- package/lib/style.min.css +1 -1
- package/lib/switch/src/switch.js +2 -2
- package/lib/switch/src/switch.min.js +1 -1
- package/lib/table-select/src/table-select.js +5 -7
- package/lib/table-select/src/table-select.min.js +1 -1
- package/lib/tabs/src/tabs.js +10 -14
- package/lib/tabs/src/tabs.min.js +1 -1
- package/lib/tag/src/tag.js +1 -1
- package/lib/tag/src/tag.min.js +1 -1
- package/lib/tip/src/tip.js +3 -3
- package/lib/tip/src/tip.min.js +1 -1
- package/lib/tree/src/tree.js +298 -184
- package/lib/tree/src/tree.min.js +1 -1
- package/lib/ui/index.js +3 -7
- 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/upload/src/upload.js +27 -29
- package/lib/upload/src/upload.min.js +1 -1
- package/package.json +1 -1
- package/packages/alert/src/alert.ts +5 -5
- package/packages/anchor/src/anchor-link.ts +3 -2
- package/packages/anchor/src/anchor.ts +3 -3
- package/packages/breadcrumb/src/breadcrumb-item.ts +3 -2
- package/packages/button/src/button-group.ts +3 -3
- package/packages/button/src/button.ts +7 -8
- package/packages/card/src/card.ts +7 -7
- package/packages/carousel/src/carousel.ts +3 -3
- package/packages/countdown/src/countdown.ts +4 -4
- package/packages/form/render/index.ts +2 -4
- package/packages/form/src/form-group.ts +7 -3
- package/packages/form/src/form-item.ts +7 -4
- package/packages/form/src/form.ts +98 -35
- package/packages/form-design/src/default-setting-form.ts +1 -1
- package/packages/form-design/src/form-view.ts +7 -9
- package/packages/icon-picker/src/icon-picker.ts +4 -4
- package/packages/image/src/group.ts +3 -1
- package/packages/image/src/image.ts +3 -1
- package/packages/image/src/preview.ts +37 -22
- package/packages/image/src/util.ts +1 -0
- package/packages/list-design/src/layout-preview.ts +5 -7
- package/packages/list-design/src/list-view.ts +8 -10
- package/packages/loading/src/loading.ts +3 -3
- package/packages/menu/src/menu.ts +9 -9
- package/packages/modal/src/modal.ts +16 -18
- package/packages/pager/src/pager.ts +1 -3
- package/packages/password-input/src/password-input.ts +7 -7
- package/packages/print/src/print.ts +6 -6
- package/packages/pulldown/src/pulldown.ts +5 -5
- package/packages/switch/src/switch.ts +4 -4
- package/packages/table-select/src/table-select.ts +5 -7
- package/packages/tabs/src/tabs.ts +11 -15
- package/packages/tag/src/tag.ts +3 -3
- package/packages/tip/src/tip.ts +5 -5
- package/packages/tree/src/tree.ts +242 -179
- package/packages/ui/index.ts +2 -6
- package/packages/upload/src/upload.ts +31 -33
- package/types/components/button.d.ts +2 -1
- package/types/components/image-group.d.ts +3 -0
- package/types/components/image-preview.d.ts +32 -0
- package/types/components/image.d.ts +2 -0
- package/types/components/tree.d.ts +7 -5
- /package/es/icon/{iconfont.1747192660271.ttf → iconfont.1747318422186.ttf} +0 -0
- /package/es/icon/{iconfont.1747192660271.woff → iconfont.1747318422186.woff} +0 -0
- /package/es/icon/{iconfont.1747192660271.woff2 → iconfont.1747318422186.woff2} +0 -0
- /package/es/{iconfont.1747192660271.ttf → iconfont.1747318422186.ttf} +0 -0
- /package/es/{iconfont.1747192660271.woff → iconfont.1747318422186.woff} +0 -0
- /package/es/{iconfont.1747192660271.woff2 → iconfont.1747318422186.woff2} +0 -0
- /package/lib/icon/style/{iconfont.1747192660271.ttf → iconfont.1747318422186.ttf} +0 -0
- /package/lib/icon/style/{iconfont.1747192660271.woff → iconfont.1747318422186.woff} +0 -0
- /package/lib/icon/style/{iconfont.1747192660271.woff2 → iconfont.1747318422186.woff2} +0 -0
- /package/lib/{iconfont.1747192660271.ttf → iconfont.1747318422186.ttf} +0 -0
- /package/lib/{iconfont.1747192660271.woff → iconfont.1747318422186.woff} +0 -0
- /package/lib/{iconfont.1747192660271.woff2 → iconfont.1747318422186.woff2} +0 -0
package/es/switch/src/switch.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent, h, ref, computed, reactive, nextTick,
|
|
1
|
+
import { defineComponent, h, ref, computed, reactive, nextTick, inject } from 'vue';
|
|
2
2
|
import XEUtils from 'xe-utils';
|
|
3
|
-
import { getConfig, createEvent, useSize } from '../../ui';
|
|
3
|
+
import { getConfig, createEvent, useSize, renderEmptyElement } from '../../ui';
|
|
4
4
|
import { getFuncText } from '../../ui/src/utils';
|
|
5
5
|
export default defineComponent({
|
|
6
6
|
name: 'VxeSwitch',
|
|
@@ -175,7 +175,7 @@ export default defineComponent({
|
|
|
175
175
|
? h('i', {
|
|
176
176
|
class: ['vxe-switch--label-icon', openIcon]
|
|
177
177
|
})
|
|
178
|
-
:
|
|
178
|
+
: renderEmptyElement($xeSwitch),
|
|
179
179
|
onShowLabel
|
|
180
180
|
]),
|
|
181
181
|
h('span', {
|
|
@@ -185,7 +185,7 @@ export default defineComponent({
|
|
|
185
185
|
? h('i', {
|
|
186
186
|
class: ['vxe-switch--label-icon', closeIcon]
|
|
187
187
|
})
|
|
188
|
-
:
|
|
188
|
+
: renderEmptyElement($xeSwitch),
|
|
189
189
|
offShowLabel
|
|
190
190
|
]),
|
|
191
191
|
h('span', {
|
|
@@ -586,13 +586,11 @@ export default defineComponent({
|
|
|
586
586
|
globalEvents.off($xeTableSelect, 'mousedown');
|
|
587
587
|
globalEvents.off($xeTableSelect, 'blur');
|
|
588
588
|
});
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
});
|
|
595
|
-
}
|
|
589
|
+
nextTick(() => {
|
|
590
|
+
if (!VxeTableGridComponent) {
|
|
591
|
+
errLog('vxe.error.reqComp', ['vxe-grid']);
|
|
592
|
+
}
|
|
593
|
+
});
|
|
596
594
|
provide('$xeTableSelect', $xeTableSelect);
|
|
597
595
|
$xeTableSelect.renderVN = renderVN;
|
|
598
596
|
return $xeTableSelect;
|
package/es/tabs/src/tabs.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent, ref, h, reactive, inject, provide, computed, onUnmounted,
|
|
1
|
+
import { defineComponent, ref, h, reactive, inject, provide, computed, onUnmounted, watch, nextTick, onMounted } from 'vue';
|
|
2
2
|
import { createEvent, getConfig, getIcon, globalEvents, permission, renderEmptyElement } from '../../ui';
|
|
3
3
|
import { getSlotVNs } from '../../ui/src/vn';
|
|
4
4
|
import { toCssUnit } from '../../ui/src/dom';
|
|
@@ -365,15 +365,11 @@ export default defineComponent({
|
|
|
365
365
|
return handlePrevNext(true);
|
|
366
366
|
},
|
|
367
367
|
prevTab() {
|
|
368
|
-
|
|
369
|
-
warnLog('vxe.error.delFunc', ['prevTab', 'prev']);
|
|
370
|
-
}
|
|
368
|
+
warnLog('vxe.error.delFunc', ['prevTab', 'prev']);
|
|
371
369
|
return tabsMethods.prev();
|
|
372
370
|
},
|
|
373
371
|
nextTab() {
|
|
374
|
-
|
|
375
|
-
warnLog('vxe.error.delFunc', ['nextTab', 'next']);
|
|
376
|
-
}
|
|
372
|
+
warnLog('vxe.error.delFunc', ['nextTab', 'next']);
|
|
377
373
|
return tabsMethods.next();
|
|
378
374
|
}
|
|
379
375
|
};
|
|
@@ -399,7 +395,7 @@ export default defineComponent({
|
|
|
399
395
|
class: getIcon().TABS_TAB_BUTTON_LEFT
|
|
400
396
|
})
|
|
401
397
|
])
|
|
402
|
-
:
|
|
398
|
+
: renderEmptyElement($xeTabs),
|
|
403
399
|
h('div', {
|
|
404
400
|
class: 'vxe-tabs-header--wrapper'
|
|
405
401
|
}, [
|
|
@@ -443,7 +439,7 @@ export default defineComponent({
|
|
|
443
439
|
class: icon
|
|
444
440
|
})
|
|
445
441
|
])
|
|
446
|
-
:
|
|
442
|
+
: renderEmptyElement($xeTabs),
|
|
447
443
|
h('span', {
|
|
448
444
|
class: 'vxe-tabs-header--item-name'
|
|
449
445
|
}, titleSlot ? callSlot(titleSlot, { name, title }) : `${title}`)
|
|
@@ -459,7 +455,7 @@ export default defineComponent({
|
|
|
459
455
|
class: isLoading ? getIcon().TABS_TAB_REFRESH_LOADING : getIcon().TABS_TAB_REFRESH
|
|
460
456
|
})
|
|
461
457
|
])
|
|
462
|
-
:
|
|
458
|
+
: renderEmptyElement($xeTabs),
|
|
463
459
|
(showClose || (isEnableConf(closeConfig) || closeOpts.enabled)) && (!closeVisibleMethod || closeVisibleMethod(params))
|
|
464
460
|
? h('div', {
|
|
465
461
|
class: 'vxe-tabs-header--close-btn',
|
|
@@ -471,7 +467,7 @@ export default defineComponent({
|
|
|
471
467
|
class: getIcon().TABS_TAB_CLOSE
|
|
472
468
|
})
|
|
473
469
|
])
|
|
474
|
-
:
|
|
470
|
+
: renderEmptyElement($xeTabs)
|
|
475
471
|
])
|
|
476
472
|
]);
|
|
477
473
|
}).concat([
|
|
@@ -494,12 +490,12 @@ export default defineComponent({
|
|
|
494
490
|
class: getIcon().TABS_TAB_BUTTON_RIGHT
|
|
495
491
|
})
|
|
496
492
|
])
|
|
497
|
-
:
|
|
493
|
+
: renderEmptyElement($xeTabs),
|
|
498
494
|
extraSlot
|
|
499
495
|
? h('div', {
|
|
500
496
|
class: 'vxe-tabs-header--extra'
|
|
501
497
|
}, getSlotVNs(extraSlot({})))
|
|
502
|
-
:
|
|
498
|
+
: renderEmptyElement($xeTabs)
|
|
503
499
|
]);
|
|
504
500
|
};
|
|
505
501
|
const renderTabPane = (item) => {
|
|
@@ -514,14 +510,14 @@ export default defineComponent({
|
|
|
514
510
|
'has--content': !!defaultSlot
|
|
515
511
|
}]
|
|
516
512
|
}, defaultSlot ? callSlot(defaultSlot, { name }) : [])
|
|
517
|
-
:
|
|
513
|
+
: renderEmptyElement($xeTabs);
|
|
518
514
|
};
|
|
519
515
|
const renderTabContent = (tabList) => {
|
|
520
516
|
const { destroyOnClose } = props;
|
|
521
517
|
const { activeName } = reactData;
|
|
522
518
|
const activeDefaultTab = tabList.find(item => item.name === activeName);
|
|
523
519
|
if (destroyOnClose) {
|
|
524
|
-
return [activeDefaultTab ? renderTabPane(activeDefaultTab) :
|
|
520
|
+
return [activeDefaultTab ? renderTabPane(activeDefaultTab) : renderEmptyElement($xeTabs)];
|
|
525
521
|
}
|
|
526
522
|
return tabList.map((item) => renderTabPane(item));
|
|
527
523
|
};
|
package/es/tag/src/tag.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent, ref, h, reactive
|
|
1
|
+
import { defineComponent, ref, h, reactive } from 'vue';
|
|
2
2
|
import XEUtils from 'xe-utils';
|
|
3
|
-
import { getConfig, createEvent, useSize } from '../../ui';
|
|
3
|
+
import { getConfig, createEvent, useSize, renderEmptyElement } from '../../ui';
|
|
4
4
|
import { getSlotVNs } from '../../ui/src/vn';
|
|
5
5
|
export default defineComponent({
|
|
6
6
|
name: 'VxeTag',
|
|
@@ -61,7 +61,7 @@ export default defineComponent({
|
|
|
61
61
|
class: icon
|
|
62
62
|
})
|
|
63
63
|
])
|
|
64
|
-
:
|
|
64
|
+
: renderEmptyElement($xeTag),
|
|
65
65
|
h('span', {
|
|
66
66
|
class: 'vxe-tag--content'
|
|
67
67
|
}, defaultSlot ? defaultSlot({}) : XEUtils.toValueString(content))
|
package/es/tip/src/tip.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent, ref, h, reactive
|
|
1
|
+
import { defineComponent, ref, h, reactive } from 'vue';
|
|
2
2
|
import XEUtils from 'xe-utils';
|
|
3
|
-
import { getConfig, useSize, usePermission, createEvent } from '../../ui';
|
|
3
|
+
import { getConfig, useSize, usePermission, createEvent, renderEmptyElement } from '../../ui';
|
|
4
4
|
import { getSlotVNs } from '../../ui/src/vn';
|
|
5
5
|
export default defineComponent({
|
|
6
6
|
name: 'VxeTip',
|
|
@@ -60,7 +60,7 @@ export default defineComponent({
|
|
|
60
60
|
const permissionInfo = computePermissionInfo.value;
|
|
61
61
|
const vSize = computeSize.value;
|
|
62
62
|
if (!permissionInfo.visible) {
|
|
63
|
-
return
|
|
63
|
+
return renderEmptyElement($xeTip);
|
|
64
64
|
}
|
|
65
65
|
return h('div', {
|
|
66
66
|
ref: refElem,
|
|
@@ -80,7 +80,7 @@ export default defineComponent({
|
|
|
80
80
|
class: icon
|
|
81
81
|
})
|
|
82
82
|
])
|
|
83
|
-
:
|
|
83
|
+
: renderEmptyElement($xeTip),
|
|
84
84
|
h('div', {
|
|
85
85
|
class: 'vxe-tip--body'
|
|
86
86
|
}, [
|
|
@@ -88,7 +88,7 @@ export default defineComponent({
|
|
|
88
88
|
? h('div', {
|
|
89
89
|
class: 'vxe-tip--title'
|
|
90
90
|
}, titleSlot ? getSlotVNs(titleSlot({})) : XEUtils.toValueString(title))
|
|
91
|
-
:
|
|
91
|
+
: renderEmptyElement($xeTip),
|
|
92
92
|
h('div', {
|
|
93
93
|
class: 'vxe-tip--content'
|
|
94
94
|
}, defaultSlot ? getSlotVNs(defaultSlot({})) : XEUtils.toValueString(content))
|