搜索结果列表页面开发

This commit is contained in:
付民康
2025-03-12 18:41:20 +08:00
commit 7cebe8fc00
739 changed files with 88149 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
# OptionLink
### 说明
- 基于Link和d-option的封装
- 已全局声明直接使用同Link
``` html
<OptionLink :to="xxxx">
xxxxxx
</OptionLink>
```
### Props
同Link
### Emits
同Link
### Slots
同Link

View File

@@ -0,0 +1,41 @@
<template>
<li class="devui-select__item g-option-link">
<GLink v-bind="$props">
<slot />
</GLink>
</li>
</template>
<script setup lang="ts">
import { GLink as IProp } from '@/components/GLink/type';
defineProps<IProp>();
</script>
<style lang="scss" scoped>
@import 'devui-theme/styles-var/devui-var.scss';
.g-option-link {
border-radius: 4px;
padding: 0 8px;
line-height: 32px;
min-height: unset;
&.disabled {
background-color: unset;
}
:deep(a.g-link) {
display: flex;
align-items: center;
gap: 10px;
text-overflow: ellipsis;
white-space: nowrap;
overflow: hidden;
&:hover {
color: unset;
}
.devui-avatar {
line-height: normal; // 修复头像变形
}
}
}
</style>