代码拉取完成,页面将自动刷新
同步操作将从 lennyaaa/admindemo 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
import QtQuick 2.5
import QtQuick.Controls 1.4
import QtQuick.Controls.Styles 1.4
Item {
width: 800
height: 600
property alias mTabView: tab_view
Rectangle{
anchors.fill: parent
color: "#fafafa"
TabView {
id: tab_view
anchors.fill: parent
Tab {
id: tab1
anchors.fill: parent
title: qsTr("首页")
active: true
FirstForm {
property string name: "home"
anchors.fill: parent
}
}
style: TabViewStyle{
frameOverlap: 1
tab: Rectangle {
id: rctMain
color: styleData.selected ? "#f3f3f4" :"#ffffff"
implicitWidth: Math.max(text.width + 60, 120)
implicitHeight: 40
border.color: "#cdc5c5"
border.width: 1
radius: 0
Rectangle {
id: rctClose
width: 32
anchors.right: parent.right
anchors.rightMargin: 1
anchors.top: parent.top
anchors.topMargin: 1
anchors.bottom: parent.bottom
anchors.bottomMargin: 1
color:"#00000000"
visible: styleData.index !== 0
Image {
id:imgClose
width: 12
height: 12
anchors.centerIn: parent
source: "image/close-normal.png"
states: [
State {
name: "NORMAL"
PropertyChanges { target: imgClose; source: "image/close-normal.png" }
},
State {
name: "HOVER"
PropertyChanges { target: imgClose; source: "image/close-hovered.png" }
}
]
}
MouseArea {
hoverEnabled: true
anchors.fill: parent
onEntered: {
imgClose.state = "HOVER";
}
onExited: {
imgClose.state = "NORMAL";
}
onClicked: {
console.log("title:" + styleData.title);
console.log("index:" + styleData.index);
tab_view.removeTab(styleData.index);
}
}
}
Text {
id: text
anchors.centerIn: parent
text: styleData.title
color: styleData.selected ? "#23508e" : "#999"
font.family: "Alibaba PuHuiTi R"
font.pixelSize: 13
}
}
frame: Rectangle { //
color: "#f3f3f4"
border.color: "#cdc5c5"
border.width: 1
}
}
}
}
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。