|
|
@@ -12,6 +12,7 @@
|
|
|
hide-bottom-space
|
|
|
:class="inputClass"
|
|
|
:input-class="nativeInputClass"
|
|
|
+ :bg-color="bgColor"
|
|
|
@update:model-value="error = null"
|
|
|
>
|
|
|
<template v-for="(_, slotName) in $slots" #[slotName]>
|
|
|
@@ -40,28 +41,33 @@ defineOptions({
|
|
|
inheritAttrs: false,
|
|
|
});
|
|
|
|
|
|
-const { label, nativeInputClass, inputClass, rules, icon } = defineProps({
|
|
|
- label: {
|
|
|
- type: String,
|
|
|
- default: "",
|
|
|
- },
|
|
|
- icon: {
|
|
|
- type: String,
|
|
|
- default: "",
|
|
|
- },
|
|
|
- rules: {
|
|
|
- type: Array,
|
|
|
- default: () => [],
|
|
|
- },
|
|
|
- nativeInputClass: {
|
|
|
- type: String,
|
|
|
- default: null,
|
|
|
- },
|
|
|
- inputClass: {
|
|
|
- type: String,
|
|
|
- default: null,
|
|
|
- },
|
|
|
-});
|
|
|
+const { label, nativeInputClass, inputClass, rules, icon, bgColor } =
|
|
|
+ defineProps({
|
|
|
+ label: {
|
|
|
+ type: String,
|
|
|
+ default: "",
|
|
|
+ },
|
|
|
+ icon: {
|
|
|
+ type: String,
|
|
|
+ default: "",
|
|
|
+ },
|
|
|
+ rules: {
|
|
|
+ type: Array,
|
|
|
+ default: () => [],
|
|
|
+ },
|
|
|
+ nativeInputClass: {
|
|
|
+ type: String,
|
|
|
+ default: null,
|
|
|
+ },
|
|
|
+ inputClass: {
|
|
|
+ type: String,
|
|
|
+ default: null,
|
|
|
+ },
|
|
|
+ bgColor: {
|
|
|
+ type: String,
|
|
|
+ default: "suface",
|
|
|
+ },
|
|
|
+ });
|
|
|
|
|
|
const attrs = useAttrs();
|
|
|
|