Skip to content

Commit

Permalink
fix:theme
Browse files Browse the repository at this point in the history
  • Loading branch information
ananzhusen committed Dec 30, 2024
1 parent 0675932 commit 32ff970
Showing 1 changed file with 22 additions and 1 deletion.
23 changes: 22 additions & 1 deletion packages/core/src/theme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,27 @@ export interface Theme {
};
}

export const themeKeys = [
'color',
'hoverColor',
'activeColor',
'disabledColor',
'background',
'activeBackground', //有无必要
'hoverBackground',
'disabledBackground',
'anchorColor',
'hoverAnchorColor',
'anchorBackground',
'animateColor',
'textColor',
'ruleColor',
'ruleLineColor',
'gridColor',
'lineColor',
// "ruleOptions"
]

export const defaultTheme: Theme = {
dark: {
color: '#bdc7db',
Expand Down Expand Up @@ -142,7 +163,7 @@ export const le5leTheme = {
const styleSheets = document.styleSheets;
for (let i = 0; i < styleSheets.length; i++) {
const styleSheet = styleSheets[i];
if (styleSheet.ownerNode && styleSheet.ownerNode.id === id) {
if (styleSheet.ownerNode && (styleSheet.ownerNode as any).id === id) {
return styleSheet;
}
}
Expand Down

0 comments on commit 32ff970

Please sign in to comment.