12345678910111213141516171819202122232425262728293031 |
- <template>
- <uni-shadow-root class="weapp-lib-goods-action-index"><view :class="'custom-class '+(utils.bem('goods-action', { safe: safeAreaInsetBottom }))">
- <slot></slot>
- </view></uni-shadow-root>
- </template>
- <wxs src="../wxs/utils.wxs" module="utils"></wxs>
- <script>
- global['__wxRoute'] = 'weapp/lib/goods-action/index'
- "use strict";
- Object.defineProperty(exports, "__esModule", { value: true });
- var component_1 = require("../common/component");
- var relation_1 = require("../common/relation");
- (0, component_1.VantComponent)({
- relation: (0, relation_1.useChildren)('goods-action-button', function () {
- this.children.forEach(function (item) {
- item.updateStyle();
- });
- }),
- props: {
- safeAreaInsetBottom: {
- type: Boolean,
- value: true,
- },
- },
- });
- export default global['__wxComponents']['weapp/lib/goods-action/index']
- </script>
- <style platform="mp-weixin">
- @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)}
- </style>
|