From 27585555a10c6868e4bed7102f2f198d7d96c3b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B4=A4=E5=BF=83?= <3277200+sentsim@users.noreply.github.com> Date: Mon, 11 Sep 2023 11:55:51 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20table=20=E7=BB=BC=E5=90=88?= =?UTF-8?q?=E6=BC=94=E7=A4=BA=E7=BB=86=E8=8A=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/table/examples/demo.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/table/examples/demo.md b/docs/table/examples/demo.md index 17038b85..b5d7fd7e 100644 --- a/docs/table/examples/demo.md +++ b/docs/table/examples/demo.md @@ -55,7 +55,7 @@ layui.use(['table', 'dropdown'], function(){ // 创建渲染实例 table.render({ elem: '#test', - url:'/static/2.8/json/table/demo1.json', // 此处为静态模拟数据,实际使用时需换成真实接口 + url: '/static/2.8/json/table/demo1.json', // 此处为静态模拟数据,实际使用时需换成真实接口 toolbar: '#toolbarDemo', defaultToolbar: ['filter', 'exports', 'print', { title: '提示', @@ -73,7 +73,7 @@ layui.use(['table', 'dropdown'], function(){ {type: 'checkbox', fixed: 'left'}, {field:'id', fixed: 'left', width:80, title: 'ID', sort: true, totalRowText: '合计:'}, {field:'username', width:80, title: '用户'}, - {field:'email', title:'邮箱 ', fieldTitle: '邮箱', hide: 0, width:150, edit: 'text'}, + {field:'email', title:'邮箱 ', fieldTitle: '邮箱', hide: 0, width:150, expandedMode: 'tips', edit: 'text'}, {field:'sex', width:80, title: '性别', sort: true}, {field:'sign', title: '签名', edit: 'textarea', minWidth: 260, expandedWidth: 260, totalRow: '{{!人物:唐代:{{= d.TOTAL_ROW.era.tang }} 宋代:{{= d.TOTAL_ROW.era.song }} 现代:{{= d.TOTAL_ROW.era.xian }}!}}'}, {field:'experience', width: 100, title: '积分', sort: true, totalRow: '{{!{{= d.TOTAL_NUMS }} 😊!}}'},