mirror of
https://github.com/zhuzichu520/FluentUI.git
synced 2024-11-23 19:20:59 +08:00
update
This commit is contained in:
parent
c0f15060af
commit
f2b67af58a
@ -67,6 +67,7 @@ Rectangle {
|
|||||||
Component{
|
Component{
|
||||||
id:com_edit
|
id:com_edit
|
||||||
FluTextBox{
|
FluTextBox{
|
||||||
|
id:text_box
|
||||||
text: display
|
text: display
|
||||||
readOnly: true === columnSource[column].readOnly
|
readOnly: true === columnSource[column].readOnly
|
||||||
Component.onCompleted: {
|
Component.onCompleted: {
|
||||||
@ -75,7 +76,7 @@ Rectangle {
|
|||||||
}
|
}
|
||||||
onCommit: {
|
onCommit: {
|
||||||
if(!readOnly){
|
if(!readOnly){
|
||||||
display = text
|
display = text_box.text
|
||||||
}
|
}
|
||||||
tableView.closeEditor()
|
tableView.closeEditor()
|
||||||
}
|
}
|
||||||
|
@ -69,6 +69,7 @@ Rectangle {
|
|||||||
Component{
|
Component{
|
||||||
id:com_edit
|
id:com_edit
|
||||||
FluTextBox{
|
FluTextBox{
|
||||||
|
id:text_box
|
||||||
text: display
|
text: display
|
||||||
readOnly: true === columnSource[column].readOnly
|
readOnly: true === columnSource[column].readOnly
|
||||||
Component.onCompleted: {
|
Component.onCompleted: {
|
||||||
@ -77,7 +78,7 @@ Rectangle {
|
|||||||
}
|
}
|
||||||
onCommit: {
|
onCommit: {
|
||||||
if(!readOnly){
|
if(!readOnly){
|
||||||
display = text
|
display = text_box.text
|
||||||
}
|
}
|
||||||
tableView.closeEditor()
|
tableView.closeEditor()
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user