Frame / SView / Windows / ResultDialog
Class: ResultDialog
File
Brief
UI提示控件:成功/失败/加载弹出提示
Author
ZYC
Date
2022-1-24
Version
1.0
Copyright
All Rights Reserved. Copyright (C) 2022 HOTEAMSOFT, Ltd
Hierarchy
-
↳
ResultDialog
Table of contents
Constructors
Properties
- allSubComponent
- eleClasses
- eleId
- eleIsShow
- eleLabel
- eleOnChange
- eleOnClick
- eleOnTouchStart
- eleOverLay
- isDisable
- rootPath
Methods
- addClass
- addLabel
- create
- createLabel
- delete
- getClasses
- getDetail
- getFlexDirection
- getId
- getImgClasses
- getImgsrc
- getLabel
- getOnChangeEvent
- getOnClickEvent
- getTitle
- hide
- initFlexDirection
- isShow
- removeClass
- setAttribute
- setCancleBt
- setClasses
- setDetail
- setFlexDirection
- setId
- setImgClasses
- setImgsrc
- setIsDisable
- setOnChangeEvent
- setOnClickEvent
- setTitle
- show
- hideById
- setRootPath
- showById
Constructors
constructor
• new ResultDialog(): ResultDialog
Returns
Description
构造函数
Overrides
Properties
allSubComponent
• allSubComponent: Map<string, any>
Inherited from
eleClasses
• eleClasses: string[]
Inherited from
eleId
• eleId: string
Inherited from
eleIsShow
• eleIsShow: boolean
Inherited from
eleLabel
• eleLabel: HTMLElement
Inherited from
eleOnChange
• eleOnChange: any
Inherited from
eleOnClick
• eleOnClick: any
Inherited from
eleOnTouchStart
• eleOnTouchStart: string
Inherited from
eleOverLay
• eleOverLay: boolean
Description
默认不显示
Inherited from
isDisable
• isDisable: boolean
Inherited from
rootPath
▪ Static rootPath: string
Inherited from
Methods
addClass
▸ addClass(className): void
Parameters
| Name | Type | Description |
|---|---|---|
className | string | 标签class名称 |
Returns
void
Description
添加标签class,原class保留
Inherited from
addLabel
▸ addLabel(id?): void
Parameters
| Name | Type |
|---|---|
id? | string |
Returns
void
Description
添加标签至网页
Inherited from
create
▸ create(elementInfo): Promise<Label>
Parameters
| Name | Type |
|---|---|
elementInfo | any |
Returns
Promise<Label>
Inherited from
createLabel
▸ createLabel(resultDialogInfo): Promise<ResultDialog>
Parameters
| Name | Type | Description |
|---|---|---|
resultDialogInfo | any | 结果对话框信息 |
Returns
Promise<ResultDialog>
Description
创建成功/失败/加载提示
Overrides
delete
▸ delete(): void
Returns
void
Description
移除标签
Inherited from
getClasses
▸ getClasses(): string[]
Returns
string[]
Description
获取标签class名
Inherited from
getDetail
▸ getDetail(): string
Returns
string
Description
获取提示细节
getFlexDirection
▸ getFlexDirection(): string
Returns
string
Inherited from
getId
▸ getId(): string
Returns
string
Description
获取标签id名
Inherited from
getImgClasses
▸ getImgClasses(): string
Returns
string
Description
获取提示图标类名
getImgsrc
▸ getImgsrc(): string
Returns
string
Description
获取提示图标路径
getLabel
▸ getLabel(): HTMLElement
Returns
HTMLElement
Description
获取标签
Inherited from
getOnChangeEvent
▸ getOnChangeEvent(): any
Returns
any
Description
获取OnChange事件
Inherited from
getOnClickEvent
▸ getOnClickEvent(): any
Returns
any
Description
获取OnClick事件
Inherited from
getTitle
▸ getTitle(): string
Returns
string
Description
获取提示标题
hide
▸ hide(): void
Returns
void
Description
隐藏标签
Inherited from
initFlexDirection
▸ initFlexDirection(): void
Returns
void
Inherited from
isShow
▸ isShow(): boolean
Returns
boolean
Description
标签是否显示
Inherited from
removeClass
▸ removeClass(className): void
Parameters
| Name | Type | Description |
|---|---|---|
className | string | 标签名称 |
Returns
void
Description
删除标签class
Inherited from
setAttribute
▸ setAttribute(key, value): void
Parameters
| Name | Type |
|---|---|
key | string |
value | string |
Returns
void
Description
设置其他属性
Inherited from
setCancleBt
▸ setCancleBt(btStr): void
Parameters
| Name | Type | Description |
|---|---|---|
btStr | any | 取消按键内容 |
Returns
void
Description
设置取消按键
setClasses
▸ setClasses(classNames): void
Parameters
| Name | Type | Description |
|---|---|---|
classNames | string[] | 标签class名称 |
Returns
void
Description
设置标签class,直接替换,原class被删除
Inherited from
setDetail
▸ setDetail(detail): void
Parameters
| Name | Type | Description |
|---|---|---|
detail | string | 细节 |
Returns
void
Description
设置提示细节描述
setFlexDirection
▸ setFlexDirection(flexDirection): void
Parameters
| Name | Type |
|---|---|
flexDirection | string |
Returns
void
Inherited from
setId
▸ setId(id): void
Parameters
| Name | Type |
|---|---|
id | string |
Returns
void
Description
设置标签id名
Inherited from
setImgClasses
▸ setImgClasses(imgClasses): void
Parameters
| Name | Type | Description |
|---|---|---|
imgClasses | string | string[] | 图标类名 |
Returns
void
Description
设置图标类名
setImgsrc
▸ setImgsrc(imgsrc): void
Parameters
| Name | Type | Description |
|---|---|---|
imgsrc | string | 图标路径 |
Returns
void
Description
设置图标路径
setIsDisable
▸ setIsDisable(value): void
Parameters
| Name | Type |
|---|---|
value | boolean |
Returns
void
Description
设置是否禁用
Inherited from
setOnChangeEvent
▸ setOnChangeEvent(onChangeEvent, parentNode?): void
Parameters
| Name | Type | Description |
|---|---|---|
onChangeEvent | any | change事件 |
parentNode? | any | - |
Returns
void
Description
设置change事件
Inherited from
setOnClickEvent
▸ setOnClickEvent(onClickEvent, parentNode?): void
Parameters
| Name | Type | Description |
|---|---|---|
onClickEvent | any | 点击事件 |
parentNode? | any | - |
Returns
void
Description
设置点击事件
Inherited from
setTitle
▸ setTitle(title): void
Parameters
| Name | Type | Description |
|---|---|---|
title | string | 标题 |
Returns
void
Description
设置提示标题
show
▸ show(): void
Returns
void
Description
显示标签
Inherited from
hideById
▸ hideById(id): void
Parameters
| Name | Type |
|---|---|
id | string |
Returns
void
Description
通过id隐藏标签
Inherited from
setRootPath
▸ setRootPath(path): void
Parameters
| Name | Type |
|---|---|
path | any |
Returns
void
Description
设置基础路径
Inherited from
showById
▸ showById(id): void
Parameters
| Name | Type |
|---|---|
id | string |
Returns
void
Description
通过id显示标签