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

circles-ui

v1.0.10

Published

This is a UI components for Vue 2.x.

Downloads

12

Readme

circles-ui

仿Vant-ui移动端Vue UI组件库(circle star miss)。文档地址

快速上手

安装

在Vue项目根目录下

npm i circles-ui --save-dev

全局引入

在main.js里新增以下代码

import csUI from 'circles-ui'
import 'circles-ui/packages/theme-default/lib/index.min.css'
Vue.use(csUI)

按需引入

  • 首先,安装 babel-plugin-component:
cnpm i babel-plugin-component --save-dev
  • 更改根目录的.babelrc文件为下面的代码
{
  "presets": [
    ["env", {
      "modules": false,
      "targets": {
        "browsers": ["> 1%", "last 2 versions", "not ie <= 8"]
      }
    }],
    "stage-2"
  ],
  "plugins": ["transform-vue-jsx", "transform-runtime", ["component", {
    "libraryName": "circles-ui",
    "styleLibrary": {
      "name": "theme",
      "base": false
    }
  }]]
}
  • 在需要引入的Vue页面新增以下代码
import { csPicker } from 'circles-ui'
import Vue from 'vue'
Vue.use(csPicker)

文档

主题色

2020.09.07新增主题色,使用css variable实现,请注意兼容性。要使用主题色只需在注册csUI时修改为Vue.use(csUI, themeName),目前支持的主题色有

| 主色(默认) | 成功 | 警告 | 危险 | 详情 | |--|--|--|--|--| | Primary | Success | Warning | Danger | Info | | #1989fa | #69c23a | #E6A23C | #FF2C7D | #909399 |

代码示例:

Vue.use(csUI, 'Warning')

基础组件

Icon Icon图标

Popup 弹出层组件

Picker 选择器组件

Toast 弱提示组件

Dialog 弹出框组件

DateTimePicker 时间选择器组件

ChartRadar 雷达图组件

ActionSheet 动作面板组件

Swipe 轮播组件

SwipeCell 滑动单元格组件

NumberKeyboard 数字键盘组件

PasswordInput 密码输入框组件

Collapse 折叠面板组件

Switch 开关组件

Radio 单选组件

Stepper 步进器组件

Checkbox 复选框组件

NoticeBar 通知栏组件

Tab 标签页组件

Tabbar 标签栏组件

IndexBar 索引栏组件

Lazy 懒加载组件

Circle 环形进度条

Skeleton 骨架屏