vant
This commit is contained in:
1
utils/dist/goods-action/index.d.ts
vendored
Normal file
1
utils/dist/goods-action/index.d.ts
vendored
Normal file
@@ -0,0 +1 @@
|
||||
export {};
|
||||
22
utils/dist/goods-action/index.js
vendored
Normal file
22
utils/dist/goods-action/index.js
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
import { VantComponent } from '../common/component';
|
||||
VantComponent({
|
||||
relation: {
|
||||
type: 'descendant',
|
||||
name: 'goods-action-button',
|
||||
linked(child) {
|
||||
this.children.push(child);
|
||||
},
|
||||
unlinked(child) {
|
||||
this.children = this.children.filter((item) => item !== child);
|
||||
}
|
||||
},
|
||||
beforeCreate() {
|
||||
this.children = [];
|
||||
},
|
||||
props: {
|
||||
safeAreaInsetBottom: {
|
||||
type: Boolean,
|
||||
value: true
|
||||
}
|
||||
}
|
||||
});
|
||||
3
utils/dist/goods-action/index.json
vendored
Normal file
3
utils/dist/goods-action/index.json
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"component": true
|
||||
}
|
||||
5
utils/dist/goods-action/index.wxml
vendored
Normal file
5
utils/dist/goods-action/index.wxml
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
<wxs src="../wxs/utils.wxs" module="utils" />
|
||||
|
||||
<view class="custom-class {{ utils.bem('goods-action', { safe: safeAreaInsetBottom }) }}">
|
||||
<slot />
|
||||
</view>
|
||||
1
utils/dist/goods-action/index.wxss
vendored
Normal file
1
utils/dist/goods-action/index.wxss
vendored
Normal file
@@ -0,0 +1 @@
|
||||
@import '../common/index.wxss';.van-goods-action{position:fixed;right:0;bottom:0;left:0;display:-webkit-flex;display:flex;-webkit-align-items:center;align-items:center;background-color:#fff;background-color:var(--goods-action-background-color,#fff)}.van-goods-action--safe{padding-bottom:env(safe-area-inset-bottom)}
|
||||
Reference in New Issue
Block a user