欧美性猛交xxxx免费看_牛牛在线视频国产免费_天堂草原电视剧在线观看免费_国产粉嫩高清在线观看_国产欧美日本亚洲精品一5区

0
  • 聊天消息
  • 系統(tǒng)消息
  • 評(píng)論與回復(fù)
登錄后你可以
  • 下載海量資料
  • 學(xué)習(xí)在線課程
  • 觀看技術(shù)視頻
  • 寫文章/發(fā)帖/加入社區(qū)
會(huì)員中心
創(chuàng)作中心

完善資料讓更多小伙伴認(rèn)識(shí)你,還能領(lǐng)取20積分哦,立即完善>

3天內(nèi)不再提示

鴻蒙ArkTS容器組件:Swiper

jf_46214456 ? 來源:jf_46214456 ? 作者:jf_46214456 ? 2024-07-15 09:51 ? 次閱讀

Swiper

滑塊視圖容器,提供子組件滑動(dòng)輪播顯示的能力。

說明:

該組件從API Version 7開始支持。后續(xù)版本如有新增內(nèi)容,則采用上角標(biāo)單獨(dú)標(biāo)記該內(nèi)容的起始版本。

子組件

可以包含子組件。

說明:
開發(fā)前請(qǐng)熟悉鴻蒙開發(fā)指導(dǎo)文檔 :[gitee.com/li-shizhen-skin/harmony-os/blob/master/README.md]
子組件類型:系統(tǒng)組件和自定義組件,支持渲染控制類型([if/else]、[ForEach]和[LazyForEach])。

Swiper子組件的visibility屬性設(shè)置為None,Swiper的displayMode屬性設(shè)置為SwiperDisplayMode.AutoLinear或displayCount屬性設(shè)置為'auto'時(shí),對(duì)應(yīng)子組件在視窗內(nèi)不占位,但不影響導(dǎo)航點(diǎn)個(gè)數(shù)。

Swiper子組件的visibility屬性設(shè)置為None,或者visibility屬性設(shè)置為Hidden時(shí),對(duì)應(yīng)子組件不顯示,但依然會(huì)在視窗內(nèi)占位。

當(dāng)Swiper子組件個(gè)數(shù)小于等于Swiper組件內(nèi)容區(qū)內(nèi)顯示的節(jié)點(diǎn)總個(gè)數(shù)(totalDisplayCount = DisplayCount + prevMargin? (1 : 0 ) + nextMargin? (1 : 0 ))時(shí),按照非循環(huán)模式布局處理,此時(shí),前后邊距對(duì)應(yīng)子組件不顯示,但依然會(huì)在視窗內(nèi)占位。Swiper組件按照totalDisplayCount個(gè)數(shù)判斷測(cè)算規(guī)格

接口

Swiper(controller?: SwiperController)

參數(shù)

參數(shù)名參數(shù)類型必填參數(shù)描述
controller[SwiperController]給組件綁定一個(gè)控制器,用來控制組件翻頁。

屬性

除支持[通用屬性]外,還支持以下屬性,不支持[Menu控制]。

