🐛(component): 修复 select 相关缺陷,并调整文档显示格式

This commit is contained in:
就眠儀式
2022-10-09 11:48:45 +08:00
parent 1b79148f21
commit c4cf4efd3d
5 changed files with 12 additions and 7 deletions

View File

@@ -1,6 +1,6 @@
{
"name": "@layui/layui-vue",
"version": "1.6.3",
"version": "1.6.4-beta.1",
"author": "就眠儀式",
"license": "MIT",
"description": "a component library for Vue 3 base on layui-vue",

View File

@@ -77,7 +77,9 @@ const options = ref<any>([]);
var timer: any;
const getOption = (nodes: VNode[]) => {
nodes?.map((item: VNode) => {
nodes?.filter((item: VNode) => {
return item.children != "v-if";
})?.map((item: VNode) => {
let component = item.type as Component;
if (component.name === LaySelectOption.name) {
options.value.push(item.props);

View File

@@ -457,11 +457,14 @@ watch(
);
onMounted(() => {
getScrollWidth();
getFixedColumn();
tableBody.value?.addEventListener("scroll", () => {
getFixedColumn();
});
window.onresize = () => {
getScrollWidth();
getFixedColumn();