form-imagining 0.0.15 → 0.0.17
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/README.md +10 -1
- package/dist/{App-eb2c9010.js → App-1be93acb.js} +6 -3
- package/dist/Code-06a9cea9.js +5 -0
- package/dist/Col-22974103.js +5 -0
- package/dist/{Demo-d2a6890f.js → Demo-53a684b5.js} +1 -1
- package/dist/{Demo-c613b69c.js → Demo-aaef59a2.js} +1 -1
- package/dist/{Form-07608c86.js → Form-ed85cde7.js} +1 -1
- package/dist/FormPublic-2481a670.js +5 -0
- package/dist/GenerateForm-5d1ea38d.js +5 -0
- package/dist/Grid-a78eb23e.js +5 -0
- package/dist/Input-/345/210/240/351/231/{244-db574224.js → 244-322fab0e.js} +1 -1
- package/dist/Label-/345/210/240/351/231/{244-ed45a8a7.js → 244-a5bc11f7.js} +1 -1
- package/dist/{Login-1898e720.js → Login-eff987d4.js} +1 -1
- package/dist/{Preview0925-48b3621f.js → Preview0925-d7b73fb0.js} +2 -2
- package/dist/{PreviewDemo-184d440f.js → PreviewDemo-0ecac520.js} +2 -2
- package/dist/{PreviewDemo.vue_vue_type_script_setup_true_lang-88f5ead1.js → PreviewDemo.vue_vue_type_script_setup_true_lang-9f93ee93.js} +1 -1
- package/dist/{PreviewDemo2-6b2fb920.js → PreviewDemo2-5f21ca5c.js} +2 -2
- package/dist/{PreviewDemo2.vue_vue_type_script_setup_true_lang-e0e87a21.js → PreviewDemo2.vue_vue_type_script_setup_true_lang-54fa6577.js} +1 -1
- package/dist/{PreviewDemo3-03ad81d4.js → PreviewDemo3-f89df219.js} +3 -3
- package/dist/SqlModule-57cd6ef9.js +5 -0
- package/dist/Table-ee0a9f99.js +5 -0
- package/dist/{cTable-049a52dd.js → cTable-9a648c25.js} +1 -1
- package/dist/childForm-117bd377.js +5 -0
- package/dist/{cssMode-2e4fb1a0.js → cssMode-f65e56dc.js} +1 -1
- package/dist/form-imagining.js +1 -1
- package/dist/form-imagining.umd.cjs +626 -308
- package/dist/{freemarker2-30e97d7a.js → freemarker2-55b3e0de.js} +1 -1
- package/dist/{handlebars-e9be380b.js → handlebars-dcb394df.js} +1 -1
- package/dist/{html-bd47c8da.js → html-516dd342.js} +1 -1
- package/dist/{htmlMode-9c75b8c3.js → htmlMode-230b8835.js} +1 -1
- package/dist/{index-75ce0624.js → index-4282fff0.js} +1 -1
- package/dist/{index-e620a598.js → index-fcf40126.js} +65555 -46748
- package/dist/{javascript-44bbd331.js → javascript-8ef3ff10.js} +2 -2
- package/dist/{jsonMode-0338ea50.js → jsonMode-541f6063.js} +1 -1
- package/dist/{liquid-0cfcb603.js → liquid-480c20a1.js} +1 -1
- package/dist/{mdx-e85c6eb1.js → mdx-c6fdfbf4.js} +1 -1
- package/dist/{modalDemo-0b80b96d.js → modalDemo-6d508dff.js} +1 -1
- package/dist/{python-e2df360f.js → python-a4041209.js} +1 -1
- package/dist/{razor-8c28d847.js → razor-d1ca6284.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/{tableSelectDemo-2ef3bafe.js → tableSelectDemo-2f5bbdca.js} +43 -43
- package/dist/{tableSelectDemo2-72697acb.js → tableSelectDemo2-6f8dcaf3.js} +34 -34
- package/dist/{tsMode-9451b4c0.js → tsMode-520d5a63.js} +1 -1
- package/dist/{typescript-fd1e2617.js → typescript-8a46669a.js} +1 -1
- package/dist/{xml-323fc3d8.js → xml-5f608c48.js} +1 -1
- package/dist/{yaml-9fb21219.js → yaml-b8390428.js} +1 -1
- package/package.json +12 -12
- package/dist/Code-076b91a4.js +0 -5
- package/dist/Col-bcfd320b.js +0 -5
- package/dist/FormPublic-1369b502.js +0 -5
- package/dist/GenerateForm-002cd2c6.js +0 -5
- package/dist/Grid-f9381511.js +0 -5
- package/dist/SqlModule-fbf0b72e.js +0 -5
- package/dist/Table-52970a2d.js +0 -5
- package/dist/childForm-b3c1e9c7.js +0 -5
|
@@ -1,35 +1,35 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { c as
|
|
3
|
-
import { t as
|
|
4
|
-
const
|
|
1
|
+
import { defineComponent as T, computed as p, ref as m, resolveComponent as n, openBlock as _, createElementBlock as f, createElementVNode as y, createVNode as l, withCtx as c, unref as v, isRef as B, createTextVNode as E, createCommentVNode as L } from "vue";
|
|
2
|
+
import { c as R, a as z } from "./index-fcf40126.js";
|
|
3
|
+
import { t as M } from "./tableSelectOptions-97e674c2.js";
|
|
4
|
+
const O = { class: "table-select-form" }, P = { class: "table-select-tool" }, U = { key: 0 }, j = ["onClick"], q = /* @__PURE__ */ T({
|
|
5
5
|
__name: "tableSelectDemo",
|
|
6
6
|
props: {
|
|
7
|
-
...
|
|
7
|
+
...M
|
|
8
8
|
},
|
|
9
9
|
emits: ["update:value", "rowChange"],
|
|
10
|
-
setup(g, { emit:
|
|
11
|
-
const
|
|
10
|
+
setup(g, { emit: k }) {
|
|
11
|
+
const r = g;
|
|
12
12
|
let s = p({
|
|
13
13
|
get() {
|
|
14
|
-
return
|
|
14
|
+
return r.value;
|
|
15
15
|
},
|
|
16
16
|
set(t) {
|
|
17
|
-
|
|
17
|
+
d("update:value", t);
|
|
18
18
|
}
|
|
19
19
|
});
|
|
20
|
-
const k = p(() => ({
|
|
21
|
-
type:
|
|
20
|
+
const d = k, C = p(() => ({
|
|
21
|
+
type: r.mode === "multiple" ? "checkbox" : "radio",
|
|
22
22
|
selectedRowKeys: s.value,
|
|
23
23
|
onChange: (t, e) => {
|
|
24
|
-
s.value = t,
|
|
24
|
+
s.value = t, d("rowChange", e);
|
|
25
25
|
}
|
|
26
26
|
}));
|
|
27
|
-
let i =
|
|
27
|
+
let i = m({
|
|
28
28
|
total: 0,
|
|
29
29
|
current: 1,
|
|
30
30
|
pageSize: 1
|
|
31
|
-
}), a =
|
|
32
|
-
const
|
|
31
|
+
}), a = m("");
|
|
32
|
+
const b = [
|
|
33
33
|
{
|
|
34
34
|
key: "1",
|
|
35
35
|
name: "胡彦斌",
|
|
@@ -42,7 +42,7 @@ const M = { class: "table-select-form" }, O = { class: "table-select-tool" }, P
|
|
|
42
42
|
age: 42,
|
|
43
43
|
address: "西湖区湖底公园1号"
|
|
44
44
|
}
|
|
45
|
-
],
|
|
45
|
+
], h = [
|
|
46
46
|
{
|
|
47
47
|
title: "姓名",
|
|
48
48
|
dataIndex: "name",
|
|
@@ -64,18 +64,18 @@ const M = { class: "table-select-form" }, O = { class: "table-select-tool" }, P
|
|
|
64
64
|
key: "action"
|
|
65
65
|
}
|
|
66
66
|
];
|
|
67
|
-
function
|
|
67
|
+
function x() {
|
|
68
68
|
}
|
|
69
|
-
function
|
|
69
|
+
function w(t, e) {
|
|
70
70
|
i.value = t, e();
|
|
71
71
|
}
|
|
72
|
-
function
|
|
72
|
+
function S(t) {
|
|
73
73
|
}
|
|
74
|
-
function
|
|
74
|
+
function V() {
|
|
75
75
|
s.value = [];
|
|
76
76
|
}
|
|
77
|
-
function
|
|
78
|
-
let e =
|
|
77
|
+
function I(t) {
|
|
78
|
+
let e = R({
|
|
79
79
|
onOk: (u) => {
|
|
80
80
|
e.setConfirmLoading(!0), setTimeout(() => {
|
|
81
81
|
e.setConfirmLoading(!1), e.destroy();
|
|
@@ -84,25 +84,25 @@ const M = { class: "table-select-form" }, O = { class: "table-select-tool" }, P
|
|
|
84
84
|
});
|
|
85
85
|
}
|
|
86
86
|
return (t, e) => {
|
|
87
|
-
const u = n("a-input-search"),
|
|
88
|
-
return
|
|
89
|
-
y("div",
|
|
90
|
-
l(
|
|
87
|
+
const u = n("a-input-search"), N = n("a-button"), D = n("a-space"), K = n("a-table");
|
|
88
|
+
return _(), f("div", O, [
|
|
89
|
+
y("div", P, [
|
|
90
|
+
l(D, null, {
|
|
91
91
|
default: c(() => [
|
|
92
92
|
l(u, {
|
|
93
93
|
ref: "input",
|
|
94
94
|
value: v(a),
|
|
95
|
-
"onUpdate:value": e[0] || (e[0] = (o) =>
|
|
95
|
+
"onUpdate:value": e[0] || (e[0] = (o) => B(a) ? a.value = o : a = o),
|
|
96
96
|
placeholder: "请输入",
|
|
97
97
|
style: { width: "200px" },
|
|
98
|
-
onSearch:
|
|
98
|
+
onSearch: S
|
|
99
99
|
}, null, 8, ["value"]),
|
|
100
|
-
l(
|
|
100
|
+
l(N, {
|
|
101
101
|
type: "primary",
|
|
102
|
-
onClick:
|
|
102
|
+
onClick: V
|
|
103
103
|
}, {
|
|
104
104
|
default: c(() => [
|
|
105
|
-
|
|
105
|
+
E("重置")
|
|
106
106
|
]),
|
|
107
107
|
_: 1
|
|
108
108
|
})
|
|
@@ -110,21 +110,21 @@ const M = { class: "table-select-form" }, O = { class: "table-select-tool" }, P
|
|
|
110
110
|
_: 1
|
|
111
111
|
})
|
|
112
112
|
]),
|
|
113
|
-
l(
|
|
114
|
-
columns:
|
|
115
|
-
"data-source":
|
|
113
|
+
l(K, {
|
|
114
|
+
columns: h,
|
|
115
|
+
"data-source": b,
|
|
116
116
|
pagination: v(i),
|
|
117
|
-
"row-selection":
|
|
117
|
+
"row-selection": C.value,
|
|
118
118
|
rowKey: t.keyName,
|
|
119
|
-
onChange: e[1] || (e[1] = (o) =>
|
|
119
|
+
onChange: e[1] || (e[1] = (o) => w(o, x)),
|
|
120
120
|
bordered: ""
|
|
121
121
|
}, {
|
|
122
|
-
bodyCell: c(({ column: o, record:
|
|
123
|
-
o.key == "action" ? (
|
|
122
|
+
bodyCell: c(({ column: o, record: A }) => [
|
|
123
|
+
o.key == "action" ? (_(), f("span", U, [
|
|
124
124
|
y("a", {
|
|
125
|
-
onClick: (
|
|
126
|
-
}, "测试", 8,
|
|
127
|
-
])) :
|
|
125
|
+
onClick: (F) => I()
|
|
126
|
+
}, "测试", 8, j)
|
|
127
|
+
])) : L("", !0)
|
|
128
128
|
]),
|
|
129
129
|
_: 1
|
|
130
130
|
}, 8, ["pagination", "row-selection", "rowKey"])
|
|
@@ -132,7 +132,7 @@ const M = { class: "table-select-form" }, O = { class: "table-select-tool" }, P
|
|
|
132
132
|
};
|
|
133
133
|
}
|
|
134
134
|
});
|
|
135
|
-
const
|
|
135
|
+
const Q = /* @__PURE__ */ z(q, [["__scopeId", "data-v-7ee731c7"]]);
|
|
136
136
|
export {
|
|
137
|
-
|
|
137
|
+
Q as default
|
|
138
138
|
};
|
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { t as
|
|
3
|
-
const
|
|
1
|
+
import { defineComponent as S, computed as u, ref as i, resolveComponent as n, openBlock as V, createElementBlock as N, createElementVNode as I, createVNode as l, withCtx as p, unref as m, isRef as K, createTextVNode as B } from "vue";
|
|
2
|
+
import { t as D } from "./tableSelectOptions-97e674c2.js";
|
|
3
|
+
const E = { class: "table-select-form" }, R = { class: "table-select-tool" }, P = /* @__PURE__ */ S({
|
|
4
4
|
__name: "tableSelectDemo2",
|
|
5
5
|
props: {
|
|
6
|
-
...
|
|
6
|
+
...D
|
|
7
7
|
},
|
|
8
8
|
emits: ["update:value", "rowChange"],
|
|
9
|
-
setup(_, { emit:
|
|
10
|
-
const
|
|
11
|
-
let
|
|
9
|
+
setup(_, { emit: g }) {
|
|
10
|
+
const s = _;
|
|
11
|
+
let r = u({
|
|
12
12
|
get() {
|
|
13
|
-
return
|
|
13
|
+
return s.value;
|
|
14
14
|
},
|
|
15
15
|
set(t) {
|
|
16
|
-
|
|
16
|
+
c("update:value", t);
|
|
17
17
|
}
|
|
18
18
|
});
|
|
19
|
-
const g = u(() => ({
|
|
20
|
-
type:
|
|
21
|
-
selectedRowKeys:
|
|
19
|
+
const c = g, f = u(() => ({
|
|
20
|
+
type: s.mode === "multiple" ? "checkbox" : "radio",
|
|
21
|
+
selectedRowKeys: r.value,
|
|
22
22
|
onChange: (t, e) => {
|
|
23
|
-
|
|
23
|
+
r.value = t, c("rowChange", e);
|
|
24
24
|
}
|
|
25
25
|
}));
|
|
26
|
-
let a =
|
|
26
|
+
let a = i(""), d = i({
|
|
27
27
|
total: 0,
|
|
28
28
|
current: 1,
|
|
29
29
|
pageSize: 1
|
|
30
30
|
});
|
|
31
|
-
const
|
|
31
|
+
const y = [
|
|
32
32
|
{
|
|
33
33
|
key: "1",
|
|
34
34
|
name2: "胡彦斌",
|
|
@@ -47,7 +47,7 @@ const D = { class: "table-select-form" }, E = { class: "table-select-tool" }, z
|
|
|
47
47
|
age2: 4,
|
|
48
48
|
address2: "西湖区湖底公园1号"
|
|
49
49
|
}
|
|
50
|
-
],
|
|
50
|
+
], v = [
|
|
51
51
|
{
|
|
52
52
|
title: "姓名2",
|
|
53
53
|
dataIndex: "name2",
|
|
@@ -64,27 +64,27 @@ const D = { class: "table-select-form" }, E = { class: "table-select-tool" }, z
|
|
|
64
64
|
key: "address2"
|
|
65
65
|
}
|
|
66
66
|
];
|
|
67
|
-
function
|
|
67
|
+
function b() {
|
|
68
68
|
}
|
|
69
|
-
function
|
|
69
|
+
function h(t, e) {
|
|
70
70
|
d.value = t, e();
|
|
71
71
|
}
|
|
72
72
|
return (t, e) => {
|
|
73
|
-
const
|
|
74
|
-
return
|
|
75
|
-
|
|
76
|
-
l(
|
|
77
|
-
default:
|
|
78
|
-
l(
|
|
73
|
+
const k = n("a-input-search"), w = n("a-button"), x = n("a-space"), C = n("a-table");
|
|
74
|
+
return V(), N("div", E, [
|
|
75
|
+
I("div", R, [
|
|
76
|
+
l(x, null, {
|
|
77
|
+
default: p(() => [
|
|
78
|
+
l(k, {
|
|
79
79
|
ref: "input",
|
|
80
80
|
value: m(a),
|
|
81
|
-
"onUpdate:value": e[0] || (e[0] = (o) =>
|
|
81
|
+
"onUpdate:value": e[0] || (e[0] = (o) => K(a) ? a.value = o : a = o),
|
|
82
82
|
placeholder: "请输入",
|
|
83
83
|
style: { width: "200px" }
|
|
84
84
|
}, null, 8, ["value"]),
|
|
85
|
-
l(
|
|
86
|
-
default:
|
|
87
|
-
|
|
85
|
+
l(w, { type: "primary" }, {
|
|
86
|
+
default: p(() => [
|
|
87
|
+
B("重置")
|
|
88
88
|
]),
|
|
89
89
|
_: 1
|
|
90
90
|
})
|
|
@@ -92,13 +92,13 @@ const D = { class: "table-select-form" }, E = { class: "table-select-tool" }, z
|
|
|
92
92
|
_: 1
|
|
93
93
|
})
|
|
94
94
|
]),
|
|
95
|
-
l(
|
|
96
|
-
columns:
|
|
97
|
-
"data-source":
|
|
95
|
+
l(C, {
|
|
96
|
+
columns: v,
|
|
97
|
+
"data-source": y,
|
|
98
98
|
pagination: m(d),
|
|
99
|
-
"row-selection":
|
|
99
|
+
"row-selection": f.value,
|
|
100
100
|
rowKey: t.keyName,
|
|
101
|
-
onChange: e[1] || (e[1] = (o) =>
|
|
101
|
+
onChange: e[1] || (e[1] = (o) => h(o, b)),
|
|
102
102
|
bordered: ""
|
|
103
103
|
}, null, 8, ["pagination", "row-selection", "rowKey"])
|
|
104
104
|
]);
|
|
@@ -106,5 +106,5 @@ const D = { class: "table-select-form" }, E = { class: "table-select-tool" }, z
|
|
|
106
106
|
}
|
|
107
107
|
});
|
|
108
108
|
export {
|
|
109
|
-
|
|
109
|
+
P as default
|
|
110
110
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var M = Object.defineProperty;
|
|
2
2
|
var R = (e, t, r) => t in e ? M(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
|
|
3
3
|
var _ = (e, t, r) => (R(e, typeof t != "symbol" ? t + "" : t, r), r);
|
|
4
|
-
import { w as K, t as E } from "./index-
|
|
4
|
+
import { w as K, t as E } from "./index-fcf40126.js";
|
|
5
5
|
import "vue";
|
|
6
6
|
/*!-----------------------------------------------------------------------------
|
|
7
7
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "form-imagining",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.17",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"main": "./dist/form-imagining.umd.cjs",
|
|
@@ -33,23 +33,23 @@
|
|
|
33
33
|
"preview": "vite preview"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"ant-design-vue": "
|
|
37
|
-
"axios": "^1.2
|
|
36
|
+
"ant-design-vue": "4.0.7",
|
|
37
|
+
"axios": "^1.6.2",
|
|
38
38
|
"monaco-editor": "^0.44.0",
|
|
39
|
-
"pinia": "^2.1.
|
|
39
|
+
"pinia": "^2.1.7",
|
|
40
40
|
"vite-plugin-monaco-editor": "^1.1.0",
|
|
41
|
-
"vue": "^3.3.
|
|
41
|
+
"vue": "^3.3.8",
|
|
42
42
|
"vue-draggable-next": "^2.2.1"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
|
-
"@ant-design/icons-vue": "^
|
|
46
|
-
"@types/node": "^20.
|
|
47
|
-
"@vitejs/plugin-vue": "^4.4.
|
|
48
|
-
"fast-glob": "^3.2
|
|
45
|
+
"@ant-design/icons-vue": "^7.0.1",
|
|
46
|
+
"@types/node": "^20.9.0",
|
|
47
|
+
"@vitejs/plugin-vue": "^4.4.1",
|
|
48
|
+
"fast-glob": "^3.3.2",
|
|
49
49
|
"less": "^4.2.0",
|
|
50
|
-
"typescript": "^5.
|
|
51
|
-
"vite": "^4.
|
|
50
|
+
"typescript": "^5.2.2",
|
|
51
|
+
"vite": "^4.5.0",
|
|
52
52
|
"vite-plugin-svg-icons": "^2.0.1",
|
|
53
|
-
"vue-tsc": "^1.8.
|
|
53
|
+
"vue-tsc": "^1.8.22"
|
|
54
54
|
}
|
|
55
55
|
}
|
package/dist/Code-076b91a4.js
DELETED
package/dist/Col-bcfd320b.js
DELETED
package/dist/Grid-f9381511.js
DELETED
package/dist/Table-52970a2d.js
DELETED