@unizhen/ui 0.0.25 → 0.0.26

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,6 +1,7 @@
1
1
  import { PropType, DefineComponent, ExtractPropTypes, Ref, VNodeChild, ComponentOptionsMixin, PublicProps, ComponentProvideOptions, CSSProperties, LabelHTMLAttributes, ComputedRef, StyleValue, SlotsType, Component, TextareaHTMLAttributes, InputHTMLAttributes, HTMLAttributes, VNode, VNodeProps, AllowedComponentProps, ComponentCustomProps } from 'vue';
2
2
  import { IUzFormItems, IUzFormItem } from './interface';
3
3
  import { ObjectKey, Fn } from '../interface';
4
+ import { default as dayjs } from 'dayjs';
4
5
  import { LabelAlign, LabelPlacement, Size, FormValidateMessages, FormItemValidate, FormItemInternalValidate } from 'naive-ui/es/form/src/interface';
5
6
  import { FormRules, FormInst, FormItemRule, ButtonSlots, SelectOption, FormValidationStatus, ThemeCommonVars, InputSlots, SelectFilter, PopoverPlacement, PopoverProps, SelectRenderTag, SelectNodeProps, SelectGroupOption, SelectSlots, InputNumberSlots, TimePickerProps, FollowerPlacement, DatePickerSlots, SwitchSlots, ColorPickerSlots, CheckboxInst, CascaderOption, CascaderSlots, PopoverInst, PopoverTrigger, Placement, TooltipSlots, DropdownMenuProps, DropdownNodeProps, MenuOption, MenuGroupOption } from 'naive-ui';
6
7
  import { Theme } from 'naive-ui/es/_mixins';
