@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) • 372 B
JavaScript
import "../chunk-G2ADBYYC.js";
const api = ["state"];
const renderless = (props, { reactive, computed }, { vm }) => {
const api2 = {};
const state = reactive({
size: computed(() => props.size)
});
Object.assign(api2, {
state
});
vm.$on("handleChange", (value) => {
vm.$emit("change", value);
});
return api2;
};
export {
api,
renderless
};