{
"vue": {
"prefix": "hv",
"body": [
"<div id=\"app\">",
" <h2>{{message}}</h2>",
"</div>",
"",
"<script src=\"https://cdn.jsdelivr.net/npm/vue@2.6.14\"></script>",
"<script>",
" const app = new Vue({",
" el: '#app',",
" data: {",
" message: 'hello',",
" }",
" })",
"</script>",
],
"description": "vue components"
},
"regEmail":{
"prefix": "regEmail",
"body": [
"const regEmail = /^[a-zA-Z0-9_-])+@([a-zA-Z0-9_-])+(\.[a-zA-Z0-9_-])+/",
],
"description": "regEmail components"
},
"regMobile":{
"prefix": "regMobile",
"body": [
"const regMobile = /^(0|86|17951)?(13[0-9]|15[012356789]|17[678]|18[0-9]|14[57])[0-9]{8}$/",
],
"description": "regMobile components"
},
"echarts":{
"prefix": "echarts",
"body": [
"<!DOCTYPE html>",
"<html lang=\"en\">",
"<head>",
" <meta charset=\"UTF-8\">",
" <meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\">",
" <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">",
" <title>Document</title>",
" <script src=\"lib/echarts.min.js\"></script>",
"</head>",
"<body>",
" <div style=\"width: 600px;height: 400px;\"></div>",
" ",
" <script>",
" var mCharts = echarts.init(document.querySelector('div')) ",
" ",
" var option = {",
" title: {",
" text: '$1',",
" link: '',",
" textStyle: {",
" ",
" }",
" },",
" xAxis: {",
" type: '',",
" data: ",
" },",
" yAxis: {",
" type: ''",
" },",
" series: [",
" {",
" name: '',",
" type: '',",
" data: ",
" }",
" ]",
" }",
" ",
" mCharts.setOption(option)",
" </script>",
" ",
"</body>",
"</html>",
],
"description": "echarts components"
}
}
`