Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
@xlaoyu/enhanced-el-tree
Advanced tools
Base on element-ui's tree component, add some useful function and horizontal-mode
Or can be said that is multiple-cascader component.Try it Demo
restrict:when use horizontal mode
,some origin tree property would not take efffect, eg: indent, accordion etc.
Attribute | Description | Type | Accepted Values | Default |
---|---|---|---|---|
horizontal | whether to activate horizontal mode | Boolean | - | false |
tree-node-wrapper-class | add these class to horizontal block wrapper when activate horizontal mode | String | - | - |
open-when-check | click checkbox to behave like a click tree node | Boolean | - | false |
Name | Description | Parameters |
---|---|---|
getAllCheckedKeys | like getCheckedKeys but includes indeterminate nodes | |
getAllCheckedNodes | like getCheckedNodes but includes indeterminate nodes | |
setCheckedNodesPrecisely | Usually used with getAllCheckedNodes to restore the original state of the tree | an array of nodes get from getAllCheckedKeys |
setCheckedKeysPrecisely | Usually used with getAllCheckedKeys to restore the original state of the tree | an array of keys get from getAllCheckedKeys |
getCheckedKeysWithoutChild | get checked node except all child checked nodes, look at the example below | |
getCheckedNodesWithoutChild | ditto |
getCheckedKeysWithoutChild
example:
/**
*
* @example
* level1 - intermediate
* level1.1 - checked
* level1.1.1 - checked
* level1.1.2 - checked
* level1.2 - checked
* level1.3 - intermediate
* level1.3.1 - checked
* level1.3.2 - not checked
* level1.4 - not checked
* level2 - checked
*
* getCheckedKeysWithoutChild() will return [level2, level1.1, level1.2, level1.3.1]
*/
$ npm install @xlaoyu/enhanced-el-tree -D
<template>
<enhanced-el-tree horizontal></enhanced-el-tree>
</template>
<script>
import EnhancedElTree from '@xlaoyu/enhanced-el-tree';
// component constructor
{
name: 'FooComponent',
components: {
EnhancedElTree
}
}
</script>
Vue@2.5.13
Element@2.2.1
MIT @ xlaoyu
FAQs
enhanced element-ui's tree component
The npm package @xlaoyu/enhanced-el-tree receives a total of 1 weekly downloads. As such, @xlaoyu/enhanced-el-tree popularity was classified as not popular.
We found that @xlaoyu/enhanced-el-tree demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.