@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:
|
|
5871
|
-
default:
|
|
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
|
|
5886
|
-
return ((
|
|
5885
|
+
var h;
|
|
5886
|
+
return ((h = i.value) == null ? void 0 : h.replace(/\r/g, `
|
|
5887
5887
|
`)) || "";
|
|
5888
5888
|
},
|
|
5889
|
-
set(
|
|
5890
|
-
i.value =
|
|
5889
|
+
set(h) {
|
|
5890
|
+
i.value = h;
|
|
5891
5891
|
}
|
|
5892
|
-
})
|
|
5892
|
+
});
|
|
5893
|
+
hn(
|
|
5893
5894
|
() => typeof n.rows == "number" ? {
|
|
5894
5895
|
minRows: n.rows,
|
|
5895
5896
|
maxRows: n.rows
|
|
5896
5897
|
} : n.rows
|
|
5897
|
-
)
|
|
5898
|
-
|
|
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(...
|
|
5903
|
-
var
|
|
5904
|
-
(
|
|
5904
|
+
focus(...h) {
|
|
5905
|
+
var u;
|
|
5906
|
+
(u = a.value) == null || u.focus(...h);
|
|
5905
5907
|
},
|
|
5906
|
-
blur(...
|
|
5907
|
-
var
|
|
5908
|
-
(
|
|
5908
|
+
blur(...h) {
|
|
5909
|
+
var u;
|
|
5910
|
+
(u = a.value) == null || u.blur(...h);
|
|
5909
5911
|
},
|
|
5910
5912
|
ins: a
|
|
5911
|
-
}), (
|
|
5913
|
+
}), (h, u) => (ke(), rn(we(_1), {
|
|
5912
5914
|
ref_key: "textareaRef",
|
|
5913
5915
|
ref: a,
|
|
5914
5916
|
modelValue: c.value,
|
|
5915
|
-
"onUpdate:modelValue":
|
|
5916
|
-
placeholder:
|
|
5917
|
-
"allow-clear":
|
|
5918
|
-
"
|
|
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(
|
|
5921
|
-
name:
|
|
5922
|
-
fn: $e((
|
|
5923
|
-
Je(
|
|
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", "
|
|
5931
|
+
]), 1032, ["modelValue", "placeholder", "allow-clear", "textarea-attrs"]));
|
|
5927
5932
|
}
|
|
5928
5933
|
}), J1 = {
|
|
5929
5934
|
defaultData: {
|