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

Co-authored-by: wutong25 <wutong25@baidu.com>
This commit is contained in:
wutong 2023-11-15 20:32:35 +08:00 committed by GitHub
parent 8a49543f19
commit ef13612a67
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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

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