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.

20 lines (19 loc) 403 B
import "../chunk-G2ADBYYC.js"; import { init, initService } from "./index"; const api = ["state"]; const renderless = (props, { reactive }, { service }) => { const $service = initService({ props, service }); const state = reactive({ userName: "" }); const api2 = { state, init: init({ service: $service, state }) }; api2.init(); return api2; }; export { api, renderless };