UNPKG

@opentiny/vue-renderless

Version:

An enterprise-class UI component library, support both Vue.js 2 and Vue.js 3, as well as PC and mobile.

21 lines (20 loc) 481 B
import "../chunk-G2ADBYYC.js"; import { handleClick, setDropdownTabs } from "./index"; const api = ["state", "handleClick", " setDropdownTabs"]; const renderless = (props, { inject, reactive }) => { const state = reactive({ hide: true, dropdownTabs: props.tabs || [], rootTabs: inject("rootTabs") }); const api2 = { state, handleClick: handleClick(state), setDropdownTabs: setDropdownTabs(state) }; return api2; }; export { api, renderless };