index.js 514 B

12345678910111213141516171819202122
  1. import { VantComponent } from '../common/component';
  2. VantComponent({
  3. relation: {
  4. type: 'descendant',
  5. name: 'goods-action-button',
  6. linked(child) {
  7. this.children.push(child);
  8. },
  9. unlinked(child) {
  10. this.children = this.children.filter((item) => item !== child);
  11. }
  12. },
  13. beforeCreate() {
  14. this.children = [];
  15. },
  16. props: {
  17. safeAreaInsetBottom: {
  18. type: Boolean,
  19. value: true
  20. }
  21. }
  22. });