Skip to content

Commit

Permalink
fix(styles-import): 解决tree组件选中样式背景色为黑色的问题 (opentiny#102)
Browse files Browse the repository at this point in the history
  • Loading branch information
wenmine authored Nov 23, 2023
1 parent 68addea commit 5907402
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 11 deletions.
4 changes: 3 additions & 1 deletion packages/design-core/vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,9 @@ const importmap = {
'@opentiny/vue-icon': `https://unpkg.com/@opentiny/vue@${importMapVersions.tinyVue}/runtime/tiny-vue-icon.mjs`,
'@opentiny/vue-common': `https://unpkg.com/@opentiny/vue@${importMapVersions.tinyVue}/runtime/tiny-vue-common.mjs`,
'@opentiny/vue-locale': `https://unpkg.com/@opentiny/vue@${importMapVersions.tinyVue}/runtime/tiny-vue-locale.mjs`,
'@opentiny/vue-design-smb': `https://unpkg.com/@opentiny/vue-design-smb@${importMapVersions.tinyVue}/index.js`
'@opentiny/vue-design-smb': `https://unpkg.com/@opentiny/vue-design-smb@${importMapVersions.tinyVue}/index.js`,
'@opentiny/vue-theme/theme-tool': `https://unpkg.com/@opentiny/vue-theme@${importMapVersions.tinyVue}/theme-tool`,
'@opentiny/vue-theme/theme': `https://unpkg.com/@opentiny/vue-theme@${importMapVersions.tinyVue}/theme`
}
}

Expand Down
20 changes: 13 additions & 7 deletions packages/plugins/page/src/PageTree.vue
Original file line number Diff line number Diff line change
Expand Up @@ -386,12 +386,19 @@ export default {
color: var(--ti-lowcode-page-manage-tree-color);
.tiny-tree-node {
&.is-current {
.tiny-tree-node__content {
background-color: var(--ti-lowcode-page-manage-page-tree-background-color);
&:hover {
background-color: var(--ti-lowcode-page-manage-page-tree-background-hover-color);
}
&:hover {
background-color: var(--ti-lowcode-page-manage-page-tree-background-hover-color);
}
&.is-current,
&.is-current .tiny-tree-node__content,
&.is-current .tiny-tree-node__content-box {
color: var(--ti-lowcode-page-manage-tree-color);
background-color: var(--ti-lowcode-page-manage-page-tree-background-active-color);
&:hover {
background-color: var(--ti-lowcode-page-manage-page-tree-background-hover-color);
}
& > .tiny-tree-node__content-left {
font-weight: 700;
}
}
}
Expand Down Expand Up @@ -421,7 +428,6 @@ export default {
visibility: hidden;
}
&:hover {
background-color: var(--ti-lowcode-page-manage-page-tree-background-color) !important;
border-radius: 0;
.icons {
.setting {
Expand Down
2 changes: 1 addition & 1 deletion packages/theme/dark/pageManage.less
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
--ti-lowcode-page-manage-content-tips-color: var(--ti-lowcode-common-text-color-5);
--ti-lowcode-page-manage-search-border-color: var(--ti-lowcode-common-border-color-2);
--ti-lowcode-page-manage-tree-color: var(--ti-lowcode-common-secondary-text-color);
--ti-lowcode-page-manage-page-tree-background-color: var(--ti-lowcode-common-component-hover-bg);
--ti-lowcode-page-manage-page-tree-background-active-color: var(--ti-lowcode-common-component-hover-bg);
--ti-lowcode-page-manage-page-tree-background-hover-color: var(--ti-lowcode-common-primary-hover-color);
--ti-lowcode-page-manage-svg-hover-color: var(--ti-lowcode-common-primary-color);
--ti-lowcode-page-manage-text-color: var(--ti-lowcode-common-secondary-text-color);
Expand Down
4 changes: 2 additions & 2 deletions packages/theme/light/pageManage.less
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
--ti-lowcode-page-manage-content-tips-color: var(--ti-lowcode-common-text-color-5);
--ti-lowcode-page-manage-search-border-color: var(--ti-lowcode-base-gray-30);
--ti-lowcode-page-manage-tree-color: var(--ti-lowcode-common-text-main-color);
--ti-lowcode-page-manage-page-tree-background-color: var(--ti-lowcode-common-component-hover-bg);
--ti-lowcode-page-manage-page-tree-background-hover-color: var(--ti-lowcode-common-primary-hover-color);
--ti-lowcode-page-manage-page-tree-background-active-color: var(--ti-lowcode-common-component-hover-bg);
--ti-lowcode-page-manage-page-tree-background-hover-color: var(--ti-lowcode-common-component-hover-bg);
--ti-lowcode-page-manage-svg-hover-color: var(--ti-lowcode-base-bg-3);
--ti-lowcode-page-manage-text-color: var(--ti-lowcode-base-text-color-1);
--ti-lowcode-page-manage-input-head-text-color: var(--ti-lowcode-base-text-color);
Expand Down

0 comments on commit 5907402

Please sign in to comment.