diff --git a/CHANGELOG.zh_CN.md b/CHANGELOG.zh_CN.md index e57ffdff..9d23c7d9 100644 --- a/CHANGELOG.zh_CN.md +++ b/CHANGELOG.zh_CN.md @@ -7,6 +7,7 @@ ### ✨ Refactor - 重构项目以解决循环依赖项导致的热更新问题 +- 移除 vueHelper/useClickoutside,使用@vueuse/core 代替 ### 🐛 Bug Fixes diff --git a/README.md b/README.md index e16de152..f3c7e5b4 100644 --- a/README.md +++ b/README.md @@ -135,6 +135,7 @@ If these plugins are helpful to you, you can give a star support - [vite-plugin-theme](https://github.com/anncwb/vite-plugin-theme) - Used to pack compressed image resources - [vite-plugin-imagemin](https://github.com/anncwb/vite-plugin-imagemin) - Used for online switching of theme colors and other color-related configurations - [vite-plugin-compression](https://github.com/anncwb/vite-plugin-compression) - Used to pack input .gz|.brotil files +- [vite-plugin-svg-icons](https://github.com/anncwb/vite-plugin-svg-icons) - Used to quickly generate svg sprite ## Browser support diff --git a/README.zh-CN.md b/README.zh-CN.md index 2fb99374..ad0e5a2e 100644 --- a/README.zh-CN.md +++ b/README.zh-CN.md @@ -135,6 +135,7 @@ yarn build - [vite-plugin-theme](https://github.com/anncwb/vite-plugin-theme) - 用于打包压缩图片资源 - [vite-plugin-imagemin](https://github.com/anncwb/vite-plugin-imagemin) - 用于在线切换主题色等颜色相关配置 - [vite-plugin-compression](https://github.com/anncwb/vite-plugin-compression) - 用于打包输入.gz|.brotil 文件 +- [vite-plugin-svg-icons](https://github.com/anncwb/vite-plugin-svg-icons) - 用于快速生成 svg 雪碧图 ## 浏览器支持 diff --git a/package.json b/package.json index a09033f4..89c6ffc2 100644 --- a/package.json +++ b/package.json @@ -91,7 +91,7 @@ "is-ci": "^3.0.0", "less": "^4.1.1", "lint-staged": "^10.5.4", - "postcss": "^8.2.7", + "postcss": "^8.2.8", "prettier": "^2.2.1", "pretty-quick": "^3.1.0", "rimraf": "^3.0.2", @@ -106,7 +106,7 @@ "vite-plugin-compression": "^0.2.3", "vite-plugin-html": "^2.0.3", "vite-plugin-imagemin": "^0.2.9", - "vite-plugin-mock": "^2.2.2", + "vite-plugin-mock": "^2.2.3", "vite-plugin-purge-icons": "^0.7.0", "vite-plugin-pwa": "^0.5.6", "vite-plugin-style-import": "^0.8.1", diff --git a/src/components/Application/index.ts b/src/components/Application/index.ts index 98f79e26..25f777ec 100644 --- a/src/components/Application/index.ts +++ b/src/components/Application/index.ts @@ -1,11 +1,7 @@ -import { createAsyncComponent } from '/@/utils/factory/createAsyncComponent'; import AppLogo from './src/AppLogo.vue'; import AppProvider from './src/AppProvider.vue'; - -export const AppLocalePicker = createAsyncComponent(() => import('./src/AppLocalePicker.vue')); -export const AppSearch = createAsyncComponent(() => import('./src/search/AppSearch.vue'), { - loading: true, -}); +import AppSearch from './src/search/AppSearch.vue'; +import AppLocalePicker from './src/AppLocalePicker.vue'; export { useAppProviderContext } from './src/useAppContext'; -export { AppLogo, AppProvider }; +export { AppLogo, AppProvider, AppSearch, AppLocalePicker }; diff --git a/src/components/Basic/index.ts b/src/components/Basic/index.ts index 5a30c887..5a0845d2 100644 --- a/src/components/Basic/index.ts +++ b/src/components/Basic/index.ts @@ -1,9 +1,5 @@ -import { createAsyncComponent } from '/@/utils/factory/createAsyncComponent'; import BasicArrow from './src/BasicArrow.vue'; import BasicTitle from './src/BasicTitle.vue'; +import BasicHelp from './src/BasicHelp.vue'; -export { BasicArrow, BasicTitle }; - -// export const BasicArrow = createAsyncComponent(() => import('./src/BasicArrow.vue')); -export const BasicHelp = createAsyncComponent(() => import('./src/BasicHelp.vue')); -// export const BasicTitle = createAsyncComponent(() => import('./src/BasicTitle.vue')); +export { BasicArrow, BasicTitle, BasicHelp }; diff --git a/src/components/Basic/src/BasicArrow.vue b/src/components/Basic/src/BasicArrow.vue index 14a81d50..7edd660e 100644 --- a/src/components/Basic/src/BasicArrow.vue +++ b/src/components/Basic/src/BasicArrow.vue @@ -20,7 +20,6 @@ name: 'BasicArrow', components: { Icon }, props: { - // Expand contract, expand by default expand: propTypes.bool, top: propTypes.bool, bottom: propTypes.bool, diff --git a/src/components/Basic/src/BasicHelp.vue b/src/components/Basic/src/BasicHelp.vue index e403fc5d..46578222 100644 --- a/src/components/Basic/src/BasicHelp.vue +++ b/src/components/Basic/src/BasicHelp.vue @@ -1,6 +1,6 @@