feat(tree-menu): [tree-menu] adapt to tree-menu smb themes (#1989)

* feat(tree-menu): [tree-menu] adapt to tree-menu smb themes

* fix(tree-menu): [tree-menu] updata tree-menu xdesign

* fix(tree-menu): [tree-menu] updata tree-menu xdesign
This commit is contained in:
wuyiping0628 2024-08-26 00:01:30 -07:00 committed by GitHub
parent b84449a485
commit 052f84a740
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 7 additions and 5 deletions

View File

@ -948,5 +948,7 @@ export const computedTreeMaxHeight =
const searchInputBottom = 20
const searchInputHeight = dialogBoxEl.querySelector('.tiny-popeditor__filter-input')?.clientHeight || 0
state.treeWrapperMaxHeight = `${dialogBoxEl.querySelector('.tiny-dialog-box__body').clientHeight - searchInputHeight - searchInputBottom}px`
state.treeWrapperMaxHeight = `${
dialogBoxEl.querySelector('.tiny-dialog-box__body').clientHeight - searchInputHeight - searchInputBottom
}px`
}

View File

@ -1,9 +1,9 @@
export const tinyTreeMenuSmbTheme = {
'ti-tree-node-content-current-bg-color': 'var(--ti-common-color-light)',
'ti-tree-menu-node-selected-bg-color': 'var(--ti-common-color-light)',
'ti-tree-menu-node-selected-bg-color': 'var(--ti-common-color-bg-normal)',
'ti-tree-menu-node-current-text-color': 'var(--ti-common-color-text-primary)',
'feat(nav-menu): [nav-menu] updata nav-menu xdesign ': 'var(--ti-common-color-light)',
'ti-tree-menu-square-left-border-color': 'var(--ti-common-color-icon-active)',
'ti-tree-menu-node-number-font-size': 'var(--ti-common-font-size-0)',
'ti-tree-menu-border-color': 'var(--ti-common-color-light)',
'ti-tree-menu-node-number-color': 'var(--ti-common-color-text-weaken)'
}

View File

@ -60,8 +60,8 @@
day.isLast || day.isNext
? 'is-next-or-last'
: isToday(day) || isSelectedDate(day)
? 'is-selected'
: '',
? 'is-selected'
: '',
day.disabled ? 'is-disabled' : ''
]"
>