From 58c5ff95a813324e2795da39c845f9da81b5b093 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9F=B3=E4=B8=9C=E6=B5=B7?= Date: Fri, 25 Jul 2025 10:56:01 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E6=94=B9faq=E9=94=99=E5=88=AB?= =?UTF-8?q?=E5=AD=97=E5=92=8C=E6=8B=BC=E5=86=99=E9=94=99=E8=AF=AF=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/ets/entryability/EntryAbilityLockDevice.ets | 2 +- ArkUI/entry/src/main/ets/pages/ImageAddGradientBlur.ets | 6 +++--- ArkUI/entry/src/main/ets/pages/attributeModifier.ets | 4 ++-- ArkWebKit/entry/src/main/resources/rawfile/RunJs_3.html | 2 +- ArkWebKit/entry/src/main/resources/rawfile/RunJs_one.html | 2 +- ArkWebKit/entry/src/main/resources/rawfile/index.html | 1 - CameraKit/entry/src/main/ets/pages/AvoidDistortion.ets | 4 ++-- CameraKit/entry/src/main/ets/pages/GetFrontCameraImage.ets | 4 ++-- CameraKit/entry/src/main/ets/pages/GetSurface.ets | 2 +- .../library/src/main/ets/components/index.js | 3 +-- ImageKit/entry/src/main/ets/pages/CompressedImage.ets | 2 +- Ndk/Ndk2/LogListener/src/main/cpp/napi_init.cpp | 2 +- Ndk/Ndk2/NativeCallArkTSAsync/src/main/cpp/napi_init.cpp | 4 ++-- Ndk/Ndk2/UndefinedSymbol/src/main/cpp/CMakeLists.txt | 2 +- Ndk/Ndk2/UndefinedSymbol/src/main/cpp/CMakeLists1.txt | 2 +- Ndk/ndk1/entry/src/main/cpp/TestDemo.cpp | 6 +++--- NetworkKit/entry/src/main/ets/pages/GetAxiosUTF.ets | 2 +- NetworkKit/entry/src/main/ets/pages/SetForm.ets | 2 +- .../entry/src/main/ets/entryability/EntryAbility2.ets | 2 +- 19 files changed, 26 insertions(+), 28 deletions(-) diff --git a/ArkUI/entry/src/main/ets/entryability/EntryAbilityLockDevice.ets b/ArkUI/entry/src/main/ets/entryability/EntryAbilityLockDevice.ets index 0f901d4..e89d35d 100644 --- a/ArkUI/entry/src/main/ets/entryability/EntryAbilityLockDevice.ets +++ b/ArkUI/entry/src/main/ets/entryability/EntryAbilityLockDevice.ets @@ -36,7 +36,7 @@ export default class EntryAbility extends UIAbility { onWindowStageCreate(windowStage: window.WindowStage): void { // [Start entry_ability_lock_device] - //1.Get the window instance object, use the creatWindow method to create a new window, and use the findWindow method to obtain an existing window + //1.Get the window instance object, use the createWindow method to create a new window, and use the findWindow method to obtain an existing window let windowClass: window.Window | undefined = undefined; let config: window.Configuration = { name: "alertWindow", diff --git a/ArkUI/entry/src/main/ets/pages/ImageAddGradientBlur.ets b/ArkUI/entry/src/main/ets/pages/ImageAddGradientBlur.ets index c2cc20f..a14aeff 100644 --- a/ArkUI/entry/src/main/ets/pages/ImageAddGradientBlur.ets +++ b/ArkUI/entry/src/main/ets/pages/ImageAddGradientBlur.ets @@ -21,14 +21,14 @@ @Entry @Component struct ImageExample1 { - private_resource1: Resource = $r('app.media.icon'); - @State image_src: Resource = this.private_resource1; + privateResource1: Resource = $r('app.media.icon'); + @State imageSrc: Resource = this.privateResource1; build() { Column() { Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Start }) { Row({ space: 5 }) { - Image(this.image_src) + Image(this.imageSrc) .linearGradientBlur(60, { fractionStops: [[0, 0], [0, 0.33], [1, 0.66], [1, 1]], direction: GradientDirection.Bottom diff --git a/ArkUI/entry/src/main/ets/pages/attributeModifier.ets b/ArkUI/entry/src/main/ets/pages/attributeModifier.ets index 3cda9bb..89bc6b4 100644 --- a/ArkUI/entry/src/main/ets/pages/attributeModifier.ets +++ b/ArkUI/entry/src/main/ets/pages/attributeModifier.ets @@ -41,7 +41,7 @@ export class CommodityText implements AttributeModifier { instance.fontWeight(FontWeight.Bold); instance.fontColor(Color.Blue); instance.width(200); - } else if (this.textType === TextType.TYPE_Three) { + } else if (this.textType === TextType.TYPE_THREE) { instance.fontColor(Color.Gray); instance.fontSize(this.textSize); instance.fontWeight(FontWeight.Normal); @@ -61,7 +61,7 @@ export class CommodityText implements AttributeModifier { export enum TextType { TYPE_ONE, TYPE_TWO, - TYPE_Three, + TYPE_THREE, TYPE_FOUR } // [End implement_cross_file_style_reuse_one] \ No newline at end of file diff --git a/ArkWebKit/entry/src/main/resources/rawfile/RunJs_3.html b/ArkWebKit/entry/src/main/resources/rawfile/RunJs_3.html index 0759536..dc6787a 100644 --- a/ArkWebKit/entry/src/main/resources/rawfile/RunJs_3.html +++ b/ArkWebKit/entry/src/main/resources/rawfile/RunJs_3.html @@ -25,7 +25,7 @@ -页面一:”Hello world! +页面一:Hello world!
点击跳转 diff --git a/ArkWebKit/entry/src/main/resources/rawfile/RunJs_one.html b/ArkWebKit/entry/src/main/resources/rawfile/RunJs_one.html index 567018d..5ab89bf 100644 --- a/ArkWebKit/entry/src/main/resources/rawfile/RunJs_one.html +++ b/ArkWebKit/entry/src/main/resources/rawfile/RunJs_one.html @@ -25,7 +25,7 @@ -页面一:”Hello world! +页面一:Hello world!
点击跳转 diff --git a/ArkWebKit/entry/src/main/resources/rawfile/index.html b/ArkWebKit/entry/src/main/resources/rawfile/index.html index 3638123..5e3eee7 100644 --- a/ArkWebKit/entry/src/main/resources/rawfile/index.html +++ b/ArkWebKit/entry/src/main/resources/rawfile/index.html @@ -12,5 +12,4 @@ - // [End GetRawfileHtml2] \ No newline at end of file diff --git a/CameraKit/entry/src/main/ets/pages/AvoidDistortion.ets b/CameraKit/entry/src/main/ets/pages/AvoidDistortion.ets index 1cffe04..7088eb6 100644 --- a/CameraKit/entry/src/main/ets/pages/AvoidDistortion.ets +++ b/CameraKit/entry/src/main/ets/pages/AvoidDistortion.ets @@ -67,8 +67,8 @@ class AvoidDistortion { surfaceWidth: this.xComponentWidth, surfaceHeight: this.xComponentHeight }); - // Create a preview output stream, where the parameter surfaceId refers to the XCompoonent component mentioned earlier, - // and the preview stream is the surface provided by the XCompoonent component + // Create a preview output stream, where the parameter surfaceId refers to the XComponent component mentioned earlier, + // and the preview stream is the surface provided by the XComponent component try { previewOutput = cameraManager.createPreviewOutput(previewProfilesArray[position],surfaceId); } catch (error) { diff --git a/CameraKit/entry/src/main/ets/pages/GetFrontCameraImage.ets b/CameraKit/entry/src/main/ets/pages/GetFrontCameraImage.ets index 0a3fc20..c7b693c 100644 --- a/CameraKit/entry/src/main/ets/pages/GetFrontCameraImage.ets +++ b/CameraKit/entry/src/main/ets/pages/GetFrontCameraImage.ets @@ -44,12 +44,12 @@ struct GetFrontCameraImage { let cameraInput = cameraManager.createCameraInput(camera.CameraPosition.CAMERA_POSITION_FRONT, camera.CameraType.CAMERA_TYPE_DEFAULT); await cameraInput.open(); - // 3、Retrieve the physical camera information and query the output formats supported by the preview stream of the camera. Create a preview output channel by combining it with the surfeId provided by XCompoonent + // 3、Retrieve the physical camera information and query the output formats supported by the preview stream of the camera. Create a preview output channel by combining it with the surfaceId provided by XComponent let outputCapability = cameraManager.getSupportedOutputCapability(cameraDevice, camera.SceneMode.NORMAL_PHOTO); let previewProfile = outputCapability.previewProfiles[0]; let surfaceId = this.xComponentController.getXComponentSurfaceId(); let previewOutput = cameraManager.createPreviewOutput(previewProfile, surfaceId); - // 4、Create a camera session, add the camera input stream and preview output stream in the session, then start the session, and the preview image will be displayed on the XCompoonent component. + // 4、Create a camera session, add the camera input stream and preview output stream in the session, then start the session, and the preview image will be displayed on the XComponent component. let captureSession = cameraManager.createSession(camera.SceneMode.NORMAL_PHOTO); captureSession.beginConfig(); captureSession.addInput(cameraInput); diff --git a/CameraKit/entry/src/main/ets/pages/GetSurface.ets b/CameraKit/entry/src/main/ets/pages/GetSurface.ets index a343a9b..141f0df 100644 --- a/CameraKit/entry/src/main/ets/pages/GetSurface.ets +++ b/CameraKit/entry/src/main/ets/pages/GetSurface.ets @@ -49,7 +49,7 @@ struct XComponentPage { build() { Flex() { - // Create XCompoonent + // Create XComponent XComponent({ id: '', type: 'surface', diff --git a/CompilingAndBuilding/library/src/main/ets/components/index.js b/CompilingAndBuilding/library/src/main/ets/components/index.js index af09e90..b5eb48a 100644 --- a/CompilingAndBuilding/library/src/main/ets/components/index.js +++ b/CompilingAndBuilding/library/src/main/ets/components/index.js @@ -23,7 +23,6 @@ function sub(a, b) { return a - b } - var allFunction = { sub } -module.exports = allFuntion +module.exports = allFunction // [End subFunction] \ No newline at end of file diff --git a/ImageKit/entry/src/main/ets/pages/CompressedImage.ets b/ImageKit/entry/src/main/ets/pages/CompressedImage.ets index c575711..8cd8920 100644 --- a/ImageKit/entry/src/main/ets/pages/CompressedImage.ets +++ b/ImageKit/entry/src/main/ets/pages/CompressedImage.ets @@ -151,7 +151,7 @@ async function saveImage(compressedImageData: ArrayBuffer): Promise { diff --git a/NetworkKit/entry/src/main/ets/pages/SetForm.ets b/NetworkKit/entry/src/main/ets/pages/SetForm.ets index 9c62886..e86a1d8 100644 --- a/NetworkKit/entry/src/main/ets/pages/SetForm.ets +++ b/NetworkKit/entry/src/main/ets/pages/SetForm.ets @@ -36,7 +36,7 @@ httpRequest.request( 'https:xxx', { method: http.RequestMethod.POST, - // Optional, default is http.RequestMethod.gET//Developers can add header fields according to their own business needs + // Optional, default is http.RequestMethod.GET//Developers can add header fields according to their own business needs header: { 'Content-Type': 'application/x-www-form-urlencoded' }, // This field is used to pass content when using POST requests extraData: data, connectTimeout: 60000, // Optional, default is 60000ms diff --git a/Notificationkit/entry/src/main/ets/entryability/EntryAbility2.ets b/Notificationkit/entry/src/main/ets/entryability/EntryAbility2.ets index b11da88..1197665 100644 --- a/Notificationkit/entry/src/main/ets/entryability/EntryAbility2.ets +++ b/Notificationkit/entry/src/main/ets/entryability/EntryAbility2.ets @@ -20,7 +20,7 @@ export default class EntryAbility extends UIAbility { } eventFunc(argOne: number, argTwo: number) { - console.log('eventFunc is called, ${argOne}, ${argTwo}'); + console.log(`eventFunc is called, ${argOne}, ${argTwo}`); } } // [End EventHubTransfer] \ No newline at end of file -- Gitee