{"id":22499563,"url":"https://github.com/vue-multiple/vue-demonstration","last_synced_at":"2025-08-01T20:10:54.714Z","repository":{"id":57395590,"uuid":"97916174","full_name":"vue-multiple/vue-demonstration","owner":"vue-multiple","description":"Element 1.x 代码示例展示风格","archived":false,"fork":false,"pushed_at":"2017-12-27T15:23:00.000Z","size":941,"stargazers_count":5,"open_issues_count":0,"forks_count":5,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-08T09:54:43.703Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://demonstration.savoygu.com","language":"Vue","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vue-multiple.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-07-21T06:53:16.000Z","updated_at":"2023-08-15T06:29:03.000Z","dependencies_parsed_at":"2022-09-06T05:00:53.669Z","dependency_job_id":null,"html_url":"https://github.com/vue-multiple/vue-demonstration","commit_stats":null,"previous_names":["savoygu/vue-demonstration"],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/vue-multiple/vue-demonstration","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vue-multiple%2Fvue-demonstration","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vue-multiple%2Fvue-demonstration/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vue-multiple%2Fvue-demonstration/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vue-multiple%2Fvue-demonstration/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vue-multiple","download_url":"https://codeload.github.com/vue-multiple/vue-demonstration/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vue-multiple%2Fvue-demonstration/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268290739,"owners_count":24226646,"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","status":"online","status_checked_at":"2025-08-01T02:00:08.611Z","response_time":67,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-12-06T22:14:23.575Z","updated_at":"2025-08-01T20:10:54.677Z","avatar_url":"https://github.com/vue-multiple.png","language":"Vue","funding_links":[],"categories":[],"sub_categories":[],"readme":"# vue-demonstration\n\n\u003e Element 1.x 代码示例展示风格。帮助你展示你的 Vuejs 组件示例。\n\n## 安装\n\n```bash\nnpm install vue-demonstration --save\n```\n\n## 快速开始\n\n```bash\n import Vue from 'vue'\n import VueDemo from 'vue-demonstration'\n\n Vue.component('vue-demonstration', VueDemo)\n ```\n\n更多使用方式，参考文档：[vue-demonstration](https://demonstration.savoygu.com/vue-demonstration)\n\n## 使用方式\n\n```html\n\n\u003ctemplate\u003e\n  \u003cvue-demonstration\n    title=\"标题\"\n    description=\"标题描述\"\n    anchor=\"锚点\"\n    tag=\"标题标签\" \u003c!-- h2 / h3--\u003e\n    :highlight=\"sourcecode\"\u003e\n    \u003ctemplate slot=\"source\"\u003e\n      \u003cdiv\u003eyour code\u003c/div\u003e \u003c!-- 源代码--\u003e\n    \u003c/template\u003e\n    \u003ctemplate slot=\"explanation\"\u003e\n      代码描述\n    \u003c/template\u003e\n  \u003c/vue-demonstration\u003e\n\u003c/template\u003e\n\n\u003cscript\u003e\n  const sourcecode = `\u003cdiv\u003eyour code\u003c/div\u003e`\n  export default {\n     data () {\n        return {\n          sourcecode\n        }\n     }\n  }\n\u003c/script\u003e\n\n```\n\n如果要展示的代码较多的话，可以单独放一个文件中。\n\n## 运行方式和构建\n\n``` bash\n\n# install dependencies\nnpm install\n\n# serve with hot reload at localhost:8080\nnpm run demo:dev\n\n# build for demo with minification\nnpm run demo:build\n\n# build for gh-pages with minification\nnpm run demo:prepublish\n\n# build for production with minification\nnpm run build\n\n# generate gh-pages\nnpm run deploy\n\n```\n\n## LICENSE\n\n[MIT](http://opensource.org/licenses/MIT)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvue-multiple%2Fvue-demonstration","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvue-multiple%2Fvue-demonstration","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvue-multiple%2Fvue-demonstration/lists"}