From 37fd63d2ec1ecbebc1b11f9f39d1c1b8e50c16bf 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:55:31 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20dropdown=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/dropdown.html | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/examples/dropdown.html b/examples/dropdown.html index 63402758..9a8a3174 100644 --- a/examples/dropdown.html +++ b/examples/dropdown.html @@ -207,6 +207,9 @@ layui.use('dropdown', function(){ ,trigger: 'contextmenu' //contextmenu ,isAllowSpread: false //,style: 'width: 200px' + ,customName: { + children: 'children' + } ,data: [{ title: 'menu item 1' ,id: '#1' @@ -216,7 +219,7 @@ layui.use('dropdown', function(){ },{type:'-'},{ title: 'menu item 3' ,id: '#3' - ,child: [{ + ,children: [{ title: 'menu item 3-1' ,id: '#1' },{