props.ts 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. import type { ClIconProps } from "../cl-icon/props";
  2. import type { ClButtonType, PassThroughProps, Size } from "../../types";
  3. import type { ClLoadingProps } from "../cl-loading/props";
  4. export type ClButtonPassThrough = {
  5. className?: string;
  6. label?: PassThroughProps;
  7. icon?: ClIconProps;
  8. loading?: ClLoadingProps;
  9. };
  10. export type ClButtonProps = {
  11. className?: string;
  12. pt?: ClButtonPassThrough;
  13. type?: ClButtonType;
  14. color?: string;
  15. icon?: string;
  16. text?: boolean;
  17. rounded?: boolean;
  18. border?: boolean;
  19. loading?: boolean;
  20. disabled?: boolean;
  21. size?: Size;
  22. hoverClass?: string;
  23. hoverStopPropagation?: boolean;
  24. hoverStartTime?: number;
  25. hoverStayTime?: number;
  26. formType?: "submit" | "reset";
  27. openType?: "agreePrivacyAuthorization" | "feedback" | "share" | "getUserInfo" | "contact" | "getPhoneNumber" | "launchApp" | "openSetting" | "chooseAvatar" | "getAuthorize" | "lifestyle" | "contactShare" | "openGroupProfile" | "openGuildProfile" | "openPublicProfile" | "shareMessageToFriend" | "addFriend" | "addColorSign" | "addGroupApp" | "addToFavorites" | "chooseAddress" | "chooseInvoiceTitle" | "login" | "subscribe" | "favorite" | "watchLater" | "openProfile" | "liveActivity" | "getRealtimePhoneNumber";
  28. lang?: "en" | "zh_CN" | "zh_TW";
  29. sessionFrom?: string;
  30. sendMessageTitle?: string;
  31. sendMessagePath?: string;
  32. sendMessageImg?: string;
  33. showMessageCard?: boolean;
  34. appParameter?: string;
  35. groupId?: string;
  36. guildId?: string;
  37. publicId?: string;
  38. phoneNumberNoQuotaToast?: boolean;
  39. createliveactivity?: boolean;
  40. };