Skip to content

Commit 5b29995

Browse files
committed
add icon
1 parent 5e4d680 commit 5b29995

File tree

4 files changed

+174
-73
lines changed

4 files changed

+174
-73
lines changed

bun.lock

Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
"dependencies": {
1414
"@element-plus/icons-vue": "^2.3.2",
1515
"element-plus": "^2.13.5",
16+
"oh-vue-icons": "^1.0.0-rc3",
1617
"vue": "^3.5.29",
1718
"vue-router": "4"
1819
},

src/main.ts

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,31 @@ import * as ElementPlusIconsVue from '@element-plus/icons-vue';
55
import router from './router';
66
import App from './App.vue';
77
import './assets/style.css';
8-
import 'element-plus/theme-chalk/dark/css-vars.css';
8+
import { OhVueIcon, addIcons } from 'oh-vue-icons';
9+
import {
10+
SiGithub,
11+
SiLinux,
12+
SiDebian,
13+
SiUbuntu,
14+
SiArchlinux,
15+
SiFedora,
16+
SiOpensuse,
17+
SiNixos,
18+
} from 'oh-vue-icons/icons';
19+
20+
addIcons(
21+
SiGithub,
22+
SiLinux,
23+
SiDebian,
24+
SiUbuntu,
25+
SiArchlinux,
26+
SiFedora,
27+
SiOpensuse,
28+
SiNixos,
29+
);
930

1031
const app = createApp(App);
32+
app.component('v-icon', OhVueIcon);
1133

1234
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
1335
app.component(key, component);

0 commit comments

Comments
 (0)