mirror of
https://github.com/zhuzichu520/FluentUI.git
synced 2025-02-09 00:05:39 +08:00
update
This commit is contained in:
parent
895332f867
commit
68127a7303
@ -37,8 +37,9 @@ FluContentPage{
|
|||||||
checked: true === options.checked
|
checked: true === options.checked
|
||||||
enableAnimation: false
|
enableAnimation: false
|
||||||
clickListener: function(){
|
clickListener: function(){
|
||||||
modelData.checkbox = table_view.customItem(com_checbox,{checked:!options.checked})
|
var obj = tableModel.getRow(row)
|
||||||
tableModel.setRow(row,modelData)
|
obj.checkbox = table_view.customItem(com_checbox,{checked:!options.checked})
|
||||||
|
tableModel.setRow(row,obj)
|
||||||
checkBoxChanged()
|
checkBoxChanged()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -38,8 +38,9 @@ FluContentPage{
|
|||||||
checked: true === options.checked
|
checked: true === options.checked
|
||||||
enableAnimation: false
|
enableAnimation: false
|
||||||
clickListener: function(){
|
clickListener: function(){
|
||||||
modelData.checkbox = table_view.customItem(com_checbox,{checked:!options.checked})
|
var obj = tableModel.getRow(row)
|
||||||
tableModel.setRow(row,modelData)
|
obj.checkbox = table_view.customItem(com_checbox,{checked:!options.checked})
|
||||||
|
tableModel.setRow(row,obj)
|
||||||
checkBoxChanged()
|
checkBoxChanged()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -142,7 +142,7 @@ Rectangle {
|
|||||||
id:com_text
|
id:com_text
|
||||||
FluText {
|
FluText {
|
||||||
id:item_text
|
id:item_text
|
||||||
text: itemData
|
text: modelData
|
||||||
elide: Text.ElideRight
|
elide: Text.ElideRight
|
||||||
wrapMode: Text.WrapAnywhere
|
wrapMode: Text.WrapAnywhere
|
||||||
anchors{
|
anchors{
|
||||||
@ -272,23 +272,23 @@ Rectangle {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
Loader{
|
Loader{
|
||||||
property var itemData: display
|
property var itemModel: model
|
||||||
|
property var modelData: display
|
||||||
property var tableView: table_view
|
property var tableView: table_view
|
||||||
property var tableModel: table_model
|
property var tableModel: table_model
|
||||||
property var position: item_table.position
|
property var position: item_table.position
|
||||||
property int row: position.y
|
property int row: position.y
|
||||||
property var modelData: table_model.getRow(row)
|
|
||||||
property int column: position.x
|
property int column: position.x
|
||||||
property var options: {
|
property var options: {
|
||||||
if(typeof(itemData) == "object"){
|
if(typeof(modelData) == "object"){
|
||||||
return itemData.options
|
return modelData.options
|
||||||
}
|
}
|
||||||
return {}
|
return {}
|
||||||
}
|
}
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
sourceComponent: {
|
sourceComponent: {
|
||||||
if(typeof(itemData) == "object"){
|
if(typeof(modelData) == "object"){
|
||||||
return itemData.comId
|
return modelData.comId
|
||||||
}
|
}
|
||||||
return com_text
|
return com_text
|
||||||
}
|
}
|
||||||
|
@ -144,7 +144,7 @@ Rectangle {
|
|||||||
id:com_text
|
id:com_text
|
||||||
FluText {
|
FluText {
|
||||||
id:item_text
|
id:item_text
|
||||||
text: itemData
|
text: modelData
|
||||||
elide: Text.ElideRight
|
elide: Text.ElideRight
|
||||||
wrapMode: Text.WrapAnywhere
|
wrapMode: Text.WrapAnywhere
|
||||||
anchors{
|
anchors{
|
||||||
@ -287,23 +287,23 @@ Rectangle {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
Loader{
|
Loader{
|
||||||
property var itemData: display
|
property var itemModel: model
|
||||||
|
property var modelData: display
|
||||||
property var tableView: table_view
|
property var tableView: table_view
|
||||||
property var tableModel: table_model
|
property var tableModel: table_model
|
||||||
property point position: item_table.position
|
property point position: item_table.position
|
||||||
property int row: position.y
|
property int row: position.y
|
||||||
property var modelData: table_model.getRow(row)
|
|
||||||
property int column: position.x
|
property int column: position.x
|
||||||
property var options: {
|
property var options: {
|
||||||
if(typeof(itemData) == "object"){
|
if(typeof(modelData) == "object"){
|
||||||
return itemData.options
|
return modelData.options
|
||||||
}
|
}
|
||||||
return {}
|
return {}
|
||||||
}
|
}
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
sourceComponent: {
|
sourceComponent: {
|
||||||
if(typeof(itemData) == "object"){
|
if(typeof(modelData) == "object"){
|
||||||
return itemData.comId
|
return modelData.comId
|
||||||
}
|
}
|
||||||
return com_text
|
return com_text
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user