@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.
@@ -1,146 +1,146 @@
1
- import { getCurrentInstance as R, ref as d, resolveComponent as p, resolveDirective as N, openBlock as U, createElementBlock as q, withDirectives as L, createVNode as l, unref as o, withCtx as i, createTextVNode as c, isRef as A, createElementVNode as y } from "vue";
2
- import { l as P } from "./dict-Bd5ZD5ia.mjs";
3
- import "./main-gPpx1WZq.mjs";
4
- import "./index-_InmB_Fg.mjs";
5
- const B = /* @__PURE__ */ y("br", null, null, -1), E = /* @__PURE__ */ y("br", null, null, -1), H = {
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(O) {
8
- const b = R().proxy.$z, m = d(!1), f = d(""), u = d(!1), t = d({
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
- }), x = d({
13
+ }), $ = s({
14
14
  departurePort: [{ required: !0, message: "请输入始发港", trigger: "blur" }],
15
15
  destinationPort: [{ required: !0, message: "请输入目的港", trigger: "blur" }]
16
- }), v = d(), _ = (a, e) => {
16
+ }), v = s(), _ = (a, e) => {
17
17
  switch (t.value.id = e, a) {
18
18
  case "add":
19
- u.value = !1, f.value = "新增";
19
+ u.value = !1, c.value = "新增";
20
20
  break;
21
21
  case "edit":
22
- u.value = !1, f.value = "编辑", V();
22
+ u.value = !1, c.value = "编辑", g();
23
23
  break;
24
24
  case "view":
25
- u.value = !0, f.value = "详情", V();
25
+ u.value = !0, c.value = "详情", g();
26
26
  break;
27
27
  }
28
28
  m.value = !0;
29
- }, V = () => {
30
- w({
29
+ }, g = () => {
30
+ z({
31
31
  id: "111",
32
32
  departurePort: "111",
33
33
  destinationPort: "222"
34
34
  });
35
- }, w = (a) => {
35
+ }, z = (a) => {
36
36
  const e = b.$utils._.cloneDeep(t.value);
37
- for (const r in e)
38
- a[r] !== void 0 && (e[r] = a[r]);
37
+ for (const n in e)
38
+ a[n] !== void 0 && (e[n] = a[n]);
39
39
  t.value = e;
40
- }, g = () => {
40
+ }, V = () => {
41
41
  v.value.resetFields();
42
- }, C = (a) => {
42
+ }, D = (a) => {
43
43
  v.value.validate((e) => {
44
44
  if (e) {
45
- const r = t.value.id ? P : P, s = t.value.id ? "修改成功!" : "提交成功!";
46
- r(b.$utils._.cloneDeep(t.value)).then(() => {
47
- a(s);
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 r = p("el-input"), s = p("z-button"), k = p("el-form-item"), $ = p("el-form"), z = p("z-dialog"), D = N("inputReg");
54
- return U(), q("div", null, [
55
- L(l(r, {
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] = (n) => o(t).scoreLimit = n),
60
+ "onUpdate:modelValue": e[0] || (e[0] = (l) => o(t).scoreLimit = l),
61
61
  "controls-position": "right"
62
62
  }, null, 8, ["modelValue"]), [
63
- [D, "test", "exec"]
63
+ [U, "test", "exec"]
64
64
  ]),
65
- B,
66
- E,
67
- l(s, {
68
- onClick: e[1] || (e[1] = (n) => _("add")),
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
- c("新增弹框")
72
+ f("新增弹框")
73
73
  ]),
74
74
  _: 1
75
75
  }),
76
- l(s, {
77
- onClick: e[2] || (e[2] = (n) => _("edit", "1111")),
76
+ r(d, {
77
+ onClick: e[2] || (e[2] = (l) => _("edit", "1111")),
78
78
  type: "primary"
79
79
  }, {
80
80
  default: i(() => [
81
- c("编辑弹框")
81
+ f("编辑弹框")
82
82
  ]),
83
83
  _: 1
84
84
  }),
85
- l(s, {
86
- onClick: e[3] || (e[3] = (n) => _("view", "1111")),
85
+ r(d, {
86
+ onClick: e[3] || (e[3] = (l) => _("view", "1111")),
87
87
  type: "primary"
88
88
  }, {
89
89
  default: i(() => [
90
- c("查看弹框")
90
+ f("查看弹框")
91
91
  ]),
92
92
  _: 1
93
93
  }),
94
- l(z, {
94
+ x((y(), A(N, {
95
95
  modelValue: o(m),
96
- "onUpdate:modelValue": e[6] || (e[6] = (n) => A(m) ? m.value = n : null),
97
- title: o(f),
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: g,
101
- onOk: C
100
+ onCancel: V,
101
+ onOk: D
102
102
  }, {
103
103
  footer: i(() => [
104
- l(s, {
104
+ r(d, {
105
105
  type: "primary",
106
- onClick: g
106
+ onClick: V
107
107
  }, {
108
108
  default: i(() => [
109
- c("自定义按钮")
109
+ f("自定义按钮")
110
110
  ]),
111
111
  _: 1
112
112
  })
113
113
  ]),
114
114
  default: i(() => [
115
- l($, {
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(x),
120
+ rules: o($),
121
121
  disabled: o(u)
122
122
  }, {
123
123
  default: i(() => [
124
- l(k, {
124
+ r(k, {
125
125
  label: "始发港",
126
126
  prop: "departurePort"
127
127
  }, {
128
128
  default: i(() => [
129
- l(r, {
129
+ r(n, {
130
130
  modelValue: o(t).departurePort,
131
- "onUpdate:modelValue": e[4] || (e[4] = (n) => o(t).departurePort = n)
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
- l(k, {
136
+ r(k, {
137
137
  label: "目的港",
138
138
  prop: "destinationPort"
139
139
  }, {
140
140
  default: i(() => [
141
- l(r, {
141
+ r(n, {
142
142
  modelValue: o(t).destinationPort,
143
- "onUpdate:modelValue": e[5] || (e[5] = (n) => o(t).destinationPort = n)
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
- H as default
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-_InmB_Fg.mjs";
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-Bd5ZD5ia.mjs";
3
- import "./main-gPpx1WZq.mjs";
4
- import "./index-_InmB_Fg.mjs";
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) {
@@ -1,5 +1,5 @@
1
1
  import { resolveComponent as t, openBlock as e, createBlock as c } from "vue";
2
- import { _ as n } from "./index-_InmB_Fg.mjs";
2
+ import { _ as n } from "./index-KlkYbxCX.mjs";
3
3
  const r = {};
4
4
  function _(a, s) {
5
5
  const o = t("z-layout");