mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-02 03:58:07 +08:00
parent
e92878229a
commit
3157498c88
@ -578,7 +578,7 @@ export class CRUDPlugin extends BasePlugin {
|
|||||||
name: 'filterColumnCount'
|
name: 'filterColumnCount'
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
visibleOn: 'data.features && data.features.includes("filter")'
|
visibleOn: "${features && features.includes('filter')}"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'columns',
|
name: 'columns',
|
||||||
|
@ -474,7 +474,7 @@ export class FormPlugin extends BasePlugin {
|
|||||||
return {
|
return {
|
||||||
type: 'container',
|
type: 'container',
|
||||||
className: 'form-item-gap',
|
className: 'form-item-gap',
|
||||||
visibleOn: `data.feat === '${feat.value}' && (!data.dsType || data.dsType === '${builderKey}')`,
|
visibleOn: `$\{feat === '${feat.value}' && (!dsType || dsType === '${builderKey}')}`,
|
||||||
body: flatten([
|
body: flatten([
|
||||||
builder.makeSourceSettingForm({
|
builder.makeSourceSettingForm({
|
||||||
feat: feat.value,
|
feat: feat.value,
|
||||||
@ -685,14 +685,15 @@ export class FormPlugin extends BasePlugin {
|
|||||||
const dsSettings = flatten(
|
const dsSettings = flatten(
|
||||||
this.Features.map(feat =>
|
this.Features.map(feat =>
|
||||||
this.dsManager.buildCollectionFromBuilders(
|
this.dsManager.buildCollectionFromBuilders(
|
||||||
(builder, builderKey, index) => ({
|
(builder, builderKey, index) => {
|
||||||
|
return {
|
||||||
type: 'container',
|
type: 'container',
|
||||||
className: 'form-item-gap',
|
className: 'form-item-gap',
|
||||||
visibleOn: `data.feat === '${
|
visibleOn: `$\{feat === '${
|
||||||
feat.value
|
feat.value
|
||||||
}' && (data.dsType == null ? '${builderKey}' === '${
|
}' && (dsType == null ? '${builderKey}' === '${
|
||||||
defaultDsType || ApiDSBuilderKey
|
defaultDsType || ApiDSBuilderKey
|
||||||
}' : data.dsType === '${builderKey}')`,
|
}' : dsType === '${builderKey}')}`,
|
||||||
body: flatten([
|
body: flatten([
|
||||||
builder.makeSourceSettingForm({
|
builder.makeSourceSettingForm({
|
||||||
feat: feat.value,
|
feat: feat.value,
|
||||||
@ -704,7 +705,8 @@ export class FormPlugin extends BasePlugin {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
])
|
])
|
||||||
})
|
};
|
||||||
|
}
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
Loading…
Reference in New Issue
Block a user