fix: display settings button in Stack widgets (#7563)

#### What type of PR is this?

/area ui
/kind bug
/milestone 2.21.x

#### What this PR does / why we need it:

Fix the issue where widgets in Stack Widgets cannot display the settings button

<img width="813" alt="image" src="https://github.com/user-attachments/assets/15a13703-99f2-49af-aa3e-831f8271c3a2" />

#### Which issue(s) this PR fixes:

Fixes #7562 

#### Special notes for your reviewer:

#### Does this PR introduce a user-facing change?

```release-note
修复堆叠部件中的部件可能无法显示设置按钮的问题。
```
pull/7568/head
Ryan Wang 2025-06-17 11:22:53 +08:00 committed by GitHub
parent b3ccb4812b
commit 8fd23e2c68
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -59,7 +59,7 @@ function handleSaveConfig(config: Record<string, unknown>) {
>
<slot name="actions" />
<ActionButton
v-if="widgetDefinition?.configFormKitSchema?.length"
v-if="widgetDefinition?.configFormKitSchema"
class="bg-black"
@click="configModalVisible = true"
>