UNPKG

yanzhen-design-vue

Version:

37 lines (36 loc) 884 B
import { propsSeparate, epPropType, buildProps, definePropType } from "@yanzhen-libs/utils-vue"; import { spinProps as spinProps$1 } from "ant-design-vue/es/spin"; import "../../../hooks/index.mjs"; import { useNamespace } from "../../../hooks/use-namespace/index.mjs"; const ns = useNamespace("spin"); const spinOptions = { ns, class: ns.b(), name: ns.defineVNodeName() }; const spinName = spinOptions.name; const AntSpin = propsSeparate({ ...spinProps$1(), tip: epPropType.any, indicator: epPropType.any }); const spinProps = buildProps({ ...AntSpin.props, name: String, timeout: definePropType([String, Number]), tag: { type: definePropType([String, Boolean]), default: "spin" }, indicatorSize: definePropType([String, Number]) }); const spinEmits = { ...AntSpin.emits }; export { AntSpin, spinEmits, spinName, spinOptions, spinProps };