From 0fda619b430bc0f873c0e5019e16bb6f1a2a8f70 Mon Sep 17 00:00:00 2001 From: myh Date: Tue, 26 Dec 2023 20:32:01 +0800 Subject: [PATCH] format code --- editorconfig => .editorconfig | 0 src/app/app.config.ts | 2 +- src/app/app.routes.ts | 4 +-- src/app/body/body.component.html | 12 +++---- src/app/body/body.component.scss | 34 +++++++++---------- .../carousel-pause.component.html | 2 +- src/index.html | 2 +- src/styles.scss | 21 +++++++----- 8 files changed, 40 insertions(+), 37 deletions(-) rename editorconfig => .editorconfig (100%) diff --git a/editorconfig b/.editorconfig similarity index 100% rename from editorconfig rename to .editorconfig diff --git a/src/app/app.config.ts b/src/app/app.config.ts index dc798de..2c98b9d 100644 --- a/src/app/app.config.ts +++ b/src/app/app.config.ts @@ -2,7 +2,7 @@ import {ApplicationConfig} from '@angular/core'; import {provideRouter} from '@angular/router'; import {routes} from './app.routes'; -import { provideAnimations } from '@angular/platform-browser/animations'; +import {provideAnimations} from '@angular/platform-browser/animations'; export const appConfig: ApplicationConfig = { providers: [provideRouter(routes), provideAnimations()] diff --git a/src/app/app.routes.ts b/src/app/app.routes.ts index f103201..8b5e5fb 100644 --- a/src/app/app.routes.ts +++ b/src/app/app.routes.ts @@ -1,5 +1,3 @@ import {Routes} from '@angular/router'; -export const routes: Routes = [ - -]; +export const routes: Routes = []; diff --git a/src/app/body/body.component.html b/src/app/body/body.component.html index 9a791b1..89e62f8 100644 --- a/src/app/body/body.component.html +++ b/src/app/body/body.component.html @@ -19,7 +19,7 @@
  • 就把电话拔下来给他了
  • - +

    @@ -35,7 +35,7 @@
  • 他按键的速度非常快,但是只按0,1两个键
  • - +

    @@ -45,7 +45,7 @@

    - +
    我渐渐的有些困,我问他这东西要搞多久 @@ -54,7 +54,7 @@
    - +
    他说要几个小时 @@ -63,7 +63,7 @@
    - +
    我给他倒了杯茶,就一个人去隔壁睡觉了 @@ -75,7 +75,7 @@
    - +

    diff --git a/src/app/body/body.component.scss b/src/app/body/body.component.scss index b1c3dab..4064db1 100644 --- a/src/app/body/body.component.scss +++ b/src/app/body/body.component.scss @@ -3,28 +3,28 @@ @tailwind components; .li-img li { - list-style: none; - float: left; - width: 25%; /*四列图片排列*/ - height: 175px; - overflow: hidden; + list-style: none; + float: left; + width: 25%; /*四列图片排列*/ + height: 175px; + overflow: hidden; } .li-img li img { - position: relative; - width: 100%; - height: auto; - top: 50%; /*li高度的一半*/ - transform: translateY(-50%); /*再向上移动自身的50%*/ + position: relative; + width: 100%; + height: auto; + top: 50%; /*li高度的一半*/ + transform: translateY(-50%); /*再向上移动自身的50%*/ } /*清除浮动*/ .clearfix:after { - position: relative; - content: ''; - display: block; - width: 0; - height: 0; - visibility: hidden; - clear: both; + position: relative; + content: ''; + display: block; + width: 0; + height: 0; + visibility: hidden; + clear: both; } \ No newline at end of file diff --git a/src/app/carousel-pause/carousel-pause.component.html b/src/app/carousel-pause/carousel-pause.component.html index a274105..1a8efa3 100644 --- a/src/app/carousel-pause/carousel-pause.component.html +++ b/src/app/carousel-pause/carousel-pause.component.html @@ -5,7 +5,7 @@ [pauseOnFocus]="pauseOnFocus" (slide)="onSlide($event)" > - @for (img of images;track img;let i = $index) { + @for (img of images; track img; let i = $index) {