2020-08-17 13:17:01 +08:00

176 lines
3.7 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{
// Schema 参见https://yuque.antfin-inc.com/mo/spec/spec-materials#eNCJr
version: '1.0.0',
componentsMap: [
{
componentName: 'View',
package: 'rax-view',
version: '^1.0.0',
destructuring: false,
exportName: 'View',
},
{
componentName: 'Text',
package: 'rax-text',
version: '^1.0.0',
destructuring: false,
exportName: 'Text',
},
{
componentName: 'Link',
package: 'rax-link',
version: '^1.0.0',
destructuring: false,
exportName: 'Link',
},
{
componentName: 'Image',
package: 'rax-image',
version: '^1.0.0',
destructuring: false,
exportName: 'Image',
},
{
componentName: 'Page',
package: 'rax-view',
version: '^1.0.0',
destructuring: false,
exportName: 'Page',
},
],
componentsTree: [
{
componentName: 'Page',
fileName: 'home',
state: {},
dataSource: {
list: [],
},
meta: {
router: '/',
},
children: [
{
componentName: 'View',
children: [
{
componentName: 'Text',
children: 'This is the Home Page',
},
],
},
{
componentName: 'Link',
props: {
href: '#/list',
miniappHref: 'navigate:/pages/List/index',
},
children: [
{
componentName: 'Text',
children: 'Go To The List Page',
},
],
},
],
},
{
componentName: 'Page',
fileName: 'list',
state: {},
dataSource: {
list: [],
},
meta: {
router: '/list',
},
children: [
{
componentName: 'View',
children: [
{
componentName: 'Text',
children: 'This is the List Page',
},
],
},
{
componentName: 'Link',
props: {
href: '#/detail',
miniappHref: 'navigate:/pages/Detail/index',
},
children: [
{
componentName: 'Text',
children: 'Go To The Detail Page',
},
],
},
{
componentName: 'Link',
props: {
href: 'javascript:history.back();',
miniappHref: 'navigateBack:',
},
children: [
{
componentName: 'Text',
children: 'Go back',
},
],
},
],
},
{
componentName: 'Page',
fileName: 'detail',
state: {},
dataSource: {
list: [],
},
meta: {
router: '/detail',
},
children: [
{
componentName: 'View',
children: [
{
componentName: 'Text',
children: 'This is the Detail Page',
},
],
},
{
componentName: 'Link',
props: {
href: 'javascript:history.back();',
miniappHref: 'navigateBack:',
},
children: [
{
componentName: 'Text',
children: 'Go back',
},
],
},
],
},
],
css: 'page,body{\n width: 750rpx;\n overflow-x: hidden;\n}',
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: '张三',
},
}