|
|
@@ -18,6 +18,10 @@
|
|
|
<template v-for="(_, slotName) in $slots" #[slotName]>
|
|
|
<slot :name="slotName" />
|
|
|
</template>
|
|
|
+
|
|
|
+ <template #append>
|
|
|
+ <q-icon v-if="icon" :name="icon" size="sm" color="secondary" />
|
|
|
+ </template>
|
|
|
</q-input>
|
|
|
</div>
|
|
|
</div>
|
|
|
@@ -37,11 +41,15 @@ defineOptions({
|
|
|
inheritAttrs: false,
|
|
|
});
|
|
|
|
|
|
-const { label, nativeInputClass, inputClass, rules } = defineProps({
|
|
|
+const { label, nativeInputClass, inputClass, rules, icon } = defineProps({
|
|
|
label: {
|
|
|
type: String,
|
|
|
default: "",
|
|
|
},
|
|
|
+ icon: {
|
|
|
+ type: String,
|
|
|
+ default: "",
|
|
|
+ },
|
|
|
rules: {
|
|
|
type: Array,
|
|
|
default: () => [],
|