jhzh
2025-04-03 db12897dc68c68d40c557aa59ad78022e2b30ac2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
import { VantComponent } from '../common/component';
VantComponent({
  relation: {
    type: 'descendant',
    name: 'goods-action-button',
    current: 'goods-action',
    linked() {
      this.updateStyle();
    },
    unlinked() {
      this.updateStyle();
    },
    linkChanged() {
      this.updateStyle();
    },
  },
  props: {
    safeAreaInsetBottom: {
      type: Boolean,
      value: true,
    },
  },
  methods: {
    updateStyle() {
      wx.nextTick(() => {
        this.children.forEach((child) => {
          child.updateStyle();
        });
      });
    },
  },
});