diff --git a/CHANGELOG.md b/CHANGELOG.md index b56b9b3..f1e83af 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,24 @@ All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines. +### [2.4.1](https://github.com/levy9527/nuxt-element-dashboard/compare/v2.4.0...v2.4.1) (2019-05-22) + + +### Bug Fixes + +* 格式化出错误代码 ([385642e](https://github.com/levy9527/nuxt-element-dashboard/commit/385642e)) + + + +## [2.4.0](https://github.com/levy9527/nuxt-element-dashboard/compare/v2.3.4...v2.4.0) (2019-05-21) + + +### Features + +* **meta.js:** 将meta信息本地化 ([b197ff0](https://github.com/levy9527/nuxt-element-dashboard/commit/b197ff0)) + + + ### [2.3.4](https://github.com/levy9527/nuxt-element-dashboard/compare/v2.3.3...v2.3.4) (2019-05-17) diff --git a/README.md b/README.md index 07f7d80..0094eef 100755 --- a/README.md +++ b/README.md @@ -60,7 +60,7 @@ yarn generate ├── nuxt.config.js 框架配置文件 ├── package.json ├── src 开发目录 -│   ├── assets 资源,包括样式文件与图片 +│   ├── styles 未编译的样式资源 │   │   ├── global.less 全局样式类 │   │   └── var.less 样式变量,支持less变量自动引入,即不用在less中import就能直接使用变量 │   ├── components 业务无关的可复用的组件 diff --git a/doc/dev.md b/doc/dev.md index 6cedec9..1ae815d 100755 --- a/doc/dev.md +++ b/doc/dev.md @@ -114,12 +114,13 @@ table 里空值就显示空白, 不需要显示占位符 `-` ### 统一 footer 样式 .data-table-footer -已写在 /assets/global.styl 可直接使用 +已写在 /styles/global.less 可直接使用 -```stylus -.data-table-footer +```less +.data-table-footer { margin-top 24px text-align right +} ``` ## form 表单 diff --git a/nuxt.config.js b/nuxt.config.js index 3ed711b..d1c4836 100755 --- a/nuxt.config.js +++ b/nuxt.config.js @@ -122,11 +122,11 @@ module.exports = { * @Link https://github.com/nuxt-community/style-resources-module/ */ styleResources: { - less: '~assets/var.less' + less: '~styles/var.less' }, css: [ { - src: '~assets/global.less', + src: '~styles/global.less', lang: 'less' } ], diff --git a/package.json b/package.json index 2e2d537..9a7b82d 100755 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "nuxt-element-dashboard", - "version": "2.3.4", + "version": "2.4.1", "description": "Nuxt2 + element UI project", "author": "levy ", "license": "MIT", diff --git a/src/assets/README.md b/src/assets/README.md deleted file mode 100755 index c67cf2e..0000000 --- a/src/assets/README.md +++ /dev/null @@ -1,8 +0,0 @@ -# ASSETS - -This directory contains your un-compiled assets such as LESS, SASS, or JavaScript. - -More information about the usage of this directory in the documentation: -https://nuxtjs.org/guide/assets#webpacked - -**This directory is not required, you can delete it if you don't want to use it.** diff --git a/src/assets/global.less b/src/styles/global.less old mode 100755 new mode 100644 similarity index 96% rename from src/assets/global.less rename to src/styles/global.less index 12e3686..1c28f12 --- a/src/assets/global.less +++ b/src/styles/global.less @@ -8,7 +8,6 @@ body { } *, *:before, *:after { - box-sizing: border-box; margin: 0; } diff --git a/src/assets/var.less b/src/styles/var.less similarity index 100% rename from src/assets/var.less rename to src/styles/var.less