vxe-pc-ui 3.16.17 → 3.16.18
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 +4 -2
- package/es/button/style.css +2 -0
- package/es/button/style.min.css +1 -1
- package/es/color-picker/src/color-picker.js +4 -2
- package/es/date-picker/src/date-picker.js +4 -2
- package/es/date-range-picker/src/date-range-picker.js +4 -2
- package/es/drawer/src/drawer.js +7 -3
- package/es/icon/style.css +1 -1
- package/es/icon-picker/src/icon-picker.js +4 -2
- package/es/menu/src/menu.js +8 -4
- package/es/modal/src/modal.js +9 -5
- package/es/select/src/select.js +4 -2
- package/es/style.css +1 -1
- package/es/style.min.css +1 -1
- package/es/table-select/src/table-select.js +4 -2
- package/es/tree-select/src/tree-select.js +4 -2
- package/es/ui/index.js +1 -1
- package/es/ui/src/dom.js +7 -0
- package/es/ui/src/log.js +1 -1
- package/es/vxe-button/style.css +2 -0
- package/es/vxe-button/style.min.css +1 -1
- package/lib/button/src/button.js +3 -1
- package/lib/button/src/button.min.js +1 -1
- package/lib/button/style/style.css +2 -0
- package/lib/button/style/style.min.css +1 -1
- package/lib/color-picker/src/color-picker.js +3 -1
- package/lib/color-picker/src/color-picker.min.js +1 -1
- package/lib/date-picker/src/date-picker.js +3 -1
- package/lib/date-picker/src/date-picker.min.js +1 -1
- package/lib/date-range-picker/src/date-range-picker.js +3 -1
- package/lib/date-range-picker/src/date-range-picker.min.js +1 -1
- package/lib/drawer/src/drawer.js +9 -2
- package/lib/drawer/src/drawer.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 +3 -1
- package/lib/icon-picker/src/icon-picker.min.js +1 -1
- package/lib/index.umd.js +63 -19
- package/lib/index.umd.min.js +1 -1
- package/lib/menu/src/menu.js +10 -3
- package/lib/menu/src/menu.min.js +1 -1
- package/lib/modal/src/modal.js +11 -4
- package/lib/modal/src/modal.min.js +1 -1
- package/lib/select/src/select.js +3 -1
- package/lib/select/src/select.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 +3 -1
- package/lib/table-select/src/table-select.min.js +1 -1
- package/lib/tree-select/src/tree-select.js +3 -1
- package/lib/tree-select/src/tree-select.min.js +1 -1
- package/lib/ui/index.js +1 -1
- package/lib/ui/index.min.js +1 -1
- package/lib/ui/src/dom.js +8 -0
- package/lib/ui/src/dom.min.js +1 -1
- package/lib/ui/src/log.js +1 -1
- package/lib/ui/src/log.min.js +1 -1
- package/lib/vxe-button/style/style.css +2 -0
- package/lib/vxe-button/style/style.min.css +1 -1
- package/package.json +1 -1
- package/packages/button/src/button.ts +4 -2
- package/packages/color-picker/src/color-picker.ts +4 -2
- package/packages/date-picker/src/date-picker.ts +4 -2
- package/packages/date-range-picker/src/date-range-picker.ts +4 -2
- package/packages/drawer/src/drawer.ts +7 -3
- package/packages/icon-picker/src/icon-picker.ts +4 -2
- package/packages/menu/src/menu.ts +8 -4
- package/packages/modal/src/modal.ts +9 -5
- package/packages/select/src/select.ts +4 -2
- package/packages/table-select/src/table-select.ts +4 -2
- package/packages/tree-select/src/tree-select.ts +4 -2
- package/packages/ui/src/dom.ts +8 -0
- package/styles/components/button.scss +1 -0
- package/types/components/button.d.ts +1 -1
- package/types/components/color-picker.d.ts +1 -1
- package/types/components/date-picker.d.ts +1 -1
- package/types/components/date-range-picker.d.ts +1 -1
- package/types/components/drawer.d.ts +8 -0
- package/types/components/icon-picker.d.ts +7 -0
- package/types/components/menu.d.ts +5 -1
- package/types/components/modal.d.ts +8 -0
- package/types/components/pulldown.d.ts +1 -1
- package/types/components/select.d.ts +1 -1
- package/types/components/table-select.d.ts +1 -1
- package/types/components/tree-select.d.ts +1 -1
- /package/es/icon/{iconfont.1784627052100.ttf → iconfont.1784708557175.ttf} +0 -0
- /package/es/icon/{iconfont.1784627052100.woff → iconfont.1784708557175.woff} +0 -0
- /package/es/icon/{iconfont.1784627052100.woff2 → iconfont.1784708557175.woff2} +0 -0
- /package/es/{iconfont.1784627052100.ttf → iconfont.1784708557175.ttf} +0 -0
- /package/es/{iconfont.1784627052100.woff → iconfont.1784708557175.woff} +0 -0
- /package/es/{iconfont.1784627052100.woff2 → iconfont.1784708557175.woff2} +0 -0
- /package/lib/icon/style/{iconfont.1784627052100.ttf → iconfont.1784708557175.ttf} +0 -0
- /package/lib/icon/style/{iconfont.1784627052100.woff → iconfont.1784708557175.woff} +0 -0
- /package/lib/icon/style/{iconfont.1784627052100.woff2 → iconfont.1784708557175.woff2} +0 -0
- /package/lib/{iconfont.1784627052100.ttf → iconfont.1784708557175.ttf} +0 -0
- /package/lib/{iconfont.1784627052100.woff → iconfont.1784708557175.woff} +0 -0
- /package/lib/{iconfont.1784627052100.woff2 → iconfont.1784708557175.woff2} +0 -0
|
@@ -3,7 +3,7 @@ import { defineVxeComponent } from '../../ui/src/comp'
|
|
|
3
3
|
import XEUtils from 'xe-utils'
|
|
4
4
|
import { globalMixins, getIcon, getConfig, getI18n, globalEvents, GLOBAL_EVENT_KEYS, createEvent, renderEmptyElement } from '../../ui'
|
|
5
5
|
import { getLastZIndex, nextZIndex, getFuncText } from '../../ui/src/utils'
|
|
6
|
-
import { getDomNode, toCssUnit } from '../../ui/src/dom'
|
|
6
|
+
import { getDomNode, getPopupContainer, toCssUnit } from '../../ui/src/dom'
|
|
7
7
|
import { getSlotVNs } from '../../ui/src/vn'
|
|
8
8
|
import VxeButtonComponent from '../../button'
|
|
9
9
|
import VxeLoadingComponent from '../../loading'
|
|
@@ -110,6 +110,10 @@ export default /* define-vxe-component start */ defineVxeComponent({
|
|
|
110
110
|
type: Boolean as PropType<VxeDrawerPropTypes.Transfer>,
|
|
111
111
|
default: () => getConfig().drawer.transfer
|
|
112
112
|
},
|
|
113
|
+
appendTo: {
|
|
114
|
+
type: [String, Function] as PropType<VxeDrawerPropTypes.AppendTo>,
|
|
115
|
+
default: () => getConfig().drawer.appendTo
|
|
116
|
+
},
|
|
113
117
|
padding: {
|
|
114
118
|
type: Boolean as PropType<VxeDrawerPropTypes.Padding>,
|
|
115
119
|
default: () => getConfig().drawer.padding
|
|
@@ -340,14 +344,14 @@ export default /* define-vxe-component start */ defineVxeComponent({
|
|
|
340
344
|
const props = $xeDrawer
|
|
341
345
|
const reactData = $xeDrawer.reactData
|
|
342
346
|
|
|
343
|
-
const { showFooter } = props
|
|
347
|
+
const { showFooter, appendTo } = props
|
|
344
348
|
const { initialized, visible } = reactData
|
|
345
349
|
const btnTransfer = $xeDrawer.computeBtnTransfer
|
|
346
350
|
if (!initialized) {
|
|
347
351
|
reactData.initialized = true
|
|
348
352
|
if (btnTransfer) {
|
|
349
353
|
const panelElem = $xeDrawer.$refs.refElem as HTMLDivElement
|
|
350
|
-
|
|
354
|
+
getPopupContainer(appendTo).appendChild(panelElem)
|
|
351
355
|
}
|
|
352
356
|
}
|
|
353
357
|
if (!visible) {
|
|
@@ -2,7 +2,7 @@ import { PropType, CreateElement, VNode } from 'vue'
|
|
|
2
2
|
import { defineVxeComponent } from '../../ui/src/comp'
|
|
3
3
|
import XEUtils from 'xe-utils'
|
|
4
4
|
import { getConfig, getIcon, getI18n, globalEvents, renderer, createEvent, globalMixins, GLOBAL_EVENT_KEYS, renderEmptyElement } from '../../ui'
|
|
5
|
-
import { getEventTargetNode, toCssUnit, updatePanelPlacement } from '../../ui/src/dom'
|
|
5
|
+
import { getEventTargetNode, getPopupContainer, toCssUnit, updatePanelPlacement } from '../../ui/src/dom'
|
|
6
6
|
import { getLastZIndex, nextZIndex, getFuncText } from '../../ui/src/utils'
|
|
7
7
|
import { getSlotVNs } from '../../ui/src/vn'
|
|
8
8
|
import VxeInputComponent from '../../input/src/input'
|
|
@@ -381,6 +381,7 @@ export default /* define-vxe-component start */ defineVxeComponent({
|
|
|
381
381
|
|
|
382
382
|
const { hpTimeout } = internalData
|
|
383
383
|
const isDisabled = $xeIconPicker.computeIsDisabled
|
|
384
|
+
const popupOpts = $xeIconPicker.computePopupOpts
|
|
384
385
|
if (!isDisabled) {
|
|
385
386
|
if (hpTimeout) {
|
|
386
387
|
clearTimeout(hpTimeout)
|
|
@@ -392,7 +393,8 @@ export default /* define-vxe-component start */ defineVxeComponent({
|
|
|
392
393
|
reactData.initialized = true
|
|
393
394
|
if (btnTransfer) {
|
|
394
395
|
if (panelElem) {
|
|
395
|
-
|
|
396
|
+
const { appendTo } = popupOpts
|
|
397
|
+
getPopupContainer(appendTo).appendChild(panelElem)
|
|
396
398
|
}
|
|
397
399
|
}
|
|
398
400
|
}
|
|
@@ -2,7 +2,7 @@ import { PropType, CreateElement, VNode } from 'vue'
|
|
|
2
2
|
import { defineVxeComponent } from '../../ui/src/comp'
|
|
3
3
|
import XEUtils from 'xe-utils'
|
|
4
4
|
import { VxeUI, createEvent, permission, globalMixins, globalEvents, renderEmptyElement } from '../../ui'
|
|
5
|
-
import { scrollToView, toCssUnit } from '../../ui/src/dom'
|
|
5
|
+
import { getPopupContainer, scrollToView, toCssUnit } from '../../ui/src/dom'
|
|
6
6
|
import { getLastZIndex, nextZIndex, isEnableConf } from '../../ui/src/utils'
|
|
7
7
|
import { getSlotVNs } from '../../ui/src/vn'
|
|
8
8
|
import { createComponentLog } from '../../ui/src/log'
|
|
@@ -74,7 +74,11 @@ export default /* define-vxe-component start */ defineVxeComponent({
|
|
|
74
74
|
type: String as PropType<VxeMenuPropTypes.Size>,
|
|
75
75
|
default: () => getConfig().menu.size || getConfig().size
|
|
76
76
|
},
|
|
77
|
-
menuConfig: Object as PropType<VxeMenuPropTypes.MenuConfig
|
|
77
|
+
menuConfig: Object as PropType<VxeMenuPropTypes.MenuConfig>,
|
|
78
|
+
appendTo: {
|
|
79
|
+
type: [String, Function] as PropType<VxeMenuPropTypes.AppendTo>,
|
|
80
|
+
default: () => getConfig().menu.appendTo
|
|
81
|
+
}
|
|
78
82
|
},
|
|
79
83
|
inject: {
|
|
80
84
|
$xeLayoutAside: {
|
|
@@ -419,7 +423,7 @@ export default /* define-vxe-component start */ defineVxeComponent({
|
|
|
419
423
|
const props = $xeMenu
|
|
420
424
|
const reactData = $xeMenu.reactData
|
|
421
425
|
|
|
422
|
-
const { collapseFixed } = props
|
|
426
|
+
const { collapseFixed, appendTo } = props
|
|
423
427
|
if (collapseFixed) {
|
|
424
428
|
const { initialized } = reactData
|
|
425
429
|
const isCollapsed = $xeMenu.computeIsCollapsed
|
|
@@ -429,7 +433,7 @@ export default /* define-vxe-component start */ defineVxeComponent({
|
|
|
429
433
|
$xeMenu.$nextTick(() => {
|
|
430
434
|
const collapseEl = $xeMenu.$refs.refCollapseElem as HTMLDivElement
|
|
431
435
|
if (collapseEl) {
|
|
432
|
-
|
|
436
|
+
getPopupContainer(appendTo).appendChild(collapseEl)
|
|
433
437
|
}
|
|
434
438
|
})
|
|
435
439
|
}
|
|
@@ -2,7 +2,7 @@ import { PropType, CreateElement, VNode } from 'vue'
|
|
|
2
2
|
import { defineVxeComponent } from '../../ui/src/comp'
|
|
3
3
|
import XEUtils from 'xe-utils'
|
|
4
4
|
import { VxeUI, getConfig, getI18n, getIcon, createEvent, globalEvents, globalMixins, renderEmptyElement, GLOBAL_EVENT_KEYS } from '../../ui'
|
|
5
|
-
import { getDomNode, getEventTargetNode, toCssUnit } from '../../ui/src/dom'
|
|
5
|
+
import { getDomNode, getEventTargetNode, getPopupContainer, toCssUnit } from '../../ui/src/dom'
|
|
6
6
|
import { getLastZIndex, nextZIndex, getSubLastZIndex, nextSubZIndex, getFuncText, handleBooleanDefaultValue } from '../../ui/src/utils'
|
|
7
7
|
import VxeButtonComponent from '../../button'
|
|
8
8
|
import VxeLoadingComponent from '../../loading'
|
|
@@ -167,6 +167,10 @@ export default /* define-vxe-component start */ defineVxeComponent({
|
|
|
167
167
|
type: Boolean as PropType<VxeModalPropTypes.Transfer>,
|
|
168
168
|
default: () => getConfig().modal.transfer
|
|
169
169
|
},
|
|
170
|
+
appendTo: {
|
|
171
|
+
type: [String, Function] as PropType<VxeModalPropTypes.AppendTo>,
|
|
172
|
+
default: () => getConfig().modal.appendTo
|
|
173
|
+
},
|
|
170
174
|
storage: {
|
|
171
175
|
type: Boolean as PropType<VxeModalPropTypes.Storage>,
|
|
172
176
|
default: () => getConfig().modal.storage
|
|
@@ -901,7 +905,7 @@ export default /* define-vxe-component start */ defineVxeComponent({
|
|
|
901
905
|
const props = $xeModal
|
|
902
906
|
const reactData = $xeModal.reactData
|
|
903
907
|
|
|
904
|
-
const { remember, showFooter } = props
|
|
908
|
+
const { remember, showFooter, appendTo } = props
|
|
905
909
|
const { initialized, visible } = reactData
|
|
906
910
|
const isMsg = $xeModal.computeIsMsg
|
|
907
911
|
const btnTransfer = $xeModal.computeBtnTransfer
|
|
@@ -909,7 +913,7 @@ export default /* define-vxe-component start */ defineVxeComponent({
|
|
|
909
913
|
reactData.initialized = true
|
|
910
914
|
if (btnTransfer) {
|
|
911
915
|
const panelElem = $xeModal.$refs.refElem as HTMLDivElement
|
|
912
|
-
|
|
916
|
+
getPopupContainer(appendTo).appendChild(panelElem)
|
|
913
917
|
}
|
|
914
918
|
}
|
|
915
919
|
if (!visible) {
|
|
@@ -1176,7 +1180,7 @@ export default /* define-vxe-component start */ defineVxeComponent({
|
|
|
1176
1180
|
const { visibleHeight, visibleWidth } = getDomNode()
|
|
1177
1181
|
const marginSize = XEUtils.toNumber(props.marginSize)
|
|
1178
1182
|
const targetElem = evnt.target as HTMLSpanElement
|
|
1179
|
-
const type = targetElem.getAttribute('type')
|
|
1183
|
+
const type = targetElem.getAttribute('data-type')
|
|
1180
1184
|
const minWidth = XEUtils.toNumber(props.minWidth)
|
|
1181
1185
|
const minHeight = XEUtils.toNumber(props.minHeight)
|
|
1182
1186
|
const maxWidth = visibleWidth
|
|
@@ -1636,7 +1640,7 @@ export default /* define-vxe-component start */ defineVxeComponent({
|
|
|
1636
1640
|
return h('span', {
|
|
1637
1641
|
class: `${type}-resize`,
|
|
1638
1642
|
attrs: {
|
|
1639
|
-
type: type
|
|
1643
|
+
'data-type': type
|
|
1640
1644
|
},
|
|
1641
1645
|
on: {
|
|
1642
1646
|
mousedown: $xeModal.dragEvent
|
|
@@ -2,7 +2,7 @@ import { PropType, CreateElement, VNode } from 'vue'
|
|
|
2
2
|
import { defineVxeComponent } from '../../ui/src/comp'
|
|
3
3
|
import XEUtils from 'xe-utils'
|
|
4
4
|
import { VxeUI, getConfig, getIcon, getI18n, globalEvents, GLOBAL_EVENT_KEYS, createEvent, globalMixins, renderEmptyElement } from '../../ui'
|
|
5
|
-
import { getEventTargetNode, toCssUnit, updatePanelPlacement } from '../../ui/src/dom'
|
|
5
|
+
import { getEventTargetNode, getPopupContainer, toCssUnit, updatePanelPlacement } from '../../ui/src/dom'
|
|
6
6
|
import { getLastZIndex, nextZIndex, getFuncText, eqEmptyValue } from '../../ui/src/utils'
|
|
7
7
|
import { getSlotVNs } from '../../ui/src/vn'
|
|
8
8
|
import { createComponentLog } from '../../ui/src/log'
|
|
@@ -849,6 +849,7 @@ export default /* define-vxe-component start */ defineVxeComponent({
|
|
|
849
849
|
const isDisabled = $xeSelect.computeIsDisabled
|
|
850
850
|
const remoteOpts = $xeSelect.computeRemoteOpts
|
|
851
851
|
const selectVals = $xeSelect.computeSelectVals
|
|
852
|
+
const popupOpts = $xeSelect.computePopupOpts
|
|
852
853
|
if (!loading && !isDisabled) {
|
|
853
854
|
if (hpTimeout) {
|
|
854
855
|
clearTimeout(hpTimeout)
|
|
@@ -859,7 +860,8 @@ export default /* define-vxe-component start */ defineVxeComponent({
|
|
|
859
860
|
const btnTransfer = $xeSelect.computeBtnTransfer
|
|
860
861
|
const panelElem = $xeSelect.$refs.refOptionPanel as HTMLElement
|
|
861
862
|
if (btnTransfer && panelElem) {
|
|
862
|
-
|
|
863
|
+
const { appendTo } = popupOpts
|
|
864
|
+
getPopupContainer(appendTo).appendChild(panelElem)
|
|
863
865
|
}
|
|
864
866
|
}
|
|
865
867
|
reactData.isActivated = true
|
|
@@ -2,7 +2,7 @@ import { CreateElement, PropType, VNode } from 'vue'
|
|
|
2
2
|
import { defineVxeComponent } from '../../ui/src/comp'
|
|
3
3
|
import XEUtils from 'xe-utils'
|
|
4
4
|
import { VxeUI, getConfig, getIcon, globalEvents, getI18n, createEvent, renderEmptyElement, globalMixins } from '../../ui'
|
|
5
|
-
import { getEventTargetNode, updatePanelPlacement, toCssUnit } from '../../ui/src/dom'
|
|
5
|
+
import { getEventTargetNode, updatePanelPlacement, toCssUnit, getPopupContainer } from '../../ui/src/dom'
|
|
6
6
|
import { getOnName } from '../../ui/src/vn'
|
|
7
7
|
import { getLastZIndex, nextZIndex } from '../../ui/src/utils'
|
|
8
8
|
import { createComponentLog } from '../../ui/src/log'
|
|
@@ -496,6 +496,7 @@ export default /* define-vxe-component start */ defineVxeComponent({
|
|
|
496
496
|
|
|
497
497
|
const { loading } = props
|
|
498
498
|
const isDisabled = $xeTableSelect.computeIsDisabled
|
|
499
|
+
const popupOpts = $xeTableSelect.computePopupOpts
|
|
499
500
|
if (!loading && !isDisabled) {
|
|
500
501
|
if (internalData.vpTimeout) {
|
|
501
502
|
clearTimeout(internalData.vpTimeout)
|
|
@@ -509,7 +510,8 @@ export default /* define-vxe-component start */ defineVxeComponent({
|
|
|
509
510
|
const panelElem = $xeTableSelect.$refs.refOptionPanel as HTMLElement
|
|
510
511
|
if (btnTransfer) {
|
|
511
512
|
if (panelElem) {
|
|
512
|
-
|
|
513
|
+
const { appendTo } = popupOpts
|
|
514
|
+
getPopupContainer(appendTo).appendChild(panelElem)
|
|
513
515
|
}
|
|
514
516
|
}
|
|
515
517
|
}
|
|
@@ -2,7 +2,7 @@ import { PropType, CreateElement, VNode } from 'vue'
|
|
|
2
2
|
import { defineVxeComponent } from '../../ui/src/comp'
|
|
3
3
|
import XEUtils from 'xe-utils'
|
|
4
4
|
import { getConfig, getI18n, getIcon, globalEvents, createEvent, globalMixins, renderEmptyElement } from '../../ui'
|
|
5
|
-
import { getEventTargetNode, updatePanelPlacement, toCssUnit } from '../../ui/src/dom'
|
|
5
|
+
import { getEventTargetNode, updatePanelPlacement, toCssUnit, getPopupContainer } from '../../ui/src/dom'
|
|
6
6
|
import { getLastZIndex, nextZIndex, deModelValue } from '../../ui/src/utils'
|
|
7
7
|
import { createComponentLog } from '../../ui/src/log'
|
|
8
8
|
import { getSlotVNs } from '../../ui/src/vn'
|
|
@@ -588,6 +588,7 @@ export default /* define-vxe-component start */ defineVxeComponent({
|
|
|
588
588
|
const { fullOptionList } = internalData
|
|
589
589
|
const isDisabled = $xeTreeSelect.computeIsDisabled
|
|
590
590
|
const remoteOpts = $xeTreeSelect.computeRemoteOpts
|
|
591
|
+
const popupOpts = $xeTreeSelect.computePopupOpts
|
|
591
592
|
if (!loading && !isDisabled) {
|
|
592
593
|
if (internalData.hpTimeout) {
|
|
593
594
|
clearTimeout(internalData.hpTimeout)
|
|
@@ -598,7 +599,8 @@ export default /* define-vxe-component start */ defineVxeComponent({
|
|
|
598
599
|
const panelElem = $xeTreeSelect.$refs.refOptionPanel as HTMLElement
|
|
599
600
|
if (btnTransfer) {
|
|
600
601
|
if (panelElem) {
|
|
601
|
-
|
|
602
|
+
const { appendTo } = popupOpts
|
|
603
|
+
getPopupContainer(appendTo).appendChild(panelElem)
|
|
602
604
|
}
|
|
603
605
|
}
|
|
604
606
|
}
|
package/packages/ui/src/dom.ts
CHANGED
|
@@ -278,3 +278,11 @@ export function updatePanelPlacement (targetElem: HTMLElement | null | undefined
|
|
|
278
278
|
placement: panelPlacement
|
|
279
279
|
}
|
|
280
280
|
}
|
|
281
|
+
|
|
282
|
+
export function getPopupContainer (appendTo: string | HTMLElement | ((params: any) => string | HTMLElement) | undefined) {
|
|
283
|
+
const selectElem = appendTo && XEUtils.isFunction(appendTo) ? appendTo({}) : appendTo
|
|
284
|
+
if (XEUtils.isString(selectElem)) {
|
|
285
|
+
return document.querySelector(selectElem) || document.body
|
|
286
|
+
}
|
|
287
|
+
return selectElem || document.body
|
|
288
|
+
}
|
|
@@ -94,7 +94,7 @@ export namespace VxeButtonPropTypes {
|
|
|
94
94
|
/**
|
|
95
95
|
* 挂载到指定元素下
|
|
96
96
|
*/
|
|
97
|
-
appendTo?: string | HTMLElement | (() => string | HTMLElement)
|
|
97
|
+
appendTo?: string | HTMLElement | ((params: {}) => string | HTMLElement)
|
|
98
98
|
zIndex?: number | string
|
|
99
99
|
className?: string | ((params: { $button: VxeButtonConstructor }) => string)
|
|
100
100
|
}
|
|
@@ -65,7 +65,7 @@ export namespace VxeColorPickerPropTypes {
|
|
|
65
65
|
/**
|
|
66
66
|
* 挂载到指定元素下
|
|
67
67
|
*/
|
|
68
|
-
appendTo?: string | HTMLElement | (() => string | HTMLElement)
|
|
68
|
+
appendTo?: string | HTMLElement | ((params: {}) => string | HTMLElement)
|
|
69
69
|
width?: number | string
|
|
70
70
|
height?: number | string
|
|
71
71
|
zIndex?: number | string
|
|
@@ -116,7 +116,7 @@ export namespace VxeDatePickerPropTypes {
|
|
|
116
116
|
/**
|
|
117
117
|
* 挂载到指定元素下
|
|
118
118
|
*/
|
|
119
|
-
appendTo?: string | HTMLElement | (() => string | HTMLElement)
|
|
119
|
+
appendTo?: string | HTMLElement | ((params: {}) => string | HTMLElement)
|
|
120
120
|
width?: number | string
|
|
121
121
|
height?: number | string
|
|
122
122
|
zIndex?: number | string
|
|
@@ -99,7 +99,7 @@ export namespace VxeDateRangePickerPropTypes {
|
|
|
99
99
|
/**
|
|
100
100
|
* 挂载到指定元素下
|
|
101
101
|
*/
|
|
102
|
-
appendTo?: string | HTMLElement | (() => string | HTMLElement)
|
|
102
|
+
appendTo?: string | HTMLElement | ((params: {}) => string | HTMLElement)
|
|
103
103
|
width?: number | string
|
|
104
104
|
height?: number | string
|
|
105
105
|
zIndex?: number | string
|
|
@@ -58,6 +58,7 @@ export namespace VxeDrawerPropTypes {
|
|
|
58
58
|
export type DestroyOnClose = boolean
|
|
59
59
|
export type ShowTitleOverflow = boolean
|
|
60
60
|
export type Transfer = boolean
|
|
61
|
+
export type AppendTo = string | HTMLElement | ((params: {}) => string | HTMLElement)
|
|
61
62
|
export type Padding = boolean
|
|
62
63
|
export type BeforeHideMethod = (params: VxeDrawerDefines.DrawerVisibleParams) => Promise<any>
|
|
63
64
|
export type Slots = VxeDrawerSlots
|
|
@@ -94,7 +95,14 @@ export interface VxeDrawerProps {
|
|
|
94
95
|
zIndex?: VxeDrawerPropTypes.ZIndex
|
|
95
96
|
destroyOnClose?: VxeDrawerPropTypes.DestroyOnClose
|
|
96
97
|
showTitleOverflow?: VxeDrawerPropTypes.ShowTitleOverflow
|
|
98
|
+
/**
|
|
99
|
+
* 是否启用元素挂载
|
|
100
|
+
*/
|
|
97
101
|
transfer?: VxeDrawerPropTypes.Transfer
|
|
102
|
+
/**
|
|
103
|
+
* 挂载到指定元素下
|
|
104
|
+
*/
|
|
105
|
+
appendTo?: VxeDrawerPropTypes.AppendTo
|
|
98
106
|
padding?: VxeDrawerPropTypes.Padding
|
|
99
107
|
beforeHideMethod?: VxeDrawerPropTypes.BeforeHideMethod
|
|
100
108
|
slots?: VxeDrawerPropTypes.Slots
|
|
@@ -59,7 +59,14 @@ export namespace VxeIconPickerPropTypes {
|
|
|
59
59
|
* 触发方式
|
|
60
60
|
*/
|
|
61
61
|
trigger?: 'default' | 'icon' | 'manual' | '' | null
|
|
62
|
+
/**
|
|
63
|
+
* 是否启用元素挂载
|
|
64
|
+
*/
|
|
62
65
|
transfer?: boolean
|
|
66
|
+
/**
|
|
67
|
+
* 挂载到指定元素下
|
|
68
|
+
*/
|
|
69
|
+
appendTo?: string | HTMLElement | ((params: {}) => string | HTMLElement)
|
|
63
70
|
/**
|
|
64
71
|
* 每行显示出多少个图标,如果设置了 chunkWidth 则该参数无效
|
|
65
72
|
*/
|
|
@@ -33,7 +33,6 @@ export namespace VxeMenuPropTypes {
|
|
|
33
33
|
linkUrl?: string
|
|
34
34
|
linkTarget?: string
|
|
35
35
|
routerLink?: string
|
|
36
|
-
routerTarget?: string
|
|
37
36
|
}
|
|
38
37
|
|
|
39
38
|
export interface MenuOption {
|
|
@@ -79,6 +78,7 @@ export namespace VxeMenuPropTypes {
|
|
|
79
78
|
currentOption: VxeMenuPropTypes.MenuOption
|
|
80
79
|
}): boolean
|
|
81
80
|
}
|
|
81
|
+
export type AppendTo = string | HTMLElement | ((params: {}) => string | HTMLElement)
|
|
82
82
|
}
|
|
83
83
|
|
|
84
84
|
export interface VxeMenuProps {
|
|
@@ -100,6 +100,10 @@ export interface VxeMenuProps {
|
|
|
100
100
|
expandKeys?: VxeMenuPropTypes.ExpandKeys
|
|
101
101
|
options?: VxeMenuPropTypes.Options
|
|
102
102
|
menuConfig?: VxeMenuPropTypes.MenuConfig
|
|
103
|
+
/**
|
|
104
|
+
* 挂载到指定元素下
|
|
105
|
+
*/
|
|
106
|
+
appendTo?: VxeMenuPropTypes.AppendTo
|
|
103
107
|
}
|
|
104
108
|
|
|
105
109
|
export interface MenuPrivateComputed {
|
|
@@ -108,6 +108,7 @@ export namespace VxeModalPropTypes {
|
|
|
108
108
|
export type DestroyOnClose = boolean
|
|
109
109
|
export type ShowTitleOverflow = boolean
|
|
110
110
|
export type Transfer = boolean
|
|
111
|
+
export type AppendTo = string | HTMLElement | ((params: {}) => string | HTMLElement)
|
|
111
112
|
export type Storage = boolean
|
|
112
113
|
export type StorageKey = string
|
|
113
114
|
export type Animat = boolean
|
|
@@ -165,7 +166,14 @@ export interface VxeModalProps {
|
|
|
165
166
|
remember?: VxeModalPropTypes.Remember
|
|
166
167
|
destroyOnClose?: VxeModalPropTypes.DestroyOnClose
|
|
167
168
|
showTitleOverflow?: VxeModalPropTypes.ShowTitleOverflow
|
|
169
|
+
/**
|
|
170
|
+
* 是否启用元素挂载
|
|
171
|
+
*/
|
|
168
172
|
transfer?: VxeModalPropTypes.Transfer
|
|
173
|
+
/**
|
|
174
|
+
* 挂载到指定元素下
|
|
175
|
+
*/
|
|
176
|
+
appendTo?: VxeModalPropTypes.AppendTo
|
|
169
177
|
storage?: VxeModalPropTypes.Storage
|
|
170
178
|
storageKey?: VxeModalPropTypes.StorageKey
|
|
171
179
|
animat?: VxeModalPropTypes.Animat
|
|
@@ -63,7 +63,7 @@ export namespace VxePulldownPropTypes {
|
|
|
63
63
|
/**
|
|
64
64
|
* 挂载到指定元素下
|
|
65
65
|
*/
|
|
66
|
-
appendTo?: string | HTMLElement | (() => string | HTMLElement)
|
|
66
|
+
appendTo?: string | HTMLElement | ((params: {}) => string | HTMLElement)
|
|
67
67
|
width?: number | string
|
|
68
68
|
height?: number | string
|
|
69
69
|
zIndex?: number | string
|
|
@@ -159,7 +159,7 @@ export namespace VxeSelectPropTypes {
|
|
|
159
159
|
/**
|
|
160
160
|
* 挂载到指定元素下
|
|
161
161
|
*/
|
|
162
|
-
appendTo?: string | HTMLElement | (() => string | HTMLElement)
|
|
162
|
+
appendTo?: string | HTMLElement | ((params: {}) => string | HTMLElement)
|
|
163
163
|
width?: number | string
|
|
164
164
|
height?: number | string
|
|
165
165
|
zIndex?: number | string
|
|
@@ -63,7 +63,7 @@ export namespace VxeTableSelectPropTypes {
|
|
|
63
63
|
/**
|
|
64
64
|
* 挂载到指定元素下
|
|
65
65
|
*/
|
|
66
|
-
appendTo?: string | HTMLElement | (() => string | HTMLElement)
|
|
66
|
+
appendTo?: string | HTMLElement | ((params: {}) => string | HTMLElement)
|
|
67
67
|
width?: number | string
|
|
68
68
|
height?: number | string
|
|
69
69
|
zIndex?: number | string
|
|
@@ -129,7 +129,7 @@ export namespace VxeTreeSelectPropTypes {
|
|
|
129
129
|
/**
|
|
130
130
|
* 挂载到指定元素下
|
|
131
131
|
*/
|
|
132
|
-
appendTo?: string | HTMLElement | (() => string | HTMLElement)
|
|
132
|
+
appendTo?: string | HTMLElement | ((params: {}) => string | HTMLElement)
|
|
133
133
|
width?: number | string
|
|
134
134
|
height?: number | string
|
|
135
135
|
zIndex?: number | string
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|