mirror of
https://github.com/jxxghp/MoviePilot-Frontend.git
synced 2026-09-06 16:16:42 +08:00
添加PluginDataDialog组件的show_switch属性
This commit is contained in:
@@ -10,6 +10,10 @@ const props = defineProps({
|
|||||||
plugin: {
|
plugin: {
|
||||||
type: Object as PropType<Plugin>,
|
type: Object as PropType<Plugin>,
|
||||||
},
|
},
|
||||||
|
show_switch: {
|
||||||
|
type: Boolean,
|
||||||
|
default: true,
|
||||||
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
// 定义事件
|
// 定义事件
|
||||||
@@ -130,6 +134,7 @@ onMounted(() => {
|
|||||||
</div>
|
</div>
|
||||||
</VCardText>
|
</VCardText>
|
||||||
<VFab
|
<VFab
|
||||||
|
v-if="show_switch"
|
||||||
icon="mdi-cog"
|
icon="mdi-cog"
|
||||||
location="bottom"
|
location="bottom"
|
||||||
size="x-large"
|
size="x-large"
|
||||||
|
|||||||
@@ -381,7 +381,7 @@ onMounted(() => {
|
|||||||
class="pull-indicator"
|
class="pull-indicator"
|
||||||
:style="{
|
:style="{
|
||||||
opacity: indicatorOpacity,
|
opacity: indicatorOpacity,
|
||||||
transform: `translate(-50%, ${Math.min((pullDistance - PULL_CONFIG.SHOW_INDICATOR) * 0.5, 40)}px)`,
|
transform: `translate(-50%, ${Math.min(20 + pullDistance - PULL_CONFIG.SHOW_INDICATOR, 50)}px)`,
|
||||||
}"
|
}"
|
||||||
>
|
>
|
||||||
<div
|
<div
|
||||||
|
|||||||
@@ -475,6 +475,7 @@ function handleBackdropClick(event: MouseEvent) {
|
|||||||
v-if="showPluginDataDialog && currentPlugin"
|
v-if="showPluginDataDialog && currentPlugin"
|
||||||
v-model="showPluginDataDialog"
|
v-model="showPluginDataDialog"
|
||||||
:plugin="currentPlugin"
|
:plugin="currentPlugin"
|
||||||
|
:show_switch="false"
|
||||||
@close="handleClosePluginDataDialog"
|
@close="handleClosePluginDataDialog"
|
||||||
/>
|
/>
|
||||||
</template>
|
</template>
|
||||||
@@ -580,7 +581,6 @@ function handleBackdropClick(event: MouseEvent) {
|
|||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
gap: 12px;
|
gap: 12px;
|
||||||
margin-block: 0 16px;
|
|
||||||
margin-inline: 0;
|
margin-inline: 0;
|
||||||
|
|
||||||
.section-title {
|
.section-title {
|
||||||
@@ -608,7 +608,7 @@ function handleBackdropClick(event: MouseEvent) {
|
|||||||
|
|
||||||
.all-plugins-grid {
|
.all-plugins-grid {
|
||||||
display: grid;
|
display: grid;
|
||||||
gap: 8px;
|
gap: 4px;
|
||||||
grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
|
grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user