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

el-cascader-muls

v1.1.1

Published

基于element-ui的级联可多选

Downloads

2

Readme

el-cascader-muls

基于element-ui的级联多选选择器,友好显示下拉箭头,样式与element一致,支持多选与级联选择器的大部分功能。

效果预览

multi-cascader

install 安装

npm i el-cascader-muls --save

use 使用

在main.js中写入下面的代码

import elCascaderMuls from "el-cascader-muls";
Vue.use(elCascaderMuls);

接下来,你就可以在页面中使用cascader-multi了

<template>
    <el-cascader-muls v-model="checkList" :data="data"> </el-cascader-multi>
</template>
<script>
    export default {
        data () {
            return {
                data: [], // 与element级联选择器格式一致
                checkList: []
            }
        }
    }
</script>

Select Attributes

| 参数 | 说明 | 类型 | 可选值 | 默认值 | | :--------------------: | ------------------------------------------------------------ | :----------------: | :-------------------: | :--------------------------------------------------: | | data | 用于渲染页面的数据(格式与element的级联选择器的数据格式一致) | Array | - | 无 | | value | 默认已选择数据项 | Array | - | 无 | | disabled | 是否禁用 | boolean | - | false | | expand-trigger | 次级菜单的展开方式 | 次级菜单的展开方式 | click / hover | click | | separator | 选项分隔符 | string | - | 横杆'-' | | value-key | 指定选项的值为选项对象的某个属性值 | string | - | value | | label-key | 指定选项标签为选项对象的某个属性值 | string | - | label | | children-key | 指定选项的子选项为选项对象的某个属性值 | string | - | children | | size | 尺寸 | string | medium / small / mini | - | | clearable | 是否支持清空选项 | boolean | - | false | | collapse-tags | 多选时是否将选中值按文字的形式展示 | boolean | - | false | | placeholder | 占位符 | string | - | 请选择 | | filterable | 是否可搜索 | boolean | - | false | | filter-method | 自定义搜索方法 | function | - | 参数为(list,searchText),需要把过滤后的数据return | | no-data-text | 选项为空时显示的文字 | string | - | 无数据 | | popper-class | Select 下拉框的类名 | string | - | - | | reserve-keyword | 多选且可搜索时,是否在选中一个选项后保留当前的搜索关键词 | boolean | - | false | | only-last | 是否只有叶子节点才支持多选 | boolean | - | false | | is-two-dimension-value | 绑定的value是[['level-1','level-2', ''level-3''], ['level-21', 'level-22']],还是['level-3', 'level-22']这种格式 | boolean | - | true | | show-leaf-label | 是否只显示最后一级的label | boolean | - | false |

Select Events

| 事件名称 | 说明 | 回调参数 | | :------------: | ---------------------------------- | :---------------------------: | | change | 选中值发生变化时触发 | 目前的选中值 | | visible-change | 下拉框出现/隐藏时触发 | 出现则为 true,隐藏则为 false | | remove-tag | 移除tag时触发 | 移除的tag值 | | clear | 可清空模式下用户点击清空按钮时触发 | - | | blur | 当 input 失去焦点时触发 | (event: Event) | | focus | 当 input 获得焦点时触发 | (event: Event) |

Select Slots

| 名称 | 说明 | | :----: | ------------ | | prefix | 组件头部内容 |

更新日志

版本:1.1.1

时间:2019-05-24 14:50