Merge branch 'next' of https://gitee.com/layui/layui-vue into next
This commit is contained in:
commit
1ed123c806
@ -43,7 +43,6 @@ export interface LayTabProps {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const slot = useSlots();
|
const slot = useSlots();
|
||||||
const slots = slot.default && slot.default();
|
|
||||||
const childrens: Ref<VNode[]> = ref([]);
|
const childrens: Ref<VNode[]> = ref([]);
|
||||||
const slotsChange = ref(true);
|
const slotsChange = ref(true);
|
||||||
const tabMap = reactive(new Map<number, TabData>());
|
const tabMap = reactive(new Map<number, TabData>());
|
||||||
@ -283,7 +282,7 @@ const renderTabChild = (child: TabData) => {
|
|||||||
useResizeObserver(navRef, update);
|
useResizeObserver(navRef, update);
|
||||||
|
|
||||||
watch(
|
watch(
|
||||||
slotsChange,
|
tabMap,
|
||||||
function () {
|
function () {
|
||||||
childrens.value = [];
|
childrens.value = [];
|
||||||
setItemInstanceBySlot((slot.default && slot.default()) as VNode[]);
|
setItemInstanceBySlot((slot.default && slot.default()) as VNode[]);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user