[
https://issues.apache.org/jira/browse/WEEX-62?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16101695#comment-16101695
]
ASF GitHub Bot commented on WEEX-62:
------------------------------------
GitHub user acton393 opened a pull request:
https://github.com/apache/incubator-weex/pull/544
*[iOS] support new feature image component can save to Photo Album
support to save the image to Photo Album in image component method
case: http://dotwe.org/vue/55b9f0683f9c8bb9e12788626608da4c
jira issues: https://issues.apache.org/jira/browse/WEEX-62
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/acton393/incubator-weex
ios-feature-0.16-image-save
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/incubator-weex/pull/544.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #544
----
commit 29f5ecb7a215116213b0d3c0217d6c509ac68890
Author: acton393 <[email protected]>
Date: 2017-07-26T10:04:32Z
* [ios] fix image load event not fired when image download failed
commit e4c466b7d6a797eb72cbbfa646650b79280e458a
Author: acton393 <[email protected]>
Date: 2017-07-26T10:36:17Z
* [ios] update image onload event failed case
commit 6cdc31f07ca8ac2887a6e4a33bf3e02de22dd59a
Author: acton393 <[email protected]>
Date: 2017-07-26T13:41:40Z
* [ios] support save image to photo album
----
> image Component can save image to photo Album or sd card
> --------------------------------------------------------
>
> Key: WEEX-62
> URL: https://issues.apache.org/jira/browse/WEEX-62
> Project: Weex
> Issue Type: New Feature
> Reporter: xingZhang
> Assignee: xingZhang
> Labels: features
>
> image component support save image to photo Album or sd card
> design to support it with component Method.
> so the dsl will be as follow:
> <image ref='image'
> src="http://www.fresher.ru/manager_content/images2/kadry-veka/big/2-1.jpg"
> style="width:250px;height:250px;background-color:yellow"></image>
> js:
> var image = this.$refs.image;
> image.save(function(result) {
> console.log(result);
> }); // html5 iOS and Android provide their own component method
> the callback data result format maybe
> {
> "success" : true/false,
> "errorDesc": "errorDesc" // if the success is false, describe the reason
> why this action failed.
> }
> you can try a complete case:
> case: http://dotwe.org/vue/55b9f0683f9c8bb9e12788626608da4c
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)