@flyto/farco 1.1.10 → 1.1.12

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.
package/dist/index.es.js CHANGED
@@ -5867,8 +5867,8 @@ const L1 = Cn({
5867
5867
  default: !0
5868
5868
  },
5869
5869
  rows: {
5870
- type: [Number, Object],
5871
- default: () => ({ minRows: 3, maxRows: 8 })
5870
+ type: Number,
5871
+ default: 2
5872
5872
  }
5873
5873
  }, q1 = /* @__PURE__ */ Cn({
5874
5874
  __name: "ftextarea",
@@ -5882,48 +5882,53 @@ const L1 = Cn({
5882
5882
  n.defaultValue && (i.value = n.defaultValue);
5883
5883
  const c = hn({
5884
5884
  get: () => {
5885
- var u;
5886
- return ((u = i.value) == null ? void 0 : u.replace(/\r/g, `
5885
+ var h;
5886
+ return ((h = i.value) == null ? void 0 : h.replace(/\r/g, `
5887
5887
  `)) || "";
5888
5888
  },
5889
- set(u) {
5890
- i.value = u;
5889
+ set(h) {
5890
+ i.value = h;
5891
5891
  }
5892
- }), s = hn(
5892
+ });
5893
+ hn(
5893
5894
  () => typeof n.rows == "number" ? {
5894
5895
  minRows: n.rows,
5895
5896
  maxRows: n.rows
5896
5897
  } : n.rows
5897
- ), f = Ft(ri, null), h = hn(
5898
- () => n.placeholder || `\u8BF7\u586B\u5199${((f == null ? void 0 : f.label) || "\u2026\u2026").replace(/[: | :]$/, "")}`
5898
+ );
5899
+ const s = Ft(ri, null), f = hn(
5900
+ () => n.placeholder || `\u8BF7\u586B\u5199${((s == null ? void 0 : s.label) || "\u2026\u2026").replace(/[: | :]$/, "")}`
5899
5901
  );
5900
5902
  return t({
5901
5903
  value: i,
5902
- focus(...u) {
5903
- var d;
5904
- (d = a.value) == null || d.focus(...u);
5904
+ focus(...h) {
5905
+ var u;
5906
+ (u = a.value) == null || u.focus(...h);
5905
5907
  },
5906
- blur(...u) {
5907
- var d;
5908
- (d = a.value) == null || d.blur(...u);
5908
+ blur(...h) {
5909
+ var u;
5910
+ (u = a.value) == null || u.blur(...h);
5909
5911
  },
5910
5912
  ins: a
5911
- }), (u, d) => (ke(), rn(we(_1), {
5913
+ }), (h, u) => (ke(), rn(we(_1), {
5912
5914
  ref_key: "textareaRef",
5913
5915
  ref: a,
5914
5916
  modelValue: c.value,
5915
- "onUpdate:modelValue": d[0] || (d[0] = (p) => c.value = p),
5916
- placeholder: h.value,
5917
- "allow-clear": u.allowClear,
5918
- "auto-size": s.value
5917
+ "onUpdate:modelValue": u[0] || (u[0] = (d) => c.value = d),
5918
+ placeholder: f.value,
5919
+ "allow-clear": h.allowClear,
5920
+ "textarea-attrs": {
5921
+ rows: n.rows,
5922
+ ...h.$attrs.textareaAttrs || {}
5923
+ }
5919
5924
  }, ut({ _: 2 }, [
5920
- Vn(u.$slots, (p, x) => ({
5921
- name: x,
5922
- fn: $e((v) => [
5923
- Je(u.$slots, x, St(kt(v)))
5925
+ Vn(h.$slots, (d, p) => ({
5926
+ name: p,
5927
+ fn: $e((x) => [
5928
+ Je(h.$slots, p, St(kt(x)))
5924
5929
  ])
5925
5930
  }))
5926
- ]), 1032, ["modelValue", "placeholder", "allow-clear", "auto-size"]));
5931
+ ]), 1032, ["modelValue", "placeholder", "allow-clear", "textarea-attrs"]));
5927
5932
  }
5928
5933
  }), J1 = {
5929
5934
  defaultData: {