You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
811 B
Vue
27 lines
811 B
Vue
<template>
|
|
<div
|
|
class="flex items-center text-12px"
|
|
:style="{ backgroundColor: property.backgroundColor, color: property.textColor }"
|
|
>
|
|
<el-image :src="property.iconUrl" class="h-18px" />
|
|
<el-divider direction="vertical" />
|
|
<el-carousel height="24px" direction="vertical" :autoplay="true" class="flex-1 p-r-8px">
|
|
<el-carousel-item v-for="(item, index) in property.contents" :key="index">
|
|
<div class="h-24px truncate leading-24px">{{ item.text }}</div>
|
|
</el-carousel-item>
|
|
</el-carousel>
|
|
<Icon icon="ep:arrow-right" />
|
|
</div>
|
|
</template>
|
|
|
|
<script setup lang="ts">
|
|
import { NoticeBarProperty } from './config'
|
|
|
|
/** 公告栏 */
|
|
defineOptions({ name: 'NoticeBar' })
|
|
|
|
defineProps<{ property: NoticeBarProperty }>()
|
|
</script>
|
|
|
|
<style scoped lang="scss"></style>
|