mirror of
https://github.com/shoelace-style/webawesome.git
synced 2026-01-12 04:09:12 +00:00
fix style types
This commit is contained in:
@@ -13,7 +13,7 @@ import '../checkbox/checkbox';
|
||||
import '../icon/icon';
|
||||
import '../spinner/spinner';
|
||||
import styles from './tree-item.styles';
|
||||
import type { PropertyValueMap } from 'lit';
|
||||
import type { CSSResultGroup, PropertyValueMap } from 'lit';
|
||||
|
||||
export function isTreeItem(element: Element) {
|
||||
return element && element.getAttribute('role') === 'treeitem';
|
||||
@@ -49,7 +49,7 @@ export function isTreeItem(element: Element) {
|
||||
*/
|
||||
@customElement('sl-tree-item')
|
||||
export default class SlTreeItem extends ShoelaceElement {
|
||||
static styles = styles;
|
||||
static styles: CSSResultGroup = styles;
|
||||
|
||||
private readonly localize = new LocalizeController(this);
|
||||
|
||||
|
||||
@@ -8,6 +8,7 @@ import { LocalizeController } from '../../utilities/localize';
|
||||
import { isTreeItem } from '../tree-item/tree-item';
|
||||
import styles from './tree.styles';
|
||||
import type SlTreeItem from '../tree-item/tree-item';
|
||||
import type { CSSResultGroup } from 'lit';
|
||||
|
||||
function syncCheckboxes(changedTreeItem: SlTreeItem) {
|
||||
function syncAncestors(treeItem: SlTreeItem) {
|
||||
@@ -56,7 +57,7 @@ function syncCheckboxes(changedTreeItem: SlTreeItem) {
|
||||
*/
|
||||
@customElement('sl-tree')
|
||||
export default class SlTree extends ShoelaceElement {
|
||||
static styles = styles;
|
||||
static styles: CSSResultGroup = styles;
|
||||
|
||||
@query('slot:not([name])') defaultSlot: HTMLSlotElement;
|
||||
@query('slot[name=expand-icon]') expandedIconSlot: HTMLSlotElement;
|
||||
|
||||
Reference in New Issue
Block a user