优化样式
parent
fa0eef6c3c
commit
00b4a07c8f
|
@ -87,7 +87,7 @@ function mkWCFile({ style, html, js }) {
|
||||||
/import ([\w]*) from '([a-z0-9\/\.\-_]*)'/g,
|
/import ([\w]*) from '([a-z0-9\/\.\-_]*)'/g,
|
||||||
'import $1 from "$2.js"'
|
'import $1 from "$2.js"'
|
||||||
)
|
)
|
||||||
.replace(/constructor\([^)]?\)\s+\{/, 'constructor() {\n super()')
|
.replace(/constructor\([^)]?\)\s+\{/, 'constructor() {\n super();')
|
||||||
.replace(
|
.replace(
|
||||||
'/* render */',
|
'/* render */',
|
||||||
`
|
`
|
||||||
|
|
|
@ -97,11 +97,10 @@ function mkWCFile({ style, html, js }) {
|
||||||
/import ([\w]*) from '([a-z0-9\/\.\-_]*)'/g,
|
/import ([\w]*) from '([a-z0-9\/\.\-_]*)'/g,
|
||||||
'import $1 from "$2.js"'
|
'import $1 from "$2.js"'
|
||||||
)
|
)
|
||||||
|
.replace(/constructor\([^)]?\)\s+\{/, 'constructor() {\n super();')
|
||||||
.replace(
|
.replace(
|
||||||
'/* render */',
|
'/* render */',
|
||||||
`
|
`
|
||||||
super()
|
|
||||||
|
|
||||||
Object.defineProperty(this, 'root', {
|
Object.defineProperty(this, 'root', {
|
||||||
value: this.attachShadow({ mode: 'open' }),
|
value: this.attachShadow({ mode: 'open' }),
|
||||||
writable: true,
|
writable: true,
|
||||||
|
|
|
@ -21,6 +21,7 @@
|
||||||
min-width: 32px;
|
min-width: 32px;
|
||||||
height: 32px;
|
height: 32px;
|
||||||
padding: 0 5px;
|
padding: 0 5px;
|
||||||
|
margin: auto;
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
border: 1px solid nth($cp, 3);
|
border: 1px solid nth($cp, 3);
|
||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
|
|
|
@ -12,8 +12,8 @@
|
||||||
|
|
||||||
.container {
|
.container {
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
width: inherit;
|
width: 100%;
|
||||||
height: inherit;
|
height: 100%;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Reference in New Issue