Skip to content

Commit

Permalink
feat(core): ComponentConfig.props[*] now support number & boolean
Browse files Browse the repository at this point in the history
  • Loading branch information
lingbopro committed Dec 8, 2024
1 parent 8586643 commit 407fc91
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/element.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ interface ComponentConfig<ComponentClass extends HTMLElement> {
/** CSS 样式字符串 */
style: string | string[];
/** 属性列表 */
props: { [name: string]: string };
props: { [name: string]: PropType };
/** 属性监听列表 */
syncProps?: string[];
/** 初始化函数 */
Expand Down

0 comments on commit 407fc91

Please sign in to comment.