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) 468 B
import "../chunk-G2ADBYYC.js"; import { getIntegerAndDecimal } from "./index"; const api = ["state", "getIntegerAndDecimal"]; const renderless = (props, hooks) => { const api2 = { getIntegerAndDecimal: getIntegerAndDecimal({ props }) }; const { reactive, computed } = hooks; const state = reactive({ value: computed(() => api2.getIntegerAndDecimal(props)) }); Object.assign(api2, { state }); return api2; }; export { api, renderless };