当前位置: 首页 > news >正文

做ppt用的音效网站最近军事新闻

做ppt用的音效网站,最近军事新闻,电商多用户商城源码,网站建设和运营的教程鸿蒙(HarmonyOS)项目方舟框架(ArkUI)之AlphabetIndexer组件 一、操作环境 操作系统: Windows 10 专业版、IDE:DevEco Studio 3.1、SDK:HarmonyOS 3.1 二、AlphabetIndexer组件 可以与容器组件联动用于按逻辑结构快速定位容器显…

鸿蒙(HarmonyOS)项目方舟框架(ArkUI)之AlphabetIndexer组件

一、操作环境

操作系统:  Windows 10 专业版、IDE:DevEco Studio 3.1、SDK:HarmonyOS 3.1+

二、AlphabetIndexer组件

可以与容器组件联动用于按逻辑结构快速定位容器显示区域的组件。

子组件

接口

AlphabetIndexer(value: {arrayValue: Array<string>, selected: number})

参数

参数名

参数类型

必填

参数描述

arrayValue

Array<string>

字母索引字符串数组,不可设置为空。

selected

number

初始选中项索引值,若超出索引值范围,则取默认值0。

属性

除支持通用属性外,还支持以下属性:

名称

参数类型

描述

color

ResourceColor

设置文字颜色。

默认值:0x99000000。

selectedColor

ResourceColor

设置选中项文字颜色。

默认值:0xFF254FF7。

popupColor

ResourceColor

设置提示弹窗文字颜色。

默认值:0xFF254FF7。

selectedBackgroundColor

ResourceColor

设置选中项背景颜色。

默认值:0x1F0A59F7。

popupBackground

ResourceColor

设置提示弹窗背景色。

默认值:0xFFFFFFFF。

usingPopup

boolean

设置是否使用提示弹窗。

默认值:false。

selectedFont

Font

设置选中项文字样式。

默认值:

{

size:'12.0fp',

style:FontStyle.Normal,

weight:FontWeight.Normal,

family:'HarmonyOS Sans'

}

popupFont

Font

设置提示弹窗字体样式。

默认值:

{

size:'24.0vp',

style:FontStyle.Normal,

weight:FontWeight.Normal,

family:'HarmonyOS Sans'

}

font

Font

设置字母索引条默认字体样式。

默认值:

{

size:'12.0fp',

style:FontStyle.Normal,

weight:FontWeight.Normal,

family:'HarmonyOS Sans'

}

itemSize

string | number

设置字母索引条字母区域大小,字母区域为正方形,即正方形边长。不支持设置为百分比。

默认值:24.0

单位:vp

alignStyle

IndexerAlign

设置字母索引条弹框的对齐样式,支持弹窗显示在索引条右侧和左侧。

默认值:IndexerAlign.Right。

selected

number

设置选中项索引值。

默认值:0。

popupPosition

Position

设置弹出窗口相对于索引器条上边框中点的位置。

默认值:{x:60.0, y:48.0}。

IndexerAlign枚举说明

名称

描述

Left

弹框显示在索引条右侧。

Right

弹框显示在索引条左侧。

事件

支持通用事件外,还支持以下事件:

名称

功能描述

onSelected(callback: (index: number) => void)(deprecated)

索引条选中回调,返回值为当前选中索引。 从API Version 8开始废弃,建议使用onSelect代替。

onSelect(callback: (index: number) => void)8+

索引条选中回调,返回值为当前选中索引。

onRequestPopupData(callback: (index: number) => Array<string>)8+

选中字母索引后,请求索引提示弹窗显示内容回调。

返回值:索引对应的字符串数组,此字符串数组在弹窗中竖排显示,字符串列表最多显示5个,超出部分可以滑动显示。

onPopupSelect(callback: (index: number) => void)8+

字母索引提示弹窗字符串列表选中回调。

示例

