@opensig/opendesign
Version:
41 lines (40 loc) • 1.31 kB
JavaScript
;
const vue = require("vue");
const types = require("./types.js");
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
__name: "OCol",
props: types.colProps,
setup(__props) {
const props = __props;
return (_ctx, _cache) => {
var _a, _b, _c, _d, _e;
return vue.openBlock(), vue.createElementBlock(
"div",
{
class: vue.normalizeClass(["o-col", {
"o-col-phone": !!props.phone,
"o-col-pad-v": !!props.padV,
"o-col-pad": !!props.pad,
"o-col-laptop": !!props.laptop,
"o-col-pc-s": !!props.pcS
}]),
style: vue.normalizeStyle({
alignSelf: props.align,
"--col-flex": props.flex,
"--col-phone-flex": (_a = props.phone) == null ? void 0 : _a.flex,
"--col-pad-v-flex": (_b = props.padV) == null ? void 0 : _b.flex,
"--col-pad-flex": (_c = props.pad) == null ? void 0 : _c.flex,
"--col-laptop-flex": (_d = props.laptop) == null ? void 0 : _d.flex,
"--col-pc-s-flex": (_e = props.pcS) == null ? void 0 : _e.flex
})
},
[
vue.renderSlot(_ctx.$slots, "default")
],
6
/* CLASS, STYLE */
);
};
}
});
module.exports = _sfc_main;