amis2/examples/components/CRUD/PopOver.tsx
liaoxuezhi 65ac422ed6
1.2.x 文档&示例配置调整 (#2064)
* 补充容错

* fix: form 中 name 关联顶层数据初始化失效

* 更新 examples

* 文档调整

* 删除多余的文档, 调整 schema

* schema 调整

* schema 调整

* control 类型容器 control 改成 body

* 修复一个选项加载的bug

* form 注册直接用 type
2021-06-07 10:09:55 +08:00

35 lines
701 B
TypeScript

export default {
title: '列展示详情',
body: {
type: 'crud',
title: '',
api: '/api/sample/list',
columnsTogglable: false,
columns: [
{
name: 'id',
label: 'ID',
width: 20,
type: 'text'
},
{
name: 'engine',
label: 'Rendering engine',
type: 'text',
popOver: {
trigger: 'hover',
showIcon: false,
body: 'Popover 内容:${platform}',
popOverClassName: 'min-w-0',
position: 'left-center-right-center right-center-left-center'
}
},
{
name: 'browser',
label: 'Browser',
type: 'text'
}
]
}
};