{"id":25098333,"url":"https://github.com/supercll/biliui","last_synced_at":"2025-04-19T12:51:10.022Z","repository":{"id":55695708,"uuid":"286023701","full_name":"supercll/biliui","owner":"supercll","description":"基于 Vue3.0 + TS 的哔哩哔哩风格UI组件库","archived":false,"fork":false,"pushed_at":"2023-08-11T02:10:48.000Z","size":537,"stargazers_count":6,"open_issues_count":2,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-29T08:04:03.547Z","etag":null,"topics":["typescript","vite","vue3","vuejs"],"latest_commit_sha":null,"homepage":"","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/supercll.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":"2020-08-08T10:41:54.000Z","updated_at":"2025-03-16T10:20:51.000Z","dependencies_parsed_at":"2025-02-07T18:44:57.575Z","dependency_job_id":null,"html_url":"https://github.com/supercll/biliui","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/supercll%2Fbiliui","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/supercll%2Fbiliui/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/supercll%2Fbiliui/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/supercll%2Fbiliui/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/supercll","download_url":"https://codeload.github.com/supercll/biliui/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249699363,"owners_count":21312384,"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":["typescript","vite","vue3","vuejs"],"created_at":"2025-02-07T18:31:05.355Z","updated_at":"2025-04-19T12:51:09.997Z","avatar_url":"https://github.com/supercll.png","language":"Vue","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 0.1.1版本\n新增\n- 进度条，卡片等组件\n# 0.0.8版本\n- 修复：\n    - svg图标无法更改颜色的bug\n- 具体原因：\n    - 处于生产环境时svg需要通过fill属性更改颜色\n\n# biliui\n\n基于Vue3.0 + TypeScript 的一款UI组件库\n\n# 官方文档\nhttp://ui.lhikari.com\n\n# 介绍\n\nBILI UI 是一款基于 Vue 3 和 TypeScript 编写的 UI 组件库。\n采取了哔哩哔哩的风格，将会按其颜色、logo 或者布局来展示样式\n支持setup和options语法\n\n注意：\n\n-   这是为了熟悉 Vue 3.0 新特性而写的一个娱乐性组件库\n-   所以不建议将此 UI 库用于生产环境。\n\n源代码放在了 https://github.com/supercll/biliui\n\n历史提交信息符合开发规范，可以按提交的顺序逐个查看\n\n可以直接查看每个组件的源代码和示例，运行方法见 README.md。\n\n# 安装\n\n执行下列命令：\n\n```\nnpm install bilibili-ui\n```\n\n或\n\n```\nyarn add bilibili-ui\n```\n\n# 开始使用\n\n请先[安装](#/doc/install)本组件库。\n\n然后在你的代码中写入下面的代码\n\n```\nimport \"bilibili-ui/dist/lib/bili.css\";\nimport {Button, Tabs, Tab, Switch, Dialog, openDialog} from \"bilibili-ui\"\n\n```\n\n就可以使用我提供的组件了。\n\n## Vue 单文件组件\n\n代码示例：\n\n```\n\u003ctemplate\u003e\n  \u003cdiv\u003e\n    \u003cButton\u003e按钮\u003c/Button\u003e\n  \u003c/div\u003e\n\u003c/template\u003e\n\u003cscript\u003e\nimport {Button, Tabs, Switch, Dialog} from \"bilibili-ui\"\nexport default {\n  components: {Button}\n}\n\u003c/script\u003e\n```\n\n## 注意\n\ncopy 示例代码时，应该将\n\n```\nimport { Button } from \"../lib/index\";\n```\n\n替换为\n\n```\nimport { Button } from \"bilibili-ui\";\n```\n\n## options测试\n\n\n```js\n\u003ctemplate\u003e\n    \u003cButton @click=\"open\"\u003ehi\u003c/Button\u003e\n    \u003cSwitch type=\"tv\" v-model:value=\"isOpen\"\u003e\u003c/Switch\u003e\n    \u003cTabs v-model:selected=\"tabSelected\"\u003e\n        \u003cTab title=\"tab1\"\u003e内容1\u003c/Tab\u003e\n        \u003cTab title=\"tab2\"\u003e内容2\u003c/Tab\u003e\n    \u003c/Tabs\u003e\n    \u003chr /\u003e\n\u003c/template\u003e\n\n\u003cscript\u003e\nimport \"bilibili-ui/dist/lib/bili.css\";\nimport { Button, Switch, Tabs, Tab, Dialog, openDialog } from \"bilibili-ui\";\nimport { ref } from \"vue\";\n\nexport default {\n    name: \"App\",\n    data() {\n        return {\n            isOpen: false,\n            tabSelected: \"tab1\",\n            bool: false,\n        };\n    },\n    methods: {\n        open() {\n            openDialog({ title: \"标题\", content: \"内容\" });\n        },\n    },\n    components: {\n        Button,\n        Switch,\n        Tabs,\n        Tab,\n        Dialog,\n    },\n};\n\u003c/script\u003e\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsupercll%2Fbiliui","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsupercll%2Fbiliui","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsupercll%2Fbiliui/lists"}