lew-ui 2.6.18 → 2.6.19

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.
@@ -4,47 +4,56 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
4
4
  default: () => never[];
5
5
  };
6
6
  dropdownThreshold: {
7
- type: NumberConstructor;
7
+ type: (NumberConstructor | StringConstructor)[];
8
8
  default: number;
9
9
  };
10
10
  dropdownLabel: {
11
- type: PropType<string | (() => any)>;
11
+ type: PropType<string | (() => any) | any>;
12
12
  default: string;
13
13
  };
14
14
  dropdownIcon: {
15
- type: PropType<() => any>;
15
+ type: PropType<(() => any) | any>;
16
16
  default: undefined;
17
17
  };
18
18
  divider: {
19
19
  type: BooleanConstructor;
20
20
  default: boolean;
21
21
  };
22
+ iconOnly: {
23
+ type: BooleanConstructor;
24
+ default: boolean;
25
+ };
22
26
  }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
23
27
  options: {
24
28
  type: PropType<import('../../..').ActionBoxOption[]>;
25
29
  default: () => never[];
26
30
  };
27
31
  dropdownThreshold: {
28
- type: NumberConstructor;
32
+ type: (NumberConstructor | StringConstructor)[];
29
33
  default: number;
30
34
  };
31
35
  dropdownLabel: {
32
- type: PropType<string | (() => any)>;
36
+ type: PropType<string | (() => any) | any>;
33
37
  default: string;
34
38
  };
35
39
  dropdownIcon: {
36
- type: PropType<() => any>;
40
+ type: PropType<(() => any) | any>;
37
41
  default: undefined;
38
42
  };
39
43
  divider: {
40
44
  type: BooleanConstructor;
41
45
  default: boolean;
42
46
  };
47
+ iconOnly: {
48
+ type: BooleanConstructor;
49
+ default: boolean;
50
+ };
43
51
  }>> & Readonly<{}>, {
44
52
  options: import('../../..').ActionBoxOption[];
45
- dropdownThreshold: number;
46
- dropdownLabel: string | (() => any);
47
- dropdownIcon: () => any;
53
+ dropdownThreshold: string | number;
54
+ dropdownLabel: any;
55
+ dropdownIcon: any;
48
56
  divider: boolean;
57
+ iconOnly: boolean;
49
58
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
50
59
  export default _default;
@@ -12,20 +12,24 @@ export declare const actionBoxProps: {
12
12
  default: () => never[];
13
13
  };
14
14
  dropdownThreshold: {
15
- type: NumberConstructor;
15
+ type: (NumberConstructor | StringConstructor)[];
16
16
  default: number;
17
17
  };
18
18
  dropdownLabel: {
19
- type: PropType<string | (() => any)>;
19
+ type: PropType<string | (() => any) | any>;
20
20
  default: string;
21
21
  };
22
22
  dropdownIcon: {
23
- type: PropType<() => any>;
23
+ type: PropType<(() => any) | any>;
24
24
  default: undefined;
25
25
  };
26
26
  divider: {
27
27
  type: BooleanConstructor;
28
28
  default: boolean;
29
29
  };
30
+ iconOnly: {
31
+ type: BooleanConstructor;
32
+ default: boolean;
33
+ };
30
34
  };
31
35
  export type ActionBoxProps = ExtractPropTypes<typeof actionBoxProps>;
@@ -18,9 +18,10 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
18
18
  description: string;
19
19
  };
20
20
  max: {
21
- type: NumberConstructor;
21
+ type: (NumberConstructor | StringConstructor)[];
22
22
  default: number;
23
23
  description: string;
24
+ validator: (value: string | number) => boolean;
24
25
  };
25
26
  color: {
26
27
  type: StringConstructor;
@@ -51,9 +52,10 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
51
52
  description: string;
52
53
  };
53
54
  max: {
54
- type: NumberConstructor;
55
+ type: (NumberConstructor | StringConstructor)[];
55
56
  default: number;
56
57
  description: string;
58
+ validator: (value: string | number) => boolean;
57
59
  };
