diff --git a/src/assets/custom.css b/src/assets/custom.css
index 2c0fbda..1d03c32 100644
--- a/src/assets/custom.css
+++ b/src/assets/custom.css
@@ -41,3 +41,11 @@
}
}
}
+
+
+/* 自定义图标 */
+.customIcon{
+ display: inline-block;
+ line-height: 0;
+ vertical-align: middle;
+}
diff --git a/src/assets/main.css b/src/assets/main.css
index 02fa706..04f4201 100644
--- a/src/assets/main.css
+++ b/src/assets/main.css
@@ -24,19 +24,6 @@ body{
overflow: hidden;
}
-a,
-.green {
- text-decoration: none;
- color: hsla(160, 100%, 37%, 1);
- transition: 0.4s;
- padding: 3px;
-}
-
-@media (hover: hover) {
- a:hover {
- background-color: hsla(160, 100%, 37%, 0.2);
- }
-}
@media (min-width: 1024px) {
/*body {*/
diff --git a/src/components/AntDesignVue/CustomAntDesignVue/IconSelect/customIconSelect.vue b/src/components/AntDesignVue/CustomAntDesignVue/IconSelect/customIconSelect.vue
new file mode 100644
index 0000000..2ff3ec2
--- /dev/null
+++ b/src/components/AntDesignVue/CustomAntDesignVue/IconSelect/customIconSelect.vue
@@ -0,0 +1,144 @@
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/components/AntDesignVue/CustomAntDesignVue/IconSelect/index.vue b/src/components/AntDesignVue/CustomAntDesignVue/IconSelect/index.vue
index 5269c62..0301b87 100644
--- a/src/components/AntDesignVue/CustomAntDesignVue/IconSelect/index.vue
+++ b/src/components/AntDesignVue/CustomAntDesignVue/IconSelect/index.vue
@@ -1,6 +1,8 @@
@@ -40,7 +42,9 @@ const option = [
{{ item.label }}
-
+
+ {{ opt?.cname }}
+
diff --git a/src/components/AntDesignVue/CustomAntDesignVue/index.js b/src/components/AntDesignVue/CustomAntDesignVue/index.js
index fd7262d..11b8384 100644
--- a/src/components/AntDesignVue/CustomAntDesignVue/index.js
+++ b/src/components/AntDesignVue/CustomAntDesignVue/index.js
@@ -15,6 +15,7 @@ import CreateAntdButton from './Button/CreateAntdButton.vue';
import AckCreateAntdButton from './Button/AckCreateAntdButton.vue';
import AntdModalTemplate from './AntdModalTemplate/index.vue';
import IconSelect from './IconSelect/index.vue';
+import CustomIconSelect from './IconSelect/customIconSelect.vue';
// console.log(AntdModalTemplate);
@@ -25,6 +26,7 @@ export default function setupCustomAntdComponents(app) {
AckCreateAntdButton,
AntdModalTemplate,
IconSelect,
+ CustomIconSelect
];
for (let component of customComponentList) {
app.component(component.name, component);
diff --git a/src/components/AntDesignVue/Icon/asyncCustomIcon.js b/src/components/AntDesignVue/Icon/asyncCustomIcon.js
index 94604c3..cc0ec88 100644
--- a/src/components/AntDesignVue/Icon/asyncCustomIcon.js
+++ b/src/components/AntDesignVue/Icon/asyncCustomIcon.js
@@ -10,52 +10,43 @@
// | -*-*-*- (时间--修改人--修改说明) -*-*-*-
// | =
// | ------------------------------------------------------------
+import { defineComponent, h } from 'vue';
+import Icon from '@ant-design/icons-vue';
-import { defineAsyncComponent, h } from 'vue';
-
-const svgModules = import.meta.glob('./icon1/*.svg', { as: 'raw' });
-// console.log(svgModules);
-//
-// for (const [path, importFunc] of Object.entries(svgModules)) {
-//
-// try {
-// // 解析 Promise 以获取 SVG 文本内容
-// const svgContent = await importFunc();
-// // 这里你可以对 svgContent 进行处理,例如将其转换为 URL 或 Blob 对象,或者直接使用它
-// console.log(path, svgContent); // 注意:可能需要根据实际情况访问正确的属性(如 .default)
-// } catch (error) {
-// console.error(`Failed to load SVG from ${path}`, error);
-// }
-// }
-
-const svgComponentList = [];
-
-for (const path in svgModules) {
- // ! svg文件名
- const name = path.match(/\/(\w+)\.svg/)[1];
- // ! 异步组件
- const asyncSvgComponent = defineAsyncComponent(() => {
- console.log('A');
- svgModules[path]().then((module) => {
- console.log(module);
- const svg = module.default || module;
- const svgContent = svg.replace(/<\?xml.*?\?>|/g, '');
- return {
- name,
- cname: 'C' + name,
- setup() {
- return () =>
- h('svg', {
- innerHTML: svgContent,
- class: 'svg-icon',
- });
- },
- };
- }).catch(e => {
- console.log(e);
- });
+// 批量导出指定目录下的文件
+const svgContentPool1 = import.meta.glob('./icon1/*.svg', {
+ query: '?raw',
+ import: 'default',
+});
+// 建立临时组件列表
+const iconComponentList1 = [];
+for (const path in svgContentPool1) {
+ // 获取svg 路径中的文件名
+ const svgName = path.match(/\/(\w+)\.svg/)[1];
+ // 定义AntdIcon嵌套组件
+ const icon = defineComponent({
+ name: svgName,
+ cname: 'C' + svgName,
+ async setup() {
+ const svgContent = await getSvgContent(path, svgContentPool1);
+ return () =>
+ h(Icon, {
+ component: () => h('i', { innerHTML: svgContent }),
+ });
+ },
+ });
+ iconComponentList1.push(icon);
+}
+async function getSvgContent(path, moduleList){
+ let module = await moduleList[path]();
+ let svgContent = module.default || module;
+ // 去除svg多余内容
+ svgContent = svgContent.replace(/<\?xml.*?\?>|/g, '');
+ // 设置svg默认大小正则表达式,匹配并替换width和height属性为1em
+ const sizeReplacementRegex = /(width|height)="([^"]+)"/g;
+ return svgContent.replace(sizeReplacementRegex, (match, prop) => {
+ return `${prop}="1em"`;
});
- svgComponentList.push(asyncSvgComponent);
}
-export const SvgComponentList = svgComponentList;
+export const AsyncIconComponentList1 = iconComponentList1;
diff --git a/src/components/AntDesignVue/Icon/customIcon.js b/src/components/AntDesignVue/Icon/customIcon.js
index 1e33b75..3f31985 100644
--- a/src/components/AntDesignVue/Icon/customIcon.js
+++ b/src/components/AntDesignVue/Icon/customIcon.js
@@ -11,70 +11,53 @@
// | =
// | ------------------------------------------------------------
import { defineComponent, h } from 'vue';
-import Icon, { HomeOutlined } from '@ant-design/icons-vue';
-
-console.log(HomeOutlined);
+import Icon from '@ant-design/icons-vue';
+// 批量导出指定目录下的文件
const svgContentPool1 = import.meta.glob('./icon1/*.svg', {
eager: true,
query: '?raw',
import: 'default',
});
+// 建立临时组件列表
const iconComponentList1 = [];
for (const path in svgContentPool1) {
+ // 获取svg 路径中的文件名
const svgName = path.match(/\/(\w+)\.svg/)[1];
+ // 读取svg内容
let svgContent = svgContentPool1[path].default || svgContentPool1[path];
+ // 去除svg多余内容
svgContent = svgContent.replace(/<\?xml.*?\?>|/g, '');
- // 正则表达式,匹配并替换width和height属性为1em
+ // 设置svg默认大小正则表达式,匹配并替换width和height属性为1em
const sizeReplacementRegex = /(width|height)="([^"]+)"/g;
svgContent = svgContent.replace(sizeReplacementRegex, (match, prop, value) => {
return `${prop}="1em"`;
});
- const SvgComponent = defineComponent({
+ // 定义AntdIcon嵌套组件
+ const icon = defineComponent({
name: svgName,
cname: 'C' + svgName,
- setup() {
- return () =>
- h('div', {
- innerHTML: svgContent,
- attrs: { viewBox: '0 0 1024 1024' },
- });
- },
- });
- // name: SvgComponent.name,
- // cname: SvgComponent.cname,
- // console.log(SvgComponent);
- const icon = defineComponent({
- name: SvgComponent.name,
setup(props) {
return () =>
h(Icon, {
...props,
- component: SvgComponent,
+ component: () => h('i', { innerHTML: svgContent }),
});
},
});
- // iconComponentList1.push(SvgComponent);
iconComponentList1.push(icon);
}
export const IconComponentList1 = iconComponentList1;
-export const A = defineComponent({
- name: 'AntDesignVue',
- setup() {
- return () =>
- h(Icon, {
- component: HomeOutlined,
- });
- },
-});
-export const B = defineComponent({
- name: 'AntDesignVueB',
- setup() {
- return () =>
- h(Icon, {
- component: iconComponentList1[0],
- });
- },
-});
-export const C = iconComponentList1[0];
+
+// const SvgComponent = defineComponent({
+// name: svgName,
+// cname: 'C' + svgName,
+// setup() {
+// return () =>
+// h('div', {
+// innerHTML: svgContent,
+// attrs: { viewBox: '0 0 1024 1024' },
+// });
+// },
+// });
diff --git a/src/components/AntDesignVue/Icon/icon2/ChatDotRound.svg b/src/components/AntDesignVue/Icon/icon2/ChatDotRound.svg
new file mode 100644
index 0000000..27369c8
--- /dev/null
+++ b/src/components/AntDesignVue/Icon/icon2/ChatDotRound.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/src/components/AntDesignVue/Icon/icon2/CircleMore.svg b/src/components/AntDesignVue/Icon/icon2/CircleMore.svg
new file mode 100644
index 0000000..b9245cc
--- /dev/null
+++ b/src/components/AntDesignVue/Icon/icon2/CircleMore.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/src/components/AntDesignVue/Icon/icon2/CircleSmile.svg b/src/components/AntDesignVue/Icon/icon2/CircleSmile.svg
new file mode 100644
index 0000000..100c371
--- /dev/null
+++ b/src/components/AntDesignVue/Icon/icon2/CircleSmile.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/src/components/AntDesignVue/Icon/icon2/Search.svg b/src/components/AntDesignVue/Icon/icon2/Search.svg
new file mode 100644
index 0000000..7d19056
--- /dev/null
+++ b/src/components/AntDesignVue/Icon/icon2/Search.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/src/components/AntDesignVue/Icon/icon2/SettingPolygon.svg b/src/components/AntDesignVue/Icon/icon2/SettingPolygon.svg
new file mode 100644
index 0000000..4585448
--- /dev/null
+++ b/src/components/AntDesignVue/Icon/icon2/SettingPolygon.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/src/components/AntDesignVue/Icon/icon2/TargetArrow.svg b/src/components/AntDesignVue/Icon/icon2/TargetArrow.svg
new file mode 100644
index 0000000..c179067
--- /dev/null
+++ b/src/components/AntDesignVue/Icon/icon2/TargetArrow.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/src/components/AntDesignVue/Icon/icon2/Upload.svg b/src/components/AntDesignVue/Icon/icon2/Upload.svg
new file mode 100644
index 0000000..800999c
--- /dev/null
+++ b/src/components/AntDesignVue/Icon/icon2/Upload.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/src/components/AntDesignVue/Icon/icon2/UserHeart.svg b/src/components/AntDesignVue/Icon/icon2/UserHeart.svg
new file mode 100644
index 0000000..0d803ff
--- /dev/null
+++ b/src/components/AntDesignVue/Icon/icon2/UserHeart.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/src/components/AntDesignVue/Icon/icon2/UserMore.svg b/src/components/AntDesignVue/Icon/icon2/UserMore.svg
new file mode 100644
index 0000000..2c4c8e8
--- /dev/null
+++ b/src/components/AntDesignVue/Icon/icon2/UserMore.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/src/components/AntDesignVue/Icon/icon2/UserOperation.svg b/src/components/AntDesignVue/Icon/icon2/UserOperation.svg
new file mode 100644
index 0000000..adba0a2
--- /dev/null
+++ b/src/components/AntDesignVue/Icon/icon2/UserOperation.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/src/components/AntDesignVue/Icon/icon2/UserPlus.svg b/src/components/AntDesignVue/Icon/icon2/UserPlus.svg
new file mode 100644
index 0000000..a1f45ee
--- /dev/null
+++ b/src/components/AntDesignVue/Icon/icon2/UserPlus.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/src/components/AntDesignVue/Icon/icon2/a-dingwei2.svg b/src/components/AntDesignVue/Icon/icon2/a-dingwei2.svg
new file mode 100644
index 0000000..c8c323a
--- /dev/null
+++ b/src/components/AntDesignVue/Icon/icon2/a-dingwei2.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/src/components/AntDesignVue/Icon/icon2/add-circle.svg b/src/components/AntDesignVue/Icon/icon2/add-circle.svg
new file mode 100644
index 0000000..788aa4a
--- /dev/null
+++ b/src/components/AntDesignVue/Icon/icon2/add-circle.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/src/components/AntDesignVue/Icon/icon2/aichegujiabeifen6.svg b/src/components/AntDesignVue/Icon/icon2/aichegujiabeifen6.svg
new file mode 100644
index 0000000..47f2224
--- /dev/null
+++ b/src/components/AntDesignVue/Icon/icon2/aichegujiabeifen6.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/src/components/AntDesignVue/Icon/icon2/aichegujiabeifen7.svg b/src/components/AntDesignVue/Icon/icon2/aichegujiabeifen7.svg
new file mode 100644
index 0000000..5fe2b63
--- /dev/null
+++ b/src/components/AntDesignVue/Icon/icon2/aichegujiabeifen7.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/src/components/AntDesignVue/Icon/icon2/arrow-left-circle.svg b/src/components/AntDesignVue/Icon/icon2/arrow-left-circle.svg
new file mode 100644
index 0000000..335a74c
--- /dev/null
+++ b/src/components/AntDesignVue/Icon/icon2/arrow-left-circle.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/src/components/AntDesignVue/Icon/icon2/arrow-right-circle.svg b/src/components/AntDesignVue/Icon/icon2/arrow-right-circle.svg
new file mode 100644
index 0000000..203c48c
--- /dev/null
+++ b/src/components/AntDesignVue/Icon/icon2/arrow-right-circle.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/src/components/AntDesignVue/Icon/icon2/arrow-up-circle.svg b/src/components/AntDesignVue/Icon/icon2/arrow-up-circle.svg
new file mode 100644
index 0000000..7090d8b
--- /dev/null
+++ b/src/components/AntDesignVue/Icon/icon2/arrow-up-circle.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/src/components/AntDesignVue/Icon/icon2/ashbin.svg b/src/components/AntDesignVue/Icon/icon2/ashbin.svg
new file mode 100644
index 0000000..5bae756
--- /dev/null
+++ b/src/components/AntDesignVue/Icon/icon2/ashbin.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/src/components/AntDesignVue/Icon/icon2/banzuguanli.svg b/src/components/AntDesignVue/Icon/icon2/banzuguanli.svg
new file mode 100644
index 0000000..bff01fe
--- /dev/null
+++ b/src/components/AntDesignVue/Icon/icon2/banzuguanli.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/src/components/AntDesignVue/Icon/icon2/baoguofahuo-xianxing.svg b/src/components/AntDesignVue/Icon/icon2/baoguofahuo-xianxing.svg
new file mode 100644
index 0000000..3b41959
--- /dev/null
+++ b/src/components/AntDesignVue/Icon/icon2/baoguofahuo-xianxing.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/src/components/AntDesignVue/Icon/icon2/brightness.svg b/src/components/AntDesignVue/Icon/icon2/brightness.svg
new file mode 100644
index 0000000..b224e37
--- /dev/null
+++ b/src/components/AntDesignVue/Icon/icon2/brightness.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/src/components/AntDesignVue/Icon/icon2/browse.svg b/src/components/AntDesignVue/Icon/icon2/browse.svg
new file mode 100644
index 0000000..6994389
--- /dev/null
+++ b/src/components/AntDesignVue/Icon/icon2/browse.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/src/components/AntDesignVue/Icon/icon2/caidan.svg b/src/components/AntDesignVue/Icon/icon2/caidan.svg
new file mode 100644
index 0000000..92ace99
--- /dev/null
+++ b/src/components/AntDesignVue/Icon/icon2/caidan.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/src/components/AntDesignVue/Icon/icon2/caigou-xianxing.svg b/src/components/AntDesignVue/Icon/icon2/caigou-xianxing.svg
new file mode 100644
index 0000000..9b2dbc9
--- /dev/null
+++ b/src/components/AntDesignVue/Icon/icon2/caigou-xianxing.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/src/components/AntDesignVue/Icon/icon2/caigou.svg b/src/components/AntDesignVue/Icon/icon2/caigou.svg
new file mode 100644
index 0000000..98b2a40
--- /dev/null
+++ b/src/components/AntDesignVue/Icon/icon2/caigou.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/src/components/AntDesignVue/Icon/icon2/camera.svg b/src/components/AntDesignVue/Icon/icon2/camera.svg
new file mode 100644
index 0000000..25671be
--- /dev/null
+++ b/src/components/AntDesignVue/Icon/icon2/camera.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/src/components/AntDesignVue/Icon/icon2/chart-pie.svg b/src/components/AntDesignVue/Icon/icon2/chart-pie.svg
new file mode 100644
index 0000000..9021e37
--- /dev/null
+++ b/src/components/AntDesignVue/Icon/icon2/chart-pie.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/src/components/AntDesignVue/Icon/icon2/clock-filling.svg b/src/components/AntDesignVue/Icon/icon2/clock-filling.svg
new file mode 100644
index 0000000..eb6f895
--- /dev/null
+++ b/src/components/AntDesignVue/Icon/icon2/clock-filling.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/src/components/AntDesignVue/Icon/icon2/code.svg b/src/components/AntDesignVue/Icon/icon2/code.svg
new file mode 100644
index 0000000..4fbcc32
--- /dev/null
+++ b/src/components/AntDesignVue/Icon/icon2/code.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/src/components/AntDesignVue/Icon/icon2/cry-filling.svg b/src/components/AntDesignVue/Icon/icon2/cry-filling.svg
new file mode 100644
index 0000000..26013b3
--- /dev/null
+++ b/src/components/AntDesignVue/Icon/icon2/cry-filling.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/src/components/AntDesignVue/Icon/icon2/cry.svg b/src/components/AntDesignVue/Icon/icon2/cry.svg
new file mode 100644
index 0000000..29a55fe
--- /dev/null
+++ b/src/components/AntDesignVue/Icon/icon2/cry.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/src/components/AntDesignVue/Icon/icon2/delete-filling.svg b/src/components/AntDesignVue/Icon/icon2/delete-filling.svg
new file mode 100644
index 0000000..ec74d61
--- /dev/null
+++ b/src/components/AntDesignVue/Icon/icon2/delete-filling.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/src/components/AntDesignVue/Icon/icon2/direction-down-circle.svg b/src/components/AntDesignVue/Icon/icon2/direction-down-circle.svg
new file mode 100644
index 0000000..e019bc1
--- /dev/null
+++ b/src/components/AntDesignVue/Icon/icon2/direction-down-circle.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/src/components/AntDesignVue/Icon/icon2/error.svg b/src/components/AntDesignVue/Icon/icon2/error.svg
new file mode 100644
index 0000000..382cd19
--- /dev/null
+++ b/src/components/AntDesignVue/Icon/icon2/error.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/src/components/AntDesignVue/Icon/icon2/eye-close.svg b/src/components/AntDesignVue/Icon/icon2/eye-close.svg
new file mode 100644
index 0000000..a241941
--- /dev/null
+++ b/src/components/AntDesignVue/Icon/icon2/eye-close.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/src/components/AntDesignVue/Icon/icon2/fanlifill.svg b/src/components/AntDesignVue/Icon/icon2/fanlifill.svg
new file mode 100644
index 0000000..af3c66d
--- /dev/null
+++ b/src/components/AntDesignVue/Icon/icon2/fanlifill.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/src/components/AntDesignVue/Icon/icon2/gengduo.svg b/src/components/AntDesignVue/Icon/icon2/gengduo.svg
new file mode 100644
index 0000000..28b93c5
--- /dev/null
+++ b/src/components/AntDesignVue/Icon/icon2/gengduo.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/src/components/AntDesignVue/Icon/icon2/gerenzhongxin-zhihui.svg b/src/components/AntDesignVue/Icon/icon2/gerenzhongxin-zhihui.svg
new file mode 100644
index 0000000..c0b4f27
--- /dev/null
+++ b/src/components/AntDesignVue/Icon/icon2/gerenzhongxin-zhihui.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/src/components/AntDesignVue/Icon/icon2/guanjiangangwei.svg b/src/components/AntDesignVue/Icon/icon2/guanjiangangwei.svg
new file mode 100644
index 0000000..7974a3e
--- /dev/null
+++ b/src/components/AntDesignVue/Icon/icon2/guanjiangangwei.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/src/components/AntDesignVue/Icon/icon2/icon-test.svg b/src/components/AntDesignVue/Icon/icon2/icon-test.svg
new file mode 100644
index 0000000..8fc00ca
--- /dev/null
+++ b/src/components/AntDesignVue/Icon/icon2/icon-test.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/src/components/AntDesignVue/Icon/icon2/icon-test_1.svg b/src/components/AntDesignVue/Icon/icon2/icon-test_1.svg
new file mode 100644
index 0000000..9bd2032
--- /dev/null
+++ b/src/components/AntDesignVue/Icon/icon2/icon-test_1.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/src/components/AntDesignVue/Icon/icon2/jiaoseguanli.svg b/src/components/AntDesignVue/Icon/icon2/jiaoseguanli.svg
new file mode 100644
index 0000000..d6b3cb6
--- /dev/null
+++ b/src/components/AntDesignVue/Icon/icon2/jiaoseguanli.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/src/components/AntDesignVue/Icon/icon2/jinrongmaichebeifen.svg b/src/components/AntDesignVue/Icon/icon2/jinrongmaichebeifen.svg
new file mode 100644
index 0000000..998b22d
--- /dev/null
+++ b/src/components/AntDesignVue/Icon/icon2/jinrongmaichebeifen.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/src/components/AntDesignVue/Icon/icon2/kaitongfuwu.svg b/src/components/AntDesignVue/Icon/icon2/kaitongfuwu.svg
new file mode 100644
index 0000000..664f42a
--- /dev/null
+++ b/src/components/AntDesignVue/Icon/icon2/kaitongfuwu.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/src/components/AntDesignVue/Icon/icon2/keyboard-26.svg b/src/components/AntDesignVue/Icon/icon2/keyboard-26.svg
new file mode 100644
index 0000000..7d0c2b8
--- /dev/null
+++ b/src/components/AntDesignVue/Icon/icon2/keyboard-26.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/src/components/AntDesignVue/Icon/icon2/keyboard-9.svg b/src/components/AntDesignVue/Icon/icon2/keyboard-9.svg
new file mode 100644
index 0000000..3f07f69
--- /dev/null
+++ b/src/components/AntDesignVue/Icon/icon2/keyboard-9.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/src/components/AntDesignVue/Icon/icon2/kongzhonghuayuan.svg b/src/components/AntDesignVue/Icon/icon2/kongzhonghuayuan.svg
new file mode 100644
index 0000000..9083680
--- /dev/null
+++ b/src/components/AntDesignVue/Icon/icon2/kongzhonghuayuan.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/src/components/AntDesignVue/Icon/icon2/lvyuedanbao.svg b/src/components/AntDesignVue/Icon/icon2/lvyuedanbao.svg
new file mode 100644
index 0000000..86096a5
--- /dev/null
+++ b/src/components/AntDesignVue/Icon/icon2/lvyuedanbao.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/src/components/AntDesignVue/Icon/icon2/meh-filling.svg b/src/components/AntDesignVue/Icon/icon2/meh-filling.svg
new file mode 100644
index 0000000..cd5a9b6
--- /dev/null
+++ b/src/components/AntDesignVue/Icon/icon2/meh-filling.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/src/components/AntDesignVue/Icon/icon2/meh.svg b/src/components/AntDesignVue/Icon/icon2/meh.svg
new file mode 100644
index 0000000..b0f2c64
--- /dev/null
+++ b/src/components/AntDesignVue/Icon/icon2/meh.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/src/components/AntDesignVue/Icon/icon2/minus-circle.svg b/src/components/AntDesignVue/Icon/icon2/minus-circle.svg
new file mode 100644
index 0000000..566be2c
--- /dev/null
+++ b/src/components/AntDesignVue/Icon/icon2/minus-circle.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/src/components/AntDesignVue/Icon/icon2/more.svg b/src/components/AntDesignVue/Icon/icon2/more.svg
new file mode 100644
index 0000000..d0e27bb
--- /dev/null
+++ b/src/components/AntDesignVue/Icon/icon2/more.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/src/components/AntDesignVue/Icon/icon2/nan.svg b/src/components/AntDesignVue/Icon/icon2/nan.svg
new file mode 100644
index 0000000..127bc72
--- /dev/null
+++ b/src/components/AntDesignVue/Icon/icon2/nan.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/src/components/AntDesignVue/Icon/icon2/nv.svg b/src/components/AntDesignVue/Icon/icon2/nv.svg
new file mode 100644
index 0000000..7006750
--- /dev/null
+++ b/src/components/AntDesignVue/Icon/icon2/nv.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/src/components/AntDesignVue/Icon/icon2/pinglun.svg b/src/components/AntDesignVue/Icon/icon2/pinglun.svg
new file mode 100644
index 0000000..bf6284e
--- /dev/null
+++ b/src/components/AntDesignVue/Icon/icon2/pinglun.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/src/components/AntDesignVue/Icon/icon2/remen.svg b/src/components/AntDesignVue/Icon/icon2/remen.svg
new file mode 100644
index 0000000..808f0b4
--- /dev/null
+++ b/src/components/AntDesignVue/Icon/icon2/remen.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/src/components/AntDesignVue/Icon/icon2/renyuanguanli.svg b/src/components/AntDesignVue/Icon/icon2/renyuanguanli.svg
new file mode 100644
index 0000000..4ea9ae1
--- /dev/null
+++ b/src/components/AntDesignVue/Icon/icon2/renyuanguanli.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/src/components/AntDesignVue/Icon/icon2/sanfangxieyi.svg b/src/components/AntDesignVue/Icon/icon2/sanfangxieyi.svg
new file mode 100644
index 0000000..5307a7f
--- /dev/null
+++ b/src/components/AntDesignVue/Icon/icon2/sanfangxieyi.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/src/components/AntDesignVue/Icon/icon2/setting-filling.svg b/src/components/AntDesignVue/Icon/icon2/setting-filling.svg
new file mode 100644
index 0000000..e97e9a5
--- /dev/null
+++ b/src/components/AntDesignVue/Icon/icon2/setting-filling.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/src/components/AntDesignVue/Icon/icon2/setting.svg b/src/components/AntDesignVue/Icon/icon2/setting.svg
new file mode 100644
index 0000000..a78f999
--- /dev/null
+++ b/src/components/AntDesignVue/Icon/icon2/setting.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/src/components/AntDesignVue/Icon/icon2/shandian.svg b/src/components/AntDesignVue/Icon/icon2/shandian.svg
new file mode 100644
index 0000000..8e89683
--- /dev/null
+++ b/src/components/AntDesignVue/Icon/icon2/shandian.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/src/components/AntDesignVue/Icon/icon2/shequ.svg b/src/components/AntDesignVue/Icon/icon2/shequ.svg
new file mode 100644
index 0000000..1c8dc17
--- /dev/null
+++ b/src/components/AntDesignVue/Icon/icon2/shequ.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/src/components/AntDesignVue/Icon/icon2/shequ_1.svg b/src/components/AntDesignVue/Icon/icon2/shequ_1.svg
new file mode 100644
index 0000000..9fb51d7
--- /dev/null
+++ b/src/components/AntDesignVue/Icon/icon2/shequ_1.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/src/components/AntDesignVue/Icon/icon2/shoucang.svg b/src/components/AntDesignVue/Icon/icon2/shoucang.svg
new file mode 100644
index 0000000..ba1bfe1
--- /dev/null
+++ b/src/components/AntDesignVue/Icon/icon2/shoucang.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/src/components/AntDesignVue/Icon/icon2/shouye-zhihui.svg b/src/components/AntDesignVue/Icon/icon2/shouye-zhihui.svg
new file mode 100644
index 0000000..52e066b
--- /dev/null
+++ b/src/components/AntDesignVue/Icon/icon2/shouye-zhihui.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/src/components/AntDesignVue/Icon/icon2/shuju.svg b/src/components/AntDesignVue/Icon/icon2/shuju.svg
new file mode 100644
index 0000000..9e5c93d
--- /dev/null
+++ b/src/components/AntDesignVue/Icon/icon2/shuju.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/src/components/AntDesignVue/Icon/icon2/shujutongji.svg b/src/components/AntDesignVue/Icon/icon2/shujutongji.svg
new file mode 100644
index 0000000..ce68aa8
--- /dev/null
+++ b/src/components/AntDesignVue/Icon/icon2/shujutongji.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/src/components/AntDesignVue/Icon/icon2/smile-filling.svg b/src/components/AntDesignVue/Icon/icon2/smile-filling.svg
new file mode 100644
index 0000000..a596462
--- /dev/null
+++ b/src/components/AntDesignVue/Icon/icon2/smile-filling.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/src/components/AntDesignVue/Icon/icon2/smile.svg b/src/components/AntDesignVue/Icon/icon2/smile.svg
new file mode 100644
index 0000000..da7cd0f
--- /dev/null
+++ b/src/components/AntDesignVue/Icon/icon2/smile.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/src/components/AntDesignVue/Icon/icon2/socialfill.svg b/src/components/AntDesignVue/Icon/icon2/socialfill.svg
new file mode 100644
index 0000000..7e66dc0
--- /dev/null
+++ b/src/components/AntDesignVue/Icon/icon2/socialfill.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/src/components/AntDesignVue/Icon/icon2/stop.svg b/src/components/AntDesignVue/Icon/icon2/stop.svg
new file mode 100644
index 0000000..8412f9d
--- /dev/null
+++ b/src/components/AntDesignVue/Icon/icon2/stop.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/src/components/AntDesignVue/Icon/icon2/success-filling.svg b/src/components/AntDesignVue/Icon/icon2/success-filling.svg
new file mode 100644
index 0000000..8cdf11d
--- /dev/null
+++ b/src/components/AntDesignVue/Icon/icon2/success-filling.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/src/components/AntDesignVue/Icon/icon2/success.svg b/src/components/AntDesignVue/Icon/icon2/success.svg
new file mode 100644
index 0000000..cf93606
--- /dev/null
+++ b/src/components/AntDesignVue/Icon/icon2/success.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/src/components/AntDesignVue/Icon/icon2/tianranqi.svg b/src/components/AntDesignVue/Icon/icon2/tianranqi.svg
new file mode 100644
index 0000000..8742325
--- /dev/null
+++ b/src/components/AntDesignVue/Icon/icon2/tianranqi.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/src/components/AntDesignVue/Icon/icon2/time.svg b/src/components/AntDesignVue/Icon/icon2/time.svg
new file mode 100644
index 0000000..fff02ab
--- /dev/null
+++ b/src/components/AntDesignVue/Icon/icon2/time.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/src/components/AntDesignVue/Icon/icon2/user-filling.svg b/src/components/AntDesignVue/Icon/icon2/user-filling.svg
new file mode 100644
index 0000000..98144bc
--- /dev/null
+++ b/src/components/AntDesignVue/Icon/icon2/user-filling.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/src/components/AntDesignVue/Icon/icon2/user.svg b/src/components/AntDesignVue/Icon/icon2/user.svg
new file mode 100644
index 0000000..3393c28
--- /dev/null
+++ b/src/components/AntDesignVue/Icon/icon2/user.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/src/components/AntDesignVue/Icon/icon2/xiaoxi-zhihui.svg b/src/components/AntDesignVue/Icon/icon2/xiaoxi-zhihui.svg
new file mode 100644
index 0000000..a398435
--- /dev/null
+++ b/src/components/AntDesignVue/Icon/icon2/xiaoxi-zhihui.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/src/components/AntDesignVue/Icon/icon2/xihuan.svg b/src/components/AntDesignVue/Icon/icon2/xihuan.svg
new file mode 100644
index 0000000..97debf2
--- /dev/null
+++ b/src/components/AntDesignVue/Icon/icon2/xihuan.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/src/components/AntDesignVue/Icon/icon2/xinchoufafang.svg b/src/components/AntDesignVue/Icon/icon2/xinchoufafang.svg
new file mode 100644
index 0000000..04fdee0
--- /dev/null
+++ b/src/components/AntDesignVue/Icon/icon2/xinchoufafang.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/src/components/AntDesignVue/Icon/icon2/xiuxianqu.svg b/src/components/AntDesignVue/Icon/icon2/xiuxianqu.svg
new file mode 100644
index 0000000..2c8822c
--- /dev/null
+++ b/src/components/AntDesignVue/Icon/icon2/xiuxianqu.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/src/components/AntDesignVue/Icon/icon2/yanziwancheng.svg b/src/components/AntDesignVue/Icon/icon2/yanziwancheng.svg
new file mode 100644
index 0000000..42110cc
--- /dev/null
+++ b/src/components/AntDesignVue/Icon/icon2/yanziwancheng.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/src/components/AntDesignVue/Icon/icon2/yonghuguanli.svg b/src/components/AntDesignVue/Icon/icon2/yonghuguanli.svg
new file mode 100644
index 0000000..48f4103
--- /dev/null
+++ b/src/components/AntDesignVue/Icon/icon2/yonghuguanli.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/src/components/AntDesignVue/Icon/icon2/yunshuzhongwuliu-xianxing.svg b/src/components/AntDesignVue/Icon/icon2/yunshuzhongwuliu-xianxing.svg
new file mode 100644
index 0000000..34083b8
--- /dev/null
+++ b/src/components/AntDesignVue/Icon/icon2/yunshuzhongwuliu-xianxing.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/src/components/AntDesignVue/Icon/icon2/yunshuzhongwuliu.svg b/src/components/AntDesignVue/Icon/icon2/yunshuzhongwuliu.svg
new file mode 100644
index 0000000..bf08ad0
--- /dev/null
+++ b/src/components/AntDesignVue/Icon/icon2/yunshuzhongwuliu.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/src/components/AntDesignVue/Icon/icon2/zhuanchezhuanyongbeifen.svg b/src/components/AntDesignVue/Icon/icon2/zhuanchezhuanyongbeifen.svg
new file mode 100644
index 0000000..29cc0c8
--- /dev/null
+++ b/src/components/AntDesignVue/Icon/icon2/zhuanchezhuanyongbeifen.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/src/components/AntDesignVue/Icon/icon2/zhuanshuguwen.svg b/src/components/AntDesignVue/Icon/icon2/zhuanshuguwen.svg
new file mode 100644
index 0000000..11c83b9
--- /dev/null
+++ b/src/components/AntDesignVue/Icon/icon2/zhuanshuguwen.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/src/components/AntDesignVue/Icon/icon2/zoom-in.svg b/src/components/AntDesignVue/Icon/icon2/zoom-in.svg
new file mode 100644
index 0000000..1b663ba
--- /dev/null
+++ b/src/components/AntDesignVue/Icon/icon2/zoom-in.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/src/components/AntDesignVue/Icon/icon2/zoom-out.svg b/src/components/AntDesignVue/Icon/icon2/zoom-out.svg
new file mode 100644
index 0000000..ba3f57a
--- /dev/null
+++ b/src/components/AntDesignVue/Icon/icon2/zoom-out.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/src/components/AntDesignVue/Icon/index.js b/src/components/AntDesignVue/Icon/index.js
index 84322f4..a74cf9f 100644
--- a/src/components/AntDesignVue/Icon/index.js
+++ b/src/components/AntDesignVue/Icon/index.js
@@ -11,15 +11,47 @@
// | =
// | ------------------------------------------------------------
-import { MyIcon } from './customIcon.js';
+import { defineComponent, h } from 'vue';
+import Icon from '@ant-design/icons-vue';
+const iconPool1 = import.meta.glob('./icon1/*.svg', {
+ eager: true,
+ query: '?raw',
+ import: 'default',
+});
+const iconPool2 = import.meta.glob('./icon2/*.svg', {
+ eager: true,
+ query: '?raw',
+ import: 'default',
+});
-// ! 全局导出Antd图标组件
-export default function setupIconAntdComponents(app) {
- // const iconComponentList = [
- // { name: '', component: ''}
- // ];
- // for (let item of iconComponentList) {
- // app.component(item.name, item.component);
- // }
- app.component('MyIcon', MyIcon);
+function makeIcon(pool) {
+ const svgContentPool1 = pool;
+ const iconComponentList1 = [];
+ for (const path in svgContentPool1) {
+ // 获取svg 路径中的文件名
+ const svgName = path.split('./')[1].slice(0, -4).split('/').join('-');
+ // 读取svg内容
+ let svgContent = svgContentPool1[path].default || svgContentPool1[path];
+ // 去除svg多余内容
+ svgContent = svgContent.replace(/<\?xml.*?\?>|/g, '');
+ // 设置svg默认大小正则表达式,匹配并替换width和height属性为1em
+ const sizeReplacementRegex = /(width|height)="([^"]+)"/g;
+ svgContent = svgContent.replace(sizeReplacementRegex, (match, prop) => `${prop}="1em"`);
+ // 定义AntdIcon嵌套组件
+ const icon = defineComponent({
+ name: svgName,
+ cname: 'C' + svgName,
+ setup() {
+ return () =>
+ h(Icon, {
+ component: () => h('i', { innerHTML: svgContent, class: 'customIcon' }),
+ });
+ },
+ });
+ iconComponentList1.push(icon);
+ }
+ return iconComponentList1;
}
+
+export const custonIcon1 = makeIcon(iconPool1);
+export const custonIcon2 = makeIcon(iconPool2);
diff --git a/src/components/AntDesignVue/Icon/t.js b/src/components/AntDesignVue/Icon/t.js
deleted file mode 100644
index facce56..0000000
--- a/src/components/AntDesignVue/Icon/t.js
+++ /dev/null
@@ -1,49 +0,0 @@
-// | ------------------------------------------------------------
-// | @版本: version 0.1
-// | @创建人: 【Nie-hotok】
-// | @E-mail: x71291@outlook.com
-// | @所在项目: hoto-auth-vue3
-// | @文件描述: customIcon.js -
-// | @创建时间: 2024-07-03 21:41
-// | @更新时间: 2024-07-03 21:41
-// | @修改记录:
-// | -*-*-*- (时间--修改人--修改说明) -*-*-*-
-// | =
-// | ------------------------------------------------------------
-import { defineComponent, h } from 'vue';
-import Icon, { HomeOutlined } from '@ant-design/icons-vue';
-
-const svgContentPool1 = import.meta.glob('./icon1/*.svg', {
- eager: true,
- query: '?raw',
- import: 'default'
-});
-const iconComponentList1 = [];
-for (const path in svgContentPool1) {
- const svgName = path.match(/\/(\w+)\.svg/)[1];
- let svgContent = svgContentPool1[path].default || svgContentPool1[path];
- svgContent = svgContent.replace(/<\?xml.*?\?>|/g, '');
- const SvgComponent = defineComponent({
- name: svgName,
- cname: 'C' + svgName,
- setup() {
- return () =>
- h('div', {
- innerHTML: svgContent, attrs: { viewBox: '0 0 1024 1024' }
- });
- },
- });
- // name: SvgComponent.name,
- // cname: SvgComponent.cname,
- // console.log(SvgComponent);
- const icon = defineComponent({
- name: SvgComponent.name,
- setup() {
- return () => h(Icon, {}, HomeOutlined);
- },
- });
- // iconComponentList1.push(SvgComponent);
- iconComponentList1.push(Icon);
-}
-
-export const IconComponentList1 = iconComponentList1;
diff --git a/src/components/AntDesignVue/Icon/test.js b/src/components/AntDesignVue/Icon/test.js
deleted file mode 100644
index 10fcda2..0000000
--- a/src/components/AntDesignVue/Icon/test.js
+++ /dev/null
@@ -1,52 +0,0 @@
-// | ------------------------------------------------------------
-// | @版本: version 0.1
-// | @创建人: 【Nie-hotok】
-// | @E-mail: x71291@outlook.com
-// | @所在项目: hoto-auth-vue3
-// | @文件描述: test.js -
-// | @创建时间: 2024-07-03 22:43
-// | @更新时间: 2024-07-03 22:43
-// | @修改记录:
-// | -*-*-*- (时间--修改人--修改说明) -*-*-*-
-// | =
-// | ------------------------------------------------------------
-
-import { defineAsyncComponent, defineComponent, h } from 'vue';
-
-const iconPool = import.meta.glob('./icon1/*.svg', { eager: true, as: 'raw'});
-// const iconPool = import.meta.glob('./icon1/*.svg', );
-const nameList = [];
-const componentList = [];
-for (const path in iconPool) {
- const name = path.match(/\/(\w+)\.svg/)[1];
- nameList.push(name);
- const componentConfig = iconPool[path].default || iconPool[path];
- const svgContent = componentConfig.replace(/<\?xml.*?\?>|/g, '');
- // console.log(svgContent);
- const SvgComponent = defineComponent({
- name,
- // setup() {
- // return () => h('div',svgContent);
- // },
- // setup() {
- // return {
- // svgContent
- // };
- // },
- // render() {
- // return h('div', {
- // innerHTML: this.svgContent,
- // class: 'svg-icon'
- // });
- // }
- setup() {
- return () => h('div', {
- innerHTML: svgContent,
- });
- },
- });
- componentList.push(SvgComponent);
-}
-
-// export const NameList = nameList;
-export const ComponentList = componentList;
diff --git a/src/components/AntDesignVue/index.js b/src/components/AntDesignVue/index.js
index eeac9db..ee966fa 100644
--- a/src/components/AntDesignVue/index.js
+++ b/src/components/AntDesignVue/index.js
@@ -28,7 +28,7 @@ import {
Input,
Radio,
RadioGroup,
- InputNumber, Affix
+ InputNumber, Affix, Anchor, AnchorLink,
} from 'ant-design-vue';
import 'ant-design-vue/dist/reset.css';
@@ -64,6 +64,8 @@ export function setupCustomAntDesignVueComponents(app) {
Radio, // ! 单选
InputNumber, // ! 数字输入框
Affix, // ! 固钉
+ Anchor, // ! 锚点
+ AnchorLink,
];
for (let component of componentList) {
app.component(component.name, component);
diff --git a/src/components/NaiveUI/index.js b/src/components/NaiveUI/index.js
index 8975d89..c3c9f6d 100644
--- a/src/components/NaiveUI/index.js
+++ b/src/components/NaiveUI/index.js
@@ -23,7 +23,7 @@ import {
NSpace,
NTable,
NPopconfirm,
- NInputGroup,
+ NInputGroup, NAnchor, NAnchorLink,
} from 'naive-ui';
import { defineComponent, h, onMounted, ref } from 'vue';
@@ -66,6 +66,8 @@ export function setupCustomNaiveComponents(app) {
NInput, // ! 输入框
NSpace, // ! 间距
NPopconfirm, // ! 确认框
+ NAnchor,
+ NAnchorLink
];
for (let Component of ComponentList) {
const newComponent = createCustomComponent(Component);
diff --git a/src/views/Auth/Dict/DictForm.vue b/src/views/Auth/Dict/DictForm.vue
index a95ab55..bc8fe56 100644
--- a/src/views/Auth/Dict/DictForm.vue
+++ b/src/views/Auth/Dict/DictForm.vue
@@ -70,6 +70,9 @@ function handleChange(da){
const handleAck = () => {
props.data.handleAck(form)
}
+const handleCancel = () => {
+ props.data.handleCancel()
+}
@@ -108,6 +111,10 @@ const handleAck = () => {
+
+
+
+
@@ -124,7 +131,7 @@ const handleAck = () => {
- 取消
+ 取消
diff --git a/src/views/Auth/Dict/index.vue b/src/views/Auth/Dict/index.vue
index c7c2b19..34fff58 100644
--- a/src/views/Auth/Dict/index.vue
+++ b/src/views/Auth/Dict/index.vue
@@ -1,12 +1,13 @@
@@ -44,15 +47,18 @@ const formData = reactive({
-
-
-
-
-
+
+
+
+
+
+ 加载中...
+
+
-
+
diff --git a/src/views/Auth/Dict/t.vue b/src/views/Auth/Dict/t.vue
deleted file mode 100644
index dce6125..0000000
--- a/src/views/Auth/Dict/t.vue
+++ /dev/null
@@ -1,18 +0,0 @@
-
-
-
-
-
-
-
-
-