@steedos-widgets/amis-lib 1.1.1 → 1.1.3-beta.10
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 +38 -7
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +38 -7
- package/dist/index.esm.js.map +1 -1
- package/dist/index.umd.js +38 -7
- package/dist/index.umd.js.map +1 -1
- package/dist/types/schema/standard_delete.amis.d.ts +14 -0
- package/dist/types/schema/standard_new.amis.d.ts +1 -0
- package/dist/types/standard/button.d.ts +15 -0
- package/package.json +2 -2
package/dist/index.esm.js
CHANGED
|
@@ -1363,8 +1363,8 @@ var config = {
|
|
|
1363
1363
|
/*
|
|
1364
1364
|
* @Author: baozhoutao@steedos.com
|
|
1365
1365
|
* @Date: 2022-11-01 15:51:00
|
|
1366
|
-
* @LastEditors:
|
|
1367
|
-
* @LastEditTime: 2023-03-
|
|
1366
|
+
* @LastEditors: 殷亮辉 yinlianghui@hotoa.com
|
|
1367
|
+
* @LastEditTime: 2023-03-27 15:42:24
|
|
1368
1368
|
* @Description:
|
|
1369
1369
|
*/
|
|
1370
1370
|
|
|
@@ -1404,6 +1404,7 @@ const getSchema$4 = async (uiSchema, ctx) => {
|
|
|
1404
1404
|
"type": "dialog",
|
|
1405
1405
|
"data": {
|
|
1406
1406
|
"$master": "$$",
|
|
1407
|
+
"_master": "${_master}",
|
|
1407
1408
|
"defaultData": "${defaultData}",
|
|
1408
1409
|
"appId": "${appId}",
|
|
1409
1410
|
"objectName": "${objectName}",
|
|
@@ -1475,8 +1476,8 @@ async function getPage({type, pageId = '', appId, objectName = '', recordId = ''
|
|
|
1475
1476
|
/*
|
|
1476
1477
|
* @Author: baozhoutao@steedos.com
|
|
1477
1478
|
* @Date: 2022-11-01 15:49:58
|
|
1478
|
-
* @LastEditors:
|
|
1479
|
-
* @LastEditTime:
|
|
1479
|
+
* @LastEditors: 殷亮辉 yinlianghui@hotoa.com
|
|
1480
|
+
* @LastEditTime: 2023-03-27 11:36:49
|
|
1480
1481
|
* @Description:
|
|
1481
1482
|
*/
|
|
1482
1483
|
|
|
@@ -1542,6 +1543,12 @@ const getSchema$3 = async (uiSchema, ctx) => {
|
|
|
1542
1543
|
};
|
|
1543
1544
|
};
|
|
1544
1545
|
|
|
1546
|
+
/*
|
|
1547
|
+
* @Author: 殷亮辉 yinlianghui@hotoa.com
|
|
1548
|
+
* @Date: 2023-03-22 09:31:21
|
|
1549
|
+
* @LastEditors: 殷亮辉 yinlianghui@hotoa.com
|
|
1550
|
+
* @LastEditTime: 2023-03-27 16:03:34
|
|
1551
|
+
*/
|
|
1545
1552
|
const getSchema$2 = (uiSchema)=>{
|
|
1546
1553
|
return {
|
|
1547
1554
|
"type": "service",
|
|
@@ -1592,6 +1599,16 @@ const getSchema$2 = (uiSchema)=>{
|
|
|
1592
1599
|
"objectName": `${uiSchema.name}`,
|
|
1593
1600
|
"__deletedRecord": true
|
|
1594
1601
|
}
|
|
1602
|
+
},
|
|
1603
|
+
{
|
|
1604
|
+
"actionType": "broadcast",
|
|
1605
|
+
"args": {
|
|
1606
|
+
"eventName": "@data.changed.${_master.objectName}"
|
|
1607
|
+
},
|
|
1608
|
+
"data": {
|
|
1609
|
+
"objectName": "${_master.objectName}"
|
|
1610
|
+
},
|
|
1611
|
+
"expression": "${_master.objectName}"
|
|
1595
1612
|
}
|
|
1596
1613
|
]
|
|
1597
1614
|
}
|
|
@@ -3941,9 +3958,13 @@ async function lookupToAmisPicker(field, readonly, ctx){
|
|
|
3941
3958
|
`;
|
|
3942
3959
|
source.adaptor = `
|
|
3943
3960
|
const enable_tree = ${refObjectConfig.enable_tree};
|
|
3944
|
-
const
|
|
3945
|
-
if(!_.isEmpty(
|
|
3946
|
-
//
|
|
3961
|
+
const op = api.data.$self.op;
|
|
3962
|
+
if(!_.isEmpty(op)){
|
|
3963
|
+
// op不为空,表示处于字段初始编辑状态,不是点击后出现弹窗状态。
|
|
3964
|
+
const rows = _.map(payload.data.rows, (item)=>{
|
|
3965
|
+
return _.pick(item, ["${referenceTo.labelField.name}", "${referenceTo.valueField.name}"]);
|
|
3966
|
+
})
|
|
3967
|
+
payload.data.rows = rows;
|
|
3947
3968
|
return payload;
|
|
3948
3969
|
}
|
|
3949
3970
|
if(enable_tree){
|
|
@@ -5822,6 +5843,16 @@ async function getObjectForm(objectSchema, ctx){
|
|
|
5822
5843
|
"data": {
|
|
5823
5844
|
"objectName": `${objectSchema.name}`
|
|
5824
5845
|
}
|
|
5846
|
+
},
|
|
5847
|
+
{
|
|
5848
|
+
"actionType": "broadcast",
|
|
5849
|
+
"args": {
|
|
5850
|
+
"eventName": "@data.changed.${_master.objectName}"
|
|
5851
|
+
},
|
|
5852
|
+
"data": {
|
|
5853
|
+
"objectName": "${_master.objectName}"
|
|
5854
|
+
},
|
|
5855
|
+
"expression": "${_master.objectName}"
|
|
5825
5856
|
}
|
|
5826
5857
|
]
|
|
5827
5858
|
}
|