[bugfix] module circular dependency (#728)

This commit is contained in:
neverland
2018-03-19 20:49:35 +08:00
committed by GitHub
parent b5b7d33534
commit 639ef64d96
72 changed files with 79 additions and 97 deletions
-12
View File
@@ -64,15 +64,3 @@ Vue.use(Vant);
```shell
vue init youzan/vue-cli-template-vant projectName
```
### Props Named Style
HTML attributes are case-insensitive, so when using non-string templates, camelCased prop names need to use their kebab-case (hyphen-delimited) equivalents.
``` html
<!-- camelCase in JavaScript -->
<van-cell isLink />
<!-- kebab-case in HTML -->
<van-cell is-link />
```
+2 -2
View File
@@ -9,7 +9,7 @@
* 新增 Collapse 组件 [\#674](https://github.com/youzan/vant/pull/674) [@chenjiahan](https://github.com/chenjiahan)
* 构建: 升级至 webpack 4,优化构建配置 [\#693](https://github.com/youzan/vant/pull/693) [@chenjiahan](https://github.com/chenjiahan)
* Popup: 新增 lock-scroll 属性,废弃 lock-on-scroll、prevent-scroll 属性 [\#688](https://github.com/youzan/vant/pull/688) [@chenjiahan](https://github.com/chenjiahan)
* 废弃 Waterfall 组件,推荐使用 List 组件代替 [\#683](https://github.com/youzan/vant/pull/683) [@chenjiahan](https://github.com/chenjiahan)
* Waterfall 组件不再维护,推荐使用 List 组件代替 [\#683](https://github.com/youzan/vant/pull/683) [@chenjiahan](https://github.com/chenjiahan)
**Improvements**
@@ -22,7 +22,7 @@
* Sku: 新增头部金额 slot [\#705](https://github.com/youzan/vant/pull/705) [@w91](https://github.com/w91)
* Sku: 优化 DOM 结构 [\#704](https://github.com/youzan/vant/pull/704) [@chenjiahan](https://github.com/chenjiahan)
* Tab: 支持通过滑动手势进行切换 [\#694](https://github.com/youzan/vant/pull/694) [\#695](https://github.com/youzan/vant/pull/695) [@cookfront](https://github.com/cookfront)
* Tag: 跳转标签样式 [\#689](https://github.com/youzan/vant/pull/689) [@chenjiahan](https://github.com/chenjiahan)
* Tag: 调整标签样式 [\#689](https://github.com/youzan/vant/pull/689) [@chenjiahan](https://github.com/chenjiahan)
* Toast: 支持通过 Vue.use 注册 [\#690](https://github.com/youzan/vant/pull/690) [@chenjiahan](https://github.com/chenjiahan)
-12
View File
@@ -63,15 +63,3 @@ Vue.use(Vant);
```shell
vue init youzan/vue-cli-template-vant projectName
```
### Props 命名风格
Vant 文档中的 props 默认采用驼峰式命名 (camelCase)。由于 HTML 特性是不区分大小写的,如果在 HTML 中直接书写 Vue 模板,需要使用短横线分割式 (kebab-case) 的命名来传递 props
``` html
<!-- 在 JavaScript 中使用 camelCase -->
<van-cell isLink />
<!-- 在 HTML 中使用 kebab-case-->
<van-cell is-link />
```