打开增加activity

This commit is contained in:
yumo 2023-08-20 18:20:20 +08:00
parent 294ba1375f
commit 27efc20409
4 changed files with 19 additions and 3 deletions

View File

@ -986,6 +986,19 @@ body .mac-open-iframe.layui-layer-setwin .layui-layer-change-url:hover {
cursor: pointer; 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 { #dock .dock-container ul li:focus {
-webkit-animation: bounce 1s; -webkit-animation: bounce 1s;
animation: bounce 1s; animation: bounce 1s;

2
css/index.min.css vendored

File diff suppressed because one or more lines are too long

View File

@ -1169,7 +1169,7 @@ window.Macui = {
}, },
}); });
$('#dock .dock-container li.active').removeClass('active'); $('#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>'); '"> <span class="dock-tips" style="display: none;">'+title+'<span class="arrow"></span></span><a>' + icon + '</a> </li>');
let layero_opened = Macui.getLayeroByIndex(index); let layero_opened = Macui.getLayeroByIndex(index);
layero_opened.css('z-index', Macui._countTask + 813); layero_opened.css('z-index', Macui._countTask + 813);
@ -1204,6 +1204,7 @@ window.Macui = {
} }
Macui.renderDocks(); Macui.renderDocks();
btn.click(function () { btn.click(function () {
console.log(444444)
let index = $(this).attr('index'); let index = $(this).attr('index');
let layero = Macui.getLayeroByIndex(index); let layero = Macui.getLayeroByIndex(index);
let settop = function () { let settop = function () {
@ -1219,6 +1220,7 @@ window.Macui = {
layero.css('z-index', max_zindex + 1); layero.css('z-index', max_zindex + 1);
}; };
if ($(this).hasClass('show')) { if ($(this).hasClass('show')) {
console.log(444222)
if ($(this).hasClass('active')) { if ($(this).hasClass('active')) {
$(this).removeClass('active'); $(this).removeClass('active');
$(this).removeClass('show'); $(this).removeClass('show');
@ -1230,6 +1232,7 @@ window.Macui = {
Macui._settop(layero); Macui._settop(layero);
} }
} else { } else {
console.log(3333)
$(this).addClass('show'); $(this).addClass('show');
$('#dock .dock-container li.active').removeClass('active'); $('#dock .dock-container li.active').removeClass('active');
$(this).addClass('active'); $(this).addClass('active');

2
js/index.min.js vendored

File diff suppressed because one or more lines are too long