Merge branch 'release/v1.2.1'
Former-commit-id: 68b748d899564a26d053003b834353327b9ce71d [formerly 68b748d899564a26d053003b834353327b9ce71d [formerly 68b748d899564a26d053003b834353327b9ce71d [formerly 68b748d899564a26d053003b834353327b9ce71d [formerly 1ac2ac6c7acd290ef48845ab3df699d7aeff3da9 [formerly 74812f1a9d568992e7ac8ea838bdf2079868c8ce]]]]] Former-commit-id: d0fd974412d21b44a6958cd3cfaf9a34b360aacf Former-commit-id: 8171890f1515be59f3425fb853e72110c32c61d4 Former-commit-id: 782c8889f761456cd2b8216fa7fd28dad0122eb3 [formerly d2113bcd4f54eca1662576a199e5ab891d37eeac] Former-commit-id: 81800260abcc627d348be81003320e22365ef9df Former-commit-id: 56c704859e25863e33c10b62d60bae015e82a7a0 Former-commit-id: 97532ea3927ca30252976c56e416f16467b58856 Former-commit-id: 755bde97549c07f9649133871bab7212f19990e1 Former-commit-id: 664fa8a592d6aef8973d2f7cdeb27b7ec2a96773
This commit is contained in:
@@ -5,6 +5,7 @@ D2Admin 是一个开源的管理系统前端集成方案,为了方便开发者
|
|||||||
本项目仓库在 Github 和 Gitee 同步发布
|
本项目仓库在 Github 和 Gitee 同步发布
|
||||||
|
|
||||||
[中文文档](http://d2admin.fairyever.com/zh/)
|
[中文文档](http://d2admin.fairyever.com/zh/)
|
||||||
|
[中文文档 备用](http://app.d3collection.cn/d2-admin-doc/lastest/zh/)
|
||||||
|
|
||||||
**完整版**
|
**完整版**
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
module.exports = {
|
module.exports = {
|
||||||
|
// base: '/d2-admin-doc/lastest/',
|
||||||
locales: {
|
locales: {
|
||||||
'/': {
|
'/': {
|
||||||
lang: 'en-US',
|
lang: 'en-US',
|
||||||
@@ -184,6 +185,7 @@ function sideBarArticle (titleUpdate, titleCookbook) {
|
|||||||
title: titleUpdate,
|
title: titleUpdate,
|
||||||
collapsable: false,
|
collapsable: false,
|
||||||
children: [
|
children: [
|
||||||
|
'update/1.2.0',
|
||||||
'update/ice-1.1.2',
|
'update/ice-1.1.2',
|
||||||
'update/1.1.5',
|
'update/1.1.5',
|
||||||
'update/1.1.4',
|
'update/1.1.4',
|
||||||
|
|||||||
1
docs/zh/article/update/1.2.0.md.REMOVED.git-id
Normal file
1
docs/zh/article/update/1.2.0.md.REMOVED.git-id
Normal file
@@ -0,0 +1 @@
|
|||||||
|
0a7f2e68d1f7b2c236189780aa8e141ba0c9de85
|
||||||
@@ -196,7 +196,7 @@ const frameIn = [
|
|||||||
`src/menu` 目录是菜单存放目录,里面的两个文件分别存放顶栏和侧边栏的菜单。
|
`src/menu` 目录是菜单存放目录,里面的两个文件分别存放顶栏和侧边栏的菜单。
|
||||||
|
|
||||||
::: tip
|
::: tip
|
||||||
D2Admin 现在将顶栏和侧边栏菜单分别存放然后赋值的逻辑只是一个最简单的演示,请根据您的需要自己修改菜变化逻辑,您可以只用一行代码就可以动态更新菜单,方法见 [vuex](/zh/sys-vuex/)。
|
D2Admin 现在将顶栏和侧边栏菜单分别存放然后赋值的逻辑只是一个最简单的演示,请根据您的需要自己修改菜变化逻辑,您可以只用一行代码就可以动态更新菜单,方法见 [vuex menu 模块](/zh/sys-vuex/#menu)。
|
||||||
:::
|
:::
|
||||||
|
|
||||||
打开 `src/menu/header.js` 添加新的菜单(高亮行):
|
打开 `src/menu/header.js` 添加新的菜单(高亮行):
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
f859e2952f21e7ee100da4dc863f96f721bb439c
|
46da9d30067372ce67f67f637eb38caf6b45aeba
|
||||||
@@ -10,6 +10,8 @@ import demoElement from './modules/demo-element'
|
|||||||
import demoPlayground from './modules/demo-playground'
|
import demoPlayground from './modules/demo-playground'
|
||||||
// 示例
|
// 示例
|
||||||
import demoBusiness from './modules/demo-business'
|
import demoBusiness from './modules/demo-business'
|
||||||
|
// 示例
|
||||||
|
import demoD2Crud from './modules/demo-d2-crud'
|
||||||
|
|
||||||
// 菜单 侧边栏
|
// 菜单 侧边栏
|
||||||
export const menuAside = [
|
export const menuAside = [
|
||||||
@@ -18,7 +20,8 @@ export const menuAside = [
|
|||||||
demoCharts,
|
demoCharts,
|
||||||
demoElement,
|
demoElement,
|
||||||
demoPlayground,
|
demoPlayground,
|
||||||
demoBusiness
|
demoBusiness,
|
||||||
|
demoD2Crud
|
||||||
]
|
]
|
||||||
|
|
||||||
// 菜单 顶栏
|
// 菜单 顶栏
|
||||||
@@ -32,6 +35,7 @@ export const menuHeader = [
|
|||||||
title: '功能',
|
title: '功能',
|
||||||
icon: 'puzzle-piece',
|
icon: 'puzzle-piece',
|
||||||
children: [
|
children: [
|
||||||
|
demoD2Crud,
|
||||||
demoComponents,
|
demoComponents,
|
||||||
demoElement,
|
demoElement,
|
||||||
demoCharts,
|
demoCharts,
|
||||||
|
|||||||
9
src/menu/modules/demo-d2-crud.js
Normal file
9
src/menu/modules/demo-d2-crud.js
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
export default {
|
||||||
|
path: '/demo/d2-crud',
|
||||||
|
title: 'D2 CRUD',
|
||||||
|
icon: 'table',
|
||||||
|
children: (pre => [
|
||||||
|
{ path: `${pre}index`, title: 'D2 CRUD 首页', icon: 'home' },
|
||||||
|
{ path: `${pre}demo1`, title: '示例1' }
|
||||||
|
])('/demo/d2-crud/')
|
||||||
|
}
|
||||||
9
src/pages/demo/d2-crud/demo1/index.vue
Normal file
9
src/pages/demo/d2-crud/demo1/index.vue
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
<template>
|
||||||
|
<d2-container>
|
||||||
|
<template slot="header">header</template>
|
||||||
|
main
|
||||||
|
<template slot="footer">
|
||||||
|
<d2-link-btn title="D2 CRUD" link="https://github.com/d2-projects"/>
|
||||||
|
</template>
|
||||||
|
</d2-container>
|
||||||
|
</template>
|
||||||
9
src/pages/demo/d2-crud/index/index.vue
Normal file
9
src/pages/demo/d2-crud/index/index.vue
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
<template>
|
||||||
|
<d2-container>
|
||||||
|
<d2-page-cover
|
||||||
|
title="D2 CRUD"
|
||||||
|
sub-title="表格封装">
|
||||||
|
<img src="./image/icon.png">
|
||||||
|
</d2-page-cover>
|
||||||
|
</d2-container>
|
||||||
|
</template>
|
||||||
@@ -1 +1 @@
|
|||||||
d1701498ab5c7359fcd9d5098540ae29b236d7ee
|
bd272213cf5328eff3aabfe6d4aea9c30c5833e3
|
||||||
Reference in New Issue
Block a user