diff --git a/packages/amis-editor/src/plugin/CRUD.tsx b/packages/amis-editor/src/plugin/CRUD.tsx index 296e8774d..dd0549745 100644 --- a/packages/amis-editor/src/plugin/CRUD.tsx +++ b/packages/amis-editor/src/plugin/CRUD.tsx @@ -557,7 +557,7 @@ export class CRUDPlugin extends BasePlugin { visibleOn: 'data.api && data.api.url' }, - { + getSchemaTpl('combo-container', { label: '批量操作', name: 'bulkActions', type: 'combo', @@ -599,7 +599,7 @@ export class CRUDPlugin extends BasePlugin { ) } ] - }, + }), // getSchemaTpl('switch', { // name: 'defaultChecked', @@ -612,7 +612,7 @@ export class CRUDPlugin extends BasePlugin { type: 'divider' }, - { + getSchemaTpl('combo-container', { label: '单条操作', name: 'itemActions', type: 'combo', @@ -660,7 +660,7 @@ export class CRUDPlugin extends BasePlugin { ) } ] - }, + }), { type: 'divider', @@ -681,7 +681,7 @@ export class CRUDPlugin extends BasePlugin { } }), - { + getSchemaTpl('combo-container', { label: '默认参数', type: 'input-kv', name: 'defaultParams', @@ -692,7 +692,7 @@ export class CRUDPlugin extends BasePlugin { content: '可以用来设置默认参数,比如 perPage:20', placement: 'left' } - }, + }), { type: 'divider' @@ -1092,7 +1092,7 @@ export class CRUDPlugin extends BasePlugin { ] }, - { + getSchemaTpl('combo-container', { name: 'headerToolbar', type: 'combo', draggable: true, @@ -1266,9 +1266,9 @@ export class CRUDPlugin extends BasePlugin { // className: 'm-l-none' // } ] - }, + }), - { + getSchemaTpl('combo-container', { name: 'footerToolbar', type: 'combo', draggable: true, @@ -1444,7 +1444,7 @@ export class CRUDPlugin extends BasePlugin { className: 'm-l-none' } ] - }, + }), getSchemaTpl('switch', { name: 'filterTogglable', diff --git a/packages/amis-editor/src/plugin/Form/MatrixCheckboxes.tsx b/packages/amis-editor/src/plugin/Form/MatrixCheckboxes.tsx index 429ebc50f..cd9a0aada 100644 --- a/packages/amis-editor/src/plugin/Form/MatrixCheckboxes.tsx +++ b/packages/amis-editor/src/plugin/Form/MatrixCheckboxes.tsx @@ -10,10 +10,7 @@ import { } from 'amis-editor-core'; import {ValidatorTag} from '../../validator'; import {getEventControlConfig} from '../../renderer/event-control/helper'; -import { - RendererPluginAction, - RendererPluginEvent -} from 'amis-editor-core'; +import {RendererPluginAction, RendererPluginEvent} from 'amis-editor-core'; export class MatrixControlPlugin extends BasePlugin { // 关联渲染器名字 @@ -159,8 +156,9 @@ export class MatrixControlPlugin extends BasePlugin { title: '选项', body: [ [ - { + getSchemaTpl('combo-container', { label: '列配置', + mode: 'normal', name: 'columns', type: 'combo', multiple: true, @@ -175,16 +173,17 @@ export class MatrixControlPlugin extends BasePlugin { placeholder: '列说明' } ] - }, + }), { name: 'rowLabel', label: '行标题文字', type: 'input-text' }, - { + getSchemaTpl('combo-container', { label: '行配置', name: 'rows', type: 'combo', + mode: 'normal', multiple: true, scaffold: { label: '行说明' @@ -197,16 +196,12 @@ export class MatrixControlPlugin extends BasePlugin { placeholder: '行说明' } ] - } + }) ], getSchemaTpl('apiControl', { label: tipedLabel('接口', '获取矩阵数据接口'), name: 'source', - mode: 'horizontal', - horizontal: { - left: 4, - justify: true - } + mode: 'normal' }) // getSchemaTpl('value') ] diff --git a/packages/amis-editor/src/plugin/HBox.tsx b/packages/amis-editor/src/plugin/HBox.tsx index 95c48f870..909fa6e29 100644 --- a/packages/amis-editor/src/plugin/HBox.tsx +++ b/packages/amis-editor/src/plugin/HBox.tsx @@ -165,7 +165,7 @@ export class HBoxPlugin extends BasePlugin { ] }, - { + getSchemaTpl('combo-container', { name: 'columns', label: '列集合', type: 'combo', @@ -188,7 +188,7 @@ export class HBoxPlugin extends BasePlugin { label: '' }) ] - }, + }), getSchemaTpl('fieldSet', { title: '水平对齐', collapsable: false, diff --git a/packages/amis-editor/src/plugin/Progress.tsx b/packages/amis-editor/src/plugin/Progress.tsx index 0cb8256c2..5cc4b1a70 100644 --- a/packages/amis-editor/src/plugin/Progress.tsx +++ b/packages/amis-editor/src/plugin/Progress.tsx @@ -216,7 +216,7 @@ export class ProgressPlugin extends BasePlugin { form.setValueByName('stripe', value === 'stripe'); } }, - { + getSchemaTpl('combo-container', { name: 'map', type: 'combo', mode: 'normal', @@ -252,7 +252,7 @@ export class ProgressPlugin extends BasePlugin { pipeIn: (value: any) => { return Array.isArray(value) ? value : []; } - } + }) ] }, getSchemaTpl('style:classNames', { diff --git a/packages/amis-editor/src/plugin/Steps.tsx b/packages/amis-editor/src/plugin/Steps.tsx index d4edd8d6c..72c70b051 100644 --- a/packages/amis-editor/src/plugin/Steps.tsx +++ b/packages/amis-editor/src/plugin/Steps.tsx @@ -45,7 +45,7 @@ export class StepsPlugin extends BasePlugin { { title: '常规', body: [ - { + getSchemaTpl('combo-container', { name: 'steps', label: '步骤列表', type: 'combo', @@ -76,7 +76,7 @@ export class StepsPlugin extends BasePlugin { placeholder: '描述' } ] - }, + }), { name: 'value', type: 'input-text',