@ibiz-template/vue3-components 0.4.1-dev.0 → 0.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -37,18 +37,22 @@ const FormMDCtrlMD = /* @__PURE__ */ defineComponent({
37
37
  mdProvider,
38
38
  model
39
39
  } = this.controller;
40
- const controlProps = {
41
- class: this.ns.b("content"),
42
- modelData: model.contentControl,
43
- context: this.controller.form.context,
44
- params: this.controller.form.params,
45
- onCreated: this.onCreated,
46
- onSelectionChange: this.onSelectionChange
47
- };
48
- if (model.contentType === "GRID") {
49
- controlProps.rowEditOpen = true;
40
+ const isLoaded = this.controller.form.state.isLoaded;
41
+ let controlComponent = null;
42
+ if (isLoaded) {
43
+ const controlProps = {
44
+ class: this.ns.b("content"),
45
+ modelData: model.contentControl,
46
+ context: this.controller.form.context,
47
+ params: this.controller.form.params,
48
+ onCreated: this.onCreated,
49
+ onSelectionChange: this.onSelectionChange
50
+ };
51
+ if (model.contentType === "GRID") {
52
+ controlProps.rowEditOpen = true;
53
+ }
54
+ controlComponent = h(resolveComponent(mdProvider.component), controlProps);
50
55
  }
51
- const controlComponent = h(resolveComponent(mdProvider.component), controlProps);
52
56
  return createVNode("div", {
53
57
  "class": this.ns.b()
54
58
  }, [controlComponent, this.showActions && createVNode("div", {
@@ -39,18 +39,22 @@ const FormMDCtrlMD = /* @__PURE__ */ vue.defineComponent({
39
39
  mdProvider,
40
40
  model
41
41
  } = this.controller;
42
- const controlProps = {
43
- class: this.ns.b("content"),
44
- modelData: model.contentControl,
45
- context: this.controller.form.context,
46
- params: this.controller.form.params,
47
- onCreated: this.onCreated,
48
- onSelectionChange: this.onSelectionChange
49
- };
50
- if (model.contentType === "GRID") {
51
- controlProps.rowEditOpen = true;
42
+ const isLoaded = this.controller.form.state.isLoaded;
43
+ let controlComponent = null;
44
+ if (isLoaded) {
45
+ const controlProps = {
46
+ class: this.ns.b("content"),
47
+ modelData: model.contentControl,
48
+ context: this.controller.form.context,
49
+ params: this.controller.form.params,
50
+ onCreated: this.onCreated,
51
+ onSelectionChange: this.onSelectionChange
52
+ };
53
+ if (model.contentType === "GRID") {
54
+ controlProps.rowEditOpen = true;
55
+ }
56
+ controlComponent = vue.h(vue.resolveComponent(mdProvider.component), controlProps);
52
57
  }
53
- const controlComponent = vue.h(vue.resolveComponent(mdProvider.component), controlProps);
54
58
  return vue.createVNode("div", {
55
59
  "class": this.ns.b()
56
60
  }, [controlComponent, this.showActions && vue.createVNode("div", {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ibiz-template/vue3-components",
3
- "version": "0.4.1-dev.0",
3
+ "version": "0.4.1",
4
4
  "description": "使用 rollup 编译 vue 组件或者 jsx",
5
5
  "main": "lib/index.cjs",
6
6
  "module": "es/index.mjs",
@@ -26,10 +26,10 @@
26
26
  "@floating-ui/dom": "^1.5.3",
27
27
  "@ibiz-template-plugin/ai-chat": "^0.0.1",
28
28
  "@ibiz-template/core": "^0.4.0",
29
- "@ibiz-template/model-helper": "^0.4.1-dev.0",
30
- "@ibiz-template/runtime": "^0.4.1-dev.0",
29
+ "@ibiz-template/model-helper": "^0.4.1",
30
+ "@ibiz-template/runtime": "^0.4.1",
31
31
  "@ibiz-template/theme": "^0.4.0",
32
- "@ibiz-template/vue3-util": "^0.4.1-dev.0",
32
+ "@ibiz-template/vue3-util": "^0.4.1",
33
33
  "@ibiz/model-core": "^0.0.21",
34
34
  "@imengyu/vue3-context-menu": "^1.3.3",
35
35
  "@monaco-editor/loader": "^1.4.0",
@@ -59,14 +59,14 @@
59
59
  "@commitlint/config-conventional": "^18.4.3",
60
60
  "@ibiz-template/cli": "0.3.2",
61
61
  "@types/lodash-es": "^4.17.12",
62
- "@types/node": "^20.9.4",
62
+ "@types/node": "^20.10.0",
63
63
  "@types/qs": "^6.9.10",
64
64
  "@types/ramda": "^0.29.9",
65
65
  "husky": "^8.0.3",
66
66
  "lint-staged": "^15.1.0",
67
67
  "stylelint": "^15.11.0",
68
- "typescript": "^5.2.2",
69
- "vite": "^4.5.0",
68
+ "typescript": "^5.3.2",
69
+ "vite": "^5.0.3",
70
70
  "vue-tsc": "^1.8.22"
71
71
  },
72
72
  "peerDependencies": {