fix: fix theme tool (#1433)

This commit is contained in:
Kagol 2024-02-27 15:49:16 +08:00 committed by GitHub
parent 625d6a505c
commit bf56cc02ac
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 5 additions and 4 deletions

View File

@ -105,7 +105,9 @@ export default class TinyThemeTool {
const twoKey = `${compNameList[1]}-${compNameList[2]}`
// 优先三段式命名的组件名,优先级从高到低为三段-二段-一段
return this.getSelectorByKey(threeKey) || this.getSelectorByKey(twoKey) || compNameList[1]
return (
this.getSelectorByKey(threeKey) || this.getSelectorByKey(twoKey) || '.tiny-' + compNameList[1] + '[class*=tiny]'
)
}
formatCSSVariables(themeData) {

View File

@ -23,8 +23,7 @@
"@opentiny/vue-radio-group": "workspace:~",
"@opentiny/vue-tag": "workspace:~",
"@opentiny/vue-theme-mobile": "workspace:~",
"@opentiny/vue-theme": "workspace:~",
"@opentiny/renderless": "workspace:~"
"@opentiny/vue-theme": "workspace:~"
},
"license": "MIT"
}

View File

@ -198,7 +198,7 @@ import { props, setup, directive, defineComponent } from '@opentiny/vue-common'
import bind from '@opentiny/vue-renderless/common/deps/repeat-click'
import { iconChevronDown, iconChevronUp, iconMinus, iconPlus } from '@opentiny/vue-icon'
import '@opentiny/vue-theme/numeric/index.less'
import type { INumericApi } from '@opentiny/renderless/types/numeric.type'
import type { INumericApi } from '@opentiny/vue-renderless/types/numeric.type'
import FilterPanel from '@opentiny/vue-filter-panel'
import Radio from '@opentiny/vue-radio'
import RadioGroup from '@opentiny/vue-radio-group'