diff --git a/package/component/src/component/noticeBar/index.vue b/package/component/src/component/noticeBar/index.vue index c61b73fe..0e50a4cd 100644 --- a/package/component/src/component/noticeBar/index.vue +++ b/package/component/src/component/noticeBar/index.vue @@ -169,7 +169,6 @@ onMounted(() => { .layui-notice-bar { padding: 0 15px; - width: 100%; border-radius: 4px; } .layui-notice-bar .layui-notice-bar-warp { @@ -186,6 +185,7 @@ onMounted(() => { overflow: hidden; position: relative; } + .layui-notice-bar .layui-notice-bar-warp .layui-notice-bar-warp-text-box diff --git a/package/document-component/src/document/zh-CN/components/noticeBar.md b/package/document-component/src/document/zh-CN/components/noticeBar.md index da566021..7777fa9c 100644 --- a/package/document-component/src/document/zh-CN/components/noticeBar.md +++ b/package/document-component/src/document/zh-CN/components/noticeBar.md @@ -13,7 +13,7 @@ ::: demo