From 306d14b911296ac08bcb0cc8d05f460e7e77de9a Mon Sep 17 00:00:00 2001 From: dx <1242347652@qq.com> Date: Sat, 25 Jan 2025 10:01:41 +0800 Subject: [PATCH] =?UTF-8?q?=E7=94=A8=E6=88=B7=E5=AE=A1=E6=A0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/plugins/icons.js | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 src/plugins/icons.js diff --git a/src/plugins/icons.js b/src/plugins/icons.js new file mode 100644 index 0000000..5fb3cdf --- /dev/null +++ b/src/plugins/icons.js @@ -0,0 +1,10 @@ +import * as components from "@element-plus/icons-vue"; + +export default{ + install:(app)=>{ + for (const key in components){ + const componentConfig = components[key]; + app.component(componentConfig.name, componentConfig); + } + } +} \ No newline at end of file