You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
const self = {
dispatchKeys: (e: KeyboardEvent) => (onInputKeydown(e), self),
assign, assignRow, selectCell,
selection,
columns,
get currentRowIdx() {
return currentIdx.value;
},
set currentRowIdx(val) {
if (val >= items.value.length || val < 0) {
return;
}
currentIdx.value = val;
},
get rowCount() {
return items.value.length
}
};
defineExpose(self);
Works fine until I try to wrap the component into another with more high-level functionality:
<template>
<lq-table ...... />
</template>
The problem is that the exposed is lost and I have no idea how to forward the exposed up. I've tried to expose a ref of the wrapped component, proxies, no luck. Any way to expose the child component?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I have a table component with an exposed:
Works fine until I try to wrap the component into another with more high-level functionality:
The problem is that the exposed is lost and I have no idea how to forward the exposed up. I've tried to expose a ref of the wrapped component, proxies, no luck. Any way to expose the child component?
Beta Was this translation helpful? Give feedback.
All reactions