Skip to content

Commit

Permalink
feat: 全局引用 Arco 图标
Browse files Browse the repository at this point in the history
  • Loading branch information
oljc committed Jan 10, 2024
1 parent 0f16f8d commit b708ee8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion config/plugin/autoImport.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export default function autoImportPlugin() {
extensions: ['vue'],
resolvers: [
ArcoResolver({
resolveIcons: true
resolveIcons: false
})
],
dts: './src/types/components.d.ts'
Expand Down
2 changes: 2 additions & 0 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import './mock';
import App from './App.vue';
import '@/assets/style/global.less';
import '@/api/interceptor';
import ArcoVueIcon from '@arco-design/web-vue/es/icon';
import '@arco-design/web-vue/es/message/style/index.less';
import '@arco-design/web-vue/es/notification/style/index.less';
import '@arco-design/web-vue/es/modal/style/index.less';
Expand All @@ -17,6 +18,7 @@ const app = createApp(App);
app.use(router);
app.use(store);
app.use(i18n);
app.use(ArcoVueIcon);
app.use(globalComponents);
app.use(directive);

Expand Down

0 comments on commit b708ee8

Please sign in to comment.