Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(site): fix error when build saas site #2701

Merged
merged 2 commits into from
Dec 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading