Skip to content

Commit 712a39f

Browse files
author
hikki
committed
8
1 parent 23beab9 commit 712a39f

File tree

1 file changed

+15
-6
lines changed

1 file changed

+15
-6
lines changed

test/index.html

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -124,11 +124,12 @@
124124
<rect fill='url(#g)' width='100%' height='100%'/>
125125
</svg>
126126
<div style="position: absolute;z-index: 1000;top:0;left: 0;right: 0;bottom: 0;">
127-
<div style="height: 30px;text-align: center">Dot 多选择器</div>
128-
<div id="test" style="width: 550px;height: 200px;margin: 0 auto"></div>
129-
<div style="margin-top:30px;height: 30px;text-align: center">Dot 多选择器(下拉列表模式)</div>
130-
131-
<div id="test7" style="width:200px;margin: 0 auto"></div>
127+
<div style="height: 30px;text-align: center">Dot 多选择器(三种模式dot menu switch)</div>
128+
<div style="margin: 0 auto;display: flex;justify-content: space-around">
129+
<div id="test" style="width: 450px;height: 200px;"></div>
130+
<div id="test7" style="width:200px;"></div>
131+
<div id="test11" style="width:350px;"></div>
132+
</div>
132133

133134
<div style="margin-top:30px;height: 30px;text-align: center">CascadeDot 级联多选择器</div>
134135
<div id="test4" style="width: 650px;height: 360px;margin: 0 auto"></div>
@@ -243,10 +244,18 @@
243244
console.log(select,insert,del)
244245
}).selected([2, 5, 10]).limitNum(3).make();
245246

246-
new ComponentDot('#test7', test_data).mod({mode:true,placeholder: '选择女优',height:'120px'}).trigger(function (select,insert,del) {
247+
new ComponentDot('#test7', test_data).menuMod({placeholder: '选择女优',height:'120px'}).trigger(function (select,insert,del) {
247248
console.log(select,insert,del)
248249
}).selected([2]).limitNum(1).make();
249250

251+
new ComponentDot('#test11', {
252+
"1": "青 龙",
253+
"2": "白 虎",
254+
"3": "朱 雀",
255+
"4": "玄 武"}).switchMod().trigger(function (select,insert,del) {
256+
console.log(select,insert,del)
257+
}).selected([2]).limitNum(2).make();
258+
250259
new ComponentLine("#test2", {
251260
"name": {"name": "名称", "type": "input"},
252261
"meta": {"name": "番号", "type": "text","insert_type":"hidden"},

0 commit comments

Comments
 (0)