名稱參數(shù)類型描述
indexnumber設(shè)置當(dāng)前在容器中顯示的子組件的索引值。 默認(rèn)值:0**說明:**設(shè)置小于0或大于等于子組件數(shù)量時(shí),按照默認(rèn)值0處理。 從API version 10開始,該屬性支持[$$]雙向綁定變量。
autoPlayboolean子組件是否自動(dòng)播放。 默認(rèn)值:false**說明:**loop為false時(shí),自動(dòng)輪播到最后一頁時(shí)停止輪播。手勢(shì)切換后不是最后一頁時(shí)繼續(xù)播放。
intervalnumber使用自動(dòng)播放時(shí)播放的時(shí)間間隔,單位為毫秒。 默認(rèn)值:3000
indicator10+[DotIndicator][DigitIndicator]
loopboolean是否開啟循環(huán)。 設(shè)置為true時(shí)表示開啟循環(huán),在LazyForEach懶循環(huán)加載模式下,加載的組件數(shù)量建議大于5個(gè)。 默認(rèn)值:true
durationnumber子組件切換的動(dòng)畫時(shí)長,單位為毫秒。 默認(rèn)值:400
verticalboolean是否為縱向滑動(dòng)。 默認(rèn)值:false
itemSpacenumberstring
displayModeSwiperDisplayMode主軸方向上元素排列的模式,優(yōu)先以displayCount設(shè)置的個(gè)數(shù)顯示,displayCount未設(shè)置時(shí)本屬性生效。 默認(rèn)值:SwiperDisplayMode.STRETCH
cachedCount8+number設(shè)置預(yù)加載子組件個(gè)數(shù)。 默認(rèn)值:1
disableSwipe8+boolean禁用組件滑動(dòng)切換功能。 默認(rèn)值:false
curve8+[Curve]string
displayCount8+numberstring
effectMode8+[EdgeEffect]邊緣滑動(dòng)效果,loop = false時(shí)生效。 目前支持的滑動(dòng)效果參見EdgeEffect的枚舉說明。 默認(rèn)值:EdgeEffect.Spring**說明:**控制器接口調(diào)用時(shí)不生效回彈。
displayArrow10+value:[ArrowStyle]boolean, isHoverShow?: boolean
nextMargin10+[Length]后邊距,用于露出后一項(xiàng)的一小部分。 默認(rèn)值:0**說明:**僅當(dāng)SwiperDisplayMode為STRETCH模式時(shí)生效。 當(dāng)主軸方向?yàn)闄M向布局時(shí),nextmargin/prevmargin中任意一個(gè)大于子組件測(cè)算的寬度,nextmargin和prevmargin均不顯示。 當(dāng)主軸方向?yàn)榭v向布局時(shí),nextmargin/prevmargin中任意一個(gè)大于子組件測(cè)算的高度,nextmargin和prevmargin均不顯示。
prevMargin10+[Length]前邊距,用于露出前一項(xiàng)的一小部分。 默認(rèn)值:0**說明:**僅當(dāng)SwiperDisplayMode為STRETCH模式時(shí)生效。 當(dāng)主軸方向?yàn)闄M向布局時(shí),nextmargin/prevmargin中任意一個(gè)大于子組件測(cè)算的寬度,prevmargin和nextmargin均不顯示。 當(dāng)主軸方向?yàn)榭v向布局時(shí),nextmargin/prevmargin中任意一個(gè)大于子組件測(cè)算的高度,nextmargin和prevmargin均不顯示。

SwiperDisplayMode枚舉說明

名稱描述
STRETCH10+Swiper滑動(dòng)一頁的寬度為Swiper組件自身的寬度。
AUTO_LINEAR10+Swiper滑動(dòng)一頁的寬度為視窗內(nèi)最左側(cè)子組件的寬度。

SwiperController

Swiper容器組件的控制器,可以將此對(duì)象綁定至Swiper組件,然后通過它控制翻頁。

showNext

showNext(): void

翻至下一頁。翻頁帶動(dòng)效切換過程,時(shí)長通過duration指定。

showPrevious

showPrevious(): void

翻至上一頁。翻頁帶動(dòng)效切換過程,時(shí)長通過duration指定。

finishAnimation

finishAnimation(callback?: () => void): void

停止播放動(dòng)畫。

參數(shù):

參數(shù)名參數(shù)類型必填項(xiàng)參數(shù)描述
callback() => void動(dòng)畫結(jié)束的回調(diào)。

Indicator10+

設(shè)置導(dǎo)航點(diǎn)距離Swiper組件距離。

