3h1-ui 2.14.16 → 2.14.17

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.
Files changed (3) hide show
  1. package/es/index.js +69 -49
  2. package/lib/index.js +68 -48
  3. package/package.json +2 -2
package/es/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { h, nextTick, createVNode, defineComponent, ref, computed, unref, watchEffect, watch, resolveComponent, openBlock, createBlock, mergeProps, withCtx, createElementBlock, Fragment, renderList, createTextVNode, toDisplayString, createSlots, renderSlot, normalizeProps, guardReactiveProps, createElementVNode, onMounted, normalizeClass, createCommentVNode, normalizeStyle, Transition, toHandlers, useSlots, withDirectives, vShow, getCurrentInstance, inject, onUnmounted, provide, onBeforeUnmount, resolveDynamicComponent, reactive, toRef, toRefs, TransitionGroup, getCurrentScope, onScopeDispose, readonly, isVNode, shallowReactive, toRaw, shallowRef, withKeys, withModifiers, render as render$1, resolveDirective, useAttrs as useAttrs$2, pushScopeId, popScopeId, isRef } from "vue";
2
2
  import { Radio, Select, Tree, TreeSelect, Cascader, Transfer, Input, Tooltip, Skeleton, Popover, Pagination, Empty, Button as Button$1, Table as Table$1, Form, FormItem, DatePicker, InputNumber, AutoComplete, Switch, Checkbox, Slider, Rate, TimePicker, Col, Popconfirm, Modal as Modal$2, Row, Dropdown, Menu, MenuItem, MenuDivider, Divider as Divider$1, Spin, PageHeader, Space, CheckboxGroup, Image, Badge, Tag, FormItemRest, Drawer, Upload, Avatar } from "ant-design-vue";
3
- import { propTypes, isFunction as isFunction$4, isString as isString$3, isArray as isArray$3, getSlot as getSlot$1, addClass as addClass$1, removeClass as removeClass$1, getPopupContainer as getPopupContainer$1, triggerWindowResize, off, on, addResizeListener, removeResizeListener, isNumber as isNumber$2, isBoolean, isNull, extendSlots as extendSlots$1, withInstall as withInstall$4, isObject as isObject$3, dateUtil, isNullOrUnDef, isDef as isDef$1, error as error$1, deepMerge as deepMerge$1, getDynamicProps, buildProps, createBEM, forEach as forEach$1, isClient as isClient$1, filter, treeToList, eachTree, isEmpty, isServer, formatToDate, isMap as isMap$2, buildUUID, findNodeAll, getViewportOffset, warn as warn$1, isNullAndUnDef, dataURLtoBlob, deepMergeObjects } from "@shy-plugins/utils";
3
+ import { propTypes, isFunction as isFunction$4, isString as isString$3, isArray as isArray$3, getSlot as getSlot$1, addClass as addClass$1, removeClass as removeClass$1, getPopupContainer as getPopupContainer$1, triggerWindowResize, off, on, addResizeListener, removeResizeListener, isNumber as isNumber$2, isBoolean, isNull, extendSlots as extendSlots$1, withInstall as withInstall$4, isObject as isObject$3, dateUtil, isNullOrUnDef, isDef as isDef$1, error as error$1, deepMerge as deepMerge$1, getDynamicProps, buildProps, createBEM, forEach as forEach$1, isClient as isClient$1, filter, treeToList, eachTree, isEmpty, isServer, buildUUID, formatToDate, isMap as isMap$2, findNodeAll, getViewportOffset, warn as warn$1, isNullAndUnDef, dataURLtoBlob, deepMergeObjects } from "@shy-plugins/utils";
4
4
  import { useAttrs as useAttrs$1, useRuleFormItem, useTimeoutFn as useTimeoutFn$2, useScrollTo as useScrollTo$1, useIntersectionObserver, useCopyToClipboard, useMessage, usePagination as usePagination$2, createContext as createContext$1, useContext as useContext$2, useBreakpoint, useI18n as useI18n$1, useContentHeight, useDesign as useDesign$1, useWindowSizeFn as useWindowSizeFn$1, onMountedOrActivated, useEventListener as useEventListener$1 } from "@shy-plugins/use";
5
5
  import { zxcvbn } from "@zxcvbn-ts/core";
6
6
  import Iconify from "@purge-icons/generated";
