import { ApiEntity } from '@/views/entity/demoentity'; const nesting: ApiEntity = { title: '嵌套', desc: '业务端往往复杂度比较高,有时候会嵌套使用。', code: `
{{ text }}
{{ text }}
{{ text }}
`, js: ` { data() { return { texts: [], texts1: [], }; }, created() { for (let i = 1; i < 30; i++) { this.texts.push('这是一段文字' + i); } for (let i = 1; i < 60; i++) { this.texts1.push('这是一段文字' + i); } }, } `, }; export default nesting;