參數(shù)名參數(shù)類型必填項(xiàng)參數(shù)描述
left[Length]設(shè)置導(dǎo)航點(diǎn)距離Swiper組件左邊的距離。 默認(rèn)值:0 單位:vp
top[Length]設(shè)置導(dǎo)航點(diǎn)距離Swiper組件頂部的距離。 默認(rèn)值:0 單位:vp
right[Length]設(shè)置導(dǎo)航點(diǎn)距離Swiper組件右邊的距離。 默認(rèn)值:0 單位:vp
bottom[Length]設(shè)置導(dǎo)航點(diǎn)距離Swiper組件底部的距離。 默認(rèn)值:0 單位:vp

DotIndicator10+

圓點(diǎn)指示器屬性及功能繼承自Indicator。

參數(shù)名參數(shù)類型必填項(xiàng)參數(shù)描述
itemWidth[Length]設(shè)置Swiper組件圓點(diǎn)導(dǎo)航指示器的寬,不支持設(shè)置百分比。 默認(rèn)值:6 單位:vp
itemHeight[Length]設(shè)置Swiper組件圓點(diǎn)導(dǎo)航指示器的高,不支持設(shè)置百分比。 默認(rèn)值:6 單位:vp
selectedItemWidth[Length]設(shè)置選中Swiper組件圓點(diǎn)導(dǎo)航指示器的寬,不支持設(shè)置百分比。 默認(rèn)值:12 單位:vp
selectedItemHeight[Length]設(shè)置選中Swiper組件圓點(diǎn)導(dǎo)航指示器的高,不支持設(shè)置百分比。 默認(rèn)值:6 單位:vp
maskboolean設(shè)置是否顯示Swiper組件圓點(diǎn)導(dǎo)航指示器的蒙版樣式。 默認(rèn)值:false
color[ResourceColor]設(shè)置Swiper組件圓點(diǎn)導(dǎo)航指示器的顏色。 默認(rèn)值:'#182431'(10%透明度)
selectedColor[ResourceColor]設(shè)置選中Swiper組件圓點(diǎn)導(dǎo)航指示器的顏色。 默認(rèn)值:'#007DFF'

DigitIndicator10+

數(shù)字指示器屬性及功能繼承自Indicator。

參數(shù)名參數(shù)類型必填項(xiàng)參數(shù)描述
fontColor[ResourceColor]設(shè)置Swiper組件數(shù)字導(dǎo)航點(diǎn)的字體顏色。 默認(rèn)值:'#ff182431'
selectedFontColor[ResourceColor]設(shè)置選中Swiper組件數(shù)字導(dǎo)航點(diǎn)的字體顏色。 默認(rèn)值:'#ff182431'
digitFont{ size?:[Length]weight?:number[FontWeight]string }
selectedDigitFont{ size?:[Length] weight?:number[FontWeight]string }

ArrowStyle10+

左右箭頭屬性。

參數(shù)名參數(shù)類型必填項(xiàng)參數(shù)描述
showBackgroundboolean設(shè)置箭頭底板是否顯示。 默認(rèn)值:false
isSidebarMiddleboolean設(shè)置箭頭顯示位置。 默認(rèn)值:false 默認(rèn)顯示在導(dǎo)航點(diǎn)指示器兩側(cè)。
backgroundSize[Length]設(shè)置底板大小。 在導(dǎo)航點(diǎn)兩側(cè)顯示: 默認(rèn)值:24vp 在組件兩側(cè)顯示: 默認(rèn)值:32vp 不支持設(shè)置百分比。
backgroundColor[ResourceColor]設(shè)置底板顏色。 在導(dǎo)航點(diǎn)兩側(cè)顯示: 默認(rèn)值:'#00000000' 在組件兩側(cè)顯示: 默認(rèn)值:'#19182431'
arrowSize[Length]設(shè)置箭頭大小。 在導(dǎo)航點(diǎn)兩側(cè)顯示時(shí): 默認(rèn)值:18vp 在組件兩側(cè)顯示時(shí): 默認(rèn)值:24vp**說明:**showBackground為true時(shí),arrowSize為backgroundSize的3/4。 不支持設(shè)置百分比。
arrowColor[ResourceColor]設(shè)置箭頭顏色。 默認(rèn)值:'#182431'

