action-sheet.d.ts 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. import { SuperComponent } from '../common/src/index';
  2. export default class ActionSheet extends SuperComponent {
  3. static show: (options: import("./show").ActionSheetShowOption) => WechatMiniprogram.Component.TrivialInstance;
  4. behaviors: string[];
  5. externalClasses: string[];
  6. properties: {
  7. align?: {
  8. type: StringConstructor;
  9. value?: "center" | "left";
  10. };
  11. cancelText?: {
  12. type: StringConstructor;
  13. value?: string;
  14. };
  15. count?: {
  16. type: NumberConstructor;
  17. value?: number;
  18. };
  19. description?: {
  20. type: StringConstructor;
  21. value?: string;
  22. };
  23. items: {
  24. type: ArrayConstructor;
  25. value?: (string | import("./type").ActionSheetItem)[];
  26. required?: boolean;
  27. };
  28. popupProps?: {
  29. type: ObjectConstructor;
  30. value?: import("../popup").TdPopupProps;
  31. };
  32. showCancel?: {
  33. type: BooleanConstructor;
  34. value?: boolean;
  35. };
  36. showOverlay?: {
  37. type: BooleanConstructor;
  38. value?: boolean;
  39. };
  40. theme?: {
  41. type: StringConstructor;
  42. value?: "list" | "grid";
  43. };
  44. usingCustomNavbar?: {
  45. type: BooleanConstructor;
  46. value?: boolean;
  47. };
  48. visible: {
  49. type: BooleanConstructor;
  50. value?: boolean;
  51. required?: boolean;
  52. };
  53. defaultVisible: {
  54. type: BooleanConstructor;
  55. value?: boolean;
  56. required?: boolean;
  57. };
  58. };
  59. data: {
  60. prefix: string;
  61. classPrefix: string;
  62. gridThemeItems: any[];
  63. currentSwiperIndex: number;
  64. defaultPopUpProps: {};
  65. defaultPopUpzIndex: number;
  66. };
  67. controlledProps: {
  68. key: string;
  69. event: string;
  70. }[];
  71. observers: {
  72. 'visible, items'(visible: boolean): void;
  73. };
  74. methods: {
  75. init(): void;
  76. memoInitialData(): void;
  77. splitGridThemeActions(): void;
  78. show(options: any): void;
  79. close(): void;
  80. onPopupVisibleChange({ detail }: {
  81. detail: any;
  82. }): void;
  83. onSwiperChange(e: WechatMiniprogram.TouchEvent): void;
  84. onSelect(event: WechatMiniprogram.TouchEvent): void;
  85. onCancel(): void;
  86. };
  87. }