{"version":3,"file":"dropdown-op2.mjs","sources":["../../../../../../packages/components/dropdown/src/dropdown-op.ts"],"sourcesContent":["import { buildProps, definePropType } from \"@xplus/utils/props\";\nimport type { ExtractPropTypes } from \"vue\";\n\nexport type OpConfigItem = {\n  label: string;\n  show: boolean | (() => boolean);\n  click?: (() => any) | string;\n};\n\nexport const xDropdownOpProps = buildProps({\n  config: {\n    type: definePropType<OpConfigItem[]>(Array),\n    default: () => [],\n  },\n  max: {\n    type: Number,\n    default: 2,\n  },\n});\nexport type XDropdownOpProps = ExtractPropTypes<typeof xDropdownOpProps>;\n"],"names":[],"mappings":";;AACY,MAAC,gBAAgB,GAAG,UAAU,CAAC;AAC3C,EAAE,MAAM,EAAE;AACV,IAAI,IAAI,EAAE,cAAc,CAAC,KAAK,CAAC;AAC/B,IAAI,OAAO,EAAE,MAAM,EAAE;AACrB,GAAG;AACH,EAAE,GAAG,EAAE;AACP,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,CAAC;AACd,GAAG;AACH,CAAC;;;;"}