type.d.ts 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. import { PopupProps } from '../popup/index';
  2. import { KeysType } from '../common/common';
  3. export interface TdPickerProps {
  4. autoClose?: {
  5. type: BooleanConstructor;
  6. value?: boolean;
  7. };
  8. cancelBtn?: {
  9. type: null;
  10. value?: boolean | string;
  11. };
  12. confirmBtn?: {
  13. type: null;
  14. value?: boolean | string;
  15. };
  16. header?: {
  17. type: BooleanConstructor;
  18. value?: boolean;
  19. };
  20. itemHeight?: {
  21. type: NumberConstructor;
  22. value?: number;
  23. };
  24. keys?: {
  25. type: ObjectConstructor;
  26. value?: KeysType;
  27. };
  28. popupProps?: {
  29. type: ObjectConstructor;
  30. value?: PopupProps;
  31. };
  32. title?: {
  33. type: StringConstructor;
  34. value?: string;
  35. };
  36. usePopup?: {
  37. type: BooleanConstructor;
  38. value?: boolean;
  39. };
  40. usingCustomNavbar?: {
  41. type: BooleanConstructor;
  42. value?: boolean;
  43. };
  44. value?: {
  45. type: ArrayConstructor;
  46. value?: Array<PickerValue>;
  47. };
  48. defaultValue?: {
  49. type: ArrayConstructor;
  50. value?: Array<PickerValue>;
  51. };
  52. visible?: {
  53. type: BooleanConstructor;
  54. value?: boolean;
  55. };
  56. visibleItemCount?: {
  57. type: NumberConstructor;
  58. value?: number;
  59. };
  60. }
  61. export declare type PickerValue = string | number;