mirror of
https://github.com/zhuzichu520/FluentUI.git
synced 2025-07-03 08:35:28 +08:00
update
This commit is contained in:
@ -1,8 +1,8 @@
|
||||
import QtQuick 2.15
|
||||
import QtQuick.Controls 2.15
|
||||
import QtQuick.Layouts 1.15
|
||||
import QtQuick.Window 2.15
|
||||
import FluentUI 1.0
|
||||
import QtQuick
|
||||
import QtQuick.Controls
|
||||
import QtQuick.Layouts
|
||||
import QtQuick.Window
|
||||
import FluentUI
|
||||
|
||||
|
||||
Button{
|
||||
@ -27,15 +27,19 @@ Button{
|
||||
onClicked: {
|
||||
popup.showPopup()
|
||||
}
|
||||
Popup{
|
||||
Menu{
|
||||
id:popup
|
||||
modal: true
|
||||
dim:false
|
||||
height: container.height
|
||||
width: container.width
|
||||
background: FluColorView{
|
||||
id:container
|
||||
contentItem: Item{
|
||||
anchors.fill: parent
|
||||
FluColorView{
|
||||
id:container
|
||||
}
|
||||
}
|
||||
background:Item{}
|
||||
enter: Transition {
|
||||
NumberAnimation {
|
||||
property: "y"
|
||||
@ -50,7 +54,6 @@ Button{
|
||||
duration: 150
|
||||
}
|
||||
}
|
||||
contentItem: Item{}
|
||||
function showPopup() {
|
||||
var pos = control.mapToItem(null, 0, 0)
|
||||
if(window.height>pos.y+control.height+popup.height){
|
||||
|
Reference in New Issue
Block a user