mirror of
https://github.com/zhuzichu520/FluentUI.git
synced 2025-07-06 18:55:58 +08:00
update
This commit is contained in:
@ -11,9 +11,9 @@ FluScrollablePage {
|
||||
title:"TreeView"
|
||||
|
||||
function treeData(){
|
||||
const dig = (path = '0', level = 4) => {
|
||||
const dig = (path = '0', level = 3) => {
|
||||
const list = [];
|
||||
for (let i = 0; i < 10; i += 1) {
|
||||
for (let i = 0; i < 8; i += 1) {
|
||||
const key = `${path}-${i}`;
|
||||
const treeNode = {
|
||||
title: key,
|
||||
@ -49,7 +49,7 @@ FluScrollablePage {
|
||||
Layout.fillWidth: true
|
||||
Layout.topMargin: 10
|
||||
paddings: 10
|
||||
height: 400
|
||||
height: 420
|
||||
Item{
|
||||
anchors.fill: tree_view
|
||||
FluShadow{}
|
||||
@ -62,6 +62,7 @@ FluScrollablePage {
|
||||
left:parent.left
|
||||
bottom:parent.bottom
|
||||
}
|
||||
draggable:switch_draggable.checked
|
||||
showLine: switch_showline.checked
|
||||
Component.onCompleted: {
|
||||
var data = treeData()
|
||||
@ -69,6 +70,7 @@ FluScrollablePage {
|
||||
}
|
||||
}
|
||||
Column{
|
||||
spacing: 15
|
||||
anchors{
|
||||
top:parent.top
|
||||
topMargin: 10
|
||||
@ -87,7 +89,7 @@ FluScrollablePage {
|
||||
id:slider_width
|
||||
value: 200
|
||||
from: 160
|
||||
to:320
|
||||
to:460
|
||||
}
|
||||
}
|
||||
|
||||
@ -96,6 +98,12 @@ FluScrollablePage {
|
||||
text:"showLine"
|
||||
checked: true
|
||||
}
|
||||
|
||||
FluToggleSwitch{
|
||||
id:switch_draggable
|
||||
text:"draggable"
|
||||
checked: false
|
||||
}
|
||||
}
|
||||
}
|
||||
CodeExpander{
|
||||
|
Reference in New Issue
Block a user