@steedos-widgets/amis-lib 1.2.6-beta.10 → 1.2.6-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.
- package/dist/cjs/tsconfig.tsbuildinfo +1 -1
- package/dist/index.cjs.js +9 -7
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +9 -7
- package/dist/index.esm.js.map +1 -1
- package/dist/index.umd.js +9 -7
- package/dist/index.umd.js.map +1 -1
- package/dist/types/schema/standard_new.amis.d.ts +1 -0
- package/dist/types/standard/button.d.ts +1 -0
- package/package.json +2 -2
package/dist/index.esm.js
CHANGED
|
@@ -1368,8 +1368,8 @@ var config = {
|
|
|
1368
1368
|
/*
|
|
1369
1369
|
* @Author: baozhoutao@steedos.com
|
|
1370
1370
|
* @Date: 2022-11-01 15:51:00
|
|
1371
|
-
* @LastEditors:
|
|
1372
|
-
* @LastEditTime: 2023-04-
|
|
1371
|
+
* @LastEditors: Please set LastEditors
|
|
1372
|
+
* @LastEditTime: 2023-04-26 11:52:04
|
|
1373
1373
|
* @Description:
|
|
1374
1374
|
*/
|
|
1375
1375
|
|
|
@@ -1461,7 +1461,8 @@ const getSchema$4 = async (uiSchema, ctx) => {
|
|
|
1461
1461
|
"schemaApi": {
|
|
1462
1462
|
"data": {
|
|
1463
1463
|
"isLookup": "${isLookup}",
|
|
1464
|
-
"_master": "${_master}"
|
|
1464
|
+
"_master": "${_master}",
|
|
1465
|
+
"url": "${context.rootUrl}/api/pageSchema/form?app=${appId}&objectApiName=${objectName}&formFactor=${formFactor}"
|
|
1465
1466
|
},
|
|
1466
1467
|
"url": "${context.rootUrl}/api/pageSchema/form?app=${appId}&objectApiName=${objectName}&formFactor=${formFactor}",
|
|
1467
1468
|
"method": "get",
|
|
@@ -1470,7 +1471,7 @@ const getSchema$4 = async (uiSchema, ctx) => {
|
|
|
1470
1471
|
"headers": {
|
|
1471
1472
|
"Authorization": "Bearer ${context.tenantId},${context.authToken}"
|
|
1472
1473
|
},
|
|
1473
|
-
"requestAdaptor": "",
|
|
1474
|
+
"requestAdaptor": "return { ...api, url: api.body.url }",
|
|
1474
1475
|
"adaptor": schemaApiAdaptor
|
|
1475
1476
|
}
|
|
1476
1477
|
}
|
|
@@ -3313,8 +3314,8 @@ const getDisplayAsButton = function(objectName, showDisplayAs){
|
|
|
3313
3314
|
"icon": "fa fa-table-columns",
|
|
3314
3315
|
"btnClassName": "antd-Button--iconOnly bg-white p-2 rounded border-gray-300 text-gray-500",
|
|
3315
3316
|
"align": "right",
|
|
3316
|
-
"visibleOn": "${
|
|
3317
|
-
"buttons": [
|
|
3317
|
+
"visibleOn": "${window:innerWidth > 768}",
|
|
3318
|
+
"buttons": [
|
|
3318
3319
|
{
|
|
3319
3320
|
"label": "显示为",
|
|
3320
3321
|
"children": buttons
|
|
@@ -3411,6 +3412,7 @@ function getObjectHeaderToolbar(mainObject, formFactor, {showDisplayAs = false,
|
|
|
3411
3412
|
`;
|
|
3412
3413
|
return [
|
|
3413
3414
|
// "bulkActions",
|
|
3415
|
+
...(headerToolbarItems || []),
|
|
3414
3416
|
hiddenCount ? {} :{
|
|
3415
3417
|
"type": "tpl",
|
|
3416
3418
|
"tpl": "${count} 个项目"
|
|
@@ -5633,7 +5635,7 @@ async function convertSFieldToAmisField(field, readonly, ctx) {
|
|
|
5633
5635
|
convertData = {
|
|
5634
5636
|
type: "editor",
|
|
5635
5637
|
language: field.language,
|
|
5636
|
-
|
|
5638
|
+
editorDidMount: new Function('editor', 'monaco', field.editorDidMount)
|
|
5637
5639
|
};
|
|
5638
5640
|
break;
|
|
5639
5641
|
case 'toggle':
|