|
21 | 21 | <template #general> |
22 | 22 | <div class="space-y-4"> |
23 | 23 | <Label label="编译前执行的命令"> |
24 | | - <input v-model="pluginConfig.before_compile" |
25 | | - type="text" |
26 | | - placeholder="编译前执行的命令" |
27 | | - class="w-full flex-1 px-3 py-2 border border-gray-300 dark:border-gray-600 rounded-md bg-white dark:bg-gray-700 text-gray-900 dark:text-white focus:outline-none focus:ring-1 focus:ring-blue-500 focus:border-transparent text-sm"/> |
| 24 | + <Input v-model="pluginConfig.before_compile" class="w-full" placeholder="编译前执行的命令"/> |
28 | 25 | </Label> |
29 | 26 |
|
30 | 27 | <Label label="执行的命令"> |
31 | | - <input v-model="pluginConfig.run_command" |
32 | | - type="text" |
33 | | - placeholder="执行的命令" |
34 | | - class="w-full flex-1 px-3 py-2 border border-gray-300 dark:border-gray-600 rounded-md bg-white dark:bg-gray-700 text-gray-900 dark:text-white focus:outline-none focus:ring-1 focus:ring-blue-500 focus:border-transparent text-sm"/> |
| 28 | + <Input v-model="pluginConfig.run_command" class="w-full" placeholder="执行的命令"/> |
35 | 29 | <div class="flex flex-col mx-2 mt-2 space-y-1.5"> |
36 | 30 | <div class="flex text-sm font-medium text-gray-700 dark:text-gray-300 ml-1 space-x-4"> |
37 | 31 | <div class="font-bold">$filename</div> |
|
45 | 39 | </Label> |
46 | 40 |
|
47 | 41 | <Label label="编译完成后执行的命令"> |
48 | | - <input v-model="pluginConfig.after_compile" |
49 | | - type="text" |
50 | | - placeholder="编译完成后执行的命令" |
51 | | - class="w-full flex-1 px-3 py-2 border border-gray-300 dark:border-gray-600 rounded-md bg-white dark:bg-gray-700 text-gray-900 dark:text-white focus:outline-none focus:ring-1 focus:ring-blue-500 focus:border-transparent text-sm"/> |
| 42 | + <Input v-model="pluginConfig.after_compile" class="w-full" placeholder="编译完成后执行的命令"/> |
52 | 43 | </Label> |
53 | 44 |
|
54 | 45 | <Label label="文件后缀名"> |
55 | | - <input v-model="pluginConfig.extension" |
56 | | - type="text" |
57 | | - placeholder="输入文件后缀名" |
58 | | - class="w-full flex-1 px-3 py-2 border border-gray-300 dark:border-gray-600 rounded-md bg-white dark:bg-gray-700 text-gray-900 dark:text-white focus:outline-none focus:ring-1 focus:ring-blue-500 focus:border-transparent text-sm"/> |
| 46 | + <Input v-model="pluginConfig.extension" class="w-full" placeholder="输入文件后缀名"/> |
59 | 47 | </Label> |
60 | 48 | </div> |
61 | 49 | </template> |
62 | 50 |
|
63 | 51 | <template #environment> |
64 | 52 | <Label label="语言环境目录"> |
65 | 53 | <div class="flex gap-2"> |
66 | | - <input v-model="pluginConfig.execute_home" |
67 | | - type="text" |
68 | | - placeholder="选择语言环境目录路径" |
69 | | - class="flex-1 px-3 py-2 border border-gray-300 dark:border-gray-600 rounded-md bg-white dark:bg-gray-700 text-gray-900 dark:text-white focus:outline-none focus:ring-1 focus:ring-blue-500 focus:border-transparent text-sm"/> |
| 54 | + <Input v-model="pluginConfig.execute_home" class="w-full" placeholder="选择语言环境目录路径"/> |
70 | 55 |
|
71 | 56 | <Button type="primary" |
72 | 57 | :icon-only="true" |
@@ -109,6 +94,7 @@ import Button from '../../ui/Button.vue' |
109 | 94 | import Tabs from '../../ui/Tabs.vue' |
110 | 95 | import Number from '../../ui/Number.vue' |
111 | 96 | import Label from '../../ui/Label.vue' |
| 97 | +import Input from '../../ui/Input.vue' |
112 | 98 | import { useLanguageSettings } from '../../composables/useLanguageSettings' |
113 | 99 | import type PluginConfig from '../../types/plugin' |
114 | 100 |
|
|
0 commit comments