unrefElement.js 341 B

1234567891011
  1. import { resolveUnref } from './resolveUnref';
  2. /**
  3. * Get the dom element of a ref of element or Vue component instance
  4. *
  5. * @param elRef
  6. */
  7. export function unrefElement(elRef) {
  8. var _a;
  9. const plain = resolveUnref(elRef);
  10. return (_a = plain === null || plain === void 0 ? void 0 : plain.$el) !== null && _a !== void 0 ? _a : plain;
  11. }