@steedos/service-plugin-amis 2.3.2-beta.11 → 2.3.2-beta.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -410,9 +410,19 @@
410
410
  "tpl": null,
411
411
  "className": "m-0",
412
412
  "labelClassName": "text-left",
413
- "option": "启用",
413
+ "option": "使用 amis自定义列表",
414
414
  "en-US": {
415
- "option": "Enable"
415
+ "option": "Enable amis_schema"
416
+ },
417
+ "onEvent": {
418
+ "change": {
419
+ "actions": [
420
+ {
421
+ "actionType": "custom",
422
+ "script": "const { object_name, name: listName, enable_amis_schema, amis_schema} = context.props.data;\nwindow.BuilderAmisObject?.AmisLib.getListviewInitSchema(object_name, listName).then(function (result) {\n if (!enable_amis_schema && !amis_schema) {\n doAction({\n actionType: 'setValue',\n componentId: 'listview_form',\n args: {\n value: { amis_schema: result }\n },\n });\n }\n});\n\n\n\n\n\n\n"
423
+ }
424
+ ]
425
+ }
416
426
  }
417
427
  },
418
428
  {
@@ -422,7 +432,9 @@
422
432
  "required": false,
423
433
  "language": "json",
424
434
  "className": "col-span-2 m-1",
425
- "labelClassName": "text-left"
435
+ "labelClassName": "text-left",
436
+ "clearValueOnHidden": false,
437
+ "hidden": true
426
438
  }
427
439
  ],
428
440
  "collapsed": true,
@@ -438,7 +450,7 @@
438
450
  "actionsClassName": "p-sm b-t b-light text-center",
439
451
  "className": "steedos-amis-form",
440
452
  "language": "javascript",
441
- "id": "u:d951542bb161"
453
+ "id": "listview_form"
442
454
  }
443
455
  ],
444
456
  "regions": [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@steedos/service-plugin-amis",
3
- "version": "2.3.2-beta.11",
3
+ "version": "2.3.2-beta.12",
4
4
  "main": "package.service.js",
5
5
  "scripts": {
6
6
  "build": "node .scripts/build.tailwind.js"
@@ -11,7 +11,7 @@
11
11
  "access": "public"
12
12
  },
13
13
  "dependencies": {
14
- "@steedos-widgets/amis-lib": "^0.0.10"
14
+ "@steedos-widgets/amis-lib": "^0.0.11"
15
15
  },
16
- "gitHead": "d12ce4f403be88d8cce5e7d0de8892c9b92b3899"
16
+ "gitHead": "f738241842b61c66eae2b1fe7bf5c0bfb66348d6"
17
17
  }