{"action":"created","issue":{"url":"https://api.github.com/repos/ElemeFE/element/issues/11769","repository_url":"https://api.github.com/repos/ElemeFE/element","labels_url":"https://api.github.com/repos/ElemeFE/element/issues/11769/labels{/name}","comments_url":"https://api.github.com/repos/ElemeFE/element/issues/11769/comments","events_url":"https://api.github.com/repos/ElemeFE/element/issues/11769/events","html_url":"https://github.com/ElemeFE/element/issues/11769","id":336105602,"node_id":"MDU6SXNzdWUzMzYxMDU2MDI=","number":11769,"title":"[Feature Request] Progress supporting customize text format ","user":{"login":"imageslr","id":17822028,"node_id":"MDQ6VXNlcjE3ODIyMDI4","avatar_url":"https://avatars1.githubusercontent.com/u/17822028?v=4","gravatar_id":"","url":"https://api.github.com/users/imageslr","html_url":"https://github.com/imageslr","followers_url":"https://api.github.com/users/imageslr/followers","following_url":"https://api.github.com/users/imageslr/following{/other_user}","gists_url":"https://api.github.com/users/imageslr/gists{/gist_id}","starred_url":"https://api.github.com/users/imageslr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/imageslr/subscriptions","organizations_url":"https://api.github.com/users/imageslr/orgs","repos_url":"https://api.github.com/users/imageslr/repos","events_url":"https://api.github.com/users/imageslr/events{/privacy}","received_events_url":"https://api.github.com/users/imageslr/received_events","type":"User","site_admin":false},"labels":[{"id":813676843,"node_id":"MDU6TGFiZWw4MTM2NzY4NDM=","url":"https://api.github.com/repos/ElemeFE/element/labels/component:%20progress","name":"component: progress","color":"0e8a16","default":false},{"id":435935240,"node_id":"MDU6TGFiZWw0MzU5MzUyNDA=","url":"https://api.github.com/repos/ElemeFE/element/labels/type:%20feature%20request","name":"type: feature request","color":"fbca04","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-06-27T07:19:56Z","updated_at":"2018-08-30T02:56:47Z","closed_at":null,"author_association":"NONE","body":"<!-- generated by https://eleme-issue.surge.sh DO NOT REMOVE -->\r\n\r\n### Existing Component\r\n是\r\n\r\n### Component Name\r\nProgress\r\n\r\n### Description\r\n当前进度条的 text 只支持显示百分比形式：75%，希望能够提供一个 `format` 属性，允许自定义文字格式，如：  \r\n`<progress percent=\"75\" format=\"$percent 折\"></progress>`   \r\n显示 “75折\"。\r\n\r\n`format` 属性还可以是回调函数的形式，其参数为当前百分比。\r\n\r\nI hope I can customize the text format of Progress component, instead of only unique format \"75%\". For instance, the component provides `format` attribute and it can be String or Function. If it is a function, the argument will be current percent.\r\n\r\n`<progress percent=\"70\" format=\"$percent 折\"></progress>`  \r\nand the text of the component will be `75折`。\r\n\r\n<!-- generated by https://eleme-issue.surge.sh DO NOT REMOVE -->\r\n"},"comment":{"url":"https://api.github.com/repos/ElemeFE/element/issues/comments/417173376","html_url":"https://github.com/ElemeFE/element/issues/11769#issuecomment-417173376","issue_url":"https://api.github.com/repos/ElemeFE/element/issues/11769","id":417173376,"node_id":"MDEyOklzc3VlQ29tbWVudDQxNzE3MzM3Ng==","user":{"login":"upupzealot","id":2574689,"node_id":"MDQ6VXNlcjI1NzQ2ODk=","avatar_url":"https://avatars3.githubusercontent.com/u/2574689?v=4","gravatar_id":"","url":"https://api.github.com/users/upupzealot","html_url":"https://github.com/upupzealot","followers_url":"https://api.github.com/users/upupzealot/followers","following_url":"https://api.github.com/users/upupzealot/following{/other_user}","gists_url":"https://api.github.com/users/upupzealot/gists{/gist_id}","starred_url":"https://api.github.com/users/upupzealot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/upupzealot/subscriptions","organizations_url":"https://api.github.com/users/upupzealot/orgs","repos_url":"https://api.github.com/users/upupzealot/repos","events_url":"https://api.github.com/users/upupzealot/events{/privacy}","received_events_url":"https://api.github.com/users/upupzealot/received_events","type":"User","site_admin":false},"created_at":"2018-08-30T02:56:47Z","updated_at":"2018-08-30T02:56:47Z","author_association":"NONE","body":"I would vote this request up!"}}
{"actor":{"display_login":"upupzealot"}}