Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(Uploader): add sizeType Attribute #2563

Merged
merged 3 commits into from Dec 23, 2019
Merged

Conversation

Lindysen
Copy link
Collaborator

@Lindysen Lindysen commented Dec 20, 2019

feat(Uploader): add sizeType Attribute

fix: #2530

@@ -167,6 +167,7 @@ uploadFilePromise(fileName, chooseResult) {
|-----------|-----------|-----------|-----------|-----------|
| name | 标识符,可以在回调函数的第二项参数中获取 | *string \| number* | - | - |
| accept | 接受的文件类型, 可选值为`all` `image` `file` | *string* | `image` | - |
| sizeType | 所选的图片的尺寸, 当`accept`为`image`类型时设置所选图片的尺寸可选值为`original` `compressed`| *string* | `original` | - |
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

类型应该是array吧?

@@ -19,6 +19,10 @@ VantComponent({
type: String,
value: 'image'
},
sizeType: {
type: String,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

类型应该是Array哦?

@wujingquan
Copy link
Contributor

小程序本来默认就是['original', 'compressed'],这是要修改默认值吗?

@rex-zsd rex-zsd merged commit 2dbabe7 into youzan:dev Dec 23, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

vant-weapp 的uploader组件,请加一个属性,是原图还是压缩'original', 'compressed'
3 participants