wui-components-v2 1.1.69 → 1.1.70
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/api/core/index.ts +74 -74
- package/api/menu.ts +45 -45
- package/api/page.ts +114 -114
- package/api/sys.ts +12 -12
- package/components/add-address-page/add-address-page.vue +77 -77
- package/components/custom-date-picker/custom-date-picker.vue +106 -106
- package/components/custom-select-picker/custom-select-picker.vue +95 -95
- package/components/demo-block/demo-block.vue +63 -63
- package/components/detail-popup/detail-popup.vue +99 -99
- package/components/evaluation-page/evaluation-page.vue +196 -196
- package/components/fold-card/fold-card.vue +171 -171
- package/components/form-control/form-control.vue +661 -661
- package/components/global-message/global-message.vue +68 -68
- package/components/label-value/label-value.vue +144 -144
- package/components/list-top-buttons/list-top-buttons.vue +19 -19
- package/components/login-form/login-form.vue +126 -126
- package/components/mulselect-picker/mulselect-picker.vue +86 -86
- package/components/product-card/product-card.vue +201 -201
- package/components/search/search.vue +128 -128
- package/components/user-choose/user-choose.vue +1 -1
- package/components/wui-enume-select-control/wui-enume-select-control.vue +92 -92
- package/components/wui-list/wui-list.vue +235 -235
- package/components/wui-menus/wui-menus.vue +247 -247
- package/components/wui-menus1/components/navbar.vue +43 -43
- package/components/wui-menus1/wui-menus.vue +564 -564
- package/components/wui-notify-info/wui-notify-info.vue +280 -280
- package/components/wui-search-history-babbar/wui-search-history-babbar.vue +204 -204
- package/components/wui-select-list/wui-select-list.vue +310 -310
- package/components/wui-select-popup/wui-select-popup.vue +612 -612
- package/components/wui-system-settings/wui-system-settings.vue +144 -144
- package/components/wui-tabbar/wui-tabbar.vue +106 -106
- package/components/wui-tree-page/components/tree-item.vue +238 -238
- package/components/wui-user/wui-user.vue +202 -202
- package/composables/useCompanyFieldFilter.ts +91 -91
- package/composables/useEnumes.ts +2 -2
- package/composables/useMenus.ts +193 -193
- package/index.ts +83 -83
- package/package.json +1 -1
- package/static/iconfont/iconfont.css +63 -63
- package/store/language.ts +151 -151
- package/styles/dark-mode.css +523 -523
- package/styles/dark-mode.min.css +1 -1
- package/type.ts +2 -2
- package/utils/control-tree.ts +2 -2
- package/utils/control-type-supportor.ts +148 -148
package/styles/dark-mode.min.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
:root,.wot-theme-dark{--wot-dark-background:#1b1b1e;--wot-dark-background2:#161616;--wot-dark-background3:#1e1e1e;--wot-dark-background4:#262626;--wot-dark-background5:#333333;--wot-dark-color:#ffffff;--wot-dark-color2:#e8e8e8;--wot-dark-color3:#999999}.wot-theme-dark .wd-cell__title{color:#e8e8e8 !important}.wot-theme-dark .wd-cell__right{color:#666666 !important}.wot-theme-dark .wd-cell__icon{color:#666666 !important}.wot-theme-dark .wd-cell-group{background-color:#111111 !important}.wot-theme-dark .wd-cell{background-color:#161616 !important;border-bottom:1px solid rgba(255,255,255,0.04) !important}.wot-theme-dark .wd-cell:active{background-color:#1b1b1e !important}.wot-theme-dark .wd-switch__node{background-color:#3d3d3d !important}.wot-theme-dark .wd-switch__node--checked{background-color:var(--wot-color-primary, #2164f3) !important}.wot-theme-dark .wd-input{--wot-input-bg:#252530;--wot-input-inner-color:#e8e8e8;--wot-input-inner-placeholder-color:#fff}.wot-theme-dark .uni-input-input,.wot-theme-dark .wd-input__input,.wot-theme-dark .wd-input.is-compact .uni-input-input{color:var(--wot-input-inner-color, #e8e8e8) !important;caret-color:var(--wot-color-primary, #2164f3) !important;background-color:transparent !important}.wot-theme-dark .uni-input-placeholder,.wot-theme-dark .wd-input__placeholder,.wot-theme-dark .wd-input.is-compact .uni-input-placeholder{color:#fff !important}.wot-theme-dark .wd-input-number{--wot-input-number-bg:#252530;--wot-input-number-inner-color:#000000}.wot-theme-dark .wd-input-number .uni-input-input,.wot-theme-dark .wd-input-number__input{color:var(--wot-input-number-inner-color, #000) !important;caret-color:var(--wot-color-primary, #2164f3) !important;background-color:transparent !important}.wot-theme-dark .wd-input-number .uni-input-placeholder,.wot-theme-dark .wd-input-number__input::placeholder,.wot-theme-dark .wd-input-number__placeholder{color:#fff !important}.wot-theme-dark .wd-textarea{--wot-textarea-bg:#252530;--wot-textarea-inner-color:#e8e8e8;--wot-textarea-inner-placeholder-color:#fff}.wot-theme-dark .wd-textarea__inner{color:var(--wot-textarea-inner-color, #e8e8e8) !important;caret-color:var(--wot-color-primary, #2164f3) !important;background-color:transparent !important}.wot-theme-dark .wd-textarea__inner::placeholder,.wot-theme-dark .wd-textarea__placeholder{color:#fff !important}.wot-theme-dark .wd-form{background-color:transparent}.wot-theme-dark .wd-form-item{background-color:transparent !important}.wot-theme-dark .wd-form-item .wd-cell{background-color:transparent !important}.wot-theme-dark .wd-form-item__label,.wot-theme-dark .wd-form-item__title{color:var(--wot-dark-color2, #e8e8e8) !important}.wot-theme-dark .wd-form-item__body{background-color:transparent}.wot-theme-dark .wd-button--primary{--wd-button-primary-bg-color:var(--wot-color-primary, #2164f3) !important}.wot-theme-dark .wd-popup{background-color:transparent !important}.wot-theme-dark .wd-popup__container{background-color:#161616 !important}.wot-theme-dark .wd-popup__body{background-color:#1b1b1e !important}.wot-theme-dark .wd-action-sheet{background-color:#161616 !important}.wot-theme-dark .wd-action-sheet__title{color:var(--wot-dark-color, #fff) !important}.wot-theme-dark .wd-action-sheet__item{color:var(--wot-dark-color2, #e0e0e0) !important}.wot-theme-dark .wd-action-sheet__action{background-color:#1b1b1e !important}.wot-theme-dark .wd-checkbox__label{color:var(--wot-dark-color, #fff) !important}.wot-theme-dark .wd-select-picker__wrapper{background-color:#1b1b1e}.wot-theme-dark .wd-select-picker__popup{background-color:#161616 !important}.wot-theme-dark .wd-select-picker__checkbox-label,.wot-theme-dark .wd-select-picker__radio-label{color:var(--wot-dark-color2, #e8e8e8) !important}.wot-theme-dark .wd-select-picker__text-active{color:var(--wot-color-primary, #2164f3) !important}.wot-theme-dark .wd-select-picker__footer{background-color:#161616}.wot-theme-dark .wd-calendar__wrapper{background-color:#1b1b1e}.wot-theme-dark .wd-calendar__popup{background-color:#161616 !important}.wot-theme-dark .wd-calendar__header{color:var(--wot-dark-color, #fff)}.wot-theme-dark .wd-calendar__view,.wot-theme-dark .wd-month-panel{--wot-calendar-view-day-color:#e8e8e8;--wot-calendar-view-week-color:#999999;--wot-calendar-view-panel-title-color:#ccc;--wot-calendar-view-control-icon-color:#aaa;--wot-calendar-view-control-color-disabled:#444;--wot-calendar-view-color-disabled:#555555;--wot-calendar-view-time-picker-color:#e8e8e8;--wot-calendar-view-time-picker-bg:#252530;--wot-calendar-view-range-color:#e8e8e8;background-color:transparent !important}.wot-theme-dark .wd-calendar__tabs{color:var(--wot-dark-color3, #999) !important}.wot-theme-dark .wd-calendar__shortcuts{border-bottom-color:rgba(255,255,255,0.06)}.wot-theme-dark .wd-calendar__view{background-color:transparent;color:var(--wot-dark-color2, #e8e8e8)}.wot-theme-dark .wd-calendar__range-item.is-placeholder{color:var(--wot-dark-color3, #666) !important}.wot-theme-dark .wd-calendar__range-separator{color:var(--wot-dark-color3, #666) !important}.wot-theme-dark .wd-year-panel{--wot-calendar-bg:#1b1b1e;--wot-picker-view-bg:#1b1b1e;background-color:#1b1b1e}.wot-theme-dark .wd-picker-view{--wot-picker-view-bg:#1b1b1e;--wot-picker-view-mask-start-color:rgba(0,0,0,0.85);--wot-picker-view-mask-end-color:rgba(0,0,0,0.2);--wot-picker-view-roller-bg:#2a2a30;--wot-picker-view-column-item-color:#e8e8e8;background-color:#1b1b1e}.wot-theme-dark .wd-picker-view__mask{background-image:linear-gradient(180deg, rgba(0,0,0,0.85), rgba(0,0,0,0.2)),linear-gradient(0deg, rgba(0,0,0,0.85), rgba(0,0,0,0.2)) !important}.wot-theme-dark .wd-picker-view__roller{background-color:#2a2a30 !important}.wot-theme-dark .wd-picker-view__column-item{color:#e8e8e8 !important}.wot-theme-dark .wd-picker-view__column-item--active{color:var(--wot-dark-color, #fff) !important}.wot-theme-dark .wd-year-panel__text{color:var(--wot-dark-color2, #e8e8e8)}.wot-theme-dark .wd-year-panel__item.is-active .wd-year-panel__text,.wot-theme-dark .wd-year-panel__item.is-active{color:var(--wot-color-primary, #2164f3) !important}.wot-theme-dark .wd-datetime-picker__wrapper{background-color:#1b1b1e;color:var(--wot-dark-color2, #e8e8e8)}.wot-theme-dark .wd-datetime-picker__popup{background-color:#161616 !important}.wot-theme-dark::after{background-color:transparent !important}.wot-theme-dark .wd-toast{color:#fff !important}.wot-theme-dark .wd-picker__title,.wot-theme-dark .wd-picker__toolbar{color:var(--wot-dark-color2, #e0e0) !important}.wot-theme-dark .wd-dialog{color:var(--wot-dark-color2, #e0e0e0) !important}.wot-theme-dark .wd-dialog__header{color:var(--wot-dark-color, #fff) !important}.wot-theme-dark .wd-loading-text{color:var(--wot-dark-color3, #a0a0a0) !important}.wot-theme-dark .wd-tag{color:#fff !important}.wot-theme-dark .wd-collapse{background-color:transparent !important}.wot-theme-dark .wd-collapse-item__title{color:var(--wot-dark-color2, #e0e0e0) !important}.wot-theme-dark .wd-tabbar{background-color:#111111 !important;border-top:1px solid rgba(255,255,255,0.06) !important}.wot-theme-dark .wd-tabbar-item{color:#ffffff}.wot-theme-dark .wd-tabbar-item__body .is-inactive{color:#ffffff !important}.wot-theme-dark .wd-tabbar-item--active{color:var(--wot-color-primary, #2164f3) !important}.wot-theme-dark .wd-tabbar-item--active .wd-icon,.wot-theme-dark .wd-tabbar-item--active .wd-tabbar-item__icon{color:var(--wot-color-primary, #2164f3) !important}.wot-theme-dark .wd-tabbar-item--active .wd-tabbar-item__body-title{color:var(--wot-color-primary, #2164f3) !important}.wot-theme-dark .wd-navbar{background-color:#1b1b1e !important}.wot-theme-dark .wd-cell__arrow{color:#555555 !important}.wot-theme-dark .wd-cell__left-icon{color:#e0e0e0 !important}.wot-theme-dark .wd-card{background:linear-gradient(180deg, #1e1e23 0%, #19191e 100%) !important;box-shadow:0 8rpx 32rpx rgba(0,0,0,0.25),0 2rpx 8rpx rgba(0,0,0,0.15) !important;border-color:rgba(255,255,255,0.06) !important}.wot-theme-dark .wd-card__title{color:#f9fafb !important}.wot-theme-dark .wd-grid-item__text,.wot-theme-dark .wd-grid-item__content text{color:#e5e7eb !important}.wot-theme-dark .wd-grid-item__wrapper,.wot-theme-dark .wd-grid-item__content{background-color:transparent !important}.wot-theme-dark .wd-grid-item{background-color:transparent !important}.wot-theme-dark .recent-section{background-color:#1e1e23 !important;box-shadow:0 4px 16px rgba(0,0,0,0.2),inset 0 1px 0 rgba(255,255,255,0.05) !important;border:1px solid rgba(255,255,255,0.06) !important}.wot-theme-dark .recent-label{color:#d1d5db !important}.wot-theme-dark .wd-cell .wd-icon,.wot-theme-dark .wd-navbar .wd-icon,.wot-theme-dark .wd-button .wd-icon{color:#e0e0e0 !important}.wot-theme-dark .wd-cell .wd-icon svg,.wot-theme-dark .wd-cell .wd-icon path,.wot-theme-dark .wd-navbar .wd-icon svg,.wot-theme-dark .wd-navbar .wd-icon path,.wot-theme-dark .wd-button .wd-icon svg,.wot-theme-dark .wd-button .wd-icon path{fill:currentColor !important;color:currentColor !important}.wot-theme-dark .wd-search,.wot-theme-dark .wd-search.is-light,.wot-theme-dark .wd-search.is-plain{background:transparent !important;--wot-search-input-bg:#252530 !important;--wot-search-cover-bg:#252530 !important;--wot-search-placeholder-color:#666666 !important;--wot-search-cancel-color:var(--wot-color-primary, #2164f3) !important;--wot-search-icon-color:#888888 !important}.wot-theme-dark .wd-search .wd-search__block,.wot-theme-dark .wd-search.is-light .wd-search__block,.wot-theme-dark .wd-search.is-plain .wd-search__block{background-color:#252530 !important}.wot-theme-dark .wd-search .wd-search__cover,.wot-theme-dark .wd-search.is-light .wd-search__cover,.wot-theme-dark .wd-search.is-plain .wd-search__cover{background-color:#252530 !important}
|
|
1
|
+
:root,.wot-theme-dark{--wot-dark-background:#1b1b1e;--wot-dark-background2:#161616;--wot-dark-background3:#1e1e1e;--wot-dark-background4:#262626;--wot-dark-background5:#333333;--wot-dark-color:#ffffff;--wot-dark-color2:#e8e8e8;--wot-dark-color3:#999999}.wot-theme-dark .wd-cell__title{color:#e8e8e8 !important}.wot-theme-dark .wd-cell__right{color:#666666 !important}.wot-theme-dark .wd-cell__icon{color:#666666 !important}.wot-theme-dark .wd-cell-group{background-color:#111111 !important}.wot-theme-dark .wd-cell{background-color:#161616 !important;border-bottom:1px solid rgba(255,255,255,0.04) !important}.wot-theme-dark .wd-cell:active{background-color:#1b1b1e !important}.wot-theme-dark .wd-switch__node{background-color:#3d3d3d !important}.wot-theme-dark .wd-switch__node--checked{background-color:var(--wot-color-primary, #2164f3) !important}.wot-theme-dark .wd-input{--wot-input-bg:#252530;--wot-input-inner-color:#e8e8e8;--wot-input-inner-placeholder-color:#fff}.wot-theme-dark .uni-input-input,.wot-theme-dark .wd-input__input,.wot-theme-dark .wd-input.is-compact .uni-input-input{color:var(--wot-input-inner-color, #e8e8e8) !important;caret-color:var(--wot-color-primary, #2164f3) !important;background-color:transparent !important}.wot-theme-dark .uni-input-placeholder,.wot-theme-dark .wd-input__placeholder,.wot-theme-dark .wd-input.is-compact .uni-input-placeholder{color:#fff !important}.wot-theme-dark .wd-input-number{--wot-input-number-bg:#252530;--wot-input-number-inner-color:#000000}.wot-theme-dark .wd-input-number .uni-input-input,.wot-theme-dark .wd-input-number__input{color:var(--wot-input-number-inner-color, #000) !important;caret-color:var(--wot-color-primary, #2164f3) !important;background-color:transparent !important}.wot-theme-dark .wd-input-number .uni-input-placeholder,.wot-theme-dark .wd-input-number__input::placeholder,.wot-theme-dark .wd-input-number__placeholder{color:#fff !important}.wot-theme-dark .wd-textarea{--wot-textarea-bg:#252530;--wot-textarea-inner-color:#e8e8e8;--wot-textarea-inner-placeholder-color:#fff}.wot-theme-dark .wd-textarea__inner{color:var(--wot-textarea-inner-color, #e8e8e8) !important;caret-color:var(--wot-color-primary, #2164f3) !important;background-color:transparent !important}.wot-theme-dark .wd-textarea__inner::placeholder,.wot-theme-dark .wd-textarea__placeholder{color:#fff !important}.wot-theme-dark .wd-form{background-color:transparent}.wot-theme-dark .wd-form-item{background-color:transparent !important}.wot-theme-dark .wd-form-item .wd-cell{background-color:transparent !important}.wot-theme-dark .wd-form-item__label,.wot-theme-dark .wd-form-item__title{color:var(--wot-dark-color2, #e8e8e8) !important}.wot-theme-dark .wd-form-item__body{background-color:transparent}.wot-theme-dark .wd-button--primary{--wd-button-primary-bg-color:var(--wot-color-primary, #2164f3) !important}.wot-theme-dark .wd-popup{background-color:transparent !important}.wot-theme-dark .wd-popup__container{background-color:#161616 !important}.wot-theme-dark .wd-popup__body{background-color:#1b1b1e !important}.wot-theme-dark .wd-action-sheet{background-color:#161616 !important}.wot-theme-dark .wd-action-sheet__title{color:var(--wot-dark-color, #fff) !important}.wot-theme-dark .wd-action-sheet__item{color:var(--wot-dark-color2, #e0e0e0) !important}.wot-theme-dark .wd-action-sheet__action{background-color:#1b1b1e !important}.wot-theme-dark .wd-checkbox__label{color:var(--wot-dark-color, #fff) !important}.wot-theme-dark .wd-select-picker__wrapper{background-color:#1b1b1e}.wot-theme-dark .wd-select-picker__popup{background-color:#161616 !important}.wot-theme-dark .wd-select-picker__checkbox-label,.wot-theme-dark .wd-select-picker__radio-label{color:var(--wot-dark-color2, #e8e8e8) !important}.wot-theme-dark .wd-select-picker__text-active{color:var(--wot-color-primary, #2164f3) !important}.wot-theme-dark .wd-select-picker__footer{background-color:#161616}.wot-theme-dark .wd-calendar__wrapper{background-color:#1b1b1e}.wot-theme-dark .wd-calendar__popup{background-color:#161616 !important}.wot-theme-dark .wd-calendar__header{color:var(--wot-dark-color, #fff)}.wot-theme-dark .wd-calendar__view,.wot-theme-dark .wd-month-panel{--wot-calendar-view-day-color:#e8e8e8;--wot-calendar-view-week-color:#999999;--wot-calendar-view-panel-title-color:#ccc;--wot-calendar-view-control-icon-color:#aaa;--wot-calendar-view-control-color-disabled:#444;--wot-calendar-view-color-disabled:#555555;--wot-calendar-view-time-picker-color:#e8e8e8;--wot-calendar-view-time-picker-bg:#252530;--wot-calendar-view-range-color:#e8e8e8;background-color:transparent !important}.wot-theme-dark .wd-calendar__tabs{color:var(--wot-dark-color3, #999) !important}.wot-theme-dark .wd-calendar__shortcuts{border-bottom-color:rgba(255,255,255,0.06)}.wot-theme-dark .wd-calendar__view{background-color:transparent;color:var(--wot-dark-color2, #e8e8e8)}.wot-theme-dark .wd-calendar__range-item.is-placeholder{color:var(--wot-dark-color3, #666) !important}.wot-theme-dark .wd-calendar__range-separator{color:var(--wot-dark-color3, #666) !important}.wot-theme-dark .wd-year-panel{--wot-calendar-bg:#1b1b1e;--wot-picker-view-bg:#1b1b1e;background-color:#1b1b1e}.wot-theme-dark .wd-picker-view{--wot-picker-view-bg:#1b1b1e;--wot-picker-view-mask-start-color:rgba(0,0,0,0.85);--wot-picker-view-mask-end-color:rgba(0,0,0,0.2);--wot-picker-view-roller-bg:#2a2a30;--wot-picker-view-column-item-color:#e8e8e8;background-color:#1b1b1e}.wot-theme-dark .wd-picker-view__mask{background-image:linear-gradient(180deg, rgba(0,0,0,0.85), rgba(0,0,0,0.2)),linear-gradient(0deg, rgba(0,0,0,0.85), rgba(0,0,0,0.2)) !important}.wot-theme-dark .wd-picker-view__roller{background-color:#2a2a30 !important}.wot-theme-dark .wd-picker-view__column-item{color:#e8e8e8 !important}.wot-theme-dark .wd-picker-view__column-item--active{color:var(--wot-dark-color, #fff) !important}.wot-theme-dark .wd-year-panel__text{color:var(--wot-dark-color2, #e8e8e8)}.wot-theme-dark .wd-year-panel__item.is-active .wd-year-panel__text,.wot-theme-dark .wd-year-panel__item.is-active{color:var(--wot-color-primary, #2164f3) !important}.wot-theme-dark .wd-datetime-picker__wrapper{background-color:#1b1b1e;color:var(--wot-dark-color2, #e8e8e8)}.wot-theme-dark .wd-datetime-picker__popup{background-color:#161616 !important}.wot-theme-dark::after{background-color:transparent !important}.wot-theme-dark .wd-toast{color:#fff !important}.wot-theme-dark .wd-picker__title,.wot-theme-dark .wd-picker__toolbar{color:var(--wot-dark-color2, #e0e0) !important}.wot-theme-dark .wd-dialog{color:var(--wot-dark-color2, #e0e0e0) !important}.wot-theme-dark .wd-dialog__header{color:var(--wot-dark-color, #fff) !important}.wot-theme-dark .wd-loading-text{color:var(--wot-dark-color3, #a0a0a0) !important}.wot-theme-dark .wd-tag{color:#fff !important}.wot-theme-dark .wd-collapse{background-color:transparent !important}.wot-theme-dark .wd-collapse-item__title{color:var(--wot-dark-color2, #e0e0e0) !important}.wot-theme-dark .wd-tabbar{background-color:#111111 !important;border-top:1px solid rgba(255,255,255,0.06) !important}.wot-theme-dark .wd-tabbar-item{color:#ffffff}.wot-theme-dark .wd-tabbar-item__body .is-inactive{color:#ffffff !important}.wot-theme-dark .wd-tabbar-item--active{color:var(--wot-color-primary, #2164f3) !important}.wot-theme-dark .wd-tabbar-item--active .wd-icon,.wot-theme-dark .wd-tabbar-item--active .wd-tabbar-item__icon{color:var(--wot-color-primary, #2164f3) !important}.wot-theme-dark .wd-tabbar-item--active .wd-tabbar-item__body-title{color:var(--wot-color-primary, #2164f3) !important}.wot-theme-dark .wd-navbar{background-color:#1b1b1e !important}.wot-theme-dark .wd-cell__arrow{color:#555555 !important}.wot-theme-dark .wd-cell__left-icon{color:#e0e0e0 !important}.wot-theme-dark .wd-card{background:linear-gradient(180deg, #1e1e23 0%, #19191e 100%) !important;box-shadow:0 8rpx 32rpx rgba(0,0,0,0.25),0 2rpx 8rpx rgba(0,0,0,0.15) !important;border-color:rgba(255,255,255,0.06) !important}.wot-theme-dark .wd-card__title{color:#f9fafb !important}.wot-theme-dark .wd-grid-item__text,.wot-theme-dark .wd-grid-item__content text{color:#e5e7eb !important}.wot-theme-dark .wd-grid-item__wrapper,.wot-theme-dark .wd-grid-item__content{background-color:transparent !important}.wot-theme-dark .wd-grid-item{background-color:transparent !important}.wot-theme-dark .recent-section{background-color:#1e1e23 !important;box-shadow:0 4px 16px rgba(0,0,0,0.2),inset 0 1px 0 rgba(255,255,255,0.05) !important;border:1px solid rgba(255,255,255,0.06) !important}.wot-theme-dark .recent-label{color:#d1d5db !important}.wot-theme-dark .wd-cell .wd-icon,.wot-theme-dark .wd-navbar .wd-icon,.wot-theme-dark .wd-button .wd-icon{color:#e0e0e0 !important}.wot-theme-dark .wd-cell .wd-icon svg,.wot-theme-dark .wd-cell .wd-icon path,.wot-theme-dark .wd-navbar .wd-icon svg,.wot-theme-dark .wd-navbar .wd-icon path,.wot-theme-dark .wd-button .wd-icon svg,.wot-theme-dark .wd-button .wd-icon path{fill:currentColor !important;color:currentColor !important}.wot-theme-dark .wd-search,.wot-theme-dark .wd-search.is-light,.wot-theme-dark .wd-search.is-plain{background:transparent !important;--wot-search-input-bg:#252530 !important;--wot-search-cover-bg:#252530 !important;--wot-search-placeholder-color:#666666 !important;--wot-search-cancel-color:var(--wot-color-primary, #2164f3) !important;--wot-search-icon-color:#888888 !important}.wot-theme-dark .wd-search .wd-search__block,.wot-theme-dark .wd-search.is-light .wd-search__block,.wot-theme-dark .wd-search.is-plain .wd-search__block{background-color:#252530 !important}.wot-theme-dark .wd-search .wd-search__cover,.wot-theme-dark .wd-search.is-light .wd-search__cover,.wot-theme-dark .wd-search.is-plain .wd-search__cover{background-color:#252530 !important}
|
package/type.ts
CHANGED
|
@@ -46,9 +46,9 @@ export interface rowActions {
|
|
|
46
46
|
export interface Config extends Groups {
|
|
47
47
|
columns: Columns[]
|
|
48
48
|
primaryColumn: Columns
|
|
49
|
-
|
|
49
|
+
primaryCriterion: Fields
|
|
50
50
|
secondColumn: Columns
|
|
51
|
-
|
|
51
|
+
criteria: Fields[]
|
|
52
52
|
labelColumn?: Columns
|
|
53
53
|
rowActions?: rowActions[]
|
|
54
54
|
ractions?: rowActions[]
|
package/utils/control-tree.ts
CHANGED
|
@@ -43,7 +43,7 @@ export function useTreeControlInit(sourceId: string, Zpaging?: any) {
|
|
|
43
43
|
sourceId: '',
|
|
44
44
|
mstrucId: '',
|
|
45
45
|
},
|
|
46
|
-
|
|
46
|
+
primaryCriterion: {
|
|
47
47
|
hidden: false,
|
|
48
48
|
controlType: '',
|
|
49
49
|
extControlType: '',
|
|
@@ -60,7 +60,7 @@ export function useTreeControlInit(sourceId: string, Zpaging?: any) {
|
|
|
60
60
|
sourceId: '',
|
|
61
61
|
mstrucId: '',
|
|
62
62
|
},
|
|
63
|
-
|
|
63
|
+
criteria: [],
|
|
64
64
|
buttons: [],
|
|
65
65
|
fields: [],
|
|
66
66
|
title: '',
|
|
@@ -1,148 +1,148 @@
|
|
|
1
|
-
import type { Fields } from '../type'
|
|
2
|
-
// import {ProgramConfig} from "../index";
|
|
3
|
-
|
|
4
|
-
const SupportInputTypes: Set<string> = new Set<string>()
|
|
5
|
-
SupportInputTypes.add('date-YY')
|
|
6
|
-
SupportInputTypes.add('daterange-YY')
|
|
7
|
-
SupportInputTypes.add('date-M1')
|
|
8
|
-
SupportInputTypes.add('daterange-M1')
|
|
9
|
-
SupportInputTypes.add('date')
|
|
10
|
-
SupportInputTypes.add('daterange')
|
|
11
|
-
SupportInputTypes.add('datetime-HH')
|
|
12
|
-
SupportInputTypes.add('datetimerange-HH')
|
|
13
|
-
SupportInputTypes.add('datetime-mm')
|
|
14
|
-
SupportInputTypes.add('datetimerange-mm')
|
|
15
|
-
SupportInputTypes.add('datetime')
|
|
16
|
-
SupportInputTypes.add('datetimerange')
|
|
17
|
-
SupportInputTypes.add('timestamp')
|
|
18
|
-
|
|
19
|
-
SupportInputTypes.add('time-HH')
|
|
20
|
-
SupportInputTypes.add('timerange-HH')
|
|
21
|
-
SupportInputTypes.add('time-mm')
|
|
22
|
-
SupportInputTypes.add('timerange-mm')
|
|
23
|
-
SupportInputTypes.add('time')
|
|
24
|
-
SupportInputTypes.add('timerange')
|
|
25
|
-
|
|
26
|
-
SupportInputTypes.add('timerange-HH-unorder')
|
|
27
|
-
SupportInputTypes.add('timerange-mm-unorder')
|
|
28
|
-
SupportInputTypes.add('timerange-unorder')
|
|
29
|
-
|
|
30
|
-
SupportInputTypes.add('text')
|
|
31
|
-
SupportInputTypes.add('textarea')
|
|
32
|
-
SupportInputTypes.add('text-view')
|
|
33
|
-
SupportInputTypes.add('html')
|
|
34
|
-
SupportInputTypes.add('steps')
|
|
35
|
-
SupportInputTypes.add('progress')
|
|
36
|
-
SupportInputTypes.add('password')
|
|
37
|
-
SupportInputTypes.add('preselect')
|
|
38
|
-
SupportInputTypes.add('select')
|
|
39
|
-
SupportInputTypes.add('multiselect')
|
|
40
|
-
SupportInputTypes.add('checkbox')
|
|
41
|
-
SupportInputTypes.add('radio')
|
|
42
|
-
SupportInputTypes.add('yes-no-select')
|
|
43
|
-
SupportInputTypes.add('yes-no-radio')
|
|
44
|
-
SupportInputTypes.add('yes-no-switch')
|
|
45
|
-
SupportInputTypes.add('caselect')
|
|
46
|
-
SupportInputTypes.add('relation')
|
|
47
|
-
SupportInputTypes.add('file')
|
|
48
|
-
SupportInputTypes.add('picture')
|
|
49
|
-
SupportInputTypes.add('chemstruc')
|
|
50
|
-
SupportInputTypes.add('sql-code-editor')
|
|
51
|
-
SupportInputTypes.add('video')// 没支持上
|
|
52
|
-
SupportInputTypes.add('takeVideo')// 没支持上
|
|
53
|
-
SupportInputTypes.add('signature')// 签名组件
|
|
54
|
-
SupportInputTypes.add('non-download-file')
|
|
55
|
-
|
|
56
|
-
SupportInputTypes.add('decimal')
|
|
57
|
-
SupportInputTypes.add('float')
|
|
58
|
-
SupportInputTypes.add('double')
|
|
59
|
-
SupportInputTypes.add('int')
|
|
60
|
-
SupportInputTypes.add('relselect')
|
|
61
|
-
SupportInputTypes.add('relselect-extdis')
|
|
62
|
-
SupportInputTypes.add('relselectvalue')// 弃用
|
|
63
|
-
SupportInputTypes.add('entity-select-value')
|
|
64
|
-
SupportInputTypes.add('refselect')
|
|
65
|
-
SupportInputTypes.add('field-history')
|
|
66
|
-
|
|
67
|
-
SupportInputTypes.add('range')
|
|
68
|
-
SupportInputTypes.add('intrange')
|
|
69
|
-
SupportInputTypes.add('decimalrange')
|
|
70
|
-
SupportInputTypes.add('texttags')
|
|
71
|
-
// SupportInputTypes.add('relation_existion');
|
|
72
|
-
SupportInputTypes.add('entity-select')
|
|
73
|
-
SupportInputTypes.add('table-entity-select')
|
|
74
|
-
SupportInputTypes.add('modal-entity-select')
|
|
75
|
-
SupportInputTypes.add('color')
|
|
76
|
-
SupportInputTypes.add('url')
|
|
77
|
-
SupportInputTypes.add('hidden')
|
|
78
|
-
SupportInputTypes.add('lab-tree-select')
|
|
79
|
-
SupportInputTypes.add('tree-entity-select-value')
|
|
80
|
-
SupportInputTypes.add('tree-entity-select')
|
|
81
|
-
SupportInputTypes.add('ltree-entity-select-value')
|
|
82
|
-
SupportInputTypes.add('ltree-entity-select')
|
|
83
|
-
SupportInputTypes.add('field-history')
|
|
84
|
-
SupportInputTypes.add('relfile')
|
|
85
|
-
SupportInputTypes.add('QRCode')
|
|
86
|
-
SupportInputTypes.add('progress')
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
const CUSTOM_VIEW_CONTROL_MAP: { [key: string]: string } = {}
|
|
90
|
-
|
|
91
|
-
function ControlTypeSupportor() {
|
|
92
|
-
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
function getCustomViewControl(key: string) {
|
|
96
|
-
if (!key) {
|
|
97
|
-
return null
|
|
98
|
-
}
|
|
99
|
-
if (!key.startsWith('/')) {
|
|
100
|
-
return CUSTOM_VIEW_CONTROL_MAP[`/${key}`]
|
|
101
|
-
}
|
|
102
|
-
else {
|
|
103
|
-
return CUSTOM_VIEW_CONTROL_MAP[key]
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
ControlTypeSupportor.isSupport = function (type: string): boolean {
|
|
107
|
-
if (type) {
|
|
108
|
-
if (getCustomViewControl(type)) {
|
|
109
|
-
return true
|
|
110
|
-
}
|
|
111
|
-
else {
|
|
112
|
-
return SupportInputTypes.has(type)
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
else {
|
|
116
|
-
return false
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
ControlTypeSupportor.getSupportControlType = function (fieldConfig: Fields): string {
|
|
120
|
-
if (!fieldConfig) {
|
|
121
|
-
return 'text'
|
|
122
|
-
}
|
|
123
|
-
if (this.isSupport(fieldConfig.extControlType)) {
|
|
124
|
-
return fieldConfig.extControlType
|
|
125
|
-
}
|
|
126
|
-
else if (this.isSupport(fieldConfig.controlType)) {
|
|
127
|
-
return fieldConfig.controlType
|
|
128
|
-
}
|
|
129
|
-
else {
|
|
130
|
-
return 'text'
|
|
131
|
-
}
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
ControlTypeSupportor.getControlType = function (fieldConfig: Fields, fieldValue?: any) {
|
|
135
|
-
let itemType: string
|
|
136
|
-
itemType = this.getSupportControlType(fieldConfig)
|
|
137
|
-
// 对关系属性之文件进行特殊处理
|
|
138
|
-
if (fieldValue && typeof (fieldValue) == 'string' && !fieldValue.includes('@R@') && itemType === 'relselect' && fieldValue.includes('download-files/')) {
|
|
139
|
-
itemType = 'file'
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
if (fieldValue && Array.isArray(fieldValue) && itemType === 'relselect' && fieldValue.length > 0 && fieldValue[0].includes('valid')) {
|
|
143
|
-
itemType = 'file'
|
|
144
|
-
}
|
|
145
|
-
return itemType
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
export default ControlTypeSupportor
|
|
1
|
+
import type { Fields } from '../type'
|
|
2
|
+
// import {ProgramConfig} from "../index";
|
|
3
|
+
|
|
4
|
+
const SupportInputTypes: Set<string> = new Set<string>()
|
|
5
|
+
SupportInputTypes.add('date-YY')
|
|
6
|
+
SupportInputTypes.add('daterange-YY')
|
|
7
|
+
SupportInputTypes.add('date-M1')
|
|
8
|
+
SupportInputTypes.add('daterange-M1')
|
|
9
|
+
SupportInputTypes.add('date')
|
|
10
|
+
SupportInputTypes.add('daterange')
|
|
11
|
+
SupportInputTypes.add('datetime-HH')
|
|
12
|
+
SupportInputTypes.add('datetimerange-HH')
|
|
13
|
+
SupportInputTypes.add('datetime-mm')
|
|
14
|
+
SupportInputTypes.add('datetimerange-mm')
|
|
15
|
+
SupportInputTypes.add('datetime')
|
|
16
|
+
SupportInputTypes.add('datetimerange')
|
|
17
|
+
SupportInputTypes.add('timestamp')
|
|
18
|
+
|
|
19
|
+
SupportInputTypes.add('time-HH')
|
|
20
|
+
SupportInputTypes.add('timerange-HH')
|
|
21
|
+
SupportInputTypes.add('time-mm')
|
|
22
|
+
SupportInputTypes.add('timerange-mm')
|
|
23
|
+
SupportInputTypes.add('time')
|
|
24
|
+
SupportInputTypes.add('timerange')
|
|
25
|
+
|
|
26
|
+
SupportInputTypes.add('timerange-HH-unorder')
|
|
27
|
+
SupportInputTypes.add('timerange-mm-unorder')
|
|
28
|
+
SupportInputTypes.add('timerange-unorder')
|
|
29
|
+
|
|
30
|
+
SupportInputTypes.add('text')
|
|
31
|
+
SupportInputTypes.add('textarea')
|
|
32
|
+
SupportInputTypes.add('text-view')
|
|
33
|
+
SupportInputTypes.add('html')
|
|
34
|
+
SupportInputTypes.add('steps')
|
|
35
|
+
SupportInputTypes.add('progress')
|
|
36
|
+
SupportInputTypes.add('password')
|
|
37
|
+
SupportInputTypes.add('preselect')
|
|
38
|
+
SupportInputTypes.add('select')
|
|
39
|
+
SupportInputTypes.add('multiselect')
|
|
40
|
+
SupportInputTypes.add('checkbox')
|
|
41
|
+
SupportInputTypes.add('radio')
|
|
42
|
+
SupportInputTypes.add('yes-no-select')
|
|
43
|
+
SupportInputTypes.add('yes-no-radio')
|
|
44
|
+
SupportInputTypes.add('yes-no-switch')
|
|
45
|
+
SupportInputTypes.add('caselect')
|
|
46
|
+
SupportInputTypes.add('relation')
|
|
47
|
+
SupportInputTypes.add('file')
|
|
48
|
+
SupportInputTypes.add('picture')
|
|
49
|
+
SupportInputTypes.add('chemstruc')
|
|
50
|
+
SupportInputTypes.add('sql-code-editor')
|
|
51
|
+
SupportInputTypes.add('video')// 没支持上
|
|
52
|
+
SupportInputTypes.add('takeVideo')// 没支持上
|
|
53
|
+
SupportInputTypes.add('signature')// 签名组件
|
|
54
|
+
SupportInputTypes.add('non-download-file')
|
|
55
|
+
|
|
56
|
+
SupportInputTypes.add('decimal')
|
|
57
|
+
SupportInputTypes.add('float')
|
|
58
|
+
SupportInputTypes.add('double')
|
|
59
|
+
SupportInputTypes.add('int')
|
|
60
|
+
SupportInputTypes.add('relselect')
|
|
61
|
+
SupportInputTypes.add('relselect-extdis')
|
|
62
|
+
SupportInputTypes.add('relselectvalue')// 弃用
|
|
63
|
+
SupportInputTypes.add('entity-select-value')
|
|
64
|
+
SupportInputTypes.add('refselect')
|
|
65
|
+
SupportInputTypes.add('field-history')
|
|
66
|
+
|
|
67
|
+
SupportInputTypes.add('range')
|
|
68
|
+
SupportInputTypes.add('intrange')
|
|
69
|
+
SupportInputTypes.add('decimalrange')
|
|
70
|
+
SupportInputTypes.add('texttags')
|
|
71
|
+
// SupportInputTypes.add('relation_existion');
|
|
72
|
+
SupportInputTypes.add('entity-select')
|
|
73
|
+
SupportInputTypes.add('table-entity-select')
|
|
74
|
+
SupportInputTypes.add('modal-entity-select')
|
|
75
|
+
SupportInputTypes.add('color')
|
|
76
|
+
SupportInputTypes.add('url')
|
|
77
|
+
SupportInputTypes.add('hidden')
|
|
78
|
+
SupportInputTypes.add('lab-tree-select')
|
|
79
|
+
SupportInputTypes.add('tree-entity-select-value')
|
|
80
|
+
SupportInputTypes.add('tree-entity-select')
|
|
81
|
+
SupportInputTypes.add('ltree-entity-select-value')
|
|
82
|
+
SupportInputTypes.add('ltree-entity-select')
|
|
83
|
+
SupportInputTypes.add('field-history')
|
|
84
|
+
SupportInputTypes.add('relfile')
|
|
85
|
+
SupportInputTypes.add('QRCode')
|
|
86
|
+
SupportInputTypes.add('progress')
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
const CUSTOM_VIEW_CONTROL_MAP: { [key: string]: string } = {}
|
|
90
|
+
|
|
91
|
+
function ControlTypeSupportor() {
|
|
92
|
+
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
function getCustomViewControl(key: string) {
|
|
96
|
+
if (!key) {
|
|
97
|
+
return null
|
|
98
|
+
}
|
|
99
|
+
if (!key.startsWith('/')) {
|
|
100
|
+
return CUSTOM_VIEW_CONTROL_MAP[`/${key}`]
|
|
101
|
+
}
|
|
102
|
+
else {
|
|
103
|
+
return CUSTOM_VIEW_CONTROL_MAP[key]
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
ControlTypeSupportor.isSupport = function (type: string): boolean {
|
|
107
|
+
if (type) {
|
|
108
|
+
if (getCustomViewControl(type)) {
|
|
109
|
+
return true
|
|
110
|
+
}
|
|
111
|
+
else {
|
|
112
|
+
return SupportInputTypes.has(type)
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
else {
|
|
116
|
+
return false
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
ControlTypeSupportor.getSupportControlType = function (fieldConfig: Fields): string {
|
|
120
|
+
if (!fieldConfig) {
|
|
121
|
+
return 'text'
|
|
122
|
+
}
|
|
123
|
+
if (this.isSupport(fieldConfig.extControlType)) {
|
|
124
|
+
return fieldConfig.extControlType
|
|
125
|
+
}
|
|
126
|
+
else if (this.isSupport(fieldConfig.controlType)) {
|
|
127
|
+
return fieldConfig.controlType
|
|
128
|
+
}
|
|
129
|
+
else {
|
|
130
|
+
return 'text'
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
ControlTypeSupportor.getControlType = function (fieldConfig: Fields, fieldValue?: any) {
|
|
135
|
+
let itemType: string
|
|
136
|
+
itemType = this.getSupportControlType(fieldConfig)
|
|
137
|
+
// 对关系属性之文件进行特殊处理
|
|
138
|
+
if (fieldValue && typeof (fieldValue) == 'string' && !fieldValue.includes('@R@') && itemType === 'relselect' && fieldValue.includes('download-files/')) {
|
|
139
|
+
itemType = 'file'
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
if (fieldValue && Array.isArray(fieldValue) && itemType === 'relselect' && fieldValue.length > 0 && fieldValue[0].includes('valid')) {
|
|
143
|
+
itemType = 'file'
|
|
144
|
+
}
|
|
145
|
+
return itemType
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
export default ControlTypeSupportor
|