types(Notify): use tsx (#8158)

This commit is contained in:
neverland
2021-02-14 19:14:47 +08:00
committed by GitHub
parent 8d379e0f00
commit c6e65f4fd6
5 changed files with 43 additions and 24 deletions
+2 -1
View File
@@ -33,6 +33,7 @@
import { ref } from 'vue';
import { useTranslate } from '@demo/use-translate';
import Notify from '..';
import { NotifyType } from '../Notify';
const i18n = {
'zh-CN': {
@@ -85,7 +86,7 @@ export default {
});
};
const showType = (type: string) => {
const showType = (type: NotifyType) => {
Notify({
message: t('content'),
type,