mirror of
https://gitee.com/openharmony/applications_notes
synced 2025-02-17 06:17:36 +00:00
IssueNo: #I62WT6
Description: add log. Sig: sig-systemapplications Feature or Bugfix: Bugfix Binary Source: No Signed-off-by: jiangwensai <jiangwensai@huawei.com>
This commit is contained in:
parent
d7030c7a8b
commit
07595b2b1f
2
.gitignore
vendored
2
.gitignore
vendored
@ -3,3 +3,5 @@
|
|||||||
/.idea
|
/.idea
|
||||||
**/build
|
**/build
|
||||||
/signature
|
/signature
|
||||||
|
/.hvigor
|
||||||
|
/package.json
|
@ -21,6 +21,7 @@
|
|||||||
"products": [
|
"products": [
|
||||||
{
|
{
|
||||||
"name": "default",
|
"name": "default",
|
||||||
|
"signingConfig": "default"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
3
common/resources/.gitignore
vendored
3
common/resources/.gitignore
vendored
@ -1,3 +1,4 @@
|
|||||||
/node_modules
|
/node_modules
|
||||||
/.preview
|
/.preview
|
||||||
/build
|
/build
|
||||||
|
/package.json
|
3
common/utils/.gitignore
vendored
3
common/utils/.gitignore
vendored
@ -1,3 +1,4 @@
|
|||||||
/node_modules
|
/node_modules
|
||||||
/.preview
|
/.preview
|
||||||
/build
|
/build
|
||||||
|
/package.json
|
3
features/.gitignore
vendored
3
features/.gitignore
vendored
@ -1,4 +1,5 @@
|
|||||||
/node_modules
|
/node_modules
|
||||||
/.preview
|
/.preview
|
||||||
/build
|
/build
|
||||||
/.cxx
|
/.cxx
|
||||||
|
/package.json
|
@ -570,7 +570,7 @@ export struct ToolBarComp {
|
|||||||
// 清单
|
// 清单
|
||||||
this.controllerShow.runJavaScript({ script: "javascript:RICH_EDITOR.setTodo()" })
|
this.controllerShow.runJavaScript({ script: "javascript:RICH_EDITOR.setTodo()" })
|
||||||
// 退出键盘
|
// 退出键盘
|
||||||
iinputMethod.getController().stopInputSession();
|
inputMethod.getController().stopInputSession();
|
||||||
})
|
})
|
||||||
}.width(42)
|
}.width(42)
|
||||||
.height(42)
|
.height(42)
|
||||||
|
3
product/default/.gitignore
vendored
3
product/default/.gitignore
vendored
@ -1,3 +1,4 @@
|
|||||||
/node_modules
|
/node_modules
|
||||||
/.preview
|
/.preview
|
||||||
/build
|
/build
|
||||||
|
/package.json
|
@ -23,7 +23,6 @@ import { atob } from 'js-base64'
|
|||||||
import display from '@ohos.display';
|
import display from '@ohos.display';
|
||||||
import window from '@ohos.window';
|
import window from '@ohos.window';
|
||||||
|
|
||||||
|
|
||||||
globalThis.rdbStore = undefined
|
globalThis.rdbStore = undefined
|
||||||
|
|
||||||
export default class MainAbility extends Ability {
|
export default class MainAbility extends Ability {
|
||||||
@ -33,11 +32,12 @@ export default class MainAbility extends Ability {
|
|||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
window.getLastWindow(this.context,(err,data)=>{
|
window.getLastWindow(this.context,(err,data)=>{
|
||||||
let windowWidth = data.getWindowProperties().windowRect.width
|
let windowWidth = data.getWindowProperties().windowRect.width
|
||||||
|
LogUtil.info(this.Tag, " getLastWindow:" + windowWidth)
|
||||||
this.screenBreakPoints(windowWidth)
|
this.screenBreakPoints(windowWidth)
|
||||||
})
|
})
|
||||||
AppStorage.SetOrCreate<boolean>('closeEditContentDialog', true)
|
AppStorage.SetOrCreate<boolean>('closeEditContentDialog', true)
|
||||||
LogUtil.info(this.Tag, " onCreate, launchReason is " + launchParam.launchReason)
|
LogUtil.info(this.Tag, " onCreate, launchReason is " + launchParam.launchReason +
|
||||||
LogUtil.info(this.Tag, " onCreate, deviceType" + deviceInfo.deviceType)
|
", deviceType" + deviceInfo.deviceType)
|
||||||
if (deviceInfo.deviceType === 'phone' || deviceInfo.deviceType === 'default') {
|
if (deviceInfo.deviceType === 'phone' || deviceInfo.deviceType === 'default') {
|
||||||
AppStorage.SetOrCreate<boolean>('Expand', false)
|
AppStorage.SetOrCreate<boolean>('Expand', false)
|
||||||
AppStorage.SetOrCreate<boolean>('Choose', true)
|
AppStorage.SetOrCreate<boolean>('Choose', true)
|
||||||
@ -203,6 +203,7 @@ export default class MainAbility extends Ability {
|
|||||||
displayClass = display.getDefaultDisplaySync()
|
displayClass = display.getDefaultDisplaySync()
|
||||||
screenDpi = displayClass.densityDPI
|
screenDpi = displayClass.densityDPI
|
||||||
let windowWidth = data / (screenDpi / 160)
|
let windowWidth = data / (screenDpi / 160)
|
||||||
|
LogUtil.debug(this.Tag, " screenBreakPoints windowWidth: " + windowWidth)
|
||||||
if (windowWidth >= 320 && windowWidth < 520 || windowWidth < 320) {
|
if (windowWidth >= 320 && windowWidth < 520 || windowWidth < 320) {
|
||||||
AppStorage.SetOrCreate('breakPoint', 'sm')
|
AppStorage.SetOrCreate('breakPoint', 'sm')
|
||||||
} else if (windowWidth >= 520 && windowWidth < 840) {
|
} else if (windowWidth >= 520 && windowWidth < 840) {
|
||||||
|
@ -44,12 +44,18 @@
|
|||||||
{
|
{
|
||||||
"name": "ohos.permission.DISTRIBUTED_DATASYNC",
|
"name": "ohos.permission.DISTRIBUTED_DATASYNC",
|
||||||
"reason": "$string:distributed_dataSync_permission"
|
"reason": "$string:distributed_dataSync_permission"
|
||||||
},
|
}
|
||||||
],
|
],
|
||||||
"deliveryWithInstall": true,
|
"deliveryWithInstall": true,
|
||||||
"installationFree": false,
|
"installationFree": false,
|
||||||
"pages": "$profile:main_pages",
|
"pages": "$profile:main_pages",
|
||||||
"uiSyntax": "ets",
|
"uiSyntax": "ets",
|
||||||
|
"metadata": [
|
||||||
|
{
|
||||||
|
"name": "ArkTSPartialUpdate",
|
||||||
|
"value": "true"
|
||||||
|
}
|
||||||
|
],
|
||||||
"abilities": [
|
"abilities": [
|
||||||
{
|
{
|
||||||
"name": "MainAbility",
|
"name": "MainAbility",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user