@ibiz-template/vue3-components 0.7.25-alpha.1 → 0.7.25

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.
@@ -1,5 +1,5 @@
1
1
  import { ref, watch, watchEffect, onUnmounted } from 'vue';
2
- import { defaultNamespace } from '../../node_modules/.pnpm/@ibiz-template_core@0.7.25-alpha.1_axios@1.6.8_lodash-es@4.17.21_qs@6.11.2_qx-util@0.4.8_ramda@0.29.1/node_modules/@ibiz-template/core/out/utils/namespace/namespace.mjs';
2
+ import { defaultNamespace } from '../../node_modules/.pnpm/@ibiz-template_core@0.7.25_axios@1.6.8_lodash-es@4.17.21_qs@6.11.2_qx-util@0.4.8_ramda@0.29.1/node_modules/@ibiz-template/core/out/utils/namespace/namespace.mjs';
3
3
 
4
4
  "use strict";
5
5
  function useAppDRTab(c, controlRef, counterData) {
@@ -1,5 +1,5 @@
1
1
  import { IControlProvider, ReportPanelController } from '@ibiz-template/runtime';
2
- import { PropType, VNode } from 'vue';
2
+ import { PropType, Ref, VNode } from 'vue';
3
3
  import { IDEReportPanel } from '@ibiz/model-core';
4
4
  import './report-panel.scss';
5
5
  export declare const ReportPanelControl: import("vue").DefineComponent<{
@@ -25,6 +25,7 @@ export declare const ReportPanelControl: import("vue").DefineComponent<{
25
25
  }, {
26
26
  c: ReportPanelController;
27
27
  ns: import("@ibiz-template/core").Namespace;
28
+ isInit: Ref<boolean>;
28
29
  renderContent: () => VNode | false;
29
30
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
30
31
  modelData: {
@@ -1,6 +1,6 @@
1
- import { isVNode, createVNode, resolveComponent, defineComponent } from 'vue';
1
+ import { isVNode, ref, onMounted, createVNode, resolveComponent, defineComponent } from 'vue';
2
2
  import { ReportPanelController } from '@ibiz-template/runtime';
3
- import { useControlController, useNamespace } from '@ibiz-template/vue3-util';
3
+ import { useControlController, useNamespace, AppHooks } from '@ibiz-template/vue3-util';
4
4
  import './report-panel.css';
5
5
 
6
6
  "use strict";
@@ -33,6 +33,18 @@ const ReportPanelControl = /* @__PURE__ */ defineComponent({
33
33
  setup() {
34
34
  const c = useControlController((...args) => new ReportPanelController(...args));
35
35
  const ns = useNamespace("control-".concat(c.model.controlType.toLowerCase()));
36
+ const isInit = ref(false);
37
+ onMounted(() => {
38
+ const importBIReport = () => import('@ibiz-template-plugin/bi-report');
39
+ importBIReport().then((value) => {
40
+ const biReport = value.default;
41
+ AppHooks.useComponent.callSync(null, biReport);
42
+ AppHooks.createApp.tap((_, app) => {
43
+ app.use(biReport);
44
+ });
45
+ isInit.value = true;
46
+ });
47
+ });
36
48
  const renderContent = () => {
37
49
  const {
38
50
  reportType
@@ -63,12 +75,13 @@ const ReportPanelControl = /* @__PURE__ */ defineComponent({
63
75
  return {
64
76
  c,
65
77
  ns,
78
+ isInit,
66
79
  renderContent
67
80
  };
68
81
  },
69
82
  render() {
70
83
  let _slot;
71
- if (!this.c.state.isCreated) {
84
+ if (!this.c.state.isCreated || !this.isInit) {
72
85
  return;
73
86
  }
74
87
  return createVNode(resolveComponent("iBizControlBase"), {
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  var vue = require('vue');
4
- var namespace = require('../../node_modules/.pnpm/@ibiz-template_core@0.7.25-alpha.1_axios@1.6.8_lodash-es@4.17.21_qs@6.11.2_qx-util@0.4.8_ramda@0.29.1/node_modules/@ibiz-template/core/out/utils/namespace/namespace.cjs');
4
+ var namespace = require('../../node_modules/.pnpm/@ibiz-template_core@0.7.25_axios@1.6.8_lodash-es@4.17.21_qs@6.11.2_qx-util@0.4.8_ramda@0.29.1/node_modules/@ibiz-template/core/out/utils/namespace/namespace.cjs');
5
5
 
6
6
  "use strict";
7
7
  function useAppDRTab(c, controlRef, counterData) {
@@ -35,6 +35,18 @@ const ReportPanelControl = /* @__PURE__ */ vue.defineComponent({
35
35
  setup() {
36
36
  const c = vue3Util.useControlController((...args) => new runtime.ReportPanelController(...args));
37
37
  const ns = vue3Util.useNamespace("control-".concat(c.model.controlType.toLowerCase()));
38
+ const isInit = vue.ref(false);
39
+ vue.onMounted(() => {
40
+ const importBIReport = () => import('@ibiz-template-plugin/bi-report');
41
+ importBIReport().then((value) => {
42
+ const biReport = value.default;
43
+ vue3Util.AppHooks.useComponent.callSync(null, biReport);
44
+ vue3Util.AppHooks.createApp.tap((_, app) => {
45
+ app.use(biReport);
46
+ });
47
+ isInit.value = true;
48
+ });
49
+ });
38
50
  const renderContent = () => {
39
51
  const {
40
52
  reportType
@@ -65,12 +77,13 @@ const ReportPanelControl = /* @__PURE__ */ vue.defineComponent({
65
77
  return {
66
78
  c,
67
79
  ns,
80
+ isInit,
68
81
  renderContent
69
82
  };
70
83
  },
71
84
  render() {
72
85
  let _slot;
73
- if (!this.c.state.isCreated) {
86
+ if (!this.c.state.isCreated || !this.isInit) {
74
87
  return;
75
88
  }
76
89
  return vue.createVNode(vue.resolveComponent("iBizControlBase"), {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ibiz-template/vue3-components",
3
- "version": "0.7.25-alpha.1",
3
+ "version": "0.7.25",
4
4
  "description": "使用 rollup 编译 vue 组件或者 jsx",
5
5
  "main": "lib/index.cjs",
6
6
  "module": "es/index.mjs",
@@ -30,12 +30,13 @@
30
30
  "@floating-ui/dom": "^1.5.3",
31
31
  "@ibiz-template-plugin/ai-chat": "^0.0.5",
32
32
  "@ibiz-template-plugin/gantt": "0.1.8-alpha.6",
33
- "@ibiz-template/core": "0.7.25-alpha.1",
33
+ "@ibiz-template-plugin/bi-report": "0.0.1",
34
+ "@ibiz-template/core": "0.7.25",
34
35
  "@ibiz-template/devtool": "0.0.1-dev.6",
35
- "@ibiz-template/model-helper": "0.7.25-alpha.1",
36
- "@ibiz-template/runtime": "0.7.25-alpha.1",
36
+ "@ibiz-template/model-helper": "0.7.25",
37
+ "@ibiz-template/runtime": "0.7.25",
37
38
  "@ibiz-template/theme": "^0.7.0",
38
- "@ibiz-template/vue3-util": "0.7.25-alpha.1",
39
+ "@ibiz-template/vue3-util": "0.7.25",
39
40
  "@ibiz-template/web-theme": "^1.1.18",
40
41
  "@ibiz/model-core": "^0.1.35",
41
42
  "@imengyu/vue3-context-menu": "^1.3.5",