yanzhen-design-vue
Version:
30 lines (29 loc) • 855 B
JavaScript
import { defineComponent, openBlock, createBlock, unref, mergeProps, withCtx, renderSlot } from "vue";
import { rowName, rowProps, rowEmits, rowOptions } from "./row.mjs";
import { useRow } from "./use-row.mjs";
const _sfc_main = /* @__PURE__ */ defineComponent({
...{ name: rowName },
__name: "row",
props: rowProps,
emits: rowEmits,
setup(__props, { emit: __emit }) {
const { ns } = rowOptions;
const props = __props;
const emit = __emit;
const [, Row] = useRow(props, emit);
return (_ctx, _cache) => {
return openBlock(), createBlock(unref(Row), mergeProps({
ref: "ref",
class: [unref(ns).b()]
}, _ctx.bindProxy), {
default: withCtx(() => [
renderSlot(_ctx.$slots, "default")
]),
_: 3
}, 16, ["class"]);
};
}
});
export {
_sfc_main as default
};