SwiperAutoFill10+

自適應(yīng)屬性。

參數(shù)名參數(shù)類型必填項(xiàng)參數(shù)描述
minSize[VP]設(shè)置元素顯示最小寬度。 默認(rèn)值:0

事件

除支持[通用事件]外,還支持以下事件:

名稱功能描述
onChange(event: (index: number) => void)當(dāng)前顯示的子組件索引變化時(shí)觸發(fā)該事件,返回值為當(dāng)前顯示的子組件的索引值。 - index:當(dāng)前顯示元素的索引。**說明:**Swiper組件結(jié)合LazyForEach使用時(shí),不能在onChange事件里觸發(fā)子頁面UI的刷新。
onAnimationStart9+(event: (index: number, targetIndex10+: number, extraInfo10+: [SwiperAnimationEvent]) => void)切換動(dòng)畫開始時(shí)觸發(fā)該回調(diào)。 - index:當(dāng)前顯示元素的索引。 - targetIndex:切換動(dòng)畫目標(biāo)元素的索引。 - extraInfo:動(dòng)畫相關(guān)信息,包括主軸方向上當(dāng)前顯示元素和目標(biāo)元素相對(duì)Swiper起始位置的位移,以及離手速度。**說明:**參數(shù)為動(dòng)畫開始前的index值(不是最終結(jié)束動(dòng)畫的index值),多列Swiper時(shí),index為最左側(cè)組件的索引。
onAnimationEnd9+(event: (index: number, extraInfo: [SwiperAnimationEvent]) => void)切換動(dòng)畫結(jié)束時(shí)觸發(fā)該回調(diào)。 - index:當(dāng)前顯示元素的索引。 - extraInfo:動(dòng)畫相關(guān)信息,只返回主軸方向上當(dāng)前顯示元素相對(duì)于Swiper起始位置的位移。**說明:**當(dāng)Swiper切換動(dòng)效結(jié)束時(shí)觸發(fā),包括動(dòng)畫過程中手勢(shì)中斷,通過SwiperController調(diào)用finishAnimation。參數(shù)為動(dòng)畫結(jié)束后的index值,多列Swiper時(shí),index為最左側(cè)組件的索引。
onGestureSwipe10+(event: (index: number, extraInfo: [SwiperAnimationEvent]) => void)在頁面跟手滑動(dòng)過程中,逐幀觸發(fā)該回調(diào)。 - index:當(dāng)前顯示元素的索引。 - extraInfo:動(dòng)畫相關(guān)信息,只返回主軸方向上當(dāng)前顯示元素相對(duì)于Swiper起始位置的位移。**說明:**多列Swiper時(shí),index為最左側(cè)組件的索引。

示例

示例1

// xxx.ets
class MyDataSource implements IDataSource {
  private list: number[] = []

  constructor(list: number[]) {
    this.list = list
  }

  totalCount(): number {
    return this.list.length
  }

  getData(index: number): number {
    return this.list[index]
  }

  registerDataChangeListener(listener: DataChangeListener): void {
  }

  unregisterDataChangeListener() {
  }
}

@Entry
@Component
struct SwiperExample {
  private swiperController: SwiperController = new SwiperController()
  private data: MyDataSource = new MyDataSource([])

  aboutToAppear(): void {
    let list: number[] = []
    for (let i = 1; i <= 10; i++) {
      list.push(i);
    }
    this.data = new MyDataSource(list)
  }

