Merge remote-tracking branch 'origin/master'

This commit is contained in:
Renpc-kilig 2021-08-02 09:48:33 +08:00
commit ecc2a803a2

View File

@ -34,8 +34,7 @@ $.fn.moduleSet = function(opt){
M.createStyle = function(){
if($('#panel-style').length > 0) return;
var style = '<style id="panel-style">.panel-module-box{display:none;}.panel-module-mask{ position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; top: 0; background: #000; opacity: .7; border: 2px dashed #fff; cursor: move; } .panel-module-handle{ position: absolute; left:0; top:0; z-index: 2; } .handle-btn{ cursor: pointer; padding:7px 20px; border:1px solid #eee; background-color: #fff; border-right:0; } .handle-btn:hover{ background-color: #f1f3f5; } .handle-btn:last-child{ border-right:1px solid #eee; }</style>';
var style = '<style id="panel-style">.panel-module-box{display:none;}.panel-module-mask{ position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; top: 0; background: ' + options.background + '; opacity: .7; border: 2px dashed #fff; cursor: move; } .panel-module-handle{ position: absolute; left:0; top:0; z-index: 2; } .handle-btn{ cursor: pointer; padding:7px 20px; border:1px solid #eee; background-color: #fff; border-right:0; } .handle-btn:hover{ background-color: #f1f3f5; } .handle-btn:last-child{ border-right:1px solid #eee; }</style>';
$($('head')[0]).append(style);