@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.
23 lines (22 loc) • 465 B
JavaScript
import "../chunk-G2ADBYYC.js";
import { initService } from "../user";
import { init } from "./index";
const api = ["state"];
const renderless = (props, { reactive }, { service }) => {
const $service = initService({ props, service });
const state = reactive({
imgUrl: "",
userName: "",
roleNumber: ""
});
const api2 = {
state,
init: init({ service: $service, state })
};
api2.init();
return api2;
};
export {
api,
renderless
};