|
124 | 124 | <rect fill='url(#g)' width='100%' height='100%'/>
|
125 | 125 | </svg>
|
126 | 126 | <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> |
132 | 133 |
|
133 | 134 | <div style="margin-top:30px;height: 30px;text-align: center">CascadeDot 级联多选择器</div>
|
134 | 135 | <div id="test4" style="width: 650px;height: 360px;margin: 0 auto"></div>
|
|
243 | 244 | console.log(select,insert,del)
|
244 | 245 | }).selected([2, 5, 10]).limitNum(3).make();
|
245 | 246 |
|
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) { |
247 | 248 | console.log(select,insert,del)
|
248 | 249 | }).selected([2]).limitNum(1).make();
|
249 | 250 |
|
| 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 | + |
250 | 259 | new ComponentLine("#test2", {
|
251 | 260 | "name": {"name": "名称", "type": "input"},
|
252 | 261 | "meta": {"name": "番号", "type": "text","insert_type":"hidden"},
|
|
0 commit comments