diff --git a/package/component/src/component/table/index.less b/package/component/src/component/table/index.less index 12147ea2..43fd38c0 100644 --- a/package/component/src/component/table/index.less +++ b/package/component/src/component/table/index.less @@ -1,8 +1,5 @@ @import (reference) "../../theme/variable.less"; -.laytable-cell-checkbox { - width: 34px; -} .layui-table-col-special { width: 34px; } @@ -88,11 +85,6 @@ padding: 15px 30px; } -.layui-table-view .layui-table[lay-size="lg"] .layui-table-cell { - height: 40px; - line-height: 40px; -} - .layui-table[lay-size="sm"] td, .layui-table[lay-size="sm"] th { font-size: 12px; @@ -135,7 +127,7 @@ .layui-table-view .layui-table td.layui-table-col-special, .layui-table-view .layui-table th.layui-table-col-special { - padding: 5px 16px; + padding: 5px; } .layui-table-view .layui-table th.layui-unselect .layui-table-cell span { diff --git a/package/component/src/component/table/index.vue b/package/component/src/component/table/index.vue index 90007cee..3af94dfc 100644 --- a/package/component/src/component/table/index.vue +++ b/package/component/src/component/table/index.vue @@ -251,11 +251,7 @@ onMounted(() => { diff --git a/package/document/src/components/LayAnchor.vue b/package/document/src/components/LayAnchor.vue index 571b75f5..a5772868 100644 --- a/package/document/src/components/LayAnchor.vue +++ b/package/document/src/components/LayAnchor.vue @@ -43,11 +43,8 @@ let activeIndex = ref(0); const show = ref(props.show); const iconType = ref("layui-icon-right"); const anchors: string | string[] | undefined = props.anchors; -/**滚动条高度 */ const scrollTop = ref(0); -/**要监听的滚动元素 */ const scrollRefEl = shallowRef(undefined); -/**折叠动画 */ let enableAnimation = false; const anchorList = computed(() => { @@ -126,8 +123,7 @@ onMounted(() => { scrollRefEl.value?.addEventListener("scroll", throttle(handlerScroll, 500)); // 如果已折叠,关闭组件初始渲染时的动画,然后自动开启 // @ts-ignore - show.value = - scrollRefEl.value!.firstElementChild!.style.marginRight !== "0px"; + show.value = scrollRefEl.value!.firstElementChild!.style.marginRight !== "0px"; enableAnimation = show.value; }); diff --git a/package/document/src/document/zh-CN/components/table.md b/package/document/src/document/zh-CN/components/table.md index cfb8b869..6d275230 100644 --- a/package/document/src/document/zh-CN/components/table.md +++ b/package/document/src/document/zh-CN/components/table.md @@ -17,8 +17,8 @@ @@ -77,8 +77,8 @@ export default { @@ -137,8 +137,8 @@ export default { @@ -264,8 +264,8 @@ export default {