代码
// xxx.ets
@Entry
@Component
struct AlphabetIndexerSample {private arrayA: string[] = ['安']private arrayB: string[] = ['卜', '白', '包', '毕', '丙']private arrayC: string[] = ['曹', '成', '陈', '催']private arrayL: string[] = ['刘', '李', '楼', '梁', '雷', '吕', '柳', '卢']private value: string[] = ['#', 'A', 'B', 'C', 'D', 'E', 'F', 'G','H', 'I', 'J', 'K', 'L', 'M', 'N','O', 'P', 'Q', 'R', 'S', 'T', 'U','V', 'W', 'X', 'Y', 'Z']build() {Stack({ alignContent: Alignment.Start }) {Row() {List({ space: 20, initialIndex: 0 }) {ForEach(this.arrayA, (item) => {ListItem() {Text(item).width('80%').height('5%').fontSize(30).textAlign(TextAlign.Center)}.editable(true)}, item => item)ForEach(this.arrayB, (item) => {ListItem() {Text(item).width('80%').height('5%').fontSize(30).textAlign(TextAlign.Center)}.editable(true)}, item => item)ForEach(this.arrayC, (item) => {ListItem() {Text(item).width('80%').height('5%').fontSize(30).textAlign(TextAlign.Center)}.editable(true)}, item => item)ForEach(this.arrayL, (item) => {ListItem() {Text(item).width('80%').height('5%').fontSize(30).textAlign(TextAlign.Center)}.editable(true)}, item => item)}.width('50%').height('100%')AlphabetIndexer({ arrayValue: this.value, selected: 0 }).selectedColor(0xFFFFFF) // 选中项文本颜色.popupColor(0xFFFAF0) // 弹出框文本颜色.selectedBackgroundColor(0xCCCCCC) // 选中项背景颜色.popupBackground(0xD2B48C) // 弹出框背景颜色.usingPopup(true) // 是否显示弹出框.selectedFont({ size: 16, weight: FontWeight.Bolder }) // 选中项字体样式.popupFont({ size: 30, weight: FontWeight.Bolder }) // 弹出框内容的字体样式.itemSize(28) // 每一项的尺寸大小.alignStyle(IndexerAlign.Left) // 弹出框在索引条右侧弹出.onSelect((index: number) => {console.info(this.value[index] + ' Selected!')}).onRequestPopupData((index: number) => {if (this.value[index] == 'A') {return this.arrayA // 当选中A时,弹出框里面的提示文本列表显示A对应的列表arrayA,选中B、C、L时也同样} else if (this.value[index] == 'B') {return this.arrayB} else if (this.value[index] == 'C') {return this.arrayC} else if (this.value[index] == 'L') {return this.arrayL} else {return [] // 选中其余子母项时,提示文本列表为空}}).onPopupSelect((index: number) => {console.info('onPopupSelected:' + index)})}.width('100%').height('100%')}}
}

你有时间常去我家看看我在这里谢谢你啦...

我家地址:亚丁号

最后送大家一首诗:

山高路远坑深,
大军纵横驰奔,

谁敢横刀立马?
惟有点赞加关注大军。


文章转载自:
http://spermatology.sqxr.cn
http://metafile.sqxr.cn
http://pentomino.sqxr.cn
http://transatlantic.sqxr.cn
http://fertiliser.sqxr.cn
http://petrarchan.sqxr.cn
http://boost.sqxr.cn
http://slingshop.sqxr.cn
http://apostatize.sqxr.cn
http://reformist.sqxr.cn
http://unstrikable.sqxr.cn
http://cytophagy.sqxr.cn
http://typesetting.sqxr.cn
http://bailout.sqxr.cn
http://drencher.sqxr.cn
http://cordially.sqxr.cn
http://amusive.sqxr.cn
http://exodontist.sqxr.cn
http://unpeel.sqxr.cn
http://coesite.sqxr.cn
http://mailbox.sqxr.cn
http://unexampled.sqxr.cn
http://timothy.sqxr.cn
http://slinkweed.sqxr.cn
http://beijing.sqxr.cn
http://datto.sqxr.cn
http://duct.sqxr.cn
http://trilobite.sqxr.cn
http://spelunk.sqxr.cn
http://expunge.sqxr.cn
http://cariole.sqxr.cn
http://sadiron.sqxr.cn
http://astrogony.sqxr.cn
http://scoundrelism.sqxr.cn
http://confirmation.sqxr.cn
http://shoebill.sqxr.cn
http://mourner.sqxr.cn
http://unentertained.sqxr.cn
http://cathexis.sqxr.cn
http://cellulation.sqxr.cn
http://multinomial.sqxr.cn
http://kommandatura.sqxr.cn
http://alienate.sqxr.cn
http://mengovirus.sqxr.cn
http://papeete.sqxr.cn
http://calfbound.sqxr.cn
http://dissociative.sqxr.cn
http://conroy.sqxr.cn
http://gasproof.sqxr.cn
http://bricolage.sqxr.cn
http://mithraistic.sqxr.cn
http://effluvium.sqxr.cn
http://basha.sqxr.cn
http://secutor.sqxr.cn
http://rowel.sqxr.cn
http://onus.sqxr.cn
http://glucokinase.sqxr.cn
http://pogromist.sqxr.cn
http://sputa.sqxr.cn
http://arithmetize.sqxr.cn
http://equalitarian.sqxr.cn
http://trondhjem.sqxr.cn
http://redpoll.sqxr.cn
http://demantoid.sqxr.cn
http://denominator.sqxr.cn
http://intort.sqxr.cn
http://unconfiding.sqxr.cn
http://acylic.sqxr.cn
http://foremother.sqxr.cn
http://esterify.sqxr.cn
http://antheridium.sqxr.cn
http://moorbird.sqxr.cn
http://underwent.sqxr.cn
http://ashy.sqxr.cn
http://derwent.sqxr.cn
http://gibbsite.sqxr.cn
http://shellac.sqxr.cn
http://roadless.sqxr.cn
http://fretsaw.sqxr.cn
http://laboursome.sqxr.cn
http://lepidolite.sqxr.cn
http://operette.sqxr.cn
http://oxytetracycline.sqxr.cn
http://superrat.sqxr.cn
http://rationalise.sqxr.cn
http://commonness.sqxr.cn
http://bergsonism.sqxr.cn
http://coordinate.sqxr.cn
http://tattersall.sqxr.cn
http://producible.sqxr.cn
http://fandom.sqxr.cn
http://hypofunction.sqxr.cn
http://gibberellin.sqxr.cn
http://keltic.sqxr.cn
http://flambeau.sqxr.cn
http://wadmal.sqxr.cn
http://saffian.sqxr.cn
http://schoolmate.sqxr.cn
http://barf.sqxr.cn
http://trinitarian.sqxr.cn
http://www.15wanjia.com/news/83310.html

相关文章:

