form-imagining 0.0.20 → 0.0.21

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 (62) hide show
  1. package/README.md +11 -8
  2. package/dist/App-117f2401.js +22 -0
  3. package/dist/Code-2b650014.js +5 -0
  4. package/dist/Col-1ad3b02d.js +5 -0
  5. package/dist/{Demo-fdd82548.js → Demo-cb77eefd.js} +1 -1
  6. package/dist/{Form-1e372621.js → Form-267b2acf.js} +1 -1
  7. package/dist/FormPublic-fcfcf793.js +5 -0
  8. package/dist/GenerateForm-2f713859.js +5 -0
  9. package/dist/Grid-8c79143b.js +5 -0
  10. package/dist/{HelloWorld-2cd60613.js → HelloWorld-0cfd7df3.js} +1 -1
  11. package/dist/Input-/345/210/240/351/231/{244-e2e34a89.js → 244-c82959c3.js} +1 -1
  12. package/dist/Label-/345/210/240/351/231/{244-0cb771ab.js → 244-aa8cd9e3.js} +1 -1
  13. package/dist/{Login-5c75038a.js → Login-fce41eee.js} +1 -1
  14. package/dist/ReportModule-297f2362.js +5 -0
  15. package/dist/SqlModule-329c9c55.js +5 -0
  16. package/dist/Table-62645938.js +5 -0
  17. package/dist/{cTable-a295aa0e.js → cTable-87c99e69.js} +1 -1
  18. package/dist/childForm-1af05ca1.js +5 -0
  19. package/dist/{cssMode-8a4c63ba.js → cssMode-d2a84267.js} +1 -1
  20. package/dist/form-imagining.js +1 -1
  21. package/dist/form-imagining.umd.cjs +259 -235
  22. package/dist/{freemarker2-e9ba76f1.js → freemarker2-3efa9ea1.js} +3 -3
  23. package/dist/{handlebars-d018e927.js → handlebars-72a49cd2.js} +1 -1
  24. package/dist/{html-e310a901.js → html-1af18738.js} +1 -1
  25. package/dist/{htmlMode-786de656.js → htmlMode-9eeb1349.js} +1 -1
  26. package/dist/{index-e4aae2dd.js → index-30b21584.js} +1 -1
  27. package/dist/{index-c9c30439.js → index-7a0091c2.js} +16919 -15777
  28. package/dist/{javascript-f12bd58c.js → javascript-47f9fb53.js} +2 -2
  29. package/dist/{jsonMode-75952d51.js → jsonMode-e9558a7f.js} +30 -30
  30. package/dist/{liquid-fb05d087.js → liquid-7869544b.js} +1 -1
  31. package/dist/{mdx-be59e6cc.js → mdx-fdfe381b.js} +4 -4
  32. package/dist/{python-ad30fefa.js → python-dcb57e90.js} +1 -1
  33. package/dist/{razor-d91e2766.js → razor-f9413e1b.js} +1 -1
  34. package/dist/style.css +1 -1
  35. package/dist/{tableSelectDemo-b96742b6.js → tableSelectDemo-9cfa765c.js} +1 -1
  36. package/dist/{tableSelectDemo2-1351b70e.js → tableSelectDemo2-8d43da9c.js} +1 -1
  37. package/dist/{tsMode-2a9d1903.js → tsMode-6849c82b.js} +10 -10
  38. package/dist/{typescript-0c990a02.js → typescript-dbbb0167.js} +1 -1
  39. package/dist/{xml-2c3838bd.js → xml-0082bfd8.js} +1 -1
  40. package/dist/{yaml-b0a7f3a3.js → yaml-d3ddc3e7.js} +1 -1
  41. package/package.json +1 -1
  42. package/dist/App-603e5455.js +0 -25
  43. package/dist/Code-ef12c34b.js +0 -5
  44. package/dist/Col-74cca139.js +0 -5
  45. package/dist/Demo-602f04d8.js +0 -110
  46. package/dist/FormPublic-089eac3d.js +0 -5
  47. package/dist/GenerateForm-30d677aa.js +0 -5
  48. package/dist/Grid-68fdd72c.js +0 -5
  49. package/dist/Preview0925-588dfc2c.js +0 -62
  50. package/dist/PreviewDemo-1d0b0f64.js +0 -6
  51. package/dist/PreviewDemo.vue_vue_type_script_setup_true_lang-f4e79a3a.js +0 -285
  52. package/dist/PreviewDemo2-737fda06.js +0 -6
  53. package/dist/PreviewDemo2.vue_vue_type_script_setup_true_lang-24e1e1ab.js +0 -88
  54. package/dist/PreviewDemo3-66f4aa07.js +0 -82
  55. package/dist/ReportModule-c94639d3.js +0 -6
  56. package/dist/ReportModule.vue_vue_type_script_setup_true_lang-c11b0684.js +0 -105
  57. package/dist/SqlModule-5f0db752.js +0 -5
  58. package/dist/Table-e36c1320.js +0 -5
  59. package/dist/childForm-d19dd561.js +0 -5
  60. package/dist/index-2679db46.js +0 -123
  61. package/dist/index-6ef372a0.js +0 -177
  62. package/dist/modalDemo-2753e710.js +0 -53
