关联数据表字段
命令 | 参数名 | 默认值 | 参数说明 | 必填 |
---|---|---|---|---|
关联数据表字段 | type | table | 关联数据表对应字段 | |
公共配置 | title | 默认表头栏,当相表并头没有被定义时,取该值输出 | 1 | |
type | table | 字段内容转义输入类型 | 1 | |
titletag | 当前键名 | 标题标签 | 0 | |
parentkey | CommTag | 标题标签的父签 | 0 | |
width | 字段在列表中占据的宽度 | 0 | ||
class | 单元格自定义样式,设为“layui-table-cell-over”时,超出长度是自动截断,点击显示完整内容 | 0 | ||
参数配置 | idfiled | id | 数据表主键 | 1 |
namefiled | title | 显示关联对象的字段 | 1 | |
table | 关联对象所在数据表 | 1 | ||
'roomid' => array( 'type' => 'table', 'title' => '房间', 'idfiled' => 'id', 'namefiled' => 'title', 'table' => 'ZfRooms', ),