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

iview-tree-select

v1.1.1

Published

mutiple level tree selector

Downloads

42

Readme

iview-tree-select

![npm version] (https://img.shields.io/badge/npm-1.1.1-brightgreen.svg)

基于iview进行二次开发的级联树状选择组件,支持无限级,多选,中英文搜索(注:使用前先引入iview,否则无法使用)

效果

Image text Image text Image text Image text

安装

npm install iview-tree-select --save

引入

CommonJs

const treeSelect = require('iview-tree-select');

es6

import treeSelect from 'iview-tree-select';

##调用方式

<treeSelect v-model="value" :data="data" size="small" :width="200" />

##参数说明 1 data 数据源,格式如下: [ { value: '001', label: '北京', children: [ { value: '0011', label: '故宫', disable: true }, { value: '0012', label: '天坛' } ] } ] 2 v-model 初始化选中的项,类型为数组,如果不想设置初始化选中的项,请传递一个空数组 3 size 即iview定义的size,用于设置组件尺寸,不传使用默认尺寸,可选large,small 4 multiple 是否多选 5 width 文本框宽度,类型为数字,不传默认100% 6 disabled 是否可以选择 7 maxHeight 选择面板的最大高度,类型为数字,默认400,超出时出现滚动条 8 maxWidth 选择面板的最大宽度,类型为数字,默认400,超出时出现滚动条 9 renderOptions 是否渲染下拉选项,默认true 10 parentNodeAllow 父节点是否可以选择,默认true

##方法说明 1 getSelectNodes 获取被选中的节点对象

##事件说明 1 click 点击事件,参数true或者false,代表显示或者隐藏下拉框