perf: layout
parent
8eb43a4848
commit
9d469fb2af
|
@ -111,6 +111,8 @@ export default defineComponent({
|
||||||
return responsiveHandlerRef.value!(mql);
|
return responsiveHandlerRef.value!(mql);
|
||||||
}
|
}
|
||||||
const uniqueId = generateId('ant-sider-');
|
const uniqueId = generateId('ant-sider-');
|
||||||
|
siderHook && siderHook.addSider(uniqueId);
|
||||||
|
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
if (typeof window !== 'undefined') {
|
if (typeof window !== 'undefined') {
|
||||||
const { matchMedia } = window;
|
const { matchMedia } = window;
|
||||||
|
@ -124,7 +126,6 @@ export default defineComponent({
|
||||||
responsiveHandler(mql);
|
responsiveHandler(mql);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
siderHook && siderHook.addSider(uniqueId);
|
|
||||||
});
|
});
|
||||||
onBeforeUnmount(() => {
|
onBeforeUnmount(() => {
|
||||||
try {
|
try {
|
||||||
|
|
Loading…
Reference in New Issue