Selaa lähdekoodia

format: files

Burt 2 vuotta sitten
vanhempi
commit
c4f7422ecb
3 muutettua tiedostoa jossa 56 lisäystä ja 56 poistoa
  1. 7 7
      src/App.vue
  2. 8 8
      src/main.ts
  3. 41 41
      src/pages/index/index.vue

+ 7 - 7
src/App.vue

@@ -1,13 +1,13 @@
 <script setup lang="ts">
-import { onLaunch, onShow, onHide } from "@dcloudio/uni-app";
+import { onLaunch, onShow, onHide } from '@dcloudio/uni-app'
 onLaunch(() => {
-  console.log("App Launch");
-});
+  console.log('App Launch')
+})
 onShow(() => {
-  console.log("App Show");
-});
+  console.log('App Show')
+})
 onHide(() => {
-  console.log("App Hide");
-});
+  console.log('App Hide')
+})
 </script>
 <style></style>

+ 8 - 8
src/main.ts

@@ -1,8 +1,8 @@
-import { createSSRApp } from "vue";
-import App from "./App.vue";
-export function createApp() {
-  const app = createSSRApp(App);
-  return {
-    app,
-  };
-}
+import { createSSRApp } from 'vue'
+import App from './App.vue'
+export function createApp() {
+  const app = createSSRApp(App)
+  return {
+    app,
+  }
+}

+ 41 - 41
src/pages/index/index.vue

@@ -1,41 +1,41 @@
-<template>
-  <view class="content">
-    <image class="logo" src="/static/logo.png" />
-    <view class="text-area">
-      <text class="title">{{ title }}</text>
-    </view>
-  </view>
-</template>
-
-<script setup lang="ts">
-import { ref } from 'vue'
-const title = ref('Hello')
-</script>
-
-<style>
-.content {
-  display: flex;
-  flex-direction: column;
-  align-items: center;
-  justify-content: center;
-}
-
-.logo {
-  height: 200rpx;
-  width: 200rpx;
-  margin-top: 200rpx;
-  margin-left: auto;
-  margin-right: auto;
-  margin-bottom: 50rpx;
-}
-
-.text-area {
-  display: flex;
-  justify-content: center;
-}
-
-.title {
-  font-size: 36rpx;
-  color: #8f8f94;
-}
-</style>
+<template>
+  <view class="content">
+    <image class="logo" src="/static/logo.png" />
+    <view class="text-area">
+      <text class="title">{{ title }}</text>
+    </view>
+  </view>
+</template>
+
+<script setup lang="ts">
+import { ref } from 'vue'
+const title = ref('Hello')
+</script>
+
+<style>
+.content {
+  display: flex;
+  flex-direction: column;
+  align-items: center;
+  justify-content: center;
+}
+
+.logo {
+  height: 200rpx;
+  width: 200rpx;
+  margin-top: 200rpx;
+  margin-left: auto;
+  margin-right: auto;
+  margin-bottom: 50rpx;
+}
+
+.text-area {
+  display: flex;
+  justify-content: center;
+}
+
+.title {
+  font-size: 36rpx;
+  color: #8f8f94;
+}
+</style>