fix icon error

This commit is contained in:
xiaoma
2022-11-04 10:18:51 +08:00
parent 4a47fa2f7d
commit 32116be1f2
7 changed files with 26 additions and 35 deletions

View File

@@ -1,22 +0,0 @@
/**
* Introduces component library styles on demand.
* https://github.com/anncwb/vite-plugin-style-import
*/
import styleImport from 'vite-plugin-style-import';
export function configStyleImportPlugin(isBuild: boolean) {
if (!isBuild) return [];
const styleImportPlugin = styleImport({
libs: [
{
libraryName: 'ant-design-vue',
esModule: true,
resolveStyle: (name) => {
return `ant-design-vue/es/${name}/style/index`;
},
},
],
});
return styleImportPlugin;
}

View File

@@ -1,7 +1,7 @@
import { RouteRecordRaw } from 'vue-router';
import { Layout } from '@/router/constant';
import { ProjectOutlined } from '@vicons/antd';
import { renderIcon, renderNew } from '@/utils/index';
import { renderIcon } from '@/utils/index';
const routes: Array<RouteRecordRaw> = [
{
@@ -9,7 +9,7 @@ const routes: Array<RouteRecordRaw> = [
name: 'about',
component: Layout,
meta: {
sort: 10,
sort: 9,
isRoot: true,
activeMenu: 'about_index',
icon: renderIcon(ProjectOutlined),
@@ -19,8 +19,7 @@ const routes: Array<RouteRecordRaw> = [
path: 'index',
name: `about_index`,
meta: {
title: '关于',
extra: renderNew(),
title: '关于项目',
activeMenu: 'about_index',
},
component: () => import('@/views/about/index.vue'),

View File

@@ -6,7 +6,7 @@ import { renderIcon } from '@/utils/index';
const routes: Array<RouteRecordRaw> = [
{
path: '/external',
name: 'https://jekip.github.io/docs',
name: 'https://docs.naiveadmin.com',
component: Layout,
meta: {
title: '项目文档',

View File

@@ -0,0 +1,20 @@
import { RouteRecordRaw } from 'vue-router';
import { Layout } from '@/router/constant';
import { SketchOutlined } from '@vicons/antd';
import { renderIcon, renderNew } from '@/utils/index';
const routes: Array<RouteRecordRaw> = [
{
path: '/newversion',
name: 'https://www.naiveadmin.com',
component: Layout,
meta: {
title: 'Pro 版本',
extra: renderNew(),
icon: renderIcon(SketchOutlined),
sort: 10,
},
},
];
export default routes;

View File

@@ -22,16 +22,12 @@
</n-descriptions-item>
<n-descriptions-item label="文档地址">
<div class="flex items-center">
<a href="https://jekip.github.io/docs" class="py-2" target="_blank"
>查看文档地址</a
>
<a href="https://docs.naiveadmin.com" class="py-2" target="_blank">查看文档地址</a>
</div>
</n-descriptions-item>
<n-descriptions-item label="预览地址">
<div class="flex items-center">
<a href="https://naive-ui-admin.vercel.app" class="py-2" target="_blank"
>查看预览地址</a
>
<a href="https://v1.naiveadmin.com" class="py-2" target="_blank">查看预览地址</a>
</div>
</n-descriptions-item>
<n-descriptions-item label="Github">

View File

@@ -243,7 +243,6 @@
actions: [
{
label: '删除',
icon: 'ic:outline-delete-outline',
onClick: handleDelete.bind(null, record),
// 根据业务控制是否显示 isShow 和 auth 是并且关系
ifShow: () => {

View File

@@ -120,7 +120,6 @@
},
{
label: '删除',
icon: 'ic:outline-delete-outline',
onClick: handleDelete.bind(null, record),
// 根据业务控制是否显示 isShow 和 auth 是并且关系
ifShow: () => {