mirror of
https://github.com/WeBankFinTech/fes.js.git
synced 2025-04-29 22:14:49 +08:00
53 lines
1.6 KiB
Markdown
53 lines
1.6 KiB
Markdown
```html
|
|
<template>
|
|
<Dropdown :data="data3" trigger="click">
|
|
<Wb-button type="primary">Click</Wb-button>
|
|
</Dropdown>
|
|
</template>
|
|
<script>
|
|
export default {
|
|
data: function() {
|
|
return {
|
|
data3: [
|
|
{
|
|
content: 'number 1'
|
|
},
|
|
{
|
|
content: 'number 2'
|
|
},
|
|
{
|
|
content: 'sub 1',
|
|
children: [
|
|
{
|
|
content: 'number 3'
|
|
},
|
|
{
|
|
content: 'number 4',
|
|
divided: true
|
|
},
|
|
{
|
|
content: 'sub 2',
|
|
children: [
|
|
{
|
|
content: 'sub 3',
|
|
children: [
|
|
{
|
|
content: 'number 6'
|
|
}
|
|
]
|
|
},
|
|
{
|
|
content: 'number 5',
|
|
disabled: true
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
```
|