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) 459 B
import "../chunk-G2ADBYYC.js"; import { collapse, expand, toggle } from "./index"; const api = ["state", "toggle"]; const renderless = (props, { reactive }, { emit }) => { const api2 = {}; const state = reactive({ isShow: props.expand }); Object.assign(api2, { state, collapse: collapse({ emit, state }), expand: expand({ emit, state }), toggle: toggle({ api: api2, state }) }); return api2; }; export { api, renderless };