Xmui
基于vue2,为公司产品打(zao)造(lun)的(zi)可复用UI组件,文档:
Install / Use
/learn @monw3c/XmuiREADME
XMUI
基于vue 2+ ,为公司产品打(zao)造(lun)的(zi)可复用UI组件,适用于 移动 和 部分PC 端,其中包括 基础组件 和 应用组件,目前 组件 和 文档 在不断完善中。
特性
- 基于 Vue
>=v2.1.4开发的可复用 UI 组件,并且可随产品需要扩展 - 使用Vue官方的工作流,支持 ES6
- 一系列产品线都在使用中
- 关于SEO问题推荐使用插件 prerender-spa-plugin
浏览器支持
- 适用于 移动 和 部分PC 端
通用项目工程
- 基于官方扩展的项目工程,集成了Axios,Dayjs和可选的XMUI,Vuex https://github.com/monw3c/vue-wp-cli
开发
全局引入 -- 在 webpack 入口文件 main.js 中如下配置:
# 安装
cnpm install x-m-ui --save
# 引入css
import 'x-m-ui/package/xmui.min.css'
# 引入xmui.min.js
import xmui from 'x-m-ui'
# 注入到vue
Vue.use(xmui)
按需引入 -- 在 入口文件 main.js 或 组件内 中如下配置:
# 全局组件 main.js引入
import Toast from 'x-m-ui/package/comps/components/toast'
Vue.prototype.$toast = Toast
# 一般组件
import xmButton from 'x-m-ui/package/comps/components/button'
import xmButtonGroup from 'x-m-ui/package/comps/components/buttongroup'
import xmModal from 'x-m-ui/package/comps/components/modal'
...
components: {
xmButton,
xmButtonGroup,
xmModal
...
}
更多说明,请查看在线文档
查看示例
组件列表
- [x] 按钮
- [x] 标签
- [x] 加载更多
- [x] 搜索框
- [x] 单元格
- [x] 表单
- [x] 网格和图标
- [x] flexbox
- [x] Modal
- [x] Toast
- [x] Loading
- [x] 工单流程
- [x] skeleton骨架
- [x] Lazy延迟加载
- [ ] 轮播
- [x] ActionSheet
- [x] Popup
- [x] 数字键盘
- [x] 无缝滚动
- [ ] 左右滑菜单
- [ ] 时间选择器
- [ ] 标签页
- [x] 导航栏(顶部)
- [x] 标签栏(底部)
关于如何构建 Vue 组件库的文章,有兴趣的朋友可了解一起探讨
贡献
在此不一一感谢所有付出脑力体力的同仁,如有疑问,请与我们联系 如果你在使用时遇到问题,或者有好的建议,欢迎给我们提 Issue 或 Pull Request
Related Skills
node-connect
343.1kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
90.0kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
343.1kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
343.1kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
