@steedos-widgets/amis-object 3.6.7-beta.1 → 3.6.7-beta.3
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/amis/AmisAppLauncher.d.ts +12 -0
- package/dist/amis/AmisSpaceUsersPicker.d.ts +1 -3
- package/dist/amis-object.cjs.js +20 -20
- package/dist/amis-object.cjs.js.map +1 -1
- package/dist/amis-object.esm.js +20 -20
- package/dist/amis-object.esm.js.map +1 -1
- package/dist/amis-object.umd.js +12 -12
- package/dist/amis-object.umd.js.map +1 -1
- package/dist/assets.json +21 -21
- package/package.json +3 -3
|
@@ -18,12 +18,24 @@ export declare const AmisAppLauncher: (props: any) => Promise<{
|
|
|
18
18
|
};
|
|
19
19
|
};
|
|
20
20
|
hiddenOn?: undefined;
|
|
21
|
+
icon?: undefined;
|
|
22
|
+
visibleOn?: undefined;
|
|
21
23
|
} | {
|
|
22
24
|
type: string;
|
|
23
25
|
className: string;
|
|
24
26
|
tpl: string;
|
|
25
27
|
hiddenOn: string;
|
|
26
28
|
badge?: undefined;
|
|
29
|
+
icon?: undefined;
|
|
30
|
+
visibleOn?: undefined;
|
|
31
|
+
} | {
|
|
32
|
+
type: string;
|
|
33
|
+
icon: string;
|
|
34
|
+
visibleOn: string;
|
|
35
|
+
className: string;
|
|
36
|
+
tpl?: undefined;
|
|
37
|
+
badge?: undefined;
|
|
38
|
+
hiddenOn?: undefined;
|
|
27
39
|
})[];
|
|
28
40
|
dialog: {
|
|
29
41
|
size: string;
|
package/dist/amis-object.cjs.js
CHANGED
|
@@ -5925,14 +5925,14 @@ async function getTableSchema$1(object, fields, options){
|
|
|
5925
5925
|
headerToolbarClassName: "py-2 px-2 border-gray-300 border-solid border-b",
|
|
5926
5926
|
className: "",
|
|
5927
5927
|
draggable: false,
|
|
5928
|
-
defaultParams: getDefaultParams$1(options),
|
|
5929
5928
|
card: card,
|
|
5930
5929
|
syncLocation: false,
|
|
5931
5930
|
keepItemSelectionOnPageChange: true,
|
|
5932
5931
|
checkOnItemClick: isLookup ? true : false,
|
|
5933
5932
|
labelTpl: `\${${options.labelFieldName}}`,
|
|
5934
5933
|
autoFillHeight: false, // 自动高度效果不理想,先关闭
|
|
5935
|
-
columnsTogglable: false
|
|
5934
|
+
columnsTogglable: false,
|
|
5935
|
+
...getDefaultParams$1(options) //不可以使用crud的defaultParams属性,会造成翻页bug,https://github.com/steedos/steedos-platform/issues/6576
|
|
5936
5936
|
}
|
|
5937
5937
|
}
|
|
5938
5938
|
|
|
@@ -5958,7 +5958,6 @@ async function getTableSchema$1(object, fields, options){
|
|
|
5958
5958
|
headerToolbarClassName: "py-2 px-2 border-gray-300 border-solid border-b",
|
|
5959
5959
|
className: "",
|
|
5960
5960
|
draggable: false,
|
|
5961
|
-
defaultParams: getDefaultParams$1(options),
|
|
5962
5961
|
columns: columns,
|
|
5963
5962
|
syncLocation: false,
|
|
5964
5963
|
keepItemSelectionOnPageChange: true,
|
|
@@ -5966,7 +5965,8 @@ async function getTableSchema$1(object, fields, options){
|
|
|
5966
5965
|
labelTpl: `\${${options.labelFieldName}}`,
|
|
5967
5966
|
autoFillHeight: false, // 自动高度效果不理想,先关闭
|
|
5968
5967
|
columnsTogglable: false,
|
|
5969
|
-
...treeConfig
|
|
5968
|
+
...treeConfig,
|
|
5969
|
+
...getDefaultParams$1(options) //不可以使用crud的defaultParams属性,会造成翻页bug,https://github.com/steedos/steedos-platform/issues/6576
|
|
5970
5970
|
}
|
|
5971
5971
|
}
|
|
5972
5972
|
|
|
@@ -7569,7 +7569,6 @@ async function getListSchema$1(fields, options){
|
|
|
7569
7569
|
name: "thelist",
|
|
7570
7570
|
draggable: false,
|
|
7571
7571
|
headerToolbar: ['reload'],
|
|
7572
|
-
defaultParams: getDefaultParams(options),
|
|
7573
7572
|
syncLocation: false,
|
|
7574
7573
|
keepItemSelectionOnPageChange: true,
|
|
7575
7574
|
checkOnItemClick: false,
|
|
@@ -7591,7 +7590,8 @@ async function getListSchema$1(fields, options){
|
|
|
7591
7590
|
})
|
|
7592
7591
|
}
|
|
7593
7592
|
]
|
|
7594
|
-
}
|
|
7593
|
+
},
|
|
7594
|
+
...getDefaultParams(options) //不可以使用crud的defaultParams属性,会造成翻页bug,https://github.com/steedos/steedos-platform/issues/6576
|
|
7595
7595
|
}
|
|
7596
7596
|
}
|
|
7597
7597
|
|
|
@@ -7612,7 +7612,6 @@ async function getCardSchema(fields, options){
|
|
|
7612
7612
|
name: "cards",
|
|
7613
7613
|
draggable: false,
|
|
7614
7614
|
headerToolbar: ['statistics', 'pagination'],
|
|
7615
|
-
defaultParams: getDefaultParams(options),
|
|
7616
7615
|
syncLocation: false,
|
|
7617
7616
|
keepItemSelectionOnPageChange: false,
|
|
7618
7617
|
checkOnItemClick: false,
|
|
@@ -7623,7 +7622,8 @@ async function getCardSchema(fields, options){
|
|
|
7623
7622
|
"title": title
|
|
7624
7623
|
},
|
|
7625
7624
|
"body": [...listBody.columns]
|
|
7626
|
-
}
|
|
7625
|
+
},
|
|
7626
|
+
...getDefaultParams(options)
|
|
7627
7627
|
}
|
|
7628
7628
|
}
|
|
7629
7629
|
|
|
@@ -13174,9 +13174,7 @@ async function getListSchema(
|
|
|
13174
13174
|
}
|
|
13175
13175
|
|
|
13176
13176
|
if(localListViewProps.perPage){
|
|
13177
|
-
listSchema.
|
|
13178
|
-
perPage: localListViewProps.perPage
|
|
13179
|
-
};
|
|
13177
|
+
listSchema.perPage = localListViewProps.perPage;
|
|
13180
13178
|
}
|
|
13181
13179
|
defaults.listSchema = _$1.defaultsDeep({}, listSchema, defaults.listSchema || {});
|
|
13182
13180
|
}
|
|
@@ -14336,6 +14334,7 @@ async function lookupToAmisPicker(field, readonly, ctx){
|
|
|
14336
14334
|
Object.assign({}, refObjectConfig.fields[column.field], {
|
|
14337
14335
|
width: column.width,
|
|
14338
14336
|
wrap: column.wrap,
|
|
14337
|
+
amis: column.amis
|
|
14339
14338
|
})
|
|
14340
14339
|
);
|
|
14341
14340
|
}
|
|
@@ -18507,9 +18506,7 @@ async function getSpaceUsersPickerAmisSchema(spaceUserSchema, name, options) {
|
|
|
18507
18506
|
"switch-per-page",
|
|
18508
18507
|
"pagination"
|
|
18509
18508
|
],
|
|
18510
|
-
"
|
|
18511
|
-
"perPage": 50
|
|
18512
|
-
},
|
|
18509
|
+
"perPage": 50,
|
|
18513
18510
|
"columns": [
|
|
18514
18511
|
{
|
|
18515
18512
|
"name": "_index",
|
|
@@ -22461,6 +22458,12 @@ var AmisAppLauncher = function (props) { return __awaiter(void 0, void 0, void 0
|
|
|
22461
22458
|
className: "text-xl ml-4 mr-4 text-black nowrap ".concat(appNameClassName, " "),
|
|
22462
22459
|
tpl: '${app.name}',
|
|
22463
22460
|
hiddenOn: "".concat(!!app || !!!showAppName)
|
|
22461
|
+
},
|
|
22462
|
+
{
|
|
22463
|
+
"type": "icon",
|
|
22464
|
+
"icon": "angle-down",
|
|
22465
|
+
"visibleOn": "".concat(isMobile),
|
|
22466
|
+
"className": "absolute right-0"
|
|
22464
22467
|
}
|
|
22465
22468
|
],
|
|
22466
22469
|
"dialog": {
|
|
@@ -22602,7 +22605,7 @@ var AmisGlobalFooter = function (props) { return __awaiter(void 0, void 0, void
|
|
|
22602
22605
|
* @Author: baozhoutao@steedos.com
|
|
22603
22606
|
* @Date: 2022-09-01 14:44:57
|
|
22604
22607
|
* @LastEditors: baozhoutao@steedos.com
|
|
22605
|
-
* @LastEditTime: 2024-
|
|
22608
|
+
* @LastEditTime: 2024-03-19 15:55:42
|
|
22606
22609
|
* @Description:
|
|
22607
22610
|
*/
|
|
22608
22611
|
var AmisGlobalHeaderToolbar = function (props) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -22845,12 +22848,9 @@ var AmisGlobalHeaderToolbar = function (props) { return __awaiter(void 0, void 0
|
|
|
22845
22848
|
"actionType": "ajax"
|
|
22846
22849
|
},
|
|
22847
22850
|
{
|
|
22848
|
-
"
|
|
22849
|
-
|
|
22850
|
-
"blank": true
|
|
22851
|
-
},
|
|
22851
|
+
"actionType": "custom",
|
|
22852
|
+
"script": "if(Meteor.isCordova){window.open(Meteor.absoluteUrl(event.data.responseResult.responseData.redirect), '_blank')}else{window.open(event.data.responseResult.responseData.redirect, '_blank')}",
|
|
22852
22853
|
"expression": "${!!event.data.responseResult.responseData.redirect}",
|
|
22853
|
-
"actionType": "url"
|
|
22854
22854
|
}
|
|
22855
22855
|
]
|
|
22856
22856
|
}
|