[amis-saas-10410] fix

Change-Id: Id7765278111e9f474497d8d14f88504388b16e11
This commit is contained in:
pianruijie 2023-03-13 19:59:48 +08:00
parent 187f6e2630
commit 4ff7ca9224
3 changed files with 24 additions and 20 deletions

View File

@ -111,7 +111,6 @@ setSchemaTpl(
pipeOut: (v: string) => (v ? v : undefined)
})
);
setSchemaTpl('formulaControl', (schema: object = {}) => {
return {
type: 'ae-formulaControl',
@ -384,25 +383,6 @@ setSchemaTpl('icon', {
description: ''
});
setSchemaTpl(
'remark',
remarkTpl({
name: 'remark',
label: '控件提示',
labelRemark:
'在输入控件旁展示提示,注意控件宽度需设置,否则提示触发图标将自动换行'
})
);
setSchemaTpl(
'labelRemark',
remarkTpl({
name: 'labelRemark',
label: '标题提示',
labelRemark: '在标题旁展示提示'
})
);
setSchemaTpl(
'valueFormula',
(config?: {

View File

@ -1,5 +1,6 @@
// 模板有点多,经量多拆些文件
import './common';
import './remark';
import './horizontal';
import './api';
import './options';

View File

@ -0,0 +1,23 @@
import {
setSchemaTpl,
} from 'amis-editor-core';
import {remarkTpl} from '../component/BaseControl';
setSchemaTpl(
'remark',
remarkTpl({
name: 'remark',
label: '控件提示',
labelRemark:
'在输入控件旁展示提示,注意控件宽度需设置,否则提示触发图标将自动换行'
})
);
setSchemaTpl(
'labelRemark',
remarkTpl({
name: 'labelRemark',
label: '标题提示',
labelRemark: '在标题旁展示提示'
})
);