mirror of
https://github.com/zhuzichu520/FluentUI.git
synced 2024-11-26 21:37:04 +08:00
update
This commit is contained in:
parent
bad1071bb4
commit
12e81e631c
@ -65,7 +65,7 @@ FluScrollablePage{
|
|||||||
id:list_model
|
id:list_model
|
||||||
ListElement{
|
ListElement{
|
||||||
lable:"2013-09-01"
|
lable:"2013-09-01"
|
||||||
text:"考上中国皮城大学,杰斯武器工坊专业"
|
text:' <img src="qrc:/example/res/image/image_1.jpg" align="top" width="144" height="102.4"> 考上中国皮城大学,杰斯武器工坊专业'
|
||||||
}
|
}
|
||||||
ListElement{
|
ListElement{
|
||||||
lable:"2017-07-01"
|
lable:"2017-07-01"
|
||||||
@ -96,7 +96,7 @@ FluScrollablePage{
|
|||||||
text:"开发FluentUI组件库"
|
text:"开发FluentUI组件库"
|
||||||
}
|
}
|
||||||
ListElement{
|
ListElement{
|
||||||
lable:"2023-03-28(富文本展示)"
|
lable:"2023-03-28"
|
||||||
text:'将FluentUI源码开源到<a href="https://github.com/zhuzichu520/FluentUI">github</a>,并发布视频到<a href="https://www.bilibili.com/video/BV1mg4y1M71w">B站</a>'
|
text:'将FluentUI源码开源到<a href="https://github.com/zhuzichu520/FluentUI">github</a>,并发布视频到<a href="https://www.bilibili.com/video/BV1mg4y1M71w">B站</a>'
|
||||||
lableDelegate:()=>com_lable
|
lableDelegate:()=>com_lable
|
||||||
textDelegate:()=>com_text
|
textDelegate:()=>com_text
|
||||||
|
BIN
example/res/image/image_1.jpg
Normal file
BIN
example/res/image/image_1.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 131 KiB |
@ -17,13 +17,15 @@ FluTextBox{
|
|||||||
id:d
|
id:d
|
||||||
property bool flagVisible: true
|
property bool flagVisible: true
|
||||||
}
|
}
|
||||||
|
onActiveFocusChanged: {
|
||||||
|
if(!activeFocus){
|
||||||
|
control_popup.visible = false
|
||||||
|
}
|
||||||
|
}
|
||||||
Popup{
|
Popup{
|
||||||
id:control_popup
|
id:control_popup
|
||||||
y:control.height
|
y:control.height
|
||||||
focus: false
|
focus: false
|
||||||
// modal: true
|
|
||||||
// Overlay.modal: Item{}
|
|
||||||
|
|
||||||
padding: 0
|
padding: 0
|
||||||
enter: Transition {
|
enter: Transition {
|
||||||
NumberAnimation {
|
NumberAnimation {
|
||||||
|
@ -98,6 +98,9 @@ Item {
|
|||||||
collapseAll()
|
collapseAll()
|
||||||
}
|
}
|
||||||
d.enableNavigationPanel = false
|
d.enableNavigationPanel = false
|
||||||
|
if(loader_auto_suggest_box.item){
|
||||||
|
loader_auto_suggest_box.item.focus = false
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Component{
|
Component{
|
||||||
@ -122,6 +125,7 @@ Item {
|
|||||||
Component{
|
Component{
|
||||||
id:com_panel_item_header
|
id:com_panel_item_header
|
||||||
Item{
|
Item{
|
||||||
|
clip: true
|
||||||
height: {
|
height: {
|
||||||
if(model.parent){
|
if(model.parent){
|
||||||
return model.parent.isExpand ? 30 : 0
|
return model.parent.isExpand ? 30 : 0
|
||||||
@ -151,6 +155,7 @@ Item {
|
|||||||
Item{
|
Item{
|
||||||
height: 38
|
height: 38
|
||||||
width: layout_list.width
|
width: layout_list.width
|
||||||
|
clip: true
|
||||||
FluControl{
|
FluControl{
|
||||||
id:item_control
|
id:item_control
|
||||||
anchors{
|
anchors{
|
||||||
@ -335,7 +340,12 @@ Item {
|
|||||||
right: item_title.right
|
right: item_title.right
|
||||||
rightMargin: 8
|
rightMargin: 8
|
||||||
}
|
}
|
||||||
sourceComponent: model.showEdit ? model.editDelegate : undefined
|
sourceComponent: {
|
||||||
|
if(d.isCompact){
|
||||||
|
return undefined
|
||||||
|
}
|
||||||
|
return model.showEdit ? model.editDelegate : undefined
|
||||||
|
}
|
||||||
onStatusChanged: {
|
onStatusChanged: {
|
||||||
if(status === Loader.Ready){
|
if(status === Loader.Ready){
|
||||||
item.forceActiveFocus()
|
item.forceActiveFocus()
|
||||||
@ -529,7 +539,12 @@ Item {
|
|||||||
right: item_title.right
|
right: item_title.right
|
||||||
rightMargin: 8
|
rightMargin: 8
|
||||||
}
|
}
|
||||||
sourceComponent: model.showEdit ? model.editDelegate : undefined
|
sourceComponent: {
|
||||||
|
if(d.isCompact){
|
||||||
|
return undefined
|
||||||
|
}
|
||||||
|
return model.showEdit ? model.editDelegate : undefined
|
||||||
|
}
|
||||||
onStatusChanged: {
|
onStatusChanged: {
|
||||||
if(status === Loader.Ready){
|
if(status === Loader.Ready){
|
||||||
item.forceActiveFocus()
|
item.forceActiveFocus()
|
||||||
|
@ -102,6 +102,7 @@ Item{
|
|||||||
wrapMode: Text.WrapAnywhere
|
wrapMode: Text.WrapAnywhere
|
||||||
horizontalAlignment: isRight ? Qt.AlignRight : Qt.AlignLeft
|
horizontalAlignment: isRight ? Qt.AlignRight : Qt.AlignLeft
|
||||||
text: modelData.text
|
text: modelData.text
|
||||||
|
textFormat: Text.RichText
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user