mirror of
https://gitee.com/vant-contrib/vant-weapp.git
synced 2025-04-06 03:58:05 +08:00
[Doc] bump vant-doc 2.0
This commit is contained in:
parent
07392f2f1d
commit
b8e4188408
2
.github/PULL_REQUEST_TEMPLATE.md
vendored
2
.github/PULL_REQUEST_TEMPLATE.md
vendored
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
### 认真写 PR 的标题,会用于生成 change log。
|
### 认真写 PR 的标题,会用于生成 change log。
|
||||||
|
|
||||||
#### 标题规则
|
### 标题规则
|
||||||
[bugfix / breaking change / new feature / improvement] 组件名字:修改内容描述
|
[bugfix / breaking change / new feature / improvement] 组件名字:修改内容描述
|
||||||
|
|
||||||
说明:
|
说明:
|
||||||
|
@ -65,7 +65,7 @@ module.exports = {
|
|||||||
test: /\.md$/,
|
test: /\.md$/,
|
||||||
use: [
|
use: [
|
||||||
'vue-loader',
|
'vue-loader',
|
||||||
'fast-vue-md-loader'
|
'@vant/markdown-loader'
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
## 更新日志
|
# 更新日志
|
||||||
|
|
||||||
## [v0.5.14](https://github.com/youzan/vant-weapp/tree/v0.5.14)
|
### [v0.5.14](https://github.com/youzan/vant-weapp/tree/v0.5.14)
|
||||||
`2019-05-30`
|
`2019-05-30`
|
||||||
|
|
||||||
**Improvements**
|
**Improvements**
|
||||||
@ -15,7 +15,7 @@
|
|||||||
- SubmitBar: 修复 tip-icon 属性无效 [\#1671](https://github.com/youzan/vant-weapp/pull/1671)
|
- SubmitBar: 修复 tip-icon 属性无效 [\#1671](https://github.com/youzan/vant-weapp/pull/1671)
|
||||||
- DatetimePicker: 修复wepy中组件初始化报错 [\#1659](https://github.com/youzan/vant-weapp/pull/1659)
|
- DatetimePicker: 修复wepy中组件初始化报错 [\#1659](https://github.com/youzan/vant-weapp/pull/1659)
|
||||||
|
|
||||||
## [v0.5.13](https://github.com/youzan/vant-weapp/tree/v0.5.13)
|
### [v0.5.13](https://github.com/youzan/vant-weapp/tree/v0.5.13)
|
||||||
`2019-05-15`
|
`2019-05-15`
|
||||||
|
|
||||||
**Improvements**
|
**Improvements**
|
||||||
@ -29,7 +29,7 @@
|
|||||||
- Checkbox: 修复文本过长时样式异常 [\#1616](https://github.com/youzan/vant-weapp/pull/1616)
|
- Checkbox: 修复文本过长时样式异常 [\#1616](https://github.com/youzan/vant-weapp/pull/1616)
|
||||||
- Transition: 修复leave阶段时节点不消失 [\#1621](https://github.com/youzan/vant-weapp/pull/1621)
|
- Transition: 修复leave阶段时节点不消失 [\#1621](https://github.com/youzan/vant-weapp/pull/1621)
|
||||||
|
|
||||||
## [v0.5.12](https://github.com/youzan/vant-weapp/tree/v0.5.12)
|
### [v0.5.12](https://github.com/youzan/vant-weapp/tree/v0.5.12)
|
||||||
`2019-05-05`
|
`2019-05-05`
|
||||||
|
|
||||||
**Improvements**
|
**Improvements**
|
||||||
@ -47,7 +47,7 @@
|
|||||||
- 修复 NoticeBar 使用标签选择器导致框架报错的问题 [\#1574](https://github.com/youzan/vant-weapp/pull/1574)
|
- 修复 NoticeBar 使用标签选择器导致框架报错的问题 [\#1574](https://github.com/youzan/vant-weapp/pull/1574)
|
||||||
|
|
||||||
|
|
||||||
## [v0.5.11](https://github.com/youzan/vant-weapp/tree/v0.5.11)
|
### [v0.5.11](https://github.com/youzan/vant-weapp/tree/v0.5.11)
|
||||||
`2019-04-24`
|
`2019-04-24`
|
||||||
|
|
||||||
**Bug Fixes**
|
**Bug Fixes**
|
||||||
@ -70,7 +70,7 @@
|
|||||||
- Cell: 新增 useLabelSlot 属性、 新增 label 插槽 [\#1510](https://github.com/youzan/vant-weapp/pull/1510)
|
- Cell: 新增 useLabelSlot 属性、 新增 label 插槽 [\#1510](https://github.com/youzan/vant-weapp/pull/1510)
|
||||||
- Feild: 新增 error-message-align 属性 [\#1509](https://github.com/youzan/vant-weapp/pull/1509)
|
- Feild: 新增 error-message-align 属性 [\#1509](https://github.com/youzan/vant-weapp/pull/1509)
|
||||||
|
|
||||||
## [v0.5.10](https://github.com/youzan/vant-weapp/tree/v0.5.10)
|
### [v0.5.10](https://github.com/youzan/vant-weapp/tree/v0.5.10)
|
||||||
`2019-04-11`
|
`2019-04-11`
|
||||||
|
|
||||||
**Bug Fixes**
|
**Bug Fixes**
|
||||||
@ -85,7 +85,7 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
## [v0.5.9](https://github.com/youzan/vant-weapp/tree/v0.5.9)
|
### [v0.5.9](https://github.com/youzan/vant-weapp/tree/v0.5.9)
|
||||||
`2019-04-03`
|
`2019-04-03`
|
||||||
|
|
||||||
**Improvements**
|
**Improvements**
|
||||||
@ -105,7 +105,7 @@
|
|||||||
- Icon: 避免使用标签选择器 [\#1482](https://github.com/youzan/vant-weapp/pull/1482)
|
- Icon: 避免使用标签选择器 [\#1482](https://github.com/youzan/vant-weapp/pull/1482)
|
||||||
- SwipeCell: 修复点击不生效的问题 [\#1459](https://github.com/youzan/vant-weapp/pull/1459)
|
- SwipeCell: 修复点击不生效的问题 [\#1459](https://github.com/youzan/vant-weapp/pull/1459)
|
||||||
|
|
||||||
## [v0.5.8](https://github.com/youzan/vant-weapp/tree/v0.5.8)
|
### [v0.5.8](https://github.com/youzan/vant-weapp/tree/v0.5.8)
|
||||||
`2019-03-22`
|
`2019-03-22`
|
||||||
|
|
||||||
**Improvements**
|
**Improvements**
|
||||||
@ -129,7 +129,7 @@
|
|||||||
- Transition: 修复 show 值切换过快时不消失 [\#1404](https://github.com/youzan/vant-weapp/pull/1404)
|
- Transition: 修复 show 值切换过快时不消失 [\#1404](https://github.com/youzan/vant-weapp/pull/1404)
|
||||||
- Icon: 修复 info 的层级高于自定义图片 [\#1397](https://github.com/youzan/vant-weapp/pull/1397)
|
- Icon: 修复 info 的层级高于自定义图片 [\#1397](https://github.com/youzan/vant-weapp/pull/1397)
|
||||||
|
|
||||||
## [v0.5.7](https://github.com/youzan/vant-weapp/tree/v0.5.7)
|
### [v0.5.7](https://github.com/youzan/vant-weapp/tree/v0.5.7)
|
||||||
`2019-03-09`
|
`2019-03-09`
|
||||||
|
|
||||||
**Improvements**
|
**Improvements**
|
||||||
@ -147,7 +147,7 @@
|
|||||||
- Tab: 修复 offset-set 属性失效 [\#1370](https://github.com/youzan/vant-weapp/pull/1370)
|
- Tab: 修复 offset-set 属性失效 [\#1370](https://github.com/youzan/vant-weapp/pull/1370)
|
||||||
- Steps: 兼容微信 7.0.3 环境下渲染错误 [\#1367](https://github.com/youzan/vant-weapp/pull/1367)
|
- Steps: 兼容微信 7.0.3 环境下渲染错误 [\#1367](https://github.com/youzan/vant-weapp/pull/1367)
|
||||||
|
|
||||||
## [v0.5.6](https://github.com/youzan/vant-weapp/tree/v0.5.6)
|
### [v0.5.6](https://github.com/youzan/vant-weapp/tree/v0.5.6)
|
||||||
`2019-02-28`
|
`2019-02-28`
|
||||||
|
|
||||||
**Improvements**
|
**Improvements**
|
||||||
@ -158,7 +158,7 @@
|
|||||||
**Bug Fixes**
|
**Bug Fixes**
|
||||||
- Area: 修复有时初始选项错误 [\#1351](https://github.com/youzan/vant-weapp/pull/1351)
|
- Area: 修复有时初始选项错误 [\#1351](https://github.com/youzan/vant-weapp/pull/1351)
|
||||||
|
|
||||||
## [v0.5.5](https://github.com/youzan/vant-weapp/tree/v0.5.5)
|
### [v0.5.5](https://github.com/youzan/vant-weapp/tree/v0.5.5)
|
||||||
`2019-02-26`
|
`2019-02-26`
|
||||||
|
|
||||||
**Improvements**
|
**Improvements**
|
||||||
@ -183,7 +183,7 @@
|
|||||||
|
|
||||||
- 使用 miniprogram-api-typings 进行 wx api 类型定义 [\#1344](https://github.com/youzan/vant-weapp/pull/1344)
|
- 使用 miniprogram-api-typings 进行 wx api 类型定义 [\#1344](https://github.com/youzan/vant-weapp/pull/1344)
|
||||||
|
|
||||||
## [v0.5.4](https://github.com/youzan/vant-weapp/tree/v0.5.4)
|
### [v0.5.4](https://github.com/youzan/vant-weapp/tree/v0.5.4)
|
||||||
`2019-02-18`
|
`2019-02-18`
|
||||||
|
|
||||||
**Improvements**
|
**Improvements**
|
||||||
@ -201,7 +201,7 @@
|
|||||||
- Tab: 初始化时底部线条去除动画效果 [\#1295](https://github.com/youzan/vant-weapp/pull/1295)
|
- Tab: 初始化时底部线条去除动画效果 [\#1295](https://github.com/youzan/vant-weapp/pull/1295)
|
||||||
- Area: 修复有时初始化选项错误 [\#1317](https://github.com/youzan/vant-weapp/pull/1317)
|
- Area: 修复有时初始化选项错误 [\#1317](https://github.com/youzan/vant-weapp/pull/1317)
|
||||||
|
|
||||||
## [v0.5.3](https://github.com/youzan/vant-weapp/tree/v0.5.3)
|
### [v0.5.3](https://github.com/youzan/vant-weapp/tree/v0.5.3)
|
||||||
`2019-02-06`
|
`2019-02-06`
|
||||||
|
|
||||||
**Improvements**
|
**Improvements**
|
||||||
@ -242,7 +242,7 @@
|
|||||||
- Field: 修复清除图标未居中 [\#1267](https://github.com/youzan/vant-weapp/pull/1267)
|
- Field: 修复清除图标未居中 [\#1267](https://github.com/youzan/vant-weapp/pull/1267)
|
||||||
|
|
||||||
|
|
||||||
## [v0.5.2](https://github.com/youzan/vant-weapp/tree/v0.5.2)
|
### [v0.5.2](https://github.com/youzan/vant-weapp/tree/v0.5.2)
|
||||||
`2019-01-20`
|
`2019-01-20`
|
||||||
|
|
||||||
**Improvements**
|
**Improvements**
|
||||||
@ -258,7 +258,7 @@
|
|||||||
- Area: 修复getIndexes结果不符合预期 [\#1220](https://github.com/youzan/vant-weapp/pull/1220)
|
- Area: 修复getIndexes结果不符合预期 [\#1220](https://github.com/youzan/vant-weapp/pull/1220)
|
||||||
- Tabs:回滚使用IntersectionObserver实现的sticky效果 [\#1217](https://github.com/youzan/vant-weapp/pull/1217)
|
- Tabs:回滚使用IntersectionObserver实现的sticky效果 [\#1217](https://github.com/youzan/vant-weapp/pull/1217)
|
||||||
|
|
||||||
## [v0.5.1](https://github.com/youzan/vant-weapp/tree/v0.5.1)
|
### [v0.5.1](https://github.com/youzan/vant-weapp/tree/v0.5.1)
|
||||||
`2019-01-10`
|
`2019-01-10`
|
||||||
|
|
||||||
**Improvements**
|
**Improvements**
|
||||||
@ -276,14 +276,14 @@
|
|||||||
- 修复 Slider 改变 value 值时错误地触发了 drag 事件的问题 [\#1186](https://github.com/youzan/vant-weapp/pull/1186)
|
- 修复 Slider 改变 value 值时错误地触发了 drag 事件的问题 [\#1186](https://github.com/youzan/vant-weapp/pull/1186)
|
||||||
|
|
||||||
|
|
||||||
## [v0.5.0](https://github.com/youzan/vant-weapp/tree/v0.5.0)
|
### [v0.5.0](https://github.com/youzan/vant-weapp/tree/v0.5.0)
|
||||||
`2019-01-05`
|
`2019-01-05`
|
||||||
|
|
||||||
**Breaking changes**
|
**Breaking changes**
|
||||||
|
|
||||||
在 0.5.0 版本中,我们统一图标规范并重绘了所有图标,同时增加约 100 个新图标。对于同一个图标,我们会提供`实底`和`线框`两种风格,以星星图标为例,`star`表示实底风格的星星,`star-o`表示线框风格的星星。
|
在 0.5.0 版本中,我们统一图标规范并重绘了所有图标,同时增加约 100 个新图标。对于同一个图标,我们会提供`实底`和`线框`两种风格,以星星图标为例,`star`表示实底风格的星星,`star-o`表示线框风格的星星。
|
||||||
|
|
||||||
<img width="375" height="124" src="//img.yzcdn.cn/vant/icon-style-1222.png">
|
<img src="//img.yzcdn.cn/vant/icon-style-1222.png">
|
||||||
|
|
||||||
同时我们也对原有图标做了一定调整,具体改动如下:
|
同时我们也对原有图标做了一定调整,具体改动如下:
|
||||||
|
|
||||||
@ -337,7 +337,7 @@
|
|||||||
- Collapse: 修复切换时没有动画效果 [\#1140](https://github.com/youzan/vant-weapp/pull/1140)
|
- Collapse: 修复切换时没有动画效果 [\#1140](https://github.com/youzan/vant-weapp/pull/1140)
|
||||||
- Tabs:修复开启animated时导致的滚动问题 [\#1030](https://github.com/youzan/vant-weapp/pull/1030)
|
- Tabs:修复开启animated时导致的滚动问题 [\#1030](https://github.com/youzan/vant-weapp/pull/1030)
|
||||||
|
|
||||||
## [v0.4.10](https://github.com/youzan/vant-weapp/tree/v0.4.10)
|
### [v0.4.10](https://github.com/youzan/vant-weapp/tree/v0.4.10)
|
||||||
`2018-12-19`
|
`2018-12-19`
|
||||||
|
|
||||||
**Improvements**
|
**Improvements**
|
||||||
@ -370,7 +370,7 @@
|
|||||||
- 修复 Stepper 在iPad中或修改input高度时输入框样式异常 [\#1086](https://github.com/youzan/vant-weapp/pull/1086)
|
- 修复 Stepper 在iPad中或修改input高度时输入框样式异常 [\#1086](https://github.com/youzan/vant-weapp/pull/1086)
|
||||||
- 修复 ActionSheet 动态设置actions时,渲染后button被打散 [\#1070](https://github.com/youzan/vant-weapp/pull/1070)
|
- 修复 ActionSheet 动态设置actions时,渲染后button被打散 [\#1070](https://github.com/youzan/vant-weapp/pull/1070)
|
||||||
|
|
||||||
## [v0.4.9](https://github.com/youzan/vant-weapp/tree/v0.4.9)
|
### [v0.4.9](https://github.com/youzan/vant-weapp/tree/v0.4.9)
|
||||||
`2018-12-07`
|
`2018-12-07`
|
||||||
|
|
||||||
**Improvements**
|
**Improvements**
|
||||||
@ -396,7 +396,7 @@
|
|||||||
- 修复劫持 setData 方法导致无法适配支付宝小程序的问题 [\#1023](https://github.com/youzan/vant-weapp/pull/1023)
|
- 修复劫持 setData 方法导致无法适配支付宝小程序的问题 [\#1023](https://github.com/youzan/vant-weapp/pull/1023)
|
||||||
|
|
||||||
|
|
||||||
## [v0.4.8](https://github.com/youzan/vant-weapp/tree/v0.4.8)
|
### [v0.4.8](https://github.com/youzan/vant-weapp/tree/v0.4.8)
|
||||||
`2018-12-03`
|
`2018-12-03`
|
||||||
|
|
||||||
**Improvements**
|
**Improvements**
|
||||||
@ -421,7 +421,7 @@
|
|||||||
- 修复 Toast 在 iOS 设备上文字错误换行的问题 [\#959](https://github.com/youzan/vant-weapp/pull/959)
|
- 修复 Toast 在 iOS 设备上文字错误换行的问题 [\#959](https://github.com/youzan/vant-weapp/pull/959)
|
||||||
|
|
||||||
|
|
||||||
## [v0.4.7](https://github.com/youzan/vant-weapp/tree/v0.4.7)
|
### [v0.4.7](https://github.com/youzan/vant-weapp/tree/v0.4.7)
|
||||||
`2018-11-26`
|
`2018-11-26`
|
||||||
|
|
||||||
**Improvements**
|
**Improvements**
|
||||||
@ -453,7 +453,7 @@
|
|||||||
- 修复 DatetimePicker 设置了 minDate 时初始 value 错误的问题 [\#942](https://github.com/youzan/vant-weapp/pull/942)
|
- 修复 DatetimePicker 设置了 minDate 时初始 value 错误的问题 [\#942](https://github.com/youzan/vant-weapp/pull/942)
|
||||||
|
|
||||||
|
|
||||||
## [v0.4.6](https://github.com/youzan/vant-weapp/tree/v0.4.6)
|
### [v0.4.6](https://github.com/youzan/vant-weapp/tree/v0.4.6)
|
||||||
`2018-11-10`
|
`2018-11-10`
|
||||||
|
|
||||||
**Improvements**
|
**Improvements**
|
||||||
@ -476,7 +476,7 @@
|
|||||||
- 修复 TreeSelect 局部滚动与页面下拉刷新冲突的问题 [\#867](https://github.com/youzan/vant-weapp/pull/867)
|
- 修复 TreeSelect 局部滚动与页面下拉刷新冲突的问题 [\#867](https://github.com/youzan/vant-weapp/pull/867)
|
||||||
|
|
||||||
|
|
||||||
## [v0.4.5](https://github.com/youzan/vant-weapp/tree/v0.4.5)
|
### [v0.4.5](https://github.com/youzan/vant-weapp/tree/v0.4.5)
|
||||||
`2018-10-31`
|
`2018-10-31`
|
||||||
|
|
||||||
**Improvements**
|
**Improvements**
|
||||||
@ -488,7 +488,7 @@
|
|||||||
|
|
||||||
- Icon:修复商品角标 icon 兼容性问题 [\#840](https://github.com/youzan/vant-weapp/pull/840)
|
- Icon:修复商品角标 icon 兼容性问题 [\#840](https://github.com/youzan/vant-weapp/pull/840)
|
||||||
|
|
||||||
## [v0.4.4](https://github.com/youzan/vant-weapp/tree/v0.4.4)
|
### [v0.4.4](https://github.com/youzan/vant-weapp/tree/v0.4.4)
|
||||||
`2018-10-31`
|
`2018-10-31`
|
||||||
|
|
||||||
**Improvements**
|
**Improvements**
|
||||||
@ -503,7 +503,7 @@
|
|||||||
- 修复 Tab 动态设置时底部划线样式问题 [\#816](https://github.com/youzan/vant-weapp/pull/816)
|
- 修复 Tab 动态设置时底部划线样式问题 [\#816](https://github.com/youzan/vant-weapp/pull/816)
|
||||||
- 修复 ellipsis 样式类不生效的问题 [\#810](https://github.com/youzan/vant-weapp/pull/810)
|
- 修复 ellipsis 样式类不生效的问题 [\#810](https://github.com/youzan/vant-weapp/pull/810)
|
||||||
|
|
||||||
## [v0.4.3](https://github.com/youzan/vant-weapp/tree/v0.4.3)
|
### [v0.4.3](https://github.com/youzan/vant-weapp/tree/v0.4.3)
|
||||||
`2018-10-24`
|
`2018-10-24`
|
||||||
|
|
||||||
**Improvements**
|
**Improvements**
|
||||||
@ -517,7 +517,7 @@
|
|||||||
|
|
||||||
- ActionSheet: 修复背景色样式问题 [\#807](https://github.com/youzan/vant-weapp/pull/807)
|
- ActionSheet: 修复背景色样式问题 [\#807](https://github.com/youzan/vant-weapp/pull/807)
|
||||||
|
|
||||||
## [v0.4.2](https://github.com/youzan/vant-weapp/tree/v0.4.2)
|
### [v0.4.2](https://github.com/youzan/vant-weapp/tree/v0.4.2)
|
||||||
`2018-10-19`
|
`2018-10-19`
|
||||||
|
|
||||||
**Improvements**
|
**Improvements**
|
||||||
@ -537,7 +537,7 @@
|
|||||||
- 修复 Notify color 参数无效问题 [\#783](https://github.com/youzan/vant-weapp/pull/783)
|
- 修复 Notify color 参数无效问题 [\#783](https://github.com/youzan/vant-weapp/pull/783)
|
||||||
- 修复 Tabbar 使用插槽时 info 属性不生效的问题 [\#779](https://github.com/youzan/vant-weapp/pull/779)
|
- 修复 Tabbar 使用插槽时 info 属性不生效的问题 [\#779](https://github.com/youzan/vant-weapp/pull/779)
|
||||||
|
|
||||||
## [v0.4.1](https://github.com/youzan/vant-weapp/tree/v0.4.1)
|
### [v0.4.1](https://github.com/youzan/vant-weapp/tree/v0.4.1)
|
||||||
`2018-10-17`
|
`2018-10-17`
|
||||||
|
|
||||||
**Improvements**
|
**Improvements**
|
||||||
@ -551,7 +551,7 @@
|
|||||||
- 修复 SubmitBar 按钮文字过大时显示不全的问题 [\#771](https://github.com/youzan/vant-weapp/pull/771)
|
- 修复 SubmitBar 按钮文字过大时显示不全的问题 [\#771](https://github.com/youzan/vant-weapp/pull/771)
|
||||||
- 修复 Tab 在 card 类型下 color 属性错误的问题 [\#767](https://github.com/youzan/vant-weapp/pull/767)
|
- 修复 Tab 在 card 类型下 color 属性错误的问题 [\#767](https://github.com/youzan/vant-weapp/pull/767)
|
||||||
|
|
||||||
## [v0.4.0](https://github.com/youzan/vant-weapp/tree/v0.4.0)
|
### [v0.4.0](https://github.com/youzan/vant-weapp/tree/v0.4.0)
|
||||||
`2018-10-15`
|
`2018-10-15`
|
||||||
|
|
||||||
**Improvements**
|
**Improvements**
|
||||||
@ -571,7 +571,7 @@
|
|||||||
- 修复 SubmitBar 文字颜色过浅的问题
|
- 修复 SubmitBar 文字颜色过浅的问题
|
||||||
- 修复 Tab 在 card 类型下样式错误的问题 [\#742](https://github.com/youzan/vant-weapp/pull/742)
|
- 修复 Tab 在 card 类型下样式错误的问题 [\#742](https://github.com/youzan/vant-weapp/pull/742)
|
||||||
|
|
||||||
## [v0.3.8](https://github.com/youzan/vant-weapp/tree/v0.3.8)
|
### [v0.3.8](https://github.com/youzan/vant-weapp/tree/v0.3.8)
|
||||||
`2018-10-09`
|
`2018-10-09`
|
||||||
|
|
||||||
**Improvements**
|
**Improvements**
|
||||||
@ -590,7 +590,7 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
## [v0.3.7](https://github.com/youzan/vant-weapp/tree/v0.3.7)
|
### [v0.3.7](https://github.com/youzan/vant-weapp/tree/v0.3.7)
|
||||||
`2018-10-08`
|
`2018-10-08`
|
||||||
|
|
||||||
**Improvements**
|
**Improvements**
|
||||||
@ -606,7 +606,7 @@
|
|||||||
- NoticeBar: 优化样式 [\#699](https://github.com/youzan/vant-weapp/pull/699)
|
- NoticeBar: 优化样式 [\#699](https://github.com/youzan/vant-weapp/pull/699)
|
||||||
|
|
||||||
|
|
||||||
## [v0.3.6](https://github.com/youzan/vant-weapp/tree/v0.3.6)
|
### [v0.3.6](https://github.com/youzan/vant-weapp/tree/v0.3.6)
|
||||||
`2018-09-30`
|
`2018-09-30`
|
||||||
|
|
||||||
**Improvements**
|
**Improvements**
|
||||||
@ -618,7 +618,7 @@
|
|||||||
|
|
||||||
- 修复 Field readonly 属性不生效的问题 [\#679](https://github.com/youzan/vant-weapp/pull/679)
|
- 修复 Field readonly 属性不生效的问题 [\#679](https://github.com/youzan/vant-weapp/pull/679)
|
||||||
|
|
||||||
## [v0.3.5](https://github.com/youzan/vant-weapp/tree/v0.3.5)
|
### [v0.3.5](https://github.com/youzan/vant-weapp/tree/v0.3.5)
|
||||||
`2018-09-29`
|
`2018-09-29`
|
||||||
|
|
||||||
**Improvements**
|
**Improvements**
|
||||||
@ -632,7 +632,7 @@
|
|||||||
- 修复 Tab active 属性默认值错误的问题 [\#665](https://github.com/youzan/vant-weapp/pull/665)
|
- 修复 Tab active 属性默认值错误的问题 [\#665](https://github.com/youzan/vant-weapp/pull/665)
|
||||||
|
|
||||||
|
|
||||||
## [v0.3.4](https://github.com/youzan/vant-weapp/tree/v0.3.4)
|
### [v0.3.4](https://github.com/youzan/vant-weapp/tree/v0.3.4)
|
||||||
`2018-09-27`
|
`2018-09-27`
|
||||||
|
|
||||||
**Improvements**
|
**Improvements**
|
||||||
@ -653,7 +653,7 @@
|
|||||||
- 修复 Toast 触发 touch 事件时报错的问题 [\#618](https://github.com/youzan/vant-weapp/pull/618)
|
- 修复 Toast 触发 touch 事件时报错的问题 [\#618](https://github.com/youzan/vant-weapp/pull/618)
|
||||||
|
|
||||||
|
|
||||||
## [v0.3.3](https://github.com/youzan/vant-weapp/tree/v0.3.3)
|
### [v0.3.3](https://github.com/youzan/vant-weapp/tree/v0.3.3)
|
||||||
`2018-09-20`
|
`2018-09-20`
|
||||||
|
|
||||||
**Improvements**
|
**Improvements**
|
||||||
@ -677,7 +677,7 @@
|
|||||||
- 修复 Toast 滚动穿透问题 [\#586](https://github.com/youzan/vant-weapp/pull/586)
|
- 修复 Toast 滚动穿透问题 [\#586](https://github.com/youzan/vant-weapp/pull/586)
|
||||||
|
|
||||||
|
|
||||||
## [v0.3.2](https://github.com/youzan/vant-weapp/tree/v0.3.2)
|
### [v0.3.2](https://github.com/youzan/vant-weapp/tree/v0.3.2)
|
||||||
`2018-09-13`
|
`2018-09-13`
|
||||||
|
|
||||||
**Improvements**
|
**Improvements**
|
||||||
@ -701,14 +701,14 @@
|
|||||||
- 移除 Cell 目前无法生效的 arrow-direction 属性 [\#559](https://github.com/youzan/vant-weapp/pull/559)
|
- 移除 Cell 目前无法生效的 arrow-direction 属性 [\#559](https://github.com/youzan/vant-weapp/pull/559)
|
||||||
|
|
||||||
|
|
||||||
## [v0.3.1](https://github.com/youzan/vant-weapp/tree/v0.3.1)
|
### [v0.3.1](https://github.com/youzan/vant-weapp/tree/v0.3.1)
|
||||||
`2018-09-08`
|
`2018-09-08`
|
||||||
|
|
||||||
**Bug Fixes**
|
**Bug Fixes**
|
||||||
|
|
||||||
- 修复内置样式无法引入的问题 [\#535](https://github.com/youzan/vant-weapp/pull/535)
|
- 修复内置样式无法引入的问题 [\#535](https://github.com/youzan/vant-weapp/pull/535)
|
||||||
|
|
||||||
## [v0.3.0](https://github.com/youzan/vant-weapp/tree/v0.3.0)
|
### [v0.3.0](https://github.com/youzan/vant-weapp/tree/v0.3.0)
|
||||||
`2018-09-07`
|
`2018-09-07`
|
||||||
|
|
||||||
**Breaking changes**
|
**Breaking changes**
|
||||||
@ -734,7 +734,7 @@
|
|||||||
- 修复 Button 在加载状态下仍然显示文字的问题 [\#503](https://github.com/youzan/vant-weapp/pull/503)
|
- 修复 Button 在加载状态下仍然显示文字的问题 [\#503](https://github.com/youzan/vant-weapp/pull/503)
|
||||||
|
|
||||||
|
|
||||||
## [v0.2.1](https://github.com/youzan/vant-weapp/tree/v0.2.1)
|
### [v0.2.1](https://github.com/youzan/vant-weapp/tree/v0.2.1)
|
||||||
`2018-08-31`
|
`2018-08-31`
|
||||||
|
|
||||||
**Improvements**
|
**Improvements**
|
||||||
@ -754,7 +754,7 @@
|
|||||||
- 修复 Tabbar z-index 不生效的问题 [\#474](https://github.com/youzan/vant-weapp/pull/474)
|
- 修复 Tabbar z-index 不生效的问题 [\#474](https://github.com/youzan/vant-weapp/pull/474)
|
||||||
|
|
||||||
|
|
||||||
## [v0.2.0](https://github.com/youzan/vant-weapp/tree/v0.2.0)
|
### [v0.2.0](https://github.com/youzan/vant-weapp/tree/v0.2.0)
|
||||||
`2018-08-22`
|
`2018-08-22`
|
||||||
|
|
||||||
**Breaking changes**
|
**Breaking changes**
|
||||||
@ -774,7 +774,7 @@
|
|||||||
|
|
||||||
- 修复 share 图标无法加粗的问题 [\#457](https://github.com/youzan/vant-weapp/pull/457)
|
- 修复 share 图标无法加粗的问题 [\#457](https://github.com/youzan/vant-weapp/pull/457)
|
||||||
|
|
||||||
## [v0.1.1](https://github.com/youzan/vant-weapp/tree/v0.1.1)
|
### [v0.1.1](https://github.com/youzan/vant-weapp/tree/v0.1.1)
|
||||||
`2018-08-21`
|
`2018-08-21`
|
||||||
|
|
||||||
**Improvements**
|
**Improvements**
|
||||||
@ -790,7 +790,7 @@
|
|||||||
- 修复 Field icon slot 无法使用的问题 [\#428](https://github.com/youzan/vant-weapp/pull/428)
|
- 修复 Field icon slot 无法使用的问题 [\#428](https://github.com/youzan/vant-weapp/pull/428)
|
||||||
- 修复 Switch 组件无法开关的问题 [\#438](https://github.com/youzan/vant-weapp/pull/438)
|
- 修复 Switch 组件无法开关的问题 [\#438](https://github.com/youzan/vant-weapp/pull/438)
|
||||||
|
|
||||||
## [v0.1.0](https://github.com/youzan/vant-weapp/tree/v0.1.0)
|
### [v0.1.0](https://github.com/youzan/vant-weapp/tree/v0.1.0)
|
||||||
`2018-08-13`
|
`2018-08-13`
|
||||||
|
|
||||||
**Breaking changes**
|
**Breaking changes**
|
||||||
@ -807,7 +807,7 @@
|
|||||||
- 修复 Card 金额为 0 时无法展示的问题
|
- 修复 Card 金额为 0 时无法展示的问题
|
||||||
|
|
||||||
|
|
||||||
## [v0.0.1](https://github.com/youzan/vant-weapp/tree/v0.0.1)
|
### [v0.0.1](https://github.com/youzan/vant-weapp/tree/v0.0.1)
|
||||||
`2018-08-10`
|
`2018-08-10`
|
||||||
|
|
||||||
**Improvements**
|
**Improvements**
|
||||||
|
@ -1,18 +1,20 @@
|
|||||||
<div class="van-doc-intro">
|
<div class="card">
|
||||||
<img class="van-doc-intro__youzan" src="//img.yzcdn.cn/public_files/2017/02/09/e84aa8cbbf7852688c86218c1f3bbf17.png">
|
<div class="van-doc-intro">
|
||||||
<img class="van-doc-intro__logo" src="//img.yzcdn.cn/public_files/2017/12/18/fd78cf6bb5d12e2a119d0576bedfd230.png">
|
<img class="van-doc-intro__logo" style="width: 120px; height: 120px; box-shadow: none;" src="//img.yzcdn.cn/public_files/2017/12/18/fd78cf6bb5d12e2a119d0576bedfd230.png">
|
||||||
<h2>Vant Weapp</h2>
|
<h2 style="margin: 0; font-size: 36px; line-height: 60px;">Vant Weapp</h2>
|
||||||
<p>轻量、可靠的小程序 UI 组件库</p>
|
<p>轻量、可靠的小程序 UI 组件库</p>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
### 概述
|
### 概述
|
||||||
|
|
||||||
[Vant Weapp](https://youzan.github.io/vant-weapp) 是有赞移动端组件库 [Vant](https://github.com/youzan/vant) 的小程序版本,两者基于相同的视觉规范,提供一致的 API 接口,助力开发者快速搭建小程序应用。
|
[Vant Weapp](https://youzan.github.io/vant-weapp) 是有赞移动端组件库 [Vant](https://github.com/youzan/vant) 的小程序版本,两者基于相同的视觉规范,提供一致的 API 接口,助力开发者快速搭建小程序应用。
|
||||||
|
|
||||||
### 预览
|
### 预览
|
||||||
|
|
||||||
扫描下方小程序二维码,体验组件库示例:
|
扫描下方小程序二维码,体验组件库示例:
|
||||||
|
|
||||||
<img src="https://img.yzcdn.cn/vant-weapp/qrcode-201808101114.jpg" width="200" height="200" style="margin-top: 10px;" >
|
<img src="https://img.yzcdn.cn/vant-weapp/qrcode-201808101114.jpg" style="width: 200px; height: 200px; margin-top: 15px; box-shadow: none" >
|
||||||
|
|
||||||
### 快速上手
|
### 快速上手
|
||||||
|
|
||||||
|
@ -1,12 +1,12 @@
|
|||||||
## 快速上手
|
# 快速上手
|
||||||
|
|
||||||
### 使用之前
|
### 使用之前
|
||||||
|
|
||||||
使用 Vant Weapp 前,请确保你已经学习过微信官方的 [小程序简易教程](https://mp.weixin.qq.com/debug/wxadoc/dev/) 和 [自定义组件介绍](https://developers.weixin.qq.com/miniprogram/dev/framework/custom-component/)。
|
使用 Vant Weapp 前,请确保你已经学习过微信官方的 [小程序简易教程](https://mp.weixin.qq.com/debug/wxadoc/dev/) 和 [自定义组件介绍](https://developers.weixin.qq.com/miniprogram/dev/framework/custom-component/)。
|
||||||
|
|
||||||
### 安装
|
## 安装
|
||||||
|
|
||||||
#### 方式一. 通过 npm 安装 (推荐)
|
### 方式一. 通过 npm 安装 (推荐)
|
||||||
|
|
||||||
小程序已经支持使用 npm 安装第三方包,详见 [npm 支持](https://developers.weixin.qq.com/miniprogram/dev/devtools/npm.html?search-key=npm)
|
小程序已经支持使用 npm 安装第三方包,详见 [npm 支持](https://developers.weixin.qq.com/miniprogram/dev/devtools/npm.html?search-key=npm)
|
||||||
|
|
||||||
@ -18,13 +18,15 @@ npm i vant-weapp -S --production
|
|||||||
yarn add vant-weapp --production
|
yarn add vant-weapp --production
|
||||||
```
|
```
|
||||||
|
|
||||||
#### 方式二. 下载代码
|
### 方式二. 下载代码
|
||||||
|
|
||||||
直接通过 git 下载 Vant Weapp 源代码,并将`dist`或`lib`目录拷贝到自己的项目中
|
直接通过 git 下载 Vant Weapp 源代码,并将`dist`或`lib`目录拷贝到自己的项目中
|
||||||
```bash
|
```bash
|
||||||
git clone https://github.com/youzan/vant-weapp.git
|
git clone https://github.com/youzan/vant-weapp.git
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## 使用
|
||||||
|
|
||||||
### 使用组件
|
### 使用组件
|
||||||
|
|
||||||
以按钮组件为例,只需要在 json 文件中引入按钮对应的自定义组件即可
|
以按钮组件为例,只需要在 json 文件中引入按钮对应的自定义组件即可
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
<van-doc
|
<van-doc
|
||||||
active="小程序组件"
|
active="小程序组件"
|
||||||
:config="config"
|
:config="config"
|
||||||
|
:github="github"
|
||||||
:simulator="simulator"
|
:simulator="simulator"
|
||||||
>
|
>
|
||||||
<router-view />
|
<router-view />
|
||||||
@ -9,7 +10,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import docConfig from './doc.config';
|
import docConfig, { github } from './doc.config';
|
||||||
|
|
||||||
const UNSHARED = [
|
const UNSHARED = [
|
||||||
'common',
|
'common',
|
||||||
@ -24,6 +25,12 @@ const MAPPER = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
github
|
||||||
|
};
|
||||||
|
},
|
||||||
|
|
||||||
computed: {
|
computed: {
|
||||||
config() {
|
config() {
|
||||||
return docConfig;
|
return docConfig;
|
||||||
@ -49,15 +56,9 @@ export default {
|
|||||||
<style lang="less">
|
<style lang="less">
|
||||||
.van-doc-intro {
|
.van-doc-intro {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
padding-top: 20px;
|
||||||
font-family: "Dosis", "Source Sans Pro", "Helvetica Neue", Arial, sans-serif;
|
font-family: "Dosis", "Source Sans Pro", "Helvetica Neue", Arial, sans-serif;
|
||||||
|
|
||||||
&__youzan {
|
|
||||||
width: 32px;
|
|
||||||
height: 32px;
|
|
||||||
display: block;
|
|
||||||
margin: 25px 0 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
&__logo {
|
&__logo {
|
||||||
width: 120px;
|
width: 120px;
|
||||||
height: 120px;
|
height: 120px;
|
||||||
@ -72,6 +73,7 @@ export default {
|
|||||||
p {
|
p {
|
||||||
font-size: 15px;
|
font-size: 15px;
|
||||||
color: #455a64;
|
color: #455a64;
|
||||||
|
margin-bottom: 20px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
@ -3,6 +3,8 @@ import packageJson from '../../package.json';
|
|||||||
import components from '../../example/config';
|
import components from '../../example/config';
|
||||||
const { version } = packageJson;
|
const { version } = packageJson;
|
||||||
|
|
||||||
|
export const github = 'https://github.com/youzan/vant-weapp';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
header: {
|
header: {
|
||||||
logo: {
|
logo: {
|
||||||
@ -11,11 +13,7 @@ export default {
|
|||||||
title: 'Vant Weapp',
|
title: 'Vant Weapp',
|
||||||
href: '#/'
|
href: '#/'
|
||||||
},
|
},
|
||||||
nav: {
|
nav: {}
|
||||||
'Vue 组件': 'https://youzan.github.io/vant/',
|
|
||||||
'小程序组件': 'https://youzan.github.io/vant-weapp/',
|
|
||||||
github: 'https://github.com/youzan/vant-weapp'
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
nav: [
|
nav: [
|
||||||
{
|
{
|
||||||
|
@ -2,7 +2,7 @@ import Vue from 'vue';
|
|||||||
import VueRouter from 'vue-router';
|
import VueRouter from 'vue-router';
|
||||||
import App from './App';
|
import App from './App';
|
||||||
import routes from './router';
|
import routes from './router';
|
||||||
import VantDoc, { progress } from '@vant/doc';
|
import VantDoc from '@vant/doc';
|
||||||
|
|
||||||
Vue.use(VueRouter).use(VantDoc);
|
Vue.use(VueRouter).use(VantDoc);
|
||||||
|
|
||||||
@ -19,12 +19,10 @@ router.beforeEach((route, redirect, next) => {
|
|||||||
location.replace('https://youzan.github.io/vant/mobile.html?weapp=1');
|
location.replace('https://youzan.github.io/vant/mobile.html?weapp=1');
|
||||||
}
|
}
|
||||||
|
|
||||||
progress.start();
|
|
||||||
next();
|
next();
|
||||||
});
|
});
|
||||||
|
|
||||||
router.afterEach(() => {
|
router.afterEach(() => {
|
||||||
progress.done();
|
|
||||||
window.scrollTo(0, 0);
|
window.scrollTo(0, 0);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -26,8 +26,9 @@
|
|||||||
"@babel/core": "^7.4.5",
|
"@babel/core": "^7.4.5",
|
||||||
"@babel/plugin-syntax-dynamic-import": "^7.2.0",
|
"@babel/plugin-syntax-dynamic-import": "^7.2.0",
|
||||||
"@babel/preset-env": "^7.4.5",
|
"@babel/preset-env": "^7.4.5",
|
||||||
"@vant/doc": "^1.0.24",
|
"@vant/doc": "^2.3.2",
|
||||||
"@vant/icons": "1.1.8",
|
"@vant/icons": "1.1.8",
|
||||||
|
"@vant/markdown-loader": "^2.0.0",
|
||||||
"autoprefixer": "^9.6.0",
|
"autoprefixer": "^9.6.0",
|
||||||
"babel-loader": "8.0.6",
|
"babel-loader": "8.0.6",
|
||||||
"cross-env": "^5.1.4",
|
"cross-env": "^5.1.4",
|
||||||
@ -35,7 +36,6 @@
|
|||||||
"cssnano": "^4.1.10",
|
"cssnano": "^4.1.10",
|
||||||
"eslint": "^5.16.0",
|
"eslint": "^5.16.0",
|
||||||
"eslint-plugin-vue-libs": "^3.0.0",
|
"eslint-plugin-vue-libs": "^3.0.0",
|
||||||
"fast-vue-md-loader": "^1.0.3",
|
|
||||||
"gh-pages": "^2.0.1",
|
"gh-pages": "^2.0.1",
|
||||||
"gulp": "^4.0.2",
|
"gulp": "^4.0.2",
|
||||||
"gulp-insert": "^0.5.0",
|
"gulp-insert": "^0.5.0",
|
||||||
|
@ -1,25 +1,19 @@
|
|||||||
## ActionSheet 上拉菜单
|
# ActionSheet 上拉菜单
|
||||||
|
|
||||||
### 使用指南
|
### 引入
|
||||||
在 app.json 或 index.json 中引入组件
|
|
||||||
|
在`app.json`或`index.json`中引入组件,默认为`ES6`版本,`ES5`引入方式参见[快速上手](#/quickstart)
|
||||||
|
|
||||||
es6
|
|
||||||
```json
|
```json
|
||||||
"usingComponents": {
|
"usingComponents": {
|
||||||
"van-action-sheet": "path/to/vant-weapp/dist/action-sheet/index"
|
"van-action-sheet": "path/to/vant-weapp/dist/action-sheet/index"
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
es5
|
|
||||||
```json
|
|
||||||
"usingComponents": {
|
|
||||||
"van-action-sheet": "path/to/vant-weapp/lib/action-sheet/index"
|
|
||||||
}
|
|
||||||
```
|
|
||||||
|
|
||||||
### 代码演示
|
## 代码演示
|
||||||
|
|
||||||
#### 基础用法
|
### 基础用法
|
||||||
需要传入一个`actions`的数组,数组的每一项是一个对象,对象属性见文档下方表格。
|
需要传入一个`actions`的数组,数组的每一项是一个对象,对象属性见文档下方表格。
|
||||||
|
|
||||||
```html
|
```html
|
||||||
@ -64,7 +58,7 @@ Page({
|
|||||||
});
|
});
|
||||||
```
|
```
|
||||||
|
|
||||||
#### 带取消按钮的 ActionSheet
|
### 带取消按钮的 ActionSheet
|
||||||
|
|
||||||
如果传入了`cancelText`属性,且不为空,则会在下方显示一个取消按钮,点击会将当前`ActionSheet`关闭。
|
如果传入了`cancelText`属性,且不为空,则会在下方显示一个取消按钮,点击会将当前`ActionSheet`关闭。
|
||||||
|
|
||||||
@ -77,7 +71,7 @@ Page({
|
|||||||
/>
|
/>
|
||||||
```
|
```
|
||||||
|
|
||||||
#### 带标题的 ActionSheet
|
### 带标题的 ActionSheet
|
||||||
|
|
||||||
如果传入了`title`属性,且不为空,则另外一种样式的`ActionSheet`,里面内容需要自定义。
|
如果传入了`title`属性,且不为空,则另外一种样式的`ActionSheet`,里面内容需要自定义。
|
||||||
|
|
||||||
|
@ -1,27 +1,23 @@
|
|||||||
## Area 省市区选择
|
# Area 省市区选择
|
||||||
|
|
||||||
|
### 介绍
|
||||||
|
|
||||||
省市区选择组件通常与 [弹出层](#/popup) 组件配合使用
|
省市区选择组件通常与 [弹出层](#/popup) 组件配合使用
|
||||||
|
|
||||||
### 使用指南
|
### 引入
|
||||||
|
|
||||||
在 app.json 或 index.json 中引入组件
|
在`app.json`或`index.json`中引入组件,默认为`ES6`版本,`ES5`引入方式参见[快速上手](#/quickstart)
|
||||||
|
|
||||||
es6
|
|
||||||
```json
|
```json
|
||||||
"usingComponents": {
|
"usingComponents": {
|
||||||
"van-area": "path/to/vant-weapp/dist/area/index"
|
"van-area": "path/to/vant-weapp/dist/area/index"
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
es5
|
|
||||||
```json
|
|
||||||
"usingComponents": {
|
|
||||||
"van-area": "path/to/vant-weapp/lib/area/index"
|
|
||||||
}
|
|
||||||
```
|
|
||||||
|
|
||||||
### 代码演示
|
## 代码演示
|
||||||
|
|
||||||
#### 基础用法
|
### 基础用法
|
||||||
|
|
||||||
要初始化一个`Area`组件,你需要传入一个`area-list`属性,数据格式具体可看下面数据格式章节
|
要初始化一个`Area`组件,你需要传入一个`area-list`属性,数据格式具体可看下面数据格式章节
|
||||||
|
|
||||||
@ -29,7 +25,7 @@ es5
|
|||||||
<van-area area-list="{{ areaList }}" />
|
<van-area area-list="{{ areaList }}" />
|
||||||
```
|
```
|
||||||
|
|
||||||
#### 选中省市区
|
### 选中省市区
|
||||||
|
|
||||||
如果想选中某个省市区,需要传入一个`value`属性,绑定对应的省市区`code`
|
如果想选中某个省市区,需要传入一个`value`属性,绑定对应的省市区`code`
|
||||||
|
|
||||||
@ -37,7 +33,7 @@ es5
|
|||||||
<van-area area-list="{{ areaList }}" value="110101" />
|
<van-area area-list="{{ areaList }}" value="110101" />
|
||||||
```
|
```
|
||||||
|
|
||||||
#### 配置显示列
|
### 配置显示列
|
||||||
|
|
||||||
可以通过`columns-num`属性配置省市区显示的列数,默认情况下会显示省市区,当你设置为`2`,则只会显示省市选择
|
可以通过`columns-num`属性配置省市区显示的列数,默认情况下会显示省市区,当你设置为`2`,则只会显示省市选择
|
||||||
|
|
||||||
@ -75,9 +71,7 @@ es5
|
|||||||
|-----------|-----------|-----------|-------------|
|
|-----------|-----------|-----------|-------------|
|
||||||
| reset | - | - | 重置所有选项到第一项 |
|
| reset | - | - | 重置所有选项到第一项 |
|
||||||
|
|
||||||
### 数据格式
|
### 省市区列表数据格式
|
||||||
|
|
||||||
#### 省市区列表数据格式
|
|
||||||
|
|
||||||
整体是一个 Object,包含 `province_list`, `city_list`, `county_list` 三个 key。
|
整体是一个 Object,包含 `province_list`, `city_list`, `county_list` 三个 key。
|
||||||
|
|
||||||
@ -114,7 +108,7 @@ es5
|
|||||||
|
|
||||||
完整数据见 [Area.json](https://github.com/youzan/vant/blob/dev/packages/area/demo/area.js)
|
完整数据见 [Area.json](https://github.com/youzan/vant/blob/dev/packages/area/demo/area.js)
|
||||||
|
|
||||||
#### 点击完成时返回的数据格式
|
### 点击完成时返回的数据格式
|
||||||
|
|
||||||
返回的数据整体为一个 Object,包含 `values`, `indexs` 两个 key
|
返回的数据整体为一个 Object,包含 `values`, `indexs` 两个 key
|
||||||
|
|
||||||
@ -140,10 +134,3 @@ es5
|
|||||||
```
|
```
|
||||||
|
|
||||||
`indexs` 为一个数组,数组内包含 `columnsNum` 个数据, 每个数据对应一列选项中被选中项的序号。
|
`indexs` 为一个数组,数组内包含 `columnsNum` 个数据, 每个数据对应一列选项中被选中项的序号。
|
||||||
|
|
||||||
### 更新日志
|
|
||||||
|
|
||||||
| 版本 | 类型 | 内容 |
|
|
||||||
|-----------|-----------|-----------|
|
|
||||||
| 0.3.3 | feature | 新增组件 |
|
|
||||||
| 0.3.5 | bugfix | 修复数据为空时报错的问题 |
|
|
||||||
|
@ -1,9 +1,8 @@
|
|||||||
## Badge 徽章
|
# Badge 徽章
|
||||||
|
|
||||||
### 使用指南
|
### 引入
|
||||||
在 app.json 或 index.json 中引入组件
|
在`app.json`或`index.json`中引入组件,默认为`ES6`版本,`ES5`引入方式参见[快速上手](#/quickstart)
|
||||||
|
|
||||||
es6
|
|
||||||
```json
|
```json
|
||||||
"usingComponents": {
|
"usingComponents": {
|
||||||
"van-badge": "path/to/vant-weapp/dist/badge/index",
|
"van-badge": "path/to/vant-weapp/dist/badge/index",
|
||||||
@ -11,17 +10,10 @@ es6
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
es5
|
|
||||||
```json
|
|
||||||
"usingComponents": {
|
|
||||||
"van-badge": "path/to/vant-weapp/lib/badge/index",
|
|
||||||
"van-badge-group": "path/to/vant-weapp/lib/badge-group/index"
|
|
||||||
}
|
|
||||||
```
|
|
||||||
|
|
||||||
### 代码演示
|
## 代码演示
|
||||||
|
|
||||||
#### 基础用法
|
### 基础用法
|
||||||
|
|
||||||
通过在`van-badge-group`上设置`active`属性来控制选中的`badge`
|
通过在`van-badge-group`上设置`active`属性来控制选中的`badge`
|
||||||
|
|
||||||
|
@ -1,25 +1,19 @@
|
|||||||
## Button 按钮
|
# Button 按钮
|
||||||
|
|
||||||
### 使用指南
|
### 引入
|
||||||
在 json 文件中配置button组件
|
|
||||||
|
在`app.json`或`index.json`中引入组件,默认为`ES6`版本,`ES5`引入方式参见[快速上手](#/quickstart)
|
||||||
|
|
||||||
es6
|
|
||||||
```json
|
```json
|
||||||
"usingComponents": {
|
"usingComponents": {
|
||||||
"van-button": "path/to/vant-weapp/dist/button/index"
|
"van-button": "path/to/vant-weapp/dist/button/index"
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
es5
|
|
||||||
```json
|
|
||||||
"usingComponents": {
|
|
||||||
"van-button": "path/to/vant-weapp/lib/button/index"
|
|
||||||
}
|
|
||||||
```
|
|
||||||
|
|
||||||
### 代码演示
|
## 代码演示
|
||||||
|
|
||||||
#### 按钮类型
|
### 按钮类型
|
||||||
|
|
||||||
支持`default`、`primary`、`info`、`warning`、`danger`五种类型,默认为`default`
|
支持`default`、`primary`、`info`、`warning`、`danger`五种类型,默认为`default`
|
||||||
|
|
||||||
@ -31,7 +25,7 @@ es5
|
|||||||
<van-button type="danger">危险按钮</van-button>
|
<van-button type="danger">危险按钮</van-button>
|
||||||
```
|
```
|
||||||
|
|
||||||
#### 朴素按钮
|
### 朴素按钮
|
||||||
|
|
||||||
通过`plain`属性将按钮设置为朴素按钮,朴素按钮的文字为按钮颜色,背景为白色
|
通过`plain`属性将按钮设置为朴素按钮,朴素按钮的文字为按钮颜色,背景为白色
|
||||||
|
|
||||||
@ -40,7 +34,7 @@ es5
|
|||||||
<van-button plain type="danger">朴素按钮</van-button>
|
<van-button plain type="danger">朴素按钮</van-button>
|
||||||
```
|
```
|
||||||
|
|
||||||
#### 细边框
|
### 细边框
|
||||||
|
|
||||||
设置`hairline`属性可以开启 0.5px 边框,基于伪类实现
|
设置`hairline`属性可以开启 0.5px 边框,基于伪类实现
|
||||||
|
|
||||||
@ -49,7 +43,7 @@ es5
|
|||||||
<van-button plain hairline type="danger">细边框按钮</van-button>
|
<van-button plain hairline type="danger">细边框按钮</van-button>
|
||||||
```
|
```
|
||||||
|
|
||||||
#### 禁用状态
|
### 禁用状态
|
||||||
|
|
||||||
通过`disabled`属性来禁用按钮,此时按钮不可点击
|
通过`disabled`属性来禁用按钮,此时按钮不可点击
|
||||||
|
|
||||||
@ -58,21 +52,21 @@ es5
|
|||||||
<van-button disabled type="danger">禁用状态</van-button>
|
<van-button disabled type="danger">禁用状态</van-button>
|
||||||
```
|
```
|
||||||
|
|
||||||
#### 加载状态
|
### 加载状态
|
||||||
|
|
||||||
```html
|
```html
|
||||||
<van-button loading type="primary" />
|
<van-button loading type="primary" />
|
||||||
<van-button loading type="danger" loading-text="加载中..." />
|
<van-button loading type="danger" loading-text="加载中..." />
|
||||||
```
|
```
|
||||||
|
|
||||||
#### 按钮形状
|
### 按钮形状
|
||||||
|
|
||||||
```html
|
```html
|
||||||
<van-button square type="primary">方形按钮</van-button>
|
<van-button square type="primary">方形按钮</van-button>
|
||||||
<van-button round type="danger">圆形按钮</van-button>
|
<van-button round type="danger">圆形按钮</van-button>
|
||||||
```
|
```
|
||||||
|
|
||||||
#### 按钮尺寸
|
### 按钮尺寸
|
||||||
支持`large`、`normal`、`small`、`mini`四种尺寸,默认为`normal`
|
支持`large`、`normal`、`small`、`mini`四种尺寸,默认为`normal`
|
||||||
|
|
||||||
```html
|
```html
|
||||||
@ -125,13 +119,3 @@ es5
|
|||||||
|-----------|-----------|
|
|-----------|-----------|
|
||||||
| custom-class | 根节点样式类 |
|
| custom-class | 根节点样式类 |
|
||||||
| loading-class | 加载图标样式类 |
|
| loading-class | 加载图标样式类 |
|
||||||
|
|
||||||
### 更新日志
|
|
||||||
|
|
||||||
| 版本 | 类型 | 内容 |
|
|
||||||
|-----------|-----------|-----------|
|
|
||||||
| 0.0.1 | feature | 新增组件 |
|
|
||||||
| 0.1.1 | feature | 新增 square 属性 |
|
|
||||||
| 0.3.0 | bugfix | 修复在加载状态下仍然显示文字的问题 |
|
|
||||||
| 0.3.4 | feature | 新增 id 属性 |
|
|
||||||
| 0.3.7 | feature | 新增 round 属性 |
|
|
||||||
|
@ -1,26 +1,19 @@
|
|||||||
## Card 商品卡片
|
# Card 商品卡片
|
||||||
|
|
||||||
### 使用指南
|
### 引入
|
||||||
|
|
||||||
在 app.json 或 index.json 中引入组件
|
在`app.json`或`index.json`中引入组件,默认为`ES6`版本,`ES5`引入方式参见[快速上手](#/quickstart)
|
||||||
|
|
||||||
es6
|
|
||||||
```json
|
```json
|
||||||
"usingComponents": {
|
"usingComponents": {
|
||||||
"van-card": "path/to/vant-weapp/dist/card/index"
|
"van-card": "path/to/vant-weapp/dist/card/index"
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
es5
|
|
||||||
```json
|
|
||||||
"usingComponents": {
|
|
||||||
"van-card": "path/to/vant-weapp/lib/card/index"
|
|
||||||
}
|
|
||||||
```
|
|
||||||
|
|
||||||
### 代码演示
|
## 代码演示
|
||||||
|
|
||||||
#### 基础用法
|
### 基础用法
|
||||||
|
|
||||||
```html
|
```html
|
||||||
<van-card
|
<van-card
|
||||||
@ -32,7 +25,7 @@ es5
|
|||||||
/>
|
/>
|
||||||
```
|
```
|
||||||
|
|
||||||
#### 高级用法
|
### 高级用法
|
||||||
|
|
||||||
可以通过插槽添加定制内容
|
可以通过插槽添加定制内容
|
||||||
|
|
||||||
@ -92,17 +85,3 @@ es5
|
|||||||
| origin-price-class | 划线原价样式类 |
|
| origin-price-class | 划线原价样式类 |
|
||||||
| desc-class | 描述样式类 |
|
| desc-class | 描述样式类 |
|
||||||
| num-class | 数量样式类 |
|
| num-class | 数量样式类 |
|
||||||
|
|
||||||
### 更新日志
|
|
||||||
|
|
||||||
| 版本 | 类型 | 内容 |
|
|
||||||
|-----------|-----------|-----------|
|
|
||||||
| 0.0.1 | feature | 新增组件 |
|
|
||||||
| 0.3.0 | bugfix | 修复 currency 默认值不生效的问题 |
|
|
||||||
| 0.3.3 | bugfix | 修复 centered 属性不生效的问题 |
|
|
||||||
| 0.3.7 | feature | 新增 tag 属性 |
|
|
||||||
| 0.3.7 | feature | 新增 link-type 属性 |
|
|
||||||
| 0.3.7 | feature | 新增 thumb-link 属性 |
|
|
||||||
| 0.3.8 | feature | 新增 lazyLoad 属性 |
|
|
||||||
| 0.4.0 | feature | 新增 thumb-mode 属性 |
|
|
||||||
| 0.4.0 | feature | 新增 origin-price 属性 |
|
|
||||||
|
@ -1,10 +1,9 @@
|
|||||||
## Cell 单元格
|
# Cell 单元格
|
||||||
|
|
||||||
### 使用指南
|
### 引入
|
||||||
|
|
||||||
在 app.json 或 index.json 中引入组件
|
在`app.json`或`index.json`中引入组件,默认为`ES6`版本,`ES5`引入方式参见[快速上手](#/quickstart)
|
||||||
|
|
||||||
es6
|
|
||||||
```json
|
```json
|
||||||
"usingComponents": {
|
"usingComponents": {
|
||||||
"van-cell": "path/to/vant-weapp/dist/cell/index",
|
"van-cell": "path/to/vant-weapp/dist/cell/index",
|
||||||
@ -12,17 +11,10 @@ es6
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
es5
|
|
||||||
```json
|
|
||||||
"usingComponents": {
|
|
||||||
"van-cell": "path/to/vant-weapp/lib/cell/index",
|
|
||||||
"van-cell-group": "path/to/vant-weapp/lib/cell-group/index"
|
|
||||||
}
|
|
||||||
```
|
|
||||||
|
|
||||||
### 代码演示
|
## 代码演示
|
||||||
|
|
||||||
#### 基础用法
|
### 基础用法
|
||||||
|
|
||||||
`Cell`可以单独使用,也可以与`CellGroup`搭配使用。`CellGroup`可以为`Cell`提供上下外边框。
|
`Cell`可以单独使用,也可以与`CellGroup`搭配使用。`CellGroup`可以为`Cell`提供上下外边框。
|
||||||
|
|
||||||
@ -33,7 +25,7 @@ es5
|
|||||||
</van-cell-group>
|
</van-cell-group>
|
||||||
```
|
```
|
||||||
|
|
||||||
#### 单元格大小
|
### 单元格大小
|
||||||
|
|
||||||
通过`size`属性可以控制单元格的大小
|
通过`size`属性可以控制单元格的大小
|
||||||
|
|
||||||
@ -42,7 +34,7 @@ es5
|
|||||||
<van-cell title="单元格" value="内容" size="large" label="描述信息" />
|
<van-cell title="单元格" value="内容" size="large" label="描述信息" />
|
||||||
```
|
```
|
||||||
|
|
||||||
#### 展示图标
|
### 展示图标
|
||||||
|
|
||||||
通过`icon`属性在标题左侧展示图标
|
通过`icon`属性在标题左侧展示图标
|
||||||
|
|
||||||
@ -50,7 +42,7 @@ es5
|
|||||||
<van-cell title="单元格" icon="location-o" />
|
<van-cell title="单元格" icon="location-o" />
|
||||||
```
|
```
|
||||||
|
|
||||||
#### 展示箭头
|
### 展示箭头
|
||||||
|
|
||||||
传入`is-link`属性则会在右侧显示箭头,并且可以通过传入`arrow-direction`属性控制箭头方向
|
传入`is-link`属性则会在右侧显示箭头,并且可以通过传入`arrow-direction`属性控制箭头方向
|
||||||
|
|
||||||
@ -60,7 +52,7 @@ es5
|
|||||||
<van-cell title="单元格" is-link value="内容" arrow-direction="down" />
|
<van-cell title="单元格" is-link value="内容" arrow-direction="down" />
|
||||||
```
|
```
|
||||||
|
|
||||||
#### 页面跳转
|
### 页面跳转
|
||||||
|
|
||||||
可以通过`url`属性进行页面跳转,通过`link-type`属性控制跳转类型
|
可以通过`url`属性进行页面跳转,通过`link-type`属性控制跳转类型
|
||||||
|
|
||||||
@ -68,7 +60,7 @@ es5
|
|||||||
<van-cell title="单元格" is-link url="/pages/dashboard/index" link-type="navigateTo" />
|
<van-cell title="单元格" is-link url="/pages/dashboard/index" link-type="navigateTo" />
|
||||||
```
|
```
|
||||||
|
|
||||||
#### 分组标题
|
### 分组标题
|
||||||
|
|
||||||
通过`CellGroup`的`title`属性可以指定分组标题
|
通过`CellGroup`的`title`属性可以指定分组标题
|
||||||
|
|
||||||
@ -81,7 +73,7 @@ es5
|
|||||||
</van-cell-group>
|
</van-cell-group>
|
||||||
```
|
```
|
||||||
|
|
||||||
#### 高级用法
|
### 高级用法
|
||||||
|
|
||||||
如以上用法不能满足你的需求,可以使用对应的插槽来自定义显示的内容
|
如以上用法不能满足你的需求,可以使用对应的插槽来自定义显示的内容
|
||||||
|
|
||||||
|
@ -1,9 +1,8 @@
|
|||||||
## Checkbox 复选框
|
# Checkbox 复选框
|
||||||
|
|
||||||
### 使用指南
|
### 引入
|
||||||
在 app.json 或 index.json 中引入组件
|
在`app.json`或`index.json`中引入组件,默认为`ES6`版本,`ES5`引入方式参见[快速上手](#/quickstart)
|
||||||
|
|
||||||
es6
|
|
||||||
```json
|
```json
|
||||||
"usingComponents": {
|
"usingComponents": {
|
||||||
"van-checkbox": "path/to/vant-weapp/dist/checkbox/index",
|
"van-checkbox": "path/to/vant-weapp/dist/checkbox/index",
|
||||||
@ -11,17 +10,10 @@ es6
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
es5
|
|
||||||
```json
|
|
||||||
"usingComponents": {
|
|
||||||
"van-checkbox": "path/to/vant-weapp/lib/checkbox/index",
|
|
||||||
"van-checkbox-group": "path/to/vant-weapp/lib/checkbox-group/index"
|
|
||||||
}
|
|
||||||
```
|
|
||||||
|
|
||||||
### 代码演示
|
## 代码演示
|
||||||
|
|
||||||
#### 基础用法
|
### 基础用法
|
||||||
|
|
||||||
通过`value`绑定 checkbox 的勾选状态
|
通过`value`绑定 checkbox 的勾选状态
|
||||||
|
|
||||||
@ -43,7 +35,7 @@ Page({
|
|||||||
});
|
});
|
||||||
```
|
```
|
||||||
|
|
||||||
#### 禁用状态
|
### 禁用状态
|
||||||
|
|
||||||
```html
|
```html
|
||||||
<van-checkbox
|
<van-checkbox
|
||||||
@ -55,7 +47,7 @@ Page({
|
|||||||
</van-checkbox>
|
</van-checkbox>
|
||||||
```
|
```
|
||||||
|
|
||||||
#### 自定义颜色
|
### 自定义颜色
|
||||||
|
|
||||||
```html
|
```html
|
||||||
<van-checkbox
|
<van-checkbox
|
||||||
@ -67,7 +59,7 @@ Page({
|
|||||||
</van-checkbox>
|
</van-checkbox>
|
||||||
```
|
```
|
||||||
|
|
||||||
#### 自定义图标
|
### 自定义图标
|
||||||
|
|
||||||
通过 icon 插槽自定义图标
|
通过 icon 插槽自定义图标
|
||||||
|
|
||||||
@ -99,7 +91,7 @@ Page({
|
|||||||
});
|
});
|
||||||
```
|
```
|
||||||
|
|
||||||
#### 复选框组
|
### 复选框组
|
||||||
|
|
||||||
需要与`van-checkbox-group`一起使用,选中值是一个数组,通过`value`绑定在`van-checkbox-group`上,数组中的项即为选中的`Checkbox`的`name`属性设置的值
|
需要与`van-checkbox-group`一起使用,选中值是一个数组,通过`value`绑定在`van-checkbox-group`上,数组中的项即为选中的`Checkbox`的`name`属性设置的值
|
||||||
|
|
||||||
@ -130,7 +122,7 @@ Page({
|
|||||||
});
|
});
|
||||||
```
|
```
|
||||||
|
|
||||||
#### 设置最大可选数
|
### 设置最大可选数
|
||||||
|
|
||||||
```html
|
```html
|
||||||
<van-checkbox-group value="{{ result }}" bind:change="onChange" max="{{ 2 }}">
|
<van-checkbox-group value="{{ result }}" bind:change="onChange" max="{{ 2 }}">
|
||||||
@ -144,7 +136,7 @@ Page({
|
|||||||
</van-checkbox-group>
|
</van-checkbox-group>
|
||||||
```
|
```
|
||||||
|
|
||||||
#### 搭配单元格组件使用
|
### 搭配单元格组件使用
|
||||||
|
|
||||||
此时你需要再引入`Cell`和`CellGroup`组件,并通过 checkbox 的 toggle 方法手动触发切换
|
此时你需要再引入`Cell`和`CellGroup`组件,并通过 checkbox 的 toggle 方法手动触发切换
|
||||||
|
|
||||||
|
@ -1,10 +1,9 @@
|
|||||||
## Layout 布局
|
# Layout 布局
|
||||||
|
|
||||||
### 使用指南
|
### 引入
|
||||||
|
|
||||||
在 app.json 或 index.json 中引入组件
|
在`app.json`或`index.json`中引入组件,默认为`ES6`版本,`ES5`引入方式参见[快速上手](#/quickstart)
|
||||||
|
|
||||||
es6
|
|
||||||
```json
|
```json
|
||||||
"usingComponents": {
|
"usingComponents": {
|
||||||
"van-row": "path/to/vant-weapp/dist/row/index",
|
"van-row": "path/to/vant-weapp/dist/row/index",
|
||||||
@ -12,17 +11,9 @@ es6
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
es5
|
## 代码演示
|
||||||
```json
|
|
||||||
"usingComponents": {
|
|
||||||
"van-row": "path/to/vant-weapp/lib/row/index",
|
|
||||||
"van-col": "path/to/vant-weapp/lib/col/index"
|
|
||||||
}
|
|
||||||
```
|
|
||||||
|
|
||||||
### 代码演示
|
### 基本用法
|
||||||
|
|
||||||
#### 基本用法
|
|
||||||
|
|
||||||
Layout 组件提供了`24列栅格`,通过在`Col`上添加`span`属性设置列所占的宽度百分比
|
Layout 组件提供了`24列栅格`,通过在`Col`上添加`span`属性设置列所占的宽度百分比
|
||||||
此外,添加`offset`属性可以设置列的偏移宽度,计算方式与 span 相同
|
此外,添加`offset`属性可以设置列的偏移宽度,计算方式与 span 相同
|
||||||
@ -44,7 +35,7 @@ Layout 组件提供了`24列栅格`,通过在`Col`上添加`span`属性设置
|
|||||||
</van-row>
|
</van-row>
|
||||||
```
|
```
|
||||||
|
|
||||||
#### 设置列元素间距
|
### 设置列元素间距
|
||||||
|
|
||||||
通过`gutter`属性可以设置列元素之间的间距,默认间距为 0
|
通过`gutter`属性可以设置列元素之间的间距,默认间距为 0
|
||||||
|
|
||||||
@ -56,15 +47,13 @@ Layout 组件提供了`24列栅格`,通过在`Col`上添加`span`属性设置
|
|||||||
</van-row>
|
</van-row>
|
||||||
```
|
```
|
||||||
|
|
||||||
### API
|
### Row API
|
||||||
|
|
||||||
#### Row
|
|
||||||
|
|
||||||
| 参数 | 说明 | 类型 | 默认值 |
|
| 参数 | 说明 | 类型 | 默认值 |
|
||||||
|-----------|-----------|-----------|-------------|
|
|-----------|-----------|-----------|-------------|
|
||||||
| gutter | 列元素之间的间距(单位为px) | `String | Number` | - |
|
| gutter | 列元素之间的间距(单位为px) | `String | Number` | - |
|
||||||
|
|
||||||
#### Col
|
### Col API
|
||||||
|
|
||||||
| 参数 | 说明 | 类型 | 默认值 |
|
| 参数 | 说明 | 类型 | 默认值 |
|
||||||
|-----------|-----------|-----------|-------------|
|
|-----------|-----------|-----------|-------------|
|
||||||
@ -76,11 +65,3 @@ Layout 组件提供了`24列栅格`,通过在`Col`上添加`span`属性设置
|
|||||||
| 类名 | 说明 |
|
| 类名 | 说明 |
|
||||||
|-----------|-----------|
|
|-----------|-----------|
|
||||||
| custom-class | 根节点样式类 |
|
| custom-class | 根节点样式类 |
|
||||||
|
|
||||||
### 更新日志
|
|
||||||
|
|
||||||
| 版本 | 类型 | 内容 |
|
|
||||||
|-----------|-----------|-----------|
|
|
||||||
| 0.0.1 | feature | 新增组件 |
|
|
||||||
| 0.3.2 | bugfix | 修复动态渲染时 gutter 属性不生效的问题 |
|
|
||||||
| 0.3.3 | bugfix | 修复 offset 属性不生效的问题|
|
|
||||||
|
@ -1,9 +1,8 @@
|
|||||||
## Collapse 折叠面板
|
# Collapse 折叠面板
|
||||||
|
|
||||||
### 使用指南
|
### 引入
|
||||||
在 app.json 或 index.json 中引入组件
|
在`app.json`或`index.json`中引入组件,默认为`ES6`版本,`ES5`引入方式参见[快速上手](#/quickstart)
|
||||||
|
|
||||||
es6
|
|
||||||
```json
|
```json
|
||||||
"usingComponents": {
|
"usingComponents": {
|
||||||
"van-collapse": "path/to/vant-weapp/dist/collapse/index",
|
"van-collapse": "path/to/vant-weapp/dist/collapse/index",
|
||||||
@ -11,17 +10,9 @@ es6
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
es5
|
## 代码演示
|
||||||
```json
|
|
||||||
"usingComponents": {
|
|
||||||
"van-collapse": "path/to/vant-weapp/lib/collapse/index",
|
|
||||||
"van-collapse-item": "path/to/vant-weapp/lib/collapse-item/index"
|
|
||||||
}
|
|
||||||
```
|
|
||||||
|
|
||||||
### 代码演示
|
### 基础用法
|
||||||
|
|
||||||
#### 基础用法
|
|
||||||
|
|
||||||
通过`value`控制展开的面板列表,`activeNames`为数组格式
|
通过`value`控制展开的面板列表,`activeNames`为数组格式
|
||||||
|
|
||||||
@ -52,7 +43,7 @@ Page({
|
|||||||
});
|
});
|
||||||
```
|
```
|
||||||
|
|
||||||
#### 手风琴
|
### 手风琴
|
||||||
|
|
||||||
通过`accordion`可以设置为手风琴模式,最多展开一个面板,此时`activeName`为字符串格式
|
通过`accordion`可以设置为手风琴模式,最多展开一个面板,此时`activeName`为字符串格式
|
||||||
|
|
||||||
@ -83,7 +74,7 @@ Page({
|
|||||||
});
|
});
|
||||||
```
|
```
|
||||||
|
|
||||||
#### 自定义标题内容
|
### 自定义标题内容
|
||||||
|
|
||||||
```html
|
```html
|
||||||
<van-collapse value="{{ activeNames }}" bind:change="onChange">
|
<van-collapse value="{{ activeNames }}" bind:change="onChange">
|
||||||
|
@ -1,14 +1,21 @@
|
|||||||
## 内置样式
|
# 内置样式
|
||||||
|
|
||||||
|
### 介绍
|
||||||
|
|
||||||
Vant 中默认包含了一些常用样式,可以直接通过 className 的方式使用。
|
Vant 中默认包含了一些常用样式,可以直接通过 className 的方式使用。
|
||||||
|
|
||||||
### 使用指南
|
### 引入
|
||||||
|
|
||||||
在 app.wxss 中引入内置样式
|
在 app.wxss 中引入内置样式
|
||||||
|
|
||||||
```css
|
```css
|
||||||
@import "path/to/vant-weapp/dist/common/index.wxss";
|
@import "path/to/vant-weapp/dist/common/index.wxss";
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## 代码演示
|
||||||
|
|
||||||
### 文字省略
|
### 文字省略
|
||||||
|
|
||||||
当文本内容长度超过容器最大宽度时,自动省略多余的文本。
|
当文本内容长度超过容器最大宽度时,自动省略多余的文本。
|
||||||
|
|
||||||
```html
|
```html
|
||||||
|
@ -1,26 +1,23 @@
|
|||||||
## DatetimePicker 时间选择
|
# DatetimePicker 时间选择
|
||||||
|
|
||||||
|
### 介绍
|
||||||
|
|
||||||
时间选择组件通常与 [弹出层](#/popup) 组件配合使用
|
时间选择组件通常与 [弹出层](#/popup) 组件配合使用
|
||||||
|
|
||||||
### 使用指南
|
### 引入
|
||||||
在 app.json 或 index.json 中引入组件
|
|
||||||
|
在`app.json`或`index.json`中引入组件,默认为`ES6`版本,`ES5`引入方式参见[快速上手](#/quickstart)
|
||||||
|
|
||||||
es6
|
|
||||||
```json
|
```json
|
||||||
"usingComponents": {
|
"usingComponents": {
|
||||||
"van-datetime-picker": "path/to/vant-weapp/dist/datetime-picker/index"
|
"van-datetime-picker": "path/to/vant-weapp/dist/datetime-picker/index"
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
es5
|
|
||||||
```json
|
|
||||||
"usingComponents": {
|
|
||||||
"van-datetime-picker": "path/to/vant-weapp/lib/datetime-picker/index"
|
|
||||||
}
|
|
||||||
```
|
|
||||||
|
|
||||||
### 代码演示
|
## 代码演示
|
||||||
|
|
||||||
#### 选择完整时间
|
### 选择完整时间
|
||||||
|
|
||||||
`value` 为时间戳
|
`value` 为时间戳
|
||||||
|
|
||||||
@ -52,7 +49,7 @@ Page({
|
|||||||
});
|
});
|
||||||
```
|
```
|
||||||
|
|
||||||
#### 选择日期(年月日)
|
### 选择日期(年月日)
|
||||||
|
|
||||||
`value` 为时间戳,通过传入 `formatter` 函数对选项文字进行处理
|
`value` 为时间戳,通过传入 `formatter` 函数对选项文字进行处理
|
||||||
|
|
||||||
@ -89,7 +86,7 @@ Page({
|
|||||||
});
|
});
|
||||||
```
|
```
|
||||||
|
|
||||||
#### 选择日期(年月)
|
### 选择日期(年月)
|
||||||
|
|
||||||
`value` 为时间戳
|
`value` 为时间戳
|
||||||
|
|
||||||
@ -117,7 +114,7 @@ Page({
|
|||||||
});
|
});
|
||||||
```
|
```
|
||||||
|
|
||||||
#### 选择时间
|
### 选择时间
|
||||||
|
|
||||||
`value` 为字符串
|
`value` 为字符串
|
||||||
|
|
||||||
|
@ -1,28 +1,23 @@
|
|||||||
## Dialog 弹出框
|
# Dialog 弹出框
|
||||||
|
|
||||||
|
### 介绍
|
||||||
|
|
||||||
Dialog 组件支持函数调用和组件调用两种形式
|
Dialog 组件支持函数调用和组件调用两种形式
|
||||||
|
|
||||||
### 使用指南
|
### 引入
|
||||||
|
|
||||||
在 app.json 或 index.json 中引入组件
|
在`app.json`或`index.json`中引入组件,默认为`ES6`版本,`ES5`引入方式参见[快速上手](#/quickstart)
|
||||||
|
|
||||||
es6
|
|
||||||
```json
|
```json
|
||||||
"usingComponents": {
|
"usingComponents": {
|
||||||
"van-dialog": "path/to/vant-weapp/dist/dialog/index"
|
"van-dialog": "path/to/vant-weapp/dist/dialog/index"
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
es5
|
|
||||||
```json
|
|
||||||
"usingComponents": {
|
|
||||||
"van-dialog": "path/to/vant-weapp/lib/dialog/index"
|
|
||||||
}
|
|
||||||
```
|
|
||||||
|
|
||||||
### 代码演示
|
## 代码演示
|
||||||
|
|
||||||
#### 消息提示
|
### 消息提示
|
||||||
|
|
||||||
用于提示一些消息,只包含一个确认按钮
|
用于提示一些消息,只包含一个确认按钮
|
||||||
|
|
||||||
@ -32,8 +27,6 @@ es5
|
|||||||
|
|
||||||
```javascript
|
```javascript
|
||||||
import Dialog from 'path/to/vant-weapp/dist/dialog/dialog';
|
import Dialog from 'path/to/vant-weapp/dist/dialog/dialog';
|
||||||
// es5
|
|
||||||
// var Dialog = require('path/to/vant-weapp/lib/dialog/dialog');
|
|
||||||
|
|
||||||
Dialog.alert({
|
Dialog.alert({
|
||||||
title: '标题',
|
title: '标题',
|
||||||
@ -49,7 +42,7 @@ Dialog.alert({
|
|||||||
});
|
});
|
||||||
```
|
```
|
||||||
|
|
||||||
#### 消息确认
|
### 消息确认
|
||||||
|
|
||||||
用于确认消息,包含取消和确认按钮
|
用于确认消息,包含取消和确认按钮
|
||||||
|
|
||||||
@ -64,7 +57,7 @@ Dialog.confirm({
|
|||||||
});
|
});
|
||||||
```
|
```
|
||||||
|
|
||||||
#### 异步关闭
|
### 异步关闭
|
||||||
|
|
||||||
设置`asyncClose`属性开启异步关闭,开启后可以手动调用`Dialog.close`方法关闭弹窗
|
设置`asyncClose`属性开启异步关闭,开启后可以手动调用`Dialog.close`方法关闭弹窗
|
||||||
|
|
||||||
@ -84,7 +77,7 @@ Dialog.confirm({
|
|||||||
});
|
});
|
||||||
```
|
```
|
||||||
|
|
||||||
#### 组件调用
|
### 组件调用
|
||||||
|
|
||||||
通过组件调用 Dialog 时,可以实现自定义弹窗内容、监听微信开放能力回调事件等功能,具体参考下例
|
通过组件调用 Dialog 时,可以实现自定义弹窗内容、监听微信开放能力回调事件等功能,具体参考下例
|
||||||
|
|
||||||
|
@ -1,25 +1,18 @@
|
|||||||
## Field 输入框
|
# Field 输入框
|
||||||
|
|
||||||
### 使用指南
|
### 引入
|
||||||
在 app.json 或 index.json 中引入组件
|
在`app.json`或`index.json`中引入组件,默认为`ES6`版本,`ES5`引入方式参见[快速上手](#/quickstart)
|
||||||
|
|
||||||
es6
|
|
||||||
```json
|
```json
|
||||||
"usingComponents": {
|
"usingComponents": {
|
||||||
"van-field": "path/to/vant-weapp/dist/field/index"
|
"van-field": "path/to/vant-weapp/dist/field/index"
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
es5
|
|
||||||
```json
|
|
||||||
"usingComponents": {
|
|
||||||
"van-field": "path/to/vant-weapp/lib/field/index"
|
|
||||||
}
|
|
||||||
```
|
|
||||||
|
|
||||||
### 代码演示
|
## 代码演示
|
||||||
|
|
||||||
#### 基础用法
|
### 基础用法
|
||||||
|
|
||||||
```html
|
```html
|
||||||
<van-cell-group>
|
<van-cell-group>
|
||||||
@ -45,7 +38,7 @@ Page({
|
|||||||
});
|
});
|
||||||
```
|
```
|
||||||
|
|
||||||
#### 自定义类型
|
### 自定义类型
|
||||||
根据`type`属性定义不同类型的输入框
|
根据`type`属性定义不同类型的输入框
|
||||||
|
|
||||||
```html
|
```html
|
||||||
@ -71,7 +64,7 @@ Page({
|
|||||||
</van-cell-group>
|
</van-cell-group>
|
||||||
```
|
```
|
||||||
|
|
||||||
#### 禁用输入框
|
### 禁用输入框
|
||||||
|
|
||||||
```html
|
```html
|
||||||
<van-cell-group>
|
<van-cell-group>
|
||||||
@ -85,7 +78,7 @@ Page({
|
|||||||
</van-cell-group>
|
</van-cell-group>
|
||||||
```
|
```
|
||||||
|
|
||||||
#### 错误提示
|
### 错误提示
|
||||||
通过`error`或者`error-message`属性增加对应的错误提示
|
通过`error`或者`error-message`属性增加对应的错误提示
|
||||||
|
|
||||||
```html
|
```html
|
||||||
@ -106,7 +99,7 @@ Page({
|
|||||||
</van-cell-group>
|
</van-cell-group>
|
||||||
```
|
```
|
||||||
|
|
||||||
#### 高度自适应
|
### 高度自适应
|
||||||
对于 textarea,可以通过`autosize`属性设置高度自适应
|
对于 textarea,可以通过`autosize`属性设置高度自适应
|
||||||
|
|
||||||
```html
|
```html
|
||||||
@ -122,7 +115,7 @@ Page({
|
|||||||
</van-cell-group>
|
</van-cell-group>
|
||||||
```
|
```
|
||||||
|
|
||||||
#### 插入按钮
|
### 插入按钮
|
||||||
通过 button slot 可以在输入框尾部插入按钮
|
通过 button slot 可以在输入框尾部插入按钮
|
||||||
|
|
||||||
```html
|
```html
|
||||||
|
@ -1,9 +1,8 @@
|
|||||||
## GoodsAction 商品导航
|
# GoodsAction 商品导航
|
||||||
|
|
||||||
### 使用指南
|
### 引入
|
||||||
在 app.json 或 index.json 中引入组件
|
在`app.json`或`index.json`中引入组件,默认为`ES6`版本,`ES5`引入方式参见[快速上手](#/quickstart)
|
||||||
|
|
||||||
es6
|
|
||||||
```json
|
```json
|
||||||
"usingComponents": {
|
"usingComponents": {
|
||||||
"van-goods-action": "path/to/vant-weapp/dist/goods-action/index",
|
"van-goods-action": "path/to/vant-weapp/dist/goods-action/index",
|
||||||
@ -12,18 +11,10 @@ es6
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
es5
|
|
||||||
```json
|
|
||||||
"usingComponents": {
|
|
||||||
"van-goods-action": "path/to/vant-weapp/lib/goods-action/index",
|
|
||||||
"van-goods-action-icon": "path/to/vant-weapp/lib/goods-action-icon/index",
|
|
||||||
"van-goods-action-button": "path/to/vant-weapp/lib/goods-action-button/index"
|
|
||||||
}
|
|
||||||
```
|
|
||||||
|
|
||||||
### 代码演示
|
## 代码演示
|
||||||
|
|
||||||
#### 基础用法
|
### 基础用法
|
||||||
|
|
||||||
```html
|
```html
|
||||||
<van-goods-action>
|
<van-goods-action>
|
||||||
@ -61,7 +52,7 @@ Page({
|
|||||||
});
|
});
|
||||||
```
|
```
|
||||||
|
|
||||||
#### 图标提示
|
### 图标提示
|
||||||
|
|
||||||
通过`info`属性在图标右上角增加相应的提示
|
通过`info`属性在图标右上角增加相应的提示
|
||||||
|
|
||||||
@ -141,9 +132,3 @@ Page({
|
|||||||
| 类名 | 说明 |
|
| 类名 | 说明 |
|
||||||
|-----------|-----------|
|
|-----------|-----------|
|
||||||
| custom-class | 根节点样式类 |
|
| custom-class | 根节点样式类 |
|
||||||
|
|
||||||
### 更新日志
|
|
||||||
|
|
||||||
| 版本 | 类型 | 内容 |
|
|
||||||
|-----------|-----------|-----------|
|
|
||||||
| 0.4.0 | feature | 新增组件 |
|
|
||||||
|
@ -1,26 +1,18 @@
|
|||||||
## Icon 图标
|
# Icon 图标
|
||||||
|
|
||||||
### 使用指南
|
### 引入
|
||||||
|
|
||||||
在 app.json 或 index.json 中引入组件
|
在`app.json`或`index.json`中引入组件,默认为`ES6`版本,`ES5`引入方式参见[快速上手](#/quickstart)
|
||||||
|
|
||||||
es6
|
|
||||||
```json
|
```json
|
||||||
"usingComponents": {
|
"usingComponents": {
|
||||||
"van-icon": "path/to/vant-weapp/dist/icon/index"
|
"van-icon": "path/to/vant-weapp/dist/icon/index"
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
es5
|
## 代码演示
|
||||||
```json
|
|
||||||
"usingComponents": {
|
|
||||||
"van-icon": "path/to/vant-weapp/lib/icon/index"
|
|
||||||
}
|
|
||||||
```
|
|
||||||
|
|
||||||
### 代码演示
|
### 基础用法
|
||||||
|
|
||||||
#### 基础用法
|
|
||||||
|
|
||||||
`Icon`的`name`属性支持传入图标名称或图片链接
|
`Icon`的`name`属性支持传入图标名称或图片链接
|
||||||
|
|
||||||
@ -29,7 +21,7 @@ es5
|
|||||||
<van-icon name="https://b.yzcdn.cn/vant/icon-demo-1126.png" />
|
<van-icon name="https://b.yzcdn.cn/vant/icon-demo-1126.png" />
|
||||||
```
|
```
|
||||||
|
|
||||||
#### 显示徽标
|
### 显示徽标
|
||||||
|
|
||||||
```html
|
```html
|
||||||
<van-icon name="chat" info="9" />
|
<van-icon name="chat" info="9" />
|
||||||
|
@ -1,33 +1,26 @@
|
|||||||
## Loading 加载
|
# Loading 加载
|
||||||
|
|
||||||
### 使用指南
|
### 引入
|
||||||
|
|
||||||
在 app.json 或 index.json 中引入组件
|
在`app.json`或`index.json`中引入组件,默认为`ES6`版本,`ES5`引入方式参见[快速上手](#/quickstart)
|
||||||
|
|
||||||
es6
|
|
||||||
```json
|
```json
|
||||||
"usingComponents": {
|
"usingComponents": {
|
||||||
"van-loading": "path/to/vant-weapp/dist/loading/index"
|
"van-loading": "path/to/vant-weapp/dist/loading/index"
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
es5
|
|
||||||
```json
|
|
||||||
"usingComponents": {
|
|
||||||
"van-loading": "path/to/vant-weapp/lib/loading/index"
|
|
||||||
}
|
|
||||||
```
|
|
||||||
|
|
||||||
### 代码演示
|
## 代码演示
|
||||||
|
|
||||||
#### Circular
|
### Circular
|
||||||
|
|
||||||
```html
|
```html
|
||||||
<van-loading />
|
<van-loading />
|
||||||
<van-loading color="#fff" />
|
<van-loading color="#fff" />
|
||||||
```
|
```
|
||||||
|
|
||||||
#### Spinner
|
### Spinner
|
||||||
|
|
||||||
```html
|
```html
|
||||||
<van-loading type="spinner" />
|
<van-loading type="spinner" />
|
||||||
|
@ -1,26 +1,19 @@
|
|||||||
## NavBar 导航栏
|
# NavBar 导航栏
|
||||||
|
|
||||||
### 使用指南
|
### 引入
|
||||||
|
|
||||||
在 app.json 或 index.json 中引入组件
|
在`app.json`或`index.json`中引入组件,默认为`ES6`版本,`ES5`引入方式参见[快速上手](#/quickstart)
|
||||||
|
|
||||||
es6
|
|
||||||
```json
|
```json
|
||||||
"usingComponents": {
|
"usingComponents": {
|
||||||
"van-nav-bar": "path/to/vant-weapp/dist/nav-bar/index"
|
"van-nav-bar": "path/to/vant-weapp/dist/nav-bar/index"
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
es5
|
|
||||||
```json
|
|
||||||
"usingComponents": {
|
|
||||||
"van-nav-bar": "path/to/vant-weapp/lib/nav-bar/index"
|
|
||||||
}
|
|
||||||
```
|
|
||||||
|
|
||||||
### 代码演示
|
## 代码演示
|
||||||
|
|
||||||
#### 基础用法
|
### 基础用法
|
||||||
|
|
||||||
```html
|
```html
|
||||||
<van-nav-bar
|
<van-nav-bar
|
||||||
@ -44,7 +37,7 @@ Page({
|
|||||||
});
|
});
|
||||||
```
|
```
|
||||||
|
|
||||||
#### 高级用法
|
### 高级用法
|
||||||
通过 slot 定制内容
|
通过 slot 定制内容
|
||||||
|
|
||||||
```html
|
```html
|
||||||
|
@ -1,27 +1,18 @@
|
|||||||
## NoticeBar 通告栏
|
# NoticeBar 通告栏
|
||||||
|
|
||||||
### 使用指南
|
### 引入
|
||||||
|
|
||||||
在 app.json 或 index.json 中引入组件
|
在`app.json`或`index.json`中引入组件,默认为`ES6`版本,`ES5`引入方式参见[快速上手](#/quickstart)
|
||||||
|
|
||||||
es6
|
|
||||||
```json
|
```json
|
||||||
"usingComponents": {
|
"usingComponents": {
|
||||||
"van-notice-bar": "path/to/vant-weapp/dist/notice-bar/index"
|
"van-notice-bar": "path/to/vant-weapp/dist/notice-bar/index"
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
es5
|
## 代码演示
|
||||||
```json
|
|
||||||
"usingComponents": {
|
|
||||||
"van-notice-bar": "path/to/vant-weapp/lib/notice-bar/index"
|
|
||||||
}
|
|
||||||
```
|
|
||||||
|
|
||||||
|
### 基础用法
|
||||||
### 代码演示
|
|
||||||
|
|
||||||
#### 基础用法
|
|
||||||
|
|
||||||
```html
|
```html
|
||||||
<van-notice-bar
|
<van-notice-bar
|
||||||
@ -30,7 +21,7 @@ es5
|
|||||||
/>
|
/>
|
||||||
```
|
```
|
||||||
|
|
||||||
#### 禁用滚动
|
### 禁用滚动
|
||||||
文字内容多于一行时,可通过`scrollable`参数控制是否开启滚动
|
文字内容多于一行时,可通过`scrollable`参数控制是否开启滚动
|
||||||
|
|
||||||
```html
|
```html
|
||||||
@ -40,7 +31,7 @@ es5
|
|||||||
/>
|
/>
|
||||||
```
|
```
|
||||||
|
|
||||||
#### 通告栏模式
|
### 通告栏模式
|
||||||
默认模式为空,支持`closeable`和`link`。
|
默认模式为空,支持`closeable`和`link`。
|
||||||
|
|
||||||
```html
|
```html
|
||||||
|
@ -1,30 +1,20 @@
|
|||||||
## Notify 消息提示
|
# Notify 消息提示
|
||||||
|
|
||||||
### 使用指南
|
### 引入
|
||||||
在 app.json 或 index.json 中引入组件
|
在`app.json`或`index.json`中引入组件,默认为`ES6`版本,`ES5`引入方式参见[快速上手](#/quickstart)
|
||||||
|
|
||||||
es6
|
|
||||||
```json
|
```json
|
||||||
"usingComponents": {
|
"usingComponents": {
|
||||||
"van-notify": "path/to/vant-weapp/dist/notify/index"
|
"van-notify": "path/to/vant-weapp/dist/notify/index"
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
es5
|
## 代码演示
|
||||||
```json
|
|
||||||
"usingComponents": {
|
|
||||||
"van-notify": "path/to/vant-weapp/lib/notify/index"
|
|
||||||
}
|
|
||||||
```
|
|
||||||
|
|
||||||
### 代码演示
|
|
||||||
|
|
||||||
### 基础用法
|
### 基础用法
|
||||||
|
|
||||||
```js
|
```js
|
||||||
import Notify from 'path/to/vant-weapp/dist/notify/notify';
|
import Notify from 'path/to/vant-weapp/dist/notify/notify';
|
||||||
// es5
|
|
||||||
var Notify = require('path/to/vant-weapp/lib/notify/notify');
|
|
||||||
|
|
||||||
Notify('通知内容');
|
Notify('通知内容');
|
||||||
```
|
```
|
||||||
|
@ -1,25 +1,17 @@
|
|||||||
## Panel 面板
|
# Panel 面板
|
||||||
|
|
||||||
### 使用指南
|
### 引入
|
||||||
在 app.json 或 index.json 中引入组件
|
在`app.json`或`index.json`中引入组件,默认为`ES6`版本,`ES5`引入方式参见[快速上手](#/quickstart)
|
||||||
|
|
||||||
es6
|
|
||||||
```json
|
```json
|
||||||
"usingComponents": {
|
"usingComponents": {
|
||||||
"van-panel": "path/to/vant-weapp/dist/panel/index"
|
"van-panel": "path/to/vant-weapp/dist/panel/index"
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
es5
|
## 代码演示
|
||||||
```json
|
|
||||||
"usingComponents": {
|
|
||||||
"van-panel": "path/to/vant-weapp/lib/panel/index"
|
|
||||||
}
|
|
||||||
```
|
|
||||||
|
|
||||||
### 代码演示
|
### 基础用法
|
||||||
|
|
||||||
#### 基础用法
|
|
||||||
面板只是一个容器,里面可以放入自定义的内容
|
面板只是一个容器,里面可以放入自定义的内容
|
||||||
|
|
||||||
```html
|
```html
|
||||||
@ -28,7 +20,7 @@ es5
|
|||||||
</van-panel>
|
</van-panel>
|
||||||
```
|
```
|
||||||
|
|
||||||
#### 高级用法
|
### 高级用法
|
||||||
使用`slot`自定义内容
|
使用`slot`自定义内容
|
||||||
|
|
||||||
```html
|
```html
|
||||||
|
@ -1,27 +1,21 @@
|
|||||||
## Picker 选择器
|
# Picker 选择器
|
||||||
|
|
||||||
|
### 介绍
|
||||||
|
|
||||||
选择器组件通常与 [弹出层](#/popup) 组件配合使用
|
选择器组件通常与 [弹出层](#/popup) 组件配合使用
|
||||||
|
|
||||||
### 使用指南
|
### 引入
|
||||||
在 app.json 或 index.json 中引入组件
|
在`app.json`或`index.json`中引入组件,默认为`ES6`版本,`ES5`引入方式参见[快速上手](#/quickstart)
|
||||||
|
|
||||||
es6
|
|
||||||
```json
|
```json
|
||||||
"usingComponents": {
|
"usingComponents": {
|
||||||
"van-picker": "path/to/vant-weapp/dist/picker/index"
|
"van-picker": "path/to/vant-weapp/dist/picker/index"
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
es5
|
## 代码演示
|
||||||
```json
|
|
||||||
"usingComponents": {
|
|
||||||
"van-picker": "path/to/vant-weapp/lib/picker/index"
|
|
||||||
}
|
|
||||||
```
|
|
||||||
|
|
||||||
### 代码演示
|
### 基础用法
|
||||||
|
|
||||||
|
|
||||||
#### 基础用法
|
|
||||||
|
|
||||||
```html
|
```html
|
||||||
<van-picker columns="{{ columns }}" bind:change="onChange" />
|
<van-picker columns="{{ columns }}" bind:change="onChange" />
|
||||||
@ -29,8 +23,6 @@ es5
|
|||||||
|
|
||||||
```javascript
|
```javascript
|
||||||
import Toast from 'path/to/vant-weapp/dist/toast/toast';
|
import Toast from 'path/to/vant-weapp/dist/toast/toast';
|
||||||
// es5
|
|
||||||
const Toast = require('path/to/vant-weapp/lib/toast/toast');
|
|
||||||
|
|
||||||
Page({
|
Page({
|
||||||
data: {
|
data: {
|
||||||
@ -44,7 +36,7 @@ Page({
|
|||||||
});
|
});
|
||||||
```
|
```
|
||||||
|
|
||||||
#### 默认选中项
|
### 默认选中项
|
||||||
|
|
||||||
单列选择器可以直接通过`default-index`属性设置初始选中项的索引值
|
单列选择器可以直接通过`default-index`属性设置初始选中项的索引值
|
||||||
|
|
||||||
@ -56,7 +48,7 @@ Page({
|
|||||||
/>
|
/>
|
||||||
```
|
```
|
||||||
|
|
||||||
#### 展示顶部栏
|
### 展示顶部栏
|
||||||
|
|
||||||
```html
|
```html
|
||||||
<van-picker
|
<van-picker
|
||||||
@ -70,8 +62,6 @@ Page({
|
|||||||
|
|
||||||
```javascript
|
```javascript
|
||||||
import Toast from 'path/to/vant-weapp/dist/toast/toast';
|
import Toast from 'path/to/vant-weapp/dist/toast/toast';
|
||||||
// es5
|
|
||||||
const Toast = require('path/to/vant-weapp/lib/toast/toast');
|
|
||||||
|
|
||||||
Page({
|
Page({
|
||||||
data: {
|
data: {
|
||||||
@ -89,7 +79,7 @@ Page({
|
|||||||
});
|
});
|
||||||
```
|
```
|
||||||
|
|
||||||
#### 禁用选项
|
### 禁用选项
|
||||||
|
|
||||||
选项可以为对象结构,通过设置 disabled 来禁用该选项
|
选项可以为对象结构,通过设置 disabled 来禁用该选项
|
||||||
|
|
||||||
@ -109,7 +99,7 @@ Page({
|
|||||||
});
|
});
|
||||||
```
|
```
|
||||||
|
|
||||||
#### 多列联动
|
### 多列联动
|
||||||
|
|
||||||
```html
|
```html
|
||||||
<van-picker columns="{{ columns }}" bind:change="onChange" />
|
<van-picker columns="{{ columns }}" bind:change="onChange" />
|
||||||
@ -143,7 +133,7 @@ Page({
|
|||||||
});
|
});
|
||||||
```
|
```
|
||||||
|
|
||||||
#### 加载状态
|
### 加载状态
|
||||||
当 Picker 数据是通过异步获取时,可以通过 `loading` 属性显示加载提示
|
当 Picker 数据是通过异步获取时,可以通过 `loading` 属性显示加载提示
|
||||||
|
|
||||||
```html
|
```html
|
||||||
|
@ -1,25 +1,17 @@
|
|||||||
## Popup 弹出层
|
# Popup 弹出层
|
||||||
|
|
||||||
### 使用指南
|
### 引入
|
||||||
在 app.json 或 index.json 中引入组件
|
在`app.json`或`index.json`中引入组件,默认为`ES6`版本,`ES5`引入方式参见[快速上手](#/quickstart)
|
||||||
|
|
||||||
es6
|
|
||||||
```json
|
```json
|
||||||
"usingComponents": {
|
"usingComponents": {
|
||||||
"van-popup": "path/to/vant-weapp/dist/popup/index"
|
"van-popup": "path/to/vant-weapp/dist/popup/index"
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
es5
|
## 代码演示
|
||||||
```json
|
|
||||||
"usingComponents": {
|
|
||||||
"van-popup": "path/to/vant-weapp/lib/popup/index"
|
|
||||||
}
|
|
||||||
```
|
|
||||||
|
|
||||||
### 代码演示
|
### 基础用法
|
||||||
|
|
||||||
#### 基础用法
|
|
||||||
`popup`默认从中间弹出
|
`popup`默认从中间弹出
|
||||||
|
|
||||||
```html
|
```html
|
||||||
@ -38,7 +30,7 @@ Page({
|
|||||||
});
|
});
|
||||||
```
|
```
|
||||||
|
|
||||||
#### 弹出位置
|
### 弹出位置
|
||||||
通过`position`属性设置 Popup 弹出位置
|
通过`position`属性设置 Popup 弹出位置
|
||||||
|
|
||||||
```html
|
```html
|
||||||
|
@ -1,25 +1,17 @@
|
|||||||
## Progress 进度条
|
# Progress 进度条
|
||||||
|
|
||||||
### 使用指南
|
### 引入
|
||||||
在 app.json 或 index.json 中引入组件
|
在`app.json`或`index.json`中引入组件,默认为`ES6`版本,`ES5`引入方式参见[快速上手](#/quickstart)
|
||||||
|
|
||||||
es6
|
|
||||||
```json
|
```json
|
||||||
"usingComponents": {
|
"usingComponents": {
|
||||||
"van-progress": "path/to/vant-weapp/dist/progress/index"
|
"van-progress": "path/to/vant-weapp/dist/progress/index"
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
es5
|
## 代码演示
|
||||||
```json
|
|
||||||
"usingComponents": {
|
|
||||||
"van-progress": "path/to/vant-weapp/lib/progress/index"
|
|
||||||
}
|
|
||||||
```
|
|
||||||
|
|
||||||
### 代码演示
|
### 基础用法
|
||||||
|
|
||||||
#### 基础用法
|
|
||||||
|
|
||||||
进度条默认为蓝色,使用`percentage`属性来设置当前进度
|
进度条默认为蓝色,使用`percentage`属性来设置当前进度
|
||||||
|
|
||||||
@ -28,13 +20,13 @@ es5
|
|||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
#### 置灰
|
### 置灰
|
||||||
|
|
||||||
```html
|
```html
|
||||||
<van-progress inactive percentage="50" />
|
<van-progress inactive percentage="50" />
|
||||||
```
|
```
|
||||||
|
|
||||||
#### 样式定制
|
### 样式定制
|
||||||
|
|
||||||
可以使用`pivot-text`属性自定义文字,`color`属性自定义进度条颜色
|
可以使用`pivot-text`属性自定义文字,`color`属性自定义进度条颜色
|
||||||
|
|
||||||
|
@ -1,10 +1,9 @@
|
|||||||
## Radio 单选框
|
# Radio 单选框
|
||||||
|
|
||||||
### 使用指南
|
### 引入
|
||||||
|
|
||||||
在 app.json 或 index.json 中引入组件
|
在`app.json`或`index.json`中引入组件,默认为`ES6`版本,`ES5`引入方式参见[快速上手](#/quickstart)
|
||||||
|
|
||||||
es6
|
|
||||||
```json
|
```json
|
||||||
"usingComponents": {
|
"usingComponents": {
|
||||||
"van-radio": "path/to/vant-weapp/dist/radio/index",
|
"van-radio": "path/to/vant-weapp/dist/radio/index",
|
||||||
@ -12,17 +11,9 @@ es6
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
es5
|
## 代码演示
|
||||||
```json
|
|
||||||
"usingComponents": {
|
|
||||||
"van-radio": "path/to/vant-weapp/lib/radio/index",
|
|
||||||
"van-radio-group": "path/to/vant-weapp/lib/radio-group/index"
|
|
||||||
}
|
|
||||||
```
|
|
||||||
|
|
||||||
### 代码演示
|
### 基础用法
|
||||||
|
|
||||||
#### 基础用法
|
|
||||||
|
|
||||||
通过`value`绑定值当前选中项的 name
|
通过`value`绑定值当前选中项的 name
|
||||||
|
|
||||||
@ -47,7 +38,7 @@ Page({
|
|||||||
});
|
});
|
||||||
```
|
```
|
||||||
|
|
||||||
#### 禁用状态
|
### 禁用状态
|
||||||
|
|
||||||
通过`disabled`属性禁止选项切换,在`van-radio`上设置`diabled`可以禁用单个选项
|
通过`disabled`属性禁止选项切换,在`van-radio`上设置`diabled`可以禁用单个选项
|
||||||
|
|
||||||
@ -58,13 +49,13 @@ Page({
|
|||||||
</van-radio-group>
|
</van-radio-group>
|
||||||
```
|
```
|
||||||
|
|
||||||
#### 自定义颜色
|
### 自定义颜色
|
||||||
|
|
||||||
```html
|
```html
|
||||||
<van-radio checked-color="#07c160">复选框</van-radio>
|
<van-radio checked-color="#07c160">复选框</van-radio>
|
||||||
```
|
```
|
||||||
|
|
||||||
#### 自定义图标
|
### 自定义图标
|
||||||
|
|
||||||
通过 icon 插槽自定义图标
|
通过 icon 插槽自定义图标
|
||||||
|
|
||||||
@ -96,7 +87,7 @@ Page({
|
|||||||
});
|
});
|
||||||
```
|
```
|
||||||
|
|
||||||
#### 与 Cell 组件一起使用
|
### 与 Cell 组件一起使用
|
||||||
|
|
||||||
此时你需要再引入`Cell`和`CellGroup`组件。
|
此时你需要再引入`Cell`和`CellGroup`组件。
|
||||||
|
|
||||||
|
@ -1,25 +1,16 @@
|
|||||||
## Rate 评分
|
# Rate 评分
|
||||||
|
|
||||||
### 使用指南
|
### 引入
|
||||||
在 app.json 或 index.json 中引入组件
|
在`app.json`或`index.json`中引入组件,默认为`ES6`版本,`ES5`引入方式参见[快速上手](#/quickstart)
|
||||||
|
|
||||||
es6
|
|
||||||
```json
|
```json
|
||||||
"usingComponents": {
|
"usingComponents": {
|
||||||
"van-rate": "path/to/vant-weapp/dist/rate/index"
|
"van-rate": "path/to/vant-weapp/dist/rate/index"
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
## 代码演示
|
||||||
|
|
||||||
es5
|
### 基础用法
|
||||||
```json
|
|
||||||
"usingComponents": {
|
|
||||||
"van-rate": "path/to/vant-weapp/lib/rate/index"
|
|
||||||
}
|
|
||||||
```
|
|
||||||
|
|
||||||
### 代码演示
|
|
||||||
|
|
||||||
#### 基础用法
|
|
||||||
|
|
||||||
```html
|
```html
|
||||||
<van-rate value="{{ value }}" bind:change="onChange" />
|
<van-rate value="{{ value }}" bind:change="onChange" />
|
||||||
@ -39,7 +30,7 @@ Page({
|
|||||||
});
|
});
|
||||||
```
|
```
|
||||||
|
|
||||||
#### 自定义图标
|
### 自定义图标
|
||||||
|
|
||||||
```html
|
```html
|
||||||
<van-rate
|
<van-rate
|
||||||
@ -50,7 +41,7 @@ Page({
|
|||||||
/>
|
/>
|
||||||
```
|
```
|
||||||
|
|
||||||
#### 自定义样式
|
### 自定义样式
|
||||||
|
|
||||||
```html
|
```html
|
||||||
<van-rate
|
<van-rate
|
||||||
@ -63,7 +54,7 @@ Page({
|
|||||||
/>
|
/>
|
||||||
```
|
```
|
||||||
|
|
||||||
#### 半星
|
### 半星
|
||||||
```html
|
```html
|
||||||
<van-rate
|
<van-rate
|
||||||
value="{{ value }}"
|
value="{{ value }}"
|
||||||
@ -76,7 +67,7 @@ Page({
|
|||||||
/>
|
/>
|
||||||
```
|
```
|
||||||
|
|
||||||
#### 自定义数量
|
### 自定义数量
|
||||||
|
|
||||||
```html
|
```html
|
||||||
<van-rate
|
<van-rate
|
||||||
@ -86,7 +77,7 @@ Page({
|
|||||||
/>
|
/>
|
||||||
```
|
```
|
||||||
|
|
||||||
#### 禁用状态
|
### 禁用状态
|
||||||
|
|
||||||
```html
|
```html
|
||||||
<van-rate
|
<van-rate
|
||||||
@ -96,7 +87,7 @@ Page({
|
|||||||
/>
|
/>
|
||||||
```
|
```
|
||||||
|
|
||||||
#### 只读状态
|
### 只读状态
|
||||||
|
|
||||||
```html
|
```html
|
||||||
<van-rate
|
<van-rate
|
||||||
|
@ -1,32 +1,24 @@
|
|||||||
## Search 搜索
|
# Search 搜索
|
||||||
|
|
||||||
### 使用指南
|
### 引入
|
||||||
在 app.json 或 index.json 中引入组件
|
在`app.json`或`index.json`中引入组件,默认为`ES6`版本,`ES5`引入方式参见[快速上手](#/quickstart)
|
||||||
|
|
||||||
es6
|
|
||||||
```json
|
```json
|
||||||
"usingComponents": {
|
"usingComponents": {
|
||||||
"van-search": "path/to/vant-weapp/dist/search/index"
|
"van-search": "path/to/vant-weapp/dist/search/index"
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
es5
|
## 代码演示
|
||||||
```json
|
|
||||||
"usingComponents": {
|
|
||||||
"van-search": "path/to/vant-weapp/lib/search/index"
|
|
||||||
}
|
|
||||||
```
|
|
||||||
|
|
||||||
### 代码演示
|
### 基础用法
|
||||||
|
|
||||||
#### 基础用法
|
|
||||||
`van-search` 中,value 用于控制搜索框中的文字。background 可以自定义搜索框外部背景色。
|
`van-search` 中,value 用于控制搜索框中的文字。background 可以自定义搜索框外部背景色。
|
||||||
|
|
||||||
```html
|
```html
|
||||||
<van-search value="{{ value }}" placeholder="请输入搜索关键词" />
|
<van-search value="{{ value }}" placeholder="请输入搜索关键词" />
|
||||||
```
|
```
|
||||||
|
|
||||||
#### 监听对应事件
|
### 监听对应事件
|
||||||
`van-search` 提供了 search 和 cancel 事件。search 事件在用户点击键盘上的搜索按钮触发。cancel 事件在用户点击搜索框右侧取消按钮时触发
|
`van-search` 提供了 search 和 cancel 事件。search 事件在用户点击键盘上的搜索按钮触发。cancel 事件在用户点击搜索框右侧取消按钮时触发
|
||||||
|
|
||||||
```html
|
```html
|
||||||
@ -39,7 +31,7 @@ es5
|
|||||||
/>
|
/>
|
||||||
```
|
```
|
||||||
|
|
||||||
#### 自定义行动按钮
|
### 自定义行动按钮
|
||||||
|
|
||||||
`van-search` 支持自定义右侧取消按钮,使用名字为 action 的 slot,并设置 use-action-slot 为 true 即可。
|
`van-search` 支持自定义右侧取消按钮,使用名字为 action 的 slot,并设置 use-action-slot 为 true 即可。
|
||||||
|
|
||||||
|
@ -1,23 +1,15 @@
|
|||||||
## Slider 滑块
|
# Slider 滑块
|
||||||
|
|
||||||
### 使用指南
|
### 引入
|
||||||
在 app.json 或 index.json 中引入组件
|
在`app.json`或`index.json`中引入组件,默认为`ES6`版本,`ES5`引入方式参见[快速上手](#/quickstart)
|
||||||
|
|
||||||
es6
|
|
||||||
```json
|
```json
|
||||||
"usingComponents": {
|
"usingComponents": {
|
||||||
"van-slider": "path/to/vant-weapp/dist/slider/index"
|
"van-slider": "path/to/vant-weapp/dist/slider/index"
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
es5
|
### 基本用法
|
||||||
```json
|
|
||||||
"usingComponents": {
|
|
||||||
"van-slider": "path/to/vant-weapp/lib/slider/index"
|
|
||||||
}
|
|
||||||
```
|
|
||||||
|
|
||||||
#### 基本用法
|
|
||||||
|
|
||||||
```html
|
```html
|
||||||
<van-slider value="50" bind:change="onChange" />
|
<van-slider value="50" bind:change="onChange" />
|
||||||
@ -34,25 +26,25 @@ Page({
|
|||||||
});
|
});
|
||||||
```
|
```
|
||||||
|
|
||||||
#### 指定选择范围
|
### 指定选择范围
|
||||||
|
|
||||||
```html
|
```html
|
||||||
<van-slider value="50" min="10" max="90" />
|
<van-slider value="50" min="10" max="90" />
|
||||||
```
|
```
|
||||||
|
|
||||||
#### 禁用
|
### 禁用
|
||||||
|
|
||||||
```html
|
```html
|
||||||
<van-slider value="50" disabled />
|
<van-slider value="50" disabled />
|
||||||
```
|
```
|
||||||
|
|
||||||
#### 指定步长
|
### 指定步长
|
||||||
|
|
||||||
```html
|
```html
|
||||||
<van-slider value="50" step="10" />
|
<van-slider value="50" step="10" />
|
||||||
```
|
```
|
||||||
|
|
||||||
#### 自定义样式
|
### 自定义样式
|
||||||
|
|
||||||
```html
|
```html
|
||||||
<van-slider
|
<van-slider
|
||||||
@ -62,7 +54,7 @@ Page({
|
|||||||
/>
|
/>
|
||||||
```
|
```
|
||||||
|
|
||||||
#### 自定义按钮
|
### 自定义按钮
|
||||||
|
|
||||||
```html
|
```html
|
||||||
<van-slider
|
<van-slider
|
||||||
@ -90,7 +82,7 @@ Page({
|
|||||||
});
|
});
|
||||||
```
|
```
|
||||||
|
|
||||||
#### 自定义按钮
|
### 自定义按钮
|
||||||
|
|
||||||
```html
|
```html
|
||||||
<van-slider
|
<van-slider
|
||||||
|
@ -1,32 +1,24 @@
|
|||||||
## Stepper 步进器
|
# Stepper 步进器
|
||||||
|
|
||||||
### 使用指南
|
### 引入
|
||||||
|
|
||||||
在 app.json 或 index.json 中引入组件
|
在`app.json`或`index.json`中引入组件,默认为`ES6`版本,`ES5`引入方式参见[快速上手](#/quickstart)
|
||||||
|
|
||||||
es6
|
|
||||||
```json
|
```json
|
||||||
"usingComponents": {
|
"usingComponents": {
|
||||||
"van-stepper": "path/to/vant-weapp/dist/stepper/index"
|
"van-stepper": "path/to/vant-weapp/dist/stepper/index"
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
es5
|
## 代码演示
|
||||||
```json
|
|
||||||
"usingComponents": {
|
|
||||||
"van-stepper": "path/to/vant-weapp/lib/stepper/index"
|
|
||||||
}
|
|
||||||
```
|
|
||||||
|
|
||||||
### 代码演示
|
### 基础用法
|
||||||
|
|
||||||
#### 基础用法
|
|
||||||
|
|
||||||
```html
|
```html
|
||||||
<van-stepper value="{{ 1 }}" bind:change="onChange" />
|
<van-stepper value="{{ 1 }}" bind:change="onChange" />
|
||||||
```
|
```
|
||||||
|
|
||||||
#### 禁用状态
|
### 禁用状态
|
||||||
|
|
||||||
通过设置`disabled`属性来禁用 stepper
|
通过设置`disabled`属性来禁用 stepper
|
||||||
|
|
||||||
@ -34,7 +26,7 @@ es5
|
|||||||
<van-stepper value="{{ 1 }}" disabled bind:change="onChange" />
|
<van-stepper value="{{ 1 }}" disabled bind:change="onChange" />
|
||||||
```
|
```
|
||||||
|
|
||||||
#### 高级用法
|
### 高级用法
|
||||||
|
|
||||||
默认是每次加减为1,可以对组件设置`step`、`min`、`max`属性
|
默认是每次加减为1,可以对组件设置`step`、`min`、`max`属性
|
||||||
|
|
||||||
@ -83,11 +75,3 @@ es5
|
|||||||
| input-class | 输入框样式类 |
|
| input-class | 输入框样式类 |
|
||||||
| plus-class | 加号按钮样式类 |
|
| plus-class | 加号按钮样式类 |
|
||||||
| minus-class | 减号按钮样式类 |
|
| minus-class | 减号按钮样式类 |
|
||||||
|
|
||||||
### 更新日志
|
|
||||||
|
|
||||||
| 版本 | 类型 | 内容 |
|
|
||||||
|-----------|-----------|-----------|
|
|
||||||
| 0.0.1 | feature | 新增组件 |
|
|
||||||
| 0.2.1 | feature | 支持在原生 form 组件内使用 |
|
|
||||||
| 0.3.8 | bugfix | 修复 disabled 状态下仍然可以点击的问题 |
|
|
||||||
|
@ -1,26 +1,18 @@
|
|||||||
## Steps 步骤条
|
# Steps 步骤条
|
||||||
|
|
||||||
### 使用指南
|
### 引入
|
||||||
|
|
||||||
在 app.json 或 index.json 中引入组件
|
在`app.json`或`index.json`中引入组件,默认为`ES6`版本,`ES5`引入方式参见[快速上手](#/quickstart)
|
||||||
|
|
||||||
es6
|
|
||||||
```json
|
```json
|
||||||
"usingComponents": {
|
"usingComponents": {
|
||||||
"van-steps": "path/to/vant-weapp/dist/steps/index"
|
"van-steps": "path/to/vant-weapp/dist/steps/index"
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
es5
|
## 代码演示
|
||||||
```json
|
|
||||||
"usingComponents": {
|
|
||||||
"van-steps": "path/to/vant-weapp/lib/steps/index"
|
|
||||||
}
|
|
||||||
```
|
|
||||||
|
|
||||||
### 代码演示
|
### 基础用法
|
||||||
|
|
||||||
#### 基础用法
|
|
||||||
|
|
||||||
```html
|
```html
|
||||||
<van-steps
|
<van-steps
|
||||||
@ -54,7 +46,7 @@ Page({
|
|||||||
});
|
});
|
||||||
```
|
```
|
||||||
|
|
||||||
#### 竖向步骤条
|
### 竖向步骤条
|
||||||
可以通过设置`direction`属性来改变步骤条的显示方式
|
可以通过设置`direction`属性来改变步骤条的显示方式
|
||||||
|
|
||||||
```html
|
```html
|
||||||
|
@ -1,25 +1,17 @@
|
|||||||
## SubmitBar 提交订单栏
|
# SubmitBar 提交订单栏
|
||||||
|
|
||||||
### 使用指南
|
### 引入
|
||||||
在 app.json 或 index.json 中引入组件
|
在`app.json`或`index.json`中引入组件,默认为`ES6`版本,`ES5`引入方式参见[快速上手](#/quickstart)
|
||||||
|
|
||||||
es6
|
|
||||||
```json
|
```json
|
||||||
"usingComponents": {
|
"usingComponents": {
|
||||||
"van-submit-bar": "path/to/vant-weapp/dist/submit-bar/index"
|
"van-submit-bar": "path/to/vant-weapp/dist/submit-bar/index"
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
es5
|
## 代码演示
|
||||||
```json
|
|
||||||
"usingComponents": {
|
|
||||||
"van-submit-bar": "path/to/vant-weapp/lib/submit-bar/index"
|
|
||||||
}
|
|
||||||
```
|
|
||||||
|
|
||||||
### 代码演示
|
### 基础用法
|
||||||
|
|
||||||
#### 基础用法
|
|
||||||
|
|
||||||
```html
|
```html
|
||||||
<van-submit-bar
|
<van-submit-bar
|
||||||
@ -29,7 +21,7 @@ es5
|
|||||||
/>
|
/>
|
||||||
```
|
```
|
||||||
|
|
||||||
#### 禁用状态
|
### 禁用状态
|
||||||
禁用状态下不会触发`submit`事件
|
禁用状态下不会触发`submit`事件
|
||||||
|
|
||||||
```html
|
```html
|
||||||
@ -43,7 +35,7 @@ es5
|
|||||||
/>
|
/>
|
||||||
```
|
```
|
||||||
|
|
||||||
#### 加载状态
|
### 加载状态
|
||||||
加载状态下不会触发`submit`事件
|
加载状态下不会触发`submit`事件
|
||||||
|
|
||||||
```html
|
```html
|
||||||
@ -55,7 +47,7 @@ es5
|
|||||||
/>
|
/>
|
||||||
```
|
```
|
||||||
|
|
||||||
#### 高级用法
|
### 高级用法
|
||||||
通过插槽插入自定义内容
|
通过插槽插入自定义内容
|
||||||
|
|
||||||
```html
|
```html
|
||||||
|
@ -1,26 +1,18 @@
|
|||||||
## SwipeCell 滑动单元格
|
# SwipeCell 滑动单元格
|
||||||
|
|
||||||
### 使用指南
|
### 引入
|
||||||
|
|
||||||
在 app.json 或 index.json 中引入组件
|
在`app.json`或`index.json`中引入组件,默认为`ES6`版本,`ES5`引入方式参见[快速上手](#/quickstart)
|
||||||
|
|
||||||
es6
|
|
||||||
```json
|
```json
|
||||||
"usingComponents": {
|
"usingComponents": {
|
||||||
"van-swipe-cell": "path/to/vant-weapp/dist/swipe-cell/index"
|
"van-swipe-cell": "path/to/vant-weapp/dist/swipe-cell/index"
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
es5
|
## 代码演示
|
||||||
```json
|
|
||||||
"usingComponents": {
|
|
||||||
"van-swipe-cell": "path/to/vant-weapp/lib/swipe-cell/index"
|
|
||||||
}
|
|
||||||
```
|
|
||||||
|
|
||||||
### 代码演示
|
### 基础用法
|
||||||
|
|
||||||
#### 基础用法
|
|
||||||
|
|
||||||
```html
|
```html
|
||||||
<van-swipe-cell right-width="{{ 65 }}" left-width="{{ 65 }}">
|
<van-swipe-cell right-width="{{ 65 }}" left-width="{{ 65 }}">
|
||||||
@ -32,7 +24,7 @@ es5
|
|||||||
</van-swipe-cell>
|
</van-swipe-cell>
|
||||||
```
|
```
|
||||||
|
|
||||||
#### 异步关闭
|
### 异步关闭
|
||||||
|
|
||||||
```html
|
```html
|
||||||
<van-swipe-cell id="swipe-cell" right-width="{{ 65 }}" left-width="{{ 65 }}" async-close bind:close="onClose">
|
<van-swipe-cell id="swipe-cell" right-width="{{ 65 }}" left-width="{{ 65 }}" async-close bind:close="onClose">
|
||||||
|
@ -1,25 +1,17 @@
|
|||||||
## SwitchCell 开关单元格
|
# SwitchCell 开关单元格
|
||||||
|
|
||||||
### 使用指南
|
### 引入
|
||||||
在 app.json 或 index.json 中引入组件
|
在`app.json`或`index.json`中引入组件,默认为`ES6`版本,`ES5`引入方式参见[快速上手](#/quickstart)
|
||||||
|
|
||||||
es6
|
|
||||||
```json
|
```json
|
||||||
"usingComponents": {
|
"usingComponents": {
|
||||||
"van-switch-cell": "path/to/vant-weapp/dist/switch-cell/index"
|
"van-switch-cell": "path/to/vant-weapp/dist/switch-cell/index"
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
es5
|
## 代码演示
|
||||||
```json
|
|
||||||
"usingComponents": {
|
|
||||||
"van-switch-cell": "path/to/vant-weapp/lib/switch-cell/index"
|
|
||||||
}
|
|
||||||
```
|
|
||||||
|
|
||||||
### 代码演示
|
### 基础用法
|
||||||
|
|
||||||
#### 基础用法
|
|
||||||
|
|
||||||
```html
|
```html
|
||||||
<van-switch-cell
|
<van-switch-cell
|
||||||
@ -42,7 +34,7 @@ Page({
|
|||||||
});
|
});
|
||||||
```
|
```
|
||||||
|
|
||||||
#### 禁用状态
|
### 禁用状态
|
||||||
通过`disabled`属性可以将组件设置为禁用状态
|
通过`disabled`属性可以将组件设置为禁用状态
|
||||||
|
|
||||||
```html
|
```html
|
||||||
@ -54,7 +46,7 @@ Page({
|
|||||||
/>
|
/>
|
||||||
```
|
```
|
||||||
|
|
||||||
#### 加载状态
|
### 加载状态
|
||||||
通过`loading`属性可以将组件设置为加载状态
|
通过`loading`属性可以将组件设置为加载状态
|
||||||
|
|
||||||
```html
|
```html
|
||||||
|
@ -1,26 +1,18 @@
|
|||||||
## Switch 开关
|
# Switch 开关
|
||||||
|
|
||||||
### 使用指南
|
### 引入
|
||||||
|
|
||||||
在 app.json 或 index.json 中引入组件
|
在`app.json`或`index.json`中引入组件,默认为`ES6`版本,`ES5`引入方式参见[快速上手](#/quickstart)
|
||||||
|
|
||||||
es6
|
|
||||||
```json
|
```json
|
||||||
"usingComponents": {
|
"usingComponents": {
|
||||||
"van-switch": "path/to/vant-weapp/dist/switch/index"
|
"van-switch": "path/to/vant-weapp/dist/switch/index"
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
es5
|
## 代码演示
|
||||||
```json
|
|
||||||
"usingComponents": {
|
|
||||||
"van-switch": "path/to/vant-weapp/lib/switch/index"
|
|
||||||
}
|
|
||||||
```
|
|
||||||
|
|
||||||
### 代码演示
|
### 基础用法
|
||||||
|
|
||||||
#### 基础用法
|
|
||||||
|
|
||||||
```html
|
```html
|
||||||
<van-switch checked="{{ checked }}" bind:change="onChange" />
|
<van-switch checked="{{ checked }}" bind:change="onChange" />
|
||||||
@ -39,25 +31,25 @@ Page({
|
|||||||
});
|
});
|
||||||
```
|
```
|
||||||
|
|
||||||
#### 禁用状态
|
### 禁用状态
|
||||||
|
|
||||||
```html
|
```html
|
||||||
<van-switch checked="{{ checked }}" disabled />
|
<van-switch checked="{{ checked }}" disabled />
|
||||||
```
|
```
|
||||||
|
|
||||||
#### 加载状态
|
### 加载状态
|
||||||
|
|
||||||
```html
|
```html
|
||||||
<van-switch checked="{{ checked }}" loading />
|
<van-switch checked="{{ checked }}" loading />
|
||||||
```
|
```
|
||||||
|
|
||||||
#### 自定义大小
|
### 自定义大小
|
||||||
|
|
||||||
```html
|
```html
|
||||||
<van-switch checked="{{ checked }}" size="24px" />
|
<van-switch checked="{{ checked }}" size="24px" />
|
||||||
```
|
```
|
||||||
|
|
||||||
#### 自定义颜色
|
### 自定义颜色
|
||||||
|
|
||||||
```html
|
```html
|
||||||
<van-switch
|
<van-switch
|
||||||
@ -67,7 +59,7 @@ Page({
|
|||||||
/>
|
/>
|
||||||
```
|
```
|
||||||
|
|
||||||
#### 异步控制
|
### 异步控制
|
||||||
|
|
||||||
```html
|
```html
|
||||||
<van-switch
|
<van-switch
|
||||||
|
@ -1,9 +1,8 @@
|
|||||||
## Tab 标签页
|
# Tab 标签页
|
||||||
|
|
||||||
### 使用指南
|
### 引入
|
||||||
在 app.json 或 index.json 中引入组件
|
在`app.json`或`index.json`中引入组件,默认为`ES6`版本,`ES5`引入方式参见[快速上手](#/quickstart)
|
||||||
|
|
||||||
es6
|
|
||||||
```json
|
```json
|
||||||
"usingComponents": {
|
"usingComponents": {
|
||||||
"van-tab": "path/to/vant-weapp/dist/tab/index",
|
"van-tab": "path/to/vant-weapp/dist/tab/index",
|
||||||
@ -11,17 +10,9 @@ es6
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
es5
|
## 代码演示
|
||||||
```json
|
|
||||||
"usingComponents": {
|
|
||||||
"van-tab": "path/to/vant-weapp/lib/tab/index",
|
|
||||||
"van-tabs": "path/to/vant-weapp/lib/tabs/index"
|
|
||||||
}
|
|
||||||
```
|
|
||||||
|
|
||||||
### 代码演示
|
### 基础用法
|
||||||
|
|
||||||
#### 基础用法
|
|
||||||
|
|
||||||
默认情况下启用第一个标签,可以通过`active`设定当前激活的标签索引,在回调参数的`event.detail`中可以取得被点击标签的标题和索引
|
默认情况下启用第一个标签,可以通过`active`设定当前激活的标签索引,在回调参数的`event.detail`中可以取得被点击标签的标题和索引
|
||||||
|
|
||||||
@ -49,7 +40,7 @@ Page({
|
|||||||
});
|
});
|
||||||
```
|
```
|
||||||
|
|
||||||
#### 横向滚动
|
### 横向滚动
|
||||||
|
|
||||||
多于 4 个标签时,Tab 可以横向滚动
|
多于 4 个标签时,Tab 可以横向滚动
|
||||||
|
|
||||||
@ -64,7 +55,7 @@ Page({
|
|||||||
</van-tabs>
|
</van-tabs>
|
||||||
```
|
```
|
||||||
|
|
||||||
#### 禁用标签
|
### 禁用标签
|
||||||
|
|
||||||
设置`disabled`属性即可禁用标签。如果需要监听禁用标签的点击事件,可以在`van-tabs`上监听`disabled`事件
|
设置`disabled`属性即可禁用标签。如果需要监听禁用标签的点击事件,可以在`van-tabs`上监听`disabled`事件
|
||||||
|
|
||||||
@ -87,7 +78,7 @@ Page({
|
|||||||
});
|
});
|
||||||
```
|
```
|
||||||
|
|
||||||
#### 样式风格
|
### 样式风格
|
||||||
|
|
||||||
`Tab`支持两种样式风格:`line`和`card`,默认为`line`样式,可以通过`type`属性修改样式风格
|
`Tab`支持两种样式风格:`line`和`card`,默认为`line`样式,可以通过`type`属性修改样式风格
|
||||||
|
|
||||||
@ -99,7 +90,7 @@ Page({
|
|||||||
</van-tabs>
|
</van-tabs>
|
||||||
```
|
```
|
||||||
|
|
||||||
#### 点击事件
|
### 点击事件
|
||||||
|
|
||||||
可以在`van-tabs`上绑定`click`事件,在回调参数的`event.detail`中可以取得被点击标签的标题和索引
|
可以在`van-tabs`上绑定`click`事件,在回调参数的`event.detail`中可以取得被点击标签的标题和索引
|
||||||
|
|
||||||
@ -121,7 +112,7 @@ Page({
|
|||||||
});
|
});
|
||||||
```
|
```
|
||||||
|
|
||||||
#### 粘性布局
|
### 粘性布局
|
||||||
|
|
||||||
通过`sticky`属性可以开启粘性布局,粘性布局下,当 Tab 滚动到顶部时会自动吸顶
|
通过`sticky`属性可以开启粘性布局,粘性布局下,当 Tab 滚动到顶部时会自动吸顶
|
||||||
|
|
||||||
@ -134,7 +125,7 @@ Page({
|
|||||||
</van-tabs>
|
</van-tabs>
|
||||||
```
|
```
|
||||||
|
|
||||||
#### 切换动画
|
### 切换动画
|
||||||
|
|
||||||
可以通过`animated`来设置是否启用切换tab时的动画。
|
可以通过`animated`来设置是否启用切换tab时的动画。
|
||||||
|
|
||||||
@ -147,7 +138,7 @@ Page({
|
|||||||
</van-tabs>
|
</van-tabs>
|
||||||
```
|
```
|
||||||
|
|
||||||
#### 滑动切换
|
### 滑动切换
|
||||||
|
|
||||||
通过`swipeable`属性可以开启滑动切换标签页
|
通过`swipeable`属性可以开启滑动切换标签页
|
||||||
|
|
||||||
|
@ -1,9 +1,8 @@
|
|||||||
## Tabbar 标签栏
|
# Tabbar 标签栏
|
||||||
|
|
||||||
### 使用指南
|
### 引入
|
||||||
在 app.json 或 index.json 中引入组件
|
在`app.json`或`index.json`中引入组件,默认为`ES6`版本,`ES5`引入方式参见[快速上手](#/quickstart)
|
||||||
|
|
||||||
es6
|
|
||||||
```json
|
```json
|
||||||
"usingComponents": {
|
"usingComponents": {
|
||||||
"van-tabbar": "path/to/vant-weapp/dist/tabbar/index",
|
"van-tabbar": "path/to/vant-weapp/dist/tabbar/index",
|
||||||
@ -11,17 +10,9 @@ es6
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
es5
|
## 代码演示
|
||||||
```json
|
|
||||||
"usingComponents": {
|
|
||||||
"van-tabbar": "path/to/vant-weapp/lib/tabbar/index",
|
|
||||||
"van-tabbar-item": "path/to/vant-weapp/lib/tabbar-item/index"
|
|
||||||
}
|
|
||||||
```
|
|
||||||
|
|
||||||
### 代码演示
|
### 基础用法
|
||||||
|
|
||||||
#### 基础用法
|
|
||||||
|
|
||||||
```html
|
```html
|
||||||
<van-tabbar active="{{ active }}" bind:change="onChange">
|
<van-tabbar active="{{ active }}" bind:change="onChange">
|
||||||
@ -44,7 +35,7 @@ Page({
|
|||||||
});
|
});
|
||||||
```
|
```
|
||||||
|
|
||||||
#### 自定义图标
|
### 自定义图标
|
||||||
|
|
||||||
可以通过 slot 自定义图标,其中 icon slot 代表未选中状态下的图标,icon-active slot 代表选中状态下的图标
|
可以通过 slot 自定义图标,其中 icon slot 代表未选中状态下的图标,icon-active slot 代表选中状态下的图标
|
||||||
|
|
||||||
@ -84,7 +75,7 @@ Page({
|
|||||||
});
|
});
|
||||||
```
|
```
|
||||||
|
|
||||||
#### 自定义颜色
|
### 自定义颜色
|
||||||
|
|
||||||
```html
|
```html
|
||||||
<van-tabbar
|
<van-tabbar
|
||||||
|
@ -1,26 +1,18 @@
|
|||||||
## Tag 标签
|
# Tag 标签
|
||||||
|
|
||||||
### 使用指南
|
### 引入
|
||||||
|
|
||||||
在 app.json 或 index.json 中引入组件
|
在`app.json`或`index.json`中引入组件,默认为`ES6`版本,`ES5`引入方式参见[快速上手](#/quickstart)
|
||||||
|
|
||||||
es6
|
|
||||||
```json
|
```json
|
||||||
"usingComponents": {
|
"usingComponents": {
|
||||||
"van-tag": "path/to/vant-weapp/dist/tag/index"
|
"van-tag": "path/to/vant-weapp/dist/tag/index"
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
es5
|
## 代码演示
|
||||||
```json
|
|
||||||
"usingComponents": {
|
|
||||||
"van-tag": "path/to/vant-weapp/lib/tag/index"
|
|
||||||
}
|
|
||||||
```
|
|
||||||
|
|
||||||
### 代码演示
|
### 基础用法
|
||||||
|
|
||||||
#### 基础用法
|
|
||||||
|
|
||||||
通过 type 属性控制 Tag 颜色,默认为灰色
|
通过 type 属性控制 Tag 颜色,默认为灰色
|
||||||
|
|
||||||
@ -31,7 +23,7 @@ es5
|
|||||||
<van-tag type="success">标签</van-tag>
|
<van-tag type="success">标签</van-tag>
|
||||||
```
|
```
|
||||||
|
|
||||||
#### 空心样式
|
### 空心样式
|
||||||
|
|
||||||
设置`plain`属性设置为空心样式
|
设置`plain`属性设置为空心样式
|
||||||
|
|
||||||
@ -42,7 +34,7 @@ es5
|
|||||||
<van-tag plain type="success">标签</van-tag>
|
<van-tag plain type="success">标签</van-tag>
|
||||||
```
|
```
|
||||||
|
|
||||||
#### 圆角样式
|
### 圆角样式
|
||||||
|
|
||||||
通过`round`设置为圆角样式
|
通过`round`设置为圆角样式
|
||||||
|
|
||||||
@ -53,7 +45,7 @@ es5
|
|||||||
<van-tag round type="success">标签</van-tag>
|
<van-tag round type="success">标签</van-tag>
|
||||||
```
|
```
|
||||||
|
|
||||||
#### 标记样式
|
### 标记样式
|
||||||
|
|
||||||
通过`mark`设置为标记样式(半圆角)
|
通过`mark`设置为标记样式(半圆角)
|
||||||
|
|
||||||
@ -64,7 +56,7 @@ es5
|
|||||||
<van-tag mark type="success">标签</van-tag>
|
<van-tag mark type="success">标签</van-tag>
|
||||||
```
|
```
|
||||||
|
|
||||||
#### 自定义颜色
|
### 自定义颜色
|
||||||
|
|
||||||
```html
|
```html
|
||||||
<van-tag color="#f2826a">标签</van-tag>
|
<van-tag color="#f2826a">标签</van-tag>
|
||||||
@ -74,7 +66,7 @@ es5
|
|||||||
<van-tag color="#ffe1e1" text-color="#ad0000">标签</van-tag>
|
<van-tag color="#ffe1e1" text-color="#ad0000">标签</van-tag>
|
||||||
```
|
```
|
||||||
|
|
||||||
#### 标签大小
|
### 标签大小
|
||||||
|
|
||||||
```html
|
```html
|
||||||
<van-tag>标签</van-tag>
|
<van-tag>标签</van-tag>
|
||||||
@ -105,10 +97,3 @@ es5
|
|||||||
| 类名 | 说明 |
|
| 类名 | 说明 |
|
||||||
|-----------|-----------|
|
|-----------|-----------|
|
||||||
| custom-class | 根节点样式类 |
|
| custom-class | 根节点样式类 |
|
||||||
|
|
||||||
### 更新日志
|
|
||||||
|
|
||||||
| 版本 | 类型 | 内容 |
|
|
||||||
|-----------|-----------|-----------|
|
|
||||||
| 0.0.1 | feature | 新增组件 |
|
|
||||||
| 0.3.3 | bugfix | 修复边框样式问题 |
|
|
||||||
|
@ -1,31 +1,21 @@
|
|||||||
## Toast 轻提示
|
# Toast 轻提示
|
||||||
|
|
||||||
### 使用指南
|
### 引入
|
||||||
|
|
||||||
在 app.json 或 index.json 中引入组件
|
在`app.json`或`index.json`中引入组件,默认为`ES6`版本,`ES5`引入方式参见[快速上手](#/quickstart)
|
||||||
|
|
||||||
es6
|
|
||||||
```json
|
```json
|
||||||
"usingComponents": {
|
"usingComponents": {
|
||||||
"van-toast": "path/to/vant-weapp/dist/toast/index"
|
"van-toast": "path/to/vant-weapp/dist/toast/index"
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
es5
|
## 代码演示
|
||||||
```json
|
|
||||||
"usingComponents": {
|
|
||||||
"van-toast": "path/to/vant-weapp/lib/toast/index"
|
|
||||||
}
|
|
||||||
```
|
|
||||||
|
|
||||||
### 代码演示
|
### 文字提示
|
||||||
|
|
||||||
#### 文字提示
|
|
||||||
|
|
||||||
```javascript
|
```javascript
|
||||||
import Toast from 'path/to/vant-weapp/dist/toast/toast';
|
import Toast from 'path/to/vant-weapp/dist/toast/toast';
|
||||||
// es5
|
|
||||||
// vat Toast = require('path/to/vant-weapp/lib/toast/toast');
|
|
||||||
|
|
||||||
Toast('我是提示文案,建议不超过十五字~');
|
Toast('我是提示文案,建议不超过十五字~');
|
||||||
```
|
```
|
||||||
@ -34,7 +24,7 @@ Toast('我是提示文案,建议不超过十五字~');
|
|||||||
<van-toast id="van-toast" />
|
<van-toast id="van-toast" />
|
||||||
```
|
```
|
||||||
|
|
||||||
#### 加载提示
|
### 加载提示
|
||||||
|
|
||||||
```javascript
|
```javascript
|
||||||
Toast.loading({
|
Toast.loading({
|
||||||
@ -43,14 +33,14 @@ Toast.loading({
|
|||||||
});
|
});
|
||||||
```
|
```
|
||||||
|
|
||||||
#### 成功/失败提示
|
### 成功/失败提示
|
||||||
|
|
||||||
```javascript
|
```javascript
|
||||||
Toast.success('成功文案');
|
Toast.success('成功文案');
|
||||||
Toast.fail('失败文案');
|
Toast.fail('失败文案');
|
||||||
```
|
```
|
||||||
|
|
||||||
#### 高级用法
|
### 高级用法
|
||||||
|
|
||||||
```javascript
|
```javascript
|
||||||
const toast = Toast.loading({
|
const toast = Toast.loading({
|
||||||
|
@ -1,26 +1,18 @@
|
|||||||
## Transition 动画
|
# Transition 动画
|
||||||
|
|
||||||
### 使用指南
|
### 引入
|
||||||
|
|
||||||
在 app.json 或 index.json 中引入组件
|
在`app.json`或`index.json`中引入组件,默认为`ES6`版本,`ES5`引入方式参见[快速上手](#/quickstart)
|
||||||
|
|
||||||
es6
|
|
||||||
```json
|
```json
|
||||||
"usingComponents": {
|
"usingComponents": {
|
||||||
"van-transition": "path/to/vant-weapp/dist/transition/index"
|
"van-transition": "path/to/vant-weapp/dist/transition/index"
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
es5
|
## 代码演示
|
||||||
```json
|
|
||||||
"usingComponents": {
|
|
||||||
"van-transition": "path/to/vant-weapp/lib/transition/index"
|
|
||||||
}
|
|
||||||
```
|
|
||||||
|
|
||||||
### 代码演示
|
### 基础用法
|
||||||
|
|
||||||
#### 基础用法
|
|
||||||
将元素包裹在 transition 组件内,在元素展示/隐藏时,会有相应的过渡动画
|
将元素包裹在 transition 组件内,在元素展示/隐藏时,会有相应的过渡动画
|
||||||
|
|
||||||
```html
|
```html
|
||||||
@ -29,14 +21,14 @@ es5
|
|||||||
</van-transition>
|
</van-transition>
|
||||||
```
|
```
|
||||||
|
|
||||||
#### 动画类型
|
### 动画类型
|
||||||
transition 组件内置了多种动画,可以通过`name`字段指定动画类型
|
transition 组件内置了多种动画,可以通过`name`字段指定动画类型
|
||||||
|
|
||||||
```html
|
```html
|
||||||
<van-transition name="fade-up" />
|
<van-transition name="fade-up" />
|
||||||
```
|
```
|
||||||
|
|
||||||
#### 高级用法
|
### 高级用法
|
||||||
|
|
||||||
可以通过外部样式类自定义过渡效果,还可以定制进入和移出的持续时间:
|
可以通过外部样式类自定义过渡效果,还可以定制进入和移出的持续时间:
|
||||||
|
|
||||||
|
@ -1,25 +1,21 @@
|
|||||||
## TreeSelect 分类选择
|
# TreeSelect 分类选择
|
||||||
|
|
||||||
### 使用指南
|
### 引入
|
||||||
|
|
||||||
在 app.json 或 index.json 中引入组件
|
在`app.json`或`index.json`中引入组件,默认为`ES6`版本,`ES5`引入方式参见[快速上手](#/quickstart)
|
||||||
|
|
||||||
es6
|
|
||||||
```json
|
```json
|
||||||
"usingComponents": {
|
"usingComponents": {
|
||||||
"van-tree-select": "path/to/vant-weapp/dist/tree-select/index"
|
"van-tree-select": "path/to/vant-weapp/dist/tree-select/index"
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
es5
|
## 代码演示
|
||||||
```json
|
|
||||||
"usingComponents": {
|
### 基础用法
|
||||||
"van-tree-select": "path/to/vant-weapp/lib/tree-select/index"
|
|
||||||
}
|
|
||||||
```
|
|
||||||
|
|
||||||
### 代码演示
|
|
||||||
可以在任意位置上使用 van-tree-select 标签。传入对应的数据即可。
|
可以在任意位置上使用 van-tree-select 标签。传入对应的数据即可。
|
||||||
|
|
||||||
```html
|
```html
|
||||||
<van-tree-select
|
<van-tree-select
|
||||||
items="{{ items }}"
|
items="{{ items }}"
|
||||||
@ -65,8 +61,7 @@ Page({
|
|||||||
| bind:click-nav | 左侧导航点击时,触发的事件 | event.detail.index:被点击的导航的索引 |
|
| bind:click-nav | 左侧导航点击时,触发的事件 | event.detail.index:被点击的导航的索引 |
|
||||||
| bind:click-item | 右侧选择项被点击时,会触发的事件 | event.detail: 该点击项的数据 |
|
| bind:click-item | 右侧选择项被点击时,会触发的事件 | event.detail: 该点击项的数据 |
|
||||||
|
|
||||||
### 数据格式
|
### items 数据结构
|
||||||
#### items 分类显示所需数据的数据结构
|
|
||||||
`items` 整体为一个数组,数组内包含一系列描述分类的对象
|
`items` 整体为一个数组,数组内包含一系列描述分类的对象
|
||||||
|
|
||||||
每个分类里,text 表示当前分类的名称。children 表示分类里的可选项,为数组结构,id 被用来唯一标识每个选项
|
每个分类里,text 表示当前分类的名称。children 表示分类里的可选项,为数组结构,id 被用来唯一标识每个选项
|
||||||
|
200
yarn.lock
200
yarn.lock
@ -823,16 +823,16 @@
|
|||||||
resolved "https://registry.yarnpkg.com/@types/q/-/q-1.5.2.tgz#690a1475b84f2a884fd07cd797c00f5f31356ea8"
|
resolved "https://registry.yarnpkg.com/@types/q/-/q-1.5.2.tgz#690a1475b84f2a884fd07cd797c00f5f31356ea8"
|
||||||
integrity sha512-ce5d3q03Ex0sy4R14722Rmt6MT07Ua+k4FwDfdcToYJcMKNtRVQvJ6JCAPdAmAnbRb6CsX6aYb9m96NGod9uTw==
|
integrity sha512-ce5d3q03Ex0sy4R14722Rmt6MT07Ua+k4FwDfdcToYJcMKNtRVQvJ6JCAPdAmAnbRb6CsX6aYb9m96NGod9uTw==
|
||||||
|
|
||||||
"@vant/doc@^1.0.24":
|
"@vant/doc@^2.3.2":
|
||||||
version "1.0.24"
|
version "2.3.2"
|
||||||
resolved "https://registry.yarnpkg.com/@vant/doc/-/doc-1.0.24.tgz#080115f9f844466fa3c3e662a250c94a74f69306"
|
resolved "https://registry.yarnpkg.com/@vant/doc/-/doc-2.3.2.tgz#20f38c3f47f13f0c4dcbc2fdfe7dddeb9943f4b1"
|
||||||
integrity sha512-hPTSNx87imMCT0tnNyjVDG/I4u6jGKaynlfcbrviY4Z5mcaxjN527LmNAYWE8Za17UHqQN7NaUXeROqm+jydnA==
|
integrity sha512-y4g7DzjyKBiEIghkyWNpCPDPND1nrQFb3tX+iMhi484ic7hlCCVnpVmXf74Cp+7FhSeNjCB/6vSDdJFGAXpw5A==
|
||||||
dependencies:
|
dependencies:
|
||||||
cheerio "0.22.0"
|
cheerio "0.22.0"
|
||||||
commander "^2.17.1"
|
commander "^2.17.1"
|
||||||
decamelize "^1.2.0"
|
decamelize "^1.2.0"
|
||||||
|
docsearch.js "^2.6.3"
|
||||||
fs-extra "^4.0.2"
|
fs-extra "^4.0.2"
|
||||||
nprogress "^0.2.0"
|
|
||||||
shelljs "^0.8.2"
|
shelljs "^0.8.2"
|
||||||
|
|
||||||
"@vant/icons@1.1.8":
|
"@vant/icons@1.1.8":
|
||||||
@ -840,6 +840,14 @@
|
|||||||
resolved "https://registry.yarnpkg.com/@vant/icons/-/icons-1.1.8.tgz#2acd9b1c608fab7cfd25cf82dc0c9960d0f0495a"
|
resolved "https://registry.yarnpkg.com/@vant/icons/-/icons-1.1.8.tgz#2acd9b1c608fab7cfd25cf82dc0c9960d0f0495a"
|
||||||
integrity sha512-w8DVBQ7Hrr3Ut1KAawPy4pkxhEMDCuCTdVfFgbydLrv1k/unp/Ml0REZVEO2NN4W3Do5r1fypbsNOw1Sm33eLg==
|
integrity sha512-w8DVBQ7Hrr3Ut1KAawPy4pkxhEMDCuCTdVfFgbydLrv1k/unp/Ml0REZVEO2NN4W3Do5r1fypbsNOw1Sm33eLg==
|
||||||
|
|
||||||
|
"@vant/markdown-loader@^2.0.0":
|
||||||
|
version "2.0.0"
|
||||||
|
resolved "https://registry.yarnpkg.com/@vant/markdown-loader/-/markdown-loader-2.0.0.tgz#9bcc3b3375f39d27663fbee65dea5374f4fea6db"
|
||||||
|
integrity sha512-nvIW109AZOe6IX/E5qOBuATSdvdUm0uaonnWQ2yM6hgRD7xlKOrAhBBl+aT+AxUCQw7LLWRVKKkqE91oFqZYVQ==
|
||||||
|
dependencies:
|
||||||
|
highlight.js "^9.15.6"
|
||||||
|
markdown-it "^8.4.2"
|
||||||
|
|
||||||
"@vue/component-compiler-utils@^2.5.1":
|
"@vue/component-compiler-utils@^2.5.1":
|
||||||
version "2.6.0"
|
version "2.6.0"
|
||||||
resolved "https://registry.yarnpkg.com/@vue/component-compiler-utils/-/component-compiler-utils-2.6.0.tgz#aa46d2a6f7647440b0b8932434d22f12371e543b"
|
resolved "https://registry.yarnpkg.com/@vue/component-compiler-utils/-/component-compiler-utils-2.6.0.tgz#aa46d2a6f7647440b0b8932434d22f12371e543b"
|
||||||
@ -1118,6 +1126,11 @@ acorn@^6.0.5, acorn@^6.0.7:
|
|||||||
resolved "https://registry.yarnpkg.com/acorn/-/acorn-6.1.1.tgz#7d25ae05bb8ad1f9b699108e1094ecd7884adc1f"
|
resolved "https://registry.yarnpkg.com/acorn/-/acorn-6.1.1.tgz#7d25ae05bb8ad1f9b699108e1094ecd7884adc1f"
|
||||||
integrity sha512-jPTiwtOxaHNaAPg/dmrJ/beuzLRnXtB0kQPQ8JpotKJgTB6rX6c8mlf315941pyjBSaPg8NHXS9fhP4u17DpGA==
|
integrity sha512-jPTiwtOxaHNaAPg/dmrJ/beuzLRnXtB0kQPQ8JpotKJgTB6rX6c8mlf315941pyjBSaPg8NHXS9fhP4u17DpGA==
|
||||||
|
|
||||||
|
agentkeepalive@^2.2.0:
|
||||||
|
version "2.2.0"
|
||||||
|
resolved "https://registry.yarnpkg.com/agentkeepalive/-/agentkeepalive-2.2.0.tgz#c5d1bd4b129008f1163f236f86e5faea2026e2ef"
|
||||||
|
integrity sha1-xdG9SxKQCPEWPyNvhuX66iAm4u8=
|
||||||
|
|
||||||
ajv-errors@^1.0.0:
|
ajv-errors@^1.0.0:
|
||||||
version "1.0.1"
|
version "1.0.1"
|
||||||
resolved "https://registry.yarnpkg.com/ajv-errors/-/ajv-errors-1.0.1.tgz#f35986aceb91afadec4102fbd85014950cefa64d"
|
resolved "https://registry.yarnpkg.com/ajv-errors/-/ajv-errors-1.0.1.tgz#f35986aceb91afadec4102fbd85014950cefa64d"
|
||||||
@ -1138,6 +1151,27 @@ ajv@^6.1.0, ajv@^6.5.5, ajv@^6.9.1:
|
|||||||
json-schema-traverse "^0.4.1"
|
json-schema-traverse "^0.4.1"
|
||||||
uri-js "^4.2.2"
|
uri-js "^4.2.2"
|
||||||
|
|
||||||
|
algoliasearch@^3.24.5:
|
||||||
|
version "3.33.0"
|
||||||
|
resolved "https://registry.yarnpkg.com/algoliasearch/-/algoliasearch-3.33.0.tgz#83b541124ebb0db54643009d4e660866b3177cdf"
|
||||||
|
integrity sha512-9DaVmOd7cvcZeYyV0BWAeJHVWJmgOL2DNUEBY/DTR4MzD1wCWs4Djl7LAlfvkGwGBdRHZCG+l0HA1572w3T8zg==
|
||||||
|
dependencies:
|
||||||
|
agentkeepalive "^2.2.0"
|
||||||
|
debug "^2.6.9"
|
||||||
|
envify "^4.0.0"
|
||||||
|
es6-promise "^4.1.0"
|
||||||
|
events "^1.1.0"
|
||||||
|
foreach "^2.0.5"
|
||||||
|
global "^4.3.2"
|
||||||
|
inherits "^2.0.1"
|
||||||
|
isarray "^2.0.1"
|
||||||
|
load-script "^1.0.0"
|
||||||
|
object-keys "^1.0.11"
|
||||||
|
querystring-es3 "^0.2.1"
|
||||||
|
reduce "^1.0.1"
|
||||||
|
semver "^5.1.0"
|
||||||
|
tunnel-agent "^0.6.0"
|
||||||
|
|
||||||
align-text@^0.1.1, align-text@^0.1.3:
|
align-text@^0.1.1, align-text@^0.1.3:
|
||||||
version "0.1.4"
|
version "0.1.4"
|
||||||
resolved "https://registry.yarnpkg.com/align-text/-/align-text-0.1.4.tgz#0cd90a561093f35d0a99256c22b7069433fad117"
|
resolved "https://registry.yarnpkg.com/align-text/-/align-text-0.1.4.tgz#0cd90a561093f35d0a99256c22b7069433fad117"
|
||||||
@ -1479,6 +1513,13 @@ atob@^2.1.1:
|
|||||||
resolved "https://registry.yarnpkg.com/atob/-/atob-2.1.2.tgz#6d9517eb9e030d2436666651e86bd9f6f13533c9"
|
resolved "https://registry.yarnpkg.com/atob/-/atob-2.1.2.tgz#6d9517eb9e030d2436666651e86bd9f6f13533c9"
|
||||||
integrity sha512-Wm6ukoaOGJi/73p/cl2GvLjTI5JM1k/O14isD73YML8StrH/7/lRFgmg8nICZgD3bZZvjwCGxtMOD3wWNAu8cg==
|
integrity sha512-Wm6ukoaOGJi/73p/cl2GvLjTI5JM1k/O14isD73YML8StrH/7/lRFgmg8nICZgD3bZZvjwCGxtMOD3wWNAu8cg==
|
||||||
|
|
||||||
|
autocomplete.js@0.36.0:
|
||||||
|
version "0.36.0"
|
||||||
|
resolved "https://registry.yarnpkg.com/autocomplete.js/-/autocomplete.js-0.36.0.tgz#94fe775fe64b6cd42e622d076dc7fd26bedd837b"
|
||||||
|
integrity sha512-jEwUXnVMeCHHutUt10i/8ZiRaCb0Wo+ZyKxeGsYwBDtw6EJHqEeDrq4UwZRD8YBSvp3g6klP678il2eeiVXN2Q==
|
||||||
|
dependencies:
|
||||||
|
immediate "^3.2.3"
|
||||||
|
|
||||||
autoprefixer@^9.6.0:
|
autoprefixer@^9.6.0:
|
||||||
version "9.6.0"
|
version "9.6.0"
|
||||||
resolved "https://registry.yarnpkg.com/autoprefixer/-/autoprefixer-9.6.0.tgz#0111c6bde2ad20c6f17995a33fad7cf6854b4c87"
|
resolved "https://registry.yarnpkg.com/autoprefixer/-/autoprefixer-9.6.0.tgz#0111c6bde2ad20c6f17995a33fad7cf6854b4c87"
|
||||||
@ -2627,7 +2668,7 @@ de-indent@^1.0.2:
|
|||||||
resolved "https://registry.yarnpkg.com/de-indent/-/de-indent-1.0.2.tgz#b2038e846dc33baa5796128d0804b455b8c1e21d"
|
resolved "https://registry.yarnpkg.com/de-indent/-/de-indent-1.0.2.tgz#b2038e846dc33baa5796128d0804b455b8c1e21d"
|
||||||
integrity sha1-sgOOhG3DO6pXlhKNCAS0VbjB4h0=
|
integrity sha1-sgOOhG3DO6pXlhKNCAS0VbjB4h0=
|
||||||
|
|
||||||
debug@^2.1.2, debug@^2.2.0, debug@^2.3.3, debug@^2.6.3, debug@^2.6.8:
|
debug@^2.1.2, debug@^2.2.0, debug@^2.3.3, debug@^2.6.3, debug@^2.6.8, debug@^2.6.9:
|
||||||
version "2.6.9"
|
version "2.6.9"
|
||||||
resolved "https://registry.yarnpkg.com/debug/-/debug-2.6.9.tgz#5d128515df134ff327e90a4c93f4e077a536341f"
|
resolved "https://registry.yarnpkg.com/debug/-/debug-2.6.9.tgz#5d128515df134ff327e90a4c93f4e077a536341f"
|
||||||
integrity sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==
|
integrity sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==
|
||||||
@ -2783,6 +2824,19 @@ diffie-hellman@^5.0.0:
|
|||||||
miller-rabin "^4.0.0"
|
miller-rabin "^4.0.0"
|
||||||
randombytes "^2.0.0"
|
randombytes "^2.0.0"
|
||||||
|
|
||||||
|
docsearch.js@^2.6.3:
|
||||||
|
version "2.6.3"
|
||||||
|
resolved "https://registry.yarnpkg.com/docsearch.js/-/docsearch.js-2.6.3.tgz#57cb4600d3b6553c677e7cbbe6a734593e38625d"
|
||||||
|
integrity sha512-GN+MBozuyz664ycpZY0ecdQE0ND/LSgJKhTLA0/v3arIS3S1Rpf2OJz6A35ReMsm91V5apcmzr5/kM84cvUg+A==
|
||||||
|
dependencies:
|
||||||
|
algoliasearch "^3.24.5"
|
||||||
|
autocomplete.js "0.36.0"
|
||||||
|
hogan.js "^3.0.2"
|
||||||
|
request "^2.87.0"
|
||||||
|
stack-utils "^1.0.1"
|
||||||
|
to-factory "^1.0.0"
|
||||||
|
zepto "^1.2.0"
|
||||||
|
|
||||||
doctrine@^3.0.0:
|
doctrine@^3.0.0:
|
||||||
version "3.0.0"
|
version "3.0.0"
|
||||||
resolved "https://registry.yarnpkg.com/doctrine/-/doctrine-3.0.0.tgz#addebead72a6574db783639dc87a121773973961"
|
resolved "https://registry.yarnpkg.com/doctrine/-/doctrine-3.0.0.tgz#addebead72a6574db783639dc87a121773973961"
|
||||||
@ -2805,6 +2859,11 @@ dom-serializer@0, dom-serializer@~0.1.0:
|
|||||||
domelementtype "^1.3.0"
|
domelementtype "^1.3.0"
|
||||||
entities "^1.1.1"
|
entities "^1.1.1"
|
||||||
|
|
||||||
|
dom-walk@^0.1.0:
|
||||||
|
version "0.1.1"
|
||||||
|
resolved "https://registry.yarnpkg.com/dom-walk/-/dom-walk-0.1.1.tgz#672226dc74c8f799ad35307df936aba11acd6018"
|
||||||
|
integrity sha1-ZyIm3HTI95mtNTB9+TaroRrNYBg=
|
||||||
|
|
||||||
domain-browser@^1.1.1:
|
domain-browser@^1.1.1:
|
||||||
version "1.2.0"
|
version "1.2.0"
|
||||||
resolved "https://registry.yarnpkg.com/domain-browser/-/domain-browser-1.2.0.tgz#3d31f50191a6749dd1375a7f522e823d42e54eda"
|
resolved "https://registry.yarnpkg.com/domain-browser/-/domain-browser-1.2.0.tgz#3d31f50191a6749dd1375a7f522e823d42e54eda"
|
||||||
@ -2940,6 +2999,14 @@ entities@^1.1.1, entities@~1.1.1:
|
|||||||
resolved "https://registry.yarnpkg.com/entities/-/entities-1.1.2.tgz#bdfa735299664dfafd34529ed4f8522a275fea56"
|
resolved "https://registry.yarnpkg.com/entities/-/entities-1.1.2.tgz#bdfa735299664dfafd34529ed4f8522a275fea56"
|
||||||
integrity sha512-f2LZMYl1Fzu7YSBKg+RoROelpOaNrcGmE9AZubeDfrCEia483oW4MI4VyFd5VNHIgQ/7qm1I0wUHK1eJnn2y2w==
|
integrity sha512-f2LZMYl1Fzu7YSBKg+RoROelpOaNrcGmE9AZubeDfrCEia483oW4MI4VyFd5VNHIgQ/7qm1I0wUHK1eJnn2y2w==
|
||||||
|
|
||||||
|
envify@^4.0.0:
|
||||||
|
version "4.1.0"
|
||||||
|
resolved "https://registry.yarnpkg.com/envify/-/envify-4.1.0.tgz#f39ad3db9d6801b4e6b478b61028d3f0b6819f7e"
|
||||||
|
integrity sha512-IKRVVoAYr4pIx4yIWNsz9mOsboxlNXiu7TNBnem/K/uTHdkyzXWDzHCK7UTolqBbgaBz0tQHsD3YNls0uIIjiw==
|
||||||
|
dependencies:
|
||||||
|
esprima "^4.0.0"
|
||||||
|
through "~2.3.4"
|
||||||
|
|
||||||
errno@^0.1.1, errno@^0.1.3, errno@~0.1.7:
|
errno@^0.1.1, errno@^0.1.3, errno@~0.1.7:
|
||||||
version "0.1.7"
|
version "0.1.7"
|
||||||
resolved "https://registry.yarnpkg.com/errno/-/errno-0.1.7.tgz#4684d71779ad39af177e3f007996f7c67c852618"
|
resolved "https://registry.yarnpkg.com/errno/-/errno-0.1.7.tgz#4684d71779ad39af177e3f007996f7c67c852618"
|
||||||
@ -2998,6 +3065,11 @@ es6-iterator@^2.0.1, es6-iterator@~2.0.3:
|
|||||||
es5-ext "^0.10.35"
|
es5-ext "^0.10.35"
|
||||||
es6-symbol "^3.1.1"
|
es6-symbol "^3.1.1"
|
||||||
|
|
||||||
|
es6-promise@^4.1.0:
|
||||||
|
version "4.2.8"
|
||||||
|
resolved "https://registry.yarnpkg.com/es6-promise/-/es6-promise-4.2.8.tgz#4eb21594c972bc40553d276e510539143db53e0a"
|
||||||
|
integrity sha512-HJDGx5daxeIvxdBxvG2cb9g4tEvwIk3i8+nhX0yGrYmZUzbkdg8QbDevheDB8gd0//uPj4c1EQua8Q+MViT0/w==
|
||||||
|
|
||||||
es6-symbol@^3.1.1, es6-symbol@~3.1.1:
|
es6-symbol@^3.1.1, es6-symbol@~3.1.1:
|
||||||
version "3.1.1"
|
version "3.1.1"
|
||||||
resolved "https://registry.yarnpkg.com/es6-symbol/-/es6-symbol-3.1.1.tgz#bf00ef4fdab6ba1b46ecb7b629b4c7ed5715cc77"
|
resolved "https://registry.yarnpkg.com/es6-symbol/-/es6-symbol-3.1.1.tgz#bf00ef4fdab6ba1b46ecb7b629b4c7ed5715cc77"
|
||||||
@ -3163,6 +3235,11 @@ esutils@^2.0.2:
|
|||||||
resolved "https://registry.yarnpkg.com/esutils/-/esutils-2.0.2.tgz#0abf4f1caa5bcb1f7a9d8acc6dea4faaa04bac9b"
|
resolved "https://registry.yarnpkg.com/esutils/-/esutils-2.0.2.tgz#0abf4f1caa5bcb1f7a9d8acc6dea4faaa04bac9b"
|
||||||
integrity sha1-Cr9PHKpbyx96nYrMbepPqqBLrJs=
|
integrity sha1-Cr9PHKpbyx96nYrMbepPqqBLrJs=
|
||||||
|
|
||||||
|
events@^1.1.0:
|
||||||
|
version "1.1.1"
|
||||||
|
resolved "https://registry.yarnpkg.com/events/-/events-1.1.1.tgz#9ebdb7635ad099c70dcc4c2a1f5004288e8bd924"
|
||||||
|
integrity sha1-nr23Y1rQmccNzEwqH1AEKI6L2SQ=
|
||||||
|
|
||||||
events@^3.0.0:
|
events@^3.0.0:
|
||||||
version "3.0.0"
|
version "3.0.0"
|
||||||
resolved "https://registry.yarnpkg.com/events/-/events-3.0.0.tgz#9a0a0dfaf62893d92b875b8f2698ca4114973e88"
|
resolved "https://registry.yarnpkg.com/events/-/events-3.0.0.tgz#9a0a0dfaf62893d92b875b8f2698ca4114973e88"
|
||||||
@ -3320,14 +3397,6 @@ fast-levenshtein@~2.0.4:
|
|||||||
resolved "https://registry.yarnpkg.com/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz#3d8a5c66883a16a30ca8643e851f19baa7797917"
|
resolved "https://registry.yarnpkg.com/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz#3d8a5c66883a16a30ca8643e851f19baa7797917"
|
||||||
integrity sha1-PYpcZog6FqMMqGQ+hR8Zuqd5eRc=
|
integrity sha1-PYpcZog6FqMMqGQ+hR8Zuqd5eRc=
|
||||||
|
|
||||||
fast-vue-md-loader@^1.0.3:
|
|
||||||
version "1.0.3"
|
|
||||||
resolved "https://registry.yarnpkg.com/fast-vue-md-loader/-/fast-vue-md-loader-1.0.3.tgz#ba1584bd1e2d012575cb2b3260d0c8fe4c1b7fa4"
|
|
||||||
integrity sha512-lxTM5WuohajZ3p49gZGIHx8jTfK1M6yjwBPvzhBnbsB3KWgthsYBb97V8Dzl4/axeVUUO+t+C9yyI7GLDqk20Q==
|
|
||||||
dependencies:
|
|
||||||
highlight.js "^9.12.0"
|
|
||||||
markdown-it "^8.4.0"
|
|
||||||
|
|
||||||
figgy-pudding@^3.5.1:
|
figgy-pudding@^3.5.1:
|
||||||
version "3.5.1"
|
version "3.5.1"
|
||||||
resolved "https://registry.yarnpkg.com/figgy-pudding/-/figgy-pudding-3.5.1.tgz#862470112901c727a0e495a80744bd5baa1d6790"
|
resolved "https://registry.yarnpkg.com/figgy-pudding/-/figgy-pudding-3.5.1.tgz#862470112901c727a0e495a80744bd5baa1d6790"
|
||||||
@ -3480,6 +3549,11 @@ for-own@^1.0.0:
|
|||||||
dependencies:
|
dependencies:
|
||||||
for-in "^1.0.1"
|
for-in "^1.0.1"
|
||||||
|
|
||||||
|
foreach@^2.0.5:
|
||||||
|
version "2.0.5"
|
||||||
|
resolved "https://registry.yarnpkg.com/foreach/-/foreach-2.0.5.tgz#0bee005018aeb260d0a3af3ae658dd0136ec1b99"
|
||||||
|
integrity sha1-C+4AUBiusmDQo6865ljdATbsG5k=
|
||||||
|
|
||||||
forever-agent@~0.6.1:
|
forever-agent@~0.6.1:
|
||||||
version "0.6.1"
|
version "0.6.1"
|
||||||
resolved "https://registry.yarnpkg.com/forever-agent/-/forever-agent-0.6.1.tgz#fbc71f0c41adeb37f96c577ad1ed42d8fdacca91"
|
resolved "https://registry.yarnpkg.com/forever-agent/-/forever-agent-0.6.1.tgz#fbc71f0c41adeb37f96c577ad1ed42d8fdacca91"
|
||||||
@ -3717,6 +3791,14 @@ global-prefix@^1.0.1:
|
|||||||
is-windows "^1.0.1"
|
is-windows "^1.0.1"
|
||||||
which "^1.2.14"
|
which "^1.2.14"
|
||||||
|
|
||||||
|
global@^4.3.2:
|
||||||
|
version "4.4.0"
|
||||||
|
resolved "https://registry.yarnpkg.com/global/-/global-4.4.0.tgz#3e7b105179006a323ed71aafca3e9c57a5cc6406"
|
||||||
|
integrity sha512-wv/LAoHdRE3BeTGz53FAamhGlPLhlssK45usmGFThIi4XqnBmjKQ16u+RNbP7WvigRZDxUsM0J3gcQ5yicaL0w==
|
||||||
|
dependencies:
|
||||||
|
min-document "^2.19.0"
|
||||||
|
process "^0.11.10"
|
||||||
|
|
||||||
globals@^11.1.0, globals@^11.7.0:
|
globals@^11.1.0, globals@^11.7.0:
|
||||||
version "11.11.0"
|
version "11.11.0"
|
||||||
resolved "https://registry.yarnpkg.com/globals/-/globals-11.11.0.tgz#dcf93757fa2de5486fbeed7118538adf789e9c2e"
|
resolved "https://registry.yarnpkg.com/globals/-/globals-11.11.0.tgz#dcf93757fa2de5486fbeed7118538adf789e9c2e"
|
||||||
@ -3956,10 +4038,10 @@ hex-color-regex@^1.1.0:
|
|||||||
resolved "https://registry.yarnpkg.com/hex-color-regex/-/hex-color-regex-1.1.0.tgz#4c06fccb4602fe2602b3c93df82d7e7dbf1a8a8e"
|
resolved "https://registry.yarnpkg.com/hex-color-regex/-/hex-color-regex-1.1.0.tgz#4c06fccb4602fe2602b3c93df82d7e7dbf1a8a8e"
|
||||||
integrity sha512-l9sfDFsuqtOqKDsQdqrMRk0U85RZc0RtOR9yPI7mRVOa4FsR/BVnZ0shmQRM96Ji99kYZP/7hn1cedc1+ApsTQ==
|
integrity sha512-l9sfDFsuqtOqKDsQdqrMRk0U85RZc0RtOR9yPI7mRVOa4FsR/BVnZ0shmQRM96Ji99kYZP/7hn1cedc1+ApsTQ==
|
||||||
|
|
||||||
highlight.js@^9.12.0:
|
highlight.js@^9.15.6:
|
||||||
version "9.15.6"
|
version "9.15.8"
|
||||||
resolved "https://registry.yarnpkg.com/highlight.js/-/highlight.js-9.15.6.tgz#72d4d8d779ec066af9a17cb14360c3def0aa57c4"
|
resolved "https://registry.yarnpkg.com/highlight.js/-/highlight.js-9.15.8.tgz#f344fda123f36f1a65490e932cf90569e4999971"
|
||||||
integrity sha512-zozTAWM1D6sozHo8kqhfYgsac+B+q0PmsjXeyDrYIHHcBN0zTVT66+s2GW1GZv7DbyaROdLXKdabwS/WqPyIdQ==
|
integrity sha512-RrapkKQWwE+wKdF73VsOa2RQdIoO3mxwJ4P8mhbI6KYJUraUHRKM5w5zQQKXNk0xNL4UVRdulV9SBJcmzJNzVA==
|
||||||
|
|
||||||
hmac-drbg@^1.0.0:
|
hmac-drbg@^1.0.0:
|
||||||
version "1.0.1"
|
version "1.0.1"
|
||||||
@ -3975,6 +4057,14 @@ hoek@6.x.x:
|
|||||||
resolved "https://registry.yarnpkg.com/hoek/-/hoek-6.1.2.tgz#99e6d070561839de74ee427b61aa476bd6bddfd6"
|
resolved "https://registry.yarnpkg.com/hoek/-/hoek-6.1.2.tgz#99e6d070561839de74ee427b61aa476bd6bddfd6"
|
||||||
integrity sha512-6qhh/wahGYZHFSFw12tBbJw5fsAhhwrrG/y3Cs0YMTv2WzMnL0oLPnQJjv1QJvEfylRSOFuP+xCu+tdx0tD16Q==
|
integrity sha512-6qhh/wahGYZHFSFw12tBbJw5fsAhhwrrG/y3Cs0YMTv2WzMnL0oLPnQJjv1QJvEfylRSOFuP+xCu+tdx0tD16Q==
|
||||||
|
|
||||||
|
hogan.js@^3.0.2:
|
||||||
|
version "3.0.2"
|
||||||
|
resolved "https://registry.yarnpkg.com/hogan.js/-/hogan.js-3.0.2.tgz#4cd9e1abd4294146e7679e41d7898732b02c7bfd"
|
||||||
|
integrity sha1-TNnhq9QpQUbnZ55B14mHMrAse/0=
|
||||||
|
dependencies:
|
||||||
|
mkdirp "0.3.0"
|
||||||
|
nopt "1.0.10"
|
||||||
|
|
||||||
homedir-polyfill@^1.0.1:
|
homedir-polyfill@^1.0.1:
|
||||||
version "1.0.3"
|
version "1.0.3"
|
||||||
resolved "https://registry.yarnpkg.com/homedir-polyfill/-/homedir-polyfill-1.0.3.tgz#743298cef4e5af3e194161fbadcc2151d3a058e8"
|
resolved "https://registry.yarnpkg.com/homedir-polyfill/-/homedir-polyfill-1.0.3.tgz#743298cef4e5af3e194161fbadcc2151d3a058e8"
|
||||||
@ -4132,6 +4222,11 @@ image-size@~0.5.0:
|
|||||||
resolved "https://registry.yarnpkg.com/image-size/-/image-size-0.5.5.tgz#09dfd4ab9d20e29eb1c3e80b8990378df9e3cb9c"
|
resolved "https://registry.yarnpkg.com/image-size/-/image-size-0.5.5.tgz#09dfd4ab9d20e29eb1c3e80b8990378df9e3cb9c"
|
||||||
integrity sha1-Cd/Uq50g4p6xw+gLiZA3jfnjy5w=
|
integrity sha1-Cd/Uq50g4p6xw+gLiZA3jfnjy5w=
|
||||||
|
|
||||||
|
immediate@^3.2.3:
|
||||||
|
version "3.2.3"
|
||||||
|
resolved "https://registry.yarnpkg.com/immediate/-/immediate-3.2.3.tgz#d140fa8f614659bd6541233097ddaac25cdd991c"
|
||||||
|
integrity sha1-0UD6j2FGWb1lQSMwl92qwlzdmRw=
|
||||||
|
|
||||||
import-cwd@^2.0.0:
|
import-cwd@^2.0.0:
|
||||||
version "2.1.0"
|
version "2.1.0"
|
||||||
resolved "https://registry.yarnpkg.com/import-cwd/-/import-cwd-2.1.0.tgz#aa6cf36e722761285cb371ec6519f53e2435b0a9"
|
resolved "https://registry.yarnpkg.com/import-cwd/-/import-cwd-2.1.0.tgz#aa6cf36e722761285cb371ec6519f53e2435b0a9"
|
||||||
@ -4584,6 +4679,11 @@ isarray@1.0.0, isarray@^1.0.0, isarray@~1.0.0:
|
|||||||
resolved "https://registry.yarnpkg.com/isarray/-/isarray-1.0.0.tgz#bb935d48582cba168c06834957a54a3e07124f11"
|
resolved "https://registry.yarnpkg.com/isarray/-/isarray-1.0.0.tgz#bb935d48582cba168c06834957a54a3e07124f11"
|
||||||
integrity sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=
|
integrity sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=
|
||||||
|
|
||||||
|
isarray@^2.0.1:
|
||||||
|
version "2.0.4"
|
||||||
|
resolved "https://registry.yarnpkg.com/isarray/-/isarray-2.0.4.tgz#38e7bcbb0f3ba1b7933c86ba1894ddfc3781bbb7"
|
||||||
|
integrity sha512-GMxXOiUirWg1xTKRipM0Ek07rX+ubx4nNVElTJdNLYmNO/2YrDkgJGw9CljXn+r4EWiDQg/8lsRdHyg2PJuUaA==
|
||||||
|
|
||||||
isemail@3.x.x:
|
isemail@3.x.x:
|
||||||
version "3.2.0"
|
version "3.2.0"
|
||||||
resolved "https://registry.yarnpkg.com/isemail/-/isemail-3.2.0.tgz#59310a021931a9fb06bbb51e155ce0b3f236832c"
|
resolved "https://registry.yarnpkg.com/isemail/-/isemail-3.2.0.tgz#59310a021931a9fb06bbb51e155ce0b3f236832c"
|
||||||
@ -4956,6 +5056,11 @@ load-json-file@^4.0.0:
|
|||||||
pify "^3.0.0"
|
pify "^3.0.0"
|
||||||
strip-bom "^3.0.0"
|
strip-bom "^3.0.0"
|
||||||
|
|
||||||
|
load-script@^1.0.0:
|
||||||
|
version "1.0.0"
|
||||||
|
resolved "https://registry.yarnpkg.com/load-script/-/load-script-1.0.0.tgz#0491939e0bee5643ee494a7e3da3d2bac70c6ca4"
|
||||||
|
integrity sha1-BJGTngvuVkPuSUp+PaPSuscMbKQ=
|
||||||
|
|
||||||
loader-runner@^2.3.0:
|
loader-runner@^2.3.0:
|
||||||
version "2.4.0"
|
version "2.4.0"
|
||||||
resolved "https://registry.yarnpkg.com/loader-runner/-/loader-runner-2.4.0.tgz#ed47066bfe534d7e84c4c7b9998c2a75607d9357"
|
resolved "https://registry.yarnpkg.com/loader-runner/-/loader-runner-2.4.0.tgz#ed47066bfe534d7e84c4c7b9998c2a75607d9357"
|
||||||
@ -5197,7 +5302,7 @@ map-visit@^1.0.0:
|
|||||||
dependencies:
|
dependencies:
|
||||||
object-visit "^1.0.0"
|
object-visit "^1.0.0"
|
||||||
|
|
||||||
markdown-it@^8.4.0:
|
markdown-it@^8.4.2:
|
||||||
version "8.4.2"
|
version "8.4.2"
|
||||||
resolved "https://registry.yarnpkg.com/markdown-it/-/markdown-it-8.4.2.tgz#386f98998dc15a37722aa7722084f4020bdd9b54"
|
resolved "https://registry.yarnpkg.com/markdown-it/-/markdown-it-8.4.2.tgz#386f98998dc15a37722aa7722084f4020bdd9b54"
|
||||||
integrity sha512-GcRz3AWTqSUphY3vsUqQSFMbgR38a4Lh3GWlHRh/7MRwz8mcu9n2IO7HOh+bXHrR9kOPDl5RNCaEsrneb+xhHQ==
|
integrity sha512-GcRz3AWTqSUphY3vsUqQSFMbgR38a4Lh3GWlHRh/7MRwz8mcu9n2IO7HOh+bXHrR9kOPDl5RNCaEsrneb+xhHQ==
|
||||||
@ -5360,6 +5465,13 @@ mimic-fn@^2.0.0:
|
|||||||
resolved "https://registry.yarnpkg.com/mimic-fn/-/mimic-fn-2.0.0.tgz#0913ff0b121db44ef5848242c38bbb35d44cabde"
|
resolved "https://registry.yarnpkg.com/mimic-fn/-/mimic-fn-2.0.0.tgz#0913ff0b121db44ef5848242c38bbb35d44cabde"
|
||||||
integrity sha512-jbex9Yd/3lmICXwYT6gA/j2mNQGU48wCh/VzRd+/Y/PjYQtlg1gLMdZqvu9s/xH7qKvngxRObl56XZR609IMbA==
|
integrity sha512-jbex9Yd/3lmICXwYT6gA/j2mNQGU48wCh/VzRd+/Y/PjYQtlg1gLMdZqvu9s/xH7qKvngxRObl56XZR609IMbA==
|
||||||
|
|
||||||
|
min-document@^2.19.0:
|
||||||
|
version "2.19.0"
|
||||||
|
resolved "https://registry.yarnpkg.com/min-document/-/min-document-2.19.0.tgz#7bd282e3f5842ed295bb748cdd9f1ffa2c824685"
|
||||||
|
integrity sha1-e9KC4/WELtKVu3SM3Z8f+iyCRoU=
|
||||||
|
dependencies:
|
||||||
|
dom-walk "^0.1.0"
|
||||||
|
|
||||||
minimalistic-assert@^1.0.0, minimalistic-assert@^1.0.1:
|
minimalistic-assert@^1.0.0, minimalistic-assert@^1.0.1:
|
||||||
version "1.0.1"
|
version "1.0.1"
|
||||||
resolved "https://registry.yarnpkg.com/minimalistic-assert/-/minimalistic-assert-1.0.1.tgz#2e194de044626d4a10e7f7fbc00ce73e83e4d5c7"
|
resolved "https://registry.yarnpkg.com/minimalistic-assert/-/minimalistic-assert-1.0.1.tgz#2e194de044626d4a10e7f7fbc00ce73e83e4d5c7"
|
||||||
@ -5439,6 +5551,11 @@ mixin-deep@^1.2.0:
|
|||||||
for-in "^1.0.2"
|
for-in "^1.0.2"
|
||||||
is-extendable "^1.0.1"
|
is-extendable "^1.0.1"
|
||||||
|
|
||||||
|
mkdirp@0.3.0:
|
||||||
|
version "0.3.0"
|
||||||
|
resolved "https://registry.yarnpkg.com/mkdirp/-/mkdirp-0.3.0.tgz#1bbf5ab1ba827af23575143490426455f481fe1e"
|
||||||
|
integrity sha1-G79asbqCevI1dRQ0kEJkVfSB/h4=
|
||||||
|
|
||||||
mkdirp@^0.5.0, mkdirp@^0.5.1, mkdirp@~0.5.0, mkdirp@~0.5.1:
|
mkdirp@^0.5.0, mkdirp@^0.5.1, mkdirp@~0.5.0, mkdirp@~0.5.1:
|
||||||
version "0.5.1"
|
version "0.5.1"
|
||||||
resolved "https://registry.yarnpkg.com/mkdirp/-/mkdirp-0.5.1.tgz#30057438eac6cf7f8c4767f38648d6697d75c903"
|
resolved "https://registry.yarnpkg.com/mkdirp/-/mkdirp-0.5.1.tgz#30057438eac6cf7f8c4767f38648d6697d75c903"
|
||||||
@ -5643,6 +5760,13 @@ node-version@^1.1.3:
|
|||||||
resolved "https://registry.yarnpkg.com/node-version/-/node-version-1.2.0.tgz#34fde3ffa8e1149bd323983479dda620e1b5060d"
|
resolved "https://registry.yarnpkg.com/node-version/-/node-version-1.2.0.tgz#34fde3ffa8e1149bd323983479dda620e1b5060d"
|
||||||
integrity sha512-ma6oU4Sk0qOoKEAymVoTvk8EdXEobdS7m/mAGhDJ8Rouugho48crHBORAmy5BoOcv8wraPM6xumapQp5hl4iIQ==
|
integrity sha512-ma6oU4Sk0qOoKEAymVoTvk8EdXEobdS7m/mAGhDJ8Rouugho48crHBORAmy5BoOcv8wraPM6xumapQp5hl4iIQ==
|
||||||
|
|
||||||
|
nopt@1.0.10:
|
||||||
|
version "1.0.10"
|
||||||
|
resolved "https://registry.yarnpkg.com/nopt/-/nopt-1.0.10.tgz#6ddd21bd2a31417b92727dd585f8a6f37608ebee"
|
||||||
|
integrity sha1-bd0hvSoxQXuScn3Vhfim83YI6+4=
|
||||||
|
dependencies:
|
||||||
|
abbrev "1"
|
||||||
|
|
||||||
nopt@^4.0.1:
|
nopt@^4.0.1:
|
||||||
version "4.0.1"
|
version "4.0.1"
|
||||||
resolved "https://registry.yarnpkg.com/nopt/-/nopt-4.0.1.tgz#d0d4685afd5415193c8c7505602d0d17cd64474d"
|
resolved "https://registry.yarnpkg.com/nopt/-/nopt-4.0.1.tgz#d0d4685afd5415193c8c7505602d0d17cd64474d"
|
||||||
@ -5730,11 +5854,6 @@ npmlog@^4.0.2:
|
|||||||
gauge "~2.7.3"
|
gauge "~2.7.3"
|
||||||
set-blocking "~2.0.0"
|
set-blocking "~2.0.0"
|
||||||
|
|
||||||
nprogress@^0.2.0:
|
|
||||||
version "0.2.0"
|
|
||||||
resolved "https://registry.yarnpkg.com/nprogress/-/nprogress-0.2.0.tgz#cb8f34c53213d895723fcbab907e9422adbcafb1"
|
|
||||||
integrity sha1-y480xTIT2JVyP8urkH6UIq28r7E=
|
|
||||||
|
|
||||||
nth-check@^1.0.2, nth-check@~1.0.1:
|
nth-check@^1.0.2, nth-check@~1.0.1:
|
||||||
version "1.0.2"
|
version "1.0.2"
|
||||||
resolved "https://registry.yarnpkg.com/nth-check/-/nth-check-1.0.2.tgz#b2bd295c37e3dd58a3bf0700376663ba4d9cf05c"
|
resolved "https://registry.yarnpkg.com/nth-check/-/nth-check-1.0.2.tgz#b2bd295c37e3dd58a3bf0700376663ba4d9cf05c"
|
||||||
@ -5776,6 +5895,11 @@ object-keys@^1.0.11, object-keys@^1.0.12:
|
|||||||
resolved "https://registry.yarnpkg.com/object-keys/-/object-keys-1.1.0.tgz#11bd22348dd2e096a045ab06f6c85bcc340fa032"
|
resolved "https://registry.yarnpkg.com/object-keys/-/object-keys-1.1.0.tgz#11bd22348dd2e096a045ab06f6c85bcc340fa032"
|
||||||
integrity sha512-6OO5X1+2tYkNyNEx6TsCxEqFfRWaqx6EtMiSbGrw8Ob8v9Ne+Hl8rBAgLBZn5wjEz3s/s6U1WXFUFOcxxAwUpg==
|
integrity sha512-6OO5X1+2tYkNyNEx6TsCxEqFfRWaqx6EtMiSbGrw8Ob8v9Ne+Hl8rBAgLBZn5wjEz3s/s6U1WXFUFOcxxAwUpg==
|
||||||
|
|
||||||
|
object-keys@^1.1.0:
|
||||||
|
version "1.1.1"
|
||||||
|
resolved "https://registry.yarnpkg.com/object-keys/-/object-keys-1.1.1.tgz#1c47f272df277f3b1daf061677d9c82e2322c60e"
|
||||||
|
integrity sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA==
|
||||||
|
|
||||||
object-visit@^1.0.0:
|
object-visit@^1.0.0:
|
||||||
version "1.0.1"
|
version "1.0.1"
|
||||||
resolved "https://registry.yarnpkg.com/object-visit/-/object-visit-1.0.1.tgz#f79c4493af0c5377b59fe39d395e41042dd045bb"
|
resolved "https://registry.yarnpkg.com/object-visit/-/object-visit-1.0.1.tgz#f79c4493af0c5377b59fe39d395e41042dd045bb"
|
||||||
@ -6776,7 +6900,7 @@ query-string@^4.1.0:
|
|||||||
object-assign "^4.1.0"
|
object-assign "^4.1.0"
|
||||||
strict-uri-encode "^1.0.0"
|
strict-uri-encode "^1.0.0"
|
||||||
|
|
||||||
querystring-es3@^0.2.0:
|
querystring-es3@^0.2.0, querystring-es3@^0.2.1:
|
||||||
version "0.2.1"
|
version "0.2.1"
|
||||||
resolved "https://registry.yarnpkg.com/querystring-es3/-/querystring-es3-0.2.1.tgz#9ec61f79049875707d69414596fd907a4d711e73"
|
resolved "https://registry.yarnpkg.com/querystring-es3/-/querystring-es3-0.2.1.tgz#9ec61f79049875707d69414596fd907a4d711e73"
|
||||||
integrity sha1-nsYfeQSYdXB9aUFFlv2Qek1xHnM=
|
integrity sha1-nsYfeQSYdXB9aUFFlv2Qek1xHnM=
|
||||||
@ -6911,6 +7035,13 @@ redent@^2.0.0:
|
|||||||
indent-string "^3.0.0"
|
indent-string "^3.0.0"
|
||||||
strip-indent "^2.0.0"
|
strip-indent "^2.0.0"
|
||||||
|
|
||||||
|
reduce@^1.0.1:
|
||||||
|
version "1.0.2"
|
||||||
|
resolved "https://registry.yarnpkg.com/reduce/-/reduce-1.0.2.tgz#0cd680ad3ffe0b060e57a5c68bdfce37168d361b"
|
||||||
|
integrity sha512-xX7Fxke/oHO5IfZSk77lvPa/7bjMh9BuCk4OOoX5XTXrM7s0Z+MkPfSDfz0q7r91BhhGSs8gii/VEN/7zhCPpQ==
|
||||||
|
dependencies:
|
||||||
|
object-keys "^1.1.0"
|
||||||
|
|
||||||
regenerate-unicode-properties@^8.0.2:
|
regenerate-unicode-properties@^8.0.2:
|
||||||
version "8.0.2"
|
version "8.0.2"
|
||||||
resolved "https://registry.yarnpkg.com/regenerate-unicode-properties/-/regenerate-unicode-properties-8.0.2.tgz#7b38faa296252376d363558cfbda90c9ce709662"
|
resolved "https://registry.yarnpkg.com/regenerate-unicode-properties/-/regenerate-unicode-properties-8.0.2.tgz#7b38faa296252376d363558cfbda90c9ce709662"
|
||||||
@ -7054,7 +7185,7 @@ replace-homedir@^1.0.0:
|
|||||||
is-absolute "^1.0.0"
|
is-absolute "^1.0.0"
|
||||||
remove-trailing-separator "^1.1.0"
|
remove-trailing-separator "^1.1.0"
|
||||||
|
|
||||||
request@^2.83.0:
|
request@^2.83.0, request@^2.87.0:
|
||||||
version "2.88.0"
|
version "2.88.0"
|
||||||
resolved "https://registry.yarnpkg.com/request/-/request-2.88.0.tgz#9c2fca4f7d35b592efe57c7f0a55e81052124fef"
|
resolved "https://registry.yarnpkg.com/request/-/request-2.88.0.tgz#9c2fca4f7d35b592efe57c7f0a55e81052124fef"
|
||||||
integrity sha512-NAqBSrijGLZdM0WZNsInLJpkJokL72XYjUpnB0iwsRgxh7dB6COrHnTBNwN0E+lHDAJzu7kLAkDeY08z2/A0hg==
|
integrity sha512-NAqBSrijGLZdM0WZNsInLJpkJokL72XYjUpnB0iwsRgxh7dB6COrHnTBNwN0E+lHDAJzu7kLAkDeY08z2/A0hg==
|
||||||
@ -7519,6 +7650,11 @@ stack-trace@0.0.10:
|
|||||||
resolved "https://registry.yarnpkg.com/stack-trace/-/stack-trace-0.0.10.tgz#547c70b347e8d32b4e108ea1a2a159e5fdde19c0"
|
resolved "https://registry.yarnpkg.com/stack-trace/-/stack-trace-0.0.10.tgz#547c70b347e8d32b4e108ea1a2a159e5fdde19c0"
|
||||||
integrity sha1-VHxws0fo0ytOEI6hoqFZ5f3eGcA=
|
integrity sha1-VHxws0fo0ytOEI6hoqFZ5f3eGcA=
|
||||||
|
|
||||||
|
stack-utils@^1.0.1:
|
||||||
|
version "1.0.2"
|
||||||
|
resolved "https://registry.yarnpkg.com/stack-utils/-/stack-utils-1.0.2.tgz#33eba3897788558bebfc2db059dc158ec36cebb8"
|
||||||
|
integrity sha512-MTX+MeG5U994cazkjd/9KNAapsHnibjMLnfXodlkXw76JEea0UiNzrqidzo1emMwk7w5Qhc9jd4Bn9TBb1MFwA==
|
||||||
|
|
||||||
static-extend@^0.1.1:
|
static-extend@^0.1.1:
|
||||||
version "0.1.2"
|
version "0.1.2"
|
||||||
resolved "https://registry.yarnpkg.com/static-extend/-/static-extend-0.1.2.tgz#60809c39cbff55337226fd5e0b520f341f1fb5c6"
|
resolved "https://registry.yarnpkg.com/static-extend/-/static-extend-0.1.2.tgz#60809c39cbff55337226fd5e0b520f341f1fb5c6"
|
||||||
@ -7850,7 +7986,7 @@ through2@^3.0.0:
|
|||||||
dependencies:
|
dependencies:
|
||||||
readable-stream "2 || 3"
|
readable-stream "2 || 3"
|
||||||
|
|
||||||
through@^2.3.6:
|
through@^2.3.6, through@~2.3.4:
|
||||||
version "2.3.8"
|
version "2.3.8"
|
||||||
resolved "https://registry.yarnpkg.com/through/-/through-2.3.8.tgz#0dd4c9ffaabc357960b1b724115d7e0e86a2e1f5"
|
resolved "https://registry.yarnpkg.com/through/-/through-2.3.8.tgz#0dd4c9ffaabc357960b1b724115d7e0e86a2e1f5"
|
||||||
integrity sha1-DdTJ/6q8NXlgsbckEV1+Doai4fU=
|
integrity sha1-DdTJ/6q8NXlgsbckEV1+Doai4fU=
|
||||||
@ -7902,6 +8038,11 @@ to-arraybuffer@^1.0.0:
|
|||||||
resolved "https://registry.yarnpkg.com/to-arraybuffer/-/to-arraybuffer-1.0.1.tgz#7d229b1fcc637e466ca081180836a7aabff83f43"
|
resolved "https://registry.yarnpkg.com/to-arraybuffer/-/to-arraybuffer-1.0.1.tgz#7d229b1fcc637e466ca081180836a7aabff83f43"
|
||||||
integrity sha1-fSKbH8xjfkZsoIEYCDanqr/4P0M=
|
integrity sha1-fSKbH8xjfkZsoIEYCDanqr/4P0M=
|
||||||
|
|
||||||
|
to-factory@^1.0.0:
|
||||||
|
version "1.0.0"
|
||||||
|
resolved "https://registry.yarnpkg.com/to-factory/-/to-factory-1.0.0.tgz#8738af8bd97120ad1d4047972ada5563bf9479b1"
|
||||||
|
integrity sha1-hzivi9lxIK0dQEeXKtpVY7+UebE=
|
||||||
|
|
||||||
to-fast-properties@^2.0.0:
|
to-fast-properties@^2.0.0:
|
||||||
version "2.0.0"
|
version "2.0.0"
|
||||||
resolved "https://registry.yarnpkg.com/to-fast-properties/-/to-fast-properties-2.0.0.tgz#dc5e698cbd079265bc73e0377681a4e4e83f616e"
|
resolved "https://registry.yarnpkg.com/to-fast-properties/-/to-fast-properties-2.0.0.tgz#dc5e698cbd079265bc73e0377681a4e4e83f616e"
|
||||||
@ -8788,3 +8929,8 @@ ylru@^1.2.0:
|
|||||||
version "1.2.1"
|
version "1.2.1"
|
||||||
resolved "https://registry.yarnpkg.com/ylru/-/ylru-1.2.1.tgz#f576b63341547989c1de7ba288760923b27fe84f"
|
resolved "https://registry.yarnpkg.com/ylru/-/ylru-1.2.1.tgz#f576b63341547989c1de7ba288760923b27fe84f"
|
||||||
integrity sha512-faQrqNMzcPCHGVC2aaOINk13K+aaBDUPjGWl0teOXywElLjyVAB6Oe2jj62jHYtwsU49jXhScYbvPENK+6zAvQ==
|
integrity sha512-faQrqNMzcPCHGVC2aaOINk13K+aaBDUPjGWl0teOXywElLjyVAB6Oe2jj62jHYtwsU49jXhScYbvPENK+6zAvQ==
|
||||||
|
|
||||||
|
zepto@^1.2.0:
|
||||||
|
version "1.2.0"
|
||||||
|
resolved "https://registry.yarnpkg.com/zepto/-/zepto-1.2.0.tgz#e127bd9e66fd846be5eab48c1394882f7c0e4f98"
|
||||||
|
integrity sha1-4Se9nmb9hGvl6rSME5SIL3wOT5g=
|
||||||
|
Loading…
x
Reference in New Issue
Block a user