@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.
26 lines (25 loc) • 561 B
JavaScript
import "../chunk-G2ADBYYC.js";
import { computedClassName, computedStyle } from "./index";
const api = ["state"];
const renderless = (props, { computed, reactive }) => {
const api2 = {
computedStyle,
computedClassName
};
const state = reactive({
style: computed(() => api2.computedStyle(props.gutter)),
className: computed(
() => api2.computedClassName({
flex: props.flex,
justify: props.justify,
align: props.align
})
)
});
api2.state = state;
return api2;
};
export {
api,
renderless
};