@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.
22 lines (21 loc) • 577 B
JavaScript
import "../../chunk-G2ADBYYC.js";
import { useContext } from "../utils/context";
import { initState, useLinearGradient } from ".";
const api = ["context", "onClickBar", "onThumbMouseDown", "state"];
const renderless = (_, hooks, utils) => {
const { reactive } = hooks;
const context = useContext(hooks);
const state = initState(hooks);
const { onClickBar, onThumbMouseDown } = useLinearGradient(state, hooks, utils, context);
const api2 = reactive({
state,
context,
onClickBar,
onThumbMouseDown
});
return api2;
};
export {
api,
renderless
};