提交初始版本,使用vant ui库
This commit is contained in:
1
miniprogram_npm/@vant/weapp/goods-action/index.d.ts
vendored
Normal file
1
miniprogram_npm/@vant/weapp/goods-action/index.d.ts
vendored
Normal file
@@ -0,0 +1 @@
|
||||
export {};
|
17
miniprogram_npm/@vant/weapp/goods-action/index.js
Normal file
17
miniprogram_npm/@vant/weapp/goods-action/index.js
Normal file
@@ -0,0 +1,17 @@
|
||||
"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,
|
||||
},
|
||||
},
|
||||
});
|
3
miniprogram_npm/@vant/weapp/goods-action/index.json
Normal file
3
miniprogram_npm/@vant/weapp/goods-action/index.json
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"component": true
|
||||
}
|
5
miniprogram_npm/@vant/weapp/goods-action/index.wxml
Normal file
5
miniprogram_npm/@vant/weapp/goods-action/index.wxml
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
miniprogram_npm/@vant/weapp/goods-action/index.wxss
Normal file
1
miniprogram_npm/@vant/weapp/goods-action/index.wxss
Normal file
@@ -0,0 +1 @@
|
||||
@import '../common/index.wxss';.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)}
|
Reference in New Issue
Block a user