fix: 「页面设计器」Page组件支持组件静态数据配置

This commit is contained in:
wutong25 2023-11-15 17:19:14 +08:00
parent 13fe6b20b4
commit d2a9b13116
2 changed files with 14 additions and 7 deletions

View File

@ -228,13 +228,7 @@ export class PagePlugin extends BasePlugin {
{
title: '数据',
body: [
// page组件下掉组件静态数据配置项可通过页面变量来定义页面中的变量
// getSchemaTpl('combo-container', {
// type: 'input-kv',
// mode: 'normal',
// name: 'data',
// label: '组件静态数据'
// }),
getSchemaTpl('pageData'),
getSchemaTpl('apiControl', {
name: 'initApi',
mode: 'row',

View File

@ -768,6 +768,19 @@ setSchemaTpl('combo-container', (config: SchemaObject) => {
return config;
});
/**
* Page组件静态数据
*/
setSchemaTpl(
'pageData',
getSchemaTpl('combo-container', {
type: 'input-kv',
mode: 'normal',
name: 'data',
label: '组件静态数据'
})
);
/**
*
*/