docs: update
This commit is contained in:
parent
fda2d11b20
commit
ade18232bd
@ -19,6 +19,7 @@
|
|||||||
<li>[新增] notice-bar 通告栏。</li>
|
<li>[新增] notice-bar 通告栏。</li>
|
||||||
<li>[新增] scroll 虚拟滚动组件。</li>
|
<li>[新增] scroll 虚拟滚动组件。</li>
|
||||||
<li>[新增] transition 过渡动画组件。</li>
|
<li>[新增] transition 过渡动画组件。</li>
|
||||||
|
<li>[新增] collapse 折叠面板过渡动画。</li>
|
||||||
<li>[新增] table 表格组件 excel 导出工具栏。</li>
|
<li>[新增] table 表格组件 excel 导出工具栏。</li>
|
||||||
<li>[新增] table column 选项 sort 属性, 开启字段排序。</li>
|
<li>[新增] table column 选项 sort 属性, 开启字段排序。</li>
|
||||||
<li>[新增] page 分页组件 v-model 属性, 支持默认页设置。</li>
|
<li>[新增] page 分页组件 v-model 属性, 支持默认页设置。</li>
|
||||||
|
@ -39,7 +39,10 @@ const showHandle = function () {
|
|||||||
// 普通折叠面板 --> 展开
|
// 普通折叠面板 --> 展开
|
||||||
activeValues.value.push(props.id);
|
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);
|
emit("change", props.id, !_isShow, activeValues.value);
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
@ -59,7 +59,11 @@ const beforeLeave = (el: any) => {
|
|||||||
el.dataset.oldPaddingBottom = el.style.paddingBottom;
|
el.dataset.oldPaddingBottom = el.style.paddingBottom;
|
||||||
el.dataset.oldOverflow = el.style.overflow;
|
el.dataset.oldOverflow = el.style.overflow;
|
||||||
var computedStyle = getComputedStyle(el, null);
|
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";
|
el.style.overflow = "hidden";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user