Skip to content

Commit

Permalink
优化图片目录结构 && 压缩图片 && update V 1.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
kuangpengfei committed Mar 16, 2018
1 parent 561770c commit 003086e
Show file tree
Hide file tree
Showing 50 changed files with 14 additions and 13 deletions.
Binary file modified docs/_img/actionsheet01.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed docs/_img/article/article01.png
Binary file not shown.
Binary file added docs/_img/article01.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed docs/_img/badge/badge01.png
Binary file not shown.
Binary file added docs/_img/badge01.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/_img/dialog01.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/_img/flex01.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/_img/footer01.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/_img/grid01.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/_img/icons01.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed docs/_img/input/input01.png
Binary file not shown.
Binary file removed docs/_img/input/input02.png
Binary file not shown.
Binary file removed docs/_img/input/input03.png
Binary file not shown.
Binary file added docs/_img/input01.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/_img/input02.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/_img/input03.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/_img/list01.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/_img/list02.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/_img/list03.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/_img/loadmore01.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/_img/mpvue-logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/_img/mpvue-weui-demo01.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/_img/mpvue-weui-demo03.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/_img/mpvue-weui-demo04.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/_img/msg01.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/_img/navbar01.gif
Binary file modified docs/_img/picker01.gif
Binary file modified docs/_img/picker02.gif
Binary file modified docs/_img/picker03.gif
Binary file modified docs/_img/picker04.gif
Binary file modified docs/_img/picker05.gif
Binary file modified docs/_img/picker06.gif
Binary file modified docs/_img/preview01.png
Binary file modified docs/_img/progress01.gif
Binary file modified docs/_img/search01.gif
Binary file removed docs/_img/slider/slider01.png
Diff not rendered.
Binary file added docs/_img/slider01.png
Binary file modified docs/_img/tabbar01.png
Binary file modified docs/_img/toast01.gif
Binary file removed docs/_img/uploader/uploader01.gif
Diff not rendered.
Binary file removed docs/_img/uploader/uploader02.gif
Diff not rendered.
Binary file added docs/_img/uploader01.gif
Binary file added docs/_img/uploader02.gif
2 changes: 1 addition & 1 deletion docs/article.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,4 @@

**效果**

![article01](_img/article/article01.png)
![article01](_img/article01.png)
2 changes: 1 addition & 1 deletion docs/badage.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,4 +87,4 @@ export default {

**效果**

![badge](_img/badge/badge01.png)
![badge](_img/badge01.png)
6 changes: 3 additions & 3 deletions docs/input.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ export default {
</style>
```
![input01](_img/input/input01.png)
![input01](_img/input01.png)

##### 踩坑
!> 1.`<radio-group>`中的`bindchange`要写成`@change="radioChange"`
Expand Down Expand Up @@ -137,7 +137,7 @@ export default {
</style>
```

![input02](_img/input/input02.png)
![input02](_img/input02.png)

##### 踩坑
!> 与`radio`差不多,都是一些写法的问题,看下示例代码应该就可以明白。
Expand Down Expand Up @@ -189,7 +189,7 @@ export default {
</style>
```

![input03](_img/input/input03.png)
![input03](_img/input03.png)

##### 踩坑
!> 与`radio``checkbox`差不多,都是一些写法的问题,看下示例代码应该就可以明白。
Expand Down
2 changes: 1 addition & 1 deletion docs/slider.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,4 +57,4 @@ slider {
```

**效果**
![slider01](_img/slider/slider01.png)
![slider01](_img/slider01.png)
4 changes: 2 additions & 2 deletions docs/uploader.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ export default {

**效果**

![uploader](_img/uploader/uploader01.gif)
![uploader01](_img/uploader01.gif)

## 图片预览

Expand Down Expand Up @@ -96,5 +96,5 @@ export default {

**效果**

![uploader](_img/uploader/uploader02.gif)
![uploader02](_img/uploader02.gif)

10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mpvue-weui",
"version": "1.0.0",
"version": "1.0.1",
"description": "用 vue 写小程序,使用 mpvue 框架重写 WeUI。",
"author": "kuangpengfei <[email protected]>",
"private": false,
Expand All @@ -11,13 +11,13 @@
"lint": "eslint --ext .js,.vue src"
},
"dependencies": {
"mpvue": "^1.0.5",
"mpvue": "1.0.5",
"vuex": "^2.3.1"
},
"devDependencies": {
"mpvue-loader": "^1.0.6",
"mpvue-webpack-target": "^1.0.0",
"mpvue-template-compiler": "^1.0.5",
"mpvue-loader": "1.0.6",
"mpvue-webpack-target": "1.0.0",
"mpvue-template-compiler": "1.0.5",
"postcss-mpvue-wxss": "^1.0.0",
"px2rpx-loader": "^0.1.8",
"autoprefixer": "^7.1.2",
Expand Down
1 change: 1 addition & 0 deletions src/pages/uploader/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ export default {
sizeType: ['original', 'compressed'], // 可以指定是原图还是压缩图,默认二者都有
sourceType: ['album', 'camera'], // 可以指定来源是相册还是相机,默认二者都有
success: function (res) {
console.log('成功上传:' + res.tempFilePaths);
// 返回选定照片的本地文件路径列表,tempFilePath可以作为img标签的src属性显示图片
_this.files = _this.files.concat(res.tempFilePaths)
},
Expand Down

0 comments on commit 003086e

Please sign in to comment.