结构
表格模板_components/table.html
包括data
、expand
、cols
三个参数。
expand
传入扩展的样式名
cols
传入<col /><col style="width: 20%" />
字符串
时间 | 流水号 | 类型 | 付款方 | 金额 | 状态 | 可提现时间 |
---|---|---|---|---|---|---|
2015-05-25 10:25:36 | DOBA201506060000118000011 | 充值 | 建设银行 | 尾号 8435 | 422,252.00 | 可提现 | 2015-05-25 |
2015-05-25 10:25:36 | DOBA201506060000118000011 | 充值 | 建设银行 | 尾号 8435 | 422,252.00 | 可提现 | 2015-05-25 |
# 定义面包屑数组 #
{%
set data = {
thead: ["时间","流水号","类型","付款方","金额","状态","可提现时间"],
items: [
["2015-05-25 10:25:36", "DOBA201506060000118000011", "充值", "建设银行 | 尾号 8435 ", "422,252.00", "可提现 ", "2015-05-25 "],
["2015-05-25 10:25:36", "DOBA201506060000118000011", "充值", "建设银行 | 尾号 8435 ", "422,252.00", "可提现 ", "2015-05-25 "]
]
}
%}
{% import "_components/table.html" as table %}
{{ table.render(data) }}