@kp-ui/lowcode 2.15.0-alpha.8 → 2.15.0-alpha.9

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kp-ui/lowcode",
3
- "version": "2.15.0-alpha.8",
3
+ "version": "2.15.0-alpha.9",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -1,15 +1,15 @@
1
- import { defineComponent as L, computed as N, ref as f, getCurrentInstance as B, onMounted as V, watch as k, createElementBlock as S, openBlock as h, Fragment as w, createElementVNode as J, createVNode as t, unref as r, mergeProps as E } from "vue";
2
- import I from "../form-render/dynamic-dialog.vue.js";
1
+ import { defineComponent as D, computed as L, ref as s, getCurrentInstance as V, onMounted as S, watch as h, createElementBlock as w, openBlock as f, Fragment as J, createElementVNode as E, createBlock as I, createCommentVNode as M, createVNode as u, unref as t, mergeProps as P } from "vue";
2
+ import T from "../form-render/dynamic-dialog.vue.js";
3
3
  /* empty css */
4
- import u from "./FormContainer.js";
5
- import { useFormContext as M } from "./useFormContext.js";
6
- import { useI18n as P } from "../../utils/i18n.js";
7
- import { storeToRefs as T } from "pinia";
8
- import { useLocaleStore as z } from "@kp-ui/i18n";
9
- import { getLocat as U } from "@kp-ui/tool";
10
- import $ from "./Debugger.vue.js";
11
- import { useComRef as j } from "tmgc2-share";
12
- const q = { class: "form-render-wrapper" }, oe = /* @__PURE__ */ L({
4
+ import c from "./FormContainer.js";
5
+ import { useFormContext as z } from "./useFormContext.js";
6
+ import { useI18n as U } from "../../utils/i18n.js";
7
+ import { storeToRefs as $ } from "pinia";
8
+ import { useLocaleStore as j } from "@kp-ui/i18n";
9
+ import { getLocat as q } from "@kp-ui/tool";
10
+ import A from "./Debugger.vue.js";
11
+ import { useComRef as G } from "tmgc2-share";
12
+ const H = { class: "form-render-wrapper" }, ne = /* @__PURE__ */ D({
13
13
  name: "VFormRender",
14
14
  componentName: "VFormRender",
15
15
  __name: "index",
@@ -26,57 +26,56 @@ const q = { class: "form-render-wrapper" }, oe = /* @__PURE__ */ L({
26
26
  debug: { type: Boolean }
27
27
  },
28
28
  emits: ["form-submit", "form-cancel"],
29
- setup(c, { expose: d, emit: p }) {
30
- const { initLocale: g } = P(), b = z(), { locale: n } = T(b);
31
- N(() => U().debug === "1");
32
- const m = f(!1);
33
- B();
34
- const a = c, l = f(), o = j(u), v = p, e = M({
35
- props: a,
36
- renderForm: l
37
- }), C = (i) => {
38
- v("form-submit", i);
39
- }, _ = () => (console.log(o.value), o.value);
40
- V(() => {
41
- console.log(321321321321), e.registerToRefList("v_form_ref");
42
- }), k(
43
- n,
29
+ setup(d, { expose: p, emit: g }) {
30
+ const { initLocale: b } = U(), v = j(), { locale: r } = $(v), C = L(() => q().debug === "1"), n = s(!1);
31
+ V();
32
+ const m = d, a = s(), o = G(c), _ = g, e = z({
33
+ props: m,
34
+ renderForm: a
35
+ }), F = (l) => {
36
+ _("form-submit", l);
37
+ }, x = () => (console.log(o.value), o.value);
38
+ S(() => {
39
+ e.registerToRefList("v_form_ref");
40
+ }), h(
41
+ r,
44
42
  () => {
45
- g(n.value);
43
+ b(r.value);
46
44
  },
47
45
  {
48
46
  immediate: !0
49
47
  }
50
48
  );
51
- const F = () => {
52
- }, { dynamicDialgRef: x, dialogProps: y, emitter: R } = e;
53
- return d({
54
- ...R,
49
+ const y = () => {
50
+ }, { dynamicDialgRef: N, dialogProps: R, emitter: k } = e;
51
+ return p({
52
+ ...k,
55
53
  ...e,
56
- getNativeForm: _,
57
- setLoading: F,
58
- formJson: a.formJson,
59
- renderForm: l
60
- }), (i, s) => (h(), S(w, null, [
61
- J("div", q, [
62
- t(r(u), {
54
+ getNativeForm: x,
55
+ setLoading: y,
56
+ formJson: m.formJson,
57
+ renderForm: a
58
+ }), (l, i) => (f(), w(J, null, [
59
+ E("div", H, [
60
+ u(t(c), {
63
61
  ref_key: "formContainer",
64
62
  ref: o,
65
- context: r(e),
66
- onFormSubmit: C
63
+ context: t(e),
64
+ onFormSubmit: F
67
65
  }, null, 8, ["context"]),
68
- t(I, E(r(y), {
66
+ u(T, P(t(R), {
69
67
  ref_key: "dynamicDialgRef",
70
- ref: x
68
+ ref: N
71
69
  }), null, 16)
72
70
  ]),
73
- t($, {
74
- visible: m.value,
75
- "onUpdate:visible": s[0] || (s[0] = (D) => m.value = D)
76
- }, null, 8, ["visible"])
71
+ C.value ? (f(), I(A, {
72
+ key: 0,
73
+ visible: n.value,
74
+ "onUpdate:visible": i[0] || (i[0] = (B) => n.value = B)
75
+ }, null, 8, ["visible"])) : M("", !0)
77
76
  ], 64));
78
77
  }
79
78
  });
80
79
  export {
81
- oe as default
80
+ ne as default
82
81
  };