UNPKG

@vuux/video

Version:

Vue Nuxt 视频播放器

23 lines (22 loc) 475 B
import { computed as i, watch as h } from "vue"; import { useFloating as n } from "./useFloating.mjs"; const d = (e, s, l, o) => { const { isVisible: t } = n(e, o), m = i(() => ({ "--video-theme": e.theme, maxWidth: e.width })), u = i(() => ({ "is-light": s.lights, "is-full": s.webFull, "is-flex": !t.value })); return h(t, (c) => { l.value = c; }), { styles: m, isVisible: t, classNames: u }; }; export { d as useStyles };