{"id":13789068,"url":"https://github.com/ronffy/wepy-com-progress-circle","last_synced_at":"2025-06-17T21:04:32.864Z","repository":{"id":93092795,"uuid":"136164058","full_name":"ronffy/wepy-com-progress-circle","owner":"ronffy","description":"wepy的第三方组件：圆形进度条","archived":false,"fork":false,"pushed_at":"2018-07-21T06:39:24.000Z","size":27,"stargazers_count":9,"open_issues_count":1,"forks_count":4,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-06T23:36:46.952Z","etag":null,"topics":["weapp","wepy","wepy-com"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/ronffy.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,"governance":null,"roadmap":null,"authors":null}},"created_at":"2018-06-05T10:58:44.000Z","updated_at":"2019-07-12T05:07:45.000Z","dependencies_parsed_at":"2023-06-04T19:00:36.116Z","dependency_job_id":null,"html_url":"https://github.com/ronffy/wepy-com-progress-circle","commit_stats":null,"previous_names":["hironi/wepy-com-progress-circle"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ronffy/wepy-com-progress-circle","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ronffy%2Fwepy-com-progress-circle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ronffy%2Fwepy-com-progress-circle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ronffy%2Fwepy-com-progress-circle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ronffy%2Fwepy-com-progress-circle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ronffy","download_url":"https://codeload.github.com/ronffy/wepy-com-progress-circle/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ronffy%2Fwepy-com-progress-circle/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259782946,"owners_count":22910295,"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":["weapp","wepy","wepy-com"],"created_at":"2024-08-03T21:00:58.176Z","updated_at":"2025-06-17T21:04:27.851Z","avatar_url":"https://github.com/ronffy.png","language":"JavaScript","funding_links":[],"categories":["微信小程序WePY框架开发资源汇总 ![Awesome](https://cdn.rawgit.com/sindresorhus/awesome/d7305f38d29fed78fa85652e3a63e154dd8e8829/media/badge.svg)"],"sub_categories":["WePY开源组件"],"readme":"\n# 微信小程序wepy的第三方组件：圆形进度条\n[![npm](https://img.shields.io/npm/v/wepy-com-progress-circle.svg)](https://www.npmjs.com/package/wepy-com-progress-circle)\n\n![](http://oxk008h6r.bkt.clouddn.com/demo.png)\n\n## 说明\n\n官方支持的进度条只有条形进度条，没有圆形进度条，因此增加了一个圆形进度条。\n此组件是wepy的第三方组件，因为需要依赖[wepyjs](https://github.com/Tencent/wepy)\n\n## 使用\n\n### 安装组件\n\n```shell\nnpm install wepy-com-progress-circle --save\n```\n\n### 使用组件\n\n```javascript\n// index.wpy\n\u003ctemplate\u003e\n    \u003cprogressCircle :percent=\"percent\" width=\"120\" /\u003e\n\u003c/template\u003e\n\u003cscript\u003e\n    import wepy from 'wepy';\n    import ProgressCircle from 'wepy-com-progress-circle';\n\n    export default class Index extends wepy.page {\n        components = {\n            progresscircle: ProgressCircle\n        };\n        data = {\n          percent: 25, \n        }\n    }\n\u003c/script\u003e\n```\n\n### 如何设置从 0% - 100% 的动画\n\n```javascript\n// index.wpy\n\u003ctemplate\u003e\n    \u003cprogressCircle :percent=\"percent\" width=\"120\" /\u003e\n\u003c/template\u003e\n\u003cscript\u003e\n    import wepy from 'wepy';\n    import ProgressCircle from 'wepy-com-progress-circle';\n\n    export default class Index extends wepy.page {\n        components = {\n            progresscircle: ProgressCircle\n        };\n        data = {\n          percent: 0, \n        };\n        onLoad(){\n            let s = setInterval(() =\u003e {\n                this.percent = this.percent + 1;\n                this.$invoke('progresscircle', 'upPercent', this.percent)\n                if (this.percent \u003e 99) {\n                    clearInterval(s);\n                }\n            }, 1000);\n        }\n    }\n\u003c/script\u003e\n```\n\n## API说明\n\n### 属性介绍\n\u003ctable\u003e\n    \u003cthead\u003e\n        \u003ctr\u003e\n            \u003cth\u003e属性名\u003c/th\u003e\u003cth\u003e类型\u003c/th\u003e\u003cth\u003e默认值\u003c/th\u003e\u003cth\u003e说明\u003c/th\u003e\n        \u003c/tr\u003e\n    \u003c/thead\u003e\n    \u003ctbody\u003e\n        \u003ctr\u003e\n            \u003ctd\u003epercent\u003c/td\u003e\u003ctd\u003eFloat\u003c/td\u003e\u003ctd\u003e0\u003c/td\u003e\u003ctd\u003e百分比0~100\u003c/td\u003e\n        \u003c/tr\u003e\n        \u003ctr\u003e\n            \u003ctd\u003ewidth\u003c/td\u003e\u003ctd\u003eNumber\u003c/td\u003e\u003ctd\u003e100\u003c/td\u003e\u003ctd\u003e圆的宽度\u003c/td\u003e\n        \u003c/tr\u003e\n        \u003ctr\u003e\n            \u003ctd\u003eshowInfo\u003c/td\u003e\u003ctd\u003eBoolean\u003c/td\u003e\u003ctd\u003etrue\u003c/td\u003e\u003ctd\u003e是否显示百分比\u003c/td\u003e\n        \u003c/tr\u003e\n        \u003ctr\u003e\n            \u003ctd\u003estrokeWidth\u003c/td\u003e\u003ctd\u003eNumber\u003c/td\u003e\u003ctd\u003e6\u003c/td\u003e\u003ctd\u003e进度条线的宽度，单位px\u003c/td\u003e\n        \u003c/tr\u003e\n        \u003ctr\u003e\n            \u003ctd\u003ecolor\u003c/td\u003e\u003ctd\u003eColor\u003c/td\u003e\u003ctd\u003e#09BB07\u003c/td\u003e\u003ctd\u003e进度条颜色\u003c/td\u003e\n        \u003c/tr\u003e\n        \u003ctr\u003e\n            \u003ctd\u003ebackgroundColor\u003c/td\u003e\u003ctd\u003eColor\u003c/td\u003e\u003ctd\u003e#eee\u003c/td\u003e\u003ctd\u003e进度条背色颜色\u003c/td\u003e\n        \u003c/tr\u003e\n    \u003c/tbody\u003e\n\u003c/talbe\u003e\n\n### 方法介绍\n\n-   upPercent 根据传的参数值设置百分比\n                                                 \t             \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fronffy%2Fwepy-com-progress-circle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fronffy%2Fwepy-com-progress-circle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fronffy%2Fwepy-com-progress-circle/lists"}