@ibiz-template/vue3-util 0.7.41-alpha.4 → 0.7.41-alpha.40
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 +5 -5
- package/es/common/badge/badge.d.ts.map +1 -1
- package/es/common/badge/badge.mjs +1 -1
- package/es/common/code-list/code-list.d.ts +8 -8
- 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.css +1 -1
- package/es/common/control-base/control-base.d.ts +1 -0
- package/es/common/control-base/control-base.d.ts.map +1 -1
- package/es/common/control-base/control-base.mjs +39 -5
- 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/custom-render/custom-render.mjs +2 -2
- package/es/common/icon/icon.d.ts +4 -4
- package/es/common/icon/icon.d.ts.map +1 -1
- 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 +43 -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 +5 -5
- package/es/control/panel/panel/panel.d.ts.map +1 -1
- package/es/control/panel/panel/panel.mjs +12 -1
- 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 +6 -6
- 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 +13 -2
- package/es/index.mjs +5 -5
- 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/panel-component/auth-wxmp-qrcode/auth-wxmp-qrcode.css +1 -1
- package/es/panel-component/auth-wxmp-qrcode/auth-wxmp-qrcode.d.ts +4 -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 +1 -1
- package/es/panel-component/auth-wxmp-qrcode/index.d.ts +4 -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 +6 -6
- package/es/panel-component/grid-container/grid-container.d.ts.map +1 -1
- package/es/panel-component/grid-container/grid-container.mjs +3 -3
- 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 +6 -6
- package/es/panel-component/grid-container/index.d.ts.map +1 -1
- package/es/panel-component/index.mjs +1 -2
- package/es/panel-component/multi-data-container/index.d.ts +4 -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 +3 -3
- 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 +12 -5
- package/es/panel-component/multi-data-container/multi-data-container.d.ts +5 -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 +3 -3
- 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 +4 -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 +3 -3
- 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 +2 -2
- package/es/panel-component/multi-data-container-raw/multi-data-container-raw.d.ts +5 -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 +3 -3
- 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 +5 -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 +6 -6
- package/es/panel-component/nav-pos/nav-pos.d.ts.map +1 -1
- package/es/panel-component/nav-pos/nav-pos.mjs +2 -2
- package/es/panel-component/panel-container/index.d.ts +5 -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 +5 -5
- package/es/panel-component/panel-container/panel-container.d.ts.map +1 -1
- package/es/panel-component/panel-container/panel-container.mjs +34 -8
- 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-group/index.d.ts +5 -5
- package/es/panel-component/panel-container-group/index.d.ts.map +1 -1
- package/es/panel-component/panel-container-group/panel-container-group.controller.d.ts +3 -3
- package/es/panel-component/panel-container-group/panel-container-group.controller.d.ts.map +1 -1
- package/es/panel-component/panel-container-group/panel-container-group.controller.mjs +2 -2
- package/es/panel-component/panel-container-group/panel-container-group.css +1 -1
- package/es/panel-component/panel-container-group/panel-container-group.d.ts +5 -5
- package/es/panel-component/panel-container-group/panel-container-group.d.ts.map +1 -1
- package/es/panel-component/panel-container-group/panel-container-group.mjs +12 -10
- package/es/panel-component/panel-container-group/panel-container-group.state.d.ts +3 -3
- package/es/panel-component/panel-container-group/panel-container-group.state.d.ts.map +1 -1
- package/es/panel-component/panel-container-group/panel-container-group.state.mjs +2 -2
- package/es/panel-component/panel-container-image/index.d.ts +4 -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 +4 -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 +4 -6
- 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 +4 -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 +4 -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 +1 -1
- package/es/panel-component/panel-ctrl-view-page-caption/index.d.ts +4 -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 +5 -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 +4 -5
- package/es/panel-component/panel-field/index.d.ts +4 -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 +34 -3
- package/es/panel-component/panel-field/panel-field.css +1 -1
- package/es/panel-component/panel-field/panel-field.d.ts +4 -4
- package/es/panel-component/panel-field/panel-field.d.ts.map +1 -1
- package/es/panel-component/panel-field/panel-field.mjs +3 -5
- package/es/panel-component/panel-item-render/index.d.ts +4 -4
- package/es/panel-component/panel-item-render/index.d.ts.map +1 -1
- package/es/panel-component/panel-item-render/panel-item-render.d.ts +4 -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 +3 -2
- package/es/panel-component/panel-rawitem/index.d.ts +6 -6
- package/es/panel-component/panel-rawitem/index.d.ts.map +1 -1
- package/es/panel-component/panel-rawitem/panel-rawitem.d.ts +6 -6
- package/es/panel-component/panel-rawitem/panel-rawitem.d.ts.map +1 -1
- package/es/panel-component/panel-rawitem/panel-rawitem.mjs +3 -6
- package/es/panel-component/panel-tab-page/index.d.ts +6 -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 +8 -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 +5 -5
- 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 +4 -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 +4 -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 +3 -3
- 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 +4 -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 +3 -3
- package/es/panel-component/single-data-container/index.d.ts +4 -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 +3 -3
- 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 +2 -2
- package/es/panel-component/single-data-container/single-data-container.d.ts +5 -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 +3 -3
- 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 +5 -5
- package/es/panel-component/teleport-placeholder/index.d.ts.map +1 -1
- package/es/panel-component/teleport-placeholder/teleport-placeholder.d.ts +6 -5
- package/es/panel-component/teleport-placeholder/teleport-placeholder.d.ts.map +1 -1
- package/es/panel-component/teleport-placeholder/teleport-placeholder.mjs +1 -1
- package/es/panel-component/teleport-placeholder/teleport-placeholder.state.d.ts +1 -1
- package/es/panel-component/teleport-placeholder/teleport-placeholder.state.mjs +1 -1
- package/es/plugin/plugin-factory/plugin-factory.d.ts +13 -12
- package/es/plugin/plugin-factory/plugin-factory.d.ts.map +1 -1
- package/es/plugin/plugin-factory/plugin-factory.mjs +24 -18
- package/es/use/index.d.ts +1 -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/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/use/vue-use/computed-async.d.ts +51 -0
- package/es/use/vue-use/computed-async.d.ts.map +1 -0
- package/es/use/vue-use/computed-async.mjs +66 -0
- package/es/use/vue-use/index.d.ts +2 -0
- package/es/use/vue-use/index.d.ts.map +1 -0
- package/es/use/vue-use/index.mjs +3 -0
- 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/render/render.d.ts.map +1 -1
- package/es/util/render/render.mjs +4 -1
- package/es/util/route/route.d.ts.map +1 -1
- package/es/util/route/route.mjs +19 -4
- 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/index.mjs +2 -0
- 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 +15 -2
- 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 +8 -16
- package/es/view/html-view/index.d.ts +7 -8
- package/es/view/html-view/index.d.ts.map +1 -1
- package/es/view/md-custom-view/md-custom-view.provider.d.ts +13 -0
- package/es/view/md-custom-view/md-custom-view.provider.d.ts.map +1 -0
- package/es/view/md-custom-view/md-custom-view.provider.mjs +13 -0
- 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 +1 -1
- package/lib/common/badge/badge.css +1 -1
- package/lib/common/control-base/control-base.cjs +37 -3
- package/lib/common/control-base/control-base.css +1 -1
- package/lib/common/custom-render/custom-render.cjs +1 -1
- 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 +41 -21
- package/lib/control/panel/panel/panel.cjs +12 -1
- package/lib/control/panel/view-layout-panel/view-layout-panel.cjs +12 -1
- package/lib/index.cjs +15 -6
- package/lib/locale/en/index.cjs +2 -1
- package/lib/locale/zh-CN/index.cjs +2 -1
- package/lib/panel-component/auth-wxmp-qrcode/auth-wxmp-qrcode.css +1 -1
- package/lib/panel-component/grid-container/grid-container.cjs +2 -2
- 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 +9 -4
- package/lib/panel-component/multi-data-container/multi-data-container.cjs +2 -2
- package/lib/panel-component/multi-data-container/multi-data-container.controller.cjs +11 -4
- 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 +2 -2
- package/lib/panel-component/multi-data-container-raw/multi-data-container-raw.controller.cjs +1 -1
- package/lib/panel-component/multi-data-container-raw/multi-data-container-raw.state.cjs +1 -1
- package/lib/panel-component/panel-container/index.cjs +8 -4
- package/lib/panel-component/panel-container/panel-container.cjs +34 -8
- package/lib/panel-component/panel-container/panel-container.provider.cjs +2 -2
- package/lib/panel-component/panel-container-group/panel-container-group.cjs +11 -9
- package/lib/panel-component/panel-container-group/panel-container-group.controller.cjs +1 -1
- package/lib/panel-component/panel-container-group/panel-container-group.css +1 -1
- package/lib/panel-component/panel-container-group/panel-container-group.state.cjs +1 -1
- package/lib/panel-component/panel-container-image/panel-container-image.cjs +3 -5
- 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-view-page-caption/panel-ctrl-view-page-caption.cjs +3 -4
- 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 +2 -4
- package/lib/panel-component/panel-field/panel-field.controller.cjs +34 -3
- package/lib/panel-component/panel-field/panel-field.css +1 -1
- package/lib/panel-component/panel-item-render/panel-item-render.cjs +2 -1
- package/lib/panel-component/panel-rawitem/panel-rawitem.cjs +2 -5
- package/lib/panel-component/panel-tab-page/panel-tab-page.cjs +3 -3
- 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 +2 -2
- 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 +2 -2
- 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 +2 -2
- package/lib/panel-component/single-data-container/single-data-container.controller.cjs +1 -1
- package/lib/panel-component/single-data-container/single-data-container.state.cjs +1 -1
- package/lib/panel-component/teleport-placeholder/teleport-placeholder.state.cjs +1 -1
- package/lib/plugin/plugin-factory/plugin-factory.cjs +24 -18
- package/lib/use/index.cjs +5 -0
- package/lib/use/popover/popover.cjs +8 -0
- package/lib/use/storage/index.cjs +16 -11
- package/lib/use/vue/vue.cjs +14 -0
- package/lib/use/vue-use/computed-async.cjs +68 -0
- package/lib/use/vue-use/index.cjs +7 -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/render/render.cjs +4 -1
- package/lib/util/route/route.cjs +19 -4
- package/lib/view/common/index.cjs +2 -0
- package/lib/view/common/view.cjs +13 -0
- package/lib/view/html-view/html-view.cjs +6 -14
- package/lib/view/md-custom-view/md-custom-view.provider.cjs +15 -0
- package/package.json +7 -7
- 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/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/util/control/prepare-control.cjs +0 -24
|
@@ -10,7 +10,7 @@ import './single-data-container.scss';
|
|
|
10
10
|
* @param {*} props
|
|
11
11
|
* @return {*}
|
|
12
12
|
*/
|
|
13
|
-
export declare const SingleDataContainer: import("vue").DefineComponent<{
|
|
13
|
+
export declare const SingleDataContainer: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
14
14
|
/**
|
|
15
15
|
* @description 单项数据容器模型
|
|
16
16
|
*/
|
|
@@ -25,7 +25,7 @@ export declare const SingleDataContainer: import("vue").DefineComponent<{
|
|
|
25
25
|
type: typeof SingleDataContainerController;
|
|
26
26
|
required: true;
|
|
27
27
|
};
|
|
28
|
-
}
|
|
28
|
+
}>, {
|
|
29
29
|
ns: import("@ibiz-template/core").Namespace;
|
|
30
30
|
classArr: import("vue").ComputedRef<(string | false)[]>;
|
|
31
31
|
renderPanelItem: (panelItem: IPanelItem, options?: {
|
|
@@ -35,8 +35,8 @@ export declare const SingleDataContainer: import("vue").DefineComponent<{
|
|
|
35
35
|
panelItems: {
|
|
36
36
|
[key: string]: IPanelItemController;
|
|
37
37
|
};
|
|
38
|
-
}
|
|
39
|
-
},
|
|
38
|
+
}) => VNode | null;
|
|
39
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
40
40
|
/**
|
|
41
41
|
* @description 单项数据容器模型
|
|
42
42
|
*/
|
|
@@ -51,5 +51,5 @@ export declare const SingleDataContainer: import("vue").DefineComponent<{
|
|
|
51
51
|
type: typeof SingleDataContainerController;
|
|
52
52
|
required: true;
|
|
53
53
|
};
|
|
54
|
-
}
|
|
54
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
55
55
|
//# sourceMappingURL=single-data-container.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"single-data-container.d.ts","sourceRoot":"","sources":["../../../src/panel-component/single-data-container/single-data-container.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,kBAAkB,EAClB,oBAAoB,EACrB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,eAAe,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC/D,OAAO,EAIL,QAAQ,EAER,KAAK,EACN,MAAM,KAAK,CAAC;AAEb,OAAO,EAAE,6BAA6B,EAAE,MAAM,oCAAoC,CAAC;AACnF,OAAO,8BAA8B,CAAC;AAEtC;;;;;;GAMG;AACH,eAAO,MAAM,mBAAmB;IAG5B;;OAEG;;;;;IAKH;;OAEG;;;;;;;;iCAoBY,UAAU
|
|
1
|
+
{"version":3,"file":"single-data-container.d.ts","sourceRoot":"","sources":["../../../src/panel-component/single-data-container/single-data-container.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,kBAAkB,EAClB,oBAAoB,EACrB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,eAAe,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC/D,OAAO,EAIL,QAAQ,EAER,KAAK,EACN,MAAM,KAAK,CAAC;AAEb,OAAO,EAAE,6BAA6B,EAAE,MAAM,oCAAoC,CAAC;AACnF,OAAO,8BAA8B,CAAC;AAEtC;;;;;;GAMG;AACH,eAAO,MAAM,mBAAmB;IAG5B;;OAEG;;;;;IAKH;;OAEG;;;;;;;;iCAoBY,UAAU,YACX;QACR,SAAS,EAAE;YACT,CAAC,GAAG,EAAE,MAAM,GAAG,kBAAkB,CAAC;SACnC,CAAC;QACF,UAAU,EAAE;YACV,CAAC,GAAG,EAAE,MAAM,GAAG,oBAAoB,CAAC;SACrC,CAAC;KACH,KACE,KAAK,GAAG,IAAI;;IAtCnB;;OAEG;;;;;IAKH;;OAEG;;;;;iGA2EL,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { isVNode, defineComponent,
|
|
1
|
+
import { isVNode, defineComponent, createVNode, resolveComponent, withDirectives, resolveDirective, reactive, inject, computed } from 'vue';
|
|
2
2
|
import '../../use/index.mjs';
|
|
3
3
|
import { SingleDataContainerController } from './single-data-container.controller.mjs';
|
|
4
4
|
import './single-data-container.css';
|
|
@@ -74,9 +74,9 @@ const SingleDataContainer = /* @__PURE__ */ defineComponent({
|
|
|
74
74
|
}
|
|
75
75
|
});
|
|
76
76
|
}
|
|
77
|
-
return createVNode("div", {
|
|
77
|
+
return withDirectives(createVNode("div", {
|
|
78
78
|
"class": this.classArr
|
|
79
|
-
}, [content]);
|
|
79
|
+
}, [content]), [[resolveDirective("loading"), this.controller.state.loading]]);
|
|
80
80
|
}
|
|
81
81
|
});
|
|
82
82
|
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { PanelContainerState } from '@ibiz-template/runtime';
|
|
2
2
|
/**
|
|
3
3
|
* @description 单项数据容器状态
|
|
4
4
|
* @export
|
|
5
5
|
* @class SingleDataContainerState
|
|
6
|
-
* @extends {
|
|
6
|
+
* @extends {PanelContainerState}
|
|
7
7
|
*/
|
|
8
|
-
export declare class SingleDataContainerState extends
|
|
8
|
+
export declare class SingleDataContainerState extends PanelContainerState {
|
|
9
9
|
/**
|
|
10
10
|
* @description 单项数据容器数据
|
|
11
11
|
* @exposedoc
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"single-data-container.state.d.ts","sourceRoot":"","sources":["../../../src/panel-component/single-data-container/single-data-container.state.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"single-data-container.state.d.ts","sourceRoot":"","sources":["../../../src/panel-component/single-data-container/single-data-container.state.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAE7D;;;;;GAKG;AACH,qBAAa,wBAAyB,SAAQ,mBAAmB;IAC/D;;;;;OAKG;IACH,IAAI,EAAE,KAAK,CAAM;CAClB"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { PanelContainerState } from '@ibiz-template/runtime';
|
|
2
2
|
|
|
3
3
|
"use strict";
|
|
4
|
-
class SingleDataContainerState extends
|
|
4
|
+
class SingleDataContainerState extends PanelContainerState {
|
|
5
5
|
constructor() {
|
|
6
6
|
super(...arguments);
|
|
7
7
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { TeleportPlaceholderProvider } from './teleport-placeholder.provider';
|
|
2
2
|
export { TeleportPlaceholderProvider };
|
|
3
|
-
export declare const IBizTeleportPlaceholder: import("../../util").TypeWithInstall<import("vue").DefineComponent<{
|
|
3
|
+
export declare const IBizTeleportPlaceholder: import("../../util").TypeWithInstall<import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
4
4
|
modelData: {
|
|
5
5
|
type: import("vue").PropType<import("@ibiz/model-core").IPanelRawItem>;
|
|
6
6
|
required: true;
|
|
@@ -9,11 +9,11 @@ export declare const IBizTeleportPlaceholder: import("../../util").TypeWithInsta
|
|
|
9
9
|
type: import("vue").PropType<import("./teleport-placeholder.controller").TeleportPlaceholderController>;
|
|
10
10
|
required: true;
|
|
11
11
|
};
|
|
12
|
-
}
|
|
12
|
+
}>, {
|
|
13
13
|
ns: import("@ibiz-template/core").Namespace;
|
|
14
14
|
classArr: import("vue").ComputedRef<(string | false)[]>;
|
|
15
|
-
tempStyle: import("vue").Ref<string>;
|
|
16
|
-
},
|
|
15
|
+
tempStyle: import("vue").Ref<string, string>;
|
|
16
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
17
17
|
modelData: {
|
|
18
18
|
type: import("vue").PropType<import("@ibiz/model-core").IPanelRawItem>;
|
|
19
19
|
required: true;
|
|
@@ -22,6 +22,6 @@ export declare const IBizTeleportPlaceholder: import("../../util").TypeWithInsta
|
|
|
22
22
|
type: import("vue").PropType<import("./teleport-placeholder.controller").TeleportPlaceholderController>;
|
|
23
23
|
required: true;
|
|
24
24
|
};
|
|
25
|
-
}
|
|
25
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>>;
|
|
26
26
|
export default IBizTeleportPlaceholder;
|
|
27
27
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/panel-component/teleport-placeholder/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,2BAA2B,EAAE,MAAM,iCAAiC,CAAC;AAE9E,OAAO,EAAE,2BAA2B,EAAE,CAAC;AAEvC,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/panel-component/teleport-placeholder/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,2BAA2B,EAAE,MAAM,iCAAiC,CAAC;AAE9E,OAAO,EAAE,2BAA2B,EAAE,CAAC;AAEvC,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;kGASnC,CAAC;AAEF,eAAe,uBAAuB,CAAC"}
|
|
@@ -6,8 +6,9 @@ import { TeleportPlaceholderController } from './teleport-placeholder.controller
|
|
|
6
6
|
* 传送占位
|
|
7
7
|
* @primary
|
|
8
8
|
* @description 使用vue的Teleport内置组件,用于绘制嵌入视图中的面板成员。
|
|
9
|
+
* @panelitemparams {name:TeleportTag,parameterType:string,description:传送占位面板项与需传送部件的关联标识,其值必须与部件参数(teleporttag)的值一致}
|
|
9
10
|
*/
|
|
10
|
-
export declare const TeleportPlaceholder: import("vue").DefineComponent<{
|
|
11
|
+
export declare const TeleportPlaceholder: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
11
12
|
/**
|
|
12
13
|
* @description 传送占位模型
|
|
13
14
|
*/
|
|
@@ -22,11 +23,11 @@ export declare const TeleportPlaceholder: import("vue").DefineComponent<{
|
|
|
22
23
|
type: PropType<TeleportPlaceholderController>;
|
|
23
24
|
required: true;
|
|
24
25
|
};
|
|
25
|
-
}
|
|
26
|
+
}>, {
|
|
26
27
|
ns: import("@ibiz-template/core").Namespace;
|
|
27
28
|
classArr: import("vue").ComputedRef<(string | false)[]>;
|
|
28
|
-
tempStyle: import("vue").Ref<string>;
|
|
29
|
-
},
|
|
29
|
+
tempStyle: import("vue").Ref<string, string>;
|
|
30
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
30
31
|
/**
|
|
31
32
|
* @description 传送占位模型
|
|
32
33
|
*/
|
|
@@ -41,5 +42,5 @@ export declare const TeleportPlaceholder: import("vue").DefineComponent<{
|
|
|
41
42
|
type: PropType<TeleportPlaceholderController>;
|
|
42
43
|
required: true;
|
|
43
44
|
};
|
|
44
|
-
}
|
|
45
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
45
46
|
//# sourceMappingURL=teleport-placeholder.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"teleport-placeholder.d.ts","sourceRoot":"","sources":["../../../src/panel-component/teleport-placeholder/teleport-placeholder.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAA6B,QAAQ,EAAO,MAAM,KAAK,CAAC;AAE/D,OAAO,6BAA6B,CAAC;AACrC,OAAO,EAAE,6BAA6B,EAAE,MAAM,mCAAmC,CAAC;AAElF
|
|
1
|
+
{"version":3,"file":"teleport-placeholder.d.ts","sourceRoot":"","sources":["../../../src/panel-component/teleport-placeholder/teleport-placeholder.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAA6B,QAAQ,EAAO,MAAM,KAAK,CAAC;AAE/D,OAAO,6BAA6B,CAAC;AACrC,OAAO,EAAE,6BAA6B,EAAE,MAAM,mCAAmC,CAAC;AAElF;;;;;GAKG;AACH,eAAO,MAAM,mBAAmB;IAG5B;;OAEG;;;;;IAKH;;OAEG;;;;;;;;;;IATH;;OAEG;;;;;IAKH;;OAEG;;;;;iGAuCL,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent, ref, computed
|
|
1
|
+
import { defineComponent, createVNode, ref, computed } from 'vue';
|
|
2
2
|
import '../../use/index.mjs';
|
|
3
3
|
import './teleport-placeholder.css';
|
|
4
4
|
import { useNamespace } from '../../use/namespace/namespace.mjs';
|
|
@@ -7,7 +7,7 @@ import { PanelItemState } from '@ibiz-template/runtime';
|
|
|
7
7
|
*/
|
|
8
8
|
export declare class TeleportPlaceholderState extends PanelItemState {
|
|
9
9
|
/**
|
|
10
|
-
* @description
|
|
10
|
+
* @description 嵌入视图中的部件可依据该参数找到传送占位面板项进行位置替换,参数默认格式为 “当前视图标识-需传送部件标识”;也可通过面板项参数(TeleportTag)来指定
|
|
11
11
|
* @exposedoc
|
|
12
12
|
* @type {string}
|
|
13
13
|
* @memberof TeleportPlaceholderState
|
|
@@ -5,7 +5,7 @@ class TeleportPlaceholderState extends PanelItemState {
|
|
|
5
5
|
constructor() {
|
|
6
6
|
super(...arguments);
|
|
7
7
|
/**
|
|
8
|
-
* @description
|
|
8
|
+
* @description 嵌入视图中的部件可依据该参数找到传送占位面板项进行位置替换,参数默认格式为 “当前视图标识-需传送部件标识”;也可通过面板项参数(TeleportTag)来指定
|
|
9
9
|
* @exposedoc
|
|
10
10
|
* @type {string}
|
|
11
11
|
* @memberof TeleportPlaceholderState
|
|
@@ -37,14 +37,15 @@ export declare class PluginFactory implements IPluginFactory {
|
|
|
37
37
|
*/
|
|
38
38
|
protected pluginCache: Map<string, RemotePluginItem>;
|
|
39
39
|
/**
|
|
40
|
-
* 所有的插件
|
|
41
|
-
*
|
|
42
|
-
* @author chitanda
|
|
43
|
-
* @date 2023-02-02 16:02:55
|
|
40
|
+
* @description 所有的插件
|
|
44
41
|
* @protected
|
|
45
|
-
* @type {Plugin[]}
|
|
42
|
+
* @type {{ code: Plugin; extraParams: IParams }[]}
|
|
43
|
+
* @memberof PluginFactory
|
|
46
44
|
*/
|
|
47
|
-
protected pluginCodes:
|
|
45
|
+
protected pluginCodes: {
|
|
46
|
+
code: Plugin;
|
|
47
|
+
extraParams: IParams;
|
|
48
|
+
}[];
|
|
48
49
|
/**
|
|
49
50
|
* 预定义插件集合
|
|
50
51
|
*
|
|
@@ -116,14 +117,13 @@ export declare class PluginFactory implements IPluginFactory {
|
|
|
116
117
|
*/
|
|
117
118
|
loadPredefinedPlugin(name: string): Promise<void>;
|
|
118
119
|
/**
|
|
119
|
-
* 插件刚加载完成回来,设置到目前所有的 vue 实例当中
|
|
120
|
-
*
|
|
121
|
-
* @author chitanda
|
|
122
|
-
* @date 2023-02-02 17:02:38
|
|
120
|
+
* @description 插件刚加载完成回来,设置到目前所有的 vue 实例当中
|
|
123
121
|
* @protected
|
|
124
122
|
* @param {Plugin} code
|
|
123
|
+
* @param {IParams} [extraParams={}]
|
|
124
|
+
* @memberof PluginFactory
|
|
125
125
|
*/
|
|
126
|
-
protected setPluginCode(code: Plugin): void;
|
|
126
|
+
protected setPluginCode(code: Plugin, extraParams?: IParams): void;
|
|
127
127
|
/**
|
|
128
128
|
* @description 加载插件
|
|
129
129
|
* @param {ISysPFPlugin} plugin
|
|
@@ -137,10 +137,11 @@ export declare class PluginFactory implements IPluginFactory {
|
|
|
137
137
|
* @param {string} rtObjectName
|
|
138
138
|
* @param {string} rtObjectRepo
|
|
139
139
|
* @param {string} [appId=ibiz.env.appId]
|
|
140
|
+
* @param {IParams} [params={}]
|
|
140
141
|
* @returns {*} {Promise<boolean>}
|
|
141
142
|
* @memberof PluginFactory
|
|
142
143
|
*/
|
|
143
|
-
loadPluginRef(rtObjectName: string, rtObjectRepo: string, appId?: string): Promise<boolean>;
|
|
144
|
+
loadPluginRef(rtObjectName: string, rtObjectRepo: string, appId?: string, extraParams?: IParams): Promise<boolean>;
|
|
144
145
|
/**
|
|
145
146
|
* 加载插件
|
|
146
147
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin-factory.d.ts","sourceRoot":"","sources":["../../../src/plugin/plugin-factory/plugin-factory.ts"],"names":[],"mappings":"AACA,OAAO,EACL,cAAc,EACd,WAAW,EACX,gBAAgB,EAChB,kBAAkB,EAClB,gBAAgB,EACjB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAmB,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAEjE,OAAO,EAAE,GAAG,EAAE,MAAM,EAAE,MAAM,KAAK,CAAC;AAGlC;;;;;;;GAOG;AACH,qBAAa,aAAc,YAAW,cAAc;IAClD;;;;;;OAMG;IACH,SAAS,CAAC,MAAM,SAA0B;IAE1C;;;;;;;OAOG;IACH,SAAS,CAAC,KAAK,EAAE,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC,CAAa;IA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40
|
-
* @date 2023-02-02 16:02:55
|
|
37
|
+
* @description 所有的插件
|
|
41
38
|
* @protected
|
|
42
|
-
* @type {Plugin[]}
|
|
39
|
+
* @type {{ code: Plugin; extraParams: IParams }[]}
|
|
40
|
+
* @memberof PluginFactory
|
|
43
41
|
*/
|
|
44
42
|
this.pluginCodes = [];
|
|
45
43
|
/**
|
|
@@ -116,7 +114,7 @@ class PluginFactory {
|
|
|
116
114
|
*/
|
|
117
115
|
register(app) {
|
|
118
116
|
this.pluginCodes.forEach((plugin) => {
|
|
119
|
-
app.use(plugin);
|
|
117
|
+
app.use(plugin.code, plugin.extraParams);
|
|
120
118
|
});
|
|
121
119
|
}
|
|
122
120
|
/**
|
|
@@ -136,16 +134,15 @@ class PluginFactory {
|
|
|
136
134
|
}
|
|
137
135
|
}
|
|
138
136
|
/**
|
|
139
|
-
* 插件刚加载完成回来,设置到目前所有的 vue 实例当中
|
|
140
|
-
*
|
|
141
|
-
* @author chitanda
|
|
142
|
-
* @date 2023-02-02 17:02:38
|
|
137
|
+
* @description 插件刚加载完成回来,设置到目前所有的 vue 实例当中
|
|
143
138
|
* @protected
|
|
144
139
|
* @param {Plugin} code
|
|
140
|
+
* @param {IParams} [extraParams={}]
|
|
141
|
+
* @memberof PluginFactory
|
|
145
142
|
*/
|
|
146
|
-
setPluginCode(code) {
|
|
147
|
-
this.pluginCodes.push(code);
|
|
148
|
-
AppHooks.useComponent.callSync(null, code);
|
|
143
|
+
setPluginCode(code, extraParams = {}) {
|
|
144
|
+
this.pluginCodes.push({ code, extraParams });
|
|
145
|
+
AppHooks.useComponent.callSync(null, code, extraParams);
|
|
149
146
|
}
|
|
150
147
|
/**
|
|
151
148
|
* @description 加载插件
|
|
@@ -160,6 +157,7 @@ class PluginFactory {
|
|
|
160
157
|
if (pluginRef) {
|
|
161
158
|
const rtObjectName = pluginRef.rtobjectName;
|
|
162
159
|
const rtObjectRepo = pluginRef.rtobjectRepo;
|
|
160
|
+
const pluginParams = pluginRef.pluginParams || {};
|
|
163
161
|
if (this.isIgnore(rtObjectRepo)) {
|
|
164
162
|
return true;
|
|
165
163
|
}
|
|
@@ -179,7 +177,8 @@ class PluginFactory {
|
|
|
179
177
|
const p = this.loadPluginRef(
|
|
180
178
|
pluginRef.rtobjectName,
|
|
181
179
|
pluginRef.rtobjectRepo,
|
|
182
|
-
appId
|
|
180
|
+
appId,
|
|
181
|
+
{ ...pluginParams }
|
|
183
182
|
);
|
|
184
183
|
this.loadQueue.set(rtObjectRepo, p);
|
|
185
184
|
const result = await p;
|
|
@@ -201,10 +200,11 @@ class PluginFactory {
|
|
|
201
200
|
* @param {string} rtObjectName
|
|
202
201
|
* @param {string} rtObjectRepo
|
|
203
202
|
* @param {string} [appId=ibiz.env.appId]
|
|
203
|
+
* @param {IParams} [params={}]
|
|
204
204
|
* @returns {*} {Promise<boolean>}
|
|
205
205
|
* @memberof PluginFactory
|
|
206
206
|
*/
|
|
207
|
-
async loadPluginRef(rtObjectName, rtObjectRepo, appId = ibiz.env.appId) {
|
|
207
|
+
async loadPluginRef(rtObjectName, rtObjectRepo, appId = ibiz.env.appId, extraParams = {}) {
|
|
208
208
|
if (this.isIgnore(rtObjectRepo)) {
|
|
209
209
|
return true;
|
|
210
210
|
}
|
|
@@ -227,7 +227,7 @@ class PluginFactory {
|
|
|
227
227
|
}
|
|
228
228
|
configData = res.data;
|
|
229
229
|
}
|
|
230
|
-
Object.assign(configData, { appId });
|
|
230
|
+
Object.assign(configData, { appId, extraParams });
|
|
231
231
|
const remotePlugin = new RemotePluginItem(
|
|
232
232
|
rtObjectName,
|
|
233
233
|
rtObjectRepo,
|
|
@@ -256,7 +256,13 @@ class PluginFactory {
|
|
|
256
256
|
*/
|
|
257
257
|
async loadScript(remotePlugin) {
|
|
258
258
|
const pluginPath = remotePlugin.repo;
|
|
259
|
-
const {
|
|
259
|
+
const {
|
|
260
|
+
name,
|
|
261
|
+
appId,
|
|
262
|
+
system,
|
|
263
|
+
styles = [],
|
|
264
|
+
extraParams = {}
|
|
265
|
+
} = remotePlugin.config;
|
|
260
266
|
let scriptUrl = "";
|
|
261
267
|
scriptUrl = pathBrowserify.join(pluginPath, system);
|
|
262
268
|
if (scriptUrl) {
|
|
@@ -281,7 +287,7 @@ class PluginFactory {
|
|
|
281
287
|
data = await System.import(name);
|
|
282
288
|
if (data) {
|
|
283
289
|
if (data.default) {
|
|
284
|
-
this.setPluginCode(data.default);
|
|
290
|
+
this.setPluginCode(data.default, extraParams);
|
|
285
291
|
} else {
|
|
286
292
|
throw new RuntimeError(
|
|
287
293
|
ibiz.i18n.t("vue3Util.plugin.failedRemotePluginLoad")
|
package/es/use/index.d.ts
CHANGED
package/es/use/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/use/index.ts"],"names":[],"mappings":"AAAA,cAAc,+BAA+B,CAAC;AAC9C,cAAc,WAAW,CAAC;AAC1B,cAAc,eAAe,CAAC;AAC9B,cAAc,yBAAyB,CAAC;AACxC,cAAc,uBAAuB,CAAC;AACtC,cAAc,eAAe,CAAC;AAC9B,cAAc,QAAQ,CAAC;AACvB,cAAc,QAAQ,CAAC;AACvB,cAAc,WAAW,CAAC;AAC1B,cAAc,mCAAmC,CAAC;AAClD,cAAc,WAAW,CAAC;AAC1B,cAAc,iCAAiC,CAAC;AAChD,cAAc,mBAAmB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/use/index.ts"],"names":[],"mappings":"AAAA,cAAc,+BAA+B,CAAC;AAC9C,cAAc,WAAW,CAAC;AAC1B,cAAc,eAAe,CAAC;AAC9B,cAAc,yBAAyB,CAAC;AACxC,cAAc,uBAAuB,CAAC;AACtC,cAAc,eAAe,CAAC;AAC9B,cAAc,QAAQ,CAAC;AACvB,cAAc,QAAQ,CAAC;AACvB,cAAc,WAAW,CAAC;AAC1B,cAAc,mCAAmC,CAAC;AAClD,cAAc,WAAW,CAAC;AAC1B,cAAc,iCAAiC,CAAC;AAChD,cAAc,mBAAmB,CAAC;AAClC,cAAc,WAAW,CAAC"}
|
package/es/use/index.mjs
CHANGED
|
@@ -6,13 +6,15 @@ export { useNamespace } from './namespace/namespace.mjs';
|
|
|
6
6
|
export { useRouteKey, useRouterQuery } from './route/route.mjs';
|
|
7
7
|
export { useCtx, useMobCtx } from './util/index.mjs';
|
|
8
8
|
import './view/index.mjs';
|
|
9
|
-
export { EmptyVNode, getOrigin, isEmptyVNode, useController, useForce, useForceTogether, useProps, usePropsWatch } from './vue/vue.mjs';
|
|
9
|
+
export { EmptyVNode, getOrigin, isEmptyVNode, useController, useFilterAttribute, useForce, useForceTogether, useProps, usePropsWatch } from './vue/vue.mjs';
|
|
10
10
|
export { useCodeListListen } from './codeList-listen/codelist-listen.mjs';
|
|
11
11
|
export { useLocalCacheKey } from './storage/index.mjs';
|
|
12
12
|
export { useAutoFocusBlur } from './autofocus-blur/autofocus-blur.mjs';
|
|
13
|
-
export { shareCommonAncestor, usePopoverVisible, usePopoverzIndex } from './popover/popover.mjs';
|
|
13
|
+
export { shareCommonAncestor, useControlPopoverzIndex, usePopoverVisible, usePopoverzIndex } from './popover/popover.mjs';
|
|
14
|
+
import './vue-use/index.mjs';
|
|
14
15
|
export { useControlController } from './control/use-control-controller/use-control-controller.mjs';
|
|
15
16
|
export { useViewController } from './view/use-view-controller/use-view-controller.mjs';
|
|
16
17
|
export { useViewOperation } from './view/use-view-operation/use-view-operation.mjs';
|
|
18
|
+
export { computedAsync } from './vue-use/computed-async.mjs';
|
|
17
19
|
|
|
18
20
|
"use strict";
|
|
@@ -1,4 +1,11 @@
|
|
|
1
1
|
import { Ref } from 'vue';
|
|
2
|
+
import { ControlController } from '@ibiz-template/runtime';
|
|
3
|
+
/**
|
|
4
|
+
* @description 管理部件popover层级
|
|
5
|
+
* @export
|
|
6
|
+
* @param {ControlController} controller
|
|
7
|
+
*/
|
|
8
|
+
export declare function useControlPopoverzIndex(controller: ControlController): void;
|
|
2
9
|
/**
|
|
3
10
|
* 手动管理popover层级
|
|
4
11
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"popover.d.ts","sourceRoot":"","sources":["../../../src/use/popover/popover.ts"],"names":[],"mappings":"AACA,OAAO,EAAe,GAAG,EAAc,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"popover.d.ts","sourceRoot":"","sources":["../../../src/use/popover/popover.ts"],"names":[],"mappings":"AACA,OAAO,EAAe,GAAG,EAAc,MAAM,KAAK,CAAC;AAEnD,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAG3D;;;;GAIG;AACH,wBAAgB,uBAAuB,CAAC,UAAU,EAAE,iBAAiB,GAAG,IAAI,CAO3E;AAED;;;;;;GAMG;AACH,wBAAgB,gBAAgB,IAAI;IAClC,SAAS,EAAE,MAAM,CAAC;IAClB,gBAAgB,EAAE,CAAC,WAAW,EAAE,MAAM,KAAK,IAAI,CAAC;CACjD,CAoBA;AAED;;;;;;GAMG;AACH,wBAAgB,mBAAmB,CACjC,QAAQ,EAAE,IAAI,GAAG,IAAI,EACrB,QAAQ,EAAE,IAAI,GAAG,IAAI,GACpB,OAAO,CA+BT;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,iBAAiB,CAC/B,UAAU,EAAE,GAAG,CAAC,OAAO,CAAC,EACxB,UAAU,EAAE,CAAC,GAAG,EAAE,KAAK,KAAK,IAAI,GAC/B;IACD,cAAc,EAAE,GAAG,CAAC,OAAO,CAAC,CAAC;IAC7B,iBAAiB,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;CAC/C,CA0CA"}
|
|
@@ -1,10 +1,17 @@
|
|
|
1
1
|
import { createUUID } from 'qx-util';
|
|
2
|
-
import { ref, watch
|
|
2
|
+
import { onUnmounted, ref, watch } from 'vue';
|
|
3
3
|
import { listenJSEvent } from '@ibiz-template/core';
|
|
4
4
|
import '../../util/index.mjs';
|
|
5
5
|
import { useUIStore } from '../../util/store/ui-store/ui-store.mjs';
|
|
6
6
|
|
|
7
7
|
"use strict";
|
|
8
|
+
function useControlPopoverzIndex(controller) {
|
|
9
|
+
const { zIndex } = useUIStore();
|
|
10
|
+
controller.state.zIndex = zIndex.increment();
|
|
11
|
+
onUnmounted(() => {
|
|
12
|
+
zIndex.decrement();
|
|
13
|
+
});
|
|
14
|
+
}
|
|
8
15
|
function usePopoverzIndex() {
|
|
9
16
|
const popoverid = "popover_".concat(createUUID());
|
|
10
17
|
const setPopoverZIndex = (zIndexClass) => {
|
|
@@ -89,4 +96,4 @@ function usePopoverVisible(triggerRef, getElement) {
|
|
|
89
96
|
};
|
|
90
97
|
}
|
|
91
98
|
|
|
92
|
-
export { shareCommonAncestor, usePopoverVisible, usePopoverzIndex };
|
|
99
|
+
export { shareCommonAncestor, useControlPopoverzIndex, usePopoverVisible, usePopoverzIndex };
|
|
@@ -1,14 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* 获取本地缓存key函数
|
|
3
|
-
*
|
|
4
|
-
* @author zhanghengfeng
|
|
5
|
-
* @date 2024-05-29 21:05:53
|
|
2
|
+
* @description 获取本地缓存key函数
|
|
6
3
|
* @export
|
|
7
4
|
* @param {IContext} context
|
|
8
5
|
* @param {string} type
|
|
9
6
|
* @param {number} [routeDepth]
|
|
10
7
|
* @param {string} [splitter='@']
|
|
11
|
-
* @
|
|
8
|
+
* @param {string} [noRouteTag='']
|
|
9
|
+
* @returns {*} {(() => string | undefined)}
|
|
12
10
|
*/
|
|
13
|
-
export declare function useLocalCacheKey(context: IContext, type: string, routeDepth?: number, splitter?: string): () => string | undefined;
|
|
11
|
+
export declare function useLocalCacheKey(context: IContext, type: string, routeDepth?: number, splitter?: string, noRouteTag?: string): () => string | undefined;
|
|
14
12
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/use/storage/index.ts"],"names":[],"mappings":"AAGA
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/use/storage/index.ts"],"names":[],"mappings":"AAGA;;;;;;;;;GASG;AACH,wBAAgB,gBAAgB,CAC9B,OAAO,EAAE,QAAQ,EACjB,IAAI,EAAE,MAAM,EACZ,UAAU,CAAC,EAAE,MAAM,EACnB,QAAQ,GAAE,MAAY,EACtB,UAAU,GAAE,MAAW,GACtB,MAAM,MAAM,GAAG,SAAS,CA0B1B"}
|
package/es/use/storage/index.mjs
CHANGED
|
@@ -3,24 +3,29 @@ import '../../util/index.mjs';
|
|
|
3
3
|
import { route2routePath, routePath2string } from '../../util/route/route.mjs';
|
|
4
4
|
|
|
5
5
|
"use strict";
|
|
6
|
-
function useLocalCacheKey(context, type, routeDepth, splitter = "@") {
|
|
6
|
+
function useLocalCacheKey(context, type, routeDepth, splitter = "@", noRouteTag = "") {
|
|
7
7
|
const router = useRouter();
|
|
8
8
|
return () => {
|
|
9
9
|
if (!router) {
|
|
10
10
|
return;
|
|
11
11
|
}
|
|
12
12
|
const userId = context.srfuserid;
|
|
13
|
-
const routePath = route2routePath(router.currentRoute.value);
|
|
14
13
|
routeDepth = context.srfdefaulttoroutedepth || routeDepth;
|
|
15
|
-
if (
|
|
16
|
-
routePath
|
|
17
|
-
routePath.pathNodes
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
14
|
+
if (routeDepth) {
|
|
15
|
+
const routePath = route2routePath(router.currentRoute.value);
|
|
16
|
+
if (userId && routePath.pathNodes[routeDepth - 2]) {
|
|
17
|
+
routePath.pathNodes = routePath.pathNodes.slice(0, routeDepth - 1);
|
|
18
|
+
routePath.pathNodes.forEach((pathNode) => {
|
|
19
|
+
if (pathNode.context) {
|
|
20
|
+
delete pathNode.context.srfnavctrlid;
|
|
21
|
+
}
|
|
22
|
+
});
|
|
23
|
+
const url = routePath2string(routePath);
|
|
24
|
+
return "".concat(type).concat(splitter).concat(userId).concat(splitter).concat(url);
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
if (noRouteTag) {
|
|
28
|
+
return "".concat(type).concat(splitter).concat(userId).concat(splitter).concat(noRouteTag);
|
|
24
29
|
}
|
|
25
30
|
};
|
|
26
31
|
}
|
package/es/use/vue/vue.d.ts
CHANGED
|
@@ -74,4 +74,13 @@ export declare const EmptyVNode: VNode<import("vue").RendererNode, import("vue")
|
|
|
74
74
|
* @return {*} {boolean}
|
|
75
75
|
*/
|
|
76
76
|
export declare function isEmptyVNode(nodes: VNode[] | VNode): boolean;
|
|
77
|
+
/**
|
|
78
|
+
* @description 过滤attr中指定属性,如果存在自定义过滤回调,则不针对filterKeys的值进行过滤
|
|
79
|
+
* @export
|
|
80
|
+
* @param {Record<string, string>} attrs 所有属性
|
|
81
|
+
* @param {(key: string) => boolean} [filter] 自定义过滤回调
|
|
82
|
+
* @param {string[]} [filterKeys=['class', 'style']] 需要过滤掉的属性
|
|
83
|
+
* @returns {*} {Record<string, string>}
|
|
84
|
+
*/
|
|
85
|
+
export declare function useFilterAttribute(attrs: Record<string, string>, filter?: (key: string) => boolean, filterKeys?: string[]): Record<string, string>;
|
|
77
86
|
//# sourceMappingURL=vue.d.ts.map
|
package/es/use/vue/vue.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vue.d.ts","sourceRoot":"","sources":["../../../src/use/vue/vue.ts"],"names":[],"mappings":"AACA,OAAO,EACL,uBAAuB,EAKvB,KAAK,EAEL,YAAY,EACb,MAAM,KAAK,CAAC;AAEb;;;;;;;GAOG;AACH,wBAAgB,QAAQ,IAAI,KAAK,CAGhC;AAED;;;;;;;;GAQG;AAEH,wBAAgB,SAAS,CAAC,CAAC,GAAG,GAAG,EAAE,GAAG,EAAE,CAAC,GAAG,CAAC,CAE5C;AAED;;;;;;;;;GASG;AACH,wBAAgB,aAAa,CAAC,CAAC,GAAG,OAAO,EACvC,G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AAI,CAaN;AAED;;;;;;;GAOG;AACH,wBAAgB,QAAQ,IAAI,CAAC,QAAQ,CAAC,EAAE,MAAM,IAAI,KAAK,IAAI,CAU1D;AAED;;;;;;;;;GASG;AACH,wBAAgB,gBAAgB,CAC9B,GAAG,EAAE,uBAAuB,EAC5B,UAAU,EAAE;IACV,KAAK,EAAE,CAAC,QAAQ,CAAC,EAAE,MAAM,IAAI,KAAK,IAAI,CAAC;CACxC,GACA,IAAI,CAON;AAED;;;;;;;;GAQG;AACH,wBAAgB,aAAa,CAAC,UAAU,EAAE,KAAK,GAAG,IAAI,CAErD;AAED,eAAe;AACf,eAAO,MAAM,UAAU;;EAAmC,CAAC;AAE3D;;;;;;;GAOG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAAE,KAAK,EAAE,GAAG,KAAK,GAAG,OAAO,CAK5D;AAED;;;;;;;GAOG;AACH,wBAAgB,kBAAkB,CAChC,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,EAC7B,MAAM,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,OAAO,EACjC,UAAU,GAAE,MAAM,EAAuB,GACxC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAYxB"}
|
package/es/use/vue/vue.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { isFunc } from 'qx-util';
|
|
2
|
-
import { getCurrentInstance,
|
|
2
|
+
import { getCurrentInstance, toRaw, isReactive, watch, createCommentVNode } from 'vue';
|
|
3
3
|
|
|
4
4
|
"use strict";
|
|
5
5
|
function useProps() {
|
|
@@ -51,5 +51,18 @@ function isEmptyVNode(nodes) {
|
|
|
51
51
|
}
|
|
52
52
|
return nodes.length === 1 && nodes[0] === EmptyVNode;
|
|
53
53
|
}
|
|
54
|
+
function useFilterAttribute(attrs, filter, filterKeys = ["class", "style"]) {
|
|
55
|
+
const result = {};
|
|
56
|
+
Object.keys(attrs).forEach((key) => {
|
|
57
|
+
if (filter) {
|
|
58
|
+
if (filter(key)) {
|
|
59
|
+
result[key] = attrs[key];
|
|
60
|
+
}
|
|
61
|
+
} else if (!filterKeys.includes(key)) {
|
|
62
|
+
result[key] = attrs[key];
|
|
63
|
+
}
|
|
64
|
+
});
|
|
65
|
+
return result;
|
|
66
|
+
}
|
|
54
67
|
|
|
55
|
-
export { EmptyVNode, getOrigin, isEmptyVNode, useController, useForce, useForceTogether, useProps, usePropsWatch };
|
|
68
|
+
export { EmptyVNode, getOrigin, isEmptyVNode, useController, useFilterAttribute, useForce, useForceTogether, useProps, usePropsWatch };
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import type { ComputedRef, Ref } from 'vue';
|
|
2
|
+
/**
|
|
3
|
+
* Handle overlapping async evaluations.
|
|
4
|
+
*
|
|
5
|
+
* @param cancelCallback The provided callback is invoked when a re-evaluation of the computed value is triggered before the previous one finished
|
|
6
|
+
*/
|
|
7
|
+
export type AsyncComputedOnCancel = (cancelCallback: () => void) => void;
|
|
8
|
+
export interface AsyncComputedOptions<Lazy = boolean> {
|
|
9
|
+
/**
|
|
10
|
+
* Should value be evaluated lazily
|
|
11
|
+
*
|
|
12
|
+
* @default false
|
|
13
|
+
*/
|
|
14
|
+
lazy?: Lazy;
|
|
15
|
+
/**
|
|
16
|
+
* Ref passed to receive the updated of async evaluation
|
|
17
|
+
*/
|
|
18
|
+
evaluating?: Ref<boolean>;
|
|
19
|
+
/**
|
|
20
|
+
* Use shallowRef
|
|
21
|
+
*
|
|
22
|
+
* @default true
|
|
23
|
+
*/
|
|
24
|
+
shallow?: boolean;
|
|
25
|
+
/**
|
|
26
|
+
* The flush option allows for greater control over the timing of a history point, default to `pre`
|
|
27
|
+
*
|
|
28
|
+
* Possible values: `pre`, `post`, `sync`
|
|
29
|
+
*
|
|
30
|
+
* It works in the same way as the flush option in watch and watch effect in vue reactivity
|
|
31
|
+
* @default 'pre'
|
|
32
|
+
*/
|
|
33
|
+
flush?: 'pre' | 'post' | 'sync';
|
|
34
|
+
/**
|
|
35
|
+
* Callback when error is caught.
|
|
36
|
+
*/
|
|
37
|
+
onError?: (e: unknown) => void;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Create an asynchronous computed dependency.
|
|
41
|
+
*
|
|
42
|
+
* @see https://vueuse.org/computedAsync
|
|
43
|
+
* @param evaluationCallback The promise-returning callback which generates the computed value
|
|
44
|
+
* @param initialState The initial state, used until the first evaluation finishes
|
|
45
|
+
* @param optionsOrRef Additional options or a ref passed to receive the updates of the async evaluation
|
|
46
|
+
*/
|
|
47
|
+
export declare function computedAsync<T>(evaluationCallback: (onCancel: AsyncComputedOnCancel) => T | Promise<T>, initialState: T, optionsOrRef: AsyncComputedOptions<true>): ComputedRef<T>;
|
|
48
|
+
export declare function computedAsync<T>(evaluationCallback: (onCancel: AsyncComputedOnCancel) => T | Promise<T>, initialState: undefined, optionsOrRef: AsyncComputedOptions<true>): ComputedRef<T | undefined>;
|
|
49
|
+
export declare function computedAsync<T>(evaluationCallback: (onCancel: AsyncComputedOnCancel) => T | Promise<T>, initialState: T, optionsOrRef?: Ref<boolean> | AsyncComputedOptions): Ref<T>;
|
|
50
|
+
export declare function computedAsync<T>(evaluationCallback: (onCancel: AsyncComputedOnCancel) => T | Promise<T>, initialState?: undefined, optionsOrRef?: Ref<boolean> | AsyncComputedOptions): Ref<T | undefined>;
|
|
51
|
+
//# sourceMappingURL=computed-async.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"computed-async.d.ts","sourceRoot":"","sources":["../../../src/use/vue-use/computed-async.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAG5C;;;;GAIG;AACH,MAAM,MAAM,qBAAqB,GAAG,CAAC,cAAc,EAAE,MAAM,IAAI,KAAK,IAAI,CAAC;AAEzE,MAAM,WAAW,oBAAoB,CAAC,IAAI,GAAG,OAAO;IAClD;;;;OAIG;IACH,IAA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