action-sheet.d.ts 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  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. externalClasses: string[];
  5. properties: {
  6. cancelText?: {
  7. type: StringConstructor;
  8. value?: string;
  9. };
  10. count?: {
  11. type: NumberConstructor;
  12. value?: number;
  13. };
  14. items: {
  15. type: ArrayConstructor;
  16. value?: (string | import("./type").ActionSheetItem)[];
  17. };
  18. showCancel?: {
  19. type: BooleanConstructor;
  20. value?: boolean;
  21. };
  22. theme?: {
  23. type: StringConstructor;
  24. value?: "list" | "grid";
  25. };
  26. visible: {
  27. type: BooleanConstructor;
  28. value?: boolean;
  29. };
  30. defaultVisible: {
  31. type: BooleanConstructor;
  32. value?: boolean;
  33. };
  34. };
  35. data: {
  36. prefix: string;
  37. classPrefix: string;
  38. gridThemeItems: any[];
  39. currentSwiperIndex: number;
  40. };
  41. controlledProps: {
  42. key: string;
  43. event: string;
  44. }[];
  45. ready(): void;
  46. methods: {
  47. onSwiperChange(e: WechatMiniprogram.TouchEvent): void;
  48. splitGridThemeActions(): void;
  49. show(options: any): void;
  50. memoInitialData(): void;
  51. close(): void;
  52. onPopupVisibleChange({ detail }: {
  53. detail: any;
  54. }): void;
  55. onSelect(event: WechatMiniprogram.TouchEvent): void;
  56. onCancel(): void;
  57. };
  58. }