From 87dd28ff8031330a1c23bf0253ebd39de5459085 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E9=91=AB?= Date: Wed, 3 Nov 2021 09:43:14 +0800 Subject: [PATCH 1/2] feat(x): x x ISSUES CLOSED: x --- .github/workflows/deploy.docs.yml | 3 + docs/.vitepress/config.js | 10 +- .../theme/component/contentmenu.vue | 8 - docs/.vitepress/theme/index.js | 11 +- docs/components/contextmenu/index.md | 10 +- docs/components/layout/index.md | 30 +- docs/components/menu/index.md | 3 +- docs/components/tabsPage/index.md | 2 +- docs/docs.md | 2 + package-lock.json | 19043 ++++++++++++++++ package.json | 17 +- package/vitevui/build/createFile.js | 28 +- package/vitevui/build/output.js | 3 + package/vitevui/build/plugins.js | 3 +- .../iconfont.less => assets/iconfont.css} | 0 .../src/{style/icon => assets}/iconfont.js | 0 .../src/{style/icon => assets}/iconfont.json | 0 .../src/{style/icon => assets}/iconfont.ttf | Bin .../src/{style/icon => assets}/iconfont.woff | Bin .../src/{style/icon => assets}/iconfont.woff2 | Bin package/vitevui/src/flow/component.ts | 2 +- package/vitevui/src/flow/index.tsx | 18 +- package/vitevui/src/flowRes/index.tsx | 26 +- package/vitevui/src/index.ts | 6 +- package/vitevui/src/layout/lay.tsx | 29 +- package/vitevui/src/layout/lay_sider.tsx | 20 +- package/vitevui/src/menu/group.tsx | 15 +- package/vitevui/src/menu/index.tsx | 33 +- package/vitevui/src/menu/item.tsx | 11 +- package/vitevui/src/style/icon/demo.css | 539 - package/vitevui/src/style/icon/logo.png | Bin 6849 -> 0 bytes package/vitevui/src/tabsPage/tab.tsx | 2 +- package/vitevui/tsconfig.json | 2 +- package/vitevui/yarn-error.log | 6240 +++++ src/lay.tsx | 2 + src/layout/lay.tsx | 70 + src/main.ts | 2 +- vite.config.ts | 1 + yarn.lock | 2004 +- 39 files changed, 26643 insertions(+), 1552 deletions(-) create mode 100644 package-lock.json rename package/vitevui/src/{style/icon/iconfont.less => assets/iconfont.css} (100%) rename package/vitevui/src/{style/icon => assets}/iconfont.js (100%) rename package/vitevui/src/{style/icon => assets}/iconfont.json (100%) rename package/vitevui/src/{style/icon => assets}/iconfont.ttf (100%) rename package/vitevui/src/{style/icon => assets}/iconfont.woff (100%) rename package/vitevui/src/{style/icon => assets}/iconfont.woff2 (100%) delete mode 100644 package/vitevui/src/style/icon/demo.css delete mode 100644 package/vitevui/src/style/icon/logo.png create mode 100644 package/vitevui/yarn-error.log create mode 100644 src/layout/lay.tsx diff --git a/.github/workflows/deploy.docs.yml b/.github/workflows/deploy.docs.yml index 7d00956..ba0b052 100644 --- a/.github/workflows/deploy.docs.yml +++ b/.github/workflows/deploy.docs.yml @@ -41,6 +41,9 @@ jobs: working-directory: 'package/vitevui' run: yarn build + - name: 添加vitepress vue自定义指令ssr支持 + run: npm i + - name: 打包文档 run: yarn docs:build diff --git a/docs/.vitepress/config.js b/docs/.vitepress/config.js index dfb8c10..ac700f3 100644 --- a/docs/.vitepress/config.js +++ b/docs/.vitepress/config.js @@ -53,9 +53,17 @@ module.exports = { author: 'bhabgs', nav: [ { text: '首页', link: '/' }, - // { text: '归档', link: '/docs' }, { text: '分类', link: '/tags' }, ], }, + vite: { + build: { + chunkSizeWarningLimit: 1024 * 50, + target: 'chrome58', + }, + ssr: { + external: ['@antv/x6'], + }, + }, dest: 'public', }; diff --git a/docs/.vitepress/theme/component/contentmenu.vue b/docs/.vitepress/theme/component/contentmenu.vue index 8cdc382..7d594fb 100644 --- a/docs/.vitepress/theme/component/contentmenu.vue +++ b/docs/.vitepress/theme/component/contentmenu.vue @@ -1,11 +1,3 @@ -