Skip to content

Commit

Permalink
feat: beautify welcome code
Browse files Browse the repository at this point in the history
  • Loading branch information
nemo-shen committed Jan 1, 2024
1 parent 856da91 commit 9befbc3
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 6 deletions.
30 changes: 25 additions & 5 deletions src/template/App.vue
Original file line number Diff line number Diff line change
@@ -1,10 +1,30 @@
<script setup lang="ts">
import { ref } from "vue";
import { ref } from 'vue';
const msg = ref("Hello World!");
const msg = ref('Hello World!');
</script>
<template>
<h1>{{ msg }}</h1>
<van-field v-model="msg" />
<van-button>Click</van-button>
<h1 style="text-align: center;">{{ msg }}</h1>
<van-form>
<van-cell-group inset>
<van-field
name="用户名"
label="用户名"
placeholder="用户名"
:rules="[{ required: true, message: '请填写用户名' }]"
/>
<van-field
type="password"
name="密码"
label="密码"
placeholder="密码"
:rules="[{ required: true, message: '请填写密码' }]"
/>
</van-cell-group>
<div style="margin: 16px">
<van-button round block type="primary" native-type="submit">
提交
</van-button>
</div>
</van-form>
</template>
1 change: 0 additions & 1 deletion src/template/main.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import App from './App.vue'
import { setupVant } from "./vant";
console.log('nemo setup ok')
setupVant();
</script>

Expand Down

0 comments on commit 9befbc3

Please sign in to comment.