@ibiz-template/vue3-util 0.7.41-alpha.27 → 0.7.41-alpha.28

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.
Files changed (157) hide show
  1. package/dist/index.min.css +1 -1
  2. package/dist/index.system.min.js +1 -1
  3. package/es/common/badge/badge.d.ts +5 -5
  4. package/es/common/badge/badge.d.ts.map +1 -1
  5. package/es/common/code-list/code-list.d.ts +8 -8
  6. package/es/common/code-list/code-list.d.ts.map +1 -1
  7. package/es/common/code-list/code-list.mjs +1 -1
  8. package/es/common/control-base/control-base.mjs +1 -1
  9. package/es/common/control-loading-placeholder/control-loading-placeholder.d.ts +4 -4
  10. package/es/common/control-loading-placeholder/control-loading-placeholder.d.ts.map +1 -1
  11. package/es/common/control-shell/control-shell.d.ts +7 -7
  12. package/es/common/control-shell/control-shell.d.ts.map +1 -1
  13. package/es/common/control-shell/control-shell.mjs +1 -1
  14. package/es/common/custom-render/custom-render.d.ts +4 -4
  15. package/es/common/custom-render/custom-render.d.ts.map +1 -1
  16. package/es/common/icon/icon.d.ts +4 -4
  17. package/es/common/icon/icon.d.ts.map +1 -1
  18. package/es/common/router-view/router-view.d.ts +7 -8
  19. package/es/common/router-view/router-view.d.ts.map +1 -1
  20. package/es/common/router-view/router-view.mjs +1 -1
  21. package/es/common/signature-pad/signature-pad.d.ts +7 -7
  22. package/es/common/signature-pad/signature-pad.d.ts.map +1 -1
  23. package/es/common/signature-pad/signature-pad.mjs +1 -1
  24. package/es/common/view-shell/view-shell.d.ts +11 -11
  25. package/es/common/view-shell/view-shell.d.ts.map +1 -1
  26. package/es/common/view-shell/view-shell.mjs +2 -2
  27. package/es/control/panel/panel/index.d.ts +5 -5
  28. package/es/control/panel/panel/index.d.ts.map +1 -1
  29. package/es/control/panel/panel/panel.d.ts +5 -5
  30. package/es/control/panel/panel/panel.d.ts.map +1 -1
  31. package/es/control/panel/view-layout-panel/index.d.ts +5 -5
  32. package/es/control/panel/view-layout-panel/index.d.ts.map +1 -1
  33. package/es/control/panel/view-layout-panel/view-layout-panel.d.ts +5 -5
  34. package/es/control/panel/view-layout-panel/view-layout-panel.d.ts.map +1 -1
  35. package/es/control/panel/view-layout-panel/view-layout-panel.mjs +1 -1
  36. package/es/panel-component/auth-wxmp-qrcode/auth-wxmp-qrcode.d.ts +4 -4
  37. package/es/panel-component/auth-wxmp-qrcode/auth-wxmp-qrcode.d.ts.map +1 -1
  38. package/es/panel-component/auth-wxmp-qrcode/auth-wxmp-qrcode.mjs +1 -1
  39. package/es/panel-component/auth-wxmp-qrcode/index.d.ts +4 -4
  40. package/es/panel-component/auth-wxmp-qrcode/index.d.ts.map +1 -1
  41. package/es/panel-component/grid-container/grid-container.d.ts +6 -6
  42. package/es/panel-component/grid-container/grid-container.d.ts.map +1 -1
  43. package/es/panel-component/grid-container/grid-container.mjs +1 -1
  44. package/es/panel-component/grid-container/index.d.ts +6 -6
  45. package/es/panel-component/grid-container/index.d.ts.map +1 -1
  46. package/es/panel-component/multi-data-container/index.d.ts +4 -4
  47. package/es/panel-component/multi-data-container/index.d.ts.map +1 -1
  48. package/es/panel-component/multi-data-container/multi-data-container.d.ts +4 -4
  49. package/es/panel-component/multi-data-container/multi-data-container.d.ts.map +1 -1
  50. package/es/panel-component/multi-data-container/multi-data-container.mjs +1 -1
  51. package/es/panel-component/multi-data-container-raw/index.d.ts +4 -4
  52. package/es/panel-component/multi-data-container-raw/index.d.ts.map +1 -1
  53. package/es/panel-component/multi-data-container-raw/multi-data-container-raw.d.ts +4 -4
  54. package/es/panel-component/multi-data-container-raw/multi-data-container-raw.d.ts.map +1 -1
  55. package/es/panel-component/multi-data-container-raw/multi-data-container-raw.mjs +1 -1
  56. package/es/panel-component/nav-pos/index.d.ts +5 -5
  57. package/es/panel-component/nav-pos/index.d.ts.map +1 -1
  58. package/es/panel-component/nav-pos/nav-pos.d.ts +5 -5
  59. package/es/panel-component/nav-pos/nav-pos.d.ts.map +1 -1
  60. package/es/panel-component/nav-pos/nav-pos.mjs +2 -2
  61. package/es/panel-component/panel-container/index.d.ts +4 -4
  62. package/es/panel-component/panel-container/index.d.ts.map +1 -1
  63. package/es/panel-component/panel-container/panel-container.d.ts +4 -4
  64. package/es/panel-component/panel-container/panel-container.d.ts.map +1 -1
  65. package/es/panel-component/panel-container/panel-container.mjs +1 -1
  66. package/es/panel-component/panel-container-group/index.d.ts +5 -5
  67. package/es/panel-component/panel-container-group/index.d.ts.map +1 -1
  68. package/es/panel-component/panel-container-group/panel-container-group.d.ts +5 -5
  69. package/es/panel-component/panel-container-group/panel-container-group.d.ts.map +1 -1
  70. package/es/panel-component/panel-container-group/panel-container-group.mjs +2 -2
  71. package/es/panel-component/panel-container-image/index.d.ts +4 -4
  72. package/es/panel-component/panel-container-image/index.d.ts.map +1 -1
  73. package/es/panel-component/panel-container-image/panel-container-image.d.ts +4 -4
  74. package/es/panel-component/panel-container-image/panel-container-image.d.ts.map +1 -1
  75. package/es/panel-component/panel-container-image/panel-container-image.mjs +1 -1
  76. package/es/panel-component/panel-container-tabs/index.d.ts +4 -4
  77. package/es/panel-component/panel-container-tabs/index.d.ts.map +1 -1
  78. package/es/panel-component/panel-container-tabs/panel-container-tabs.d.ts +4 -4
  79. package/es/panel-component/panel-container-tabs/panel-container-tabs.d.ts.map +1 -1
  80. package/es/panel-component/panel-ctrl-pos/index.d.ts +4 -4
  81. package/es/panel-component/panel-ctrl-pos/index.d.ts.map +1 -1
  82. package/es/panel-component/panel-ctrl-pos/panel-ctrl-pos.d.ts +4 -4
  83. package/es/panel-component/panel-ctrl-pos/panel-ctrl-pos.d.ts.map +1 -1
  84. package/es/panel-component/panel-ctrl-pos/panel-ctrl-pos.mjs +1 -1
  85. package/es/panel-component/panel-ctrl-view-page-caption/index.d.ts +4 -4
  86. package/es/panel-component/panel-ctrl-view-page-caption/index.d.ts.map +1 -1
  87. package/es/panel-component/panel-ctrl-view-page-caption/panel-ctrl-view-page-caption.d.ts +4 -4
  88. package/es/panel-component/panel-ctrl-view-page-caption/panel-ctrl-view-page-caption.d.ts.map +1 -1
  89. package/es/panel-component/panel-ctrl-view-page-caption/panel-ctrl-view-page-caption.mjs +1 -1
  90. package/es/panel-component/panel-field/index.d.ts +4 -4
  91. package/es/panel-component/panel-field/index.d.ts.map +1 -1
  92. package/es/panel-component/panel-field/panel-field.d.ts +4 -4
  93. package/es/panel-component/panel-field/panel-field.d.ts.map +1 -1
  94. package/es/panel-component/panel-field/panel-field.mjs +1 -1
  95. package/es/panel-component/panel-item-render/index.d.ts +4 -4
  96. package/es/panel-component/panel-item-render/index.d.ts.map +1 -1
  97. package/es/panel-component/panel-item-render/panel-item-render.d.ts +4 -4
  98. package/es/panel-component/panel-item-render/panel-item-render.d.ts.map +1 -1
  99. package/es/panel-component/panel-item-render/panel-item-render.mjs +1 -1
  100. package/es/panel-component/panel-rawitem/index.d.ts +6 -6
  101. package/es/panel-component/panel-rawitem/index.d.ts.map +1 -1
  102. package/es/panel-component/panel-rawitem/panel-rawitem.d.ts +6 -6
  103. package/es/panel-component/panel-rawitem/panel-rawitem.d.ts.map +1 -1
  104. package/es/panel-component/panel-rawitem/panel-rawitem.mjs +1 -1
  105. package/es/panel-component/panel-tab-page/index.d.ts +4 -4
  106. package/es/panel-component/panel-tab-page/index.d.ts.map +1 -1
  107. package/es/panel-component/panel-tab-page/panel-tab-page.d.ts +4 -4
  108. package/es/panel-component/panel-tab-page/panel-tab-page.d.ts.map +1 -1
  109. package/es/panel-component/panel-tab-page/panel-tab-page.mjs +1 -1
  110. package/es/panel-component/scroll-container/index.d.ts +4 -4
  111. package/es/panel-component/scroll-container/index.d.ts.map +1 -1
  112. package/es/panel-component/scroll-container/scroll-container/scroll-container.d.ts +4 -4
  113. package/es/panel-component/scroll-container/scroll-container/scroll-container.d.ts.map +1 -1
  114. package/es/panel-component/scroll-container/scroll-container/scroll-container.mjs +1 -1
  115. package/es/panel-component/scroll-container/scroll-container-item/scroll-container-item.d.ts +4 -4
  116. package/es/panel-component/scroll-container/scroll-container-item/scroll-container-item.d.ts.map +1 -1
  117. package/es/panel-component/scroll-container/scroll-container-item/scroll-container-item.mjs +1 -1
  118. package/es/panel-component/single-data-container/index.d.ts +4 -4
  119. package/es/panel-component/single-data-container/index.d.ts.map +1 -1
  120. package/es/panel-component/single-data-container/single-data-container.d.ts +4 -4
  121. package/es/panel-component/single-data-container/single-data-container.d.ts.map +1 -1
  122. package/es/panel-component/single-data-container/single-data-container.mjs +1 -1
  123. package/es/panel-component/teleport-placeholder/index.d.ts +5 -5
  124. package/es/panel-component/teleport-placeholder/index.d.ts.map +1 -1
  125. package/es/panel-component/teleport-placeholder/teleport-placeholder.d.ts +5 -5
  126. package/es/panel-component/teleport-placeholder/teleport-placeholder.d.ts.map +1 -1
  127. package/es/panel-component/teleport-placeholder/teleport-placeholder.mjs +1 -1
  128. package/es/use/vue/vue.mjs +1 -1
  129. package/es/util/store/app-store/app-store.d.ts +2 -2
  130. package/es/util/store/ui-store/ui-store.d.ts +2 -2
  131. package/es/view/app-redirect-view/app-redirect-view.d.ts +1 -1
  132. package/es/view/app-redirect-view/app-redirect-view.d.ts.map +1 -1
  133. package/es/view/app-redirect-view/app-redirect-view.mjs +1 -1
  134. package/es/view/common/index.d.ts +5 -5
  135. package/es/view/common/index.d.ts.map +1 -1
  136. package/es/view/common/view.d.ts +5 -5
  137. package/es/view/common/view.d.ts.map +1 -1
  138. package/es/view/common/view.mjs +2 -2
  139. package/es/view/de-redirect-view/de-redirect-view.d.ts +8 -8
  140. package/es/view/de-redirect-view/de-redirect-view.d.ts.map +1 -1
  141. package/es/view/de-redirect-view/de-redirect-view.mjs +1 -1
  142. package/es/view/de-redirect-view/index.d.ts +8 -8
  143. package/es/view/de-redirect-view/index.d.ts.map +1 -1
  144. package/es/view/html-view/html-view.d.ts +8 -9
  145. package/es/view/html-view/html-view.d.ts.map +1 -1
  146. package/es/view/html-view/html-view.mjs +8 -16
  147. package/es/view/html-view/index.d.ts +7 -8
  148. package/es/view/html-view/index.d.ts.map +1 -1
  149. package/es/view/portal-view/index.d.ts +5 -5
  150. package/es/view/portal-view/index.d.ts.map +1 -1
  151. package/es/view/portal-view/portal-view.d.ts +5 -5
  152. package/es/view/portal-view/portal-view.d.ts.map +1 -1
  153. package/es/view/todo-redirect/todo-redirect.d.ts +1 -1
  154. package/es/view/todo-redirect/todo-redirect.d.ts.map +1 -1
  155. package/lib/panel-component/panel-container-group/panel-container-group.cjs +1 -1
  156. package/lib/view/html-view/html-view.cjs +6 -14
  157. package/package.json +6 -6
