mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-01 03:28:20 +08:00
amis-saas-7372 「调整组件布局切换select」调整切换button-group-select切换为 select
Change-Id: Iea605bb802c800b1bff0e2a736a2d8320704f7df
This commit is contained in:
parent
d317685a3f
commit
563736b2c7
@ -81,13 +81,7 @@ setSchemaTpl(
|
|||||||
}) => ({
|
}) => ({
|
||||||
label: '布局',
|
label: '布局',
|
||||||
name: 'mode',
|
name: 'mode',
|
||||||
type: 'button-group-select',
|
type: 'select',
|
||||||
option: '继承',
|
|
||||||
horizontal: {
|
|
||||||
left: 2,
|
|
||||||
justify: true
|
|
||||||
},
|
|
||||||
// className: 'w-full',
|
|
||||||
pipeIn: defaultValue(''),
|
pipeIn: defaultValue(''),
|
||||||
options: [
|
options: [
|
||||||
{
|
{
|
||||||
@ -215,7 +209,7 @@ setSchemaTpl(
|
|||||||
type: 'tabs',
|
type: 'tabs',
|
||||||
tabsMode: 'line', // tiled
|
tabsMode: 'line', // tiled
|
||||||
className: 'editor-prop-config-tabs',
|
className: 'editor-prop-config-tabs',
|
||||||
linksClassName: 'editor-prop-config-tabs-links',
|
linksClassName: 'editor-prop-config-tabs-links aa',
|
||||||
contentClassName:
|
contentClassName:
|
||||||
'no-border editor-prop-config-tabs-cont hoverShowScrollBar',
|
'no-border editor-prop-config-tabs-cont hoverShowScrollBar',
|
||||||
tabs: config
|
tabs: config
|
||||||
@ -592,12 +586,17 @@ setSchemaTpl('className', (schema: any) => {
|
|||||||
*/
|
*/
|
||||||
setSchemaTpl('combo-container', (config: SchemaObject) => {
|
setSchemaTpl('combo-container', (config: SchemaObject) => {
|
||||||
if (isObject(config)) {
|
if (isObject(config)) {
|
||||||
const itemsWrapperClassName =
|
let itemsWrapperClassName;
|
||||||
['input-kv', 'combo'].includes((config as any).type) &&
|
let itemClassName;
|
||||||
'ae-Combo-items ' + ((config as any).itemsWrapperClassName ?? '');
|
if (['input-kv', 'combo'].includes((config as any).type)) {
|
||||||
|
itemsWrapperClassName =
|
||||||
|
'ae-Combo-items ' + ((config as any).itemsWrapperClassName ?? '');
|
||||||
|
itemClassName = 'ae-Combo-item ' + ((config as any).itemClassName ?? '');
|
||||||
|
}
|
||||||
return {
|
return {
|
||||||
...(config as any),
|
...(config as any),
|
||||||
...(itemsWrapperClassName ? {itemsWrapperClassName} : {})
|
...(itemsWrapperClassName ? {itemsWrapperClassName} : {}),
|
||||||
|
...(itemClassName ? {itemClassName} : {})
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
return config;
|
return config;
|
||||||
@ -686,15 +685,15 @@ setSchemaTpl('visible', {
|
|||||||
expressionName: 'visibleOn'
|
expressionName: 'visibleOn'
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
// 新版配置面板兼容 [可见] 状态
|
// 新版配置面板兼容 [可见] 状态
|
||||||
setSchemaTpl('newVisible', {
|
setSchemaTpl('newVisible', {
|
||||||
type: 'ae-StatusControl',
|
type: 'ae-StatusControl',
|
||||||
label: '可见',
|
label: '可见',
|
||||||
mode: 'normal',
|
mode: 'normal',
|
||||||
name: 'visible',
|
name: 'visible',
|
||||||
expressionName: 'visibleOn',
|
expressionName: 'visibleOn',
|
||||||
visibleOn:"data.visible || data.visible === false || data.visibleOn !== undefined"
|
visibleOn:
|
||||||
|
'data.visible || data.visible === false || data.visibleOn !== undefined'
|
||||||
});
|
});
|
||||||
|
|
||||||
setSchemaTpl('hidden', {
|
setSchemaTpl('hidden', {
|
||||||
@ -1040,7 +1039,7 @@ setSchemaTpl('app-page-args', {
|
|||||||
type: 'ae-DataMappingControl',
|
type: 'ae-DataMappingControl',
|
||||||
name: 'params',
|
name: 'params',
|
||||||
label: '页面参数',
|
label: '页面参数',
|
||||||
schema: {"type": "object", "properties":{}},
|
schema: {type: 'object', properties: {}},
|
||||||
mode: 'horizontal'
|
mode: 'horizontal'
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -1061,15 +1060,18 @@ setSchemaTpl(
|
|||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
setSchemaTpl('iconLink', (schema: {name: 'icon' | 'rightIcon', visibleOn: boolean}) => {
|
setSchemaTpl(
|
||||||
const {name, visibleOn} = schema;
|
'iconLink',
|
||||||
return {
|
(schema: {name: 'icon' | 'rightIcon'; visibleOn: boolean}) => {
|
||||||
name: name,
|
const {name, visibleOn} = schema;
|
||||||
visibleOn,
|
return {
|
||||||
label: '图标',
|
name: name,
|
||||||
type: 'icon-picker',
|
visibleOn,
|
||||||
placeholder: '点击选择图标',
|
label: '图标',
|
||||||
clearable: true,
|
type: 'icon-picker',
|
||||||
description: ''
|
placeholder: '点击选择图标',
|
||||||
|
clearable: true,
|
||||||
|
description: ''
|
||||||
|
};
|
||||||
}
|
}
|
||||||
});
|
);
|
||||||
|
@ -63,7 +63,7 @@ setSchemaTpl(
|
|||||||
(config: {visibleOn: string; [propName: string]: any}) => {
|
(config: {visibleOn: string; [propName: string]: any}) => {
|
||||||
return [
|
return [
|
||||||
{
|
{
|
||||||
type: 'button-group-select',
|
type: 'select',
|
||||||
label: '标题宽度',
|
label: '标题宽度',
|
||||||
name: 'horizontal',
|
name: 'horizontal',
|
||||||
options: [
|
options: [
|
||||||
|
Loading…
Reference in New Issue
Block a user