Merge pull request #169 in YR/star-web-components from fixbug to master

* commit '44652d4785c0b5bf0e503004eaba0cddabffd8eb':
  更改错误
This commit is contained in:
汪昌棋 2022-11-23 18:52:14 +08:00
commit 2f958640f1
4 changed files with 11 additions and 10 deletions

View File

@ -503,9 +503,9 @@ const baseComponentStyle = css`
--bor-message:var(--auto-1px) solid var(--opacity-white-12);
/* SelectMenu */
/* 底色/弹窗浅 */
--bgc-dialog: var(-gradient-shallow);
--bgc-dialog: var(--gradient-shallow);
/* 底色/弹窗深 */
--bgc-dialog-dark: var(-gradient-deep);
--bgc-dialog-dark: var(--gradient-deep);
/* Li */
--line-height: calc(3 * var(--font-main-size));
--li-left-padding: var(--auto-10px);

View File

@ -4,14 +4,14 @@ import clockStyles from './clock-widget-style.js'
import './date/date.js'
import './time/time.js'
@customElement('clock-widget')
class ClockContainer extends LitElement {
export class ClockContainer extends LitElement {
@property({type: String}) name = 'clock-widget'
@property({type: String}) type = 'platinic'
@property({type: String}) hourFirst = 0
@property({type: String}) hourSecond = 0
@property({type: String}) minuteFirst = 0
@property({type: String}) minuteSecond = 0
@property({type: String}) date = 0
@property({type: String}) hourFirst = '0'
@property({type: String}) hourSecond = '0'
@property({type: String}) minuteFirst = '0'
@property({type: String}) minuteSecond = '0'
@property({type: String}) date = '0'
public static override get styles(): CSSResultArray {
return [clockStyles]

View File

@ -139,6 +139,7 @@ export default class StarDock extends StarBaseElement {
child.order = order
}
this.changeState(child, 'added', callback)
return child
}
removeContainerChild = (element: HTMLElement, callback?: Function) => {

View File

@ -3,7 +3,7 @@ import {customElement} from 'lit/decorators.js'
import '../../../components/button/button'
import '../../../components/ul/ul'
import '../../../components/li//li'
import {baseStyles} from '../../../components/base/base-style'
import {globalStyles} from '../../../components/base/global-style'
@customElement('panel-overflowmenu')
export class PanelOverflowMenu extends LitElement {
@ -257,7 +257,7 @@ export class PanelOverflowMenu extends LitElement {
}
static get styles(): CSSResultArray {
return [baseStyles]
return [globalStyles]
}
}