yanzhen-design-vue
Version:
27 lines (26 loc) • 794 B
JavaScript
import { radioProps as radioProps$1 } from "ant-design-vue/es/radio/Radio";
import { propsSeparate, epPropType, buildProps, buildEmits } from "@yanzhen-libs/utils-vue";
import { mergeWith } from "@yanzhen-libs/utils";
import { cloneDeep } from "lodash-es";
import "../../../hooks/index.mjs";
import { useNamespace } from "../../../hooks/use-namespace/index.mjs";
const ns = useNamespace("radio");
const radioOptions = {
ns,
class: ns.b(),
name: ns.defineVNodeName()
};
const radioName = radioOptions.name;
const AntRadio = propsSeparate({
...radioProps$1(),
value: epPropType.any
});
const radioProps = buildProps(mergeWith(cloneDeep(AntRadio.props), {}));
const radioEmits = buildEmits(AntRadio.emits);
export {
AntRadio,
radioEmits,
radioName,
radioOptions,
radioProps
};