2

I've created a custom component but the problem is that when I preview or export that component the image aren't exported

{
 /* ... */
  "attributes": [
   {
    "name": "bkgmap",
    "label": "bkgmap",
    "type": "string",
    "required": true,
    "description": "desc",
    "gwdSpecific": {
      "label": "bkgmapImg",
      "sync":   "src"
    }
   },
   {
    "name": "bkgback",
    "label": "bkgback",
    "type": "string",
    "required": true,
    "description": "desc",
    "gwdSpecific": {
      "label": "bkgbackImg",
      "sync":   "src"
    }
   },
   {
    "name": "bkgfore",
    "label": "bkgfore",
    "type": "string",
    "required": true,
    "description": "desc",
    "gwdSpecific": {
      "label": "bkgforeImg",
      "sync":   "src"
    }
   },
   {
    "name": "bar",
    "label": "bar",
    "type": "string",
    "required": true,
    "description": "desc",
    "gwdSpecific": {
      "label": "barImg",
      "sync":   "src"
    }
   } /* ... */    
  ],

}

In this way, with the sync property I'm able to export only one image, someone know how is it possible to achieve the image inclusion? And also someone know how to set up a file upload type? the attributes type "file" works but isn't possibile to select any file, also if I specify the accept property.

4

1 回答 1

1
{
      "name": "dragIcon",
      "label": "Drag Icon",
      "type": "file",
      "description": "Choose the images",
      "required": true,
      "accept": "image/*",
      "bindable": false
    },
于 2020-11-11T08:14:16.927 回答