@1337exp/taoui 5.11.1 → 5.12.0
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/CHANGELOG.md +6 -0
- package/dist/index.d.ts +17 -0
- package/dist/index.js +6 -2
- package/dist/index.js.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +1 -1
- package/skills/taoui/references/components.md +1 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 5.12.0
|
|
4
|
+
|
|
5
|
+
Nothing to migrate.
|
|
6
|
+
|
|
7
|
+
- **`TaoTextarea` `maxHeight`.** The field grew with its text up to 500px, written into the component. Now `maxHeight` sets it: a number is px, a string any CSS length (`50vh`, `20rem`), `none` — no limit; 500 stays the default. Dragging the corner stops there too. A framed field (`variant="outline"`) no longer scrolls by 2px: the height counts its border.
|
|
8
|
+
|
|
3
9
|
## 5.11.1
|
|
4
10
|
|
|
5
11
|
A fix; nothing to migrate.
|
package/dist/index.d.ts
CHANGED
|
@@ -7287,6 +7287,13 @@ readonly?: boolean;
|
|
|
7287
7287
|
/** Spaces are not entered: neither typed nor pasted. / Пробелы не вводятся — ни с клавиатуры, ни вставкой. */
|
|
7288
7288
|
noSpace?: boolean;
|
|
7289
7289
|
rows?: number;
|
|
7290
|
+
/**
|
|
7291
|
+
* How tall the field grows with its text before it scrolls: a number is px, a string any CSS length (`50vh`,
|
|
7292
|
+
* `20rem`), `none` — no limit. Dragging the corner stops there too.
|
|
7293
|
+
* До какой высоты поле растёт с текстом, прежде чем прокручиваться: число — px, строка — любая длина CSS
|
|
7294
|
+
* (`50vh`, `20rem`), `none` — без предела. Растягивание за угол тоже останавливается на ней.
|
|
7295
|
+
*/
|
|
7296
|
+
maxHeight?: number | string;
|
|
7290
7297
|
resize?: boolean;
|
|
7291
7298
|
modelValue?: string;
|
|
7292
7299
|
/** Focus on mount. / Фокус при монтировании. */
|
|
@@ -7313,6 +7320,7 @@ disabled: boolean;
|
|
|
7313
7320
|
readonly: boolean;
|
|
7314
7321
|
noSpace: boolean;
|
|
7315
7322
|
rows: number;
|
|
7323
|
+
maxHeight: number;
|
|
7316
7324
|
resize: boolean;
|
|
7317
7325
|
modelValue: string;
|
|
7318
7326
|
autofocus: boolean;
|
|
@@ -7345,6 +7353,13 @@ readonly?: boolean;
|
|
|
7345
7353
|
/** Spaces are not entered: neither typed nor pasted. / Пробелы не вводятся — ни с клавиатуры, ни вставкой. */
|
|
7346
7354
|
noSpace?: boolean;
|
|
7347
7355
|
rows?: number;
|
|
7356
|
+
/**
|
|
7357
|
+
* How tall the field grows with its text before it scrolls: a number is px, a string any CSS length (`50vh`,
|
|
7358
|
+
* `20rem`), `none` — no limit. Dragging the corner stops there too.
|
|
7359
|
+
* До какой высоты поле растёт с текстом, прежде чем прокручиваться: число — px, строка — любая длина CSS
|
|
7360
|
+
* (`50vh`, `20rem`), `none` — без предела. Растягивание за угол тоже останавливается на ней.
|
|
7361
|
+
*/
|
|
7362
|
+
maxHeight?: number | string;
|
|
7348
7363
|
resize?: boolean;
|
|
7349
7364
|
modelValue?: string;
|
|
7350
7365
|
/** Focus on mount. / Фокус при монтировании. */
|
|
@@ -7371,6 +7386,7 @@ disabled: boolean;
|
|
|
7371
7386
|
readonly: boolean;
|
|
7372
7387
|
noSpace: boolean;
|
|
7373
7388
|
rows: number;
|
|
7389
|
+
maxHeight: number;
|
|
7374
7390
|
resize: boolean;
|
|
7375
7391
|
modelValue: string;
|
|
7376
7392
|
autofocus: boolean;
|
|
@@ -7395,6 +7411,7 @@ modelValue: string;
|
|
|
7395
7411
|
align: "start" | "center" | "end";
|
|
7396
7412
|
autocomplete: string;
|
|
7397
7413
|
rows: number;
|
|
7414
|
+
maxHeight: number | string;
|
|
7398
7415
|
maxlength: number;
|
|
7399
7416
|
spellcheck: boolean;
|
|
7400
7417
|
minlength: number;
|
package/dist/index.js
CHANGED
|
@@ -3743,6 +3743,7 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
|
|
|
3743
3743
|
readonly: { type: Boolean, default: false },
|
|
3744
3744
|
noSpace: { type: Boolean, default: false },
|
|
3745
3745
|
rows: { default: 3 },
|
|
3746
|
+
maxHeight: { default: 500 },
|
|
3746
3747
|
resize: { type: Boolean, default: true },
|
|
3747
3748
|
modelValue: { default: "" },
|
|
3748
3749
|
autofocus: { type: Boolean, default: false },
|
|
@@ -3815,8 +3816,10 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
|
|
|
3815
3816
|
return;
|
|
3816
3817
|
}
|
|
3817
3818
|
textarea.style.height = "auto";
|
|
3818
|
-
textarea.
|
|
3819
|
+
const borders = textarea.offsetHeight - textarea.clientHeight;
|
|
3820
|
+
textarea.style.height = `${textarea.scrollHeight + borders}px`;
|
|
3819
3821
|
}
|
|
3822
|
+
const maxHeightCss = computed(() => typeof props.maxHeight === "number" ? `${props.maxHeight}px` : props.maxHeight);
|
|
3820
3823
|
watch(
|
|
3821
3824
|
() => props.modelValue,
|
|
3822
3825
|
() => {
|
|
@@ -3853,6 +3856,7 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
|
|
|
3853
3856
|
disabled: __props.disabled,
|
|
3854
3857
|
readonly: __props.readonly,
|
|
3855
3858
|
rows: __props.rows,
|
|
3859
|
+
style: { maxHeight: maxHeightCss.value },
|
|
3856
3860
|
value: __props.modelValue,
|
|
3857
3861
|
"aria-invalid": unref(invalid) || void 0,
|
|
3858
3862
|
"aria-describedby": describedBy.value,
|
|
@@ -3872,7 +3876,7 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
|
|
|
3872
3876
|
};
|
|
3873
3877
|
}
|
|
3874
3878
|
});
|
|
3875
|
-
const TaoTextarea = /* @__PURE__ */ _export_sfc(_sfc_main$P, [["__scopeId", "data-v-
|
|
3879
|
+
const TaoTextarea = /* @__PURE__ */ _export_sfc(_sfc_main$P, [["__scopeId", "data-v-9aaf7131"]]);
|
|
3876
3880
|
const _hoisted_1$L = ["aria-label"];
|
|
3877
3881
|
const _hoisted_2$F = { class: "tao-scroll-top__content" };
|
|
3878
3882
|
const _hoisted_3$A = {
|