@fast-china/utils
Version:
Fast 工具库.
14 lines (13 loc) • 344 B
JavaScript
import { getCurrentInstance } from "vue";
import { FastError } from "../error/index.mjs";
const useRender = (render) => {
const vm = getCurrentInstance();
if (!vm) {
throw new FastError("useRender must be called from inside a setup function");
}
vm.render = render;
};
export {
useRender
};
//# sourceMappingURL=useRender.mjs.map