Skip to content

Commit 680e584

Browse files
author
hikki
committed
v3.6
1 parent d92c4b8 commit 680e584

File tree

2 files changed

+47
-7
lines changed

2 files changed

+47
-7
lines changed

src/DLPServiceProvider.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ public function boot(DLP $extension)
2929
}
3030

3131
Admin::booting(function () {
32-
Admin::css('vendor/dlp/component.min.css?v3.5');
33-
Admin::headerJs('vendor/dlp/component.min.js?v3.5');
32+
Admin::css('vendor/dlp/component.min.css?v3.6');
33+
Admin::headerJs('vendor/dlp/component.min.js?v3.6');
3434
Form::extend('Dot', Dot::class);
3535
Form::extend('CascadeDot', CascadeDot::class);
3636
Form::extend('Linear', Linear::class);

test/index.html

Lines changed: 45 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -120,9 +120,31 @@
120120
<rect fill='url(#g)' width='100%' height='100%'/>
121121
</svg>
122122
<div style="position: absolute;z-index: 1000;top:0;left: 0;right: 0;bottom: 0;">
123-
<div style="height: 30px;text-align: center">Dot 标签选择器</div>
123+
<div style="height: 30px;text-align: center">Dot 多选择器</div>
124124
<div id="test" style="width: 550px;height: 200px;margin: 0 auto"></div>
125-
<div style="margin-top:30px;height: 30px;text-align: center">CascadeDot 级联标签选择器</div>
125+
<div style="margin-top:30px;height: 30px;text-align: center">Dot 多选择器(下拉列表模式)</div>
126+
<!--<div id="test6" style="width:200px;margin: 0 auto">
127+
<div class="dlp-dot-menu">
128+
<div class="dlp-input dlp-dot-menu-select">
129+
<div class="dlp dlp-text">测试</div>
130+
<div>▼</div>
131+
</div>
132+
<div class="dlp-input menu-list">
133+
<div class="search-box"><input class="dlp dlp-input dot-search" placeholder="搜索" /></div>
134+
<div class="list dlp-scroll">
135+
<div class="option"><div class="dlp dlp-text">1</div><div><svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" fill="currentColor" viewBox="0 0 16 16">
136+
<path d="M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0zm-3.97-3.03a.75.75 0 0 0-1.08.022L7.477 9.417 5.384 7.323a.75.75 0 0 0-1.06 1.06L6.97 11.03a.75.75 0 0 0 1.079-.02l3.992-4.99a.75.75 0 0 0-.01-1.05z"></path>
137+
</svg></div></div>
138+
<div class="option"><div class="dlp dlp-text">2</div><div></div></div>
139+
<div class="option"><div class="dlp dlp-text">3</div><div></div></div>
140+
</div>
141+
</div>
142+
</div>
143+
</div>-->
144+
145+
<div id="test7" style="width:200px;margin: 0 auto"></div>
146+
147+
<div style="margin-top:30px;height: 30px;text-align: center">CascadeDot 级联多选择器</div>
126148
<div id="test4" style="width: 650px;height: 360px;margin: 0 auto"></div>
127149
<div style="height: 30px"></div>
128150
<div id="test3" style="height: 66px;background: rgb(34 36 38 / 15%);text-align: center">
@@ -156,9 +178,9 @@
156178
<d:license style="animation-play-state:paused">by</d:license>
157179
<d:slug style="animation-play-state:paused">kproeo</d:slug></metadata></g><!-- generated by https://loading.io/ --></svg>
158180
</div>
159-
<div style="margin-top:30px;height: 30px;text-align: center">CascadeLine 级联标签管理器</div>
181+
<div style="margin-top:30px;height: 30px;text-align: center">CascadeLine 级联管理器</div>
160182
<div id="test5" style="width: 650px;height: 360px;margin: 0 auto"></div>
161-
<div style="margin-top:30px;height: 30px;text-align: center">Linear 数据表单控件</div>
183+
<div style="margin-top:30px;height: 30px;text-align: center">Linear 表单控件</div>
162184
<div id="test2" style="width: 900px;height: 320px;margin: 0 auto"></div>
163185
</div>
164186
</body>
@@ -321,11 +343,29 @@
321343
"299": "佐伯奈々",
322344
"300": "小谷みのり"
323345
});
346+
347+
new ComponentDot('test7', [], {
348+
"2": "西宮このみ",
349+
"5": "瀨名光莉",
350+
"7": "日菜々はのん",
351+
"10": "波多野結衣",
352+
"11": "麻生希",
353+
"15": "美波沙耶",
354+
"17": "佐山愛",
355+
"18": "真木今日子",
356+
"20": "通野未帆",
357+
"21": "三上悠亜",
358+
"23": "初美沙希",
359+
"31": "AIKA -",
360+
"33": "永井みひな",
361+
"36": "河北彩花"
362+
},30,true,'请选择');
363+
324364
new ComponentLine("test2", {
325365
"name": {"name": "名称", "type": "input"},
326366
"meta": {"name": "信息", "type": "text","insert_type":"hidden"},
327367
"url": {"name": "链接", "type": "image"},
328-
"time": {"name": "更新时间", "type": "text","insert_type":"datetime"},
368+
"time": {"name": "更新时间", "type": "datetime","insert_type":"datetime"},
329369
"is-small": {"name": "高清[1是 2否]", "type": "select","options":{1:'是',2:'否'},"options_limit":1, "style": "width:60px"}
330370
}
331371
, [{

0 commit comments

Comments
 (0)