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
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent, ref, h, reactive, inject, PropType, provide, computed, onUnmounted,
|
|
1
|
+
import { defineComponent, ref, h, reactive, inject, PropType, 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'
|
|
@@ -399,15 +399,11 @@ export default defineComponent({
|
|
|
399
399
|
return handlePrevNext(true)
|
|
400
400
|
},
|
|
401
401
|
prevTab () {
|
|
402
|
-
|
|
403
|
-
warnLog('vxe.error.delFunc', ['prevTab', 'prev'])
|
|
404
|
-
}
|
|
402
|
+
warnLog('vxe.error.delFunc', ['prevTab', 'prev'])
|
|
405
403
|
return tabsMethods.prev()
|
|
406
404
|
},
|
|
407
405
|
nextTab () {
|
|
408
|
-
|
|
409
|
-
warnLog('vxe.error.delFunc', ['nextTab', 'next'])
|
|
410
|
-
}
|
|
406
|
+
warnLog('vxe.error.delFunc', ['nextTab', 'next'])
|
|
411
407
|
return tabsMethods.next()
|
|
412
408
|
}
|
|
413
409
|
}
|
|
@@ -438,7 +434,7 @@ export default defineComponent({
|
|
|
438
434
|
class: getIcon().TABS_TAB_BUTTON_LEFT
|
|
439
435
|
})
|
|
440
436
|
])
|
|
441
|
-
:
|
|
437
|
+
: renderEmptyElement($xeTabs),
|
|
442
438
|
h('div', {
|
|
443
439
|
class: 'vxe-tabs-header--wrapper'
|
|
444
440
|
}, [
|
|
@@ -482,7 +478,7 @@ export default defineComponent({
|
|
|
482
478
|
class: icon
|
|
483
479
|
})
|
|
484
480
|
])
|
|
485
|
-
:
|
|
481
|
+
: renderEmptyElement($xeTabs),
|
|
486
482
|
h('span', {
|
|
487
483
|
class: 'vxe-tabs-header--item-name'
|
|
488
484
|
}, titleSlot ? callSlot(titleSlot, { name, title }) : `${title}`)
|
|
@@ -498,7 +494,7 @@ export default defineComponent({
|
|
|
498
494
|
class: isLoading ? getIcon().TABS_TAB_REFRESH_LOADING : getIcon().TABS_TAB_REFRESH
|
|
499
495
|
})
|
|
500
496
|
])
|
|
501
|
-
:
|
|
497
|
+
: renderEmptyElement($xeTabs),
|
|
502
498
|
(showClose || (isEnableConf(closeConfig) || closeOpts.enabled)) && (!closeVisibleMethod || closeVisibleMethod(params))
|
|
503
499
|
? h('div', {
|
|
504
500
|
class: 'vxe-tabs-header--close-btn',
|
|
@@ -510,7 +506,7 @@ export default defineComponent({
|
|
|
510
506
|
class: getIcon().TABS_TAB_CLOSE
|
|
511
507
|
})
|
|
512
508
|
])
|
|
513
|
-
:
|
|
509
|
+
: renderEmptyElement($xeTabs)
|
|
514
510
|
])
|
|
515
511
|
])
|
|
516
512
|
}).concat([
|
|
@@ -533,12 +529,12 @@ export default defineComponent({
|
|
|
533
529
|
class: getIcon().TABS_TAB_BUTTON_RIGHT
|
|
534
530
|
})
|
|
535
531
|
])
|
|
536
|
-
:
|
|
532
|
+
: renderEmptyElement($xeTabs),
|
|
537
533
|
extraSlot
|
|
538
534
|
? h('div', {
|
|
539
535
|
class: 'vxe-tabs-header--extra'
|
|
540
536
|
}, getSlotVNs(extraSlot({})))
|
|
541
|
-
:
|
|
537
|
+
: renderEmptyElement($xeTabs)
|
|
542
538
|
])
|
|
543
539
|
}
|
|
544
540
|
|
|
@@ -554,7 +550,7 @@ export default defineComponent({
|
|
|
554
550
|
'has--content': !!defaultSlot
|
|
555
551
|
}]
|
|
556
552
|
}, defaultSlot ? callSlot(defaultSlot, { name }) : [])
|
|
557
|
-
:
|
|
553
|
+
: renderEmptyElement($xeTabs)
|
|
558
554
|
}
|
|
559
555
|
|
|
560
556
|
const renderTabContent = (tabList: VxeTabsPropTypes.Options | VxeTabPaneDefines.TabConfig[]) => {
|
|
@@ -562,7 +558,7 @@ export default defineComponent({
|
|
|
562
558
|
const { activeName } = reactData
|
|
563
559
|
const activeDefaultTab = tabList.find(item => item.name === activeName)
|
|
564
560
|
if (destroyOnClose) {
|
|
565
|
-
return [activeDefaultTab ? renderTabPane(activeDefaultTab) :
|
|
561
|
+
return [activeDefaultTab ? renderTabPane(activeDefaultTab) : renderEmptyElement($xeTabs)]
|
|
566
562
|
}
|
|
567
563
|
return tabList.map((item) => renderTabPane(item))
|
|
568
564
|
}
|
package/packages/tag/src/tag.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent, ref, h, reactive, PropType
|
|
1
|
+
import { defineComponent, ref, h, reactive, PropType } 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
|
|
|
6
6
|
import type { VxeTagPropTypes, TagReactData, TagPrivateRef, VxeTagEmits, VxeTagPrivateComputed, TagMethods, TagPrivateMethods, VxeTagConstructor, VxeTagPrivateMethods, ValueOf } from '../../../types'
|
|
@@ -81,7 +81,7 @@ export default defineComponent({
|
|
|
81
81
|
class: icon
|
|
82
82
|
})
|
|
83
83
|
])
|
|
84
|
-
:
|
|
84
|
+
: renderEmptyElement($xeTag),
|
|
85
85
|
h('span', {
|
|
86
86
|
class: 'vxe-tag--content'
|
|
87
87
|
}, defaultSlot ? defaultSlot({}) : XEUtils.toValueString(content))
|
package/packages/tip/src/tip.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent, ref, h, reactive, PropType
|
|
1
|
+
import { defineComponent, ref, h, reactive, PropType } 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
|
|
|
6
6
|
import type { VxeTipPropTypes, TipReactData, VxeTipEmits, TipMethods, TipPrivateMethods, TipPrivateRef, VxeTipPrivateComputed, VxeTipConstructor, VxeTipPrivateMethods, ValueOf } from '../../../types'
|
|
@@ -82,7 +82,7 @@ export default defineComponent({
|
|
|
82
82
|
const vSize = computeSize.value
|
|
83
83
|
|
|
84
84
|
if (!permissionInfo.visible) {
|
|
85
|
-
return
|
|
85
|
+
return renderEmptyElement($xeTip)
|
|
86
86
|
}
|
|
87
87
|
return h('div', {
|
|
88
88
|
ref: refElem,
|
|
@@ -102,7 +102,7 @@ export default defineComponent({
|
|
|
102
102
|
class: icon
|
|
103
103
|
})
|
|
104
104
|
])
|
|
105
|
-
:
|
|
105
|
+
: renderEmptyElement($xeTip),
|
|
106
106
|
h('div', {
|
|
107
107
|
class: 'vxe-tip--body'
|
|
108
108
|
}, [
|
|
@@ -110,7 +110,7 @@ export default defineComponent({
|
|
|
110
110
|
? h('div', {
|
|
111
111
|
class: 'vxe-tip--title'
|
|
112
112
|
}, titleSlot ? getSlotVNs(titleSlot({})) : XEUtils.toValueString(title))
|
|
113
|
-
:
|
|
113
|
+
: renderEmptyElement($xeTip),
|
|
114
114
|
h('div', {
|
|
115
115
|
class: 'vxe-tip--content'
|
|
116
116
|
}, defaultSlot ? getSlotVNs(defaultSlot({})) : XEUtils.toValueString(content))
|