58
60
  color: {
59
61
  type: StringConstructor;
@@ -70,7 +72,7 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
70
72
  }>> & Readonly<{}>, {
71
73
  color: string;
72
74
  value: string | number;
73
- max: number;
75
+ max: string | number;
74
76
  text: string;
75
77
  processing: boolean;
76
78
  offset: unknown[];
@@ -18,9 +18,10 @@ export declare const badgeProps: {
18
18
  description: string;
19
19
  };
20
20
  max: {
21
- type: NumberConstructor;
21
+ type: (NumberConstructor | StringConstructor)[];
22
22
  default: number;
23
23
  description: string;
24
+ validator: (value: string | number) => boolean;
24
25
  };
25
26
  color: {
26
27
  type: StringConstructor;
@@ -111,6 +111,7 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
111
111
  validate: () => void;
112
112
  setError: (message: any) => void;
113
113
  curRule: globalThis.ComputedRef<any>;
114
+ setIgnoreValidate: (value: boolean) => void;
114
115
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
115
116
  change: (...args: any[]) => void;
116
117
  }, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
package/dist/index.mjs CHANGED
@@ -2953,6 +2953,22 @@ const RotateCw = createLucideIcon("RotateCwIcon", [
2953
2953
  ["path", { d: "M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8", key: "1p45f6" }],
2954
2954
  ["path", { d: "M21 3v5h-5", key: "1q7to0" }]
2955
2955
  ]);
2956
+ /**
2957
+ * @license lucide-vue-next v0.471.0 - ISC
2958
+ *
2959
+ * This source code is licensed under the ISC license.
2960
+ * See the LICENSE file in the root directory of this source tree.
2961
+ */
2962
+ const SquareMousePointer = createLucideIcon("SquareMousePointerIcon", [
2963
+ [
2964
+ "path",
2965
+ {
2966
+ d: "M12.034 12.681a.498.498 0 0 1 .647-.647l9 3.5a.5.5 0 0 1-.033.943l-3.444 1.068a1 1 0 0 0-.66.66l-1.067 3.443a.5.5 0 0 1-.943.033z",
2967
+ key: "xwnzip"
2968
+ }
2969
+ ],
2970
+ ["path", { d: "M21 11V5a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h6", key: "14rsvq" }]
2971
+ ]);
2956
2972
  /**
2957
2973
  * @license lucide-vue-next v0.471.0 - ISC
2958
2974
  *
@@ -3093,7 +3109,8 @@ const _sfc_main$14 = /* @__PURE__ */ defineComponent({
3093
3109
  user: UserRound,
3094
3110
  eye: Eye,
3095
3111
  eye_off: EyeOff,
3096
- star: Star
3112
+ star: Star,
3113
+ "square-mouse-pointer": SquareMousePointer
3097
3114
  };
3098
3115
  return (_ctx, _cache) => {
3099
3116
  return openBlock(), createBlock(resolveDynamicComponent(iconMap[props2.type]), {
@@ -3118,7 +3135,7 @@ const _export_sfc = (sfc, props2) => {
3118
3135
  }
3119
3136
  return target;
3120
3137
  };
3121
- const Icon = /* @__PURE__ */ _export_sfc(_sfc_main$14, [["__scopeId", "data-v-550e8cab"]]);
3138
+ const Icon = /* @__PURE__ */ _export_sfc(_sfc_main$14, [["__scopeId", "data-v-21111bc0"]]);
3122
3139
  const iconColorType = {
3123
3140
  normal: "gray",
3124
3141
  warning: "orange",
@@ -3495,7 +3512,6 @@ const findNodeByKey = (key, tree) => {
3495
3512
  const isVueComponent = (value) => {
3496
3513
  try {
3497
3514
  if (typeof value !== "function" && typeof value !== "object") {
3498
- console.warn("[isVueComponent] 提供的值不是组件类型,应为函数或对象类型");
3499
3515
  return false;
3500
3516
  }
3501
3517
  if (typeof value === "function") {
@@ -4467,9 +4483,17 @@ const badgeProps = {
4467
4483
  },
4468
4484
  // 超过多少转化成加号
4469
4485
  max: {
4470
- type: Number,
4486
+ type: [Number, String],
4471
4487
  default: 99,
4472
- description: "超过多少转化成加号"
4488
+ description: "超过多少转化成加号",
4489
+ validator: (value) => {
4490
+ const numberValue = Number(value);
4491
+ if (isNaN(numberValue)) {
4492
+ console.warn("[LewBadge] max 属性必须是有效的数字或可转换为数字的字符串。");
4493
+ return false;
4494
+ }
4495
+ return true;
4496
+ }
4473
4497
  },
4474
4498
  color: {
4475
4499
  type: String,
@@ -4535,8 +4559,9 @@ const _sfc_main$$ = /* @__PURE__ */ defineComponent({
4535
4559
  const displayValue = computed(() => {
4536
4560
  const { value, max: max2 } = props2;
4537
4561
  const numberValue = Number(value);
4538
- if (!isNaN(numberValue) && numberValue > max2) {
4539
- return `${max2}+`;
4562
+ const maxValue = Number(max2);
4563
+ if (!isNaN(numberValue) && !isNaN(maxValue) && numberValue > maxValue) {
4564
+ return `${maxValue}+`;
4540
4565
  }
4541
4566
  return value;
4542
4567
  });
@@ -4595,7 +4620,13 @@ const titleProps = {
4595
4620
  "purple",
4596
4621
  "pink",
4597
4622
  "gray",
4598
- "brown"
4623
+ "brown",
4624
+ "warning",
4625
+ "error",
4626
+ "success",
4627
+ "normal",
4628
+ "primary",
4629
+ "info"
4599
4630
  ];
4600
4631
  if (value && !validColors2.includes(value) && !/^#([0-9A-Fa-f]{3}){1,2}$/.test(value)) {
4601
4632
  console.warn(
@@ -8562,10 +8593,10 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
8562
8593
  icon: () => icon,
8563
8594
  onChange: () => emit2("change", item)
8564
8595
  },
8565
- // 递归渲染子项
8566
- () => (item.children || []).map(
8567
- (child) => renderMenuTreeItem(child, level + 1)
8568
- )
8596
+ () => {
8597
+ var _a2;
8598
+ return ((_a2 = item.children) == null ? void 0 : _a2.length) ? item.children.map((child) => renderMenuTreeItem(child, level + 1)) : [];
8599
+ }
8569
8600
  ),
8570
8601
  directives2
8571
8602
  );
@@ -8589,7 +8620,7 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
8589
8620
  };
8590
8621
  }
8591
8622
  });
8592
- const LewMenuTree = /* @__PURE__ */ _export_sfc(_sfc_main$R, [["__scopeId", "data-v-a49a0d3f"]]);
8623
+ const LewMenuTree = /* @__PURE__ */ _export_sfc(_sfc_main$R, [["__scopeId", "data-v-3318ea8a"]]);
8593
8624
  const dropdownModel = {
8594
8625
  selectedKeys: {
8595
8626
  type: Array,
@@ -8811,20 +8842,24 @@ const actionBoxProps = {
8811
8842
  default: () => []
8812
8843
  },
8813
8844
  dropdownThreshold: {
8814
- type: Number,
8845
+ type: [Number, String],
8815
8846
  default: 0
8816
8847
  },
8817
8848
  dropdownLabel: {
8818
- type: [String, Function],
8849
+ type: [String, Function, Object],
8819
8850
  default: "More"
8820
8851
  },
8821
8852
  dropdownIcon: {
8822
- type: Function,
8853
+ type: [Function, Object],
8823
8854
  default: void 0
8824
8855
  },
8825
8856
  divider: {
8826
8857
  type: Boolean,
8827
8858
  default: true
8859
+ },
8860
+ iconOnly: {
8861
+ type: Boolean,
8862
+ default: false
8828
8863
  }
8829
8864
  };
8830
8865
  const _hoisted_1$D = ["onClick"];
@@ -8838,17 +8873,18 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
8838
8873
  props: actionBoxProps,
8839
8874
  setup(__props2) {
8840
8875
  const props2 = __props2;
8876
+ const threshold = computed(() => Number(props2.dropdownThreshold));
8841
8877
  const visibleOptions = computed(() => {
8842
- if (props2.dropdownThreshold <= 0) {
8878
+ if (threshold.value <= 0) {
8843
8879
  return props2.options;
8844
8880
  }
8845
- return props2.options.slice(0, props2.dropdownThreshold);
8881
+ return props2.options.slice(0, threshold.value);
8846
8882
  });
8847
8883
  const dropdownOptions = computed(() => {
8848
- if (props2.dropdownThreshold <= 0) {
8884
+ if (threshold.value <= 0) {
8849
8885
  return [];
8850
8886
  }
8851
- return props2.options.slice(props2.dropdownThreshold);
8887
+ return props2.options.slice(threshold.value);
8852
8888
  });
8853
8889
  return (_ctx, _cache) => {
8854
8890
  return openBlock(), createBlock(unref(LewFlex), {
@@ -8876,15 +8912,15 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
8876
8912
  key: 0,
8877
8913
  class: "lew-action-box-icon"
8878
8914
  })) : createCommentVNode("", true),
8879
- unref(isVueComponent)(option.label) ? (openBlock(), createBlock(resolveDynamicComponent(unref(formatComponent)(option.label)), {
8915
+ unref(isVueComponent)(option.label) && !_ctx.iconOnly ? (openBlock(), createBlock(resolveDynamicComponent(unref(formatComponent)(option.label)), {
8880
8916
  key: 1,
8881
8917
  onClick: ($event) => {
8882
8918
  var _a;
8883
8919
  return (_a = option.onClick) == null ? void 0 : _a.call(option);
8884
8920
  }
8885
- }, null, 8, ["onClick"])) : (openBlock(), createElementBlock(Fragment, { key: 2 }, [
8921
+ }, null, 8, ["onClick"])) : !_ctx.iconOnly ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
8886
8922
  createTextVNode(toDisplayString$1(option.label), 1)
8887
- ], 64))
8923
+ ], 64)) : createCommentVNode("", true)
8888
8924
  ], 8, _hoisted_1$D)),
8889
8925
  _ctx.divider && (dropdownOptions.value.length > 0 || visibleOptions.value.length === _ctx.options.length && index2 !== _ctx.options.length - 1) ? (openBlock(), createElementBlock("i", _hoisted_2$m)) : createCommentVNode("", true)
8890
8926
  ], 64);
@@ -8912,7 +8948,7 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
8912
8948
  };
8913
8949
  }
8914
8950
  });
