From bf56cc02acc3dac4251b12ead617ff4c7ce587c6 Mon Sep 17 00:00:00 2001 From: Kagol Date: Tue, 27 Feb 2024 15:49:16 +0800 Subject: [PATCH] fix: fix theme tool (#1433) --- packages/theme/src/theme-tool.js | 4 +++- packages/vue/src/numeric/package.json | 3 +-- packages/vue/src/numeric/src/pc.vue | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/packages/theme/src/theme-tool.js b/packages/theme/src/theme-tool.js index b17310996..0c66c3f76 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 02a7c3635..a050113f6 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 7f103bad5..004d2d742 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'