xiaoxian521
3 years ago
27 changed files with 456 additions and 455 deletions
-
2mock/asyncRoutes.ts
-
19package.json
-
551pnpm-lock.yaml
-
27src/components/ReIcon/index.ts
-
70src/components/ReIcon/src/iconifyIconOffline.ts
-
30src/components/ReIcon/src/iconifyIconOnline.ts
-
2src/layout/components/appMain.vue
-
14src/layout/components/navbar.vue
-
4src/layout/components/notice/index.vue
-
2src/layout/components/panel/index.vue
-
9src/layout/components/setting/index.vue
-
8src/layout/components/sidebar/horizontal.vue
-
51src/layout/components/tag/index.vue
-
7src/layout/index.vue
-
5src/layout/types.ts
-
5src/main.ts
-
56src/plugins/element-plus/index.ts
-
2src/router/modules/error.ts
-
2src/router/modules/externalLink.ts
-
2src/router/modules/home.ts
-
2src/router/modules/remaining.ts
-
2src/store/modules/multiTags.ts
-
2src/store/modules/user.ts
-
2src/utils/storage/responsive.ts
-
16src/views/login.vue
-
18types/global.d.ts
-
1windi.config.ts
551
pnpm-lock.yaml
File diff suppressed because it is too large
View File
File diff suppressed because it is too large
View File
@ -0,0 +1,70 @@ |
|||||
|
import { h, defineComponent } from "vue"; |
||||
|
import { Icon as IconifyIcon, addIcon } from "@iconify/vue/dist/offline"; |
||||
|
import Check from "@iconify-icons/ep/check"; |
||||
|
import Menu from "@iconify-icons/ep/menu"; |
||||
|
import HomeFilled from "@iconify-icons/ep/home-filled"; |
||||
|
import SetUp from "@iconify-icons/ep/set-up"; |
||||
|
import Edit from "@iconify-icons/ep/edit"; |
||||
|
import Setting from "@iconify-icons/ep/setting"; |
||||
|
import Lollipop from "@iconify-icons/ep/lollipop"; |
||||
|
import Link from "@iconify-icons/ep/link"; |
||||
|
import Position from "@iconify-icons/ep/position"; |
||||
|
import Histogram from "@iconify-icons/ep/histogram"; |
||||
|
import RefreshRight from "@iconify-icons/ep/refresh-right"; |
||||
|
import ArrowDown from "@iconify-icons/ep/arrow-down"; |
||||
|
import Close from "@iconify-icons/ep/close"; |
||||
|
import CloseBold from "@iconify-icons/ep/close-bold"; |
||||
|
import Bell from "@iconify-icons/ep/bell"; |
||||
|
import Guide from "@iconify-icons/ep/guide"; |
||||
|
import User from "@iconify-icons/ep/user"; |
||||
|
import Iphone from "@iconify-icons/ep/iphone"; |
||||
|
import Location from "@iconify-icons/ep/location"; |
||||
|
import Tickets from "@iconify-icons/ep/tickets"; |
||||
|
import OfficeBuilding from "@iconify-icons/ep/office-building"; |
||||
|
import Notebook from "@iconify-icons/ep/notebook"; |
||||
|
addIcon("check", Check); |
||||
|
addIcon("menu", Menu); |
||||
|
addIcon("home-filled", HomeFilled); |
||||
|
addIcon("set-up", SetUp); |
||||
|
addIcon("edit", Edit); |
||||
|
addIcon("setting", Setting); |
||||
|
addIcon("lollipop", Lollipop); |
||||
|
addIcon("link", Link); |
||||
|
addIcon("position", Position); |
||||
|
addIcon("histogram", Histogram); |
||||
|
addIcon("refresh-right", RefreshRight); |
||||
|
addIcon("arrow-down", ArrowDown); |
||||
|
addIcon("close", Close); |
||||
|
addIcon("close-bold", CloseBold); |
||||
|
addIcon("bell", Bell); |
||||
|
addIcon("guide", Guide); |
||||
|
addIcon("user", User); |
||||
|
addIcon("iphone", Iphone); |
||||
|
addIcon("location", Location); |
||||
|
addIcon("tickets", Tickets); |
||||
|
addIcon("office-building", OfficeBuilding); |
||||
|
addIcon("notebook", Notebook); |
||||
|
|
||||
|
// Iconify Icon在Vue里离线使用(用于内网环境)
|
||||
|
// https://docs.iconify.design/icon-components/vue/offline.html
|
||||
|
export default defineComponent({ |
||||
|
name: "IconifyIcon", |
||||
|
components: { IconifyIcon }, |
||||
|
props: { |
||||
|
icon: { |
||||
|
type: String, |
||||
|
default: "" |
||||
|
} |
||||
|
}, |
||||
|
render() { |
||||
|
return h( |
||||
|
IconifyIcon, |
||||
|
{ |
||||
|
icon: `${this.icon}` |
||||
|
}, |
||||
|
{ |
||||
|
default: () => [] |
||||
|
} |
||||
|
); |
||||
|
} |
||||
|
}); |
@ -0,0 +1,30 @@ |
|||||
|
import { h, defineComponent } from "vue"; |
||||
|
import { Icon as IconifyIcon } from "@iconify/vue"; |
||||
|
|
||||
|
// Iconify Icon在Vue里在线使用(用于外网环境)
|
||||
|
// https://docs.iconify.design/icon-components/vue/offline.html
|
||||
|
export default defineComponent({ |
||||
|
name: "IconifyIcon", |
||||
|
components: { IconifyIcon }, |
||||
|
props: { |
||||
|
icon: { |
||||
|
type: String, |
||||
|
default: "" |
||||
|
}, |
||||
|
type: { |
||||
|
type: String, |
||||
|
default: "ep:" |
||||
|
} |
||||
|
}, |
||||
|
render() { |
||||
|
return h( |
||||
|
IconifyIcon, |
||||
|
{ |
||||
|
icon: `${this.type}${this.icon}` |
||||
|
}, |
||||
|
{ |
||||
|
default: () => [] |
||||
|
} |
||||
|
); |
||||
|
} |
||||
|
}); |
Write
Preview
Loading…
Cancel
Save
Reference in new issue