Merge pull request #146 from fonqing/master

layedit build 第一个参数支持 html 原始对象
pull/196/head
贤心 2018-04-03 03:12:09 +08:00 committed by GitHub
commit 84e1a08577
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -54,7 +54,7 @@ layui.define(['layer', 'form'], function(exports){
var that = this
,config = that.config
,ELEM = 'layui-layedit', textArea = $('#'+id)
,ELEM = 'layui-layedit', textArea = $(typeof(id)=='string'?'#'+id:id)
,name = 'LAY_layedit_'+ (++that.index)
,haveBuild = textArea.next('.'+ELEM)