gzhr-ui 1.0.9 → 1.1.0

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/es/index.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  import { m as o } from "./utils-T1zvC3Cf.mjs";
2
2
  import "vue";
3
3
  import { H as r } from "./button-CJ1kU7r2.mjs";
4
- import { H as t } from "./table-Brpig3T1.mjs";
4
+ import { H as t } from "./table-EDthzqxr.mjs";
5
5
  import { H as m } from "./icon-DOZyC-Pg.mjs";
6
6
  import { A as a } from "./vendor-WGaPw_tu.mjs";
7
7
  const s = [r, t, m, a], H = o(s);
@@ -709,7 +709,7 @@ const _hoisted_1$h = ["title"], _hoisted_2$4 = { class: "flex flex-col gap3" },
709
709
  if (v[4] && (g = parseFloat(v[4])), y === 0)
710
710
  i = d = p = k * 255;
711
711
  else {
712
- const x = (B, R, O) => (O < 0 && (O += 1), O > 1 && (O -= 1), O < 0.16666666666666666 ? B + (R - B) * 6 * O : O < 0.5 ? R : O < 0.6666666666666666 ? B + (R - B) * (0.6666666666666666 - O) * 6 : B), j = k < 0.5 ? k * (1 + y) : k + y - k * y, C = 2 * k - j;
712
+ const x = (E, R, O) => (O < 0 && (O += 1), O > 1 && (O -= 1), O < 0.16666666666666666 ? E + (R - E) * 6 * O : O < 0.5 ? R : O < 0.6666666666666666 ? E + (R - E) * (0.6666666666666666 - O) * 6 : E), j = k < 0.5 ? k * (1 + y) : k + y - k * y, C = 2 * k - j;
713
713
  i = x(C, j, w + 1 / 3) * 255, d = x(C, j, w) * 255, p = x(C, j, w - 1 / 3) * 255;
714
714
  }
715
715
  }
@@ -829,8 +829,8 @@ const _hoisted_1$h = ["title"], _hoisted_2$4 = { class: "flex flex-col gap3" },
829
829
  }
830
830
  function handleChoose(row, column, gridRef) {
831
831
  var r;
832
- const response = inject("onBefore");
833
- if (response || (r = column.params) != null && r.disabled) return;
832
+ const onBefore = inject("onBefore");
833
+ if (onBefore && onBefore() || (r = column.params) != null && r.disabled) return;
834
834
  let { ChoosePageType, ChoosePageOID, StoredValueField, ReturnValueField, URLParamsObject, URLParamsHook } = props.column.params, urlParams = {}, selectedData = [], layerOptions = {};
835
835
  URLParamsObject && Object.assign(urlParams, URLParamsObject), URLParamsHook && Object.assign(urlParams, eval(`(${URLParamsHook})({ urlParams, selectedData, layerOptions, row, column, gridRef })`)), ChoosePageType === "autoPage" ? openAutoPage(ChoosePageOID, (e, t) => {
836
836
  isEmpty(StoredValueField) || isEmpty(ReturnValueField) || (Array.isArray(StoredValueField) || (StoredValueField = [StoredValueField]), Array.isArray(ReturnValueField) || (ReturnValueField = [ReturnValueField]), StoredValueField.forEach((o, n) => {
@@ -858,7 +858,7 @@ const _hoisted_1$h = ["title"], _hoisted_2$4 = { class: "flex flex-col gap3" },
858
858
  }))
859
859
  ]));
860
860
  }
861
- }), chooseFrameRender = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["__scopeId", "data-v-979d6b95"]]), __vite_glob_0_2$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
861
+ }), chooseFrameRender = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["__scopeId", "data-v-5e0adfe1"]]), __vite_glob_0_2$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
862
862
  __proto__: null,
863
863
  default: chooseFrameRender
