
Security News
PyPI Expands Trusted Publishing to GitLab Self-Managed as Adoption Passes 25 Percent
PyPI adds Trusted Publishing support for GitLab Self-Managed as adoption reaches 25% of uploads
@vueblocks/elp-cascader
Advanced tools
Cascader based on 'element-ui' and 'vue-virtual-scroller'
基于
element-ui和vue-virtual-scroller的级联选择器,用虚拟列表的方式逐级渲染列表。适用于数据量较大的场景。

npm i @vueblocks/elp-cascader --save
# or
yarn add @vueblocks/elp-cascader
在main.js中写入下面的代码
import '@vueblocks/elp-cascader/lib/elp-cascader.css'
import ElpCascader from '@vueblocks/cascader'
Vue.use(ElpCascader)
页面中直接使用
<template>
<div id="app">
<elp-cascader v-model="value" :options="options" />
<elp-cascader-panel v-model="value" :options="options" />
</div>
</template>
<script>
export default {
data () {
return {
value: '',
options: [
{
value: 'test',
label: '测试',
children: []
}]
}
}
}
</script>
Attributes、Events、Methods、Props
el-cascader当option重复时,会出一个空白节点
解决逻辑:重复时保留老节点,舍去新节点
el-cascader多选状态下,第一个搜索词选中内容后,搜索词被清空
解决逻辑:保留第一个搜索词
props中新增属性
| 参数 | 说明 | 类型 | 可选值 | 默认值 |
|---|---|---|---|---|
| selectWithExpand | 单选且checkStrictly为true时是否展开下一级 | boolean | - | false |
| lazyMultiCheck | 多选且懒加载时取值 | boolean | - | false |
| panelLabels | 面板标题 | Array | - | [] |
| checkAll | 多选且checkStrictly为true时全选 | boolean | - | false |
| panelSearch | 面板搜索 | boolean | - | false |
| expandPanels | 默认展开面板数 | number | - | 0 |
| 参数 | 说明 | 回调参数 |
|---|---|---|
| lazy-loaded | 惰性加载完毕后触发 | 选中节点的值 |
FAQs
A vue component based on 'element-ui' and 'vue-virtual-scroller'
The npm package @vueblocks/elp-cascader receives a total of 42 weekly downloads. As such, @vueblocks/elp-cascader popularity was classified as not popular.
We found that @vueblocks/elp-cascader demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
PyPI adds Trusted Publishing support for GitLab Self-Managed as adoption reaches 25% of uploads

Research
/Security News
A malicious Chrome extension posing as an Ethereum wallet steals seed phrases by encoding them into Sui transactions, enabling full wallet takeover.

Security News
Socket is heading to London! Stop by our booth or schedule a meeting to see what we've been working on.