diff --git a/README.md b/README.md index 83e0493..07188e7 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -[在线体验](https://design.palxp.com/) | [文档网站](https://xp.palxp.com/) | [项目架构及目录](https://xp.palxp.com/#/articles/1689321259854) +** [在线体验](https://design.palxp.com/) | [文档网站](https://xp.palxp.com/) | [项目架构及目录](https://xp.palxp.com/#/articles/1689321259854) ** ## 迅排设计 @@ -29,7 +29,7 @@ ### 拉取源码 -> 环境需求:**Node.js v16** 以上版本 +> 环境需求:**Node.js v16.18** 以上版本 ``` git clone https://github.com/palxiao/poster-design.git diff --git a/src/common/methods/notification.ts b/src/common/methods/notification.ts index f26f78d..93fe227 100644 --- a/src/common/methods/notification.ts +++ b/src/common/methods/notification.ts @@ -1,15 +1,21 @@ /* * @Author: ShawnPhang * @Date: 2021-09-30 16:28:40 - * @Description: 加载遮罩 / 弹窗 + * @Description: 弹出提示 * @LastEditors: ShawnPhang * @LastEditTime: 2022-01-20 18:19:20 */ import { ElNotification } from 'element-plus' -export default (title: string, message: string = '', type: any = 'success') => { + +interface ElNotifi { + type?: 'success' | 'warning' | 'info' | 'error' | '' + position?: 'top-right' | 'top-left' | 'bottom-right' | 'bottom-left' +} + +export default (title: string, message: string = '', extra?: ElNotifi) => { ElNotification({ title, message, - type, + ...extra, }) } diff --git a/src/components/business/save-download/CreateCover.vue b/src/components/business/save-download/CreateCover.vue index b4f383d..4cdb9a6 100644 --- a/src/components/business/save-download/CreateCover.vue +++ b/src/components/business/save-download/CreateCover.vue @@ -1,9 +1,9 @@