From b8386ea6e76905c48d4bb57ed4d6af7fd5c01108 Mon Sep 17 00:00:00 2001
From: mjhuang <hmj0718@163.com>
Date: Wed, 21 Jun 2017 17:19:06 +0800
Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3=E5=BC=B9=E7=AA=97=E6=8C=89?=
 =?UTF-8?q?=E9=92=AE=E9=97=AE=E9=A2=98?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

修改代码 src/dialog.js 的 393 行,
选择器[key=value]的形式下,会出现的问题如下:
当button的配置项内没有 id, 并且 value 的值时多个英文单词,例如:Click me. 这个情况下,该按钮的i-id=Click
me。 因此造成 [i-id=Click me]这个选择无法获取按钮的dom,导致功能异常。

修改成[key="value"]的形式,则可解决该问题。
---
 src/dialog.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/dialog.js b/src/dialog.js
index a14431d..30b1841 100644
--- a/src/dialog.js
+++ b/src/dialog.js
@@ -390,7 +390,7 @@ $.extend(prototype, {
                     '</button>';
 
                 that._$('button')
-                    .on('click', '[i-id=' + id + ']', function(event) {
+                    .on('click', '[i-id="' + id + '"]', function(event) {
                         var $this = $(this);
                         if (!$this.attr('disabled')) { // IE BUG
                             that._trigger(id);