@antdv-next1/pro-field 1.0.14 → 1.0.15

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.
@@ -14,7 +14,7 @@ type ProFieldProps = RenderProps & {
14
14
  };
15
15
  declare const _ProField: _$vue.DefineSetupFnComponent<ProFieldProps, {}, CustomSlotsType<{
16
16
  default?: () => VueNode$1;
17
- }>, Omit<ProFieldFCRenderProps, "placeholder" | "text"> & ProRenderFieldPropsType<any> & {
17
+ }>, Omit<ProFieldFCRenderProps, "text" | "placeholder"> & ProRenderFieldPropsType<any> & {
18
18
  id?: string;
19
19
  request?: _$_antdv_next1_pro_utils0.ProFieldRequestData;
20
20
  emptyText?: VueNode$1;
@@ -8,7 +8,7 @@ import { CustomSlotsType, VueNode as VueNode$1 } from "@v-c/util/dist/type";
8
8
  //#region src/ProPureField.d.ts
9
9
  declare const ProPureField: _$vue.DefineSetupFnComponent<ProFieldProps, {}, CustomSlotsType<{
10
10
  default?: () => VueNode$1;
11
- }>, Omit<ProFieldFCRenderProps, "placeholder" | "text"> & ProRenderFieldPropsType<any> & {
11
+ }>, Omit<ProFieldFCRenderProps, "text" | "placeholder"> & ProRenderFieldPropsType<any> & {
12
12
  id?: string;
13
13
  request?: _$_antdv_next1_pro_utils0.ProFieldRequestData;
14
14
  emptyText?: VueNode$1;
@@ -35,6 +35,6 @@ declare const FieldCascader: _$vue.DefineSetupFnComponent<FieldCascaderProps, {}
35
35
  variant?: "outlined" | "borderless" | "filled";
36
36
  } & {
37
37
  id?: string;
38
- } & Omit<FieldSelectProps, "text" | "fieldProps" | "light" | "label" | "variant" | "id" | "labelTrigger" | "lightLabel" | "plain"> & {}, _$vue.PublicProps>;
38
+ } & Omit<FieldSelectProps, "variant" | "fieldProps" | "id" | "label" | "labelTrigger" | "lightLabel" | "text" | "light" | "plain"> & {}, _$vue.PublicProps>;
39
39
  //#endregion
40
40
  export { FieldCascaderProps, FieldCascaderRef, FieldCascader as default };
@@ -32,6 +32,6 @@ declare const FieldCheckbox: _$vue.DefineSetupFnComponent<FieldCheckBoxProps, {}
32
32
  options?: CheckboxGroupProps["options"];
33
33
  } & {
34
34
  id?: string;
35
- } & Omit<FieldSelectProps, "fieldProps" | "light" | "label" | "variant" | "id" | "labelTrigger" | "lightLabel" | "plain"> & {}, _$vue.PublicProps>;
35
+ } & Omit<FieldSelectProps, "variant" | "fieldProps" | "id" | "label" | "labelTrigger" | "lightLabel" | "light" | "plain"> & {}, _$vue.PublicProps>;
36
36
  //#endregion
37
37
  export { FieldCheckBoxProps, FieldCheckboxRef, FieldCheckbox as default };
@@ -13,7 +13,7 @@ const FieldCheckbox = /* @__PURE__ */ defineComponent((props, { expose, attrs })
13
13
  const formItemInputContext = useFormItemInputContext();
14
14
  const layoutClassName = computed(() => config.value.getPrefixCls("pro-field-checkbox"));
15
15
  const [loading, options, fetchData] = useFieldFetchData(props);
16
- const { hashId } = useStyle$1(layoutClassName);
16
+ const { wrapSSR, hashId } = useStyle$1(layoutClassName);
17
17
  const { token } = useToken();
18
18
  const checkBoxRef = shallowRef(null);
19
19
  expose({ fetchData: (keyWord) => fetchData(keyWord) });
@@ -40,13 +40,13 @@ const FieldCheckbox = /* @__PURE__ */ defineComponent((props, { expose, attrs })
40
40
  } }, [dom]);
41
41
  }
