From 7e9f523d57c7fb76eec0c1be75c0cdc5258e662c Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Wed, 24 Jan 2018 21:22:03 +0800 Subject: [PATCH] =?UTF-8?q?layedit=20build=20=E7=AC=AC=E4=B8=80=E4=B8=AA?= =?UTF-8?q?=E5=8F=82=E6=95=B0=E6=94=AF=E6=8C=81html=E5=AF=B9=E8=B1=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 更新layedit的build方法,使其第一个参数支持传入原生html textarea对象。 --- src/lay/modules/layedit.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lay/modules/layedit.js b/src/lay/modules/layedit.js index 025e7e6..e771818 100644 --- a/src/lay/modules/layedit.js +++ b/src/lay/modules/layedit.js @@ -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)