{"id":20987473,"url":"https://github.com/yevin-yu/vue-time-axis","last_synced_at":"2025-10-06T17:47:13.842Z","repository":{"id":239412908,"uuid":"799141136","full_name":"Yevin-Yu/vue-time-axis","owner":"Yevin-Yu","description":"时间轴组件，支持拖拽移动，删除","archived":false,"fork":false,"pushed_at":"2024-05-13T13:37:56.000Z","size":135,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-20T07:43:06.395Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/vuetimeaxisdemo","language":"Vue","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/Yevin-Yu.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,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-05-11T09:34:48.000Z","updated_at":"2024-06-04T06:55:21.000Z","dependencies_parsed_at":null,"dependency_job_id":"2373556b-8345-436e-b6d2-2deee1a7bb0b","html_url":"https://github.com/Yevin-Yu/vue-time-axis","commit_stats":null,"previous_names":["iyuwb/vue-time-axis","yevin-yu/vue-time-axis"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Yevin-Yu%2Fvue-time-axis","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Yevin-Yu%2Fvue-time-axis/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Yevin-Yu%2Fvue-time-axis/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Yevin-Yu%2Fvue-time-axis/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Yevin-Yu","download_url":"https://codeload.github.com/Yevin-Yu/vue-time-axis/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243394517,"owners_count":20283972,"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-11-19T06:17:04.765Z","updated_at":"2025-10-06T17:47:08.785Z","avatar_url":"https://github.com/Yevin-Yu.png","language":"Vue","funding_links":[],"categories":[],"sub_categories":[],"readme":"# vuetimeaxisdemo\n\n## 下载\n```shell\nnpm i vuetimeaxisdemo\n```\n\n## 使用\n\n`main.js`\n\n```js\nimport vueTimeAxisDemo from 'vuetimeaxisdemo'\nimport  'vuetimeaxisdemo/vueTimeAxisDemo.css'\nVue.use(vueTimeAxisDemo);\n```\n\n`App.vue`\n\n```vue\n\u003ctemplate\u003e\n  \u003cdiv id=\"app\"\u003e\n    \u003cvueTimeAxis :option=\"option\" /\u003e\n  \u003c/div\u003e\n\u003c/template\u003e\n\n\u003cscript\u003e\nexport default {\n  name: \"App\",\n  data() {\n    return {\n      option: {\n        id:'0',\n        width: 500,\n        min: 0,\n        max: 100,\n        data: [\n          {\n            id: \"1\",\n            text: \"时间轴\",\n            start: 2,\n            end: 20,\n          },\n          {\n            id: \"2\",\n            text: \"时间轴2\",\n            start:30,\n            end: 50,\n          },\n        ],\n      },\n    };\n  },\n};\n\u003c/script\u003e\n\n\u003cstyle\u003e\n#app {\n  width: 600px;\n  height: 300px;\n  background-color: pink;\n  margin: 0 auto;\n  padding: 24px;\n  overflow: auto;\n}\n\u003c/style\u003e\n```\n可以拖动蓝色块进行调整，并实时更新`start`和`end`属性","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyevin-yu%2Fvue-time-axis","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyevin-yu%2Fvue-time-axis","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyevin-yu%2Fvue-time-axis/lists"}