🐛(component): 修复 select 相关缺陷,并调整文档显示格式
This commit is contained in:
@@ -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",
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -457,11 +457,14 @@ watch(
|
||||
);
|
||||
|
||||
onMounted(() => {
|
||||
|
||||
getScrollWidth();
|
||||
getFixedColumn();
|
||||
|
||||
tableBody.value?.addEventListener("scroll", () => {
|
||||
getFixedColumn();
|
||||
});
|
||||
|
||||
window.onresize = () => {
|
||||
getScrollWidth();
|
||||
getFixedColumn();
|
||||
|
||||
Reference in New Issue
Block a user