{"id":13521628,"url":"https://github.com/snowffer/Element-UI-Snippets-ST","last_synced_at":"2025-03-31T20:32:14.430Z","repository":{"id":71270004,"uuid":"115300184","full_name":"snowffer/Element-UI-Snippets-ST","owner":"snowffer","description":"Code snippets of element-ui for sublime text","archived":false,"fork":false,"pushed_at":"2019-01-29T04:23:24.000Z","size":59,"stargazers_count":23,"open_issues_count":1,"forks_count":5,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-11-02T05:32:56.357Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/snowffer.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2017-12-25T02:38:58.000Z","updated_at":"2021-06-25T00:50:06.000Z","dependencies_parsed_at":"2023-03-11T10:09:58.048Z","dependency_job_id":null,"html_url":"https://github.com/snowffer/Element-UI-Snippets-ST","commit_stats":null,"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/snowffer%2FElement-UI-Snippets-ST","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/snowffer%2FElement-UI-Snippets-ST/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/snowffer%2FElement-UI-Snippets-ST/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/snowffer%2FElement-UI-Snippets-ST/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/snowffer","download_url":"https://codeload.github.com/snowffer/Element-UI-Snippets-ST/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246536124,"owners_count":20793390,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-01T06:00:36.587Z","updated_at":"2025-03-31T20:32:14.087Z","avatar_url":"https://github.com/snowffer.png","language":null,"funding_links":[],"categories":["Tools"],"sub_categories":[],"readme":"### Install\n\n#### Manual Install\nCopy the folder element-ui-snippets to the path directly:\n\n+ **Mac**: /Users/*\u003c your-user-name \u003e*/Library/Application Support/Sublime Text 3/Packages/User/\n+ **Windows**: *\u003c your-installed-driver \u003e* :\\Users\\ *\u003c your-user-name \u003e* \\AppData\\Roaming\\Sublime Text 3\\Packages\\User\\\n\n#### Through Package Control\n\n1. Install Package Control\n2. Open Command Palette\n3. Type: Package Control: Install Package, and hit Enter\n4. Type: Element UI Snippets, and hit Enter\n\n### Special Instruction：\n\n1. For the components like `el-table` which need children components to be content, use `v-for` to loop to generate the children components.\n2. By default, there would be no auto-complete hints in .html file or the template part in .vue file. If you want it to be shown, you should change the sublime text settings by yourself. Here are the steps (Mac version for example):\n    1. Select menu: Sublime Text -\u003e Preferences -\u003e Settings\n    2. Make sure the value of the option `auto_complete` is `true`\n    3. In Preferences.sublime-settings--Users file, add this key-value:\n        ````\n        \"auto_complete_triggers\": [\n            {\n                \"selector\": \"text.html\",\n                \"characters\": \"l\"\n            }\n        ],\n        ````\n    **Warning: this setting would trigger all sinppets which contain letter 'l' even they are not defined in Element UI Snippets.**\n\n### Snippets List\n\n1. All the Element UI tags below, ignore the closure and more detailed information. Such as `elr` to `\u003cel-radio\u003e`, actually that represents `\u003cel-radio v-model=\"${1}\" label=\"${2}\"\u003e$3\u003c/el-radio\u003e`\n2. The sinppets' order follows the order of the components of Guide on Element UI official website basically. Supply extra General and Options parts.\n3. Totally 104 snippets. 9 of them are not implemented yet.\n4. **Only work in .html or .vue file.**\n\n\n\n#### Basic Part\n|No.|Trigger\u0026nbsp;Key|Element Tag|\n|:------:|:--------------:|:--------|\n|1. | `elrow` | `\u003cel-row\u003e` |\n|2. | `elcol` | `\u003cel-col\u003e` |\n|3. | `elcon` | `\u003cel-container\u003e` |\n|4. | `elas` | `\u003cel-aside\u003e` |\n|5. | `elhe` | `\u003cel-header\u003e` |\n|6. | `elma` | `\u003cel-main\u003e` |\n|7. | `elfo` | `\u003cel-footer\u003e` |\n|8. | `elcb` | `#409EFF` |\n|9. | `elcs` | `#67C23A` |\n|10. | `elcw` | `#E6A23C` |\n|11. | `elcd` | `#F56C6C` |\n|12. | `elci` | `#909399` |\n|13. | TBD | `#303133` |\n|14. | TBD | `#606266` |\n|15. | TBD | `#909399` |\n|16. | TBD | `#C0C4CC` |\n|17. | TBD | `#DCDFE6` |\n|18. | TBD | `#E4E7ED` |\n|19. | TBD | `#EBEEF5` |\n|20. | TBD | `#F2F6FC` |\n|21. | `eltypo` | `font-family: \"Helvetica Neue\",Helvetica,\"PingFang SC\",\"Hiragino Sans GB\",\"Microsoft YaHei\",\"微软雅黑\",Arial,sans-serif;` |\n|22. | `elb` | `el-button` |\n\n#### Form Part\n\nNo. |  Trigger Key | Element Tag\n|:------:|:--------------:|:--------|\n|1. | `elr` | `\u003cel-radio\u003e` |\n|2. | `elrg` | `\u003cel-radio-group\u003e` |\n|3. | `elc` | `\u003cel-checkbox\u003e` |\n|4. | `elcg` | `\u003cel-checkbox-group\u003e` |\n|5. | `eli` | `\u003cel-input\u003e` |\n|6. | `elit` | `\u003cel-input type=\"textarea\"\u003e` |\n|7. | `elin` | `\u003cel-input-number\u003e` |\n|8. | `elsel` | `\u003cel-select\u003e` |\n|9. | `elop` | `\u003cel-option\u003e` |\n|10. | `elca` | `\u003cel-cascader\u003e` |\n|11. | `elsw` | `\u003cel-swtich\u003e` |\n|12. | `elsl` | `\u003cel-slider\u003e` |\n|13. | `eltp` | `\u003cel-time-picker\u003e` |\n|14. | `elts` | `\u003cel-time-select\u003e` |\n|15. | `eldp` | `\u003cel-date-picker\u003e` |\n|16. | `eldtp` | `\u003cel-date-picker type=\"datetime\"\u003e` |\n|17. | `elu` | `\u003cel-upload\u003e` |\n|18. | `elra` | `\u003cel-rate\u003e` |\n|19. | `elcp` | `\u003cel-color-picker\u003e` |\n|20. | `eltr` | `\u003cel-transfer\u003e` |\n|21. | `elf` | `\u003cel-form\u003e` |\n|22. | `elfi` | `\u003cel-form-item\u003e` |\n\n#### Data Part\n\nNo. |  Trigger Key | Element Tag\n|:------:|:--------------:|:--------|\n|1. | `elta` | `\u003cel-table\u003e` |\n|2. | `eltac` | `\u003cel-table-column\u003e` |\n|3. | `eltag` | `\u003cel-tag\u003e` |\n|4. | `eltags` | `\u003cel-tag type=\"success\"\u003e` |\n|5. | `eltagi` | `\u003cel-tag type=\"info\"\u003e` |\n|6. | `eltagw` | `\u003cel-tag type=\"warning\"\u003e` |\n|7. | `eltagd` | `\u003cel-tag type=\"danger\"\u003e` |\n|8. | `elpr` | `\u003cel-progress\u003e` |\n|9. | `elprc` | `\u003cel-progress type=\"circle\"\u003e` |\n|10. | `eltree` | `\u003cel-tree\u003e` |\n|11. | `elpa` | `\u003cel-pagination\u003e` |\n|12. | `elba` | `\u003cel-badge\u003e` |\n\n\n#### Notice Part\n\nNo. |  Trigger Key | Element Tag\n|:------:|:--------------:|:--------|\n|1. | `elal` | `\u003cel-alert\u003e` |\n|2. | `elals` | `\u003cel-alert type=\"success\"\u003e` |\n|3. | `elali` | `\u003cel-alert type=\"info\"\u003e` |\n|4. | `elalw` | `\u003cel-alert type=\"warning\"\u003e` |\n|5. | `elale` | `\u003cel-alert type=\"error\"\u003e` |\n|6. | `elloads` | \t`element-loading-*` |\n|7. | `elme` | `this.$message({})` |\n|8. | `elmes` | `this.$message({type: 'success'})` |\n|9. | `elmew` | `this.$message({type: 'warning'})` |\n|10. | `elmee` | `this.$message({type: 'error'})` |\n|11. | `elmei` | `this.$message({type: 'info'})` |\n|12. | `elmebox` | `this.$msgbox({})` |\n|13. | `elmeal` | `this.$alert({})` |\n|14. | `elmecon` | `this.$confirm({})` |\n|15. | `elmecons` | `this.$confirm({type: 'success'})` |\n|16. | `elmeconw` | `this.$confirm({type: 'warning'})` |\n|17. | `elmecone` | `this.$confirm({type: 'error'})` |\n|18. | `elmeconi` | `this.$confirm({type: 'info'})` |\n|19. | `elmepro` | `this.$prompt({})` |\n|20. | `elnoti` | `this.$notify({})` |\n|21. | `elnotis` | `this.$notify({type: 'success'})` |\n|22. | `elnotiw` | `this.$notify({type: 'warning'})` |\n|23. | `elnotie` | `this.$notify({type: 'error'})` |\n|24. | `elnotii` | `this.$notify({type: 'info'})` |\n|25. |TODO |VNode for Message|\n\n\n#### Navigation Part\nNo. |  Trigger Key | Element Tag\n|:------:|:--------------:|:--------|\n|1. | `elmen` | `\u003cel-menu\u003e` |\n|2. | `elsubmen` | `\u003cel-submenu\u003e` |\n|3. | `elmeni` | `\u003cel-menu-item\u003e` |\n|4. | `eltabs` | `\u003cel-tabs\u003e` |\n|5. | `eltabp` | `\u003cel-tab-pane\u003e` |\n|6. | `elbr` | `\u003cel-breadcrumb\u003e` |\n|7. | `elbri` | `\u003cel-breadcrumb-item\u003e` |\n|8. | `eldr` | `\u003cel-dropdown\u003e` |\n|9. | `eldri` | `\u003cel-dropdown-item\u003e` |\n|10. | `elsts` | `\u003cel-steps\u003e` |\n|11. | `elst` | `\u003cel-step\u003e` |\n\n#### Others Part\nNo. |  Trigger Key | Element Tag\n|:------:|:--------------:|:--------|\n|1. | `eldi` | `\u003cel-dialog\u003e` |\n|2. | `elto` | `\u003cel-tooltip\u003e` |\n|3. | `elpop` | `\u003cel-popover\u003e` |\n|4. | `elcard` | `\u003cel-card\u003e` |\n|5. | `elcaro` | `\u003cel-carousel\u003e` |\n|6. | `elcaroi` | `\u003cel-carousel-item\u003e` |\n|7. | `elcolla` | `\u003cel-collapse\u003e` |\n|8. | `elcollai` | `\u003cel-collapse-item\u003e` |\n\n#### General Part\nNo. |  Trigger Key | Element Tag\n|:------:|:--------------:|:--------|\n|1. | `el` | `\u003cel-*\u003e` |\n|2. | `elic` | `\u003cel-icon-*\u003e` |\n\n#### Options Part\nNo. |  Trigger Key | Element Tag\n|:------:|:--------------:|:--------|\n|1. | `elpos` | positions |\n|2. | `elanims` | animation types |\n\n\u003c!--\n#### #TODO\n1. `tree`的data值\n2. `import`样式的快捷方式\n3. 不同类型的`button`\n4. 各种引用路径：内置动画，样式\n--\u003e\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsnowffer%2FElement-UI-Snippets-ST","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsnowffer%2FElement-UI-Snippets-ST","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsnowffer%2FElement-UI-Snippets-ST/lists"}