42
42
  if (mode === "edit") {
43
- const dom = createVNode(CheckboxGroup, mergeProps({ "ref": checkBoxRef }, omit(attrs, ["lightProps"]), rest.fieldProps, {
43
+ const dom = wrapSSR(createVNode(CheckboxGroup, mergeProps({ "ref": checkBoxRef }, omit(attrs, ["lightProps"]), rest.fieldProps, {
44
44
  "class": classNames(rest.fieldProps?.class, hashId.value, `${layoutClassName.value}-${layout}`, {
45
45
  [`${layoutClassName.value}-error`]: formItemInputContext.value.status === "error",
46
46
  [`${layoutClassName.value}-warning`]: formItemInputContext.value.status === "warning"
47
47
  }),
48
48
  "options": options.value
49
- }), null);
49
+ }), null));
50
50
  if (formItemRender) return createVNode(Fragment, null, [formItemRender(rest.text, {
51
51
  mode,
52
52
  ...rest,
@@ -16,15 +16,15 @@ type FieldCodeProps = ProFieldFC<{
16
16
  } | HTMLAttributes>;
17
17
  declare const FieldCode: _$vue.DefineSetupFnComponent<FieldCodeProps, {}, CustomSlotsType<{
18
18
  default?: () => VueNode;
19
- }>, _$_antdv_next1_pro_provider0.BaseProFieldFC<HTMLAttributes | (InputProps & {
19
+ }>, _$_antdv_next1_pro_provider0.BaseProFieldFC<(InputProps & {
20
20
  style?: CSSProperties;
21
21
  }) | (TextAreaProps & {
22
22
  style?: CSSProperties;
23
- })> & _$_antdv_next1_pro_provider0.ProRenderFieldPropsType<HTMLAttributes | (InputProps & {
23
+ }) | HTMLAttributes> & _$_antdv_next1_pro_provider0.ProRenderFieldPropsType<(InputProps & {
24
24
  style?: CSSProperties;
25
25
  }) | (TextAreaProps & {
26
26
  style?: CSSProperties;
27
- })> & {
27
+ }) | HTMLAttributes> & {
28
28
  text: string;
29
29
  language?: "json" | "text";
30
30
  } & {
@@ -6,11 +6,11 @@ import { useConfig } from "antdv-next/dist/config-provider/context";
6
6
  const FieldIndexColumn = /* @__PURE__ */ defineComponent((props) => {
7
7
  const config = useConfig();
8
8
  const prefixCls = computed(() => config.value.getPrefixCls("pro-field-index-column"));
9
- const { hashId } = useStyle(prefixCls);
10
- return () => createVNode("div", { "class": classNames(prefixCls.value, hashId.value, {
9
+ const { wrapSSR, hashId } = useStyle(prefixCls);
10
+ return () => wrapSSR(createVNode("div", { "class": classNames(prefixCls.value, hashId.value, {
11
11
  [`${prefixCls.value}-border`]: props.border,
12
12
  "top-three": Number(props.children) > 3
13
- }) }, [props.children]);
13
+ }) }, [props.children]));
14
14
  }, {
15
15
  props: {
16
16
  border: {
@@ -31,6 +31,6 @@ declare const FieldRadio: _$vue.DefineSetupFnComponent<FieldRadioProps, {}, Cust
31
31
  radioType?: RadioGroupProps["optionType"];
32
32
  } & {
33
33
  id?: string;
34
- } & Omit<FieldSelectProps, "fieldProps" | "light" | "label" | "variant" | "id" | "labelTrigger" | "lightLabel" | "plain"> & {}, _$vue.PublicProps>;
34
+ } & Omit<FieldSelectProps, "variant" | "fieldProps" | "id" | "label" | "labelTrigger" | "lightLabel" | "light" | "plain"> & {}, _$vue.PublicProps>;
35
35
  //#endregion
36
36
  export { FieldRadioProps, FieldRadio as default };
@@ -13,7 +13,7 @@ const FieldRadio = /* @__PURE__ */ defineComponent((props, { expose, attrs }) =>
13
13
  const layoutClassName = computed(() => config.value.getPrefixCls("pro-field-radio"));
14
14
  const [loading, options, fetchData] = useFieldFetchData(props);
15
15
  const radioRef = ref();
16
- const { hashId } = useStyle(layoutClassName);
16
+ const { wrapSSR, hashId } = useStyle(layoutClassName);
17
17
  expose({ fetchData: (keyWord) => fetchData(keyWord) });
18
18
  return () => {
19
19
  const { mode, render, formItemRender, options: propsOptions, request, params, debounceTime, defaultKeyWords, radioType, ...rest } = props;
@@ -33,13 +33,13 @@ const FieldRadio = /* @__PURE__ */ defineComponent((props, { expose, attrs }) =>
33
33
  return dom;
34
34
  }
35
35
  if (props.mode === "edit") {
36
- const dom = createVNode(RadioGroup, mergeProps({ "ref": radioRef }, attrs, { "optionType": radioType }, rest.fieldProps, {
36
+ const dom = wrapSSR(createVNode(RadioGroup, mergeProps({ "ref": radioRef }, attrs, { "optionType": radioType }, rest.fieldProps, {
37
37
  "class": classNames(rest.fieldProps?.class, {
38
38
  [`${layoutClassName.value}-error`]: formItemInputContext.value.status === "error",
39
39
  [`${layoutClassName.value}-warning`]: formItemInputContext.value.status === "warning"
40
40
  }, hashId.value, `${layoutClassName.value}-${props.fieldProps?.layout || "horizontal"}`),
41
41
  "options": options.value
42
- }), null);
42
+ }), null));
43
43
  if (formItemRender) return createVNode(Fragment, null, [formItemRender(rest.text, {
44
44
  mode,
45
45
  ...rest,
@@ -31,6 +31,6 @@ declare const FieldSegmented: _$vue.DefineSetupFnComponent<FieldSegmentedProps,
31
31
  emptyText?: VueNode$1;
32
32
  } & {
33
33
  id?: string;
34
- } & Omit<FieldSelectProps, "fieldProps" | "light" | "label" | "variant" | "id" | "labelTrigger" | "lightLabel" | "plain"> & {}, _$vue.PublicProps>;
34
+ } & Omit<FieldSelectProps, "variant" | "fieldProps" | "id" | "label" | "labelTrigger" | "lightLabel" | "light" | "plain"> & {}, _$vue.PublicProps>;
35
35
  //#endregion
36
36
  export { FieldSegmentedProps, FieldSegmented as default };
@@ -1,13 +1,12 @@
1
1
  import { useStyle } from "./style/index.js";
2
2
  import { computed, createVNode, defineComponent, h } from "vue";
3
- import { classNames } from "@v-c/util";
4
3
  import { useConfig } from "antdv-next/dist/config-provider/context";
5
4
  //#region src/components/Select/Highlight/index.tsx
6
5
  const Highlight = /* @__PURE__ */ defineComponent((props) => {
7
6
  const config = useConfig();
8
7
  const lightCls = computed(() => config.value.getPrefixCls("pro-select-item-option-content-light"));
9
8
  const optionCls = computed(() => config.value.getPrefixCls("pro-select-item-option-content"));
10
- const { hashId } = useStyle(lightCls, optionCls);
9
+ const { wrapSSR } = useStyle(lightCls, optionCls);
11
10
  const matchKeywordsRE = computed(() => new RegExp(props.words?.map((word) => word.replace(/[-[\]/{}()*+?.\\^$|]/g, "\\$&")).join("|"), "gi"));
12
11
  const elements = computed(() => {
13
12
  let matchText = props.label;
@@ -25,10 +24,10 @@ const Highlight = /* @__PURE__ */ defineComponent((props) => {
25
24
  }
26
25
  return vnodes;
27
26
  });
28
- return () => createVNode("div", {
27
+ return () => wrapSSR(createVNode("div", {
29
28
  "title": props.label,
30
- "class": classNames(optionCls.value, hashId.value)
31
- }, [elements.value]);
29
+ "class": optionCls.value
30
+ }, [elements.value]));
32
31
  }, {
33
32
  props: {
34
33
  label: {
@@ -23,7 +23,7 @@ const LightSelect = /* @__PURE__ */ defineComponent((props, { attrs }) => {
23
23
  const baseClassName = computed(() => `${prefixCls.value}-field-select-light-select`);
24
24
  const [open, setOpen] = useState(props.open || false);
25
25
  const [keyword, setKeyword] = useState("");
26
- const { hashId } = useStyle(baseClassName);
26
+ const { wrapSSR, hashId } = useStyle(baseClassName);
27
27
  const fieldNames = computed(() => ({
28
28
  label: props.fieldNames?.label || "label",
29
29
  value: props.fieldNames?.value || "value"
@@ -46,7 +46,7 @@ const LightSelect = /* @__PURE__ */ defineComponent((props, { attrs }) => {
46
46
  return () => {
47
47
  const { label, prefixCls: customizePrefixCls, onChange, value, mode, defaultValue, labelVariant, size, showSearch, "onUpdate:value": onUpdateValue, disabled, options, allowClear, labelInValue, fieldNames = {}, lightLabel, labelTrigger, optionLabelProp = "", valueMaxLength = 41, fetchDataOnSearch = false, fetchData, variant = "outlined", searchPlaceholder, ...restProps } = props;
48
48
  const { placeholder = label } = props;
49
- return createVNode("div", {
49
+ return wrapSSR(createVNode("div", {
50
50
  "class": classNames(baseClassName.value, attrs.class, hashId.value, { [`${baseClassName.value}-searchable`]: showSearch }, `${baseClassName.value}-container-${restProps.placement || "bottomLeft"}`),
51
51
  "onClick": (e) => {
52
52
  if (disabled) return;
@@ -122,7 +122,7 @@ const LightSelect = /* @__PURE__ */ defineComponent((props, { attrs }) => {
122
122
  },
123
123
  "ref": lightLabel,
124
124
  "valueMaxLength": valueMaxLength
125
- }, null)]);
125
+ }, null)]));
126
126
  };
127
127
  }, {
128
128
  props: {
@@ -6,10 +6,10 @@ import { useConfig } from "antdv-next/dist/config-provider/context";
6
6
  const FieldTextAreaReadonly = /* @__PURE__ */ defineComponent((props) => {
7
7
  const config = useConfig();
8
8
  const readonlyClassName = computed(() => config.value.getPrefixCls("pro-field-readonly-textarea"));
9
- const { hashId } = useStyle(readonlyClassName);
9
+ const { wrapSSR, hashId } = useStyle(readonlyClassName);
10
10
  return () => {
11
11
  const { text } = props;
12
- return createVNode("span", { "class": classNames(hashId.value, readonlyClassName.value) }, [text ?? "-"]);
12
+ return wrapSSR(createVNode("span", { "class": classNames(hashId.value, readonlyClassName.value) }, [text ?? "-"]));
13
13
  };
14
14
  }, {
15
15
  name: "FieldTextAreaReadonly",
@@ -40,6 +40,6 @@ declare const FieldTreeSelect: _$vue.DefineSetupFnComponent<FieldTreeSelectProps
40
40
  fetchDataOnSearch?: boolean;
41
41
  } & {
42
42
  id?: string;
43
- } & TreeSelectProps<any, _$_v_c_tree_select0.DataNode> & Omit<FieldSelectProps, "fieldProps" | "light" | "label" | "variant" | "id" | "labelTrigger" | "lightLabel" | "plain"> & {}, _$vue.PublicProps>;
43
+ } & TreeSelectProps<any, _$_v_c_tree_select0.DataNode> & Omit<FieldSelectProps, "variant" | "fieldProps" | "id" | "label" | "labelTrigger" | "lightLabel" | "light" | "plain"> & {}, _$vue.PublicProps>;
44
44
  //#endregion
45
45
  export { FieldTreeSelectProps, FieldTreeSelect as default };
@@ -62576,7 +62576,7 @@ function BP(e, t) {
62576
62576
  //#endregion
62577
62577
  //#region src/components/Select/Highlight/index.tsx
62578
62578
  var VP = /* @__PURE__ */ l((e) => {
62579
- let t = _t(), n = o(() => t.value.getPrefixCls("pro-select-item-option-content-light")), r = o(() => t.value.getPrefixCls("pro-select-item-option-content")), { hashId: i } = BP(n, r), a = o(() => new RegExp(e.words?.map((e) => e.replace(/[-[\]/{}()*+?.\\^$|]/g, "\\$&")).join("|"), "gi")), s = o(() => {
62579
+ let t = _t(), n = o(() => t.value.getPrefixCls("pro-select-item-option-content-light")), r = o(() => t.value.getPrefixCls("pro-select-item-option-content")), { wrapSSR: i } = BP(n, r), a = o(() => new RegExp(e.words?.map((e) => e.replace(/[-[\]/{}()*+?.\\^$|]/g, "\\$&")).join("|"), "gi")), s = o(() => {
62580
62580
  let t = e.label, r = [];
62581
62581
  for (; t?.length;) {
62582
62582
  let e = a.value.exec(t);
@@ -62589,10 +62589,10 @@ var VP = /* @__PURE__ */ l((e) => {
62589
62589
  }
62590
62590
  return r;
62591
62591
  });
62592
- return () => c("div", {
62592
+ return () => i(c("div", {
62593
62593
  title: e.label,
62594
- class: X(r.value, i.value)
62595
- }, [s.value]);
62594
+ class: r.value
62595
+ }, [s.value]));
62596
62596
  }, {
62597
62597
  props: {
62598
62598
  label: {
@@ -62632,53 +62632,53 @@ function WP(e, t) {
62632
62632
  return typeof t == "object" ? e[t?.value] || t.label : e[t] || t;
62633
62633
  }
62634
62634
  var GP = /* @__PURE__ */ l((e, { attrs: n }) => {
62635
- let r = _t(), i = o(() => r.value.getPrefixCls("pro")), a = o(() => `${i.value}-field-select-light-select`), [s, l] = ye(e.open || !1), [u, d] = ye(""), { hashId: f } = UP(a), p = o(() => ({
62635
+ let r = _t(), i = o(() => r.value.getPrefixCls("pro")), a = o(() => `${i.value}-field-select-light-select`), [s, l] = ye(e.open || !1), [u, d] = ye(""), { wrapSSR: f, hashId: p } = UP(a), m = o(() => ({
62636
62636
  label: e.fieldNames?.label || "label",
62637
62637
  value: e.fieldNames?.value || "value"
62638
- })), m = ge(() => {
62638
+ })), h = ge(() => {
62639
62639
  let t = {};
62640
62640
  return e.options?.forEach((n) => {
62641
- let r = n[e.optionLabelProp || ""] || n[p.value.label], i = n[p.value.value];
62641
+ let r = n[e.optionLabelProp || ""] || n[m.value.label], i = n[m.value.value];
62642
62642
  t[i] = r || i;
62643
62643
  }), t;
62644
62644
  }, [
62645
- () => p.value.label,
62645
+ () => m.value.label,
62646
62646
  () => e.options,
62647
- () => p.value.value,
62647
+ () => m.value.value,
62648
62648
  () => e.optionLabelProp
62649
- ]), h = o(() => Array.isArray(e.value) ? e.value.map((e) => WP(m.value, e)) : WP(m.value, e.value));
62649
+ ]), g = o(() => Array.isArray(e.value) ? e.value.map((e) => WP(h.value, e)) : WP(h.value, e.value));
62650
62650
  return () => {
62651
- let { label: r, prefixCls: i, onChange: o, value: p, mode: m, defaultValue: g, labelVariant: _, size: y, showSearch: b, "onUpdate:value": x, disabled: S, options: C, allowClear: w, labelInValue: T, fieldNames: E = {}, lightLabel: D, labelTrigger: O, optionLabelProp: k = "", valueMaxLength: A = 41, fetchDataOnSearch: j = !1, fetchData: M, variant: N = "outlined", searchPlaceholder: P, ...F } = e, { placeholder: I = r } = e;
62652
- return c("div", {
62653
- class: X(a.value, n.class, f.value, { [`${a.value}-searchable`]: b }, `${a.value}-container-${F.placement || "bottomLeft"}`),
62651
+ let { label: r, prefixCls: i, onChange: o, value: m, mode: h, defaultValue: _, labelVariant: y, size: b, showSearch: x, "onUpdate:value": S, disabled: C, options: w, allowClear: T, labelInValue: E, fieldNames: D = {}, lightLabel: O, labelTrigger: k, optionLabelProp: A = "", valueMaxLength: j = 41, fetchDataOnSearch: M = !1, fetchData: N, variant: P = "outlined", searchPlaceholder: F, ...I } = e, { placeholder: L = r } = e;
62652
+ return f(c("div", {
62653
+ class: X(a.value, n.class, p.value, { [`${a.value}-searchable`]: x }, `${a.value}-container-${I.placement || "bottomLeft"}`),
62654
62654
  onClick: (e) => {
62655
- S || D?.value?.labelRef.value?.contains(e.target) || l(!0);
62655
+ C || O?.value?.labelRef.value?.contains(e.target) || l(!0);
62656
62656
  }
62657
- }, [c(By, v(F, {
62658
- allowClear: w,
62659
- value: p,
62660
- mode: m,
62661
- labelInValue: T,
62662
- size: y,
62663
- disabled: S,
62664
- variant: N,
62665
- "onUpdate:value": x,
62657
+ }, [c(By, v(I, {
62658
+ allowClear: T,
62659
+ value: m,
62660
+ mode: h,
62661
+ labelInValue: E,
62662
+ size: b,
62663
+ disabled: C,
62664
+ variant: P,
62665
+ "onUpdate:value": S,
62666
62666
  onChange: (e, t) => {
62667
- o?.(e, t), m !== "multiple" && l(!1);
62667
+ o?.(e, t), h !== "multiple" && l(!1);
62668
62668
  },
62669
- showSearch: b && typeof b != "boolean" ? {
62670
- ...b,
62669
+ showSearch: x && typeof x != "boolean" ? {
62670
+ ...x,
62671
62671
  onSearch: (e) => {
62672
- j && M && (M(e), b?.onSearch?.(e));
62672
+ M && N && (N(e), x?.onSearch?.(e));
62673
62673
  }
62674
- } : b,
62675
- popupRender: (e) => c(t, null, [b && c("div", { style: { margin: "4px 8px" } }, [c(kj, {
62674
+ } : x,
62675
+ popupRender: (e) => c(t, null, [x && c("div", { style: { margin: "4px 8px" } }, [c(kj, {
62676
62676
  value: u.value,
62677
- allowClear: !!w,
62677
+ allowClear: !!T,
62678
62678
  onChange: (e) => {
62679
- d(e.target.value), j && M && M(e.target.value), b && typeof b != "boolean" && b.onSearch?.(e.target.value);
62679
+ d(e.target.value), M && N && N(e.target.value), x && typeof x != "boolean" && x.onSearch?.(e.target.value);
62680
62680
  },
62681
- placeholder: P,
62681
+ placeholder: F,
62682
62682
  onKeydown: (e) => {
62683
62683
  if (e.key === "Backspace") {
62684
62684
  e.stopPropagation();
@@ -62691,27 +62691,27 @@ var GP = /* @__PURE__ */ l((e, { attrs: n }) => {
62691
62691
  }, null)]), e]),
62692
62692
  open: s.value,
62693
62693
  onOpenChange: (e) => {
62694
- e || d(""), O || l(e), F?.onDropdownVisibleChange?.(e);
62694
+ e || d(""), k || l(e), I?.onDropdownVisibleChange?.(e);
62695
62695
  },
62696
62696
  prefixCls: i,
62697
- options: typeof b != "boolean" && b?.onSearch || !u.value ? C : C?.filter((e) => typeof b != "boolean" && b?.optionFilterProp ? Wm(e[b.optionFilterProp]).join("").toLowerCase().includes(u.value) : String(e[E.label || "label"]).toLowerCase()?.includes(u.value?.toLowerCase()) || e[E.value || "value"].toString()?.toLowerCase()?.includes(u.value?.toLowerCase()))
62697
+ options: typeof x != "boolean" && x?.onSearch || !u.value ? w : w?.filter((e) => typeof x != "boolean" && x?.optionFilterProp ? Wm(e[x.optionFilterProp]).join("").toLowerCase().includes(u.value) : String(e[D.label || "label"]).toLowerCase()?.includes(u.value?.toLowerCase()) || e[D.value || "value"].toString()?.toLowerCase()?.includes(u.value?.toLowerCase()))
62698
62698
  }), null), c(re, {
62699
62699
  ellipsis: !0,
62700
62700
  label: r,
62701
- placeholder: I,
62702
- disabled: S,
62703
- variant: _,
62704
- allowClear: !!w,
62705
- value: h.value || p?.label || p,
62701
+ placeholder: L,
62702
+ disabled: C,
62703
+ variant: y,
62704
+ allowClear: !!T,
62705
+ value: g.value || m?.label || m,
62706
62706
  onClear: () => {
62707
- o?.(void 0, void 0), x?.(void 0);
62707
+ o?.(void 0, void 0), S?.(void 0);
62708
62708
  },
62709
62709
  onClick: () => {
62710
- S || l(!s.value);
62710
+ C || l(!s.value);
62711
62711
  },
62712
- ref: D,
62713
- valueMaxLength: A
62714
- }, null)]);
62712
+ ref: O,
62713
+ valueMaxLength: j
62714
+ }, null)]));
62715
62715
  };
62716
62716
  }, {
62717
62717
  props: {
@@ -63799,36 +63799,36 @@ function $P(e) {
63799
63799
  //#endregion
63800
63800
  //#region src/components/Checkbox/index.tsx
63801
63801
  var eF = /* @__PURE__ */ l((e, { expose: n, attrs: r }) => {
63802
- let i = _t(), a = qg(), s = o(() => i.value.getPrefixCls("pro-field-checkbox")), [l, u, d] = YP(e), { hashId: f } = $P(s), { token: p } = ne(), m = M(null);
63802
+ let i = _t(), a = qg(), s = o(() => i.value.getPrefixCls("pro-field-checkbox")), [l, u, d] = YP(e), { wrapSSR: f, hashId: p } = $P(s), { token: m } = ne(), h = M(null);
63803
63803
  return n({ fetchData: (e) => d(e) }), () => {
63804
- let { mode: n, render: i, formItemRender: o, options: d, request: h, params: g, debounceTime: _, defaultKeyWords: y, layout: b = "horizontal", ...x } = e;
63804
+ let { mode: n, render: i, formItemRender: o, options: d, request: g, params: _, debounceTime: y, defaultKeyWords: b, layout: x = "horizontal", ...S } = e;
63805
63805
  if (l.value) return c($j, { size: "small" }, null);
63806
63806
  if (n === "read") {
63807
63807
  let e = u.value?.length ? u.value?.reduce((e, t) => ({
63808
63808
  ...e,
63809
63809
  [t.value ?? ""]: t.label
63810
- }), {}) : void 0, r = fe(x.text, le(x.valueEnum || e));
63811
- return i ? c(t, null, [i(x.text, {
63810
+ }), {}) : void 0, r = fe(S.text, le(S.valueEnum || e));
63811
+ return i ? c(t, null, [i(S.text, {
63812
63812
  mode: n,
63813
- ...x
63813
+ ...S
63814
63814
  }, c(t, null, [r])) ?? null]) : c("div", { style: {
63815
63815
  display: "flex",
63816
63816
  flexWrap: "wrap",
63817
63817
  alignItems: "center",
63818
- gap: `${p.value.marginSM}px`
63818
+ gap: `${m.value.marginSM}px`
63819
63819
  } }, [r]);
63820
63820
  }
63821
63821
  if (n === "edit") {
63822
- let e = c(aE, v({ ref: m }, ke(r, ["lightProps"]), x.fieldProps, {
63823
- class: X(x.fieldProps?.class, f.value, `${s.value}-${b}`, {
63822
+ let e = f(c(aE, v({ ref: h }, ke(r, ["lightProps"]), S.fieldProps, {
63823
+ class: X(S.fieldProps?.class, p.value, `${s.value}-${x}`, {
63824
63824
  [`${s.value}-error`]: a.value.status === "error",
63825
63825
  [`${s.value}-warning`]: a.value.status === "warning"
63826
63826
  }),
63827
63827
  options: u.value
63828
- }), null);
63829
- return o ? c(t, null, [o(x.text, {
63828
+ }), null));
63829
+ return o ? c(t, null, [o(S.text, {
63830
63830
  mode: n,
63831
- ...x,
63831
+ ...S,
63832
63832
  options: u.value,
63833
63833
  loading: l.value
63834
63834
  }, e) ?? null]) : e;
@@ -65112,11 +65112,11 @@ function hF(e) {
65112
65112
  //#endregion
65113
65113
  //#region src/components/IndexColumn/index.tsx
65114
65114
  var gF = /* @__PURE__ */ l((e) => {
65115
- let t = _t(), n = o(() => t.value.getPrefixCls("pro-field-index-column")), { hashId: r } = hF(n);
65116
- return () => c("div", { class: X(n.value, r.value, {
65115
+ let t = _t(), n = o(() => t.value.getPrefixCls("pro-field-index-column")), { wrapSSR: r, hashId: i } = hF(n);
65116
+ return () => r(c("div", { class: X(n.value, i.value, {
65117
65117
  [`${n.value}-border`]: e.border,
65118
65118
  "top-three": Number(e.children) > 3
65119
- }) }, [e.children]);
65119
+ }) }, [e.children]));
65120
65120
  }, {
65121
65121
  props: {
65122
65122
  border: {
@@ -66190,31 +66190,31 @@ function PF(e) {
66190
66190
  //#endregion
66191
66191
  //#region src/components/Radio/index.tsx
66192
66192
  var FF = /* @__PURE__ */ l((e, { expose: n, attrs: r }) => {
66193
- let i = _t(), a = qg(), s = o(() => i.value.getPrefixCls("pro-field-radio")), [l, u, d] = YP(e), f = k(), { hashId: p } = PF(s);
66193
+ let i = _t(), a = qg(), s = o(() => i.value.getPrefixCls("pro-field-radio")), [l, u, d] = YP(e), f = k(), { wrapSSR: p, hashId: m } = PF(s);
66194
66194
  return n({ fetchData: (e) => d(e) }), () => {
66195
- let { mode: n, render: i, formItemRender: o, options: d, request: m, params: h, debounceTime: g, defaultKeyWords: _, radioType: y, ...b } = e;
66195
+ let { mode: n, render: i, formItemRender: o, options: d, request: h, params: g, debounceTime: _, defaultKeyWords: y, radioType: b, ...x } = e;
66196
66196
  if (l.value) return c($j, { size: "small" }, null);
66197
66197
  if (n === "read") {
66198
66198
  let e = u.value?.length ? u.value?.reduce((e, t) => ({
66199
66199
  ...e,
66200
66200
  [t.value ?? ""]: t.label
66201
- }), {}) : void 0, r = c(t, null, [fe(b.text, le(b.valueEnum || e))]);
66202
- return i ? c(t, null, [i(b.text, {
66201
+ }), {}) : void 0, r = c(t, null, [fe(x.text, le(x.valueEnum || e))]);
66202
+ return i ? c(t, null, [i(x.text, {
66203
66203
  mode: n,
66204
- ...b
66204
+ ...x
66205
66205
  }, r) ?? null]) : r;
66206
66206
  }
66207
66207
  if (e.mode === "edit") {
66208
- let i = c(Zb, v({ ref: f }, r, { optionType: y }, b.fieldProps, {
66209
- class: X(b.fieldProps?.class, {
66208
+ let i = p(c(Zb, v({ ref: f }, r, { optionType: b }, x.fieldProps, {
66209
+ class: X(x.fieldProps?.class, {
66210
66210
  [`${s.value}-error`]: a.value.status === "error",
66211
66211
  [`${s.value}-warning`]: a.value.status === "warning"
66212
- }, p.value, `${s.value}-${e.fieldProps?.layout || "horizontal"}`),
66212
+ }, m.value, `${s.value}-${e.fieldProps?.layout || "horizontal"}`),
66213
66213
  options: u.value
66214
- }), null);
66215
- return o ? c(t, null, [o(b.text, {
66214
+ }), null));
66215
+ return o ? c(t, null, [o(x.text, {
66216
66216
  mode: n,
66217
- ...b,
66217
+ ...x,
66218
66218
  options: u.value,
66219
66219
  loading: l.value
66220
66220
  }, i) ?? null]) : i;
@@ -67308,10 +67308,10 @@ function KF(e) {
67308
67308
  //#endregion
67309
67309
  //#region src/components/TextArea/readonly/index.tsx
67310
67310
  var qF = /* @__PURE__ */ l((e) => {
67311
- let t = _t(), n = o(() => t.value.getPrefixCls("pro-field-readonly-textarea")), { hashId: r } = KF(n);
67311
+ let t = _t(), n = o(() => t.value.getPrefixCls("pro-field-readonly-textarea")), { wrapSSR: r, hashId: i } = KF(n);
67312
67312
  return () => {
67313
67313
  let { text: t } = e;
67314
- return c("span", { class: X(r.value, n.value) }, [t ?? "-"]);
67314
+ return r(c("span", { class: X(i.value, n.value) }, [t ?? "-"]));
67315
67315
  };
67316
67316
  }, {
67317
67317
  name: "FieldTextAreaReadonly",
@@ -68508,10 +68508,7 @@ var tI = /* @__PURE__ */ l((e, { expose: t }) => {
68508
68508
  type: Function,
68509
68509
  required: !1
68510
68510
  },
68511
- fieldProps: {
68512
- type: Object,
68513
- required: !1
68514
- },
68511
+ fieldProps: { required: !1 },
68515
68512
  light: {
68516
68513
  type: Boolean,
68517
68514
  required: !1,
@@ -68720,7 +68717,10 @@ var iI = /* @__PURE__ */ l((e, { attrs: t, expose: n }) => {
68720
68717
  type: Function,
68721
68718
  required: !1
68722
68719
  },
68723
- fieldProps: { required: !1 },
68720
+ fieldProps: {
68721
+ type: Object,
68722
+ required: !1
68723
+ },
68724
68724
  light: {
68725
68725
  type: Boolean,
68726
68726
  required: !1,