types(NumberKeyboard): use tsx (#8156)

This commit is contained in:
neverland
2021-02-14 17:25:24 +08:00
committed by GitHub
parent 4cb974ab02
commit d8e7489081
3 changed files with 37 additions and 14 deletions
+3 -1
View File
@@ -23,9 +23,11 @@ const DeleteIcon = (
</svg>
);
export type KeyType = '' | 'delete' | 'extra' | 'close';
export default createComponent({
props: {
type: String as PropType<'delete' | 'extra' | 'close'>,
type: String as PropType<KeyType>,
text: [Number, String],
color: String,
wider: Boolean,