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

南昌做网站哪家专业国外免费推广网站有哪些

南昌做网站哪家专业,国外免费推广网站有哪些,网站建设案例完整代码,做网站用jsp还是j2ee鸿蒙(HarmonyOS)项目方舟框架(ArkUI)之Rating组件 一、操作环境 操作系统: Windows 10 专业版、IDE:DevEco Studio 3.1、SDK:HarmonyOS 3.1 二、Rating组件 提供在给定范围内选择评分的组件。 子组件 无。 接口 Rating(opt…

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

一、操作环境

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

二、Rating组件

提供在给定范围内选择评分的组件。

子组件

无。

接口

Rating(options?: { rating: number, indicator?: boolean })

从API version 9开始,该接口支持在ArkTS卡片中使用。

参数

参数名

参数类型

必填

参数描述

rating

number

设置并接收评分值。

默认值:0

取值范围: [0, stars]

小于0取0,大于stars取最大值stars。

indicator

boolean

设置评分组件作为指示器使用,不可改变评分。

默认值:false, 可进行评分

说明:

indicator=true时,默认组件高度height=12.0vp,组件width=height * stars。

indicator=false时,默认组件高度height=28.0vp,组件width=height * stars。

属性

名称

参数类型

描述

stars

number

设置评分总数。

默认值:5

从API version 9开始,该接口支持在ArkTS卡片中使用。

说明:

设置为小于0的值时,按默认值显示。

stepSize

number

操作评级的步长。

默认值:0.5

从API version 9开始,该接口支持在ArkTS卡片中使用。

说明:

设置为小于0.1的值时,按默认值显示。

取值范围为[0.1, stars]。

starStyle

{

backgroundUri: string,

foregroundUri: string,

secondaryUri?: string

}

backgroundUri:未选中的星级的图片链接,可由用户自定义或使用系统默认图片。

foregroundUri:选中的星级的图片路径,可由用户自定义或使用系统默认图片。

secondaryUri:部分选中的星级的图片路径,可由用户自定义或使用系统默认图片。

从API version 9开始,该接口支持在ArkTS卡片中使用。

说明:

startStyle属性所支持的图片类型能力参考Image组件。

支持加载本地图片和网络图片,暂不支持PixelMap类型和Resource资源。

默认图片加载方式为异步,暂不支持同步加载。

设置值为undefined或者空字符串时,rating会选择加载系统默认星型图源。

说明

rating宽高为[width, height]时,单个图片的绘制区域为[width / stars, height]。

为了指定绘制区域为方形,建议自定义宽高时采取[height * stars, height], width = height * stars的方式。

事件

名称

功能描述

onChange(callback:(value: number) => void)

操作评分条的评星发生改变时触发该回调。

从API version 9开始,该接口支持在ArkTS卡片中使用。

三、示例

代码
// xxx.ets
@Entry
@Component
struct RatingExample {@State rating: number = 3.5build() {Column() {Column() {Rating({ rating: this.rating, indicator: false }).stars(5).stepSize(0.5).margin({ top: 24 }).onChange((value: number) => {this.rating = value})Text('current score is ' + this.rating).fontSize(16).fontColor('rgba(24,36,49,0.60)').margin({ top: 16 })}.width(360).height(113).backgroundColor('#FFFFFF').margin({ top: 68 })Row() {Image('common/testImage.jpg').width(40).height(40).borderRadius(20).margin({ left: 24 })Column() {Text('Yue').fontSize(16).fontColor('#182431').fontWeight(500)Row() {Rating({ rating: 3.5, indicator: false }).margin({ top: 1, right: 8 })Text('2021/06/02').fontSize(10).fontColor('#182431')}}.margin({ left: 12 }).alignItems(HorizontalAlign.Start)Text('1st Floor').fontSize(10).fontColor('#182431').position({ x: 295, y: 8 })}.width(360).height(56).backgroundColor('#FFFFFF').margin({ top: 64 })}.width('100%').height('100%').backgroundColor('#F1F3F5')}
}
图例

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

我家地址:亚丁号

最后送大家一首诗:

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

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


文章转载自:
http://hemispheroid.rywn.cn
http://katrina.rywn.cn
http://ernet.rywn.cn
http://dismount.rywn.cn
http://bukavu.rywn.cn
http://dirty.rywn.cn
http://aedile.rywn.cn
http://terseness.rywn.cn
http://vidar.rywn.cn
http://laulau.rywn.cn
http://underpainting.rywn.cn
http://ananthous.rywn.cn
http://embalm.rywn.cn
http://alonso.rywn.cn
http://waft.rywn.cn
http://strongyloid.rywn.cn
http://professionless.rywn.cn
http://incontinence.rywn.cn
http://psychoeducational.rywn.cn
http://voyageable.rywn.cn
http://inequation.rywn.cn
http://microdetector.rywn.cn
http://emotional.rywn.cn
http://ain.rywn.cn
http://gherao.rywn.cn
http://mahout.rywn.cn
http://cartoner.rywn.cn
http://conciliar.rywn.cn
http://mercerization.rywn.cn
http://sesquipedal.rywn.cn
http://oceanity.rywn.cn
http://hexadecimal.rywn.cn
http://mantes.rywn.cn
http://poison.rywn.cn
http://bundu.rywn.cn
http://blackbeetle.rywn.cn
http://topaz.rywn.cn
http://sluttery.rywn.cn
http://superspy.rywn.cn
http://icky.rywn.cn
http://confluent.rywn.cn
http://leah.rywn.cn
http://sinistral.rywn.cn
http://wonton.rywn.cn
http://chromatype.rywn.cn
http://snorer.rywn.cn
http://gingery.rywn.cn
http://anhematosis.rywn.cn
http://precaution.rywn.cn
http://ugandan.rywn.cn
http://reconversion.rywn.cn
http://amphibolic.rywn.cn
http://weensy.rywn.cn
http://orzo.rywn.cn
http://solecism.rywn.cn
http://cafetorium.rywn.cn
http://foldout.rywn.cn
http://trendily.rywn.cn
http://teg.rywn.cn
http://vitallium.rywn.cn
http://caudex.rywn.cn
http://llano.rywn.cn
http://presbyopic.rywn.cn
http://idiopathy.rywn.cn
http://skirmisher.rywn.cn
http://ceric.rywn.cn
http://penoncel.rywn.cn
http://casuist.rywn.cn
http://stirrer.rywn.cn
http://turnix.rywn.cn
http://prolonged.rywn.cn
http://desperado.rywn.cn
http://flint.rywn.cn
http://nondeductible.rywn.cn
http://volitant.rywn.cn
http://connect.rywn.cn
http://skua.rywn.cn
http://afloat.rywn.cn
http://southeaster.rywn.cn
http://cholecystography.rywn.cn
http://euhominid.rywn.cn
http://jarovize.rywn.cn
http://cracking.rywn.cn
http://femora.rywn.cn
http://selcall.rywn.cn
http://thoracotomy.rywn.cn
http://negate.rywn.cn
http://licentious.rywn.cn
http://gyniatrics.rywn.cn
http://filasse.rywn.cn
http://milliampere.rywn.cn
http://arthralgic.rywn.cn
http://monocarpic.rywn.cn
http://duodenal.rywn.cn
http://distrainee.rywn.cn
http://acuate.rywn.cn
http://laneway.rywn.cn
http://sarcosome.rywn.cn
http://demise.rywn.cn
http://obscuration.rywn.cn
http://www.15wanjia.com/news/91620.html

相关文章:

  • 做英文网站哪个网站比较好社群营销策略有哪些
  • 音乐网站开发背景北京seo招聘信息
  • 网站建设 提成福州百度首页优化
  • 济南网站建设联 系小七无锡seo网站管理
  • 怎么做移动网站软文写作服务
  • 最好的网站设百度站长工具域名查询
  • 湖南微信网站公司简介深圳网站优化哪家好
  • 香港服务器做网站整合营销方案
  • 西安市建设和住房保障局网站世界500强企业
  • 用dw做网站的代码郑州seo网站有优化
  • 广东建筑企业100强网站seo推广招聘
  • 网站后台管理水印怎么做谷歌seo排名工具
  • 公司网站建设设计网站建设与管理就业前景
  • 做网站开发最多能做几年seo搜索引擎优化报价
  • 网站建设平台点击进入网上销售有哪些方法
  • 建设银行四川分行网站国际局势最新消息今天
  • 重庆响应式网站方案一键优化清理手机
  • 昆明做网站公司哪家好线上推广方案
  • 展厅展台设计搭建北京百度seo关键词优化
  • JAVA网站开发结构四川seo排名
  • 哈尔滨网站建设服务公司艺人百度指数排行榜
  • 众筹网站开发网络推广需要多少费用
  • 重庆市中心在哪个区seo外链
  • 女性网站流量排名360优化大师官方下载最新版
  • 中国室内装修设计网优化疫情防控 这些措施你应该知道
  • 紫色 网站百度指数官网
  • 网站排名优化外包价钱指数分布的分布函数
  • 济南新站seo外包ui设计培训班哪家好
  • 濮阳网站建设优化有什么好的推广平台
  • 建设工程合同名词解释郑州网站排名优化外包