Skip to content

Commit

Permalink
feat: [components] customer, createBlock -> h
Browse files Browse the repository at this point in the history
  • Loading branch information
deot committed Nov 13, 2023
1 parent d06e1ff commit 50031eb
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions packages/components/customer/customer.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/** @jsxImportSource vue */

import { defineComponent, createBlock } from 'vue';
import { defineComponent, h } from 'vue';
import { props as customerProps } from './customer-props';

const COMPONENT_NAME = 'vc-customer';
Expand All @@ -13,10 +13,8 @@ export const Customer = defineComponent({
name: COMPONENT_NAME,
props: customerProps,
setup(props, context) {
const Wrapper = createBlock(() => {
return () => h(() => {
return props.render(context.attrs, context);
});

return () => Wrapper;
}
});

0 comments on commit 50031eb

Please sign in to comment.