mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-15 17:31:18 +08:00
优化提示 amis-saas-8098
Change-Id: I2ac257a3f0b2dbf2946020a646b2796ce5f69692
This commit is contained in:
parent
f1cc039081
commit
e4832f9adf
@ -2,13 +2,14 @@
|
||||
* 动作配置面板
|
||||
*/
|
||||
|
||||
import {PluginActions, RendererPluginAction} from 'amis-editor-core';
|
||||
import {PluginActions, RendererPluginAction, tipedLabel} from 'amis-editor-core';
|
||||
import React from 'react';
|
||||
import {ActionConfig, ComponentInfo} from './types';
|
||||
import ActionConfigPanel from './action-config-panel';
|
||||
import {BASE_ACTION_PROPS} from './comp-action-select';
|
||||
import {findActionNode} from './helper';
|
||||
import {PlainObject, SchemaNode} from 'amis-core';
|
||||
import {getSchemaTpl} from 'amis-model-design';
|
||||
|
||||
interface ActionDialogProp {
|
||||
show: boolean;
|
||||
@ -282,15 +283,13 @@ export default class ActionDialog extends React.Component<ActionDialogProp> {
|
||||
},
|
||||
// {
|
||||
// name: 'stopPropagation',
|
||||
// label: '阻断条件',
|
||||
// label: tipedLabel('阻断条件', '满足条件时,将会阻断当前事件的后续动作的执行'),
|
||||
// type: 'ae-expressionFormulaControl',
|
||||
// evalMode: true,
|
||||
// variables: '${variables}',
|
||||
// mode: 'horizontal',
|
||||
// size: 'lg',
|
||||
// visibleOn: 'data.actionType',
|
||||
// description:
|
||||
// '满足条件时,将会阻断当前事件的后续动作的执行'
|
||||
// visibleOn: 'data.actionType'
|
||||
// },
|
||||
{
|
||||
name: 'expression',
|
||||
|
@ -2,8 +2,10 @@ import {Button} from 'amis';
|
||||
import {
|
||||
defaultValue,
|
||||
getSchemaTpl,
|
||||
RendererPluginAction
|
||||
RendererPluginAction,
|
||||
tipedLabel
|
||||
} from 'amis-editor-core';
|
||||
|
||||
import React from 'react';
|
||||
import {normalizeApi} from 'amis-core';
|
||||
import {
|
||||
@ -511,24 +513,17 @@ const ACTION_TYPE_TREE = (manager: any): RendererPluginAction[] => {
|
||||
{
|
||||
name: 'options',
|
||||
type: 'combo',
|
||||
label: false,
|
||||
label: tipedLabel('静默请求', '开启后,服务请求将以静默模式发送,即不会弹出成功或报错提示。'),
|
||||
mode: 'horizontal',
|
||||
items: [
|
||||
{
|
||||
type: 'checkbox',
|
||||
type: 'switch',
|
||||
name: 'silent',
|
||||
option: '静默模式',
|
||||
mode: 'inline',
|
||||
className: 'm-r-none',
|
||||
value: false,
|
||||
remark: {
|
||||
className: 'ae-BaseRemark',
|
||||
icon: 'fa fa-question-circle',
|
||||
shape: 'circle',
|
||||
placement: 'left',
|
||||
content:
|
||||
'勾选后,服务请求将以静默模式发送,即不会弹出成功或报错提示。'
|
||||
}
|
||||
label: false,
|
||||
onText: '开启',
|
||||
offText: '关闭',
|
||||
mode: 'horizontal',
|
||||
pipeIn: defaultValue(false)
|
||||
}
|
||||
]
|
||||
}
|
||||
@ -737,7 +732,7 @@ const ACTION_TYPE_TREE = (manager: any): RendererPluginAction[] => {
|
||||
descDetail: (info: any) => {
|
||||
return (
|
||||
<div>
|
||||
<span className="variable-left variable-right">
|
||||
<span className="variable-right">
|
||||
{info?.rendererLabel}
|
||||
</span>
|
||||
组件切换为静态
|
||||
@ -750,7 +745,7 @@ const ACTION_TYPE_TREE = (manager: any): RendererPluginAction[] => {
|
||||
descDetail: (info: any) => {
|
||||
return (
|
||||
<div>
|
||||
<span className="variable-left variable-right">
|
||||
<span className="variable-right">
|
||||
{info?.rendererLabel}
|
||||
</span>
|
||||
组件切换为输入态
|
||||
@ -815,14 +810,7 @@ const ACTION_TYPE_TREE = (manager: any): RendererPluginAction[] => {
|
||||
{
|
||||
type: 'switch',
|
||||
name: '__resetPage',
|
||||
label: '重置页码',
|
||||
labelRemark: {
|
||||
className: 'm-l-xs',
|
||||
icon: 'fa fa-question-circle',
|
||||
rootClose: true,
|
||||
content: '选择“是”时,将重新请求第一页数据。',
|
||||
placement: 'top'
|
||||
},
|
||||
label: tipedLabel('重置页码', '选择“是”时,将重新请求第一页数据。'),
|
||||
onText: '是',
|
||||
offText: '否',
|
||||
mode: 'horizontal',
|
||||
@ -832,14 +820,7 @@ const ACTION_TYPE_TREE = (manager: any): RendererPluginAction[] => {
|
||||
{
|
||||
type: 'switch',
|
||||
name: '__addParam',
|
||||
label: '追加数据',
|
||||
labelRemark: {
|
||||
className: 'm-l-xs',
|
||||
icon: 'fa fa-question-circle',
|
||||
rootClose: true,
|
||||
content: `当选择“是”,且目标组件是增删改查组件时,数据接口请求时将带上这些数据,其他类型的目标组件只有在数据接口是post请求时才会带上这些数据。`,
|
||||
placement: 'top'
|
||||
},
|
||||
label: tipedLabel('追加数据', '当选择“是”,且目标组件是增删改查组件时,数据接口请求时将带上这些数据,其他类型的目标组件只有在数据接口是post请求时才会带上这些数据。'),
|
||||
onText: '是',
|
||||
offText: '否',
|
||||
mode: 'horizontal',
|
||||
@ -849,14 +830,7 @@ const ACTION_TYPE_TREE = (manager: any): RendererPluginAction[] => {
|
||||
{
|
||||
type: 'switch',
|
||||
name: '__customData',
|
||||
label: '自定义数据',
|
||||
labelRemark: {
|
||||
className: 'm-l-xs',
|
||||
icon: 'fa fa-question-circle',
|
||||
rootClose: true,
|
||||
content: `数据默认为源组件所在数据域,开启“自定义”可以定制所需数据`,
|
||||
placement: 'top'
|
||||
},
|
||||
label: tipedLabel('自定义数据', '数据默认为源组件所在数据域,开启“自定义”可以定制所需数据'),
|
||||
onText: '是',
|
||||
offText: '否',
|
||||
mode: 'horizontal',
|
||||
@ -957,14 +931,7 @@ const ACTION_TYPE_TREE = (manager: any): RendererPluginAction[] => {
|
||||
type: 'radios',
|
||||
name: 'dataMergeMode',
|
||||
mode: 'horizontal',
|
||||
label: '追加方式',
|
||||
labelRemark: {
|
||||
className: 'm-l-xs',
|
||||
icon: 'fa fa-question-circle',
|
||||
rootClose: true,
|
||||
content: `选择“合并”时,会将数据合并到目标组件的数据域。<br/>选择“覆盖”时,数据会直接覆盖目标组件的数据域。`,
|
||||
placement: 'top'
|
||||
},
|
||||
label: tipedLabel('追加方式', '选择“合并”时,会将数据合并到目标组件的数据域。<br/>选择“覆盖”时,数据会直接覆盖目标组件的数据域。'),
|
||||
pipeIn: defaultValue('merge'),
|
||||
visibleOn: `data.__addParam && data.actionType === "reload" && ${IS_DATA_CONTAINER}`,
|
||||
options: [
|
||||
|
Loading…
Reference in New Issue
Block a user