UNPKG

yanzhen-design-vue

Version:

26 lines (25 loc) 819 B
"use strict"; Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" }); const vue = require("vue"); const antDesignVue = require("ant-design-vue"); const lodashEs = require("lodash-es"); const utilsVue = require("@yanzhen-libs/utils-vue"); const row = require("./row.cjs"); function useRow(props, emit) { const attrs = vue.useAttrs(); const slots = vue.useSlots(); const config = vue.computed(() => lodashEs.pick(props, ...Object.keys(row.AntRowProps.props))); const proxyProps = utilsVue.useProxyProps(config, row.AntRowProps.emits, { emit, filter: true }); return [ { proxyProps }, (props2) => { return vue.createVNode(antDesignVue.Row, vue.mergeProps(utilsVue.unref(attrs), utilsVue.unref(proxyProps), props2), slots); } ]; } exports.useRow = useRow;