Compare commits
No commits in common. "bc2b68d97ee206d3e52b8a467ec2d19b9dc34325" and "499ab7f769b678e7037dcbf9b76accc05ba22fd0" have entirely different histories.
bc2b68d97e
...
499ab7f769
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@because/forge",
|
||||
"version": "0.0.11",
|
||||
"version": "0.0.10",
|
||||
"type": "module",
|
||||
"main": "src/index.tsx",
|
||||
"module": "src/index.tsx",
|
||||
|
|
|
|||
|
|
@ -193,7 +193,7 @@ function makeComponent(baseName: string, rootDef: TagDef, rootProps: Record<stri
|
|||
|
||||
const finalProps = { class: classNames.join(' '), ...baseAttrs, ...props, children }
|
||||
|
||||
if ((finalProps as any).dangerouslySetInnerHTML) {
|
||||
if (finalProps.dangerouslySetInnerHTML) {
|
||||
const { children: _, ...rest } = finalProps
|
||||
return <Tag {...rest} />
|
||||
}
|
||||
|
|
@ -284,7 +284,7 @@ export function createScope(scope: string) {
|
|||
return {
|
||||
define: (nameOrDef: string | TagDef, defIfNamed?: TagDef) => {
|
||||
if (typeof nameOrDef === 'string')
|
||||
return define(`${scope}${nameOrDef === 'Root' ? '' : nameOrDef}`, defIfNamed!)
|
||||
return define(`${scope}${nameOrDef === 'Root' ? '' : nameOrDef}`, defIfNamed)
|
||||
else
|
||||
return define(`${scope}${anonName(nameOrDef)}`, nameOrDef as TagDef)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user