{"version":3,"file":"button2.mjs","sources":["../../../../../../packages/components/button/src/button.ts"],"sourcesContent":["import { buildProps } from \"@xplus/utils/props\";\nimport { useSizeProp } from \"@xplus/hooks\";\n// import { buttonProps } from \"element-plus\";\nimport type { ExtractPropTypes } from \"vue\";\n// import type { ButtonProps } from \"element-plus\";\nexport const buttonType = [\n  \"default\",\n  \"primary\",\n  \"success\",\n  \"warning\",\n  \"info\",\n  \"danger\",\n  \"text\",\n  \"\",\n  \"minor\",\n] as const;\nexport const xButtonProps = buildProps({\n  type: {\n    type: String,\n    default: \"\",\n    values: buttonType,\n  },\n  size: useSizeProp,\n} as const);\n// TODO：类型推断的继承问题\nexport type XButtonProps = ExtractPropTypes<typeof xButtonProps>;\n"],"names":[],"mappings":";;;;AAEY,MAAC,UAAU,GAAG;AAC1B,EAAE,SAAS;AACX,EAAE,SAAS;AACX,EAAE,SAAS;AACX,EAAE,SAAS;AACX,EAAE,MAAM;AACR,EAAE,QAAQ;AACV,EAAE,MAAM;AACR,EAAE,EAAE;AACJ,EAAE,OAAO;AACT,EAAE;AACU,MAAC,YAAY,GAAG,UAAU,CAAC;AACvC,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,EAAE;AACf,IAAI,MAAM,EAAE,UAAU;AACtB,GAAG;AACH,EAAE,IAAI,EAAE,WAAW;AACnB,CAAC;;;;"}