{"id":27168034,"url":"https://github.com/alexayan/mina-beautiful-paragraph","last_synced_at":"2025-04-09T05:20:17.772Z","repository":{"id":57297321,"uuid":"284625506","full_name":"alexayan/mina-beautiful-paragraph","owner":"alexayan","description":null,"archived":false,"fork":false,"pushed_at":"2020-08-03T08:22:38.000Z","size":15,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-31T23:33:58.378Z","etag":null,"topics":[],"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/alexayan.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":"2020-08-03T06:50:26.000Z","updated_at":"2022-12-08T02:33:00.000Z","dependencies_parsed_at":"2022-09-01T08:41:33.568Z","dependency_job_id":null,"html_url":"https://github.com/alexayan/mina-beautiful-paragraph","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexayan%2Fmina-beautiful-paragraph","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexayan%2Fmina-beautiful-paragraph/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexayan%2Fmina-beautiful-paragraph/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexayan%2Fmina-beautiful-paragraph/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alexayan","download_url":"https://codeload.github.com/alexayan/mina-beautiful-paragraph/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247981514,"owners_count":21027940,"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":"2025-04-09T05:20:17.035Z","updated_at":"2025-04-09T05:20:17.725Z","avatar_url":"https://github.com/alexayan.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# mina-beautiful-paragraph\n\n小程序纯文本段落排版美化。\n\n- 完美的两端对齐（中英文混杂，且存在长英文文本）\n- 标点不出现在行首\n\n## usage\n\n### install\n\n`npm install mina-beautiful-paragraph --save`\n\n### page.json\n\n```json\n{\n  \"usingComponents\": {\n    \"BeautifulParagraph\": \"path/to/mina-beautiful-paragraph\"\n  }\n}\n```\n\n### page.wxml\n\n``` html\n\u003cBeautifulParagraph\n  custom-class=\"custom-paragraph-class\"\n  content=\"{{texts}}\"\n  selectable=\"{{true}}\"\n  padding=\"{{35}}\"\n  /\u003e\n```\n\n### page.js\n\n```javascript\nPage({\n  data: {\n    texts: '文本文本'\n  }\n})\n```\n\n### page.wxss\n\n```css\n/* 自定义样式 */\n.custom-paragraph-class{\n\n}\n```\n\n## 组件支持的属性\n\n|name|required|type|default|desc|\n|---|---|---|---|---|\n|custom-class|false|string|''||\n|content|true|string|''|要排版的文本|\n|selectable|false|boolean|true|文本是否可选中|\n|padding|false|number|35|换行距离|\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexayan%2Fmina-beautiful-paragraph","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falexayan%2Fmina-beautiful-paragraph","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexayan%2Fmina-beautiful-paragraph/lists"}