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

rj-component-vue

v0.9.12

Published

font-end component library based on vue.js

Downloads

3

Readme

rj-component-vue-example

npm npm vue2

rainjoy font-end component library based on vue.js

| 英文 | 中文 | 0 - 未开发 1 - 试验性 2 - 稳定 | 文档 | |:---|:---|:---|:---| | General | 基础组件 | ⚡️ | ⚡️ | | button | 按钮 | 1 | ✅ | | cell | 单元格 | 1 | ?| | icon | 字体图标 | 1 | ✅ | | loadingicon | 加载图标 | 1 | ✅ | | mask | 蒙层 | 1 | ✅ | | row | flex布局 | 1 | ? | | Form | 表单组件 | ⚡️ | ⚡️ | | checklist | 多选按钮 | 1 | ? | | radio | 单选按钮 | 1 | ? | | star | 星星打分评级 | 1 | ✅ | | switcher | 开关切换 | 1 | ✅ | | upload | 上传按钮 | 1 | ✅ | | Display | 视图组件 | ⚡️ | ⚡️ | | actionsheet | 操作表 | 1 | ✅ | | avatar | 头像 | 1 | ✅ | | bandge | 徽章切换(竖型tab) | 1 | ✅ | | card | 卡片 | 1 | ✅ | | image | 图片 | 1 | ✅ | | imagepreview | 图片预览 | 1 | ✅ | | mapper | 地图 | 1 | ✅ | | pagelist | 上滑滚动分页加载 | 1 | ? | | swiper | 轮播 | 1 | ✅ | | tab | 标签切换 | 1 | ✅ | | uploader | 上传照片 | 1 | ✅ | | Feedback | 反馈组件 | ⚡️ | ⚡️ | | loading | 加载界面 | 1 | ✅ | | loadingdirective | 加载指令 | 1 | ✅ | | loadingmethod | 加载方法 | 1 | ✅ | | msgbox | 消息弹出框 | 1 | ✅ | | popup | 模态弹窗 | 1 | ✅ | | toast | 消息提示框 | 1 | ✅ | | JS API | JS 组件 | ⚡️ | ⚡️ | | asyncload | 异步加载JS | 1 | ✅ | | avatarview | 万像优图+过滤协议+webp+默认头像 | 1 | ✅ | | dateformate | 时间格式化 | 1 | ✅ | | fetch | 发送请求或者获取资源(同构) | 1 | ✅ | | imageoptimizer | 万像优图 | 1 | ✅ | | imageview | 万像优图+过滤协议+webp | 1 | ✅ | | issupportwebp | 是否支持webp | 1 | ✅ | | lazyloading | 懒加载 | 1 | ✅ | | log | 当开启调试模式,页面链接带有rj_debug=on或cookie里面包含rj_debug=on,控制台输出 | 1 | ✅ | | map | 高德地图SDK | 1 | ✅ | | protocol | 过滤协议 | 1 | ✅ | | scroll | 滚动指令 | 1 | ✅ | | title | 修改页面标题 | 1 | ✅ | | xhtml | 富文本处理 | 1 | ✅ |

USE

Install

npm install === yarn add

npm install -S rj-component-vue
npm install git+https://github.com/zhouyu1993/rj-component-vue.git

或者

npm install git+ssh://[email protected]:zhouyu1993/rj-component-vue.git

Import all components

import Vue from 'vue'
import rjcv from 'rj-component-vue'

Vue.use(rjcv)

Import specific component

import Vue from 'vue'
import Test from 'rj-component-vue/lib/Test'

import 'rj-component-vue/lib/Test/style.css'

Vue.component(Test.name, Test)

⚠️Use babel-plugin-component

  • Auto import css file
  • Modular import component

Install babel-plugin-component

npm install -D babel-plugin-component

Set the configuration of babel-plugin-component in .babelrc

{
  "plugins": [
    [
      "component",
      [
        {
          "libraryName": "rj-component-vue",
          "style": true
        }
      ]
    ]
  ]
}

Then import rj-component-vue

import Vue from 'vue'
import { Test } from 'rj-component-vue'

Vue.component(Test.name, Test)