fix: 添加coach参数类型注解
This commit is contained in:
parent
1950ee0a3c
commit
8df9827367
5 changed files with 120 additions and 23 deletions
44
src/views/AddCoachView.vue
Normal file
44
src/views/AddCoachView.vue
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
<script setup>
|
||||
import { reactive } from 'vue'
|
||||
const coach = reactive({
|
||||
name: " ",
|
||||
sex: 1,
|
||||
//avater:""
|
||||
remark: ""
|
||||
})
|
||||
|
||||
</script>
|
||||
|
||||
|
||||
<template>
|
||||
<el-form label-width="100px" label-position="left">
|
||||
<h2 class="title">——新增教练——</h2>
|
||||
<el-form-item label="教练名字">
|
||||
<el-input placeholder="请输入.." v-model.trim="coach.name"></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item label="性别:">
|
||||
<el-radio-group v-model="coach.sex">
|
||||
<el-radio :value="1">男</el-radio>
|
||||
<el-radio :value="2">女</el-radio>
|
||||
</el-radio-group>
|
||||
</el-form-item>
|
||||
<el-form-item label="备注">
|
||||
<el-input v-model.trim="coach.remark" type="textarea" :rows="5" placeholder="请输入教练备注..."></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item>
|
||||
<el-button type="primary">确定</el-button>
|
||||
<el-button>取消</el-button>
|
||||
</el-form-item>
|
||||
|
||||
|
||||
</el-form>
|
||||
</template>
|
||||
|
||||
|
||||
<style scoped>
|
||||
.title {
|
||||
text-align: center;
|
||||
margin-bottom: 30px;
|
||||
color: #333;
|
||||
}
|
||||
</style>
|
||||
Loading…
Add table
Add a link
Reference in a new issue