Skip to content

Commit 602a39b

Browse files
author
hikki
committed
v3 css
1 parent 7786a4c commit 602a39b

File tree

2 files changed

+18
-7
lines changed

2 files changed

+18
-7
lines changed

resources/assets/component.css

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@
173173
right: 0;
174174
top: 0;
175175
height: 100%;
176-
background: rgb(60 60 60 / 80%);
176+
background: rgb(0 0 0 / 81%);
177177
border-radius: 5px;
178178
animation-name: dlpFadeIn;
179179
animation-duration: .2s;
@@ -237,7 +237,14 @@
237237
outline: 0;
238238
}
239239
#dlp-plane .plane-header,.dot-cascade-panel>.plane-header{
240-
background-color: rgb(44 44 44); padding: 3px; display: flex; justify-content: flex-end;border-bottom: 1px solid #505050;border-radius: 3px 3px 0 0;height: 24px!important;
240+
background-color: rgb(44 44 44);
241+
padding: 3px;
242+
display: flex;
243+
justify-content: flex-end;
244+
align-items:center;
245+
border-bottom: 1px solid #505050;
246+
border-radius: 3px 3px 0 0;
247+
height: 18px!important;
241248
}
242249
.plane-header .title{
243250
color: rgb(255 0 141);
@@ -257,22 +264,26 @@
257264
margin: 60px auto 0;
258265
}
259266
.dot-cascade-panel>.plane-body-delete{
267+
display: flex;
268+
justify-content: center;
269+
align-items: center;
260270
width: 270px;
261271
height: 50px;
262272
min-height: 50px;
263273
margin: 0 auto;
264274
overflow: hidden;
265-
padding: 12px 7px;
275+
padding: 3px;
266276
}
267277
.plane-body-delete>.dlp-label{
268278
position: relative;
269-
width: 100%;
270-
max-width: 100%;
271-
margin: 0;
279+
width: 220px;
280+
max-width: 220px;
281+
margin: 0 auto;
272282
height: 25px;
273283
line-height: 23px;
274284
padding-left: 20px;
275285
padding-right: 20px;
286+
276287
}
277288
.plane-header>.dlp-submit-btn{
278289
margin-right: 5px;

resources/assets/component.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -399,14 +399,14 @@ class ComponentCascadeDot {
399399
if (v.nodes !== null) {
400400
div.insertAdjacentHTML('afterbegin', `<i class="left">${_component.caret_right}</i>`);
401401
div.addEventListener("contextmenu", (e) => {
402-
e.target.click();
403402
e.preventDefault();
404403
let k = parseInt(div.getAttribute('data-k'));
405404
_component.contextmenu(e, [
406405
{
407406
title: '全选', func: () => {
408407
object.checkAll(stack + 1,
409408
this.dimensional_data[stack][k].nodes, true);
409+
e.target.click();
410410
}
411411
},
412412
{

0 commit comments

Comments
 (0)