8915
- const LewActionBox = /* @__PURE__ */ _export_sfc(_sfc_main$O, [["__scopeId", "data-v-0fde1e16"]]);
8951
+ const LewActionBox = /* @__PURE__ */ _export_sfc(_sfc_main$O, [["__scopeId", "data-v-5783bc1a"]]);
8916
8952
  const _hoisted_1$C = ["width", "height"];
8917
8953
  const _sfc_main$N = /* @__PURE__ */ defineComponent({
8918
8954
  __name: "RequiredIcon",
@@ -11590,12 +11626,20 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
11590
11626
  watch(
11591
11627
  () => modelValue.value,
11592
11628
  () => {
11593
- validateField();
11629
+ if (!ignoreValidate.value) {
11630
+ validateField();
11631
+ } else {
11632
+ ignoreValidate.value = false;
11633
+ }
11594
11634
  },
11595
11635
  {
11596
11636
  deep: true
11597
11637
  }
11598
11638
  );
11639
+ const ignoreValidate = ref(false);
11640
+ const setIgnoreValidate = (value) => {
11641
+ ignoreValidate.value = value;
11642
+ };
11599
11643
  const validateField = debounce$2(() => {
11600
11644
  validate();
11601
11645
  }, 120);
@@ -11675,7 +11719,7 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
11675
11719
  justifyContent: direction === "x" && between ? "flex-end" : "flex-start"
11676
11720
  };
11677
11721
  });