@@ -7032,6 +7033,7 @@ declare const _default: DefineComponent<ExtractPropTypes<{
7032
7033
  isMobile: ComputedRef<boolean>;
7033
7034
  showDropdown: Ref<boolean, boolean>;
7034
7035
  dropdownOptions: Ref<any[], any[]>;
7036
+ dayjs: typeof dayjs;
7035
7037
  updateValue: (item: IUzFormItem, value: any, option?: SelectOption) => Promise<void>;
7036
7038
  selectFallback: (value: any) => any | boolean;
7037
7039
  showPlaceholder: (item: IUzFormItem) => any;
@@ -1,6 +1,7 @@
1
1
  import { PropType, DefineComponent, ExtractPropTypes, Ref, VNodeChild, ComputedRef, ComponentOptionsMixin, PublicProps, ComponentProvideOptions, CSSProperties, LabelHTMLAttributes, StyleValue, SlotsType, Component, TextareaHTMLAttributes, InputHTMLAttributes, HTMLAttributes, VNode } from 'vue';
2
2
  import { IUzFormItems, IUzFormItem } from './interface';
3
3
  import { ObjectKey, Fn } from '../interface';
4
+ import { default as dayjs } from 'dayjs';
4
5
  import { LabelAlign, LabelPlacement, Size, FormValidateMessages, FormItemValidate, FormItemInternalValidate } from 'naive-ui/es/form/src/interface';
5
6
  import { FormRules, FormInst, FormItemRule, ButtonSlots, SelectOption, FormValidationStatus, ThemeCommonVars, InputSlots, SelectFilter, PopoverPlacement, PopoverProps, SelectRenderTag, SelectNodeProps, SelectGroupOption, SelectSlots, InputNumberSlots, TimePickerProps, FollowerPlacement, DatePickerSlots, SwitchSlots, ColorPickerSlots, CheckboxInst, CascaderOption, CascaderSlots, PopoverInst, PopoverTrigger, Placement, TooltipSlots, DropdownMenuProps, DropdownNodeProps, MenuOption, MenuGroupOption } from 'naive-ui';
6
7
  import { Theme } from 'naive-ui/es/_mixins';
@@ -7026,6 +7027,7 @@ declare const _default: DefineComponent<ExtractPropTypes<{
7026
7027
  isMobile: ComputedRef<boolean>;
7027
7028
  showDropdown: Ref<boolean, boolean>;
7028
7029
  dropdownOptions: Ref<any[], any[]>;
7030
+ dayjs: typeof dayjs;
7029
7031
  updateValue: (item: IUzFormItem, value: any, option?: SelectOption) => Promise<void>;
7030
7032
  selectFallback: (value: any) => any | boolean;
7031
7033
  showPlaceholder: (item: IUzFormItem) => any;
@@ -2,6 +2,7 @@ import { PropType, VNodeChild, DefineComponent, ExtractPropTypes, ComputedRef, R
2
2
  import { SelectOption, FormValidationStatus, ThemeCommonVars, InputSlots, SelectFilter, PopoverPlacement, PopoverProps, SelectRenderTag, SelectNodeProps, SelectGroupOption, SelectSlots, InputNumberSlots, TimePickerProps, FollowerPlacement, DatePickerSlots, SwitchSlots, ColorPickerSlots, CheckboxInst, CascaderOption, CascaderSlots, PopoverInst, PopoverTrigger, Placement, TooltipSlots, DropdownMenuProps, DropdownNodeProps, MenuOption, MenuGroupOption } from 'naive-ui';
3
3
  import { IUzFormItem } from './interface';
4
4
  import { ObjectKey } from '../interface';
5
+ import { default as dayjs } from 'dayjs';
5
6
  import { Depth } from 'naive-ui/es/icon/src/Icon';
6
7
  import { Theme } from 'naive-ui/es/_mixins';
7
8
  import { ExtractThemeOverrides } from 'naive-ui/es/_mixins/use-theme';
@@ -61,6 +62,7 @@ declare const _default: DefineComponent<ExtractPropTypes<{
61
62
  isMobile: ComputedRef<boolean>;
62
63
  showDropdown: Ref<boolean, boolean>;
63
64
  dropdownOptions: Ref<any[], any[]>;
65
+ dayjs: typeof dayjs;
64
66
  updateValue: (item: IUzFormItem, value: any, option?: SelectOption) => Promise<void>;
65
67
  selectFallback: (value: any) => any | boolean;
66
68
  showPlaceholder: (item: IUzFormItem) => any;
@@ -4890,6 +4890,7 @@ declare const _default: DefineComponent<ExtractPropTypes<{
4890
4890
  isMobile: ComputedRef<boolean>;
4891
4891
  showDropdown: Ref<boolean, boolean>;
4892
4892
  dropdownOptions: Ref<any[], any[]>;
4893
+ dayjs: typeof import("dayjs");
4893
4894
  updateValue: (item: IUzFormItem, value: any, option?: SelectOption) => Promise<void>;
4894
4895
  selectFallback: (value: any) => any | boolean;
4895
4896
  showPlaceholder: (item: IUzFormItem) => any;
@@ -3742,6 +3742,7 @@ declare const _default: DefineComponent<ExtractPropTypes<{
3742
3742
  isMobile: ComputedRef<boolean>;
3743
3743
  showDropdown: Ref<boolean, boolean>;
3744
3744
  dropdownOptions: Ref<any[], any[]>;
3745
+ dayjs: typeof import("dayjs");
3745
3746
  updateValue: (item: IUzFormItem, value: any, option?: SelectOption) => Promise<void>;
3746
3747
  selectFallback: (value: any) => any | boolean;
3747
3748
  showPlaceholder: (item: IUzFormItem) => any;
package/lib/ui.js CHANGED
@@ -1,12 +1,12 @@
1
1
  var Vc = Object.defineProperty;
2
2
  var Uc = (e, t, r) => t in e ? Vc(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
3
3
  var It = (e, t, r) => Uc(e, typeof t != "symbol" ? t + "" : t, r);
4
- import { defineComponent as se, createElementBlock as m, openBlock as c, createStaticVNode as U, createElementVNode as l, ref as T, watch as pe, nextTick as Le, h as Y, reactive as Ia, resolveComponent as $, createBlock as B, withCtx as g, toDisplayString as P, createVNode as N, normalizeStyle as Ne, inject as Ke, computed as bt, normalizeClass as de, createSlots as Re, createTextVNode as K, Fragment as ie, renderList as _e, provide as ka, onMounted as Fe, resolveDirective as Rl, withDirectives as vt, createCommentVNode as G, mergeProps as ba, withModifiers as Dt, watchEffect as Bl, onBeforeUnmount as Da, withKeys as Pc, renderSlot as Se, markRaw as Ec, defineAsyncComponent as Lc, onUnmounted as Fl, vShow as _a, resolveDynamicComponent as mo } from "vue";
4
+ import { defineComponent as se, createElementBlock as m, openBlock as c, createStaticVNode as U, createElementVNode as l, ref as T, watch as pe, nextTick as Le, h as Y, reactive as Ia, resolveComponent as $, createBlock as B, withCtx as g, toDisplayString as P, createVNode as N, normalizeStyle as Ne, inject as Ke, computed as bt, normalizeClass as de, createSlots as Re, createTextVNode as K, Fragment as ie, renderList as xe, provide as ka, onMounted as Fe, resolveDirective as Rl, withDirectives as vt, createCommentVNode as G, mergeProps as ba, withModifiers as Dt, watchEffect as Bl, onBeforeUnmount as Da, withKeys as Pc, renderSlot as Se, markRaw as Ec, defineAsyncComponent as Lc, onUnmounted as Fl, vShow as _a, resolveDynamicComponent as mo } from "vue";
5
5
  import { createDiscreteApi as Hc, NPopover as ct, NFlex as Vl, NButton as be, NPopconfirm as ja, NTooltip as Ul, NIcon as ke, NDropdown as Kc, NCascader as Pl, NCheckboxGroup as Oa, NCheckbox as za, NColorPicker as Gc, NSwitch as Wc, NTimePicker as Jc, NDatePicker as Qc, NInputNumber as Xc, NSelect as El, NInput as Yc, NDivider as qa, NFormItem as Aa, NForm as Ra, NInputGroup as Ba, NUploadDragger as Zc, NImage as Ll, NUpload as Hl, useNotification as qt, NImageGroup as ed, NModal as td, NInputGroupLabel as Kl, NGridItem as Gl, NGrid as Wl, NButtonGroup as rd, NDrawerContent as Fa, NDrawer as Va, NTag as nd, NEllipsis as ad, NSpin as Ua, NRadioGroup as Jl, NSkeleton as Ql, NDataTable as Pa, NPagination as od, NRadio as sd, NTabPane as ld, NTabs as id, darkTheme as We, NConfigProvider as ud, dateZhCN as cd, zhCN as dd } from "naive-ui";
6
6
  import Ea from "axios";
7
7
  import { createRouter as fd, createWebHistory as pd, useRouter as hd, useRoute as At } from "vue-router";
8
8
  import { createI18n as wd, useI18n as Rt } from "vue-i18n";
9
- import Me from "dayjs";
9
+ import _e from "dayjs";
10
10
  import Xl from "vuedraggable";
11
11
  import rt from "json5";
12
12
  import md from "jsqr";
@@ -4424,9 +4424,9 @@ function wg() {
4424
4424
  xl = 1;
4425
4425
  var e = Nv(), t = Iv(), r = gc(), n = Uv(), a = Lv(), o = Hv(), s = Kv(), i = Wv(), h = Jv(), w = Qv(), k = Xv(), D = uo(), v = rg(), d = ig(), y = cg(), u = ro(), b = yc(), f = fg(), p = Qe(), C = hg(), I = so(), F = lo(), E = 1, R = 2, O = 4, j = "[object Arguments]", x = "[object Array]", S = "[object Boolean]", A = "[object Date]", q = "[object Error]", z = "[object Function]", H = "[object GeneratorFunction]", W = "[object Map]", ue = "[object Number]", le = "[object Object]", he = "[object RegExp]", Ve = "[object Set]", Te = "[object String]", me = "[object Symbol]", at = "[object WeakMap]", Mt = "[object ArrayBuffer]", St = "[object DataView]", Xt = "[object Float32Array]", Yt = "[object Float64Array]", Zt = "[object Int8Array]", er = "[object Int16Array]", tr = "[object Int32Array]", ve = "[object Uint8Array]", rr = "[object Uint8ClampedArray]", nr = "[object Uint16Array]", ar = "[object Uint32Array]", ne = {};
4426
4426
  ne[j] = ne[x] = ne[Mt] = ne[St] = ne[S] = ne[A] = ne[Xt] = ne[Yt] = ne[Zt] = ne[er] = ne[tr] = ne[W] = ne[ue] = ne[le] = ne[he] = ne[Ve] = ne[Te] = ne[me] = ne[ve] = ne[rr] = ne[nr] = ne[ar] = !0, ne[q] = ne[z] = ne[at] = !1;
4427
- function ot(Z, Ue, Pe, or, qe, xe) {
4427
+ function ot(Z, Ue, Pe, or, qe, Ce) {
4428
4428
  var we, Ae = Ue & E, Xe = Ue & R, Tt = Ue & O;
4429
- if (Pe && (we = qe ? Pe(Z, or, qe, xe) : Pe(Z)), we !== void 0)
4429
+ if (Pe && (we = qe ? Pe(Z, or, qe, Ce) : Pe(Z)), we !== void 0)
4430
4430
  return we;
4431
4431
  if (!p(Z))
4432
4432
  return Z;
@@ -4447,18 +4447,18 @@ function wg() {
4447
4447
  we = d(Z, Ee, Ae);
4448
4448
  }
4449
4449
  }
4450
- xe || (xe = new e());
4451
- var Ye = xe.get(Z);
4450
+ Ce || (Ce = new e());
4451
+ var Ye = Ce.get(Z);
4452
4452
  if (Ye)
4453
4453
  return Ye;
4454
- xe.set(Z, we), C(Z) ? Z.forEach(function(je) {
4455
- we.add(ot(je, Ue, Pe, je, Z, xe));
4456
- }) : f(Z) && Z.forEach(function(je, Ce) {
4457
- we.set(Ce, ot(je, Ue, Pe, Ce, Z, xe));
4454
+ Ce.set(Z, we), C(Z) ? Z.forEach(function(je) {
4455
+ we.add(ot(je, Ue, Pe, je, Z, Ce));
4456
+ }) : f(Z) && Z.forEach(function(je, $e) {
4457
+ we.set($e, ot(je, Ue, Pe, $e, Z, Ce));
4458
4458
  });
4459
4459
  var sr = Tt ? Xe ? k : w : Xe ? F : I, Nt = st ? void 0 : sr(Z);
4460
- return t(Nt || Z, function(je, Ce) {
4461
- Nt && (Ce = je, je = Z[Ce]), r(we, Ce, ot(je, Ue, Pe, Ce, Z, xe));
4460
+ return t(Nt || Z, function(je, $e) {
4461
+ Nt && ($e = je, je = Z[$e]), r(we, $e, ot(je, Ue, Pe, $e, Z, Ce));
4462
4462
  }), we;
4463
4463
  }
4464
4464
  return sa = ot, sa;
@@ -4526,6 +4526,7 @@ const Q = /* @__PURE__ */ Za(vg), gg = se({
4526
4526
  isMobile: bt(() => ge.isMobile),
4527
4527
  showDropdown: r,
4528
4528
  dropdownOptions: n,
4529
+ dayjs: _e,
4529
4530
  updateValue: async (f, p, C) => {
4530
4531
  if (f.form.updateValue) {
4531
4532
  const I = { ...e.formValue };
@@ -4912,7 +4913,7 @@ function kg(e, t, r, n, a, o) {
4912
4913
  }, {
4913
4914
  default: g(() => [
4914
4915
  l("div", yg, [
4915
- (c(!0), m(ie, null, _e(e.item.params.options, (p) => (c(), B(d, {
4916
+ (c(!0), m(ie, null, xe(e.item.params.options, (p) => (c(), B(d, {
4916
4917
  key: p.value,
4917
4918
  label: p.label,
4918
4919
  value: p.value
@@ -5079,7 +5080,7 @@ const pt = /* @__PURE__ */ _(gg, [["render", kg]]), bg = se({
5079
5080
  return Ze(x);
5080
5081
  }
5081
5082
  }, u = (j, x = !1) => {
5082
- const S = Me(j).startOf("day").diff(Me().startOf("day"), "day");
5083
+ const S = _e(j).startOf("day").diff(_e().startOf("day"), "day");
5083
5084
  return S >= 0 ? x ? "success" : `剩余${S}天` : x ? "error" : `逾期${Math.abs(S)}天`;
5084
5085
  }, b = (j) => (h.value = [], j.forEach((x) => {
5085
5086
  var S;
@@ -5105,7 +5106,7 @@ const pt = /* @__PURE__ */ _(gg, [["render", kg]]), bg = se({
5105
5106
  );
5106
5107
  break;
5107
5108
  case "start-now":
5108
- const A = Me().startOf("day").valueOf();
5109
+ const A = _e().startOf("day").valueOf();
5109
5110
  o.value[x.key] = [A, A], o.value[`${x.key}StartStr`] = y(
5110
5111
  x.params.type,
5111
5112
  A
@@ -5115,7 +5116,7 @@ const pt = /* @__PURE__ */ _(gg, [["render", kg]]), bg = se({
5115
5116
  );
5116
5117
  break;
5117
5118
  case "end-now":
5118
- const q = Me().endOf("day").valueOf();
5119
+ const q = _e().endOf("day").valueOf();
5119
5120
  o.value[x.key] = [q, q], o.value[`${x.key}StartStr`] = y(
5120
5121
  x.params.type,
5121
5122
  q
@@ -5144,15 +5145,15 @@ const pt = /* @__PURE__ */ _(gg, [["render", kg]]), bg = se({
5144
5145
  );
5145
5146
  break;
5146
5147
  case "start-now":
5147
- const A = Me().startOf("day").valueOf();
5148
- o.value[x.key] = Me().startOf("day").valueOf(), o.value[`${x.key}StartStr`] = y(
5148
+ const A = _e().startOf("day").valueOf();
5149
+ o.value[x.key] = _e().startOf("day").valueOf(), o.value[`${x.key}StartStr`] = y(
5149
5150
  x.params.type,
5150
5151
  A
5151
5152
  );
5152
5153
  break;
5153
5154
  case "end-now":
5154
- const q = Me().endOf("day").valueOf();
5155
- o.value[x.key] = Me().endOf("day").valueOf(), o.value[`${x.key}Str`] = y(
5155
+ const q = _e().endOf("day").valueOf();
5156
+ o.value[x.key] = _e().endOf("day").valueOf(), o.value[`${x.key}Str`] = y(
5156
5157
  x.params.type,
5157
5158
  q
5158
5159
  );
@@ -5288,7 +5289,7 @@ function xg(e, t, r, n, a, o) {
5288
5289
  vt((c(), m("div", {
5289
5290
  class: de(e.isMobile ? "" : "uz-form-grid")
5290
5291
  }, [
5291
- (c(!0), m(ie, null, _e(e.formItems, (b, f) => {
5292
+ (c(!0), m(ie, null, xe(e.formItems, (b, f) => {
5292
5293
  var p;
5293
5294
  return c(), m(ie, { key: f }, [
5294
5295
  e.itemShow(b) ? (c(), B(v, {
@@ -5424,7 +5425,7 @@ const Cg = /* @__PURE__ */ _(bg, [["render", xg]]), $g = se({
5424
5425
  }, y = (R) => {
5425
5426
  R && (v.value[1] === -1 ? s.value.splice(v.value[0], 1, R) : s.value[v.value[0]].params.children.splice(v.value[1], 1, R), p()), C();
5426
5427
  }, u = (R, O = !1) => {
5427
- const j = Me(R).startOf("day").diff(Me().startOf("day"), "day");
5428
+ const j = _e(R).startOf("day").diff(_e().startOf("day"), "day");
5428
5429
  return j >= 0 ? O ? "success" : `剩余${j}天` : O ? "error" : `逾期${Math.abs(j)}天`;
5429
5430
  }, b = (R) => (R.forEach((O) => {
5430
5431
  var j;
@@ -5443,10 +5444,10 @@ const Cg = /* @__PURE__ */ _(bg, [["render", xg]]), $g = se({
5443
5444
  o.value[O.key] = Date.now();
5444
5445
  break;
5445
5446
  case "start-now":
5446
- o.value[O.key] = Me().startOf("day").valueOf();
5447
+ o.value[O.key] = _e().startOf("day").valueOf();
5447
5448
  break;
5448
5449
  case "end-now":
5449
- o.value[O.key] = Me().endOf("day").valueOf();
5450
+ o.value[O.key] = _e().endOf("day").valueOf();
5450
5451
  break;
5451
5452
  default:
5452
5453
  const x = Number(O.form.defaultValue);
@@ -5825,7 +5826,7 @@ function zg(e, t, r, n, a, o) {
5825
5826
  ]),
5826
5827
  _: 1
5827
5828
  }, 8, ["accept", "max", "on-before-upload"])) : G("", !0),
5828
- (c(!0), m(ie, null, _e(e.formValue, (f, p) => (c(), m("div", {
5829
+ (c(!0), m(ie, null, xe(e.formValue, (f, p) => (c(), m("div", {
5829
5830
  key: p,
5830
5831
  class: "uz-form-upload-item w-20 h-20"
5831
5832
  }, [
@@ -5952,7 +5953,7 @@ function Bg(e, t, r, n, a, o) {
5952
5953
  return c(), B(D, null, {
5953
5954
  default: g(() => [
5954
5955
  l("div", Rg, [
5955
- (c(!0), m(ie, null, _e(e.imgs, (v) => (c(), m(ie, null, [
5956
+ (c(!0), m(ie, null, xe(e.imgs, (v) => (c(), m(ie, null, [
5956
5957
  e.isAssetTypeAnImage(v) ? (c(), B(h, {
5957
5958
  key: 0,
5958
5959
  width: "40",
@@ -6379,7 +6380,7 @@ function Zg(e, t, r, n, a, o) {
6379
6380
  default: g(() => [
6380
6381
  N(i, null, {
6381
6382
  default: g(() => [
6382
- (c(!0), m(ie, null, _e(e.tabList, (C) => (c(), B(s, {
6383
+ (c(!0), m(ie, null, xe(e.tabList, (C) => (c(), B(s, {
6383
6384
  key: C.value,
6384
6385
  type: e.tabButtonType(C),
6385
6386
  secondary: "",
@@ -6400,7 +6401,7 @@ function Zg(e, t, r, n, a, o) {
6400
6401
  key: 1,
6401
6402
  offset: e.offset
6402
6403
  }, null, 8, ["offset"])) : G("", !0),
6403
- (c(!0), m(ie, null, _e(e.itemData, (C, I) => (c(), B(h, {
6404
+ (c(!0), m(ie, null, xe(e.itemData, (C, I) => (c(), B(h, {
6404
6405
  key: `${I}_${Date.now()}`,
6405
6406
  span: C.search.show ? e.gridSpan : 0
6406
6407
  }, {
@@ -6684,7 +6685,7 @@ function o2(e, t, r, n, a, o) {
6684
6685
  cols: "1"
6685
6686
  }, {
6686
6687
  default: g(() => [
6687
- (c(!0), m(ie, null, _e(e.itemData, (f, p) => (c(), B(v, {
6688
+ (c(!0), m(ie, null, xe(e.itemData, (f, p) => (c(), B(v, {
6688
6689
  key: `${p}_${Date.now()}`,
6689
6690
  span: f.search.show ? 1 : 0
6690
6691
  }, {
@@ -7504,7 +7505,7 @@ function y2(e, t, r, n, a, o) {
7504
7505
  }, 8, ["on-before-upload"]),
7505
7506
  t[0] || (t[0] = l("div", { class: "uz-br" }, null, -1)),
7506
7507
  l("div", g2, [
7507
- (c(!0), m(ie, null, _e(e.text, (k) => (c(), m("div", {
7508
+ (c(!0), m(ie, null, xe(e.text, (k) => (c(), m("div", {
7508
7509
  key: k,
7509
7510
  class: "uz-ocr-text flex items-center"
7510
7511
  }, [
@@ -7737,7 +7738,7 @@ const jc = /* @__PURE__ */ _(m2, [["render", y2], ["__scopeId", "data-v-60472dc1
7737
7738
  }, ar = (M) => {
7738
7739
  M && M.order ? I.value.orderby = `${M.columnKey} ${M.order.replace("end", "")}` : delete I.value.orderby, ve();
7739
7740
  }, ne = () => {
7740
- xe(), typeof e.addFetch == "function" ? e.addFetch() : (j.value = 0, O.value = !0);
7741
+ Ce(), typeof e.addFetch == "function" ? e.addFetch() : (j.value = 0, O.value = !0);
7741
7742
  }, ot = (M) => {
7742
7743
  M.pin = !M.pin, M.pin ? M.fixed = "left" : M.fixed = M.fixTemp ?? void 0, lt();
7743
7744
  }, Z = (M) => {
@@ -7803,7 +7804,7 @@ const jc = /* @__PURE__ */ _(m2, [["render", y2], ["__scopeId", "data-v-60472dc1
7803
7804
  ], qe = (M) => {
7804
7805
  var V;
7805
7806
  return !e.ruleFetch || !S.value || S.value && S.value[0] === "*" ? !1 : !((V = S.value) != null && V.includes(M));
7806
- }, xe = async (M) => {
7807
+ }, Ce = async (M) => {
7807
7808
  const { form: V, fillingDefaultValue: J } = await Jt(
7808
7809
  A.value,
7809
7810
  M,
@@ -7884,7 +7885,7 @@ const jc = /* @__PURE__ */ _(m2, [["render", y2], ["__scopeId", "data-v-60472dc1
7884
7885
  const L = Q(M.onClick);
7885
7886
  M.onClick = (te) => {
7886
7887
  O.value = !0, j.value = 2, we(te).then(async (ae) => {
7887
- const ye = await xe(ae), ce = { ...ae, ...ye };
7888
+ const ye = await Ce(ae), ce = { ...ae, ...ye };
7888
7889
  if (L && typeof L == "string")
7889
7890
  try {
7890
7891
  new Function(
@@ -7897,8 +7898,8 @@ const jc = /* @__PURE__ */ _(m2, [["render", y2], ["__scopeId", "data-v-60472dc1
7897
7898
  }).catch((Oe) => {
7898
7899
  oe(Oe);
7899
7900
  });
7900
- } catch ($e) {
7901
- oe($e);
7901
+ } catch (Me) {
7902
+ oe(Me);
7902
7903
  }
7903
7904
  else
7904
7905
  H.value.when_drawer_open ? Ae(ce) : x.value = ce;
@@ -7910,7 +7911,7 @@ const jc = /* @__PURE__ */ _(m2, [["render", y2], ["__scopeId", "data-v-60472dc1
7910
7911
  const L = Q(M.onClick);
7911
7912
  M.onClick = (te) => {
7912
7913
  O.value = !0, j.value = 1, we(te).then(async (ae) => {
7913
- const ye = await xe(ae), ce = { ...ae, ...ye };
7914
+ const ye = await Ce(ae), ce = { ...ae, ...ye };
7914
7915
  if (L && typeof L == "string")
7915
7916
  try {
7916
7917
  new Function(
@@ -7921,8 +7922,8 @@ const jc = /* @__PURE__ */ _(m2, [["render", y2], ["__scopeId", "data-v-60472dc1
7921
7922
  )(ce, fe, s).then((Oe) => {
7922
7923
  H.value.when_drawer_open ? Ae(Oe) : x.value = Oe;
7923
7924
  }).catch(() => null);
7924
- } catch ($e) {
7925
- oe($e);
7925
+ } catch (Me) {
7926
+ oe(Me);
7926
7927
  }
7927
7928
  else
7928
7929
  H.value.when_drawer_open ? Ae(ce) : x.value = ce;
@@ -7963,10 +7964,10 @@ const jc = /* @__PURE__ */ _(m2, [["render", y2], ["__scopeId", "data-v-60472dc1
7963
7964
  [M.action],
7964
7965
  ce.id,
7965
7966
  ce
7966
- ).then(($e) => {
7967
+ ).then((Me) => {
7967
7968
  if (L && typeof L == "string") {
7968
7969
  try {
7969
- new Function("rowData", "res", L)(ce, $e).then((lr) => {
7970
+ new Function("rowData", "res", L)(ce, Me).then((lr) => {
7970
7971
  s.success({
7971
7972
  content: lr,
7972
7973
  duration: 3e3
@@ -7980,7 +7981,7 @@ const jc = /* @__PURE__ */ _(m2, [["render", y2], ["__scopeId", "data-v-60472dc1
7980
7981
  return;
7981
7982
  }
7982
7983
  if (L && typeof L == "function") {
7983
- L(ce, $e, () => {
7984
+ L(ce, Me, () => {
7984
7985
  s.success({
7985
7986
  content: () => o("Notice.success"),
7986
7987
  duration: 3e3
@@ -8026,8 +8027,8 @@ const jc = /* @__PURE__ */ _(m2, [["render", y2], ["__scopeId", "data-v-60472dc1
8026
8027
  {},
8027
8028
  {
8028
8029
  default: () => {
8029
- const ce = I.value.query.page || 1, $e = I.value.query.pageSize || 30;
8030
- return (ce - 1) * $e + (ye + 1);
8030
+ const ce = I.value.query.page || 1, Me = I.value.query.pageSize || 30;
8031
+ return (ce - 1) * Me + (ye + 1);
8031
8032
  }
8032
8033
  }
8033
8034
  );
@@ -8045,8 +8046,8 @@ const jc = /* @__PURE__ */ _(m2, [["render", y2], ["__scopeId", "data-v-60472dc1
8045
8046
  if (!i.value && W.value.commonTime && M.push(...or()), e.enableAction === !0 && q.value && q.value.length > 0) {
8046
8047
  const ae = Q(q.value);
8047
8048
  for (const ce of ae)
8048
- ce.type === "group" ? ce.children.forEach(($e) => {
8049
- Xe($e, J);
8049
+ ce.type === "group" ? ce.children.forEach((Me) => {
8050
+ Xe(Me, J);
8050
8051
  }) : Xe(ce, J);
8051
8052
  const ye = {
8052
8053
  title: () => o("Common.action"),
@@ -8135,7 +8136,7 @@ const jc = /* @__PURE__ */ _(m2, [["render", y2], ["__scopeId", "data-v-60472dc1
8135
8136
  z.value = J.map((L) => (wo(L), L)), H.value = Ic(V.trigger);
8136
8137
  const ee = ut(e.options ?? V.option);
8137
8138
  M.tableTitle && ee.title && Sm(M.tableTitle), W.value = ee;
8138
- }, Ce = async () => {
8139
+ }, $e = async () => {
8139
8140
  v.value = !1, Nt();
8140
8141
  const M = e.id || a.params.id;
8141
8142
  if (I.value = {
@@ -8183,8 +8184,8 @@ const jc = /* @__PURE__ */ _(m2, [["render", y2], ["__scopeId", "data-v-60472dc1
8183
8184
  };
8184
8185
  }
8185
8186
  };
8186
- return r({ rebuild: Ce, init: ve }), Fe(async () => {
8187
- await Ce();
8187
+ return r({ rebuild: $e, init: ve }), Fe(async () => {
8188
+ await $e();
8188
8189
  }), pe(
8189
8190
  () => f.value,
8190
8191
  () => {
@@ -8192,7 +8193,7 @@ const jc = /* @__PURE__ */ _(m2, [["render", y2], ["__scopeId", "data-v-60472dc1
8192
8193
  },
8193
8194
  { deep: !0 }
8194
8195
  ), pe([() => a.params.id, () => e.id], async () => {
8195
- ur(), await Ce();
8196
+ ur(), await $e();
8196
8197
  }), {
8197
8198
  loading: D,
8198
8199
  minH: E,
@@ -8239,7 +8240,7 @@ const jc = /* @__PURE__ */ _(m2, [["render", y2], ["__scopeId", "data-v-60472dc1
8239
8240
  drawerSubmit: sr,
8240
8241
  checkRole: qe,
8241
8242
  handleSuffixClick: wo,
8242
- rebuild: Ce,
8243
+ rebuild: $e,
8243
8244
  summaryFn: tr,
8244
8245
  handleMobileCheckRowKeys: Zt
8245
8246
  };
@@ -9453,7 +9454,7 @@ const ey = /* @__PURE__ */ _(J2, [["render", Z2]]), ty = se({
9453
9454
  };
9454
9455
  function ay(e, t, r, n, a, o) {
9455
9456
  return c(), m("div", ry, [
9456
- (c(!0), m(ie, null, _e(e.tableColumns, (s) => (c(), m("div", {
9457
+ (c(!0), m(ie, null, xe(e.tableColumns, (s) => (c(), m("div", {
9457
9458
  key: s.key,
9458
9459
  class: de(["flex overflow-hidden", s.lineBreak ? "flex-col" : ""]),
9459
9460
  style: Ne(`grid-column: span ${s.lineCol || 2} / span ${s.lineCol || 2}`)
@@ -9550,7 +9551,7 @@ function cy(e, t, r, n, a, o) {
9550
9551
  })
9551
9552
  }, {
9552
9553
  default: g(() => [
9553
- (c(!0), m(ie, null, _e(e.tableData, (v, d) => (c(), B(i, {
9554
+ (c(!0), m(ie, null, xe(e.tableData, (v, d) => (c(), B(i, {
9554
9555
  key: v.id,
9555
9556
  class: "uz-com-card flex gap-2",
9556
9557
  value: v.id
@@ -9592,7 +9593,7 @@ function cy(e, t, r, n, a, o) {
9592
9593
  })
9593
9594
  }, {
9594
9595
  default: g(() => [
9595
- (c(!0), m(ie, null, _e(e.tableData, (v, d) => (c(), B(k, {
9596
+ (c(!0), m(ie, null, xe(e.tableData, (v, d) => (c(), B(k, {
9596
9597
  key: v.id,
9597
9598
  class: "uz-com-card flex gap-2",
9598
9599
  value: v.id
@@ -9628,7 +9629,7 @@ function cy(e, t, r, n, a, o) {
9628
9629
  maxHeight: e.maxH
9629
9630
  })
9630
9631
  }, [
9631
- (c(!0), m(ie, null, _e(e.tableData, (v, d) => (c(), m("div", {
9632
+ (c(!0), m(ie, null, xe(e.tableData, (v, d) => (c(), m("div", {
9632
9633
  key: v.id,
9633
9634
  class: "uz-com-card flex flex-col gap-2"
9634
9635
  }, [
@@ -9799,7 +9800,7 @@ function hy(e, t, r, n, a, o) {
9799
9800
  })
9800
9801
  ]),
9801
9802
  default: g(() => [
9802
- (c(!0), m(ie, null, _e(e.thumbnailStore.thumbnail, (d) => (c(), B(s, {
9803
+ (c(!0), m(ie, null, xe(e.thumbnailStore.thumbnail, (d) => (c(), B(s, {
9803
9804
  key: d.key,
9804
9805
  name: d.key,
9805
9806
  tab: d.label,
@@ -10343,7 +10344,7 @@ function gk(e, t, r) {
10343
10344
  refetch: p
10344
10345
  };
10345
10346
  }
10346
- const Ry = "0.0.25";
10347
+ const Ry = "0.0.26";
10347
10348
  let Bc;
10348
10349
  async function Fc() {
10349
10350
  const e = await fetch(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unizhen/ui",
3
- "version": "0.0.25",
3
+ "version": "0.0.26",
4
4
  "author": {
5
5
  "name": "Donovan"
6
6
  },