Skip to content

Commit de3c750

Browse files
committed
* search-box: update example and initialization to include name property for enhanced functionality.
1 parent 8b74229 commit de3c750

File tree

1 file changed

+2
-2
lines changed
  • lib/search-box/docs/lib/components

1 file changed

+2
-2
lines changed

lib/search-box/docs/lib/components/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
== 示例
1212

1313
<Example>
14-
<div data-zui="SearchBox"></div>
14+
<div data-zui="SearchBox" data-name="mySearch"></div>
1515
</Example>
1616

1717
== HTML
@@ -20,7 +20,7 @@
2020
<div id="searchBox"></div>
2121

2222
<script>
23-
const searchBox = new zui.SearchBox('#searchBox');
23+
const searchBox = new zui.SearchBox('#searchBox', {name: 'mySearch'});
2424
</script>
2525
```
2626

0 commit comments

Comments
 (0)