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

做网站会什么问题优化大师免费下载

做网站会什么问题,优化大师免费下载,网站的注册和登录怎么做,许昌住房城乡建设局网站1、描述 根据指定的选择范围创建文本选择器,展示在弹窗上。 2、接口 TextPickDialog(options?: TextPickDialogOptions) 3、TextPickDialogOptions 参数名称 参数类型 必填 参数描述 rang string[] | Resource 是 设置文本选择器的选择范围。 selected nu…

1、描述

        根据指定的选择范围创建文本选择器,展示在弹窗上。

2、接口

        TextPickDialog(options?: TextPickDialogOptions)

3、TextPickDialogOptions

参数名称

参数类型

必填

参数描述

rang

string[] | Resource

设置文本选择器的选择范围。

selected

number

设置选中项的索引值。默认值:0。

valuestring设置选中项的文本内容。当设置了selected参数时,该参数不生效。如果设置的value值不在range范围内,则默认去range第一个元素。
DefaultPickItemHeightnumber | string设置选择器中选项的高度。
onAccept(value : TextPickResult) => void点击弹窗中“确定”按钮时触发该回调。
onCancel() => void点击弹窗中“取消”按钮时触发该回调。
onChange(value : TextPickResult) => void滑动弹窗中的选择器使当前选中项改变时触发该回调。

4、TextPickerResult对象说明

类型

描述

value

string

选中项的文本内容。

index

number

选中项在选择范围数组中的索引值。

5、参数解析

1.当selected和value参数都设置时,且selecetd设置值在范围内时,value参数无效。

2.当不设置selected参数时,并且设置的value值不在range范围内时,显示的是默认的range的第一个元素。

3.根据onAccept和onChange监听或者确定选中项的数据信息。

6、示例

@Entry
@Component
struct TextPickerDialogPage {@State message: string = '根据指定的选择范围创建文本选择器,展示在弹窗上。'private defaultSelectIndex: number = 2; // 默认选中项索引值private developList: string[] = ['Android', 'IOS', 'Java', 'ArkTS', 'ArkUI-X', 'Python', 'TypeScript', 'Vue', 'HarmonyOS']; // 弹窗选项列表build() {Row() {Column() {Text(this.message).fontSize(20).fontWeight(FontWeight.Bold).width("96%").margin({ top: 12 })Button("TextPickerDialog.show Default").width("96%").fontSize(20).margin({ top: 12 }).onClick(() => {TextPickerDialog.show({range: this.developList,onAccept: (result: TextPickerResult) => {console.info("TextPickerDialog Default onAccept result = " + JSON.stringify(result));},onCancel: () => {console.info("TextPickerDialog Default onCancel");},onChange: (result: TextPickerResult) => {console.info("TextPickerDialog Default onChange result = " + JSON.stringify(result));}})})Button("TextPickerDialog.show Selected").width("96%").fontSize(20).margin({ top: 12 }).onClick(() => {TextPickerDialog.show({range: this.developList,selected: this.defaultSelectIndex,value: "Vue", // 当设置selected参数时,value参数会失效defaultPickerItemHeight: 60,onAccept: (result: TextPickerResult) => {console.info("TextPickerDialog Selected onAccept result = " + JSON.stringify(result));},onCancel: () => {console.info("TextPickerDialog Selected onCancel");},onChange: (result: TextPickerResult) => {console.info("TextPickerDialog Selected onChange result = " + JSON.stringify(result));}})})}.width('100%').height("100%")}.height('100%')}
}

7、效果图

http://www.tj-hxxt.cn/news/116278.html

相关文章:

  • 成都 专业 网站建设济南百度推广优化
  • 自己怎么做点击量好的网站全网搜索指数查询
  • 网站建设的内容百度网盘搜索引擎入口哪里
  • 刷网站跳出率百度推广怎么优化排名
  • wordpress 获取菜单seo分析师招聘
  • 学网站建设的学校发帖效果好的网站
  • 怎么做网站 知乎杭州网站推广优化
  • 创建网站基本流程seo关键词优化策略
  • 做网站必须要dreamever东莞网站营销
  • 社交型网站开发怎么做营销
  • 低价建设手机网站公司网站设计定制
  • 网站一键提交seo专业术语
  • 做网站交钱后以后还要教吗地推团队去哪里找
  • 规则网站建设域名注册信息查询
  • 哪里有做网站公司的百度热搜的含义
  • 蓝色高科技网站模板站长之家seo综合查询
  • 网站制作价格权威乐云践新成免费的crm
  • 上海做网站的青岛网络优化费用
  • 商务网站规划与建设课程设计百度搜索引擎下载免费
  • 流行网站设计苏州关键词优化seo
  • 网站制作金华公司电话已矣seo排名点击软件
  • 做房产抵押网站需要什么如何制作一个网站
  • 天津智能网站建设多少钱长沙关键词优化公司电话
  • 通州网站建设公司搜狗收录查询
  • python做网站后台友情链接交换要注意哪些问题
  • 广西哪家公司做网站的抖音代运营大概多少钱一个月
  • 视听节目 网站建设情感链接
  • 哪个网站做中高端衣服移动广告联盟
  • 新网免费做网站怎样做推广是免费的
  • 网站关键词设置数量怎样在百度上做广告推广