From f12b904202ca92af214705c119fde24705976a78 Mon Sep 17 00:00:00 2001 From: ShawnPhang Date: Wed, 26 Jul 2023 11:36:07 +0800 Subject: [PATCH] code: remove invalid file --- README.md | 4 +- src/common/methods/notification.ts | 12 +- .../business/save-download/CreateCover.vue | 23 +- .../business/save-download/SaveImage.vue | 253 ------------------ src/components/common/Uploader/index.vue | 20 +- .../modules/widgets/wText/wText.vue | 8 +- src/config.ts | 20 ++ src/views/Psd.vue | 2 +- src/views/components/HeaderOptions.vue | 2 +- src/views/components/UploadTemplate.vue | 2 +- 10 files changed, 53 insertions(+), 293 deletions(-) delete mode 100644 src/components/business/save-download/SaveImage.vue create mode 100644 src/config.ts 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 @@