每日菜谱修改,商户引入
This commit is contained in:
1 parent
aea4f8d23a
commit
a912f3006a
9 files changed
+604
-32
No files matched your search
@@ -14,6 +14,7 @@ interface MessageImplements {
|
||||
warning(title: string): void;
|
||||
success(title: string): void;
|
||||
error(title: string): void;
|
||||
delConfirm(content?: string, tip?: string): void;
|
||||
}
|
||||
|
||||
export function useMessage() {
|
||||
@@ -54,6 +55,18 @@ export function useMessage() {
|
||||
duration: 2000, // 错误提示显示时间延长到5秒
|
||||
});
|
||||
}
|
||||
|
||||
delConfirm(content?: string, tip?: string) {
|
||||
return ElMessageBox.confirm(
|
||||
content ? content : t('common.delMessage'),
|
||||
tip ? tip : t('common.confirmTitle'),
|
||||
{
|
||||
confirmButtonText: t('common.ok'),
|
||||
cancelButtonText: t('common.cancel'),
|
||||
type: 'warning'
|
||||
}
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
return new MessageClass();
|
||||
@@ -97,6 +110,19 @@ export function useMessageBox() {
|
||||
type: 'warning',
|
||||
});
|
||||
}
|
||||
|
||||
// 删除窗体
|
||||
delConfirm(content?: string, tip?: string) {
|
||||
return ElMessageBox.confirm(
|
||||
content ? content : t('common.delMessage'),
|
||||
tip ? tip : t('common.confirmTitle'),
|
||||
{
|
||||
confirmButtonText: t('common.ok'),
|
||||
cancelButtonText: t('common.cancel'),
|
||||
type: 'warning'
|
||||
}
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
return new MessageBoxClass();
|
||||
|
||||
Reference in new issue
Block a user