diff --git a/CHANGELOG.zh_CN.md b/CHANGELOG.zh_CN.md index bcbc45ed7..578ba70be 100644 --- a/CHANGELOG.zh_CN.md +++ b/CHANGELOG.zh_CN.md @@ -1,16 +1,23 @@ ## Wip +## (破坏性更新) Breaking changes + +- ClickOutSide 组件引入方式由 `import ClickOutSide from '/@/components/ClickOutSide/index.vue'`变更为`import { ClickOutSide } from '/@/components/ClickOutSide'` +- Button 组件引入方式由 `import ClickOutSide from '/@/components/Button/index.vue'`变更为`import { Button } from '/@/components/Button'` +- StrengthMeter 组件引入方式由 `import StrengthMeter from '/@/components/StrengthMeter'`变更为`import { StrengthMeter } from '/@/components/StrengthMeter'` +- 除示例外加入全局国际化功能,支持中文与英文 + ### ✨ Refactor - 重构整体 layout。更改代码实现方式。代码更精简 - 配置项重构 - 移除 messageSetting 配置 +- BasicTitle 组件 `showSpan`=> `span` ### ✨ Features - 缓存可以配置是否加密,默认生产环境开启 Aes 加密 - 新增标签页拖拽排序 -- 除示例外加入全局国际化功能,支持中文与英文 ### 🎫 Chores diff --git a/README.md b/README.md index 1c349a452..4b5ae3594 100644 --- a/README.md +++ b/README.md @@ -69,7 +69,7 @@ ### 环境要求 - `Node.js`: - 版本最好大于 `12.0.0` -- `yarn` > `npm` > `cnpm`: - 包管理工具. +- `yarn` : - 包管理工具. ### UI 框架 diff --git a/package.json b/package.json index 20ba327ba..5e0b1f5db 100644 --- a/package.json +++ b/package.json @@ -38,6 +38,7 @@ "vue": "^3.0.3", "vue-i18n": "^9.0.0-beta.8", "vue-router": "^4.0.0-rc.5", + "vue-types": "^3.0.1", "vuex": "^4.0.0-rc.2", "vuex-module-decorators": "^1.0.1", "xlsx": "^0.16.9", diff --git a/src/components/Application/index.ts b/src/components/Application/index.ts index 96205d7fe..1b4ea892a 100644 --- a/src/components/Application/index.ts +++ b/src/components/Application/index.ts @@ -1,8 +1,7 @@ import AppLocalePicker from './src/AppLocalePicker.vue'; -import AppPageFooter from './src/AppPageFooter.vue'; import AppLogo from './src/AppLogo.vue'; import { withInstall } from '../util'; -export { AppLocalePicker, AppPageFooter, AppLogo }; +export { AppLocalePicker, AppLogo }; -export default withInstall(AppLocalePicker, AppPageFooter, AppLogo); +export default withInstall(AppLocalePicker, AppLogo); diff --git a/src/components/Application/src/AppLocalePicker.vue b/src/components/Application/src/AppLocalePicker.vue index 397203d04..48ab5bd71 100644 --- a/src/components/Application/src/AppLocalePicker.vue +++ b/src/components/Application/src/AppLocalePicker.vue @@ -23,18 +23,16 @@ import { LocaleType } from '/@/locales/types'; + import { propTypes } from '/@/utils/propTypes'; + export default defineComponent({ name: 'AppLocalPicker', components: { GlobalOutlined, Dropdown }, props: { - showText: { - type: Boolean, - default: true, - }, - reload: { - type: Boolean, - default: false, - }, + // Whether to display text + showText: propTypes.bool.def(true), + // Whether to refresh the interface when changing + reload: propTypes.bool, }, setup(props) { const { localeList } = useLocaleSetting(); diff --git a/src/components/Application/src/AppLogo.vue b/src/components/Application/src/AppLogo.vue index 980c3abd0..6ce85ef6a 100644 --- a/src/components/Application/src/AppLogo.vue +++ b/src/components/Application/src/AppLogo.vue @@ -9,7 +9,6 @@ diff --git a/src/components/Basic/src/BasicHelp.vue b/src/components/Basic/src/BasicHelp.vue index 2905f6772..967fa5b21 100644 --- a/src/components/Basic/src/BasicHelp.vue +++ b/src/components/Basic/src/BasicHelp.vue @@ -1,5 +1,5 @@ diff --git a/src/components/Breadcrumb/index.ts b/src/components/Breadcrumb/index.ts new file mode 100644 index 000000000..f167962dd --- /dev/null +++ b/src/components/Breadcrumb/index.ts @@ -0,0 +1,7 @@ +import Breadcrumb from './src/Breadcrumb.vue'; +import BreadcrumbItem from './src/BreadcrumbItem.vue'; +import { withInstall } from '../util'; + +export { Breadcrumb, BreadcrumbItem }; + +export default withInstall(Breadcrumb, BreadcrumbItem); diff --git a/src/components/Breadcrumb/Breadcrumb.vue b/src/components/Breadcrumb/src/Breadcrumb.vue similarity index 85% rename from src/components/Breadcrumb/Breadcrumb.vue rename to src/components/Breadcrumb/src/Breadcrumb.vue index d1f30612d..ed25a3461 100644 --- a/src/components/Breadcrumb/Breadcrumb.vue +++ b/src/components/Breadcrumb/src/Breadcrumb.vue @@ -5,20 +5,14 @@