@fecp/designer 5.4.108 → 5.4.110
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/designer/package.json.mjs +1 -1
- package/es/designer/src/packages/dialog/useDialogDialog.mjs +1 -1
- package/es/designer/src/packages/dialogGlobal/useDialogGlobalDialog.mjs +1 -1
- package/es/designer/src/packages/form/property/widgets.vue.mjs +2 -2
- package/es/designer.css +5 -5
- package/es/node_modules/vxe-table/es/grid/src/grid.mjs +1 -1
- package/es/node_modules/vxe-table/es/table/module/custom/hook.mjs +1 -1
- package/es/node_modules/vxe-table/es/table/module/custom/panel.mjs +1 -1
- package/es/node_modules/vxe-table/es/table/module/edit/hook.mjs +1 -1
- package/es/node_modules/vxe-table/es/table/module/export/export-panel.mjs +1 -1
- package/es/node_modules/vxe-table/es/table/module/export/hook.mjs +1 -1
- package/es/node_modules/vxe-table/es/table/module/export/import-panel.mjs +1 -1
- package/es/node_modules/vxe-table/es/table/module/filter/hook.mjs +1 -1
- package/es/node_modules/vxe-table/es/table/module/filter/panel.mjs +1 -1
- package/es/node_modules/vxe-table/es/table/module/keyboard/hook.mjs +1 -1
- package/es/node_modules/vxe-table/es/table/module/menu/hook.mjs +1 -1
- package/es/node_modules/vxe-table/es/table/module/menu/panel.mjs +1 -1
- package/es/node_modules/vxe-table/es/table/module/validator/hook.mjs +1 -1
- package/es/node_modules/vxe-table/es/table/render/index.mjs +1 -1
- package/es/node_modules/vxe-table/es/table/src/body.mjs +1 -1
- package/es/node_modules/vxe-table/es/table/src/cell.mjs +1 -1
- package/es/node_modules/vxe-table/es/table/src/columnInfo.mjs +1 -1
- package/es/node_modules/vxe-table/es/table/src/footer.mjs +1 -1
- package/es/node_modules/vxe-table/es/table/src/header.mjs +1 -1
- package/es/node_modules/vxe-table/es/table/src/table.mjs +1 -1
- package/es/node_modules/vxe-table/es/table/src/use/cell-view.mjs +1 -1
- package/es/node_modules/vxe-table/es/table/src/util.mjs +1 -1
- package/es/node_modules/vxe-table/es/toolbar/src/toolbar.mjs +1 -1
- package/es/node_modules/vxe-table/es/ui/src/anime.mjs +1 -1
- package/es/node_modules/vxe-table/es/ui/src/dom.mjs +1 -1
- package/es/node_modules/vxe-table/es/ui/src/utils.mjs +1 -1
- package/es/node_modules/vxe-table/es/ui/src/vn.mjs +1 -1
- package/es/packages/mobile/src/components/base/card/Card.vue.mjs +2 -2
- package/es/packages/mobile/src/components/dataDisplay/table/Table.vue.mjs +2 -1
- package/es/packages/mobile/src/components/form/field/Field.vue.mjs +0 -1
- package/es/packages/mobile/src/utils/optionUtil.mjs +2 -3
- package/es/packages/vue/src/components/forms/form/FormProxy.vue.mjs +13 -0
- package/es/packages/vue/src/components/forms/subForm/SubForm.vue.mjs +2 -2
- package/es/packages/vue/src/components/table/CustomButtons.vue.mjs +2 -1
- package/es/packages/vue/src/components/table/DynamicQuery.vue.mjs +2 -1
- package/es/packages/vue/src/components/table/Table.vue.mjs +2 -1
- package/es/packages/vue/src/components/table/TableColumn.vue.mjs +2 -1
- package/lib/designer/package.json.js +1 -1
- package/lib/designer/src/packages/dialog/useDialogDialog.js +1 -1
- package/lib/designer/src/packages/dialogGlobal/useDialogGlobalDialog.js +1 -1
- package/lib/designer/src/packages/form/property/widgets.vue.js +2 -2
- package/lib/designer.css +5 -5
- package/lib/node_modules/vxe-table/es/grid/src/grid.js +41 -41
- package/lib/node_modules/vxe-table/es/table/module/custom/hook.js +9 -9
- package/lib/node_modules/vxe-table/es/table/module/custom/panel.js +23 -23
- package/lib/node_modules/vxe-table/es/table/module/edit/hook.js +28 -28
- package/lib/node_modules/vxe-table/es/table/module/export/export-panel.js +6 -6
- package/lib/node_modules/vxe-table/es/table/module/export/hook.js +50 -50
- package/lib/node_modules/vxe-table/es/table/module/export/import-panel.js +2 -2
- package/lib/node_modules/vxe-table/es/table/module/filter/hook.js +2 -2
- package/lib/node_modules/vxe-table/es/table/module/filter/panel.js +3 -3
- package/lib/node_modules/vxe-table/es/table/module/keyboard/hook.js +6 -6
- package/lib/node_modules/vxe-table/es/table/module/menu/hook.js +7 -7
- package/lib/node_modules/vxe-table/es/table/module/menu/panel.js +9 -9
- package/lib/node_modules/vxe-table/es/table/module/validator/hook.js +26 -26
- package/lib/node_modules/vxe-table/es/table/render/index.js +65 -65
- package/lib/node_modules/vxe-table/es/table/src/body.js +10 -10
- package/lib/node_modules/vxe-table/es/table/src/cell.js +15 -15
- package/lib/node_modules/vxe-table/es/table/src/columnInfo.js +12 -12
- package/lib/node_modules/vxe-table/es/table/src/footer.js +7 -7
- package/lib/node_modules/vxe-table/es/table/src/header.js +12 -12
- package/lib/node_modules/vxe-table/es/table/src/table.js +342 -342
- package/lib/node_modules/vxe-table/es/table/src/use/cell-view.js +3 -3
- package/lib/node_modules/vxe-table/es/table/src/util.js +24 -24
- package/lib/node_modules/vxe-table/es/toolbar/src/toolbar.js +23 -23
- package/lib/node_modules/vxe-table/es/ui/src/anime.js +7 -7
- package/lib/node_modules/vxe-table/es/ui/src/dom.js +5 -5
- package/lib/node_modules/vxe-table/es/ui/src/utils.js +4 -4
- package/lib/node_modules/vxe-table/es/ui/src/vn.js +2 -2
- package/lib/packages/mobile/src/components/base/card/Card.vue.js +2 -2
- package/lib/packages/mobile/src/components/dataDisplay/table/Table.vue.js +3 -2
- package/lib/packages/mobile/src/components/form/field/Field.vue.js +0 -1
- package/lib/packages/mobile/src/utils/optionUtil.js +2 -3
- package/lib/packages/vue/src/components/forms/form/FormProxy.vue.js +13 -0
- package/lib/packages/vue/src/components/forms/subForm/SubForm.vue.js +2 -2
- package/lib/packages/vue/src/components/table/CustomButtons.vue.js +5 -4
- package/lib/packages/vue/src/components/table/DynamicQuery.vue.js +27 -26
- package/lib/packages/vue/src/components/table/Table.vue.js +5 -4
- package/lib/packages/vue/src/components/table/TableColumn.vue.js +17 -16
- package/package.json +1 -1
package/lib/designer.css
CHANGED
|
@@ -6448,6 +6448,11 @@ body,
|
|
|
6448
6448
|
}:root,:host{--van-cell-font-size: var(--van-font-size-md);--van-cell-line-height: 24px;--van-cell-vertical-padding: 10px;--van-cell-horizontal-padding: var(--van-padding-md);--van-cell-text-color: var(--van-text-color);--van-cell-background: var(--van-background-2);--van-cell-border-color: var(--van-border-color);--van-cell-active-color: var(--van-active-color);--van-cell-required-color: var(--van-danger-color);--van-cell-label-color: var(--van-text-color-2);--van-cell-label-font-size: var(--van-font-size-sm);--van-cell-label-line-height: var(--van-line-height-sm);--van-cell-label-margin-top: var(--van-padding-base);--van-cell-value-color: var(--van-text-color-2);--van-cell-value-font-size: inherit;--van-cell-icon-size: 16px;--van-cell-right-icon-color: var(--van-gray-6);--van-cell-large-vertical-padding: var(--van-padding-sm);--van-cell-large-title-font-size: var(--van-font-size-lg);--van-cell-large-label-font-size: var(--van-font-size-md);--van-cell-large-value-font-size: inherit}.van-cell{position:relative;display:flex;box-sizing:border-box;width:100%;padding:var(--van-cell-vertical-padding) var(--van-cell-horizontal-padding);overflow:hidden;color:var(--van-cell-text-color);font-size:var(--van-cell-font-size);line-height:var(--van-cell-line-height);background:var(--van-cell-background)}.van-cell:after{position:absolute;box-sizing:border-box;content:" ";pointer-events:none;right:var(--van-padding-md);bottom:0;left:var(--van-padding-md);border-bottom:1px solid var(--van-cell-border-color);transform:scaleY(.5)}.van-cell:last-child:after,.van-cell--borderless:after{display:none}.van-cell__label{margin-top:var(--van-cell-label-margin-top);color:var(--van-cell-label-color);font-size:var(--van-cell-label-font-size);line-height:var(--van-cell-label-line-height)}.van-cell__title,.van-cell__value{flex:1}.van-cell__value{position:relative;overflow:hidden;color:var(--van-cell-value-color);font-size:var(--van-cell-value-font-size);text-align:right;vertical-align:middle;word-wrap:break-word}.van-cell__left-icon,.van-cell__right-icon{height:var(--van-cell-line-height);font-size:var(--van-cell-icon-size);line-height:var(--van-cell-line-height)}.van-cell__left-icon{margin-right:var(--van-padding-base)}.van-cell__right-icon{margin-left:var(--van-padding-base);color:var(--van-cell-right-icon-color)}.van-cell--clickable{cursor:pointer}.van-cell--clickable:active{background-color:var(--van-cell-active-color)}.van-cell--required{overflow:visible}.van-cell--required:before{position:absolute;left:var(--van-padding-xs);color:var(--van-cell-required-color);font-size:var(--van-cell-font-size);content:"*"}.van-cell--center{align-items:center}.van-cell--large{padding-top:var(--van-cell-large-vertical-padding);padding-bottom:var(--van-cell-large-vertical-padding)}.van-cell--large .van-cell__title{font-size:var(--van-cell-large-title-font-size)}.van-cell--large .van-cell__label{font-size:var(--van-cell-large-label-font-size)}.van-cell--large .van-cell__value{font-size:var(--van-cell-large-value-font-size)}
|
|
6449
6449
|
:root,:host{--van-cell-group-background: var(--van-background-2);--van-cell-group-title-color: var(--van-text-color-2);--van-cell-group-title-padding: var(--van-padding-md) var(--van-padding-md);--van-cell-group-title-font-size: var(--van-font-size-md);--van-cell-group-title-line-height: 16px;--van-cell-group-inset-padding: 0 var(--van-padding-md);--van-cell-group-inset-radius: var(--van-radius-lg);--van-cell-group-inset-title-padding: var(--van-padding-md) var(--van-padding-md)}.van-cell-group{background:var(--van-cell-group-background)}.van-cell-group--inset{margin:var(--van-cell-group-inset-padding);border-radius:var(--van-cell-group-inset-radius);overflow:hidden}.van-cell-group__title{padding:var(--van-cell-group-title-padding);color:var(--van-cell-group-title-color);font-size:var(--van-cell-group-title-font-size);line-height:var(--van-cell-group-title-line-height)}.van-cell-group__title--inset{padding:var(--van-cell-group-inset-title-padding)}
|
|
6450
6450
|
.van-swipe-cell{position:relative;overflow:hidden;cursor:-webkit-grab;cursor:grab}.van-swipe-cell__wrapper{transition-timing-function:cubic-bezier(.18,.89,.32,1);transition-property:transform}.van-swipe-cell__left,.van-swipe-cell__right{position:absolute;top:0;height:100%}.van-swipe-cell__left{left:0;transform:translate3d(-100%,0,0)}.van-swipe-cell__right{right:0;transform:translate3d(100%,0,0)}
|
|
6451
|
+
:root,:host{--van-action-bar-background: var(--van-background-2);--van-action-bar-height: 50px}.van-action-bar{position:fixed;right:0;bottom:0;left:0;display:flex;align-items:center;box-sizing:content-box;height:var(--van-action-bar-height);background:var(--van-action-bar-background)}
|
|
6452
|
+
:root,:host{--van-action-bar-button-height: 40px;--van-action-bar-button-warning-color: var(--van-gradient-orange);--van-action-bar-button-danger-color: var(--van-gradient-red)}.van-action-bar-button{flex:1;height:var(--van-action-bar-button-height);font-weight:var(--van-font-bold);font-size:var(--van-font-size-md);border:none;border-radius:0}.van-action-bar-button--first{margin-left:5px;border-top-left-radius:var(--van-radius-max);border-bottom-left-radius:var(--van-radius-max)}.van-action-bar-button--last{margin-right:5px;border-top-right-radius:var(--van-radius-max);border-bottom-right-radius:var(--van-radius-max)}.van-action-bar-button--warning{background:var(--van-action-bar-button-warning-color)}.van-action-bar-button--danger{background:var(--van-action-bar-button-danger-color)}@media(max-width:321px){.van-action-bar-button{font-size:13px}}
|
|
6453
|
+
:root,:host{--van-overlay-z-index: 1;--van-overlay-background: rgba(0, 0, 0, .7)}.van-overlay{position:fixed;top:0;left:0;z-index:var(--van-overlay-z-index);width:100%;height:100%;background:var(--van-overlay-background)}
|
|
6454
|
+
:root,:host{--van-popup-background: var(--van-background-2);--van-popup-transition: transform var(--van-duration-base);--van-popup-round-radius: 16px;--van-popup-close-icon-size: 22px;--van-popup-close-icon-color: var(--van-gray-5);--van-popup-close-icon-margin: 16px;--van-popup-close-icon-z-index: 1}.van-overflow-hidden{overflow:hidden!important}.van-popup{position:fixed;max-height:100%;overflow-y:auto;box-sizing:border-box;background:var(--van-popup-background);transition:var(--van-popup-transition);-webkit-overflow-scrolling:touch}.van-popup--center{top:50%;left:0;right:0;width:-webkit-fit-content;width:fit-content;max-width:calc(100vw - var(--van-padding-md) * 2);margin:0 auto;transform:translateY(-50%)}.van-popup--center.van-popup--round{border-radius:var(--van-popup-round-radius)}.van-popup--top{top:0;left:0;width:100%}.van-popup--top.van-popup--round{border-radius:0 0 var(--van-popup-round-radius) var(--van-popup-round-radius)}.van-popup--right{top:50%;right:0;transform:translate3d(0,-50%,0)}.van-popup--right.van-popup--round{border-radius:var(--van-popup-round-radius) 0 0 var(--van-popup-round-radius)}.van-popup--bottom{bottom:0;left:0;width:100%}.van-popup--bottom.van-popup--round{border-radius:var(--van-popup-round-radius) var(--van-popup-round-radius) 0 0}.van-popup--left{top:50%;left:0;transform:translate3d(0,-50%,0)}.van-popup--left.van-popup--round{border-radius:0 var(--van-popup-round-radius) var(--van-popup-round-radius) 0}.van-popup-slide-top-enter-active,.van-popup-slide-left-enter-active,.van-popup-slide-right-enter-active,.van-popup-slide-bottom-enter-active{transition-timing-function:var(--van-ease-out)}.van-popup-slide-top-leave-active,.van-popup-slide-left-leave-active,.van-popup-slide-right-leave-active,.van-popup-slide-bottom-leave-active{transition-timing-function:var(--van-ease-in)}.van-popup-slide-top-enter-from,.van-popup-slide-top-leave-active{transform:translate3d(0,-100%,0)}.van-popup-slide-right-enter-from,.van-popup-slide-right-leave-active{transform:translate3d(100%,-50%,0)}.van-popup-slide-bottom-enter-from,.van-popup-slide-bottom-leave-active{transform:translate3d(0,100%,0)}.van-popup-slide-left-enter-from,.van-popup-slide-left-leave-active{transform:translate3d(-100%,-50%,0)}.van-popup__close-icon{position:absolute;z-index:var(--van-popup-close-icon-z-index);color:var(--van-popup-close-icon-color);font-size:var(--van-popup-close-icon-size)}.van-popup__close-icon--top-left{top:var(--van-popup-close-icon-margin);left:var(--van-popup-close-icon-margin)}.van-popup__close-icon--top-right{top:var(--van-popup-close-icon-margin);right:var(--van-popup-close-icon-margin)}.van-popup__close-icon--bottom-left{bottom:var(--van-popup-close-icon-margin);left:var(--van-popup-close-icon-margin)}.van-popup__close-icon--bottom-right{right:var(--van-popup-close-icon-margin);bottom:var(--van-popup-close-icon-margin)}
|
|
6455
|
+
:root,:host{--van-dialog-width: 320px;--van-dialog-small-screen-width: 90%;--van-dialog-font-size: var(--van-font-size-lg);--van-dialog-transition: var(--van-duration-base);--van-dialog-radius: 16px;--van-dialog-background: var(--van-background-2);--van-dialog-header-font-weight: var(--van-font-bold);--van-dialog-header-line-height: 24px;--van-dialog-header-padding-top: 26px;--van-dialog-header-isolated-padding: var(--van-padding-lg) 0;--van-dialog-message-padding: var(--van-padding-lg);--van-dialog-message-font-size: var(--van-font-size-md);--van-dialog-message-line-height: var(--van-line-height-md);--van-dialog-message-max-height: 60vh;--van-dialog-has-title-message-text-color: var(--van-gray-7);--van-dialog-has-title-message-padding-top: var(--van-padding-xs);--van-dialog-button-height: 48px;--van-dialog-round-button-height: 36px;--van-dialog-confirm-button-text-color: var(--van-primary-color)}.van-dialog{top:45%;width:var(--van-dialog-width);overflow:hidden;font-size:var(--van-dialog-font-size);background:var(--van-dialog-background);border-radius:var(--van-dialog-radius);-webkit-backface-visibility:hidden;backface-visibility:hidden;transition:var(--van-dialog-transition);transition-property:transform,opacity}@media(max-width:321px){.van-dialog{width:var(--van-dialog-small-screen-width)}}.van-dialog__header{color:var(--van-text-color);padding-top:var(--van-dialog-header-padding-top);font-weight:var(--van-dialog-header-font-weight);line-height:var(--van-dialog-header-line-height);text-align:center}.van-dialog__header--isolated{padding:var(--van-dialog-header-isolated-padding)}.van-dialog__content--isolated{display:flex;align-items:center;min-height:104px}.van-dialog__message{color:var(--van-text-color);flex:1;max-height:var(--van-dialog-message-max-height);padding:26px var(--van-dialog-message-padding);overflow-y:auto;font-size:var(--van-dialog-message-font-size);line-height:var(--van-dialog-message-line-height);white-space:pre-wrap;text-align:center;word-wrap:break-word;-webkit-overflow-scrolling:touch}.van-dialog__message--has-title{padding-top:var(--van-dialog-has-title-message-padding-top);color:var(--van-dialog-has-title-message-text-color)}.van-dialog__message--left{text-align:left}.van-dialog__message--right{text-align:right}.van-dialog__message--justify{text-align:justify}.van-dialog__footer{display:flex;overflow:hidden;-webkit-user-select:none;user-select:none}.van-dialog__confirm,.van-dialog__cancel{flex:1;height:var(--van-dialog-button-height);margin:0;border:0;border-radius:0}.van-dialog__confirm,.van-dialog__confirm:active{color:var(--van-dialog-confirm-button-text-color)}.van-dialog--round-button .van-dialog__footer{position:relative;height:auto;padding:var(--van-padding-xs) var(--van-padding-lg) var(--van-padding-md)}.van-dialog--round-button .van-dialog__message{padding-bottom:var(--van-padding-md);color:var(--van-text-color)}.van-dialog--round-button .van-dialog__confirm,.van-dialog--round-button .van-dialog__cancel{height:var(--van-dialog-round-button-height)}.van-dialog--round-button .van-dialog__confirm{color:var(--van-white)}.van-dialog--round-button .van-action-bar-button--first{border-top-left-radius:var(--van-radius-max);border-bottom-left-radius:var(--van-radius-max)}.van-dialog--round-button .van-action-bar-button--last{border-top-right-radius:var(--van-radius-max);border-bottom-right-radius:var(--van-radius-max)}.van-dialog-bounce-enter-from{transform:translate3d(0,-50%,0) scale(.7);opacity:0}.van-dialog-bounce-leave-active{transform:translate3d(0,-50%,0) scale(.9);opacity:0}
|
|
6451
6456
|
|
|
6452
6457
|
.fec-card[data-v-dc24b95f] {
|
|
6453
6458
|
margin: 12px;
|
|
@@ -6456,11 +6461,6 @@ body,
|
|
|
6456
6461
|
.fec-swipe-delete-button[data-v-dc24b95f] {
|
|
6457
6462
|
height: 100%;
|
|
6458
6463
|
}
|
|
6459
|
-
:root,:host{--van-action-bar-background: var(--van-background-2);--van-action-bar-height: 50px}.van-action-bar{position:fixed;right:0;bottom:0;left:0;display:flex;align-items:center;box-sizing:content-box;height:var(--van-action-bar-height);background:var(--van-action-bar-background)}
|
|
6460
|
-
:root,:host{--van-action-bar-button-height: 40px;--van-action-bar-button-warning-color: var(--van-gradient-orange);--van-action-bar-button-danger-color: var(--van-gradient-red)}.van-action-bar-button{flex:1;height:var(--van-action-bar-button-height);font-weight:var(--van-font-bold);font-size:var(--van-font-size-md);border:none;border-radius:0}.van-action-bar-button--first{margin-left:5px;border-top-left-radius:var(--van-radius-max);border-bottom-left-radius:var(--van-radius-max)}.van-action-bar-button--last{margin-right:5px;border-top-right-radius:var(--van-radius-max);border-bottom-right-radius:var(--van-radius-max)}.van-action-bar-button--warning{background:var(--van-action-bar-button-warning-color)}.van-action-bar-button--danger{background:var(--van-action-bar-button-danger-color)}@media(max-width:321px){.van-action-bar-button{font-size:13px}}
|
|
6461
|
-
:root,:host{--van-overlay-z-index: 1;--van-overlay-background: rgba(0, 0, 0, .7)}.van-overlay{position:fixed;top:0;left:0;z-index:var(--van-overlay-z-index);width:100%;height:100%;background:var(--van-overlay-background)}
|
|
6462
|
-
:root,:host{--van-popup-background: var(--van-background-2);--van-popup-transition: transform var(--van-duration-base);--van-popup-round-radius: 16px;--van-popup-close-icon-size: 22px;--van-popup-close-icon-color: var(--van-gray-5);--van-popup-close-icon-margin: 16px;--van-popup-close-icon-z-index: 1}.van-overflow-hidden{overflow:hidden!important}.van-popup{position:fixed;max-height:100%;overflow-y:auto;box-sizing:border-box;background:var(--van-popup-background);transition:var(--van-popup-transition);-webkit-overflow-scrolling:touch}.van-popup--center{top:50%;left:0;right:0;width:-webkit-fit-content;width:fit-content;max-width:calc(100vw - var(--van-padding-md) * 2);margin:0 auto;transform:translateY(-50%)}.van-popup--center.van-popup--round{border-radius:var(--van-popup-round-radius)}.van-popup--top{top:0;left:0;width:100%}.van-popup--top.van-popup--round{border-radius:0 0 var(--van-popup-round-radius) var(--van-popup-round-radius)}.van-popup--right{top:50%;right:0;transform:translate3d(0,-50%,0)}.van-popup--right.van-popup--round{border-radius:var(--van-popup-round-radius) 0 0 var(--van-popup-round-radius)}.van-popup--bottom{bottom:0;left:0;width:100%}.van-popup--bottom.van-popup--round{border-radius:var(--van-popup-round-radius) var(--van-popup-round-radius) 0 0}.van-popup--left{top:50%;left:0;transform:translate3d(0,-50%,0)}.van-popup--left.van-popup--round{border-radius:0 var(--van-popup-round-radius) var(--van-popup-round-radius) 0}.van-popup-slide-top-enter-active,.van-popup-slide-left-enter-active,.van-popup-slide-right-enter-active,.van-popup-slide-bottom-enter-active{transition-timing-function:var(--van-ease-out)}.van-popup-slide-top-leave-active,.van-popup-slide-left-leave-active,.van-popup-slide-right-leave-active,.van-popup-slide-bottom-leave-active{transition-timing-function:var(--van-ease-in)}.van-popup-slide-top-enter-from,.van-popup-slide-top-leave-active{transform:translate3d(0,-100%,0)}.van-popup-slide-right-enter-from,.van-popup-slide-right-leave-active{transform:translate3d(100%,-50%,0)}.van-popup-slide-bottom-enter-from,.van-popup-slide-bottom-leave-active{transform:translate3d(0,100%,0)}.van-popup-slide-left-enter-from,.van-popup-slide-left-leave-active{transform:translate3d(-100%,-50%,0)}.van-popup__close-icon{position:absolute;z-index:var(--van-popup-close-icon-z-index);color:var(--van-popup-close-icon-color);font-size:var(--van-popup-close-icon-size)}.van-popup__close-icon--top-left{top:var(--van-popup-close-icon-margin);left:var(--van-popup-close-icon-margin)}.van-popup__close-icon--top-right{top:var(--van-popup-close-icon-margin);right:var(--van-popup-close-icon-margin)}.van-popup__close-icon--bottom-left{bottom:var(--van-popup-close-icon-margin);left:var(--van-popup-close-icon-margin)}.van-popup__close-icon--bottom-right{right:var(--van-popup-close-icon-margin);bottom:var(--van-popup-close-icon-margin)}
|
|
6463
|
-
:root,:host{--van-dialog-width: 320px;--van-dialog-small-screen-width: 90%;--van-dialog-font-size: var(--van-font-size-lg);--van-dialog-transition: var(--van-duration-base);--van-dialog-radius: 16px;--van-dialog-background: var(--van-background-2);--van-dialog-header-font-weight: var(--van-font-bold);--van-dialog-header-line-height: 24px;--van-dialog-header-padding-top: 26px;--van-dialog-header-isolated-padding: var(--van-padding-lg) 0;--van-dialog-message-padding: var(--van-padding-lg);--van-dialog-message-font-size: var(--van-font-size-md);--van-dialog-message-line-height: var(--van-line-height-md);--van-dialog-message-max-height: 60vh;--van-dialog-has-title-message-text-color: var(--van-gray-7);--van-dialog-has-title-message-padding-top: var(--van-padding-xs);--van-dialog-button-height: 48px;--van-dialog-round-button-height: 36px;--van-dialog-confirm-button-text-color: var(--van-primary-color)}.van-dialog{top:45%;width:var(--van-dialog-width);overflow:hidden;font-size:var(--van-dialog-font-size);background:var(--van-dialog-background);border-radius:var(--van-dialog-radius);-webkit-backface-visibility:hidden;backface-visibility:hidden;transition:var(--van-dialog-transition);transition-property:transform,opacity}@media(max-width:321px){.van-dialog{width:var(--van-dialog-small-screen-width)}}.van-dialog__header{color:var(--van-text-color);padding-top:var(--van-dialog-header-padding-top);font-weight:var(--van-dialog-header-font-weight);line-height:var(--van-dialog-header-line-height);text-align:center}.van-dialog__header--isolated{padding:var(--van-dialog-header-isolated-padding)}.van-dialog__content--isolated{display:flex;align-items:center;min-height:104px}.van-dialog__message{color:var(--van-text-color);flex:1;max-height:var(--van-dialog-message-max-height);padding:26px var(--van-dialog-message-padding);overflow-y:auto;font-size:var(--van-dialog-message-font-size);line-height:var(--van-dialog-message-line-height);white-space:pre-wrap;text-align:center;word-wrap:break-word;-webkit-overflow-scrolling:touch}.van-dialog__message--has-title{padding-top:var(--van-dialog-has-title-message-padding-top);color:var(--van-dialog-has-title-message-text-color)}.van-dialog__message--left{text-align:left}.van-dialog__message--right{text-align:right}.van-dialog__message--justify{text-align:justify}.van-dialog__footer{display:flex;overflow:hidden;-webkit-user-select:none;user-select:none}.van-dialog__confirm,.van-dialog__cancel{flex:1;height:var(--van-dialog-button-height);margin:0;border:0;border-radius:0}.van-dialog__confirm,.van-dialog__confirm:active{color:var(--van-dialog-confirm-button-text-color)}.van-dialog--round-button .van-dialog__footer{position:relative;height:auto;padding:var(--van-padding-xs) var(--van-padding-lg) var(--van-padding-md)}.van-dialog--round-button .van-dialog__message{padding-bottom:var(--van-padding-md);color:var(--van-text-color)}.van-dialog--round-button .van-dialog__confirm,.van-dialog--round-button .van-dialog__cancel{height:var(--van-dialog-round-button-height)}.van-dialog--round-button .van-dialog__confirm{color:var(--van-white)}.van-dialog--round-button .van-action-bar-button--first{border-top-left-radius:var(--van-radius-max);border-bottom-left-radius:var(--van-radius-max)}.van-dialog--round-button .van-action-bar-button--last{border-top-right-radius:var(--van-radius-max);border-bottom-right-radius:var(--van-radius-max)}.van-dialog-bounce-enter-from{transform:translate3d(0,-50%,0) scale(.7);opacity:0}.van-dialog-bounce-leave-active{transform:translate3d(0,-50%,0) scale(.9);opacity:0}
|
|
6464
6464
|
:root,:host{--van-image-placeholder-text-color: var(--van-text-color-2);--van-image-placeholder-font-size: var(--van-font-size-md);--van-image-placeholder-background: var(--van-background);--van-image-loading-icon-size: 32px;--van-image-loading-icon-color: var(--van-gray-4);--van-image-error-icon-size: 32px;--van-image-error-icon-color: var(--van-gray-4)}.van-image{position:relative;display:inline-block}.van-image--round{overflow:hidden;border-radius:var(--van-radius-max)}.van-image--round .van-image__img{border-radius:inherit}.van-image--block{display:block}.van-image__img,.van-image__error,.van-image__loading{display:block;width:100%;height:100%}.van-image__error,.van-image__loading{position:absolute;top:0;left:0;display:flex;flex-direction:column;align-items:center;justify-content:center;color:var(--van-image-placeholder-text-color);font-size:var(--van-image-placeholder-font-size);background:var(--van-image-placeholder-background)}.van-image__loading-icon{color:var(--van-image-loading-icon-color);font-size:var(--van-image-loading-icon-size)}.van-image__error-icon{color:var(--van-image-error-icon-color);font-size:var(--van-image-error-icon-size)}
|
|
6465
6465
|
|
|
6466
6466
|
.fec-collapse-container[data-v-6037566c] {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
3
|
const vue = require("vue");
|
|
4
4
|
const comp = require("../../ui/src/comp.js");
|
|
5
|
-
const
|
|
5
|
+
const XEUtils = require("xe-utils");
|
|
6
6
|
const utils = require("../../ui/src/utils.js");
|
|
7
7
|
const dom = require("../../ui/src/dom.js");
|
|
8
8
|
require("../../ui/index.js");
|
|
@@ -30,7 +30,7 @@ const VxeGridComponent = comp.defineVxeComponent({
|
|
|
30
30
|
setup(props2, context) {
|
|
31
31
|
var _a;
|
|
32
32
|
const { slots, emit } = context;
|
|
33
|
-
const xID =
|
|
33
|
+
const xID = XEUtils.uniqueId();
|
|
34
34
|
const VxeUIFormComponent = index_esm.VxeUI.getComponent("VxeForm");
|
|
35
35
|
const VxeUIPagerComponent = index_esm.VxeUI.getComponent("VxePager");
|
|
36
36
|
const defaultLayouts = [["Form"], ["Toolbar", "Top", "Table", "Bottom", "Pager"]];
|
|
@@ -85,15 +85,15 @@ const VxeGridComponent = comp.defineVxeComponent({
|
|
|
85
85
|
};
|
|
86
86
|
});
|
|
87
87
|
const computeProxyOpts = vue.computed(() => {
|
|
88
|
-
return
|
|
88
|
+
return XEUtils.merge({}, XEUtils.clone(getConfig().grid.proxyConfig, true), props2.proxyConfig);
|
|
89
89
|
});
|
|
90
90
|
const computeIsRespMsg = vue.computed(() => {
|
|
91
91
|
const proxyOpts = computeProxyOpts.value;
|
|
92
|
-
return !!(
|
|
92
|
+
return !!(XEUtils.isBoolean(proxyOpts.message) ? proxyOpts.message : proxyOpts.showResponseMsg);
|
|
93
93
|
});
|
|
94
94
|
const computeIsActiveMsg = vue.computed(() => {
|
|
95
95
|
const proxyOpts = computeProxyOpts.value;
|
|
96
|
-
return
|
|
96
|
+
return XEUtils.isBoolean(proxyOpts.showActionMsg) ? proxyOpts.showActionMsg : !!proxyOpts.showActiveMsg;
|
|
97
97
|
});
|
|
98
98
|
const computePagerOpts = vue.computed(() => {
|
|
99
99
|
return Object.assign({}, getConfig().grid.pagerConfig, props2.pagerConfig);
|
|
@@ -175,7 +175,7 @@ const VxeGridComponent = comp.defineVxeComponent({
|
|
|
175
175
|
let bodyKeys = [];
|
|
176
176
|
let footKeys = [];
|
|
177
177
|
if (confs.length) {
|
|
178
|
-
if (
|
|
178
|
+
if (XEUtils.isArray(confs[0])) {
|
|
179
179
|
headKeys = confs[0];
|
|
180
180
|
bodyKeys = confs[1] || [];
|
|
181
181
|
footKeys = confs[2] || [];
|
|
@@ -262,7 +262,7 @@ const VxeGridComponent = comp.defineVxeComponent({
|
|
|
262
262
|
if (pagerConfig && utils.isEnableConf(pagerOpts)) {
|
|
263
263
|
if (propKey) {
|
|
264
264
|
if (pagerOpts[propKey]) {
|
|
265
|
-
tablePage[propKey] =
|
|
265
|
+
tablePage[propKey] = XEUtils.toNumber(pagerOpts[propKey]);
|
|
266
266
|
}
|
|
267
267
|
} else {
|
|
268
268
|
const { currentPage, pageSize, total } = pagerOpts;
|
|
@@ -302,7 +302,7 @@ const VxeGridComponent = comp.defineVxeComponent({
|
|
|
302
302
|
const $xeTable = refTable.value;
|
|
303
303
|
let msg;
|
|
304
304
|
if (rest && messageProp) {
|
|
305
|
-
msg =
|
|
305
|
+
msg = XEUtils.isFunction(messageProp) ? messageProp({ data: rest, $table: $xeTable, $grid: $xeGrid, $gantt: null }) : XEUtils.get(rest, messageProp);
|
|
306
306
|
}
|
|
307
307
|
return msg || getI18n(defaultMsg);
|
|
308
308
|
};
|
|
@@ -459,7 +459,7 @@ const VxeGridComponent = comp.defineVxeComponent({
|
|
|
459
459
|
const getFuncSlot = (optSlots, slotKey) => {
|
|
460
460
|
const funcSlot = optSlots[slotKey];
|
|
461
461
|
if (funcSlot) {
|
|
462
|
-
if (
|
|
462
|
+
if (XEUtils.isString(funcSlot)) {
|
|
463
463
|
if (slots[funcSlot]) {
|
|
464
464
|
return slots[funcSlot];
|
|
465
465
|
} else {
|
|
@@ -473,9 +473,9 @@ const VxeGridComponent = comp.defineVxeComponent({
|
|
|
473
473
|
};
|
|
474
474
|
const getConfigSlot = (slotConfigs) => {
|
|
475
475
|
const slotConf = {};
|
|
476
|
-
|
|
476
|
+
XEUtils.objectMap(slotConfigs, (slotFunc, slotKey) => {
|
|
477
477
|
if (slotFunc) {
|
|
478
|
-
if (
|
|
478
|
+
if (XEUtils.isString(slotFunc)) {
|
|
479
479
|
if (slots[slotFunc]) {
|
|
480
480
|
slotConf[slotKey] = slots[slotFunc];
|
|
481
481
|
} else {
|
|
@@ -510,8 +510,8 @@ const VxeGridComponent = comp.defineVxeComponent({
|
|
|
510
510
|
}
|
|
511
511
|
}
|
|
512
512
|
formOpts.items.forEach((item) => {
|
|
513
|
-
|
|
514
|
-
if (!
|
|
513
|
+
XEUtils.each(item.slots, (func) => {
|
|
514
|
+
if (!XEUtils.isFunction(func)) {
|
|
515
515
|
if (slots[func]) {
|
|
516
516
|
formSlots[func] = slots[func];
|
|
517
517
|
}
|
|
@@ -753,7 +753,7 @@ const VxeGridComponent = comp.defineVxeComponent({
|
|
|
753
753
|
};
|
|
754
754
|
const tableCompEvents = {};
|
|
755
755
|
emits$1.tableEmits.forEach((name) => {
|
|
756
|
-
const type =
|
|
756
|
+
const type = XEUtils.camelCase(`on-${name}`);
|
|
757
757
|
tableCompEvents[type] = (...args) => emit(name, ...args);
|
|
758
758
|
});
|
|
759
759
|
const getDefaultFormData = () => {
|
|
@@ -766,14 +766,14 @@ const VxeGridComponent = comp.defineVxeComponent({
|
|
|
766
766
|
let itemValue = null;
|
|
767
767
|
if (itemRender) {
|
|
768
768
|
const { startField, endField, defaultValue } = itemRender;
|
|
769
|
-
if (
|
|
769
|
+
if (XEUtils.isFunction(defaultValue)) {
|
|
770
770
|
itemValue = defaultValue({ item });
|
|
771
|
-
} else if (!
|
|
771
|
+
} else if (!XEUtils.isUndefined(defaultValue)) {
|
|
772
772
|
itemValue = defaultValue;
|
|
773
773
|
}
|
|
774
774
|
if (startField && endField) {
|
|
775
|
-
|
|
776
|
-
|
|
775
|
+
XEUtils.set(fData, startField, null);
|
|
776
|
+
XEUtils.set(fData, endField, null);
|
|
777
777
|
}
|
|
778
778
|
}
|
|
779
779
|
fData[field] = itemValue;
|
|
@@ -851,9 +851,9 @@ const VxeGridComponent = comp.defineVxeComponent({
|
|
|
851
851
|
let formData = getFormData();
|
|
852
852
|
let button = null;
|
|
853
853
|
let code = null;
|
|
854
|
-
if (
|
|
854
|
+
if (XEUtils.isString(proxyTarget)) {
|
|
855
855
|
const { buttons } = toolbarOpts;
|
|
856
|
-
const matchObj = toolbarConfig && utils.isEnableConf(toolbarOpts) && buttons ?
|
|
856
|
+
const matchObj = toolbarConfig && utils.isEnableConf(toolbarOpts) && buttons ? XEUtils.findTree(buttons, (item) => item.code === proxyTarget, { children: "dropdowns" }) : null;
|
|
857
857
|
button = matchObj ? matchObj.item : null;
|
|
858
858
|
code = proxyTarget;
|
|
859
859
|
} else {
|
|
@@ -928,7 +928,7 @@ const VxeGridComponent = comp.defineVxeComponent({
|
|
|
928
928
|
column.order = null;
|
|
929
929
|
});
|
|
930
930
|
if (defaultSort) {
|
|
931
|
-
if (!
|
|
931
|
+
if (!XEUtils.isArray(defaultSort)) {
|
|
932
932
|
defaultSort = [defaultSort];
|
|
933
933
|
}
|
|
934
934
|
sortList = defaultSort.map((item) => {
|
|
@@ -987,26 +987,26 @@ const VxeGridComponent = comp.defineVxeComponent({
|
|
|
987
987
|
const reParams = { data: rest, $table: $xeTable, $grid: $xeGrid, $gantt: null };
|
|
988
988
|
if (pagerConfig && utils.isEnableConf(pagerOpts)) {
|
|
989
989
|
const totalProp = resConfigs.total;
|
|
990
|
-
const total = (
|
|
991
|
-
tablePage.total =
|
|
990
|
+
const total = (XEUtils.isFunction(totalProp) ? totalProp(reParams) : XEUtils.get(rest, totalProp || "page.total")) || 0;
|
|
991
|
+
tablePage.total = XEUtils.toNumber(total);
|
|
992
992
|
const resultProp = resConfigs.result;
|
|
993
|
-
tableData = (
|
|
993
|
+
tableData = (XEUtils.isFunction(resultProp) ? resultProp(reParams) : XEUtils.get(rest, resultProp || "result")) || [];
|
|
994
994
|
const pageCount = Math.max(Math.ceil(total / tablePage.pageSize), 1);
|
|
995
995
|
if (tablePage.currentPage > pageCount) {
|
|
996
996
|
tablePage.currentPage = pageCount;
|
|
997
997
|
}
|
|
998
998
|
} else {
|
|
999
999
|
const listProp = resConfigs.list;
|
|
1000
|
-
if (
|
|
1000
|
+
if (XEUtils.isArray(rest)) {
|
|
1001
1001
|
tableData = rest;
|
|
1002
1002
|
} else if (listProp) {
|
|
1003
|
-
tableData = (
|
|
1003
|
+
tableData = (XEUtils.isFunction(listProp) ? listProp(reParams) : XEUtils.get(rest, listProp)) || [];
|
|
1004
1004
|
}
|
|
1005
1005
|
}
|
|
1006
1006
|
if (showFooter) {
|
|
1007
1007
|
const fdProp = resConfigs.footerData;
|
|
1008
|
-
const footerList = fdProp ?
|
|
1009
|
-
if (
|
|
1008
|
+
const footerList = fdProp ? XEUtils.isFunction(fdProp) ? fdProp(reParams) : XEUtils.get(rest, fdProp) : [];
|
|
1009
|
+
if (XEUtils.isArray(footerList)) {
|
|
1010
1010
|
reactData.footerData = footerList;
|
|
1011
1011
|
}
|
|
1012
1012
|
}
|
|
@@ -1060,7 +1060,7 @@ const VxeGridComponent = comp.defineVxeComponent({
|
|
|
1060
1060
|
options: qfMethods
|
|
1061
1061
|
};
|
|
1062
1062
|
return Promise.resolve((beforeQueryFooter || qfMethods)(commitParams, ...args)).then((rest) => {
|
|
1063
|
-
reactData.footerData =
|
|
1063
|
+
reactData.footerData = XEUtils.isArray(rest) ? rest : [];
|
|
1064
1064
|
if (afterQueryFooter) {
|
|
1065
1065
|
afterQueryFooter(commitParams, ...args);
|
|
1066
1066
|
}
|
|
@@ -1264,10 +1264,10 @@ const VxeGridComponent = comp.defineVxeComponent({
|
|
|
1264
1264
|
const { formConfig } = props2;
|
|
1265
1265
|
const { items } = formOpts;
|
|
1266
1266
|
const itemList = [];
|
|
1267
|
-
|
|
1267
|
+
XEUtils.eachTree(formConfig && utils.isEnableConf(formOpts) && items ? items : [], (item) => {
|
|
1268
1268
|
itemList.push(item);
|
|
1269
1269
|
}, { children: "children" });
|
|
1270
|
-
return
|
|
1270
|
+
return XEUtils.isUndefined(itemIndex) ? itemList : itemList[itemIndex];
|
|
1271
1271
|
},
|
|
1272
1272
|
resetForm() {
|
|
1273
1273
|
const $form = refForm.value;
|
|
@@ -1327,7 +1327,7 @@ const VxeGridComponent = comp.defineVxeComponent({
|
|
|
1327
1327
|
setCurrentPage(currentPage) {
|
|
1328
1328
|
const { tablePage } = reactData;
|
|
1329
1329
|
const pageCount = computePageCount.value;
|
|
1330
|
-
tablePage.currentPage = Math.min(pageCount, Math.max(1,
|
|
1330
|
+
tablePage.currentPage = Math.min(pageCount, Math.max(1, XEUtils.toNumber(currentPage)));
|
|
1331
1331
|
return vue.nextTick();
|
|
1332
1332
|
},
|
|
1333
1333
|
setCurrentPageByEvent(evnt, currentPage) {
|
|
@@ -1342,7 +1342,7 @@ const VxeGridComponent = comp.defineVxeComponent({
|
|
|
1342
1342
|
},
|
|
1343
1343
|
setPageSize(pageSize) {
|
|
1344
1344
|
const { tablePage } = reactData;
|
|
1345
|
-
tablePage.pageSize = Math.max(1,
|
|
1345
|
+
tablePage.pageSize = Math.max(1, XEUtils.toNumber(pageSize));
|
|
1346
1346
|
return vue.nextTick();
|
|
1347
1347
|
},
|
|
1348
1348
|
setPageSizeByEvent(evnt, pageSize) {
|
|
@@ -1390,10 +1390,10 @@ const VxeGridComponent = comp.defineVxeComponent({
|
|
|
1390
1390
|
extendTableMethods,
|
|
1391
1391
|
callSlot(slotFunc, params) {
|
|
1392
1392
|
if (slotFunc) {
|
|
1393
|
-
if (
|
|
1393
|
+
if (XEUtils.isString(slotFunc)) {
|
|
1394
1394
|
slotFunc = slots[slotFunc] || null;
|
|
1395
1395
|
}
|
|
1396
|
-
if (
|
|
1396
|
+
if (XEUtils.isFunction(slotFunc)) {
|
|
1397
1397
|
return vn.getSlotVNs(slotFunc(params));
|
|
1398
1398
|
}
|
|
1399
1399
|
}
|
|
@@ -1425,7 +1425,7 @@ const VxeGridComponent = comp.defineVxeComponent({
|
|
|
1425
1425
|
const el = refElem.value;
|
|
1426
1426
|
if (el) {
|
|
1427
1427
|
const parentEl = el.parentElement;
|
|
1428
|
-
return (reactData.isZMax ? dom.getDomNode().visibleHeight : parentEl ?
|
|
1428
|
+
return (reactData.isZMax ? dom.getDomNode().visibleHeight : parentEl ? XEUtils.toNumber(getComputedStyle(parentEl).height) : 0) - gridPrivateMethods.getExcludeHeight();
|
|
1429
1429
|
}
|
|
1430
1430
|
return 0;
|
|
1431
1431
|
},
|
|
@@ -1466,10 +1466,10 @@ const VxeGridComponent = comp.defineVxeComponent({
|
|
|
1466
1466
|
// 检查插槽
|
|
1467
1467
|
loadColumn(columns) {
|
|
1468
1468
|
const $xeTable = refTable.value;
|
|
1469
|
-
|
|
1469
|
+
XEUtils.eachTree(columns, (column) => {
|
|
1470
1470
|
if (column.slots) {
|
|
1471
|
-
|
|
1472
|
-
if (!
|
|
1471
|
+
XEUtils.each(column.slots, (func) => {
|
|
1472
|
+
if (!XEUtils.isFunction(func)) {
|
|
1473
1473
|
if (!slots[func]) {
|
|
1474
1474
|
log.errLog("vxe.error.notSlot", [`[grid] ${func}`]);
|
|
1475
1475
|
}
|
|
@@ -1532,7 +1532,7 @@ const VxeGridComponent = comp.defineVxeComponent({
|
|
|
1532
1532
|
const { setupGrid } = options;
|
|
1533
1533
|
if (setupGrid) {
|
|
1534
1534
|
const hookRest = setupGrid($xeGrid);
|
|
1535
|
-
if (hookRest &&
|
|
1535
|
+
if (hookRest && XEUtils.isObject(hookRest)) {
|
|
1536
1536
|
Object.assign($xeGrid, hookRest);
|
|
1537
1537
|
}
|
|
1538
1538
|
}
|
|
@@ -1565,7 +1565,7 @@ const VxeGridComponent = comp.defineVxeComponent({
|
|
|
1565
1565
|
});
|
|
1566
1566
|
vue.onUnmounted(() => {
|
|
1567
1567
|
globalEvents.off($xeGrid, "keydown");
|
|
1568
|
-
|
|
1568
|
+
XEUtils.assign(internalData, createInternalData());
|
|
1569
1569
|
});
|
|
1570
1570
|
$xeGrid.renderVN = renderVN;
|
|
1571
1571
|
vue.provide("$xeGrid", $xeGrid);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
const vue = require("vue");
|
|
3
3
|
require("../../../ui/index.js");
|
|
4
|
-
const
|
|
4
|
+
const XEUtils = require("xe-utils");
|
|
5
5
|
const util = require("../../src/util.js");
|
|
6
6
|
const index_esm = require("../../../../../@vxe-ui/core/es/index.esm.js");
|
|
7
7
|
const tableCustomMethodKeys = ["openCustom", "closeCustom", "getCustomVisible", "toggleCustom", "saveCustom", "cancelCustom", "resetCustom", "toggleCustomAllCheckbox", "setCustomAllCheckbox"];
|
|
@@ -43,7 +43,7 @@ index_esm.VxeUI.hooks.add("tableCustomModule", {
|
|
|
43
43
|
const sortMaps = {};
|
|
44
44
|
const fixedMaps = {};
|
|
45
45
|
const visibleMaps = {};
|
|
46
|
-
|
|
46
|
+
XEUtils.eachTree(collectColumn, (column) => {
|
|
47
47
|
const colid = column.getKey();
|
|
48
48
|
column.renderFixed = column.fixed;
|
|
49
49
|
column.renderVisible = column.visible;
|
|
@@ -80,12 +80,12 @@ index_esm.VxeUI.hooks.add("tableCustomModule", {
|
|
|
80
80
|
const { customColumnList, aggHandleFields, rowGroupList } = reactData;
|
|
81
81
|
const customOpts = computeCustomOpts.value;
|
|
82
82
|
const { allowVisible, allowSort, allowFixed, allowResizable, allowGroup, allowValues } = customOpts;
|
|
83
|
-
|
|
83
|
+
XEUtils.eachTree(customColumnList, (column, index, items, path, parentColumn) => {
|
|
84
84
|
if (parentColumn) {
|
|
85
85
|
column.fixed = parentColumn.fixed;
|
|
86
86
|
} else {
|
|
87
87
|
if (allowSort) {
|
|
88
|
-
const sortIndex =
|
|
88
|
+
const sortIndex = index + 1;
|
|
89
89
|
column.renderSortNumber = sortIndex;
|
|
90
90
|
}
|
|
91
91
|
if (allowFixed) {
|
|
@@ -129,7 +129,7 @@ index_esm.VxeUI.hooks.add("tableCustomModule", {
|
|
|
129
129
|
const { oldSortMaps, oldFixedMaps, oldVisibleMaps } = customStore;
|
|
130
130
|
const customOpts = computeCustomOpts.value;
|
|
131
131
|
const { allowVisible, allowSort, allowFixed, allowResizable } = customOpts;
|
|
132
|
-
|
|
132
|
+
XEUtils.eachTree(customColumnList, (column) => {
|
|
133
133
|
const colid = column.getKey();
|
|
134
134
|
const visible = !!oldVisibleMaps[colid];
|
|
135
135
|
const fixed = oldFixedMaps[colid] || "";
|
|
@@ -157,7 +157,7 @@ index_esm.VxeUI.hooks.add("tableCustomModule", {
|
|
|
157
157
|
const { checkMethod, visibleMethod } = customOpts;
|
|
158
158
|
const isAll = !!checked;
|
|
159
159
|
if (customOpts.immediate) {
|
|
160
|
-
|
|
160
|
+
XEUtils.eachTree(customColumnList, (column) => {
|
|
161
161
|
if (visibleMethod && !visibleMethod({ $table: $xeTable, column })) {
|
|
162
162
|
return;
|
|
163
163
|
}
|
|
@@ -173,7 +173,7 @@ index_esm.VxeUI.hooks.add("tableCustomModule", {
|
|
|
173
173
|
$xeTable.handleCustom();
|
|
174
174
|
$xeTable.saveCustomStore("update:visible");
|
|
175
175
|
} else {
|
|
176
|
-
|
|
176
|
+
XEUtils.eachTree(customColumnList, (column) => {
|
|
177
177
|
if (visibleMethod && !visibleMethod({ $table: $xeTable, column })) {
|
|
178
178
|
return;
|
|
179
179
|
}
|
|
@@ -211,7 +211,7 @@ index_esm.VxeUI.hooks.add("tableCustomModule", {
|
|
|
211
211
|
aggFunc: options === true
|
|
212
212
|
}, options);
|
|
213
213
|
const allCols = [];
|
|
214
|
-
|
|
214
|
+
XEUtils.eachTree(collectColumn, (column) => {
|
|
215
215
|
if (opts.resizable) {
|
|
216
216
|
column.resizeWidth = 0;
|
|
217
217
|
}
|
|
@@ -233,7 +233,7 @@ index_esm.VxeUI.hooks.add("tableCustomModule", {
|
|
|
233
233
|
allCols.push(column);
|
|
234
234
|
});
|
|
235
235
|
if (opts.sort) {
|
|
236
|
-
const newCollectCols =
|
|
236
|
+
const newCollectCols = XEUtils.toArrayTree(XEUtils.orderBy(allCols, "renderSortNumber"), { key: "id", parentKey: "parentId", children: "children" });
|
|
237
237
|
internalData.collectColumn = newCollectCols;
|
|
238
238
|
internalData.tableFullColumn = util.getColumnList(newCollectCols);
|
|
239
239
|
}
|
|
@@ -6,7 +6,7 @@ require("../../../ui/index.js");
|
|
|
6
6
|
const utils = require("../../../ui/src/utils.js");
|
|
7
7
|
const dom = require("../../../ui/src/dom.js");
|
|
8
8
|
const log = require("../../../ui/src/log.js");
|
|
9
|
-
const
|
|
9
|
+
const XEUtils = require("xe-utils");
|
|
10
10
|
const index_esm = require("../../../../../@vxe-ui/core/es/index.esm.js");
|
|
11
11
|
const { getI18n, getIcon, renderEmptyElement } = index_esm.VxeUI;
|
|
12
12
|
function createInternalData() {
|
|
@@ -28,7 +28,7 @@ const TableCustomPanelComponent = comp.defineVxeComponent({
|
|
|
28
28
|
}
|
|
29
29
|
},
|
|
30
30
|
setup(props, context) {
|
|
31
|
-
const xID =
|
|
31
|
+
const xID = XEUtils.uniqueId();
|
|
32
32
|
const VxeUIModalComponent = index_esm.VxeUI.getComponent("VxeModal");
|
|
33
33
|
const VxeUIDrawerComponent = index_esm.VxeUI.getComponent("VxeDrawer");
|
|
34
34
|
const VxeUIButtonComponent = index_esm.VxeUI.getComponent("VxeButton");
|
|
@@ -111,7 +111,7 @@ const TableCustomPanelComponent = comp.defineVxeComponent({
|
|
|
111
111
|
};
|
|
112
112
|
const handleOptionCheck = (column) => {
|
|
113
113
|
const { customColumnList } = tableReactData;
|
|
114
|
-
const matchObj =
|
|
114
|
+
const matchObj = XEUtils.findTree(customColumnList, (item) => item === column);
|
|
115
115
|
if (matchObj && matchObj.parent) {
|
|
116
116
|
const { parent } = matchObj;
|
|
117
117
|
if (parent.children && parent.children.length) {
|
|
@@ -125,7 +125,7 @@ const TableCustomPanelComponent = comp.defineVxeComponent({
|
|
|
125
125
|
const isChecked = !column.renderVisible;
|
|
126
126
|
const customOpts = computeCustomOpts.value;
|
|
127
127
|
if (customOpts.immediate) {
|
|
128
|
-
|
|
128
|
+
XEUtils.eachTree([column], (item) => {
|
|
129
129
|
item.visible = isChecked;
|
|
130
130
|
item.renderVisible = isChecked;
|
|
131
131
|
item.halfVisible = false;
|
|
@@ -134,7 +134,7 @@ const TableCustomPanelComponent = comp.defineVxeComponent({
|
|
|
134
134
|
$xeTable.handleCustom();
|
|
135
135
|
$xeTable.saveCustomStore("update:visible");
|
|
136
136
|
} else {
|
|
137
|
-
|
|
137
|
+
XEUtils.eachTree([column], (item) => {
|
|
138
138
|
item.renderVisible = isChecked;
|
|
139
139
|
item.halfVisible = false;
|
|
140
140
|
});
|
|
@@ -162,14 +162,14 @@ const TableCustomPanelComponent = comp.defineVxeComponent({
|
|
|
162
162
|
if (customOpts.immediate) {
|
|
163
163
|
if (column.renderFixed === colFixed) {
|
|
164
164
|
targetFixed = "";
|
|
165
|
-
|
|
165
|
+
XEUtils.eachTree([column], (col) => {
|
|
166
166
|
col.fixed = "";
|
|
167
167
|
col.renderFixed = "";
|
|
168
168
|
});
|
|
169
169
|
} else {
|
|
170
170
|
if (!isMaxFixedColumn || column.renderFixed) {
|
|
171
171
|
targetFixed = colFixed;
|
|
172
|
-
|
|
172
|
+
XEUtils.eachTree([column], (col) => {
|
|
173
173
|
col.fixed = colFixed;
|
|
174
174
|
col.renderFixed = colFixed;
|
|
175
175
|
});
|
|
@@ -181,13 +181,13 @@ const TableCustomPanelComponent = comp.defineVxeComponent({
|
|
|
181
181
|
} else {
|
|
182
182
|
if (column.renderFixed === colFixed) {
|
|
183
183
|
targetFixed = "";
|
|
184
|
-
|
|
184
|
+
XEUtils.eachTree([column], (col) => {
|
|
185
185
|
col.renderFixed = "";
|
|
186
186
|
});
|
|
187
187
|
} else {
|
|
188
188
|
if (!isMaxFixedColumn || column.renderFixed) {
|
|
189
189
|
targetFixed = colFixed;
|
|
190
|
-
|
|
190
|
+
XEUtils.eachTree([column], (col) => {
|
|
191
191
|
col.renderFixed = colFixed;
|
|
192
192
|
});
|
|
193
193
|
}
|
|
@@ -337,7 +337,7 @@ const TableCustomPanelComponent = comp.defineVxeComponent({
|
|
|
337
337
|
let oafIndex = -1;
|
|
338
338
|
let nafIndex = -1;
|
|
339
339
|
const oldAllMaps = {};
|
|
340
|
-
|
|
340
|
+
XEUtils.eachTree([dragColumn], (column) => {
|
|
341
341
|
oldAllMaps[column.id] = column;
|
|
342
342
|
});
|
|
343
343
|
let isSelfToChildStatus = false;
|
|
@@ -379,7 +379,7 @@ const TableCustomPanelComponent = comp.defineVxeComponent({
|
|
|
379
379
|
}
|
|
380
380
|
}
|
|
381
381
|
} else ;
|
|
382
|
-
const oldewMatchRest =
|
|
382
|
+
const oldewMatchRest = XEUtils.findTree(collectColumn, (item) => item.id === dragColumn.id);
|
|
383
383
|
if (isSelfToChildStatus && (isCrossDrag && isSelfToChildDrag)) {
|
|
384
384
|
if (oldewMatchRest) {
|
|
385
385
|
const { items: oCols, index: oIndex } = oldewMatchRest;
|
|
@@ -399,7 +399,7 @@ const TableCustomPanelComponent = comp.defineVxeComponent({
|
|
|
399
399
|
}
|
|
400
400
|
}
|
|
401
401
|
}
|
|
402
|
-
const newMatchRest =
|
|
402
|
+
const newMatchRest = XEUtils.findTree(collectColumn, (item) => item.id === newColumn.id);
|
|
403
403
|
if (newMatchRest) {
|
|
404
404
|
const { items: nCols, index: nIndex, parent: nParent } = newMatchRest;
|
|
405
405
|
if (isCrossDrag && isToChildDrag && prevDragToChild) {
|
|
@@ -413,16 +413,16 @@ const TableCustomPanelComponent = comp.defineVxeComponent({
|
|
|
413
413
|
nafIndex = nIndex;
|
|
414
414
|
}
|
|
415
415
|
}
|
|
416
|
-
|
|
416
|
+
XEUtils.eachTree(collectColumn, (column, index, items, path, parent) => {
|
|
417
417
|
if (!parent) {
|
|
418
|
-
const sortIndex =
|
|
418
|
+
const sortIndex = index + 1;
|
|
419
419
|
column.renderSortNumber = sortIndex;
|
|
420
420
|
}
|
|
421
421
|
});
|
|
422
422
|
} else {
|
|
423
|
-
oafIndex =
|
|
423
|
+
oafIndex = XEUtils.findIndexOf(customColumnList, (item) => item.id === dragColumn.id);
|
|
424
424
|
customColumnList.splice(oafIndex, 1);
|
|
425
|
-
nafIndex =
|
|
425
|
+
nafIndex = XEUtils.findIndexOf(customColumnList, (item) => item.id === newColumn.id);
|
|
426
426
|
customColumnList.splice(nafIndex + dragOffsetIndex, 0, dragColumn);
|
|
427
427
|
}
|
|
428
428
|
if (mouseConfig) {
|
|
@@ -572,7 +572,7 @@ const TableCustomPanelComponent = comp.defineVxeComponent({
|
|
|
572
572
|
isAllIndeterminate,
|
|
573
573
|
isCustomStatus
|
|
574
574
|
};
|
|
575
|
-
|
|
575
|
+
XEUtils.eachTree(customColumnList, (column, index, items, path, parent) => {
|
|
576
576
|
const isVisible = visibleMethod ? visibleMethod({ $table: $xeTable, column }) : true;
|
|
577
577
|
if (isVisible) {
|
|
578
578
|
const isChecked = column.renderVisible;
|
|
@@ -797,7 +797,7 @@ const TableCustomPanelComponent = comp.defineVxeComponent({
|
|
|
797
797
|
isAllIndeterminate,
|
|
798
798
|
isCustomStatus
|
|
799
799
|
};
|
|
800
|
-
|
|
800
|
+
XEUtils.eachTree(customColumnList, (column, index, items, path, parent) => {
|
|
801
801
|
const isVisible = visibleMethod ? visibleMethod({ $table: $xeTable, column }) : true;
|
|
802
802
|
if (isVisible) {
|
|
803
803
|
let customMinWidth = 0;
|
|
@@ -806,15 +806,15 @@ const TableCustomPanelComponent = comp.defineVxeComponent({
|
|
|
806
806
|
const resizeParams = {
|
|
807
807
|
$table: $xeTable,
|
|
808
808
|
column,
|
|
809
|
-
columnIndex: index
|
|
810
|
-
$columnIndex: index
|
|
809
|
+
columnIndex: index,
|
|
810
|
+
$columnIndex: index,
|
|
811
811
|
$rowIndex: -1
|
|
812
812
|
};
|
|
813
813
|
if (reMinWidth) {
|
|
814
|
-
customMinWidth =
|
|
814
|
+
customMinWidth = XEUtils.toNumber(XEUtils.isFunction(reMinWidth) ? reMinWidth(resizeParams) : reMinWidth);
|
|
815
815
|
}
|
|
816
816
|
if (reMaxWidth) {
|
|
817
|
-
customMaxWidth =
|
|
817
|
+
customMaxWidth = XEUtils.toNumber(XEUtils.isFunction(reMaxWidth) ? reMaxWidth(resizeParams) : reMaxWidth);
|
|
818
818
|
}
|
|
819
819
|
}
|
|
820
820
|
const isChecked = column.renderVisible;
|
|
@@ -886,7 +886,7 @@ const TableCustomPanelComponent = comp.defineVxeComponent({
|
|
|
886
886
|
allowResizable ? vue.h("td", {
|
|
887
887
|
class: "vxe-table-custom-popup--column-item col--resizable"
|
|
888
888
|
}, [
|
|
889
|
-
column.children && column.children.length || !(
|
|
889
|
+
column.children && column.children.length || !(XEUtils.isBoolean(column.resizable) ? column.resizable : columnOpts.resizable || allResizable) ? vue.h("span", "-") : VxeUINumberInputComponent ? vue.h(VxeUINumberInputComponent, {
|
|
890
890
|
type: "integer",
|
|
891
891
|
immediate: false,
|
|
892
892
|
disabled: isHidden,
|