BUG 27161

This commit is contained in:
aixianling
2022-02-10 18:01:55 +08:00
parent b35bc2a76e
commit 3a334f9f68

View File

@@ -0,0 +1,35 @@
<template>
<swiper class="AiNoticeBar" autoplay vertical circular :interval="2000">
<swiper-item v-for="(item, index) in ops" :key="index" :display-multiple-items="rows" class="noticeItem">
<slot :label="item"/>
</swiper-item>
</swiper>
</template>
<script>
export default {
name: 'AiNoticeBar',
props: {
list: {default: () => []},
rows: {default: 1},
nodeKey: {default: ""}
},
computed: {
ops() {
let {nodeKey} = this
return this.list.map(e => e[nodeKey])
}
}
}
</script>
<style lang="scss" scoped>
.AiNoticeBar {
height: 100%;
.noticeItem {
height: initial !important;
}
}
</style>