mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-16 01:40:53 +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;
|
||||||
|
if (['input-kv', 'combo'].includes((config as any).type)) {
|
||||||
|
itemsWrapperClassName =
|
||||||
'ae-Combo-items ' + ((config as any).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,7 +685,6 @@ setSchemaTpl('visible', {
|
|||||||
expressionName: 'visibleOn'
|
expressionName: 'visibleOn'
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
// 新版配置面板兼容 [可见] 状态
|
// 新版配置面板兼容 [可见] 状态
|
||||||
setSchemaTpl('newVisible', {
|
setSchemaTpl('newVisible', {
|
||||||
type: 'ae-StatusControl',
|
type: 'ae-StatusControl',
|
||||||
@ -694,7 +692,8 @@ setSchemaTpl('newVisible', {
|
|||||||
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,7 +1060,9 @@ setSchemaTpl(
|
|||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
setSchemaTpl('iconLink', (schema: {name: 'icon' | 'rightIcon', visibleOn: boolean}) => {
|
setSchemaTpl(
|
||||||
|
'iconLink',
|
||||||
|
(schema: {name: 'icon' | 'rightIcon'; visibleOn: boolean}) => {
|
||||||
const {name, visibleOn} = schema;
|
const {name, visibleOn} = schema;
|
||||||
return {
|
return {
|
||||||
name: name,
|
name: name,
|
||||||
@ -1071,5 +1072,6 @@ setSchemaTpl('iconLink', (schema: {name: 'icon' | 'rightIcon', visibleOn: boolea
|
|||||||
placeholder: '点击选择图标',
|
placeholder: '点击选择图标',
|
||||||
clearable: true,
|
clearable: true,
|
||||||
description: ''
|
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