Compare commits

..

No commits in common. "aa1689fed8e58d52db2367263ccbcc08853ff848" and "717f244d2fdb6ffe23bacc79fa7a33290b19fb8c" have entirely different histories.

2 changed files with 1 additions and 11 deletions

View File

@ -125,7 +125,6 @@ export default defineComponent({
const root = ref<HTMLElement>();
const navRef = ref<HTMLElement>();
const wrapRef = ref<HTMLElement>();
const contentRef = ref<ComponentInstance>();
const id = useId();
const scroller = useScrollParent(root);
@ -478,13 +477,8 @@ export default defineComponent({
const onRendered = (name: Numeric, title?: string) =>
emit('rendered', name, title);
const resize = () => {
setLine();
nextTick(() => contentRef.value?.swipeRef.value?.resize());
};
useExpose({
resize,
resize: setLine,
scrollTo,
});
@ -520,7 +514,6 @@ export default defineComponent({
[renderHeader(), slots['nav-bottom']?.()]
)}
<TabsContent
ref={contentRef}
count={children.length}
inited={state.inited}
animated={props.animated}

View File

@ -1,7 +1,6 @@
import { ref, watch, onMounted, defineComponent } from 'vue';
import { numericProp, makeRequiredProp, createNamespace } from '../utils';
import { Swipe, SwipeInstance } from '../swipe';
import { useExpose } from '../composables/use-expose';
const [name, bem] = createNamespace('tabs');
@ -61,8 +60,6 @@ export default defineComponent({
swipeToCurrentTab(props.currentIndex);
});
useExpose({ swipeRef });
return () => (
<div
class={bem('content', {