u
This commit is contained in:
1 parent
14f9844430
commit
785bce1907
27 files changed
+1051
-175
No files matched your search
+9
-1
@@ -29,12 +29,20 @@
|
||||
"export default defineComponent({",
|
||||
" name: '${1:AoComponent}',",
|
||||
" props: {",
|
||||
" class: {",
|
||||
" type: [String, Array, Object],",
|
||||
" default: '',",
|
||||
" },",
|
||||
" style: {",
|
||||
" type: Object,",
|
||||
" default: () => ({}),",
|
||||
" },",
|
||||
" },",
|
||||
" emits: [],",
|
||||
" setup(props, { slots, emit }) {",
|
||||
" const prefixCls = getPrefixCls('${2:component}');",
|
||||
" return () => (",
|
||||
" <div class={prefixCls}>",
|
||||
" <div class={[prefixCls, props.class]} style={{ ...props.style }}>",
|
||||
" {slots.default?.()}",
|
||||
" </div>",
|
||||
" );",
|
||||
|
||||
Reference in new issue
Block a user