2022-02-16 11:20:17 +08:00

79 lines
1.6 KiB
Plaintext

{
// 这是一个关于 JSSlot 的 schema 示例
version: '1.0.0',
componentsMap: [
{
componentName: 'Page',
package: 'rax-view',
version: '^1.0.0',
destructuring: false,
exportName: 'Page',
},
{
componentName: 'Text',
package: 'rax-text',
version: '^1.0.0',
destructuring: false,
exportName: 'Text',
},
],
componentsTree: [
{
componentName: 'Page',
props: {},
lifeCycles: {},
fileName: 'home',
meta: {
router: '/',
},
dataSource: {
list: [],
},
children: [
{
componentName: 'Text',
props: {
content: 'this is a line.\nthis is another line.\n...'
},
},
{
componentName: 'Text',
props: {
content: {
type: "JSExpression",
value: '"this is a line.\\nthis is another line.\\n..."'
}
},
},
{
componentName: 'Text',
props: {
},
children: "this is a line.\nthis is another line.\n..."
},
],
},
],
i18n: {
'zh-CN': {
'hello-world': '你好,世界!',
},
'en-US': {
'hello-world': 'Hello world!',
},
},
config: {
sdkVersion: '1.0.3',
historyMode: 'hash',
targetRootID: 'root',
},
meta: {
name: 'Rax App Demo',
git_group: 'demo-group',
project_name: 'demo-project',
description: '这是一个示例应用',
spma: 'spmademo',
creator: '张三',
},
}