UNPKG

yanzhen-design-vue

Version:

35 lines (34 loc) 972 B
import { radioGroupProps as radioGroupProps$1 } from "ant-design-vue/es/radio/Group"; import { propsSeparate, buildProps, buildEmits } from "@yanzhen-libs/utils-vue"; import "../../../hooks/index.mjs"; import { optionsProps } from "../../select/src/hooks/select-common-props.mjs"; import { useNamespace } from "../../../hooks/use-namespace/index.mjs"; const ns = useNamespace("radio-group"); const radioGroupOptions = { ns, class: ns.b(), name: ns.defineVNodeName() }; const radioGroupName = radioGroupOptions.name; const AntRadioGroup = propsSeparate(radioGroupProps$1()); const radioGroupProps = buildProps({ ...radioGroupProps$1(), ...optionsProps(), type: { type: String, values: ["button", "default"], default: "default" } }); const radioGroupEmits = buildEmits({ ...AntRadioGroup.emits, blur: (e) => true, focus: (e) => true }); export { AntRadioGroup, radioGroupEmits, radioGroupName, radioGroupOptions, radioGroupProps };