@ibiz-template/vue3-util 0.7.41-alpha.13 → 0.7.41-alpha.131
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/common/badge/badge.css +1 -1
- package/es/common/badge/badge.d.ts +6 -8
- package/es/common/badge/badge.d.ts.map +1 -1
- package/es/common/badge/badge.mjs +13 -7
- package/es/common/code-list/code-list.d.ts +10 -10
- package/es/common/code-list/code-list.d.ts.map +1 -1
- package/es/common/code-list/code-list.mjs +1 -1
- package/es/common/control-base/control-base.d.ts.map +1 -1
- package/es/common/control-base/control-base.mjs +9 -15
- package/es/common/control-loading-placeholder/control-loading-placeholder.d.ts +4 -4
- package/es/common/control-loading-placeholder/control-loading-placeholder.d.ts.map +1 -1
- package/es/common/control-shell/control-shell.d.ts +7 -7
- package/es/common/control-shell/control-shell.d.ts.map +1 -1
- package/es/common/control-shell/control-shell.mjs +1 -1
- package/es/common/custom-render/custom-render.d.ts +4 -4
- package/es/common/custom-render/custom-render.d.ts.map +1 -1
- package/es/common/icon/icon.d.ts +4 -4
- package/es/common/icon/icon.d.ts.map +1 -1
- package/es/common/icon/icon.mjs +12 -0
- package/es/common/index.d.ts +1 -0
- package/es/common/index.d.ts.map +1 -1
- package/es/common/index.mjs +1 -0
- package/es/common/router-view/router-view.d.ts +7 -8
- package/es/common/router-view/router-view.d.ts.map +1 -1
- package/es/common/router-view/router-view.mjs +1 -1
- package/es/common/signature-pad/signature-pad.css +1 -0
- package/es/common/signature-pad/signature-pad.d.ts +19 -0
- package/es/common/signature-pad/signature-pad.d.ts.map +1 -0
- package/es/common/signature-pad/signature-pad.mjs +165 -0
- package/es/common/signature-pad/util/bezier.d.ts +58 -0
- package/es/common/signature-pad/util/bezier.d.ts.map +1 -0
- package/es/common/signature-pad/util/bezier.mjs +109 -0
- package/es/common/signature-pad/util/point.d.ts +55 -0
- package/es/common/signature-pad/util/point.d.ts.map +1 -0
- package/es/common/signature-pad/util/point.mjs +51 -0
- package/es/common/signature-pad/util/signature_pad.d.ts +593 -0
- package/es/common/signature-pad/util/signature_pad.d.ts.map +1 -0
- package/es/common/signature-pad/util/signature_pad.mjs +1018 -0
- package/es/common/view-shell/view-shell.d.ts +19 -12
- package/es/common/view-shell/view-shell.d.ts.map +1 -1
- package/es/common/view-shell/view-shell.mjs +42 -23
- package/es/control/panel/panel/index.d.ts +5 -5
- package/es/control/panel/panel/index.d.ts.map +1 -1
- package/es/control/panel/panel/panel.d.ts +6 -6
- package/es/control/panel/panel/panel.d.ts.map +1 -1
- package/es/control/panel/panel/panel.mjs +13 -5
- package/es/control/panel/view-layout-panel/index.d.ts +5 -5
- package/es/control/panel/view-layout-panel/index.d.ts.map +1 -1
- package/es/control/panel/view-layout-panel/view-layout-panel.d.ts +7 -7
- package/es/control/panel/view-layout-panel/view-layout-panel.d.ts.map +1 -1
- package/es/control/panel/view-layout-panel/view-layout-panel.mjs +6 -6
- package/es/index.mjs +9 -11
- package/es/locale/en/index.d.ts +1 -0
- package/es/locale/en/index.d.ts.map +1 -1
- package/es/locale/en/index.mjs +2 -1
- package/es/locale/zh-CN/index.d.ts +1 -0
- package/es/locale/zh-CN/index.d.ts.map +1 -1
- package/es/locale/zh-CN/index.mjs +2 -1
- package/es/node_modules/.pnpm/path-browserify@1.0.1/node_modules/path-browserify/index.mjs +2 -2
- package/es/panel-component/auth-wxmp-qrcode/auth-wxmp-qrcode.controller.d.ts.map +1 -1
- package/es/panel-component/auth-wxmp-qrcode/auth-wxmp-qrcode.controller.mjs +3 -1
- package/es/panel-component/auth-wxmp-qrcode/auth-wxmp-qrcode.css +1 -1
- package/es/panel-component/auth-wxmp-qrcode/auth-wxmp-qrcode.d.ts +6 -4
- package/es/panel-component/auth-wxmp-qrcode/auth-wxmp-qrcode.d.ts.map +1 -1
- package/es/panel-component/auth-wxmp-qrcode/auth-wxmp-qrcode.mjs +17 -6
- package/es/panel-component/auth-wxmp-qrcode/index.d.ts +6 -4
- package/es/panel-component/auth-wxmp-qrcode/index.d.ts.map +1 -1
- package/es/panel-component/grid-container/grid-container.controller.d.ts +3 -3
- package/es/panel-component/grid-container/grid-container.controller.d.ts.map +1 -1
- package/es/panel-component/grid-container/grid-container.controller.mjs +2 -2
- package/es/panel-component/grid-container/grid-container.d.ts +8 -6
- package/es/panel-component/grid-container/grid-container.d.ts.map +1 -1
- package/es/panel-component/grid-container/grid-container.mjs +17 -6
- package/es/panel-component/grid-container/grid-container.state.d.ts +3 -3
- package/es/panel-component/grid-container/grid-container.state.d.ts.map +1 -1
- package/es/panel-component/grid-container/grid-container.state.mjs +2 -2
- package/es/panel-component/grid-container/index.d.ts +8 -6
- package/es/panel-component/grid-container/index.d.ts.map +1 -1
- package/es/panel-component/index.d.ts +0 -1
- package/es/panel-component/index.d.ts.map +1 -1
- package/es/panel-component/index.mjs +1 -5
- package/es/panel-component/multi-data-container/index.d.ts +6 -4
- package/es/panel-component/multi-data-container/index.d.ts.map +1 -1
- package/es/panel-component/multi-data-container/multi-data-container.controller.d.ts +4 -4
- package/es/panel-component/multi-data-container/multi-data-container.controller.d.ts.map +1 -1
- package/es/panel-component/multi-data-container/multi-data-container.controller.mjs +88 -69
- package/es/panel-component/multi-data-container/multi-data-container.d.ts +7 -5
- package/es/panel-component/multi-data-container/multi-data-container.d.ts.map +1 -1
- package/es/panel-component/multi-data-container/multi-data-container.mjs +20 -6
- package/es/panel-component/multi-data-container/multi-data-container.state.d.ts +3 -3
- package/es/panel-component/multi-data-container/multi-data-container.state.d.ts.map +1 -1
- package/es/panel-component/multi-data-container/multi-data-container.state.mjs +2 -2
- package/es/panel-component/multi-data-container-raw/index.d.ts +6 -4
- package/es/panel-component/multi-data-container-raw/index.d.ts.map +1 -1
- package/es/panel-component/multi-data-container-raw/multi-data-container-raw.controller.d.ts +4 -4
- package/es/panel-component/multi-data-container-raw/multi-data-container-raw.controller.d.ts.map +1 -1
- package/es/panel-component/multi-data-container-raw/multi-data-container-raw.controller.mjs +88 -69
- package/es/panel-component/multi-data-container-raw/multi-data-container-raw.d.ts +7 -5
- package/es/panel-component/multi-data-container-raw/multi-data-container-raw.d.ts.map +1 -1
- package/es/panel-component/multi-data-container-raw/multi-data-container-raw.mjs +23 -7
- package/es/panel-component/multi-data-container-raw/multi-data-container-raw.state.d.ts +3 -3
- package/es/panel-component/multi-data-container-raw/multi-data-container-raw.state.d.ts.map +1 -1
- package/es/panel-component/multi-data-container-raw/multi-data-container-raw.state.mjs +2 -2
- package/es/panel-component/nav-pos/index.d.ts +7 -5
- package/es/panel-component/nav-pos/index.d.ts.map +1 -1
- package/es/panel-component/nav-pos/nav-pos.controller.d.ts +1 -1
- package/es/panel-component/nav-pos/nav-pos.d.ts +8 -6
- package/es/panel-component/nav-pos/nav-pos.d.ts.map +1 -1
- package/es/panel-component/nav-pos/nav-pos.mjs +20 -5
- package/es/panel-component/panel-container/index.d.ts +7 -6
- package/es/panel-component/panel-container/index.d.ts.map +1 -1
- package/es/panel-component/panel-container/index.mjs +1 -2
- package/es/panel-component/panel-container/panel-container.d.ts +7 -5
- package/es/panel-component/panel-container/panel-container.d.ts.map +1 -1
- package/es/panel-component/panel-container/panel-container.mjs +36 -15
- package/es/panel-component/panel-container/panel-container.provider.d.ts +2 -2
- package/es/panel-component/panel-container/panel-container.provider.d.ts.map +1 -1
- package/es/panel-component/panel-container/panel-container.provider.mjs +1 -1
- package/es/panel-component/panel-container-image/index.d.ts +6 -4
- package/es/panel-component/panel-container-image/index.d.ts.map +1 -1
- package/es/panel-component/panel-container-image/panel-container-image.controller.d.ts +3 -3
- package/es/panel-component/panel-container-image/panel-container-image.controller.d.ts.map +1 -1
- package/es/panel-component/panel-container-image/panel-container-image.controller.mjs +2 -2
- package/es/panel-component/panel-container-image/panel-container-image.css +1 -1
- package/es/panel-component/panel-container-image/panel-container-image.d.ts +6 -4
- package/es/panel-component/panel-container-image/panel-container-image.d.ts.map +1 -1
- package/es/panel-component/panel-container-image/panel-container-image.mjs +24 -10
- package/es/panel-component/panel-container-image/panel-container-image.state.d.ts +3 -3
- package/es/panel-component/panel-container-image/panel-container-image.state.d.ts.map +1 -1
- package/es/panel-component/panel-container-image/panel-container-image.state.mjs +2 -2
- package/es/panel-component/panel-container-tabs/index.d.ts +6 -6
- package/es/panel-component/panel-container-tabs/index.d.ts.map +1 -1
- package/es/panel-component/panel-container-tabs/panel-container-tabs.d.ts +5 -5
- package/es/panel-component/panel-container-tabs/panel-container-tabs.d.ts.map +1 -1
- package/es/panel-component/panel-container-tabs/panel-container-tabs.mjs +1 -1
- package/es/panel-component/panel-container-tabs/panel-container-tabs.provider.d.ts +2 -2
- package/es/panel-component/panel-container-tabs/panel-container-tabs.provider.d.ts.map +1 -1
- package/es/panel-component/panel-container-tabs/panel-container-tabs.provider.mjs +1 -1
- package/es/panel-component/panel-ctrl-pos/index.d.ts +6 -4
- package/es/panel-component/panel-ctrl-pos/index.d.ts.map +1 -1
- package/es/panel-component/panel-ctrl-pos/panel-ctrl-pos.d.ts +6 -4
- package/es/panel-component/panel-ctrl-pos/panel-ctrl-pos.d.ts.map +1 -1
- package/es/panel-component/panel-ctrl-pos/panel-ctrl-pos.mjs +12 -4
- package/es/panel-component/panel-ctrl-view-page-caption/index.d.ts +6 -4
- package/es/panel-component/panel-ctrl-view-page-caption/index.d.ts.map +1 -1
- package/es/panel-component/panel-ctrl-view-page-caption/panel-ctrl-view-page-caption.css +1 -0
- package/es/panel-component/panel-ctrl-view-page-caption/panel-ctrl-view-page-caption.d.ts +7 -4
- package/es/panel-component/panel-ctrl-view-page-caption/panel-ctrl-view-page-caption.d.ts.map +1 -1
- package/es/panel-component/panel-ctrl-view-page-caption/panel-ctrl-view-page-caption.mjs +16 -8
- package/es/panel-component/panel-field/index.d.ts +7 -4
- package/es/panel-component/panel-field/index.d.ts.map +1 -1
- package/es/panel-component/panel-field/panel-field.controller.d.ts +12 -0
- package/es/panel-component/panel-field/panel-field.controller.d.ts.map +1 -1
- package/es/panel-component/panel-field/panel-field.controller.mjs +37 -3
- package/es/panel-component/panel-field/panel-field.css +1 -1
- package/es/panel-component/panel-field/panel-field.d.ts +7 -4
- package/es/panel-component/panel-field/panel-field.d.ts.map +1 -1
- package/es/panel-component/panel-field/panel-field.mjs +29 -12
- package/es/panel-component/panel-item-render/index.d.ts +6 -4
- package/es/panel-component/panel-item-render/index.d.ts.map +1 -1
- package/es/panel-component/panel-item-render/panel-item-render.controller.d.ts.map +1 -1
- package/es/panel-component/panel-item-render/panel-item-render.controller.mjs +7 -5
- package/es/panel-component/panel-item-render/panel-item-render.d.ts +6 -4
- package/es/panel-component/panel-item-render/panel-item-render.d.ts.map +1 -1
- package/es/panel-component/panel-item-render/panel-item-render.mjs +13 -4
- package/es/panel-component/panel-rawitem/index.d.ts +8 -6
- package/es/panel-component/panel-rawitem/index.d.ts.map +1 -1
- package/es/panel-component/panel-rawitem/panel-rawitem.d.ts +8 -6
- package/es/panel-component/panel-rawitem/panel-rawitem.d.ts.map +1 -1
- package/es/panel-component/panel-rawitem/panel-rawitem.mjs +15 -10
- package/es/panel-component/panel-tab-page/index.d.ts +8 -6
- package/es/panel-component/panel-tab-page/index.d.ts.map +1 -1
- package/es/panel-component/panel-tab-page/panel-tab-page.d.ts +10 -8
- package/es/panel-component/panel-tab-page/panel-tab-page.d.ts.map +1 -1
- package/es/panel-component/panel-tab-page/panel-tab-page.mjs +23 -8
- package/es/panel-component/panel-tab-page/panel-tab-page.provider.d.ts +2 -2
- package/es/panel-component/panel-tab-page/panel-tab-page.provider.d.ts.map +1 -1
- package/es/panel-component/panel-tab-page/panel-tab-page.provider.mjs +2 -2
- package/es/panel-component/scroll-container/index.d.ts +6 -4
- package/es/panel-component/scroll-container/index.d.ts.map +1 -1
- package/es/panel-component/scroll-container/scroll-container/scroll-container.controller.d.ts +3 -3
- package/es/panel-component/scroll-container/scroll-container/scroll-container.controller.d.ts.map +1 -1
- package/es/panel-component/scroll-container/scroll-container/scroll-container.controller.mjs +2 -2
- package/es/panel-component/scroll-container/scroll-container/scroll-container.d.ts +6 -4
- package/es/panel-component/scroll-container/scroll-container/scroll-container.d.ts.map +1 -1
- package/es/panel-component/scroll-container/scroll-container/scroll-container.mjs +26 -15
- package/es/panel-component/scroll-container/scroll-container-item/scroll-container-item.controller.d.ts +3 -3
- package/es/panel-component/scroll-container/scroll-container-item/scroll-container-item.controller.d.ts.map +1 -1
- package/es/panel-component/scroll-container/scroll-container-item/scroll-container-item.controller.mjs +2 -2
- package/es/panel-component/scroll-container/scroll-container-item/scroll-container-item.d.ts +6 -4
- package/es/panel-component/scroll-container/scroll-container-item/scroll-container-item.d.ts.map +1 -1
- package/es/panel-component/scroll-container/scroll-container-item/scroll-container-item.mjs +21 -6
- package/es/panel-component/single-data-container/index.d.ts +6 -4
- package/es/panel-component/single-data-container/index.d.ts.map +1 -1
- package/es/panel-component/single-data-container/single-data-container.controller.d.ts +4 -4
- package/es/panel-component/single-data-container/single-data-container.controller.d.ts.map +1 -1
- package/es/panel-component/single-data-container/single-data-container.controller.mjs +98 -73
- package/es/panel-component/single-data-container/single-data-container.d.ts +7 -5
- package/es/panel-component/single-data-container/single-data-container.d.ts.map +1 -1
- package/es/panel-component/single-data-container/single-data-container.mjs +22 -6
- package/es/panel-component/single-data-container/single-data-container.state.d.ts +3 -3
- package/es/panel-component/single-data-container/single-data-container.state.d.ts.map +1 -1
- package/es/panel-component/single-data-container/single-data-container.state.mjs +2 -2
- package/es/panel-component/teleport-placeholder/index.d.ts +7 -5
- package/es/panel-component/teleport-placeholder/index.d.ts.map +1 -1
- package/es/panel-component/teleport-placeholder/teleport-placeholder.d.ts +7 -5
- package/es/panel-component/teleport-placeholder/teleport-placeholder.d.ts.map +1 -1
- package/es/panel-component/teleport-placeholder/teleport-placeholder.mjs +11 -4
- package/es/plugin/plugin-factory/plugin-factory.d.ts +15 -0
- package/es/plugin/plugin-factory/plugin-factory.d.ts.map +1 -1
- package/es/plugin/plugin-factory/plugin-factory.mjs +34 -6
- package/es/props/editor/autocomplete.d.ts +2 -2
- package/es/props/editor/check-box-list.d.ts +2 -2
- package/es/props/editor/check-box.d.ts +2 -2
- package/es/props/editor/code.d.ts +17 -0
- package/es/props/editor/code.d.ts.map +1 -1
- package/es/props/editor/code.mjs +7 -2
- package/es/props/editor/common.d.ts +7 -0
- package/es/props/editor/common.d.ts.map +1 -1
- package/es/props/editor/common.mjs +5 -1
- package/es/props/editor/data-picker.d.ts +2 -2
- package/es/props/editor/date-picker.d.ts +2 -2
- package/es/props/editor/date-range-select.d.ts +4 -0
- package/es/props/editor/date-range-select.d.ts.map +1 -1
- package/es/props/editor/date-range.d.ts +2 -2
- package/es/props/editor/dropdown-list.d.ts +2 -2
- package/es/props/editor/html.d.ts +17 -0
- package/es/props/editor/html.d.ts.map +1 -1
- package/es/props/editor/html.mjs +7 -2
- package/es/props/editor/index.mjs +3 -3
- package/es/props/editor/list-box.d.ts +2 -2
- package/es/props/editor/markdown.d.ts +89 -0
- package/es/props/editor/markdown.d.ts.map +1 -1
- package/es/props/editor/markdown.mjs +28 -3
- package/es/props/editor/number-range.d.ts +2 -2
- package/es/props/editor/radio-button-list.d.ts +2 -2
- package/es/props/editor/rate.d.ts +2 -2
- package/es/props/editor/raw.d.ts +2 -2
- package/es/props/editor/slider.d.ts +2 -2
- package/es/props/editor/span.d.ts +18 -2
- package/es/props/editor/span.d.ts.map +1 -1
- package/es/props/editor/span.mjs +6 -1
- package/es/props/editor/stepper.d.ts +2 -2
- package/es/props/editor/switch.d.ts +2 -2
- package/es/props/editor/text-box.d.ts +2 -2
- package/es/props/index.mjs +3 -3
- package/es/use/index.d.ts +2 -0
- package/es/use/index.d.ts.map +1 -1
- package/es/use/index.mjs +4 -2
- package/es/use/popover/popover.d.ts +7 -0
- package/es/use/popover/popover.d.ts.map +1 -1
- package/es/use/popover/popover.mjs +9 -2
- package/es/use/storage/index.d.ts +4 -6
- package/es/use/storage/index.d.ts.map +1 -1
- package/es/use/storage/index.mjs +16 -11
- package/es/use/tooltip/tooltip.d.ts +103 -0
- package/es/use/tooltip/tooltip.d.ts.map +1 -0
- package/es/use/tooltip/tooltip.mjs +68 -0
- package/es/use/use-semantic-node/use-semantic-node.d.ts +15 -0
- package/es/use/use-semantic-node/use-semantic-node.d.ts.map +1 -0
- package/es/use/use-semantic-node/use-semantic-node.mjs +100 -0
- package/es/use/vue/vue.d.ts +9 -0
- package/es/use/vue/vue.d.ts.map +1 -1
- package/es/use/vue/vue.mjs +15 -2
- package/es/util/index.d.ts +0 -1
- package/es/util/index.d.ts.map +1 -1
- package/es/util/index.mjs +0 -1
- package/es/util/install.d.ts.map +1 -1
- package/es/util/overlay-container/overlay-container.d.ts +1 -1
- package/es/util/overlay-container/overlay-container.d.ts.map +1 -1
- package/es/util/overlay-container/overlay-container.mjs +7 -2
- package/es/util/overlay-view-util/overlay-view-util.d.ts +2 -2
- package/es/util/overlay-view-util/overlay-view-util.d.ts.map +1 -1
- package/es/util/overlay-view-util/overlay-view-util.mjs +2 -1
- package/es/util/route/route.d.ts.map +1 -1
- package/es/util/route/route.mjs +13 -3
- package/es/util/store/app-store/app-store.d.ts +2 -2
- package/es/util/store/ui-store/ui-store.d.ts +2 -2
- package/es/view/app-redirect-view/app-redirect-view.d.ts +1 -1
- package/es/view/app-redirect-view/app-redirect-view.d.ts.map +1 -1
- package/es/view/app-redirect-view/app-redirect-view.mjs +1 -1
- package/es/view/common/index.d.ts +5 -5
- package/es/view/common/index.d.ts.map +1 -1
- package/es/view/common/view.d.ts +5 -5
- package/es/view/common/view.d.ts.map +1 -1
- package/es/view/common/view.mjs +17 -3
- package/es/view/de-redirect-view/de-redirect-view.d.ts +8 -8
- package/es/view/de-redirect-view/de-redirect-view.d.ts.map +1 -1
- package/es/view/de-redirect-view/de-redirect-view.mjs +1 -1
- package/es/view/de-redirect-view/index.d.ts +8 -8
- package/es/view/de-redirect-view/index.d.ts.map +1 -1
- package/es/view/html-view/html-view.d.ts +8 -9
- package/es/view/html-view/html-view.d.ts.map +1 -1
- package/es/view/html-view/html-view.mjs +10 -17
- package/es/view/html-view/index.d.ts +7 -8
- package/es/view/html-view/index.d.ts.map +1 -1
- package/es/view/portal-view/index.d.ts +5 -5
- package/es/view/portal-view/index.d.ts.map +1 -1
- package/es/view/portal-view/portal-view.d.ts +5 -5
- package/es/view/portal-view/portal-view.d.ts.map +1 -1
- package/es/view/todo-redirect/todo-redirect.d.ts +1 -1
- package/es/view/todo-redirect/todo-redirect.d.ts.map +1 -1
- package/lib/common/badge/badge.cjs +12 -6
- package/lib/common/badge/badge.css +1 -1
- package/lib/common/control-base/control-base.cjs +8 -14
- package/lib/common/icon/icon.cjs +12 -0
- package/lib/common/index.cjs +2 -0
- package/lib/common/signature-pad/signature-pad.cjs +167 -0
- package/lib/common/signature-pad/signature-pad.css +1 -0
- package/lib/common/signature-pad/util/bezier.cjs +111 -0
- package/lib/common/signature-pad/util/point.cjs +53 -0
- package/lib/common/signature-pad/util/signature_pad.cjs +1022 -0
- package/lib/common/view-shell/view-shell.cjs +40 -21
- package/lib/control/panel/panel/panel.cjs +11 -3
- package/lib/control/panel/view-layout-panel/view-layout-panel.cjs +4 -4
- package/lib/index.cjs +57 -47
- package/lib/locale/en/index.cjs +2 -1
- package/lib/locale/zh-CN/index.cjs +2 -1
- package/lib/node_modules/.pnpm/path-browserify@1.0.1/node_modules/path-browserify/index.cjs +2 -2
- package/lib/panel-component/auth-wxmp-qrcode/auth-wxmp-qrcode.cjs +16 -5
- package/lib/panel-component/auth-wxmp-qrcode/auth-wxmp-qrcode.controller.cjs +3 -1
- package/lib/panel-component/auth-wxmp-qrcode/auth-wxmp-qrcode.css +1 -1
- package/lib/panel-component/grid-container/grid-container.cjs +16 -5
- package/lib/panel-component/grid-container/grid-container.controller.cjs +1 -1
- package/lib/panel-component/grid-container/grid-container.state.cjs +1 -1
- package/lib/panel-component/index.cjs +21 -22
- package/lib/panel-component/multi-data-container/multi-data-container.cjs +19 -5
- package/lib/panel-component/multi-data-container/multi-data-container.controller.cjs +87 -68
- package/lib/panel-component/multi-data-container/multi-data-container.state.cjs +1 -1
- package/lib/panel-component/multi-data-container-raw/multi-data-container-raw.cjs +22 -6
- package/lib/panel-component/multi-data-container-raw/multi-data-container-raw.controller.cjs +87 -68
- package/lib/panel-component/multi-data-container-raw/multi-data-container-raw.state.cjs +1 -1
- package/lib/panel-component/nav-pos/nav-pos.cjs +18 -3
- package/lib/panel-component/panel-container/index.cjs +8 -4
- package/lib/panel-component/panel-container/panel-container.cjs +36 -15
- package/lib/panel-component/panel-container/panel-container.provider.cjs +2 -2
- package/lib/panel-component/panel-container-image/panel-container-image.cjs +23 -9
- package/lib/panel-component/panel-container-image/panel-container-image.controller.cjs +1 -1
- package/lib/panel-component/panel-container-image/panel-container-image.css +1 -1
- package/lib/panel-component/panel-container-image/panel-container-image.state.cjs +1 -1
- package/lib/panel-component/panel-container-tabs/panel-container-tabs.cjs +2 -2
- package/lib/panel-component/panel-container-tabs/panel-container-tabs.provider.cjs +2 -2
- package/lib/panel-component/panel-ctrl-pos/panel-ctrl-pos.cjs +11 -3
- package/lib/panel-component/panel-ctrl-view-page-caption/panel-ctrl-view-page-caption.cjs +15 -7
- package/lib/panel-component/panel-ctrl-view-page-caption/panel-ctrl-view-page-caption.css +1 -0
- package/lib/panel-component/panel-field/panel-field.cjs +28 -11
- package/lib/panel-component/panel-field/panel-field.controller.cjs +37 -3
- package/lib/panel-component/panel-field/panel-field.css +1 -1
- package/lib/panel-component/panel-item-render/panel-item-render.cjs +12 -3
- package/lib/panel-component/panel-item-render/panel-item-render.controller.cjs +7 -5
- package/lib/panel-component/panel-rawitem/panel-rawitem.cjs +14 -9
- package/lib/panel-component/panel-tab-page/panel-tab-page.cjs +21 -6
- package/lib/panel-component/panel-tab-page/panel-tab-page.provider.cjs +1 -1
- package/lib/panel-component/scroll-container/scroll-container/scroll-container.cjs +25 -14
- package/lib/panel-component/scroll-container/scroll-container/scroll-container.controller.cjs +1 -1
- package/lib/panel-component/scroll-container/scroll-container-item/scroll-container-item.cjs +20 -5
- package/lib/panel-component/scroll-container/scroll-container-item/scroll-container-item.controller.cjs +1 -1
- package/lib/panel-component/single-data-container/single-data-container.cjs +21 -5
- package/lib/panel-component/single-data-container/single-data-container.controller.cjs +97 -72
- package/lib/panel-component/single-data-container/single-data-container.state.cjs +1 -1
- package/lib/panel-component/teleport-placeholder/teleport-placeholder.cjs +10 -3
- package/lib/plugin/plugin-factory/plugin-factory.cjs +33 -5
- package/lib/props/editor/code.cjs +6 -0
- package/lib/props/editor/common.cjs +5 -1
- package/lib/props/editor/html.cjs +6 -0
- package/lib/props/editor/index.cjs +3 -0
- package/lib/props/editor/markdown.cjs +27 -1
- package/lib/props/editor/span.cjs +6 -1
- package/lib/props/index.cjs +3 -0
- package/lib/use/index.cjs +8 -0
- package/lib/use/popover/popover.cjs +8 -0
- package/lib/use/storage/index.cjs +16 -11
- package/lib/use/tooltip/tooltip.cjs +72 -0
- package/lib/use/use-semantic-node/use-semantic-node.cjs +102 -0
- package/lib/use/vue/vue.cjs +14 -0
- package/lib/util/index.cjs +0 -2
- package/lib/util/overlay-container/overlay-container.cjs +7 -2
- package/lib/util/overlay-view-util/overlay-view-util.cjs +2 -1
- package/lib/util/route/route.cjs +13 -3
- package/lib/view/common/view.cjs +15 -1
- package/lib/view/html-view/html-view.cjs +8 -15
- package/package.json +8 -7
- package/src/common/badge/badge.scss +49 -0
- package/src/common/badge/badge.tsx +55 -0
- package/src/common/code-list/code-list.scss +15 -0
- package/src/common/code-list/code-list.tsx +184 -0
- package/src/common/control-base/control-base.scss +42 -0
- package/src/common/control-base/control-base.tsx +308 -0
- package/src/common/control-loading-placeholder/control-loading-placeholder.tsx +22 -0
- package/src/common/control-shell/control-shell.scss +5 -0
- package/src/common/control-shell/control-shell.tsx +90 -0
- package/src/common/custom-render/custom-render.scss +4 -0
- package/src/common/custom-render/custom-render.tsx +111 -0
- package/src/common/icon/icon.scss +13 -0
- package/src/common/icon/icon.tsx +105 -0
- package/src/common/index.ts +10 -0
- package/src/common/router-view/router-view.tsx +74 -0
- package/src/common/signature-pad/signature-pad.scss +10 -0
- package/src/common/signature-pad/signature-pad.tsx +174 -0
- package/src/common/signature-pad/util/bezier.ts +164 -0
- package/src/common/signature-pad/util/point.ts +96 -0
- package/src/common/signature-pad/util/signature_pad.ts +1543 -0
- package/src/common/view-shell/view-shell.scss +5 -0
- package/src/common/view-shell/view-shell.tsx +337 -0
- package/src/control/index.ts +1 -0
- package/src/control/panel/index.ts +2 -0
- package/src/control/panel/panel/index.ts +12 -0
- package/src/control/panel/panel/panel.provider.ts +14 -0
- package/src/control/panel/panel/panel.scss +9 -0
- package/src/control/panel/panel/panel.tsx +273 -0
- package/src/control/panel/view-layout-panel/index.ts +18 -0
- package/src/control/panel/view-layout-panel/view-layout-panel.provider.ts +14 -0
- package/src/control/panel/view-layout-panel/view-layout-panel.scss +9 -0
- package/src/control/panel/view-layout-panel/view-layout-panel.tsx +266 -0
- package/src/hooks/app/app.hooks.ts +63 -0
- package/src/hooks/index.ts +1 -0
- package/src/index.ts +19 -0
- package/src/interface/index.ts +1 -0
- package/src/interface/util/index.ts +1 -0
- package/src/interface/util/route/route.ts +116 -0
- package/src/locale/en/index.ts +74 -0
- package/src/locale/index.ts +2 -0
- package/src/locale/zh-CN/index.ts +66 -0
- package/src/panel-component/auth-wxmp-qrcode/auth-wxmp-qrcode.controller.ts +248 -0
- package/src/panel-component/auth-wxmp-qrcode/auth-wxmp-qrcode.provider.ts +28 -0
- package/src/panel-component/auth-wxmp-qrcode/auth-wxmp-qrcode.scss +51 -0
- package/src/panel-component/auth-wxmp-qrcode/auth-wxmp-qrcode.state.ts +58 -0
- package/src/panel-component/auth-wxmp-qrcode/auth-wxmp-qrcode.tsx +109 -0
- package/src/panel-component/auth-wxmp-qrcode/index.ts +18 -0
- package/src/panel-component/grid-container/grid-container.controller.ts +24 -0
- package/src/panel-component/grid-container/grid-container.provider.ts +30 -0
- package/src/panel-component/grid-container/grid-container.scss +17 -0
- package/src/panel-component/grid-container/grid-container.state.ts +12 -0
- package/src/panel-component/grid-container/grid-container.tsx +141 -0
- package/src/panel-component/grid-container/index.ts +19 -0
- package/src/panel-component/index.ts +17 -0
- package/src/panel-component/multi-data-container/index.ts +22 -0
- package/src/panel-component/multi-data-container/multi-data-container-item.controller.ts +179 -0
- package/src/panel-component/multi-data-container/multi-data-container-itm.state.ts +20 -0
- package/src/panel-component/multi-data-container/multi-data-container.controller.ts +456 -0
- package/src/panel-component/multi-data-container/multi-data-container.provider.ts +30 -0
- package/src/panel-component/multi-data-container/multi-data-container.scss +10 -0
- package/src/panel-component/multi-data-container/multi-data-container.state.ts +19 -0
- package/src/panel-component/multi-data-container/multi-data-container.tsx +137 -0
- package/src/panel-component/multi-data-container-raw/index.ts +22 -0
- package/src/panel-component/multi-data-container-raw/multi-data-container-raw.controller.ts +448 -0
- package/src/panel-component/multi-data-container-raw/multi-data-container-raw.provider.ts +30 -0
- package/src/panel-component/multi-data-container-raw/multi-data-container-raw.scss +12 -0
- package/src/panel-component/multi-data-container-raw/multi-data-container-raw.state.ts +19 -0
- package/src/panel-component/multi-data-container-raw/multi-data-container-raw.tsx +129 -0
- package/src/panel-component/nav-pos/index.ts +16 -0
- package/src/panel-component/nav-pos/nav-pos.controller.ts +438 -0
- package/src/panel-component/nav-pos/nav-pos.provider.ts +38 -0
- package/src/panel-component/nav-pos/nav-pos.scss +4 -0
- package/src/panel-component/nav-pos/nav-pos.state.ts +55 -0
- package/src/panel-component/nav-pos/nav-pos.tsx +166 -0
- package/src/panel-component/panel-container/index.ts +30 -0
- package/src/panel-component/panel-container/panel-container.provider.ts +30 -0
- package/src/panel-component/panel-container/panel-container.scss +21 -0
- package/src/panel-component/panel-container/panel-container.tsx +138 -0
- package/src/panel-component/panel-container-image/index.ts +22 -0
- package/src/panel-component/panel-container-image/panel-container-image.controller.ts +24 -0
- package/src/panel-component/panel-container-image/panel-container-image.provider.ts +30 -0
- package/src/panel-component/panel-container-image/panel-container-image.scss +17 -0
- package/src/panel-component/panel-container-image/panel-container-image.state.ts +12 -0
- package/src/panel-component/panel-container-image/panel-container-image.tsx +116 -0
- package/src/panel-component/panel-container-tabs/index.ts +18 -0
- package/src/panel-component/panel-container-tabs/panel-container-tabs.provider.ts +30 -0
- package/src/panel-component/panel-container-tabs/panel-container-tabs.scss +25 -0
- package/src/panel-component/panel-container-tabs/panel-container-tabs.tsx +47 -0
- package/src/panel-component/panel-ctrl-pos/index.ts +14 -0
- package/src/panel-component/panel-ctrl-pos/panel-ctrl-pos.controller.ts +50 -0
- package/src/panel-component/panel-ctrl-pos/panel-ctrl-pos.provider.ts +30 -0
- package/src/panel-component/panel-ctrl-pos/panel-ctrl-pos.scss +8 -0
- package/src/panel-component/panel-ctrl-pos/panel-ctrl-pos.tsx +72 -0
- package/src/panel-component/panel-ctrl-view-page-caption/index.ts +18 -0
- package/src/panel-component/panel-ctrl-view-page-caption/panel-ctrl-view-page-caption.controller.ts +32 -0
- package/src/panel-component/panel-ctrl-view-page-caption/panel-ctrl-view-page-caption.provider.ts +30 -0
- package/src/panel-component/panel-ctrl-view-page-caption/panel-ctrl-view-page-caption.scss +13 -0
- package/src/panel-component/panel-ctrl-view-page-caption/panel-ctrl-view-page-caption.state.ts +17 -0
- package/src/panel-component/panel-ctrl-view-page-caption/panel-ctrl-view-page-caption.tsx +77 -0
- package/src/panel-component/panel-field/index.ts +14 -0
- package/src/panel-component/panel-field/panel-field.controller.ts +272 -0
- package/src/panel-component/panel-field/panel-field.provider.ts +28 -0
- package/src/panel-component/panel-field/panel-field.scss +79 -0
- package/src/panel-component/panel-field/panel-field.state.ts +17 -0
- package/src/panel-component/panel-field/panel-field.tsx +138 -0
- package/src/panel-component/panel-item-render/index.ts +18 -0
- package/src/panel-component/panel-item-render/panel-item-render.controller.ts +53 -0
- package/src/panel-component/panel-item-render/panel-item-render.provider.ts +30 -0
- package/src/panel-component/panel-item-render/panel-item-render.tsx +69 -0
- package/src/panel-component/panel-rawitem/index.ts +26 -0
- package/src/panel-component/panel-rawitem/panel-rawitem.controller.ts +54 -0
- package/src/panel-component/panel-rawitem/panel-rawitem.provider.ts +28 -0
- package/src/panel-component/panel-rawitem/panel-rawitem.scss +8 -0
- package/src/panel-component/panel-rawitem/panel-rawitem.tsx +126 -0
- package/src/panel-component/panel-tab-page/index.ts +12 -0
- package/src/panel-component/panel-tab-page/panel-tab-page.provider.ts +28 -0
- package/src/panel-component/panel-tab-page/panel-tab-page.tsx +83 -0
- package/src/panel-component/scroll-container/index.ts +44 -0
- package/src/panel-component/scroll-container/scroll-container/index.ts +2 -0
- package/src/panel-component/scroll-container/scroll-container/scroll-container.controller.ts +29 -0
- package/src/panel-component/scroll-container/scroll-container/scroll-container.provider.ts +30 -0
- package/src/panel-component/scroll-container/scroll-container/scroll-container.scss +40 -0
- package/src/panel-component/scroll-container/scroll-container/scroll-container.tsx +155 -0
- package/src/panel-component/scroll-container/scroll-container-item/index.ts +2 -0
- package/src/panel-component/scroll-container/scroll-container-item/scroll-container-item.controller.ts +21 -0
- package/src/panel-component/scroll-container/scroll-container-item/scroll-container-item.provider.ts +30 -0
- package/src/panel-component/scroll-container/scroll-container-item/scroll-container-item.scss +9 -0
- package/src/panel-component/scroll-container/scroll-container-item/scroll-container-item.tsx +80 -0
- package/src/panel-component/single-data-container/index.ts +22 -0
- package/src/panel-component/single-data-container/single-data-container.controller.ts +507 -0
- package/src/panel-component/single-data-container/single-data-container.provider.ts +30 -0
- package/src/panel-component/single-data-container/single-data-container.scss +10 -0
- package/src/panel-component/single-data-container/single-data-container.state.ts +17 -0
- package/src/panel-component/single-data-container/single-data-container.tsx +124 -0
- package/src/panel-component/teleport-placeholder/index.ts +20 -0
- package/src/panel-component/teleport-placeholder/teleport-placeholder.controller.ts +54 -0
- package/src/panel-component/teleport-placeholder/teleport-placeholder.provider.ts +30 -0
- package/src/panel-component/teleport-placeholder/teleport-placeholder.scss +8 -0
- package/src/panel-component/teleport-placeholder/teleport-placeholder.state.ts +17 -0
- package/src/panel-component/teleport-placeholder/teleport-placeholder.tsx +65 -0
- package/src/plugin/index.ts +1 -0
- package/src/plugin/plugin-factory/plugin-factory.ts +519 -0
- package/src/props/common.ts +30 -0
- package/src/props/editor/array.ts +28 -0
- package/src/props/editor/autocomplete.ts +28 -0
- package/src/props/editor/cascader.ts +28 -0
- package/src/props/editor/check-box-list.ts +28 -0
- package/src/props/editor/check-box.ts +28 -0
- package/src/props/editor/code.ts +56 -0
- package/src/props/editor/color-picker.ts +28 -0
- package/src/props/editor/common.ts +120 -0
- package/src/props/editor/data-picker.ts +28 -0
- package/src/props/editor/date-picker.ts +29 -0
- package/src/props/editor/date-range-select.ts +52 -0
- package/src/props/editor/date-range.ts +29 -0
- package/src/props/editor/dropdown-list.ts +28 -0
- package/src/props/editor/html.ts +44 -0
- package/src/props/editor/index.ts +29 -0
- package/src/props/editor/input-ip.ts +28 -0
- package/src/props/editor/input-number.ts +28 -0
- package/src/props/editor/list-box.ts +28 -0
- package/src/props/editor/map-picker.ts +28 -0
- package/src/props/editor/markdown.ts +74 -0
- package/src/props/editor/number-range.ts +28 -0
- package/src/props/editor/radio-button-list.ts +28 -0
- package/src/props/editor/rate.ts +28 -0
- package/src/props/editor/raw.ts +28 -0
- package/src/props/editor/slider.ts +28 -0
- package/src/props/editor/span.ts +33 -0
- package/src/props/editor/stepper.ts +28 -0
- package/src/props/editor/switch.ts +28 -0
- package/src/props/editor/text-box.ts +28 -0
- package/src/props/editor/upload.ts +28 -0
- package/src/props/index.ts +2 -0
- package/src/types/index.d.ts +8 -0
- package/src/use/autofocus-blur/autofocus-blur.ts +31 -0
- package/src/use/click-outside/click-outside.ts +72 -0
- package/src/use/codeList-listen/codelist-listen.ts +28 -0
- package/src/use/control/index.ts +1 -0
- package/src/use/control/use-control-controller/use-control-controller.ts +186 -0
- package/src/use/event/event.ts +57 -0
- package/src/use/focus-blur/focus-blur.ts +83 -0
- package/src/use/index.ts +16 -0
- package/src/use/namespace/namespace.ts +14 -0
- package/src/use/popover/popover.ts +157 -0
- package/src/use/route/route.ts +47 -0
- package/src/use/storage/index.ts +46 -0
- package/src/use/tooltip/tooltip.ts +153 -0
- package/src/use/use-semantic-node/use-semantic-node.ts +154 -0
- package/src/use/util/index.ts +26 -0
- package/src/use/view/index.ts +2 -0
- package/src/use/view/use-view-controller/use-view-controller.ts +163 -0
- package/src/use/view/use-view-operation/use-view-operation.ts +44 -0
- package/src/use/vue/vue.ts +168 -0
- package/src/use/vue-use/computed-async.ts +151 -0
- package/src/use/vue-use/index.ts +1 -0
- package/src/util/index.ts +9 -0
- package/src/util/install.ts +14 -0
- package/src/util/overlay-container/overlay-container.ts +162 -0
- package/src/util/overlay-popover-container/overlay-popover-container.ts +30 -0
- package/src/util/overlay-view-util/overlay-view-util.ts +93 -0
- package/src/util/render/render.ts +54 -0
- package/src/util/route/route-listener.ts +91 -0
- package/src/util/route/route.ts +606 -0
- package/src/util/router-callback/router-callback-item.ts +98 -0
- package/src/util/router-callback/router-callback.ts +110 -0
- package/src/util/store/app-store/app-store.ts +10 -0
- package/src/util/store/index.ts +6 -0
- package/src/util/store/ui-store/ui-store.ts +37 -0
- package/src/util/store/ui-store/z-index.ts +53 -0
- package/src/view/app-data-upload-view/app-data-upload-view.provider.ts +31 -0
- package/src/view/app-redirect-view/app-redirect-view.tsx +26 -0
- package/src/view/common/index.ts +19 -0
- package/src/view/common/view.provider.ts +14 -0
- package/src/view/common/view.scss +39 -0
- package/src/view/common/view.tsx +285 -0
- package/src/view/de-redirect-view/de-redirect-view.provider.ts +14 -0
- package/src/view/de-redirect-view/de-redirect-view.tsx +86 -0
- package/src/view/de-redirect-view/index.ts +17 -0
- package/src/view/html-view/html-view.provider.ts +14 -0
- package/src/view/html-view/html-view.scss +7 -0
- package/src/view/html-view/html-view.tsx +86 -0
- package/src/view/html-view/index.ts +10 -0
- package/src/view/index.ts +6 -0
- package/src/view/md-custom-view/md-custom-view.provider.ts +30 -0
- package/src/view/portal-view/index.ts +18 -0
- package/src/view/portal-view/portal-view.provider.ts +14 -0
- package/src/view/portal-view/portal-view.tsx +83 -0
- package/src/view/todo-redirect/todo-redirect.tsx +51 -0
- package/es/panel-component/panel-container/panel-container.controller.d.ts +0 -21
- package/es/panel-component/panel-container/panel-container.controller.d.ts.map +0 -1
- package/es/panel-component/panel-container/panel-container.controller.mjs +0 -12
- package/es/panel-component/panel-container/panel-container.state.d.ts +0 -10
- package/es/panel-component/panel-container/panel-container.state.d.ts.map +0 -1
- package/es/panel-component/panel-container/panel-container.state.mjs +0 -7
- package/es/panel-component/panel-container-group/index.d.ts +0 -29
- package/es/panel-component/panel-container-group/index.d.ts.map +0 -1
- package/es/panel-component/panel-container-group/index.mjs +0 -21
- package/es/panel-component/panel-container-group/panel-container-group.controller.d.ts +0 -34
- package/es/panel-component/panel-container-group/panel-container-group.controller.d.ts.map +0 -1
- package/es/panel-component/panel-container-group/panel-container-group.controller.mjs +0 -31
- package/es/panel-component/panel-container-group/panel-container-group.css +0 -1
- package/es/panel-component/panel-container-group/panel-container-group.d.ts +0 -46
- package/es/panel-component/panel-container-group/panel-container-group.d.ts.map +0 -1
- package/es/panel-component/panel-container-group/panel-container-group.mjs +0 -119
- package/es/panel-component/panel-container-group/panel-container-group.provider.d.ts +0 -16
- package/es/panel-component/panel-container-group/panel-container-group.provider.d.ts.map +0 -1
- package/es/panel-component/panel-container-group/panel-container-group.provider.mjs +0 -15
- package/es/panel-component/panel-container-group/panel-container-group.state.d.ts +0 -13
- package/es/panel-component/panel-container-group/panel-container-group.state.d.ts.map +0 -1
- package/es/panel-component/panel-container-group/panel-container-group.state.mjs +0 -7
- package/es/util/control/prepare-control.d.ts +0 -15
- package/es/util/control/prepare-control.d.ts.map +0 -1
- package/es/util/control/prepare-control.mjs +0 -22
- package/lib/panel-component/panel-container/panel-container.controller.cjs +0 -14
- package/lib/panel-component/panel-container/panel-container.state.cjs +0 -9
- package/lib/panel-component/panel-container-group/index.cjs +0 -28
- package/lib/panel-component/panel-container-group/panel-container-group.cjs +0 -121
- package/lib/panel-component/panel-container-group/panel-container-group.controller.cjs +0 -33
- package/lib/panel-component/panel-container-group/panel-container-group.css +0 -1
- package/lib/panel-component/panel-container-group/panel-container-group.provider.cjs +0 -17
- package/lib/panel-component/panel-container-group/panel-container-group.state.cjs +0 -9
- package/lib/util/control/prepare-control.cjs +0 -24
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
import { IModalData } from '@ibiz-template/runtime';
|
|
2
|
+
import { Router } from 'vue-router';
|
|
3
|
+
import { RouterCallbackItem } from './router-callback-item';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* 路由打开视图回调,连通上级视图的关闭
|
|
7
|
+
*
|
|
8
|
+
* @author chitanda
|
|
9
|
+
* @date 2023-07-13 20:07:20
|
|
10
|
+
* @export
|
|
11
|
+
* @class RouterCallback
|
|
12
|
+
*/
|
|
13
|
+
export class RouterCallback {
|
|
14
|
+
/**
|
|
15
|
+
* 回调实例
|
|
16
|
+
*
|
|
17
|
+
* @author chitanda
|
|
18
|
+
* @date 2023-07-13 20:07:12
|
|
19
|
+
* @protected
|
|
20
|
+
* @type {Map<string, RouterCallbackItem>}
|
|
21
|
+
*/
|
|
22
|
+
protected map: Map<string, RouterCallbackItem> = new Map();
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* 打开视图
|
|
26
|
+
*
|
|
27
|
+
* @author chitanda
|
|
28
|
+
* @date 2023-07-13 20:07:13
|
|
29
|
+
* @param {Router} router
|
|
30
|
+
* @param {string} path
|
|
31
|
+
* @return {*} {Promise<IModalData>}
|
|
32
|
+
*/
|
|
33
|
+
async open(
|
|
34
|
+
router: Router,
|
|
35
|
+
path: string,
|
|
36
|
+
modalOptions: IData = {},
|
|
37
|
+
): Promise<IModalData> {
|
|
38
|
+
const from = router.currentRoute.value.fullPath;
|
|
39
|
+
if (modalOptions.replace) {
|
|
40
|
+
router.replace({ path });
|
|
41
|
+
} else {
|
|
42
|
+
router.push({ path });
|
|
43
|
+
}
|
|
44
|
+
const to = path;
|
|
45
|
+
if (this.map.has(to)) {
|
|
46
|
+
const item = this.map.get(to)!;
|
|
47
|
+
return item.onWillDismiss();
|
|
48
|
+
}
|
|
49
|
+
const item = new RouterCallbackItem(from, to);
|
|
50
|
+
this.map.set(to, item);
|
|
51
|
+
this.scheduledDestruction(item);
|
|
52
|
+
return item.onWillDismiss();
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* 关闭视图回调
|
|
57
|
+
*
|
|
58
|
+
* @author chitanda
|
|
59
|
+
* @date 2023-07-13 20:07:38
|
|
60
|
+
* @param {string} toFullPath
|
|
61
|
+
* @param {IModalData} modal
|
|
62
|
+
*/
|
|
63
|
+
close(toFullPath: string, modal: IModalData): void {
|
|
64
|
+
const item = this.map.get(toFullPath);
|
|
65
|
+
if (item) {
|
|
66
|
+
window.clearTimeout(item.timeout);
|
|
67
|
+
item.timeout = undefined;
|
|
68
|
+
item.close(modal);
|
|
69
|
+
this.map.delete(toFullPath);
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* 激活回调
|
|
75
|
+
*
|
|
76
|
+
* @author chitanda
|
|
77
|
+
* @date 2023-07-13 21:07:03
|
|
78
|
+
* @param {string} toFullPath
|
|
79
|
+
*/
|
|
80
|
+
active(toFullPath: string): void {
|
|
81
|
+
const item = this.map.get(toFullPath);
|
|
82
|
+
if (item) {
|
|
83
|
+
window.clearTimeout(item.timeout);
|
|
84
|
+
item.timeout = undefined;
|
|
85
|
+
item.active();
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
/**
|
|
90
|
+
* 十分钟内未激活的视图回调会被清除
|
|
91
|
+
*
|
|
92
|
+
* @author chitanda
|
|
93
|
+
* @date 2023-07-13 21:07:57
|
|
94
|
+
* @protected
|
|
95
|
+
* @param {RouterCallbackItem} item
|
|
96
|
+
*/
|
|
97
|
+
protected scheduledDestruction(item: RouterCallbackItem): void {
|
|
98
|
+
item.timeout = window.setTimeout(
|
|
99
|
+
() => {
|
|
100
|
+
item.timeout = undefined;
|
|
101
|
+
item.destroy();
|
|
102
|
+
this.map.delete(item.to);
|
|
103
|
+
},
|
|
104
|
+
10 * 60 * 1000,
|
|
105
|
+
);
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
// 路由打开视图回调,连通上级视图的关闭工具类
|
|
110
|
+
export const routerCallback = new RouterCallback();
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/* eslint-disable no-restricted-syntax */
|
|
2
|
+
import { defineStore } from 'pinia';
|
|
3
|
+
import { reactive, Ref } from 'vue';
|
|
4
|
+
import { useZIndexStore } from './z-index';
|
|
5
|
+
|
|
6
|
+
export interface IUIState {
|
|
7
|
+
/**
|
|
8
|
+
* ui层级
|
|
9
|
+
*
|
|
10
|
+
* @author lxm
|
|
11
|
+
* @date 2022-08-18 21:08:48
|
|
12
|
+
* @type {number}
|
|
13
|
+
*/
|
|
14
|
+
zIndex: Ref<number>;
|
|
15
|
+
|
|
16
|
+
theme: string;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export const useUIStore = defineStore('uiStore', () => {
|
|
20
|
+
const zIndex = useZIndexStore();
|
|
21
|
+
|
|
22
|
+
const getTheme = () => {
|
|
23
|
+
const themeTag = ibiz.util.theme.getTheme();
|
|
24
|
+
return themeTag.includes('dark') ? 'dark' : 'light';
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
const UIStore = reactive<IUIState>({
|
|
28
|
+
zIndex: zIndex.zIndex,
|
|
29
|
+
theme: getTheme(),
|
|
30
|
+
});
|
|
31
|
+
|
|
32
|
+
ibiz.util.theme.evt.on('onChange', () => {
|
|
33
|
+
UIStore.theme = getTheme();
|
|
34
|
+
});
|
|
35
|
+
|
|
36
|
+
return { UIStore, zIndex };
|
|
37
|
+
});
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { Ref, ref } from 'vue';
|
|
2
|
+
|
|
3
|
+
export interface IzIndexStore {
|
|
4
|
+
/**
|
|
5
|
+
* 当前最高的ui层级
|
|
6
|
+
*
|
|
7
|
+
* @author lxm
|
|
8
|
+
* @date 2022-08-18 21:08:48
|
|
9
|
+
* @type {number}
|
|
10
|
+
*/
|
|
11
|
+
zIndex: Ref<number>;
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* 增加Ui层级,返回增加后的层级
|
|
15
|
+
*
|
|
16
|
+
* @author lxm
|
|
17
|
+
* @date 2022-08-18 21:08:22
|
|
18
|
+
*/
|
|
19
|
+
increment(): number;
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* 减少Ui层级
|
|
23
|
+
*
|
|
24
|
+
* @author lxm
|
|
25
|
+
* @date 2022-08-18 21:08:22
|
|
26
|
+
*/
|
|
27
|
+
decrement(): void;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* 定义zIndex的全局状态变量
|
|
32
|
+
*
|
|
33
|
+
* @author lxm
|
|
34
|
+
* @date 2022-08-18 21:08:26
|
|
35
|
+
* @export
|
|
36
|
+
* @returns {*}
|
|
37
|
+
*/
|
|
38
|
+
export function useZIndexStore(): IzIndexStore {
|
|
39
|
+
const DEFAULT_INDEX = 500;
|
|
40
|
+
const INCREMENT_VALUE = 1;
|
|
41
|
+
const zIndex = ref(DEFAULT_INDEX);
|
|
42
|
+
|
|
43
|
+
function increment(): number {
|
|
44
|
+
zIndex.value += INCREMENT_VALUE;
|
|
45
|
+
return zIndex.value;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
function decrement() {
|
|
49
|
+
zIndex.value -= INCREMENT_VALUE;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
return { zIndex, increment, decrement };
|
|
53
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import {
|
|
2
|
+
AppDataUploadViewController,
|
|
3
|
+
CTX,
|
|
4
|
+
IViewController,
|
|
5
|
+
IViewEvent,
|
|
6
|
+
IViewProvider,
|
|
7
|
+
IViewState,
|
|
8
|
+
} from '@ibiz-template/runtime';
|
|
9
|
+
import { IAppView } from '@ibiz/model-core';
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* 应用导入视图适配器
|
|
13
|
+
*
|
|
14
|
+
* @author lxm
|
|
15
|
+
* @date 2022-10-25 18:10:57
|
|
16
|
+
* @export
|
|
17
|
+
* @class ViewProvider
|
|
18
|
+
* @implements {IViewProvider}
|
|
19
|
+
*/
|
|
20
|
+
export class AppDataUploadViewProvider implements IViewProvider {
|
|
21
|
+
component: string = 'IBizView';
|
|
22
|
+
|
|
23
|
+
createController(
|
|
24
|
+
model: IAppView,
|
|
25
|
+
context: IContext,
|
|
26
|
+
params?: IParams | undefined,
|
|
27
|
+
ctx?: CTX<IViewController<IAppView, IViewState, IViewEvent>> | undefined,
|
|
28
|
+
): IViewController<IAppView, IViewState, IViewEvent> {
|
|
29
|
+
return new AppDataUploadViewController(model, context, params, ctx);
|
|
30
|
+
}
|
|
31
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { defineComponent, onMounted, onUnmounted } from 'vue';
|
|
2
|
+
import { IBizContext } from '@ibiz-template/core';
|
|
3
|
+
import { toLocalOpenWFRedirectView } from '@ibiz-template/runtime';
|
|
4
|
+
|
|
5
|
+
export const AppRedirectView = defineComponent({
|
|
6
|
+
setup() {
|
|
7
|
+
const context = IBizContext.create(ibiz.appData?.context || {});
|
|
8
|
+
|
|
9
|
+
onUnmounted(() => {
|
|
10
|
+
context.destroy();
|
|
11
|
+
});
|
|
12
|
+
|
|
13
|
+
const { href } = window.location;
|
|
14
|
+
|
|
15
|
+
async function toRedirect(): Promise<void> {
|
|
16
|
+
await toLocalOpenWFRedirectView(context, href);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
onMounted(() => ibiz.util.hiddenAppLoading());
|
|
20
|
+
|
|
21
|
+
toRedirect();
|
|
22
|
+
},
|
|
23
|
+
render() {
|
|
24
|
+
return <div>{ibiz.i18n.t('vue3Util.view.redirectionProgress')}</div>;
|
|
25
|
+
},
|
|
26
|
+
});
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { App } from 'vue';
|
|
2
|
+
import { registerViewProvider } from '@ibiz-template/runtime';
|
|
3
|
+
import { withInstall } from '../../util';
|
|
4
|
+
import { ViewProvider } from './view.provider';
|
|
5
|
+
import { View } from './view';
|
|
6
|
+
import { AppDataUploadViewProvider } from '../app-data-upload-view/app-data-upload-view.provider';
|
|
7
|
+
import { MDCustomViewProvider } from '../md-custom-view/md-custom-view.provider';
|
|
8
|
+
|
|
9
|
+
export const IBizView = withInstall(View, function (v: App) {
|
|
10
|
+
v.component(View.name!, View);
|
|
11
|
+
registerViewProvider('DEFAULT', () => new ViewProvider());
|
|
12
|
+
// 注册应用导入视图适配器
|
|
13
|
+
registerViewProvider(
|
|
14
|
+
'APPDATAUPLOADVIEW',
|
|
15
|
+
() => new AppDataUploadViewProvider(),
|
|
16
|
+
);
|
|
17
|
+
// 注册实体多数据自定义视图适配器
|
|
18
|
+
registerViewProvider('DEMDCUSTOMVIEW', () => new MDCustomViewProvider());
|
|
19
|
+
});
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { IViewProvider } from '@ibiz-template/runtime';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* 视图适配器
|
|
5
|
+
*
|
|
6
|
+
* @author lxm
|
|
7
|
+
* @date 2022-10-25 18:10:57
|
|
8
|
+
* @export
|
|
9
|
+
* @class ViewProvider
|
|
10
|
+
* @implements {IViewProvider}
|
|
11
|
+
*/
|
|
12
|
+
export class ViewProvider implements IViewProvider {
|
|
13
|
+
component: string = 'IBizView';
|
|
14
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
// 视图样式
|
|
2
|
+
$view: (
|
|
3
|
+
bg-color: getCssVar(color, bg, 1), // 视图背景色
|
|
4
|
+
border-radius: getCssVar(border-radius, medium), // 视图圆角
|
|
5
|
+
);
|
|
6
|
+
|
|
7
|
+
// 视图默认撑满父容器
|
|
8
|
+
@include b(view) {
|
|
9
|
+
@include set-component-css-var(view, $view);
|
|
10
|
+
|
|
11
|
+
width: 100%;
|
|
12
|
+
height: 100%;
|
|
13
|
+
|
|
14
|
+
.#{bem(view)} {
|
|
15
|
+
background-color: getCssVar(view, bg-color);
|
|
16
|
+
border-radius: getCssVar(view, border-radius);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
// 看板视图样式
|
|
20
|
+
@include b(view-appportalview){
|
|
21
|
+
background-color: transparent;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
&.has-top-message,&.has-bottom-message{
|
|
25
|
+
@include flex(column);
|
|
26
|
+
|
|
27
|
+
// 视图消息不压缩
|
|
28
|
+
> .#{bem(view-message)}{
|
|
29
|
+
flex-grow: 0;
|
|
30
|
+
flex-shrink: 0;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
// 视图面板自适应
|
|
34
|
+
> .#{bem(control-viewlayoutpanel)}{
|
|
35
|
+
flex-grow: 1;
|
|
36
|
+
flex-shrink: 1;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
@@ -0,0 +1,285 @@
|
|
|
1
|
+
import {
|
|
2
|
+
getControlsByView,
|
|
3
|
+
getCtrlTeleportParams,
|
|
4
|
+
getErrorViewProvider,
|
|
5
|
+
IModal,
|
|
6
|
+
IViewLayoutPanelController,
|
|
7
|
+
IViewProvider,
|
|
8
|
+
ViewController,
|
|
9
|
+
} from '@ibiz-template/runtime';
|
|
10
|
+
import { IAppView, IControl } from '@ibiz/model-core';
|
|
11
|
+
import {
|
|
12
|
+
defineComponent,
|
|
13
|
+
h,
|
|
14
|
+
PropType,
|
|
15
|
+
resolveComponent,
|
|
16
|
+
VNode,
|
|
17
|
+
computed,
|
|
18
|
+
renderSlot,
|
|
19
|
+
Teleport,
|
|
20
|
+
onMounted,
|
|
21
|
+
onBeforeUnmount,
|
|
22
|
+
nextTick,
|
|
23
|
+
} from 'vue';
|
|
24
|
+
import './view.scss';
|
|
25
|
+
import { useNamespace, useViewController, useViewOperation } from '../../use';
|
|
26
|
+
|
|
27
|
+
export const View = defineComponent({
|
|
28
|
+
name: 'IBizView',
|
|
29
|
+
props: {
|
|
30
|
+
/**
|
|
31
|
+
* @description 应用上下文
|
|
32
|
+
*/
|
|
33
|
+
context: { type: Object as PropType<IContext> },
|
|
34
|
+
/**
|
|
35
|
+
* @description 视图参数
|
|
36
|
+
* @default {}
|
|
37
|
+
*/
|
|
38
|
+
params: { type: Object as PropType<IParams>, default: () => ({}) },
|
|
39
|
+
/**
|
|
40
|
+
* @description 视图模型
|
|
41
|
+
*/
|
|
42
|
+
modelData: { type: Object as PropType<IAppView>, required: true },
|
|
43
|
+
/**
|
|
44
|
+
* @description 视图模态操作对象,在模态等形式打开视图时,需给视图注入此对象
|
|
45
|
+
*/
|
|
46
|
+
modal: { type: Object as PropType<IModal> },
|
|
47
|
+
/**
|
|
48
|
+
* @description 视图状态
|
|
49
|
+
*/
|
|
50
|
+
state: { type: Object as PropType<IData> },
|
|
51
|
+
/**
|
|
52
|
+
* @description 视图适配器
|
|
53
|
+
*/
|
|
54
|
+
provider: { type: Object as PropType<IViewProvider> },
|
|
55
|
+
},
|
|
56
|
+
setup(_props, { slots }) {
|
|
57
|
+
const ns = useNamespace('view');
|
|
58
|
+
const c = useViewController((...args) => new ViewController(...args));
|
|
59
|
+
// 监听视图用户操作
|
|
60
|
+
useViewOperation(c);
|
|
61
|
+
// 视图部件模型在viewlayoutPanel里面。
|
|
62
|
+
const allControls = getControlsByView(c.model);
|
|
63
|
+
const teleportControls: IControl[] = [];
|
|
64
|
+
const teleportTags = new Map<string, string>();
|
|
65
|
+
const controls: IControl[] = [];
|
|
66
|
+
|
|
67
|
+
allControls.forEach(ctrl => {
|
|
68
|
+
const { teleportFlag, teleportTag } = getCtrlTeleportParams(ctrl);
|
|
69
|
+
// 配置了tag或者flag,则认为是teleport部件
|
|
70
|
+
if (!!teleportTag || teleportFlag) {
|
|
71
|
+
teleportControls.push(ctrl);
|
|
72
|
+
teleportTags.set(ctrl.id!, teleportTag || '');
|
|
73
|
+
} else {
|
|
74
|
+
controls.push(ctrl);
|
|
75
|
+
}
|
|
76
|
+
});
|
|
77
|
+
|
|
78
|
+
const getCtrlTeleportTag = (ctrl: IControl): string | undefined => {
|
|
79
|
+
const tag = teleportTags.get(ctrl.id!);
|
|
80
|
+
if (tag) {
|
|
81
|
+
return tag;
|
|
82
|
+
}
|
|
83
|
+
const placeholderC = c.parentView?.layoutPanel?.panelItems[ctrl.name!];
|
|
84
|
+
if (placeholderC) {
|
|
85
|
+
return `#${(placeholderC.state as IData).teleportTag}`;
|
|
86
|
+
}
|
|
87
|
+
};
|
|
88
|
+
|
|
89
|
+
const { viewType, sysCss, codeName } = c.model;
|
|
90
|
+
const typeClass = viewType!.toLowerCase();
|
|
91
|
+
const sysCssName = sysCss?.cssName;
|
|
92
|
+
const viewClassNames = computed(() => [
|
|
93
|
+
ns.b(),
|
|
94
|
+
true && ns.b(typeClass),
|
|
95
|
+
true && ns.m(codeName),
|
|
96
|
+
true && sysCssName,
|
|
97
|
+
c.state.viewMessages.TOP ? 'has-top-message' : '',
|
|
98
|
+
c.state.viewMessages.BOTTOM ? 'has-bottom-message' : '',
|
|
99
|
+
c.state.presetClassList,
|
|
100
|
+
]);
|
|
101
|
+
|
|
102
|
+
const onLayoutPanelCreated = (
|
|
103
|
+
controller: IViewLayoutPanelController,
|
|
104
|
+
): void => {
|
|
105
|
+
c.setLayoutPanel(controller as IViewLayoutPanelController);
|
|
106
|
+
};
|
|
107
|
+
|
|
108
|
+
const getControlStyle = () => {
|
|
109
|
+
const result = {};
|
|
110
|
+
Object.assign(result, {
|
|
111
|
+
display: c.state.hasError ? 'none' : 'initial',
|
|
112
|
+
});
|
|
113
|
+
return result;
|
|
114
|
+
};
|
|
115
|
+
|
|
116
|
+
/**
|
|
117
|
+
* 获取部件绘制的props
|
|
118
|
+
* @author lxm
|
|
119
|
+
* @date 2024-03-27 01:39:30
|
|
120
|
+
* @param {IControl} ctrl
|
|
121
|
+
* @return {*} {IParams}
|
|
122
|
+
*/
|
|
123
|
+
const getCtrlProps = (ctrl: IControl, slotProps: IData = {}): IParams => {
|
|
124
|
+
const slotKey = ctrl.name! || ctrl.id!;
|
|
125
|
+
return {
|
|
126
|
+
context: c.context,
|
|
127
|
+
params: c.params,
|
|
128
|
+
modelData: ctrl,
|
|
129
|
+
...(c.slotProps[slotKey] || {}),
|
|
130
|
+
...slotProps,
|
|
131
|
+
};
|
|
132
|
+
};
|
|
133
|
+
|
|
134
|
+
/**
|
|
135
|
+
* 绘制部件
|
|
136
|
+
* @author lxm
|
|
137
|
+
* @date 2024-03-27 01:45:21
|
|
138
|
+
* @param {IControl} ctrl
|
|
139
|
+
* @return {*} {VNode}
|
|
140
|
+
*/
|
|
141
|
+
const renderControl = (ctrl: IControl, slotProps: IData = {}): VNode => {
|
|
142
|
+
const slotKey = ctrl.name! || ctrl.id!;
|
|
143
|
+
const ctrlProps = getCtrlProps(ctrl, slotProps);
|
|
144
|
+
if (slots[slotKey]) {
|
|
145
|
+
return renderSlot(slots, slotKey, ctrlProps);
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
const provider = c.providers[slotKey];
|
|
149
|
+
const comp = resolveComponent(
|
|
150
|
+
provider?.component || 'IBizControlShell',
|
|
151
|
+
) as string;
|
|
152
|
+
if (provider) {
|
|
153
|
+
ctrlProps.provider = provider;
|
|
154
|
+
}
|
|
155
|
+
return h(comp, ctrlProps);
|
|
156
|
+
};
|
|
157
|
+
|
|
158
|
+
// 水印销毁方法
|
|
159
|
+
let watermarkDestroy: void | null | (() => void);
|
|
160
|
+
onMounted(() => {
|
|
161
|
+
nextTick(async () => {
|
|
162
|
+
const container = document.getElementById(c.id);
|
|
163
|
+
const appView: IData = await ibiz.hub.config.view.get(c.model.id!);
|
|
164
|
+
if (!container || !appView?.waterMarkOption) return;
|
|
165
|
+
|
|
166
|
+
// 挂载视图水印
|
|
167
|
+
watermarkDestroy = ibiz.util.watermark.mount(
|
|
168
|
+
appView.waterMarkOption,
|
|
169
|
+
container,
|
|
170
|
+
c.context,
|
|
171
|
+
c.params,
|
|
172
|
+
c.state.srfactiveviewdata || {},
|
|
173
|
+
);
|
|
174
|
+
});
|
|
175
|
+
});
|
|
176
|
+
|
|
177
|
+
onBeforeUnmount(() => {
|
|
178
|
+
watermarkDestroy?.();
|
|
179
|
+
});
|
|
180
|
+
|
|
181
|
+
return {
|
|
182
|
+
c,
|
|
183
|
+
ns,
|
|
184
|
+
controls,
|
|
185
|
+
teleportControls,
|
|
186
|
+
viewClassNames,
|
|
187
|
+
onLayoutPanelCreated,
|
|
188
|
+
getCtrlProps,
|
|
189
|
+
renderControl,
|
|
190
|
+
getCtrlTeleportTag,
|
|
191
|
+
getControlStyle,
|
|
192
|
+
};
|
|
193
|
+
},
|
|
194
|
+
render() {
|
|
195
|
+
let layoutPanel = null;
|
|
196
|
+
if (this.c.state.isCreated) {
|
|
197
|
+
if (this.c.engines.length === 0) {
|
|
198
|
+
layoutPanel = (
|
|
199
|
+
<span style={'color:red;'}>
|
|
200
|
+
{ibiz.i18n.t('vue3Util.view.viewType', {
|
|
201
|
+
viewType: this.modelData.viewType,
|
|
202
|
+
})}
|
|
203
|
+
</span>
|
|
204
|
+
);
|
|
205
|
+
} else {
|
|
206
|
+
// 绘制部件插槽,外部插槽优先
|
|
207
|
+
const slots: IData = {
|
|
208
|
+
...this.$slots,
|
|
209
|
+
};
|
|
210
|
+
if (this.controls?.length) {
|
|
211
|
+
this.controls.forEach(ctrl => {
|
|
212
|
+
const slotKey = ctrl.name! || ctrl.id!;
|
|
213
|
+
slots[slotKey] = (slotProps: IData): VNode => {
|
|
214
|
+
return this.renderControl(ctrl, slotProps);
|
|
215
|
+
};
|
|
216
|
+
});
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
// 绘制视图布局面板
|
|
220
|
+
const viewLayoutPanel = this.c.model.viewLayoutPanel!;
|
|
221
|
+
const provider = this.c.providers[viewLayoutPanel.name!];
|
|
222
|
+
layoutPanel = h(
|
|
223
|
+
resolveComponent(provider.component) as string,
|
|
224
|
+
{
|
|
225
|
+
modelData: viewLayoutPanel,
|
|
226
|
+
context: this.c.context,
|
|
227
|
+
params: this.c.params,
|
|
228
|
+
provider,
|
|
229
|
+
container: this.c,
|
|
230
|
+
style: this.getControlStyle(),
|
|
231
|
+
onControllerAppear: this.onLayoutPanelCreated,
|
|
232
|
+
},
|
|
233
|
+
slots,
|
|
234
|
+
);
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
// 绘制teleport部件
|
|
239
|
+
let teleportContent = null;
|
|
240
|
+
if (this.c.state.isCreated && this.teleportControls?.length) {
|
|
241
|
+
teleportContent = this.teleportControls.map(ctrl => {
|
|
242
|
+
const tag = this.getCtrlTeleportTag(ctrl);
|
|
243
|
+
if (!tag) {
|
|
244
|
+
ibiz.log.error(
|
|
245
|
+
ibiz.i18n.t('vue3Util.view.noTeleportTag', {
|
|
246
|
+
name: ctrl.name,
|
|
247
|
+
}),
|
|
248
|
+
);
|
|
249
|
+
return null;
|
|
250
|
+
}
|
|
251
|
+
return (
|
|
252
|
+
<div style={this.getControlStyle()}>
|
|
253
|
+
<Teleport to={tag} disabled={!this.c.state.activated}>
|
|
254
|
+
{this.renderControl(ctrl)}
|
|
255
|
+
</Teleport>
|
|
256
|
+
</div>
|
|
257
|
+
);
|
|
258
|
+
});
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
// 绘制错误页面
|
|
262
|
+
let errorContent = null;
|
|
263
|
+
if (this.c.state.hasError && this.c.error.status) {
|
|
264
|
+
const provider = getErrorViewProvider(this.c.error.status);
|
|
265
|
+
if (provider) {
|
|
266
|
+
if (typeof provider.component === 'string') {
|
|
267
|
+
errorContent = h(resolveComponent(provider.component) as string);
|
|
268
|
+
}
|
|
269
|
+
errorContent = h(provider.component);
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
return (
|
|
273
|
+
<div
|
|
274
|
+
class={this.viewClassNames}
|
|
275
|
+
id={this.c.id}
|
|
276
|
+
v-loading={this.c.state.isLoading}
|
|
277
|
+
element-loading-text={this.c.state.loadingText}
|
|
278
|
+
>
|
|
279
|
+
{layoutPanel}
|
|
280
|
+
{teleportContent}
|
|
281
|
+
{errorContent}
|
|
282
|
+
</div>
|
|
283
|
+
);
|
|
284
|
+
},
|
|
285
|
+
});
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { IViewProvider } from '@ibiz-template/runtime';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* 实体重定向视图适配器
|
|
5
|
+
*
|
|
6
|
+
* @author lxm
|
|
7
|
+
* @date 2022-10-25 18:10:57
|
|
8
|
+
* @export
|
|
9
|
+
* @class ViewProvider
|
|
10
|
+
* @implements {IViewProvider}
|
|
11
|
+
*/
|
|
12
|
+
export class DeRedirectViewProvider implements IViewProvider {
|
|
13
|
+
component: string = 'IBizDeRedirectView';
|
|
14
|
+
}
|