mirror of
https://gitee.com/baidu/amis.git
synced 2024-11-30 02:58:05 +08:00
fix: 「页面设计器」Page组件支持组件静态数据配置 (#8750)
Co-authored-by: wutong25 <wutong25@baidu.com>
This commit is contained in:
parent
8a49543f19
commit
ef13612a67
@ -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',
|
||||
|
@ -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: '组件静态数据'
|
||||
})
|
||||
);
|
||||
|
||||
/**
|
||||
* 所有组件的状态
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user