{"id":21465774,"url":"https://github.com/jsaaron/conflux-component-sdk","last_synced_at":"2025-07-15T04:31:45.131Z","repository":{"id":76910366,"uuid":"43106712","full_name":"JsAaron/conflux-component-sdk","owner":"JsAaron","description":"树图链组件SDK","archived":false,"fork":false,"pushed_at":"2023-08-30T02:59:36.000Z","size":76625,"stargazers_count":31,"open_issues_count":0,"forks_count":28,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-06-26T05:16:46.666Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/JsAaron.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2015-09-25T03:07:53.000Z","updated_at":"2023-08-11T07:29:31.000Z","dependencies_parsed_at":"2024-11-23T08:22:16.560Z","dependency_job_id":null,"html_url":"https://github.com/JsAaron/conflux-component-sdk","commit_stats":null,"previous_names":["jsaaron/conflux-component-sdk","jsaaron/my-code"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/JsAaron/conflux-component-sdk","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JsAaron%2Fconflux-component-sdk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JsAaron%2Fconflux-component-sdk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JsAaron%2Fconflux-component-sdk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JsAaron%2Fconflux-component-sdk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JsAaron","download_url":"https://codeload.github.com/JsAaron/conflux-component-sdk/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JsAaron%2Fconflux-component-sdk/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265402833,"owners_count":23759237,"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":"2024-11-23T08:11:57.754Z","updated_at":"2025-07-15T04:31:42.353Z","avatar_url":"https://github.com/JsAaron.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# cfx-uview-ui\n\n\u003e 插件市场地址： [点击前往](https://ext.dcloud.net.cn/plugin?name=cfx-uview-ui)\n\n## `cfx-uview-ui` 与 `uview-ui` 的关系？\n\n`cfx-uview-ui` 是 `VK` 基于 `uview-ui 1.8.3` 版本改造而来，其本质依然还是 `uview-ui`，是 `VK` 的珍藏版，由 `VK` 维护。\n\n`uview-ui` 是 `vk-unicloud 快速开发框架` 之 `client端框架` 中推荐的 UI，很多 `VK框架` 用户都在用 `uview-ui`\n\n由于 `uview-ui` 作者目前重心全在 `uView 2.0` 的 `nvue` 版本上，故没有精力维护 `uView 1.0`，因此作者贡献出了自己珍藏的 `cfx-uview-ui` 版本。\n\n\u003e 在这里，也感谢 `uview-ui` 作者的开源奉献，再次为开源点赞。 同时 `cfx-uview-ui` 也是无条件开源。\n\n## `cfx-uview-ui` 与 `uview-ui 1.8.3` 功能上有什么区别？\n\n- 1、最大的亮点：同时支持 `Vue3.0` 和 `Vue2.0`，你没看错，现在 `uview-ui` 支持 `Vue3.0` 了（这应该是目前为数不多的 `uniapp Vue3.0` 组件库）（2021-11-18）\n- 2、以 `uni_modules` 模块形式发布，方便一键更新（同时组件会自动按需加载，无需手动写 `easycom` 规则（注意，你需要把之前写的 `easycom` 规则删除，在项目根目录的 `pages.json` 中删除）\n- 3、对部分组件进行了微调，其中大部分调整不会影响你之前的代码运行（如车牌号键盘点击 1 次中文后会自动切英文+数字键盘），但有以下调整可能会影响你代码运行，请看完后再考虑是否有必要使用。\n\n- - 3.1、`u-picker` 的选择省市区的静态数据源使用 unicloud 中 `opendb-city-china` 表内的数据生成（这样前后端地址数据源保持了一致），但由于数据源变动了，可能会对你有些影响。\n- - 3.2、删除了 `uview-ui` 内置的 `国际化语言` 功能，（改造成 `Vue3` 比较麻烦，故作者干脆直接删除了）\n- - 3.3、还有其他一些细微变动（这个版本是几个月前就已经改造完的，在 uniapp 刚出 Vue3 的时候就开始了，但是由于当时的 uniapp Vue3 bug 真的太多，当时并没有发布，可以想象一下作者当时碰到 bug 满天飞的场景）\n- - 3.4、Vue3.0 中， uniapp 的 Vue3 版本在 H5 APP（非 nvue）微信小程序 中兼容性尚可，其他小程序目前还不行。\n\n\u003e [cfx-uview-ui 文档](https://vkuviewdoc.fsq.pub/components/icon.html)\n\n**_目前大的问题应该没有了，作者自己的项目也是用此组件库开发，因此你无需担心后期无人维护。_**\n\n如果你了解了以上须知，那么请继续阅读快速上手。\n\n\u003e 如有问题，可加 Q 群反馈：22466457，只要是因本插件引起的问题，你在群里一定可以得到解决。\n\n## 快速上手之 Vue2.0\n\n即使是 `Vue2` 版本，同样比原版 `uView1.0` 做了一些优化，如（车牌号键盘点击 1 次中文后会自动切英文，倒计时支持毫秒等等）\n\n支持：H5、App(vue)、微信小程序、支付宝小程序（其他小程序未测试）\n\n- 1、main.js 引入 cfx-uview-ui\n\n```js\nimport uView from './uni_modules/cfx-uview-ui'\nVue.use(uView)\n```\n\n- 2、App.vue 引入基础样式（注意 style 标签需声明 scss 属性支持）\n\n```html\n\u003cstyle lang=\"scss\"\u003e\n  @import './uni_modules/cfx-uview-ui/index.scss';\n\u003c/style\u003e\n```\n\n- 3、uni.scss 引入全局 scss 变量文件\n\n```css\n@import '@/uni_modules/cfx-uview-ui/theme.scss';\n```\n\n## 快速上手之 Vue3.0\n\n不建议把老项目 升级到 Vue3.0 (升级非常麻烦，建议新项目才考虑是否使用 Vue3.0)\n\n支持：H5、App(vue)、微信小程序（其他小程序未测试）\n\n目前 发现 Vue3 H5 版本一个重大 bug（与此 UI 框架无关），调试开发没问题，发布到前端托管时样式会错乱，已确定是 HBX 的问题，等待 HBX 修复此问题。（hbx3.3.0 版本已修复此问题）\n\n- 1、前置步骤：修改 `manifest.json` 内的 `vue` 版本为 `vue3`\n- 2、项目根目录新增 `index.html` 文件，文件代码为\n\n```html\n\u003c!DOCTYPE html\u003e\n\u003chtml lang=\"zh-CN\"\u003e\n  \u003chead\u003e\n    \u003cmeta charset=\"UTF-8\" /\u003e\n    \u003cmeta\n      name=\"viewport\"\n      content=\"width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0\"\n    /\u003e\n    \u003ctitle\u003e\u003c/title\u003e\n    \u003c!--preload-links--\u003e\n    \u003c!--app-context--\u003e\n    \u003c!-- 配置H5的 web图标static/logo.png --\u003e\n    \u003clink rel=\"icon\" href=\"./static/logo.png\" /\u003e\n  \u003c/head\u003e\n  \u003cbody\u003e\n    \u003cdiv id=\"app\"\u003e\n      \u003c!--app-html--\u003e\n    \u003c/div\u003e\n    \u003cscript type=\"module\" src=\"/main.js\"\u003e\u003c/script\u003e\n  \u003c/body\u003e\n\u003c/html\u003e\n```\n\n- 3、main.js 引入 cfx-uview-ui\n\n```js\n// 引入 uView UI\nimport uView from './uni_modules/cfx-uview-ui'\n\nimport { createSSRApp } from 'vue'\n\nexport function createApp() {\n  const app = createSSRApp(App)\n\n  // 使用 uView UI\n  app.use(uView)\n\n  return { app }\n}\n```\n\n- 4、App.vue 引入基础样式（注意 style 标签需声明 scss 属性支持）\n\n```html\n\u003cstyle lang=\"scss\"\u003e\n  @import './uni_modules/cfx-uview-ui/index.scss';\n\u003c/style\u003e\n```\n\n- 5、uni.scss 引入全局 scss 变量文件\n\n```css\n@import '@/uni_modules/cfx-uview-ui/theme.scss';\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjsaaron%2Fconflux-component-sdk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjsaaron%2Fconflux-component-sdk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjsaaron%2Fconflux-component-sdk/lists"}