@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,44 +0,0 @@
|
|
|
1
|
-
import { ComputedRef, PropType, Ref } from 'vue';
|
|
2
|
-
export declare const IndexView: import("vue").DefineComponent<{
|
|
3
|
-
context: PropType<IContext>;
|
|
4
|
-
params: {
|
|
5
|
-
type: PropType<IParams>;
|
|
6
|
-
default: () => {};
|
|
7
|
-
};
|
|
8
|
-
modelData: {
|
|
9
|
-
type: PropType<IAppIndexView>;
|
|
10
|
-
required: true;
|
|
11
|
-
};
|
|
12
|
-
}, {
|
|
13
|
-
c: any;
|
|
14
|
-
onViewFound: (_opts: IData) => void;
|
|
15
|
-
onMenuRouteChange: (() => void) | null;
|
|
16
|
-
deleteRouteCache: (_keys: string[]) => void;
|
|
17
|
-
handleTabClick: ((_index: number) => void) | null;
|
|
18
|
-
handleTabDelete: ((_name: number) => void) | null;
|
|
19
|
-
handleCloseAll: (() => void) | null;
|
|
20
|
-
handleCloseOther: (() => void) | null;
|
|
21
|
-
currentPath: ComputedRef<string>;
|
|
22
|
-
currentKey: Ref<string>;
|
|
23
|
-
keyHistory: Ref<string[]>;
|
|
24
|
-
routeMsgs: Ref<{
|
|
25
|
-
key: string;
|
|
26
|
-
fullPath: string;
|
|
27
|
-
modelPath?: string | undefined;
|
|
28
|
-
caption?: string | undefined;
|
|
29
|
-
}[]>;
|
|
30
|
-
isShowTabPageExp: boolean;
|
|
31
|
-
isCollapse: (collapse: boolean) => boolean;
|
|
32
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
33
|
-
context: PropType<IContext>;
|
|
34
|
-
params: {
|
|
35
|
-
type: PropType<IParams>;
|
|
36
|
-
default: () => {};
|
|
37
|
-
};
|
|
38
|
-
modelData: {
|
|
39
|
-
type: PropType<IAppIndexView>;
|
|
40
|
-
required: true;
|
|
41
|
-
};
|
|
42
|
-
}>>, {
|
|
43
|
-
params: IParams;
|
|
44
|
-
}>;
|
|
@@ -1,155 +0,0 @@
|
|
|
1
|
-
import { defineComponent, computed, onMounted, createVNode, resolveComponent, createTextVNode } from "vue";
|
|
2
|
-
import { useViewController } from "@ibiz-template/vue3-util";
|
|
3
|
-
import "./index-view-default";
|
|
4
|
-
import { useIndexExpRouteManage } from "./index-view-exp";
|
|
5
|
-
import { ViewController } from "@ibiz-template/runtime";
|
|
6
|
-
const IndexView = /* @__PURE__ */ defineComponent({
|
|
7
|
-
name: "IndexView",
|
|
8
|
-
props: {
|
|
9
|
-
context: Object,
|
|
10
|
-
params: {
|
|
11
|
-
type: Object,
|
|
12
|
-
default: () => ({})
|
|
13
|
-
},
|
|
14
|
-
modelData: {
|
|
15
|
-
type: Object,
|
|
16
|
-
required: true
|
|
17
|
-
}
|
|
18
|
-
},
|
|
19
|
-
setup(props) {
|
|
20
|
-
const c = useViewController((...args) => new ViewController(...args));
|
|
21
|
-
const isShowTabPageExp = true;
|
|
22
|
-
let onViewFound = null;
|
|
23
|
-
let onMenuRouteChange = null;
|
|
24
|
-
let deleteRouteCache = null;
|
|
25
|
-
let handleTabClick = null;
|
|
26
|
-
let handleTabDelete = null;
|
|
27
|
-
let handleCloseAll = null;
|
|
28
|
-
let handleCloseOther = null;
|
|
29
|
-
let currentPath = null;
|
|
30
|
-
let currentKey;
|
|
31
|
-
let keyHistory;
|
|
32
|
-
let routeMsgs;
|
|
33
|
-
{
|
|
34
|
-
const {
|
|
35
|
-
currentKey: _currentKey,
|
|
36
|
-
keyHistory: _keyHistory,
|
|
37
|
-
routeMsgs: _routeMsgs,
|
|
38
|
-
updateRouteMsg,
|
|
39
|
-
closeView,
|
|
40
|
-
deleteRouteCache: _deleteRouteCache,
|
|
41
|
-
handleTabClick: _handleTabClick,
|
|
42
|
-
handleTabDelete: _handleTabDelete,
|
|
43
|
-
handleCloseAll: _handleCloseAll,
|
|
44
|
-
handleCloseOther: _handleCloseOther
|
|
45
|
-
} = useIndexExpRouteManage(c);
|
|
46
|
-
currentKey = _currentKey;
|
|
47
|
-
keyHistory = _keyHistory;
|
|
48
|
-
routeMsgs = _routeMsgs;
|
|
49
|
-
deleteRouteCache = _deleteRouteCache;
|
|
50
|
-
handleTabClick = _handleTabClick;
|
|
51
|
-
handleTabDelete = _handleTabDelete;
|
|
52
|
-
handleCloseAll = _handleCloseAll;
|
|
53
|
-
handleCloseOther = _handleCloseOther;
|
|
54
|
-
onViewFound = (opts) => {
|
|
55
|
-
updateRouteMsg(currentKey.value, opts);
|
|
56
|
-
};
|
|
57
|
-
window.onpopstate = () => {
|
|
58
|
-
deleteRouteCache([keyHistory.value[1]]);
|
|
59
|
-
};
|
|
60
|
-
currentPath = computed(() => {
|
|
61
|
-
const routeMsg = routeMsgs.value.find((item) => item.key === currentKey.value);
|
|
62
|
-
return (routeMsg == null ? void 0 : routeMsg.modelPath) || "";
|
|
63
|
-
});
|
|
64
|
-
}
|
|
65
|
-
onMounted(() => {
|
|
66
|
-
setTimeout(() => {
|
|
67
|
-
const el = document.querySelector(".app-loading-x");
|
|
68
|
-
if (el) {
|
|
69
|
-
el.style.display = "none";
|
|
70
|
-
}
|
|
71
|
-
}, 300);
|
|
72
|
-
});
|
|
73
|
-
const isCollapse = (collapse) => {
|
|
74
|
-
return false;
|
|
75
|
-
};
|
|
76
|
-
return {
|
|
77
|
-
c,
|
|
78
|
-
// onCreated,
|
|
79
|
-
onViewFound,
|
|
80
|
-
onMenuRouteChange,
|
|
81
|
-
deleteRouteCache,
|
|
82
|
-
handleTabClick,
|
|
83
|
-
handleTabDelete,
|
|
84
|
-
handleCloseAll,
|
|
85
|
-
handleCloseOther,
|
|
86
|
-
currentPath,
|
|
87
|
-
currentKey,
|
|
88
|
-
keyHistory,
|
|
89
|
-
routeMsgs,
|
|
90
|
-
isShowTabPageExp,
|
|
91
|
-
isCollapse
|
|
92
|
-
};
|
|
93
|
-
},
|
|
94
|
-
render() {
|
|
95
|
-
return createVNode(resolveComponent("app-layout"), {
|
|
96
|
-
"is-complete": true,
|
|
97
|
-
"modelData": this.c.model,
|
|
98
|
-
"onCollapseChange": this.isCollapse
|
|
99
|
-
}, {
|
|
100
|
-
menu: () => {
|
|
101
|
-
var _a;
|
|
102
|
-
{
|
|
103
|
-
if (this.$slots.appmenu) {
|
|
104
|
-
return this.$slots.appmenu();
|
|
105
|
-
}
|
|
106
|
-
const menu = (_a = this.modelData.controls) == null ? void 0 : _a.find((item) => item.name === "appmenu");
|
|
107
|
-
if (menu) {
|
|
108
|
-
return createVNode(resolveComponent("control-shell"), {
|
|
109
|
-
"current-path": this.currentPath,
|
|
110
|
-
"modelData": menu,
|
|
111
|
-
"context": this.c.context,
|
|
112
|
-
"mode": this.c.model.mainMenuAlign,
|
|
113
|
-
"onMenuRouteChange": this.onMenuRouteChange
|
|
114
|
-
}, null);
|
|
115
|
-
}
|
|
116
|
-
return createVNode("div", null, [createTextVNode("菜单")]);
|
|
117
|
-
}
|
|
118
|
-
},
|
|
119
|
-
tabPageExp: () => {
|
|
120
|
-
if (this.isShowTabPageExp) {
|
|
121
|
-
return createVNode(resolveComponent("tab-page-exp"), {
|
|
122
|
-
"route-msgs": this.routeMsgs,
|
|
123
|
-
"current-key": this.currentKey,
|
|
124
|
-
"onTabClick": this.handleTabClick,
|
|
125
|
-
"onTabDelete": this.handleTabDelete,
|
|
126
|
-
"onCloseAll": this.handleCloseAll,
|
|
127
|
-
"onCloseOther": this.handleCloseOther
|
|
128
|
-
}, null);
|
|
129
|
-
}
|
|
130
|
-
return null;
|
|
131
|
-
},
|
|
132
|
-
default: () => {
|
|
133
|
-
if (this.currentKey) {
|
|
134
|
-
return createVNode(resolveComponent("app-router-view"), {
|
|
135
|
-
"manualKey": this.currentKey,
|
|
136
|
-
"onViewFound": this.onViewFound
|
|
137
|
-
}, {
|
|
138
|
-
default: ({
|
|
139
|
-
Component
|
|
140
|
-
}) => {
|
|
141
|
-
return Component && createVNode(resolveComponent("appKeepAlive"), {
|
|
142
|
-
"keyList": this.keyHistory
|
|
143
|
-
}, {
|
|
144
|
-
default: () => [createVNode(Component, null, null)]
|
|
145
|
-
});
|
|
146
|
-
}
|
|
147
|
-
});
|
|
148
|
-
}
|
|
149
|
-
}
|
|
150
|
-
});
|
|
151
|
-
}
|
|
152
|
-
});
|
|
153
|
-
export {
|
|
154
|
-
IndexView
|
|
155
|
-
};
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
export declare const IbizIndexView: import("../../util/install").TypeWithInstall<import("vue").DefineComponent<{
|
|
2
|
-
context: import("vue").PropType<IContext>;
|
|
3
|
-
params: {
|
|
4
|
-
type: import("vue").PropType<IParams>;
|
|
5
|
-
default: () => {};
|
|
6
|
-
};
|
|
7
|
-
modelData: {
|
|
8
|
-
type: import("vue").PropType<IAppIndexView>;
|
|
9
|
-
required: true;
|
|
10
|
-
};
|
|
11
|
-
}, {
|
|
12
|
-
c: any;
|
|
13
|
-
onViewFound: (_opts: IData) => void;
|
|
14
|
-
onMenuRouteChange: (() => void) | null;
|
|
15
|
-
deleteRouteCache: (_keys: string[]) => void;
|
|
16
|
-
handleTabClick: ((_index: number) => void) | null;
|
|
17
|
-
handleTabDelete: ((_name: number) => void) | null;
|
|
18
|
-
handleCloseAll: (() => void) | null;
|
|
19
|
-
handleCloseOther: (() => void) | null;
|
|
20
|
-
currentPath: import("vue").ComputedRef<string>;
|
|
21
|
-
currentKey: import("vue").Ref<string>;
|
|
22
|
-
keyHistory: import("vue").Ref<string[]>;
|
|
23
|
-
routeMsgs: import("vue").Ref<{
|
|
24
|
-
key: string;
|
|
25
|
-
fullPath: string;
|
|
26
|
-
modelPath?: string | undefined;
|
|
27
|
-
caption?: string | undefined;
|
|
28
|
-
}[]>;
|
|
29
|
-
isShowTabPageExp: boolean;
|
|
30
|
-
isCollapse: (collapse: boolean) => boolean;
|
|
31
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
32
|
-
context: import("vue").PropType<IContext>;
|
|
33
|
-
params: {
|
|
34
|
-
type: import("vue").PropType<IParams>;
|
|
35
|
-
default: () => {};
|
|
36
|
-
};
|
|
37
|
-
modelData: {
|
|
38
|
-
type: import("vue").PropType<IAppIndexView>;
|
|
39
|
-
required: true;
|
|
40
|
-
};
|
|
41
|
-
}>>, {
|
|
42
|
-
params: IParams;
|
|
43
|
-
}>>;
|
|
44
|
-
export default IbizIndexView;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { ViewType } from "@ibiz-template/runtime";
|
|
2
|
-
import { IndexView } from "./index-view";
|
|
3
|
-
import { IndexViewProvider } from "./index-view-provider";
|
|
4
|
-
import { withInstall } from "../../util/install";
|
|
5
|
-
import { IndexViewEngine } from "./index-view-engine";
|
|
6
|
-
const IbizIndexView = withInstall(IndexView, function(v) {
|
|
7
|
-
v.component(IndexView.name, IndexView);
|
|
8
|
-
ibiz.register.view.register(ViewType.APP_INDEX_VIEW, new IndexViewProvider());
|
|
9
|
-
ibiz.engine.registerPreset(ViewType.APP_INDEX_VIEW, IndexViewEngine);
|
|
10
|
-
});
|
|
11
|
-
export {
|
|
12
|
-
IbizIndexView,
|
|
13
|
-
IbizIndexView as default
|
|
14
|
-
};
|
package/es/views/index.d.ts
DELETED
package/es/views/index.js
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import './app-user.scss';
|
|
2
|
-
export declare const AppUser: import("vue").DefineComponent<{}, {
|
|
3
|
-
ns: any;
|
|
4
|
-
srfusername: any;
|
|
5
|
-
router: any;
|
|
6
|
-
}, {}, {}, {
|
|
7
|
-
onClick(): Promise<void>;
|
|
8
|
-
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const vue = require("vue");
|
|
4
|
-
const vueRouter = require("vue-router");
|
|
5
|
-
const vue3Util = require("@ibiz-template/vue3-util");
|
|
6
|
-
const appUser = "";
|
|
7
|
-
const AppUser = /* @__PURE__ */ vue.defineComponent({
|
|
8
|
-
name: "AppUser",
|
|
9
|
-
setup() {
|
|
10
|
-
var _a;
|
|
11
|
-
const ns = vue3Util.useNamespace("app-user");
|
|
12
|
-
const {
|
|
13
|
-
srfusername = "游客"
|
|
14
|
-
} = ((_a = ibiz.appData) == null ? void 0 : _a.context) || {};
|
|
15
|
-
const router = vueRouter.useRouter();
|
|
16
|
-
return {
|
|
17
|
-
ns,
|
|
18
|
-
srfusername,
|
|
19
|
-
router
|
|
20
|
-
};
|
|
21
|
-
},
|
|
22
|
-
methods: {
|
|
23
|
-
async onClick() {
|
|
24
|
-
const res = await ibiz.auth.v7logout();
|
|
25
|
-
if (res.ok) {
|
|
26
|
-
ibiz.message.success("登出成功");
|
|
27
|
-
this.router.push(`/login?ru=${encodeURIComponent(window.location.hash.replace("#/", "/"))}`);
|
|
28
|
-
} else {
|
|
29
|
-
ibiz.message.error("登出失败");
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
},
|
|
33
|
-
render() {
|
|
34
|
-
return vue.createVNode("div", {
|
|
35
|
-
"class": this.ns.b()
|
|
36
|
-
}, [vue.createVNode(vue.resolveComponent("el-dropdown"), {
|
|
37
|
-
"class": this.ns.b("avatar")
|
|
38
|
-
}, {
|
|
39
|
-
default: () => vue.createVNode("span", {
|
|
40
|
-
"class": this.ns.b("avatar-wrapper")
|
|
41
|
-
}, [vue.createVNode(vue.resolveComponent("el-avatar"), {
|
|
42
|
-
"size": "small",
|
|
43
|
-
"src": "https://i.loli.net/2017/08/21/599a521472424.jpg"
|
|
44
|
-
}, null), vue.createVNode("span", {
|
|
45
|
-
"class": this.ns.be("avatar", "name")
|
|
46
|
-
}, [this.srfusername])]),
|
|
47
|
-
dropdown: () => vue.createVNode(vue.resolveComponent("el-dropdown-menu"), null, {
|
|
48
|
-
default: () => [vue.createVNode(vue.resolveComponent("el-dropdown-item"), null, {
|
|
49
|
-
default: () => [vue.createVNode(vue.resolveComponent("ion-icon"), {
|
|
50
|
-
"name": "log-out-outline",
|
|
51
|
-
"class": this.ns.be("avater", "icon")
|
|
52
|
-
}, null), vue.createVNode("span", {
|
|
53
|
-
"onClick": this.onClick
|
|
54
|
-
}, [vue.createTextVNode("退出登录")])]
|
|
55
|
-
})]
|
|
56
|
-
})
|
|
57
|
-
})]);
|
|
58
|
-
}
|
|
59
|
-
});
|
|
60
|
-
exports.AppUser = AppUser;
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
export declare const IbizGridPagination: import("../../util/install").TypeWithInstall<import("vue").DefineComponent<{
|
|
2
|
-
total: {
|
|
3
|
-
type: NumberConstructor;
|
|
4
|
-
required: true;
|
|
5
|
-
};
|
|
6
|
-
curPage: {
|
|
7
|
-
type: NumberConstructor;
|
|
8
|
-
required: true;
|
|
9
|
-
};
|
|
10
|
-
size: {
|
|
11
|
-
type: NumberConstructor;
|
|
12
|
-
required: true;
|
|
13
|
-
};
|
|
14
|
-
}, {
|
|
15
|
-
ns: any;
|
|
16
|
-
start: import("vue").ComputedRef<number>;
|
|
17
|
-
end: import("vue").ComputedRef<number>;
|
|
18
|
-
onPageChange: (page: number) => void;
|
|
19
|
-
onPageSizeChange: (size: number) => void;
|
|
20
|
-
pageReset: () => void;
|
|
21
|
-
inputChange: (event: MouseEvent) => void;
|
|
22
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "pageSizeChange" | "pageReset")[], "change" | "pageSizeChange" | "pageReset", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
23
|
-
total: {
|
|
24
|
-
type: NumberConstructor;
|
|
25
|
-
required: true;
|
|
26
|
-
};
|
|
27
|
-
curPage: {
|
|
28
|
-
type: NumberConstructor;
|
|
29
|
-
required: true;
|
|
30
|
-
};
|
|
31
|
-
size: {
|
|
32
|
-
type: NumberConstructor;
|
|
33
|
-
required: true;
|
|
34
|
-
};
|
|
35
|
-
}>> & {
|
|
36
|
-
onChange?: ((...args: any[]) => any) | undefined;
|
|
37
|
-
onPageSizeChange?: ((...args: any[]) => any) | undefined;
|
|
38
|
-
onPageReset?: ((...args: any[]) => any) | undefined;
|
|
39
|
-
}, {}>>;
|
|
40
|
-
export default IbizGridPagination;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
-
const install = require("../../util/install");
|
|
4
|
-
const GridPagination = require("./grid-pagination");
|
|
5
|
-
const IbizGridPagination = install.withInstall(GridPagination, function(v) {
|
|
6
|
-
v.component(GridPagination.name, GridPagination);
|
|
7
|
-
});
|
|
8
|
-
exports.IbizGridPagination = IbizGridPagination;
|
|
9
|
-
exports.default = IbizGridPagination;
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import './quick-search.scss';
|
|
2
|
-
export declare const QuickSearch: import("vue").DefineComponent<{
|
|
3
|
-
value: {
|
|
4
|
-
type: StringConstructor;
|
|
5
|
-
};
|
|
6
|
-
viewMode: {
|
|
7
|
-
type: StringConstructor;
|
|
8
|
-
required: true;
|
|
9
|
-
};
|
|
10
|
-
placeholder: {
|
|
11
|
-
type: StringConstructor;
|
|
12
|
-
};
|
|
13
|
-
}, {
|
|
14
|
-
ns: any;
|
|
15
|
-
inputValue: import("vue").WritableComputedRef<string | undefined>;
|
|
16
|
-
search: () => void;
|
|
17
|
-
onInput: (value: string | undefined) => void;
|
|
18
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
19
|
-
value: {
|
|
20
|
-
type: StringConstructor;
|
|
21
|
-
};
|
|
22
|
-
viewMode: {
|
|
23
|
-
type: StringConstructor;
|
|
24
|
-
required: true;
|
|
25
|
-
};
|
|
26
|
-
placeholder: {
|
|
27
|
-
type: StringConstructor;
|
|
28
|
-
};
|
|
29
|
-
}>>, {}>;
|
|
30
|
-
export default QuickSearch;
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
-
const vue = require("vue");
|
|
4
|
-
const vue3Util = require("@ibiz-template/vue3-util");
|
|
5
|
-
const lodashEs = require("lodash-es");
|
|
6
|
-
const quickSearch = "";
|
|
7
|
-
const QuickSearch = /* @__PURE__ */ vue.defineComponent({
|
|
8
|
-
name: "QuickSearch",
|
|
9
|
-
props: {
|
|
10
|
-
value: {
|
|
11
|
-
type: String
|
|
12
|
-
},
|
|
13
|
-
viewMode: {
|
|
14
|
-
type: String,
|
|
15
|
-
required: true
|
|
16
|
-
},
|
|
17
|
-
placeholder: {
|
|
18
|
-
type: String
|
|
19
|
-
}
|
|
20
|
-
},
|
|
21
|
-
setup(props, {
|
|
22
|
-
emit
|
|
23
|
-
}) {
|
|
24
|
-
const ns = vue3Util.useNamespace("quick-search");
|
|
25
|
-
const inputValue = vue.computed({
|
|
26
|
-
get() {
|
|
27
|
-
return props.value;
|
|
28
|
-
},
|
|
29
|
-
set(val) {
|
|
30
|
-
emit("update", val);
|
|
31
|
-
}
|
|
32
|
-
});
|
|
33
|
-
const search = () => {
|
|
34
|
-
emit("search");
|
|
35
|
-
};
|
|
36
|
-
const debounceSearch = lodashEs.debounce(() => {
|
|
37
|
-
if (search) {
|
|
38
|
-
search();
|
|
39
|
-
}
|
|
40
|
-
}, 500);
|
|
41
|
-
const onInput = (value) => {
|
|
42
|
-
inputValue.value = value;
|
|
43
|
-
debounceSearch();
|
|
44
|
-
};
|
|
45
|
-
return {
|
|
46
|
-
ns,
|
|
47
|
-
inputValue,
|
|
48
|
-
search,
|
|
49
|
-
onInput
|
|
50
|
-
};
|
|
51
|
-
},
|
|
52
|
-
render() {
|
|
53
|
-
return vue.createVNode(vue.resolveComponent("el-input"), {
|
|
54
|
-
"model-value": this.value,
|
|
55
|
-
"class": [this.ns.b(), this.ns.m(this.viewMode.toLowerCase())],
|
|
56
|
-
"placeholder": this.placeholder,
|
|
57
|
-
"onInput": this.onInput,
|
|
58
|
-
"onChange": this.search
|
|
59
|
-
}, null);
|
|
60
|
-
}
|
|
61
|
-
});
|
|
62
|
-
exports.QuickSearch = QuickSearch;
|
|
63
|
-
exports.default = QuickSearch;
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
import './tab-page-exp.scss';
|
|
2
|
-
interface RouteMsg {
|
|
3
|
-
key: string;
|
|
4
|
-
fullPath: string;
|
|
5
|
-
modelPath?: string;
|
|
6
|
-
caption?: string;
|
|
7
|
-
}
|
|
8
|
-
interface dropdownAction {
|
|
9
|
-
text: string;
|
|
10
|
-
value?: string;
|
|
11
|
-
}
|
|
12
|
-
export declare const TabPageExp: import("vue").DefineComponent<{
|
|
13
|
-
routeMsgs: {
|
|
14
|
-
type: {
|
|
15
|
-
(arrayLength: number): RouteMsg[];
|
|
16
|
-
(...items: RouteMsg[]): RouteMsg[];
|
|
17
|
-
new (arrayLength: number): RouteMsg[];
|
|
18
|
-
new (...items: RouteMsg[]): RouteMsg[];
|
|
19
|
-
isArray(arg: any): arg is any[];
|
|
20
|
-
readonly prototype: any[];
|
|
21
|
-
from<T>(arrayLike: ArrayLike<T>): T[];
|
|
22
|
-
from<T_1, U>(arrayLike: ArrayLike<T_1>, mapfn: (v: T_1, k: number) => U, thisArg?: any): U[];
|
|
23
|
-
from<T_2>(iterable: Iterable<T_2> | ArrayLike<T_2>): T_2[];
|
|
24
|
-
from<T_3, U_1>(iterable: Iterable<T_3> | ArrayLike<T_3>, mapfn: (v: T_3, k: number) => U_1, thisArg?: any): U_1[];
|
|
25
|
-
of<T_4>(...items: T_4[]): T_4[];
|
|
26
|
-
readonly [Symbol.species]: ArrayConstructor;
|
|
27
|
-
};
|
|
28
|
-
required: true;
|
|
29
|
-
};
|
|
30
|
-
currentKey: {
|
|
31
|
-
type: StringConstructor;
|
|
32
|
-
required: true;
|
|
33
|
-
};
|
|
34
|
-
}, {
|
|
35
|
-
ns: any;
|
|
36
|
-
tabsValue: import("vue").Ref<number>;
|
|
37
|
-
actions: dropdownAction[];
|
|
38
|
-
changePage: (pane: TabsPaneContext, _ev: Event) => void;
|
|
39
|
-
onClose: (name: TabPaneName) => void;
|
|
40
|
-
handleCommand: (command: dropdownAction) => void;
|
|
41
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("tab-delete" | "tab-click" | "close-all" | "close-other")[], "tab-delete" | "tab-click" | "close-all" | "close-other", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
42
|
-
routeMsgs: {
|
|
43
|
-
type: {
|
|
44
|
-
(arrayLength: number): RouteMsg[];
|
|
45
|
-
(...items: RouteMsg[]): RouteMsg[];
|
|
46
|
-
new (arrayLength: number): RouteMsg[];
|
|
47
|
-
new (...items: RouteMsg[]): RouteMsg[];
|
|
48
|
-
isArray(arg: any): arg is any[];
|
|
49
|
-
readonly prototype: any[];
|
|
50
|
-
from<T>(arrayLike: ArrayLike<T>): T[];
|
|
51
|
-
from<T_1, U>(arrayLike: ArrayLike<T_1>, mapfn: (v: T_1, k: number) => U, thisArg?: any): U[];
|
|
52
|
-
from<T_2>(iterable: Iterable<T_2> | ArrayLike<T_2>): T_2[];
|
|
53
|
-
from<T_3, U_1>(iterable: Iterable<T_3> | ArrayLike<T_3>, mapfn: (v: T_3, k: number) => U_1, thisArg?: any): U_1[];
|
|
54
|
-
of<T_4>(...items: T_4[]): T_4[];
|
|
55
|
-
readonly [Symbol.species]: ArrayConstructor;
|
|
56
|
-
};
|
|
57
|
-
required: true;
|
|
58
|
-
};
|
|
59
|
-
currentKey: {
|
|
60
|
-
type: StringConstructor;
|
|
61
|
-
required: true;
|
|
62
|
-
};
|
|
63
|
-
}>> & {
|
|
64
|
-
"onTab-delete"?: ((...args: any[]) => any) | undefined;
|
|
65
|
-
"onTab-click"?: ((...args: any[]) => any) | undefined;
|
|
66
|
-
"onClose-all"?: ((...args: any[]) => any) | undefined;
|
|
67
|
-
"onClose-other"?: ((...args: any[]) => any) | undefined;
|
|
68
|
-
}, {}>;
|
|
69
|
-
export {};
|
|
@@ -1,117 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const vue = require("vue");
|
|
4
|
-
const vue3Util = require("@ibiz-template/vue3-util");
|
|
5
|
-
const tabPageExp = "";
|
|
6
|
-
function _isSlot(s) {
|
|
7
|
-
return typeof s === "function" || Object.prototype.toString.call(s) === "[object Object]" && !vue.isVNode(s);
|
|
8
|
-
}
|
|
9
|
-
const TabPageExp = /* @__PURE__ */ vue.defineComponent({
|
|
10
|
-
name: "TabPageExp",
|
|
11
|
-
props: {
|
|
12
|
-
routeMsgs: {
|
|
13
|
-
type: Array,
|
|
14
|
-
required: true
|
|
15
|
-
},
|
|
16
|
-
currentKey: {
|
|
17
|
-
type: String,
|
|
18
|
-
required: true
|
|
19
|
-
}
|
|
20
|
-
},
|
|
21
|
-
emits: ["tab-delete", "tab-click", "close-all", "close-other"],
|
|
22
|
-
setup(props, {
|
|
23
|
-
emit
|
|
24
|
-
}) {
|
|
25
|
-
const ns = vue3Util.useNamespace("tab-page-exp");
|
|
26
|
-
const tabsValue = vue.ref(0);
|
|
27
|
-
const actions = [{
|
|
28
|
-
text: "关闭所有",
|
|
29
|
-
value: "closeAll"
|
|
30
|
-
}, {
|
|
31
|
-
text: "关闭其他",
|
|
32
|
-
value: "closeOther"
|
|
33
|
-
}];
|
|
34
|
-
vue.watch(() => props.currentKey, (newVal, _oldVal) => {
|
|
35
|
-
const currentRouteMsgIndex = props.routeMsgs.findIndex((msg) => msg.key === newVal);
|
|
36
|
-
if (currentRouteMsgIndex !== -1) {
|
|
37
|
-
tabsValue.value = currentRouteMsgIndex;
|
|
38
|
-
}
|
|
39
|
-
});
|
|
40
|
-
const changePage = (pane, _ev) => {
|
|
41
|
-
const index = Number(pane.index);
|
|
42
|
-
tabsValue.value = index;
|
|
43
|
-
emit("tab-click", index);
|
|
44
|
-
};
|
|
45
|
-
const onClose = (name) => {
|
|
46
|
-
emit("tab-delete", name);
|
|
47
|
-
};
|
|
48
|
-
const handleCommand = (command) => {
|
|
49
|
-
if (command.value === "closeAll") {
|
|
50
|
-
emit("close-all");
|
|
51
|
-
} else if (command.value === "closeOther") {
|
|
52
|
-
emit("close-other");
|
|
53
|
-
}
|
|
54
|
-
};
|
|
55
|
-
return {
|
|
56
|
-
ns,
|
|
57
|
-
tabsValue,
|
|
58
|
-
actions,
|
|
59
|
-
changePage,
|
|
60
|
-
onClose,
|
|
61
|
-
handleCommand
|
|
62
|
-
};
|
|
63
|
-
},
|
|
64
|
-
render() {
|
|
65
|
-
return vue.createVNode("div", {
|
|
66
|
-
"class": this.ns.b()
|
|
67
|
-
}, [vue.createVNode("div", {
|
|
68
|
-
"class": this.ns.e("left")
|
|
69
|
-
}, [vue.createVNode(vue.resolveComponent("el-tabs"), {
|
|
70
|
-
"type": "card",
|
|
71
|
-
"modelValue": this.tabsValue,
|
|
72
|
-
"onUpdate:modelValue": ($event) => this.tabsValue = $event,
|
|
73
|
-
"closable": true,
|
|
74
|
-
"onTabClick": this.changePage,
|
|
75
|
-
"onTabRemove": this.onClose
|
|
76
|
-
}, {
|
|
77
|
-
default: () => {
|
|
78
|
-
var _a;
|
|
79
|
-
return [(_a = this.routeMsgs) == null ? void 0 : _a.map((msg, index) => {
|
|
80
|
-
return vue.createVNode(vue.resolveComponent("el-tab-pane"), {
|
|
81
|
-
"name": index,
|
|
82
|
-
"key": index,
|
|
83
|
-
"label": msg.caption
|
|
84
|
-
}, null);
|
|
85
|
-
})];
|
|
86
|
-
}
|
|
87
|
-
})]), vue.createVNode("div", {
|
|
88
|
-
"class": this.ns.e("right")
|
|
89
|
-
}, [vue.createVNode(vue.resolveComponent("el-dropdown"), {
|
|
90
|
-
"onCommand": this.handleCommand
|
|
91
|
-
}, {
|
|
92
|
-
default: () => {
|
|
93
|
-
return vue.createVNode(vue.resolveComponent("el-button"), {
|
|
94
|
-
"size": "small",
|
|
95
|
-
"type": "primary"
|
|
96
|
-
}, {
|
|
97
|
-
default: () => [vue.createTextVNode("更多 "), vue.createVNode(vue.resolveComponent("ion-icon"), {
|
|
98
|
-
"name": "arrow-down"
|
|
99
|
-
}, null)]
|
|
100
|
-
});
|
|
101
|
-
},
|
|
102
|
-
dropdown: () => {
|
|
103
|
-
let _slot;
|
|
104
|
-
return vue.createVNode(vue.resolveComponent("el-dropdown-menu"), null, _isSlot(_slot = this.actions.map((action) => {
|
|
105
|
-
return vue.createVNode(vue.resolveComponent("el-dropdown-item"), {
|
|
106
|
-
"command": action
|
|
107
|
-
}, {
|
|
108
|
-
default: () => [action.text]
|
|
109
|
-
});
|
|
110
|
-
})) ? _slot : {
|
|
111
|
-
default: () => [_slot]
|
|
112
|
-
});
|
|
113
|
-
}
|
|
114
|
-
})])]);
|
|
115
|
-
}
|
|
116
|
-
});
|
|
117
|
-
exports.TabPageExp = TabPageExp;
|