init
This commit is contained in:
30
project-wl-yonghuduan-uniapp-vue3/unpackage/dist/dev/mp-weixin/components/BtnFooter/index.js
vendored
Normal file
30
project-wl-yonghuduan-uniapp-vue3/unpackage/dist/dev/mp-weixin/components/BtnFooter/index.js
vendored
Normal file
@@ -0,0 +1,30 @@
|
||||
"use strict";
|
||||
var common_vendor = require("../../common/vendor.js");
|
||||
const _sfc_main = {
|
||||
__name: "index",
|
||||
props: {
|
||||
btnText: {
|
||||
type: String,
|
||||
default: "\u786E\u5B9A"
|
||||
},
|
||||
isActive: {
|
||||
type: Boolean,
|
||||
default: false
|
||||
}
|
||||
},
|
||||
emits: ["@confirm"],
|
||||
setup(__props, { emit: emits }) {
|
||||
const handleClick = () => {
|
||||
emits("confirm");
|
||||
};
|
||||
return (_ctx, _cache) => {
|
||||
return {
|
||||
a: common_vendor.t(__props.btnText),
|
||||
b: common_vendor.n(__props.isActive ? "active" : ""),
|
||||
c: common_vendor.o(handleClick)
|
||||
};
|
||||
};
|
||||
}
|
||||
};
|
||||
var Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-0e2d1a4f"], ["__file", "E:/project/project-wl-yonghuduan-uniapp-vue3/components/BtnFooter/index.vue"]]);
|
||||
wx.createComponent(Component);
|
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {}
|
||||
}
|
@@ -0,0 +1 @@
|
||||
<view class="BtnFooter data-v-0e2d1a4f"><view class="{{['btn', 'data-v-0e2d1a4f', b]}}" bindtap="{{c}}">{{a}}</view></view>
|
23
project-wl-yonghuduan-uniapp-vue3/unpackage/dist/dev/mp-weixin/components/BtnFooter/index.wxss
vendored
Normal file
23
project-wl-yonghuduan-uniapp-vue3/unpackage/dist/dev/mp-weixin/components/BtnFooter/index.wxss
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
/* 水平间距 */
|
||||
/* 水平间距 */
|
||||
.BtnFooter.data-v-0e2d1a4f {
|
||||
position: fixed;
|
||||
bottom: 0;
|
||||
height: 172rpx;
|
||||
width: 100%;
|
||||
background-color: white;
|
||||
}
|
||||
.BtnFooter .btn.data-v-0e2d1a4f {
|
||||
width: 404rpx;
|
||||
height: 88rpx;
|
||||
background: #CCCCCC;
|
||||
border-radius: 44rpx;
|
||||
color: white;
|
||||
font-size: 30rpx;
|
||||
text-align: center;
|
||||
line-height: 88rpx;
|
||||
margin: 24rpx auto 0;
|
||||
}
|
||||
.BtnFooter .btn.active.data-v-0e2d1a4f {
|
||||
background-color: #E84134;
|
||||
}
|
Reference in New Issue
Block a user