diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 00000000..3dc5abc8 --- /dev/null +++ b/.gitattributes @@ -0,0 +1 @@ +*.css linguist-language=JavaScript \ No newline at end of file diff --git a/docs/.vuepress/config.js b/docs/.vuepress/config.js index 071e74dd..6c579c98 100644 --- a/docs/.vuepress/config.js +++ b/docs/.vuepress/config.js @@ -4,12 +4,12 @@ module.exports = { '/': { lang: 'en-US', title: 'D2 Admin', - description: 'An elegant template for management system' + description: 'Elegant management system front-end integration' }, '/zh/': { lang: 'zh-CN', title: 'D2 Admin', - description: '做一个优雅的管理系统模板' + description: '优雅的管理系统前端集成方案' } }, themeConfig: { @@ -58,6 +58,7 @@ function sideBarGuide (title) { children: [ '', 'q-a', + 'pr', 'change-log' ] } @@ -87,7 +88,8 @@ function sideBarComponents (title) { 'icon-select', 'icon-svg', 'icon', - 'markdown' + 'markdown', + 'locally-valid' ] } ] diff --git a/docs/README.md b/docs/README.md index 429cf782..539d9be0 100644 --- a/docs/README.md +++ b/docs/README.md @@ -4,10 +4,10 @@ heroImage: /logo@2x.png actionText: Get Started → actionLink: /zh/guide/ features: -- title: Advocate succinct - details: On the visual basis of element UI, we have added some customization. - title: Vue-Powered details: Enjoy the dev experience of Vue + webpack, Ultra fast virtual DOM and the most economical optimization. +- title: Rich integration + details: The plug-ins and components that are likely to be used are ready for you. Some come from third parties, others are designed for d2admin. - title: ElementUI component library details: Integrated and robust ElementUI, and use any ElementUI component at will. footer: MIT Licensed | Copyright © 2018-present FairyEver @@ -15,11 +15,9 @@ footer: MIT Licensed | Copyright © 2018-present FairyEver **The English document will be launched in the future. Please move to the Chinese document.** -**英文文档会在稍后推出,现请移步右上角中文文档** +**英文文档会在中文文档大致完成后推出,现请移步中文文档** ``` -// chone -git clone https://github.com/FairyEver/d2admin-vue-element.git // install package npm i // run diff --git a/docs/zh/README.md b/docs/zh/README.md index 2b69474c..50bd2b84 100644 --- a/docs/zh/README.md +++ b/docs/zh/README.md @@ -4,18 +4,16 @@ heroImage: /logo@2x.png actionText: 快速上手 → actionLink: /zh/guide/ features: -- title: 简洁至上 - details: 在 element UI 的视觉基础上稍加定制。 - title: Vue驱动 details: 享受 Vue + webpack 的开发体验,超快虚拟 DOM 和最省心的优化。 +- title: 丰富集成 + details: 已经为你准备好了很可能用到的插件和组件,有的来自第三方,有的专为 d2admin 设计。 - title: ElementUI组件库 details: 集成完善且强大的 ElementUI,随意搭配使用任何 ElementUI 组件。 footer: MIT Licensed | Copyright © 2018-present FairyEver --- ``` -// 克隆仓库 -git clone https://github.com/FairyEver/d2admin-vue-element.git // 安装依赖 npm i // 运行 diff --git a/docs/zh/components/container.md b/docs/zh/components/container.md index 54190e06..7bd91393 100644 --- a/docs/zh/components/container.md +++ b/docs/zh/components/container.md @@ -6,7 +6,7 @@ | 参数名 | 介绍 | 必选 | 值类型 | 可选值 | 默认值 | | --- | --- | --- | --- | --- | --- | -| type | 容器类型 | 非 | String | card ghost card-full | card | +| type | 容器类型 | 非 | String | card ghost full | card | | responsive | 响应式宽度 | 非 | Boolean | | false | ::: tip @@ -66,7 +66,7 @@ export default { ``` vue @@ -34,6 +34,9 @@ export default { required: false, default: false } + }, + components: { + containerFull: () => import('../ContainerFull/index.vue') } } diff --git a/src/components/core/ContainerFull/index.vue b/src/components/core/ContainerFull/index.vue new file mode 100644 index 00000000..3b114a70 --- /dev/null +++ b/src/components/core/ContainerFull/index.vue @@ -0,0 +1,67 @@ + + + diff --git a/src/components/core/MainLayout/components/D2MenuItem/index.vue b/src/components/core/MainLayout/components/D2MenuItem/index.vue new file mode 100644 index 00000000..899e90fb --- /dev/null +++ b/src/components/core/MainLayout/components/D2MenuItem/index.vue @@ -0,0 +1,19 @@ + + + diff --git a/src/components/core/MainLayout/components/D2Submenu/index.vue b/src/components/core/MainLayout/components/D2Submenu/index.vue new file mode 100644 index 00000000..3285ce6c --- /dev/null +++ b/src/components/core/MainLayout/components/D2Submenu/index.vue @@ -0,0 +1,28 @@ + + + diff --git a/src/components/core/MainLayout/components/HeaderMenu/index.vue b/src/components/core/MainLayout/components/HeaderMenu/index.vue index db3c6941..ee54407b 100644 --- a/src/components/core/MainLayout/components/HeaderMenu/index.vue +++ b/src/components/core/MainLayout/components/HeaderMenu/index.vue @@ -1,75 +1,25 @@ - - diff --git a/src/components/core/MainLayout/index.vue b/src/components/core/MainLayout/index.vue index 5b5657f7..466826d0 100644 --- a/src/components/core/MainLayout/index.vue +++ b/src/components/core/MainLayout/index.vue @@ -1,23 +1,27 @@