11678
- __expose({ validate, setError, curRule });
11722
+ __expose({ validate, setError, curRule, setIgnoreValidate });
11679
11723
  return (_ctx, _cache) => {
11680
11724
  const _directive_tooltip = resolveDirective("tooltip");
11681
11725
  return openBlock(), createElementBlock("div", {
@@ -11739,7 +11783,7 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
11739
11783
  };
11740
11784
  }
11741
11785
  });
11742
- const LewFormItem = /* @__PURE__ */ _export_sfc(_sfc_main$L, [["__scopeId", "data-v-5eb9eff7"]]);
11786
+ const LewFormItem = /* @__PURE__ */ _export_sfc(_sfc_main$L, [["__scopeId", "data-v-b025a12b"]]);
11743
11787
  const _sfc_main$K = /* @__PURE__ */ defineComponent({
11744
11788
  __name: "LewForm",
11745
11789
  props: formProps,
@@ -11771,13 +11815,14 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
11771
11815
  };
11772
11816
  const setForm = (value = {}) => {
11773
11817
  componentOptions.forEach((item) => {
11774
- var _a;
11818
+ var _a, _b;
11775
11819
  let v = retrieveNestedFieldValue(value, item.field);
11776
11820
  if (value !== void 0 && item.field) {
11777
11821
  if (item.inputFormat) {
11778
11822
  v = item.inputFormat({ item, value: v });
11779
11823
  }
11780
- (_a = formItemRefMap.value[item.field]) == null ? void 0 : _a.setError("");
11824
+ (_a = formItemRefMap.value[item.field]) == null ? void 0 : _a.setIgnoreValidate(true);
11825
+ (_b = formItemRefMap.value[item.field]) == null ? void 0 : _b.setError("");
11781
11826
  formMap.value[item.field] = v;
11782
11827
  }
11783
11828
  });
@@ -11866,7 +11911,7 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
11866
11911
  };
11867
11912
  }
