@ibiz-template/vue3-components 0.7.41-alpha.16 → 0.7.41-alpha.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chart-q7pMKjYo.js +1 -0
- package/dist/ibiz-markdown-editor-e33m6ees.js +1 -0
- package/dist/{index-U4v1OOOD.js → index-AOFxMmyX.js} +1 -1
- package/dist/index-dXwgWAM8.js +11 -0
- package/dist/{index-lFGFvnYE.js → index-swminiXb.js} +1 -1
- package/dist/index.min.css +1 -1
- package/dist/index.system.min.js +1 -1
- package/dist/map-chart-user-NYROZ-6g.js +1 -0
- package/dist/wang-editor-4OlaBV3P.js +1 -0
- package/dist/{xlsx-util-FNiwKrqm.js → xlsx-util-Rg-AbK_G.js} +1 -1
- package/es/common/control-navigation/provider/calendar-navigation.provider.mjs +3 -1
- package/es/common/control-navigation/provider/index.mjs +1 -1
- package/es/common/control-navigation/provider/map-navigation.provider.d.ts +8 -2
- package/es/common/control-navigation/provider/map-navigation.provider.mjs +20 -1
- package/es/common/map-chart-user/map-chart-user.css +1 -1
- package/es/common/map-chart-user/map-chart-user.d.ts +11 -1
- package/es/common/map-chart-user/map-chart-user.mjs +82 -6
- package/es/common/map-chart-user/map-chart-user.util.d.ts +2 -0
- package/es/common/map-chart-user/map-chart-user.util.mjs +54 -3
- package/es/common/map-chart-user/map-user-manager.d.ts +2 -0
- package/es/common/map-chart-user/map-user-manager.mjs +46 -10
- package/es/control/calendar/components/calendar-daily/calendar-daily.css +1 -1
- package/es/control/calendar/components/calendar-daily/calendar-daily.mjs +30 -43
- package/es/control/calendar/components/calendar-daily/use-calendar-daily.d.ts +6 -2
- package/es/control/calendar/components/calendar-daily/use-calendar-daily.mjs +37 -4
- package/es/control/calendar/components/calendar-user/calendar-user.css +1 -1
- package/es/control/calendar/components/calendar-user/calendar-user.mjs +1 -0
- package/es/control/calendar/components/calendar-week/calendar-week.css +1 -1
- package/es/control/calendar/components/calendar-week/calendar-week.mjs +30 -45
- package/es/control/calendar/components/calendar-week/use-calendar-week.d.ts +6 -2
- package/es/control/calendar/components/calendar-week/use-calendar-week.mjs +37 -4
- package/es/control/calendar/components/custom-calendar/custom-calendar.css +1 -1
- package/es/control/calendar/components/custom-calendar/custom-calendar.mjs +25 -8
- package/es/control/calendar/components/custom-calendar/use-custom-calendar.d.ts +8 -0
- package/es/control/calendar/components/custom-calendar/use-custom-calendar.mjs +20 -1
- package/es/control/calendar/components/util/index.mjs +1 -1
- package/es/control/calendar/components/util/util.d.ts +30 -2
- package/es/control/calendar/components/util/util.mjs +32 -2
- package/es/control/chart/chart.mjs +1 -0
- package/es/control/data-view/data-view.css +1 -1
- package/es/control/data-view/data-view.d.ts +1 -1
- package/es/control/data-view/data-view.mjs +95 -29
- package/es/control/data-view/index.d.ts +1 -1
- package/es/control/drbar/drbar.css +1 -1
- package/es/control/drtab/drtab-control.util.mjs +1 -1
- package/es/control/drtab/drtab.controller.d.ts +29 -0
- package/es/control/drtab/drtab.controller.mjs +53 -0
- package/es/control/drtab/drtab.css +1 -1
- package/es/control/drtab/drtab.d.ts +2 -0
- package/es/control/drtab/drtab.mjs +5 -2
- package/es/control/drtab/flow-drtab.css +1 -1
- package/es/control/drtab/flow-drtab.d.ts +17 -2
- package/es/control/drtab/flow-drtab.mjs +194 -11
- package/es/control/drtab/index.d.ts +2 -0
- package/es/control/exp-bar/render-util.mjs +1 -12
- package/es/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-grid/repeater-grid.css +1 -1
- package/es/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-grid/repeater-grid.mjs +59 -4
- package/es/control/form/form-detail/form-mdctrl/mdctrl-container/mdctrl-container.css +1 -1
- package/es/control/form/form-detail/form-mdctrl/mdctrl-container/mdctrl-container.mjs +11 -11
- 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 +2 -1
- package/es/control/gantt/gantt.css +1 -1
- package/es/control/gantt/gantt.d.ts +4 -2
- package/es/control/gantt/gantt.mjs +131 -5
- package/es/control/gantt/index.d.ts +4 -2
- package/es/control/grid/grid/grid-control.util.mjs +36 -14
- package/es/control/grid/grid/grid.css +1 -1
- package/es/control/grid/grid/grid.d.ts +1 -1
- package/es/control/grid/grid/grid.mjs +8 -3
- package/es/control/grid/grid/index.d.ts +1 -1
- package/es/control/grid/grid-column/grid-field-column/attachment-column/attachment-column.mjs +11 -2
- package/es/control/grid/grid-column/grid-field-column/attachment-column/file-util.d.ts +1 -1
- package/es/control/grid/grid-column/grid-field-column/attachment-column/file-util.mjs +39 -24
- package/es/control/grid/grid-column/grid-field-column/grid-field-column.css +1 -1
- package/es/control/grid/virtualized-table/index.d.ts +1 -1
- package/es/control/grid/virtualized-table/virtualized-table.d.ts +1 -1
- package/es/control/kanban/index.d.ts +5 -2
- package/es/control/kanban/kanban.css +1 -1
- package/es/control/kanban/kanban.d.ts +5 -2
- package/es/control/kanban/kanban.mjs +51 -15
- package/es/control/kanban/swimlane-kanban/swimlane-kanban.css +1 -1
- package/es/control/kanban/swimlane-kanban/swimlane-kanban.d.ts +2 -1
- package/es/control/kanban/swimlane-kanban/swimlane-kanban.mjs +52 -6
- package/es/control/list/index.d.ts +1 -1
- package/es/control/list/list.css +1 -1
- package/es/control/list/list.d.ts +2 -2
- package/es/control/list/list.mjs +84 -12
- package/es/control/map/map.mjs +1 -1
- package/es/control/medit-view-panel/medit-view-panel.css +1 -1
- package/es/control/medit-view-panel/medit-view-panel.mjs +37 -30
- package/es/control/tree/index.d.ts +1 -1
- package/es/control/tree/tree.d.ts +5 -5
- package/es/control/tree/tree.mjs +5 -13
- package/es/control/tree-grid/index.d.ts +7 -1
- package/es/control/tree-grid/tree-grid.d.ts +7 -1
- package/es/control/tree-grid/tree-grid.mjs +62 -55
- package/es/control/tree-grid-ex/tree-grid-ex-column/tree-grid-ex-edit-column/all-edit.mjs +3 -1
- package/es/control/tree-grid-ex/tree-grid-ex-column/tree-grid-ex-ua-column/tree-grid-ex-ua-column.css +1 -1
- package/es/control/tree-grid-ex/tree-grid-ex.css +1 -1
- package/es/control/tree-grid-ex/tree-grid-ex.mjs +32 -28
- package/es/editor/carousel/ibiz-carousel/ibiz-carousel.d.ts +2 -75
- package/es/editor/carousel/ibiz-carousel/ibiz-carousel.mjs +24 -12
- package/es/editor/data-picker/ibiz-mpicker/ibiz-mpicker.d.ts +1 -1
- package/es/editor/data-picker/ibiz-mpicker/ibiz-mpicker.mjs +47 -8
- package/es/editor/data-picker/ibiz-picker/ibiz-picker.mjs +17 -1
- package/es/editor/dropdown-list/ibiz-virtualized-list/ibiz-virtualized-list.mjs +4 -2
- package/es/editor/html/wang-editor/wang-editor.mjs +29 -7
- package/es/editor/markdown/ibiz-markdown-editor/ibiz-markdown-editor.mjs +36 -5
- package/es/editor/upload/ibiz-file-upload/ibiz-file-upload.d.ts +1 -0
- package/es/editor/upload/ibiz-image-cropping/ibiz-image-cropping.d.ts +1 -0
- package/es/editor/upload/ibiz-image-upload/ibiz-image-upload.d.ts +1 -0
- package/es/editor/upload/upload-editor.controller.d.ts +25 -0
- package/es/editor/upload/upload-editor.controller.mjs +43 -1
- package/es/editor/upload/use/use-iview-upload.d.ts +0 -1
- package/es/editor/upload/use/use-iview-upload.mjs +59 -27
- package/es/locale/en/index.d.ts +14 -5
- package/es/locale/en/index.mjs +5 -2
- package/es/locale/zh-CN/index.d.ts +14 -5
- package/es/locale/zh-CN/index.mjs +5 -2
- package/es/node_modules/.pnpm/sortablejs@1.15.6/node_modules/sortablejs/modular/sortable.esm.mjs +3377 -0
- package/es/panel-component/app-extend-menu/bottom-side-menu/bottom-side-menu.d.ts +1 -1
- package/es/panel-component/app-extend-menu/left-side-menu/left-side-menu.d.ts +1 -1
- package/es/panel-component/app-extend-menu/right-side-menu/right-side-menu.d.ts +1 -1
- package/es/panel-component/app-extend-menu/top-side-menu/top-side-menu.d.ts +1 -1
- package/es/panel-component/nav-breadcrumb/index.d.ts +1 -0
- package/es/panel-component/nav-breadcrumb/nav-breadcrumb.controller.d.ts +8 -1
- package/es/panel-component/nav-breadcrumb/nav-breadcrumb.controller.mjs +64 -18
- package/es/panel-component/nav-breadcrumb/nav-breadcrumb.css +1 -1
- package/es/panel-component/nav-breadcrumb/nav-breadcrumb.d.ts +3 -1
- package/es/panel-component/nav-breadcrumb/nav-breadcrumb.mjs +14 -3
- package/es/panel-component/nav-breadcrumb/nav-breadcrumb.service.d.ts +1 -1
- package/es/panel-component/nav-breadcrumb/nav-breadcrumb.service.mjs +5 -6
- package/es/panel-component/nav-breadcrumb/nav-breadcrumb.state.d.ts +8 -0
- package/es/panel-component/nav-breadcrumb/nav-breadcrumb.state.mjs +6 -0
- package/es/panel-component/nav-breadcrumb/nav-breadcrumb.util.d.ts +26 -1
- package/es/panel-component/nav-breadcrumb/nav-breadcrumb.util.mjs +50 -6
- package/es/panel-component/panel-button/panel-button.mjs +1 -0
- package/es/panel-component/user-message/async-action/async-data-export/async-data-export.d.ts +1 -0
- package/es/panel-component/user-message/async-action/async-data-export/async-data-export.mjs +3 -1
- package/es/util/fullscreen/fullscreen-util.mjs +1 -1
- package/es/view-engine/calendar-exp-view.engine.d.ts +6 -7
- package/es/view-engine/calendar-exp-view.engine.mjs +6 -24
- package/es/view-engine/calendar-view.engine.d.ts +11 -1
- package/es/view-engine/calendar-view.engine.mjs +10 -0
- package/es/view-engine/chart-exp-view.engine.d.ts +6 -6
- package/es/view-engine/chart-exp-view.engine.mjs +6 -15
- package/es/view-engine/edit-view.engine.d.ts +11 -0
- package/es/view-engine/edit-view.engine.mjs +12 -0
- package/es/view-engine/gantt-view.engine.d.ts +3 -3
- package/es/view-engine/gantt-view.engine.mjs +3 -46
- package/es/view-engine/login-view.engine.d.ts +11 -1
- package/es/view-engine/login-view.engine.mjs +16 -5
- package/es/view-engine/mpickup-view-engine.d.ts +8 -1
- package/es/view-engine/mpickup-view-engine.mjs +14 -8
- package/es/view-engine/pickup-view.engine.d.ts +8 -1
- package/es/view-engine/pickup-view.engine.mjs +15 -0
- package/es/view-engine/tab-exp-view.engine.mjs +1 -1
- package/es/view-engine/tab-search-view.engine.mjs +4 -2
- package/es/view-engine/tree-view.engine.d.ts +12 -2
- package/es/view-engine/tree-view.engine.mjs +39 -11
- package/lib/common/control-navigation/provider/calendar-navigation.provider.cjs +3 -1
- package/lib/common/control-navigation/provider/index.cjs +1 -1
- package/lib/common/control-navigation/provider/map-navigation.provider.cjs +20 -1
- package/lib/common/map-chart-user/map-chart-user.cjs +81 -5
- package/lib/common/map-chart-user/map-chart-user.css +1 -1
- package/lib/common/map-chart-user/map-chart-user.util.cjs +54 -3
- package/lib/common/map-chart-user/map-user-manager.cjs +46 -10
- package/lib/control/calendar/components/calendar-daily/calendar-daily.cjs +29 -42
- package/lib/control/calendar/components/calendar-daily/calendar-daily.css +1 -1
- package/lib/control/calendar/components/calendar-daily/use-calendar-daily.cjs +35 -2
- package/lib/control/calendar/components/calendar-user/calendar-user.cjs +1 -0
- package/lib/control/calendar/components/calendar-user/calendar-user.css +1 -1
- package/lib/control/calendar/components/calendar-week/calendar-week.cjs +29 -44
- package/lib/control/calendar/components/calendar-week/calendar-week.css +1 -1
- package/lib/control/calendar/components/calendar-week/use-calendar-week.cjs +35 -2
- package/lib/control/calendar/components/custom-calendar/custom-calendar.cjs +23 -6
- package/lib/control/calendar/components/custom-calendar/custom-calendar.css +1 -1
- package/lib/control/calendar/components/custom-calendar/use-custom-calendar.cjs +20 -0
- package/lib/control/calendar/components/util/index.cjs +4 -0
- package/lib/control/calendar/components/util/util.cjs +34 -0
- package/lib/control/chart/chart.cjs +1 -0
- package/lib/control/data-view/data-view.cjs +95 -29
- package/lib/control/data-view/data-view.css +1 -1
- package/lib/control/drbar/drbar.css +1 -1
- package/lib/control/drtab/drtab-control.util.cjs +1 -1
- package/lib/control/drtab/drtab.cjs +5 -2
- package/lib/control/drtab/drtab.controller.cjs +53 -0
- package/lib/control/drtab/drtab.css +1 -1
- package/lib/control/drtab/flow-drtab.cjs +193 -10
- package/lib/control/drtab/flow-drtab.css +1 -1
- package/lib/control/exp-bar/render-util.cjs +1 -12
- package/lib/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-grid/repeater-grid.cjs +58 -3
- package/lib/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-grid/repeater-grid.css +1 -1
- package/lib/control/form/form-detail/form-mdctrl/mdctrl-container/mdctrl-container.cjs +11 -11
- package/lib/control/form/form-detail/form-mdctrl/mdctrl-container/mdctrl-container.css +1 -1
- package/lib/control/form/form-detail/form-tab-panel/form-tab-panel.cjs +2 -1
- package/lib/control/form/form-detail/form-tab-panel/form-tab-panel.css +1 -1
- package/lib/control/gantt/gantt.cjs +130 -4
- package/lib/control/gantt/gantt.css +1 -1
- package/lib/control/grid/grid/grid-control.util.cjs +36 -14
- package/lib/control/grid/grid/grid.cjs +8 -3
- package/lib/control/grid/grid/grid.css +1 -1
- package/lib/control/grid/grid-column/grid-field-column/attachment-column/attachment-column.cjs +11 -2
- package/lib/control/grid/grid-column/grid-field-column/attachment-column/file-util.cjs +39 -24
- package/lib/control/grid/grid-column/grid-field-column/grid-field-column.css +1 -1
- package/lib/control/kanban/kanban.cjs +50 -14
- package/lib/control/kanban/kanban.css +1 -1
- package/lib/control/kanban/swimlane-kanban/swimlane-kanban.cjs +50 -4
- package/lib/control/kanban/swimlane-kanban/swimlane-kanban.css +1 -1
- package/lib/control/list/list.cjs +84 -12
- package/lib/control/list/list.css +1 -1
- package/lib/control/map/map.cjs +1 -1
- package/lib/control/medit-view-panel/medit-view-panel.cjs +36 -29
- package/lib/control/medit-view-panel/medit-view-panel.css +1 -1
- package/lib/control/tree/tree.cjs +5 -13
- package/lib/control/tree-grid/tree-grid.cjs +62 -55
- package/lib/control/tree-grid-ex/tree-grid-ex-column/tree-grid-ex-edit-column/all-edit.cjs +3 -1
- package/lib/control/tree-grid-ex/tree-grid-ex-column/tree-grid-ex-ua-column/tree-grid-ex-ua-column.css +1 -1
- package/lib/control/tree-grid-ex/tree-grid-ex.cjs +32 -28
- package/lib/control/tree-grid-ex/tree-grid-ex.css +1 -1
- package/lib/editor/carousel/ibiz-carousel/ibiz-carousel.cjs +24 -12
- package/lib/editor/data-picker/ibiz-mpicker/ibiz-mpicker.cjs +47 -8
- package/lib/editor/data-picker/ibiz-picker/ibiz-picker.cjs +17 -1
- package/lib/editor/dropdown-list/ibiz-virtualized-list/ibiz-virtualized-list.cjs +4 -2
- package/lib/editor/html/wang-editor/wang-editor.cjs +29 -7
- package/lib/editor/markdown/ibiz-markdown-editor/ibiz-markdown-editor.cjs +36 -5
- package/lib/editor/upload/upload-editor.controller.cjs +43 -1
- package/lib/editor/upload/use/use-iview-upload.cjs +59 -27
- package/lib/locale/en/index.cjs +5 -2
- package/lib/locale/zh-CN/index.cjs +5 -2
- package/lib/node_modules/.pnpm/sortablejs@1.15.6/node_modules/sortablejs/modular/sortable.esm.cjs +3384 -0
- package/lib/panel-component/nav-breadcrumb/nav-breadcrumb.cjs +14 -3
- package/lib/panel-component/nav-breadcrumb/nav-breadcrumb.controller.cjs +63 -17
- package/lib/panel-component/nav-breadcrumb/nav-breadcrumb.css +1 -1
- package/lib/panel-component/nav-breadcrumb/nav-breadcrumb.service.cjs +4 -5
- package/lib/panel-component/nav-breadcrumb/nav-breadcrumb.state.cjs +6 -0
- package/lib/panel-component/nav-breadcrumb/nav-breadcrumb.util.cjs +52 -5
- package/lib/panel-component/panel-button/panel-button.cjs +1 -0
- package/lib/panel-component/user-message/async-action/async-data-export/async-data-export.cjs +3 -1
- package/lib/util/fullscreen/fullscreen-util.cjs +1 -1
- package/lib/view-engine/calendar-exp-view.engine.cjs +6 -24
- package/lib/view-engine/calendar-view.engine.cjs +10 -0
- package/lib/view-engine/chart-exp-view.engine.cjs +6 -15
- package/lib/view-engine/edit-view.engine.cjs +12 -0
- package/lib/view-engine/gantt-view.engine.cjs +2 -45
- package/lib/view-engine/login-view.engine.cjs +16 -5
- package/lib/view-engine/mpickup-view-engine.cjs +14 -8
- package/lib/view-engine/pickup-view.engine.cjs +15 -0
- package/lib/view-engine/tab-exp-view.engine.cjs +1 -1
- package/lib/view-engine/tab-search-view.engine.cjs +4 -2
- package/lib/view-engine/tree-view.engine.cjs +39 -11
- package/package.json +10 -8
- package/dist/chart-8QfxarWf.js +0 -1
- package/dist/ibiz-markdown-editor-0VHzFa2l.js +0 -1
- package/dist/index-m8q8r8br.js +0 -4
- package/dist/map-chart-user-xOSZGbF2.js +0 -1
- package/dist/wang-editor-_06OYPpu.js +0 -1
- package/es/editor/upload/use/use-ibiz-upload.d.ts +0 -95
- package/es/editor/upload/use/use-ibiz-upload.mjs +0 -170
- package/lib/editor/upload/use/use-ibiz-upload.cjs +0 -175
- /package/es/node_modules/.pnpm/{@ibiz-template_core@0.7.41-alpha.14_axios@1.6.8_lodash-es@4.17.21_qs@6.11.2_qx-util@0.4.8_ramda@0.29.1 → @ibiz-template_core@0.7.41-alpha.18_axios@1.6.8_lodash-es@4.17.21_qs@6.11.2_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.41-alpha.14_axios@1.6.8_lodash-es@4.17.21_qs@6.11.2_qx-util@0.4.8_ramda@0.29.1 → @ibiz-template_core@0.7.41-alpha.18_axios@1.6.8_lodash-es@4.17.21_qs@6.11.2_qx-util@0.4.8_ramda@0.29.1}/node_modules/@ibiz-template/core/out/utils/namespace/namespace.cjs +0 -0
|
@@ -6,7 +6,7 @@ import './bottom-side-menu.scss';
|
|
|
6
6
|
* 底部菜单
|
|
7
7
|
* @primary
|
|
8
8
|
* @description 首页视图扩展菜单底部菜单
|
|
9
|
-
* @panelitemparams {name:rendermode,parameterType:'BUTTON' | 'MENU',defaultvalue:BUTTON,description:菜单项绘制模式,其中BUTTON
|
|
9
|
+
* @panelitemparams {name:rendermode,parameterType:'BUTTON' | 'MENU',defaultvalue:BUTTON,description:菜单项绘制模式,其中BUTTON表示按照按钮形态绘制、MENU表示按照菜单形态绘制}
|
|
10
10
|
* @primary
|
|
11
11
|
*/
|
|
12
12
|
export declare const BottomSideMenu: import("vue").DefineComponent<{
|
|
@@ -6,7 +6,7 @@ import './left-side-menu.scss';
|
|
|
6
6
|
* 左侧菜单
|
|
7
7
|
* @primary
|
|
8
8
|
* @description 首页视图扩展菜单左侧菜单
|
|
9
|
-
* @panelitemparams {name:rendermode,parameterType:'BUTTON' | 'MENU',defaultvalue:BUTTON,description:菜单项绘制模式,其中BUTTON
|
|
9
|
+
* @panelitemparams {name:rendermode,parameterType:'BUTTON' | 'MENU',defaultvalue:BUTTON,description:菜单项绘制模式,其中BUTTON表示按照按钮形态绘制、MENU表示按照菜单形态绘制}
|
|
10
10
|
* @primary
|
|
11
11
|
*/
|
|
12
12
|
export declare const LeftSideMenu: import("vue").DefineComponent<{
|
|
@@ -6,7 +6,7 @@ import './right-side-menu.scss';
|
|
|
6
6
|
* 右侧菜单
|
|
7
7
|
* @primary
|
|
8
8
|
* @description 首页视图扩展菜单右侧菜单
|
|
9
|
-
* @panelitemparams {name:rendermode,parameterType:'BUTTON' | 'MENU',defaultvalue:BUTTON,description:菜单项绘制模式,其中BUTTON
|
|
9
|
+
* @panelitemparams {name:rendermode,parameterType:'BUTTON' | 'MENU',defaultvalue:BUTTON,description:菜单项绘制模式,其中BUTTON表示按照按钮形态绘制、MENU表示按照菜单形态绘制}
|
|
10
10
|
* @primary
|
|
11
11
|
*/
|
|
12
12
|
export declare const RightSideMenu: import("vue").DefineComponent<{
|
|
@@ -6,7 +6,7 @@ import './top-side-menu.scss';
|
|
|
6
6
|
* 头部菜单
|
|
7
7
|
* @primary
|
|
8
8
|
* @description 首页视图扩展菜单头部菜单
|
|
9
|
-
* @panelitemparams {name:rendermode,parameterType:'BUTTON' | 'MENU',defaultvalue:BUTTON,description:菜单项绘制模式,其中BUTTON
|
|
9
|
+
* @panelitemparams {name:rendermode,parameterType:'BUTTON' | 'MENU',defaultvalue:BUTTON,description:菜单项绘制模式,其中BUTTON表示按照按钮形态绘制、MENU表示按照菜单形态绘制}
|
|
10
10
|
* @primary
|
|
11
11
|
*/
|
|
12
12
|
export declare const TopSideMenu: import("vue").DefineComponent<{
|
|
@@ -13,6 +13,7 @@ export declare const IBizNavBreadcrumb: import("@ibiz-template/vue3-util").TypeW
|
|
|
13
13
|
ns: import("@ibiz-template/core").Namespace;
|
|
14
14
|
c: import("./nav-breadcrumb.controller").NavBreadcrumbController;
|
|
15
15
|
items: import("vue").ComputedRef<import("./nav-breadcrumb.state").BreadcrumbMsg[]>;
|
|
16
|
+
onClick: (event: MouseEvent, item: import("./nav-breadcrumb.state").BreadcrumbMsg) => void;
|
|
16
17
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
17
18
|
modelData: {
|
|
18
19
|
type: import("vue").PropType<import("@ibiz/model-core").IPanelRawItem>;
|
|
@@ -104,7 +104,7 @@ export declare class NavBreadcrumbController extends PanelItemController<IPanelR
|
|
|
104
104
|
* @param {Router} router
|
|
105
105
|
* @memberof NavBreadcrumbController
|
|
106
106
|
*/
|
|
107
|
-
protected setBreadcrumbByRouter(router: Router): void
|
|
107
|
+
protected setBreadcrumbByRouter(router: Router): Promise<void>;
|
|
108
108
|
/**
|
|
109
109
|
* @description 根据路由设置菜单面包屑导航数据
|
|
110
110
|
* @param {Router} router
|
|
@@ -123,4 +123,11 @@ export declare class NavBreadcrumbController extends PanelItemController<IPanelR
|
|
|
123
123
|
* @memberof NavBreadcrumbController
|
|
124
124
|
*/
|
|
125
125
|
protected handleRawItemParams(): void;
|
|
126
|
+
/**
|
|
127
|
+
* @description 打开菜单项视图
|
|
128
|
+
* @param {IData} item
|
|
129
|
+
* @param {MouseEvent} event
|
|
130
|
+
* @memberof NavBreadcrumbController
|
|
131
|
+
*/
|
|
132
|
+
openMenuItemView(item: IData, event: MouseEvent): void;
|
|
126
133
|
}
|
|
@@ -4,7 +4,7 @@ import { route2routePath, routePath2string } from '@ibiz-template/vue3-util';
|
|
|
4
4
|
import { notNilEmpty } from 'qx-util';
|
|
5
5
|
import { NavBreadcrumbState } from './nav-breadcrumb.state.mjs';
|
|
6
6
|
import { NavBreadcrumbService } from './nav-breadcrumb.service.mjs';
|
|
7
|
-
import { getCurViewName, getIndexBreadcrumb, getViewInfoByViewStack, getAppFuncByViewName, getMenuItemsByAppFunc } from './nav-breadcrumb.util.mjs';
|
|
7
|
+
import { getCurViewName, getMenuTag, getAppIndexViewName, getIndexBreadcrumb, getMenuItemByTag, getViewInfoByViewStack, getAppFuncByViewName, getMenuItemsByAppFunc } from './nav-breadcrumb.util.mjs';
|
|
8
8
|
|
|
9
9
|
"use strict";
|
|
10
10
|
var __defProp = Object.defineProperty;
|
|
@@ -108,24 +108,33 @@ class NavBreadcrumbController extends PanelItemController {
|
|
|
108
108
|
}
|
|
109
109
|
if (this.navMode === "store") {
|
|
110
110
|
const { currentRoute } = router;
|
|
111
|
+
const routePath = route2routePath(currentRoute.value);
|
|
111
112
|
const fullPath = currentRoute.value.fullPath;
|
|
112
113
|
const viewName = getCurViewName(router);
|
|
114
|
+
const menuTag = getMenuTag(routePath.pathNodes);
|
|
113
115
|
const chacheItem = this.service.getItem({ fullPath, viewName });
|
|
116
|
+
const indexViewName = getAppIndexViewName(this.panel.context);
|
|
114
117
|
if (chacheItem) {
|
|
115
|
-
if (chacheItem.viewName ===
|
|
118
|
+
if (chacheItem.viewName === indexViewName) {
|
|
116
119
|
this.service.setChache([
|
|
117
120
|
{ ...getIndexBreadcrumb(this.panel.context), fullPath }
|
|
118
121
|
]);
|
|
119
122
|
this.resetBreadcrumbs();
|
|
120
123
|
return;
|
|
121
124
|
}
|
|
125
|
+
this.service.update({ ...chacheItem, fullPath });
|
|
122
126
|
const removeItems = this.service.removeAfter(fullPath);
|
|
123
127
|
removeItems.forEach((item) => {
|
|
124
128
|
var _a;
|
|
125
129
|
(_a = this.navPos) == null ? void 0 : _a.removeCache(item.fullPath);
|
|
126
130
|
});
|
|
127
131
|
this.resetBreadcrumbs();
|
|
132
|
+
} else if (this.state.menuTag !== menuTag) {
|
|
133
|
+
this.setBreadcrumbByRouter(router);
|
|
134
|
+
} else {
|
|
135
|
+
this.service.add({ viewName, fullPath, type: "default" });
|
|
128
136
|
}
|
|
137
|
+
this.state.menuTag = menuTag;
|
|
129
138
|
}
|
|
130
139
|
}
|
|
131
140
|
/**
|
|
@@ -146,7 +155,7 @@ class NavBreadcrumbController extends PanelItemController {
|
|
|
146
155
|
if (this.navMode === "menu") {
|
|
147
156
|
return;
|
|
148
157
|
}
|
|
149
|
-
this.service.
|
|
158
|
+
this.service.update({ fullPath, type: "default", ...info });
|
|
150
159
|
this.resetBreadcrumbs();
|
|
151
160
|
}
|
|
152
161
|
/**
|
|
@@ -162,19 +171,30 @@ class NavBreadcrumbController extends PanelItemController {
|
|
|
162
171
|
* @param {Router} router
|
|
163
172
|
* @memberof NavBreadcrumbController
|
|
164
173
|
*/
|
|
165
|
-
setBreadcrumbByRouter(router) {
|
|
174
|
+
async setBreadcrumbByRouter(router) {
|
|
166
175
|
const { currentRoute } = router;
|
|
167
176
|
const routePath = route2routePath(currentRoute.value);
|
|
168
|
-
const
|
|
169
|
-
|
|
170
|
-
|
|
177
|
+
const { appContext = {}, pathNodes } = routePath;
|
|
178
|
+
const menuTag = getMenuTag(pathNodes);
|
|
179
|
+
let hasMenuItem = false;
|
|
180
|
+
const menuData = await getMenuItemByTag(
|
|
181
|
+
menuTag,
|
|
182
|
+
this.appmenu,
|
|
183
|
+
this.panel.context
|
|
184
|
+
);
|
|
185
|
+
const calcPathNodes = routePath.pathNodes.map(
|
|
186
|
+
async (node, index) => {
|
|
187
|
+
if (this.appmenu && menuData && menuData.viewName === node.viewName) {
|
|
188
|
+
hasMenuItem = true;
|
|
189
|
+
}
|
|
171
190
|
const fullPath = routePath2string({
|
|
172
191
|
appContext,
|
|
173
192
|
pathNodes: pathNodes.slice(0, index + 1)
|
|
174
193
|
});
|
|
175
194
|
const result = {
|
|
176
195
|
viewName: node.viewName,
|
|
177
|
-
fullPath
|
|
196
|
+
fullPath,
|
|
197
|
+
type: "default"
|
|
178
198
|
};
|
|
179
199
|
const chacheItem = this.service.getItem({ viewName: node.viewName });
|
|
180
200
|
if (chacheItem) {
|
|
@@ -183,13 +203,28 @@ class NavBreadcrumbController extends PanelItemController {
|
|
|
183
203
|
}
|
|
184
204
|
Object.assign(result, chacheItem);
|
|
185
205
|
}
|
|
186
|
-
const viewInfo = getViewInfoByViewStack(
|
|
206
|
+
const viewInfo = getViewInfoByViewStack(
|
|
207
|
+
node.viewName,
|
|
208
|
+
this.panel.context
|
|
209
|
+
);
|
|
187
210
|
if (viewInfo) {
|
|
188
211
|
Object.assign(result, reject(isNil, viewInfo));
|
|
189
212
|
}
|
|
190
213
|
return result;
|
|
191
214
|
}
|
|
192
215
|
);
|
|
216
|
+
const items = await Promise.all(calcPathNodes);
|
|
217
|
+
if (!hasMenuItem && menuData) {
|
|
218
|
+
this.state.menuTag = menuData.tag;
|
|
219
|
+
const item = {
|
|
220
|
+
viewName: menuData.viewName,
|
|
221
|
+
caption: menuData.menuItem.caption,
|
|
222
|
+
fullPath: "",
|
|
223
|
+
type: "menuItem",
|
|
224
|
+
menuTag: menuData.tag
|
|
225
|
+
};
|
|
226
|
+
items.splice(1, 0, item);
|
|
227
|
+
}
|
|
193
228
|
this.service.setChache(items);
|
|
194
229
|
this.resetBreadcrumbs();
|
|
195
230
|
}
|
|
@@ -223,6 +258,7 @@ class NavBreadcrumbController extends PanelItemController {
|
|
|
223
258
|
return {
|
|
224
259
|
caption: item.caption,
|
|
225
260
|
fullPath: "",
|
|
261
|
+
type: "default",
|
|
226
262
|
viewName: item.id
|
|
227
263
|
};
|
|
228
264
|
});
|
|
@@ -265,16 +301,14 @@ class NavBreadcrumbController extends PanelItemController {
|
|
|
265
301
|
}
|
|
266
302
|
if (this.appmenu) {
|
|
267
303
|
this.appmenu.evt.on("onClick", async (data) => {
|
|
268
|
-
var _a;
|
|
269
304
|
const { eventArg } = data;
|
|
270
|
-
const
|
|
271
|
-
|
|
305
|
+
const menuData = await getMenuItemByTag(
|
|
306
|
+
eventArg,
|
|
307
|
+
this.appmenu,
|
|
308
|
+
this.panel.context
|
|
272
309
|
);
|
|
273
|
-
if (
|
|
274
|
-
const
|
|
275
|
-
const appFunc = app.getAppFunc(menuItem.appFuncId);
|
|
276
|
-
const viewName = ((_a = appFunc.appViewId) == null ? void 0 : _a.split(".").pop()) || "";
|
|
277
|
-
const viewConfig = await ibiz.hub.config.view.get(viewName);
|
|
310
|
+
if (menuData) {
|
|
311
|
+
const { viewName, appFunc, viewConfig } = menuData;
|
|
278
312
|
if (appFunc.openMode !== "INDEXVIEWTAB" || viewConfig && viewConfig.openMode && viewConfig.openMode !== "INDEXVIEWTAB") {
|
|
279
313
|
return;
|
|
280
314
|
}
|
|
@@ -285,7 +319,8 @@ class NavBreadcrumbController extends PanelItemController {
|
|
|
285
319
|
} else {
|
|
286
320
|
items.push({
|
|
287
321
|
viewName,
|
|
288
|
-
fullPath: ""
|
|
322
|
+
fullPath: "",
|
|
323
|
+
type: "default"
|
|
289
324
|
});
|
|
290
325
|
}
|
|
291
326
|
items.unshift(getIndexBreadcrumb(this.panel.context));
|
|
@@ -312,6 +347,17 @@ class NavBreadcrumbController extends PanelItemController {
|
|
|
312
347
|
}
|
|
313
348
|
Object.assign(this.rawItemParams, params);
|
|
314
349
|
}
|
|
350
|
+
/**
|
|
351
|
+
* @description 打开菜单项视图
|
|
352
|
+
* @param {IData} item
|
|
353
|
+
* @param {MouseEvent} event
|
|
354
|
+
* @memberof NavBreadcrumbController
|
|
355
|
+
*/
|
|
356
|
+
openMenuItemView(item, event) {
|
|
357
|
+
if (this.appmenu) {
|
|
358
|
+
this.appmenu.onClickMenuItem(item.menuTag, event);
|
|
359
|
+
}
|
|
360
|
+
}
|
|
315
361
|
}
|
|
316
362
|
|
|
317
363
|
export { NavBreadcrumbController };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.ibiz-nav-breadcrumb{--ibiz-nav-breadcrumb-padding:var(--ibiz-spacing-base-loose);--ibiz-nav-breadcrumb-link-color:var(--ibiz-color-link);--ibiz-nav-breadcrumb-disabled-color:var(--ibiz-color-text-0);padding:var(--ibiz-nav-breadcrumb-padding);--el-text-color-primary:var(--ibiz-nav-breadcrumb-link-color)}.ibiz-nav-breadcrumb--menu{color:var(--ibiz-nav-breadcrumb-disabled-color);--el-text-color-primary:var(--ibiz-nav-breadcrumb-disabled-color)}.ibiz-nav-breadcrumb--menu .el-breadcrumb__item{cursor:text}.ibiz-nav-breadcrumb--menu .el-breadcrumb__item:last-child .el-breadcrumb__inner{color:var(--ibiz-color-primary)}.ibiz-nav-breadcrumb--menu .el-breadcrumb__inner.is-link{font-weight:400;pointer-events:none}
|
|
1
|
+
.ibiz-nav-breadcrumb{--ibiz-nav-breadcrumb-padding:var(--ibiz-spacing-base-loose);--ibiz-nav-breadcrumb-link-color:var(--ibiz-color-link);--ibiz-nav-breadcrumb-disabled-color:var(--ibiz-color-text-0);padding:var(--ibiz-nav-breadcrumb-padding);--el-text-color-primary:var(--ibiz-nav-breadcrumb-link-color)}.ibiz-nav-breadcrumb--menu{color:var(--ibiz-nav-breadcrumb-disabled-color);--el-text-color-primary:var(--ibiz-nav-breadcrumb-disabled-color)}.ibiz-nav-breadcrumb--menu .el-breadcrumb__item{cursor:text}.ibiz-nav-breadcrumb--menu .el-breadcrumb__item:last-child .el-breadcrumb__inner{color:var(--ibiz-color-primary)}.ibiz-nav-breadcrumb--menu .el-breadcrumb__inner.is-link{font-weight:400;pointer-events:none}.ibiz-nav-breadcrumb .el-breadcrumb__item.is-link .el-breadcrumb__inner{font-weight:700;color:var(--el-text-color-primary);text-decoration:none;cursor:pointer;transition:var(--el-transition-color)}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { PropType } from 'vue';
|
|
2
2
|
import { IPanelRawItem } from '@ibiz/model-core';
|
|
3
3
|
import { NavBreadcrumbController } from './nav-breadcrumb.controller';
|
|
4
|
+
import { BreadcrumbMsg } from './nav-breadcrumb.state';
|
|
4
5
|
import './nav-breadcrumb.scss';
|
|
5
6
|
export interface dropdownAction {
|
|
6
7
|
text: string;
|
|
@@ -32,7 +33,8 @@ export declare const NavBreadcrumb: import("vue").DefineComponent<{
|
|
|
32
33
|
}, {
|
|
33
34
|
ns: import("@ibiz-template/core").Namespace;
|
|
34
35
|
c: NavBreadcrumbController;
|
|
35
|
-
items: import("vue").ComputedRef<
|
|
36
|
+
items: import("vue").ComputedRef<BreadcrumbMsg[]>;
|
|
37
|
+
onClick: (event: MouseEvent, item: BreadcrumbMsg) => void;
|
|
36
38
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
37
39
|
/**
|
|
38
40
|
* @description 面包屑导航数据
|
|
@@ -2,6 +2,7 @@ import { isVNode, watch, computed, resolveComponent, createVNode, defineComponen
|
|
|
2
2
|
import { useNamespace } from '@ibiz-template/vue3-util';
|
|
3
3
|
import { useRoute, useRouter } from 'vue-router';
|
|
4
4
|
import { NavBreadcrumbController } from './nav-breadcrumb.controller.mjs';
|
|
5
|
+
import { getAppIndexViewName } from './nav-breadcrumb.util.mjs';
|
|
5
6
|
import './nav-breadcrumb.css';
|
|
6
7
|
|
|
7
8
|
"use strict";
|
|
@@ -42,15 +43,23 @@ const NavBreadcrumb = /* @__PURE__ */ defineComponent({
|
|
|
42
43
|
breadcrumbItems
|
|
43
44
|
} = c.state;
|
|
44
45
|
let result = breadcrumbItems.filter((x) => x.caption);
|
|
46
|
+
const indexViewName = getAppIndexViewName(c.panel.context);
|
|
45
47
|
if (!c.showHome) {
|
|
46
|
-
result = result.filter((x) => x.viewName !==
|
|
48
|
+
result = result.filter((x) => x.viewName !== indexViewName);
|
|
47
49
|
}
|
|
48
50
|
return result;
|
|
49
51
|
});
|
|
52
|
+
const onClick = (event, item) => {
|
|
53
|
+
if (item.type === "menuItem") {
|
|
54
|
+
event.stopPropagation();
|
|
55
|
+
c.openMenuItemView(item, event);
|
|
56
|
+
}
|
|
57
|
+
};
|
|
50
58
|
return {
|
|
51
59
|
ns,
|
|
52
60
|
c,
|
|
53
|
-
items
|
|
61
|
+
items,
|
|
62
|
+
onClick
|
|
54
63
|
};
|
|
55
64
|
},
|
|
56
65
|
render() {
|
|
@@ -65,7 +74,9 @@ const NavBreadcrumb = /* @__PURE__ */ defineComponent({
|
|
|
65
74
|
label += " - ".concat(item.dataInfo);
|
|
66
75
|
}
|
|
67
76
|
return createVNode(resolveComponent("el-breadcrumb-item"), {
|
|
68
|
-
"
|
|
77
|
+
"class": this.ns.is("link", item.type === "menuItem"),
|
|
78
|
+
"to": item.fullPath,
|
|
79
|
+
"onClick": (event) => this.onClick(event, item)
|
|
69
80
|
}, _isSlot(label) ? label : {
|
|
70
81
|
default: () => [label]
|
|
71
82
|
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { clone, isNil, reject } from 'ramda';
|
|
2
|
-
import { getIndexBreadcrumb } from './nav-breadcrumb.util.mjs';
|
|
2
|
+
import { getAppIndexViewName, getIndexBreadcrumb } from './nav-breadcrumb.util.mjs';
|
|
3
3
|
|
|
4
4
|
"use strict";
|
|
5
5
|
var __defProp = Object.defineProperty;
|
|
@@ -70,7 +70,7 @@ class NavBreadcrumbService {
|
|
|
70
70
|
* @param {BreadcrumbMsg} item
|
|
71
71
|
* @memberof NavBreadcrumbService
|
|
72
72
|
*/
|
|
73
|
-
|
|
73
|
+
update(item) {
|
|
74
74
|
if (!this.chache.length && this.navMode === "store") {
|
|
75
75
|
const result = localStorage.getItem("breadcrumb");
|
|
76
76
|
if (result) {
|
|
@@ -80,9 +80,7 @@ class NavBreadcrumbService {
|
|
|
80
80
|
const index = this.chache.findIndex(
|
|
81
81
|
(x) => x.fullPath && x.fullPath === item.fullPath || x.viewName.toLowerCase() === item.viewName.toLowerCase()
|
|
82
82
|
);
|
|
83
|
-
if (index
|
|
84
|
-
this.add(item);
|
|
85
|
-
} else {
|
|
83
|
+
if (index !== -1) {
|
|
86
84
|
Object.assign(this.chache[index], reject(isNil, item));
|
|
87
85
|
this.chache = this.chache.filter((x) => !x.isEmbed && !x.isModal);
|
|
88
86
|
if (this.navMode === "store") {
|
|
@@ -98,7 +96,8 @@ class NavBreadcrumbService {
|
|
|
98
96
|
*/
|
|
99
97
|
getItem(data) {
|
|
100
98
|
const { viewName = "", fullPath = "" } = data;
|
|
101
|
-
|
|
99
|
+
const indexViewName = getAppIndexViewName(this.context);
|
|
100
|
+
if (viewName === indexViewName) {
|
|
102
101
|
return getIndexBreadcrumb(this.context);
|
|
103
102
|
}
|
|
104
103
|
const item = this.chache.find(
|
|
@@ -6,6 +6,8 @@ export interface BreadcrumbMsg {
|
|
|
6
6
|
dataInfo?: string;
|
|
7
7
|
isEmbed?: boolean;
|
|
8
8
|
isModal?: boolean;
|
|
9
|
+
type: 'menuItem' | 'default';
|
|
10
|
+
menuTag?: string;
|
|
9
11
|
}
|
|
10
12
|
/**
|
|
11
13
|
* 导航标签页占位状态
|
|
@@ -24,4 +26,10 @@ export declare class NavBreadcrumbState extends PanelItemState {
|
|
|
24
26
|
* @memberof NavBreadcrumbState
|
|
25
27
|
*/
|
|
26
28
|
breadcrumbItems: BreadcrumbMsg[];
|
|
29
|
+
/**
|
|
30
|
+
* @description 菜单标识
|
|
31
|
+
* @type {string}
|
|
32
|
+
* @memberof NavBreadcrumbState
|
|
33
|
+
*/
|
|
34
|
+
menuTag: string;
|
|
27
35
|
}
|
|
@@ -17,6 +17,12 @@ class NavBreadcrumbState extends PanelItemState {
|
|
|
17
17
|
* @memberof NavBreadcrumbState
|
|
18
18
|
*/
|
|
19
19
|
__publicField(this, "breadcrumbItems", []);
|
|
20
|
+
/**
|
|
21
|
+
* @description 菜单标识
|
|
22
|
+
* @type {string}
|
|
23
|
+
* @memberof NavBreadcrumbState
|
|
24
|
+
*/
|
|
25
|
+
__publicField(this, "menuTag", "");
|
|
20
26
|
}
|
|
21
27
|
}
|
|
22
28
|
|
|
@@ -1,6 +1,15 @@
|
|
|
1
1
|
import { IAppFunc, IAppMenuItem } from '@ibiz/model-core';
|
|
2
2
|
import { Router } from 'vue-router';
|
|
3
|
+
import { IRoutePathNode } from '@ibiz-template/vue3-util';
|
|
4
|
+
import { IAppMenuController } from '@ibiz-template/runtime';
|
|
3
5
|
import { BreadcrumbMsg } from './nav-breadcrumb.state';
|
|
6
|
+
/**
|
|
7
|
+
* @description 获取首页视图名称
|
|
8
|
+
* @export
|
|
9
|
+
* @param {IContext} context
|
|
10
|
+
* @returns {*} {string}
|
|
11
|
+
*/
|
|
12
|
+
export declare function getAppIndexViewName(context: IContext): string;
|
|
4
13
|
/**
|
|
5
14
|
* @description 获取首页导航信息
|
|
6
15
|
* @export
|
|
@@ -36,4 +45,20 @@ export declare function getCurViewName(router: Router): string;
|
|
|
36
45
|
* @param {string} viewName
|
|
37
46
|
* @return {*} {(IData | undefined)}
|
|
38
47
|
*/
|
|
39
|
-
export declare function getViewInfoByViewStack(viewName: string): IData | undefined;
|
|
48
|
+
export declare function getViewInfoByViewStack(viewName: string, context: IContext): IData | undefined;
|
|
49
|
+
/**
|
|
50
|
+
* @description 获取菜单标识
|
|
51
|
+
* @export
|
|
52
|
+
* @param {IRoutePathNode[]} pathNodes
|
|
53
|
+
* @returns {*} {string}
|
|
54
|
+
*/
|
|
55
|
+
export declare function getMenuTag(pathNodes: IRoutePathNode[]): string;
|
|
56
|
+
/**
|
|
57
|
+
* @description 根据标识获取菜单数据
|
|
58
|
+
* @export
|
|
59
|
+
* @param {string} tag
|
|
60
|
+
* @param {IAppMenuController} appMenu
|
|
61
|
+
* @param {IContext} context
|
|
62
|
+
* @returns {*} {Promise<IData>}
|
|
63
|
+
*/
|
|
64
|
+
export declare function getMenuItemByTag(tag: string, appMenu: IAppMenuController, context: IContext): Promise<IData | undefined>;
|
|
@@ -2,12 +2,23 @@ import { route2routePath } from '@ibiz-template/vue3-util';
|
|
|
2
2
|
import { RouteConst } from '@ibiz-template/runtime';
|
|
3
3
|
|
|
4
4
|
"use strict";
|
|
5
|
+
function getAppIndexViewName(context) {
|
|
6
|
+
const targetAppModel = ibiz.hub.getAppSourceModel(context.srfappid);
|
|
7
|
+
if (targetAppModel.getDefaultPSAppIndexView) {
|
|
8
|
+
const view = targetAppModel.getDefaultPSAppIndexView;
|
|
9
|
+
const name = view.path.split("/").pop().replace(".json", "");
|
|
10
|
+
return name;
|
|
11
|
+
}
|
|
12
|
+
return ibiz.hub.defaultAppIndexViewName;
|
|
13
|
+
}
|
|
5
14
|
function getIndexBreadcrumb(context) {
|
|
6
15
|
const app = ibiz.hub.getApp(context.srfappid);
|
|
7
16
|
const caption = app.model.caption;
|
|
17
|
+
const indexViewName = getAppIndexViewName(context);
|
|
8
18
|
return {
|
|
9
|
-
viewName:
|
|
19
|
+
viewName: indexViewName,
|
|
10
20
|
fullPath: "/",
|
|
21
|
+
type: "default",
|
|
11
22
|
caption
|
|
12
23
|
};
|
|
13
24
|
}
|
|
@@ -48,7 +59,7 @@ function getCurViewName(router) {
|
|
|
48
59
|
const routePath = route2routePath(currentRoute.value);
|
|
49
60
|
return ((_a = routePath.pathNodes.pop()) == null ? void 0 : _a.viewName) || "";
|
|
50
61
|
}
|
|
51
|
-
function getViewInfoByViewStack(viewName) {
|
|
62
|
+
function getViewInfoByViewStack(viewName, context) {
|
|
52
63
|
if (viewName === RouteConst.ROUTE_MODAL_TAG) {
|
|
53
64
|
return {
|
|
54
65
|
viewName,
|
|
@@ -56,18 +67,51 @@ function getViewInfoByViewStack(viewName) {
|
|
|
56
67
|
isModal: true
|
|
57
68
|
};
|
|
58
69
|
}
|
|
59
|
-
const view = ibiz.
|
|
70
|
+
const view = ibiz.appUtil.viewCacheCenter.get(viewName);
|
|
71
|
+
const indexViewName = getAppIndexViewName(context);
|
|
60
72
|
if (view) {
|
|
61
73
|
let isEmbed = false;
|
|
62
|
-
if (view.parentView && view.parentView.model.codeName !==
|
|
74
|
+
if (view.parentView && view.parentView.model.codeName !== indexViewName) {
|
|
63
75
|
isEmbed = true;
|
|
64
76
|
}
|
|
65
|
-
|
|
77
|
+
const data = view.state.srfactiveviewdata;
|
|
78
|
+
const result = {
|
|
66
79
|
viewName: view.model.codeName,
|
|
67
80
|
caption: view.model.caption,
|
|
68
81
|
isEmbed
|
|
69
82
|
};
|
|
83
|
+
if (data && data.srfkey) {
|
|
84
|
+
Object.assign(result, { dataInfo: data.srfmajortext || "" });
|
|
85
|
+
}
|
|
86
|
+
return result;
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
function getMenuTag(pathNodes) {
|
|
90
|
+
var _a;
|
|
91
|
+
if (pathNodes.length > 1) {
|
|
92
|
+
return ((_a = pathNodes[1].params) == null ? void 0 : _a.srfmenuitem) || "";
|
|
93
|
+
}
|
|
94
|
+
return "";
|
|
95
|
+
}
|
|
96
|
+
async function getMenuItemByTag(tag, appMenu, context) {
|
|
97
|
+
var _a;
|
|
98
|
+
if (!tag) {
|
|
99
|
+
return;
|
|
100
|
+
}
|
|
101
|
+
const menuItem = appMenu.allAppMenuItems.find((x) => x.id === tag);
|
|
102
|
+
if (menuItem) {
|
|
103
|
+
const app = ibiz.hub.getApp(context.srfappid);
|
|
104
|
+
const appFunc = app.getAppFunc(menuItem.appFuncId);
|
|
105
|
+
const viewName = ((_a = appFunc.appViewId) == null ? void 0 : _a.split(".").pop()) || "";
|
|
106
|
+
const viewConfig = await ibiz.hub.config.view.get(viewName);
|
|
107
|
+
return {
|
|
108
|
+
tag,
|
|
109
|
+
viewName,
|
|
110
|
+
viewConfig,
|
|
111
|
+
appFunc,
|
|
112
|
+
menuItem
|
|
113
|
+
};
|
|
70
114
|
}
|
|
71
115
|
}
|
|
72
116
|
|
|
73
|
-
export { getAppFuncByViewName, getCurViewName, getIndexBreadcrumb, getMenuItemsByAppFunc, getViewInfoByViewStack };
|
|
117
|
+
export { getAppFuncByViewName, getAppIndexViewName, getCurViewName, getIndexBreadcrumb, getMenuItemByTag, getMenuItemsByAppFunc, getMenuTag, getViewInfoByViewStack };
|
|
@@ -95,6 +95,7 @@ const PanelButton = /* @__PURE__ */ defineComponent({
|
|
|
95
95
|
}, [createVNode(resolveComponent("el-button"), {
|
|
96
96
|
"type": this.buttonType,
|
|
97
97
|
"text": this.isText,
|
|
98
|
+
"data-id": this.modelData.id,
|
|
98
99
|
"title": showTitle(this.tooltip),
|
|
99
100
|
"disabled": this.state.disabled,
|
|
100
101
|
"loading": this.state.loading,
|
package/es/panel-component/user-message/async-action/async-data-export/async-data-export.mjs
CHANGED
|
@@ -29,6 +29,7 @@ const AsyncDataExport = /* @__PURE__ */ defineComponent({
|
|
|
29
29
|
beginTime: "",
|
|
30
30
|
endTime: "",
|
|
31
31
|
fileUrl: "",
|
|
32
|
+
fileName: "",
|
|
32
33
|
isFinish: false
|
|
33
34
|
});
|
|
34
35
|
info.title = ibiz.i18n.t("panelComponent.userMessage.asyncDataExport.exportDetailPrompt", {
|
|
@@ -39,6 +40,7 @@ const AsyncDataExport = /* @__PURE__ */ defineComponent({
|
|
|
39
40
|
if (props.asyncAction.asyncresultdownloadurl) {
|
|
40
41
|
const asyncResultDownloadObj = JSON.parse(props.asyncAction.asyncresultdownloadurl);
|
|
41
42
|
info.fileUrl = "".concat(ibiz.env.baseUrl, "/").concat(ibiz.env.appId).concat(ibiz.env.downloadFileUrl, "/").concat(asyncResultDownloadObj.folder, "/").concat(asyncResultDownloadObj.fileid).replace("/{cat}", "");
|
|
43
|
+
info.fileName = asyncResultDownloadObj.filename;
|
|
42
44
|
}
|
|
43
45
|
if (!finishedStates.includes(props.asyncAction.actionstate)) {
|
|
44
46
|
info.isFinish = false;
|
|
@@ -46,7 +48,7 @@ const AsyncDataExport = /* @__PURE__ */ defineComponent({
|
|
|
46
48
|
info.isFinish = true;
|
|
47
49
|
}
|
|
48
50
|
const onDownLoad = () => {
|
|
49
|
-
ibiz.util.file.fileDownload(info.fileUrl);
|
|
51
|
+
ibiz.util.file.fileDownload(info.fileUrl, info.fileName);
|
|
50
52
|
};
|
|
51
53
|
return {
|
|
52
54
|
ns,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createApp } from 'vue';
|
|
2
2
|
import ElementPlus from 'element-plus';
|
|
3
|
-
import { defaultNamespace } from '../../node_modules/.pnpm/@ibiz-template_core@0.7.41-alpha.
|
|
3
|
+
import { defaultNamespace } from '../../node_modules/.pnpm/@ibiz-template_core@0.7.41-alpha.18_axios@1.6.8_lodash-es@4.17.21_qs@6.11.2_qx-util@0.4.8_ramda@0.29.1/node_modules/@ibiz-template/core/out/utils/namespace/namespace.mjs';
|
|
4
4
|
import { IBizFullscreenToolbar } from '../../common/fullscreen-toolbar/fullscreen-toolbar.mjs';
|
|
5
5
|
|
|
6
6
|
"use strict";
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { ViewController,
|
|
1
|
+
import { ViewController, ICalendarExpViewEvent, ICalendarExpViewState } from '@ibiz-template/runtime';
|
|
2
2
|
import { IAppDECalendarExplorerView } from '@ibiz/model-core';
|
|
3
|
-
|
|
3
|
+
import { ExpViewEngine } from './exp-view.engine';
|
|
4
|
+
export declare class CalendarExpViewEngine extends ExpViewEngine {
|
|
4
5
|
/**
|
|
5
6
|
* 日历导航视图控制器
|
|
6
7
|
*
|
|
@@ -14,12 +15,10 @@ export declare class CalendarExpViewEngine extends ViewEngineBase {
|
|
|
14
15
|
*/
|
|
15
16
|
protected view: ViewController<IAppDECalendarExplorerView, ICalendarExpViewState, ICalendarExpViewEvent>;
|
|
16
17
|
/**
|
|
17
|
-
*
|
|
18
|
-
*
|
|
18
|
+
* @description 导航栏部件名称
|
|
19
19
|
* @readonly
|
|
20
|
+
* @type {string}
|
|
20
21
|
* @memberof CalendarExpViewEngine
|
|
21
22
|
*/
|
|
22
|
-
get
|
|
23
|
-
onCreated(): Promise<void>;
|
|
24
|
-
onMounted(): Promise<void>;
|
|
23
|
+
get expBarName(): string;
|
|
25
24
|
}
|
|
@@ -1,33 +1,15 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ExpViewEngine } from './exp-view.engine.mjs';
|
|
2
2
|
|
|
3
3
|
"use strict";
|
|
4
|
-
class CalendarExpViewEngine extends
|
|
4
|
+
class CalendarExpViewEngine extends ExpViewEngine {
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
7
|
-
*
|
|
6
|
+
* @description 导航栏部件名称
|
|
8
7
|
* @readonly
|
|
8
|
+
* @type {string}
|
|
9
9
|
* @memberof CalendarExpViewEngine
|
|
10
10
|
*/
|
|
11
|
-
get
|
|
12
|
-
return
|
|
13
|
-
"calendarexpbar"
|
|
14
|
-
);
|
|
15
|
-
}
|
|
16
|
-
async onCreated() {
|
|
17
|
-
await super.onCreated();
|
|
18
|
-
const { childNames } = this.view;
|
|
19
|
-
childNames.push("calendarexpbar");
|
|
20
|
-
if (!this.view.slotProps.calendarexpbar) {
|
|
21
|
-
this.view.slotProps.calendarexpbar = {};
|
|
22
|
-
}
|
|
23
|
-
this.view.slotProps.calendarexpbar.srfnav = this.view.state.srfnav;
|
|
24
|
-
}
|
|
25
|
-
async onMounted() {
|
|
26
|
-
await super.onMounted();
|
|
27
|
-
const { model } = this.view;
|
|
28
|
-
if (!this.view.state.noLoadDefault && model.loadDefault) {
|
|
29
|
-
this.calendarExpBar.load();
|
|
30
|
-
}
|
|
11
|
+
get expBarName() {
|
|
12
|
+
return "calendarexpbar";
|
|
31
13
|
}
|
|
32
14
|
}
|
|
33
15
|
|