| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152 |
- import QtQuick
- import QtQuick.Layouts
- import QtQuick.Controls
- import QtQuick.Window
- import FluentUI
- import "../component"
- FluScrollablePage{
- title:"Rectangle"
- leftPadding:10
- rightPadding:10
- bottomPadding:20
- spacing: 0
- FluArea{
- Layout.fillWidth: true
- Layout.topMargin: 20
- height: 480
- paddings: 10
- Column{
- spacing: 15
- anchors{
- verticalCenter: parent.verticalCenter
- left: parent.left
- }
- RowLayout{
- Layout.topMargin: 20
- FluRectangle{
- width: 50
- height: 50
- color:"#0078d4"
- radius:[0,0,0,0]
- }
- FluRectangle{
- width: 50
- height: 50
- color:"#744da9"
- radius:[15,15,15,15]
- }
- FluRectangle{
- width: 50
- height: 50
- color:"#ffeb3b"
- radius:[15,0,0,0]
- }
- FluRectangle{
- width: 50
- height: 50
- color:"#f7630c"
- radius:[0,15,0,0]
- }
- FluRectangle{
- width: 50
- height: 50
- color:"#e71123"
- radius:[0,0,15,0]
- }
- FluRectangle{
- width: 50
- height: 50
- color:"#b4009e"
- radius:[0,0,0,15]
- }
- }
- FluText{
- text:"配合图片使用"
- font: FluTextStyle.SubTitle
- Layout.topMargin: 20
- }
- RowLayout{
- spacing: 14
- FluRectangle{
- width: 50
- height: 50
- radius:[25,0,25,25]
- Image {
- asynchronous: true
- anchors.fill: parent
- source: "qrc:/example/res/svg/avatar_1.svg"
- sourceSize: Qt.size(width,height)
- }
- }
- FluRectangle{
- width: 50
- height: 50
- radius:[10,10,10,10]
- Image {
- asynchronous: true
- anchors.fill: parent
- sourceSize: Qt.size(width,height)
- source: "qrc:/example/res/svg/avatar_2.svg"
- }
- }
- FluRectangle{
- width: 50
- height: 50
- radius:[25,25,25,25]
- Image {
- asynchronous: true
- anchors.fill: parent
- sourceSize: Qt.size(width,height)
- source: "qrc:/example/res/svg/avatar_3.svg"
- }
- }
- FluRectangle{
- width: 50
- height: 50
- radius:[0,25,25,25]
- Image {
- asynchronous: true
- anchors.fill: parent
- sourceSize: Qt.size(width,height)
- source: "qrc:/example/res/svg/avatar_4.svg"
- }
- }
- }
- FluRectangle{
- width: 1080/5
- height: 1439/5
- radius:[25,25,25,25]
- Image {
- asynchronous: true
- source: "qrc:/example/res/image/image_huoyin.webp"
- anchors.fill: parent
- sourceSize: Qt.size(width,height)
- }
- Layout.topMargin: 10
- }
- }
- }
- CodeExpander{
- Layout.fillWidth: true
- Layout.topMargin: -1
- code:'FluRectangle{
- radius: [25,25,25,25]
- width: 50
- height: 50
- Image{
- asynchronous: true
- anchors.fill: parent
- source: "qrc:/example/res/svg/avatar_4.svg"
- sourceSize: Qt.size(width,height)
- }
- }'
- }
- }
|