  build() {
    Column({ space: 5 }) {
      Swiper(this.swiperController) {
        LazyForEach(this.data, (item: string) = > {
          Text(item.toString())
            .width('90%')
            .height(160)
            .backgroundColor(0xAFEEEE)
            .textAlign(TextAlign.Center)
            .fontSize(30)
        }, (item: string) = > item)
      }
      .cachedCount(2)
      .index(1)
      .autoPlay(true)
      .interval(4000)
      .indicator(true)
      .loop(true)
      .duration(1000)
      .itemSpace(0)
      .displayArrow({
        showBackground: true,
        isSidebarMiddle: true,
        backgroundSize: 24,
        backgroundColor: Color.White,
        arrowSize: 18,
        arrowColor: Color.Blue
      }, false)
      .curve(Curve.Linear)
      .onChange((index: number) = > {
        console.info(index.toString())
      })
      .onGestureSwipe((index: number, extraInfo: SwiperAnimationEvent) = > {
        console.info("index: " + index)
        console.info("current offset: " + extraInfo.currentOffset)
      })
      .onAnimationStart((index: number, targetIndex: number, extraInfo: SwiperAnimationEvent) = > {
        console.info("index: " + index)
        console.info("targetIndex: " + targetIndex)
        console.info("current offset: " + extraInfo.currentOffset)
        console.info("target offset: " + extraInfo.targetOffset)
        console.info("velocity: " + extraInfo.velocity)
      })
      .onAnimationEnd((index: number, extraInfo: SwiperAnimationEvent) = > {
        console.info("index: " + index)
        console.info("current offset: " + extraInfo.currentOffset)
      })

      Row({ space: 12 }) {
        Button('showNext')
          .onClick(() = > {
            this.swiperController.showNext()
          })
        Button('showPrevious')
          .onClick(() = > {
            this.swiperController.showPrevious()
          })
      }.margin(5)
    }.width('100%')
    .margin({ top: 5 })
  }
}

swiper

示例2

// xxx.ets
class MyDataSource implements IDataSource {
  private list: number[] = []

  constructor(list: number[]) {
    this.list = list
  }

  totalCount(): number {
    return this.list.length
  }

  getData(index: number): number {
    return this.list[index]
  }

  registerDataChangeListener(listener: DataChangeListener): void {
  }

  unregisterDataChangeListener() {
  }
}

@Entry
@Component
struct SwiperExample {
  private swiperController: SwiperController = new SwiperController()
  private data: MyDataSource = new MyDataSource([])

  aboutToAppear(): void {
    let list: number[] = []
    for (let i = 1; i <= 10; i++) {
      list.push(i);
    }
    this.data = new MyDataSource(list)
  }

  build() {
    Column({ space: 5 }) {
      Swiper(this.swiperController) {
        LazyForEach(this.data, (item: string) = > {
          Text(item.toString())
            .width('90%')
            .height(160)
            .backgroundColor(0xAFEEEE)
            .textAlign(TextAlign.Center)
            .fontSize(30)
        }, (item: string) = > item)
      }
      .cachedCount(2)
      .index(1)
      .autoPlay(true)
      .interval(4000)
      .indicator(Indicator.dot()
        .itemWidth(15)
        .itemHeight(15)
        .selectedItemWidth(15)
        .selectedItemHeight(15)
        .color(Color.Gray)
        .selectedColor(Color.Blue))
      .loop(true)
      .duration(1000)
      .itemSpace(0)
      .displayArrow(true, true)

      Row({ space: 12 }) {
        Button('showNext')
          .onClick(() = > {
            this.swiperController.showNext()
          })
        Button('showPrevious')
          .onClick(() = > {
            this.swiperController.showPrevious()
          })
      }.margin(5)
    }.width('100%')
    .margin({ top: 5 })
  }
}

swiper

示例3

搜狗高速瀏覽器截圖20240326151547.png

// xxx.ets
class MyDataSource implements IDataSource {
  private list: number[] = []

  constructor(list: number[]) {
    this.list = list
  }

  totalCount(): number {
    return this.list.length
  }

  getData(index: number): number {
    return this.list[index]
  }

  registerDataChangeListener(listener: DataChangeListener): void {
  }

  unregisterDataChangeListener() {
  }
}

@Entry
@Component
struct SwiperExample {
  private swiperController: SwiperController = new SwiperController()
  private data: MyDataSource = new MyDataSource([])

