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

sos-components

v1.0.16

Published

### 创建组件库 一.vue-cli初始化项目(3.0的脚手架) 二.编写组件库 三.修改配置项 四.发布 npm login;npm publish

Downloads

7

Readme

sos-vuecomponent

创建组件库

一.vue-cli初始化项目(3.0的脚手架) 二.编写组件库 三.修改配置项 四.发布 npm login;npm publish

安装

npm i sos-components --save

引用

支持全局引用

进度

目前已经支持的组件如下:

sosGroup

section:标题 more:更多按钮文字 moreImage:更多按钮图片 border:是否使用内边距 radius:圆角 @moreClick:更多按钮点击事件

sosCell

label:键 value(v-model):值 align:对齐方式 top:键居顶部 labelFont:键字体大小 labelColor:键字体颜色 valueFont:值字体大小 valueColor:值字体颜色 border:是否使用内边距 icon:图标

sosText

label:键 value(v-model):值 align:对齐方式 labelFont:键字体大小 labelColor:键字体颜色 valueFont:值字体大小 valueColor:值字体颜色 border:是否使用内边距 leftIcon:图标 type:类型 placeholder:缺省字符串 readonly:是否只读 required:是否必填

sosTextView

label:键 value(v-model):值 align:对齐方式 labelFont:键字体大小 labelColor:键字体颜色 valueFont:值字体大小 valueColor:值字体颜色 border:是否使用内边距 leftIcon:图标 height:文本框高度 placeholder:缺省字符串 readonly:是否只读 required:是否必填

sosSeg

label:键 value:值 如[{value:String,active:Boolean}] align:对齐方式 width:seg的宽度 labelFont:键字体大小 labelColor:键字体颜色 valueFont:值字体大小 valueColor:值字体颜色 border:是否使用内边距 icon:图标 readonly:是否只读 required:是否必填 @change:值发生改变的回调

sosTag

label:键 value:值 如[{value:String,active:Boolean}] align:对齐方式 labelFont:键字体大小 labelColor:键字体颜色 valueFont:值字体大小 valueColor:值字体颜色 border:是否使用内边距 icon:图标 readonly:是否只读 required:是否必填 @change:值发生改变的回调

sosSelectionBar

label:键 | String labelFontSize: String | 键值字体大小 例:16px、1.6rem,默认为16px labelColor: String | 键值字体颜色 例:#666、#eaf5fc,默认为#333 subtitle: String | 副标题 subtitleFontSize: String | 副标题字体大小 例:14px、1.4rem,默认为「14px」 subtitleColor: String | 副标题字体颜色 例:#666、#eaf5fc,默认为「#999」 buttonText: String | 按钮文本,默认为「选择」 buttonLock: Boolean | 按钮是否禁用,默认为「false」 showList: Boolean | 是否展示标签列表,默认为「true」 defaultMsg: String | 标签列表为空时的提示文本,默认为「请选择」 dataList: Array | 标签列表数据源 viewKey: String | 标签列表用做展示的key值,默认为「name」 resultBackground: String | 标签列表背景颜色,预置bulue|green可选,默认为灰色 bubble: Boolean | 是否以气泡样式展示,默认为「true」 bubbleDistance: String | 气泡上的小三角形标签的右边距 例:16px、3%,默认为28px @click: Function | 按钮点击时的回调函数 @lockClick: Function | 按钮锁定时点击的回调函数

sosPersonnelSelection

source: Object | 所需参数的集合 source = { multiple:2, //Number | 多选数量限制,缺省时为0(无限选择) choiceType:'user,dept', //String | 允许选择的分类,默认允许选择user dept:部门 user:用户 多选用,隔开 tab:[{ name: '本部门', code: 'userByMy', lock: true }], //Array | 必填:头部分类列表展示项 callback:function(value){ //Function | 回调函数,缺省时仅返回选中列表 //回调函数写这里 } }

其它

欢迎各位小伙伴批评指正。