@ibiz-template/vue3-util 0.6.0 → 0.6.1-dev.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.min.css +1 -1
- package/dist/index.system.min.js +1 -1
- package/es/panel-component/nav-pos/nav-pos.controller.d.ts.map +1 -1
- package/es/panel-component/nav-pos/nav-pos.controller.mjs +12 -3
- package/es/util/overlay-container/overlay-container.mjs +1 -1
- package/es/util/router-callback/router-callback.d.ts +1 -1
- package/es/util/router-callback/router-callback.d.ts.map +1 -1
- package/es/util/router-callback/router-callback.mjs +6 -2
- package/lib/_virtual/_commonjsHelpers.cjs +46 -0
- package/lib/common/badge/badge.cjs +34 -0
- package/lib/common/badge/badge.css +1 -0
- package/lib/common/code-list/code-list.cjs +105 -0
- package/lib/common/code-list/code-list.css +1 -0
- package/lib/common/control-base/control-base.cjs +102 -0
- package/lib/common/control-base/control-base.css +1 -0
- package/lib/common/control-loading-placeholder/control-loading-placeholder.cjs +32 -0
- package/lib/common/control-shell/control-shell.cjs +58 -0
- package/lib/common/control-shell/control-shell.css +1 -0
- package/lib/common/icon/icon.cjs +103 -0
- package/lib/common/index.cjs +21 -0
- package/lib/common/router-view/router-view.cjs +77 -0
- package/lib/common/view-shell/view-shell.cjs +137 -0
- package/lib/common/view-shell/view-shell.css +1 -0
- package/lib/control/index.cjs +10 -0
- package/lib/control/panel/index.cjs +9 -0
- package/lib/control/panel/panel/index.cjs +18 -0
- package/lib/control/panel/panel/panel.cjs +142 -0
- package/lib/control/panel/panel/panel.css +1 -0
- package/lib/control/panel/panel/panel.provider.cjs +10 -0
- package/lib/control/panel/view-layout-panel/index.cjs +24 -0
- package/lib/control/panel/view-layout-panel/view-layout-panel.cjs +144 -0
- package/lib/control/panel/view-layout-panel/view-layout-panel.css +1 -0
- package/lib/control/panel/view-layout-panel/view-layout-panel.provider.cjs +10 -0
- package/lib/hooks/app/app.hooks.cjs +26 -0
- package/lib/hooks/index.cjs +7 -0
- package/lib/interface/index.cjs +5 -0
- package/lib/interface/util/index.cjs +5 -0
- package/lib/interface/util/route/route.cjs +3 -0
- package/lib/node_modules/.pnpm/path-browserify@1.0.1/node_modules/path-browserify/index.cjs +540 -0
- package/lib/panel-component/grid-container/grid-container.cjs +108 -0
- package/lib/panel-component/grid-container/grid-container.controller.cjs +14 -0
- package/lib/panel-component/grid-container/grid-container.css +1 -0
- package/lib/panel-component/grid-container/grid-container.provider.cjs +17 -0
- package/lib/panel-component/grid-container/grid-container.state.cjs +9 -0
- package/lib/panel-component/grid-container/index.cjs +25 -0
- package/lib/panel-component/index.cjs +73 -0
- package/lib/panel-component/multi-data-container/index.cjs +28 -0
- package/lib/panel-component/multi-data-container/multi-data-container-item.controller.cjs +119 -0
- package/lib/panel-component/multi-data-container/multi-data-container-itm.state.cjs +19 -0
- package/lib/panel-component/multi-data-container/multi-data-container.cjs +89 -0
- package/lib/panel-component/multi-data-container/multi-data-container.controller.cjs +262 -0
- package/lib/panel-component/multi-data-container/multi-data-container.css +1 -0
- package/lib/panel-component/multi-data-container/multi-data-container.provider.cjs +17 -0
- package/lib/panel-component/multi-data-container/multi-data-container.state.cjs +19 -0
- package/lib/panel-component/nav-pos/index.cjs +22 -0
- package/lib/panel-component/nav-pos/nav-pos.cjs +107 -0
- package/lib/panel-component/nav-pos/nav-pos.controller.cjs +312 -0
- package/lib/panel-component/nav-pos/nav-pos.css +1 -0
- package/lib/panel-component/nav-pos/nav-pos.provider.cjs +26 -0
- package/lib/panel-component/nav-pos/nav-pos.state.cjs +49 -0
- package/lib/panel-component/panel-container/index.cjs +29 -0
- package/lib/panel-component/panel-container/panel-container.cjs +72 -0
- package/lib/panel-component/panel-container/panel-container.controller.cjs +14 -0
- package/lib/panel-component/panel-container/panel-container.css +1 -0
- package/lib/panel-component/panel-container/panel-container.provider.cjs +17 -0
- package/lib/panel-component/panel-container/panel-container.state.cjs +9 -0
- package/lib/panel-component/panel-container-group/index.cjs +28 -0
- package/lib/panel-component/panel-container-group/panel-container-group.cjs +110 -0
- package/lib/panel-component/panel-container-group/panel-container-group.controller.cjs +37 -0
- package/lib/panel-component/panel-container-group/panel-container-group.css +1 -0
- package/lib/panel-component/panel-container-group/panel-container-group.provider.cjs +17 -0
- package/lib/panel-component/panel-container-group/panel-container-group.state.cjs +9 -0
- package/lib/panel-component/panel-container-image/index.cjs +28 -0
- package/lib/panel-component/panel-container-image/panel-container-image.cjs +95 -0
- package/lib/panel-component/panel-container-image/panel-container-image.controller.cjs +14 -0
- package/lib/panel-component/panel-container-image/panel-container-image.css +1 -0
- package/lib/panel-component/panel-container-image/panel-container-image.provider.cjs +17 -0
- package/lib/panel-component/panel-container-image/panel-container-image.state.cjs +9 -0
- package/lib/panel-component/panel-ctrl-pos/index.cjs +20 -0
- package/lib/panel-component/panel-ctrl-pos/panel-ctrl-pos.cjs +47 -0
- package/lib/panel-component/panel-ctrl-pos/panel-ctrl-pos.controller.cjs +25 -0
- package/lib/panel-component/panel-ctrl-pos/panel-ctrl-pos.css +1 -0
- package/lib/panel-component/panel-ctrl-pos/panel-ctrl-pos.provider.cjs +17 -0
- package/lib/panel-component/panel-field/index.cjs +20 -0
- package/lib/panel-component/panel-field/panel-field.cjs +78 -0
- package/lib/panel-component/panel-field/panel-field.controller.cjs +132 -0
- package/lib/panel-component/panel-field/panel-field.css +1 -0
- package/lib/panel-component/panel-field/panel-field.provider.cjs +17 -0
- package/lib/panel-component/panel-field/panel-field.state.cjs +9 -0
- package/lib/panel-component/panel-item-render/index.cjs +24 -0
- package/lib/panel-component/panel-item-render/panel-item-render.cjs +49 -0
- package/lib/panel-component/panel-item-render/panel-item-render.controller.cjs +31 -0
- package/lib/panel-component/panel-item-render/panel-item-render.provider.cjs +17 -0
- package/lib/panel-component/panel-rawitem/index.cjs +32 -0
- package/lib/panel-component/panel-rawitem/panel-rawitem.cjs +61 -0
- package/lib/panel-component/panel-rawitem/panel-rawitem.controller.cjs +30 -0
- package/lib/panel-component/panel-rawitem/panel-rawitem.css +1 -0
- package/lib/panel-component/panel-rawitem/panel-rawitem.provider.cjs +17 -0
- package/lib/panel-component/panel-tab-page/index.cjs +18 -0
- package/lib/panel-component/panel-tab-page/panel-tab-page.cjs +65 -0
- package/lib/panel-component/panel-tab-page/panel-tab-page.provider.cjs +17 -0
- package/lib/panel-component/scroll-container/index.cjs +55 -0
- package/lib/panel-component/scroll-container/scroll-container/index.cjs +9 -0
- package/lib/panel-component/scroll-container/scroll-container/scroll-container.cjs +114 -0
- package/lib/panel-component/scroll-container/scroll-container/scroll-container.controller.cjs +14 -0
- package/lib/panel-component/scroll-container/scroll-container/scroll-container.css +1 -0
- package/lib/panel-component/scroll-container/scroll-container/scroll-container.provider.cjs +17 -0
- package/lib/panel-component/scroll-container/scroll-container-item/index.cjs +9 -0
- package/lib/panel-component/scroll-container/scroll-container-item/scroll-container-item.cjs +66 -0
- package/lib/panel-component/scroll-container/scroll-container-item/scroll-container-item.controller.cjs +9 -0
- package/lib/panel-component/scroll-container/scroll-container-item/scroll-container-item.css +1 -0
- package/lib/panel-component/scroll-container/scroll-container-item/scroll-container-item.provider.cjs +17 -0
- package/lib/panel-component/single-data-container/index.cjs +28 -0
- package/lib/panel-component/single-data-container/single-data-container.cjs +79 -0
- package/lib/panel-component/single-data-container/single-data-container.controller.cjs +287 -0
- package/lib/panel-component/single-data-container/single-data-container.css +1 -0
- package/lib/panel-component/single-data-container/single-data-container.provider.cjs +17 -0
- package/lib/panel-component/single-data-container/single-data-container.state.cjs +19 -0
- package/lib/plugin/index.cjs +7 -0
- package/{src/plugin/plugin-factory/plugin-factory.ts → lib/plugin/plugin-factory/plugin-factory.cjs} +137 -182
- package/lib/props/common.cjs +17 -0
- package/lib/props/editor/array.cjs +14 -0
- package/lib/props/editor/autocomplete.cjs +14 -0
- package/lib/props/editor/cascader.cjs +14 -0
- package/lib/props/editor/check-box-list.cjs +14 -0
- package/lib/props/editor/check-box.cjs +14 -0
- package/lib/props/editor/code.cjs +23 -0
- package/lib/props/editor/color-picker.cjs +14 -0
- package/lib/props/editor/common.cjs +62 -0
- package/lib/props/editor/data-picker.cjs +14 -0
- package/lib/props/editor/date-picker.cjs +14 -0
- package/lib/props/editor/date-range.cjs +14 -0
- package/lib/props/editor/dropdown-list.cjs +14 -0
- package/lib/props/editor/html.cjs +14 -0
- package/lib/props/editor/index.cjs +86 -0
- package/lib/props/editor/list-box.cjs +14 -0
- package/lib/props/editor/markdown.cjs +22 -0
- package/lib/props/editor/number-range.cjs +14 -0
- package/lib/props/editor/radio-button-list.cjs +14 -0
- package/lib/props/editor/rate.cjs +14 -0
- package/lib/props/editor/raw.cjs +14 -0
- package/lib/props/editor/slider.cjs +14 -0
- package/lib/props/editor/span.cjs +14 -0
- package/lib/props/editor/stepper.cjs +14 -0
- package/lib/props/editor/switch.cjs +14 -0
- package/lib/props/editor/text-box.cjs +30 -0
- package/lib/props/editor/upload.cjs +14 -0
- package/lib/props/index.cjs +89 -0
- package/lib/use/click-outside/click-outside.cjs +50 -0
- package/lib/use/control/index.cjs +7 -0
- package/lib/use/control/use-control-controller/use-control-controller.cjs +78 -0
- package/lib/use/event/event.cjs +39 -0
- package/lib/use/focus-blur/focus-blur.cjs +48 -0
- package/lib/use/index.cjs +34 -0
- package/lib/use/namespace/namespace.cjs +10 -0
- package/lib/use/route/route.cjs +31 -0
- package/lib/use/util/index.cjs +14 -0
- package/lib/use/view/index.cjs +7 -0
- package/lib/use/view/use-view-controller/use-view-controller.cjs +86 -0
- package/lib/use/vue/vue.cjs +64 -0
- package/lib/util/control/prepare-control.cjs +24 -0
- package/lib/util/index.cjs +43 -0
- package/lib/util/install.cjs +11 -0
- package/lib/util/overlay-container/overlay-container.cjs +116 -0
- package/lib/util/overlay-popover-container/overlay-popover-container.cjs +12 -0
- package/lib/util/overlay-view-util/overlay-view-util.cjs +70 -0
- package/lib/util/render/render.cjs +22 -0
- package/lib/util/route/route-listener.cjs +75 -0
- package/lib/util/route/route.cjs +302 -0
- package/lib/util/router-callback/router-callback-item.cjs +74 -0
- package/{src/util/router-callback/router-callback.ts → lib/util/router-callback/router-callback.cjs} +33 -37
- package/lib/util/store/app-store/app-store.cjs +12 -0
- package/lib/util/store/index.cjs +12 -0
- package/lib/util/store/ui-store/ui-store.cjs +17 -0
- package/lib/util/store/ui-store/z-index.cjs +20 -0
- package/lib/view/app-redirect-view/app-redirect-view.cjs +29 -0
- package/lib/view/common/index.cjs +15 -0
- package/lib/view/common/view.cjs +129 -0
- package/lib/view/common/view.css +1 -0
- package/lib/view/common/view.provider.cjs +10 -0
- package/lib/view/de-redirect-view/de-redirect-view.cjs +64 -0
- package/lib/view/de-redirect-view/de-redirect-view.provider.cjs +10 -0
- package/lib/view/de-redirect-view/index.cjs +22 -0
- package/lib/view/index.cjs +15 -0
- package/lib/view/portal-view/index.cjs +23 -0
- package/lib/view/portal-view/portal-view.cjs +95 -0
- package/lib/view/portal-view/portal-view.provider.cjs +10 -0
- package/lib/view/todo-redirect/todo-redirect.cjs +54 -0
- package/package.json +5 -5
- package/src/common/badge/badge.scss +0 -29
- package/src/common/badge/badge.tsx +0 -26
- package/src/common/code-list/code-list.scss +0 -15
- package/src/common/code-list/code-list.tsx +0 -127
- package/src/common/control-base/control-base.scss +0 -4
- package/src/common/control-base/control-base.tsx +0 -130
- package/src/common/control-loading-placeholder/control-loading-placeholder.tsx +0 -22
- package/src/common/control-shell/control-shell.scss +0 -5
- package/src/common/control-shell/control-shell.tsx +0 -70
- package/src/common/icon/icon.tsx +0 -82
- package/src/common/index.ts +0 -8
- package/src/common/router-view/router-view.tsx +0 -74
- package/src/common/view-shell/view-shell.scss +0 -5
- package/src/common/view-shell/view-shell.tsx +0 -163
- package/src/control/index.ts +0 -1
- package/src/control/panel/index.ts +0 -2
- package/src/control/panel/panel/index.ts +0 -12
- package/src/control/panel/panel/panel.provider.ts +0 -14
- package/src/control/panel/panel/panel.scss +0 -9
- package/src/control/panel/panel/panel.tsx +0 -166
- package/src/control/panel/view-layout-panel/index.ts +0 -18
- package/src/control/panel/view-layout-panel/view-layout-panel.provider.ts +0 -14
- package/src/control/panel/view-layout-panel/view-layout-panel.scss +0 -9
- package/src/control/panel/view-layout-panel/view-layout-panel.tsx +0 -178
- package/src/hooks/app/app.hooks.ts +0 -31
- package/src/hooks/index.ts +0 -1
- package/src/index.ts +0 -18
- package/src/interface/index.ts +0 -1
- package/src/interface/util/index.ts +0 -1
- package/src/interface/util/route/route.ts +0 -116
- package/src/panel-component/grid-container/grid-container.controller.ts +0 -18
- package/src/panel-component/grid-container/grid-container.provider.ts +0 -30
- package/src/panel-component/grid-container/grid-container.scss +0 -17
- package/src/panel-component/grid-container/grid-container.state.ts +0 -12
- package/src/panel-component/grid-container/grid-container.tsx +0 -119
- package/src/panel-component/grid-container/index.ts +0 -19
- package/src/panel-component/index.ts +0 -13
- package/src/panel-component/multi-data-container/index.ts +0 -22
- package/src/panel-component/multi-data-container/multi-data-container-item.controller.ts +0 -166
- package/src/panel-component/multi-data-container/multi-data-container-itm.state.ts +0 -20
- package/src/panel-component/multi-data-container/multi-data-container.controller.ts +0 -308
- package/src/panel-component/multi-data-container/multi-data-container.provider.ts +0 -30
- package/src/panel-component/multi-data-container/multi-data-container.scss +0 -10
- package/src/panel-component/multi-data-container/multi-data-container.state.ts +0 -20
- package/src/panel-component/multi-data-container/multi-data-container.tsx +0 -109
- package/src/panel-component/nav-pos/index.ts +0 -16
- package/src/panel-component/nav-pos/nav-pos.controller.ts +0 -393
- package/src/panel-component/nav-pos/nav-pos.provider.ts +0 -38
- package/src/panel-component/nav-pos/nav-pos.scss +0 -4
- package/src/panel-component/nav-pos/nav-pos.state.ts +0 -52
- package/src/panel-component/nav-pos/nav-pos.tsx +0 -121
- package/src/panel-component/panel-container/index.ts +0 -27
- package/src/panel-component/panel-container/panel-container.controller.ts +0 -18
- package/src/panel-component/panel-container/panel-container.provider.ts +0 -30
- package/src/panel-component/panel-container/panel-container.scss +0 -15
- package/src/panel-component/panel-container/panel-container.state.ts +0 -12
- package/src/panel-component/panel-container/panel-container.tsx +0 -72
- package/src/panel-component/panel-container-group/index.ts +0 -22
- package/src/panel-component/panel-container-group/panel-container-group.controller.ts +0 -43
- package/src/panel-component/panel-container-group/panel-container-group.provider.ts +0 -30
- package/src/panel-component/panel-container-group/panel-container-group.scss +0 -91
- package/src/panel-component/panel-container-group/panel-container-group.state.ts +0 -12
- package/src/panel-component/panel-container-group/panel-container-group.tsx +0 -112
- package/src/panel-component/panel-container-image/index.ts +0 -22
- package/src/panel-component/panel-container-image/panel-container-image.controller.ts +0 -18
- package/src/panel-component/panel-container-image/panel-container-image.provider.ts +0 -30
- package/src/panel-component/panel-container-image/panel-container-image.scss +0 -18
- package/src/panel-component/panel-container-image/panel-container-image.state.ts +0 -12
- package/src/panel-component/panel-container-image/panel-container-image.tsx +0 -95
- package/src/panel-component/panel-ctrl-pos/index.ts +0 -14
- package/src/panel-component/panel-ctrl-pos/panel-ctrl-pos.controller.ts +0 -53
- package/src/panel-component/panel-ctrl-pos/panel-ctrl-pos.provider.ts +0 -30
- package/src/panel-component/panel-ctrl-pos/panel-ctrl-pos.scss +0 -8
- package/src/panel-component/panel-ctrl-pos/panel-ctrl-pos.tsx +0 -53
- package/src/panel-component/panel-field/index.ts +0 -14
- package/src/panel-component/panel-field/panel-field.controller.ts +0 -174
- package/src/panel-component/panel-field/panel-field.provider.ts +0 -28
- package/src/panel-component/panel-field/panel-field.scss +0 -36
- package/src/panel-component/panel-field/panel-field.state.ts +0 -12
- package/src/panel-component/panel-field/panel-field.tsx +0 -81
- package/src/panel-component/panel-item-render/index.ts +0 -18
- package/src/panel-component/panel-item-render/panel-item-render.controller.ts +0 -52
- package/src/panel-component/panel-item-render/panel-item-render.provider.ts +0 -30
- package/src/panel-component/panel-item-render/panel-item-render.tsx +0 -50
- package/src/panel-component/panel-rawitem/index.ts +0 -26
- package/src/panel-component/panel-rawitem/panel-rawitem.controller.ts +0 -34
- package/src/panel-component/panel-rawitem/panel-rawitem.provider.ts +0 -28
- package/src/panel-component/panel-rawitem/panel-rawitem.scss +0 -8
- package/src/panel-component/panel-rawitem/panel-rawitem.tsx +0 -61
- package/src/panel-component/panel-tab-page/index.ts +0 -12
- package/src/panel-component/panel-tab-page/panel-tab-page.provider.ts +0 -27
- package/src/panel-component/panel-tab-page/panel-tab-page.tsx +0 -55
- package/src/panel-component/scroll-container/index.ts +0 -44
- package/src/panel-component/scroll-container/scroll-container/index.ts +0 -2
- package/src/panel-component/scroll-container/scroll-container/scroll-container.controller.ts +0 -32
- package/src/panel-component/scroll-container/scroll-container/scroll-container.provider.ts +0 -30
- package/src/panel-component/scroll-container/scroll-container/scroll-container.scss +0 -34
- package/src/panel-component/scroll-container/scroll-container/scroll-container.tsx +0 -110
- package/src/panel-component/scroll-container/scroll-container-item/index.ts +0 -2
- package/src/panel-component/scroll-container/scroll-container-item/scroll-container-item.controller.ts +0 -25
- package/src/panel-component/scroll-container/scroll-container-item/scroll-container-item.provider.ts +0 -30
- package/src/panel-component/scroll-container/scroll-container-item/scroll-container-item.scss +0 -9
- package/src/panel-component/scroll-container/scroll-container-item/scroll-container-item.tsx +0 -60
- package/src/panel-component/single-data-container/index.ts +0 -22
- package/src/panel-component/single-data-container/single-data-container.controller.ts +0 -345
- package/src/panel-component/single-data-container/single-data-container.provider.ts +0 -30
- package/src/panel-component/single-data-container/single-data-container.scss +0 -10
- package/src/panel-component/single-data-container/single-data-container.state.ts +0 -20
- package/src/panel-component/single-data-container/single-data-container.tsx +0 -95
- package/src/plugin/index.ts +0 -1
- package/src/props/common.ts +0 -30
- package/src/props/editor/array.ts +0 -27
- package/src/props/editor/autocomplete.ts +0 -27
- package/src/props/editor/cascader.ts +0 -27
- package/src/props/editor/check-box-list.ts +0 -27
- package/src/props/editor/check-box.ts +0 -27
- package/src/props/editor/code.ts +0 -36
- package/src/props/editor/color-picker.ts +0 -27
- package/src/props/editor/common.ts +0 -94
- package/src/props/editor/data-picker.ts +0 -27
- package/src/props/editor/date-picker.ts +0 -27
- package/src/props/editor/date-range.ts +0 -23
- package/src/props/editor/dropdown-list.ts +0 -27
- package/src/props/editor/html.ts +0 -27
- package/src/props/editor/index.ts +0 -25
- package/src/props/editor/list-box.ts +0 -27
- package/src/props/editor/markdown.ts +0 -35
- package/src/props/editor/number-range.ts +0 -23
- package/src/props/editor/radio-button-list.ts +0 -27
- package/src/props/editor/rate.ts +0 -23
- package/src/props/editor/raw.ts +0 -23
- package/src/props/editor/slider.ts +0 -23
- package/src/props/editor/span.ts +0 -27
- package/src/props/editor/stepper.ts +0 -23
- package/src/props/editor/switch.ts +0 -23
- package/src/props/editor/text-box.ts +0 -79
- package/src/props/editor/upload.ts +0 -27
- package/src/props/index.ts +0 -2
- package/src/types/index.d.ts +0 -8
- package/src/use/click-outside/click-outside.ts +0 -72
- package/src/use/control/index.ts +0 -1
- package/src/use/control/use-control-controller/use-control-controller.ts +0 -153
- package/src/use/event/event.ts +0 -57
- package/src/use/focus-blur/focus-blur.ts +0 -83
- package/src/use/index.ts +0 -9
- package/src/use/namespace/namespace.ts +0 -14
- package/src/use/route/route.ts +0 -47
- package/src/use/util/index.ts +0 -26
- package/src/use/view/index.ts +0 -1
- package/src/use/view/use-view-controller/use-view-controller.ts +0 -153
- package/src/use/vue/vue.ts +0 -142
- package/src/util/control/prepare-control.ts +0 -33
- package/src/util/index.ts +0 -10
- package/src/util/install.ts +0 -14
- package/src/util/overlay-container/overlay-container.ts +0 -155
- package/src/util/overlay-popover-container/overlay-popover-container.ts +0 -30
- package/src/util/overlay-view-util/overlay-view-util.ts +0 -89
- package/src/util/render/render.ts +0 -28
- package/src/util/route/route-listener.ts +0 -91
- package/src/util/route/route.ts +0 -520
- package/src/util/router-callback/router-callback-item.ts +0 -98
- package/src/util/store/app-store/app-store.ts +0 -10
- package/src/util/store/index.ts +0 -6
- package/src/util/store/ui-store/ui-store.ts +0 -27
- package/src/util/store/ui-store/z-index.ts +0 -53
- package/src/view/app-redirect-view/app-redirect-view.tsx +0 -26
- package/src/view/common/index.ts +0 -10
- package/src/view/common/view.provider.ts +0 -14
- package/src/view/common/view.scss +0 -38
- package/src/view/common/view.tsx +0 -152
- package/src/view/de-redirect-view/de-redirect-view.provider.ts +0 -14
- package/src/view/de-redirect-view/de-redirect-view.tsx +0 -62
- package/src/view/de-redirect-view/index.ts +0 -17
- package/src/view/index.ts +0 -5
- package/src/view/portal-view/index.ts +0 -18
- package/src/view/portal-view/portal-view.provider.ts +0 -14
- package/src/view/portal-view/portal-view.tsx +0 -79
- package/src/view/todo-redirect/todo-redirect.tsx +0 -51
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import { IControlRender, IPanelContainer } from '@ibiz/model-core';
|
|
2
|
-
import {
|
|
3
|
-
PanelItemController,
|
|
4
|
-
ScriptFactory,
|
|
5
|
-
ViewLayoutPanelController,
|
|
6
|
-
} from '@ibiz-template/runtime';
|
|
7
|
-
|
|
8
|
-
/**
|
|
9
|
-
* 面板绘制器控制器
|
|
10
|
-
*
|
|
11
|
-
* @author zk
|
|
12
|
-
* @date 2024-01-15 06:01:08
|
|
13
|
-
* @export
|
|
14
|
-
* @class PanelItemRenderController
|
|
15
|
-
* @extends {PanelItemController<IPanelContainer>}
|
|
16
|
-
*/
|
|
17
|
-
export class PanelItemRenderController extends PanelItemController<IPanelContainer> {
|
|
18
|
-
/**
|
|
19
|
-
* 面板控制器
|
|
20
|
-
*
|
|
21
|
-
* @author lxm
|
|
22
|
-
* @date 2022-08-24 22:08:59
|
|
23
|
-
* @type {PanelController}
|
|
24
|
-
*/
|
|
25
|
-
declare panel: ViewLayoutPanelController;
|
|
26
|
-
|
|
27
|
-
/**
|
|
28
|
-
* 获取面板绘制器自定义html
|
|
29
|
-
*
|
|
30
|
-
* @author zk
|
|
31
|
-
* @date 2024-01-15 01:01:11
|
|
32
|
-
* @export
|
|
33
|
-
* @param {IControlRender[]} controlRenders
|
|
34
|
-
* @return {*} {(string | undefined)}
|
|
35
|
-
*/
|
|
36
|
-
getPanelItemCustomHtml(
|
|
37
|
-
controlRenders: IControlRender[],
|
|
38
|
-
data: IData | undefined,
|
|
39
|
-
): string | undefined {
|
|
40
|
-
if (controlRenders.length === 0) {
|
|
41
|
-
return undefined;
|
|
42
|
-
}
|
|
43
|
-
const controlRender = controlRenders[0];
|
|
44
|
-
if (controlRender.layoutPanelModel) {
|
|
45
|
-
return ScriptFactory.execScriptFn(
|
|
46
|
-
{ data: data || {} },
|
|
47
|
-
controlRender.layoutPanelModel,
|
|
48
|
-
{ singleRowReturn: true, isAsync: false },
|
|
49
|
-
) as string;
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
IPanelItemProvider,
|
|
3
|
-
PanelController,
|
|
4
|
-
PanelItemController,
|
|
5
|
-
} from '@ibiz-template/runtime';
|
|
6
|
-
import { IPanelContainer } from '@ibiz/model-core';
|
|
7
|
-
import { PanelItemRenderController } from './panel-item-render.controller';
|
|
8
|
-
|
|
9
|
-
/**
|
|
10
|
-
* 面板绘制器适配器
|
|
11
|
-
*
|
|
12
|
-
* @author zk
|
|
13
|
-
* @date 2024-01-15 06:01:32
|
|
14
|
-
* @export
|
|
15
|
-
* @class PanelItemRenderProvider
|
|
16
|
-
* @implements {IPanelItemProvider}
|
|
17
|
-
*/
|
|
18
|
-
export class PanelItemRenderProvider implements IPanelItemProvider {
|
|
19
|
-
component: string = 'IBizPanelItemRender';
|
|
20
|
-
|
|
21
|
-
async createController(
|
|
22
|
-
panelItem: IPanelContainer,
|
|
23
|
-
panel: PanelController,
|
|
24
|
-
parent: PanelItemController | undefined,
|
|
25
|
-
): Promise<PanelItemRenderController> {
|
|
26
|
-
const c = new PanelItemRenderController(panelItem, panel, parent);
|
|
27
|
-
await c.init();
|
|
28
|
-
return c;
|
|
29
|
-
}
|
|
30
|
-
}
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import { IPanelContainer } from '@ibiz/model-core';
|
|
2
|
-
import { computed, defineComponent, PropType } from 'vue';
|
|
3
|
-
import { useNamespace } from '../../use';
|
|
4
|
-
import { PanelItemRenderController } from './panel-item-render.controller';
|
|
5
|
-
|
|
6
|
-
export const PanelItemRender = defineComponent({
|
|
7
|
-
name: 'IBizPanelItemRender',
|
|
8
|
-
props: {
|
|
9
|
-
modelData: {
|
|
10
|
-
type: Object as PropType<IPanelContainer>,
|
|
11
|
-
required: true,
|
|
12
|
-
},
|
|
13
|
-
controller: {
|
|
14
|
-
type: PanelItemRenderController,
|
|
15
|
-
required: true,
|
|
16
|
-
},
|
|
17
|
-
},
|
|
18
|
-
setup(props) {
|
|
19
|
-
const ns = useNamespace('panel-item-render');
|
|
20
|
-
|
|
21
|
-
const nsType = useNamespace(
|
|
22
|
-
`panel-${props.modelData.itemType?.toLowerCase()}`,
|
|
23
|
-
);
|
|
24
|
-
|
|
25
|
-
const { id } = props.modelData;
|
|
26
|
-
|
|
27
|
-
// 类名控制
|
|
28
|
-
const classArr = computed(() => {
|
|
29
|
-
const result: Array<string | false> = [
|
|
30
|
-
ns.b(),
|
|
31
|
-
ns.m(id),
|
|
32
|
-
nsType.b(),
|
|
33
|
-
ns.is('hidden', !props.controller.state.visible),
|
|
34
|
-
];
|
|
35
|
-
return result;
|
|
36
|
-
});
|
|
37
|
-
|
|
38
|
-
const htmlCode = computed(() => {
|
|
39
|
-
return props.controller.getPanelItemCustomHtml(
|
|
40
|
-
props.modelData.controlRenders!,
|
|
41
|
-
props.controller.data,
|
|
42
|
-
);
|
|
43
|
-
});
|
|
44
|
-
|
|
45
|
-
return { ns, classArr, htmlCode };
|
|
46
|
-
},
|
|
47
|
-
render() {
|
|
48
|
-
return <div class={this.classArr} v-html={this.htmlCode}></div>;
|
|
49
|
-
},
|
|
50
|
-
});
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { registerPanelItemProvider } from '@ibiz-template/runtime';
|
|
2
|
-
import { App } from 'vue';
|
|
3
|
-
import { withInstall } from '../../util';
|
|
4
|
-
import { PanelRawItem } from './panel-rawitem';
|
|
5
|
-
import { PanelRawItemProvider } from './panel-rawitem.provider';
|
|
6
|
-
|
|
7
|
-
export * from './panel-rawitem.controller';
|
|
8
|
-
|
|
9
|
-
export const IBizPanelRawItem = withInstall(PanelRawItem, function (v: App) {
|
|
10
|
-
v.component(PanelRawItem.name, PanelRawItem);
|
|
11
|
-
registerPanelItemProvider('RAWITEM', () => new PanelRawItemProvider());
|
|
12
|
-
registerPanelItemProvider(
|
|
13
|
-
'RAWITEM_STATIC_IMAGE',
|
|
14
|
-
() => new PanelRawItemProvider(),
|
|
15
|
-
);
|
|
16
|
-
registerPanelItemProvider(
|
|
17
|
-
'RAWITEM_STATIC_LABEL',
|
|
18
|
-
() => new PanelRawItemProvider(),
|
|
19
|
-
);
|
|
20
|
-
registerPanelItemProvider(
|
|
21
|
-
'RAWITEM_STATIC_TEXT',
|
|
22
|
-
() => new PanelRawItemProvider(),
|
|
23
|
-
);
|
|
24
|
-
});
|
|
25
|
-
|
|
26
|
-
export default IBizPanelRawItem;
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { IPanelRawItem } from '@ibiz/model-core';
|
|
2
|
-
import { PanelItemController } from '@ibiz-template/runtime';
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* 面板按钮控制器
|
|
6
|
-
*
|
|
7
|
-
* @export
|
|
8
|
-
* @class PanelRawItemController
|
|
9
|
-
* @extends {PanelItemController<IPanelRawItem>}
|
|
10
|
-
*/
|
|
11
|
-
export class PanelRawItemController extends PanelItemController<IPanelRawItem> {
|
|
12
|
-
/**
|
|
13
|
-
* 父容器数据对象数据
|
|
14
|
-
* @author lxm
|
|
15
|
-
* @date 2023-07-15 01:33:58
|
|
16
|
-
* @readonly
|
|
17
|
-
* @type {IData}
|
|
18
|
-
*/
|
|
19
|
-
get data(): IData {
|
|
20
|
-
return this.dataParent.data!;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
/**
|
|
24
|
-
* 初始化
|
|
25
|
-
*
|
|
26
|
-
* @author lxm
|
|
27
|
-
* @date 2022-08-24 20:08:42
|
|
28
|
-
* @protected
|
|
29
|
-
* @returns {*} {Promise<void>}
|
|
30
|
-
*/
|
|
31
|
-
protected async onInit(): Promise<void> {
|
|
32
|
-
await super.onInit();
|
|
33
|
-
}
|
|
34
|
-
}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
IPanelItemProvider,
|
|
3
|
-
PanelController,
|
|
4
|
-
PanelItemController,
|
|
5
|
-
} from '@ibiz-template/runtime';
|
|
6
|
-
import { IPanelItem } from '@ibiz/model-core';
|
|
7
|
-
import { PanelRawItemController } from './panel-rawitem.controller';
|
|
8
|
-
|
|
9
|
-
/**
|
|
10
|
-
* 面板属性适配器
|
|
11
|
-
*
|
|
12
|
-
* @export
|
|
13
|
-
* @class PanelRawItemProvider
|
|
14
|
-
* @implements {IPanelItemProvider}
|
|
15
|
-
*/
|
|
16
|
-
export class PanelRawItemProvider implements IPanelItemProvider {
|
|
17
|
-
component: string = 'IBizPanelRawItem';
|
|
18
|
-
|
|
19
|
-
async createController(
|
|
20
|
-
panelItem: IPanelItem,
|
|
21
|
-
panel: PanelController,
|
|
22
|
-
parent: PanelItemController | undefined,
|
|
23
|
-
): Promise<PanelRawItemController> {
|
|
24
|
-
const c = new PanelRawItemController(panelItem, panel, parent);
|
|
25
|
-
await c.init();
|
|
26
|
-
return c;
|
|
27
|
-
}
|
|
28
|
-
}
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
import { IPanelRawItem } from '@ibiz/model-core';
|
|
2
|
-
import { computed, defineComponent, PropType, ref } from 'vue';
|
|
3
|
-
import { useNamespace } from '../../use';
|
|
4
|
-
import { PanelRawItemController } from './panel-rawitem.controller';
|
|
5
|
-
import './panel-rawitem.scss';
|
|
6
|
-
|
|
7
|
-
export const PanelRawItem = defineComponent({
|
|
8
|
-
name: 'IBizPanelRawItem',
|
|
9
|
-
props: {
|
|
10
|
-
modelData: {
|
|
11
|
-
type: Object as PropType<IPanelRawItem>,
|
|
12
|
-
required: true,
|
|
13
|
-
},
|
|
14
|
-
controller: {
|
|
15
|
-
type: PanelRawItemController,
|
|
16
|
-
required: true,
|
|
17
|
-
},
|
|
18
|
-
},
|
|
19
|
-
setup(props) {
|
|
20
|
-
const ns = useNamespace('panel-rawitem');
|
|
21
|
-
|
|
22
|
-
const tempStyle = ref('');
|
|
23
|
-
|
|
24
|
-
const { rawItem } = props.modelData;
|
|
25
|
-
|
|
26
|
-
if (rawItem && rawItem.cssStyle) {
|
|
27
|
-
tempStyle.value = rawItem.cssStyle;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
// 类名控制
|
|
31
|
-
const classArr = computed(() => {
|
|
32
|
-
const { id } = props.modelData;
|
|
33
|
-
const result: Array<string | false> = [ns.b(), ns.m(id)];
|
|
34
|
-
result.push(...props.controller.containerClass);
|
|
35
|
-
return result;
|
|
36
|
-
});
|
|
37
|
-
|
|
38
|
-
return {
|
|
39
|
-
ns,
|
|
40
|
-
classArr,
|
|
41
|
-
tempStyle,
|
|
42
|
-
};
|
|
43
|
-
},
|
|
44
|
-
render() {
|
|
45
|
-
// 动态控制显示
|
|
46
|
-
if (!this.controller.state.visible) {
|
|
47
|
-
return;
|
|
48
|
-
}
|
|
49
|
-
return (
|
|
50
|
-
<div
|
|
51
|
-
class={this.classArr}
|
|
52
|
-
style={this.tempStyle}
|
|
53
|
-
onClick={() => {
|
|
54
|
-
this.controller.onClick();
|
|
55
|
-
}}
|
|
56
|
-
>
|
|
57
|
-
<iBizRawItem rawItem={this.modelData}></iBizRawItem>
|
|
58
|
-
</div>
|
|
59
|
-
);
|
|
60
|
-
},
|
|
61
|
-
});
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { registerPanelItemProvider } from '@ibiz-template/runtime';
|
|
2
|
-
import { App } from 'vue';
|
|
3
|
-
import { PanelTabPage } from './panel-tab-page';
|
|
4
|
-
import { PanelTabPageProvider } from './panel-tab-page.provider';
|
|
5
|
-
import { withInstall } from '../../util';
|
|
6
|
-
|
|
7
|
-
export const IBizPanelTabPage = withInstall(PanelTabPage, function (v: App) {
|
|
8
|
-
v.component(PanelTabPage.name, PanelTabPage);
|
|
9
|
-
registerPanelItemProvider('TABPAGE', () => new PanelTabPageProvider());
|
|
10
|
-
});
|
|
11
|
-
|
|
12
|
-
export default IBizPanelTabPage;
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
IPanelItemProvider,
|
|
3
|
-
PanelController,
|
|
4
|
-
PanelItemController,
|
|
5
|
-
} from '@ibiz-template/runtime';
|
|
6
|
-
import { IPanelItem } from '@ibiz/model-core';
|
|
7
|
-
|
|
8
|
-
/**
|
|
9
|
-
* 面板分页适配器
|
|
10
|
-
*
|
|
11
|
-
* @export
|
|
12
|
-
* @class PanelTabPageController
|
|
13
|
-
* @implements {IPanelItemProvider}
|
|
14
|
-
*/
|
|
15
|
-
export class PanelTabPageProvider implements IPanelItemProvider {
|
|
16
|
-
component: string = 'IBizPanelTabPage';
|
|
17
|
-
|
|
18
|
-
async createController(
|
|
19
|
-
panelItem: IPanelItem,
|
|
20
|
-
panel: PanelController,
|
|
21
|
-
parent: PanelItemController | undefined,
|
|
22
|
-
): Promise<PanelItemController> {
|
|
23
|
-
const c = new PanelItemController(panelItem, panel, parent);
|
|
24
|
-
await c.init();
|
|
25
|
-
return c;
|
|
26
|
-
}
|
|
27
|
-
}
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import { computed, defineComponent, PropType, VNode } from 'vue';
|
|
2
|
-
import { IPanelContainer } from '@ibiz/model-core';
|
|
3
|
-
import { PanelItemController } from '@ibiz-template/runtime';
|
|
4
|
-
import { useNamespace } from '../../use';
|
|
5
|
-
|
|
6
|
-
export const PanelTabPage = defineComponent({
|
|
7
|
-
name: 'IBizPanelTabPage',
|
|
8
|
-
props: {
|
|
9
|
-
modelData: {
|
|
10
|
-
// IPanelTabPage 不能使用 IPanelTabPage模型 否则会类型报错
|
|
11
|
-
type: Object as PropType<IPanelContainer>,
|
|
12
|
-
required: true,
|
|
13
|
-
},
|
|
14
|
-
controller: {
|
|
15
|
-
type: PanelItemController,
|
|
16
|
-
required: true,
|
|
17
|
-
},
|
|
18
|
-
},
|
|
19
|
-
setup(props) {
|
|
20
|
-
const ns = useNamespace('panel-tab-page');
|
|
21
|
-
// 类名控制
|
|
22
|
-
const classArr = computed(() => {
|
|
23
|
-
const { id } = props.modelData;
|
|
24
|
-
const result: Array<string | false> = [ns.b(), ns.m(id)];
|
|
25
|
-
result.push(...props.controller.containerClass);
|
|
26
|
-
return result;
|
|
27
|
-
});
|
|
28
|
-
return {
|
|
29
|
-
ns,
|
|
30
|
-
classArr,
|
|
31
|
-
};
|
|
32
|
-
},
|
|
33
|
-
render() {
|
|
34
|
-
const defaultSlots: VNode[] = this.$slots.default?.() || [];
|
|
35
|
-
return (
|
|
36
|
-
<iBizRow
|
|
37
|
-
class={[this.ns.b(), this.ns.m(this.modelData.codeName), this.classArr]}
|
|
38
|
-
layout={this.modelData.layout}
|
|
39
|
-
>
|
|
40
|
-
{defaultSlots.map(slot => {
|
|
41
|
-
const props = slot.props as IData;
|
|
42
|
-
if (!props || !props.controller) {
|
|
43
|
-
return slot;
|
|
44
|
-
}
|
|
45
|
-
const c = props.controller;
|
|
46
|
-
return (
|
|
47
|
-
<iBizCol layoutPos={c.model.layoutPos} state={c.state}>
|
|
48
|
-
{slot}
|
|
49
|
-
</iBizCol>
|
|
50
|
-
);
|
|
51
|
-
})}
|
|
52
|
-
</iBizRow>
|
|
53
|
-
);
|
|
54
|
-
},
|
|
55
|
-
});
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import { registerPanelItemProvider } from '@ibiz-template/runtime';
|
|
2
|
-
import { App } from 'vue';
|
|
3
|
-
import { withInstall } from '../../util';
|
|
4
|
-
import { ScrollContainerItem } from './scroll-container-item/scroll-container-item';
|
|
5
|
-
import { ScrollContainerItemProvider } from './scroll-container-item/scroll-container-item.provider';
|
|
6
|
-
import { ScrollContainer } from './scroll-container/scroll-container';
|
|
7
|
-
import { ScrollContainerProvider } from './scroll-container/scroll-container.provider';
|
|
8
|
-
|
|
9
|
-
export * from './scroll-container';
|
|
10
|
-
export * from './scroll-container-item';
|
|
11
|
-
|
|
12
|
-
export const IBizScrollContainer = withInstall(
|
|
13
|
-
ScrollContainer,
|
|
14
|
-
function (v: App) {
|
|
15
|
-
v.component(ScrollContainer.name, ScrollContainer);
|
|
16
|
-
v.component(ScrollContainerItem.name, ScrollContainerItem);
|
|
17
|
-
registerPanelItemProvider(
|
|
18
|
-
'CONTAINER_CONTAINER_SCROLL',
|
|
19
|
-
() => new ScrollContainerProvider(),
|
|
20
|
-
);
|
|
21
|
-
registerPanelItemProvider(
|
|
22
|
-
'CONTAINER_CONTAINER_SCROLL_LEFT',
|
|
23
|
-
() => new ScrollContainerItemProvider(),
|
|
24
|
-
);
|
|
25
|
-
registerPanelItemProvider(
|
|
26
|
-
'CONTAINER_CONTAINER_SCROLL_HEADER',
|
|
27
|
-
() => new ScrollContainerItemProvider(),
|
|
28
|
-
);
|
|
29
|
-
registerPanelItemProvider(
|
|
30
|
-
'CONTAINER_CONTAINER_SCROLL_RIGHT',
|
|
31
|
-
() => new ScrollContainerItemProvider(),
|
|
32
|
-
);
|
|
33
|
-
registerPanelItemProvider(
|
|
34
|
-
'CONTAINER_CONTAINER_SCROLL_BOTTOM',
|
|
35
|
-
() => new ScrollContainerItemProvider(),
|
|
36
|
-
);
|
|
37
|
-
registerPanelItemProvider(
|
|
38
|
-
'CONTAINER_CONTAINER_SCROLL_MAIN',
|
|
39
|
-
() => new ScrollContainerItemProvider(),
|
|
40
|
-
);
|
|
41
|
-
},
|
|
42
|
-
);
|
|
43
|
-
|
|
44
|
-
export default IBizScrollContainer;
|
package/src/panel-component/scroll-container/scroll-container/scroll-container.controller.ts
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { IPanelContainer } from '@ibiz/model-core';
|
|
2
|
-
import {
|
|
3
|
-
PanelItemController,
|
|
4
|
-
ViewLayoutPanelController,
|
|
5
|
-
} from '@ibiz-template/runtime';
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* 面板滚动容器控制器
|
|
9
|
-
*
|
|
10
|
-
* @author lxm
|
|
11
|
-
* @date 2023-02-07 06:05:23
|
|
12
|
-
* @export
|
|
13
|
-
* @class PanelButtonController
|
|
14
|
-
* @extends {PanelItemController}
|
|
15
|
-
*/
|
|
16
|
-
export class ScrollContainerController extends PanelItemController<IPanelContainer> {
|
|
17
|
-
/**
|
|
18
|
-
* 面板控制器
|
|
19
|
-
*
|
|
20
|
-
* @author lxm
|
|
21
|
-
* @date 2022-08-24 22:08:59
|
|
22
|
-
* @type {PanelController}
|
|
23
|
-
*/
|
|
24
|
-
declare panel: ViewLayoutPanelController;
|
|
25
|
-
|
|
26
|
-
protected async onInit(): Promise<void> {
|
|
27
|
-
await super.onInit();
|
|
28
|
-
// 滚动容器高宽默认占满
|
|
29
|
-
this.state.layout.width = '100%';
|
|
30
|
-
this.state.layout.height = '100%';
|
|
31
|
-
}
|
|
32
|
-
}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
IPanelItemProvider,
|
|
3
|
-
PanelController,
|
|
4
|
-
PanelItemController,
|
|
5
|
-
} from '@ibiz-template/runtime';
|
|
6
|
-
import { IPanelContainer } from '@ibiz/model-core';
|
|
7
|
-
import { ScrollContainerController } from './scroll-container.controller';
|
|
8
|
-
|
|
9
|
-
/**
|
|
10
|
-
* 面板滚动条容器适配器
|
|
11
|
-
*
|
|
12
|
-
* @author lxm
|
|
13
|
-
* @date 2022-09-19 22:09:03
|
|
14
|
-
* @export
|
|
15
|
-
* @class ScrollContainerProvider
|
|
16
|
-
* @implements {EditorProvider}
|
|
17
|
-
*/
|
|
18
|
-
export class ScrollContainerProvider implements IPanelItemProvider {
|
|
19
|
-
component: string = 'IBizScrollContainer';
|
|
20
|
-
|
|
21
|
-
async createController(
|
|
22
|
-
panelItem: IPanelContainer,
|
|
23
|
-
panel: PanelController,
|
|
24
|
-
parent: PanelItemController | undefined,
|
|
25
|
-
): Promise<ScrollContainerController> {
|
|
26
|
-
const c = new ScrollContainerController(panelItem, panel, parent);
|
|
27
|
-
await c.init();
|
|
28
|
-
return c;
|
|
29
|
-
}
|
|
30
|
-
}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
@include b(scroll-container) {
|
|
2
|
-
width: 100%;
|
|
3
|
-
height: 100%;
|
|
4
|
-
@include flex(column);
|
|
5
|
-
|
|
6
|
-
@include when(hidden) {
|
|
7
|
-
display: none;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
@include b(scroll-container-content){
|
|
13
|
-
flex-grow: 1;
|
|
14
|
-
overflow: auto;
|
|
15
|
-
@include flex;
|
|
16
|
-
@include e(center){
|
|
17
|
-
flex-grow: 1;
|
|
18
|
-
overflow: auto;
|
|
19
|
-
}
|
|
20
|
-
@include e(left) {
|
|
21
|
-
overflow: auto;
|
|
22
|
-
}
|
|
23
|
-
@include e(right) {
|
|
24
|
-
overflow: auto;
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
@include b(scroll-container-header){
|
|
29
|
-
overflow: auto;
|
|
30
|
-
}
|
|
31
|
-
@include b(scroll-container-footer){
|
|
32
|
-
overflow: auto;
|
|
33
|
-
}
|
|
34
|
-
|
|
@@ -1,110 +0,0 @@
|
|
|
1
|
-
/* eslint-disable no-restricted-syntax */
|
|
2
|
-
import { IPanelContainer } from '@ibiz/model-core';
|
|
3
|
-
import { computed, defineComponent, PropType, VNode } from 'vue';
|
|
4
|
-
import { useNamespace } from '../../../use';
|
|
5
|
-
import { ScrollContainerController } from './scroll-container.controller';
|
|
6
|
-
import './scroll-container.scss';
|
|
7
|
-
|
|
8
|
-
export const ScrollContainer = defineComponent({
|
|
9
|
-
name: 'IBizScrollContainer',
|
|
10
|
-
props: {
|
|
11
|
-
modelData: {
|
|
12
|
-
type: Object as PropType<IPanelContainer>,
|
|
13
|
-
required: true,
|
|
14
|
-
},
|
|
15
|
-
controller: {
|
|
16
|
-
type: ScrollContainerController,
|
|
17
|
-
required: true,
|
|
18
|
-
},
|
|
19
|
-
},
|
|
20
|
-
setup(props) {
|
|
21
|
-
const ns = useNamespace('scroll-container');
|
|
22
|
-
const { id } = props.modelData;
|
|
23
|
-
|
|
24
|
-
// 类名控制
|
|
25
|
-
const classArr = computed(() => {
|
|
26
|
-
const result: Array<string | false> = [
|
|
27
|
-
ns.b(),
|
|
28
|
-
ns.m(id),
|
|
29
|
-
...props.controller.containerClass,
|
|
30
|
-
ns.is('hidden', !props.controller.state.visible),
|
|
31
|
-
];
|
|
32
|
-
return result;
|
|
33
|
-
});
|
|
34
|
-
|
|
35
|
-
return { ns, classArr };
|
|
36
|
-
},
|
|
37
|
-
render() {
|
|
38
|
-
let left: VNode | null = null;
|
|
39
|
-
let top: VNode | null = null;
|
|
40
|
-
let right: VNode | null = null;
|
|
41
|
-
let bottom: VNode | null = null;
|
|
42
|
-
let center: VNode | null = null;
|
|
43
|
-
|
|
44
|
-
const slotStylle: IData = {};
|
|
45
|
-
|
|
46
|
-
// 内容区默认插槽处理,处理滚动容器项
|
|
47
|
-
const defaultSlots: VNode[] = this.$slots.default?.() || [];
|
|
48
|
-
defaultSlots.forEach(slot => {
|
|
49
|
-
const props = slot.props as IData;
|
|
50
|
-
if (!props || !props.controller) {
|
|
51
|
-
return;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
const { width, height } = props.controller.state.layout;
|
|
55
|
-
switch (props.modelData.layoutPos.layoutPos) {
|
|
56
|
-
case 'WEST':
|
|
57
|
-
left = slot;
|
|
58
|
-
slotStylle.left = { width };
|
|
59
|
-
break;
|
|
60
|
-
case 'EAST':
|
|
61
|
-
right = slot;
|
|
62
|
-
slotStylle.right = { width };
|
|
63
|
-
break;
|
|
64
|
-
case 'NORTH':
|
|
65
|
-
top = slot;
|
|
66
|
-
slotStylle.top = { height };
|
|
67
|
-
break;
|
|
68
|
-
case 'SOUTH':
|
|
69
|
-
bottom = slot;
|
|
70
|
-
slotStylle.bottom = { height };
|
|
71
|
-
break;
|
|
72
|
-
case 'CENTER':
|
|
73
|
-
center = slot;
|
|
74
|
-
break;
|
|
75
|
-
default:
|
|
76
|
-
ibiz.log.debug(
|
|
77
|
-
`未适配的布局占位${props.modelData.layoutPos.layoutPos}`,
|
|
78
|
-
);
|
|
79
|
-
break;
|
|
80
|
-
}
|
|
81
|
-
});
|
|
82
|
-
|
|
83
|
-
// 如果配了高宽,默认给压缩比为0
|
|
84
|
-
for (const key in slotStylle) {
|
|
85
|
-
if (slotStylle[key].width || slotStylle[key].height) {
|
|
86
|
-
slotStylle[key].flexShrink = 0;
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
return (
|
|
91
|
-
<div class={this.classArr}>
|
|
92
|
-
<div class={[this.ns.e('header')]} style={slotStylle.top}>
|
|
93
|
-
{top}
|
|
94
|
-
</div>
|
|
95
|
-
<div class={[this.ns.b('content')]}>
|
|
96
|
-
<div class={this.ns.be('content', 'left')} style={slotStylle.left}>
|
|
97
|
-
{left}
|
|
98
|
-
</div>
|
|
99
|
-
<div class={this.ns.be('content', 'center')}>{center}</div>
|
|
100
|
-
<div class={this.ns.be('content', 'right')} style={slotStylle.right}>
|
|
101
|
-
{right}
|
|
102
|
-
</div>
|
|
103
|
-
</div>
|
|
104
|
-
<div class={[this.ns.e('footer')]} style={slotStylle.bottom}>
|
|
105
|
-
{bottom}
|
|
106
|
-
</div>
|
|
107
|
-
</div>
|
|
108
|
-
);
|
|
109
|
-
},
|
|
110
|
-
});
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { IPanelContainer } from '@ibiz/model-core';
|
|
2
|
-
import {
|
|
3
|
-
PanelItemController,
|
|
4
|
-
ViewLayoutPanelController,
|
|
5
|
-
} from '@ibiz-template/runtime';
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* 面板滚动容器项控制器
|
|
9
|
-
*
|
|
10
|
-
* @author lxm
|
|
11
|
-
* @date 2023-02-07 06:05:23
|
|
12
|
-
* @export
|
|
13
|
-
* @class PanelButtonController
|
|
14
|
-
* @extends {PanelItemController}
|
|
15
|
-
*/
|
|
16
|
-
export class ScrollContainerItemController extends PanelItemController<IPanelContainer> {
|
|
17
|
-
/**
|
|
18
|
-
* 面板控制器
|
|
19
|
-
*
|
|
20
|
-
* @author lxm
|
|
21
|
-
* @date 2022-08-24 22:08:59
|
|
22
|
-
* @type {PanelController}
|
|
23
|
-
*/
|
|
24
|
-
declare panel: ViewLayoutPanelController;
|
|
25
|
-
}
|