优化样式
parent
fa0eef6c3c
commit
00b4a07c8f
|
@ -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 */',
|
||||
`
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -12,8 +12,8 @@
|
|||
|
||||
.container {
|
||||
overflow: hidden;
|
||||
width: inherit;
|
||||
height: inherit;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Reference in New Issue