mirror of
https://github.com/zhuzichu520/FluentUI.git
synced 2025-02-02 11:17:39 +08:00
update
This commit is contained in:
parent
50f7071172
commit
fce7f8c40c
@ -3,7 +3,7 @@ import QtQuick.Layouts 1.15
|
||||
import QtQuick.Controls 2.15
|
||||
import "Content"
|
||||
|
||||
Rectangle {
|
||||
Item {
|
||||
id: colorPicker
|
||||
property color colorValue: "transparent"
|
||||
property bool enableAlphaChannel: true
|
||||
@ -18,7 +18,6 @@ Rectangle {
|
||||
|
||||
implicitWidth: picker.implicitWidth
|
||||
implicitHeight: picker.implicitHeight
|
||||
color: "#00000000"
|
||||
clip: true
|
||||
|
||||
RowLayout {
|
||||
|
@ -39,7 +39,12 @@ Item{
|
||||
Rectangle{
|
||||
id:rect_line
|
||||
color: control.lineColor
|
||||
height: parent.height
|
||||
height: {
|
||||
if(repeater.count===0){
|
||||
return parent.height
|
||||
}
|
||||
return parent.height - layout_column.children[repeater.count-1].height
|
||||
}
|
||||
width: 2
|
||||
visible: repeater.count!==0
|
||||
state: d.stateName
|
||||
@ -92,7 +97,12 @@ Item{
|
||||
FluText{
|
||||
wrapMode: Text.WrapAnywhere
|
||||
horizontalAlignment: isRight ? Qt.AlignRight : Qt.AlignLeft
|
||||
text: modelData.lable
|
||||
text: {
|
||||
if(modelData.lable){
|
||||
return modelData.lable
|
||||
}
|
||||
return ""
|
||||
}
|
||||
color: FluTheme.primaryColor
|
||||
}
|
||||
}
|
||||
|
@ -3,7 +3,7 @@ import QtQuick.Layouts
|
||||
import QtQuick.Controls
|
||||
import "Content"
|
||||
|
||||
Rectangle {
|
||||
Item {
|
||||
id: colorPicker
|
||||
property color colorValue: "transparent"
|
||||
property bool enableAlphaChannel: true
|
||||
@ -18,7 +18,6 @@ Rectangle {
|
||||
|
||||
implicitWidth: picker.implicitWidth
|
||||
implicitHeight: picker.implicitHeight
|
||||
color: "#00000000"
|
||||
clip: true
|
||||
|
||||
RowLayout {
|
||||
@ -30,7 +29,6 @@ Rectangle {
|
||||
anchors.bottom: parent.bottom
|
||||
spacing: 0
|
||||
|
||||
|
||||
SBPicker {
|
||||
id: sbPicker
|
||||
Layout.fillWidth: true
|
||||
|
@ -39,7 +39,12 @@ Item{
|
||||
Rectangle{
|
||||
id:rect_line
|
||||
color: control.lineColor
|
||||
height: parent.height
|
||||
height: {
|
||||
if(repeater.count===0){
|
||||
return parent.height
|
||||
}
|
||||
return parent.height - layout_column.children[repeater.count-1].height
|
||||
}
|
||||
width: 2
|
||||
visible: repeater.count!==0
|
||||
state: d.stateName
|
||||
@ -92,7 +97,12 @@ Item{
|
||||
FluText{
|
||||
wrapMode: Text.WrapAnywhere
|
||||
horizontalAlignment: isRight ? Qt.AlignRight : Qt.AlignLeft
|
||||
text: modelData.lable
|
||||
text: {
|
||||
if(modelData.lable){
|
||||
return modelData.lable
|
||||
}
|
||||
return ""
|
||||
}
|
||||
color: FluTheme.primaryColor
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user