npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

x-m-ui

v1.1.15

Published

UI components base on Vue 2.x

Downloads

20

Readme

XMUI

Version Downloads License TravisCI

基于vue 2+ ,为公司产品打(zao)造(lun)的(zi)可复用UI组件,适用于 移动 和 部分PC 端,其中包括 基础组件 和 应用组件,目前 组件 和 文档 在不断完善中。

特性

  • 基于 Vue>=v2.1.4 开发的可复用 UI 组件,并且可随产品需要扩展
  • 使用Vue官方的工作流,支持 ES6
  • 一系列产品线都在使用中
  • 关于SEO问题推荐使用插件 prerender-spa-plugin

浏览器支持

  • 适用于 移动 和 部分PC 端

开发

全局引入 -- 在 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 组件库的文章,有兴趣的朋友可了解一起探讨

如何基于 Vue 2 写一套 UI 库

欢迎加入星球一起探讨

贡献

在此不一一感谢所有付出脑力体力的同仁,如有疑问,请与我们联系
如果你在使用时遇到问题,或者有好的建议,欢迎给我们提 IssuePull Request