From 487f9d737401ca7e173aa9a29bd1ebfe8e4a68f8 Mon Sep 17 00:00:00 2001 From: liyang <1711467488@qq.com> Date: Mon, 4 Jun 2018 13:50:47 +0800 Subject: [PATCH] no message Former-commit-id: ef1e14bc5eee9905394c7a7880e371990a1c80d1 Former-commit-id: 5081c36e3e48fb02c74f26d42da59f51c9b64459 Former-commit-id: 7fdb4997c920fc58e335dd66ee23eb4fe0ae8fb1 --- docs/.vuepress/config.js | 1 + docs/zh/guide/pr.md | 13 +++++++++++++ .../components/SideMenu/components/ddMenu.vue | 5 +++-- 3 files changed, 17 insertions(+), 2 deletions(-) create mode 100644 docs/zh/guide/pr.md diff --git a/docs/.vuepress/config.js b/docs/.vuepress/config.js index 4ecb0714..6c579c98 100644 --- a/docs/.vuepress/config.js +++ b/docs/.vuepress/config.js @@ -58,6 +58,7 @@ function sideBarGuide (title) { children: [ '', 'q-a', + 'pr', 'change-log' ] } diff --git a/docs/zh/guide/pr.md b/docs/zh/guide/pr.md new file mode 100644 index 00000000..53423c6b --- /dev/null +++ b/docs/zh/guide/pr.md @@ -0,0 +1,13 @@ +# 贡献指南 + +## 如何贡献代码 + +首先在[项目主页](https://github.com/FairyEver/d2admin-vue-element) fork 本仓库,然后进行你的开发,请确保你的开发是在 dev 分支进行。本地测试无误后方可 pull request,我在检查通过后会合并代码到原始仓库。 + +## 要求 + +本项目代码需要符合[vue.js 风格指南](https://cn.vuejs.org/v2/style-guide/)中[优先级A](https://cn.vuejs.org/v2/style-guide/#%E4%BC%98%E5%85%88%E7%BA%A7-A-%E7%9A%84%E8%A7%84%E5%88%99%EF%BC%9A%E5%BF%85%E8%A6%81%E7%9A%84-%E8%A7%84%E9%81%BF%E9%94%99%E8%AF%AF)和[优先级B](https://cn.vuejs.org/v2/style-guide/#%E4%BC%98%E5%85%88%E7%BA%A7-B-%E7%9A%84%E8%A7%84%E5%88%99%EF%BC%9A%E5%BC%BA%E7%83%88%E6%8E%A8%E8%8D%90-%E5%A2%9E%E5%BC%BA%E5%8F%AF%E8%AF%BB%E6%80%A7)的要求以及本项目中的 ESlint 校验 + +::: tip +由于项目初始没有仔细遵循风格指南,可能项目代码中已经存在不符合规范的代码,欢迎批评指正或者直接pr +::: \ No newline at end of file diff --git a/src/components/core/MainLayout/components/SideMenu/components/ddMenu.vue b/src/components/core/MainLayout/components/SideMenu/components/ddMenu.vue index 75827b65..5a934148 100644 --- a/src/components/core/MainLayout/components/SideMenu/components/ddMenu.vue +++ b/src/components/core/MainLayout/components/SideMenu/components/ddMenu.vue @@ -19,8 +19,9 @@ export default { name: 'dd-menu', props: { menu: { - require: false, - default: () => [] + type: Object, + required: false, + default: () => {} } } }