@tb-dev/vue 0.3.30 → 0.3.31
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.
|
@@ -8,6 +8,7 @@ export interface TextareaProps {
|
|
|
8
8
|
class?: HTMLAttributes['class'];
|
|
9
9
|
cols?: TextareaHTMLAttributes['cols'];
|
|
10
10
|
disabled?: boolean;
|
|
11
|
+
height?: number | string;
|
|
11
12
|
label?: string;
|
|
12
13
|
labelClass?: HTMLAttributes['class'];
|
|
13
14
|
max?: TextareaHTMLAttributes['maxlength'];
|
package/dist/index.js
CHANGED
|
@@ -6308,6 +6308,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
6308
6308
|
class: {},
|
|
6309
6309
|
cols: {},
|
|
6310
6310
|
disabled: { type: Boolean },
|
|
6311
|
+
height: {},
|
|
6311
6312
|
label: {},
|
|
6312
6313
|
labelClass: {},
|
|
6313
6314
|
max: {},
|
|
@@ -6330,6 +6331,9 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
6330
6331
|
get: () => props.modelValue ?? void 0,
|
|
6331
6332
|
set: (it) => emit("update:modelValue", it ?? null)
|
|
6332
6333
|
});
|
|
6334
|
+
const textareaHeight = computed(() => {
|
|
6335
|
+
return props.height ? { height: toPixel(props.height) } : null;
|
|
6336
|
+
});
|
|
6333
6337
|
const [DefineTemplate, ReuseTemplate] = createReusableTemplate();
|
|
6334
6338
|
return (_ctx, _cache) => {
|
|
6335
6339
|
return openBlock(), createElementBlock(Fragment, null, [
|
|
@@ -6352,7 +6356,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
6352
6356
|
required: _ctx.required,
|
|
6353
6357
|
rows: _ctx.rows,
|
|
6354
6358
|
spellcheck: _ctx.spellcheck,
|
|
6355
|
-
style: _ctx.style,
|
|
6359
|
+
style: [textareaHeight.value, _ctx.style],
|
|
6356
6360
|
class: unref(cn)(
|
|
6357
6361
|
"size-full resize-none font-normal focus-visible:ring-0 disabled:cursor-default",
|
|
6358
6362
|
props.class
|