@ibiz-template/vue3-components 0.0.1-alpha.1 → 0.0.1-alpha.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/common/action-toolbar/action-toolbar.d.ts +64 -0
- package/es/common/app-col/app-col.d.ts +45 -0
- package/es/common/app-col/app-col.js +91 -0
- package/es/common/app-icon/app-icon.d.ts +1 -1
- package/es/common/app-icon/app-icon.js +1 -2
- package/es/common/app-router-view/app-router-view.d.ts +1 -0
- package/es/common/app-router-view/app-router-view.js +2 -1
- package/es/common/app-row/app-row.d.ts +9 -0
- package/es/common/app-row/app-row.js +41 -0
- package/es/{layout → common}/control-base/control-base.js +6 -13
- package/es/common/index.d.ts +7 -5
- package/es/common/index.js +24 -5
- package/es/control/app-menu/app-menu-provider.js +1 -1
- package/es/control/app-menu/app-menu-state.d.ts +23 -0
- package/es/control/app-menu/app-menu-state.js +23 -0
- package/es/control/app-menu/app-menu.controller.d.ts +52 -0
- package/es/control/app-menu/app-menu.controller.js +91 -0
- package/es/control/app-menu/app-menu.d.ts +10 -7
- package/es/control/app-menu/app-menu.js +6 -10
- package/es/control/app-menu/index.js +10 -6
- package/es/control/form/form/form-control.d.ts +34 -0
- package/es/control/form/form/form-state.d.ts +36 -0
- package/es/control/form/form/form-state.js +39 -0
- package/es/control/form/form/form.controller.d.ts +129 -0
- package/es/control/form/form/form.controller.js +199 -0
- package/es/control/form/form/index.js +27 -0
- package/es/control/form/form-detail/form-detail/form-detail-state.d.ts +55 -0
- package/es/control/form/form-detail/form-detail/form-detail-state.js +72 -0
- package/es/control/form/form-detail/form-detail/form-detail.d.ts +106 -0
- package/es/control/form/form-detail/form-detail/form-detail.js +176 -0
- package/es/control/form/form-detail/form-detail/index.d.ts +2 -0
- package/es/control/form/form-detail/form-detail/index.js +2 -0
- package/es/control/form/form-detail/form-group-panel/form-group-panel-provider.d.ts +17 -0
- package/es/control/form/form-detail/form-group-panel/form-group-panel-provider.js +20 -0
- package/es/control/form/form-detail/form-group-panel/form-group-panel-state.d.ts +27 -0
- package/es/control/form/form-detail/form-group-panel/form-group-panel-state.js +29 -0
- package/es/control/form/form-detail/form-group-panel/form-group-panel.controller.d.ts +35 -0
- package/es/control/form/form-detail/form-group-panel/form-group-panel.controller.js +59 -0
- package/es/control/form/form-detail/form-group-panel/index.d.ts +3 -0
- package/es/control/form/form-detail/form-group-panel/index.js +3 -0
- package/es/control/form/form-detail/form-item/form-item-container/form-item-container.d.ts +43 -0
- package/es/control/form/form-detail/form-item/form-item-provider.d.ts +18 -0
- package/es/control/form/form-detail/form-item/form-item-state.d.ts +27 -0
- package/es/control/form/form-detail/form-item/form-item.controller.d.ts +139 -0
- package/es/control/form/form-detail/form-item/form-item.d.ts +28 -0
- package/es/control/form/form-detail/form-item/index.d.ts +3 -0
- package/es/control/form/form-detail/form-page/form-page-item.d.ts +32 -0
- package/es/control/form/form-detail/form-page/form-page-provider.d.ts +17 -0
- package/es/control/form/form-detail/form-page/form-page-state.d.ts +12 -0
- package/es/control/form/form-detail/form-page/form-page.controller.d.ts +16 -0
- package/es/{layout/control-layout/control-layout.d.ts → control/form/form-detail/form-page/form-page.d.ts} +7 -9
- package/es/control/form/form-detail/index.d.ts +3 -0
- package/es/control/form/form-detail/index.js +3 -0
- package/es/control/form/index.d.ts +8 -0
- package/es/control/form/index.js +12 -0
- package/es/control/form/search-form/index.js +15 -0
- package/es/control/form/search-form/search-form-provider.d.ts +13 -0
- package/es/{views/index-view/index-view-provider.js → control/form/search-form/search-form-provider.js} +3 -3
- package/es/control/form/search-form/search-form-state.d.ts +19 -0
- package/es/control/form/search-form/search-form-state.js +22 -0
- package/es/control/form/search-form/search-form.controller.d.ts +86 -0
- package/es/control/form/search-form/search-form.controller.js +128 -0
- package/{lib/layout/view-shell/view-shell.d.ts → es/control/form/search-form/search-form.d.ts} +17 -22
- package/es/control/grid/grid/grid-column.controller.d.ts +76 -0
- package/es/control/grid/grid/grid-column.controller.js +89 -0
- package/{lib/control/grid-control → es/control/grid/grid}/grid-control.util.d.ts +3 -2
- package/es/control/grid/grid/grid-row.controller.d.ts +77 -0
- package/es/control/grid/grid/grid-row.controller.js +85 -0
- package/es/control/grid/grid/grid-state.d.ts +19 -0
- package/es/control/grid/grid/grid-state.js +23 -0
- package/es/control/grid/grid/grid.controller.d.ts +225 -0
- package/es/control/grid/grid/grid.controller.js +386 -0
- package/es/control/{grid-control → grid/grid-field-column}/grid-field-column-provider.d.ts +3 -1
- package/es/control/{grid-control → grid/grid-field-column}/grid-field-column-provider.js +1 -1
- package/es/control/grid/grid-field-column/grid-field-column.controller.d.ts +83 -0
- package/es/control/grid/grid-field-column/grid-field-column.controller.js +144 -0
- package/es/control/{grid-control → grid}/grid-field-column/grid-field-column.d.ts +9 -7
- package/es/{common → control/grid}/grid-pagination/grid-pagination.d.ts +1 -1
- package/es/control/grid/grid-ua-column/grid-ua-column-provider.d.ts +17 -0
- package/es/control/grid/grid-ua-column/grid-ua-column-provider.js +20 -0
- package/es/control/grid/grid-ua-column/grid-ua-column.controller.d.ts +28 -0
- package/es/control/grid/grid-ua-column/grid-ua-column.controller.js +62 -0
- package/es/control/grid/grid-ua-column/grid-ua-column.d.ts +46 -0
- package/es/control/grid/index.js +31 -0
- package/es/control/index.d.ts +4 -2
- package/es/control/index.js +4 -2
- package/es/control/panel/index.js +19 -0
- package/es/control/panel/panel/index.d.ts +4 -0
- package/es/control/panel/panel/index.js +4 -0
- package/es/control/panel/panel/panel-item-state.d.ts +47 -0
- package/es/control/panel/panel/panel-item-state.js +58 -0
- package/es/control/panel/panel/panel-item.controller.d.ts +71 -0
- package/es/control/panel/panel/panel-item.controller.js +135 -0
- package/es/control/panel/panel/panel-state.d.ts +21 -0
- package/es/control/panel/panel/panel-state.js +24 -0
- package/es/control/panel/panel/panel.controller.d.ts +114 -0
- package/es/control/panel/panel/panel.controller.js +187 -0
- package/es/control/panel/view-layout-panel/index.d.ts +3 -0
- package/es/control/panel/view-layout-panel/index.js +3 -0
- package/es/control/panel/view-layout-panel/view-layout-panel-provider.d.ts +13 -0
- package/es/control/panel/view-layout-panel/view-layout-panel-provider.js +14 -0
- package/es/control/panel/view-layout-panel/view-layout-panel.controller.d.ts +38 -0
- package/es/control/panel/view-layout-panel/view-layout-panel.controller.js +57 -0
- package/es/control/panel/view-layout-panel/view-layout-panel.d.ts +41 -0
- package/es/control/toolbar/index.js +12 -0
- package/{lib/control/toolbar-control → es/control/toolbar}/toolbar-control.d.ts +4 -10
- package/es/control/toolbar/toolbar-state.d.ts +24 -0
- package/es/control/toolbar/toolbar-state.js +29 -0
- package/es/control/toolbar/toolbar.controllerr.d.ts +33 -0
- package/es/control/toolbar/toolbar.controllerr.js +81 -0
- package/es/editor/index.d.ts +5 -0
- package/es/editor/index.js +14 -0
- package/es/editor/text-box/ibiz-input/ibiz-input.d.ts +51 -0
- package/es/editor/text-box/index.d.ts +1 -0
- package/es/editor/text-box/index.js +4 -0
- package/es/editor/text-box/text-box-provider.d.ts +18 -0
- package/es/editor/text-box/text-box-provider.js +29 -0
- package/es/editor/text-box/text-box.controller.d.ts +20 -0
- package/es/editor/text-box/text-box.controller.js +22 -0
- package/es/index.d.ts +9 -2
- package/es/index.js +30 -3
- package/es/panel-component/auth-userinfo/auth-userinfo-provider.d.ts +16 -0
- package/es/panel-component/auth-userinfo/auth-userinfo-provider.js +20 -0
- package/es/panel-component/auth-userinfo/index.js +19 -0
- package/es/panel-component/index.d.ts +10 -0
- package/es/panel-component/index.js +25 -0
- package/es/panel-component/nav-pos/index.js +20 -0
- package/es/panel-component/nav-pos/nav-pos-provider.d.ts +17 -0
- package/es/panel-component/nav-pos/nav-pos-provider.js +20 -0
- package/es/panel-component/nav-pos/nav-pos-state.d.ts +14 -0
- package/es/panel-component/nav-pos/nav-pos-state.js +17 -0
- package/es/panel-component/nav-pos/nav-pos.controller.d.ts +66 -0
- package/es/panel-component/nav-pos/nav-pos.controller.js +103 -0
- package/es/panel-component/nav-pos/nav-pos.d.ts +27 -0
- package/es/panel-component/nav-tabs/index.js +16 -0
- package/es/panel-component/nav-tabs/nav-tabs-provider.d.ts +17 -0
- package/es/panel-component/nav-tabs/nav-tabs-provider.js +20 -0
- package/es/panel-component/nav-tabs/nav-tabs-state.d.ts +21 -0
- package/es/panel-component/nav-tabs/nav-tabs-state.js +18 -0
- package/es/panel-component/nav-tabs/nav-tabs.controller.js +124 -0
- package/es/panel-component/nav-tabs/nav-tabs.d.ts +35 -0
- package/es/panel-component/panel-container/index.js +23 -0
- package/es/panel-component/panel-container/panel-container-provider.d.ts +16 -0
- package/es/panel-component/panel-container/panel-container-provider.js +20 -0
- package/es/panel-component/panel-container/panel-container-state.d.ts +12 -0
- package/es/panel-component/panel-container/panel-container-state.js +6 -0
- package/es/panel-component/panel-container/panel-container.controller.d.ts +14 -0
- package/es/panel-component/panel-container/panel-container.controller.js +11 -0
- package/es/panel-component/panel-container/panel-container.d.ts +28 -0
- package/es/panel-component/panel-ctrl-pos/index.js +18 -0
- package/es/panel-component/panel-ctrl-pos/panel-ctrl-pos-provider.d.ts +17 -0
- package/es/panel-component/panel-ctrl-pos/panel-ctrl-pos-provider.js +20 -0
- package/es/panel-component/panel-ctrl-pos/panel-ctrl-pos.controller.d.ts +21 -0
- package/es/panel-component/panel-ctrl-pos/panel-ctrl-pos.controller.js +6 -0
- package/es/panel-component/scroll-container/index.js +43 -0
- package/es/panel-component/scroll-container/scroll-container/index.d.ts +3 -0
- package/es/panel-component/scroll-container/scroll-container/index.js +3 -0
- package/es/panel-component/scroll-container/scroll-container/scroll-container-provider.d.ts +17 -0
- package/es/panel-component/scroll-container/scroll-container/scroll-container-provider.js +20 -0
- package/es/panel-component/scroll-container/scroll-container/scroll-container.controller.d.ts +22 -0
- package/es/panel-component/scroll-container/scroll-container/scroll-container.controller.js +11 -0
- package/es/panel-component/scroll-container/scroll-container/scroll-container.d.ts +26 -0
- package/es/panel-component/scroll-container/scroll-container-item/index.d.ts +3 -0
- package/es/panel-component/scroll-container/scroll-container-item/index.js +3 -0
- package/es/panel-component/scroll-container/scroll-container-item/scroll-container-item-provider.d.ts +17 -0
- package/es/panel-component/scroll-container/scroll-container-item/scroll-container-item-provider.js +20 -0
- package/es/panel-component/scroll-container/scroll-container-item/scroll-container-item.controller.d.ts +21 -0
- package/es/panel-component/scroll-container/scroll-container-item/scroll-container-item.controller.js +6 -0
- package/es/panel-component/scroll-container/scroll-container-item/scroll-container-item.d.ts +26 -0
- package/es/view/index.js +13 -0
- package/{lib/views/grid-view/grid-view-provider.d.ts → es/view/view-provider.d.ts} +3 -3
- package/es/{views/grid-view/grid-view-provider.js → view/view-provider.js} +3 -3
- package/es/view-engine/grid-view-engine.d.ts +48 -0
- package/es/view-engine/grid-view-engine.js +158 -0
- package/es/view-engine/index-view-engine.d.ts +9 -0
- package/es/view-engine/index-view-engine.js +20 -0
- package/es/view-engine/index.d.ts +6 -0
- package/es/view-engine/index.js +23 -0
- package/lib/common/action-toolbar/action-toolbar.d.ts +64 -0
- package/lib/common/app-col/app-col.d.ts +45 -0
- package/lib/common/app-col/app-col.js +91 -0
- package/lib/common/app-icon/app-icon.d.ts +1 -1
- package/lib/common/app-icon/app-icon.js +1 -2
- package/lib/common/app-router-view/app-router-view.d.ts +1 -0
- package/lib/common/app-router-view/app-router-view.js +2 -1
- package/lib/common/app-row/app-row.d.ts +9 -0
- package/lib/common/app-row/app-row.js +41 -0
- package/lib/{layout → common}/control-base/control-base.js +5 -12
- package/lib/common/index.d.ts +7 -5
- package/lib/common/index.js +26 -35
- package/lib/control/app-menu/app-menu-provider.js +1 -1
- package/lib/control/app-menu/app-menu-state.d.ts +23 -0
- package/lib/control/app-menu/app-menu-state.js +23 -0
- package/lib/control/app-menu/app-menu.controller.d.ts +52 -0
- package/lib/control/app-menu/app-menu.controller.js +91 -0
- package/lib/control/app-menu/app-menu.d.ts +10 -7
- package/lib/control/app-menu/app-menu.js +7 -11
- package/lib/control/app-menu/index.js +35 -5
- package/lib/control/form/form/form-control.d.ts +34 -0
- package/lib/control/form/form/form-state.d.ts +36 -0
- package/lib/control/form/form/form-state.js +39 -0
- package/lib/control/form/form/form.controller.d.ts +129 -0
- package/lib/control/form/form/form.controller.js +199 -0
- package/lib/control/form/form/index.js +46 -0
- package/lib/control/form/form-detail/form-detail/form-detail-state.d.ts +55 -0
- package/lib/control/form/form-detail/form-detail/form-detail-state.js +72 -0
- package/lib/control/form/form-detail/form-detail/form-detail.d.ts +106 -0
- package/lib/control/form/form-detail/form-detail/form-detail.js +176 -0
- package/lib/control/form/form-detail/form-detail/index.d.ts +2 -0
- package/lib/{views → control/form/form-detail/form-detail}/index.js +6 -8
- package/lib/control/form/form-detail/form-group-panel/form-group-panel-provider.d.ts +17 -0
- package/lib/control/form/form-detail/form-group-panel/form-group-panel-provider.js +20 -0
- package/lib/control/form/form-detail/form-group-panel/form-group-panel-state.d.ts +27 -0
- package/lib/control/form/form-detail/form-group-panel/form-group-panel-state.js +29 -0
- package/lib/control/form/form-detail/form-group-panel/form-group-panel.controller.d.ts +35 -0
- package/lib/control/form/form-detail/form-group-panel/form-group-panel.controller.js +59 -0
- package/lib/control/form/form-detail/form-group-panel/index.d.ts +3 -0
- package/lib/control/form/form-detail/form-group-panel/index.js +26 -0
- package/lib/control/form/form-detail/form-item/form-item-container/form-item-container.d.ts +43 -0
- package/lib/control/form/form-detail/form-item/form-item-provider.d.ts +18 -0
- package/lib/control/form/form-detail/form-item/form-item-state.d.ts +27 -0
- package/lib/control/form/form-detail/form-item/form-item.controller.d.ts +139 -0
- package/lib/control/form/form-detail/form-item/form-item.d.ts +28 -0
- package/lib/control/form/form-detail/form-item/index.d.ts +3 -0
- package/lib/control/form/form-detail/form-page/form-page-item.d.ts +32 -0
- package/lib/control/form/form-detail/form-page/form-page-provider.d.ts +17 -0
- package/lib/control/form/form-detail/form-page/form-page-state.d.ts +12 -0
- package/lib/control/form/form-detail/form-page/form-page.controller.d.ts +16 -0
- package/lib/{layout/control-layout/control-layout.d.ts → control/form/form-detail/form-page/form-page.d.ts} +7 -9
- package/lib/control/form/form-detail/index.d.ts +3 -0
- package/lib/control/form/form-detail/index.js +26 -0
- package/lib/control/form/index.d.ts +8 -0
- package/lib/control/form/index.js +32 -0
- package/lib/control/form/search-form/index.js +15 -0
- package/lib/control/form/search-form/search-form-provider.d.ts +13 -0
- package/lib/{views/index-view/index-view-provider.js → control/form/search-form/search-form-provider.js} +3 -3
- package/lib/control/form/search-form/search-form-state.d.ts +19 -0
- package/lib/control/form/search-form/search-form-state.js +22 -0
- package/lib/control/form/search-form/search-form.controller.d.ts +86 -0
- package/lib/control/form/search-form/search-form.controller.js +128 -0
- package/{es/layout/view-shell/view-shell.d.ts → lib/control/form/search-form/search-form.d.ts} +17 -22
- package/lib/control/grid/grid/grid-column.controller.d.ts +76 -0
- package/lib/control/grid/grid/grid-column.controller.js +89 -0
- package/{es/control/grid-control → lib/control/grid/grid}/grid-control.util.d.ts +3 -2
- package/lib/control/grid/grid/grid-row.controller.d.ts +77 -0
- package/lib/control/grid/grid/grid-row.controller.js +85 -0
- package/lib/control/grid/grid/grid-state.d.ts +19 -0
- package/lib/control/grid/grid/grid-state.js +23 -0
- package/lib/control/grid/grid/grid.controller.d.ts +225 -0
- package/lib/control/grid/grid/grid.controller.js +386 -0
- package/lib/control/{grid-control → grid/grid-field-column}/grid-field-column-provider.d.ts +3 -1
- package/lib/control/{grid-control → grid/grid-field-column}/grid-field-column-provider.js +2 -2
- package/lib/control/grid/grid-field-column/grid-field-column.controller.d.ts +83 -0
- package/lib/control/grid/grid-field-column/grid-field-column.controller.js +144 -0
- package/lib/control/{grid-control → grid}/grid-field-column/grid-field-column.d.ts +9 -7
- package/lib/{common → control/grid}/grid-pagination/grid-pagination.d.ts +1 -1
- package/lib/control/grid/grid-ua-column/grid-ua-column-provider.d.ts +17 -0
- package/lib/control/grid/grid-ua-column/grid-ua-column-provider.js +20 -0
- package/lib/control/grid/grid-ua-column/grid-ua-column.controller.d.ts +28 -0
- package/lib/control/grid/grid-ua-column/grid-ua-column.controller.js +62 -0
- package/lib/control/grid/grid-ua-column/grid-ua-column.d.ts +46 -0
- package/lib/control/grid/index.js +35 -0
- package/lib/control/index.d.ts +4 -2
- package/lib/control/index.js +22 -6
- package/lib/control/panel/index.js +35 -0
- package/lib/control/panel/panel/index.d.ts +4 -0
- package/lib/control/panel/panel/index.js +34 -0
- package/lib/control/panel/panel/panel-item-state.d.ts +47 -0
- package/lib/control/panel/panel/panel-item-state.js +58 -0
- package/lib/control/panel/panel/panel-item.controller.d.ts +71 -0
- package/lib/control/panel/panel/panel-item.controller.js +135 -0
- package/lib/control/panel/panel/panel-state.d.ts +21 -0
- package/lib/control/panel/panel/panel-state.js +24 -0
- package/lib/control/panel/panel/panel.controller.d.ts +114 -0
- package/lib/control/panel/panel/panel.controller.js +187 -0
- package/lib/control/panel/view-layout-panel/index.d.ts +3 -0
- package/lib/control/panel/view-layout-panel/index.js +26 -0
- package/lib/control/panel/view-layout-panel/view-layout-panel-provider.d.ts +13 -0
- package/lib/control/panel/view-layout-panel/view-layout-panel-provider.js +14 -0
- package/lib/control/panel/view-layout-panel/view-layout-panel.controller.d.ts +38 -0
- package/lib/control/panel/view-layout-panel/view-layout-panel.controller.js +57 -0
- package/lib/control/panel/view-layout-panel/view-layout-panel.d.ts +41 -0
- package/lib/control/{toolbar-control → toolbar}/index.js +5 -5
- package/{es/control/toolbar-control → lib/control/toolbar}/toolbar-control.d.ts +4 -10
- package/lib/control/toolbar/toolbar-state.d.ts +24 -0
- package/lib/control/toolbar/toolbar-state.js +29 -0
- package/lib/control/toolbar/toolbar.controllerr.d.ts +33 -0
- package/lib/control/toolbar/toolbar.controllerr.js +81 -0
- package/lib/editor/index.d.ts +5 -0
- package/lib/editor/index.js +14 -0
- package/lib/editor/text-box/ibiz-input/ibiz-input.d.ts +51 -0
- package/lib/editor/text-box/index.d.ts +1 -0
- package/lib/editor/text-box/index.js +7 -0
- package/lib/editor/text-box/text-box-provider.d.ts +18 -0
- package/lib/editor/text-box/text-box-provider.js +29 -0
- package/lib/editor/text-box/text-box.controller.d.ts +20 -0
- package/lib/editor/text-box/text-box.controller.js +22 -0
- package/lib/index.d.ts +9 -2
- package/lib/index.js +45 -12
- package/lib/panel-component/auth-userinfo/auth-userinfo-provider.d.ts +16 -0
- package/lib/panel-component/auth-userinfo/auth-userinfo-provider.js +20 -0
- package/lib/panel-component/auth-userinfo/index.js +23 -0
- package/lib/panel-component/index.d.ts +10 -0
- package/lib/panel-component/index.js +55 -0
- package/lib/panel-component/nav-pos/index.js +30 -0
- package/lib/panel-component/nav-pos/nav-pos-provider.d.ts +17 -0
- package/lib/panel-component/nav-pos/nav-pos-provider.js +20 -0
- package/lib/panel-component/nav-pos/nav-pos-state.d.ts +14 -0
- package/lib/panel-component/nav-pos/nav-pos-state.js +17 -0
- package/lib/panel-component/nav-pos/nav-pos.controller.d.ts +66 -0
- package/lib/panel-component/nav-pos/nav-pos.controller.js +103 -0
- package/lib/panel-component/nav-pos/nav-pos.d.ts +27 -0
- package/lib/panel-component/nav-tabs/index.js +20 -0
- package/lib/panel-component/nav-tabs/nav-tabs-provider.d.ts +17 -0
- package/lib/panel-component/nav-tabs/nav-tabs-provider.js +20 -0
- package/lib/panel-component/nav-tabs/nav-tabs-state.d.ts +21 -0
- package/lib/panel-component/nav-tabs/nav-tabs-state.js +18 -0
- package/lib/panel-component/nav-tabs/nav-tabs.controller.js +124 -0
- package/lib/panel-component/nav-tabs/nav-tabs.d.ts +35 -0
- package/lib/panel-component/panel-container/index.js +33 -0
- package/lib/panel-component/panel-container/panel-container-provider.d.ts +16 -0
- package/lib/panel-component/panel-container/panel-container-provider.js +20 -0
- package/lib/panel-component/panel-container/panel-container-state.d.ts +12 -0
- package/lib/panel-component/panel-container/panel-container-state.js +6 -0
- package/lib/panel-component/panel-container/panel-container.controller.d.ts +14 -0
- package/lib/panel-component/panel-container/panel-container.controller.js +11 -0
- package/lib/panel-component/panel-container/panel-container.d.ts +28 -0
- package/lib/panel-component/panel-ctrl-pos/index.js +25 -0
- package/lib/panel-component/panel-ctrl-pos/panel-ctrl-pos-provider.d.ts +17 -0
- package/lib/panel-component/panel-ctrl-pos/panel-ctrl-pos-provider.js +20 -0
- package/lib/panel-component/panel-ctrl-pos/panel-ctrl-pos.controller.d.ts +21 -0
- package/lib/panel-component/panel-ctrl-pos/panel-ctrl-pos.controller.js +6 -0
- package/lib/panel-component/scroll-container/index.js +57 -0
- package/lib/panel-component/scroll-container/scroll-container/index.d.ts +3 -0
- package/lib/panel-component/scroll-container/scroll-container/index.js +26 -0
- package/lib/panel-component/scroll-container/scroll-container/scroll-container-provider.d.ts +17 -0
- package/lib/panel-component/scroll-container/scroll-container/scroll-container-provider.js +20 -0
- package/lib/panel-component/scroll-container/scroll-container/scroll-container.controller.d.ts +22 -0
- package/lib/panel-component/scroll-container/scroll-container/scroll-container.controller.js +11 -0
- package/lib/panel-component/scroll-container/scroll-container/scroll-container.d.ts +26 -0
- package/lib/panel-component/scroll-container/scroll-container-item/index.d.ts +3 -0
- package/lib/panel-component/scroll-container/scroll-container-item/index.js +26 -0
- package/lib/panel-component/scroll-container/scroll-container-item/scroll-container-item-provider.d.ts +17 -0
- package/lib/panel-component/scroll-container/scroll-container-item/scroll-container-item-provider.js +20 -0
- package/lib/panel-component/scroll-container/scroll-container-item/scroll-container-item.controller.d.ts +21 -0
- package/lib/panel-component/scroll-container/scroll-container-item/scroll-container-item.controller.js +6 -0
- package/lib/panel-component/scroll-container/scroll-container-item/scroll-container-item.d.ts +26 -0
- package/lib/view/index.js +15 -0
- package/{es/views/grid-view/grid-view-provider.d.ts → lib/view/view-provider.d.ts} +3 -3
- package/lib/{views/grid-view/grid-view-provider.js → view/view-provider.js} +3 -3
- package/lib/view-engine/grid-view-engine.d.ts +48 -0
- package/lib/view-engine/grid-view-engine.js +158 -0
- package/lib/view-engine/index-view-engine.d.ts +9 -0
- package/lib/view-engine/index-view-engine.js +20 -0
- package/lib/view-engine/index.d.ts +6 -0
- package/lib/view-engine/index.js +35 -0
- package/package.json +16 -16
- package/src/common/action-toolbar/action-toolbar.scss +31 -0
- package/src/common/action-toolbar/action-toolbar.tsx +117 -0
- package/src/common/app-col/app-col.tsx +34 -13
- package/src/common/app-icon/app-icon.tsx +0 -1
- package/src/common/app-router-view/app-router-view.tsx +2 -1
- package/src/common/app-row/app-row.tsx +2 -1
- package/src/{layout/control-layout/control-layout.scss → common/control-base/control-base.scss} +1 -1
- package/src/{layout → common}/control-base/control-base.tsx +4 -7
- package/src/common/index.ts +23 -4
- package/src/control/app-menu/app-menu-provider.ts +1 -1
- package/src/control/app-menu/app-menu.controller.ts +24 -5
- package/src/control/app-menu/app-menu.tsx +4 -13
- package/src/control/app-menu/index.ts +8 -3
- package/src/control/form/form/form-control.tsx +1 -1
- package/src/control/form/form/form.controller.ts +8 -9
- package/src/control/form/form/index.ts +4 -4
- package/src/control/form/form-detail/form-detail/form-detail-state.ts +2 -2
- package/src/control/form/form-detail/form-detail/form-detail.ts +7 -13
- package/src/control/form/form-detail/form-group-panel/form-group-panel.controller.ts +9 -5
- package/src/control/form/form-detail/form-item/form-item.controller.ts +2 -1
- package/src/control/form/form-detail/form-item/form-item.tsx +2 -4
- package/src/control/form/form-detail/form-page/form-page-item.tsx +3 -6
- package/src/control/form/search-form/index.ts +4 -4
- package/src/control/form/search-form/search-form-provider.ts +1 -1
- package/src/control/form/search-form/search-form-state.ts +9 -1
- package/src/control/form/search-form/search-form.controller.ts +21 -1
- package/src/control/form/search-form/search-form.tsx +4 -3
- package/src/control/grid/grid/grid-control.tsx +1 -1
- package/src/control/grid/grid/grid-row.controller.ts +4 -4
- package/src/control/grid/grid/grid.controller.ts +22 -14
- package/src/control/grid/grid/grid.scss +1 -0
- package/src/control/grid/grid-ua-column/grid-ua-column-provider.ts +26 -0
- package/src/control/grid/grid-ua-column/grid-ua-column.controller.ts +80 -0
- package/src/control/grid/grid-ua-column/grid-ua-column.scss +20 -0
- package/src/control/grid/grid-ua-column/grid-ua-column.tsx +75 -0
- package/src/control/grid/index.ts +13 -5
- package/src/control/index.ts +1 -0
- package/src/control/panel/index.ts +6 -10
- package/src/control/panel/panel/index.ts +4 -0
- package/src/control/panel/panel/panel-item-state.ts +2 -2
- package/src/control/panel/panel/panel-item.controller.ts +7 -13
- package/src/control/panel/panel/panel.controller.ts +10 -12
- package/src/control/panel/view-layout-panel/index.ts +3 -0
- package/src/control/panel/view-layout-panel/view-layout-panel-provider.ts +1 -1
- package/src/control/panel/view-layout-panel/view-layout-panel.controller.ts +9 -2
- package/src/control/panel/view-layout-panel/view-layout-panel.scss +6 -0
- package/src/control/panel/view-layout-panel/view-layout-panel.tsx +5 -10
- package/src/control/toolbar/index.ts +3 -3
- package/src/control/toolbar/toolbar-control.tsx +1 -2
- package/src/control/toolbar/toolbar.controllerr.ts +30 -36
- package/src/editor/index.ts +2 -2
- package/src/index.ts +14 -37
- package/src/panel-component/auth-userinfo/auth-userinfo-provider.ts +26 -0
- package/src/panel-component/auth-userinfo/auth-userinfo.scss +34 -0
- package/src/{common/app-user/app-user.tsx → panel-component/auth-userinfo/auth-userinfo.tsx} +18 -6
- package/src/panel-component/auth-userinfo/index.ts +17 -0
- package/src/panel-component/index.ts +26 -0
- package/src/panel-component/nav-pos/index.ts +16 -0
- package/src/panel-component/nav-pos/nav-pos-provider.ts +27 -0
- package/src/panel-component/nav-pos/nav-pos-state.ts +16 -0
- package/src/panel-component/nav-pos/nav-pos.controller.ts +117 -0
- package/src/panel-component/nav-pos/nav-pos.scss +4 -0
- package/src/panel-component/nav-pos/nav-pos.tsx +79 -0
- package/src/panel-component/nav-tabs/index.ts +14 -0
- package/src/panel-component/nav-tabs/nav-tabs-provider.ts +27 -0
- package/src/panel-component/nav-tabs/nav-tabs-state.ts +24 -0
- package/src/panel-component/nav-tabs/nav-tabs.controller.ts +146 -0
- package/src/panel-component/nav-tabs/nav-tabs.scss +64 -0
- package/src/panel-component/nav-tabs/nav-tabs.tsx +141 -0
- package/src/{control/panel → panel-component}/panel-container/index.ts +3 -2
- package/src/{control/panel → panel-component}/panel-container/panel-container-provider.ts +1 -2
- package/src/{control/panel → panel-component}/panel-container/panel-container-state.ts +1 -1
- package/src/{control/panel → panel-component}/panel-container/panel-container.controller.ts +1 -1
- package/src/{control/panel → panel-component}/panel-container/panel-container.tsx +2 -4
- package/src/{control/panel → panel-component}/panel-ctrl-pos/index.ts +3 -2
- package/src/{control/panel → panel-component}/panel-ctrl-pos/panel-ctrl-pos-provider.ts +2 -3
- package/src/{control/panel → panel-component}/panel-ctrl-pos/panel-ctrl-pos.controller.ts +1 -2
- package/src/panel-component/panel-ctrl-pos/panel-ctrl-pos.scss +4 -0
- package/src/{control/panel → panel-component}/panel-ctrl-pos/panel-ctrl-pos.tsx +3 -2
- package/src/panel-component/scroll-container/index.ts +44 -0
- package/src/panel-component/scroll-container/scroll-container/index.ts +3 -0
- package/src/panel-component/scroll-container/scroll-container/scroll-container-provider.ts +27 -0
- package/src/panel-component/scroll-container/scroll-container/scroll-container.controller.ts +32 -0
- package/src/panel-component/scroll-container/scroll-container/scroll-container.scss +30 -0
- package/src/panel-component/scroll-container/scroll-container/scroll-container.tsx +108 -0
- package/src/panel-component/scroll-container/scroll-container-item/index.ts +3 -0
- package/src/panel-component/scroll-container/scroll-container-item/scroll-container-item-provider.ts +27 -0
- package/src/panel-component/scroll-container/scroll-container-item/scroll-container-item.controller.ts +25 -0
- package/src/panel-component/scroll-container/scroll-container-item/scroll-container-item.scss +5 -0
- package/src/panel-component/scroll-container/scroll-container-item/scroll-container-item.tsx +59 -0
- package/src/view/ibiz-view.scss +13 -0
- package/src/view/ibiz-view.tsx +75 -0
- package/src/{views/view → view}/index.ts +3 -3
- package/src/view-engine/grid-view-engine.ts +200 -0
- package/src/view-engine/index-view-engine.ts +34 -0
- package/src/view-engine/index.ts +24 -0
- package/es/common/app-user/app-user.d.ts +0 -8
- package/es/common/app-user/app-user.js +0 -60
- package/es/common/grid-pagination/index.d.ts +0 -40
- package/es/common/grid-pagination/index.js +0 -9
- package/es/common/quick-search/quick-search.d.ts +0 -30
- package/es/common/quick-search/quick-search.js +0 -63
- package/es/common/tab-page-exp/tab-page-exp.d.ts +0 -69
- package/es/common/tab-page-exp/tab-page-exp.js +0 -117
- package/es/control/app-menu/index.d.ts +0 -53
- package/es/control/grid-control/grid-control.d.ts +0 -158
- package/es/control/grid-control/index.d.ts +0 -114
- package/es/control/grid-control/index.js +0 -23
- package/es/control/toolbar-control/index.d.ts +0 -43
- package/es/control/toolbar-control/index.js +0 -12
- package/es/layout/app-layout/app-layout.d.ts +0 -32
- package/es/layout/control-base/control-base.d.ts +0 -17
- package/es/layout/control-shell/control-shell.d.ts +0 -18
- package/es/layout/index.d.ts +0 -10
- package/es/layout/index.js +0 -20
- package/es/layout/md-view-base/md-view-base.d.ts +0 -12
- package/es/layout/md-view-base/md-view-base.js +0 -35
- package/es/layout/router-shell/router-shell.d.ts +0 -27
- package/es/layout/router-shell/router-shell.js +0 -96
- package/es/layout/view-base/view-base.d.ts +0 -18
- package/es/layout/view-layout/view-layout.d.ts +0 -44
- package/es/util/install.d.ts +0 -3
- package/es/util/install.js +0 -9
- package/es/views/edit-view/index.d.ts +0 -3
- package/es/views/edit-view/index.js +0 -9
- package/es/views/edit-view/src/edit-view.css +0 -6
- package/es/views/edit-view/src/edit-view.d.ts +0 -3
- package/es/views/edit-view/src/edit-view.js +0 -15
- package/es/views/grid-view/grid-view-engine.d.ts +0 -8
- package/es/views/grid-view/grid-view-engine.js +0 -21
- package/es/views/grid-view/grid-view.d.ts +0 -32
- package/es/views/grid-view/grid-view.js +0 -64
- package/es/views/grid-view/index.d.ts +0 -32
- package/es/views/grid-view/index.js +0 -14
- package/es/views/index-view/index-view-default.d.ts +0 -22
- package/es/views/index-view/index-view-default.js +0 -117
- package/es/views/index-view/index-view-engine.d.ts +0 -6
- package/es/views/index-view/index-view-engine.js +0 -9
- package/es/views/index-view/index-view-exp.d.ts +0 -29
- package/es/views/index-view/index-view-exp.js +0 -177
- package/es/views/index-view/index-view-provider.d.ts +0 -13
- package/es/views/index-view/index-view.d.ts +0 -44
- package/es/views/index-view/index-view.js +0 -155
- package/es/views/index-view/index.d.ts +0 -44
- package/es/views/index-view/index.js +0 -14
- package/es/views/index.d.ts +0 -4
- package/es/views/index.js +0 -6
- package/lib/common/app-user/app-user.d.ts +0 -8
- package/lib/common/app-user/app-user.js +0 -60
- package/lib/common/grid-pagination/index.d.ts +0 -40
- package/lib/common/grid-pagination/index.js +0 -9
- package/lib/common/quick-search/quick-search.d.ts +0 -30
- package/lib/common/quick-search/quick-search.js +0 -63
- package/lib/common/tab-page-exp/tab-page-exp.d.ts +0 -69
- package/lib/common/tab-page-exp/tab-page-exp.js +0 -117
- package/lib/control/app-menu/index.d.ts +0 -53
- package/lib/control/grid-control/grid-control.d.ts +0 -158
- package/lib/control/grid-control/index.d.ts +0 -114
- package/lib/control/grid-control/index.js +0 -24
- package/lib/control/toolbar-control/index.d.ts +0 -43
- package/lib/layout/app-layout/app-layout.d.ts +0 -32
- package/lib/layout/control-base/control-base.d.ts +0 -17
- package/lib/layout/control-shell/control-shell.d.ts +0 -18
- package/lib/layout/index.d.ts +0 -10
- package/lib/layout/index.js +0 -44
- package/lib/layout/md-view-base/md-view-base.d.ts +0 -12
- package/lib/layout/md-view-base/md-view-base.js +0 -35
- package/lib/layout/router-shell/router-shell.d.ts +0 -27
- package/lib/layout/router-shell/router-shell.js +0 -96
- package/lib/layout/view-base/view-base.d.ts +0 -18
- package/lib/layout/view-layout/view-layout.d.ts +0 -44
- package/lib/util/install.d.ts +0 -3
- package/lib/util/install.js +0 -9
- package/lib/views/edit-view/index.d.ts +0 -3
- package/lib/views/edit-view/index.js +0 -8
- package/lib/views/edit-view/src/edit-view.css +0 -6
- package/lib/views/edit-view/src/edit-view.d.ts +0 -3
- package/lib/views/edit-view/src/edit-view.js +0 -14
- package/lib/views/grid-view/grid-view-engine.d.ts +0 -8
- package/lib/views/grid-view/grid-view-engine.js +0 -21
- package/lib/views/grid-view/grid-view.d.ts +0 -32
- package/lib/views/grid-view/grid-view.js +0 -64
- package/lib/views/grid-view/index.d.ts +0 -32
- package/lib/views/grid-view/index.js +0 -14
- package/lib/views/index-view/index-view-default.d.ts +0 -22
- package/lib/views/index-view/index-view-default.js +0 -117
- package/lib/views/index-view/index-view-engine.d.ts +0 -6
- package/lib/views/index-view/index-view-engine.js +0 -9
- package/lib/views/index-view/index-view-exp.d.ts +0 -29
- package/lib/views/index-view/index-view-exp.js +0 -177
- package/lib/views/index-view/index-view-provider.d.ts +0 -13
- package/lib/views/index-view/index-view.d.ts +0 -44
- package/lib/views/index-view/index-view.js +0 -155
- package/lib/views/index-view/index.d.ts +0 -44
- package/lib/views/index-view/index.js +0 -14
- package/lib/views/index.d.ts +0 -4
- package/src/common/app-user/app-user.scss +0 -32
- package/src/common/quick-search/quick-search.scss +0 -15
- package/src/common/quick-search/quick-search.tsx +0 -59
- package/src/common/tab-page-exp/tab-page-exp.scss +0 -43
- package/src/common/tab-page-exp/tab-page-exp.tsx +0 -125
- package/src/control/panel/view-layout-panel.json +0 -141
- package/src/layout/app-layout/app-layout.scss +0 -133
- package/src/layout/app-layout/app-layout.tsx +0 -149
- package/src/layout/control-layout/control-layout.tsx +0 -29
- package/src/layout/index.ts +0 -15
- package/src/layout/md-view-base/md-view-base.tsx +0 -69
- package/src/layout/view-base/view-base.scss +0 -11
- package/src/layout/view-base/view-base.tsx +0 -147
- package/src/layout/view-layout/view-layout.scss +0 -198
- package/src/layout/view-layout/view-layout.tsx +0 -115
- package/src/util/install.ts +0 -11
- package/src/views/grid-view/grid-view-engine.ts +0 -68
- package/src/views/grid-view/index.ts +0 -12
- package/src/views/index-view/index-view-default.ts +0 -168
- package/src/views/index-view/index-view-engine.ts +0 -10
- package/src/views/index-view/index-view-exp.ts +0 -261
- package/src/views/index-view/index-view-provider.ts +0 -14
- package/src/views/index-view/index-view.tsx +0 -249
- package/src/views/index-view/index.ts +0 -14
- package/src/views/index.ts +0 -3
- package/src/views/view/ibiz-view.tsx +0 -49
- /package/es/control/{grid-control → grid/grid}/grid-control.util.js +0 -0
- /package/es/control/{grid-control → grid/grid}/grid-provider.d.ts +0 -0
- /package/es/control/{grid-control → grid/grid}/grid-provider.js +0 -0
- /package/es/{common → control/grid}/grid-pagination/grid-pagination.js +0 -0
- /package/es/control/{toolbar-control → toolbar}/toolbar-provider.d.ts +0 -0
- /package/es/control/{toolbar-control → toolbar}/toolbar-provider.js +0 -0
- /package/lib/control/{grid-control → grid/grid}/grid-control.util.js +0 -0
- /package/lib/control/{grid-control → grid/grid}/grid-provider.d.ts +0 -0
- /package/lib/control/{grid-control → grid/grid}/grid-provider.js +0 -0
- /package/lib/{common → control/grid}/grid-pagination/grid-pagination.js +0 -0
- /package/lib/control/{toolbar-control → toolbar}/toolbar-provider.d.ts +0 -0
- /package/lib/control/{toolbar-control → toolbar}/toolbar-provider.js +0 -0
- /package/src/{control/panel → panel-component}/panel-container/panel-container.scss +0 -0
- /package/src/{views/view → view}/view-provider.ts +0 -0
|
@@ -1,168 +0,0 @@
|
|
|
1
|
-
import { IndexViewController } from '@ibiz-template/runtime';
|
|
2
|
-
import { ref, watch } from 'vue';
|
|
3
|
-
import { useRouter, useRoute, RouteLocationNormalizedLoaded } from 'vue-router';
|
|
4
|
-
|
|
5
|
-
export const getView2Value = (route: RouteLocationNormalizedLoaded) => {
|
|
6
|
-
const { view2, params2, params1 } = route.params;
|
|
7
|
-
if (!view2) {
|
|
8
|
-
return '';
|
|
9
|
-
}
|
|
10
|
-
// 清除params2里的srfnav
|
|
11
|
-
let _params2 = (params2 as String).replace(
|
|
12
|
-
/;srfnav=[^;=]*$|(?<=;)srfnav=[^;=]*;|^srfnav=[^;=]*;|^srfnav=[^;=]*$/g,
|
|
13
|
-
'',
|
|
14
|
-
);
|
|
15
|
-
_params2 = _params2 || ibiz.env.routePlaceholder;
|
|
16
|
-
return `/${params1}/${view2}/${_params2}`;
|
|
17
|
-
};
|
|
18
|
-
|
|
19
|
-
// 获取首页一级路径的空白地址
|
|
20
|
-
export const getView1Value = (route: RouteLocationNormalizedLoaded) => {
|
|
21
|
-
const { view1, appContext } = route.params;
|
|
22
|
-
return `/${appContext}/${view1}/${ibiz.env.routePlaceholder}`;
|
|
23
|
-
};
|
|
24
|
-
|
|
25
|
-
export interface RouteMsg {
|
|
26
|
-
key: string;
|
|
27
|
-
fullPath: string;
|
|
28
|
-
modelPath?: string;
|
|
29
|
-
caption?: string;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
export function useIndexRouteManage(controller: IndexViewController) {
|
|
33
|
-
const router = useRouter();
|
|
34
|
-
const route = useRoute();
|
|
35
|
-
|
|
36
|
-
/** 当前的路由标识,只由二级路由组成,二级路由一致则就是同一个视图 */
|
|
37
|
-
const currentKey = ref('');
|
|
38
|
-
|
|
39
|
-
/** 留一份首页的Path */
|
|
40
|
-
const indexPath = ref('');
|
|
41
|
-
|
|
42
|
-
/** key操作记录,只维护当前缓存的key,且每个key在集合里唯一,最新操作的排在最前面 */
|
|
43
|
-
const keyHistory = ref<string[]>([]);
|
|
44
|
-
|
|
45
|
-
/** 路由信息,每个key对应的全路由和标题之类的信息 */
|
|
46
|
-
const routeMsgs = ref<RouteMsg[]>([]);
|
|
47
|
-
|
|
48
|
-
/**
|
|
49
|
-
* 删除路由缓存数据
|
|
50
|
-
*
|
|
51
|
-
* @author lxm
|
|
52
|
-
* @date 2022-09-22 10:09:11
|
|
53
|
-
* @param {string[]} keys 要删除的keys
|
|
54
|
-
*/
|
|
55
|
-
const deleteRouteCache = (keys: string[]) => {
|
|
56
|
-
keys.forEach(key => {
|
|
57
|
-
const index = keyHistory.value.indexOf(key);
|
|
58
|
-
if (index !== -1) {
|
|
59
|
-
keyHistory.value.splice(index, 1);
|
|
60
|
-
const msgIndex = routeMsgs.value.findIndex(item => item.key === key);
|
|
61
|
-
routeMsgs.value.splice(msgIndex, 1);
|
|
62
|
-
}
|
|
63
|
-
});
|
|
64
|
-
};
|
|
65
|
-
|
|
66
|
-
// 监听路由
|
|
67
|
-
watch(
|
|
68
|
-
() => route.path,
|
|
69
|
-
(newVal, oldVal) => {
|
|
70
|
-
// 只处理有二级路由,只有首页的时候不需要
|
|
71
|
-
if (newVal !== oldVal) {
|
|
72
|
-
// 当跳转到二级路由的时候清空缓存
|
|
73
|
-
if (route.matched.length <= 2) {
|
|
74
|
-
deleteRouteCache(keyHistory.value.splice(0));
|
|
75
|
-
}
|
|
76
|
-
currentKey.value = getView2Value(route);
|
|
77
|
-
indexPath.value = getView1Value(route);
|
|
78
|
-
// 更新或新建对应key的全路由信息,主要是三级路由变更时会用
|
|
79
|
-
const find = routeMsgs.value.find(
|
|
80
|
-
item => item.key === currentKey.value,
|
|
81
|
-
);
|
|
82
|
-
if (find) {
|
|
83
|
-
find.fullPath = route.fullPath;
|
|
84
|
-
} else {
|
|
85
|
-
// 全关闭后到首页只显示空白不需要加入到routeMsgs里
|
|
86
|
-
if (newVal === indexPath.value) {
|
|
87
|
-
return;
|
|
88
|
-
}
|
|
89
|
-
routeMsgs.value.push({
|
|
90
|
-
key: currentKey.value,
|
|
91
|
-
fullPath: route.fullPath,
|
|
92
|
-
modelPath: '',
|
|
93
|
-
caption: '',
|
|
94
|
-
});
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
},
|
|
98
|
-
{ deep: true, immediate: true },
|
|
99
|
-
);
|
|
100
|
-
|
|
101
|
-
// 监听当前的key,维护数据
|
|
102
|
-
watch(
|
|
103
|
-
currentKey,
|
|
104
|
-
(newVal, oldVal) => {
|
|
105
|
-
if (newVal !== oldVal && newVal) {
|
|
106
|
-
const index = keyHistory.value.indexOf(newVal);
|
|
107
|
-
// 历史记录里没有的新建信息,放入开头
|
|
108
|
-
if (index === -1) {
|
|
109
|
-
keyHistory.value.unshift(newVal);
|
|
110
|
-
} else {
|
|
111
|
-
// 已存在的调整顺序至开头
|
|
112
|
-
keyHistory.value.splice(index, 1);
|
|
113
|
-
keyHistory.value.unshift(newVal);
|
|
114
|
-
}
|
|
115
|
-
}
|
|
116
|
-
},
|
|
117
|
-
{ immediate: true },
|
|
118
|
-
);
|
|
119
|
-
|
|
120
|
-
/**
|
|
121
|
-
* 更新路由信息
|
|
122
|
-
*
|
|
123
|
-
* @author lxm
|
|
124
|
-
* @date 2022-09-01 16:09:51
|
|
125
|
-
* @param {string} key
|
|
126
|
-
* @param {IData} opts
|
|
127
|
-
*/
|
|
128
|
-
const updateRouteMsg = (key: string, opts: Partial<RouteMsg>) => {
|
|
129
|
-
const find = routeMsgs.value.find(item => item.key === currentKey.value);
|
|
130
|
-
if (find) {
|
|
131
|
-
if (opts.caption) find.caption = opts.caption;
|
|
132
|
-
if (opts.modelPath) find.modelPath = opts.modelPath;
|
|
133
|
-
}
|
|
134
|
-
};
|
|
135
|
-
|
|
136
|
-
/**
|
|
137
|
-
* 关闭视图回调
|
|
138
|
-
*
|
|
139
|
-
* @author lxm
|
|
140
|
-
* @date 2022-09-22 10:09:59
|
|
141
|
-
* @param {string} [key=currentKey.value]
|
|
142
|
-
*/
|
|
143
|
-
const closeView = (key: string = currentKey.value) => {
|
|
144
|
-
// 找出删除的key在历史记录里的位置
|
|
145
|
-
deleteRouteCache([key]);
|
|
146
|
-
const toKey = keyHistory.value[0];
|
|
147
|
-
if (!toKey) {
|
|
148
|
-
if (controller.model.blankMode) {
|
|
149
|
-
window.close();
|
|
150
|
-
} else {
|
|
151
|
-
currentKey.value = '';
|
|
152
|
-
router.push(indexPath.value);
|
|
153
|
-
}
|
|
154
|
-
} else {
|
|
155
|
-
const find = routeMsgs.value.find(item => item.key === toKey);
|
|
156
|
-
router.push(find!.fullPath);
|
|
157
|
-
}
|
|
158
|
-
};
|
|
159
|
-
|
|
160
|
-
return {
|
|
161
|
-
currentKey,
|
|
162
|
-
keyHistory,
|
|
163
|
-
routeMsgs,
|
|
164
|
-
updateRouteMsg,
|
|
165
|
-
closeView,
|
|
166
|
-
deleteRouteCache,
|
|
167
|
-
};
|
|
168
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { PresetViewEngine, ViewController } from '@ibiz-template/runtime';
|
|
2
|
-
import { IAppIndexView } from '@ibiz/model-core';
|
|
3
|
-
|
|
4
|
-
export class IndexViewEngine extends PresetViewEngine {
|
|
5
|
-
protected declare controller: ViewController<IAppIndexView>;
|
|
6
|
-
|
|
7
|
-
init() {
|
|
8
|
-
this.controller.childNames.push('appmenu');
|
|
9
|
-
}
|
|
10
|
-
}
|
|
@@ -1,261 +0,0 @@
|
|
|
1
|
-
import { IndexViewController } from '@ibiz-template/runtime';
|
|
2
|
-
import { ref, watch } from 'vue';
|
|
3
|
-
import { useRouter, useRoute, RouteLocationNormalizedLoaded } from 'vue-router';
|
|
4
|
-
import { IAppView } from '@ibiz/model-core';
|
|
5
|
-
|
|
6
|
-
export interface RouteMsg {
|
|
7
|
-
key: string;
|
|
8
|
-
fullPath: string;
|
|
9
|
-
modelPath?: string;
|
|
10
|
-
caption?: string;
|
|
11
|
-
appView?: IAppView;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
export const getView2Value = (route: RouteLocationNormalizedLoaded) => {
|
|
15
|
-
const { view2, params2, params1 } = route.params;
|
|
16
|
-
if (!view2) {
|
|
17
|
-
return '';
|
|
18
|
-
}
|
|
19
|
-
// 清除params2里的srfnav
|
|
20
|
-
let _params2 = (params2 as String).replace(
|
|
21
|
-
/;srfnav=[^;=]*$|(?<=;)srfnav=[^;=]*;|^srfnav=[^;=]*;|^srfnav=[^;=]*$/g,
|
|
22
|
-
'',
|
|
23
|
-
);
|
|
24
|
-
_params2 = _params2 || ibiz.env.routePlaceholder;
|
|
25
|
-
return `/${params1}/${view2}/${_params2}`;
|
|
26
|
-
};
|
|
27
|
-
|
|
28
|
-
// 获取首页一级路径的空白地址
|
|
29
|
-
export const getView1Value = (route: RouteLocationNormalizedLoaded) => {
|
|
30
|
-
const { view1, appContext } = route.params;
|
|
31
|
-
return `/${appContext}/${view1}/${ibiz.env.routePlaceholder}`;
|
|
32
|
-
};
|
|
33
|
-
|
|
34
|
-
export function useIndexExpRouteManage(controller: IndexViewController) {
|
|
35
|
-
const router = useRouter();
|
|
36
|
-
const route = useRoute();
|
|
37
|
-
|
|
38
|
-
/** 当前的路由标识,只由二级路由组成,二级路由一致则就是同一个视图 */
|
|
39
|
-
const currentKey = ref('');
|
|
40
|
-
|
|
41
|
-
/** 留一份首页的Path */
|
|
42
|
-
const indexPath = ref('');
|
|
43
|
-
|
|
44
|
-
/** key操作记录,只维护当前缓存的key,且每个key在集合里唯一,最新操作的排在最前面 */
|
|
45
|
-
const keyHistory = ref<string[]>([]);
|
|
46
|
-
|
|
47
|
-
/** 路由信息,每个key对应的全路由和标题之类的信息 */
|
|
48
|
-
const routeMsgs = ref<RouteMsg[]>([]);
|
|
49
|
-
|
|
50
|
-
/**
|
|
51
|
-
* 删除路由缓存数据
|
|
52
|
-
*
|
|
53
|
-
* @author lxm
|
|
54
|
-
* @date 2022-09-22 10:09:11
|
|
55
|
-
* @param {string[]} keys 要删除的keys
|
|
56
|
-
*/
|
|
57
|
-
const deleteRouteCache = (keys: string[]) => {
|
|
58
|
-
keys.forEach(key => {
|
|
59
|
-
const index = keyHistory.value.indexOf(key);
|
|
60
|
-
if (index !== -1) {
|
|
61
|
-
keyHistory.value.splice(index, 1);
|
|
62
|
-
}
|
|
63
|
-
const msgIndex = routeMsgs.value.findIndex(item => item.key === key);
|
|
64
|
-
if (msgIndex !== -1) {
|
|
65
|
-
routeMsgs.value.splice(msgIndex, 1);
|
|
66
|
-
}
|
|
67
|
-
});
|
|
68
|
-
};
|
|
69
|
-
|
|
70
|
-
// 监听路由
|
|
71
|
-
watch(
|
|
72
|
-
() => route.path,
|
|
73
|
-
(newVal, oldVal) => {
|
|
74
|
-
// 只处理有二级路由,只有首页的时候不需要,
|
|
75
|
-
if (newVal !== oldVal) {
|
|
76
|
-
currentKey.value = getView2Value(route);
|
|
77
|
-
indexPath.value = getView1Value(route);
|
|
78
|
-
// 更新或新建对应key的全路由信息,主要是三级路由变更时会用
|
|
79
|
-
const find = routeMsgs.value.find(
|
|
80
|
-
item => item.key === currentKey.value,
|
|
81
|
-
);
|
|
82
|
-
if (find) {
|
|
83
|
-
find.fullPath = route.fullPath;
|
|
84
|
-
} else {
|
|
85
|
-
// 全关闭后到首页只显示空白不需要加入到routeMsgs里
|
|
86
|
-
if (newVal === indexPath.value) {
|
|
87
|
-
return;
|
|
88
|
-
}
|
|
89
|
-
routeMsgs.value.push({
|
|
90
|
-
key: currentKey.value,
|
|
91
|
-
fullPath: route.fullPath,
|
|
92
|
-
modelPath: '',
|
|
93
|
-
caption: '',
|
|
94
|
-
});
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
},
|
|
98
|
-
{ deep: true, immediate: true },
|
|
99
|
-
);
|
|
100
|
-
|
|
101
|
-
// 监听当前的key,维护数据
|
|
102
|
-
watch(
|
|
103
|
-
currentKey,
|
|
104
|
-
(newVal, oldVal) => {
|
|
105
|
-
if (newVal !== oldVal && newVal) {
|
|
106
|
-
const index = keyHistory.value.indexOf(newVal);
|
|
107
|
-
// 历史记录里没有的新建信息,放入开头
|
|
108
|
-
if (index === -1) {
|
|
109
|
-
keyHistory.value.unshift(newVal);
|
|
110
|
-
} else {
|
|
111
|
-
// 已存在的调整顺序至开头
|
|
112
|
-
keyHistory.value.splice(index, 1);
|
|
113
|
-
keyHistory.value.unshift(newVal);
|
|
114
|
-
}
|
|
115
|
-
}
|
|
116
|
-
},
|
|
117
|
-
{ immediate: true },
|
|
118
|
-
);
|
|
119
|
-
|
|
120
|
-
/**
|
|
121
|
-
* 更新路由信息
|
|
122
|
-
*
|
|
123
|
-
* @author lxm
|
|
124
|
-
* @date 2022-09-01 16:09:51
|
|
125
|
-
* @param {string} key
|
|
126
|
-
* @param {IData} opts
|
|
127
|
-
*/
|
|
128
|
-
const updateRouteMsg = async (key: string, opts: Partial<RouteMsg>) => {
|
|
129
|
-
const find = routeMsgs.value.find(item => item.key === currentKey.value);
|
|
130
|
-
if (find) {
|
|
131
|
-
if (opts.caption) find.caption = opts.caption;
|
|
132
|
-
if (opts.modelPath) {
|
|
133
|
-
find.modelPath = opts.modelPath;
|
|
134
|
-
}
|
|
135
|
-
}
|
|
136
|
-
};
|
|
137
|
-
|
|
138
|
-
/**
|
|
139
|
-
* 关闭视图回调
|
|
140
|
-
*
|
|
141
|
-
* @author lxm
|
|
142
|
-
* @date 2022-09-22 10:09:59
|
|
143
|
-
* @param {string} [key=currentKey.value]
|
|
144
|
-
*/
|
|
145
|
-
const closeView = (key: string = currentKey.value) => {
|
|
146
|
-
// 找出删除的key在历史记录里的位置
|
|
147
|
-
deleteRouteCache([key]);
|
|
148
|
-
const toKey = keyHistory.value[0];
|
|
149
|
-
if (!toKey) {
|
|
150
|
-
if (controller.model.blankMode) {
|
|
151
|
-
window.close();
|
|
152
|
-
} else {
|
|
153
|
-
currentKey.value = '';
|
|
154
|
-
router.push(indexPath.value);
|
|
155
|
-
}
|
|
156
|
-
} else {
|
|
157
|
-
const find = routeMsgs.value.find(item => item.key === toKey);
|
|
158
|
-
router.push(find!.fullPath);
|
|
159
|
-
}
|
|
160
|
-
};
|
|
161
|
-
|
|
162
|
-
/**
|
|
163
|
-
* 处理标签页点击
|
|
164
|
-
*
|
|
165
|
-
*/
|
|
166
|
-
const handleTabClick = (index: number) => {
|
|
167
|
-
const routeMsg = routeMsgs.value[index];
|
|
168
|
-
if (routeMsg) {
|
|
169
|
-
router.push(routeMsg.fullPath);
|
|
170
|
-
}
|
|
171
|
-
};
|
|
172
|
-
|
|
173
|
-
/**
|
|
174
|
-
* 跳转首页
|
|
175
|
-
*
|
|
176
|
-
*/
|
|
177
|
-
const redirectToIndex = () => {
|
|
178
|
-
const fullPath = route.fullPath;
|
|
179
|
-
let index = fullPath.indexOf('/');
|
|
180
|
-
for (let i = 0; i < 2; i++) {
|
|
181
|
-
index = fullPath.indexOf('/', index + 1);
|
|
182
|
-
}
|
|
183
|
-
const path = `${fullPath.substring(0, index)}/-`;
|
|
184
|
-
|
|
185
|
-
router.push(path);
|
|
186
|
-
};
|
|
187
|
-
|
|
188
|
-
/**
|
|
189
|
-
* 跳转页面
|
|
190
|
-
*
|
|
191
|
-
*/
|
|
192
|
-
const goToPage = () => {
|
|
193
|
-
if (keyHistory.value.length > 0) {
|
|
194
|
-
const currentMsg = routeMsgs.value.find(
|
|
195
|
-
item => item.key === keyHistory.value[0],
|
|
196
|
-
);
|
|
197
|
-
if (currentMsg) {
|
|
198
|
-
router.push(currentMsg.fullPath);
|
|
199
|
-
}
|
|
200
|
-
} else {
|
|
201
|
-
redirectToIndex();
|
|
202
|
-
}
|
|
203
|
-
};
|
|
204
|
-
|
|
205
|
-
/**
|
|
206
|
-
* 处理标签页删除
|
|
207
|
-
*
|
|
208
|
-
*/
|
|
209
|
-
const handleTabDelete = (name: number) => {
|
|
210
|
-
const routeMsg = routeMsgs.value[name];
|
|
211
|
-
if (routeMsg) {
|
|
212
|
-
deleteRouteCache([routeMsg.key]);
|
|
213
|
-
goToPage();
|
|
214
|
-
}
|
|
215
|
-
};
|
|
216
|
-
|
|
217
|
-
/**
|
|
218
|
-
* 处理全部关闭标签页
|
|
219
|
-
*
|
|
220
|
-
*/
|
|
221
|
-
const handleCloseAll = () => {
|
|
222
|
-
if (routeMsgs.value.length > 0) {
|
|
223
|
-
const allKeyArr: string[] = [];
|
|
224
|
-
routeMsgs.value.forEach(msg => {
|
|
225
|
-
allKeyArr.push(msg.key);
|
|
226
|
-
});
|
|
227
|
-
deleteRouteCache(allKeyArr);
|
|
228
|
-
goToPage();
|
|
229
|
-
}
|
|
230
|
-
};
|
|
231
|
-
|
|
232
|
-
/**
|
|
233
|
-
* 处理关闭其他标签页
|
|
234
|
-
*
|
|
235
|
-
*/
|
|
236
|
-
const handleCloseOther = () => {
|
|
237
|
-
if (routeMsgs.value.length > 0) {
|
|
238
|
-
const allKeyArr: string[] = [];
|
|
239
|
-
routeMsgs.value.forEach(msg => {
|
|
240
|
-
if (msg.key !== currentKey.value) {
|
|
241
|
-
allKeyArr.push(msg.key);
|
|
242
|
-
}
|
|
243
|
-
});
|
|
244
|
-
deleteRouteCache(allKeyArr);
|
|
245
|
-
goToPage();
|
|
246
|
-
}
|
|
247
|
-
};
|
|
248
|
-
|
|
249
|
-
return {
|
|
250
|
-
currentKey,
|
|
251
|
-
keyHistory,
|
|
252
|
-
routeMsgs,
|
|
253
|
-
updateRouteMsg,
|
|
254
|
-
closeView,
|
|
255
|
-
deleteRouteCache,
|
|
256
|
-
handleTabClick,
|
|
257
|
-
handleTabDelete,
|
|
258
|
-
handleCloseAll,
|
|
259
|
-
handleCloseOther,
|
|
260
|
-
};
|
|
261
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { IViewProvider } from '@ibiz-template/runtime';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* 首页视图适配器
|
|
5
|
-
*
|
|
6
|
-
* @author lxm
|
|
7
|
-
* @date 2022-10-25 18:10:57
|
|
8
|
-
* @export
|
|
9
|
-
* @class IndexViewProvider
|
|
10
|
-
* @implements {IViewProvider}
|
|
11
|
-
*/
|
|
12
|
-
export class IndexViewProvider implements IViewProvider {
|
|
13
|
-
component: string = 'IndexView';
|
|
14
|
-
}
|
|
@@ -1,249 +0,0 @@
|
|
|
1
|
-
import { useViewController } from '@ibiz-template/vue3-util';
|
|
2
|
-
import {
|
|
3
|
-
computed,
|
|
4
|
-
ComputedRef,
|
|
5
|
-
defineComponent,
|
|
6
|
-
onMounted,
|
|
7
|
-
PropType,
|
|
8
|
-
Ref,
|
|
9
|
-
} from 'vue';
|
|
10
|
-
import { IAppIndexView } from '@ibiz/model-core';
|
|
11
|
-
import { ViewController } from '@ibiz-template/runtime';
|
|
12
|
-
import { useIndexRouteManage } from './index-view-default';
|
|
13
|
-
import { useIndexExpRouteManage } from './index-view-exp';
|
|
14
|
-
|
|
15
|
-
export const IndexView = defineComponent({
|
|
16
|
-
name: 'IndexView',
|
|
17
|
-
props: {
|
|
18
|
-
context: Object as PropType<IContext>,
|
|
19
|
-
params: { type: Object as PropType<IParams>, default: () => ({}) },
|
|
20
|
-
modelData: { type: Object as PropType<IAppIndexView>, required: true },
|
|
21
|
-
},
|
|
22
|
-
setup(props) {
|
|
23
|
-
const c = useViewController((...args) => new ViewController(...args));
|
|
24
|
-
const menu = c.model.viewLayoutPanel!.controls!.find(item => {
|
|
25
|
-
return item.name === 'appmenu';
|
|
26
|
-
});
|
|
27
|
-
|
|
28
|
-
const isShowTabPageExp = true; // to test
|
|
29
|
-
|
|
30
|
-
// let onCreated: ((_neuron: ViewNeuron) => void) | null = null;
|
|
31
|
-
let onViewFound: ((_opts: IData) => void) | null = null;
|
|
32
|
-
let onMenuRouteChange: (() => void) | null = null;
|
|
33
|
-
let deleteRouteCache: ((_keys: string[]) => void) | null = null;
|
|
34
|
-
let handleTabClick: ((_index: number) => void) | null = null;
|
|
35
|
-
let handleTabDelete: ((_name: number) => void) | null = null;
|
|
36
|
-
let handleCloseAll: (() => void) | null = null;
|
|
37
|
-
let handleCloseOther: (() => void) | null = null;
|
|
38
|
-
let currentPath: ComputedRef<string> | null = null;
|
|
39
|
-
let currentKey: Ref<string>;
|
|
40
|
-
let keyHistory: Ref<string[]>;
|
|
41
|
-
let routeMsgs: Ref<
|
|
42
|
-
{
|
|
43
|
-
key: string;
|
|
44
|
-
fullPath: string;
|
|
45
|
-
modelPath?: string | undefined;
|
|
46
|
-
caption?: string | undefined;
|
|
47
|
-
}[]
|
|
48
|
-
>;
|
|
49
|
-
|
|
50
|
-
if (isShowTabPageExp) {
|
|
51
|
-
const {
|
|
52
|
-
currentKey: _currentKey,
|
|
53
|
-
keyHistory: _keyHistory,
|
|
54
|
-
routeMsgs: _routeMsgs,
|
|
55
|
-
updateRouteMsg,
|
|
56
|
-
closeView,
|
|
57
|
-
deleteRouteCache: _deleteRouteCache,
|
|
58
|
-
handleTabClick: _handleTabClick,
|
|
59
|
-
handleTabDelete: _handleTabDelete,
|
|
60
|
-
handleCloseAll: _handleCloseAll,
|
|
61
|
-
handleCloseOther: _handleCloseOther,
|
|
62
|
-
} = useIndexExpRouteManage(c);
|
|
63
|
-
|
|
64
|
-
currentKey = _currentKey;
|
|
65
|
-
keyHistory = _keyHistory;
|
|
66
|
-
routeMsgs = _routeMsgs;
|
|
67
|
-
deleteRouteCache = _deleteRouteCache;
|
|
68
|
-
handleTabClick = _handleTabClick;
|
|
69
|
-
handleTabDelete = _handleTabDelete;
|
|
70
|
-
handleCloseAll = _handleCloseAll;
|
|
71
|
-
handleCloseOther = _handleCloseOther;
|
|
72
|
-
|
|
73
|
-
// 视图初始化,监听事件
|
|
74
|
-
// onCreated = (neuron: ViewNeuron) => {
|
|
75
|
-
// const key = currentKey.value;
|
|
76
|
-
// neuron.on('onCloseView', () => {
|
|
77
|
-
// closeView(key);
|
|
78
|
-
// });
|
|
79
|
-
// neuron.on('onSetTitle', event => {
|
|
80
|
-
// updateRouteMsg(key, { caption: event.title });
|
|
81
|
-
// });
|
|
82
|
-
// };
|
|
83
|
-
|
|
84
|
-
onViewFound = (opts: IData) => {
|
|
85
|
-
updateRouteMsg(currentKey.value, opts);
|
|
86
|
-
};
|
|
87
|
-
|
|
88
|
-
// 后退按钮触发事件,删除上一个路由的缓存
|
|
89
|
-
window.onpopstate = () => {
|
|
90
|
-
deleteRouteCache!([keyHistory.value[1]]);
|
|
91
|
-
};
|
|
92
|
-
|
|
93
|
-
currentPath = computed(() => {
|
|
94
|
-
const routeMsg = routeMsgs.value.find(
|
|
95
|
-
(item: { key: string }) => item.key === currentKey.value,
|
|
96
|
-
);
|
|
97
|
-
return routeMsg?.modelPath || '';
|
|
98
|
-
});
|
|
99
|
-
} else {
|
|
100
|
-
const {
|
|
101
|
-
currentKey: _currentKey,
|
|
102
|
-
keyHistory: _keyHistory,
|
|
103
|
-
routeMsgs: _routeMsgs,
|
|
104
|
-
updateRouteMsg,
|
|
105
|
-
closeView,
|
|
106
|
-
deleteRouteCache: _deleteRouteCache,
|
|
107
|
-
} = useIndexRouteManage(c);
|
|
108
|
-
|
|
109
|
-
currentKey = _currentKey;
|
|
110
|
-
keyHistory = _keyHistory;
|
|
111
|
-
routeMsgs = _routeMsgs;
|
|
112
|
-
deleteRouteCache = _deleteRouteCache;
|
|
113
|
-
|
|
114
|
-
// // 视图初始化,监听事件
|
|
115
|
-
// onCreated = (neuron: ViewNeuron) => {
|
|
116
|
-
// const key = currentKey.value;
|
|
117
|
-
// neuron.on('onCloseView', () => {
|
|
118
|
-
// closeView(key);
|
|
119
|
-
// });
|
|
120
|
-
// neuron.on('onSetTitle', event => {
|
|
121
|
-
// updateRouteMsg(key, { caption: event.title });
|
|
122
|
-
// });
|
|
123
|
-
// };
|
|
124
|
-
|
|
125
|
-
onViewFound = (opts: IData) => {
|
|
126
|
-
updateRouteMsg(currentKey.value, opts);
|
|
127
|
-
};
|
|
128
|
-
|
|
129
|
-
onMenuRouteChange = () => {
|
|
130
|
-
deleteRouteCache!(keyHistory.value.slice(1));
|
|
131
|
-
};
|
|
132
|
-
|
|
133
|
-
// 后退按钮触发事件,删除上一个路由的缓存
|
|
134
|
-
window.onpopstate = () => {
|
|
135
|
-
deleteRouteCache!([keyHistory.value[1]]);
|
|
136
|
-
};
|
|
137
|
-
|
|
138
|
-
currentPath = computed(() => {
|
|
139
|
-
const routeMsg = routeMsgs.value.find(
|
|
140
|
-
(item: { key: string }) => item.key === currentKey.value,
|
|
141
|
-
);
|
|
142
|
-
return routeMsg?.modelPath || '';
|
|
143
|
-
});
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
onMounted(() => {
|
|
147
|
-
setTimeout(() => {
|
|
148
|
-
const el = document.querySelector('.app-loading-x') as HTMLDivElement;
|
|
149
|
-
if (el) {
|
|
150
|
-
el.style.display = 'none';
|
|
151
|
-
}
|
|
152
|
-
}, 300);
|
|
153
|
-
});
|
|
154
|
-
|
|
155
|
-
// 菜单收缩变化
|
|
156
|
-
const isCollapse = (collapse: boolean) => {
|
|
157
|
-
// c.state.isCollapse = collapse;
|
|
158
|
-
return false;
|
|
159
|
-
};
|
|
160
|
-
|
|
161
|
-
return {
|
|
162
|
-
c,
|
|
163
|
-
// onCreated,
|
|
164
|
-
menu,
|
|
165
|
-
onViewFound,
|
|
166
|
-
onMenuRouteChange,
|
|
167
|
-
deleteRouteCache,
|
|
168
|
-
handleTabClick,
|
|
169
|
-
handleTabDelete,
|
|
170
|
-
handleCloseAll,
|
|
171
|
-
handleCloseOther,
|
|
172
|
-
currentPath,
|
|
173
|
-
currentKey,
|
|
174
|
-
keyHistory,
|
|
175
|
-
routeMsgs,
|
|
176
|
-
isShowTabPageExp,
|
|
177
|
-
isCollapse,
|
|
178
|
-
};
|
|
179
|
-
},
|
|
180
|
-
render() {
|
|
181
|
-
return (
|
|
182
|
-
<app-layout
|
|
183
|
-
is-complete={true}
|
|
184
|
-
modelData={this.c.model}
|
|
185
|
-
onCollapseChange={this.isCollapse}
|
|
186
|
-
>
|
|
187
|
-
{{
|
|
188
|
-
menu: () => {
|
|
189
|
-
if (true) {
|
|
190
|
-
if (this.$slots.appmenu) {
|
|
191
|
-
return this.$slots.appmenu();
|
|
192
|
-
}
|
|
193
|
-
if (this.menu) {
|
|
194
|
-
return (
|
|
195
|
-
<control-shell
|
|
196
|
-
current-path={this.currentPath}
|
|
197
|
-
modelData={this.menu}
|
|
198
|
-
context={this.c.context}
|
|
199
|
-
// collapse={this.c.state.isCollapse}
|
|
200
|
-
mode={this.c.model.mainMenuAlign}
|
|
201
|
-
onMenuRouteChange={this.onMenuRouteChange}
|
|
202
|
-
></control-shell>
|
|
203
|
-
);
|
|
204
|
-
}
|
|
205
|
-
return <div>菜单</div>;
|
|
206
|
-
}
|
|
207
|
-
return null;
|
|
208
|
-
},
|
|
209
|
-
tabPageExp: () => {
|
|
210
|
-
if (this.isShowTabPageExp) {
|
|
211
|
-
return (
|
|
212
|
-
<tab-page-exp
|
|
213
|
-
route-msgs={this.routeMsgs}
|
|
214
|
-
current-key={this.currentKey}
|
|
215
|
-
onTabClick={this.handleTabClick}
|
|
216
|
-
onTabDelete={this.handleTabDelete}
|
|
217
|
-
onCloseAll={this.handleCloseAll}
|
|
218
|
-
onCloseOther={this.handleCloseOther}
|
|
219
|
-
></tab-page-exp>
|
|
220
|
-
);
|
|
221
|
-
}
|
|
222
|
-
return null;
|
|
223
|
-
},
|
|
224
|
-
default: () => {
|
|
225
|
-
if (this.currentKey) {
|
|
226
|
-
return (
|
|
227
|
-
<app-router-view
|
|
228
|
-
manualKey={this.currentKey}
|
|
229
|
-
// onNeuronInit={this.onCreated}
|
|
230
|
-
onViewFound={this.onViewFound}
|
|
231
|
-
>
|
|
232
|
-
{({ Component }: { Component: string }) => {
|
|
233
|
-
return (
|
|
234
|
-
Component && (
|
|
235
|
-
<appKeepAlive keyList={this.keyHistory}>
|
|
236
|
-
<Component />
|
|
237
|
-
</appKeepAlive>
|
|
238
|
-
)
|
|
239
|
-
);
|
|
240
|
-
}}
|
|
241
|
-
</app-router-view>
|
|
242
|
-
);
|
|
243
|
-
}
|
|
244
|
-
},
|
|
245
|
-
}}
|
|
246
|
-
</app-layout>
|
|
247
|
-
);
|
|
248
|
-
},
|
|
249
|
-
});
|