
Research
/Security News
Toptal’s GitHub Organization Hijacked: 10 Malicious Packages Published
Threat actors hijacked Toptal’s GitHub org, publishing npm packages with malicious payloads that steal tokens and attempt to wipe victim systems.
@vueblocks/elp-cascader
Advanced tools
A vue component based on 'element-ui' and 'vue-virtual-scroller'
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 |
panelLabels | 面板搜索标题 | Array | - | [] |
panelPlaceholder | 面板搜索placeholder | Array | - | [] |
expandPanels | 默认展开面板数 | number | - | 0 |
emptyText | 无匹配数据时展示文案 | string | - | '暂无数据' |
参数 | 说明 | 回调参数 |
---|---|---|
lazy-loaded | 惰性加载完毕后触发 | 选中节点的值 |
FAQs
A vue component based on 'element-ui' and 'vue-virtual-scroller'
The npm package @vueblocks/elp-cascader receives a total of 4 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.
Research
/Security News
Threat actors hijacked Toptal’s GitHub org, publishing npm packages with malicious payloads that steal tokens and attempt to wipe victim systems.
Research
/Security News
Socket researchers investigate 4 malicious npm and PyPI packages with 56,000+ downloads that install surveillance malware.
Security News
The ongoing npm phishing campaign escalates as attackers hijack the popular 'is' package, embedding malware in multiple versions.