-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(projects): 引入soybean-admin-tab、去除vite-plugin-svg-icons,用unplugin…
…-icons实现自定义svg的iconify写法、代码优化
- Loading branch information
1 parent
b298af1
commit a1a57a1
Showing
93 changed files
with
266 additions
and
6,700 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
VITE_APP_BASE_URL=/ | ||
VITE_BASE_URL=/ | ||
|
||
VITE_APP_NAME=SoybeanAdmin | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
VITE_VISUALIZER=false |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,5 +11,6 @@ lib | |
/docs | ||
.vscode | ||
.local | ||
components.d.ts | ||
!.env-config.ts | ||
package.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,21 @@ | ||
import Icons from 'unplugin-icons/vite'; // iconify图标 | ||
import IconsResolver from 'unplugin-icons/resolver'; | ||
import Components from 'unplugin-vue-components/vite'; // 从指定目录自动导入组件 | ||
import { FileSystemIconLoader } from 'unplugin-icons/loaders'; | ||
|
||
export default [ | ||
Components({ | ||
dts: false, | ||
resolvers: [IconsResolver({ componentPrefix: 'icon' })] | ||
}), | ||
Icons({ scale: 1, defaultClass: 'inline-block' }) | ||
]; | ||
export default (srcPath: string) => { | ||
return [ | ||
Icons({ | ||
compiler: 'vue3', | ||
customCollections: { | ||
custom: FileSystemIconLoader(`${srcPath}/assets/svg`) | ||
}, | ||
scale: 1, | ||
defaultClass: 'inline-block' | ||
}), | ||
Components({ | ||
dts: false, | ||
resolvers: [IconsResolver({ customCollections: ['custom'], componentPrefix: 'icon' })] | ||
}) | ||
]; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.