From 16f4ce798e13d1d5f1730452bef5bc20095513be Mon Sep 17 00:00:00 2001 From: ajaxzheng <894103554@qq.com> Date: Wed, 25 Dec 2024 16:20:52 +0800 Subject: [PATCH 1/2] fix(site): fix error when build saas site --- packages/theme-saas/src/aurora-theme-index.js | 6 ++++++ packages/theme-saas/src/old-theme-index.js | 2 +- packages/theme-saas/src/theme-tool.js | 3 ++- 3 files changed, 9 insertions(+), 2 deletions(-) create mode 100644 packages/theme-saas/src/aurora-theme-index.js diff --git a/packages/theme-saas/src/aurora-theme-index.js b/packages/theme-saas/src/aurora-theme-index.js new file mode 100644 index 0000000000..1996e67ef9 --- /dev/null +++ b/packages/theme-saas/src/aurora-theme-index.js @@ -0,0 +1,6 @@ +export default { + id: 'tiny-aurora-theme', + name: 'AuroraTheme', + cnName: '欧若拉主题', + css: '' +} diff --git a/packages/theme-saas/src/old-theme-index.js b/packages/theme-saas/src/old-theme-index.js index 0b74348759..add84d4d41 100644 --- a/packages/theme-saas/src/old-theme-index.js +++ b/packages/theme-saas/src/old-theme-index.js @@ -2,5 +2,5 @@ export default { id: 'tiny-old-theme', name: 'OldTheme', cnName: '旧的主题', - css: `` + css: '' } diff --git a/packages/theme-saas/src/theme-tool.js b/packages/theme-saas/src/theme-tool.js index 72425c978e..881ddc2b31 100644 --- a/packages/theme-saas/src/theme-tool.js +++ b/packages/theme-saas/src/theme-tool.js @@ -1,6 +1,7 @@ import tinyOldTheme from './old-theme-index.js' +import tinyAuroraTheme from './aurora-theme-index.js' -export { tinyOldTheme } +export { tinyOldTheme, tinyAuroraTheme } /** * 动态切换文档或影子根节点的样式类 From 765c98c25fd54e10f39851d3a6ec516b906490cb Mon Sep 17 00:00:00 2001 From: ajaxzheng <894103554@qq.com> Date: Thu, 26 Dec 2024 10:46:10 +0800 Subject: [PATCH 2/2] feat(site): optimize SaaS official website style and practice field --- examples/sites/playground/App.vue | 2 ++ examples/sites/src/views/layout/layout.vue | 10 ++++++++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/examples/sites/playground/App.vue b/examples/sites/playground/App.vue index 896236d908..556e118177 100644 --- a/examples/sites/playground/App.vue +++ b/examples/sites/playground/App.vue @@ -89,6 +89,8 @@ const createImportMap = (version) => { } if (isSaas) { imports['@opentiny/vue-icon'] = `${getRuntime(version)}tiny-vue-icon-saas.mjs` + imports['@opentiny/vue-common'] = `${getRuntime(version)}tiny-vue-saas-common.mjs` + imports['@opentiny/vue'] = `${getRuntime(version)}tiny-vue-all.mjs` } return { imports diff --git a/examples/sites/src/views/layout/layout.vue b/examples/sites/src/views/layout/layout.vue index 2ee99a8e78..2a99161640 100644 --- a/examples/sites/src/views/layout/layout.vue +++ b/examples/sites/src/views/layout/layout.vue @@ -261,9 +261,15 @@ export default defineComponent({ .tiny-tree-node__content:hover { border-radius: 20px; } + .tiny-tree-node__content { height: 40px; line-height: 40px; + + .tiny-tree-node__content-left { + padding-left: 16px; + } + &::before { display: none; } @@ -301,8 +307,8 @@ export default defineComponent({ } .absolute-tag { position: absolute; - right: 4px; - top: 18px; + right: 8px; + top: 13px; } .tiny-tree { height: calc(100% - var(--layout-tree-menu-input-height));