This repository has been archived on 2023-08-30. You can view files and clone it, but cannot push or open issues/pull-requests.
bytedo
/
wcui
Archived
1
0
Fork 0

优化样式

old
宇天 2019-07-31 16:00:16 +08:00
parent fa0eef6c3c
commit 00b4a07c8f
4 changed files with 5 additions and 5 deletions

View File

@ -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 */',
`

View File

@ -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,

View File

@ -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;

View File

@ -12,8 +12,8 @@
.container {
overflow: hidden;
width: inherit;
height: inherit;
width: 100%;
height: 100%;
}
}