@@ -1,88 +0,0 @@
1
- import { defineComponent as w, ref as r, reactive as y, onMounted as j, resolveComponent as n, openBlock as z, createElementBlock as g, createVNode as t, withCtx as a, mergeProps as s, unref as d } from "vue";
2
- import { o as x, v as f, b as p } from "./index-c9c30439.js";
3
- const C = /* @__PURE__ */ w({
4
- __name: "PreviewDemo2",
5
- props: {
6
- disabled: {
7
- type: Boolean,
8
- default: !1
9
- }
10
- },
11
- setup(i, { expose: _ }) {
12
- r([]), r([]);
13
- const l = y({
14
- bdc_djzb: {
15
- 业务号: "",
16
- age: 20,
17
- 受理编号: 2
18
- },
19
- bdc_ywfw: {
20
- name: "",
21
- title: "我是yefw"
22
- }
23
- });
24
- let u = r();
25
- _({
26
- onSubmit: c
27
- }), j(() => {
28
- console.info("我是预览页面");
29
- });
30
- function c() {
31
- return x(u.value);
32
- }
33
- return (B, e) => {
34
- const m = n("a-input"), b = n("a-form-item"), v = n("a-form");
35
- return z(), g("div", {
36
- class: "cici-form-css",
37
- ref_key: "formRef",
38
- ref: u
39
- }, [
40
- t(v, {
41
- "label-col": { style: { width: "100px" } },
42
- labelWrap: !0,
43
- model: l
44
- }, {
45
- default: a(() => [
46
- t(b, s({
47
- required: "",
48
- label: "受理编号"
49
- }, d(f)["bdc_djzb.受理编号"]), {
50
- default: a(() => [
51
- t(m, {
52
- value: l.bdc_djzb.受理编号,
53
- "onUpdate:value": e[0] || (e[0] = (o) => l.bdc_djzb.受理编号 = o),
54
- valueModifiers: { number: !0 },
55
- disabled: i.disabled,
56
- "write-field": "bdc_djzb.受理编号",
57
- rules: [{ type: "required", msg: "必须填写此项" }, { type: "number", msg: "请填写数字" }],
58
- onBlur: e[1] || (e[1] = (o) => d(p)(o, "blur"))
59
- }, null, 8, ["value", "disabled"])
60
- ]),
61
- _: 1
62
- }, 16),
63
- t(b, s({
64
- required: "",
65
- label: "名称"
66
- }, d(f)["bdc_djzb.name"]), {
67
- default: a(() => [
68
- t(m, {
69
- value: l.bdc_ywfw.name,
70
- "onUpdate:value": e[2] || (e[2] = (o) => l.bdc_ywfw.name = o),
71
- disabled: i.disabled,
72
- "write-field": "bdc_djzb.name",
73
- rules: [{ type: "required", msg: "必须填写此项" }],
74
- onBlur: e[3] || (e[3] = (o) => d(p)(o, "blur"))
75
- }, null, 8, ["value", "disabled"])
76
- ]),
77
- _: 1
78
- }, 16)
79
- ]),
80
- _: 1
81
- }, 8, ["model"])
82
- ], 512);
83
- };
84
- }
85
- });
86
- export {
87
- C as _
88
- };
@@ -1,82 +0,0 @@
1
- import { defineComponent as k, ref as m, reactive as w, onMounted as C, onBeforeUpdate as D, resolveComponent as l, openBlock as K, createElementBlock as R, createVNode as e, unref as c, isRef as g, withCtx as o, createElementVNode as p } from "vue";
2
- import { _ as x } from "./PreviewDemo.vue_vue_type_script_setup_true_lang-f4e79a3a.js";
3
- import { _ as B } from "./PreviewDemo2.vue_vue_type_script_setup_true_lang-24e1e1ab.js";
4
- import { H as h } from "./index-c9c30439.js";
5
- const E = { class: "cici-form-css" }, z = /* @__PURE__ */ k({
6
- __name: "PreviewDemo3",
7
- setup(M) {
8
- let t = m("1"), n = [], i = !1, a = m(!1);
9
- w({
10
- bdc_djzb: {
11
- 业务号: "",
12
- age: 20,
13
- 受理编号: 2
14
- },
15
- bdc_ywfw: {
16
- name: "",
17
- title: "我是yefw"
18
- }
19
- }), C(() => {
20
- i = !0;
21
- }), D(() => {
22
- n = [];
23
- });
24
- const f = (s) => {
25
- s && i && n.push(s);
26
- };
27
- function u() {
28
- h(n);
29
- }
30
- function b() {
31
- a.value = !a.value;
32
- }
33
- return (s, r) => {
34
- const _ = l("a-tab-pane"), v = l("a-tabs"), y = l("a-space");
35
- return K(), R("div", E, [
36
- e(v, {
37
- activeKey: c(t),
38
- "onUpdate:activeKey": r[0] || (r[0] = (d) => g(t) ? t.value = d : t = d)
39
- }, {
40
- default: o(() => [
41
- e(_, {
42
- key: "1",
43
- tab: "测试1"
44
- }, {
45
- default: o(() => [
46
- e(x, {
47
- ref: f,
48
- disabled: c(a)
49
- }, null, 8, ["disabled"])
50
- ]),
51
- _: 1
52
- }),
53
- e(_, {
54
- key: "2",
55
- tab: "测试2",
56
- forceRender: ""
57
- }, {
58
- default: o(() => [
59
- e(B, {
60
- ref: f,
61
- disabled: c(a)
62
- }, null, 8, ["disabled"])
63
- ]),
64
- _: 1
65
- })
66
- ]),
67
- _: 1
68
- }, 8, ["activeKey"]),
69
- e(y, null, {
70
- default: o(() => [
71
- p("a", { onClick: u }, "保存"),
72
- p("a", { onClick: b }, "是否允许编辑")
73
- ]),
74
- _: 1
75
- })
76
- ]);
77
- };
78
- }
79
- });
80
- export {
81
- z as default
82
- };
@@ -1,6 +0,0 @@
1
- import { _ as o } from "./ReportModule.vue_vue_type_script_setup_true_lang-c11b0684.js";
2
- import "vue";
3
- import "./index-c9c30439.js";
4
- export {
5
- o as default
6
- };
@@ -1,105 +0,0 @@
1
- import { defineComponent as f, ref as _, resolveComponent as u, openBlock as c, createBlock as b, unref as o, withCtx as n, createVNode as e, createTextVNode as y } from "vue";
2
- import { y as v } from "./index-c9c30439.js";
3
- const h = /* @__PURE__ */ f({
4
- __name: "ReportModule",
5
- setup(x) {
6
- let t = _({});
7
- function p() {
8
- }
9
- return (g, l) => {
10
- const m = u("a-input"), r = u("a-form-item"), d = u("a-select"), s = u("a-button"), i = u("a-form");
11
- return c(), b(i, {
12
- model: o(t),
13
- "label-col": { style: { width: "70px" } },
14
- layout: "vertical",
15
- autocomplete: "off",
16
- onFinish: p
17
- }, {
18
- default: n(() => [
19
- e(r, {
20
- label: "报表编号",
21
- name: "code",
22
- rules: [{ required: !0, message: "报表编号" }]
23
- }, {
24
- default: n(() => [
25
- e(m, {
26
- value: o(t).code,
27
- "onUpdate:value": l[0] || (l[0] = (a) => o(t).code = a),
28
- prefix: "",
29
- suffix: ""
30
- }, null, 8, ["value"])
31
- ]),
32
- _: 1
33
- }),
34
- e(r, {
35
- label: "报表名称",
36
- name: "name",
37
- rules: [{ required: !0, message: "报表名称" }]
38
- }, {
39
- default: n(() => [
40
- e(m, {
41
- value: o(t).name,
42
- "onUpdate:value": l[1] || (l[1] = (a) => o(t).name = a),
43
- prefix: "",
44
- suffix: ""
45
- }, null, 8, ["value"])
46
- ]),
47
- _: 1
48
- }),
49
- e(r, {
50
- label: "数据源",
51
- name: "dbType",
52
- rules: [{ required: !0 }]
53
- }, {
54
- default: n(() => [
55
- e(d, {
56
- value: o(t).dbType,
57
- "onUpdate:value": l[2] || (l[2] = (a) => o(t).dbType = a),
58
- mode: "tags",
59
- placeholder: "请选择",
60
- style: { width: "100%" }
61
- }, null, 8, ["value"])
62
- ]),
63
- _: 1
64
- }),
65
- e(r, {
66
- label: "SQL/API",
67
- name: "content",
68
- rules: [{ required: !0 }]
69
- }, {
70
- default: n(() => [
71
- e(v, {
72
- modelValue: o(t).content,
73
- "onUpdate:modelValue": l[3] || (l[3] = (a) => o(t).content = a),
74
- theme: "themeGray",
75
- language: "typescript",
76
- style: { width: "100%", border: "1px solid #e5e7eb" },
77
- height: "250px",
78
- "update:modelValue": "reportData.content"
79
- }, null, 8, ["modelValue"])
80
- ]),
81
- _: 1
82
- }),
83
- e(r, { "wrapper-col": { offset: 16, span: 8 } }, {
84
- default: n(() => [
85
- e(s, {
86
- type: "primary",
87
- "html-type": "submit"
88
- }, {
89
- default: n(() => [
90
- y("解析")
91
- ]),
92
- _: 1
93
- })
94
- ]),
95
- _: 1
96
- })
97
- ]),
98
- _: 1
99
- }, 8, ["model"]);
100
- };
101
- }
102
- });
103
- export {
104
- h as _
105
- };
@@ -1,5 +0,0 @@
1
- import { B as m } from "./index-c9c30439.js";
2
- import "vue";
3
- export {
4
- m as default
5
- };
@@ -1,5 +0,0 @@
1
- import { k as m } from "./index-c9c30439.js";
2
- import "vue";
3
- export {
4
- m as default
5
- };
@@ -1,5 +0,0 @@
1
- import { a as m } from "./index-c9c30439.js";
2
- import "vue";
3
- export {
4
- m as default
5
- };
@@ -1,123 +0,0 @@
1
- import { defineComponent as I, ref as s, onMounted as N, resolveComponent as r, openBlock as T, createBlock as z, withCtx as e, createVNode as t, createElementVNode as i, unref as l, createTextVNode as v } from "vue";
2
- import { u as K, l as x, D as S, A, F as B, r as V, m as H, n as E, _ as J } from "./index-c9c30439.js";
3
- import L from "./index-6ef372a0.js";
4
- import { _ as M } from "./ReportModule.vue_vue_type_script_setup_true_lang-c11b0684.js";
5
- const O = { style: { background: "#fff", textAlign: "center", height: "99%" } }, R = /* @__PURE__ */ I({
6
- __name: "index",
7
- props: {
8
- id: {
9
- type: Number,
10
- default: 28
11
- }
12
- },
13
- setup(u) {
14
- const _ = K(), c = u;
15
- let b = s([]), f = s(), m = s();
16
- h(), D();
17
- function h() {
18
- const o = "/magicapi/zrzy-form/magic/form/form/list";
19
- x.post({ url: o, params: { id: c.id } }, { withToken: !0 }).then((a) => {
20
- const n = a.list[0];
21
- if (m.value = n.code, n.content != "") {
22
- const d = JSON.parse(n.content);
23
- _.setFormData(d);
24
- }
25
- });
26
- }
27
- function D() {
28
- const o = "/magicapi/zrzy-form/magic/form/source/list";
29
- x.post({ url: o, params: { formId: c.id } }, { withToken: !0 }).then((a) => {
30
- b.value = a.list;
31
- });
32
- }
33
- const p = s("1");
34
- function F(o) {
35
- f.value = o;
36
- }
37
- return N(() => {
38
- _.setFormId(c.id);
39
- }), (o, a) => {
40
- const n = r("a-tab-pane"), d = r("a-tabs"), y = r("a-layout-sider"), k = r("a-layout-header"), C = r("a-layout-content"), g = r("a-layout");
41
- return T(), z(g, { style: { height: "100%", padding: "5px 5px" } }, {
42
- default: e(() => [
43
- t(y, {
44
- width: "270",
45
- style: { left: 0, top: 0, bottom: 0 }
46
- }, {
47
- default: e(() => [
48
- t(d, {
49
- activeKey: p.value,
50
- "onUpdate:activeKey": a[0] || (a[0] = (w) => p.value = w)
51
- }, {
52
- default: e(() => [
53
- t(n, { key: "1" }, {
54
- tab: e(() => [
55
- i("span", null, [
56
- t(l(S)),
57
- v(" 报表信息 ")
58
- ])
59
- ]),
60
- default: e(() => [
61
- t(M)
62
- ]),
63
- _: 1
64
- }),
65
- t(n, { key: "2" }, {
66
- tab: e(() => [
67
- i("span", null, [
68
- t(l(A)),
69
- v(" 报表组件 ")
70
- ])
71
- ]),
72
- default: e(() => [
73
- t(B, { "data-source": l(V) }, null, 8, ["data-source"])
74
- ]),
75
- _: 1
76
- })
77
- ]),
78
- _: 1
79
- }, 8, ["activeKey"])
80
- ]),
81
- _: 1
82
- }),
83
- t(g, { style: { margin: "0px 5px" } }, {
84
- default: e(() => [
85
- t(k, { style: { background: "#fff", border: "1px solid #e4e7ed", borderBottom: "0px" } }, {
86
- default: e(() => [
87
- t(L, {
88
- formId: u.id,
89
- code: l(m)
90
- }, null, 8, ["formId", "code"])
91
- ]),
92
- _: 1
93
- }),
94
- t(C, { style: { overflow: "auto" } }, {
95
- default: e(() => [
96
- i("div", O, [
97
- t(H, { onControlConfig: F })
98
- ])
99
- ]),
100
- _: 1
101
- })
102
- ]),
103
- _: 1
104
- }),
105
- t(y, {
106
- width: "250",
107
- style: { right: 0, top: 0, bottom: 0 }
108
- }, {
109
- default: e(() => [
110
- t(E, { configData: l(f) }, null, 8, ["configData"])
111
- ]),
112
- _: 1
113
- })
114
- ]),
115
- _: 1
116
- });
117
- };
118
- }
119
- });
120
- const G = /* @__PURE__ */ J(R, [["__scopeId", "data-v-62871ad5"]]);
121
- export {
122
- G as default
123
- };
@@ -1,177 +0,0 @@
1
- import { defineComponent as L, ref as r, resolveComponent as f, openBlock as c, createElementBlock as y, Fragment as k, createElementVNode as b, renderList as M, createVNode as s, withCtx as i, createTextVNode as h, toDisplayString as B, createBlock as x, unref as C, createCommentVNode as w } from "vue";
2
- import { u as F, s as H, p as R, e as U, M as q, E as J, l as T, q as A, w as V, x as G, _ as K } from "./index-c9c30439.js";
3
- function P(v) {
4
- return `
5
- <template>
6
-
7
- </template>
8
-
9
- <script setup lang="ts">
10
- import { defHttp } from "/@/utils/http/axios";
11
- import { initTableList } from "/@/utils/form/wonder-report";
12
- import { ref } from "vue";
13
- let formModel = ref({})
14
- initTableList(viewData,formId)
15
-
16
- /**
17
- * 分页
18
- * @param pag
19
- * @param callback 回调函数
20
- */
21
- export function onChange(pag: any, callback: any) {
22
- pagination.value = pag
23
- callback()
24
- }
25
- <\/script>
26
-
27
- <style scoped lang="less">
28
- @import url('/@/assets/less/form.less');
29
- </style>
30
- `;
31
- }
32
- const Q = { class: "flex-div" }, W = /* @__PURE__ */ L({
33
- __name: "index",
34
- props: {
35
- formId: {
36
- type: Number,
37
- default: 14
38
- },
39
- code: {
40
- type: String,
41
- defalut: ""
42
- }
43
- },
44
- setup(v) {
45
- const p = v, n = F();
46
- H(n);
47
- const a = r(!1), l = r(!1), j = () => {
48
- a.value = !0;
49
- }, D = [
50
- { icon: "preview", title: "预览", type: "preview" },
51
- { icon: "json", title: "json", type: "json" },
52
- { icon: "ing", title: "测试数据", type: "ceshi" },
53
- { icon: "clear", title: "清除", type: "clear" },
54
- { icon: "code", title: "代码", type: "code" },
55
- { icon: "save", title: "保存", type: "save" },
56
- { icon: "code", title: "文件", type: "saveVue" }
57
- ];
58
- let u = r(), d = r("json");
59
- function N(e) {
60
- switch (e) {
61
- case "json":
62
- u.value = null, d.value = "json", j();
63
- break;
64
- case "code":
65
- d.value = "html", $();
66
- break;
67
- case "preview":
68
- l.value = !0;
69
- break;
70
- case "clear":
71
- O();
72
- break;
73
- case "save":
74
- E();
75
- break;
76
- case "saveVue":
77
- z();
78
- break;
79
- default:
80
- S();
81
- break;
82
- }
83
- }
84
- const O = () => {
85
- q.confirm({
86
- title: "确定清除当前表单吗?",
87
- icon: s(J),
88
- content: "清除后将不能找回",
89
- onOk() {
90
- n.formData.list = [];
91
- },
92
- onCancel() {
93
- }
94
- });
95
- };
96
- function S() {
97
- const e = G[0];
98
- n.setFormData1(e);
99
- }
100
- function $() {
101
- u.value = P(), a.value = !0;
102
- }
103
- function z() {
104
- const e = generate(), t = "/imaginform/zrzy-form/generate/createVue";
105
- T.post({ url: t, data: { name: p.code, vueCode: A(e) } }, { withToken: !0 }).then((m) => {
106
- m.code == 200 && V.success("保存成功");
107
- });
108
- }
109
- const _ = (e) => {
110
- a.value = !1;
111
- }, E = () => {
112
- const e = "/magicapi/zrzy-form/magic/form/form/edit";
113
- T.post({ url: e, data: { id: p.formId, content: JSON.stringify(n.formData) } }, { withToken: !1 }).then((t) => {
114
- t == 1 && V.success("保存成功");
115
- });
116
- };
117
- return (e, t) => {
118
- const m = f("svg-icon"), I = f("a-button"), g = f("a-modal");
119
- return c(), y(k, null, [
120
- b("div", Q, [
121
- (c(), y(k, null, M(D, (o) => s(I, {
122
- type: "text",
123
- style: { margin: "auto 5px", color: "rgba(35,46,60,.7)" },
124
- onClick: (X) => N(o.type)
125
- }, {
126
- icon: i(() => [
127
- s(m, {
128
- name: o.icon,
129
- class: "toolbar-css",
130
- title: o.title
131
- }, null, 8, ["name", "title"]),
132
- h("  ")
133
- ]),
134
- default: i(() => [
135
- h(" " + B(o.title), 1)
136
- ]),
137
- _: 2
138
- }, 1032, ["onClick"])), 64))
139
- ]),
140
- b("div", null, [
141
- s(g, {
142
- open: a.value,
143
- "onUpdate:open": t[0] || (t[0] = (o) => a.value = o),
144
- title: "代码",
145
- width: "1000px",
146
- onOk: _
147
- }, {
148
- default: i(() => [
149
- a.value ? (c(), x(R, {
150
- key: 0,
151
- code: C(u),
152
- language: C(d)
153
- }, null, 8, ["code", "language"])) : w("", !0)
154
- ]),
155
- _: 1
156
- }, 8, ["open"]),
157
- s(g, {
158
- open: l.value,
159
- "onUpdate:open": t[1] || (t[1] = (o) => l.value = o),
160
- title: "预览",
161
- width: "100%",
162
- onOk: _
163
- }, {
164
- default: i(() => [
165
- l.value ? (c(), x(U, { key: 0 })) : w("", !0)
166
- ]),
167
- _: 1
168
- }, 8, ["open"])
169
- ])
170
- ], 64);
171
- };
172
- }
173
- });
174
- const ee = /* @__PURE__ */ K(W, [["__scopeId", "data-v-ac8c43ce"]]);
175
- export {
176
- ee as default
177
- };
@@ -1,53 +0,0 @@
1
- import { defineComponent as d, onBeforeUnmount as c, resolveComponent as f, openBlock as u, createElementBlock as _, Fragment as p, createVNode as a, withCtx as l, createTextVNode as i } from "vue";
2
- import { c as r } from "./index-c9c30439.js";
3
- const h = /* @__PURE__ */ d({
4
- __name: "modalDemo",
5
- setup(C) {
6
- let e;
7
- function s() {
8
- e ? e.show() : e = r({
9
- title: "test",
10
- onOk: (t) => {
11
- t.onSubmit() && (e.setConfirmLoading(!0), setTimeout(() => {
12
- e.setConfirmLoading(!1), e.destroy(), e = null;
13
- }, 2e3));
14
- },
15
- onCancel: () => {
16
- e.close();
17
- }
18
- });
19
- }
20
- function m() {
21
- let t = r({
22
- title: "test",
23
- onOk: (o) => {
24
- o.onSubmit() && (t.setConfirmLoading(!0), setTimeout(() => {
25
- t.setConfirmLoading(!1), t.destroy();
26
- }, 2e3));
27
- }
28
- });
29
- }
30
- return c(() => {
31
- e == null || e.destroy();
32
- }), (t, o) => {
33
- const n = f("a-button");
34
- return u(), _(p, null, [
35
- a(n, { onClick: s }, {
36
- default: l(() => [
37
- i("打开弹窗")
38
- ]),
39
- _: 1
40
- }),
41
- a(n, { onClick: m }, {
42
- default: l(() => [
43
- i("打开弹窗2")
44
- ]),
45
- _: 1
46
- })
47
- ], 64);
48
- };
49
- }
50
- });
51
- export {
52
- h as default
53
- };