index.vue 1.2 KB

12345678910111213141516171819202122232425262728293031
  1. <template>
  2. <uni-shadow-root class="weapp-lib-goods-action-index"><view :class="'custom-class '+(utils.bem('goods-action', { safe: safeAreaInsetBottom }))">
  3. <slot></slot>
  4. </view></uni-shadow-root>
  5. </template>
  6. <wxs src="../wxs/utils.wxs" module="utils"></wxs>
  7. <script>
  8. global['__wxRoute'] = 'weapp/lib/goods-action/index'
  9. "use strict";
  10. Object.defineProperty(exports, "__esModule", { value: true });
  11. var component_1 = require("../common/component");
  12. var relation_1 = require("../common/relation");
  13. (0, component_1.VantComponent)({
  14. relation: (0, relation_1.useChildren)('goods-action-button', function () {
  15. this.children.forEach(function (item) {
  16. item.updateStyle();
  17. });
  18. }),
  19. props: {
  20. safeAreaInsetBottom: {
  21. type: Boolean,
  22. value: true,
  23. },
  24. },
  25. });
  26. export default global['__wxComponents']['weapp/lib/goods-action/index']
  27. </script>
  28. <style platform="mp-weixin">
  29. @import '../common/index.css';.van-goods-action{align-items:center;background-color:var(--goods-action-background-color,#fff);bottom:0;box-sizing:initial;display:flex;height:var(--goods-action-height,50px);left:0;position:fixed;right:0}.van-goods-action--safe{padding-bottom:env(safe-area-inset-bottom)}
  30. </style>