From 503e7ef06f6bcd70e42c5e798e20344b8d443e38 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AE=87=E5=A4=A9?= Date: Mon, 22 Jul 2019 21:18:33 +0800 Subject: [PATCH] =?UTF-8?q?icon=E7=BB=84=E4=BB=B6=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?=E5=B0=BA=E5=AF=B8&=E9=A2=9C=E8=89=B2=E7=BA=A6=E6=9D=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- build.dev.js | 3 +- src/form/input.wc | 70 +++++++++++++++++++++++++++++++++++++++++++++++ src/icon/index.wc | 50 +++++++++++++++++++++++++++++++-- 3 files changed, 120 insertions(+), 3 deletions(-) create mode 100644 src/form/input.wc diff --git a/build.dev.js b/build.dev.js index 4854a25..cc4dcb6 100644 --- a/build.dev.js +++ b/build.dev.js @@ -63,7 +63,8 @@ function compileScss(code = '') { function mkWCFile({ style, html, js }) { style = compileScss(style) - let name, props + let name = '' + let props = '' js = js.replace(/props = (\{[\w\W]*?\})/, function(s, m) { props = m diff --git a/src/form/input.wc b/src/form/input.wc new file mode 100644 index 0000000..9cddc68 --- /dev/null +++ b/src/form/input.wc @@ -0,0 +1,70 @@ + + + + + diff --git a/src/icon/index.wc b/src/icon/index.wc index d3a8cfd..39a131e 100644 --- a/src/icon/index.wc +++ b/src/icon/index.wc @@ -5,14 +5,16 @@