u
This commit is contained in:
1 parent
5136bb90bd
commit
603f938e96
17 files changed
+334
-654
No files matched your search
@@ -0,0 +1,39 @@
|
||||
{
|
||||
"Print AoDesignComponent TSX": {
|
||||
"scope": "typescriptreact",
|
||||
"prefix": "atsx",
|
||||
"body": [
|
||||
"import { defineComponent } from 'vue';",
|
||||
"import { getPrefixCls } from '../_utils/getPrefixCls';",
|
||||
"",
|
||||
"export default defineComponent({",
|
||||
" name: '${1:AoComponent}',",
|
||||
" props: {",
|
||||
" },",
|
||||
" emits: [],",
|
||||
" setup(props, { slots, emit }) {",
|
||||
" const prefixCls = getPrefixCls('${2:component}');",
|
||||
" return () => (",
|
||||
" <div class={prefixCls}>",
|
||||
" {slots.default?.()}",
|
||||
" </div>",
|
||||
" );",
|
||||
" }",
|
||||
"})"
|
||||
]
|
||||
},
|
||||
"Print AoDesignComponent SCSS": {
|
||||
"scope": "scss",
|
||||
"prefix": "ascss",
|
||||
"body": [
|
||||
"@use '../_styles/_variables.scss' as *;",
|
||||
"@use 'sass:color';",
|
||||
"",
|
||||
"$${1:component}-prefix: #{$prefix}-${1:component};",
|
||||
"",
|
||||
".#{${1:component}-prefix} {",
|
||||
"}"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user