添加PluginDataDialog组件的show_switch属性

This commit is contained in:
jxxghp
2025-07-02 21:30:44 +08:00
parent a06cf69d7a
commit 3892b0ed05
3 changed files with 8 additions and 3 deletions

View File

@@ -10,6 +10,10 @@ const props = defineProps({
plugin: {
type: Object as PropType<Plugin>,
},
show_switch: {
type: Boolean,
default: true,
},
})
// 定义事件
@@ -130,6 +134,7 @@ onMounted(() => {
</div>
</VCardText>
<VFab
v-if="show_switch"
icon="mdi-cog"
location="bottom"
size="x-large"

View File

@@ -381,7 +381,7 @@ onMounted(() => {
class="pull-indicator"
:style="{
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

View File

@@ -475,6 +475,7 @@ function handleBackdropClick(event: MouseEvent) {
v-if="showPluginDataDialog && currentPlugin"
v-model="showPluginDataDialog"
:plugin="currentPlugin"
:show_switch="false"
@close="handleClosePluginDataDialog"
/>
</template>
@@ -580,7 +581,6 @@ function handleBackdropClick(event: MouseEvent) {
display: flex;
align-items: center;
gap: 12px;
margin-block: 0 16px;
margin-inline: 0;
.section-title {
@@ -608,7 +608,7 @@ function handleBackdropClick(event: MouseEvent) {
.all-plugins-grid {
display: grid;
gap: 8px;
gap: 4px;
grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
}