@@ -7908,9 +7908,11 @@ const _sfc_main$Z = /* @__PURE__ */ defineComponent({
7908
7908
  const [e] = args;
7909
7909
  const target = e ? e.target : null;
7910
7910
  const value = target ? isCheck ? target.checked : target.value : e;
7911
+ if (props2.formModel[field] === value)
7912
+ return;
7911
7913
  props2.setFormModel(field, value);
7912
7914
  if (propsData[eventKey] && args.length >= 1) {
7913
- propsData[eventKey](...args);
7915
+ propsData[eventKey](value);
7914
7916
  }
7915
7917
  }
7916
7918
  };
@@ -8630,18 +8632,20 @@ function useFormEvents({
8630
8632
  }
8631
8633
  async function appendSchemaByField(schema, prefixField, first = false) {
8632
8634
  const schemaList = cloneDeep(unref(getSchema));
8633
- const index2 = schemaList.findIndex((schema2) => schema2.field === prefixField);
8634
- if (!prefixField || index2 === -1 || first) {
8635
- first ? schemaList.unshift(schema) : schemaList.push(schema);
8636
- schemaRef.value = schemaList;
8637
- _setDefaultValue(schema);
8635
+ const addSchemaIds = Array.isArray(schema) ? schema.map((item) => item.field) : [schema.field];
8636
+ if (schemaList.find((item) => addSchemaIds.includes(item.field))) {
8637
+ error$1("There are schemas that have already been added");
8638
8638
  return;
8639
8639
  }
8640
- if (index2 !== -1) {
8641
- schemaList.splice(index2 + 1, 0, schema);
8640
+ const index2 = schemaList.findIndex((schema2) => schema2.field === prefixField);
8641
+ const _schemaList = isObject$3(schema) ? [schema] : schema;
8642
+ if (!prefixField || index2 === -1 || first) {
8643
+ first ? schemaList.unshift(..._schemaList) : schemaList.push(..._schemaList);
8644
+ } else if (index2 !== -1) {
8645
+ schemaList.splice(index2 + 1, 0, ..._schemaList);
8642
8646
  }
8643
- _setDefaultValue(schema);
8644
8647
  schemaRef.value = schemaList;
8648
+ _setDefaultValue(schema);
8645
8649
  }
8646
8650
  async function resetSchema(data) {
8647
8651
  let updateData = [];
@@ -8680,15 +8684,19 @@ function useFormEvents({
8680
8684
  return;
8681
8685
  }
8682
8686
  const schema = [];
8683
- updateData.forEach((item) => {
8684
- unref(getSchema).forEach((val) => {
8687
+ unref(getSchema).forEach((val) => {
8688
+ let _val;
8689
+ updateData.forEach((item) => {
8685
8690
  if (val.field === item.field) {
8686
- const newSchema = deepMerge$1(val, item);
8687
- schema.push(newSchema);
8688
- } else {
8689
- schema.push(val);
8691
+ _val = item;
8690
8692
  }
8691
8693
  });
8694
+ if (_val !== void 0 && val.field === _val.field) {
8695
+ const newSchema = deepMerge$1(val, _val);
8696
+ schema.push(newSchema);
8697
+ } else {
8698
+ schema.push(val);
8699
+ }
8692
8700
  });
8693
8701
  _setDefaultValue(schema);
8694
8702
  schemaRef.value = uniqBy(schema, "field");
@@ -12381,13 +12389,16 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
12381
12389
  default: ""
12382
12390
  },
12383
12391
  record: {
12384
- type: Object,
12385
- default: () => ({})
12392
+ type: Object
12386
12393
  },
12387
12394
  column: {
12388
12395
  type: Object,
12389
12396
  default: () => ({})
12390
12397
  },
12398
+ uuId: {
12399
+ type: String,
12400
+ default: ""
12401
+ },
12391
12402
  index: propTypes.number
12392
12403
  },
12393
12404
  setup(props2) {
@@ -12421,7 +12432,7 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
12421
12432
  const isCheckValue = unref(getIsCheckComp);
12422
12433
  const valueField = isCheckValue ? "checked" : "value";
12423
12434
  const val = unref(currentValueRef);
12424
- const value = isCheckValue ? isNumber$2(val) && isBoolean(val) ? val : !!val : val;
12435
+ const value = isCheckValue ? isNumber$2(val) || isBoolean(val) ? val : !!val : val;
12425
12436
  let compProps = ((_a2 = props2.column) == null ? void 0 : _a2.editComponentProps) ?? {};
12426
12437
  const {
12427
12438
  record,
@@ -12549,8 +12560,6 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
12549
12560
  async function handleChange(e) {
12550
12561
  var _a2, _b;
12551
12562
  const component = unref(getComponent);
12552
- if (component === "Input" && e.type === "change")
12553
- ;
12554
12563
  if (!e) {
12555
12564
  currentValueRef.value = e;
12556
12565
  } else if (component === "Checkbox") {
@@ -12655,6 +12664,7 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
12655
12664
  }
12656
12665
  }
12657
12666
  set(record, dataKey, value);
12667
+ defaultValueRef.value = value;
12658
12668
  needEmit && ((_a2 = table2.emit) == null ? void 0 : _a2.call(table2, "edit-end", {
12659
12669
  record,
12660
12670
  index: index2,
@@ -12734,31 +12744,38 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
12734
12744
  isArray$3(props2.record[cbs]) ? (_a2 = props2.record[cbs]) == null ? void 0 : _a2.push(handle) : props2.record[cbs] = [handle];
12735
12745
  }
12736
12746
  }
12737
- if (props2.record) {
12738
- initCbs("submitCbs", handleSubmit);
12739
- initCbs("validCbs", handleSubmitRule);
12740
- initCbs("cancelCbs", handleCancel);
12741
- if (props2.column.dataIndex) {
12742
- if (!props2.record.editValueRefs)
12743
- props2.record.editValueRefs = {};
12744
- props2.record.editValueRefs[props2.column.dataIndex] = currentValueRef;
12745
- }
12746
- props2.record.onCancelEdit = () => {
12747
- var _a2, _b;
12748
- isArray$3((_a2 = props2.record) == null ? void 0 : _a2.cancelCbs) && ((_b = props2.record) == null ? void 0 : _b.cancelCbs.forEach((fn) => fn()));
12749
- };
12750
- props2.record.onSubmitEdit = async () => {
12751
- var _a2, _b, _c, _d, _e;
12752
- if (isArray$3((_a2 = props2.record) == null ? void 0 : _a2.submitCbs)) {
12753
- if (!((_c = (_b = props2.record) == null ? void 0 : _b.onValid) == null ? void 0 : _c.call(_b)))
12754
- return;
12755
- const submitFns = ((_d = props2.record) == null ? void 0 : _d.submitCbs) || [];
12756
- submitFns.forEach((fn) => fn(false, false));
12757
- (_e = table2.emit) == null ? void 0 : _e.call(table2, "edit-row-end");
12758
- return true;
12747
+ const handleRecordEdit = () => {
12748
+ if (props2.record) {
12749
+ initCbs("submitCbs", handleSubmit);
12750
+ initCbs("validCbs", handleSubmitRule);
12751
+ initCbs("cancelCbs", handleCancel);
12752
+ if (props2.column.dataIndex) {
12753
+ if (!props2.record.editValueRefs)
12754
+ props2.record.editValueRefs = {};
12755
+ props2.record.editValueRefs[props2.column.dataIndex] = currentValueRef;
12759
12756
  }
12760
- };
12761
- }
12757
+ props2.record.onCancelEdit = () => {
12758
+ var _a2, _b;
12759
+ isArray$3((_a2 = props2.record) == null ? void 0 : _a2.cancelCbs) && ((_b = props2.record) == null ? void 0 : _b.cancelCbs.forEach((fn) => fn()));
12760
+ };
12761
+ props2.record.onSubmitEdit = async () => {
12762
+ var _a2, _b, _c, _d, _e;
12763
+ if (isArray$3((_a2 = props2.record) == null ? void 0 : _a2.submitCbs)) {
12764
+ if (!((_c = (_b = props2.record) == null ? void 0 : _b.onValid) == null ? void 0 : _c.call(_b)))
12765
+ return;
12766
+ const submitFns = ((_d = props2.record) == null ? void 0 : _d.submitCbs) || [];
12767
+ submitFns.forEach((fn) => fn(false, false));
12768
+ (_e = table2.emit) == null ? void 0 : _e.call(table2, "edit-row-end");
12769
+ return true;
12770
+ }
12771
+ };
12772
+ }
12773
+ };
12774
+ watch(() => props2.uuId, () => {
12775
+ handleRecordEdit();
12776
+ }, {
12777
+ immediate: true
12778
+ });
12762
12779
  return {
12763
12780
  isEdit,
12764
12781
  prefixCls: prefixCls2,
@@ -12832,9 +12849,9 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
12832
12849
  }
12833
12850
  });
12834
12851
  const EditableCell_vue_vue_type_style_index_0_lang = "";
12835
- let rowIndex = 0;
12852
+ const uuId = ref();
12836
12853
  function isNeedRefresh() {
12837
- rowIndex++;
12854
+ uuId.value = buildUUID();
12838
12855
  }
12839
12856
  function renderEditCell(column) {
12840
12857
  return ({ text: value, record, index: index2 }) => {
@@ -12872,7 +12889,7 @@ function renderEditCell(column) {
12872
12889
  record,
12873
12890
  column,
12874
12891
  index: index2,
12875
- key: rowIndex
12892
+ uuId: uuId.value
12876
12893
  });
12877
12894
  };
12878
12895
  }
@@ -13794,7 +13811,7 @@ function useCustomRow(propsRef, {
13794
13811
  emit
13795
13812
  }) {
13796
13813
  const customRow = (record, index2) => {
13797
- isNeedRefresh();
13814
+ index2 === 0 && isNeedRefresh();
13798
13815
  return {
13799
13816
  onClick: (e) => {
13800
13817
  e == null ? void 0 : e.stopPropagation();
@@ -16354,6 +16371,9 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
16354
16371
  if (isBoolean(ifShow)) {
16355
16372
  isIfShow2 = ifShow;
16356
16373
  }
16374
+ if (isNumber$2(ifShow) || isString$3(ifShow)) {
16375
+ isIfShow2 = !!ifShow;
16376
+ }
16357
16377
  if (isFunction$4(ifShow)) {
16358
16378
  isIfShow2 = ifShow(action);
16359
16379
  }
package/lib/index.js CHANGED
@@ -7910,9 +7910,11 @@ const _sfc_main$Z = /* @__PURE__ */ vue.defineComponent({
7910
7910
  const [e] = args;
7911
7911
  const target = e ? e.target : null;
7912
7912
  const value = target ? isCheck ? target.checked : target.value : e;
7913
+ if (props2.formModel[field] === value)
7914
+ return;
7913
7915
  props2.setFormModel(field, value);
7914
7916
  if (propsData[eventKey] && args.length >= 1) {
7915
- propsData[eventKey](...args);
7917
+ propsData[eventKey](value);
7916
7918
  }
7917
7919
  }
7918
7920
  };
@@ -8632,18 +8634,20 @@ function useFormEvents({
8632
8634
  }
8633
8635
  async function appendSchemaByField(schema, prefixField, first = false) {
8634
8636
  const schemaList = cloneDeep(vue.unref(getSchema));
8635
- const index2 = schemaList.findIndex((schema2) => schema2.field === prefixField);
8636
- if (!prefixField || index2 === -1 || first) {
8637
- first ? schemaList.unshift(schema) : schemaList.push(schema);
8638
- schemaRef.value = schemaList;
8639
- _setDefaultValue(schema);
8637
+ const addSchemaIds = Array.isArray(schema) ? schema.map((item) => item.field) : [schema.field];
8638
+ if (schemaList.find((item) => addSchemaIds.includes(item.field))) {
8639
+ utils.error("There are schemas that have already been added");
8640
8640
  return;
8641
8641
  }
8642
- if (index2 !== -1) {
8643
- schemaList.splice(index2 + 1, 0, schema);
8642
+ const index2 = schemaList.findIndex((schema2) => schema2.field === prefixField);
8643
+ const _schemaList = utils.isObject(schema) ? [schema] : schema;
8644
+ if (!prefixField || index2 === -1 || first) {
8645
+ first ? schemaList.unshift(..._schemaList) : schemaList.push(..._schemaList);
8646
+ } else if (index2 !== -1) {
8647
+ schemaList.splice(index2 + 1, 0, ..._schemaList);
8644
8648
  }
8645
- _setDefaultValue(schema);
8646
8649
  schemaRef.value = schemaList;
8650
+ _setDefaultValue(schema);
8647
8651
  }
8648
8652
  async function resetSchema(data) {
8649
8653
  let updateData = [];
@@ -8682,15 +8686,19 @@ function useFormEvents({
8682
8686
  return;
8683
8687
  }
8684
8688
  const schema = [];
8685
- updateData.forEach((item) => {
8686
- vue.unref(getSchema).forEach((val) => {
8689
+ vue.unref(getSchema).forEach((val) => {
8690
+ let _val;
8691
+ updateData.forEach((item) => {
8687
8692
  if (val.field === item.field) {
8688
- const newSchema = utils.deepMerge(val, item);
8689
- schema.push(newSchema);
8690
- } else {
8691
- schema.push(val);
8693
+ _val = item;
8692
8694
  }
8693
8695
  });
8696
+ if (_val !== void 0 && val.field === _val.field) {
8697
+ const newSchema = utils.deepMerge(val, _val);
8698
+ schema.push(newSchema);
8699
+ } else {
8700
+ schema.push(val);
8701
+ }
8694
8702
  });
8695
8703
  _setDefaultValue(schema);
8696
8704
  schemaRef.value = uniqBy(schema, "field");
@@ -12383,13 +12391,16 @@ const _sfc_main$E = /* @__PURE__ */ vue.defineComponent({
12383
12391
  default: ""
12384
12392
  },
12385
12393
  record: {
12386
- type: Object,
12387
- default: () => ({})
12394
+ type: Object
12388
12395
  },
12389
12396
  column: {
12390
12397
  type: Object,
12391
12398
  default: () => ({})
12392
12399
  },
12400
+ uuId: {
12401
+ type: String,
12402
+ default: ""
12403
+ },
12393
12404
  index: utils.propTypes.number
12394
12405
  },
12395
12406
  setup(props2) {
@@ -12423,7 +12434,7 @@ const _sfc_main$E = /* @__PURE__ */ vue.defineComponent({
12423
12434
  const isCheckValue = vue.unref(getIsCheckComp);
12424
12435
  const valueField = isCheckValue ? "checked" : "value";
12425
12436
  const val = vue.unref(currentValueRef);
12426
- const value = isCheckValue ? utils.isNumber(val) && utils.isBoolean(val) ? val : !!val : val;
12437
+ const value = isCheckValue ? utils.isNumber(val) || utils.isBoolean(val) ? val : !!val : val;
12427
12438
  let compProps = ((_a2 = props2.column) == null ? void 0 : _a2.editComponentProps) ?? {};
12428
12439
  const {
12429
12440
  record,
@@ -12551,8 +12562,6 @@ const _sfc_main$E = /* @__PURE__ */ vue.defineComponent({
12551
12562
  async function handleChange(e) {
12552
12563
  var _a2, _b;
12553
12564
  const component = vue.unref(getComponent);
12554
- if (component === "Input" && e.type === "change")
12555
- ;
12556
12565
  if (!e) {
12557
12566
  currentValueRef.value = e;
12558
12567
  } else if (component === "Checkbox") {
@@ -12657,6 +12666,7 @@ const _sfc_main$E = /* @__PURE__ */ vue.defineComponent({
12657
12666
  }
12658
12667
  }
12659
12668
  set(record, dataKey, value);
12669
+ defaultValueRef.value = value;
12660
12670
  needEmit && ((_a2 = table2.emit) == null ? void 0 : _a2.call(table2, "edit-end", {
12661
12671
  record,
12662
12672
  index: index2,
@@ -12736,31 +12746,38 @@ const _sfc_main$E = /* @__PURE__ */ vue.defineComponent({
12736
12746
  utils.isArray(props2.record[cbs]) ? (_a2 = props2.record[cbs]) == null ? void 0 : _a2.push(handle) : props2.record[cbs] = [handle];
12737
12747
  }
12738
12748
  }
12739
- if (props2.record) {
12740
- initCbs("submitCbs", handleSubmit);
12741
- initCbs("validCbs", handleSubmitRule);
12742
- initCbs("cancelCbs", handleCancel);
12743
- if (props2.column.dataIndex) {
12744
- if (!props2.record.editValueRefs)
12745
- props2.record.editValueRefs = {};
12746
- props2.record.editValueRefs[props2.column.dataIndex] = currentValueRef;
12747
- }
12748
- props2.record.onCancelEdit = () => {
12749
- var _a2, _b;
12750
- utils.isArray((_a2 = props2.record) == null ? void 0 : _a2.cancelCbs) && ((_b = props2.record) == null ? void 0 : _b.cancelCbs.forEach((fn) => fn()));
12751
- };
12752
- props2.record.onSubmitEdit = async () => {
12753
- var _a2, _b, _c, _d, _e;
12754
- if (utils.isArray((_a2 = props2.record) == null ? void 0 : _a2.submitCbs)) {
12755
- if (!((_c = (_b = props2.record) == null ? void 0 : _b.onValid) == null ? void 0 : _c.call(_b)))
12756
- return;
12757
- const submitFns = ((_d = props2.record) == null ? void 0 : _d.submitCbs) || [];
12758
- submitFns.forEach((fn) => fn(false, false));
12759
- (_e = table2.emit) == null ? void 0 : _e.call(table2, "edit-row-end");
12760
- return true;
12749
+ const handleRecordEdit = () => {
12750
+ if (props2.record) {
12751
+ initCbs("submitCbs", handleSubmit);
12752
+ initCbs("validCbs", handleSubmitRule);
12753
+ initCbs("cancelCbs", handleCancel);
12754
+ if (props2.column.dataIndex) {
12755
+ if (!props2.record.editValueRefs)
12756
+ props2.record.editValueRefs = {};
12757
+ props2.record.editValueRefs[props2.column.dataIndex] = currentValueRef;
12761
12758
  }
12762
- };
12763
- }
12759
+ props2.record.onCancelEdit = () => {
12760
+ var _a2, _b;
12761
+ utils.isArray((_a2 = props2.record) == null ? void 0 : _a2.cancelCbs) && ((_b = props2.record) == null ? void 0 : _b.cancelCbs.forEach((fn) => fn()));
12762
+ };
12763
+ props2.record.onSubmitEdit = async () => {
12764
+ var _a2, _b, _c, _d, _e;
12765
+ if (utils.isArray((_a2 = props2.record) == null ? void 0 : _a2.submitCbs)) {
12766
+ if (!((_c = (_b = props2.record) == null ? void 0 : _b.onValid) == null ? void 0 : _c.call(_b)))
12767
+ return;
12768
+ const submitFns = ((_d = props2.record) == null ? void 0 : _d.submitCbs) || [];
12769
+ submitFns.forEach((fn) => fn(false, false));
12770
+ (_e = table2.emit) == null ? void 0 : _e.call(table2, "edit-row-end");
12771
+ return true;
12772
+ }
12773
+ };
12774
+ }
12775
+ };
12776
+ vue.watch(() => props2.uuId, () => {
12777
+ handleRecordEdit();
12778
+ }, {
12779
+ immediate: true
12780
+ });
12764
12781
  return {
12765
12782
  isEdit,
12766
12783
  prefixCls: prefixCls2,
@@ -12834,9 +12851,9 @@ const _sfc_main$E = /* @__PURE__ */ vue.defineComponent({
12834
12851
  }
12835
12852
  });
12836
12853
  const EditableCell_vue_vue_type_style_index_0_lang = "";
12837
- let rowIndex = 0;
12854
+ const uuId = vue.ref();
12838
12855
  function isNeedRefresh() {
12839
- rowIndex++;
12856
+ uuId.value = utils.buildUUID();
12840
12857
  }
12841
12858
  function renderEditCell(column) {
12842
12859
  return ({ text: value, record, index: index2 }) => {
@@ -12874,7 +12891,7 @@ function renderEditCell(column) {
12874
12891
  record,
12875
12892
  column,
12876
12893
  index: index2,
12877
- key: rowIndex
12894
+ uuId: uuId.value
12878
12895
  });
12879
12896
  };
12880
12897
  }
@@ -13796,7 +13813,7 @@ function useCustomRow(propsRef, {
13796
13813
  emit
13797
13814
  }) {
13798
13815
  const customRow = (record, index2) => {
13799
- isNeedRefresh();
13816
+ index2 === 0 && isNeedRefresh();
13800
13817
  return {
13801
13818
  onClick: (e) => {
13802
13819
  e == null ? void 0 : e.stopPropagation();
@@ -16356,6 +16373,9 @@ const _sfc_main$p = /* @__PURE__ */ vue.defineComponent({
16356
16373
  if (utils.isBoolean(ifShow)) {
16357
16374
  isIfShow2 = ifShow;
16358
16375
  }
16376
+ if (utils.isNumber(ifShow) || utils.isString(ifShow)) {
16377
+ isIfShow2 = !!ifShow;
16378
+ }
16359
16379
  if (utils.isFunction(ifShow)) {
16360
16380
  isIfShow2 = ifShow(action);
16361
16381
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "3h1-ui",
3
- "version": "2.14.16",
3
+ "version": "2.14.17",
4
4
  "description": "",
5
5
  "module": "es/index.js",
6
6
  "main": "lib/index.js",
@@ -29,7 +29,7 @@
29
29
  "vue-json-pretty": "^2.2.3",
30
30
  "vxe-table": "^4.3.6",
31
31
  "xe-utils": "^3.5.7",
32
- "@shy-plugins/use": "1.0.4",
32
+ "@shy-plugins/use": "1.0.5",
33
33
  "@shy-plugins/utils": "1.1.0"
34
34
  },
35
35
  "types": "es/ui/index.d.ts",