UNPKG

yanzhen-design-vue

Version:

40 lines (39 loc) 1 kB
import { propsSeparate, epPropType, buildProps, definePropType, buildEmits } from "@yanzhen-libs/utils-vue"; import { tabsProps as tabsProps$1 } from "ant-design-vue/es/tabs/src/Tabs"; import "../../../hooks/index.mjs"; import { useNamespace } from "../../../hooks/use-namespace/index.mjs"; const ns = useNamespace("tabs"); const tabsOptions = { ns, class: ns.b(), name: ns.defineVNodeName() }; const tabsName = tabsOptions.name; const AntTabs = propsSeparate({ ...tabsProps$1(), tabBarExtraContent: epPropType.any }); const tabsProps = buildProps({ ...AntTabs.props, value: AntTabs.props["activeKey"], tabList: { type: definePropType(Array), default: () => [] }, minHeight: { type: definePropType([String, Number]), default: () => 500 }, renderTabPane: definePropType(Function) }); const tabsEmits = buildEmits({ ...AntTabs.emits, "update:value": AntTabs.emits["update:activeKey"] }); export { AntTabs, tabsEmits, tabsName, tabsOptions, tabsProps };