index.vue 774B

12345678910111213141516171819
  1. <template>
  2. <uni-shadow-root class="vant-goods-action-index"><view :class="'custom-class '+(utils.bem('goods-action', { safe: isIPhoneX && 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'] = 'vant/goods-action/index'
  9. import { VantComponent } from '../common/component';
  10. import { safeArea } from '../mixins/safe-area';
  11. VantComponent({
  12. mixins: [safeArea()]
  13. });
  14. export default global['__wxComponents']['vant/goods-action/index']
  15. </script>
  16. <style platform="mp-weixin">
  17. @import '../common/index.css';.van-goods-action{position:fixed;right:0;bottom:0;left:0;display:-webkit-flex;display:flex;background-color:#fff}.van-goods-action--safe{padding-bottom:34px}
  18. </style>