amis-saas-9224 解决第六批合入pre-release冲突

Change-Id: Id7f211304d4c26005b34b0fdb81e3f3b858280da
This commit is contained in:
jinye 2023-01-07 11:56:40 +08:00
commit aab810b47f
3 changed files with 33 additions and 6 deletions

View File

@ -227,11 +227,17 @@ export class ListPlugin extends BasePlugin {
const node = store.getNodeById(id);
const value = store.getValueOf(id);
const defaultHeader = {
type: 'tpl',
tpl: '头部',
wrapperComponent: ''
};
node &&
value &&
this.manager.openSubEditor({
title: '配置头部',
value: value.header,
value: value.header ?? defaultHeader,
slot: {
type: 'container',
body: '$$'
@ -249,11 +255,17 @@ export class ListPlugin extends BasePlugin {
const node = store.getNodeById(id);
const value = store.getValueOf(id);
const defaultFooter = {
type: 'tpl',
tpl: '底部',
wrapperComponent: ''
};
node &&
value &&
this.manager.openSubEditor({
title: '配置底部',
value: value.footer,
value: value.footer ?? defaultFooter,
slot: {
type: 'container',
body: '$$'

View File

@ -1,3 +1,4 @@
import React from 'react';
import {Button, resolveVariable} from 'amis';
import {RendererPluginAction, RendererPluginEvent} from 'amis-editor-core';
import {findTree, setVariable, someTree} from 'amis-core';
@ -733,11 +734,17 @@ export class TablePlugin extends BasePlugin {
const node = store.getNodeById(id);
const value = store.getValueOf(id);
const defaultHeader = {
type: 'tpl',
tpl: '头部',
wrapperComponent: ''
};
node &&
value &&
this.manager.openSubEditor({
title: '配置头部',
value: value.header,
value: value.header ?? defaultHeader,
slot: {
type: 'container',
body: '$$'
@ -755,11 +762,17 @@ export class TablePlugin extends BasePlugin {
const node = store.getNodeById(id);
const value = store.getValueOf(id);
const defaultFooter = {
type: 'tpl',
tpl: '底部',
wrapperComponent: ''
};
node &&
value &&
this.manager.openSubEditor({
title: '配置底部',
value: value.footer,
value: value.footer ?? defaultFooter,
slot: {
type: 'container',
body: '$$'

View File

@ -693,10 +693,12 @@ setSchemaTpl('onlyClassNameTab', (label = '外层') => {
body: getSchemaTpl('collapseGroup', [
{
title: 'CSS类名',
body: [getSchemaTpl('className', {label})]
body: [
getSchemaTpl('className', {label})
]
}
])
};
}
});
/**