radiationfile
v0.0.6
Published
## An Amazing Select Component For Vue2
Downloads
10
Readme
radiationfile
An Amazing Select Component For Vue2
Install & Use
npm install radiationfile
#or
yarn add radiationfile
Import and register component
Global
import Vue from 'vue'
import radiationfile from 'radiationfile'
Vue.use(radiationfile)
Local
<template>
<tree
labelName="id"
:data-obj="listObj"
:parentsColorObj="{
fillColor:'#b2d4f7',
strokeColor:'#cccccc'}"
:sonColorObj="{
fillColor:'#e8b8ab',
strokeColor:'#cccccc'
}"
/>
</template>
<script>
import radiationfile from 'radiationfile'
export default {
components: {
radiationfile
},
data(){
return{
listObj:{
"id": "Modeling Methods",
"children": [
{
"id": "Classification",
"children": [
{ "id": "Logistic regression",children:[] },
{ "id": "Linear discriminant analysis",children:[] },
{ "id": "Rules",children:[] },
{ "id": "Decision trees",children:[] },
{ "id": "Naive Bayes",children:[] },
{ "id": "K nearest neighbor",children:[] },
{ "id": "Probabilistic neural network",children:[] },
{ "id": "Support vector machine",children:[] }
]
},
{
"id": "Consensus",
"children": [
{
"id": "Models diversity",
"children": [
{ "id": "Different initializations",children:[] },
{ "id": "Different parameter choices",children:[] },
{ "id": "Different architectures",children:[] },
{ "id": "Different modeling methods",children:[] },
{ "id": "Different training sets",children:[] },
{ "id": "Different feature sets",children:[] }
]
},
{
"id": "Methods",
"children": [
{ "id": "Classifier selection",children:[] },
{ "id": "Classifier fusion",children:[] }
]
},
{
"id": "Common",
"children": [
{ "id": "Bagging",children:[] },
{ "id": "Boosting",children:[] },
{ "id": "AdaBoost",children:[] }
]
}
]
},
{
"id": "Regression",
"children": [
{ "id": "Multiple linear regression",children:[] },
{ "id": "Partial least squares",children:[] },
{ "id": "Multi-layer feedforward neural network",children:[] },
{ "id": "General regression neural network",children:[] },
{ "id": "Support vector regression",children:[] }
]
}
]
}
}
}
}
</script>