mirror of https://github.com/1099438829/macUI.git
打开增加activity
This commit is contained in:
parent
294ba1375f
commit
27efc20409
|
|
@ -986,6 +986,19 @@ body .mac-open-iframe.layui-layer-setwin .layui-layer-change-url:hover {
|
|||
cursor: pointer;
|
||||
}
|
||||
|
||||
#dock .dock-container ul li.active > a:after {
|
||||
content: "";
|
||||
font-size: 12px;
|
||||
position: fixed;
|
||||
margin: 49px -27px;
|
||||
/* margin: calc(50- 4/2)px calc(-50/2 - 4/2)px; */
|
||||
font-weight: 200;
|
||||
width: 4px;
|
||||
height: 4px;
|
||||
border-radius: 50%;
|
||||
background: #000
|
||||
}
|
||||
|
||||
#dock .dock-container ul li:focus {
|
||||
-webkit-animation: bounce 1s;
|
||||
animation: bounce 1s;
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
|
|
@ -1169,7 +1169,7 @@ window.Macui = {
|
|||
},
|
||||
});
|
||||
$('#dock .dock-container li.active').removeClass('active');
|
||||
let btn = $('<li id="mac_' + index + '" index="' + index +
|
||||
let btn = $('<li class="active show" id="mac_' + index + '" index="' + index +
|
||||
'"> <span class="dock-tips" style="display: none;">'+title+'<span class="arrow"></span></span><a>' + icon + '</a> </li>');
|
||||
let layero_opened = Macui.getLayeroByIndex(index);
|
||||
layero_opened.css('z-index', Macui._countTask + 813);
|
||||
|
|
@ -1204,6 +1204,7 @@ window.Macui = {
|
|||
}
|
||||
Macui.renderDocks();
|
||||
btn.click(function () {
|
||||
console.log(444444)
|
||||
let index = $(this).attr('index');
|
||||
let layero = Macui.getLayeroByIndex(index);
|
||||
let settop = function () {
|
||||
|
|
@ -1219,6 +1220,7 @@ window.Macui = {
|
|||
layero.css('z-index', max_zindex + 1);
|
||||
};
|
||||
if ($(this).hasClass('show')) {
|
||||
console.log(444222)
|
||||
if ($(this).hasClass('active')) {
|
||||
$(this).removeClass('active');
|
||||
$(this).removeClass('show');
|
||||
|
|
@ -1230,6 +1232,7 @@ window.Macui = {
|
|||
Macui._settop(layero);
|
||||
}
|
||||
} else {
|
||||
console.log(3333)
|
||||
$(this).addClass('show');
|
||||
$('#dock .dock-container li.active').removeClass('active');
|
||||
$(this).addClass('active');
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue