xyvcard-goods 0.0.14 → 0.0.15

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 { defineComponent as x, ref as V, reactive as S, onActivated as ee, resolveComponent as r, resolveDirective as te, openBlock as u, createElementBlock as $, createElementVNode as U, createVNode as o, withCtx as l, withKeys as oe, unref as n, createTextVNode as p, toDisplayString as c, withDirectives as C, createBlock as w, isRef as T, createCommentVNode as D } from "vue";
1
+ import { defineComponent as x, ref as V, reactive as S, onActivated as ee, resolveComponent as r, resolveDirective as oe, openBlock as u, createElementBlock as $, createElementVNode as U, createVNode as t, withCtx as l, withKeys as te, unref as n, createTextVNode as p, toDisplayString as c, withDirectives as C, createBlock as w, isRef as T, createCommentVNode as D } from "vue";
2
2
  import { useI18n as le } from "vue-i18n";
3
3
  import { useTableHooks as ae, fileApi as j } from "jmash-core";
4
4
  import { g as ne, D as re } from "./index-DZJVaUh3.mjs";
@@ -90,31 +90,31 @@ const ie = { class: "app-container" }, de = { class: "search-container" }, ue =
90
90
  }
91
91
  return ee(() => {
92
92
  s.getList();
93
- }), (a, t) => {
94
- const F = r("el-input"), k = r("el-form-item"), f = r("el-col"), H = r("jmash-select"), v = r("el-button"), N = r("el-row"), I = r("el-form"), M = r("jmash-column-select"), O = r("el-image"), W = r("el-switch"), G = r("Bottom"), R = r("el-icon"), J = r("Top"), X = r("jmash-table"), Y = r("jmash-pagination"), Z = r("el-card"), b = te("hasPerm");
93
+ }), (a, o) => {
94
+ const F = r("el-input"), k = r("el-form-item"), f = r("el-col"), H = r("jmash-select"), v = r("el-button"), N = r("el-row"), I = r("el-form"), M = r("jmash-column-select"), O = r("el-image"), W = r("el-switch"), G = r("Bottom"), R = r("el-icon"), J = r("Top"), X = r("jmash-table"), Y = r("jmash-pagination"), Z = r("el-card"), b = oe("hasPerm");
95
95
  return u(), $("div", ie, [
96
96
  U("div", de, [
97
- o(I, {
97
+ t(I, {
98
98
  ref_key: "queryFormRef",
99
99
  ref: P,
100
100
  model: i.value,
101
101
  inline: !0
102
102
  }, {
103
103
  default: l(() => [
104
- o(N, null, {
104
+ t(N, null, {
105
105
  default: l(() => [
106
- o(f, { span: 6 }, {
106
+ t(f, { span: 6 }, {
107
107
  default: l(() => [
108
- o(k, {
108
+ t(k, {
109
109
  label: a.$t("goodsCategory.categoryName"),
110
110
  prop: "likeCategoryName"
111
111
  }, {
112
112
  default: l(() => [
113
- o(F, {
113
+ t(F, {
114
114
  modelValue: i.value.likeCategoryName,
115
- "onUpdate:modelValue": t[0] || (t[0] = (e) => i.value.likeCategoryName = e),
115
+ "onUpdate:modelValue": o[0] || (o[0] = (e) => i.value.likeCategoryName = e),
116
116
  placeholder: a.$t("goodsCategory.categoryNameRequired"),
117
- onKeyup: t[1] || (t[1] = oe((e) => n(s).handleQuery(), ["enter"])),
117
+ onKeyup: o[1] || (o[1] = te((e) => n(s).handleQuery(), ["enter"])),
118
118
  class: "!w-[203px]",
119
119
  clearable: ""
120
120
  }, null, 8, ["modelValue", "placeholder"])
@@ -124,16 +124,16 @@ const ie = { class: "app-container" }, de = { class: "search-container" }, ue =
124
124
  ]),
125
125
  _: 1
126
126
  }),
127
- o(f, { span: 6 }, {
127
+ t(f, { span: 6 }, {
128
128
  default: l(() => [
129
- o(k, {
129
+ t(k, {
130
130
  label: a.$t("goodsCategory.status"),
131
131
  prop: "status"
132
132
  }, {
133
133
  default: l(() => [
134
- o(H, {
134
+ t(H, {
135
135
  modelValue: i.value.status,
136
- "onUpdate:modelValue": t[2] || (t[2] = (e) => i.value.status = e),
136
+ "onUpdate:modelValue": o[2] || (o[2] = (e) => i.value.status = e),
137
137
  placeholder: a.$t("goodsCategory.statusRequired"),
138
138
  data: n(re).enableDict.values,
139
139
  clearable: ""
@@ -144,21 +144,21 @@ const ie = { class: "app-container" }, de = { class: "search-container" }, ue =
144
144
  ]),
145
145
  _: 1
146
146
  }),
147
- o(f, { span: 12 }, {
147
+ t(f, { span: 12 }, {
148
148
  default: l(() => [
149
- o(k, { class: "search-btn" }, {
149
+ t(k, { class: "search-btn" }, {
150
150
  default: l(() => [
151
- o(v, {
151
+ t(v, {
152
152
  type: "primary",
153
- onClick: t[3] || (t[3] = (e) => n(s).handleQuery())
153
+ onClick: o[3] || (o[3] = (e) => n(s).handleQuery())
154
154
  }, {
155
155
  default: l(() => [
156
156
  p(c(a.$t("common.search")), 1)
157
157
  ]),
158
158
  _: 1
159
159
  }),
160
- o(v, {
161
- onClick: t[4] || (t[4] = (e) => n(s).resetQuery())
160
+ t(v, {
161
+ onClick: o[4] || (o[4] = (e) => n(s).resetQuery())
162
162
  }, {
163
163
  default: l(() => [
164
164
  p(c(a.$t("common.reset")), 1)
@@ -177,16 +177,16 @@ const ie = { class: "app-container" }, de = { class: "search-container" }, ue =
177
177
  ]),
178
178
  _: 1
179
179
  }, 8, ["model"]),
180
- t[12] || (t[12] = U("div", { class: "clear" }, null, -1))
180
+ o[12] || (o[12] = U("div", { class: "clear" }, null, -1))
181
181
  ]),
182
- o(Z, {
182
+ t(Z, {
183
183
  shadow: "never",
184
184
  class: "table-container"
185
185
  }, {
186
186
  header: l(() => [
187
- o(N, null, {
187
+ t(N, null, {
188
188
  default: l(() => [
189
- o(f, { span: 17 }, {
189
+ t(f, { span: 17 }, {
190
190
  default: l(() => [
191
191
  C((u(), w(v, {
192
192
  type: "primary",
@@ -197,31 +197,31 @@ const ie = { class: "app-container" }, de = { class: "search-container" }, ue =
197
197
  ]),
198
198
  _: 1
199
199
  })), [
200
- [b, ["emall:goods_category:add"]]
200
+ [b, ["goods:goods_category:add"]]
201
201
  ]),
202
202
  C((u(), w(v, {
203
203
  type: "primary",
204
- onClick: t[5] || (t[5] = (e) => n(s).deleteRecords())
204
+ onClick: o[5] || (o[5] = (e) => n(s).deleteRecords())
205
205
  }, {
206
206
  default: l(() => [
207
207
  p(c(a.$t("common.batchDelete")), 1)
208
208
  ]),
209
209
  _: 1
210
210
  })), [
211
- [b, ["emall:goods_category:delete"]]
211
+ [b, ["goods:goods_category:delete"]]
212
212
  ])
213
213
  ]),
214
214
  _: 1
215
215
  }),
216
- o(f, {
216
+ t(f, {
217
217
  span: 7,
218
218
  class: "container-float"
219
219
  }, {
220
220
  default: l(() => [
221
- o(M, {
221
+ t(M, {
222
222
  modelValue: n(g),
223
- "onUpdate:modelValue": t[6] || (t[6] = (e) => T(g) ? g.value = e : g = e),
224
- "label-name": "emall/emall-goods-category"
223
+ "onUpdate:modelValue": o[6] || (o[6] = (e) => T(g) ? g.value = e : g = e),
224
+ "label-name": "goods/goods-spu"
225
225
  }, null, 8, ["modelValue"])
226
226
  ]),
227
227
  _: 1
@@ -234,16 +234,16 @@ const ie = { class: "app-container" }, de = { class: "search-container" }, ue =
234
234
  n(y) > 0 ? (u(), w(Y, {
235
235
  key: 0,
236
236
  total: n(y),
237
- "onUpdate:total": t[7] || (t[7] = (e) => T(y) ? y.value = e : null),
237
+ "onUpdate:total": o[7] || (o[7] = (e) => T(y) ? y.value = e : null),
238
238
  "current-page": i.value.curPage,
239
- "onUpdate:currentPage": t[8] || (t[8] = (e) => i.value.curPage = e),
239
+ "onUpdate:currentPage": o[8] || (o[8] = (e) => i.value.curPage = e),
240
240
  "page-size": i.value.pageSize,
241
- "onUpdate:pageSize": t[9] || (t[9] = (e) => i.value.pageSize = e),
242
- onPagination: t[10] || (t[10] = (e) => n(s).getList())
241
+ "onUpdate:pageSize": o[9] || (o[9] = (e) => i.value.pageSize = e),
242
+ onPagination: o[10] || (o[10] = (e) => n(s).getList())
243
243
  }, null, 8, ["total", "current-page", "page-size"])) : D("", !0)
244
244
  ]),
245
245
  default: l(() => [
246
- o(X, {
246
+ t(X, {
247
247
  ref_key: "multipleTableRef",
248
248
  ref: z,
249
249
  "row-key": "categoryId",
@@ -255,7 +255,7 @@ const ie = { class: "app-container" }, de = { class: "search-container" }, ue =
255
255
  onSortChange: K
256
256
  }, {
257
257
  picUrl: l((e) => [
258
- o(O, {
258
+ t(O, {
259
259
  src: n(j).imageUrl(e.data.row.picUrl, 0, 0),
260
260
  "preview-src-list": [n(j).imageUrl(e.data.row.picUrl)],
261
261
  "preview-teleported": "",
@@ -265,7 +265,7 @@ const ie = { class: "app-container" }, de = { class: "search-container" }, ue =
265
265
  ]),
266
266
  status: l((e) => [
267
267
  U("span", null, [
268
- o(W, {
268
+ t(W, {
269
269
  modelValue: e.data.row.status,
270
270
  "onUpdate:modelValue": (m) => e.data.row.status = m,
271
271
  onChange: (m) => n(s).enableRecord(e.data.row, e.data.row.status)
@@ -273,21 +273,21 @@ const ie = { class: "app-container" }, de = { class: "search-container" }, ue =
273
273
  ])
274
274
  ]),
275
275
  listOrder: l((e) => [
276
- o(R, {
276
+ t(R, {
277
277
  size: "16",
278
278
  onClick: (m) => n(s).handleMove(e.data.row, !1)
279
279
  }, {
280
280
  default: l(() => [
281
- o(G)
281
+ t(G)
282
282
  ]),
283
283
  _: 2
284
284
  }, 1032, ["onClick"]),
285
- o(R, {
285
+ t(R, {
286
286
  size: "16",
287
287
  onClick: (m) => n(s).handleMove(e.data.row, !0)
288
288
  }, {
289
289
  default: l(() => [
290
- o(J)
290
+ t(J)
291
291
  ]),
292
292
  _: 2
293
293
  }, 1032, ["onClick"])
@@ -299,7 +299,7 @@ const ie = { class: "app-container" }, de = { class: "search-container" }, ue =
299
299
  }, [
300
300
  p(c(a.$t("common.edit")), 1)
301
301
  ], 8, ue)), [
302
- [b, ["emall:goods_category:update"]]
302
+ [b, ["goods:goods_category:update"]]
303
303
  ]),
304
304
  C((u(), $("span", {
305
305
  class: "el-button-color dropdown-left",
@@ -307,7 +307,7 @@ const ie = { class: "app-container" }, de = { class: "search-container" }, ue =
307
307
  }, [
308
308
  p(c(a.$t("common.delete")), 1)
309
309
  ], 8, me)), [
310
- [b, ["emall:goods_category:delete"]]
310
+ [b, ["goods:goods_category:delete"]]
311
311
  ])
312
312
  ]),
313
313
  _: 1
@@ -318,7 +318,7 @@ const ie = { class: "app-container" }, de = { class: "search-container" }, ue =
318
318
  d.value.visible ? (u(), w(se, {
319
319
  key: 0,
320
320
  modelValue: d.value.visible,
321
- "onUpdate:modelValue": t[11] || (t[11] = (e) => d.value.visible = e),
321
+ "onUpdate:modelValue": o[11] || (o[11] = (e) => d.value.visible = e),
322
322
  title: d.value.title,
323
323
  "entity-key": n(h),
324
324
  onRefresh: Q,
package/dist/index.mjs CHANGED
@@ -2806,7 +2806,7 @@ class Ii {
2806
2806
  });
2807
2807
  }
2808
2808
  }
2809
- const Hi = new Ii(), Ui = /* @__PURE__ */ Object.assign({ "./views/goods/goods-category/edit.vue": () => import("./edit-BsaWxeqY.mjs"), "./views/goods/goods-category/index.vue": () => import("./index-Ct0LRSwV.mjs"), "./views/goods/goods-spu/edit.vue": () => import("./edit-BlnYCDI4.mjs"), "./views/goods/goods-spu/goodsList.vue": () => import("./goodsList-Dvsh76f7.mjs"), "./views/goods/goods-spu/index.vue": () => import("./index-BF7PDcd4.mjs"), "./views/goods/goods-spu/info.vue": () => import("./info-wrevnU3P.mjs"), "./views/goods/goods-spu/skuForm.vue": () => import("./skuForm-B7yYjwdJ.mjs"), "./views/goods/goods-spu/skuTable.vue": () => import("./skuTable-YDBH_oRN.mjs").then((e) => e.a) }), Ei = {
2809
+ const Hi = new Ii(), Ui = /* @__PURE__ */ Object.assign({ "./views/goods/goods-category/edit.vue": () => import("./edit-BsaWxeqY.mjs"), "./views/goods/goods-category/index.vue": () => import("./index-Dp9QMOea.mjs"), "./views/goods/goods-spu/edit.vue": () => import("./edit-BlnYCDI4.mjs"), "./views/goods/goods-spu/goodsList.vue": () => import("./goodsList-Dvsh76f7.mjs"), "./views/goods/goods-spu/index.vue": () => import("./index-BF7PDcd4.mjs"), "./views/goods/goods-spu/info.vue": () => import("./info-wrevnU3P.mjs"), "./views/goods/goods-spu/skuForm.vue": () => import("./skuForm-B7yYjwdJ.mjs"), "./views/goods/goods-spu/skuTable.vue": () => import("./skuTable-YDBH_oRN.mjs").then((e) => e.a) }), Ei = {
2810
2810
  install(e) {
2811
2811
  Os(Ui, 7), Ps(bs), Ts(Fs), e.use(Ci);
2812
2812
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xyvcard-goods",
3
- "version": "0.0.14",
3
+ "version": "0.0.15",
4
4
  "private": false,
5
5
  "module": "dist/index.mjs",
6
6
  "types": "dts/index.d.ts",