{"id":28710585,"url":"https://github.com/bowencool/bue","last_synced_at":"2025-07-31T08:43:13.493Z","repository":{"id":50926825,"uuid":"140683980","full_name":"bowencool/bue","owner":"bowencool","description":"vue learn demo","archived":false,"fork":false,"pushed_at":"2021-05-27T13:28:16.000Z","size":687,"stargazers_count":13,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-03T07:25:36.751Z","etag":null,"topics":["mvvm","mvvm-framework","vue-learn-demo"],"latest_commit_sha":null,"homepage":"https://bowencool.github.io/bue/","language":"TypeScript","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/bowencool.png","metadata":{"files":{"readme":"Readme.md","changelog":"CHANGELOG.md","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":"2018-07-12T08:23:37.000Z","updated_at":"2025-05-12T16:30:06.000Z","dependencies_parsed_at":"2022-08-25T11:30:15.025Z","dependency_job_id":null,"html_url":"https://github.com/bowencool/bue","commit_stats":null,"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"purl":"pkg:github/bowencool/bue","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bowencool%2Fbue","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bowencool%2Fbue/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bowencool%2Fbue/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bowencool%2Fbue/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bowencool","download_url":"https://codeload.github.com/bowencool/bue/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bowencool%2Fbue/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259884468,"owners_count":22926445,"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":["mvvm","mvvm-framework","vue-learn-demo"],"created_at":"2025-06-14T21:07:10.029Z","updated_at":"2025-06-14T21:07:11.282Z","avatar_url":"https://github.com/bowencool.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Bue\n[![NPM version](https://img.shields.io/npm/v/buejs.svg)](https://npmjs.org/package/buejs)\n\u003e 自己写的`MVVM`框架, [Demo](https://bowencool.github.io/bue/)\n## 注意：此项目仅供学习使用，不适用于生产环境！\n\n## Todos\n - [x] 事件绑定\n - [x] 双向绑定\n - [x] 计算属性\n - [x] 观察数组变化\n - [x] Proxy代替defineProperty（v1）\n - [ ] 虚拟DOM\n - [ ] nextTick\n\n## 安装\n - 使用 npm\n``` bash\nnpm i buejs\n```\n``` js\nimport Bue from 'buejs'\n```\n - 在浏览器中\n``` html\n\u003cscript scr=\"//unpkg.com/buejs\"\u003e\u003c/script\u003e\n\u003c!-- or --\u003e\n\u003cscript scr=\"//cdn.jsdelivr.net/npm/buejs\"\u003e\u003c/script\u003e\n```\n\n## 使用\n``` html\n\u003cdiv id=\"app\"\u003e\n\t\u003ch1\u003e{{ name }}\u003c/h1\u003e\n\t\u003ch2\u003e{{ msg }}\u003c/h2\u003e\n\t\u003cinput b-model=\"name\" /\u003e\n\t\u003cbutton @click=\"reset\"\u003ereset\u003c/button\u003e\n\u003c/div\u003e\n```\n``` js\nnew Bue({\n\tel: '#app',\n\tdata() {\n\t\treturn {\n\t\t\tname: INIT_NAME,\n\t\t};\n\t},\n\tcomputed: {\n\t\tmsg() {\n\t\t\treturn this.name\n\t\t\t\t.split('')\n\t\t\t\t.reverse()\n\t\t\t\t.join('');\n\t\t},\n\t},\n\tmethods: {\n\t\treset() {\n\t\t\tthis.name = INIT_NAME;\n\t\t},\n\t},\n})\n```\n\n## 特别感谢\n\n- [DMQ](https://github.com/DMQ)\n- [liyanlong](https://github.com/liyanlong)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbowencool%2Fbue","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbowencool%2Fbue","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbowencool%2Fbue/lists"}