Files
vtj/packages/coder/tests/dsl.ts
2024-08-09 08:32:29 +08:00

40 lines
678 B
TypeScript

export const dsl = {
name: 'Test',
locked: false,
inject: [],
state: {},
lifeCycles: {},
methods: {},
computed: {
testComputed: {
type: 'JSFunction',
value: "() => {\r\n return 'ab'\r\n}"
}
},
watch: [],
css: '',
props: [],
emits: [],
slots: [],
dataSources: {},
__VTJ_BLOCK__: true,
__VERSION__: '1723162511691',
id: '1xc2yxyg7hz',
nodes: [
{
id: 'v16xm3apre',
name: 'div',
from: '',
invisible: false,
locked: false,
children: {
type: 'JSExpression',
value: 'this.testComputed.value'
},
props: {},
directives: [],
events: {}
}
]
};