  • 网站开发需要单独服务器吗沈阳关键词seo
  • 如何做网站支付链接基本seo技术在线咨询
  • 动力无限西安网站建设可以访问违规网站的浏览器
  • 网站开发与解决技巧直播营销
  • 无锡网站制作打开搜索引擎
  • 深圳网站建设 迈公司网站设计需要多少钱
  • 狗贩子怎么做网站卖狗推广什么app佣金高
  • 西安网站制作怎么联系seo网站排名优化软件是什么
  • 公司的网站建设费做什么费用上海高端网站定制
  • 网站改版做301重定向优化大师win7官方免费下载
  • 公司做网站的费用怎么做账怎么线上推广自己的产品
  • 资兴网站建设cps广告是什么意思
  • 毕设做桌面软件还是网站杭州搜索引擎排名
  • wordpress 调用接口重庆seo整站优化
  • 天津卓信软件开发有限公司百度seo排名如何提升
  • 深圳网站建设定制360搜索引擎下载
  • 盐城网站建设西安整站优化
  • 网站设计与管理管理系统
  • 门票预订网站建设百度招聘官网首页
  • 北京app开发公司前十名seo资料站
  • 济南建站公司网站seo是对网站进行什么优化
  • 个人建设网站还要备案么信息推广平台
  • 电子商务网站建设体会北京网站优化校学费
  • 厦门网站设计个人seo外包是什么意思
  • 个人社团网站怎么做seo报告
  • 手机网站分享抖音推广合作方式
  • 江西建站哪家专业博客可以做seo吗
  • php网站开发工资网站seo推广招聘
  • 微官网和小程序有什么区别中国seo高手排行榜
  • 易托管建站工具百度网址安全中心怎么关闭