feat: add disableFirmwareSelect prop to EspFlasher
This commit is contained in:
parent
f7fbf57095
commit
0e2f8c4828
|
|
@ -50,6 +50,7 @@ const props = defineProps({
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
isDark: Boolean,
|
isDark: Boolean,
|
||||||
|
disableFirmwareSelect: { type: Boolean, default: false },
|
||||||
});
|
});
|
||||||
|
|
||||||
// ── State ──────────────────────────────────────────────────────────
|
// ── State ──────────────────────────────────────────────────────────
|
||||||
|
|
@ -485,11 +486,11 @@ async function reset() {
|
||||||
<div v-show="serialSupported">
|
<div v-show="serialSupported">
|
||||||
<el-tabs>
|
<el-tabs>
|
||||||
<el-tab-pane label="烧录" :disabled="consoleStarted">
|
<el-tab-pane label="烧录" :disabled="consoleStarted">
|
||||||
<el-alert v-if="imageOptions.length === 0" type="warning" class="mb-4" show-icon :closable="false">
|
<el-alert v-if="imageOptions.length === 0 && !disableFirmwareSelect" type="warning" class="mb-4" show-icon :closable="false">
|
||||||
未配置固件选项,无法烧录。
|
未配置固件选项,无法烧录。
|
||||||
</el-alert>
|
</el-alert>
|
||||||
<el-form label-width="auto">
|
<el-form label-width="auto">
|
||||||
<el-form-item v-if="imageOptions.length > 1" label="固件">
|
<el-form-item v-if="imageOptions.length > 1 && !disableFirmwareSelect" label="固件">
|
||||||
<client-only>
|
<client-only>
|
||||||
<el-select
|
<el-select
|
||||||
v-model="imageSelect"
|
v-model="imageSelect"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue