@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
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var pinia = require('pinia');
|
|
4
|
+
var vue = require('vue');
|
|
5
|
+
var zIndex = require('./z-index.cjs');
|
|
6
|
+
|
|
7
|
+
"use strict";
|
|
8
|
+
const useUIStore = pinia.defineStore("uiStore", () => {
|
|
9
|
+
const zIndex$1 = zIndex.useZIndexStore();
|
|
10
|
+
const UIStore = vue.reactive({
|
|
11
|
+
zIndex: zIndex$1.zIndex,
|
|
12
|
+
theme: "light"
|
|
13
|
+
});
|
|
14
|
+
return { UIStore, zIndex: zIndex$1 };
|
|
15
|
+
});
|
|
16
|
+
|
|
17
|
+
exports.useUIStore = useUIStore;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var vue = require('vue');
|
|
4
|
+
|
|
5
|
+
"use strict";
|
|
6
|
+
function useZIndexStore() {
|
|
7
|
+
const DEFAULT_INDEX = 500;
|
|
8
|
+
const INCREMENT_VALUE = 1;
|
|
9
|
+
const zIndex = vue.ref(DEFAULT_INDEX);
|
|
10
|
+
function increment() {
|
|
11
|
+
zIndex.value += INCREMENT_VALUE;
|
|
12
|
+
return zIndex.value;
|
|
13
|
+
}
|
|
14
|
+
function decrement() {
|
|
15
|
+
zIndex.value -= INCREMENT_VALUE;
|
|
16
|
+
}
|
|
17
|
+
return { zIndex, increment, decrement };
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
exports.useZIndexStore = useZIndexStore;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var vue = require('vue');
|
|
4
|
+
var core = require('@ibiz-template/core');
|
|
5
|
+
var runtime = require('@ibiz-template/runtime');
|
|
6
|
+
|
|
7
|
+
"use strict";
|
|
8
|
+
const AppRedirectView = /* @__PURE__ */ vue.defineComponent({
|
|
9
|
+
setup() {
|
|
10
|
+
var _a;
|
|
11
|
+
const context = core.IBizContext.create(((_a = ibiz.appData) == null ? void 0 : _a.context) || {});
|
|
12
|
+
vue.onUnmounted(() => {
|
|
13
|
+
context.destroy();
|
|
14
|
+
});
|
|
15
|
+
const {
|
|
16
|
+
href
|
|
17
|
+
} = window.location;
|
|
18
|
+
async function toRedirect() {
|
|
19
|
+
await runtime.toLocalOpenWFRedirectView(context, href);
|
|
20
|
+
}
|
|
21
|
+
vue.onMounted(() => ibiz.util.hiddenAppLoading());
|
|
22
|
+
toRedirect();
|
|
23
|
+
},
|
|
24
|
+
render() {
|
|
25
|
+
return vue.createVNode("div", null, [vue.createTextVNode("\u91CD\u5B9A\u5411\u8DF3\u8F6C\u4E2D")]);
|
|
26
|
+
}
|
|
27
|
+
});
|
|
28
|
+
|
|
29
|
+
exports.AppRedirectView = AppRedirectView;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var runtime = require('@ibiz-template/runtime');
|
|
4
|
+
require('../../util/index.cjs');
|
|
5
|
+
var view_provider = require('./view.provider.cjs');
|
|
6
|
+
var view = require('./view.cjs');
|
|
7
|
+
var install = require('../../util/install.cjs');
|
|
8
|
+
|
|
9
|
+
"use strict";
|
|
10
|
+
const IBizView = install.withInstall(view.View, function(v) {
|
|
11
|
+
v.component(view.View.name, view.View);
|
|
12
|
+
runtime.registerViewProvider("DEFAULT", () => new view_provider.ViewProvider());
|
|
13
|
+
});
|
|
14
|
+
|
|
15
|
+
exports.IBizView = IBizView;
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var vue = require('vue');
|
|
4
|
+
var runtime = require('@ibiz-template/runtime');
|
|
5
|
+
require('./view.css');
|
|
6
|
+
require('../../use/index.cjs');
|
|
7
|
+
var namespace = require('../../use/namespace/namespace.cjs');
|
|
8
|
+
var useViewController = require('../../use/view/use-view-controller/use-view-controller.cjs');
|
|
9
|
+
|
|
10
|
+
"use strict";
|
|
11
|
+
const View = /* @__PURE__ */ vue.defineComponent({
|
|
12
|
+
name: "IBizView",
|
|
13
|
+
props: {
|
|
14
|
+
context: Object,
|
|
15
|
+
params: {
|
|
16
|
+
type: Object,
|
|
17
|
+
default: () => ({})
|
|
18
|
+
},
|
|
19
|
+
modelData: {
|
|
20
|
+
type: Object,
|
|
21
|
+
required: true
|
|
22
|
+
},
|
|
23
|
+
modal: {
|
|
24
|
+
type: Object
|
|
25
|
+
},
|
|
26
|
+
state: {
|
|
27
|
+
type: Object
|
|
28
|
+
},
|
|
29
|
+
provider: {
|
|
30
|
+
type: Object
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
setup() {
|
|
34
|
+
const ns = namespace.useNamespace("view");
|
|
35
|
+
const c = useViewController.useViewController((...args) => new runtime.ViewController(...args));
|
|
36
|
+
const controls = runtime.getControlsByView(c.model);
|
|
37
|
+
const {
|
|
38
|
+
viewType,
|
|
39
|
+
sysCss,
|
|
40
|
+
codeName
|
|
41
|
+
} = c.model;
|
|
42
|
+
const typeClass = viewType.toLowerCase();
|
|
43
|
+
const sysCssName = sysCss == null ? void 0 : sysCss.cssName;
|
|
44
|
+
const viewClassNames = vue.computed(() => [ns.b(), ns.b(typeClass), ns.m(codeName), sysCssName, c.state.viewMessages.TOP ? "has-top-message" : "", c.state.viewMessages.BOTTOM ? "has-bottom-message" : ""]);
|
|
45
|
+
const onLayoutPanelCreated = (controller) => {
|
|
46
|
+
c.setLayoutPanel(controller);
|
|
47
|
+
};
|
|
48
|
+
const renderViewMessage = (position) => {
|
|
49
|
+
if (c.state.isCreated) {
|
|
50
|
+
const viewMessages = c.state.viewMessages[position];
|
|
51
|
+
if (viewMessages == null ? void 0 : viewMessages.length) {
|
|
52
|
+
return vue.createVNode(vue.resolveComponent("view-message"), {
|
|
53
|
+
"class": [ns.e("".concat(position.toLowerCase(), "-message"))],
|
|
54
|
+
"messages": viewMessages
|
|
55
|
+
}, null);
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
return null;
|
|
59
|
+
};
|
|
60
|
+
return {
|
|
61
|
+
c,
|
|
62
|
+
controls,
|
|
63
|
+
viewClassNames,
|
|
64
|
+
onLayoutPanelCreated,
|
|
65
|
+
renderViewMessage
|
|
66
|
+
};
|
|
67
|
+
},
|
|
68
|
+
render() {
|
|
69
|
+
var _a;
|
|
70
|
+
let layoutPanel = null;
|
|
71
|
+
if (this.c.state.isCreated) {
|
|
72
|
+
const slots = {
|
|
73
|
+
...this.$slots
|
|
74
|
+
};
|
|
75
|
+
if ((_a = this.controls) == null ? void 0 : _a.length) {
|
|
76
|
+
this.controls.forEach((ctrl) => {
|
|
77
|
+
const slotKey = ctrl.name || ctrl.id;
|
|
78
|
+
const ctrlProps = {
|
|
79
|
+
context: this.c.context,
|
|
80
|
+
params: this.c.params
|
|
81
|
+
};
|
|
82
|
+
if (this.c.slotProps[slotKey]) {
|
|
83
|
+
Object.assign(ctrlProps, this.c.slotProps[slotKey]);
|
|
84
|
+
}
|
|
85
|
+
const outCtrlSlot = slots[slotKey];
|
|
86
|
+
if (outCtrlSlot) {
|
|
87
|
+
slots[slotKey] = () => {
|
|
88
|
+
return outCtrlSlot(ctrlProps);
|
|
89
|
+
};
|
|
90
|
+
return;
|
|
91
|
+
}
|
|
92
|
+
const provider = this.c.providers[slotKey];
|
|
93
|
+
if (provider) {
|
|
94
|
+
slots[slotKey] = () => {
|
|
95
|
+
const comp = vue.resolveComponent(provider.component);
|
|
96
|
+
return vue.h(comp, {
|
|
97
|
+
modelData: ctrl,
|
|
98
|
+
...ctrlProps,
|
|
99
|
+
provider
|
|
100
|
+
});
|
|
101
|
+
};
|
|
102
|
+
}
|
|
103
|
+
});
|
|
104
|
+
}
|
|
105
|
+
if (this.c.engines.length === 0) {
|
|
106
|
+
layoutPanel = vue.createVNode("span", {
|
|
107
|
+
"style": "color:red;"
|
|
108
|
+
}, [vue.createTextVNode("\u89C6\u56FE\u7C7B\u578B"), this.modelData.viewType, vue.createTextVNode("\u6682\u672A\u652F\u6301")]);
|
|
109
|
+
} else {
|
|
110
|
+
const viewLayoutPanel = this.c.model.viewLayoutPanel;
|
|
111
|
+
const provider = this.c.providers[viewLayoutPanel.name];
|
|
112
|
+
layoutPanel = vue.h(vue.resolveComponent(provider.component), {
|
|
113
|
+
modelData: viewLayoutPanel,
|
|
114
|
+
context: this.c.context,
|
|
115
|
+
params: this.c.params,
|
|
116
|
+
provider,
|
|
117
|
+
container: this.c,
|
|
118
|
+
onControllerAppear: this.onLayoutPanelCreated
|
|
119
|
+
}, slots);
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
return vue.withDirectives(vue.createVNode("div", {
|
|
123
|
+
"class": this.viewClassNames,
|
|
124
|
+
"id": this.c.id
|
|
125
|
+
}, [this.renderViewMessage("TOP"), layoutPanel, this.renderViewMessage("BOTTOM")]), [[vue.resolveDirective("loading"), this.c.state.isLoading]]);
|
|
126
|
+
}
|
|
127
|
+
});
|
|
128
|
+
|
|
129
|
+
exports.View = View;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.ibiz-view{--ibiz-view-bg-color:var(--ibiz-color-bg-1);--ibiz-view-border-radius:var(--ibiz-border-radius-medium);width:100%;height:100%}.ibiz-view .ibiz-view{background-color:var(--ibiz-view-bg-color);border-radius:var(--ibiz-view-border-radius)}.ibiz-view .ibiz-view-appportalview{background-color:transparent}.ibiz-view.has-bottom-message,.ibiz-view.has-top-message{display:flex;flex-flow:column nowrap}.ibiz-view.has-bottom-message>.ibiz-view-message,.ibiz-view.has-top-message>.ibiz-view-message{flex-grow:0;flex-shrink:0}.ibiz-view.has-bottom-message>.ibiz-control-viewlayoutpanel,.ibiz-view.has-top-message>.ibiz-control-viewlayoutpanel{flex-grow:1;flex-shrink:1}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var vue = require('vue');
|
|
4
|
+
var core = require('@ibiz-template/core');
|
|
5
|
+
var runtime = require('@ibiz-template/runtime');
|
|
6
|
+
require('../../use/index.cjs');
|
|
7
|
+
var useViewController = require('../../use/view/use-view-controller/use-view-controller.cjs');
|
|
8
|
+
|
|
9
|
+
"use strict";
|
|
10
|
+
const DeRedirectView = /* @__PURE__ */ vue.defineComponent({
|
|
11
|
+
name: "IBizDeRedirectView",
|
|
12
|
+
props: {
|
|
13
|
+
context: {
|
|
14
|
+
type: Object,
|
|
15
|
+
required: true
|
|
16
|
+
},
|
|
17
|
+
params: {
|
|
18
|
+
type: Object,
|
|
19
|
+
default: () => ({})
|
|
20
|
+
},
|
|
21
|
+
modelData: {
|
|
22
|
+
type: Object,
|
|
23
|
+
required: true
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
setup(props) {
|
|
27
|
+
const c = useViewController.useViewController((...args) => new runtime.ViewController(...args));
|
|
28
|
+
const toViewId = vue.ref();
|
|
29
|
+
const toViewContext = vue.ref();
|
|
30
|
+
const toViewParams = vue.ref();
|
|
31
|
+
c.evt.on("onCreated", () => {
|
|
32
|
+
runtime.getDERedirectToView(vue.toRaw(props.modelData), vue.toRaw(c.context), vue.toRaw(c.params)).then(async (result) => {
|
|
33
|
+
if (result.type === "view") {
|
|
34
|
+
toViewId.value = result.viewId;
|
|
35
|
+
toViewContext.value = result.context;
|
|
36
|
+
toViewParams.value = result.params;
|
|
37
|
+
} else {
|
|
38
|
+
throw new core.RuntimeError("\u5D4C\u5165\u91CD\u5B9A\u5411\u89C6\u56FE\u4E0D\u652F\u6301url\u8DF3\u8F6C");
|
|
39
|
+
}
|
|
40
|
+
});
|
|
41
|
+
});
|
|
42
|
+
return {
|
|
43
|
+
c,
|
|
44
|
+
toViewId,
|
|
45
|
+
toViewContext,
|
|
46
|
+
toViewParams
|
|
47
|
+
};
|
|
48
|
+
},
|
|
49
|
+
render() {
|
|
50
|
+
if (this.toViewId) {
|
|
51
|
+
return vue.h(vue.resolveComponent("IBizViewShell"), {
|
|
52
|
+
context: this.toViewContext,
|
|
53
|
+
params: this.toViewParams,
|
|
54
|
+
viewId: this.toViewId,
|
|
55
|
+
...this.$attrs
|
|
56
|
+
}, this.$slots);
|
|
57
|
+
}
|
|
58
|
+
return vue.withDirectives(vue.createVNode("div", {
|
|
59
|
+
"style": "width: 100%; height: 100%;"
|
|
60
|
+
}, null), [[vue.resolveDirective("loading"), !this.toViewId]]);
|
|
61
|
+
}
|
|
62
|
+
});
|
|
63
|
+
|
|
64
|
+
exports.DeRedirectView = DeRedirectView;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var runtime = require('@ibiz-template/runtime');
|
|
4
|
+
require('../../util/index.cjs');
|
|
5
|
+
var deRedirectView = require('./de-redirect-view.cjs');
|
|
6
|
+
var deRedirectView_provider = require('./de-redirect-view.provider.cjs');
|
|
7
|
+
var install = require('../../util/install.cjs');
|
|
8
|
+
|
|
9
|
+
"use strict";
|
|
10
|
+
const IBizDeRedirectView = install.withInstall(
|
|
11
|
+
deRedirectView.DeRedirectView,
|
|
12
|
+
function(v) {
|
|
13
|
+
v.component(deRedirectView.DeRedirectView.name, deRedirectView.DeRedirectView);
|
|
14
|
+
const deRedirectViewProvider = new deRedirectView_provider.DeRedirectViewProvider();
|
|
15
|
+
runtime.registerViewProvider(
|
|
16
|
+
runtime.ViewType.DE_REDIRECT_VIEW,
|
|
17
|
+
() => deRedirectViewProvider
|
|
18
|
+
);
|
|
19
|
+
}
|
|
20
|
+
);
|
|
21
|
+
|
|
22
|
+
exports.IBizDeRedirectView = IBizDeRedirectView;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var appRedirectView = require('./app-redirect-view/app-redirect-view.cjs');
|
|
4
|
+
var index = require('./common/index.cjs');
|
|
5
|
+
var todoRedirect = require('./todo-redirect/todo-redirect.cjs');
|
|
6
|
+
var index$1 = require('./portal-view/index.cjs');
|
|
7
|
+
var index$2 = require('./de-redirect-view/index.cjs');
|
|
8
|
+
|
|
9
|
+
"use strict";
|
|
10
|
+
|
|
11
|
+
exports.AppRedirectView = appRedirectView.AppRedirectView;
|
|
12
|
+
exports.IBizView = index.IBizView;
|
|
13
|
+
exports.TodoRedirect = todoRedirect.TodoRedirect;
|
|
14
|
+
exports.IBizPortalView = index$1.IBizPortalView;
|
|
15
|
+
exports.IBizDeRedirectView = index$2.IBizDeRedirectView;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var runtime = require('@ibiz-template/runtime');
|
|
4
|
+
require('../../util/index.cjs');
|
|
5
|
+
var portalView_provider = require('./portal-view.provider.cjs');
|
|
6
|
+
var portalView = require('./portal-view.cjs');
|
|
7
|
+
var install = require('../../util/install.cjs');
|
|
8
|
+
|
|
9
|
+
"use strict";
|
|
10
|
+
const IBizPortalView = install.withInstall(portalView.PortalView, function(v) {
|
|
11
|
+
v.component(portalView.PortalView.name, portalView.PortalView);
|
|
12
|
+
runtime.registerViewProvider(
|
|
13
|
+
runtime.ViewType.APP_PORTAL_VIEW,
|
|
14
|
+
() => new portalView_provider.PortalViewProvider()
|
|
15
|
+
);
|
|
16
|
+
runtime.registerViewProvider(runtime.ViewType.DE_PORTAL_VIEW, () => new portalView_provider.PortalViewProvider());
|
|
17
|
+
runtime.registerViewProvider(
|
|
18
|
+
runtime.ViewType.DE_PORTAL_VIEW9,
|
|
19
|
+
() => new portalView_provider.PortalViewProvider()
|
|
20
|
+
);
|
|
21
|
+
});
|
|
22
|
+
|
|
23
|
+
exports.IBizPortalView = IBizPortalView;
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var vue = require('vue');
|
|
4
|
+
var runtime = require('@ibiz-template/runtime');
|
|
5
|
+
require('../../use/index.cjs');
|
|
6
|
+
var namespace = require('../../use/namespace/namespace.cjs');
|
|
7
|
+
var useViewController = require('../../use/view/use-view-controller/use-view-controller.cjs');
|
|
8
|
+
|
|
9
|
+
"use strict";
|
|
10
|
+
const PortalView = /* @__PURE__ */ vue.defineComponent({
|
|
11
|
+
name: "IBizPortalView",
|
|
12
|
+
props: {
|
|
13
|
+
context: Object,
|
|
14
|
+
params: {
|
|
15
|
+
type: Object,
|
|
16
|
+
default: () => ({})
|
|
17
|
+
},
|
|
18
|
+
modelData: {
|
|
19
|
+
type: Object,
|
|
20
|
+
required: true
|
|
21
|
+
},
|
|
22
|
+
modal: {
|
|
23
|
+
type: Object
|
|
24
|
+
},
|
|
25
|
+
state: {
|
|
26
|
+
type: Object
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
setup() {
|
|
30
|
+
var _a;
|
|
31
|
+
const ns = namespace.useNamespace("view");
|
|
32
|
+
const c = useViewController.useViewController((...args) => new runtime.ViewController(...args));
|
|
33
|
+
const controls = ((_a = c.model.viewLayoutPanel) == null ? void 0 : _a.controls) || c.model.controls;
|
|
34
|
+
const {
|
|
35
|
+
viewType,
|
|
36
|
+
sysCss,
|
|
37
|
+
codeName
|
|
38
|
+
} = c.model;
|
|
39
|
+
const typeClass = viewType.toLowerCase();
|
|
40
|
+
const sysCssName = sysCss == null ? void 0 : sysCss.cssName;
|
|
41
|
+
const viewClassNames = [ns.b(), ns.b(typeClass), ns.m(codeName), sysCssName];
|
|
42
|
+
return {
|
|
43
|
+
c,
|
|
44
|
+
ns,
|
|
45
|
+
controls,
|
|
46
|
+
viewClassNames
|
|
47
|
+
};
|
|
48
|
+
},
|
|
49
|
+
render() {
|
|
50
|
+
var _a;
|
|
51
|
+
let content = null;
|
|
52
|
+
if (this.c.state.isCreated) {
|
|
53
|
+
const slots = {
|
|
54
|
+
...this.$slots
|
|
55
|
+
};
|
|
56
|
+
if ((_a = this.controls) == null ? void 0 : _a.length) {
|
|
57
|
+
this.controls.forEach((ctrl) => {
|
|
58
|
+
const slotKey = ctrl.name || ctrl.id;
|
|
59
|
+
const crtlProps = {
|
|
60
|
+
context: this.c.context,
|
|
61
|
+
params: this.c.params
|
|
62
|
+
};
|
|
63
|
+
if (this.c.slotProps[slotKey]) {
|
|
64
|
+
Object.assign(crtlProps, this.c.slotProps[slotKey]);
|
|
65
|
+
}
|
|
66
|
+
const outCtrlSlot = slots[slotKey];
|
|
67
|
+
if (outCtrlSlot) {
|
|
68
|
+
slots[slotKey] = () => {
|
|
69
|
+
return outCtrlSlot(crtlProps);
|
|
70
|
+
};
|
|
71
|
+
return;
|
|
72
|
+
}
|
|
73
|
+
const provider = this.c.providers[slotKey];
|
|
74
|
+
if (provider) {
|
|
75
|
+
slots[slotKey] = () => {
|
|
76
|
+
const comp = vue.resolveComponent(provider.component);
|
|
77
|
+
return vue.h(comp, {
|
|
78
|
+
modelData: ctrl,
|
|
79
|
+
...crtlProps
|
|
80
|
+
});
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
});
|
|
84
|
+
}
|
|
85
|
+
if (slots.dashboard) {
|
|
86
|
+
content = slots.dashboard();
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
return vue.createVNode("div", {
|
|
90
|
+
"class": this.viewClassNames
|
|
91
|
+
}, [content]);
|
|
92
|
+
}
|
|
93
|
+
});
|
|
94
|
+
|
|
95
|
+
exports.PortalView = PortalView;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var vue = require('vue');
|
|
4
|
+
var qs = require('qs');
|
|
5
|
+
var vueRouter = require('vue-router');
|
|
6
|
+
|
|
7
|
+
"use strict";
|
|
8
|
+
const TodoRedirect = /* @__PURE__ */ vue.defineComponent({
|
|
9
|
+
setup() {
|
|
10
|
+
const router = vueRouter.useRouter();
|
|
11
|
+
const {
|
|
12
|
+
href
|
|
13
|
+
} = window.location;
|
|
14
|
+
const i = href.lastIndexOf("?");
|
|
15
|
+
const queryStr = decodeURIComponent(href.substring(i + 1, href.length));
|
|
16
|
+
if (!queryStr) {
|
|
17
|
+
throw new Error("\u91CD\u5B9A\u5411\u53C2\u6570\u4E0D\u8DB3\u65E0\u6CD5\u8DF3\u8F6C");
|
|
18
|
+
}
|
|
19
|
+
const params = qs.parse(queryStr, {
|
|
20
|
+
delimiter: ";"
|
|
21
|
+
});
|
|
22
|
+
const {
|
|
23
|
+
apptype,
|
|
24
|
+
todotype,
|
|
25
|
+
todoid
|
|
26
|
+
} = params;
|
|
27
|
+
const data = {
|
|
28
|
+
srfapptype: "pc",
|
|
29
|
+
srfapp: ""
|
|
30
|
+
};
|
|
31
|
+
if (!apptype) {
|
|
32
|
+
data.todourltype = "RouterUrl";
|
|
33
|
+
}
|
|
34
|
+
async function getLinkUrl() {
|
|
35
|
+
const res = await ibiz.net.post("/systodos/".concat(todoid, "/getlinkurl"), data);
|
|
36
|
+
let url = res.data.linkurl;
|
|
37
|
+
if (apptype) {
|
|
38
|
+
window.location.href = url;
|
|
39
|
+
} else {
|
|
40
|
+
if (url.indexOf("/") !== 0) {
|
|
41
|
+
url = "/".concat(url);
|
|
42
|
+
}
|
|
43
|
+
url += ";srfwf=".concat(todotype);
|
|
44
|
+
router.push("/index".concat(url));
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
getLinkUrl();
|
|
48
|
+
},
|
|
49
|
+
render() {
|
|
50
|
+
return vue.createVNode("div", null, [vue.createTextVNode("\u5F85\u529E\u5217\u8868\u91CD\u5B9A\u5411")]);
|
|
51
|
+
}
|
|
52
|
+
});
|
|
53
|
+
|
|
54
|
+
exports.TodoRedirect = TodoRedirect;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ibiz-template/vue3-util",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.1-dev.1",
|
|
4
4
|
"description": "vue3 工具包",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "es/index.mjs",
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"files": [
|
|
15
15
|
"dist",
|
|
16
16
|
"es",
|
|
17
|
-
"
|
|
17
|
+
"lib"
|
|
18
18
|
],
|
|
19
19
|
"scripts": {
|
|
20
20
|
"dev": "ibiz-temp build -w",
|
|
@@ -35,8 +35,8 @@
|
|
|
35
35
|
"license": "MIT",
|
|
36
36
|
"devDependencies": {
|
|
37
37
|
"@ibiz-template/cli": "^0.3.10",
|
|
38
|
-
"@ibiz-template/core": "^0.6.
|
|
39
|
-
"@ibiz-template/runtime": "^0.6.
|
|
38
|
+
"@ibiz-template/core": "^0.6.1-dev.1",
|
|
39
|
+
"@ibiz-template/runtime": "^0.6.1-dev.1",
|
|
40
40
|
"@ibiz-template/theme": "^0.6.0",
|
|
41
41
|
"@ibiz/model-core": "^0.1.11",
|
|
42
42
|
"@types/path-browserify": "^1.0.2",
|
|
@@ -65,5 +65,5 @@
|
|
|
65
65
|
"vue": "^3.3.4",
|
|
66
66
|
"vue-router": "^4.2.4"
|
|
67
67
|
},
|
|
68
|
-
"gitHead": "
|
|
68
|
+
"gitHead": "5f8ce122d58af1b3ae28e3e389c4384780013e12"
|
|
69
69
|
}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
$badge: (
|
|
2
|
-
bg-color: getCssVar(color, danger),
|
|
3
|
-
);
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
@include b(badge) {
|
|
7
|
-
display: inline-block;
|
|
8
|
-
padding: 3px 6px;
|
|
9
|
-
line-height: 1rem;
|
|
10
|
-
color: #fff;
|
|
11
|
-
background-color: getCssVar(badge, bg-color);
|
|
12
|
-
border-radius: 10px;
|
|
13
|
-
|
|
14
|
-
@include m(danger){
|
|
15
|
-
#{getCssVarName(badge, bg-color)}: getCssVar(color,danger);
|
|
16
|
-
}
|
|
17
|
-
@include m(success){
|
|
18
|
-
#{getCssVarName(badge, bg-color)}: getCssVar(color,success);
|
|
19
|
-
}
|
|
20
|
-
@include m(warning){
|
|
21
|
-
#{getCssVarName(badge, bg-color)}: getCssVar(color,warning);
|
|
22
|
-
}
|
|
23
|
-
@include m(info){
|
|
24
|
-
#{getCssVarName(badge, bg-color)}: getCssVar(color,info);
|
|
25
|
-
}
|
|
26
|
-
@include m(primary){
|
|
27
|
-
#{getCssVarName(badge, bg-color)}: getCssVar(color,primary);
|
|
28
|
-
}
|
|
29
|
-
}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { defineComponent, PropType } from 'vue';
|
|
2
|
-
import { useNamespace } from '../../use';
|
|
3
|
-
import './badge.scss';
|
|
4
|
-
|
|
5
|
-
export const IBizBadge = defineComponent({
|
|
6
|
-
name: 'IBizBadge',
|
|
7
|
-
props: {
|
|
8
|
-
value: {
|
|
9
|
-
type: Number,
|
|
10
|
-
required: true,
|
|
11
|
-
},
|
|
12
|
-
type: {
|
|
13
|
-
type: String as PropType<
|
|
14
|
-
'primary' | 'success' | 'warning' | 'danger' | 'info'
|
|
15
|
-
>,
|
|
16
|
-
default: 'danger',
|
|
17
|
-
},
|
|
18
|
-
},
|
|
19
|
-
setup() {
|
|
20
|
-
const ns = useNamespace('badge');
|
|
21
|
-
return { ns };
|
|
22
|
-
},
|
|
23
|
-
render() {
|
|
24
|
-
return <div class={[this.ns.b(), this.ns.m(this.type)]}>{this.value}</div>;
|
|
25
|
-
},
|
|
26
|
-
});
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
@include b(code-list) {
|
|
2
|
-
@include flex(row, flex-start, center);
|
|
3
|
-
|
|
4
|
-
flex-wrap: wrap;
|
|
5
|
-
|
|
6
|
-
@include e(item){
|
|
7
|
-
color: getCssVar('code-list','item-color');
|
|
8
|
-
@include flex(row, flex-start, center);
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
@include b(icon){
|
|
12
|
-
display: inline-flex;
|
|
13
|
-
padding-right: getCssVar(spacing, tight);
|
|
14
|
-
}
|
|
15
|
-
}
|