Merge pull request #81 from xuwei-fit2cloud/main

fix: typos
This commit is contained in:
maninhill 2024-04-15 15:29:12 +08:00 committed by GitHub
commit 5b54ffcfed
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -40,26 +40,26 @@ export const MsgError = (message: string) => {
/** /**
* *
* @param message: {title, decription,type} * @param message: {title, description,type}
*/ */
export const MsgConfirm = (title: string, decription: string, options?: any) => { export const MsgConfirm = (title: string, description: string, options?: any) => {
const defaultOptions: Object = { const defaultOptions: Object = {
showCancelButton: true, showCancelButton: true,
confirmButtonText: '确定', confirmButtonText: '确定',
cancelButtonText: '取消', cancelButtonText: '取消',
...options ...options
} }
return ElMessageBox.confirm(decription, title, defaultOptions) return ElMessageBox.confirm(description, title, defaultOptions)
} }
// export const MsgConfirm = ({ title, decription }: any, options?: any) => { // export const MsgConfirm = ({ title, description }: any, options?: any) => {
// const message: any = h('div', { class: 'app-confirm' }, [ // const message: any = h('div', { class: 'app-confirm' }, [
// h('h4', { class: 'app-confirm-title flex align-center' }, [ // h('h4', { class: 'app-confirm-title flex align-center' }, [
// h(ElIcon, { class: 'icon' }, [h(WarningFilled)]), // h(ElIcon, { class: 'icon' }, [h(WarningFilled)]),
// h('span', { class: 'ml-16' }, title) // h('span', { class: 'ml-16' }, title)
// ]), // ]),
// h('div', { class: 'app-confirm-decription mt-8' }, decription) // h('div', { class: 'app-confirm-description mt-8' }, description)
// ]) // ])
// const defaultOptions: Object = { // const defaultOptions: Object = {