{"id":20144146,"url":"https://github.com/quansitech/qscmf-builderitem-radio-text","last_synced_at":"2026-08-13T16:32:32.283Z","repository":{"id":197370714,"uuid":"684868135","full_name":"quansitech/qscmf-builderitem-radio-text","owner":"quansitech","description":"radio+自定义文本组件","archived":false,"fork":false,"pushed_at":"2023-08-30T09:43:06.000Z","size":10,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-21T05:53:53.023Z","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/quansitech.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}},"created_at":"2023-08-30T02:39:13.000Z","updated_at":"2023-08-30T02:42:04.000Z","dependencies_parsed_at":"2023-09-30T17:34:51.264Z","dependency_job_id":null,"html_url":"https://github.com/quansitech/qscmf-builderitem-radio-text","commit_stats":null,"previous_names":["quansitech/qscmf-builderitem-radio-text"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/quansitech/qscmf-builderitem-radio-text","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/quansitech%2Fqscmf-builderitem-radio-text","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/quansitech%2Fqscmf-builderitem-radio-text/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/quansitech%2Fqscmf-builderitem-radio-text/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/quansitech%2Fqscmf-builderitem-radio-text/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/quansitech","download_url":"https://codeload.github.com/quansitech/qscmf-builderitem-radio-text/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/quansitech%2Fqscmf-builderitem-radio-text/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":36614164,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-08-06T04:43:03.162Z","status":"online","status_checked_at":"2026-08-13T02:00:06.325Z","response_time":111,"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-11-13T22:08:59.074Z","updated_at":"2026-08-13T16:32:32.265Z","avatar_url":"https://github.com/quansitech.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# qscmf-builderitem-radio-text\r\n\r\nradio-text builder组件\r\n\r\n#### 效果截图\r\n##### form_type\r\n![image](https://github.com/quansitech/qscmf-builderitem-radio-text/assets/18739970/e22b4b1d-3079-45d1-9c82-2657814c32dd)\r\n\r\n##### column_type\r\n![image](https://github.com/quansitech/qscmf-builderitem-radio-text/assets/18739970/548df282-a751-40a2-a39e-60cb461bb124)\r\n\r\n#### 安装\r\n\r\n```php\r\ncomposer require quansitech/qscmf-builderitem-radio-text\r\n```\r\n\r\n#### 如何使用\r\n\r\n+ FormType\r\n\r\n  ```php\r\n  // title: 选项标题\r\n  // key: 选现对应的键值\r\n  // need_text 是否需要填写额外的文本项\r\n  $option = [\r\n    [\r\n        'title' =\u003e '网站开发',\r\n        'key' =\u003e 1,\r\n    ],\r\n    [\r\n        'title' =\u003e '公众号运维',\r\n        'key' =\u003e 2,\r\n    ],\r\n    [\r\n        'title' =\u003e '其他',\r\n        'key' =\u003e 3,\r\n        'need_text' =\u003e true,\r\n    ]\r\n  ];\r\n  -\u003eaddFormItem(\"main_business\", \"radio_text\", \"主营业务\", \"\", $option)\r\n  \r\n  //注意：组件会自动构造好json格式的数据提交，直接存入对应的数据库字段即可\r\n  ```\r\n\r\n+ ColumnType\r\n\r\n  ```php\r\n    $option = [\r\n        [\r\n            'title' =\u003e '网站开发',\r\n            'key' =\u003e 1,\r\n        ],\r\n        [\r\n            'title' =\u003e '公众号运维',\r\n            'key' =\u003e 2,\r\n        ],\r\n        [\r\n            'title' =\u003e '其他',\r\n            'key' =\u003e 3,\r\n            'need_text' =\u003e true,\r\n        ]\r\n    ];\r\n  -\u003eaddTableColumn(\"main_business\", \"主营业务\", \"radio_text\", $option)\r\n  ```\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fquansitech%2Fqscmf-builderitem-radio-text","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fquansitech%2Fqscmf-builderitem-radio-text","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fquansitech%2Fqscmf-builderitem-radio-text/lists"}