mirror of
https://gitee.com/layui/layui.git
synced 2025-04-05 17:38:02 +08:00
优化 checkbox 元素的 lay-skin
,当设置非内置风格时,不再强制显示为默认风格
This commit is contained in:
parent
0ecaad8c5f
commit
9714360050
@ -690,12 +690,12 @@ layui.define(['lay', 'layer', 'util'], function(exports){
|
||||
}()));
|
||||
var disabled = this.disabled;
|
||||
|
||||
if(!skins[skin]) skin = 'primary'; // 若非内置风格,则强制为默认风格
|
||||
// if(!skins[skin]) skin = 'primary'; // 若非内置风格,则强制为默认风格
|
||||
var RE_CLASS = CLASS[skin] || CLASS.checkbox;
|
||||
|
||||
// 替代元素
|
||||
var hasRender = othis.next('.' + RE_CLASS[0]);
|
||||
hasRender[0] && hasRender.remove(); // 如果已经渲染,则Rerender
|
||||
hasRender[0] && hasRender.remove(); // 若已经渲染,则 Rerender
|
||||
|
||||
// 若存在标题模板,则优先读取标题模板
|
||||
if(othis.next('[lay-checkbox]')[0]){
|
||||
|
Loading…
Reference in New Issue
Block a user