@luzhaoqi/test 0.0.45 → 0.0.46
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/dist/{dict-Bd5ZD5ia.mjs → dict-kSCncC3a.mjs} +1 -1
- package/dist/{dict-uCj2Cg8O.mjs → dict-wUZB-Elc.mjs} +4 -4
- package/dist/{dictEdit-E8D81oHu.mjs → dictEdit-wjYnTTkr.mjs} +3 -3
- package/dist/{index-p4HI9ccu.mjs → index-6DKXGKaN.mjs} +1 -1
- package/dist/{index-tF_j39Si.mjs → index-AB8KfQdn.mjs} +10 -10
- package/dist/{index-uFC6rZY7.mjs → index-Gam6wC0h.mjs} +2 -2
- package/dist/{index-MSlWQFbz.mjs → index-Inj0M3Kr.mjs} +2 -2
- package/dist/index-KlkYbxCX.mjs +33585 -0
- package/dist/{index-mBDnOF1n.mjs → index-OXEGoap5.mjs} +58 -56
- package/dist/{index-4RzD8CJ3.mjs → index-dzbI-ilh.mjs} +1 -1
- package/dist/{index-dLUx1A_Y.mjs → index-p2l2gZZI.mjs} +3 -3
- package/dist/{layout-CT9WEYrm.mjs → layout-XAnXlUZ_.mjs} +1 -1
- package/dist/{main-gPpx1WZq.mjs → main-U6eIRfPb.mjs} +288 -290
- package/dist/style.css +1 -1
- package/dist/test-kxtmZdsk.mjs +74 -0
- package/dist/{type-XKne415H.mjs → type-DJ6q7qi9.mjs} +4 -4
- package/dist/{typeEdit-VqWP1Hpc.mjs → typeEdit-vUC8iS_n.mjs} +3 -3
- package/dist/z-ui3.mjs +1 -1
- package/dist/z-ui3.umd.js +123 -107
- package/package.json +3 -1
- package/dist/index-_InmB_Fg.mjs +0 -31498
- package/dist/test-xFpnSxbr.mjs +0 -41
@@ -1,146 +1,146 @@
|
|
1
|
-
import { getCurrentInstance as
|
2
|
-
import { l as
|
3
|
-
import "./main-
|
4
|
-
import "./index-
|
5
|
-
const
|
1
|
+
import { getCurrentInstance as B, ref as s, resolveComponent as p, resolveDirective as P, openBlock as y, createElementBlock as L, withDirectives as x, createVNode as r, unref as o, withCtx as i, createTextVNode as f, createBlock as A, isRef as E, createElementVNode as C } from "vue";
|
2
|
+
import { l as w } from "./dict-kSCncC3a.mjs";
|
3
|
+
import "./main-U6eIRfPb.mjs";
|
4
|
+
import "./index-KlkYbxCX.mjs";
|
5
|
+
const O = /* @__PURE__ */ C("br", null, null, -1), j = /* @__PURE__ */ C("br", null, null, -1), K = {
|
6
6
|
__name: "index",
|
7
|
-
setup(
|
8
|
-
const b =
|
7
|
+
setup(F) {
|
8
|
+
const b = B().proxy.$z, m = s(!1), c = s(""), u = s(!1), t = s({
|
9
9
|
id: "",
|
10
10
|
scoreLimit: "123",
|
11
11
|
departurePort: "",
|
12
12
|
destinationPort: ""
|
13
|
-
}),
|
13
|
+
}), $ = s({
|
14
14
|
departurePort: [{ required: !0, message: "请输入始发港", trigger: "blur" }],
|
15
15
|
destinationPort: [{ required: !0, message: "请输入目的港", trigger: "blur" }]
|
16
|
-
}), v =
|
16
|
+
}), v = s(), _ = (a, e) => {
|
17
17
|
switch (t.value.id = e, a) {
|
18
18
|
case "add":
|
19
|
-
u.value = !1,
|
19
|
+
u.value = !1, c.value = "新增";
|
20
20
|
break;
|
21
21
|
case "edit":
|
22
|
-
u.value = !1,
|
22
|
+
u.value = !1, c.value = "编辑", g();
|
23
23
|
break;
|
24
24
|
case "view":
|
25
|
-
u.value = !0,
|
25
|
+
u.value = !0, c.value = "详情", g();
|
26
26
|
break;
|
27
27
|
}
|
28
28
|
m.value = !0;
|
29
|
-
},
|
30
|
-
|
29
|
+
}, g = () => {
|
30
|
+
z({
|
31
31
|
id: "111",
|
32
32
|
departurePort: "111",
|
33
33
|
destinationPort: "222"
|
34
34
|
});
|
35
|
-
},
|
35
|
+
}, z = (a) => {
|
36
36
|
const e = b.$utils._.cloneDeep(t.value);
|
37
|
-
for (const
|
38
|
-
a[
|
37
|
+
for (const n in e)
|
38
|
+
a[n] !== void 0 && (e[n] = a[n]);
|
39
39
|
t.value = e;
|
40
|
-
},
|
40
|
+
}, V = () => {
|
41
41
|
v.value.resetFields();
|
42
|
-
},
|
42
|
+
}, D = (a) => {
|
43
43
|
v.value.validate((e) => {
|
44
44
|
if (e) {
|
45
|
-
const
|
46
|
-
|
47
|
-
a(
|
45
|
+
const n = t.value.id ? w : w, d = t.value.id ? "修改成功!" : "提交成功!";
|
46
|
+
n(b.$utils._.cloneDeep(t.value)).then(() => {
|
47
|
+
a(d);
|
48
48
|
});
|
49
49
|
}
|
50
50
|
});
|
51
51
|
};
|
52
52
|
return (a, e) => {
|
53
|
-
const
|
54
|
-
return
|
55
|
-
|
53
|
+
const n = p("el-input"), d = p("z-button"), k = p("el-form-item"), R = p("el-form"), N = p("z-dialog"), U = P("inputReg"), q = P("dialog-drag");
|
54
|
+
return y(), L("div", null, [
|
55
|
+
x(r(n, {
|
56
56
|
type: "textarea",
|
57
57
|
max: 100,
|
58
58
|
min: -100,
|
59
59
|
modelValue: o(t).scoreLimit,
|
60
|
-
"onUpdate:modelValue": e[0] || (e[0] = (
|
60
|
+
"onUpdate:modelValue": e[0] || (e[0] = (l) => o(t).scoreLimit = l),
|
61
61
|
"controls-position": "right"
|
62
62
|
}, null, 8, ["modelValue"]), [
|
63
|
-
[
|
63
|
+
[U, "test", "exec"]
|
64
64
|
]),
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
onClick: e[1] || (e[1] = (
|
65
|
+
O,
|
66
|
+
j,
|
67
|
+
r(d, {
|
68
|
+
onClick: e[1] || (e[1] = (l) => _("add")),
|
69
69
|
type: "primary"
|
70
70
|
}, {
|
71
71
|
default: i(() => [
|
72
|
-
|
72
|
+
f("新增弹框")
|
73
73
|
]),
|
74
74
|
_: 1
|
75
75
|
}),
|
76
|
-
|
77
|
-
onClick: e[2] || (e[2] = (
|
76
|
+
r(d, {
|
77
|
+
onClick: e[2] || (e[2] = (l) => _("edit", "1111")),
|
78
78
|
type: "primary"
|
79
79
|
}, {
|
80
80
|
default: i(() => [
|
81
|
-
|
81
|
+
f("编辑弹框")
|
82
82
|
]),
|
83
83
|
_: 1
|
84
84
|
}),
|
85
|
-
|
86
|
-
onClick: e[3] || (e[3] = (
|
85
|
+
r(d, {
|
86
|
+
onClick: e[3] || (e[3] = (l) => _("view", "1111")),
|
87
87
|
type: "primary"
|
88
88
|
}, {
|
89
89
|
default: i(() => [
|
90
|
-
|
90
|
+
f("查看弹框")
|
91
91
|
]),
|
92
92
|
_: 1
|
93
93
|
}),
|
94
|
-
|
94
|
+
x((y(), A(N, {
|
95
95
|
modelValue: o(m),
|
96
|
-
"onUpdate:modelValue": e[6] || (e[6] = (
|
97
|
-
title: o(
|
96
|
+
"onUpdate:modelValue": e[6] || (e[6] = (l) => E(m) ? m.value = l : null),
|
97
|
+
title: o(c),
|
98
98
|
width: "30%",
|
99
99
|
disabled: o(u),
|
100
|
-
onCancel:
|
101
|
-
onOk:
|
100
|
+
onCancel: V,
|
101
|
+
onOk: D
|
102
102
|
}, {
|
103
103
|
footer: i(() => [
|
104
|
-
|
104
|
+
r(d, {
|
105
105
|
type: "primary",
|
106
|
-
onClick:
|
106
|
+
onClick: V
|
107
107
|
}, {
|
108
108
|
default: i(() => [
|
109
|
-
|
109
|
+
f("自定义按钮")
|
110
110
|
]),
|
111
111
|
_: 1
|
112
112
|
})
|
113
113
|
]),
|
114
114
|
default: i(() => [
|
115
|
-
|
115
|
+
r(R, {
|
116
116
|
ref_key: "formRef",
|
117
117
|
ref: v,
|
118
118
|
model: o(t),
|
119
119
|
"label-width": "80px",
|
120
|
-
rules: o(
|
120
|
+
rules: o($),
|
121
121
|
disabled: o(u)
|
122
122
|
}, {
|
123
123
|
default: i(() => [
|
124
|
-
|
124
|
+
r(k, {
|
125
125
|
label: "始发港",
|
126
126
|
prop: "departurePort"
|
127
127
|
}, {
|
128
128
|
default: i(() => [
|
129
|
-
|
129
|
+
r(n, {
|
130
130
|
modelValue: o(t).departurePort,
|
131
|
-
"onUpdate:modelValue": e[4] || (e[4] = (
|
131
|
+
"onUpdate:modelValue": e[4] || (e[4] = (l) => o(t).departurePort = l)
|
132
132
|
}, null, 8, ["modelValue"])
|
133
133
|
]),
|
134
134
|
_: 1
|
135
135
|
}),
|
136
|
-
|
136
|
+
r(k, {
|
137
137
|
label: "目的港",
|
138
138
|
prop: "destinationPort"
|
139
139
|
}, {
|
140
140
|
default: i(() => [
|
141
|
-
|
141
|
+
r(n, {
|
142
142
|
modelValue: o(t).destinationPort,
|
143
|
-
"onUpdate:modelValue": e[5] || (e[5] = (
|
143
|
+
"onUpdate:modelValue": e[5] || (e[5] = (l) => o(t).destinationPort = l)
|
144
144
|
}, null, 8, ["modelValue"])
|
145
145
|
]),
|
146
146
|
_: 1
|
@@ -150,11 +150,13 @@ const B = /* @__PURE__ */ y("br", null, null, -1), E = /* @__PURE__ */ y("br", n
|
|
150
150
|
}, 8, ["model", "rules", "disabled"])
|
151
151
|
]),
|
152
152
|
_: 1
|
153
|
-
}, 8, ["modelValue", "title", "disabled"])
|
153
|
+
}, 8, ["modelValue", "title", "disabled"])), [
|
154
|
+
[q]
|
155
|
+
])
|
154
156
|
]);
|
155
157
|
};
|
156
158
|
}
|
157
159
|
};
|
158
160
|
export {
|
159
|
-
|
161
|
+
K as default
|
160
162
|
};
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { resolveComponent as n, openBlock as i, createElementBlock as u, createVNode as t, Fragment as f, renderList as g, withCtx as z, createTextVNode as b, createElementVNode as e } from "vue";
|
2
|
-
import { _ as x } from "./index-
|
2
|
+
import { _ as x } from "./index-KlkYbxCX.mjs";
|
3
3
|
const V = {
|
4
4
|
data() {
|
5
5
|
return {
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { getCurrentInstance as V, ref as C, computed as k, onMounted as x, resolveComponent as l, openBlock as v, createBlock as w, unref as r, withCtx as t, createVNode as o, withKeys as d, createTextVNode as u } from "vue";
|
2
|
-
import { l as z } from "./dict-
|
3
|
-
import "./main-
|
4
|
-
import "./index-
|
2
|
+
import { l as z } from "./dict-kSCncC3a.mjs";
|
3
|
+
import "./main-U6eIRfPb.mjs";
|
4
|
+
import "./index-KlkYbxCX.mjs";
|
5
5
|
const O = {
|
6
6
|
__name: "index",
|
7
7
|
setup(N) {
|