Skip to content

Commit

Permalink
fix(site): fix error when build saas site (#2701)
Browse files Browse the repository at this point in the history
* fix(site): fix error when build saas site

* feat(site): optimize SaaS official website style and practice field
  • Loading branch information
zzcr authored Dec 27, 2024
1 parent 13660bc commit a19b711
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 4 deletions.
2 changes: 2 additions & 0 deletions examples/sites/playground/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
10 changes: 8 additions & 2 deletions examples/sites/src/views/layout/layout.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down Expand Up @@ -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));
Expand Down
6 changes: 6 additions & 0 deletions packages/theme-saas/src/aurora-theme-index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
export default {
id: 'tiny-aurora-theme',
name: 'AuroraTheme',
cnName: '欧若拉主题',
css: ''
}
2 changes: 1 addition & 1 deletion packages/theme-saas/src/old-theme-index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ export default {
id: 'tiny-old-theme',
name: 'OldTheme',
cnName: '旧的主题',
css: ``
css: ''
}
3 changes: 2 additions & 1 deletion packages/theme-saas/src/theme-tool.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import tinyOldTheme from './old-theme-index.js'
import tinyAuroraTheme from './aurora-theme-index.js'

export { tinyOldTheme }
export { tinyOldTheme, tinyAuroraTheme }

/**
* 动态切换文档或影子根节点的样式类
Expand Down

0 comments on commit a19b711

Please sign in to comment.