From 7f910b1e1164f37c0842c1307875a4361eff2cbf Mon Sep 17 00:00:00 2001 From: luolx Date: Fri, 11 Jul 2025 22:43:25 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=B7=E5=BA=B7=E5=A8=81=E8=A7=86=E9=9B=AA?= =?UTF-8?q?=E4=BA=AE=E5=B7=A5=E7=A8=8B=E5=AE=A2=E6=B5=81=E7=BB=9F=E8=AE=A1?= =?UTF-8?q?=E5=88=86=E6=9E=90=E6=8E=A5=E5=8F=A3=E5=AF=B9=E6=8E=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/components/IconSelect/index.vue | 111 ++++++++++++++++++ .../src/components/IconSelect/requireIcons.js | 8 ++ 2 files changed, 119 insertions(+) create mode 100644 Dkl-vue3-ui-DP/src/components/IconSelect/index.vue create mode 100644 Dkl-vue3-ui-DP/src/components/IconSelect/requireIcons.js diff --git a/Dkl-vue3-ui-DP/src/components/IconSelect/index.vue b/Dkl-vue3-ui-DP/src/components/IconSelect/index.vue new file mode 100644 index 0000000..517a4af --- /dev/null +++ b/Dkl-vue3-ui-DP/src/components/IconSelect/index.vue @@ -0,0 +1,111 @@ + + + + + \ No newline at end of file diff --git a/Dkl-vue3-ui-DP/src/components/IconSelect/requireIcons.js b/Dkl-vue3-ui-DP/src/components/IconSelect/requireIcons.js new file mode 100644 index 0000000..ac22fd7 --- /dev/null +++ b/Dkl-vue3-ui-DP/src/components/IconSelect/requireIcons.js @@ -0,0 +1,8 @@ +let icons = [] +const modules = import.meta.glob('./../../assets/icons/svg/*.svg'); +for (const path in modules) { + const p = path.split('assets/icons/svg/')[1].split('.svg')[0]; + icons.push(p); +} + +export default icons \ No newline at end of file