mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-14 20:19:34 +01:00
chore(Avatar): remove useless chipVariant prop
This commit is contained in:
@@ -38,12 +38,8 @@ const props = defineProps({
|
||||
default: true
|
||||
},
|
||||
chip: {
|
||||
type: Boolean,
|
||||
default: false
|
||||
},
|
||||
chipVariant: {
|
||||
type: String,
|
||||
default: 'primary',
|
||||
default: null,
|
||||
validator (value: string) {
|
||||
return Object.keys($ui.avatar.chip.variant).includes(value)
|
||||
}
|
||||
@@ -92,8 +88,8 @@ const avatarClass = computed(() => {
|
||||
const chipClass = computed(() => {
|
||||
return classNames(
|
||||
$ui.avatar.chip.base,
|
||||
$ui.avatar.chip.variant[props.chip],
|
||||
$ui.avatar.chip.position[props.chipPosition],
|
||||
$ui.avatar.chip.variant[props.chipVariant],
|
||||
$ui.avatar.chip.size[props.size]
|
||||
)
|
||||
})
|
||||
|
||||
3
src/runtime/types/avatar.d.ts
vendored
3
src/runtime/types/avatar.d.ts
vendored
@@ -4,7 +4,6 @@ export interface Avatar {
|
||||
text: string
|
||||
size: string
|
||||
rounded: boolean
|
||||
chip: boolean
|
||||
chipVariant: string
|
||||
chip: string
|
||||
chipPosition: string
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user