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 🙏

© 2026 – Pkg Stats / Ryan Hefner

flyingd-cascader

v1.1.4

Published

A Vue.js project

Downloads

18

Readme

移动端vue组件-级联选择器

查看GitHub仓库最新文档(源码)

https://github.com/flyingdwang/flyingd-cascader.git

查看在线演示

安装

cnpm install flyingd-cascader --save-dev

演示代码

<flyingd-cascader v-model="cascaderOption" :visible.sync="cascaderVisible" :options="options"  :cascadervalue="cascadervalue" :cascaderlabel="cascaderlabel" :placeholder="cascaderPlaceholder"
           :cascaderchildren="cascaderchildren"  popper-class='flyingdwang-cascader'   @change="cascaderFun" 
        ></flyingd-cascader>
<script>
import flyingdCascader from 'flyingd-cascader';
export default {
  name: 'demo',
  components:{
    flyingdCascader
  },
  data () {
    return {
      options: [
          {
          value: 'ziyuan',
          label: '资源',
          children: [{
              value: 'axure',
              label: 'Axure Components'
          }, {
              value: 'sketch',
              label: 'Sketch Templates',
              disabled:true,
	
          }, {
              value: 'jiaohu',
              label: '组件交互文档',
               children: [{
                  value: 'table',
                  label: 'Table 表格'
                  }, {
                  value: 'tag',
                  label: 'Tag 标签'
                  }, {
                  value: 'progress',
                  label: 'Progress 进度条'
                  }, {
                  value: 'tree',
                  label: 'Tree 树形控件'
                  }, {
                  value: 'pagination',
                  label: 'Pagination 分页'
                  }, {
                  value: 'badge',
                  label: 'Badge 标记'
               }]
          	}]
          }
      ],
      cascadervalue:'value',
      cascaderlabel:'label',
      cascaderchildren:'children',
      cascaderOption:["ziyuan"],
      cascaderPlaceholder:['请选择资源','请选择组件','请选择参数'],
      cascaderVisible:false,
    }
  },
  methods: {
    cascaderFun:function (option){
        console.log(option,this.cascaderOption);
    },
      
  },
}
</script>

参数说明 :

| 参数 | 说明 | 类型 | 默认值 | | ------------------- | --------------------------------------- | ------- | -------- | | visible | 是否显示 cascader | boolean | false | | options | 可选项数据源,键名可通过 props 属性配置 | Array | - | | value | 选中项绑定值 | Array | - | | cascadervalue | 指定选项的值为选项对象的某个属性值 | string | value | | cascaderlabel | 指定选项标签为选项对象的某个属性值 | string | label | | cascaderchildren | 指定选项的子选项为选项对象的某个属性值 | string | children | | disabled | 指定选项的禁用为选项对象的某个属性值 | Boolean | false | | popper-class | 自定义浮层类名 | string | - | | cascaderPlaceholder | 占位文本 | Array | - |

props

| 参数 | 说明 | 类型 | 默认值 | | -------- | ---------- | ------- | ------ | | value | 对象属性值 | string | - | | label | 对象属性值 | string | - | | children | 子选项 | Array | - | | disabled | 是否禁用 | Boolean | - |

Events

| 事件名称 | 说明 | 回调参数 | | -------- | ---------------------------------------------- | -------- | | change | 当绑定值变化时触发的事件 ==> function(option) | 所有值 | | close | 关闭弹窗回调 | |