gzhr-ui 1.0.7 → 1.0.9

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,5 +1,5 @@
1
1
  import { openBlock as t, createElementBlock as e, defineComponent as r, createVNode as _ } from "vue";
2
- import { _ as n, w as s } from "./utils-Dd9X6z8S.mjs";
2
+ import { _ as n, w as s } from "./utils-T1zvC3Cf.mjs";
3
3
  const a = {};
4
4
  function m(o, c) {
5
5
  return t(), e("div", null, "demo");
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as g, computed as s, unref as l, openBlock as t, createBlock as p, normalizeClass as i, withCtx as h, createElementBlock as c, normalizeStyle as k, createElementVNode as I, mergeProps as z } from "vue";
2
- import { E as C, I as _ } from "./vendor-KKVz0fCP.mjs";
3
- import { w as $ } from "./utils-Dd9X6z8S.mjs";
2
+ import { E as C, I as _ } from "./vendor-WGaPw_tu.mjs";
3
+ import { w as $ } from "./utils-T1zvC3Cf.mjs";
4
4
  const H = { key: 0 }, E = ["xlink:href"], S = /* @__PURE__ */ g({
5
5
  name: "HrIcon",
6
6
  __name: "icon",
package/dist/es/index.mjs CHANGED
@@ -1,9 +1,9 @@
1
- import { m as o } from "./utils-Dd9X6z8S.mjs";
1
+ import { m as o } from "./utils-T1zvC3Cf.mjs";
2
2
  import "vue";
3
- import { H as r } from "./button-SNw2ksf8.mjs";
4
- import { H as t } from "./table-Bd18DIix.mjs";
5
- import { H as m } from "./icon-CeMk3Ylp.mjs";
6
- import { A as a } from "./vendor-KKVz0fCP.mjs";
3
+ import { H as r } from "./button-CJ1kU7r2.mjs";
4
+ import { H as t } from "./table-Brpig3T1.mjs";
5
+ import { H as m } from "./icon-DOZyC-Pg.mjs";
6
+ import { A as a } from "./vendor-WGaPw_tu.mjs";
7
7
  const s = [r, t, m, a], H = o(s);
8
8
  export {
9
9
  r as HrButton,
@@ -1,6 +1,6 @@
1
- import { a as ElInput, C as ClickOutside, b as ElPopover, V as VxeInput, c as ElButton, d as ElCheckboxGroup, e as ElCheckbox, f as ElTreeSelect, g as ElInputNumber, E as ElIcon, h as ElDropdown, i as ElDropdownMenu, j as ElDropdownItem, k as ElTag, l as isEmpty, m as ElColorPicker, n as dayjs, o as isoWeek, q as quarterOfYear, p as customParseFormat, r as ElImage, s as ElProgress, t as ElRadioGroup, u as ElRadio, v as ElSelect, w as ElOption, x as VxePager, y as VxeGrid, z as VxeUI } from "./vendor-KKVz0fCP.mjs";
2
- import { ref, computed, openBlock, createElementBlock, withDirectives, createVNode, unref, withCtx, createElementVNode, createTextVNode, withKeys, createBlock, Fragment, renderList, createCommentVNode, onMounted, defineComponent, resolveComponent, normalizeStyle, toDisplayString, watch, vShow, watchEffect, normalizeProps, mergeProps, resolveDirective, onBeforeUnmount, reactive } from "vue";
3
- import { b as buildTree, d as deepClone, u as useElementClientSize, _ as _export_sfc, i as isColor, g as getFileIconUrl, p as preVideo, a as preCAD, w as withInstall } from "./utils-Dd9X6z8S.mjs";
1
+ import { a as ElInput, C as ClickOutside, b as ElPopover, V as VxeInput, c as ElButton, d as ElCheckboxGroup, e as ElCheckbox, f as ElTreeSelect, g as ElInputNumber, E as ElIcon, h as ElDropdown, i as ElDropdownMenu, j as ElDropdownItem, k as ElTag, l as isEmpty, m as ElColorPicker, n as dayjs, o as isoWeek, q as quarterOfYear, p as customParseFormat, r as ElImage, s as ElProgress, t as ElRadioGroup, u as ElRadio, v as ElSelect, w as ElOption, x as VxePager, y as VxeGrid, z as VxeUI } from "./vendor-WGaPw_tu.mjs";
2
+ import { ref, computed, openBlock, createElementBlock, withDirectives, createVNode, unref, withCtx, createElementVNode, createTextVNode, withKeys, createBlock, Fragment, renderList, createCommentVNode, onMounted, defineComponent, resolveComponent, normalizeStyle, toDisplayString, watch, vShow, watchEffect, normalizeProps, mergeProps, inject, resolveDirective, onBeforeUnmount, reactive } from "vue";
3
+ import { b as buildTree, d as deepClone, u as useElementClientSize, _ as _export_sfc, i as isColor, g as getFileIconUrl, p as preVideo, a as preCAD, w as withInstall } from "./utils-T1zvC3Cf.mjs";
4
4
  const _hoisted_1$h = ["title"], _hoisted_2$4 = { class: "flex flex-col gap3" }, _hoisted_3$3 = { class: "flex flex-col gap3" }, _hoisted_4$1 = { class: "flex justify-between" }, _sfc_main$x = {
5
5
  __name: "filter-date",
6
6
  props: {
@@ -829,7 +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
- if ((r = column.params) != null && r.disabled) return;
832
+ const response = inject("onBefore");
833
+ if (response || (r = column.params) != null && r.disabled) return;
833
834
  let { ChoosePageType, ChoosePageOID, StoredValueField, ReturnValueField, URLParamsObject, URLParamsHook } = props.column.params, urlParams = {}, selectedData = [], layerOptions = {};
834
835
  URLParamsObject && Object.assign(urlParams, URLParamsObject), URLParamsHook && Object.assign(urlParams, eval(`(${URLParamsHook})({ urlParams, selectedData, layerOptions, row, column, gridRef })`)), ChoosePageType === "autoPage" ? openAutoPage(ChoosePageOID, (e, t) => {
835
836
  isEmpty(StoredValueField) || isEmpty(ReturnValueField) || (Array.isArray(StoredValueField) || (StoredValueField = [StoredValueField]), Array.isArray(ReturnValueField) || (ReturnValueField = [ReturnValueField]), StoredValueField.forEach((o, n) => {
@@ -857,7 +858,7 @@ const _hoisted_1$h = ["title"], _hoisted_2$4 = { class: "flex flex-col gap3" },
857
858
  }))
858
859
  ]));
859
860
  }
860
- }), chooseFrameRender = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["__scopeId", "data-v-f3ff82d6"]]), __vite_glob_0_2$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
861
+ }), chooseFrameRender = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["__scopeId", "data-v-979d6b95"]]), __vite_glob_0_2$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
861
862
  __proto__: null,
