@ibiz-template/vue3-util 0.6.1-dev.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/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} +28 -40
- 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 -401
- 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
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var vue = require('vue');
|
|
4
|
+
var runtime = require('@ibiz-template/runtime');
|
|
5
|
+
var core = require('@ibiz-template/core');
|
|
6
|
+
var qxUtil = require('qx-util');
|
|
7
|
+
var ramda = require('ramda');
|
|
8
|
+
require('../../use/index.cjs');
|
|
9
|
+
require('./view-shell.css');
|
|
10
|
+
var namespace = require('../../use/namespace/namespace.cjs');
|
|
11
|
+
|
|
12
|
+
"use strict";
|
|
13
|
+
const IBizViewShell = /* @__PURE__ */ vue.defineComponent({
|
|
14
|
+
name: "IBizViewShell",
|
|
15
|
+
props: {
|
|
16
|
+
context: {
|
|
17
|
+
type: Object,
|
|
18
|
+
required: true
|
|
19
|
+
},
|
|
20
|
+
params: {
|
|
21
|
+
type: Object
|
|
22
|
+
},
|
|
23
|
+
modelData: {
|
|
24
|
+
type: Object
|
|
25
|
+
},
|
|
26
|
+
viewId: {
|
|
27
|
+
type: String
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
setup(props) {
|
|
31
|
+
const ns = namespace.useNamespace("view-shell");
|
|
32
|
+
const isComplete = vue.ref(false);
|
|
33
|
+
const errMsg = vue.ref("");
|
|
34
|
+
const provider = vue.ref();
|
|
35
|
+
const viewModelData = vue.ref();
|
|
36
|
+
const init = async () => {
|
|
37
|
+
let viewModel;
|
|
38
|
+
if (props.modelData) {
|
|
39
|
+
viewModel = props.modelData;
|
|
40
|
+
} else {
|
|
41
|
+
viewModel = await ibiz.hub.getAppView(props.viewId);
|
|
42
|
+
}
|
|
43
|
+
if (!viewModel) {
|
|
44
|
+
throw new core.RuntimeError("\u672A\u627E\u5230\u89C6\u56FE\u6A21\u578B");
|
|
45
|
+
}
|
|
46
|
+
if (viewModel.dynaSysMode === 1) {
|
|
47
|
+
const appDataEntityId = viewModel.appDataEntityId;
|
|
48
|
+
if (!appDataEntityId) {
|
|
49
|
+
throw new core.RuntimeError("".concat(viewModel.codeName, "\u65E0\u5B9E\u4F53,\u6682\u4E0D\u652F\u6301\u52A0\u8F7D\u52A8\u6001\u6A21\u578B"));
|
|
50
|
+
}
|
|
51
|
+
const params = props.params || {};
|
|
52
|
+
const loadModelParams = await runtime.calcDynaSysParams(appDataEntityId, props.context, {
|
|
53
|
+
viewParams: params,
|
|
54
|
+
appId: viewModel.appId
|
|
55
|
+
});
|
|
56
|
+
if (params.srfdatatype) {
|
|
57
|
+
loadModelParams.srfdatatype = params.srfdatatype;
|
|
58
|
+
}
|
|
59
|
+
if (params.srfwftag) {
|
|
60
|
+
loadModelParams.srfwftag = params.srfwftag;
|
|
61
|
+
} else if (appDataEntityId && viewModel.enableWF) {
|
|
62
|
+
const context = {
|
|
63
|
+
...props.context
|
|
64
|
+
};
|
|
65
|
+
if (loadModelParams.srfkey) {
|
|
66
|
+
const noSrfSessionId = ramda.isNil(props.context.srfsessionid) || ramda.isEmpty(props.context.srfsessionid);
|
|
67
|
+
const id = qxUtil.createUUID();
|
|
68
|
+
if (noSrfSessionId) {
|
|
69
|
+
const domain = ibiz.uiDomainManager.create(id);
|
|
70
|
+
context.srfsessionid = domain.id;
|
|
71
|
+
}
|
|
72
|
+
const app = ibiz.hub.getApp(viewModel.appId);
|
|
73
|
+
const service = await app.deService.getService(props.context, appDataEntityId);
|
|
74
|
+
const res = await service.get(context, props.params || {});
|
|
75
|
+
if (res.ok && res.data) {
|
|
76
|
+
const {
|
|
77
|
+
srfwftag,
|
|
78
|
+
processdefinitionkey,
|
|
79
|
+
taskdefinitionkey
|
|
80
|
+
} = res.data;
|
|
81
|
+
if (srfwftag) {
|
|
82
|
+
loadModelParams.srfwftag = srfwftag;
|
|
83
|
+
}
|
|
84
|
+
if (["DEWFDYNAEDITVIEW3", "DEWFDYNAEDITVIEW"].includes(viewModel.viewType)) {
|
|
85
|
+
const viewParams = props.params;
|
|
86
|
+
if (ramda.isNil(viewParams.processDefinitionKey)) {
|
|
87
|
+
viewParams.processDefinitionKey = processdefinitionkey;
|
|
88
|
+
}
|
|
89
|
+
if (ramda.isNil(viewParams.taskDefinitionKey)) {
|
|
90
|
+
viewParams.taskDefinitionKey = taskdefinitionkey;
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
if (noSrfSessionId) {
|
|
95
|
+
ibiz.uiDomainManager.destroy(id);
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
viewModelData.value = await ibiz.hub.loadAppView(viewModel.appId, viewModel.id, loadModelParams);
|
|
100
|
+
} else {
|
|
101
|
+
viewModelData.value = viewModel;
|
|
102
|
+
}
|
|
103
|
+
try {
|
|
104
|
+
provider.value = await runtime.getViewProvider(viewModel);
|
|
105
|
+
} catch (error) {
|
|
106
|
+
ibiz.log.error(error);
|
|
107
|
+
errMsg.value = error.message;
|
|
108
|
+
} finally {
|
|
109
|
+
isComplete.value = true;
|
|
110
|
+
}
|
|
111
|
+
};
|
|
112
|
+
init();
|
|
113
|
+
return {
|
|
114
|
+
ns,
|
|
115
|
+
isComplete,
|
|
116
|
+
errMsg,
|
|
117
|
+
viewModelData,
|
|
118
|
+
provider
|
|
119
|
+
};
|
|
120
|
+
},
|
|
121
|
+
render() {
|
|
122
|
+
if (this.isComplete && this.provider) {
|
|
123
|
+
return vue.h(vue.resolveComponent(this.provider.component), {
|
|
124
|
+
context: this.$props.context,
|
|
125
|
+
params: this.$props.params,
|
|
126
|
+
modelData: this.viewModelData,
|
|
127
|
+
...this.$attrs,
|
|
128
|
+
provider: this.provider
|
|
129
|
+
}, this.$slots);
|
|
130
|
+
}
|
|
131
|
+
return vue.withDirectives(vue.createVNode("div", {
|
|
132
|
+
"class": this.ns.b()
|
|
133
|
+
}, [this.isComplete ? this.errMsg : null]), [[vue.resolveDirective("loading"), !this.isComplete]]);
|
|
134
|
+
}
|
|
135
|
+
});
|
|
136
|
+
|
|
137
|
+
exports.IBizViewShell = IBizViewShell;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.ibiz-view-shell{position:relative;width:100%;height:100%}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
require('./panel/index.cjs');
|
|
4
|
+
var index = require('./panel/view-layout-panel/index.cjs');
|
|
5
|
+
var index$1 = require('./panel/panel/index.cjs');
|
|
6
|
+
|
|
7
|
+
"use strict";
|
|
8
|
+
|
|
9
|
+
exports.IBizViewLayoutPanelControl = index.IBizViewLayoutPanelControl;
|
|
10
|
+
exports.IBizPanelControl = index$1.IBizPanelControl;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var index = require('./view-layout-panel/index.cjs');
|
|
4
|
+
var index$1 = require('./panel/index.cjs');
|
|
5
|
+
|
|
6
|
+
"use strict";
|
|
7
|
+
|
|
8
|
+
exports.IBizViewLayoutPanelControl = index.IBizViewLayoutPanelControl;
|
|
9
|
+
exports.IBizPanelControl = index$1.IBizPanelControl;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var runtime = require('@ibiz-template/runtime');
|
|
6
|
+
var panel = require('./panel.cjs');
|
|
7
|
+
var panel_provider = require('./panel.provider.cjs');
|
|
8
|
+
require('../../../util/index.cjs');
|
|
9
|
+
var install = require('../../../util/install.cjs');
|
|
10
|
+
|
|
11
|
+
"use strict";
|
|
12
|
+
const IBizPanelControl = install.withInstall(panel.PanelControl, function(v) {
|
|
13
|
+
v.component(panel.PanelControl.name, panel.PanelControl);
|
|
14
|
+
runtime.registerControlProvider(runtime.ControlType.PANEL, () => new panel_provider.PanelProvider());
|
|
15
|
+
});
|
|
16
|
+
|
|
17
|
+
exports.IBizPanelControl = IBizPanelControl;
|
|
18
|
+
exports.default = IBizPanelControl;
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var vue = require('vue');
|
|
4
|
+
require('./panel.css');
|
|
5
|
+
var runtime = require('@ibiz-template/runtime');
|
|
6
|
+
require('../../../use/index.cjs');
|
|
7
|
+
var useControlController = require('../../../use/control/use-control-controller/use-control-controller.cjs');
|
|
8
|
+
var namespace = require('../../../use/namespace/namespace.cjs');
|
|
9
|
+
|
|
10
|
+
"use strict";
|
|
11
|
+
function _isSlot(s) {
|
|
12
|
+
return typeof s === "function" || Object.prototype.toString.call(s) === "[object Object]" && !vue.isVNode(s);
|
|
13
|
+
}
|
|
14
|
+
function renderPanelItem(panelItem, c, ins) {
|
|
15
|
+
var _a, _b;
|
|
16
|
+
if (panelItem.hidden) {
|
|
17
|
+
return;
|
|
18
|
+
}
|
|
19
|
+
const {
|
|
20
|
+
providers,
|
|
21
|
+
panelItems
|
|
22
|
+
} = c;
|
|
23
|
+
const provider = providers[panelItem.id];
|
|
24
|
+
if (!provider) {
|
|
25
|
+
return vue.createVNode("div", null, [vue.createTextVNode("\u6682\u672A\u652F\u6301\u7684\u9762\u677F\u9879: "), panelItem.id, vue.createTextVNode(" - "), panelItem.itemType]);
|
|
26
|
+
}
|
|
27
|
+
const component = vue.resolveComponent(provider.component);
|
|
28
|
+
let children;
|
|
29
|
+
if (panelItem.itemType === "CTRLPOS" && ins.$slots[panelItem.id]) {
|
|
30
|
+
children = () => {
|
|
31
|
+
return ins.$slots[panelItem.id]();
|
|
32
|
+
};
|
|
33
|
+
} else if (panelItem.itemType === "TABPANEL" && ((_a = panelItem.panelTabPages) == null ? void 0 : _a.length)) {
|
|
34
|
+
children = () => {
|
|
35
|
+
return panelItem.panelTabPages.map((child) => {
|
|
36
|
+
return renderPanelItem(child, c, ins);
|
|
37
|
+
});
|
|
38
|
+
};
|
|
39
|
+
} else if ((_b = panelItem.panelItems) == null ? void 0 : _b.length) {
|
|
40
|
+
children = () => {
|
|
41
|
+
return panelItem.panelItems.map((child) => {
|
|
42
|
+
return renderPanelItem(child, c, ins);
|
|
43
|
+
});
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
let tempStyle = "";
|
|
47
|
+
if (panelItem.cssStyle) {
|
|
48
|
+
tempStyle = panelItem.cssStyle;
|
|
49
|
+
}
|
|
50
|
+
return vue.h(component, {
|
|
51
|
+
modelData: panelItem,
|
|
52
|
+
controller: panelItems[panelItem.id],
|
|
53
|
+
key: panelItem.id,
|
|
54
|
+
style: tempStyle
|
|
55
|
+
}, children);
|
|
56
|
+
}
|
|
57
|
+
const PanelControl = /* @__PURE__ */ vue.defineComponent({
|
|
58
|
+
name: "IBizPanelControl",
|
|
59
|
+
props: {
|
|
60
|
+
modelData: {
|
|
61
|
+
type: Object,
|
|
62
|
+
required: true
|
|
63
|
+
},
|
|
64
|
+
context: {
|
|
65
|
+
type: Object,
|
|
66
|
+
required: true
|
|
67
|
+
},
|
|
68
|
+
params: {
|
|
69
|
+
type: Object,
|
|
70
|
+
default: () => ({})
|
|
71
|
+
},
|
|
72
|
+
provider: {
|
|
73
|
+
type: Object
|
|
74
|
+
},
|
|
75
|
+
container: {
|
|
76
|
+
type: Object
|
|
77
|
+
},
|
|
78
|
+
data: Object,
|
|
79
|
+
loadDefault: {
|
|
80
|
+
type: Boolean,
|
|
81
|
+
default: true
|
|
82
|
+
}
|
|
83
|
+
},
|
|
84
|
+
setup(props) {
|
|
85
|
+
const c = useControlController.useControlController((...args) => new runtime.PanelController(...args, props.container));
|
|
86
|
+
const ns = namespace.useNamespace("control-".concat(c.model.controlType.toLowerCase()));
|
|
87
|
+
vue.watch(() => props.data, (newVal) => {
|
|
88
|
+
if (newVal) {
|
|
89
|
+
c.setInputData(newVal);
|
|
90
|
+
c.load();
|
|
91
|
+
}
|
|
92
|
+
}, {
|
|
93
|
+
immediate: true
|
|
94
|
+
});
|
|
95
|
+
c.evt.on("onCreated", () => {
|
|
96
|
+
const keys = Object.keys(c.panelItems);
|
|
97
|
+
keys.forEach((key) => {
|
|
98
|
+
const panelItem = c.panelItems[key];
|
|
99
|
+
panelItem.state = vue.reactive(panelItem.state);
|
|
100
|
+
});
|
|
101
|
+
});
|
|
102
|
+
return {
|
|
103
|
+
c,
|
|
104
|
+
ns
|
|
105
|
+
};
|
|
106
|
+
},
|
|
107
|
+
render() {
|
|
108
|
+
const {
|
|
109
|
+
state,
|
|
110
|
+
model
|
|
111
|
+
} = this.c;
|
|
112
|
+
return vue.createVNode(vue.resolveComponent("iBizControlBase"), {
|
|
113
|
+
"controller": this.c
|
|
114
|
+
}, {
|
|
115
|
+
default: () => [vue.createVNode(vue.resolveComponent("iBizRow"), {
|
|
116
|
+
"class": this.ns.b("content"),
|
|
117
|
+
"layout": {
|
|
118
|
+
layout: "FLEX"
|
|
119
|
+
}
|
|
120
|
+
}, {
|
|
121
|
+
default: () => {
|
|
122
|
+
var _a;
|
|
123
|
+
return [state.isCreated && (this.$slots.default ? this.$slots.default({
|
|
124
|
+
panelItems: this.c.panelItems
|
|
125
|
+
}) : (_a = model.rootPanelItems) == null ? void 0 : _a.map((panelItem) => {
|
|
126
|
+
let _slot;
|
|
127
|
+
const subC = this.c.panelItems[panelItem.id];
|
|
128
|
+
panelItem.layoutPos.layout = "FLEX";
|
|
129
|
+
return vue.createVNode(vue.resolveComponent("iBizCol"), {
|
|
130
|
+
"layoutPos": panelItem.layoutPos,
|
|
131
|
+
"state": subC.state
|
|
132
|
+
}, _isSlot(_slot = renderPanelItem(panelItem, this.c, this)) ? _slot : {
|
|
133
|
+
default: () => [_slot]
|
|
134
|
+
});
|
|
135
|
+
}))];
|
|
136
|
+
}
|
|
137
|
+
})]
|
|
138
|
+
});
|
|
139
|
+
}
|
|
140
|
+
});
|
|
141
|
+
|
|
142
|
+
exports.PanelControl = PanelControl;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.ibiz-control-panel{width:100%;height:100%}.ibiz-control-panel-content{width:100%;height:100%}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var runtime = require('@ibiz-template/runtime');
|
|
6
|
+
var viewLayoutPanel = require('./view-layout-panel.cjs');
|
|
7
|
+
var viewLayoutPanel_provider = require('./view-layout-panel.provider.cjs');
|
|
8
|
+
require('../../../util/index.cjs');
|
|
9
|
+
var install = require('../../../util/install.cjs');
|
|
10
|
+
|
|
11
|
+
"use strict";
|
|
12
|
+
const IBizViewLayoutPanelControl = install.withInstall(
|
|
13
|
+
viewLayoutPanel.ViewLayoutPanelControl,
|
|
14
|
+
function(v) {
|
|
15
|
+
v.component(viewLayoutPanel.ViewLayoutPanelControl.name, viewLayoutPanel.ViewLayoutPanelControl);
|
|
16
|
+
runtime.registerControlProvider(
|
|
17
|
+
runtime.ControlType.VIEW_LAYOUT_PANEL,
|
|
18
|
+
() => new viewLayoutPanel_provider.ViewLayoutPanelProvider()
|
|
19
|
+
);
|
|
20
|
+
}
|
|
21
|
+
);
|
|
22
|
+
|
|
23
|
+
exports.IBizViewLayoutPanelControl = IBizViewLayoutPanelControl;
|
|
24
|
+
exports.default = IBizViewLayoutPanelControl;
|
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var vue = require('vue');
|
|
4
|
+
require('./view-layout-panel.css');
|
|
5
|
+
var runtime = require('@ibiz-template/runtime');
|
|
6
|
+
require('../../../use/index.cjs');
|
|
7
|
+
var useControlController = require('../../../use/control/use-control-controller/use-control-controller.cjs');
|
|
8
|
+
var namespace = require('../../../use/namespace/namespace.cjs');
|
|
9
|
+
|
|
10
|
+
"use strict";
|
|
11
|
+
function _isSlot(s) {
|
|
12
|
+
return typeof s === "function" || Object.prototype.toString.call(s) === "[object Object]" && !vue.isVNode(s);
|
|
13
|
+
}
|
|
14
|
+
const ViewLayoutPanelControl = /* @__PURE__ */ vue.defineComponent({
|
|
15
|
+
name: "IBizViewLayoutPanelControl",
|
|
16
|
+
props: {
|
|
17
|
+
modelData: {
|
|
18
|
+
type: Object,
|
|
19
|
+
required: true
|
|
20
|
+
},
|
|
21
|
+
context: {
|
|
22
|
+
type: Object,
|
|
23
|
+
required: true
|
|
24
|
+
},
|
|
25
|
+
params: {
|
|
26
|
+
type: Object,
|
|
27
|
+
default: () => ({})
|
|
28
|
+
},
|
|
29
|
+
provider: {
|
|
30
|
+
type: Object
|
|
31
|
+
},
|
|
32
|
+
container: {
|
|
33
|
+
type: Object
|
|
34
|
+
},
|
|
35
|
+
data: Object
|
|
36
|
+
},
|
|
37
|
+
setup(props, {
|
|
38
|
+
slots
|
|
39
|
+
}) {
|
|
40
|
+
const c = useControlController.useControlController((...args) => new runtime.ViewLayoutPanelController(...args, props.container));
|
|
41
|
+
const ns = namespace.useNamespace("control-".concat(c.model.controlType.toLowerCase()));
|
|
42
|
+
vue.watch(() => props.data, (newVal) => {
|
|
43
|
+
if (newVal) {
|
|
44
|
+
c.setInputData(newVal);
|
|
45
|
+
c.load();
|
|
46
|
+
}
|
|
47
|
+
}, {
|
|
48
|
+
immediate: true
|
|
49
|
+
});
|
|
50
|
+
c.evt.on("onCreated", () => {
|
|
51
|
+
const keys = Object.keys(c.panelItems);
|
|
52
|
+
keys.forEach((key) => {
|
|
53
|
+
const panelItem = c.panelItems[key];
|
|
54
|
+
panelItem.state = vue.reactive(panelItem.state);
|
|
55
|
+
});
|
|
56
|
+
});
|
|
57
|
+
const renderPanelItem = (panelItem, options) => {
|
|
58
|
+
var _a, _b;
|
|
59
|
+
if (panelItem.hidden) {
|
|
60
|
+
return null;
|
|
61
|
+
}
|
|
62
|
+
const {
|
|
63
|
+
providers,
|
|
64
|
+
panelItems
|
|
65
|
+
} = options || c;
|
|
66
|
+
const provider = providers[panelItem.id];
|
|
67
|
+
if (!provider) {
|
|
68
|
+
return vue.createVNode("div", null, [vue.createTextVNode("\u6682\u672A\u652F\u6301\u7684\u9762\u677F\u9879: "), panelItem.id, vue.createTextVNode(" - "), panelItem.itemType]);
|
|
69
|
+
}
|
|
70
|
+
const component = vue.resolveComponent(provider.component);
|
|
71
|
+
let children;
|
|
72
|
+
if (panelItem.itemType === "CTRLPOS" && slots[panelItem.id]) {
|
|
73
|
+
children = () => {
|
|
74
|
+
return slots[panelItem.id]();
|
|
75
|
+
};
|
|
76
|
+
} else if (panelItem.itemType === "TABPANEL" && ((_a = panelItem.panelTabPages) == null ? void 0 : _a.length)) {
|
|
77
|
+
children = () => {
|
|
78
|
+
return panelItem.panelTabPages.map((child) => {
|
|
79
|
+
return renderPanelItem(child, options);
|
|
80
|
+
});
|
|
81
|
+
};
|
|
82
|
+
} else if (runtime.isDataContainer(panelItem)) {
|
|
83
|
+
children = void 0;
|
|
84
|
+
} else if ((_b = panelItem.panelItems) == null ? void 0 : _b.length) {
|
|
85
|
+
children = () => {
|
|
86
|
+
return panelItem.panelItems.map((child) => {
|
|
87
|
+
return renderPanelItem(child, options);
|
|
88
|
+
});
|
|
89
|
+
};
|
|
90
|
+
}
|
|
91
|
+
let tempStyle = "";
|
|
92
|
+
if (panelItem.cssStyle) {
|
|
93
|
+
tempStyle = panelItem.cssStyle;
|
|
94
|
+
}
|
|
95
|
+
return vue.h(component, {
|
|
96
|
+
modelData: panelItem,
|
|
97
|
+
controller: panelItems[panelItem.id],
|
|
98
|
+
key: panelItem.id,
|
|
99
|
+
style: tempStyle
|
|
100
|
+
}, children);
|
|
101
|
+
};
|
|
102
|
+
vue.provide("renderPanelItem", renderPanelItem);
|
|
103
|
+
return {
|
|
104
|
+
c,
|
|
105
|
+
ns,
|
|
106
|
+
renderPanelItem
|
|
107
|
+
};
|
|
108
|
+
},
|
|
109
|
+
render() {
|
|
110
|
+
const {
|
|
111
|
+
state,
|
|
112
|
+
model
|
|
113
|
+
} = this.c;
|
|
114
|
+
return vue.createVNode(vue.resolveComponent("iBizControlBase"), {
|
|
115
|
+
"controller": this.c
|
|
116
|
+
}, {
|
|
117
|
+
default: () => [vue.createVNode(vue.resolveComponent("iBizRow"), {
|
|
118
|
+
"class": this.ns.b("content"),
|
|
119
|
+
"layout": {
|
|
120
|
+
layout: "FLEX"
|
|
121
|
+
}
|
|
122
|
+
}, {
|
|
123
|
+
default: () => {
|
|
124
|
+
var _a;
|
|
125
|
+
return [state.isCreated && (this.$slots.default ? this.$slots.default({
|
|
126
|
+
panelItems: this.c.panelItems
|
|
127
|
+
}) : (_a = model.rootPanelItems) == null ? void 0 : _a.map((panelItem) => {
|
|
128
|
+
let _slot;
|
|
129
|
+
const subC = this.c.panelItems[panelItem.id];
|
|
130
|
+
panelItem.layoutPos.layout = "FLEX";
|
|
131
|
+
return vue.createVNode(vue.resolveComponent("iBizCol"), {
|
|
132
|
+
"layoutPos": panelItem.layoutPos,
|
|
133
|
+
"state": subC.state
|
|
134
|
+
}, _isSlot(_slot = this.renderPanelItem(panelItem)) ? _slot : {
|
|
135
|
+
default: () => [_slot]
|
|
136
|
+
});
|
|
137
|
+
}))];
|
|
138
|
+
}
|
|
139
|
+
})]
|
|
140
|
+
});
|
|
141
|
+
}
|
|
142
|
+
});
|
|
143
|
+
|
|
144
|
+
exports.ViewLayoutPanelControl = ViewLayoutPanelControl;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.ibiz-control-viewlayoutpanel{width:100%;height:100%}.ibiz-control-viewlayoutpanel-content{width:100%;height:100%}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var qxUtil = require('qx-util');
|
|
4
|
+
|
|
5
|
+
"use strict";
|
|
6
|
+
class AppHooks {
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* 创建 Vue 应用实例
|
|
10
|
+
*
|
|
11
|
+
* @author chitanda
|
|
12
|
+
* @date 2024-02-04 17:02:41
|
|
13
|
+
* @static
|
|
14
|
+
*/
|
|
15
|
+
AppHooks.createApp = new qxUtil.SyncSeriesHook();
|
|
16
|
+
/**
|
|
17
|
+
* 用于在多实例下,挂载到已经创建的 Vue 实例上插件
|
|
18
|
+
*
|
|
19
|
+
* @author chitanda
|
|
20
|
+
* @date 2024-02-04 18:02:49
|
|
21
|
+
* @static
|
|
22
|
+
*/
|
|
23
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
24
|
+
AppHooks.useComponent = new qxUtil.SyncSeriesHook();
|
|
25
|
+
|
|
26
|
+
exports.AppHooks = AppHooks;
|