1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79
| { "el-form模板": { "prefix": "el-form", "description": "创建el-form", "body": [ "<el-form", " :model=\"formData\"", " :rules=\"rules\"", " ref=\"formDataRef\"", " label-width=\"80px\"", " @submit.prevent", ">", "<!--input输入-->", " <el-form-item label=\"\" prop=\"\" >", " <el-input clearable placeholder=\"提示信息\" v-model.trim=\"formData.\"></el-input>", " </el-form-item>", "<!--textarea输入-->", " <el-form-item label=\"\" prop=\"\">", " <el-input", " clearable", " placeholder=\"提示信息\"", " type=\"textarea\"", " :rows=\"5\"", " :maxlength=\"150\"", " resize=\"none\"", " show-word-limit", " v-model.trim=\"formData.\"", " ></el-input>", " </el-form-item>", "<!-- 单选 -->", " <el-form-item label=\"\" prop=\"\" >", " <el-radio-group v-model=\"formData.\">", " <el-radio :label=\"值1\">显示信息</el-radio>", " <el-radio :label=\"值2\">显示信息</el-radio>", " </el-radio-group>", " </el-form-item>", "<!-- 下拉框 -->", " <el-form-item label=\"\" prop=\"\" >", " <el-select clearable placeholder=\"提示信息\" v-model=\"formData.\" ,>", " <el-option :value=\"值1\" label=\"显示信息\"></el-option>", " <el-option :value=\"值2\" label=\"显示信息\"></el-option>", " </el-select>", " </el-form-item>", "</el-form>", ] }, "el-input模板": { "prefix": "el-input", "description": "创建el-input", "body": [ "<!--input输入-->", " <el-form-item label=\"\" prop=\"\" >", " <el-input clearable placeholder=\"提示信息\" v-model=\"formData.\"></el-input>", " </el-form-item>", ] }, "el-card模板": { "prefix": "el-card", "description": "创建el-card", "body": [ "<el-card class=\"box-card\">", " <div slot=\"header\" class=\"clearfix\">", " <span>卡片名称</span>", " <el-button style=\"float: right; padding: 3px 0\" type=\"text\">操作按钮</el-button>", " </div>", " <div>", " 这里是内容", " </div>", "</el-card>", ] }, "el-divider竖线":{ "prefix":"el-divider", "description": "竖线", "body": [ "<el-divider direction=\"vertical\" />" ] } }
|