diff --git a/build.dev.js b/build.dev.js index 2d9f06b..f721101 100644 --- a/build.dev.js +++ b/build.dev.js @@ -66,7 +66,7 @@ function mkWCFile({ style, html, js }) { let name = '' let props = '' - js = js.replace(/props = (\{[\w\W]*?\})/, function(s, m) { + js = js.replace(/props = (\{[\w\W]*?\n\s{2}?\})/, function(s, m) { props = m var attr = new Function( `var props = ${m}, attr = []; for(var i in props){attr.push(i)}; return attr` diff --git a/build.prod.js b/build.prod.js index 20e783d..81310f5 100644 --- a/build.prod.js +++ b/build.prod.js @@ -75,7 +75,7 @@ function mkWCFile({ style, html, js }) { let name, props - js = js.replace(/props = (\{[\w\W]*?\})/, function(s, m) { + js = js.replace(/props = (\{[\w\W]*?\n\s{2}?\})/, function(s, m) { props = m var attr = new Function( `var props = ${m}, attr = []; for(var i in props){attr.push(i)}; return attr` diff --git a/src/form/button.wc b/src/form/button.wc index d106a7d..3edefc2 100644 --- a/src/form/button.wc +++ b/src/form/button.wc @@ -239,6 +239,7 @@