Skip to content

Commit 08ff33a

Browse files
committed
更新
1 parent 1e5e892 commit 08ff33a

23 files changed

+1716
-37
lines changed

.gitignore

Lines changed: 1 addition & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1 @@
1-
# Logs
2-
logs
3-
*.log
4-
npm-debug.log*
5-
yarn-debug.log*
6-
yarn-error.log*
7-
pnpm-debug.log*
8-
lerna-debug.log*
9-
10-
node_modules
11-
dist
12-
dist-ssr
13-
*.local
14-
15-
# Editor directories and files
16-
.vscode/*
17-
!.vscode/extensions.json
18-
.idea
19-
.DS_Store
20-
*.suo
21-
*.ntvs*
22-
*.njsproj
23-
*.sln
24-
*.sw?
1+
/node_modules

.vscode/extensions.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"recommendations": ["johnsoncodehk.volar"]
3+
}

App.vue

Lines changed: 134 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,134 @@
1+
2+
3+
<template>
4+
<div class="main">
5+
<ElRow :gutter="0">
6+
<ElCol :xs="24" :sm="24" :md="12" :lg="8" :xl="8">
7+
<ElForm
8+
label-position="top"
9+
label-width="100px"
10+
style="max-width: 460px"
11+
>
12+
<ElFormItem label="类型" :hide-required-asterisk="true">
13+
<ElSelect
14+
v-model="type"
15+
class="m-2"
16+
placeholder="Select"
17+
size="large"
18+
>
19+
<ElOption
20+
v-for="item in typeOptions"
21+
:key="item.value"
22+
:label="item.label"
23+
:value="item.value"
24+
>
25+
</ElOption>
26+
</ElSelect>
27+
</ElFormItem>
28+
29+
<ElFormItem label="范围">
30+
<ElInput v-model="scope"></ElInput>
31+
</ElFormItem>
32+
33+
<ElFormItem label="简短描述" :hide-required-asterisk="true">
34+
<ElInput v-model="subject"></ElInput>
35+
</ElFormItem>
36+
37+
<ElFormItem label="内容">
38+
<ElInput v-model="body" type="textarea"></ElInput>
39+
</ElFormItem>
40+
41+
<!-- <ElFormItem label="最后">
42+
<ElInput v-model="footer" type="textarea"></ElInput>
43+
</ElFormItem> -->
44+
</ElForm>
45+
<ElButton type="primary">生成</ElButton>
46+
<div></div>
47+
</ElCol>
48+
</ElRow>
49+
</div>
50+
</template>
51+
<script setup lang="ts">
52+
import { ref } from "vue";
53+
import {
54+
ElRow,
55+
ElCol,
56+
ElForm,
57+
ElFormItem,
58+
ElSelect,
59+
ElOption,
60+
ElButton,
61+
ElInput,
62+
} from "element-plus";
63+
64+
const typeOptions = ref([
65+
{
66+
value: "feat",
67+
label: "新功能",
68+
},
69+
{
70+
value: "fix",
71+
label: "修补bug",
72+
},
73+
{
74+
value: "docs",
75+
label: "文档",
76+
},
77+
{
78+
value: "style",
79+
label: "格式",
80+
},
81+
{
82+
value: "refactor",
83+
label: "重构",
84+
},
85+
{
86+
value: "perf",
87+
label: "性能 体验优化",
88+
},
89+
{
90+
value: "test",
91+
label: "增加 更新测试",
92+
},
93+
{
94+
value: "build",
95+
label: "构建变动",
96+
},
97+
{
98+
value: "ci",
99+
label: "继承变动",
100+
},
101+
{
102+
value: "revert",
103+
label: "回滚提交",
104+
},
105+
]);
106+
// 类型
107+
const type = ref("feat");
108+
// 范围
109+
const scope = ref("");
110+
// 简短描述
111+
const subject = ref("");
112+
113+
// body
114+
const body = ref("");
115+
116+
// 最后
117+
const footer = ref("");
118+
</script>
119+
<style lang="less" scoped>
120+
*,
121+
html,
122+
body {
123+
padding: 0;
124+
margin: 0;
125+
}
126+
.main {
127+
}
128+
</style>
129+
<style>
130+
#app {
131+
padding: 0;
132+
margin: 0;
133+
}
134+
</style>

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Vue 3 + Vite
2+
3+
This template should help get you started developing with Vue 3 in Vite. The template uses Vue 3 `<script setup>` SFCs, check out the [script setup docs](https://v3.vuejs.org/api/sfc-script-setup.html#sfc-script-setup) to learn more.
4+
5+
## Recommended IDE Setup
6+
7+
- [VSCode](https://code.visualstudio.com/) + [Volar](https://marketplace.visualstudio.com/items?itemName=johnsoncodehk.volar)

dist/assets/index.29d2518c.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/assets/index.3477520e.css

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)