mirror of
https://github.com/jekip/naive-ui-admin.git
synced 2026-03-01 00:23:11 +08:00
1.8.2
This commit is contained in:
10
CHANGELOG.md
10
CHANGELOG.md
@@ -1,11 +1,21 @@
|
|||||||
# CHANGELOG
|
# CHANGELOG
|
||||||
|
|
||||||
|
## 1.8.2
|
||||||
|
|
||||||
|
- ### ✨ Features
|
||||||
|
- 新增 `directive` 示例
|
||||||
|
- 依赖升级
|
||||||
|
|
||||||
|
### 🐛 Bug Fixes
|
||||||
|
- 修复 `样式异常` 图片
|
||||||
|
|
||||||
## 1.8.1
|
## 1.8.1
|
||||||
|
|
||||||
- ### ✨ Features
|
- ### ✨ Features
|
||||||
- 新增 `clean:cache` 删除缓存命令
|
- 新增 `clean:cache` 删除缓存命令
|
||||||
- 新增 `clean:lib` 删除 `node_modules` 命令
|
- 新增 `clean:lib` 删除 `node_modules` 命令
|
||||||
- 依赖升级
|
- 依赖升级
|
||||||
|
|
||||||
### 🐛 Bug Fixes
|
### 🐛 Bug Fixes
|
||||||
- 修复 `开发环境` 运行控制台错误提示
|
- 修复 `开发环境` 运行控制台错误提示
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "naive-ui-admin",
|
"name": "naive-ui-admin",
|
||||||
"version": "1.8.1",
|
"version": "1.8.2",
|
||||||
"author": {
|
"author": {
|
||||||
"name": "Ahjung",
|
"name": "Ahjung",
|
||||||
"email": "735878602@qq.com",
|
"email": "735878602@qq.com",
|
||||||
@@ -41,7 +41,7 @@
|
|||||||
"lodash-es": "^4.17.21",
|
"lodash-es": "^4.17.21",
|
||||||
"mitt": "^3.0.0",
|
"mitt": "^3.0.0",
|
||||||
"mockjs": "^1.1.0",
|
"mockjs": "^1.1.0",
|
||||||
"naive-ui": "^2.33.5",
|
"naive-ui": "^2.34.2",
|
||||||
"pinia": "^2.0.23",
|
"pinia": "^2.0.23",
|
||||||
"qs": "^6.11.0",
|
"qs": "^6.11.0",
|
||||||
"vfonts": "^0.0.3",
|
"vfonts": "^0.0.3",
|
||||||
|
|||||||
@@ -38,7 +38,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.title {
|
.title {
|
||||||
margin-bottom: 0;
|
margin: 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ const routes: Array<RouteRecordRaw> = [
|
|||||||
name: 'about',
|
name: 'about',
|
||||||
component: Layout,
|
component: Layout,
|
||||||
meta: {
|
meta: {
|
||||||
sort: 9,
|
sort: 10,
|
||||||
isRoot: true,
|
isRoot: true,
|
||||||
activeMenu: 'about_index',
|
activeMenu: 'about_index',
|
||||||
icon: renderIcon(ProjectOutlined),
|
icon: renderIcon(ProjectOutlined),
|
||||||
|
|||||||
31
src/router/modules/directive.ts
Normal file
31
src/router/modules/directive.ts
Normal file
@@ -0,0 +1,31 @@
|
|||||||
|
import { RouteRecordRaw } from 'vue-router';
|
||||||
|
import { Layout } from '@/router/constant';
|
||||||
|
import { BorderOuterOutlined } from '@vicons/antd';
|
||||||
|
import { renderIcon } from '@/utils/index';
|
||||||
|
|
||||||
|
const routes: Array<RouteRecordRaw> = [
|
||||||
|
{
|
||||||
|
path: '/directive',
|
||||||
|
name: 'directive',
|
||||||
|
component: Layout,
|
||||||
|
meta: {
|
||||||
|
sort: 9,
|
||||||
|
isRoot: true,
|
||||||
|
activeMenu: 'directive_index',
|
||||||
|
icon: renderIcon(BorderOuterOutlined),
|
||||||
|
},
|
||||||
|
children: [
|
||||||
|
{
|
||||||
|
path: 'index',
|
||||||
|
name: `directive_index`,
|
||||||
|
meta: {
|
||||||
|
title: '指令示例',
|
||||||
|
activeMenu: 'directive_index',
|
||||||
|
},
|
||||||
|
component: () => import('@/views/directive/index.vue'),
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
|
];
|
||||||
|
|
||||||
|
export default routes;
|
||||||
@@ -11,7 +11,7 @@ const routes: Array<RouteRecordRaw> = [
|
|||||||
meta: {
|
meta: {
|
||||||
title: '项目文档',
|
title: '项目文档',
|
||||||
icon: renderIcon(DocumentTextOutline),
|
icon: renderIcon(DocumentTextOutline),
|
||||||
sort: 9,
|
sort: 11,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ const routes: Array<RouteRecordRaw> = [
|
|||||||
title: 'Pro 版本',
|
title: 'Pro 版本',
|
||||||
extra: renderNew(),
|
extra: renderNew(),
|
||||||
icon: renderIcon(SketchOutlined),
|
icon: renderIcon(SketchOutlined),
|
||||||
sort: 10,
|
sort: 12,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|||||||
@@ -1,31 +0,0 @@
|
|||||||
import { RouteRecordRaw } from 'vue-router';
|
|
||||||
import { Layout } from '@/router/constant';
|
|
||||||
import { ProjectOutlined } from '@vicons/antd';
|
|
||||||
import { renderIcon } from '@/utils/index';
|
|
||||||
|
|
||||||
const routes: Array<RouteRecordRaw> = [
|
|
||||||
{
|
|
||||||
path: '/test',
|
|
||||||
name: 'test',
|
|
||||||
component: Layout,
|
|
||||||
meta: {
|
|
||||||
sort: 12,
|
|
||||||
isRoot: true,
|
|
||||||
activeMenu: 'test_index',
|
|
||||||
icon: renderIcon(ProjectOutlined),
|
|
||||||
},
|
|
||||||
children: [
|
|
||||||
{
|
|
||||||
path: 'index',
|
|
||||||
name: `test_index`,
|
|
||||||
meta: {
|
|
||||||
title: '指令测试',
|
|
||||||
activeMenu: 'test_index',
|
|
||||||
},
|
|
||||||
component: () => import('@/views/test/index.vue'),
|
|
||||||
},
|
|
||||||
],
|
|
||||||
},
|
|
||||||
];
|
|
||||||
|
|
||||||
export default routes;
|
|
||||||
@@ -127,3 +127,9 @@ body .n-modal {
|
|||||||
.n-layout-page-header {
|
.n-layout-page-header {
|
||||||
margin: 0 -10px;
|
margin: 0 -10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
img, video{
|
||||||
|
display: block;
|
||||||
|
max-width: 100%;
|
||||||
|
height: auto;
|
||||||
|
}
|
||||||
@@ -1,17 +1,19 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="card content-box">
|
<div class="card content-box">
|
||||||
<n-card>
|
<n-card :bordered="false" title="复制指令">
|
||||||
<n-input placeholder="请输入内容" v-model:value="data" style="width: 500px"> </n-input>
|
<n-space>
|
||||||
|
<n-input placeholder="输入内容试试" v-model:value="data" style="width: 350px" />
|
||||||
|
<n-button v-copy="data" type="primary" @click="a">复 制</n-button>
|
||||||
|
</n-space>
|
||||||
</n-card>
|
</n-card>
|
||||||
<n-card>
|
<n-card :bordered="false" title="防抖指令" class="mt-3">
|
||||||
<n-button v-copy="data" type="primary" @click="a">复制</n-button>
|
<n-button type="primary" v-debounce="b">防抖测试</n-button>
|
||||||
</n-card>
|
</n-card>
|
||||||
<n-card>
|
<n-card :bordered="false" title="节流指令" class="mt-3">
|
||||||
<n-button type="primary" v-debounce="b">防抖按钮</n-button>
|
<n-button type="primary" v-throttle="c">节流测试</n-button>
|
||||||
</n-card>
|
|
||||||
<n-card>
|
|
||||||
<n-button type="primary" v-throttle="c">节流按钮</n-button>
|
|
||||||
</n-card>
|
</n-card>
|
||||||
|
|
||||||
|
<n-card :bordered="false" title="拖拽指令" class="mt-3"> 鼠标放到矩形上面拖拽试试 </n-card>
|
||||||
<div class="box" v-draggable> </div>
|
<div class="box" v-draggable> </div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
@@ -46,9 +48,11 @@
|
|||||||
.box {
|
.box {
|
||||||
width: 100px;
|
width: 100px;
|
||||||
height: 100px;
|
height: 100px;
|
||||||
background-color: red;
|
background-color: #2d8cf0;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
z-index: 10000000;
|
z-index: 10000000;
|
||||||
|
border-radius: 10px;
|
||||||
|
margin: 20px 5px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
Reference in New Issue
Block a user