forked from opentiny/tiny-vue
fix: fix theme tool (#1433)
This commit is contained in:
parent
625d6a505c
commit
bf56cc02ac
|
@ -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) {
|
||||
|
|
|
@ -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"
|
||||
}
|
||||
|
|
|
@ -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'
|
||||
|
|
Loading…
Reference in New Issue