{"version":3,"file":"custom-sorter.mjs","sources":["../../../../../../packages/components/custom-sorter/src/custom-sorter.ts"],"sourcesContent":["import { buildProps, definePropType } from '@ll-plus/utils'\r\n\r\nimport { TooltipProps } from 'ant-design-vue'\r\nimport { SizeType } from 'ant-design-vue/es/config-provider'\r\nimport type { ExtractPropTypes } from 'vue'\r\nimport type CustomSorter from './custom-sorter.vue'\r\n\r\n// 定义组件props\r\nexport const customSorterProps = buildProps({\r\n  open: {\r\n    type: Boolean,\r\n    default: false,\r\n  },\r\n  fieldList: {\r\n    type: definePropType<{ key: string; title: string }[]>(Array),\r\n    default: () => [],\r\n  },\r\n  // 最大查询数量\r\n  maxSearchCount: {\r\n    type: Number,\r\n    default: 0,\r\n  },\r\n  // 开启徽标\r\n  useBadge: {\r\n    type: Boolean,\r\n    default: true,\r\n  },\r\n  // 激活状态\r\n  activeState: {\r\n    type: Boolean,\r\n    default: false,\r\n  },\r\n  // 排序图标\r\n  sortIcon: {\r\n    type: String,\r\n  },\r\n  // 升序文本\r\n  ascText: {\r\n    type: String,\r\n  },\r\n  // 降序文本\r\n  descText: {\r\n    type: String,\r\n  },\r\n  // 新增排序文本\r\n  addSortText: {\r\n    type: String,\r\n  },\r\n  // 气泡框位置\r\n  placement: {\r\n    type: definePropType<TooltipProps['placement']>(String),\r\n  },\r\n  label: {\r\n    type: String,\r\n    default: '',\r\n  },\r\n  size: {\r\n    type: definePropType<SizeType | number>([String, Number]),\r\n    default: 'large',\r\n  },\r\n} as const)\r\n\r\n// props\r\nexport type CustomSorterProps = ExtractPropTypes<typeof customSorterProps>\r\n\r\n// instance\r\nexport type CustomSorterInstance = InstanceType<typeof CustomSorter>\r\n"],"names":[],"mappings":";;;;AAQO,MAAM,oBAAoB,UAAA,CAAW;AAAA,EAC1C,IAAA,EAAM;AAAA,IACJ,IAAA,EAAM,OAAA;AAAA,IACN,OAAA,EAAS;AAAA,GACX;AAAA,EACA,SAAA,EAAW;AAAA,IACT,IAAA,EAAM,eAAiD,KAAK,CAAA;AAAA,IAC5D,OAAA,EAAS,MAAM;AAAC,GAClB;AAAA;AAAA,EAEA,cAAA,EAAgB;AAAA,IACd,IAAA,EAAM,MAAA;AAAA,IACN,OAAA,EAAS;AAAA,GACX;AAAA;AAAA,EAEA,QAAA,EAAU;AAAA,IACR,IAAA,EAAM,OAAA;AAAA,IACN,OAAA,EAAS;AAAA,GACX;AAAA;AAAA,EAEA,WAAA,EAAa;AAAA,IACX,IAAA,EAAM,OAAA;AAAA,IACN,OAAA,EAAS;AAAA,GACX;AAAA;AAAA,EAEA,QAAA,EAAU;AAAA,IACR,IAAA,EAAM;AAAA,GACR;AAAA;AAAA,EAEA,OAAA,EAAS;AAAA,IACP,IAAA,EAAM;AAAA,GACR;AAAA;AAAA,EAEA,QAAA,EAAU;AAAA,IACR,IAAA,EAAM;AAAA,GACR;AAAA;AAAA,EAEA,WAAA,EAAa;AAAA,IACX,IAAA,EAAM;AAAA,GACR;AAAA;AAAA,EAEA,SAAA,EAAW;AAAA,IACT,IAAA,EAAM,eAA0C,MAAM;AAAA,GACxD;AAAA,EACA,KAAA,EAAO;AAAA,IACL,IAAA,EAAM,MAAA;AAAA,IACN,OAAA,EAAS;AAAA,GACX;AAAA,EACA,IAAA,EAAM;AAAA,IACJ,IAAA,EAAM,cAAA,CAAkC,CAAC,MAAA,EAAQ,MAAM,CAAC,CAAA;AAAA,IACxD,OAAA,EAAS;AAAA;AAEb,CAAU;;;;"}