Files

29 lines
852 B
YAML
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Module Specvab-language语言切换
module:
id: vab-language
name: VabLanguage语言切换
type: ui
entrypoints:
- library/components/VabLanguage/index.vue
public_api:
concept:
- "通过下拉菜单切换语言:更新 settings.language + i18n locale + document.title"
dependency_closure:
runtime:
- "store-settingstheme.showLanguage / changeLanguage(language)"
- "vue-i18nuseI18n().locale"
- "vue-routeruseRoute读取 route.meta.title"
- "utils/pageTitlegetPageTitle"
- "Element Plusel-dropdown/el-dropdown-menu/el-dropdown-item"
- "VabIcon"
acceptance:
- "theme.showLanguage=true 时显示入口"
- "切换后 settings.language 与 i18n locale 同步更新"
pitfalls:
- "document.title 依赖 route.meta.title目标项目若 meta.title 缺失需适配"