index.js 572 B

123456789101112131415161718192021222324
  1. import { createNamespace } from '../utils';
  2. import { ParentMixin } from '../mixins/relation';
  3. var _createNamespace = createNamespace('goods-action'),
  4. createComponent = _createNamespace[0],
  5. bem = _createNamespace[1];
  6. export default createComponent({
  7. mixins: [ParentMixin('vanGoodsAction')],
  8. props: {
  9. safeAreaInsetBottom: {
  10. type: Boolean,
  11. default: true
  12. }
  13. },
  14. render: function render() {
  15. var h = arguments[0];
  16. return h("div", {
  17. "class": bem({
  18. unfit: !this.safeAreaInsetBottom
  19. })
  20. }, [this.slots()]);
  21. }
  22. });