diff --git a/build.dev.js b/build.dev.js index f721101..4bce90e 100644 --- a/build.dev.js +++ b/build.dev.js @@ -87,7 +87,7 @@ function mkWCFile({ style, html, js }) { /import ([\w]*) from '([a-z0-9\/\.\-_]*)'/g, 'import $1 from "$2.js"' ) - .replace(/constructor\([^)]?\)\s+\{/, 'constructor() {\n super()') + .replace(/constructor\([^)]?\)\s+\{/, 'constructor() {\n super();') .replace( '/* render */', ` diff --git a/build.prod.js b/build.prod.js index 0cf66bc..2d3060f 100644 --- a/build.prod.js +++ b/build.prod.js @@ -97,11 +97,10 @@ function mkWCFile({ style, html, js }) { /import ([\w]*) from '([a-z0-9\/\.\-_]*)'/g, 'import $1 from "$2.js"' ) + .replace(/constructor\([^)]?\)\s+\{/, 'constructor() {\n super();') .replace( '/* render */', ` - super() - Object.defineProperty(this, 'root', { value: this.attachShadow({ mode: 'open' }), writable: true, diff --git a/src/form/button.wc b/src/form/button.wc index 946e8c4..afb21a2 100644 --- a/src/form/button.wc +++ b/src/form/button.wc @@ -21,6 +21,7 @@ min-width: 32px; height: 32px; padding: 0 5px; + margin: auto; font-size: 14px; border: 1px solid nth($cp, 3); border-radius: 4px; diff --git a/src/scroll/index.wc b/src/scroll/index.wc index 0c0cd57..a6e05d2 100644 --- a/src/scroll/index.wc +++ b/src/scroll/index.wc @@ -12,8 +12,8 @@ .container { overflow: hidden; - width: inherit; - height: inherit; + width: 100%; + height: 100%; } }