Uploaded image for project: 'Weex (Retired)'
  1. Weex (Retired)
  2. WEEX-62

image Component can save image to photo Album or sd card

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • None
    • None

    Description

      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

      Attachments

        Activity

          People

            acton393 Xing Zhang
            acton393 Xing Zhang
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: