diff --git a/packages/theme/src/theme-tool.js b/packages/theme/src/theme-tool.js index b17310996f..0c66c3f760 100644 --- a/packages/theme/src/theme-tool.js +++ b/packages/theme/src/theme-tool.js @@ -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) { diff --git a/packages/vue/src/numeric/package.json b/packages/vue/src/numeric/package.json index 02a7c3635f..a050113f69 100644 --- a/packages/vue/src/numeric/package.json +++ b/packages/vue/src/numeric/package.json @@ -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" } diff --git a/packages/vue/src/numeric/src/pc.vue b/packages/vue/src/numeric/src/pc.vue index 7f103bad5e..004d2d7423 100644 --- a/packages/vue/src/numeric/src/pc.vue +++ b/packages/vue/src/numeric/src/pc.vue @@ -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'