Skip to content

Commit

Permalink
feat: export mergeTemplateAttrs
Browse files Browse the repository at this point in the history
  • Loading branch information
hunterliu1003 committed Mar 26, 2024
1 parent dd6d285 commit 6f54565
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,5 @@ export {
export {
isTemplate,
templateToVNodeFn,
mergeTemplateAttrs,
} from './utils'
2 changes: 1 addition & 1 deletion src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ function getSlots<T extends Component>(slots?: {
}, {})
}

function mergeTemplateAttrs<T extends Component>(template: Template<T>) {
export function mergeTemplateAttrs<T extends Component>(template: Template<T>) {
return {
...getAttrsFromByTemplate(template?.attrs),
...getAttrsFromByTemplate(template?.props),
Expand Down

0 comments on commit 6f54565

Please sign in to comment.