1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
| <script lang="ts" setup>
| import { reactive } from 'vue';
|
| import { Select, Switch, Textarea } from 'ant-design-vue';
|
| import Title from '../title/index.vue';
|
| defineOptions({ name: 'AiMusicModeDesc' });
|
| const formData = reactive({
| desc: '',
| pure: false,
| version: '3',
| });
|
| defineExpose({
| formData,
| });
| </script>
|
| <template>
| <div>
| <Title
| title="音乐/歌词说明"
| desc="描述您想要的音乐风格和主题,使用流派和氛围而不是特定的艺术家和歌曲"
| >
| <Textarea
| v-model:value="formData.desc"
| :auto-size="{ minRows: 6, maxRows: 6 }"
| :maxlength="1200"
| :show-count="true"
| placeholder="一首关于糟糕分手的欢快歌曲"
| />
| </Title>
|
| <Title title="纯音乐" class="mt-5" desc="创建一首没有歌词的歌曲">
| <template #extra>
| <Switch v-model:checked="formData.pure" size="small" />
| </template>
| </Title>
|
| <Title
| title="版本"
| desc="描述您想要的音乐风格和主题,使用流派和氛围而不是特定的艺术家和歌曲"
| >
| <Select
| v-model:value="formData.version"
| class="w-full"
| placeholder="请选择"
| >
| <Select.Option
| v-for="item in [
| {
| value: '3',
| label: 'V3',
| },
| {
| value: '2',
| label: 'V2',
| },
| ]"
| :key="item.value"
| :value="item.value"
| >
| {{ item.label }}
| </Select.Option>
| </Select>
| </Title>
| </div>
| </template>
|
|