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

scui-ex-water

v1.0.4

Published

A Component Library for Vue.js.

Downloads

8

Readme

Vue.js 2.0 UI 库.

文档

安装

npm install scui-core -S
npm install scui-ex-water -S

快速上手

import Vue from 'vue'
import SCUI from 'scui-core'
import SCUIWATER from 'scui-ex-water'

Vue.use(SCUI)
Vue.use(SCUIWATER)

// or
import {
  Select,
  Button
  // ...
} from 'scui-core'

import {
  Test
  // ...
} from 'scui-ex-water'

Vue.component(Select.name, Select)
Vue.component(Button.name, Button)

想要更多信息, 请参阅我们的文档 快速上手.

开发新组件

可以通过命令快速生成组件模版

make new <component-name> [中文名] // 创建新组件 package. 例如 'make new tree-select 树选择器'

执行命令后系统会自动生成对应的组件文件,组件样式及demo文档。

组件文件存放于 packages 文件夹里的对应组件名称文件夹中。

新的组件会在根目录的 components.json 中注册,如果要删除该组件,直接移除 components.json 文件中的对应行即可,在发布打包时将不包括该组件。(如果写了demo也要注意隐藏或删除。)

组件文件夹结构

组件文件夹里仅有 index.js 文件,作用是以插件形式导出组件,如果没有特殊情况,使用默认生成内容即可。

index.js 文件同级的是 src 文件夹,我们所写的所有内容都在这个文件夹中,默认文件为 main.vue 文件。

组件样式

组件样式不直接写在vue组件中,所有的样式我们统一写在 packages/theme-chalk/src 文件夹中,创建组件的时候会自动创建好。

组件内class的命名规范遵循 BEM 规范,请注意。

开发注意要点

  • 除非必要,尽量不引用第三方组件
  • 创建组件时命名规范遵循中划线命名法

其他make命令

更多 make 命令可以通过 help 指令查看

make help

浏览器支持

现代浏览器以及IE 10+.

更新日志

更新日志请参阅 更新日志.

FAQ

我们这这里收集了一些 常见的问题.