fix validator and font weight on smaller

This commit is contained in:
2023-04-17 15:07:35 +10:00
parent bf4f378108
commit 5d947000ca

View File

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