first
This commit is contained in:
1
node_modules/vant/es/goods-action/index.css
generated
vendored
Normal file
1
node_modules/vant/es/goods-action/index.css
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
.van-goods-action{position:fixed;right:0;bottom:0;left:0;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;box-sizing:content-box;height:50px;padding-bottom:constant(safe-area-inset-bottom);padding-bottom:env(safe-area-inset-bottom);background-color:#fff}.van-goods-action--unfit{padding-bottom:0}
|
24
node_modules/vant/es/goods-action/index.js
generated
vendored
Normal file
24
node_modules/vant/es/goods-action/index.js
generated
vendored
Normal file
@ -0,0 +1,24 @@
|
||||
import { createNamespace } from '../utils';
|
||||
import { ParentMixin } from '../mixins/relation';
|
||||
|
||||
var _createNamespace = createNamespace('goods-action'),
|
||||
createComponent = _createNamespace[0],
|
||||
bem = _createNamespace[1];
|
||||
|
||||
export default createComponent({
|
||||
mixins: [ParentMixin('vanGoodsAction')],
|
||||
props: {
|
||||
safeAreaInsetBottom: {
|
||||
type: Boolean,
|
||||
default: true
|
||||
}
|
||||
},
|
||||
render: function render() {
|
||||
var h = arguments[0];
|
||||
return h("div", {
|
||||
"class": bem({
|
||||
unfit: !this.safeAreaInsetBottom
|
||||
})
|
||||
}, [this.slots()]);
|
||||
}
|
||||
});
|
19
node_modules/vant/es/goods-action/index.less
generated
vendored
Normal file
19
node_modules/vant/es/goods-action/index.less
generated
vendored
Normal file
@ -0,0 +1,19 @@
|
||||
@import '../style/var';
|
||||
|
||||
.van-goods-action {
|
||||
position: fixed;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
box-sizing: content-box;
|
||||
height: @goods-action-height;
|
||||
padding-bottom: constant(safe-area-inset-bottom);
|
||||
padding-bottom: env(safe-area-inset-bottom);
|
||||
background-color: @goods-action-background-color;
|
||||
|
||||
&--unfit {
|
||||
padding-bottom: 0;
|
||||
}
|
||||
}
|
2
node_modules/vant/es/goods-action/style/index.js
generated
vendored
Normal file
2
node_modules/vant/es/goods-action/style/index.js
generated
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
import '../../style/base.css';
|
||||
import '../index.css';
|
2
node_modules/vant/es/goods-action/style/less.js
generated
vendored
Normal file
2
node_modules/vant/es/goods-action/style/less.js
generated
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
import '../../style/base.less';
|
||||
import '../index.less';
|
Reference in New Issue
Block a user