button-group.d.ts 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. import { EpPropFinalized, EpPropMergeType } from "../../../utils/vue/props/types.js";
  2. import { ButtonProps } from "./button.js";
  3. import * as _$vue from "vue";
  4. import { ExtractPublicPropTypes } from "vue";
  5. //#region ../../packages/components/button/src/button-group.d.ts
  6. interface ButtonGroupProps {
  7. /**
  8. * @description control the size of buttons in this button-group
  9. */
  10. size?: ButtonProps['size'];
  11. /**
  12. * @description control the type of buttons in this button-group
  13. */
  14. type?: ButtonProps['type'];
  15. /**
  16. * @description display direction
  17. */
  18. direction?: 'horizontal' | 'vertical';
  19. }
  20. /**
  21. * @deprecated Removed after 3.0.0, Use `ButtonGroupProps` instead.
  22. */
  23. declare const buttonGroupProps: {
  24. /**
  25. * @description control the size of buttons in this button-group
  26. */
  27. readonly size: {
  28. readonly type: _$vue.PropType<EpPropMergeType<StringConstructor, "" | "default" | "small" | "large", never>>;
  29. readonly required: false;
  30. readonly validator: ((val: unknown) => boolean) | undefined;
  31. __epPropKey: true;
  32. };
  33. /**
  34. * @description control the type of buttons in this button-group
  35. */
  36. readonly type: EpPropFinalized<StringConstructor, "" | "text" | "default" | "info" | "primary" | "success" | "warning" | "danger", unknown, "", boolean>;
  37. /**
  38. * @description display direction
  39. */
  40. readonly direction: {
  41. readonly type: _$vue.PropType<"horizontal" | "vertical">;
  42. readonly values: readonly ["horizontal", "vertical"];
  43. readonly default: "horizontal";
  44. };
  45. };
  46. /**
  47. * @deprecated Removed after 3.0.0, Use `ButtonGroupProps` instead.
  48. */
  49. type ButtonGroupPropsPublic = ExtractPublicPropTypes<typeof buttonGroupProps>;
  50. //#endregion
  51. export { ButtonGroupProps, ButtonGroupPropsPublic, buttonGroupProps };