  aboutToAppear(): void {
    let list: number[] = []
    for (let i = 1; i <= 10; i++) {
      list.push(i);
    }
    this.data = new MyDataSource(list)
  }

  build() {
    Column({ space: 5 }) {
      Swiper(this.swiperController) {
        LazyForEach(this.data, (item: string) = > {
          Text(item.toString())
            .width('90%')
            .height(160)
            .backgroundColor(0xAFEEEE)
            .textAlign(TextAlign.Center)
            .fontSize(30)
        }, (item: string) = > item)
      }
      .cachedCount(2)
      .index(1)
      .autoPlay(true)
      .interval(4000)
      .indicator(Indicator.digit()
        .right("43%")
        .top(200)
        .fontColor(Color.Gray)
        .selectedFontColor(Color.Gray)
        .digitFont({ size: 20, weight: FontWeight.Bold })
        .selectedDigitFont({ size: 20, weight: FontWeight.Normal }))
      .loop(true)
      .duration(1000)
      .itemSpace(0)
      .displayArrow(true, false)

      Row({ space: 12 }) {
        Button('showNext')
          .onClick(() = > {
            this.swiperController.showNext()
          })
        Button('showPrevious')
          .onClick(() = > {
            this.swiperController.showPrevious()
          })
      }.margin(5)
    }.width('100%')
    .margin({ top: 5 })
  }
}

swiper

審核編輯 黃宇

聲明:本文內(nèi)容及配圖由入駐作者撰寫或者入駐合作網(wǎng)站授權(quán)轉(zhuǎn)載。文章觀點(diǎn)僅代表作者本人,不代表電子發(fā)燒友網(wǎng)立場(chǎng)。文章及其配圖僅供工程師學(xué)習(xí)之用,如有內(nèi)容侵權(quán)或者其他違規(guī)問題,請(qǐng)聯(lián)系本站處理。 舉報(bào)投訴
  • 組件
    +關(guān)注

    關(guān)注

    1

    文章

    518

    瀏覽量

    17938
  • 鴻蒙
    +關(guān)注

    關(guān)注

    57

    文章

    2395

    瀏覽量

    43091
