11// ==UserScript==
22// @name CKUI
33// @namespace ckylin-script-lib-ckui
4- // @version 2.4.4
4+ // @version 2.4.5
55// @description A modern, dependency-free UI library for Tampermonkey scripts
66// @match http://*
77// @match https://*
@@ -1986,7 +1986,6 @@ if (typeof unsafeWindow === 'undefined' || !unsafeWindow) {
19861986 this . isDragging = false ;
19871987 this . isMinimized = false ;
19881988 this . isShowing = false ;
1989- this . isHidden = false ;
19901989 this . dragStartX = 0 ;
19911990 this . dragStartY = 0 ;
19921991 this . windowStartX = 0 ;
@@ -2003,7 +2002,7 @@ if (typeof unsafeWindow === 'undefined' || !unsafeWindow) {
20032002
20042003 show ( ) {
20052004 if ( this . isShowing && this . window && this . window . parentNode ) {
2006- this . isHidden = false ;
2005+
20072006 this . window . style . display = '' ;
20082007 this . window . style . transition = 'opacity 0.2s ease-out, transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1)' ;
20092008 this . window . style . opacity = '1' ;
@@ -2018,7 +2017,6 @@ if (typeof unsafeWindow === 'undefined' || !unsafeWindow) {
20182017 }
20192018
20202019 this . isShowing = true ;
2021- this . isHidden = false ;
20222020 this . render ( ) ;
20232021 return this ;
20242022 }
@@ -2335,23 +2333,6 @@ if (typeof unsafeWindow === 'undefined' || !unsafeWindow) {
23352333 return this ;
23362334 }
23372335
2338- hide ( ) {
2339- if ( this . window && this . window . parentNode && ! this . isHidden ) {
2340- this . isHidden = true ;
2341- this . window . style . transition = 'opacity 0.2s ease-out, transform 0.2s cubic-bezier(0.6, -0.28, 0.74, 0.05)' ;
2342- this . window . style . opacity = '0' ;
2343- this . window . style . transform = 'scale(0.95)' ;
2344-
2345- setTimeout ( ( ) => {
2346- if ( this . window && this . isHidden ) {
2347- this . window . style . display = 'none' ;
2348- this . window . style . transition = '' ;
2349- }
2350- } , 200 ) ;
2351- }
2352- return this ;
2353- }
2354-
23552336 close ( ) {
23562337 if ( this . window && this . window . parentNode ) {
23572338 this . isShowing = false ;
0 commit comments