UNPKG

yanzhen-design-vue

Version:

40 lines (39 loc) 890 B
import { buildProps, buildEmits } from "@yanzhen-libs/utils-vue"; import "../../../hooks/index.mjs"; import "../../select/index.mjs"; import { useNamespace } from "../../../hooks/use-namespace/index.mjs"; import { AntSelect } from "../../select/src/select.mjs"; const ns = useNamespace("select-page"); const selectPageOptions = { ns, class: ns.b(), name: ns.defineVNodeName() }; const selectPageName = selectPageOptions.name; const selectPageProps = buildProps({ ...AntSelect.props, showTag: Boolean, searchKey: { type: String, default: "keyword" }, tabKey: { type: String, default: "tabKey" }, tabsList: { type: Array, default: () => [] }, loadMore: Function }); const selectPageEmits = buildEmits({ ...AntSelect.emits, tabChange: (key) => true }); export { selectPageEmits, selectPageName, selectPageOptions, selectPageProps };