docs: update

This commit is contained in:
就眠儀式 2022-03-19 22:09:43 +08:00
parent fda2d11b20
commit ade18232bd
3 changed files with 10 additions and 2 deletions

View File

@ -19,6 +19,7 @@
<li>[新增] notice-bar 通告栏。</li>
<li>[新增] scroll 虚拟滚动组件。</li>
<li>[新增] transition 过渡动画组件。</li>
<li>[新增] collapse 折叠面板过渡动画。</li>
<li>[新增] table 表格组件 excel 导出工具栏。</li>
<li>[新增] table column 选项 sort 属性, 开启字段排序。</li>
<li>[新增] page 分页组件 v-model 属性, 支持默认页设置。</li>

View File

@ -39,7 +39,10 @@ const showHandle = function () {
// -->
activeValues.value.push(props.id);
}
emit("update:modelValue",accordion ? activeValues.value[0] || null : activeValues.value);
emit(
"update:modelValue",
accordion ? activeValues.value[0] || null : activeValues.value
);
emit("change", props.id, !_isShow, activeValues.value);
};
</script>

View File

@ -59,7 +59,11 @@ const beforeLeave = (el: any) => {
el.dataset.oldPaddingBottom = el.style.paddingBottom;
el.dataset.oldOverflow = el.style.overflow;
var computedStyle = getComputedStyle(el, null);
el.style.height = el.scrollHeight - parseInt(computedStyle.paddingTop) - parseInt(computedStyle.paddingBottom) + "px";
el.style.height =
el.scrollHeight -
parseInt(computedStyle.paddingTop) -
parseInt(computedStyle.paddingBottom) +
"px";
el.style.overflow = "hidden";
};