Skip to content

Commit

Permalink
fix: fix theme tool
Browse files Browse the repository at this point in the history
  • Loading branch information
kagol committed Feb 27, 2024
1 parent 625d6a5 commit 60744b2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
4 changes: 3 additions & 1 deletion packages/theme/src/theme-tool.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
3 changes: 1 addition & 2 deletions packages/vue/src/numeric/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
2 changes: 1 addition & 1 deletion packages/vue/src/numeric/src/pc.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit 60744b2

Please sign in to comment.