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 {