11868
11913
  });
11869
- const LewForm = /* @__PURE__ */ _export_sfc(_sfc_main$K, [["__scopeId", "data-v-20503251"]]);
11914
+ const LewForm = /* @__PURE__ */ _export_sfc(_sfc_main$K, [["__scopeId", "data-v-04fce597"]]);
11870
11915
  const inputModel = {
11871
11916
  modelValue: {
11872
11917
  type: [String, Number],
@@ -21927,25 +21972,11 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
21927
21972
  const tdWidth = width / (totalColumnWidth.value - fixedWidth) * (state.scrollClientWidth - fixedWidth);
21928
21973
  return `${sizeStyle};width: ${tdWidth}px;${customStyle}`;
21929
21974
  });
21930
- const renderCell = ({
21931
- column,
21932
- row,
21933
- index: index2
21934
- }) => {
21935
- if (column.customRender) {
21936
- return column.customRender({ row, column, index: index2, text: row[column.field] });
21937
- }
21938
- return column.type === "text-trim" ? h(LewTextTrim, {
21939
- x: column.x,
21940
- style: "width: 100%",
21941
- text: showTextAndEmpty(row[column.field])
21942
- }) : showTextAndEmpty(row[column.field]);
21943
- };
21944
21975
  const showTextAndEmpty = (text) => {
21945
21976
  if (text === null || text === void 0 || text === "") {
21946
21977
  return "-";
21947
21978
  } else {
21948
- return isString$1(text) ? text : JSON.stringify(text);
21979
+ return isString$1(text) ? text : String(text);
21949
21980
  }
21950
21981
  };
21951
21982
  const readerHeaderTd = ({ column }) => {
@@ -22165,6 +22196,27 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
22165
22196
  });
22166
22197
  }
22167
22198
  );
22199
+ const renderCustomCell = ({
22200
+ row,
22201
+ column,
22202
+ index: index2
22203
+ }) => {
22204
+ try {
22205
+ const customContent = column.customRender({
22206
+ row,
22207
+ column,
22208
+ index: index2,
22209
+ text: row[column.field]
22210
+ });
22211
+ if (isVueComponent(customContent)) {
22212
+ return customContent;
22213
+ }
22214
+ return h("span", {}, String(customContent));
22215
+ } catch (e) {
22216
+ console.error("Error in customRender:", e);
22217
+ return h("span", {}, showTextAndEmpty(row[column.field]));
22218
+ }
22219
+ };
22168
22220
  return (_ctx, _cache) => {
22169
22221
  return openBlock(), createElementBlock("div", _hoisted_1$d, [
22170
22222
  createElementVNode("i", {
@@ -22223,9 +22275,10 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
22223
22275
  disabled: _ctx.dataSource.length === 0,
22224
22276
  certain: unref(hasPartialSelection) && !unref(state).isAllChecked,
22225
22277
  onChange: _cache[1] || (_cache[1] = ($event) => setAllRowsChecked($event))
22226
- }, null, 8, ["size", "modelValue", "disabled", "certain"])) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
22227
- createTextVNode("单选")
22228
- ], 64))
22278
+ }, null, 8, ["size", "modelValue", "disabled", "certain"])) : (openBlock(), createBlock(Icon, {
22279
+ key: 1,
22280
+ type: "square-mouse-pointer"
22281
+ }))
22229
22282
  ]),
22230
22283
  _: 1
22231
22284
  }, 8, ["style"])) : createCommentVNode("", true),
@@ -22337,12 +22390,22 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
22337
22390
  row,
22338
22391
  column,
22339
22392
  index: i
