We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bf78ec4 commit 4bf8e47Copy full SHA for 4bf8e47
src/action-sheet/action-sheet.ts
@@ -36,10 +36,13 @@ export default class ActionSheet extends SuperComponent {
36
},
37
];
38
39
- ready() {
40
- this.memoInitialData();
41
- this.splitGridThemeActions();
42
- }
+ observers = {
+ visible(value: boolean) {
+ if (!value) return;
+ this.memoInitialData();
43
+ this.splitGridThemeActions();
44
+ },
45
+ };
46
47
methods = {
48
onSwiperChange(e: WechatMiniprogram.TouchEvent) {
@@ -65,7 +68,6 @@ export default class ActionSheet extends SuperComponent {
65
68
...options,
66
69
visible: true,
67
70
});
71
this.autoClose = true;
72
this._trigger('visible-change', { visible: true });
73
0 commit comments