@ibiz-template/vue3-components 0.7.38-alpha.12 → 0.7.38-alpha.31
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/dist/ibiz-markdown-editor-BZ8j-yda.js +1 -0
- package/dist/{index-B_Fo_3Rt.js → index-CnCC-cC2.js} +1 -1
- package/dist/index-Q4QqDXYJ.js +4 -0
- package/dist/{index-BvI3oZGL.js → index-X3QXftIl.js} +1 -1
- package/dist/index.min.css +1 -1
- package/dist/index.system.min.js +1 -1
- package/dist/wang-editor-Btv6GIhJ.js +1 -0
- package/dist/{xlsx-util-XDKOLzzW.js → xlsx-util-DbA3TyD9.js} +1 -1
- package/es/common/action-toolbar/action-toolbar.css +1 -1
- package/es/common/action-toolbar/action-toolbar.mjs +6 -3
- package/es/common/anchor-container/anchor-bar-list/anchor-bar-list.css +1 -1
- package/es/common/control-navigation/control-navigation.css +1 -0
- package/es/common/control-navigation/control-navigation.d.ts +32 -0
- package/es/common/control-navigation/control-navigation.mjs +116 -0
- package/es/common/control-navigation/provider/calendar-navigation.provider.d.ts +17 -0
- package/es/common/control-navigation/provider/calendar-navigation.provider.mjs +55 -0
- package/es/common/control-navigation/provider/index.d.ts +10 -0
- package/es/common/control-navigation/provider/index.mjs +17 -0
- package/es/common/control-navigation/provider/navigation-base.provider.d.ts +84 -0
- package/es/common/control-navigation/provider/navigation-base.provider.mjs +142 -0
- package/es/common/control-navigation/provider/tree-navigation.provider.d.ts +30 -0
- package/es/common/control-navigation/provider/tree-navigation.provider.mjs +81 -0
- package/es/common/custom-filter-condition/custom-filter-condition.d.ts +2 -0
- package/es/common/custom-theme/custom-theme-model.mjs +5 -13
- package/es/common/data-import2/data-import2.mjs +1 -1
- package/es/common/gantt-setting/gantt-setting.css +1 -0
- package/es/common/gantt-setting/gantt-setting.d.ts +63 -0
- package/es/common/gantt-setting/gantt-setting.mjs +237 -0
- package/es/common/grid-setting/grid-setting.css +1 -1
- package/es/common/grid-setting/grid-setting.d.ts +3 -1
- package/es/common/grid-setting/grid-setting.mjs +21 -5
- package/es/common/index.mjs +6 -0
- package/es/common/nav-split/nav-split.css +1 -0
- package/es/common/nav-split/nav-split.d.ts +57 -0
- package/es/common/nav-split/nav-split.mjs +209 -0
- package/es/common/pql-editor/utils/index.mjs +30 -40
- package/es/common/split/split.css +1 -1
- package/es/common/view-message/view-message.d.ts +2 -0
- package/es/control/app-menu/app-menu.css +1 -1
- package/es/control/app-menu/app-menu.d.ts +3 -0
- package/es/control/app-menu/app-menu.mjs +62 -22
- package/es/control/app-menu/custom-menu-design/custom-menu-design.mjs +12 -3
- package/es/control/app-menu/index.d.ts +3 -0
- package/es/control/calendar/calendar.css +1 -1
- package/es/control/calendar/calendar.d.ts +12 -1
- package/es/control/calendar/calendar.mjs +42 -10
- package/es/control/calendar/index.d.ts +12 -1
- package/es/control/dashboard/custom-dashboard-container/custom-dashboard-container.d.ts +54 -0
- package/es/control/dashboard/custom-dashboard-container/custom-dashboard-container.mjs +10 -3
- package/es/control/dashboard/dashboard-design/dashboard-design.mjs +2 -1
- package/es/control/dashboard/dashboard.mjs +13 -1
- package/es/control/dashboard/portlet/filter-portlet/filter-portlet-design/filter-portlet-design.css +1 -1
- package/es/control/dashboard/portlet/filter-portlet/filter-portlet-design/filter-portlet-design.mjs +9 -4
- package/es/control/data-view/data-view.css +1 -1
- package/es/control/data-view/data-view.d.ts +1 -0
- package/es/control/data-view/data-view.mjs +21 -3
- package/es/control/data-view/index.d.ts +1 -0
- package/es/control/drbar/drbar.controller.mjs +2 -2
- package/es/control/drtab/drtab-control.util.mjs +1 -1
- package/es/control/drtab/drtab.controller.d.ts +28 -8
- package/es/control/drtab/drtab.controller.mjs +62 -11
- package/es/control/drtab/drtab.css +1 -1
- package/es/control/drtab/drtab.d.ts +3 -1
- package/es/control/drtab/drtab.mjs +68 -9
- package/es/control/drtab/index.d.ts +3 -1
- package/es/control/form/form-detail/form-group-panel/form-group-panel.mjs +1 -1
- package/es/control/form/form-detail/form-item/form-item.d.ts +1 -0
- package/es/control/form/form-detail/form-item/form-item.mjs +21 -2
- package/es/control/form/form-detail/form-item/index.d.ts +1 -0
- package/es/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-grid/repeater-grid.d.ts +104 -0
- package/es/control/form/form-detail/form-tab-panel/form-tab-panel.css +1 -1
- package/es/control/form/form-detail/form-tab-panel/form-tab-panel.mjs +1 -1
- package/es/control/form/search-form/index.d.ts +9 -0
- package/es/control/form/search-form/search-form.d.ts +9 -0
- package/es/control/form/search-form/search-form.mjs +4 -0
- package/es/control/gantt/gantt.css +1 -1
- package/es/control/gantt/gantt.d.ts +3 -4
- package/es/control/gantt/gantt.mjs +158 -52
- package/es/control/gantt/index.d.ts +3 -4
- package/es/control/grid/grid/grid-control.util.d.ts +2 -0
- package/es/control/grid/grid/grid-control.util.mjs +40 -4
- package/es/control/grid/grid/grid.css +1 -1
- package/es/control/grid/grid/grid.mjs +86 -73
- package/es/control/grid/grid-column/grid-field-column/grid-field-column.d.ts +1 -0
- package/es/control/grid/grid-column/grid-field-column/grid-field-column.mjs +21 -1
- package/es/control/grid/grid-column/grid-field-column/index.d.ts +1 -0
- package/es/control/list/index.d.ts +1 -0
- package/es/control/list/list.css +1 -1
- package/es/control/list/list.d.ts +1 -0
- package/es/control/list/list.mjs +23 -5
- package/es/control/map/map.d.ts +9 -0
- package/es/control/map/map.mjs +4 -0
- package/es/control/search-bar/search-groups/search-groups.mjs +2 -2
- package/es/control/tab-exp-panel/tab-exp-panel.css +1 -1
- package/es/control/toolbar/toolbar.mjs +3 -0
- package/es/control/tree/el-tree-util.d.ts +39 -1
- package/es/control/tree/el-tree-util.mjs +70 -2
- package/es/control/tree/index.d.ts +16 -14
- package/es/control/tree/tree.css +1 -1
- package/es/control/tree/tree.d.ts +16 -14
- package/es/control/tree/tree.mjs +60 -31
- package/es/control/tree-grid-ex/tree-grid-ex-column/tree-grid-ex-field-column/tree-grid-ex-field-column.mjs +17 -1
- package/es/editor/data-picker/ibiz-picker-embed-view/ibiz-picker-embed-view.css +1 -1
- package/es/editor/data-picker/ibiz-picker-embed-view/ibiz-picker-embed-view.d.ts +3 -8
- package/es/editor/data-picker/ibiz-picker-embed-view/ibiz-picker-embed-view.mjs +22 -23
- package/es/editor/data-picker/ibiz-picker-select-view/ibiz-picker-select-view.mjs +1 -0
- package/es/editor/date-range/ibiz-date-range-picker/ibiz-date-range-picker.mjs +3 -1
- package/es/editor/dropdown-list/ibiz-dropdown/ibiz-dropdown.css +1 -1
- package/es/editor/dropdown-list/ibiz-dropdown/ibiz-dropdown.mjs +8 -2
- package/es/editor/html/wang-editor/wang-editor.mjs +1 -1
- package/es/editor/markdown/ibiz-markdown-editor/ibiz-markdown-editor.mjs +1 -1
- package/es/editor/span/span/span.mjs +7 -1
- package/es/editor/span/span-editor.controller.d.ts +7 -0
- package/es/editor/span/span-editor.controller.mjs +10 -0
- package/es/editor/text-box/ibiz-input-number/ibiz-input-number.css +1 -1
- package/es/editor/text-box/ibiz-input-number/ibiz-input-number.mjs +24 -6
- package/es/editor/text-box/input/input.css +1 -1
- package/es/editor/text-box/input/input.mjs +32 -5
- package/es/editor/text-box/text-box-editor.controller.d.ts +7 -0
- package/es/editor/text-box/text-box-editor.controller.mjs +10 -0
- package/es/editor/upload/use/use-iview-upload.mjs +1 -1
- package/es/locale/en/index.d.ts +33 -0
- package/es/locale/en/index.mjs +27 -2
- package/es/locale/zh-CN/index.d.ts +33 -0
- package/es/locale/zh-CN/index.mjs +27 -2
- package/es/panel-component/auth-sso/auth-sso.css +1 -0
- package/es/panel-component/auth-sso/auth-sso.d.ts +26 -0
- package/es/panel-component/auth-sso/auth-sso.mjs +100 -0
- package/es/panel-component/auth-sso/auth-sso.provider.d.ts +6 -0
- package/es/panel-component/auth-sso/auth-sso.provider.mjs +21 -0
- package/es/panel-component/auth-sso/index.d.ts +23 -0
- package/es/panel-component/auth-sso/index.mjs +12 -0
- package/es/panel-component/auth-userinfo/auth-userinfo.css +1 -1
- package/es/panel-component/coop-pos/coop-pos.controller.d.ts +46 -1
- package/es/panel-component/coop-pos/coop-pos.controller.mjs +92 -1
- package/es/panel-component/coop-pos/coop-pos.css +1 -1
- package/es/panel-component/coop-pos/coop-pos.d.ts +4 -1
- package/es/panel-component/coop-pos/coop-pos.mjs +23 -3
- package/es/panel-component/coop-pos/index.d.ts +3 -0
- package/es/panel-component/index-actions/index-actions.css +1 -1
- package/es/panel-component/index.mjs +4 -1
- package/es/panel-component/nav-breadcrumb/nav-breadcrumb.controller.mjs +8 -31
- package/es/panel-component/nav-breadcrumb/nav-breadcrumb.service.d.ts +1 -1
- package/es/panel-component/nav-breadcrumb/nav-breadcrumb.service.mjs +1 -1
- package/es/panel-component/nav-pos-index/nav-pos-index.controller.mjs +7 -2
- package/es/panel-component/nav-tabs/nav-tabs.controller.d.ts +1 -1
- package/es/panel-component/nav-tabs/nav-tabs.controller.mjs +3 -3
- package/es/panel-component/panel-app-title/index.mjs +4 -0
- package/es/panel-component/panel-app-title/panel-app-title.controller.mjs +8 -0
- package/es/panel-component/panel-app-title/panel-app-title.css +1 -1
- package/es/panel-component/panel-app-title/panel-app-title.mjs +112 -108
- package/es/panel-component/panel-button-list/panel-button-list.controller.mjs +2 -1
- package/es/panel-component/panel-index-view-search/panel-index-view-search.css +1 -1
- package/es/panel-component/searchform-buttons/searchform-buttons.mjs +1 -1
- package/es/util/app-popover/app-popover-component.mjs +1 -1
- package/es/util/fullscreen/fullscreen-util.mjs +2 -2
- package/es/util/notification-util/notification-util.d.ts +10 -1
- package/es/util/notification-util/notification-util.mjs +36 -0
- package/es/util/notification-util/upload-manager/file-type.d.ts +8 -0
- package/es/util/notification-util/upload-manager/file-type.mjs +207 -0
- package/es/util/notification-util/upload-manager/upload-manager.css +1 -0
- package/es/util/notification-util/upload-manager/upload-manager.d.ts +64 -0
- package/es/util/notification-util/upload-manager/upload-manager.mjs +159 -0
- package/es/util/pagination/use-pagination.mjs +5 -4
- package/es/view/login-view/login-view.mjs +18 -0
- package/es/view-engine/edit-view.engine.mjs +14 -0
- package/es/view-engine/login-view.engine.mjs +1 -0
- package/es/view-engine/opt-view.engine.d.ts +1 -0
- package/es/view-engine/opt-view.engine.mjs +41 -1
- package/es/view-engine/tab-exp-view.engine.d.ts +9 -0
- package/es/view-engine/tab-exp-view.engine.mjs +20 -1
- package/es/view-engine/tab-search-view.engine.d.ts +9 -1
- package/es/view-engine/tab-search-view.engine.mjs +52 -2
- package/es/web-app/attach-environment-config.mjs +5 -1
- package/es/web-app/guard/auth-guard/auth-guard.d.ts +21 -14
- package/es/web-app/guard/auth-guard/auth-guard.mjs +26 -19
- package/es/web-app/guard/auth-guard/dyna-auth-guard.d.ts +1 -1
- package/es/web-app/guard/auth-guard/dyna-auth-guard.mjs +2 -1
- package/es/web-app/main.mjs +3 -1
- package/es/web-app/router/index.d.ts +3 -2
- package/es/web-app/router/index.mjs +15 -4
- package/lib/common/action-toolbar/action-toolbar.cjs +6 -3
- package/lib/common/action-toolbar/action-toolbar.css +1 -1
- package/lib/common/anchor-container/anchor-bar-list/anchor-bar-list.css +1 -1
- package/lib/common/control-navigation/control-navigation.cjs +118 -0
- package/lib/common/control-navigation/control-navigation.css +1 -0
- package/lib/common/control-navigation/provider/calendar-navigation.provider.cjs +57 -0
- package/lib/common/control-navigation/provider/index.cjs +19 -0
- package/lib/common/control-navigation/provider/navigation-base.provider.cjs +144 -0
- package/lib/common/control-navigation/provider/tree-navigation.provider.cjs +83 -0
- package/lib/common/custom-theme/custom-theme-model.cjs +5 -13
- package/lib/common/data-import2/data-import2.cjs +1 -1
- package/lib/common/gantt-setting/gantt-setting.cjs +239 -0
- package/lib/common/gantt-setting/gantt-setting.css +1 -0
- package/lib/common/grid-setting/grid-setting.cjs +21 -5
- package/lib/common/grid-setting/grid-setting.css +1 -1
- package/lib/common/index.cjs +6 -0
- package/lib/common/nav-split/nav-split.cjs +211 -0
- package/lib/common/nav-split/nav-split.css +1 -0
- package/lib/common/pql-editor/utils/index.cjs +30 -40
- package/lib/common/split/split.css +1 -1
- package/lib/control/app-menu/app-menu.cjs +60 -20
- package/lib/control/app-menu/app-menu.css +1 -1
- package/lib/control/app-menu/custom-menu-design/custom-menu-design.cjs +11 -2
- package/lib/control/calendar/calendar.cjs +42 -10
- package/lib/control/calendar/calendar.css +1 -1
- package/lib/control/dashboard/custom-dashboard-container/custom-dashboard-container.cjs +10 -3
- package/lib/control/dashboard/dashboard-design/dashboard-design.cjs +2 -1
- package/lib/control/dashboard/dashboard.cjs +13 -1
- package/lib/control/dashboard/portlet/filter-portlet/filter-portlet-design/filter-portlet-design.cjs +9 -4
- package/lib/control/dashboard/portlet/filter-portlet/filter-portlet-design/filter-portlet-design.css +1 -1
- package/lib/control/data-view/data-view.cjs +21 -3
- package/lib/control/data-view/data-view.css +1 -1
- package/lib/control/drbar/drbar.controller.cjs +2 -2
- package/lib/control/drtab/drtab-control.util.cjs +1 -1
- package/lib/control/drtab/drtab.cjs +67 -8
- package/lib/control/drtab/drtab.controller.cjs +62 -11
- package/lib/control/drtab/drtab.css +1 -1
- package/lib/control/form/form-detail/form-group-panel/form-group-panel.cjs +1 -1
- package/lib/control/form/form-detail/form-item/form-item.cjs +20 -1
- package/lib/control/form/form-detail/form-tab-panel/form-tab-panel.cjs +1 -1
- package/lib/control/form/form-detail/form-tab-panel/form-tab-panel.css +1 -1
- package/lib/control/form/search-form/search-form.cjs +4 -0
- package/lib/control/gantt/gantt.cjs +156 -50
- package/lib/control/gantt/gantt.css +1 -1
- package/lib/control/grid/grid/grid-control.util.cjs +39 -3
- package/lib/control/grid/grid/grid.cjs +86 -73
- package/lib/control/grid/grid/grid.css +1 -1
- package/lib/control/grid/grid-column/grid-field-column/grid-field-column.cjs +21 -1
- package/lib/control/list/list.cjs +23 -5
- package/lib/control/list/list.css +1 -1
- package/lib/control/map/map.cjs +4 -0
- package/lib/control/search-bar/search-groups/search-groups.cjs +2 -2
- package/lib/control/tab-exp-panel/tab-exp-panel.css +1 -1
- package/lib/control/toolbar/toolbar.cjs +3 -0
- package/lib/control/tree/el-tree-util.cjs +70 -0
- package/lib/control/tree/tree.cjs +58 -29
- package/lib/control/tree/tree.css +1 -1
- package/lib/control/tree-grid-ex/tree-grid-ex-column/tree-grid-ex-field-column/tree-grid-ex-field-column.cjs +17 -1
- package/lib/editor/data-picker/ibiz-picker-embed-view/ibiz-picker-embed-view.cjs +21 -22
- package/lib/editor/data-picker/ibiz-picker-embed-view/ibiz-picker-embed-view.css +1 -1
- package/lib/editor/data-picker/ibiz-picker-select-view/ibiz-picker-select-view.cjs +1 -0
- package/lib/editor/date-range/ibiz-date-range-picker/ibiz-date-range-picker.cjs +3 -1
- package/lib/editor/dropdown-list/ibiz-dropdown/ibiz-dropdown.cjs +8 -2
- package/lib/editor/dropdown-list/ibiz-dropdown/ibiz-dropdown.css +1 -1
- package/lib/editor/html/wang-editor/wang-editor.cjs +1 -1
- package/lib/editor/markdown/ibiz-markdown-editor/ibiz-markdown-editor.cjs +1 -1
- package/lib/editor/span/span/span.cjs +7 -1
- package/lib/editor/span/span-editor.controller.cjs +10 -0
- package/lib/editor/text-box/ibiz-input-number/ibiz-input-number.cjs +24 -6
- package/lib/editor/text-box/ibiz-input-number/ibiz-input-number.css +1 -1
- package/lib/editor/text-box/input/input.cjs +32 -5
- package/lib/editor/text-box/input/input.css +1 -1
- package/lib/editor/text-box/text-box-editor.controller.cjs +10 -0
- package/lib/editor/upload/use/use-iview-upload.cjs +1 -1
- package/lib/locale/en/index.cjs +27 -2
- package/lib/locale/zh-CN/index.cjs +27 -2
- package/lib/panel-component/auth-sso/auth-sso.cjs +102 -0
- package/lib/panel-component/auth-sso/auth-sso.css +1 -0
- package/lib/panel-component/auth-sso/auth-sso.provider.cjs +23 -0
- package/lib/panel-component/auth-sso/index.cjs +17 -0
- package/lib/panel-component/auth-userinfo/auth-userinfo.css +1 -1
- package/lib/panel-component/coop-pos/coop-pos.cjs +22 -2
- package/lib/panel-component/coop-pos/coop-pos.controller.cjs +91 -0
- package/lib/panel-component/coop-pos/coop-pos.css +1 -1
- package/lib/panel-component/index-actions/index-actions.css +1 -1
- package/lib/panel-component/index.cjs +39 -36
- package/lib/panel-component/nav-breadcrumb/nav-breadcrumb.controller.cjs +7 -30
- package/lib/panel-component/nav-breadcrumb/nav-breadcrumb.service.cjs +1 -1
- package/lib/panel-component/nav-pos-index/nav-pos-index.controller.cjs +7 -2
- package/lib/panel-component/nav-tabs/nav-tabs.controller.cjs +3 -3
- package/lib/panel-component/panel-app-title/index.cjs +4 -0
- package/lib/panel-component/panel-app-title/panel-app-title.cjs +112 -108
- package/lib/panel-component/panel-app-title/panel-app-title.controller.cjs +8 -0
- package/lib/panel-component/panel-app-title/panel-app-title.css +1 -1
- package/lib/panel-component/panel-button-list/panel-button-list.controller.cjs +2 -1
- package/lib/panel-component/panel-index-view-search/panel-index-view-search.css +1 -1
- package/lib/panel-component/searchform-buttons/searchform-buttons.cjs +1 -1
- package/lib/util/app-popover/app-popover-component.cjs +1 -1
- package/lib/util/fullscreen/fullscreen-util.cjs +2 -2
- package/lib/util/notification-util/notification-util.cjs +36 -0
- package/lib/util/notification-util/upload-manager/file-type.cjs +209 -0
- package/lib/util/notification-util/upload-manager/upload-manager.cjs +161 -0
- package/lib/util/notification-util/upload-manager/upload-manager.css +1 -0
- package/lib/util/pagination/use-pagination.cjs +5 -4
- package/lib/view/login-view/login-view.cjs +18 -0
- package/lib/view-engine/edit-view.engine.cjs +14 -0
- package/lib/view-engine/login-view.engine.cjs +1 -0
- package/lib/view-engine/opt-view.engine.cjs +40 -0
- package/lib/view-engine/tab-exp-view.engine.cjs +19 -0
- package/lib/view-engine/tab-search-view.engine.cjs +52 -2
- package/lib/web-app/attach-environment-config.cjs +5 -1
- package/lib/web-app/guard/auth-guard/auth-guard.cjs +26 -19
- package/lib/web-app/guard/auth-guard/dyna-auth-guard.cjs +2 -1
- package/lib/web-app/main.cjs +3 -1
- package/lib/web-app/router/index.cjs +15 -4
- package/package.json +11 -11
- package/dist/ibiz-markdown-editor-B4c6yGAW.js +0 -1
- package/dist/index-VQ3FT6ih.js +0 -4
- package/dist/wang-editor-BUIAd4uJ.js +0 -1
- /package/es/node_modules/.pnpm/{@ibiz-template_core@0.7.35-alpha.1_axios@1.7.7_lodash-es@4.17.21_qs@6.13.0_qx-util@0.4.8_ramda@0.29.1 → @ibiz-template_core@0.7.38-alpha.32_axios@1.7.7_lodash-es@4.17.21_qs@6.13.0_qx-util@0.4.8_ramda@0.29.1}/node_modules/@ibiz-template/core/out/utils/namespace/namespace.mjs +0 -0
- /package/lib/node_modules/.pnpm/{@ibiz-template_core@0.7.35-alpha.1_axios@1.7.7_lodash-es@4.17.21_qs@6.13.0_qx-util@0.4.8_ramda@0.29.1 → @ibiz-template_core@0.7.38-alpha.32_axios@1.7.7_lodash-es@4.17.21_qs@6.13.0_qx-util@0.4.8_ramda@0.29.1}/node_modules/@ibiz-template/core/out/utils/namespace/namespace.cjs +0 -0
|
@@ -56,6 +56,7 @@ export declare const IBizDataViewControl: import("@ibiz-template/vue3-util").Typ
|
|
|
56
56
|
renderHasData: () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
57
57
|
[key: string]: any;
|
|
58
58
|
}>;
|
|
59
|
+
onShowNavView: () => void;
|
|
59
60
|
renderNoData: () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
60
61
|
[key: string]: any;
|
|
61
62
|
}> | undefined;
|
|
@@ -265,7 +265,7 @@ class DRBarController extends ControlController {
|
|
|
265
265
|
} else {
|
|
266
266
|
await this.calcDrBarItemsState();
|
|
267
267
|
}
|
|
268
|
-
if (this.form.state.isLoaded) {
|
|
268
|
+
if (this.form && this.form.state.isLoaded) {
|
|
269
269
|
this.doDefaultSelect();
|
|
270
270
|
}
|
|
271
271
|
}
|
|
@@ -388,7 +388,7 @@ class DRBarController extends ControlController {
|
|
|
388
388
|
* @param {string} key
|
|
389
389
|
* @memberof DRBarController
|
|
390
390
|
*/
|
|
391
|
-
handleSelectChange(key = this.state.defaultItem, isRoutePushed = false) {
|
|
391
|
+
handleSelectChange(key = this.state.selectedItem || this.state.defaultItem, isRoutePushed = false) {
|
|
392
392
|
var _a;
|
|
393
393
|
if (this.state.selectedItem === key) {
|
|
394
394
|
return;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ref, watch, watchEffect, onUnmounted } from 'vue';
|
|
2
|
-
import { defaultNamespace } from '../../node_modules/.pnpm/@ibiz-template_core@0.7.
|
|
2
|
+
import { defaultNamespace } from '../../node_modules/.pnpm/@ibiz-template_core@0.7.38-alpha.32_axios@1.7.7_lodash-es@4.17.21_qs@6.13.0_qx-util@0.4.8_ramda@0.29.1/node_modules/@ibiz-template/core/out/utils/namespace/namespace.mjs';
|
|
3
3
|
|
|
4
4
|
"use strict";
|
|
5
5
|
function useAppDRTab(c, controlRef, counterData) {
|
|
@@ -17,6 +17,18 @@ export declare class DRTabController extends ControlController<IDEDRTab, IDRTabS
|
|
|
17
17
|
* @type {AppCounter}
|
|
18
18
|
*/
|
|
19
19
|
counter?: AppCounter;
|
|
20
|
+
/**
|
|
21
|
+
* @description 启用缓存
|
|
22
|
+
* @type {boolean}
|
|
23
|
+
* @memberof DRTabController
|
|
24
|
+
*/
|
|
25
|
+
srfCachePos: boolean;
|
|
26
|
+
/**
|
|
27
|
+
* @description 缓存标记
|
|
28
|
+
* @type {string}
|
|
29
|
+
* @memberof DRTabController
|
|
30
|
+
*/
|
|
31
|
+
srfCacheKeyTempl: string;
|
|
20
32
|
/**
|
|
21
33
|
* 导航占位控制器
|
|
22
34
|
*
|
|
@@ -39,6 +51,13 @@ export declare class DRTabController extends ControlController<IDEDRTab, IDRTabS
|
|
|
39
51
|
* @memberof DRTabController
|
|
40
52
|
*/
|
|
41
53
|
get routeDepth(): number | undefined;
|
|
54
|
+
/**
|
|
55
|
+
* @description 选中缓存标识
|
|
56
|
+
* @readonly
|
|
57
|
+
* @type {string}
|
|
58
|
+
* @memberof DRTabController
|
|
59
|
+
*/
|
|
60
|
+
get storageTag(): string;
|
|
42
61
|
/**
|
|
43
62
|
* Router 对象
|
|
44
63
|
*
|
|
@@ -74,13 +93,6 @@ export declare class DRTabController extends ControlController<IDEDRTab, IDRTabS
|
|
|
74
93
|
* @memberof DRTabController
|
|
75
94
|
*/
|
|
76
95
|
onCreated(): Promise<void>;
|
|
77
|
-
/**
|
|
78
|
-
* 部件参数解析
|
|
79
|
-
*
|
|
80
|
-
* @protected
|
|
81
|
-
* @memberof ControlController
|
|
82
|
-
*/
|
|
83
|
-
protected handleControlParams(): void;
|
|
84
96
|
/**
|
|
85
97
|
* 通过计数器数据,计算项状态
|
|
86
98
|
*
|
|
@@ -182,7 +194,7 @@ export declare class DRTabController extends ControlController<IDEDRTab, IDRTabS
|
|
|
182
194
|
* @param {boolean} [isRoutePushed=false]
|
|
183
195
|
* @return {*} {Promise<void>}
|
|
184
196
|
*/
|
|
185
|
-
openNavPosView(drTabPages: IDEDRCtrlItem, isRoutePushed?: boolean): Promise<void>;
|
|
197
|
+
openNavPosView(drTabPages: IDEDRCtrlItem, isRoutePushed?: boolean, navViewKey?: string): Promise<void>;
|
|
186
198
|
/**
|
|
187
199
|
* 初始化计数器
|
|
188
200
|
* @author lxm
|
|
@@ -191,6 +203,14 @@ export declare class DRTabController extends ControlController<IDEDRTab, IDRTabS
|
|
|
191
203
|
* @return {*} {Promise<void>}
|
|
192
204
|
*/
|
|
193
205
|
protected initCounter(): Promise<void>;
|
|
206
|
+
/**
|
|
207
|
+
* 刷新
|
|
208
|
+
*
|
|
209
|
+
* @author tony001
|
|
210
|
+
* @date 2024-10-21 11:10:10
|
|
211
|
+
* @return {*} {Promise<void>}
|
|
212
|
+
*/
|
|
213
|
+
refresh(): Promise<void>;
|
|
194
214
|
/**
|
|
195
215
|
* 监听组件销毁
|
|
196
216
|
*
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { createUUID } from 'qx-util';
|
|
1
2
|
import { ControlController, calcItemVisibleByCounter, calcItemVisible, Srfuf, hasSubRoute, calcNavParams, CounterService } from '@ibiz-template/runtime';
|
|
2
3
|
import { getNestedRoutePath } from '@ibiz-template/vue3-util';
|
|
3
4
|
|
|
@@ -18,6 +19,18 @@ class DRTabController extends ControlController {
|
|
|
18
19
|
* @type {AppCounter}
|
|
19
20
|
*/
|
|
20
21
|
__publicField(this, "counter");
|
|
22
|
+
/**
|
|
23
|
+
* @description 启用缓存
|
|
24
|
+
* @type {boolean}
|
|
25
|
+
* @memberof DRTabController
|
|
26
|
+
*/
|
|
27
|
+
__publicField(this, "srfCachePos", false);
|
|
28
|
+
/**
|
|
29
|
+
* @description 缓存标记
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof DRTabController
|
|
32
|
+
*/
|
|
33
|
+
__publicField(this, "srfCacheKeyTempl", "");
|
|
21
34
|
/**
|
|
22
35
|
* Router 对象
|
|
23
36
|
*
|
|
@@ -56,6 +69,19 @@ class DRTabController extends ControlController {
|
|
|
56
69
|
get routeDepth() {
|
|
57
70
|
return this.view.modal.routeDepth;
|
|
58
71
|
}
|
|
72
|
+
/**
|
|
73
|
+
* @description 选中缓存标识
|
|
74
|
+
* @readonly
|
|
75
|
+
* @type {string}
|
|
76
|
+
* @memberof DRTabController
|
|
77
|
+
*/
|
|
78
|
+
get storageTag() {
|
|
79
|
+
if (this.srfCacheKeyTempl) {
|
|
80
|
+
return this.srfCacheKeyTempl;
|
|
81
|
+
}
|
|
82
|
+
const userId = this.context.srfuserid;
|
|
83
|
+
return "".concat(userId, "_").concat(this.view.model.codeName, "_").concat(this.model.codeName);
|
|
84
|
+
}
|
|
59
85
|
/**
|
|
60
86
|
* 设置 Router 对象
|
|
61
87
|
*
|
|
@@ -96,18 +122,13 @@ class DRTabController extends ControlController {
|
|
|
96
122
|
async onCreated() {
|
|
97
123
|
await super.onCreated();
|
|
98
124
|
await this.initCounter();
|
|
99
|
-
|
|
100
|
-
/**
|
|
101
|
-
* 部件参数解析
|
|
102
|
-
*
|
|
103
|
-
* @protected
|
|
104
|
-
* @memberof ControlController
|
|
105
|
-
*/
|
|
106
|
-
handleControlParams() {
|
|
107
|
-
super.handleControlParams();
|
|
125
|
+
this.srfCacheKeyTempl = this.controlParams.srfcachekeytempl || "";
|
|
108
126
|
if (this.controlParams.showmore) {
|
|
109
127
|
this.state.showMore = this.controlParams.showmore === "true";
|
|
110
128
|
}
|
|
129
|
+
if (this.controlParams.srfcachepos) {
|
|
130
|
+
this.srfCachePos = this.controlParams.srfcachepos.toLowerCase() === "true";
|
|
131
|
+
}
|
|
111
132
|
}
|
|
112
133
|
/**
|
|
113
134
|
* 通过计数器数据,计算项状态
|
|
@@ -315,6 +336,10 @@ class DRTabController extends ControlController {
|
|
|
315
336
|
this.state.activeName = this.view.state.srfnav;
|
|
316
337
|
} else {
|
|
317
338
|
this.state.activeName = drTabPages[0].tag;
|
|
339
|
+
if (this.srfCachePos && localStorage.getItem(this.storageTag)) {
|
|
340
|
+
const activeName = localStorage.getItem(this.storageTag);
|
|
341
|
+
this.state.activeName = activeName;
|
|
342
|
+
}
|
|
318
343
|
}
|
|
319
344
|
const isRoutePushed = !!this.routeDepth && hasSubRoute(this.routeDepth);
|
|
320
345
|
this.handleTabChange(isRoutePushed);
|
|
@@ -332,6 +357,9 @@ class DRTabController extends ControlController {
|
|
|
332
357
|
const drBarItem = (_a = this.model.dedrtabPages) == null ? void 0 : _a.find(
|
|
333
358
|
(item) => item.id === activeName
|
|
334
359
|
);
|
|
360
|
+
if (this.srfCachePos && activeName) {
|
|
361
|
+
localStorage.setItem("".concat(this.storageTag), activeName);
|
|
362
|
+
}
|
|
335
363
|
if (drBarItem) {
|
|
336
364
|
this.setVisible("navPos");
|
|
337
365
|
this.openNavPosView(drBarItem, isRoutePushed);
|
|
@@ -408,11 +436,11 @@ class DRTabController extends ControlController {
|
|
|
408
436
|
* @param {boolean} [isRoutePushed=false]
|
|
409
437
|
* @return {*} {Promise<void>}
|
|
410
438
|
*/
|
|
411
|
-
async openNavPosView(drTabPages, isRoutePushed = false) {
|
|
439
|
+
async openNavPosView(drTabPages, isRoutePushed = false, navViewKey) {
|
|
412
440
|
var _a;
|
|
413
441
|
const { context, params } = this.prepareParams(drTabPages);
|
|
414
442
|
(_a = this.navPos) == null ? void 0 : _a.openView({
|
|
415
|
-
key: drTabPages.id,
|
|
443
|
+
key: navViewKey || drTabPages.id,
|
|
416
444
|
context,
|
|
417
445
|
params,
|
|
418
446
|
viewId: drTabPages.appViewId,
|
|
@@ -439,6 +467,29 @@ class DRTabController extends ControlController {
|
|
|
439
467
|
this.counter.onChange(this.calcItemStateByCounter);
|
|
440
468
|
}
|
|
441
469
|
}
|
|
470
|
+
/**
|
|
471
|
+
* 刷新
|
|
472
|
+
*
|
|
473
|
+
* @author tony001
|
|
474
|
+
* @date 2024-10-21 11:10:10
|
|
475
|
+
* @return {*} {Promise<void>}
|
|
476
|
+
*/
|
|
477
|
+
async refresh() {
|
|
478
|
+
var _a;
|
|
479
|
+
const { activeName } = this.state;
|
|
480
|
+
const drBarItem = (_a = this.model.dedrtabPages) == null ? void 0 : _a.find(
|
|
481
|
+
(item) => item.id === activeName
|
|
482
|
+
);
|
|
483
|
+
if (drBarItem) {
|
|
484
|
+
this.setVisible("navPos");
|
|
485
|
+
this.openNavPosView(drBarItem, false, createUUID());
|
|
486
|
+
} else {
|
|
487
|
+
this.setVisible("form");
|
|
488
|
+
if (this.routeDepth && this.state.drTabPages[0]) {
|
|
489
|
+
this.router.push(this.state.drTabPages[0].fullPath);
|
|
490
|
+
}
|
|
491
|
+
}
|
|
492
|
+
}
|
|
442
493
|
/**
|
|
443
494
|
* 监听组件销毁
|
|
444
495
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.ibiz-control-drtab{--ibiz-control-drtab-active-color:var(--ibiz-color-primary);--ibiz-control-drtab-hover-color:var(--ibiz-color-text-0);--ibiz-control-drtab-hover-bg-color:transparent}.ibiz-control-drtab__counter{margin-left:var(--ibiz-spacing-tight)}.ibiz-control-drtab .el-tabs .el-tabs__header{margin:var(--ibiz-spacing-none)}.ibiz-control-drtab .el-tabs .el-tabs__header .el-tabs__nav-wrap{margin:var(--ibiz-spacing-none)}.ibiz-control-drtab .el-tabs .el-tabs__header .el-tabs__nav-wrap .el-tabs__nav .el-tabs__active-bar{background-color:var(--ibiz-control-drtab-active-color)}.ibiz-control-drtab .el-tabs .el-tabs__header .el-tabs__nav-wrap .el-tabs__nav .el-tabs__item{font-size:var(--ibiz-font-size-regular);color:var(--ibiz-color-text-2)}.ibiz-control-drtab .el-tabs .el-tabs__header .el-tabs__nav-wrap .el-tabs__nav .el-tabs__item:hover{color:var(--ibiz-control-drtab-hover-color);background-color:var(--ibiz-control-drtab-hover-bg-color)}.ibiz-control-drtab .el-tabs .el-tabs__header .el-tabs__nav-wrap .el-tabs__nav .el-tabs__item.is-active{color:var(--ibiz-control-drtab-active-color)}.ibiz-control-drtab .el-tabs .el-tabs__header .el-tabs__nav-wrap .el-tabs__nav .el-tabs__item.is-top:last-child{padding-right:var(--ibiz-spacing-none)}.ibiz-control-drtab .el-tabs.el-tabs--bottom .el-tabs__nav-scroll,.ibiz-control-drtab .el-tabs.el-tabs--top .el-tabs__nav-scroll{padding:0 var(--ibiz-spacing-base)}.ibiz-control-drtab .el-tabs__item{padding:0 var(--ibiz-spacing-base)}.ibiz-control-drtab .el-tabs__nav-next,.ibiz-control-drtab .el-tabs__nav-prev{line-height:var(--el-tabs-header-height)}.ibiz-control-drtab-
|
|
1
|
+
.ibiz-control-drtab{--ibiz-control-drtab-active-color:var(--ibiz-color-primary);--ibiz-control-drtab-hover-color:var(--ibiz-color-text-0);--ibiz-control-drtab-hover-bg-color:transparent}.ibiz-control-drtab__counter{margin-left:var(--ibiz-spacing-tight)}.ibiz-control-drtab .el-tabs .el-tabs__header{margin:var(--ibiz-spacing-none)}.ibiz-control-drtab .el-tabs .el-tabs__header .el-tabs__nav-wrap{margin:var(--ibiz-spacing-none)}.ibiz-control-drtab .el-tabs .el-tabs__header .el-tabs__nav-wrap .el-tabs__nav .el-tabs__active-bar{background-color:var(--ibiz-control-drtab-active-color)}.ibiz-control-drtab .el-tabs .el-tabs__header .el-tabs__nav-wrap .el-tabs__nav .el-tabs__item{font-size:var(--ibiz-font-size-regular);color:var(--ibiz-color-text-2)}.ibiz-control-drtab .el-tabs .el-tabs__header .el-tabs__nav-wrap .el-tabs__nav .el-tabs__item:hover{color:var(--ibiz-control-drtab-hover-color);background-color:var(--ibiz-control-drtab-hover-bg-color)}.ibiz-control-drtab .el-tabs .el-tabs__header .el-tabs__nav-wrap .el-tabs__nav .el-tabs__item.is-active{color:var(--ibiz-control-drtab-active-color)}.ibiz-control-drtab .el-tabs .el-tabs__header .el-tabs__nav-wrap .el-tabs__nav .el-tabs__item.is-top:last-child{padding-right:var(--ibiz-spacing-none)}.ibiz-control-drtab .el-tabs.el-tabs--bottom .el-tabs__nav-scroll,.ibiz-control-drtab .el-tabs.el-tabs--top .el-tabs__nav-scroll{padding:0 var(--ibiz-spacing-base)}.ibiz-control-drtab .el-tabs__item{padding:0 var(--ibiz-spacing-base)}.ibiz-control-drtab .el-tabs__nav-next,.ibiz-control-drtab .el-tabs__nav-prev{line-height:var(--el-tabs-header-height)}.ibiz-control-drtab-label__icon{margin-right:var(--ibiz-spacing-tight)}.ibiz-control-drtab-more .el-tabs.el-tabs.el-tabs--top .el-tabs__header .el-tabs__nav-next,.ibiz-control-drtab-more .el-tabs.el-tabs.el-tabs--top .el-tabs__header .el-tabs__nav-prev{display:none}.ibiz-control-drtab-more .el-tabs.el-tabs.el-tabs--top .el-tabs__nav-wrap.is-scrollable{padding:var(--ibiz-spacing-none)}.ibiz-control-drtab-more-dropdown{height:100%}.ibiz-control-drtab-more-dropdown__link{position:relative;display:flex;align-items:center;font-size:var(--ibiz-font-size-regular);color:var(--ibiz-color-text-2)}.ibiz-control-drtab-more-dropdown__link svg{color:var(--ibiz-color-text-2);fill:var(--ibiz-color-text-2)}.ibiz-control-drtab-more-dropdown__link:hover{color:var(--ibiz-color-text-0)}.ibiz-control-drtab-more-dropdown__link:hover svg{color:var(--ibiz-color-text-0);fill:var(--ibiz-color-text-0)}.ibiz-control-drtab-more-dropdown__link::after{position:absolute;left:-16px;display:inline-block;width:100%;height:100%;content:""}.ibiz-control-drtab-more-dropdown-popper{width:240px}.ibiz-control-drtab-more-dropdown-popper__active{background-color:var(--ibiz-color-primary-active)}.ibiz-control-drtab-more-dropdown-popper__label{display:flex;align-items:center;width:100%;overflow:hidden}.ibiz-control-drtab-more-dropdown-popper__label--text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ibiz-control-drtab-more-dropdown-popper__label--counter{min-width:20px;margin-left:var(--ibiz-spacing-tight)}.ibiz-control-drtab-more-dropdown-popper.el-popper.el-dropdown__popper .el-scrollbar .el-dropdown__list .ibiz-control-drtab-more-dropdown-popper__active.el-dropdown-menu__item{background-color:var(--ibiz-color-primary-active)}.ibiz-control-drtab-dropdown-list .ibiz-badge{width:var(--ibiz-width-icon-medium);height:var(--ibiz-width-icon-medium);display:flex;align-items:center;justify-content:center;font-size:var(--ibiz-font-size-small)}.ibiz-control-drtab-dropdown-list__trigger{display:flex;cursor:pointer;align-items:center;font-size:var(--ibiz-font-size-header-5)}.ibiz-control-drtab-dropdown-list__trigger .caption{position:relative;padding:var(--ibiz-spacing-tight)}.ibiz-control-drtab-dropdown-list__trigger .caption .ibiz-badge{top:0;right:-6px;position:absolute}.ibiz-control-drtab-dropdown-list__popper{max-width:220px;min-width:150px}.ibiz-control-drtab-dropdown-list__popper--content{max-height:26vh;overflow:auto}.ibiz-control-drtab-dropdown-list__popper--item{display:flex;align-items:center}.ibiz-control-drtab-dropdown-list__popper--item .caption{padding-right:var(--ibiz-spacing-tight);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ibiz-control-drtab-dropdown-list__popper--item .ibiz-badge{width:var(--ibiz-width-icon-medium);height:var(--ibiz-width-icon-medium);display:flex;align-items:center;justify-content:center;font-size:var(--ibiz-font-size-small);margin-right:var(--ibiz-spacing-tight)}.ibiz-control-drtab-dropdown-list__popper--item ion-icon{color:var(--ibiz-color-primary);font-size:var(--ibiz-width-icon-medium)}.ibiz-control-drtab-dropdown-list__popper--item.is-active{background-color:var(--ibiz-color-fill-0)!important}.ibiz-control-drtab-dropdown-list__popper.el-popper.el-dropdown__popper .el-scrollbar .el-dropdown__list{background-color:transparent}.ibiz-control-drtab-dropdown-list__popper.el-popper.el-dropdown__popper .el-scrollbar .el-dropdown__list .el-dropdown-menu__item{min-height:38px;color:var(--ibiz-color-text-0);background-color:transparent}.ibiz-control-drtab-dropdown-list__popper.el-popper.el-dropdown__popper .el-scrollbar .el-dropdown__list .el-dropdown-menu__item:hover{background-color:var(--ibiz-color-fill-0)}
|
|
@@ -26,8 +26,10 @@ export declare const DRTabControl: import("vue").DefineComponent<{
|
|
|
26
26
|
counterData: IData;
|
|
27
27
|
visibleItems: import("vue").Ref<IData>;
|
|
28
28
|
moreItems: import("vue").Ref<IData>;
|
|
29
|
+
tabPosition: string;
|
|
30
|
+
onTabChange: (key: string) => void;
|
|
29
31
|
handleTabChange: () => void;
|
|
30
|
-
|
|
32
|
+
renderDropdownList: () => JSX.Element;
|
|
31
33
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
32
34
|
modelData: {
|
|
33
35
|
type: PropType<IDEDRTab>;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { defineComponent, ref, reactive, onUnmounted, watch, createVNode, resolveComponent, createTextVNode } from 'vue';
|
|
1
|
+
import { defineComponent, ref, reactive, computed, onUnmounted, watch, createVNode, resolveComponent, createTextVNode } from 'vue';
|
|
2
2
|
import { useControlController, useNamespace, getNestedRoutePath, route2routePath } from '@ibiz-template/vue3-util';
|
|
3
3
|
import { useRouter, useRoute } from 'vue-router';
|
|
4
4
|
import { hasSubRoute } from '@ibiz-template/runtime';
|
|
5
5
|
import { isNil } from 'ramda';
|
|
6
6
|
import { showTitle } from '@ibiz-template/core';
|
|
7
7
|
import { DRTabController } from './drtab.controller.mjs';
|
|
8
|
-
import './drtab.css';
|
|
9
8
|
import { useAppDRTab } from './drtab-control.util.mjs';
|
|
9
|
+
import './drtab.css';
|
|
10
10
|
|
|
11
11
|
"use strict";
|
|
12
12
|
const DRTabControl = /* @__PURE__ */ defineComponent({
|
|
@@ -29,6 +29,7 @@ const DRTabControl = /* @__PURE__ */ defineComponent({
|
|
|
29
29
|
}
|
|
30
30
|
},
|
|
31
31
|
setup() {
|
|
32
|
+
var _a;
|
|
32
33
|
const c = useControlController((...args) => new DRTabController(...args));
|
|
33
34
|
const ns = useNamespace("control-".concat(c.model.controlType.toLowerCase()));
|
|
34
35
|
const router = useRouter();
|
|
@@ -41,20 +42,24 @@ const DRTabControl = /* @__PURE__ */ defineComponent({
|
|
|
41
42
|
const fn = (counter) => {
|
|
42
43
|
Object.assign(counterData, counter);
|
|
43
44
|
};
|
|
45
|
+
const tabPosition = ((_a = c.view.model.tabLayout) == null ? void 0 : _a.toLowerCase()) || "top";
|
|
44
46
|
c.evt.on("onCreated", () => {
|
|
45
47
|
if (c.counter) {
|
|
46
48
|
c.counter.onChange(fn, true);
|
|
47
49
|
}
|
|
48
50
|
});
|
|
51
|
+
const activeTab = computed(() => {
|
|
52
|
+
return c.state.drTabPages.find((tab) => tab.tag === c.state.activeName);
|
|
53
|
+
});
|
|
49
54
|
onUnmounted(() => {
|
|
50
|
-
var
|
|
51
|
-
(
|
|
55
|
+
var _a2;
|
|
56
|
+
(_a2 = c.counter) == null ? void 0 : _a2.offChange(fn);
|
|
52
57
|
});
|
|
53
58
|
c.setRouter(router);
|
|
54
59
|
const handleTabChange = () => {
|
|
55
60
|
c.handleTabChange();
|
|
56
61
|
};
|
|
57
|
-
const
|
|
62
|
+
const onTabChange = (key) => {
|
|
58
63
|
c.state.activeName = key;
|
|
59
64
|
c.handleTabChange();
|
|
60
65
|
};
|
|
@@ -93,6 +98,55 @@ const DRTabControl = /* @__PURE__ */ defineComponent({
|
|
|
93
98
|
immediate: true
|
|
94
99
|
});
|
|
95
100
|
}
|
|
101
|
+
const renderDropdownList = () => {
|
|
102
|
+
return createVNode(resolveComponent("el-dropdown"), {
|
|
103
|
+
"trigger": "click",
|
|
104
|
+
"class": ns.b("dropdown-list"),
|
|
105
|
+
"popper-class": ns.be("dropdown-list", "popper"),
|
|
106
|
+
"onCommand": onTabChange
|
|
107
|
+
}, {
|
|
108
|
+
default: () => {
|
|
109
|
+
var _a2, _b, _c;
|
|
110
|
+
return createVNode("div", {
|
|
111
|
+
"class": ns.be("dropdown-list", "trigger")
|
|
112
|
+
}, [((_a2 = activeTab.value) == null ? void 0 : _a2.sysImage) && createVNode(resolveComponent("iBizIcon"), {
|
|
113
|
+
"icon": activeTab.value.sysImage
|
|
114
|
+
}, null), createVNode("div", {
|
|
115
|
+
"class": "caption"
|
|
116
|
+
}, [(_b = activeTab.value) == null ? void 0 : _b.caption, ((_c = activeTab.value) == null ? void 0 : _c.counterId) && createVNode(resolveComponent("iBizBadge"), {
|
|
117
|
+
"value": counterData[activeTab.value.counterId],
|
|
118
|
+
"counterMode": activeTab.value.counterMode
|
|
119
|
+
}, null)]), createVNode("ion-icon", {
|
|
120
|
+
"name": "chevron-down-outline"
|
|
121
|
+
}, null)]);
|
|
122
|
+
},
|
|
123
|
+
dropdown: () => {
|
|
124
|
+
return createVNode("div", {
|
|
125
|
+
"class": ns.bem("dropdown-list", "popper", "content")
|
|
126
|
+
}, [c.state.drTabPages.map((tab) => {
|
|
127
|
+
if (!tab.hidden) {
|
|
128
|
+
return createVNode(resolveComponent("el-dropdown-item"), {
|
|
129
|
+
"class": [ns.bem("dropdown-list", "popper", "item"), ns.is("active", tab.tag === c.state.activeName)],
|
|
130
|
+
"command": tab.tag,
|
|
131
|
+
"disabled": tab.disabled
|
|
132
|
+
}, {
|
|
133
|
+
default: () => [tab.sysImage && createVNode(resolveComponent("iBizIcon"), {
|
|
134
|
+
"icon": tab.sysImage
|
|
135
|
+
}, null), createVNode("span", {
|
|
136
|
+
"class": "caption"
|
|
137
|
+
}, [tab.caption]), tab.counterId && createVNode(resolveComponent("iBizBadge"), {
|
|
138
|
+
"value": counterData[tab.counterId],
|
|
139
|
+
"counterMode": tab.counterMode
|
|
140
|
+
}, null), tab.tag === c.state.activeName && createVNode("ion-icon", {
|
|
141
|
+
"name": "checkmark-outline"
|
|
142
|
+
}, null)]
|
|
143
|
+
});
|
|
144
|
+
}
|
|
145
|
+
return null;
|
|
146
|
+
})]);
|
|
147
|
+
}
|
|
148
|
+
});
|
|
149
|
+
};
|
|
96
150
|
return {
|
|
97
151
|
c,
|
|
98
152
|
ns,
|
|
@@ -100,8 +154,10 @@ const DRTabControl = /* @__PURE__ */ defineComponent({
|
|
|
100
154
|
counterData,
|
|
101
155
|
visibleItems,
|
|
102
156
|
moreItems,
|
|
157
|
+
tabPosition,
|
|
158
|
+
onTabChange,
|
|
103
159
|
handleTabChange,
|
|
104
|
-
|
|
160
|
+
renderDropdownList
|
|
105
161
|
};
|
|
106
162
|
},
|
|
107
163
|
render() {
|
|
@@ -137,7 +193,7 @@ const DRTabControl = /* @__PURE__ */ defineComponent({
|
|
|
137
193
|
return this.moreItems.map((item) => {
|
|
138
194
|
return createVNode(resolveComponent("el-dropdown-item"), {
|
|
139
195
|
"class": [this.c.state.activeName === item.tag ? this.ns.be("more-dropdown-popper", "active") : ""],
|
|
140
|
-
"onClick": () => this.
|
|
196
|
+
"onClick": () => this.onTabChange(item.tag)
|
|
141
197
|
}, {
|
|
142
198
|
default: () => [createVNode("span", {
|
|
143
199
|
"class": [this.ns.be("more-dropdown-popper", "label")]
|
|
@@ -160,7 +216,7 @@ const DRTabControl = /* @__PURE__ */ defineComponent({
|
|
|
160
216
|
"controller": this.c,
|
|
161
217
|
"class": [this.ns.b(), this.moreItems.length > 0 ? this.ns.b("more") : ""]
|
|
162
218
|
}, {
|
|
163
|
-
default: () => [isCreated && isCalculatedPermission && createVNode(resolveComponent("el-tabs"), {
|
|
219
|
+
default: () => [isCreated && isCalculatedPermission && this.tabPosition === "top_dropdownlist" ? this.renderDropdownList() : createVNode(resolveComponent("el-tabs"), {
|
|
164
220
|
"modelValue": this.c.state.activeName,
|
|
165
221
|
"onUpdate:modelValue": ($event) => this.c.state.activeName = $event,
|
|
166
222
|
"onTabChange": this.handleTabChange
|
|
@@ -177,7 +233,10 @@ const DRTabControl = /* @__PURE__ */ defineComponent({
|
|
|
177
233
|
label: () => {
|
|
178
234
|
return createVNode("span", {
|
|
179
235
|
"class": this.ns.b("label")
|
|
180
|
-
}, [createVNode("
|
|
236
|
+
}, [tab.sysImage && createVNode(resolveComponent("iBizIcon"), {
|
|
237
|
+
"class": this.ns.be("label", "icon"),
|
|
238
|
+
"icon": tab.sysImage
|
|
239
|
+
}, null), createVNode("span", {
|
|
181
240
|
"class": this.ns.be("label", "text")
|
|
182
241
|
}, [tab.caption]), !isNil(counterNum) && createVNode(resolveComponent("iBizBadge"), {
|
|
183
242
|
"class": this.ns.e("counter"),
|
|
@@ -22,8 +22,10 @@ export declare const IBizDRTabControl: import("@ibiz-template/vue3-util").TypeWi
|
|
|
22
22
|
counterData: IData;
|
|
23
23
|
visibleItems: import("vue").Ref<IData>;
|
|
24
24
|
moreItems: import("vue").Ref<IData>;
|
|
25
|
+
tabPosition: string;
|
|
26
|
+
onTabChange: (key: string) => void;
|
|
25
27
|
handleTabChange: () => void;
|
|
26
|
-
|
|
28
|
+
renderDropdownList: () => JSX.Element;
|
|
27
29
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
28
30
|
modelData: {
|
|
29
31
|
type: import("vue").PropType<import("@ibiz/model-core").IDEDRTab>;
|
|
@@ -126,7 +126,7 @@ const FormGroupPanel = /* @__PURE__ */ defineComponent({
|
|
|
126
126
|
}, [!state.isShowMore ? ibiz.i18n.t("control.form.formGroupPanel.showMore") : ibiz.i18n.t("app.retract")])]);
|
|
127
127
|
}
|
|
128
128
|
return createVNode("div", {
|
|
129
|
-
"id": this.modelData.
|
|
129
|
+
"id": "".concat(this.controller.form.view.model.codeName, "_").concat(this.controller.form.model.codeName, "_").concat(this.modelData.codeName),
|
|
130
130
|
"class": classArr,
|
|
131
131
|
"onClick": (event) => this.controller.onClick(event)
|
|
132
132
|
}, [header, createVNode("div", {
|
|
@@ -18,6 +18,7 @@ export declare const FormItem: import("vue").DefineComponent<{
|
|
|
18
18
|
}, {
|
|
19
19
|
ns: import("@ibiz-template/core").Namespace;
|
|
20
20
|
c: FormItemController;
|
|
21
|
+
extraParams: import("vue").Ref<{}>;
|
|
21
22
|
onValueChange: (val: unknown, name?: string) => void;
|
|
22
23
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
23
24
|
modelData: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { isVNode, defineComponent, resolveComponent, h, createVNode } from 'vue';
|
|
1
|
+
import { isVNode, defineComponent, ref, resolveComponent, h, createVNode } from 'vue';
|
|
2
2
|
import { useNamespace } from '@ibiz-template/vue3-util';
|
|
3
3
|
import './form-item.css';
|
|
4
4
|
import { FormItemController } from '@ibiz-template/runtime';
|
|
@@ -24,14 +24,32 @@ const FormItem = /* @__PURE__ */ defineComponent({
|
|
|
24
24
|
}
|
|
25
25
|
},
|
|
26
26
|
setup(props) {
|
|
27
|
+
var _a, _b, _c, _d;
|
|
27
28
|
const ns = useNamespace("form-item");
|
|
28
29
|
const c = props.controller;
|
|
29
30
|
const onValueChange = (val, name) => {
|
|
30
31
|
props.controller.setDataValue(val, name);
|
|
31
32
|
};
|
|
33
|
+
const extraParams = ref({});
|
|
34
|
+
let emptyHiddenUnit = ibiz.config.form.emptyHiddenUnit;
|
|
35
|
+
const emptyhiddenunit = (_b = (_a = props.controller.form) == null ? void 0 : _a.controlParams) == null ? void 0 : _b.emptyhiddenunit;
|
|
36
|
+
if (emptyhiddenunit) {
|
|
37
|
+
emptyHiddenUnit = Object.is(emptyhiddenunit, "true");
|
|
38
|
+
}
|
|
39
|
+
const editorParams = ((_d = (_c = props.controller.editor) == null ? void 0 : _c.model) == null ? void 0 : _d.editorParams) || {};
|
|
40
|
+
const {
|
|
41
|
+
EMPTYHIDDENUNIT
|
|
42
|
+
} = editorParams;
|
|
43
|
+
if (EMPTYHIDDENUNIT) {
|
|
44
|
+
emptyHiddenUnit = Object.is(EMPTYHIDDENUNIT, "true");
|
|
45
|
+
}
|
|
46
|
+
Object.assign(extraParams.value, {
|
|
47
|
+
emptyHiddenUnit
|
|
48
|
+
});
|
|
32
49
|
return {
|
|
33
50
|
ns,
|
|
34
51
|
c,
|
|
52
|
+
extraParams,
|
|
35
53
|
onValueChange
|
|
36
54
|
};
|
|
37
55
|
},
|
|
@@ -50,6 +68,7 @@ const FormItem = /* @__PURE__ */ defineComponent({
|
|
|
50
68
|
disabled: this.controller.state.disabled,
|
|
51
69
|
readonly: this.controller.state.readonly,
|
|
52
70
|
onChange: this.onValueChange,
|
|
71
|
+
extraParams: this.extraParams,
|
|
53
72
|
controlParams: editMode ? {
|
|
54
73
|
...this.controller.form.controlParams,
|
|
55
74
|
editmode: editMode
|
|
@@ -75,7 +94,7 @@ const FormItem = /* @__PURE__ */ defineComponent({
|
|
|
75
94
|
}
|
|
76
95
|
}
|
|
77
96
|
return createVNode(resolveComponent("iBizFormItemContainer"), {
|
|
78
|
-
"id": this.
|
|
97
|
+
"id": "".concat(this.controller.form.view.model.codeName, "_").concat(this.controller.form.model.codeName, "_").concat(this.modelData.codeName),
|
|
79
98
|
"class": [this.ns.b(), this.ns.m(this.modelData.id), ...this.controller.containerClass],
|
|
80
99
|
"style": this.modelData.cssStyle,
|
|
81
100
|
"required": this.c.state.required,
|
|
@@ -15,6 +15,7 @@ export declare const IBizFormItem: import("@ibiz-template/vue3-util").TypeWithIn
|
|
|
15
15
|
}, {
|
|
16
16
|
ns: import("@ibiz-template/core").Namespace;
|
|
17
17
|
c: import("@ibiz-template/runtime").FormItemController;
|
|
18
|
+
extraParams: import("vue").Ref<{}>;
|
|
18
19
|
onValueChange: (val: unknown, name?: string | undefined) => void;
|
|
19
20
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
20
21
|
modelData: {
|