22340
- }) : (openBlock(), createBlock(renderCell, {
22341
- key: 1,
22342
- column,
22343
- row,
22344
- index: i
22345
- }, null, 8, ["column", "row", "index"]))
22393
+ }) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
22394
+ column.type === "text-trim" ? (openBlock(), createBlock(unref(LewFlex), {
22395
+ key: 0,
22396
+ x: column.x,
22397
+ style: { "width": "100%" }
22398
+ }, {
22399
+ default: withCtx(() => [
22400
+ createVNode(unref(LewTextTrim), {
22401
+ text: showTextAndEmpty(row[column.field])
22402
+ }, null, 8, ["text"])
22403
+ ]),
22404
+ _: 2
22405
+ }, 1032, ["x"])) : column.customRender ? (openBlock(), createBlock(resolveDynamicComponent(renderCustomCell({ row, column, index: i })), { key: 1 })) : (openBlock(), createElementBlock(Fragment, { key: 2 }, [
22406
+ createTextVNode(toDisplayString$1(showTextAndEmpty(row[column.field])), 1)
22407
+ ], 64))
22408
+ ], 64))
22346
22409
  ]),
22347
22410
  _: 2
22348
22411
  }, 1032, ["x", "y", "style"]);
@@ -22377,12 +22440,22 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
22377
22440
  row,
22378
22441
  column,
22379
22442
  index: i
22380
- }) : (openBlock(), createBlock(renderCell, {
22381
- key: 1,
22382
- column,
22383
- row,
22384
- index: i
22385
- }, null, 8, ["column", "row", "index"]))
22443
+ }) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
22444
+ column.type === "text-trim" ? (openBlock(), createBlock(unref(LewFlex), {
22445
+ key: 0,
22446
+ x: column.x,
22447
+ style: { "width": "100%" }
22448
+ }, {
22449
+ default: withCtx(() => [
22450
+ createVNode(unref(LewTextTrim), {
22451
+ text: showTextAndEmpty(row[column.field])
22452
+ }, null, 8, ["text"])
22453
+ ]),
22454
+ _: 2
22455
+ }, 1032, ["x"])) : column.customRender ? (openBlock(), createBlock(resolveDynamicComponent(renderCustomCell({ row, column, index: i })), { key: 1 })) : (openBlock(), createElementBlock(Fragment, { key: 2 }, [
22456
+ createTextVNode(toDisplayString$1(showTextAndEmpty(row[column.field])), 1)
22457
+ ], 64))
22458
+ ], 64))
22386
22459
  ]),
22387
22460
  _: 2
22388
22461
  }, 1032, ["x", "y", "style"]);
@@ -22417,12 +22490,22 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
22417
22490
  row,
22418
22491
  column,
22419
22492
  index: i
22420
- }) : (openBlock(), createBlock(renderCell, {
22421
- key: 1,
22422
- column,
22423
- row,
22424
- index: i
22425
- }, null, 8, ["column", "row", "index"]))
22493
+ }) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
22494
+ column.type === "text-trim" ? (openBlock(), createBlock(unref(LewFlex), {
22495
+ key: 0,
22496
+ x: column.x,
22497
+ style: { "width": "100%" }
22498
+ }, {
22499
+ default: withCtx(() => [
22500
+ createVNode(unref(LewTextTrim), {
22501
+ text: showTextAndEmpty(row[column.field])
22502
+ }, null, 8, ["text"])
22503
+ ]),
22504
+ _: 2
22505
+ }, 1032, ["x"])) : column.customRender ? (openBlock(), createBlock(resolveDynamicComponent(renderCustomCell({ row, column, index: i })), { key: 1 })) : (openBlock(), createElementBlock(Fragment, { key: 2 }, [
22506
+ createTextVNode(toDisplayString$1(showTextAndEmpty(row[column.field])), 1)
22507
+ ], 64))
22508
+ ], 64))
22426
22509
  ]),
22427
22510
  _: 2
22428
22511
  }, 1032, ["x", "y", "style"]);
@@ -32590,6 +32673,8 @@ const useI18n = () => {
32590
32673
  legacy: false,
32591
32674
  locale: currentLocale,
32592
32675
  fallbackLocale: currentLocale,
32676
+ fallbackWarn: false,
32677
+ missingWarn: false,
32593
32678
  messages: {
32594
32679
  en,
32595
32680
  zh,