1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
| import { h, defineComponent } from "vue";
| import { Icon as IconifyIcon } from "@iconify/vue";
|
| // Iconify Icon在Vue里在线使用(用于外网环境)
| export default defineComponent({
| name: "IconifyIconOnline",
| components: { IconifyIcon },
| props: {
| icon: {
| type: String,
| default: ""
| }
| },
| render() {
| const attrs = this.$attrs;
| return h(
| IconifyIcon,
| {
| icon: `${this.icon}`,
| "aria-hidden": false,
| style: attrs?.style
| ? Object.assign(attrs.style, { outline: "none" })
| : { outline: "none" },
| ...attrs
| },
| {
| default: () => []
| }
| );
| }
| });
|
|