上传
This commit is contained in:
@@ -1,36 +0,0 @@
|
||||
"use strict";
|
||||
const common_vendor = require("../common/vendor.js");
|
||||
const _sfc_main = {
|
||||
__name: "ListCol",
|
||||
props: {
|
||||
labelWidth: {
|
||||
type: Number,
|
||||
default: 200
|
||||
},
|
||||
data: {
|
||||
type: Object,
|
||||
require: true
|
||||
},
|
||||
column: {
|
||||
type: Array,
|
||||
require: true
|
||||
}
|
||||
},
|
||||
setup(__props) {
|
||||
const props = __props;
|
||||
return (_ctx, _cache) => {
|
||||
return {
|
||||
a: common_vendor.f(props.column, (col, idx, i0) => {
|
||||
return {
|
||||
a: common_vendor.t(col.name),
|
||||
b: common_vendor.t(props.data[col.value])
|
||||
};
|
||||
}),
|
||||
b: `${props.labelWidth}rpx`,
|
||||
c: `calc(100% - ${props.labelWidth}rpx)`
|
||||
};
|
||||
};
|
||||
}
|
||||
};
|
||||
wx.createComponent(_sfc_main);
|
||||
//# sourceMappingURL=../../.sourcemap/mp-weixin/components/ListCol.js.map
|
||||
@@ -1,4 +0,0 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {}
|
||||
}
|
||||
@@ -1 +0,0 @@
|
||||
<view class="col u-margin-30 u-padding-20 box-shadow"><view wx:for="{{a}}" wx:for-item="col" class="row u-flex"><view class="row-left" style="{{'width:' + b}}">{{col.a}}</view><view class="row-right" style="{{'width:' + c}}">{{col.b}}</view></view></view>
|
||||
@@ -1,87 +0,0 @@
|
||||
/**
|
||||
* 这里是uni-app内置的常用样式变量
|
||||
*
|
||||
* uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
|
||||
* 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
|
||||
*
|
||||
*/
|
||||
/**
|
||||
* 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
|
||||
*
|
||||
* 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
|
||||
*/
|
||||
:root,
|
||||
page {
|
||||
/* 纯色 */
|
||||
--u-white-color: #ffffff;
|
||||
--u-black-color: #000000;
|
||||
--u-main-color: #303133;
|
||||
--u-content-color: #606266;
|
||||
--u-tips-color: #909399;
|
||||
--u-light-color: #c0c4cc;
|
||||
--u-border-color: #e4e7ed;
|
||||
--u-divider-color: #e4e7ed;
|
||||
--u-mask-color: rgba(0, 0, 0, 0.4);
|
||||
--u-shadow-color: rgba(0, 0, 0, 0.1);
|
||||
/* 背景色 */
|
||||
--u-bg-color: #f3f4f6;
|
||||
--u-bg-white: #ffffff;
|
||||
--u-bg-gray-light: #f1f1f1;
|
||||
--u-bg-gray-dark: #2f343c;
|
||||
--u-bg-black: #000000;
|
||||
/* 主色 */
|
||||
--u-type-primary: #17447a;
|
||||
--u-type-primary-light: #d5dde7;
|
||||
--u-type-primary-disabled: #8fa6c3;
|
||||
--u-type-primary-dark: #123662;
|
||||
/* 警告色 */
|
||||
--u-type-warning: #ff9900;
|
||||
--u-type-warning-disabled: #fcbd71;
|
||||
--u-type-warning-dark: #f29100;
|
||||
--u-type-warning-light: #fdf6ec;
|
||||
/* 成功色 */
|
||||
--u-type-success: #19be6b;
|
||||
--u-type-success-disabled: #71d5a1;
|
||||
--u-type-success-dark: #18b566;
|
||||
--u-type-success-light: #dbf1e1;
|
||||
/* 错误色 */
|
||||
--u-type-error: #fa3534;
|
||||
--u-type-error-disabled: #fab6b6;
|
||||
--u-type-error-dark: #dd6161;
|
||||
--u-type-error-light: #fef0f0;
|
||||
/* 信息色 */
|
||||
--u-type-info: #909399;
|
||||
--u-type-info-disabled: #c8c9cc;
|
||||
--u-type-info-dark: #82848a;
|
||||
--u-type-info-light: #f4f4f5;
|
||||
}
|
||||
|
||||
/* 颜色变量 */
|
||||
/* 行为相关颜色 */
|
||||
/* 文字基本颜色 */
|
||||
/* 背景颜色 */
|
||||
/* 边框颜色 */
|
||||
/* 尺寸变量 */
|
||||
/* 文字尺寸 */
|
||||
/* 图片尺寸 */
|
||||
/* Border Radius */
|
||||
/* 水平间距 */
|
||||
/* 垂直间距 */
|
||||
/* 透明度 */
|
||||
/* 文章场景相关 */
|
||||
.col {
|
||||
background-color: #ffffff;
|
||||
border-radius: 8rpx;
|
||||
}
|
||||
.col .row {
|
||||
padding: 12rpx 0;
|
||||
align-items: flex-start;
|
||||
}
|
||||
.col .row-left {
|
||||
color: #333333;
|
||||
}
|
||||
.col .row-right {
|
||||
padding-left: 20rpx;
|
||||
overflow-wrap: break-word;
|
||||
color: #999999;
|
||||
}
|
||||
+1
-72
@@ -1,73 +1,2 @@
|
||||
"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);
|
||||
"use strict";const e=require("../common/vendor.js");Array||e.resolveComponent("u-loading")();const n=()=>"../uni_modules/uview-pro/components/u-loading/u-loading.js";Math||n();const i={__name:"chartCard",props:{height:{type:Number,default:0},bgColor:{type:String,default:"#ffffff"},loading:{type:Boolean,default:!1},margin:{type:String,default:"0"},padding:{type:String,default:"20rpx"},title:{type:String,default:""},titFontColor:{type:String,default:"#333333"},showTitLine:{type:Boolean,default:!1}},setup(o){const t=o;return(a,r)=>e.e({a:t.title},t.title?{b:e.t(t.title),c:t.titFontColor,d:t.showTitLine?"1rpx solid var(--u-border-color)":"none"}:{},{e:e.p({size:"40",mode:"flower"}),f:t.loading,g:t.height>0?`${t.height}rpx`:"auto",h:t.bgColor,i:t.margin,j:t.padding})}};wx.createComponent(i);
|
||||
//# sourceMappingURL=../../.sourcemap/mp-weixin/components/chartCard.js.map
|
||||
|
||||
+1
-86
@@ -1,86 +1 @@
|
||||
/**
|
||||
* 这里是uni-app内置的常用样式变量
|
||||
*
|
||||
* uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
|
||||
* 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
|
||||
*
|
||||
*/
|
||||
/**
|
||||
* 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
|
||||
*
|
||||
* 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
|
||||
*/
|
||||
:root,
|
||||
page {
|
||||
/* 纯色 */
|
||||
--u-white-color: #ffffff;
|
||||
--u-black-color: #000000;
|
||||
--u-main-color: #303133;
|
||||
--u-content-color: #606266;
|
||||
--u-tips-color: #909399;
|
||||
--u-light-color: #c0c4cc;
|
||||
--u-border-color: #e4e7ed;
|
||||
--u-divider-color: #e4e7ed;
|
||||
--u-mask-color: rgba(0, 0, 0, 0.4);
|
||||
--u-shadow-color: rgba(0, 0, 0, 0.1);
|
||||
/* 背景色 */
|
||||
--u-bg-color: #f3f4f6;
|
||||
--u-bg-white: #ffffff;
|
||||
--u-bg-gray-light: #f1f1f1;
|
||||
--u-bg-gray-dark: #2f343c;
|
||||
--u-bg-black: #000000;
|
||||
/* 主色 */
|
||||
--u-type-primary: #17447a;
|
||||
--u-type-primary-light: #d5dde7;
|
||||
--u-type-primary-disabled: #8fa6c3;
|
||||
--u-type-primary-dark: #123662;
|
||||
/* 警告色 */
|
||||
--u-type-warning: #ff9900;
|
||||
--u-type-warning-disabled: #fcbd71;
|
||||
--u-type-warning-dark: #f29100;
|
||||
--u-type-warning-light: #fdf6ec;
|
||||
/* 成功色 */
|
||||
--u-type-success: #19be6b;
|
||||
--u-type-success-disabled: #71d5a1;
|
||||
--u-type-success-dark: #18b566;
|
||||
--u-type-success-light: #dbf1e1;
|
||||
/* 错误色 */
|
||||
--u-type-error: #fa3534;
|
||||
--u-type-error-disabled: #fab6b6;
|
||||
--u-type-error-dark: #dd6161;
|
||||
--u-type-error-light: #fef0f0;
|
||||
/* 信息色 */
|
||||
--u-type-info: #909399;
|
||||
--u-type-info-disabled: #c8c9cc;
|
||||
--u-type-info-dark: #82848a;
|
||||
--u-type-info-light: #f4f4f5;
|
||||
}
|
||||
|
||||
/* 颜色变量 */
|
||||
/* 行为相关颜色 */
|
||||
/* 文字基本颜色 */
|
||||
/* 背景颜色 */
|
||||
/* 边框颜色 */
|
||||
/* 尺寸变量 */
|
||||
/* 文字尺寸 */
|
||||
/* 图片尺寸 */
|
||||
/* Border Radius */
|
||||
/* 水平间距 */
|
||||
/* 垂直间距 */
|
||||
/* 透明度 */
|
||||
/* 文章场景相关 */
|
||||
.coust-chart {
|
||||
width: 100%;
|
||||
position: relative;
|
||||
}
|
||||
.coust-chart-tit {
|
||||
font-size: 28rpx;
|
||||
font-weight: 700;
|
||||
padding-bottom: 20rpx;
|
||||
}
|
||||
.coust-chart .coust-loading {
|
||||
position: absolute;
|
||||
left: 50%;
|
||||
transform: translate(-50%, -50%);
|
||||
top: 50%;
|
||||
}
|
||||
:root,page{--u-white-color: #ffffff;--u-black-color: #000000;--u-main-color: #303133;--u-content-color: #606266;--u-tips-color: #909399;--u-light-color: #c0c4cc;--u-border-color: #e4e7ed;--u-divider-color: #e4e7ed;--u-mask-color: rgba(0, 0, 0, .4);--u-shadow-color: rgba(0, 0, 0, .1);--u-bg-color: #f3f4f6;--u-bg-white: #ffffff;--u-bg-gray-light: #f1f1f1;--u-bg-gray-dark: #2f343c;--u-bg-black: #000000;--u-type-primary: #17447a;--u-type-primary-light: #d5dde7;--u-type-primary-disabled: #8fa6c3;--u-type-primary-dark: #123662;--u-type-warning: #ff9900;--u-type-warning-disabled: #fcbd71;--u-type-warning-dark: #f29100;--u-type-warning-light: #fdf6ec;--u-type-success: #19be6b;--u-type-success-disabled: #71d5a1;--u-type-success-dark: #18b566;--u-type-success-light: #dbf1e1;--u-type-error: #fa3534;--u-type-error-disabled: #fab6b6;--u-type-error-dark: #dd6161;--u-type-error-light: #fef0f0;--u-type-info: #909399;--u-type-info-disabled: #c8c9cc;--u-type-info-dark: #82848a;--u-type-info-light: #f4f4f5}.coust-chart{width:100%;position:relative}.coust-chart-tit{font-size:28rpx;font-weight:700;padding-bottom:20rpx}.coust-chart .coust-loading{position:absolute;left:50%;transform:translate(-50%,-50%);top:50%}
|
||||
Reference in New Issue
Block a user