Skip to content

Commit

Permalink
refactor(cli): improve create command template code (#1806)
Browse files Browse the repository at this point in the history
  • Loading branch information
ljt990218 authored Oct 23, 2024
1 parent 60656e8 commit cf0be37
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/varlet-cli/template/create/index.ts.ejs
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
import <%- bigCamelizeName %> from './<%- bigCamelizeName %><%- style === 'vue' ? '.vue' : '' %>'
import { withInstall } from '../utils/components'
import { withInstall, withPropsDefaultsSetter } from '../utils/components'
import { props as <%- camelizeName %>Props } from './props'

withInstall(<%- bigCamelizeName %>)
withPropsDefaultsSetter(<%- bigCamelizeName %>, <%- camelizeName %>Props)

export { <%- camelizeName %>Props }

export const _<%- bigCamelizeName %>Component = <%- bigCamelizeName %>

Expand Down

0 comments on commit cf0be37

Please sign in to comment.