From a2aabef0de116b663b0749126eb5a433c941b574 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B4=A4=E5=BF=83?= <3277200+sentsim@users.noreply.github.com> Date: Tue, 15 Aug 2023 21:27:22 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20treeTable=20=E6=B5=8B?= =?UTF-8?q?=E8=AF=95=E7=94=A8=E4=BE=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- examples/treeTable.html | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/examples/treeTable.html b/examples/treeTable.html index 2e775d7d..afaa7b7e 100644 --- a/examples/treeTable.html +++ b/examples/treeTable.html @@ -23,6 +23,14 @@ layui.use(['treeTable'], function(){ elem: '#test', url: './json/treeTable/demo-1.json', maxHeight: 'full-32', + tree: { + customName: { + name: 'name' + }, + view: { + iconLeaf: '' + } + }, cols: [[ {type: 'checkbox', fixed: 'left'}, {type: 'numbers', fixed: 'left'}, @@ -33,7 +41,7 @@ layui.use(['treeTable'], function(){ {field: 'score', title: '评分', width: 80, sort: true}, {field: 'city', title: '城市', width: 150}, {field: 'description', title: '描述', minWidth: 200}, - {field: 'createTime', title: '创建时间', width: 170, fixed: 'right'}, + {field: 'createTime', title: '创建时间', width: 170, fixed: 'right'} ]], page: true });