mirror of
https://gitee.com/openharmony/applications_dlp_manager
synced 2024-11-23 01:49:46 +00:00
image组件默认可以拖拽,关闭拖拽功能
Signed-off-by: li-li-wang <wangliliang5@huawei.com>
This commit is contained in:
parent
2d41aef00b
commit
30bf481498
@ -166,7 +166,7 @@ export default class ViewAbility extends ServiceExtensionAbility {
|
||||
dlpPermission.DLPFileAccess.READ_ONLY ? true : false
|
||||
}
|
||||
};
|
||||
this.startAbility(want, startId)
|
||||
this.startAbility(want, startId);
|
||||
}
|
||||
|
||||
async sendDlpFileOpenFault(code: number, sandboxName: string, appIndex: number, reason: string): Promise<void> {
|
||||
|
@ -439,6 +439,7 @@ struct changeEncryption {
|
||||
.onClick(() => {
|
||||
this.handlePopupReadOnly = !this.handlePopupReadOnly
|
||||
})
|
||||
.draggable(false)
|
||||
.bindPopup(this.handlePopupReadOnly, {
|
||||
builder: this.popupBuilderReadOnly,
|
||||
placement: Placement.Bottom,
|
||||
@ -478,6 +479,7 @@ struct changeEncryption {
|
||||
.onClick(() => {
|
||||
this.handlePopupReadOnly = !this.handlePopupReadOnly
|
||||
})
|
||||
.draggable(false)
|
||||
.bindPopup(this.handlePopupReadOnly, {
|
||||
builder: this.popupBuilderReadOnly,
|
||||
placement: Placement.Bottom,
|
||||
@ -520,6 +522,7 @@ struct changeEncryption {
|
||||
.customizeText()
|
||||
}
|
||||
Image($r("app.media.icon_change"))
|
||||
.draggable(false)
|
||||
.width(Constants.PP_IMAGE_HEIGHT)
|
||||
.height(Constants.PP_TEXT_FONT_SIZE2)
|
||||
.objectFit(ImageFit.Contain)
|
||||
@ -575,6 +578,7 @@ struct changeEncryption {
|
||||
.onClick(() => {
|
||||
this.handlePopupEdit = !this.handlePopupEdit
|
||||
})
|
||||
.draggable(false)
|
||||
.bindPopup(this.handlePopupEdit, {
|
||||
builder: this.popupBuilderEdit,
|
||||
placement: Placement.Bottom,
|
||||
@ -615,6 +619,7 @@ struct changeEncryption {
|
||||
.onClick(() => {
|
||||
this.handlePopupEdit = !this.handlePopupEdit
|
||||
})
|
||||
.draggable(false)
|
||||
.bindPopup(this.handlePopupEdit, {
|
||||
builder: this.popupBuilderEdit,
|
||||
placement: Placement.Bottom,
|
||||
@ -657,6 +662,7 @@ struct changeEncryption {
|
||||
.customizeText()
|
||||
}
|
||||
Image($r("app.media.icon_change"))
|
||||
.draggable(false)
|
||||
.width(Constants.PP_IMAGE_HEIGHT)
|
||||
.height(Constants.PP_TEXT_FONT_SIZE2)
|
||||
.objectFit(ImageFit.Contain)
|
||||
|
@ -670,6 +670,7 @@ struct DlpDialog {
|
||||
.onClick(() => {
|
||||
this.handlePopupReadOnly = !this.handlePopupReadOnly
|
||||
})
|
||||
.draggable(false)
|
||||
.bindPopup(this.handlePopupReadOnly, {
|
||||
builder: this.popupBuilderReadOnly,
|
||||
placement: Placement.Bottom,
|
||||
@ -717,6 +718,7 @@ struct DlpDialog {
|
||||
.onClick(() => {
|
||||
this.handlePopupEdit = !this.handlePopupEdit
|
||||
})
|
||||
.draggable(false)
|
||||
.bindPopup(this.handlePopupEdit, {
|
||||
builder: this.popupBuilderEdit,
|
||||
placement: Placement.Bottom,
|
||||
|
@ -154,6 +154,7 @@ struct encryptionSuccess {
|
||||
Scroll() {
|
||||
Column() {
|
||||
Image($r('app.media.finished'))
|
||||
.draggable(false)
|
||||
.width(Constants.ENCRYPTION_SUCCESS_ICON)
|
||||
.height(Constants.ENCRYPTION_SUCCESS_ICON)
|
||||
.margin({ top: Constants.ENCRYPTION_SUCCESS_IMAGE_MARGIN_TOP })
|
||||
@ -191,6 +192,7 @@ struct encryptionSuccess {
|
||||
.fontWeight(FontWeight.Regular)
|
||||
.textAlign(TextAlign.Center)
|
||||
Image($r("app.media.icon_change"))
|
||||
.draggable(false)
|
||||
.width(Constants.PP_IMAGE_HEIGHT)
|
||||
.height(Constants.PP_TEXT_FONT_SIZE2)
|
||||
.objectFit(ImageFit.Contain)
|
||||
@ -231,6 +233,7 @@ struct encryptionSuccess {
|
||||
.onClick(() => {
|
||||
this.handlePopupReadOnly = !this.handlePopupReadOnly
|
||||
})
|
||||
.draggable(false)
|
||||
.bindPopup(this.handlePopupReadOnly, {
|
||||
builder: this.popupBuilderReadOnly,
|
||||
placement: Placement.Bottom,
|
||||
@ -270,6 +273,7 @@ struct encryptionSuccess {
|
||||
.onClick(() => {
|
||||
this.handlePopupReadOnly = !this.handlePopupReadOnly
|
||||
})
|
||||
.draggable(false)
|
||||
.bindPopup(this.handlePopupReadOnly, {
|
||||
builder: this.popupBuilderReadOnly,
|
||||
placement: Placement.Bottom,
|
||||
@ -311,6 +315,7 @@ struct encryptionSuccess {
|
||||
.customizeText()
|
||||
}
|
||||
Image($r("app.media.icon_change"))
|
||||
.draggable(false)
|
||||
.width(Constants.PP_IMAGE_HEIGHT)
|
||||
.height(Constants.PP_TEXT_FONT_SIZE2)
|
||||
.objectFit(ImageFit.Contain)
|
||||
@ -367,6 +372,7 @@ struct encryptionSuccess {
|
||||
.onClick(() => {
|
||||
this.handlePopupEdit = !this.handlePopupEdit
|
||||
})
|
||||
.draggable(false)
|
||||
.bindPopup(this.handlePopupEdit, {
|
||||
builder: this.popupBuilderEdit,
|
||||
placement: Placement.Bottom,
|
||||
@ -407,6 +413,7 @@ struct encryptionSuccess {
|
||||
.onClick(() => {
|
||||
this.handlePopupEdit = !this.handlePopupEdit
|
||||
})
|
||||
.draggable(false)
|
||||
.bindPopup(this.handlePopupEdit, {
|
||||
builder: this.popupBuilderEdit,
|
||||
placement: Placement.Bottom,
|
||||
@ -449,6 +456,7 @@ struct encryptionSuccess {
|
||||
.customizeText()
|
||||
}
|
||||
Image($r("app.media.icon_change"))
|
||||
.draggable(false)
|
||||
.width(Constants.PP_IMAGE_HEIGHT)
|
||||
.height(Constants.PP_TEXT_FONT_SIZE2)
|
||||
.objectFit(ImageFit.Contain)
|
||||
|
Loading…
Reference in New Issue
Block a user