style: 对齐拆解设置控件并修复单位换行
This commit is contained in:
1 parent
6bc07b559e
commit
7d8074f90e
5 files changed
+164
-43
No files matched your search
@@ -155,7 +155,7 @@ function exportResult() {
|
||||
</div>
|
||||
<div v-if="project?.episodes.length" class="toolbar-actions">
|
||||
<WorkspaceTools v-model:open="toolsOpen" title="拆解设置与恢复" label="拆解设置与恢复">
|
||||
<section class="panel p-5 lg:p-6">
|
||||
<section class="panel breakdown-settings-panel p-5 lg:p-6">
|
||||
<div class="mb-5 flex flex-wrap items-start justify-between gap-3">
|
||||
<div>
|
||||
<h2 class="flex items-center gap-2 font-semibold"><Layers :size="17" />拆解设置</h2>
|
||||
@@ -168,38 +168,46 @@ function exportResult() {
|
||||
<NTag size="small" :bordered="false">来源:正式剧集</NTag>
|
||||
</div>
|
||||
<div class="breakdown-config">
|
||||
<div>
|
||||
<div class="breakdown-group-field">
|
||||
<label class="field-label" for="group-size">每组集数</label>
|
||||
<div class="flex items-center gap-3">
|
||||
<div class="breakdown-group-input">
|
||||
<NInputNumber
|
||||
:disabled="operation.pending"
|
||||
:input-props="{ id: 'group-size' }"
|
||||
class="w-24"
|
||||
class="breakdown-group-number"
|
||||
:value="typeof groupSize === 'number' ? groupSize : null"
|
||||
@update:value="groupSize = $event ?? 0"
|
||||
:min="1"
|
||||
:step="1"
|
||||
></NInputNumber
|
||||
><span class="text-sm text-muted">集 / 组</span>
|
||||
><span class="breakdown-group-unit">集 / 组</span>
|
||||
</div>
|
||||
</div>
|
||||
<fieldset class="flex flex-wrap gap-5 border-0 p-0">
|
||||
<legend class="field-label mb-3">抽取模块</legend>
|
||||
<NCheckbox
|
||||
:checked="modules.includes(option.value)"
|
||||
:disabled="operation.pending"
|
||||
:aria-label="option.label"
|
||||
@update:checked="toggleModule(option.value, $event)"
|
||||
v-for="option in moduleOptions"
|
||||
:key="option.value"
|
||||
class="flex cursor-pointer items-start gap-2.5"
|
||||
><span
|
||||
><span class="block text-sm font-medium">{{ option.label }}</span
|
||||
><span class="mt-1 block text-[11px] text-muted">{{
|
||||
option.description
|
||||
}}</span></span
|
||||
></NCheckbox
|
||||
>
|
||||
<fieldset class="breakdown-modules-field">
|
||||
<legend class="field-label">抽取模块</legend>
|
||||
<div class="breakdown-module-options">
|
||||
<div
|
||||
v-for="option in moduleOptions"
|
||||
:key="option.value"
|
||||
class="breakdown-module-option"
|
||||
>
|
||||
<NCheckbox
|
||||
:checked="modules.includes(option.value)"
|
||||
:disabled="operation.pending"
|
||||
:aria-label="option.label"
|
||||
:aria-describedby="`breakdown-module-${option.value}-help`"
|
||||
@update:checked="toggleModule(option.value, $event)"
|
||||
class="control-row-checkbox"
|
||||
><span class="text-sm font-medium">{{ option.label }}</span></NCheckbox
|
||||
>
|
||||
<p
|
||||
:id="`breakdown-module-${option.value}-help`"
|
||||
class="breakdown-module-description"
|
||||
>
|
||||
{{ option.description }}
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</fieldset>
|
||||
<NButton
|
||||
:disabled="
|
||||
@@ -210,7 +218,7 @@ function exportResult() {
|
||||
!!error
|
||||
"
|
||||
@click="loadPreview"
|
||||
class="self-end"
|
||||
class="breakdown-preview-button"
|
||||
><LoaderCircle v-if="previewBusy" :size="14" class="animate-spin" />预览分组
|
||||
</NButton>
|
||||
</div>
|
||||
|
||||
Reference in new issue
Block a user