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

axb-element-ui

v0.2.2

Published

axb组件库是一个基于的ElemntUI二次封装的定制化组件库

Downloads

32

Readme

tree-permission

Project setup

axb-基于elementUI-二次封装的定制化组件库

Compiles and hot-reloads for development

treePermission 组件
<treePermission :tree-list="data" v-model = "selectedItems"/>
data为一个树状结构,数据结构包含 id  name parentId children  buttons constraints是否置灰不可选
data:[
 {
 id:'',
 name:'',
 buttons:[],
 parentId:0
 children:[
    
	{
	id:'',
	name:'',
	button:[],
	parentId:''
	children:[
	 ......
	]
	}
  ]
 }
]
selectedItems为已选择的菜单ID
needCheckedAll:是否需要全选
isView:disabled是否置灰
unChangeSelected 默认选择的 点击全部 不会取消的
forbidData 禁止选中得数据

scrollSellect组件
<ScrollSelect
  :selected-value="form.accountId"
  :get-list-methods="getListMethods"
  :go-loading.sync="loadingFlag.accountLoading"
  :get-list-format="getListFormat"
  :get-list-params="form"
  :clearable="currentComponent !== 'LiberalProfessionsFlowing'?true:false"
  placeholder-text="请输入自由职业者姓名"
  search-key="accountName"
  size="50"
  @selectedChange="selectedChange"
  @total="getTotal"
 />
selected-value 选中的值
get-list-methods 获取optionsAPi方法
go-loading  加载数据的loading
get-list-params api请求的额外参数 参数
size下拉加载的size
selectedChange选中事件
total为options的总数量
search-key 远程索索key
get-list-format otions展示的数据格式
例如:
getListFormat: (list = []) => { // 下拉框数据格式
        return list.map(({ name, id, certNo }) => ({ label: name, value: id, certNo }))
      },

Compiles and minifies for production

Lints and fixes files

Customize configuration

See Configuration Reference.