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

@mhfwork/yt-ui

v1.2.5

Published

vue后台系统常用的组件

Downloads

49

Readme

yt-ui组件库

vue后台系统常用的组件

使用前须知

1. 目前只支持vue2.x 版本,vue3以上版本暂不支持
2. 本组件库基于ElementUi开发,使用前请务必确保正确安装elementUi组件库
3. 组件库中所有的样式命名规则为: yt-组件名称(-yt) 
    3.1 如文件名为:ytDemo 则外层样式类名为:yt-demo,以此类推
4. 所有组件的demo都存放在examples文件夹中
5. 本组件库内置了很多公共方法,源码请查看 @mhfwork/yt-ui/components/utils/publicFun.js,具体使用请查看文档

相关依赖项安装

建议node14及以上版本(推荐v14.16.1)
npm install [email protected] --save-dev
npm install [email protected] --save-dev

node 对应版本可参照下表

文件介绍

components文件夹 ---> 存放所有的组件
examples文件夹 ---> 存放组件的demo(组件如何使用)
public文件夹 ---> 存放组件的静态资源

发布流程

 todo: 更新 readeMe.md、package.json版本号   
 1. npm run lib   
 2. npm get registry 
 3. npm login
 4. npm publish --access public

如何使用

 1. 安装  
    npm i @mhfwork/yt-ui --save-dev
 
 2. main.js 中注册(选择其中一种方式注册)
    2.1 按需导入(完整的组件列表请看下方[组件列表])
        import ytComp from "@mhfwork/yt-ui/components/ytComp";
        import ytDemo from "@mhfwork/yt-ui/components/ytDemo";
        Vue.use(ytComp)
        Vue.use(ytDemo)
    2.2 全局导入
        import Vue from "vue";
        import ytUi from "@mhfwork/yt-ui/components/index.js";
        Vue.use(ytUi);
 
 3. vue文件中使用
    <yt-comp page-name="pageName"/>
    <yt-demo />

组件列表

    ytFileUpload    文件上传通用组件
    ytForm          搜索表单组件
    ytIsShowForm    显示隐藏筛选框组件
    ytRealCanvas    canvas实时展示输入的内容
    ytTableBtn      自定义按钮组
    ytTable         基于el-table封装的表格组件(非树形结构)
    ytPagination    分页组件
    ytPageComp      快速搭建 搜索栏 + 表格 + 分页的页面

开发中...

 1. ytChooseDialog 弹窗选择器(表格选择数据,可展示并保存对应的tags)
 2. ytPageComp(快速搭建 搜索栏 + 表格 + 分页的页面)