CNCEC_APP/unpackage/dist/dev/mp-weixin/components/chartCard.js

74 lines
1.6 KiB
JavaScript

"use strict";
const common_vendor = require("../common/vendor.js");
if (!Array) {
const _easycom_u_loading2 = common_vendor.resolveComponent("u-loading");
_easycom_u_loading2();
}
const _easycom_u_loading = () => "../uni_modules/uview-pro/components/u-loading/u-loading.js";
if (!Math) {
_easycom_u_loading();
}
const _sfc_main = {
__name: "chartCard",
props: {
height: {
type: Number,
default: 0
},
bgColor: {
type: String,
default: "#ffffff"
},
loading: {
type: Boolean,
default: false
},
margin: {
type: String,
default: "0"
},
padding: {
type: String,
default: "20rpx"
},
title: {
type: String,
default: ""
},
// titFontSize: {
// },
titFontColor: {
type: String,
default: "#333333"
},
showTitLine: {
type: Boolean,
default: false
}
},
setup(__props) {
const props = __props;
return (_ctx, _cache) => {
return common_vendor.e({
a: props.title
}, props.title ? {
b: common_vendor.t(props.title),
c: props.titFontColor,
d: props.showTitLine ? "1rpx solid var(--u-border-color)" : "none"
} : {}, {
e: common_vendor.p({
size: "40",
mode: "flower"
}),
f: props.loading,
g: props.height > 0 ? `${props.height}rpx` : "auto",
h: props.bgColor,
i: props.margin,
j: props.padding
});
};
}
};
wx.createComponent(_sfc_main);
//# sourceMappingURL=../../.sourcemap/mp-weixin/components/chartCard.js.map