Former-commit-id: a9475bf63ea700bbf4b610403a36619b47ac71d5 [formerly a640a7eaa77067bc7e4b32bb49017217a8119eae] [formerly a9475bf63ea700bbf4b610403a36619b47ac71d5 [formerly a640a7eaa77067bc7e4b32bb49017217a8119eae] [formerly a9475bf63ea700bbf4b610403a36619b47ac71d5 [formerly a640a7eaa77067bc7e4b32bb49017217a8119eae] [formerly a640a7eaa77067bc7e4b32bb49017217a8119eae [formerly b06134a6b62b622ac616d22836de56a98970b5a3 [formerly f18615d70aacc3c26ae4bbbc9dcc738585e83077]]]]] Former-commit-id: 641977479f0e21be8a9fde1019739f45e8683e0d Former-commit-id: 028f2ce126a64f10b38ce8f155118728af9be41d Former-commit-id: 535a510473b070a6c20126c159e3d010a4ffc45d [formerly d03ff10b4b85fb4bbab60a5aa4984f2d34ebe29d] Former-commit-id: 86a37e89d83837ec33f50635c3d63728f2033ddd Former-commit-id: a0512214acffe2208d4208b60e65f9aa31dcda71 Former-commit-id: e10427b75c3a3db7f80a09543b0d26652fd2c33c Former-commit-id: 6b4cee2466a18e24a5e3c35018c8d2da2d5caa0b Former-commit-id: 3c824f0d1d7023cdbee98fd73ec754ff417375d7
60 lines
1.3 KiB
JSON
60 lines
1.3 KiB
JSON
{
|
|
// 一个新的页面
|
|
"d2-new-page": {
|
|
"prefix": "dd-new-page",
|
|
"body": [
|
|
"<template>",
|
|
" <d2-container type=\"${1:full}\" class=\"page\">",
|
|
" ${2:page-name}",
|
|
" </d2-container>",
|
|
"</template>",
|
|
"",
|
|
"<script>",
|
|
"export default {",
|
|
" data () {",
|
|
" return {}",
|
|
" },",
|
|
" computed: {",
|
|
" },",
|
|
" methods: {",
|
|
" }",
|
|
"}",
|
|
"</script>",
|
|
"",
|
|
"<style lang=\"scss\" scoped>",
|
|
"@import '~@/assets/style/public.scss';",
|
|
".page {",
|
|
" // Your page style here",
|
|
" // Do not use empty rulesets",
|
|
" // If empty, delete it",
|
|
"}",
|
|
"</style>"
|
|
],
|
|
"description": "new page"
|
|
},
|
|
// d2-container 组件 header 插槽
|
|
"d2-container-header": {
|
|
"prefix": "dd-container-header",
|
|
"body": [
|
|
"<template slot=\"header\">${1:header}</template>"
|
|
],
|
|
"description": "d2-container component header slot"
|
|
},
|
|
// d2-container 组件 footer 插槽
|
|
"d2-container-footer": {
|
|
"prefix": "dd-container-footer",
|
|
"body": [
|
|
"<template slot=\"footer\">${1:footer}</template>"
|
|
],
|
|
"description": "d2-container component footer slot"
|
|
},
|
|
// 图标组件
|
|
"d2-icon": {
|
|
"prefix": "dd-icon",
|
|
"body": [
|
|
"<d2-icon name=\"${1:github}\"/>"
|
|
],
|
|
"description": "d2-icon component"
|
|
}
|
|
}
|