windly-ui 1.0.9 → 1.1.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/dist/module.json +1 -1
- package/dist/runtime/components/Alert.d.vue.ts +18 -0
- package/dist/runtime/components/Alert.vue +21 -3
- package/dist/runtime/components/Alert.vue.d.ts +18 -0
- package/dist/runtime/components/Avatar.d.vue.ts +5 -5
- package/dist/runtime/components/Avatar.vue.d.ts +5 -5
- package/dist/runtime/components/Badge.d.vue.ts +5 -5
- package/dist/runtime/components/Badge.vue.d.ts +5 -5
- package/dist/runtime/components/Breadcrumbs.vue +2 -2
- package/dist/runtime/components/Button.d.vue.ts +5 -5
- package/dist/runtime/components/Button.vue +5 -5
- package/dist/runtime/components/Button.vue.d.ts +5 -5
- package/dist/runtime/components/Card.d.vue.ts +27 -0
- package/dist/runtime/components/Card.vue +12 -8
- package/dist/runtime/components/Card.vue.d.ts +27 -0
- package/dist/runtime/components/Checkbox.d.vue.ts +14 -5
- package/dist/runtime/components/Checkbox.vue +11 -4
- package/dist/runtime/components/Checkbox.vue.d.ts +14 -5
- package/dist/runtime/components/Chip.d.vue.ts +5 -5
- package/dist/runtime/components/Chip.vue.d.ts +5 -5
- package/dist/runtime/components/CodeBlock.vue +50 -8
- package/dist/runtime/components/Date.d.vue.ts +22 -4
- package/dist/runtime/components/Date.vue +39 -15
- package/dist/runtime/components/Date.vue.d.ts +22 -4
- package/dist/runtime/components/Dialog.d.vue.ts +7 -9
- package/dist/runtime/components/Dialog.vue +23 -4
- package/dist/runtime/components/Dialog.vue.d.ts +7 -9
- package/dist/runtime/components/Divider.vue +1 -1
- package/dist/runtime/components/Dropdown.d.vue.ts +2 -2
- package/dist/runtime/components/Dropdown.vue +71 -23
- package/dist/runtime/components/Dropdown.vue.d.ts +2 -2
- package/dist/runtime/components/FileUploader.d.vue.ts +1 -1
- package/dist/runtime/components/FileUploader.vue +11 -9
- package/dist/runtime/components/FileUploader.vue.d.ts +1 -1
- package/dist/runtime/components/Image.d.vue.ts +11 -1
- package/dist/runtime/components/Image.vue +15 -0
- package/dist/runtime/components/Image.vue.d.ts +11 -1
- package/dist/runtime/components/Input.d.vue.ts +5 -1
- package/dist/runtime/components/Input.vue +53 -14
- package/dist/runtime/components/Input.vue.d.ts +5 -1
- package/dist/runtime/components/Radio.d.vue.ts +2 -2
- package/dist/runtime/components/Radio.vue +9 -7
- package/dist/runtime/components/Radio.vue.d.ts +2 -2
- package/dist/runtime/components/ScrollArea.vue +4 -0
- package/dist/runtime/components/Select.d.vue.ts +1 -1
- package/dist/runtime/components/Select.vue +11 -9
- package/dist/runtime/components/Select.vue.d.ts +1 -1
- package/dist/runtime/components/Tabs.d.vue.ts +8 -1
- package/dist/runtime/components/Tabs.vue +21 -6
- package/dist/runtime/components/Tabs.vue.d.ts +8 -1
- package/dist/runtime/components/Textarea.d.vue.ts +39 -185
- package/dist/runtime/components/Textarea.vue +94 -71
- package/dist/runtime/components/Textarea.vue.d.ts +39 -185
- package/dist/runtime/components/Toggle.d.vue.ts +9 -3
- package/dist/runtime/components/Toggle.vue +70 -122
- package/dist/runtime/components/Toggle.vue.d.ts +9 -3
- package/dist/runtime/components/Tooltip.vue +3 -0
- package/dist/runtime/components/uiProps.d.ts +2 -2
- package/dist/runtime/components/uiProps.js +2 -2
- package/dist/runtime/components/useUiClasses.d.ts +3 -1
- package/dist/runtime/components/useUiClasses.js +7 -5
- package/dist/runtime/docs/index.vue +163 -72
- package/package.json +1 -1
|
@@ -9,7 +9,7 @@ type __VLS_Props = {
|
|
|
9
9
|
name?: string;
|
|
10
10
|
hint?: string;
|
|
11
11
|
icon?: string;
|
|
12
|
-
|
|
12
|
+
disabled?: boolean;
|
|
13
13
|
color?: string;
|
|
14
14
|
size?: RadioSize;
|
|
15
15
|
rounded?: Rounded;
|
|
@@ -24,13 +24,13 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {
|
|
|
24
24
|
"onUpdate:modelValue"?: ((value: string | number | boolean) => any) | undefined;
|
|
25
25
|
}>, {
|
|
26
26
|
modelValue: string | number | boolean;
|
|
27
|
+
disabled: boolean;
|
|
27
28
|
name: string;
|
|
28
29
|
color: string;
|
|
29
30
|
size: RadioSize;
|
|
30
31
|
flat: boolean;
|
|
31
32
|
icon: string;
|
|
32
33
|
borderColor: string;
|
|
33
|
-
disable: boolean;
|
|
34
34
|
rounded: Rounded;
|
|
35
35
|
id: string;
|
|
36
36
|
bordered: boolean;
|
|
@@ -11,7 +11,7 @@ const props = defineProps({
|
|
|
11
11
|
name: { type: String, required: false, default: "" },
|
|
12
12
|
hint: { type: String, required: false, default: "" },
|
|
13
13
|
icon: { type: String, required: false, default: "" },
|
|
14
|
-
|
|
14
|
+
disabled: { type: Boolean, required: false, default: false },
|
|
15
15
|
color: { type: String, required: false, default: "blue-500" },
|
|
16
16
|
size: { type: String, required: false, default: "md" },
|
|
17
17
|
rounded: { type: String, required: false, default: "full" },
|
|
@@ -76,7 +76,7 @@ const radioClasses = computed(
|
|
|
76
76
|
sizeClasses.value.radio,
|
|
77
77
|
roundedClass.value,
|
|
78
78
|
props.flat ? "shadow-none" : "shadow-sm",
|
|
79
|
-
props.
|
|
79
|
+
props.disabled ? "opacity-50" : "",
|
|
80
80
|
props.bordered && !isHex(
|
|
81
81
|
props.borderColor
|
|
82
82
|
) ? `border-${props.borderColor}` : "",
|
|
@@ -117,7 +117,7 @@ const iconStyle = computed(
|
|
|
117
117
|
}
|
|
118
118
|
);
|
|
119
119
|
const toggle = () => {
|
|
120
|
-
if (props.
|
|
120
|
+
if (props.disabled)
|
|
121
121
|
return;
|
|
122
122
|
emit(
|
|
123
123
|
"update:modelValue",
|
|
@@ -139,7 +139,7 @@ const toggle = () => {
|
|
|
139
139
|
isChecked
|
|
140
140
|
"
|
|
141
141
|
:disabled="
|
|
142
|
-
|
|
142
|
+
disabled
|
|
143
143
|
"
|
|
144
144
|
class="sr-only"
|
|
145
145
|
@change="toggle"
|
|
@@ -153,13 +153,13 @@ const toggle = () => {
|
|
|
153
153
|
isChecked
|
|
154
154
|
"
|
|
155
155
|
:aria-disabled="
|
|
156
|
-
|
|
156
|
+
disabled
|
|
157
157
|
"
|
|
158
158
|
:class="[
|
|
159
159
|
'flex items-center cursor-pointer select-none',
|
|
160
160
|
labelPositionClass,
|
|
161
161
|
{
|
|
162
|
-
'opacity-50 pointer-events-none':
|
|
162
|
+
'opacity-50 pointer-events-none': disabled
|
|
163
163
|
}
|
|
164
164
|
]"
|
|
165
165
|
@click.prevent="
|
|
@@ -203,7 +203,7 @@ const toggle = () => {
|
|
|
203
203
|
size === 'sm' ? 'w-2 h-2' : size === 'lg' ? 'w-3 h-3' : 'w-2.5 h-2.5'
|
|
204
204
|
]
|
|
205
205
|
"
|
|
206
|
-
:style="isHex(props.color) ? { backgroundColor: props.color } : {}"
|
|
206
|
+
:style="isHex(props.color) && isChecked ? { backgroundColor: props.color } : {}"
|
|
207
207
|
/>
|
|
208
208
|
</span>
|
|
209
209
|
|
|
@@ -214,6 +214,8 @@ const toggle = () => {
|
|
|
214
214
|
{{ label }}
|
|
215
215
|
</span>
|
|
216
216
|
</label>
|
|
217
|
+
|
|
218
|
+
<span v-if="hint" class="ml-2 text-xs text-gray-400 dark:text-gray-500">{{ hint }}</span>
|
|
217
219
|
</div>
|
|
218
220
|
</template>
|
|
219
221
|
|
|
@@ -9,7 +9,7 @@ type __VLS_Props = {
|
|
|
9
9
|
name?: string;
|
|
10
10
|
hint?: string;
|
|
11
11
|
icon?: string;
|
|
12
|
-
|
|
12
|
+
disabled?: boolean;
|
|
13
13
|
color?: string;
|
|
14
14
|
size?: RadioSize;
|
|
15
15
|
rounded?: Rounded;
|
|
@@ -24,13 +24,13 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {
|
|
|
24
24
|
"onUpdate:modelValue"?: ((value: string | number | boolean) => any) | undefined;
|
|
25
25
|
}>, {
|
|
26
26
|
modelValue: string | number | boolean;
|
|
27
|
+
disabled: boolean;
|
|
27
28
|
name: string;
|
|
28
29
|
color: string;
|
|
29
30
|
size: RadioSize;
|
|
30
31
|
flat: boolean;
|
|
31
32
|
icon: string;
|
|
32
33
|
borderColor: string;
|
|
33
|
-
disable: boolean;
|
|
34
34
|
rounded: Rounded;
|
|
35
35
|
id: string;
|
|
36
36
|
bordered: boolean;
|
|
@@ -42,8 +42,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {
|
|
|
42
42
|
rounded: Rounded;
|
|
43
43
|
id: string;
|
|
44
44
|
placeholder: string;
|
|
45
|
-
readonly: boolean;
|
|
46
45
|
hint: string;
|
|
46
|
+
readonly: boolean;
|
|
47
47
|
outlined: boolean;
|
|
48
48
|
borderless: boolean;
|
|
49
49
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -27,6 +27,14 @@ const emit = defineEmits(["update:modelValue"]);
|
|
|
27
27
|
const showDropdown = ref(false);
|
|
28
28
|
const searchQuery = ref("");
|
|
29
29
|
const isHex = (val) => val.startsWith("#");
|
|
30
|
+
function supportsWidthValue(value) {
|
|
31
|
+
if (typeof CSS !== "undefined" && typeof CSS.supports === "function") {
|
|
32
|
+
return CSS.supports("width", value);
|
|
33
|
+
}
|
|
34
|
+
return /^-?\d*\.?\d+(px|%|rem|em|vh|vw|vmin|vmax|ch|ex|cm|mm|in|pt|pc)$/.test(
|
|
35
|
+
value.trim()
|
|
36
|
+
) || /^(calc|var|min|max|clamp)\(/.test(value.trim());
|
|
37
|
+
}
|
|
30
38
|
const roundedMap = {
|
|
31
39
|
none: "rounded-none",
|
|
32
40
|
sm: "rounded-sm",
|
|
@@ -65,12 +73,9 @@ const computedClass = computed(() => {
|
|
|
65
73
|
classes += " text-base";
|
|
66
74
|
}
|
|
67
75
|
if (props.color && !isHex(props.color)) {
|
|
68
|
-
classes += ` border-${props.color} focus:ring-${props.color}`;
|
|
76
|
+
classes += ` border-${props.color} focus:ring-2 focus:ring-${props.color}`;
|
|
69
77
|
}
|
|
70
|
-
if (props.width && !
|
|
71
|
-
"width",
|
|
72
|
-
props.width
|
|
73
|
-
)) {
|
|
78
|
+
if (props.width && !supportsWidthValue(props.width)) {
|
|
74
79
|
classes += ` w-${props.width}`;
|
|
75
80
|
}
|
|
76
81
|
if (!props.width) {
|
|
@@ -83,10 +88,7 @@ const computedClass = computed(() => {
|
|
|
83
88
|
});
|
|
84
89
|
const computedStyle = computed(() => {
|
|
85
90
|
const styles = {};
|
|
86
|
-
if (props.width &&
|
|
87
|
-
"width",
|
|
88
|
-
props.width
|
|
89
|
-
)) {
|
|
91
|
+
if (props.width && supportsWidthValue(props.width)) {
|
|
90
92
|
styles.width = props.width;
|
|
91
93
|
}
|
|
92
94
|
if (props.color && isHex(props.color)) {
|
|
@@ -42,8 +42,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {
|
|
|
42
42
|
rounded: Rounded;
|
|
43
43
|
id: string;
|
|
44
44
|
placeholder: string;
|
|
45
|
-
readonly: boolean;
|
|
46
45
|
hint: string;
|
|
46
|
+
readonly: boolean;
|
|
47
47
|
outlined: boolean;
|
|
48
48
|
borderless: boolean;
|
|
49
49
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
type __VLS_Props = {
|
|
2
2
|
modelValue: string;
|
|
3
|
+
color?: string;
|
|
4
|
+
headerClass?: string;
|
|
5
|
+
contentClass?: string;
|
|
3
6
|
};
|
|
4
7
|
declare var __VLS_1: {};
|
|
5
8
|
type __VLS_Slots = {} & {
|
|
@@ -9,7 +12,11 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {},
|
|
|
9
12
|
"update:modelValue": (value: string) => any;
|
|
10
13
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
11
14
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
12
|
-
}>, {
|
|
15
|
+
}>, {
|
|
16
|
+
color: string;
|
|
17
|
+
contentClass: string;
|
|
18
|
+
headerClass: string;
|
|
19
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
13
20
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
14
21
|
declare const _default: typeof __VLS_export;
|
|
15
22
|
export default _default;
|
|
@@ -1,9 +1,20 @@
|
|
|
1
1
|
<script setup>
|
|
2
|
-
|
|
2
|
+
defineOptions({
|
|
3
|
+
inheritAttrs: false
|
|
4
|
+
});
|
|
5
|
+
import { ref, reactive, watch, nextTick, provide, computed, onMounted, useAttrs } from "vue";
|
|
3
6
|
const props = defineProps({
|
|
4
|
-
modelValue: { type: String, required: true }
|
|
7
|
+
modelValue: { type: String, required: true },
|
|
8
|
+
color: { type: String, required: false, default: "blue-600" },
|
|
9
|
+
headerClass: { type: String, required: false, default: "" },
|
|
10
|
+
contentClass: { type: String, required: false, default: "" }
|
|
5
11
|
});
|
|
6
12
|
const emit = defineEmits(["update:modelValue"]);
|
|
13
|
+
const attrs = useAttrs();
|
|
14
|
+
const rootAttrs = computed(() => {
|
|
15
|
+
const { class: _class, ...rest } = attrs;
|
|
16
|
+
return rest;
|
|
17
|
+
});
|
|
7
18
|
const tabs = ref([]);
|
|
8
19
|
const tabRefs = ref([]);
|
|
9
20
|
const tabsEl = ref(null);
|
|
@@ -45,18 +56,22 @@ provide("tabs", {
|
|
|
45
56
|
|
|
46
57
|
<template>
|
|
47
58
|
<!-- Tabs Header -->
|
|
48
|
-
<div ref="tabsEl" class="relative flex border-b bg-gray-100"
|
|
49
|
-
|
|
59
|
+
<div ref="tabsEl" class="relative flex border-b bg-gray-100 dark:bg-gray-800 dark:border-gray-700"
|
|
60
|
+
:class="[headerClass, attrs.class]" role="tablist" v-bind="rootAttrs">
|
|
61
|
+
<span class="absolute bottom-0 h-0.5 transition-all duration-300 ease-out" :class="`bg-${color}`"
|
|
50
62
|
:style="indicatorStyle" />
|
|
51
63
|
|
|
52
64
|
<button v-for="(tab, index) in tabs" :key="tab.name" :ref="(el) => tabRefs[index] = el"
|
|
53
|
-
|
|
65
|
+
role="tab" :aria-selected="modelValue === tab.name" :tabindex="modelValue === tab.name ? 0 : -1"
|
|
66
|
+
@click="setActive(tab.name, index)"
|
|
67
|
+
class="relative px-4 py-2 text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-1"
|
|
68
|
+
:class="[modelValue === tab.name ? `text-${color}` : 'text-gray-600 dark:text-gray-300 hover:text-gray-800 dark:hover:text-gray-100', `focus-visible:ring-${color}`]">
|
|
54
69
|
{{ tab.label }}
|
|
55
70
|
</button>
|
|
56
71
|
</div>
|
|
57
72
|
|
|
58
73
|
<!-- Content -->
|
|
59
|
-
<div class="relative">
|
|
74
|
+
<div class="relative" :class="contentClass">
|
|
60
75
|
<slot />
|
|
61
76
|
</div>
|
|
62
77
|
</template>
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
type __VLS_Props = {
|
|
2
2
|
modelValue: string;
|
|
3
|
+
color?: string;
|
|
4
|
+
headerClass?: string;
|
|
5
|
+
contentClass?: string;
|
|
3
6
|
};
|
|
4
7
|
declare var __VLS_1: {};
|
|
5
8
|
type __VLS_Slots = {} & {
|
|
@@ -9,7 +12,11 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {},
|
|
|
9
12
|
"update:modelValue": (value: string) => any;
|
|
10
13
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
11
14
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
12
|
-
}>, {
|
|
15
|
+
}>, {
|
|
16
|
+
color: string;
|
|
17
|
+
contentClass: string;
|
|
18
|
+
headerClass: string;
|
|
19
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
13
20
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
14
21
|
declare const _default: typeof __VLS_export;
|
|
15
22
|
export default _default;
|
|
@@ -1,201 +1,55 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
};
|
|
34
|
-
iconSize: {
|
|
35
|
-
readonly type: StringConstructor;
|
|
36
|
-
readonly default: "lg";
|
|
37
|
-
};
|
|
38
|
-
modelValue: {
|
|
39
|
-
type: StringConstructor;
|
|
40
|
-
default: string;
|
|
41
|
-
};
|
|
42
|
-
label: {
|
|
43
|
-
type: StringConstructor;
|
|
44
|
-
default: string;
|
|
45
|
-
};
|
|
46
|
-
placeholder: {
|
|
47
|
-
type: StringConstructor;
|
|
48
|
-
default: string;
|
|
49
|
-
};
|
|
50
|
-
rows: {
|
|
51
|
-
type: NumberConstructor;
|
|
52
|
-
default: number;
|
|
53
|
-
};
|
|
54
|
-
maxRows: {
|
|
55
|
-
type: NumberConstructor;
|
|
56
|
-
default: number;
|
|
57
|
-
};
|
|
58
|
-
autoGrow: {
|
|
59
|
-
type: BooleanConstructor;
|
|
60
|
-
default: boolean;
|
|
61
|
-
};
|
|
62
|
-
readonly: {
|
|
63
|
-
type: BooleanConstructor;
|
|
64
|
-
default: boolean;
|
|
65
|
-
};
|
|
66
|
-
error: {
|
|
67
|
-
type: BooleanConstructor;
|
|
68
|
-
default: boolean;
|
|
69
|
-
};
|
|
70
|
-
errorMessage: {
|
|
71
|
-
type: StringConstructor;
|
|
72
|
-
default: string;
|
|
73
|
-
};
|
|
74
|
-
hint: {
|
|
75
|
-
type: StringConstructor;
|
|
76
|
-
default: string;
|
|
77
|
-
};
|
|
78
|
-
showWordCount: {
|
|
79
|
-
type: BooleanConstructor;
|
|
80
|
-
default: boolean;
|
|
81
|
-
};
|
|
82
|
-
showCharCount: {
|
|
83
|
-
type: BooleanConstructor;
|
|
84
|
-
default: boolean;
|
|
85
|
-
};
|
|
86
|
-
maxlength: {
|
|
87
|
-
type: NumberConstructor;
|
|
88
|
-
default: undefined;
|
|
89
|
-
};
|
|
90
|
-
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
91
|
-
"update:modelValue": (...args: any[]) => void;
|
|
92
|
-
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
93
|
-
contentClass: {
|
|
94
|
-
readonly type: StringConstructor;
|
|
95
|
-
readonly default: "";
|
|
96
|
-
};
|
|
97
|
-
contentStyle: {
|
|
98
|
-
readonly type: StringConstructor;
|
|
99
|
-
readonly default: "";
|
|
100
|
-
};
|
|
101
|
-
textColor: {
|
|
102
|
-
readonly type: StringConstructor;
|
|
103
|
-
readonly default: "";
|
|
104
|
-
};
|
|
105
|
-
disable: {
|
|
106
|
-
readonly type: BooleanConstructor;
|
|
107
|
-
readonly default: false;
|
|
108
|
-
};
|
|
109
|
-
loading: {
|
|
110
|
-
readonly type: BooleanConstructor;
|
|
111
|
-
readonly default: false;
|
|
112
|
-
};
|
|
113
|
-
color: {
|
|
114
|
-
readonly type: StringConstructor;
|
|
115
|
-
readonly default: "blue-900";
|
|
116
|
-
};
|
|
117
|
-
rounded: {
|
|
118
|
-
readonly type: StringConstructor;
|
|
119
|
-
readonly default: "md";
|
|
120
|
-
};
|
|
121
|
-
size: {
|
|
122
|
-
readonly type: StringConstructor;
|
|
123
|
-
readonly default: "md";
|
|
124
|
-
};
|
|
125
|
-
iconSize: {
|
|
126
|
-
readonly type: StringConstructor;
|
|
127
|
-
readonly default: "lg";
|
|
128
|
-
};
|
|
129
|
-
modelValue: {
|
|
130
|
-
type: StringConstructor;
|
|
131
|
-
default: string;
|
|
132
|
-
};
|
|
133
|
-
label: {
|
|
134
|
-
type: StringConstructor;
|
|
135
|
-
default: string;
|
|
136
|
-
};
|
|
137
|
-
placeholder: {
|
|
138
|
-
type: StringConstructor;
|
|
139
|
-
default: string;
|
|
140
|
-
};
|
|
141
|
-
rows: {
|
|
142
|
-
type: NumberConstructor;
|
|
143
|
-
default: number;
|
|
144
|
-
};
|
|
145
|
-
maxRows: {
|
|
146
|
-
type: NumberConstructor;
|
|
147
|
-
default: number;
|
|
148
|
-
};
|
|
149
|
-
autoGrow: {
|
|
150
|
-
type: BooleanConstructor;
|
|
151
|
-
default: boolean;
|
|
152
|
-
};
|
|
153
|
-
readonly: {
|
|
154
|
-
type: BooleanConstructor;
|
|
155
|
-
default: boolean;
|
|
156
|
-
};
|
|
157
|
-
error: {
|
|
158
|
-
type: BooleanConstructor;
|
|
159
|
-
default: boolean;
|
|
160
|
-
};
|
|
161
|
-
errorMessage: {
|
|
162
|
-
type: StringConstructor;
|
|
163
|
-
default: string;
|
|
164
|
-
};
|
|
165
|
-
hint: {
|
|
166
|
-
type: StringConstructor;
|
|
167
|
-
default: string;
|
|
168
|
-
};
|
|
169
|
-
showWordCount: {
|
|
170
|
-
type: BooleanConstructor;
|
|
171
|
-
default: boolean;
|
|
172
|
-
};
|
|
173
|
-
showCharCount: {
|
|
174
|
-
type: BooleanConstructor;
|
|
175
|
-
default: boolean;
|
|
176
|
-
};
|
|
177
|
-
maxlength: {
|
|
178
|
-
type: NumberConstructor;
|
|
179
|
-
default: undefined;
|
|
180
|
-
};
|
|
181
|
-
}>> & Readonly<{
|
|
182
|
-
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
modelValue?: string;
|
|
3
|
+
label?: string;
|
|
4
|
+
placeholder?: string;
|
|
5
|
+
rows?: number;
|
|
6
|
+
maxRows?: number;
|
|
7
|
+
autoGrow?: boolean;
|
|
8
|
+
readonly?: boolean;
|
|
9
|
+
error?: boolean;
|
|
10
|
+
errorMessage?: string;
|
|
11
|
+
hint?: string;
|
|
12
|
+
showWordCount?: boolean;
|
|
13
|
+
showCharCount?: boolean;
|
|
14
|
+
maxlength?: number;
|
|
15
|
+
outlined?: boolean;
|
|
16
|
+
borderless?: boolean;
|
|
17
|
+
filled?: boolean;
|
|
18
|
+
flat?: boolean;
|
|
19
|
+
contentClass?: string;
|
|
20
|
+
contentStyle?: string;
|
|
21
|
+
textColor?: string;
|
|
22
|
+
disabled?: boolean;
|
|
23
|
+
loading?: boolean;
|
|
24
|
+
color?: string;
|
|
25
|
+
rounded?: string;
|
|
26
|
+
size?: string;
|
|
27
|
+
iconSize?: string;
|
|
28
|
+
};
|
|
29
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
30
|
+
"update:modelValue": (value: string) => any;
|
|
31
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
32
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
183
33
|
}>, {
|
|
184
34
|
modelValue: string;
|
|
35
|
+
disabled: boolean;
|
|
185
36
|
label: string;
|
|
186
37
|
color: string;
|
|
187
38
|
size: string;
|
|
39
|
+
filled: boolean;
|
|
40
|
+
flat: boolean;
|
|
188
41
|
contentClass: string;
|
|
189
42
|
contentStyle: string;
|
|
190
43
|
textColor: string;
|
|
191
|
-
disable: boolean;
|
|
192
44
|
loading: boolean;
|
|
193
45
|
rounded: string;
|
|
194
46
|
iconSize: string;
|
|
195
47
|
placeholder: string;
|
|
48
|
+
hint: string;
|
|
196
49
|
readonly: boolean;
|
|
197
50
|
error: boolean;
|
|
198
|
-
|
|
51
|
+
outlined: boolean;
|
|
52
|
+
borderless: boolean;
|
|
199
53
|
errorMessage: string;
|
|
200
54
|
maxlength: number;
|
|
201
55
|
rows: number;
|
|
@@ -203,6 +57,6 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
203
57
|
autoGrow: boolean;
|
|
204
58
|
showWordCount: boolean;
|
|
205
59
|
showCharCount: boolean;
|
|
206
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions,
|
|
60
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
207
61
|
declare const _default: typeof __VLS_export;
|
|
208
62
|
export default _default;
|