fix validator and font weight on smaller
This commit is contained in:
@@ -76,7 +76,10 @@ const props = defineProps({
|
|||||||
type: [String, Object],
|
type: [String, Object],
|
||||||
default: null,
|
default: null,
|
||||||
required: false,
|
required: false,
|
||||||
validator: (prop) => typeof prop === "object" || prop === null,
|
validator: (prop) =>
|
||||||
|
typeof prop === "object" ||
|
||||||
|
prop === null ||
|
||||||
|
typeof prop === "string",
|
||||||
},
|
},
|
||||||
disabled: {
|
disabled: {
|
||||||
type: Boolean,
|
type: Boolean,
|
||||||
@@ -179,11 +182,13 @@ const handleClickItem = (item: string) => {
|
|||||||
&.medium {
|
&.medium {
|
||||||
padding: 12px 24px;
|
padding: 12px 24px;
|
||||||
font-size: 80%;
|
font-size: 80%;
|
||||||
|
font-weight: 600;
|
||||||
}
|
}
|
||||||
|
|
||||||
&.small {
|
&.small {
|
||||||
padding: 8px 16px;
|
padding: 8px 16px;
|
||||||
font-size: 75%;
|
font-size: 75%;
|
||||||
|
font-weight: 600;
|
||||||
}
|
}
|
||||||
|
|
||||||
&.light {
|
&.light {
|
||||||
|
|||||||
Reference in New Issue
Block a user