action-sheet.d.ts 1.9 KB

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