uview-plus组件库全面升级更新,订单结算判断支付方式是否可用代码调整,公众号关注二维码修改

This commit is contained in:
2025-10-21 10:44:31 +08:00
parent 5d98b7efc2
commit 5f3a307fec
395 changed files with 31264 additions and 2477 deletions

View File

@@ -0,0 +1,40 @@
/*
* @Author : jry
* @Description :
* @version : 3.0
* @Date : 2025-04-26 16:37:21
* @LastAuthor : jry
* @lastTime : 2025-04-26 16:37:21
* @FilePath : /uview-plus/libs/config/props/card.js
*/
export default {
// card组件的props
card: {
full: false,
title: '',
titleColor: '#303133',
titleSize: '15px',
subTitle: '',
subTitleColor: '#909399',
subTitleSize: '13px',
border: true,
index: '',
margin: '15px',
borderRadius: '8px',
headStyle: {},
bodyStyle: {},
footStyle: {},
headBorderBottom: true,
footBorderTop: true,
thumb: '',
thumbWidth: '30px',
thumbCircle: false,
padding: '15px',
paddingHead: '',
paddingBody: '',
paddingFoot: '',
showHead: true,
showFoot: true,
boxShadow: 'none'
}
}

View File

@@ -6,135 +6,129 @@ export const propsCard = defineMixin({
// 与屏幕两侧是否留空隙
full: {
type: Boolean,
default: false
default: () => defProps.card.full
},
// 标题
title: {
type: String,
default: ''
default: () => defProps.card.title
},
// 标题颜色
titleColor: {
type: String,
default: '#303133'
default: () => defProps.card.titleColor
},
// 标题字体大小
titleSize: {
type: [Number, String],
default: '15px'
default: () => defProps.card.titleSize
},
// 副标题
subTitle: {
type: String,
default: ''
default: () => defProps.card.subTitle
},
// 副标题颜色
subTitleColor: {
type: String,
default: '#909399'
default: () => defProps.card.subTitleColor
},
// 副标题字体大小
subTitleSize: {
type: [Number, String],
default: '13'
default: () => defProps.card.subTitleSize
},
// 是否显示外部边框只对full=false时有效(卡片与边框有空隙时)
border: {
type: Boolean,
default: true
default: () => defProps.card.border
},
// 用于标识点击了第几个
index: {
type: [Number, String, Object],
default: ''
default: () => defProps.card.index
},
// 用于隔开上下左右的边距,带单位的写法,如:"30px 30px""20px 20px 30px 30px"
margin: {
type: String,
default: '15px'
default: () => defProps.card.margin
},
// card卡片的圆角
borderRadius: {
type: [Number, String],
default: '8px'
default: () => defProps.card.borderRadius
},
// 头部自定义样式,对象形式
headStyle: {
type: Object,
default() {
return {};
}
default: () => defProps.card.headStyle
},
// 主体自定义样式,对象形式
bodyStyle: {
type: Object,
default() {
return {};
}
default: () => defProps.card.bodyStyle
},
// 底部自定义样式,对象形式
footStyle: {
type: Object,
default() {
return {};
}
default: () => defProps.card.footStyle
},
// 头部是否下边框
headBorderBottom: {
type: Boolean,
default: true
default: () => defProps.card.headBorderBottom
},
// 底部是否有上边框
footBorderTop: {
type: Boolean,
default: true
default: () => defProps.card.footBorderTop
},
// 标题左边的缩略图
thumb: {
type: String,
default: ''
default: () => defProps.card.thumb
},
// 缩略图宽高
thumbWidth: {
type: [String, Number],
default: '30px'
default: () => defProps.card.thumbWidth
},
// 缩略图是否为圆形
thumbCircle: {
type: Boolean,
default: false
default: () => defProps.card.thumbCircle
},
// 给headbodyfoot的内边距
padding: {
type: [String, Number],
default: '15px'
default: () => defProps.card.padding
},
paddingHead: {
type: [String, Number],
default: ''
default: () => defProps.card.paddingHead
},
paddingBody: {
type: [String, Number],
default: ''
default: () => defProps.card.paddingBody
},
paddingFoot: {
type: [String, Number],
default: ''
default: () => defProps.card.paddingFoot
},
// 是否显示头部
showHead: {
type: Boolean,
default: true
default: () => defProps.card.showHead
},
// 是否显示尾部
showFoot: {
type: Boolean,
default: true
default: () => defProps.card.showFoot
},
// 卡片外围阴影,字符串形式
boxShadow: {
type: String,
default: 'none'
default: () => defProps.card.boxShadow
}
}
})

View File

@@ -136,8 +136,6 @@
</script>
<style lang="scss" scoped>
@import "../../libs/css/components.scss";
.u-card {
position: relative;
overflow: hidden;