收藏 人收藏

    評(píng)論

    相關(guān)推薦

    HarmonyOS開發(fā)案例:【Swiper的實(shí)戰(zhàn)】

    主要介紹了滑動(dòng)容器組件Swiper的幾種常見的應(yīng)用場(chǎng)景,包括頂部導(dǎo)航、輪播圖以及視頻滑動(dòng)播放。
    的頭像 發(fā)表于 04-28 14:41 ?1280次閱讀
    HarmonyOS開發(fā)案例:【<b class='flag-5'>Swiper</b>的實(shí)戰(zhàn)】

    鴻蒙ArkTS容器組件:Column

    沿垂直方向布局的容器。
    的頭像 發(fā)表于 07-05 16:32 ?516次閱讀
    <b class='flag-5'>鴻蒙</b><b class='flag-5'>ArkTS</b><b class='flag-5'>容器</b><b class='flag-5'>組件</b>:Column

    鴻蒙ArkTS容器組件:Flex

    以彈性方式布局子組件容器組件。
    的頭像 發(fā)表于 07-08 10:19 ?587次閱讀
    <b class='flag-5'>鴻蒙</b><b class='flag-5'>ArkTS</b><b class='flag-5'>容器</b><b class='flag-5'>組件</b>:Flex

    鴻蒙ArkTS容器組件:FlowItem

    [瀑布流組件]的子組件,用來展示瀑布流具體item。
    的頭像 發(fā)表于 07-08 09:56 ?461次閱讀
    <b class='flag-5'>鴻蒙</b><b class='flag-5'>ArkTS</b><b class='flag-5'>容器</b><b class='flag-5'>組件</b>:FlowItem

    鴻蒙ArkTS容器組件:GridCol

    柵格子組件,必須作為柵格容器組件([GridRow])的子組件使用。
    的頭像 發(fā)表于 07-08 15:17 ?499次閱讀
    <b class='flag-5'>鴻蒙</b><b class='flag-5'>ArkTS</b><b class='flag-5'>容器</b><b class='flag-5'>組件</b>:GridCol

    鴻蒙ArkTS容器組件:GridItem

    網(wǎng)格容器中單項(xiàng)內(nèi)容容器。
    的頭像 發(fā)表于 07-09 09:25 ?487次閱讀
    <b class='flag-5'>鴻蒙</b><b class='flag-5'>ArkTS</b><b class='flag-5'>容器</b><b class='flag-5'>組件</b>:GridItem

    鴻蒙ArkTS容器組件:ListItemGroup

    組件用來展示列表item分組,寬度默認(rèn)充滿[List]組件,必須配合List組件來使用。
    的頭像 發(fā)表于 07-10 09:20 ?796次閱讀
    <b class='flag-5'>鴻蒙</b><b class='flag-5'>ArkTS</b><b class='flag-5'>容器</b><b class='flag-5'>組件</b>:ListItemGroup

    鴻蒙ArkTS容器組件:Navigator

    路由容器組件,提供路由跳轉(zhuǎn)能力。
    的頭像 發(fā)表于 07-10 14:55 ?490次閱讀

    鴻蒙ArkTS容器組件:Refresh

    可以進(jìn)行頁面下拉操作并顯示刷新動(dòng)效的容器組件
    的頭像 發(fā)表于 07-11 16:11 ?600次閱讀

    鴻蒙ArkTS容器組件:RowSplit

    將子組件橫向布局,并在每個(gè)子組件之間插入一根縱向的分割線。
    的頭像 發(fā)表于 07-11 22:25 ?408次閱讀

    鴻蒙ArkTS容器組件:Scroll

    可滾動(dòng)的容器組件,當(dāng)子組件的布局尺寸超過父組件的尺寸時(shí),內(nèi)容可以滾動(dòng)。
    的頭像 發(fā)表于 07-12 15:24 ?1363次閱讀

    鴻蒙ArkTS容器組件:SideBarContainer

    提供側(cè)邊欄可以顯示和隱藏的側(cè)邊欄容器,通過子組件定義側(cè)邊欄和內(nèi)容區(qū),第一個(gè)子組件表示側(cè)邊欄,第二個(gè)子組件表示內(nèi)容區(qū)。
    的頭像 發(fā)表于 07-18 15:46 ?641次閱讀
    <b class='flag-5'>鴻蒙</b><b class='flag-5'>ArkTS</b><b class='flag-5'>容器</b><b class='flag-5'>組件</b>:SideBarContainer

    鴻蒙ArkTS容器組件:Stack

    堆疊容器,子組件按照順序依次入棧,后一個(gè)子組件覆蓋前一個(gè)子組件。
    的頭像 發(fā)表于 07-15 18:23 ?958次閱讀

    鴻蒙ArkTS容器組件:Tabs

    通過頁簽進(jìn)行內(nèi)容視圖切換的容器組件,每個(gè)頁簽對(duì)應(yīng)一個(gè)內(nèi)容視圖。
    的頭像 發(fā)表于 07-15 09:48 ?943次閱讀
    <b class='flag-5'>鴻蒙</b><b class='flag-5'>ArkTS</b><b class='flag-5'>容器</b><b class='flag-5'>組件</b>:Tabs

    鴻蒙ArkTS容器組件:WaterFlow

    瀑布流容器,由“行”和“列”分割的單元格所組成,通過容器自身的排列規(guī)則,將不同大小的“項(xiàng)目”自上而下,如瀑布般緊密布局。
    的頭像 發(fā)表于 07-15 17:35 ?510次閱讀
    <b class='flag-5'>鴻蒙</b><b class='flag-5'>ArkTS</b><b class='flag-5'>容器</b><b class='flag-5'>組件</b>:WaterFlow