@tb-dev/vue 0.3.14 → 0.3.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.
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { Option } from '@tb-dev/utils';
|
|
2
2
|
export interface TextareaProps {
|
|
3
3
|
autocapitalize?: boolean;
|
|
4
|
+
autofocus?: boolean;
|
|
4
5
|
class?: string;
|
|
6
|
+
cols?: number;
|
|
5
7
|
disabled?: boolean;
|
|
6
8
|
label?: string;
|
|
7
9
|
labelClass?: string;
|
|
@@ -12,4 +14,5 @@ export interface TextareaProps {
|
|
|
12
14
|
placeholder?: string;
|
|
13
15
|
readonly?: boolean;
|
|
14
16
|
required?: boolean;
|
|
17
|
+
rows?: number;
|
|
15
18
|
}
|
package/dist/index.js
CHANGED
|
@@ -2431,7 +2431,6 @@ const _sfc_main$1G = /* @__PURE__ */ defineComponent({
|
|
|
2431
2431
|
createVNode(unref(_sfc_main$1P), {
|
|
2432
2432
|
modelValue: value.value,
|
|
2433
2433
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => value.value = $event),
|
|
2434
|
-
modelModifiers: { trim: true },
|
|
2435
2434
|
type: "text",
|
|
2436
2435
|
placeholder: _ctx.placeholder,
|
|
2437
2436
|
disabled: _ctx.disabled,
|
|
@@ -5701,7 +5700,9 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
5701
5700
|
__name: "Textarea",
|
|
5702
5701
|
props: {
|
|
5703
5702
|
autocapitalize: { type: Boolean },
|
|
5703
|
+
autofocus: { type: Boolean },
|
|
5704
5704
|
class: {},
|
|
5705
|
+
cols: {},
|
|
5705
5706
|
disabled: { type: Boolean },
|
|
5706
5707
|
label: {},
|
|
5707
5708
|
labelClass: {},
|
|
@@ -5711,7 +5712,8 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
5711
5712
|
onBlur: { type: Function },
|
|
5712
5713
|
placeholder: {},
|
|
5713
5714
|
readonly: { type: Boolean },
|
|
5714
|
-
required: { type: Boolean }
|
|
5715
|
+
required: { type: Boolean },
|
|
5716
|
+
rows: {}
|
|
5715
5717
|
},
|
|
5716
5718
|
emits: ["update:modelValue"],
|
|
5717
5719
|
setup(__props, { emit: __emit }) {
|
|
@@ -5730,26 +5732,28 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
5730
5732
|
createVNode(unref(_sfc_main$2), {
|
|
5731
5733
|
modelValue: value.value,
|
|
5732
5734
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => value.value = $event),
|
|
5733
|
-
modelModifiers: { trim: true },
|
|
5734
5735
|
type: "text",
|
|
5735
5736
|
autocapitalize: _ctx.autocapitalize,
|
|
5736
5737
|
autocomplete: "off",
|
|
5737
5738
|
autocorrect: "off",
|
|
5739
|
+
autofocus: _ctx.autofocus,
|
|
5740
|
+
cols: _ctx.cols,
|
|
5738
5741
|
disabled: _ctx.disabled,
|
|
5739
5742
|
maxlength: _ctx.max,
|
|
5740
5743
|
minlength: _ctx.min,
|
|
5741
5744
|
placeholder: _ctx.placeholder,
|
|
5742
5745
|
readonly: _ctx.readonly,
|
|
5743
5746
|
required: _ctx.required,
|
|
5747
|
+
rows: _ctx.rows,
|
|
5744
5748
|
spellcheck: "false",
|
|
5745
5749
|
class: normalizeClass(
|
|
5746
5750
|
unref(cn)(
|
|
5747
|
-
"
|
|
5751
|
+
"size-full resize-none font-normal focus-visible:ring-0 disabled:cursor-default",
|
|
5748
5752
|
props.class
|
|
5749
5753
|
)
|
|
5750
5754
|
),
|
|
5751
5755
|
onBlur: _ctx.onBlur
|
|
5752
|
-
}, null, 8, ["modelValue", "autocapitalize", "disabled", "maxlength", "minlength", "placeholder", "readonly", "required", "class", "onBlur"])
|
|
5756
|
+
}, null, 8, ["modelValue", "autocapitalize", "autofocus", "cols", "disabled", "maxlength", "minlength", "placeholder", "readonly", "required", "rows", "class", "onBlur"])
|
|
5753
5757
|
]),
|
|
5754
5758
|
_: 1
|
|
5755
5759
|
}),
|