864
864
  }, Symbol.toStringTag, { value: "Module" })), _hoisted_1$9 = { class: "size-full color-picker" }, _sfc_main$m = /* @__PURE__ */ Object.assign({
@@ -2113,9 +2113,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
2113
2113
  "RemoteMethod"
2114
2114
  ],
2115
2115
  setup(r, { expose: e, emit: t }) {
2116
- const o = r;
2117
- console.log(o.config);
2118
- const n = reactive(o.config), {
2116
+ const o = r, n = reactive(o.config), {
2119
2117
  CheckboxRender: c,
2120
2118
  ColorPickerRender: l,
2121
2119
  IconPickerRender: a,
@@ -2134,7 +2132,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
2134
2132
  LabelRender: j
2135
2133
  } = comps$1, {
2136
2134
  InputEditor: C,
2137
- TreeSelectEditor: B,
2135
+ TreeSelectEditor: E,
2138
2136
  SelectEditor: R,
2139
2137
  TextareaEditor: O,
2140
2138
  DatePickerEditor: T,
@@ -2203,7 +2201,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
2203
2201
  ]
2204
2202
  }
2205
2203
  }), h;
2206
- }), E = t;
2204
+ }), B = t;
2207
2205
  e({
2208
2206
  gridRef: b,
2209
2207
  gridOptions: N
@@ -2217,35 +2215,35 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
2217
2215
  }), f;
2218
2216
  }
2219
2217
  function L(...h) {
2220
- E("PickPeople", ...h);
2218
+ B("PickPeople", ...h);
2221
2219
  }
2222
2220
  const H = ({ menu: h }) => {
2223
2221
  var V, f;
2224
2222
  h.type == "print" ? (V = b.value) == null || V.openPrint() : h.type == "export" && ((f = b.value) == null || f.openExport());
2225
2223
  };
2226
2224
  function q(h) {
2227
- E("ActionClick", h);
2225
+ B("ActionClick", h);
2228
2226
  }
2229
2227
  function W(...h) {
2230
- E("PageChange", ...h);
2228
+ B("PageChange", ...h);
2231
2229
  }
2232
2230
  function J(...h) {
2233
- E("Refresh", ...h);
2231
+ B("Refresh", ...h);
2234
2232
  }
2235
2233
  function K(...h) {
2236
- E("FilterSearch", ...h);
2234
+ B("FilterSearch", ...h);
2237
2235
  }
2238
2236
  function G(...h) {
2239
- E("SortChange", ...h);
2237
+ B("SortChange", ...h);
2240
2238
  }
2241
2239
  function Q(...h) {
2242
- E("ActionRenderBefore", ...h);
2240
+ B("ActionRenderBefore", ...h);
2243
2241
  }
2244
2242
  function X(...h) {
2245
- E("FileClick", ...h);
2243
+ B("FileClick", ...h);
2246
2244
  }
2247
2245
  function Z(...h) {
2248
- E("RemoteMethod", ...h);
2246
+ B("RemoteMethod", ...h);
2249
2247
  }
2250
2248
  return (h, V) => (openBlock(), createElementBlock("div", _hoisted_1, [
2251
2249
  createVNode(unref(VxeGrid), mergeProps({
@@ -2406,7 +2404,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
2406
2404
  }, null, 8, ["row", "column", "grid-ref"])
2407
2405
  ]),
2408
2406
  TreeSelectEditor: withCtx(({ row: f, column: _ }) => [
2409
- createVNode(unref(B), {
2407
+ createVNode(unref(E), {
2410
2408
  row: f,
2411
2409
  column: _,
2412
2410
  "grid-ref": b.value
@@ -2453,7 +2451,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
2453
2451
  }, 16)
2454
2452
  ]));
2455
2453
  }
2456
- }), Table = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-20fc33f0"]]);
2454
+ }), Table = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-d15b6949"]]);
2457
2455
  VxeUI.setConfig({
2458
2456
  size: "small",
2459
2457
  table: {