diff --git a/src/views/Home/Index.vue b/src/views/Home/Index.vue
index 393a1b2..f1aca18 100644
--- a/src/views/Home/Index.vue
+++ b/src/views/Home/Index.vue
@@ -18,7 +18,7 @@
-
+
@@ -26,7 +26,7 @@
- {{filteredList[pageNo-1].imgName}}
+ {{filteredList[pageNo-1].imgName}}
@@ -333,6 +333,10 @@ const selectDate = (val: CalendarDateType) => {
if (!calendar.value) return
calendar.value.selectDate(val)
}
+const handleCarouselChange = async (currentIndex:number) => {
+ pageNo.value=currentIndex+1
+
+}
let tableData = reactive([])
const getTableData = async () => {
const data = [
@@ -523,4 +527,11 @@ onMounted(() => {
align-items: center; /* 垂直居中 */
justify-content: center; /* 水平居中 */
}
+.ellipsis {
+ display: inline-block; /* 需要是块状元素,span默认是行内元素,所以使用inline-block */
+ max-width: 400px; /* 设置最大宽度,超出部分将显示省略号 */
+ white-space: nowrap; /* 禁止换行 */
+ overflow: hidden; /* 超出容器的内容隐藏 */
+ text-overflow: ellipsis; /* 超出的内容以省略号显示 */
+}