From 8d2e798f8980e59004b4ef316e4507eff6e41c7c Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E5=B0=B1=E7=9C=A0=E5=84=80=E5=BC=8F?= <854085467@qq.com>
Date: Mon, 21 Mar 2022 23:13:30 +0800
Subject: [PATCH] =?UTF-8?q?style:=20=E4=BF=AE=E6=94=B9=20=E9=80=9A?=
=?UTF-8?q?=E5=91=8A=E6=A0=8F=20=E4=BB=A3=E7=A0=81?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
example/docs/zh-CN/components/noticeBar.md | 1 -
src/component/noticeBar/index.vue | 51 ++--------------------
src/component/skeleton/index.vue | 2 +-
3 files changed, 5 insertions(+), 49 deletions(-)
diff --git a/example/docs/zh-CN/components/noticeBar.md b/example/docs/zh-CN/components/noticeBar.md
index e7a2b48a..b0c301c7 100644
--- a/example/docs/zh-CN/components/noticeBar.md
+++ b/example/docs/zh-CN/components/noticeBar.md
@@ -53,7 +53,6 @@ export default {
:::
-
::: title 允许关闭
:::
diff --git a/src/component/noticeBar/index.vue b/src/component/noticeBar/index.vue
index ec030684..33e41cf6 100644
--- a/src/component/noticeBar/index.vue
+++ b/src/component/noticeBar/index.vue
@@ -18,14 +18,6 @@
>
{{ text }}
-
-
-
- {{ item }}
-
-
-
-
"",
},
- // 通知文本内容
text: {
type: String,
default: () => "",
},
- // 多条通知文本内容
- textlist: {
- type: Array,
- default: [],
- },
+ textlist: {
+ type: Array,
+ default: [],
+ },
// 通知文本颜色
color: {
type: String,
@@ -172,36 +161,6 @@ export default defineComponent({
emit("link");
}
};
- //设置轮播默认内容和自动播放
- const active = ref(0)
- if(props.scrollable == true){
- console.log(props.speed)
- let gdsd
- if(props.speed == 100){
- gdsd = 2000
- }else{
- gdsd = props.speed
- }
- nextTick(() => {
- let pe = document.querySelector(".layui-carousel")
- let i = 0
- setInterval(() => {
- i = ++i
- if (pe) {
- let lbsl = pe.children[0].children.length
- console.log(pe.children[0])
- if (i < lbsl) {
- pe.children[0].children[i - 1].classList.remove("layui-this");
- pe.children[0].children[i].classList.add("layui-this");
- } else if (i == lbsl) {
- pe.children[0].children[lbsl - 1].classList.remove("layui-this");
- pe.children[0].children[0].classList.add("layui-this");
- i = 0
- }
- }
- }, gdsd);
- })
- }
// 页面加载时
onMounted(() => {
if (props.scrollable) return false;
@@ -213,7 +172,6 @@ export default defineComponent({
noticeBarTextRef,
onRightIconClick,
...toRefs(state),
- active
};
},
});
@@ -268,5 +226,4 @@ export default defineComponent({
.notice-bar .notice-bar-warp .notice-bar-warp-right-icon:hover {
cursor: pointer;
}
-
diff --git a/src/component/skeleton/index.vue b/src/component/skeleton/index.vue
index 290f8ba5..0093f6b2 100644
--- a/src/component/skeleton/index.vue
+++ b/src/component/skeleton/index.vue
@@ -5,9 +5,9 @@ export default {