index.js 796 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. "use strict";
  2. var _component = require("../common/component");
  3. var _my = require("../../__antmove/api/index.js")(my);
  4. var wx = _my;
  5. (0, _component.VantComponent)({
  6. relation: {
  7. type: "descendant",
  8. name: "goods-action-button",
  9. current: "goods-action",
  10. linked: function linked() {
  11. this.updateStyle();
  12. },
  13. unlinked: function unlinked() {
  14. this.updateStyle();
  15. },
  16. linkChanged: function linkChanged() {
  17. this.updateStyle();
  18. }
  19. },
  20. props: {
  21. safeAreaInsetBottom: {
  22. type: Boolean,
  23. value: true
  24. }
  25. },
  26. methods: {
  27. updateStyle: function updateStyle() {
  28. var _this = this;
  29. wx.nextTick(function () {
  30. _this.children.forEach(function (child) {
  31. child.updateStyle();
  32. });
  33. });
  34. }
  35. }
  36. });