@@ -1,6 +1,5 @@
1
- import { defineComponent, ref, computed, onBeforeMount, withDirectives, createVNode, resolveDirective, h, resolveComponent } from 'vue';
2
- import { StringUtil } from '@ibiz-template/core';
3
- import { ViewController, getErrorViewProvider } from '@ibiz-template/runtime';
1
+ import { defineComponent, withDirectives, createVNode, resolveDirective, h, resolveComponent, ref, onBeforeMount } from 'vue';
2
+ import { getErrorViewProvider, HtmlViewController } from '@ibiz-template/runtime';
4
3
  import '../../use/index.mjs';
5
4
  import './html-view.css';
6
5
  import { useNamespace } from '../../use/namespace/namespace.mjs';
@@ -29,7 +28,7 @@ const HtmlView = /* @__PURE__ */ defineComponent({
29
28
  setup() {
30
29
  var _a;
31
30
  const ns = useNamespace("view");
32
- const c = useViewController((...args) => new ViewController(...args));
31
+ const c = useViewController((model, ...args) => new HtmlViewController(model, ...args));
33
32
  const controls = ((_a = c.model.viewLayoutPanel) == null ? void 0 : _a.controls) || c.model.controls;
34
33
  const {
35
34
  viewType,
@@ -40,16 +39,8 @@ const HtmlView = /* @__PURE__ */ defineComponent({
40
39
  const sysCssName = sysCss == null ? void 0 : sysCss.cssName;
41
40
  const viewClassNames = [ns.b(), ns.b(typeClass), ns.m(codeName), sysCssName];
42
41
  const isLoading = ref(false);
43
- const url = computed(() => {
44
- const {
45
- htmlUrl
46
- } = c.model;
47
- if (htmlUrl)
48
- return StringUtil.fill(htmlUrl, c.context, c.params);
49
- return "";
50
- });
51
42
  onBeforeMount(() => {
52
- if (url.value) {
43
+ if (c.state.htmlUrl) {
53
44
  isLoading.value = true;
54
45
  }
55
46
  });
@@ -61,17 +52,18 @@ const HtmlView = /* @__PURE__ */ defineComponent({
61
52
  ns,
62
53
  controls,
63
54
  viewClassNames,
64
- url,
65
55
  isLoading,
66
56
  onLoad
67
57
  };
68
58
  },
69
59
  render() {
70
- if (this.url) {
60
+ if (!this.c.state.isCreated)
61
+ return;
62
+ if (this.c.state.htmlUrl) {
71
63
  return withDirectives(createVNode("div", {
72
64
  "class": this.viewClassNames
73
65
  }, [createVNode("iframe", {
74
- "src": this.url,
66
+ "src": this.c.state.htmlUrl,
75
67
  "onLoad": () => this.onLoad()
76
68
  }, null)]), [[resolveDirective("loading"), this.isLoading]]);
77
69
  }
@@ -1,4 +1,4 @@
1
- export declare const IBizHtmlView: import("../../util").TypeWithInstall<import("vue").DefineComponent<{
1
+ export declare const IBizHtmlView: import("../../util").TypeWithInstall<import("vue").DefineComponent<import("vue").ExtractPropTypes<{
2
2
  context: import("vue").PropType<import("@ibiz-template/core").IApiContext>;
3
3
  params: {
4
4
  type: import("vue").PropType<import("@ibiz-template/core").IApiParams>;
@@ -14,15 +14,14 @@ export declare const IBizHtmlView: import("../../util").TypeWithInstall<import("
14
14
  state: {
15
15
  type: import("vue").PropType<import("@ibiz-template/core").IApiData>;
16
16
  };
17
- }, {
18
- c: import("@ibiz-template/runtime").ViewController<import("@ibiz/model-core").IAppView, import("@ibiz-template/runtime").IViewState, import("@ibiz-template/runtime").IViewEvent>;
17
+ }>, {
18
+ c: import("@ibiz-template/runtime").HtmlViewController<import("@ibiz/model-core").IAppDEHtmlView, import("@ibiz-template/runtime").IHtmlViewState, import("@ibiz-template/runtime").IViewEvent>;
19
19
  ns: import("@ibiz-template/core").Namespace;
20
20
  controls: import("@ibiz/model-core").IControl[] | undefined;
21
21
  viewClassNames: (string | undefined)[];
22
- url: import("vue").ComputedRef<string>;
23
- isLoading: import("vue").Ref<boolean>;
22
+ isLoading: import("vue").Ref<boolean, boolean>;
24
23
  onLoad: () => void;
25
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
24
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
26
25
  context: import("vue").PropType<import("@ibiz-template/core").IApiContext>;
27
26
  params: {
28
27
  type: import("vue").PropType<import("@ibiz-template/core").IApiParams>;
@@ -38,7 +37,7 @@ export declare const IBizHtmlView: import("../../util").TypeWithInstall<import("
38
37
  state: {
39
38
  type: import("vue").PropType<import("@ibiz-template/core").IApiData>;
40
39
  };
41
- }>>, {
40
+ }>> & Readonly<{}>, {
42
41
  params: import("@ibiz-template/core").IApiParams;
43
- }, {}>>;
42
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>>;
44
43
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/view/html-view/index.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAGvB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/view/html-view/index.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6EAGvB,CAAC"}
@@ -1,4 +1,4 @@
1
- export declare const IBizPortalView: import("../../util").TypeWithInstall<import("vue").DefineComponent<{
1
+ export declare const IBizPortalView: import("../../util").TypeWithInstall<import("vue").DefineComponent<import("vue").ExtractPropTypes<{
2
2
  context: import("vue").PropType<import("@ibiz-template/core").IApiContext>;
3
3
  params: {
4
4
  type: import("vue").PropType<import("@ibiz-template/core").IApiParams>;
@@ -14,12 +14,12 @@ export declare const IBizPortalView: import("../../util").TypeWithInstall<import
14
14
  state: {
15
15
  type: import("vue").PropType<import("@ibiz-template/core").IApiData>;
16
16
  };
17
- }, {
17
+ }>, {
18
18
  c: import("@ibiz-template/runtime").ViewController<import("@ibiz/model-core").IAppView, import("@ibiz-template/runtime").IViewState, import("@ibiz-template/runtime").IViewEvent>;
19
19
  ns: import("@ibiz-template/core").Namespace;
20
20
  controls: import("@ibiz/model-core").IControl[] | undefined;
21
21
  viewClassNames: (string | undefined)[];
22
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
22
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
23
23
  context: import("vue").PropType<import("@ibiz-template/core").IApiContext>;
24
24
  params: {
25
25
  type: import("vue").PropType<import("@ibiz-template/core").IApiParams>;
@@ -35,7 +35,7 @@ export declare const IBizPortalView: import("../../util").TypeWithInstall<import
35
35
  state: {
36
36
  type: import("vue").PropType<import("@ibiz-template/core").IApiData>;
37
37
  };
38
- }>>, {
38
+ }>> & Readonly<{}>, {
39
39
  params: import("@ibiz-template/core").IApiParams;
40
- }, {}>>;
40
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>>;
41
41
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/view/portal-view/index.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAWzB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/view/portal-view/index.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6EAWzB,CAAC"}
@@ -1,7 +1,7 @@
1
1
  import { IModal, ViewController } from '@ibiz-template/runtime';
2
2
  import { IAppPortalView } from '@ibiz/model-core';
3
3
  import { PropType } from 'vue';
4
- export declare const PortalView: import("vue").DefineComponent<{
4
+ export declare const PortalView: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
5
5
  context: PropType<import("@ibiz-template/core").IApiContext>;
6
6
  params: {
7
7
  type: PropType<import("@ibiz-template/core").IApiParams>;
@@ -17,12 +17,12 @@ export declare const PortalView: import("vue").DefineComponent<{
17
17
  state: {
18
18
  type: PropType<import("@ibiz-template/core").IApiData>;
19
19
  };
20
- }, {
20
+ }>, {
21
21
  c: ViewController<import("@ibiz/model-core").IAppView, import("@ibiz-template/runtime").IViewState, import("@ibiz-template/runtime").IViewEvent>;
22
22
  ns: import("@ibiz-template/core").Namespace;
23
23
  controls: import("@ibiz/model-core").IControl[] | undefined;
24
24
  viewClassNames: (string | undefined)[];
25
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
25
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
26
26
  context: PropType<import("@ibiz-template/core").IApiContext>;
27
27
  params: {
28
28
  type: PropType<import("@ibiz-template/core").IApiParams>;
@@ -38,7 +38,7 @@ export declare const PortalView: import("vue").DefineComponent<{
38
38
  state: {
39
39
  type: PropType<import("@ibiz-template/core").IApiData>;
40
40
  };
41
- }>>, {
41
+ }>> & Readonly<{}>, {
42
42
  params: import("@ibiz-template/core").IApiParams;
43
- }, {}>;
43
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
44
44
  //# sourceMappingURL=portal-view.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"portal-view.d.ts","sourceRoot":"","sources":["../../../src/view/portal-view/portal-view.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAChE,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAsB,QAAQ,EAAoB,MAAM,KAAK,CAAC;AAGrE,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MA6ErB,CAAC"}
1
+ {"version":3,"file":"portal-view.d.ts","sourceRoot":"","sources":["../../../src/view/portal-view/portal-view.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAChE,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAsB,QAAQ,EAAoB,MAAM,KAAK,CAAC;AAGrE,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4EA6ErB,CAAC"}
@@ -1,2 +1,2 @@
1
- export declare const TodoRedirect: import("vue").DefineComponent<{}, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
1
+ export declare const TodoRedirect: import("vue").DefineComponent<{}, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2
2
  //# sourceMappingURL=todo-redirect.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"todo-redirect.d.ts","sourceRoot":"","sources":["../../../src/view/todo-redirect/todo-redirect.tsx"],"names":[],"mappings":"AAIA,eAAO,MAAM,YAAY,sSA8CvB,CAAC"}
1
+ {"version":3,"file":"todo-redirect.d.ts","sourceRoot":"","sources":["../../../src/view/todo-redirect/todo-redirect.tsx"],"names":[],"mappings":"AAIA,eAAO,MAAM,YAAY,iRA8CvB,CAAC"}
@@ -5,8 +5,8 @@ var panelContainerGroup_controller = require('./panel-container-group.controller
5
5
  require('../../use/index.cjs');
6
6
  require('../../common/index.cjs');
7
7
  require('./panel-container-group.css');
8
- var namespace = require('../../use/namespace/namespace.cjs');
9
8
  var icon = require('../../common/icon/icon.cjs');
9
+ var namespace = require('../../use/namespace/namespace.cjs');
10
10
 
11
11
  "use strict";
12
12
  function _isSlot(s) {
@@ -1,7 +1,6 @@
1
1
  'use strict';
2
2
 
3
3
  var vue = require('vue');
4
- var core = require('@ibiz-template/core');
5
4
  var runtime = require('@ibiz-template/runtime');
6
5
  require('../../use/index.cjs');
7
6
  require('./html-view.css');
@@ -31,7 +30,7 @@ const HtmlView = /* @__PURE__ */ vue.defineComponent({
31
30
  setup() {
32
31
  var _a;
33
32
  const ns = namespace.useNamespace("view");
34
- const c = useViewController.useViewController((...args) => new runtime.ViewController(...args));
33
+ const c = useViewController.useViewController((model, ...args) => new runtime.HtmlViewController(model, ...args));
35
34
  const controls = ((_a = c.model.viewLayoutPanel) == null ? void 0 : _a.controls) || c.model.controls;
36
35
  const {
37
36
  viewType,
@@ -42,16 +41,8 @@ const HtmlView = /* @__PURE__ */ vue.defineComponent({
42
41
  const sysCssName = sysCss == null ? void 0 : sysCss.cssName;
43
42
  const viewClassNames = [ns.b(), ns.b(typeClass), ns.m(codeName), sysCssName];
44
43
  const isLoading = vue.ref(false);
45
- const url = vue.computed(() => {
46
- const {
47
- htmlUrl
48
- } = c.model;
49
- if (htmlUrl)
50
- return core.StringUtil.fill(htmlUrl, c.context, c.params);
51
- return "";
52
- });
53
44
  vue.onBeforeMount(() => {
54
- if (url.value) {
45
+ if (c.state.htmlUrl) {
55
46
  isLoading.value = true;
56
47
  }
57
48
  });
@@ -63,17 +54,18 @@ const HtmlView = /* @__PURE__ */ vue.defineComponent({
63
54
  ns,
64
55
  controls,
65
56
  viewClassNames,
66
- url,
67
57
  isLoading,
68
58
  onLoad
69
59
  };
70
60
  },
71
61
  render() {
72
- if (this.url) {
62
+ if (!this.c.state.isCreated)
63
+ return;
64
+ if (this.c.state.htmlUrl) {
73
65
  return vue.withDirectives(vue.createVNode("div", {
74
66
  "class": this.viewClassNames
75
67
  }, [vue.createVNode("iframe", {
76
- "src": this.url,
68
+ "src": this.c.state.htmlUrl,
77
69
  "onLoad": () => this.onLoad()
78
70
  }, null)]), [[vue.resolveDirective("loading"), this.isLoading]]);
79
71
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ibiz-template/vue3-util",
3
- "version": "0.7.41-alpha.27",
3
+ "version": "0.7.41-alpha.28",
4
4
  "description": "通用组件库(vue3)",
5
5
  "main": "lib/index.cjs",
6
6
  "types": "es/index.d.ts",
@@ -37,10 +37,10 @@
37
37
  "license": "MIT",
38
38
  "devDependencies": {
39
39
  "@ibiz-template/cli": "^0.3.23",
40
- "@ibiz-template/core": "^0.7.41-alpha.26",
41
- "@ibiz-template/runtime": "^0.7.41-alpha.27",
40
+ "@ibiz-template/core": "^0.7.41-alpha.28",
41
+ "@ibiz-template/runtime": "^0.7.41-alpha.28",
42
42
  "@ibiz-template/theme": "^0.7.39",
43
- "@ibiz/model-core": "^0.1.81",
43
+ "@ibiz/model-core": "^0.1.82",
44
44
  "@types/path-browserify": "^1.0.2",
45
45
  "@types/qs": "^6.9.11",
46
46
  "@types/systemjs": "^6.13.5",
@@ -57,7 +57,7 @@
57
57
  "peerDependencies": {
58
58
  "@ibiz-template/core": "^0.6.0",
59
59
  "@ibiz-template/runtime": "^0.6.0",
60
- "@ibiz/model-core": "^0.1.81",
60
+ "@ibiz/model-core": "^0.1.82",
61
61
  "dayjs": "^1.11.10",
62
62
  "path-browserify": "^1.0.1",
63
63
  "pinia": "^2.1.7",
@@ -67,5 +67,5 @@
67
67
  "vue": "^3.3.8",
68
68
  "vue-router": "^4.2.4"
69
69
  },
70
- "gitHead": "e1cf592ba49a4a3e93a5398aabb5c8a97073b698"
70
+ "gitHead": "78695c3344ebc9601708c7c334f3cc96c955b023"
71
71
  }