We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 65ecfa5 commit fcbf14aCopy full SHA for fcbf14a
src/layer.js
@@ -233,7 +233,7 @@ Class.pt.vessel = function(conType, callback){
233
for(var i = 0, len = config.btn.length; i < len; i++){
234
button += '<a class="'+ doms[6] +''+ i +'">'+ config.btn[i] +'</a>'
235
}
236
- return '<div class="'+ doms[6] +' layui-layer-btn-'+ (config.btnAlign||'') +'">'+ button +'</div>'
+ return '<div class="'+ doms[6] + ((config.btnAlign&&config.btnAlign.length>0)? (' layui-layer-btn-' + config.btnAlign) : ' ') +'">'+ button +'</div>'
237
}() : '')
238
+ (config.resize ? '<span class="layui-layer-resize"></span>' : '')
239
+ '</div>'
0 commit comments