862
863
  default: chooseFrameRender
863
864
  }, Symbol.toStringTag, { value: "Module" })), _hoisted_1$9 = { class: "size-full color-picker" }, _sfc_main$m = /* @__PURE__ */ Object.assign({
@@ -1865,6 +1866,7 @@ const _sfc_main$a = /* @__PURE__ */ Object.assign({
1865
1866
  class: "z-1 vxe-table--ignore-clear",
1866
1867
  modelValue: n.value,
1867
1868
  "onUpdate:modelValue": s[0] || (s[0] = (m) => n.value = m),
1869
+ "allow-create": "",
1868
1870
  "automatic-dropdown": "",
1869
1871
  placeholder: c.placeholder,
1870
1872
  "popper-class": "select-dropdown",
@@ -1885,7 +1887,7 @@ const _sfc_main$a = /* @__PURE__ */ Object.assign({
1885
1887
  _: 1
1886
1888
  }, 8, ["modelValue", "placeholder", "loading"]));
1887
1889
  }
1888
- }), selectRemoteEditor = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-84ff76dd"]]), __vite_glob_0_5 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1890
+ }), selectRemoteEditor = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-e300cf04"]]), __vite_glob_0_5 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1889
1891
  __proto__: null,
1890
1892
  default: selectRemoteEditor
1891
1893
  }, Symbol.toStringTag, { value: "Module" })), _sfc_main$4 = /* @__PURE__ */ Object.assign({
@@ -2111,7 +2113,9 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
2111
2113
  "RemoteMethod"
2112
2114
  ],
2113
2115
  setup(r, { expose: e, emit: t }) {
2114
- const o = r, n = reactive(o.config), {
2116
+ const o = r;
2117
+ console.log(o.config);
2118
+ const n = reactive(o.config), {
2115
2119
  CheckboxRender: c,
2116
2120
  ColorPickerRender: l,
2117
2121
  IconPickerRender: a,
@@ -2449,7 +2453,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
2449
2453
  }, 16)
2450
2454
  ]));
2451
2455
  }
2452
- }), Table = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-3f1a2687"]]);
2456
+ }), Table = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-20fc33f0"]]);
2453
2457
  VxeUI.setConfig({
2454
2458
  size: "small",
2455
2459
  table: {
@@ -1,4 +1,4 @@
1
- import { l as c } from "./vendor-KKVz0fCP.mjs";
1
+ import { l as c } from "./vendor-WGaPw_tu.mjs";
2
2
  import { ref as i, onUnmounted as g } from "vue";
3
3
  function f(e) {
4
4
  return (t) => e.forEach((r) => {
@@ -20847,8 +20847,7 @@ const FO = ld, Ti = Re({
20847
20847
  class: "vxe-date-picker--panel-wrapper"
20848
20848
  }, Ns())), i(fs, {
20849
20849
  to: "body",
20850
- // disabled: btnTransfer ? !initialized : true
20851
- disabled: !1
20850
+ disabled: st ? !qe : !0
20852
20851
  }, [
20853
20852
  i("div", {
20854
20853
  ref: x,