mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-16 01:40:53 +08:00
amis-saas-5329 [Feature] 「feat」服务调用配置升级
Change-Id: Ic26cd7da98be4ada9a0433b7b3d5a8943c47f6bd
This commit is contained in:
parent
1011cee9cc
commit
7b560b917a
@ -739,7 +739,7 @@ export class CRUDPlugin extends BasePlugin {
|
||||
{
|
||||
title: '接口',
|
||||
body: [
|
||||
getSchemaTpl('api', {
|
||||
getSchemaTpl('apiControl', {
|
||||
label: '数据拉取接口',
|
||||
sampleBuilder: () => {
|
||||
const data: any = {
|
||||
@ -865,7 +865,7 @@ export class CRUDPlugin extends BasePlugin {
|
||||
label: '是否可拖拽排序'
|
||||
}),
|
||||
|
||||
getSchemaTpl('api', {
|
||||
getSchemaTpl('apiControl', {
|
||||
label: '顺序保存接口',
|
||||
name: 'saveOrderApi',
|
||||
visibleOn: 'data.draggable'
|
||||
@ -875,7 +875,7 @@ export class CRUDPlugin extends BasePlugin {
|
||||
type: 'divider'
|
||||
},
|
||||
|
||||
getSchemaTpl('api', {
|
||||
getSchemaTpl('apiControl', {
|
||||
label: '快速保存接口',
|
||||
name: 'quickSaveApi',
|
||||
description:
|
||||
@ -886,7 +886,7 @@ export class CRUDPlugin extends BasePlugin {
|
||||
type: 'divider'
|
||||
},
|
||||
|
||||
getSchemaTpl('api', {
|
||||
getSchemaTpl('apiControl', {
|
||||
label: '快速保存单条接口',
|
||||
name: 'quickSaveItemApi',
|
||||
description:
|
||||
|
@ -23,7 +23,7 @@ import {
|
||||
import CmptActionSelect from './comp-action-select';
|
||||
import {Button} from 'amis';
|
||||
import ACTION_TYPE_TREE from './actions';
|
||||
import { stores } from 'amis-core/lib/factory';
|
||||
import {stores} from 'amis-core/lib/factory';
|
||||
|
||||
// 数据容器范围
|
||||
export const DATA_CONTAINER = [
|
||||
@ -135,12 +135,13 @@ export const SUPPORT_DISABLED_CMPTS = [
|
||||
// 'card2'
|
||||
];
|
||||
|
||||
export const getArgsWrapper = (items: any, multiple: boolean = false) => ({
|
||||
export const getArgsWrapper = (items: any, patch = {}) => ({
|
||||
type: 'combo',
|
||||
name: 'args',
|
||||
// label: '动作参数',
|
||||
multiple,
|
||||
multiple: false,
|
||||
strictMode: false,
|
||||
...patch,
|
||||
items: Array.isArray(items) ? items : [items]
|
||||
});
|
||||
|
||||
@ -1008,7 +1009,7 @@ export const getEventControlConfig = (
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
};
|
||||
return {
|
||||
showOldEntry:
|
||||
!!context.schema.actionType ||
|
||||
@ -1036,7 +1037,7 @@ export const getEventControlConfig = (
|
||||
let components = allComponents;
|
||||
if (isSubEditor) {
|
||||
let superTree = manager.store.getSuperEditorData;
|
||||
while(superTree) {
|
||||
while (superTree) {
|
||||
if (superTree.__superCmptTreeSource) {
|
||||
components = components.concat(superTree.__superCmptTreeSource);
|
||||
}
|
||||
@ -1045,7 +1046,7 @@ export const getEventControlConfig = (
|
||||
}
|
||||
const result = filterTree(
|
||||
components,
|
||||
(node) => checkComponent(node, action),
|
||||
node => checkComponent(node, action),
|
||||
1,
|
||||
true
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user