cimu-parcel 1.4.4 → 1.4.5

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.
@@ -11295,7 +11295,7 @@ const g1 = {
11295
11295
  labelPosition: { default: "top" }
11296
11296
  },
11297
11297
  setup(e, { expose: t }) {
11298
- const n = /* @__PURE__ */ Object.assign({ "../Control/cascader/index.vue": () => import("./index-Cp2ROCzw.js"), "../Control/checkbox-button/index.vue": () => import("./index-C_jTDdmN.js"), "../Control/checkbox-select/index.vue": () => import("./index-M-GZ63vu.js"), "../Control/checkbox/index.vue": () => import("./index-C0YE_rli.js"), "../Control/date/index.vue": () => import("./index-CGN5RDhE.js"), "../Control/input-number/index.vue": () => import("./index-BwpIgt1h.js"), "../Control/input/index.vue": () => import("./index-CMSv7-bi.js"), "../Control/radio-button/index.vue": () => import("./index-CEtYu0pD.js"), "../Control/radio/index.vue": () => import("./index-BIvKmDqG.js"), "../Control/select/index.vue": () => import("./index-BJIuc_jk.js"), "../Control/switch/index.vue": () => import("./index-CQMqqUV8.js"), "../Control/tree-select/index.vue": () => import("./index-DVOMbrxl.js") }), o = {};
11298
+ const n = /* @__PURE__ */ Object.assign({ "../Control/cascader/index.vue": () => import("./index-Cp2ROCzw.js"), "../Control/checkbox-button/index.vue": () => import("./index-CxkNDWip.js"), "../Control/checkbox-select/index.vue": () => import("./index-BaPm7oP7.js"), "../Control/checkbox/index.vue": () => import("./index-C0YE_rli.js"), "../Control/date/index.vue": () => import("./index-CGN5RDhE.js"), "../Control/input-number/index.vue": () => import("./index-BwpIgt1h.js"), "../Control/input/index.vue": () => import("./index-CMSv7-bi.js"), "../Control/radio-button/index.vue": () => import("./index-DBzNaGjG.js"), "../Control/radio/index.vue": () => import("./index-BIvKmDqG.js"), "../Control/select/index.vue": () => import("./index-BJIuc_jk.js"), "../Control/switch/index.vue": () => import("./index-CQMqqUV8.js"), "../Control/tree-select/index.vue": () => import("./index-DVOMbrxl.js") }), o = {};
11299
11299
  Object.keys(n).forEach((f) => {
11300
11300
  let b = f.split("/")[2] + "Component";
11301
11301
  o[b] = Li(n[f]);
@@ -11455,7 +11455,7 @@ const g1 = {
11455
11455
  }
11456
11456
  },
11457
11457
  setup(e) {
11458
- const t = e, n = /* @__PURE__ */ Object.assign({ "../../Control/cascader/index.vue": () => import("./index-Cp2ROCzw.js"), "../../Control/checkbox-button/index.vue": () => import("./index-C_jTDdmN.js"), "../../Control/checkbox-select/index.vue": () => import("./index-M-GZ63vu.js"), "../../Control/checkbox/index.vue": () => import("./index-C0YE_rli.js"), "../../Control/date/index.vue": () => import("./index-CGN5RDhE.js"), "../../Control/input-number/index.vue": () => import("./index-BwpIgt1h.js"), "../../Control/input/index.vue": () => import("./index-CMSv7-bi.js"), "../../Control/radio-button/index.vue": () => import("./index-CEtYu0pD.js"), "../../Control/radio/index.vue": () => import("./index-BIvKmDqG.js"), "../../Control/select/index.vue": () => import("./index-BJIuc_jk.js"), "../../Control/switch/index.vue": () => import("./index-CQMqqUV8.js"), "../../Control/tree-select/index.vue": () => import("./index-DVOMbrxl.js") }), o = {};
11458
+ const t = e, n = /* @__PURE__ */ Object.assign({ "../../Control/cascader/index.vue": () => import("./index-Cp2ROCzw.js"), "../../Control/checkbox-button/index.vue": () => import("./index-CxkNDWip.js"), "../../Control/checkbox-select/index.vue": () => import("./index-BaPm7oP7.js"), "../../Control/checkbox/index.vue": () => import("./index-C0YE_rli.js"), "../../Control/date/index.vue": () => import("./index-CGN5RDhE.js"), "../../Control/input-number/index.vue": () => import("./index-BwpIgt1h.js"), "../../Control/input/index.vue": () => import("./index-CMSv7-bi.js"), "../../Control/radio-button/index.vue": () => import("./index-DBzNaGjG.js"), "../../Control/radio/index.vue": () => import("./index-BIvKmDqG.js"), "../../Control/select/index.vue": () => import("./index-BJIuc_jk.js"), "../../Control/switch/index.vue": () => import("./index-CQMqqUV8.js"), "../../Control/tree-select/index.vue": () => import("./index-DVOMbrxl.js") }), o = {};
11459
11459
  Object.keys(n).forEach((d) => {
11460
11460
  const v = `${d.split("/")[3]}Component`;
11461
11461
  o[v] = Li(n[d]);
@@ -11490,10 +11490,10 @@ const g1 = {
11490
11490
  setup(e, { expose: t, emit: n }) {
11491
11491
  const o = e, r = n, { InitRules: l } = qa(), s = wt(l(o.columns)), a = x(), u = x(0), i = x(), c = x(!1), d = x();
11492
11492
  async function v() {
11493
- let m;
11494
- return await d.value.validate((g) => {
11495
- m = g;
11496
- }), m;
11493
+ let g;
11494
+ return await d.value.validate((y) => {
11495
+ g = y;
11496
+ }), g;
11497
11497
  }
11498
11498
  async function h() {
11499
11499
  await v() && (i.value === "新增" && r("rowSave", { ...a.value }), i.value === "编辑" && r("rowEdit", { ...a.value }, u.value), p());
@@ -11501,31 +11501,39 @@ const g1 = {
11501
11501
  function p() {
11502
11502
  d.value.resetFields(), c.value = !1;
11503
11503
  }
11504
+ const m = (g) => ({
11505
+ span: g.span,
11506
+ offset: g.offset ?? 0,
11507
+ xs: g.xs,
11508
+ sm: g.sm,
11509
+ md: g.md,
11510
+ lg: g.lg,
11511
+ xl: g.xl
11512
+ });
11504
11513
  return t({
11505
11514
  field: a,
11506
11515
  rowIndex: u,
11507
11516
  type: i,
11508
11517
  dialogVisible: c
11509
- }), (m, g) => {
11510
- const y = j("el-form-item"), A = j("el-form"), E = j("el-button"), f = j("ZkDialog");
11511
- return T(), G(f, ye({
11518
+ }), (g, y) => {
11519
+ const A = j("el-form-item"), E = j("el-form"), f = j("el-button"), b = j("ZkDialog");
11520
+ return T(), G(b, ye({
11512
11521
  modelValue: c.value,
11513
- "onUpdate:modelValue": g[0] || (g[0] = (b) => c.value = b),
11514
- title: i.value
11515
- }, m.dialogConfig, {
11522
+ "onUpdate:modelValue": y[0] || (y[0] = (C) => c.value = C),
11523
+ title: i.value,
11516
11524
  draggable: "",
11517
11525
  "destroy-on-close": "",
11518
11526
  "align-center": ""
11519
- }), {
11527
+ }, g.dialogConfig.dialog), {
11520
11528
  footer: F(() => [
11521
11529
  L("span", w1, [
11522
- B(E, { onClick: p }, {
11523
- default: F(() => [...g[1] || (g[1] = [
11530
+ B(f, { onClick: p }, {
11531
+ default: F(() => [...y[1] || (y[1] = [
11524
11532
  we("取消", -1)
11525
11533
  ])]),
11526
11534
  _: 1
11527
11535
  }),
11528
- B(E, {
11536
+ B(f, {
11529
11537
  type: "primary",
11530
11538
  onClick: h
11531
11539
  }, {
@@ -11537,31 +11545,32 @@ const g1 = {
11537
11545
  ])
11538
11546
  ]),
11539
11547
  default: F(() => [
11540
- B(A, {
11548
+ B(E, {
11541
11549
  ref_key: "formRef",
11542
11550
  ref: d,
11543
11551
  model: a.value,
11544
11552
  "label-width": "auto"
11545
11553
  }, {
11546
11554
  default: F(() => [
11547
- B(ll, {
11555
+ B(ll, ye({
11548
11556
  gap: [20, 0],
11549
11557
  cols: 2
11550
- }, {
11558
+ }, g.dialogConfig.grid), {
11551
11559
  default: F(() => [
11552
- (T(!0), M(ie, null, Qe(s, (b) => (T(), G(Lo, {
11553
- key: b.prop
11554
- }, {
11560
+ (T(!0), M(ie, null, Qe(s, (C) => (T(), G(Lo, ye({
11561
+ key: C.prop,
11562
+ ref_for: !0
11563
+ }, m(C)), {
11555
11564
  default: F(() => [
11556
- B(y, {
11557
- label: b.label,
11558
- prop: b.prop,
11559
- rules: b.rules,
11560
- "label-width": b.labelWidth
11565
+ B(A, {
11566
+ label: C.label,
11567
+ prop: C.prop,
11568
+ rules: C.rules,
11569
+ "label-width": C.labelWidth
11561
11570
  }, {
11562
11571
  default: F(() => [
11563
11572
  B(Jc, {
11564
- form: b,
11573
+ form: C,
11565
11574
  field: a.value,
11566
11575
  scope: { row: a.value, $index: u.value }
11567
11576
  }, null, 8, ["form", "field", "scope"])
@@ -11570,10 +11579,10 @@ const g1 = {
11570
11579
  }, 1032, ["label", "prop", "rules", "label-width"])
11571
11580
  ]),
11572
11581
  _: 2
11573
- }, 1024))), 128))
11582
+ }, 1040))), 128))
11574
11583
  ]),
11575
11584
  _: 1
11576
- })
11585
+ }, 16)
11577
11586
  ]),
11578
11587
  _: 1
11579
11588
  }, 8, ["model"])
@@ -11749,7 +11758,9 @@ const I1 = /* @__PURE__ */ z({
11749
11758
  isView: { type: Boolean, default: !1 },
11750
11759
  defaultValue: { default: () => ({}) },
11751
11760
  dialogConfig: { default: () => ({}) },
11752
- isAdd: { type: Boolean, default: !0 }
11761
+ isAdd: { type: Boolean, default: !0 },
11762
+ dialogAddHandle: {},
11763
+ dialogEditHandle: {}
11753
11764
  },
11754
11765
  setup(e, { expose: t }) {
11755
11766
  const n = e, o = x(), r = x(), l = wt({
@@ -11796,9 +11807,17 @@ const I1 = /* @__PURE__ */ z({
11796
11807
  h.value.dialogVisible = !0, h.value.field = { ...n.defaultValue, ...f }, h.value.rowIndex = b, h.value.type = "编辑";
11797
11808
  }
11798
11809
  function y(f) {
11810
+ if (n.dialogAddHandle) {
11811
+ n.dialogAddHandle(f);
11812
+ return;
11813
+ }
11799
11814
  l.data.push(f);
11800
11815
  }
11801
11816
  function A(f, b) {
11817
+ if (n.dialogEditHandle) {
11818
+ n.dialogEditHandle(f, b);
11819
+ return;
11820
+ }
11802
11821
  l.data[b] = { ...f };
11803
11822
  }
11804
11823
  async function E() {
@@ -11989,7 +12008,7 @@ const I1 = /* @__PURE__ */ z({
11989
12008
  ], 64);
11990
12009
  };
11991
12010
  }
11992
- }), u2 = /* @__PURE__ */ qe(W1, [["__scopeId", "data-v-27844956"]]), D1 = { class: "basis-dialog" }, z1 = { class: "el-dialog__title" }, H1 = { class: "basis-dialog__headerbtn" }, V1 = /* @__PURE__ */ z({
12011
+ }), u2 = /* @__PURE__ */ qe(W1, [["__scopeId", "data-v-055821b0"]]), D1 = { class: "basis-dialog" }, z1 = { class: "el-dialog__title" }, H1 = { class: "basis-dialog__headerbtn" }, V1 = /* @__PURE__ */ z({
11993
12012
  __name: "index",
11994
12013
  props: {
11995
12014
  modelValue: { type: Boolean, default: !1 },
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as $, computed as y, resolveComponent as d, createBlock as v, openBlock as u, mergeProps as z, withCtx as s, createElementBlock as p, Fragment as h, renderList as C, createTextVNode as _, toDisplayString as g, createElementVNode as V, createVNode as m, normalizeClass as F } from "vue";
2
- import { _ as I } from "./index-BLEWoFKW.js";
2
+ import { _ as I } from "./index-B4IfR9bw.js";
3
3
  const L = ["onClick"], P = { class: "search-checkbox" }, S = /* @__PURE__ */ $({
4
4
  __name: "index",
5
5
  props: {
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as b, computed as r, resolveComponent as s, createBlock as p, openBlock as a, mergeProps as g, withCtx as i, createElementBlock as k, Fragment as x, renderList as V, createTextVNode as h, toDisplayString as N } from "vue";
2
- import { _ as B } from "./index-BLEWoFKW.js";
2
+ import { _ as B } from "./index-B4IfR9bw.js";
3
3
  const C = /* @__PURE__ */ b({
4
4
  __name: "index",
5
5
  props: {
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as v, computed as c, resolveComponent as s, createBlock as i, openBlock as a, mergeProps as g, withCtx as b, createElementBlock as k, Fragment as x, renderList as V } from "vue";
2
- import { _ as B } from "./index-BLEWoFKW.js";
2
+ import { _ as B } from "./index-B4IfR9bw.js";
3
3
  const C = /* @__PURE__ */ v({
4
4
  __name: "index",
5
5
  props: {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "cimu-parcel",
3
3
  "private": false,
4
- "version": "1.4.4",
4
+ "version": "1.4.5",
5
5
  "type": "module",
6
6
  "main": "dist/cimu-parcel.umd.js",
7
7
  "module": "dist/cimu-parcel.es.js",