action-sheet.d.ts 1.8 KB

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