From b0ff6ee7e152260cec840a79b2d37a5b5601eedc Mon Sep 17 00:00:00 2001 From: wanchun <445436867@qq.com> Date: Wed, 15 Mar 2023 17:55:21 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=B0=B4=E5=8D=B0=E6=8F=92=E4=BB=B6?= =?UTF-8?q?=E5=85=BC=E5=AE=B9=E5=BE=AE=E5=89=8D=E7=AB=AF=E5=9C=BA=E6=99=AF?= =?UTF-8?q?,=E5=BA=94=E7=94=A8=E5=94=AF=E4=B8=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../examples/webpack-main/package.json | 1 + .../examples/webpack-main/src/app.jsx | 3 +- .../examples/webpack-micro/package.json | 1 + .../webpack-micro/src/pages/webpack/index.vue | 6 ++ .../fes-plugin-watermark/src/runtime/core.js | 76 ++++++++++--------- packages/fes-plugin-watermark/types.d.ts | 31 +++++--- 6 files changed, 69 insertions(+), 49 deletions(-) diff --git a/packages/fes-plugin-qiankun/examples/webpack-main/package.json b/packages/fes-plugin-qiankun/examples/webpack-main/package.json index 8363454d..f42ca66c 100644 --- a/packages/fes-plugin-qiankun/examples/webpack-main/package.json +++ b/packages/fes-plugin-qiankun/examples/webpack-main/package.json @@ -46,6 +46,7 @@ "@fesjs/fes": "^3.0.0-rc.0", "@fesjs/builder-webpack": "^3.0.0-rc.5", "@fesjs/plugin-qiankun": "3.0.0-rc.0", + "@fesjs/plugin-watermark": "3.0.0-rc.0", "vue": "^3.2.37", "@fesjs/fes-design": "^0.7.0" }, diff --git a/packages/fes-plugin-qiankun/examples/webpack-main/src/app.jsx b/packages/fes-plugin-qiankun/examples/webpack-main/src/app.jsx index a942f014..4842ee66 100644 --- a/packages/fes-plugin-qiankun/examples/webpack-main/src/app.jsx +++ b/packages/fes-plugin-qiankun/examples/webpack-main/src/app.jsx @@ -1,4 +1,4 @@ -import { access as accessApi } from '@fesjs/fes'; +import { access as accessApi, createWatermark } from '@fesjs/fes'; import PageLoading from '@/components/PageLoading.vue'; export const beforeRender = { @@ -10,6 +10,7 @@ export const beforeRender = { setRole('admin'); resolve(); }, 1000); + createWatermark(); }); }, }; diff --git a/packages/fes-plugin-qiankun/examples/webpack-micro/package.json b/packages/fes-plugin-qiankun/examples/webpack-micro/package.json index bb8410d7..670f2693 100644 --- a/packages/fes-plugin-qiankun/examples/webpack-micro/package.json +++ b/packages/fes-plugin-qiankun/examples/webpack-micro/package.json @@ -46,6 +46,7 @@ "@fesjs/fes": "^3.0.0-rc.0", "@fesjs/builder-webpack": "^3.0.0-rc.5", "@fesjs/plugin-qiankun": "3.0.0-rc.0", + "@fesjs/plugin-watermark": "3.0.0-rc.0", "vue": "^3.2.37", "@fesjs/fes-design": "^0.7.0" }, diff --git a/packages/fes-plugin-qiankun/examples/webpack-micro/src/pages/webpack/index.vue b/packages/fes-plugin-qiankun/examples/webpack-micro/src/pages/webpack/index.vue index bce5f24a..d8924319 100644 --- a/packages/fes-plugin-qiankun/examples/webpack-micro/src/pages/webpack/index.vue +++ b/packages/fes-plugin-qiankun/examples/webpack-micro/src/pages/webpack/index.vue @@ -8,8 +8,14 @@ }