amis-saas-5329 [Feature] 「feat」服务调用配置升级

Change-Id: I7a95383e444a71ed64805615b9348d37e326d286
This commit is contained in:
RickCole21 2022-08-05 18:27:13 +08:00
parent 7b560b917a
commit 138f980b9c

View File

@ -135,11 +135,15 @@ export const SUPPORT_DISABLED_CMPTS = [
// 'card2'
];
export const getArgsWrapper = (items: any, patch = {}) => ({
export const getArgsWrapper = (
items: any,
multiple: boolean = false,
patch = {}
) => ({
type: 'combo',
name: 'args',
// label: '动作参数',
multiple: false,
multiple,
strictMode: false,
...patch,
items: Array.isArray(items) ? items : [items]