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 '