!130 参数名整改

Merge pull request !130 from fanchenxuan/master-
This commit is contained in:
openharmony_ci 2023-06-16 08:20:38 +00:00 committed by Gitee
commit ab76f43469
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
4 changed files with 26 additions and 26 deletions

View File

@ -42,7 +42,7 @@ export struct textInput {
this.applicationItem = this.oldApplicationItem;
} else {
this.applicationItem = this.oldApplicationItem.filter((item) => {
return item.labelId.indexOf(value) > -1;
return item.label.indexOf(value) > -1;
})
}
if (this.applicationItem.length) {

View File

@ -47,12 +47,12 @@ class MeidaDocObj {
}
}; // permission information class
class MediaListObj {
labelId: string
iconId: string
label: string
icon: string
versionName: string
constructor(labelId: string, iconId: string, versionName: string,) {
this.labelId = labelId
this.iconId = iconId
constructor(label: string, icon: string, versionName: string,) {
this.label = label
this.icon = icon
this.versionName = versionName
}
}; // Permission application information class
@ -133,8 +133,8 @@ struct mediaDocumentPage {
struct mediaDocumentItem {
@State mediaDocListItem: MeidaDocObj[] = []; // Permission information array
@State mediaListItem: MediaListObj = {
labelId: '',
iconId: '',
label: '',
icon: '',
versionName: '',
}; // application info array
@Link isCheckList: boolean[]; // Permission status array
@ -263,13 +263,13 @@ struct mediaDocumentItem {
Column() {
Row() {
Flex({ justifyContent: FlexAlign.Start, alignItems: ItemAlign.Center }) {
Image(this.mediaListItem.iconId)
Image(this.mediaListItem.icon)
.width(Constants.TERTIARY_IMAGE_WIDTH)
.height(Constants.TERTIARY_IMAGE_HEIGHT)
.margin({ left: Constants.TERTIARY_IMAGE_MARGIN_LEFT, right: Constants.TERTIARY_IMAGE_MARGIN_RIGHT })
Column() {
Row() {
Text(this.mediaListItem.labelId)
Text(this.mediaListItem.label)
.maxLines(Constants.MAXIMUM_HEADER_LINES)
.textOverflow({ overflow: TextOverflow.Ellipsis })
.fontSize(Constants.TEXT_MIDDLE_FONT_SIZE)

View File

@ -43,8 +43,8 @@ let globalIsOn: any = router.getParams()['globalIsOn']; // return title name
class ApplicationObj {
bundleName: string
labelId: string
iconId: string
label: string
icon: string
index: number
accessTokenId: number
permission: string
@ -52,16 +52,16 @@ class ApplicationObj {
sortId: string
constructor(
bundleName: string,
labelId: string,
iconId: string,
label: string,
icon: string,
index: number,
accessTokenId: number,
permission: string,
alphabeticalIndex: string,
sortId: string) {
this.bundleName = bundleName
this.labelId = labelId
this.iconId = iconId
this.label = label
this.icon = icon
this.index = index
this.accessTokenId = accessTokenId
this.permission = permission
@ -168,11 +168,11 @@ struct applicationItem {
Column() {
Flex({ justifyContent: FlexAlign.Start, alignItems: ItemAlign.Center }) {
Row() {
Image(item.iconId)
Image(item.icon)
.customizeImage(Constants.AUTHORITY_IMAGE_WIDTH, Constants.AUTHORITY_IMAGE_HEIGHT)
.margin({ right: Constants.AUTHORITY_IMAGE_MARGIN_RIGHT })
Column() {
Text(item.labelId)
Text(item.label)
.width(Constants.MAXIMUM_HEADER_WIDTH)
.maxLines(Constants.MAXIMUM_HEADER_LINES)
.textOverflow({ overflow: TextOverflow.Ellipsis })

View File

@ -34,23 +34,23 @@ var TAG = 'PermissionManager_MainAbility:';
let routerData: any = router.getParams()['routerData']; // Routing jump data
let backTitle = router.getParams()['backTitle']; // return title name
class ApplicationObj {
labelId: string
iconId: string
label: string
icon: string
index: number
accessTokenId: number
permission: string
alphabeticalIndex: string
sortId: string
constructor(
labelId: string,
iconId: string,
label: string,
icon: string,
index: number,
accessTokenId: number,
permission: string,
alphabeticalIndex: string,
sortId: string) {
this.labelId = labelId
this.iconId = iconId
this.label = label
this.icon = icon
this.index = index
this.accessTokenId = accessTokenId
this.permission = permission
@ -109,11 +109,11 @@ struct applicationItem {
Column() {
Flex({ justifyContent: FlexAlign.Start, alignItems: ItemAlign.Center }) {
Row() {
Image(item.iconId)
Image(item.icon)
.customizeImage(Constants.AUTHORITY_IMAGE_WIDTH, Constants.AUTHORITY_IMAGE_HEIGHT)
.margin({ right: Constants.AUTHORITY_IMAGE_MARGIN_RIGHT })
Column() {
Text(item.labelId)
Text(item.label)
.width(Constants.MAXIMUM_HEADER_WIDTH)
.maxLines(Constants.MAXIMUM_HEADER_LINES)
.textOverflow({ overflow: TextOverflow.Ellipsis })