Skip to main content
Version: 3.1

ViewComponent 页面组件

结构声明

interface ViewComponent {
"concept": "ViewComponent", // 产品概念
"name": string, // 页面组件名称
"title": string, // 页面组件标题
"description": string, // 页面组件描述
"category": string, // category
"attrs": Array<Attribute>, // 组件属性列表
"events": Array<Event>, // 组件事件列表
"slots": Array<Slot>, // 插槽列表
"methods": Array<Logic>, // 逻辑列表
"children": Array<ViewComponent>, // 页面组件列表
"blocks": Array<ViewBlock>, // 页面代码块列表
"themes": Array<{ name: string, type: string}>, // themes
}

示例

简单示例

{
"concept": "ViewComponent",
"name": "u-table-view",
"title": "数据表格",
"description": "用于展示大量结构化数据。支持排序、过滤(筛选)、分页、自定义操作等复杂功能。",
"category": "Table",
"attrs": [],
"events": [],
"slots": [],
"methods": [],
"children": [],
"blocks": [],
"themes": null
}