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

mcx-ui

v1.1.6

Published

基与vue的前端组件库

Downloads

30

Readme

mcx-ui

Vue.js 组件库

Damai

使用

下载

npm install mcx-ui --save

引入全部组件
import Vue from 'vue'
import { Mcx } from 'mcx-ui';
Vue.use(Mcx);
按需引入部分组件
import { Button } from 'mcx-ui';
Vue.component(Button.name, Button);
使用
  • loading 全局组件
import { Loading } from 'mcx-ui';
Vue.component(Loading.name, Loading);

<mc-loading :isShow="isShowLoading"></mc-loading>
  • toast 全局组件
import { Toast } from 'mcx-ui';
Vue.component(Toast.name, Toast);

<mc-toast :isShow="isShowToast" :isText="isText"></mc-toast>
  • swiper 组件
import { Swiper } from 'mcx-ui';
Vue.component(Swiper.name, Swiper);
/**
   * @desc swiper banner
   * @module components/Swiper
   * @param dataSource [Array]  - 数据源 类型 数组。 如果需要跳转 数据结构为:[{url:'',link:''}]
   * @param pagination {Boolean} - 是否显示分页器 默认 true
   * @param loop {Boolean} - 是否循环 默认 false 
   * @param autoplay {Boolean} - 是否自动切换 默认 false
*/
<mc-swiper></mc-swiper>
  • popup 组件
import { Popup } from 'mcx-ui';
Vue.component(Popup.name, Popup);
/**
   * @desc popup
   * @module components/Popup
   * @param isShow [Boolean]  - 是否显示
   * @param @close [function]  - 关闭回调
*/

<mc-popup :isShow="isShow" @close=" is => isShow = is">
    <!-- content 需要一个高度 -->
    <div class="content">...</div>
</mc-popup>
  • dialog 组件
import { Dialog } from 'mcx-ui';
Vue.component(Dialog.name, Dialog);
/**
   * @desc Dialog
   * @module components/Dialog
   * @param isShow [Boolean]  - 是否显示
*/

<mc-dialog :isShow="isShow">
    <div>
        <p>内容</p>
        <p>内容</p>
        <p>内容</p>

        <div @click="close"></div>
    </div>
</mc-dialog>
  • totop 组件
import { ToTop } from 'mcx-ui';
Vue.component(ToTop.name, ToTop);
/**
   * @desc ToTop 为回到顶部按钮,默认不显示,根据业务控制何时显示隐藏,元素透明,需要插卡填充有颜色样式等。
   * @module components/ToTop
   * @param isShow [Boolean]  - 是否显示 默认false
   * @param el [String]  - 滚动元素class
*/


<mc-totop el="" :isShow="isShow">
    <div>内容</div>
</mc-totop>