diff --git a/src/components/Application/src/AppLocalePicker.vue b/src/components/Application/src/AppLocalePicker.vue index 3ea924f16..72c4c7f94 100644 --- a/src/components/Application/src/AppLocalePicker.vue +++ b/src/components/Application/src/AppLocalePicker.vue @@ -8,10 +8,10 @@ :dropMenuList="localeList" :selectedKeys="selectedKeys" @menuEvent="handleMenuEvent" - overlayClassName="app-locale-picker-overlay" + :overlayClassName="`${prefixCls}-overlay`" > - - + + {{ getLangText }} @@ -28,6 +28,7 @@ import { LocaleType } from '/@/locales/types'; import { propTypes } from '/@/utils/propTypes'; + import { useDesign } from '/@/hooks/web/useDesign'; export default defineComponent({ name: 'AppLocalPicker', @@ -39,9 +40,12 @@ reload: propTypes.bool, }, setup(props) { - const { localeList } = useLocaleSetting(); const selectedKeys = ref([]); + const { prefixCls } = useDesign('app-locale-picker'); + + const { localeList } = useLocaleSetting(); + const { changeLocale, getLang } = useLocale(); const getLangText = computed(() => { @@ -64,19 +68,22 @@ toggleLocale(menu.event as string); } - return { localeList, handleMenuEvent, selectedKeys, getLangText }; + return { localeList, handleMenuEvent, selectedKeys, getLangText, prefixCls }; }, });