mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-15 17:31:18 +08:00
事件动作面板适配多主题 amis-saas-6135
Change-Id: I86ed8983ede31c469c5c6b3b360db498bd08b97b
This commit is contained in:
parent
d839f07403
commit
fe853e86e6
@ -77,6 +77,7 @@ export default class ActionDialog extends React.Component<ActionDialogProp> {
|
||||
labelField: 'actionLabel',
|
||||
valueField: 'actionType',
|
||||
inputClassName: 'no-border action-tree-control',
|
||||
placeholder: '未匹配到数据',
|
||||
onChange: (value: string, oldVal: any, data: any, form: any) => {
|
||||
// 因为不知道动作都有哪些字段,这里只保留基础配置
|
||||
let removeKeys: {
|
||||
@ -163,11 +164,12 @@ export default class ActionDialog extends React.Component<ActionDialogProp> {
|
||||
title: '动作配置',
|
||||
headerClassName: 'font-bold',
|
||||
className: 'action-config-dialog',
|
||||
bodyClassName: "action-config-dialog-body",
|
||||
closeOnEsc: true,
|
||||
closeOnOutside: false,
|
||||
show,
|
||||
showCloseButton: true,
|
||||
size: 'lg',
|
||||
size: "md",
|
||||
body: [
|
||||
{
|
||||
type: 'form',
|
||||
@ -200,6 +202,7 @@ export default class ActionDialog extends React.Component<ActionDialogProp> {
|
||||
type: 'input-text',
|
||||
name: '__keywords',
|
||||
className: 'action-tree-search',
|
||||
inputClassName: 'action-tree-search-input',
|
||||
placeholder: '请搜索执行动作',
|
||||
clearable: true,
|
||||
onChange: (
|
||||
|
@ -161,6 +161,7 @@ const ACTION_TYPE_TREE = (manager: any): RendererPluginAction[] => {
|
||||
value: 'dialog',
|
||||
required: true,
|
||||
pipeIn: defaultValue('dialog'),
|
||||
inputClassName: 'event-action-radio',
|
||||
options: [
|
||||
{
|
||||
label: '弹窗',
|
||||
@ -248,6 +249,7 @@ const ACTION_TYPE_TREE = (manager: any): RendererPluginAction[] => {
|
||||
value: 'closeDialog',
|
||||
required: true,
|
||||
pipeIn: defaultValue('closeDialog'),
|
||||
inputClassName: 'event-action-radio',
|
||||
options: [
|
||||
{
|
||||
label: '弹窗',
|
||||
@ -570,6 +572,7 @@ const ACTION_TYPE_TREE = (manager: any): RendererPluginAction[] => {
|
||||
value: 'show',
|
||||
required: true,
|
||||
pipeIn: defaultValue('show'),
|
||||
inputClassName: 'event-action-radio',
|
||||
options: [
|
||||
{
|
||||
label: '显示',
|
||||
@ -625,6 +628,7 @@ const ACTION_TYPE_TREE = (manager: any): RendererPluginAction[] => {
|
||||
label: '启用/禁用',
|
||||
name: 'groupType',
|
||||
mode: 'horizontal',
|
||||
inputClassName: 'event-action-radio',
|
||||
value: 'enabled',
|
||||
required: true,
|
||||
pipeIn: defaultValue('enabled'),
|
||||
@ -692,6 +696,7 @@ const ACTION_TYPE_TREE = (manager: any): RendererPluginAction[] => {
|
||||
type: 'radios',
|
||||
required: true,
|
||||
name: '__comboType',
|
||||
inputClassName: 'event-action-radio',
|
||||
mode: 'horizontal',
|
||||
label: '赋值方式',
|
||||
visibleOn: `data.__rendererName && __rendererName === 'combo'`,
|
||||
|
Loading…
Reference in New Issue
Block a user