From 5fcd5057393d4b1e3030fabf7e73b0962824e255 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AE=87=E5=A4=A9?= Date: Mon, 22 Jul 2019 15:21:43 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E6=88=90button=E7=BB=84=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- build.dev.js | 4 +- build.prod.js | 2 +- src/css/var.scss | 2 +- src/form/button.wc | 276 +++++++++++++++++++++++++++++++++++++-------- src/icon/index.wc | 5 +- 5 files changed, 235 insertions(+), 54 deletions(-) diff --git a/build.dev.js b/build.dev.js index 675de0a..4854a25 100644 --- a/build.dev.js +++ b/build.dev.js @@ -19,7 +19,7 @@ const BASE_SCSS = ` $ct: #3fc2a7 #19b491 #16967a; $cg: #58d68d #2ecc71 #27ae60; $cpp: #ac61ce #9b59b6 #8e44ad; -$cb: #52a3de #2d8dd6 #2776b1; +$cb: #66b1ff #409eff #3a8ee6; $cr: #ff5061 #eb3b48 #ce3742; $co: #ffb618 #f39c12 #e67e22; $cp: #f3f5fb #e8ebf4 #dae1e9; @@ -111,6 +111,8 @@ function mkWCFile({ style, html, js }) { 'use strict' +const log = console.log + ${js} customElements.define('wc-${name.toLowerCase()}', ${name}) diff --git a/build.prod.js b/build.prod.js index 4b9fe17..ce63312 100644 --- a/build.prod.js +++ b/build.prod.js @@ -18,7 +18,7 @@ const BASE_SCSS = ` $ct: #3fc2a7 #19b491 #16967a; $cg: #58d68d #2ecc71 #27ae60; $cpp: #ac61ce #9b59b6 #8e44ad; -$cb: #52a3de #2d8dd6 #2776b1; +$cb: #66b1ff #409eff #3a8ee6; $cr: #ff5061 #eb3b48 #ce3742; $co: #ffb618 #f39c12 #e67e22; $cp: #f3f5fb #e8ebf4 #dae1e9; diff --git a/src/css/var.scss b/src/css/var.scss index 52cba55..74b4dbc 100644 --- a/src/css/var.scss +++ b/src/css/var.scss @@ -1,7 +1,7 @@ $ct: #3fc2a7 #19b491 #16967a; $cg: #58d68d #2ecc71 #27ae60; $cpp: #ac61ce #9b59b6 #8e44ad; -$cb: #52a3de #2d8dd6 #2776b1; +$cb: #66b1ff #409eff #3a8ee6; $cr: #ff5061 #eb3b48 #ce3742; $co: #ffb618 #f39c12 #e67e22; $cp: #f3f5fb #e8ebf4 #dae1e9; diff --git a/src/form/button.wc b/src/form/button.wc index c2fa307..d106a7d 100644 --- a/src/form/button.wc +++ b/src/form/button.wc @@ -1,8 +1,8 @@