Skip to content

Commit

Permalink
chore(tag): clean codes
Browse files Browse the repository at this point in the history
  • Loading branch information
07akioni committed Jul 21, 2021
1 parent 661cf15 commit b29f32f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 24 deletions.
15 changes: 3 additions & 12 deletions src/tag/src/Tag.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,24 +24,15 @@ const tagProps = {
type: Boolean as PropType<boolean | undefined>,
default: undefined
},
checked: {
type: Boolean,
default: false
},
checkable: {
type: Boolean,
default: false
},
checked: Boolean,
checkable: Boolean,
onClose: [Array, Function] as PropType<MaybeArray<(e: MouseEvent) => void>>,
onMouseenter: Function as PropType<(e: MouseEvent) => void>,
onMouseleave: Function as PropType<(e: MouseEvent) => void>,
'onUpdate:checked': Function as PropType<(checked: boolean) => void>,
onUpdateChecked: Function as PropType<(checked: boolean) => void>,
// private
internalStopClickPropagation: {
type: Boolean,
default: false
},
internalStopClickPropagation: Boolean,
// deprecated
onCheckedChange: {
type: Function as PropType<(checked: boolean) => void>,
Expand Down
15 changes: 3 additions & 12 deletions src/tag/src/common-props.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,11 @@ export default {
>,
default: 'default'
},
round: {
type: Boolean,
default: false
},
round: Boolean,
size: {
type: String as PropType<'small' | 'medium' | 'large'>,
default: 'medium'
},
closable: {
type: Boolean,
default: false
},
disabled: {
type: Boolean,
default: false
}
closable: Boolean,
disabled: Boolean
} as const

0 comments on commit b29f32f

Please sign in to comment.