Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions ui/src/components/global/mk-dropdown/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ defineExpose({ handleOpen, handleClose })
v-if="!hideWhenEmpty || hasDropdownContent(slots.dropdown?.())"
class="mk-dropdown"
ref="dropdownRef"
:popper-options="popperOptions"
:persistent="persistent && hasOpened"
v-bind="$attrs"
@visible-change="handleVisibleChange"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import { computed } from 'vue'
import type { CSSProperties } from 'vue'
import type { ApplicationDisplaySetting } from '@/api/types'
import defaultFloatIconUrl from '/MaxKB.gif?url'

defineOptions({ name: 'DisplaySettingPreview' })

Expand Down Expand Up @@ -79,6 +80,6 @@ const previewHeaderStyle = computed<CSSProperties>(() => ({
</div>
</div>
<!-- 浮窗图标 -->
<img :src="previewImages.float_icon || './MaxKB.gif'" alt="" class="size-8 shrink-0 object-contain" />
<img :src="previewImages.float_icon || defaultFloatIconUrl" alt="" class="size-8 shrink-0 object-contain" />
</div>
</template>
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ function handleRefresh() {
placement="bottom-end"
persistent
:class="{ 'w-full': $slots.trigger }"
:popper-options="fitTriggerWidth ? { modifiers: [{ name: 'computeStyles', options: { roundOffsets: false } }] } : undefined"
:popper-style="dropdownStyle"
:popper-class="popperClass"
@visible-change="handleVisibleChange"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ function handleImportCreate(file: UploadFile) {
placement="bottom-end"
persistent
:class="{ 'w-full': $slots.trigger }"
:popper-options="fitTriggerWidth ? { modifiers: [{ name: 'computeStyles', options: { roundOffsets: false } }] } : undefined"
:popper-style="dropdownStyle"
:popper-class="popperClass"
@visible-change="handleVisibleChange"
Expand Down
1 change: 1 addition & 0 deletions ui/src/views/tool/components/ButtonCreateTool.vue
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ function handleRefresh() {
placement="bottom-end"
persistent
:class="{ 'w-full': $slots.trigger }"
:popper-options="fitTriggerWidth ? { modifiers: [{ name: 'computeStyles', options: { roundOffsets: false } }] } : undefined"
:popper-style="dropdownStyle"
:popper-class="popperClass"
@visible-change="handleVisibleChange"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ const showContent = computed(() => isSuccess.value || props.showContentOnError)
<slot name="header" />
</template>
<!-- 内容区独立交互,避免链接、表单和嵌套详情点击时收起外层卡片。 -->
<div v-if="show" class="mt-4 cursor-auto space-y-2" @click.stop>
<div v-if="show" class="mt-4 cursor-auto space-y-2 wrap-anywhere" @click.stop>
<slot v-if="showContent" />
<div v-else class="mk-gray-card-sm">
<h6 class="mb-2">错误日志</h6>
Expand Down
Loading