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 80
| { "el-dialog": { "prefix": "edg", "body": [ "<el-dialog", " :visible.sync=\"$1\"", " :title=\"$2\"", " :close-on-click-modal=\"false\"", " :close-on-click-esc=\"false\"", " :show-close=\"false\"", ">", " $5", " <span slot=\"footer\">", " <el-button @click=\"reset$3Form\">取消</el-button>", " <el-button type=\"primary\" @click=\"submit$4Form\">确定</el-button>", " </span>", "</el-dialog>" ], "description": "el-dialog" }, "el-form": { "prefix": "efm", "body": [ "<el-form :model=\"$1\" :ref=\"$2\" :rules=\"$3\" label-width=\"auto\">", " <el-form-item label=\"$4\" prop=\"$5\">", " <el-input v-model=\"$6\" placeholder=\"$7\"></el-input>", " </el-form-item>", "</el-form>" ], "description": "el-form" }, "el-table": { "prefix": "etb", "body": [ "<el-table :data=\"$1\" height=\"100%\" border>", " <el-table-column label=\"$2\" prop=\"$3\" align=\"center\"></el-table-column>", "</el-table>" ], "description": "el-table" }, "el-table-column-template": { "prefix": "etct", "body": [ "<el-table-column label=\"${1:操作}\" align=\"center\">", " <template slot-scope=\"scope\">", " <el-button type=\"text\" icon=\"el-icon-edit\" @click=\"edit$2(scope.row)\">编辑</el-button>", " <el-button type=\"text\" icon=\"el-icon-delete\" @click=\"del$2(scope.row)\">删除</el-button>", " </template>", "</el-table-column>" ], "description": "el-table-column-template" }, "el-upload": { "prefix": "eup", "body": [ "<el-upload", " :action=\"$api.upload($1)\"", " multiple$2", " :data=\"${3:uploadData}\"", " :show-file-list=\"${4:false}\"", " :accept=\"$5\"", " :before-remove=\"${6:beforeRemove}\"", " :on-remove=\"${7:handleRemove}\"", " :on-success=\"${8:handleSuccess}\"", " :on-error=\"${9:handleError}\"", " :file-list=\"${10:fileList}\"", ">", " <el-button size=\"small\" type=\"primary\">${11:点击上传}</el-button>", "</el-upload>" ], "description": "el-upload" }, "acceptExcel": { "prefix": "acex", "body": [ "accept=\"application/vnd.ms-excel, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet, application/vnd.ms-project\"" ], "description": "acceptExcel" } }
|