自定义的CustomDialog如何在全局创建,比如EntryAbility或者任何地方。
CustomDialog内进行路由跳转后CustomDialog仍显示在顶层,是否有api可以让其不显示在顶层。
newTextDialogController:CustomDialogControllerEBTextDialog.alert({showCloseBtn:false,title:'abc',msg:'cvccvcvcvvccvcvvcvccvcvcvvcvccvcvcvvccvcvcvvccvcvvcvcvccv333',confirmClick:(){console.log('xxxxxx点击')}})this.newTextDialogController.open()CustomDialogexportstructEBTextDialog{............staticalert(model:EBTextDialogModel):CustomDialogController{returnnewCustomDialogController({builder:EBTe...
使用ohos.measure提供的文本计算服务无法计算关键字的具体位置,无法完成关键字下划线的功能。
操作步骤:Flex({direction:FlexDirection.Column}){Column(){Image($r('app.media.startlogo')).width('30%')Image($r('app.media.test')).width('100%').height('100%').objectFit(ImageFit.Cover)}.width('100%').height('100%').justifyContent(FlexAlign.Center)}.expandSafeArea([SafeAreaType.SYSTEM],[SafeAreaEdge.TOP])设置:expandSafeArea([SafeAreaType.SYSTEM],[SafeAreaEdge.TOP])沉浸式状态栏无效。
官方文档中说navigation支持模态嵌套路由,Navigation可以嵌套在模态对话框中,也就是说可以模态框中定义路由,是否有相关示例?在Button属性bindContentCover(this.isShow,this.myBuilder())中模态一个页面,使用一个新的navigation后模态内容不显示。关键代码如下:EntryComponentstructIndex{pageInfo:NavPathStacknewNavPathStack()build(){Navigation(this.pageInfo){Column(){Button('StartTest',{stateEffect:true,type:...
直接调用的AlertDialog组件,无法使用.wordBreak(WordBreak.BREAKWORD)属性。
是否有Video组件和Slider组件的联动,可以让Slider组件根据总时长自己滑动,也可以在播放时自己滑动,并且已经播放的时长可以自己累加。
使用全局弹出api:promptAction.openCustomDialog遇到如下两个问题:1、弹窗内输入框调起输入法,底部多出来白色区域,怎么去除?2、弹窗内打开新页面page,新页面page在弹窗底部显示,而不是在弹窗上面显示,怎么解决?
item代码如下:PreviewComponentexportstructSwitchSettingItem{ObjectLinksetting:MessageSettingListModelObjectLinkmodel:MessageSettingListModelPropvm:NotificationSettingPageViewModelStateisON:booleanfalseaboutToAppear():void{this.isON(this.model.status1)}build(){Row(){Column(){Text(this.model.msgTypeName).attributeModifier(deepalTextT16)Text(this.model.remark).maxLines(1).textOverflow({overflow:Te...
类中定义了一个chooseIds字段列表属性,调用clear方法却提示undefined,代码如下:import{List}from'kit.ArkTS';exportclassHealthEvaluationBean{id:number1;题目IDqmId:number1;试卷IDtitle:string'';type:number1;选择类型1单选2多选needChoice:number1;是否必须选择0否1是backgroundImg:string'';背景图chooseIds:ListnewList();记录底下列表的选择项,以此来判断单选的systemQuestionDetailOptionVoList:SystemQuestionDet...
在HarmonyOS中页面出现的时候已用.transition(TransitionEffect.translate({y:1000}).animation({curve:curves.springMotion(0.6,0.8)}))实现了页面出现时向上的动画。页面消失时向下的动画如何实现?Stack(){Column(){Row(){Text('正在使用以下会员权益').fontSize(18).fontWeight(FontWeight.Bold).fontColor('191919')Image($r('app.media.vippopclose')).width(this.closeIconWH).height(this.closeIconWH).position({left:...
自定义dialog显示在当前页面,跳转到其他页面后dialog还是显示在上面,如何让dialog只显示在当前页面?
怎么让上面文字覆盖下面文字时,有个渐变的过程。代码如下:EntryComponentstructtest{build(){Stack(){Text('被覆盖被覆盖被覆盖被覆盖被覆盖被覆盖被覆盖被覆盖被覆盖被覆盖被覆盖被覆盖被覆盖被覆盖被覆盖被覆盖被覆盖被覆盖被覆盖被覆盖被覆盖被覆盖被覆盖被覆盖被覆盖被覆盖').maxLines(3)Text('123').backgroundColor(Color.White).width(60).textAlign(TextAlign.Center)}.margin({top:200}).width(230).backgroundColor(Color.White).alignContent(Alignment.Center)}}
操作步骤:List(){ForEach(this.codes,(item:string,index:number){ListItem(){Row(){Text(${index+1}).fontSize('10sp').height('20vp').textAlign(TextAlign.Center).fontColor('666666').padding({left:'3vp',right:'3vp'}).margin({left:'12vp',right:'8vp'}).backgroundColor('AAAAAA').borderRadius($r('sys.float.cornerradiuslevel2'))Text(${item}).fontSize('12sp').layoutWeight(1).fontColor('333333')Stack(){Imag...
hm673c38d47e470 的精彩回答获得了0 赞同
hm673c38d47e470 的精彩回答获得了0 赞同
hm673c38d47e470 的精彩回答获得了0 赞同
hm688c71d07992e 的精彩回答获得了0 赞同
全栈若城 的精彩回答获得了0 赞同