From f754a212396bf433fc0b5565df815eba9619889a Mon Sep 17 00:00:00 2001 From: Administrator <450292408@qq.com> Date: Thu, 21 Oct 2021 07:55:30 +0000 Subject: [PATCH] docs: update wg-basic/page-unit --- wg-basic/page-unit.md | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/wg-basic/page-unit.md b/wg-basic/page-unit.md index 76ad153..19abd40 100644 --- a/wg-basic/page-unit.md +++ b/wg-basic/page-unit.md @@ -2,7 +2,7 @@ title: 页面组件 description: 页面上使用的组件 published: true -date: 2021-10-21T07:15:00.382Z +date: 2021-10-21T07:55:28.816Z tags: wg-basic editor: markdown dateCreated: 2021-09-08T06:41:19.351Z @@ -174,10 +174,16 @@ new Viewer(document.getElementById('boxId'), {navbar: true}); # 7. 列表按钮 ```javascript -// 列表模板 +// 单按钮 templet: function(item) { return ''; } +// 按钮组 +templet: function(item) { + return '