import type { ExtractPropTypes } from 'vue' import { commonProps, isString, makeArrayProp, makeStringProp } from '../_utils' export const categorypaneProps = { ...commonProps, /** * @description 分类模式:`classify`,`text`,`custom` */ type: makeStringProp<'classify' | 'text' | 'custom'>('classify'), /** * @description 右侧展示当前分类数据 */ categoryChild: makeArrayProp([]), /** * @description 自定义分类数据 */ customCategory: makeArrayProp([]), } export type CategoryPaneProps = ExtractPropTypes export const categorypaneEmits = { onChange: (sku: string | object) => isString(sku) || sku === undefined || sku instanceof Object, } export type CategoryPaneEmits = typeof categorypaneEmits