sooyie-material 0.0.10 → 0.0.11

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,4 +1,4 @@
1
- import { _ as f } from "./edit.vue_vue_type_script_setup_true_lang-BQXsxv96.mjs";
1
+ import { _ as f } from "./edit.vue_vue_type_script_setup_true_lang-9LPGKtx2.mjs";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./edit.vue_vue_type_script_setup_true_lang-48wgg0O-.mjs";
1
+ import { _ as f } from "./edit.vue_vue_type_script_setup_true_lang-vP2kWpiZ.mjs";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,10 +1,10 @@
1
- import { defineComponent as j, mergeModels as C, ref as v, reactive as h, useModel as F, resolveComponent as i, createBlock as K, openBlock as O, withCtx as m, createVNode as o, unref as n, createElementVNode as S, createTextVNode as N, toDisplayString as k } from "vue";
1
+ import { defineComponent as j, ref as C, reactive as v, useModel as F, resolveComponent as i, openBlock as K, createBlock as O, withCtx as m, createVNode as o, unref as n, createElementVNode as S, createTextVNode as h, toDisplayString as N, mergeModels as k } from "vue";
2
2
  import { ElMessage as I } from "element-plus";
3
3
  import { useI18n as z } from "vue-i18n";
4
- import { D as w, m as c } from "./index-wGQ8wE-2.mjs";
4
+ import { D as w, m as c } from "./index-DUCAqPR5.mjs";
5
5
  const E = { class: "dialog-footer" }, H = /* @__PURE__ */ j({
6
6
  __name: "edit",
7
- props: /* @__PURE__ */ C({
7
+ props: /* @__PURE__ */ k({
8
8
  entityKey: {
9
9
  type: Object,
10
10
  default: () => {
@@ -14,15 +14,15 @@ const E = { class: "dialog-footer" }, H = /* @__PURE__ */ j({
14
14
  modelValue: { type: Boolean },
15
15
  modelModifiers: {}
16
16
  }),
17
- emits: /* @__PURE__ */ C(["refresh"], ["update:modelValue"]),
17
+ emits: /* @__PURE__ */ k(["refresh"], ["update:modelValue"]),
18
18
  setup(p, { emit: $ }) {
19
- const { t: d } = z(), f = v();
19
+ const { t: d } = z(), f = C();
20
20
  w.materialCategoryBizDict.useValues();
21
- let t = h({
21
+ let t = v({
22
22
  requestId: Math.random() * 10 + "",
23
23
  updateMask: "categoryName,parentId,note"
24
24
  });
25
- const q = h({
25
+ const q = v({
26
26
  categoryName: [
27
27
  {
28
28
  required: !0,
@@ -30,7 +30,7 @@ const E = { class: "dialog-footer" }, H = /* @__PURE__ */ j({
30
30
  trigger: "blur"
31
31
  }
32
32
  ]
33
- }), r = F(p, "modelValue"), y = p, g = $, B = Object.keys(y.entityKey), b = v(B.length >= 1);
33
+ }), r = F(p, "modelValue"), y = p, g = $, B = Object.keys(y.entityKey), b = C(B.length >= 1);
34
34
  b.value && c.findById(y.entityKey).then(({ data: e }) => {
35
35
  Object.assign(t, e);
36
36
  });
@@ -55,7 +55,7 @@ const E = { class: "dialog-footer" }, H = /* @__PURE__ */ j({
55
55
  }
56
56
  return (e, a) => {
57
57
  const l = i("el-input"), u = i("el-form-item"), M = i("el-tree-select"), R = i("el-form"), _ = i("el-button"), U = i("el-dialog");
58
- return O(), K(U, {
58
+ return K(), O(U, {
59
59
  modelValue: r.value,
60
60
  "onUpdate:modelValue": a[3] || (a[3] = (s) => r.value = s),
61
61
  onClose: V
@@ -64,7 +64,7 @@ const E = { class: "dialog-footer" }, H = /* @__PURE__ */ j({
64
64
  S("div", E, [
65
65
  o(_, { onClick: V }, {
66
66
  default: m(() => [
67
- N(k(e.$t("common.cancel")), 1)
67
+ h(N(e.$t("common.cancel")), 1)
68
68
  ]),
69
69
  _: 1
70
70
  }),
@@ -73,7 +73,7 @@ const E = { class: "dialog-footer" }, H = /* @__PURE__ */ j({
73
73
  onClick: D
74
74
  }, {
75
75
  default: m(() => [
76
- N(k(e.$t("common.confirm")), 1)
76
+ h(N(e.$t("common.confirm")), 1)
77
77
  ]),
78
78
  _: 1
79
79
  })
@@ -1,12 +1,12 @@
1
- import { defineComponent as Z, mergeModels as F, ref as c, reactive as j, useModel as x, onMounted as ee, resolveComponent as d, createBlock as I, openBlock as p, withCtx as o, createVNode as t, unref as n, createElementBlock as h, Fragment as q, renderList as $, createElementVNode as E, createTextVNode as K, toDisplayString as O } from "vue";
1
+ import { defineComponent as Z, ref as c, reactive as F, useModel as x, onMounted as ee, resolveComponent as d, openBlock as p, createBlock as I, withCtx as o, createVNode as t, unref as n, createElementBlock as h, Fragment as q, renderList as $, createElementVNode as j, createTextVNode as E, toDisplayString as K, mergeModels as O } from "vue";
2
2
  import { ElMessage as S } from "element-plus";
3
3
  import { useI18n as le } from "vue-i18n";
4
4
  import "jmash-core";
5
5
  import { userApi as T } from "jmash-rbac";
6
- import { D as z, a as g } from "./index-wGQ8wE-2.mjs";
6
+ import { D as z, a as g } from "./index-DUCAqPR5.mjs";
7
7
  const ae = { class: "dialog-footer" }, ie = /* @__PURE__ */ Z({
8
8
  __name: "edit",
9
- props: /* @__PURE__ */ F({
9
+ props: /* @__PURE__ */ O({
10
10
  entityKey: {
11
11
  type: Object,
12
12
  default: () => {
@@ -16,16 +16,16 @@ const ae = { class: "dialog-footer" }, ie = /* @__PURE__ */ Z({
16
16
  modelValue: { type: Boolean },
17
17
  modelModifiers: {}
18
18
  }),
19
- emits: /* @__PURE__ */ F(["refresh"], ["update:modelValue"]),
19
+ emits: /* @__PURE__ */ O(["refresh"], ["update:modelValue"]),
20
20
  setup(w, { emit: A }) {
21
21
  const { t: m } = le();
22
22
  z.materialCategoryBizDict.useValues();
23
23
  const k = c(), b = c([]);
24
- let r = j({
24
+ let r = F({
25
25
  requestId: Math.random() * 10 + "",
26
26
  updateMask: "categoryId,materialCode,materialName,specInfo,unit,unitPrice,plannerId,operatorId"
27
27
  });
28
- const J = j({
28
+ const J = F({
29
29
  materialCode: [
30
30
  {
31
31
  required: !0,
@@ -120,10 +120,10 @@ const ae = { class: "dialog-footer" }, ie = /* @__PURE__ */ Z({
120
120
  onClose: D
121
121
  }, {
122
122
  footer: o(() => [
123
- E("div", ae, [
123
+ j("div", ae, [
124
124
  t(L, { onClick: D }, {
125
125
  default: o(() => [
126
- K(O(e.$t("common.cancel")), 1)
126
+ E(K(e.$t("common.cancel")), 1)
127
127
  ]),
128
128
  _: 1
129
129
  }),
@@ -132,7 +132,7 @@ const ae = { class: "dialog-footer" }, ie = /* @__PURE__ */ Z({
132
132
  onClick: H
133
133
  }, {
134
134
  default: o(() => [
135
- K(O(e.$t("common.confirm")), 1)
135
+ E(K(e.$t("common.confirm")), 1)
136
136
  ]),
137
137
  _: 1
138
138
  })
@@ -284,7 +284,7 @@ const ae = { class: "dialog-footer" }, ie = /* @__PURE__ */ Z({
284
284
  class: "w-full"
285
285
  }, {
286
286
  suffix: o(() => [...l[9] || (l[9] = [
287
- E("span", null, "元", -1)
287
+ j("span", null, "元", -1)
288
288
  ])]),
289
289
  _: 1
290
290
  }, 8, ["modelValue", "placeholder"])
@@ -1,8 +1,8 @@
1
- import { defineComponent as W, ref as w, reactive as R, onActivated as X, resolveComponent as r, resolveDirective as D, createElementBlock as $, openBlock as d, createElementVNode as Y, createVNode as l, createBlock as _, createCommentVNode as S, withCtx as o, withKeys as Z, unref as n, createTextVNode as u, toDisplayString as c, withDirectives as f, isRef as z } from "vue";
1
+ import { defineComponent as W, ref as w, reactive as R, onActivated as X, resolveComponent as r, resolveDirective as D, openBlock as d, createElementBlock as $, createElementVNode as Y, createVNode as l, withCtx as o, withKeys as Z, unref as n, createTextVNode as u, toDisplayString as c, withDirectives as _, createBlock as f, isRef as S, createCommentVNode as z } from "vue";
2
2
  import { useTableHooks as ee } from "jmash-core";
3
3
  import { useI18n as te } from "vue-i18n";
4
- import { D as oe, m as le } from "./index-wGQ8wE-2.mjs";
5
- import { _ as ae } from "./edit.vue_vue_type_script_setup_true_lang-BQXsxv96.mjs";
4
+ import { D as oe, m as le } from "./index-DUCAqPR5.mjs";
5
+ import { _ as ae } from "./edit.vue_vue_type_script_setup_true_lang-9LPGKtx2.mjs";
6
6
  const ne = { class: "app-container" }, re = { class: "search-container" }, ie = ["onClick"], me = ["onClick"], fe = /* @__PURE__ */ W({
7
7
  __name: "index",
8
8
  setup(se) {
@@ -143,7 +143,7 @@ const ne = { class: "app-container" }, re = { class: "search-container" }, ie =
143
143
  default: o(() => [
144
144
  l(v, { span: 17 }, {
145
145
  default: o(() => [
146
- f((d(), _(b, {
146
+ _((d(), f(b, {
147
147
  type: "primary",
148
148
  onClick: L
149
149
  }, {
@@ -154,7 +154,7 @@ const ne = { class: "app-container" }, re = { class: "search-container" }, ie =
154
154
  })), [
155
155
  [C, ["material:material_category:add"]]
156
156
  ]),
157
- f((d(), _(b, {
157
+ _((d(), f(b, {
158
158
  type: "primary",
159
159
  onClick: t[4] || (t[4] = (e) => n(i).deleteRecords())
160
160
  }, {
@@ -175,7 +175,7 @@ const ne = { class: "app-container" }, re = { class: "search-container" }, ie =
175
175
  default: o(() => [
176
176
  l(F, {
177
177
  modelValue: n(p),
178
- "onUpdate:modelValue": t[5] || (t[5] = (e) => z(p) ? p.value = e : p = e),
178
+ "onUpdate:modelValue": t[5] || (t[5] = (e) => S(p) ? p.value = e : p = e),
179
179
  "label-name": "mat-material-category"
180
180
  }, null, 8, ["modelValue"])
181
181
  ]),
@@ -186,19 +186,19 @@ const ne = { class: "app-container" }, re = { class: "search-container" }, ie =
186
186
  })
187
187
  ]),
188
188
  footer: o(() => [
189
- n(g) > 0 ? (d(), _(G, {
189
+ n(g) > 0 ? (d(), f(G, {
190
190
  key: 0,
191
191
  total: n(g),
192
- "onUpdate:total": t[6] || (t[6] = (e) => z(g) ? g.value = e : null),
192
+ "onUpdate:total": t[6] || (t[6] = (e) => S(g) ? g.value = e : null),
193
193
  "current-page": m.value.curPage,
194
194
  "onUpdate:currentPage": t[7] || (t[7] = (e) => m.value.curPage = e),
195
195
  "page-size": m.value.pageSize,
196
196
  "onUpdate:pageSize": t[8] || (t[8] = (e) => m.value.pageSize = e),
197
197
  onPagination: t[9] || (t[9] = (e) => n(i).getList())
198
- }, null, 8, ["total", "current-page", "page-size"])) : S("", !0)
198
+ }, null, 8, ["total", "current-page", "page-size"])) : z("", !0)
199
199
  ]),
200
200
  default: o(() => [
201
- f((d(), _(x, {
201
+ _((d(), f(x, {
202
202
  ref_key: "multipleTableRef",
203
203
  ref: T,
204
204
  "row-key": "categoryId",
@@ -215,8 +215,8 @@ const ne = { class: "app-container" }, re = { class: "search-container" }, ie =
215
215
  default: o(() => [
216
216
  l(H)
217
217
  ]),
218
- _: 2
219
- }, 1032, ["onClick"]),
218
+ _: 1
219
+ }, 8, ["onClick"]),
220
220
  l(B, {
221
221
  size: "16",
222
222
  onClick: (h) => n(i).handleMove(e.data.row, !0)
@@ -224,11 +224,11 @@ const ne = { class: "app-container" }, re = { class: "search-container" }, ie =
224
224
  default: o(() => [
225
225
  l(M)
226
226
  ]),
227
- _: 2
228
- }, 1032, ["onClick"])
227
+ _: 1
228
+ }, 8, ["onClick"])
229
229
  ]),
230
230
  operation: o((e) => [
231
- f((d(), $("span", {
231
+ _((d(), $("span", {
232
232
  class: "el-button-color",
233
233
  onClick: (h) => q(e.data.row)
234
234
  }, [
@@ -236,7 +236,7 @@ const ne = { class: "app-container" }, re = { class: "search-container" }, ie =
236
236
  ], 8, ie)), [
237
237
  [C, ["material:material_category:update"]]
238
238
  ]),
239
- f((d(), $("span", {
239
+ _((d(), $("span", {
240
240
  class: "el-button-color dropdown-left",
241
241
  onClick: (h) => n(i).deleteRecord(e.data.row)
242
242
  }, [
@@ -252,7 +252,7 @@ const ne = { class: "app-container" }, re = { class: "search-container" }, ie =
252
252
  ]),
253
253
  _: 1
254
254
  }),
255
- s.value.visible ? (d(), _(ae, {
255
+ s.value.visible ? (d(), f(ae, {
256
256
  key: 0,
257
257
  modelValue: s.value.visible,
258
258
  "onUpdate:modelValue": t[10] || (t[10] = (e) => s.value.visible = e),
@@ -260,7 +260,7 @@ const ne = { class: "app-container" }, re = { class: "search-container" }, ie =
260
260
  "entity-key": n(k),
261
261
  onRefresh: E,
262
262
  width: "600px"
263
- }, null, 8, ["modelValue", "title", "entity-key"])) : S("", !0)
263
+ }, null, 8, ["modelValue", "title", "entity-key"])) : z("", !0)
264
264
  ]);
265
265
  };
266
266
  }
@@ -1,10 +1,10 @@
1
- import { defineComponent as fe, ref as y, reactive as A, onActivated as ce, resolveComponent as d, resolveDirective as F, createElementBlock as w, openBlock as u, createElementVNode as R, createVNode as o, createBlock as s, createCommentVNode as D, withCtx as t, unref as n, withKeys as q, Fragment as H, renderList as J, createTextVNode as f, toDisplayString as m, withDirectives as g, isRef as G } from "vue";
1
+ import { defineComponent as fe, ref as y, reactive as A, onActivated as ce, resolveComponent as d, resolveDirective as F, openBlock as u, createElementBlock as w, createElementVNode as R, createVNode as o, withCtx as t, unref as n, withKeys as q, Fragment as H, renderList as J, createBlock as s, createTextVNode as f, toDisplayString as m, withDirectives as g, isRef as G, createCommentVNode as D } from "vue";
2
2
  import { useTableHooks as ve } from "jmash-core";
3
3
  import { userApi as Ie } from "jmash-rbac";
4
4
  import { useI18n as be } from "vue-i18n";
5
- import { D as k, a as ye } from "./index-wGQ8wE-2.mjs";
6
- import { _ as ge } from "./edit.vue_vue_type_script_setup_true_lang-48wgg0O-.mjs";
7
- import { _ as _e } from "./replaceDialog.vue_vue_type_script_setup_true_lang-Becrpd5H.mjs";
5
+ import { D as k, a as ye } from "./index-DUCAqPR5.mjs";
6
+ import { _ as ge } from "./edit.vue_vue_type_script_setup_true_lang-vP2kWpiZ.mjs";
7
+ import { _ as _e } from "./replaceDialog.vue_vue_type_script_setup_true_lang-BScjTi3o.mjs";
8
8
  const ke = { class: "app-container" }, Ce = { class: "search-container" }, Ve = ["onClick"], $e = ["onClick"], Pe = /* @__PURE__ */ fe({
9
9
  __name: "index",
10
10
  setup(we) {