未验证 提交 23eac04c 编写于 作者: 喝可乐的猫 提交者: Gitee

【OpenHarmony开源贡献者计划2022】代码缩进格式化

代码缩进格式化
Signed-off-by: Ncoke-drinking-cat <hanglice@isoftstone.com>
Signed-off-by: N喝可乐的猫 <hanglice@isoftstone.com>
上级 29e08d79
...@@ -30,10 +30,10 @@ Web(options: { src: string, controller?: WebController }) ...@@ -30,10 +30,10 @@ Web(options: { src: string, controller?: WebController })
@Entry @Entry
@Component @Component
struct WebComponent { struct WebComponent {
controller:WebController = new WebController(); controller: WebController = new WebController();
build() { build() {
Column() { Column() {
Web({ src:'www.example.com', controller:this.controller }) Web({ src: 'www.example.com', controller: this.controller })
} }
} }
} }
...@@ -64,10 +64,10 @@ domStorageAccess(domStorageAccess: boolean) ...@@ -64,10 +64,10 @@ domStorageAccess(domStorageAccess: boolean)
@Entry @Entry
@Component @Component
struct WebComponent { struct WebComponent {
controller:WebController = new WebController(); controller: WebController = new WebController();
build() { build() {
Column() { Column() {
Web({ src:'www.example.com', controller:this.controller }) Web({ src: 'www.example.com', controller: this.controller })
.domStorageAccess(true) .domStorageAccess(true)
} }
} }
...@@ -118,10 +118,10 @@ fileFromUrlAccess(fileFromUrlAccess: boolean) ...@@ -118,10 +118,10 @@ fileFromUrlAccess(fileFromUrlAccess: boolean)
@Entry @Entry
@Component @Component
struct WebComponent { struct WebComponent {
controller:WebController = new WebController(); controller: WebController = new WebController();
build() { build() {
Column() { Column() {
Web({ src:'www.example.com', controller:this.controller }) Web({ src: 'www.example.com', controller: this.controller })
.fileFromUrlAccess(true) .fileFromUrlAccess(true)
} }
} }
...@@ -145,10 +145,10 @@ imageAccess(imageAccess: boolean) ...@@ -145,10 +145,10 @@ imageAccess(imageAccess: boolean)
@Entry @Entry
@Component @Component
struct WebComponent { struct WebComponent {
controller:WebController = new WebController(); controller: WebController = new WebController();
build() { build() {
Column() { Column() {
Web({ src:'www.example.com', controller:this.controller }) Web({ src: 'www.example.com', controller: this.controller })
.imageAccess(true) .imageAccess(true)
} }
} }
...@@ -175,7 +175,7 @@ javaScriptProxy(javaScriptProxy: { object: object, name: string, methodList: Arr ...@@ -175,7 +175,7 @@ javaScriptProxy(javaScriptProxy: { object: object, name: string, methodList: Arr
@Entry @Entry
@Component @Component
struct WebComponent { struct WebComponent {
controller:WebController = new WebController(); controller: WebController = new WebController();
testObj = { testObj = {
test: (data1, data2, data3) => { test: (data1, data2, data3) => {
console.log("data1:" + data1); console.log("data1:" + data1);
...@@ -189,7 +189,7 @@ javaScriptProxy(javaScriptProxy: { object: object, name: string, methodList: Arr ...@@ -189,7 +189,7 @@ javaScriptProxy(javaScriptProxy: { object: object, name: string, methodList: Arr
} }
build() { build() {
Column() { Column() {
Web({ src:'www.example.com', controller:this.controller }) Web({ src: 'www.example.com', controller: this.controller })
.javaScriptAccess(true) .javaScriptAccess(true)
.javaScriptProxy({ .javaScriptProxy({
object: this.testObj, object: this.testObj,
...@@ -219,10 +219,10 @@ javaScriptAccess(javaScriptAccess: boolean) ...@@ -219,10 +219,10 @@ javaScriptAccess(javaScriptAccess: boolean)
@Entry @Entry
@Component @Component
struct WebComponent { struct WebComponent {
controller:WebController = new WebController(); controller: WebController = new WebController();
build() { build() {
Column() { Column() {
Web({ src:'www.example.com', controller:this.controller }) Web({ src: 'www.example.com', controller: this.controller })
.javaScriptAccess(true) .javaScriptAccess(true)
} }
} }
...@@ -246,11 +246,11 @@ mixedMode(mixedMode: MixedMode) ...@@ -246,11 +246,11 @@ mixedMode(mixedMode: MixedMode)
@Entry @Entry
@Component @Component
struct WebComponent { struct WebComponent {
controller:WebController = new WebController(); controller: WebController = new WebController();
@State mode:MixedMode = MixedMode.All; @State mode: MixedMode = MixedMode.All;
build() { build() {
Column() { Column() {
Web({ src:'www.example.com', controller:this.controller }) Web({ src: 'www.example.com', controller: this.controller })
.mixedMode(this.mode) .mixedMode(this.mode)
} }
} }
...@@ -274,10 +274,10 @@ onlineImageAccess(onlineImageAccess: boolean) ...@@ -274,10 +274,10 @@ onlineImageAccess(onlineImageAccess: boolean)
@Entry @Entry
@Component @Component
struct WebComponent { struct WebComponent {
controller:WebController = new WebController(); controller: WebController = new WebController();
build() { build() {
Column() { Column() {
Web({ src:'www.example.com', controller:this.controller }) Web({ src: 'www.example.com', controller: this.controller })
.onlineImageAccess(true) .onlineImageAccess(true)
} }
} }
...@@ -301,10 +301,10 @@ zoomAccess(zoomAccess: boolean) ...@@ -301,10 +301,10 @@ zoomAccess(zoomAccess: boolean)
@Entry @Entry
@Component @Component
struct WebComponent { struct WebComponent {
controller:WebController = new WebController(); controller: WebController = new WebController();
build() { build() {
Column() { Column() {
Web({ src:'www.example.com', controller:this.controller }) Web({ src: 'www.example.com', controller: this.controller })
.zoomAccess(true) .zoomAccess(true)
} }
} }
...@@ -328,10 +328,10 @@ overviewModeAccess(overviewModeAccess: boolean) ...@@ -328,10 +328,10 @@ overviewModeAccess(overviewModeAccess: boolean)
@Entry @Entry
@Component @Component
struct WebComponent { struct WebComponent {
controller:WebController = new WebController(); controller: WebController = new WebController();
build() { build() {
Column() { Column() {
Web({ src:'www.example.com', controller:this.controller }) Web({ src: 'www.example.com', controller: this.controller })
.overviewModeAccess(true) .overviewModeAccess(true)
} }
} }
...@@ -355,10 +355,10 @@ databaseAccess(databaseAccess: boolean) ...@@ -355,10 +355,10 @@ databaseAccess(databaseAccess: boolean)
@Entry @Entry
@Component @Component
struct WebComponent { struct WebComponent {
controller:WebController = new WebController(); controller: WebController = new WebController();
build() { build() {
Column() { Column() {
Web({ src:'www.example.com', controller:this.controller }) Web({ src: 'www.example.com', controller: this.controller })
.databaseAccess(true) .databaseAccess(true)
} }
} }
...@@ -382,10 +382,10 @@ geolocationAccess(geolocationAccess: boolean) ...@@ -382,10 +382,10 @@ geolocationAccess(geolocationAccess: boolean)
@Entry @Entry
@Component @Component
struct WebComponent { struct WebComponent {
controller:WebController = new WebController(); controller: WebController = new WebController();
build() { build() {
Column() { Column() {
Web({ src:'www.example.com', controller:this.controller }) Web({ src: 'www.example.com', controller: this.controller })
.geolocationAccess(true) .geolocationAccess(true)
} }
} }
...@@ -409,11 +409,11 @@ cacheMode(cacheMode: CacheMode) ...@@ -409,11 +409,11 @@ cacheMode(cacheMode: CacheMode)
@Entry @Entry
@Component @Component
struct WebComponent { struct WebComponent {
controller:WebController = new WebController(); controller: WebController = new WebController();
@State mode:CacheMode = CacheMode.None; @State mode: CacheMode = CacheMode.None;
build() { build() {
Column() { Column() {
Web({ src:'www.example.com', controller:this.controller }) Web({ src: 'www.example.com', controller: this.controller })
.cacheMode(this.mode) .cacheMode(this.mode)
} }
} }
...@@ -437,11 +437,11 @@ textZoomRatio(textZoomRatio: number) ...@@ -437,11 +437,11 @@ textZoomRatio(textZoomRatio: number)
@Entry @Entry
@Component @Component
struct WebComponent { struct WebComponent {
controller:WebController = new WebController(); controller: WebController = new WebController();
@State atio:number = 150; @State atio: number = 150;
build() { build() {
Column() { Column() {
Web({ src:'www.example.com', controller:this.controller }) Web({ src: 'www.example.com', controller: this.controller })
.textZoomRatio(this.atio) .textZoomRatio(this.atio)
} }
} }
...@@ -465,11 +465,11 @@ userAgent(userAgent: string) ...@@ -465,11 +465,11 @@ userAgent(userAgent: string)
@Entry @Entry
@Component @Component
struct WebComponent { struct WebComponent {
controller:WebController = new WebController(); controller: WebController = new WebController();
@State userAgent:string = 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.71 Safari/537.36'; @State userAgent:string = 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.71 Safari/537.36';
build() { build() {
Column() { Column() {
Web({ src:'www.example.com', controller:this.controller }) Web({ src: 'www.example.com', controller: this.controller })
.userAgent(this.userAgent) .userAgent(this.userAgent)
} }
} }
...@@ -508,10 +508,10 @@ onAlert(callback: (event?: { url: string; message: string; result: JsResult }) = ...@@ -508,10 +508,10 @@ onAlert(callback: (event?: { url: string; message: string; result: JsResult }) =
@Entry @Entry
@Component @Component
struct WebComponent { struct WebComponent {
controller:WebController = new WebController(); controller: WebController = new WebController();
build() { build() {
Column() { Column() {
Web({ src:'www.example.com', controller:this.controller }) Web({ src: 'www.example.com', controller: this.controller })
.onAlert((event) => { .onAlert((event) => {
AlertDialog.show({ AlertDialog.show({
title: 'title', title: 'title',
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册