uview-plus组件库全面升级更新,订单结算判断支付方式是否可用代码调整,公众号关注二维码修改
This commit is contained in:
@@ -21,6 +21,11 @@ export default {
|
||||
name: '',
|
||||
icon: '',
|
||||
duration: 300,
|
||||
showRight: true
|
||||
showRight: true,
|
||||
titleStyle: {},
|
||||
iconStyle: {},
|
||||
rightIconStyle: {},
|
||||
cellCustomStyle: {},
|
||||
cellCustomClass: ''
|
||||
}
|
||||
}
|
||||
|
||||
@@ -7,6 +7,13 @@ export const props = defineMixin({
|
||||
type: String,
|
||||
default: () => defProps.collapseItem.title
|
||||
},
|
||||
// 标题的样式
|
||||
titleStyle: {
|
||||
type: [Object, String],
|
||||
default: () => {
|
||||
return defProps.collapseItem.titleStyle
|
||||
}
|
||||
},
|
||||
// 标题右侧内容
|
||||
value: {
|
||||
type: String,
|
||||
@@ -62,5 +69,29 @@ export const props = defineMixin({
|
||||
type: Boolean,
|
||||
default: () => defProps.collapseItem.showRight
|
||||
},
|
||||
// 左侧图标样式
|
||||
iconStyle: {
|
||||
type: [Object, String],
|
||||
default: () => {
|
||||
return defProps.collapseItem.iconStyle
|
||||
}
|
||||
},
|
||||
// 右侧箭头图标的样式
|
||||
rightIconStyle: {
|
||||
type: [Object, String],
|
||||
default: () => {
|
||||
return defProps.collapseItem.rightIconStyle
|
||||
}
|
||||
},
|
||||
cellCustomStyle: {
|
||||
type: [Object, String],
|
||||
default: () => {
|
||||
return defProps.collapseItem.cellCustomStyle
|
||||
}
|
||||
},
|
||||
cellCustomClass: {
|
||||
type: String,
|
||||
default: () => defProps.collapseItem.cellCustomClass
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
@@ -11,6 +11,8 @@
|
||||
@click="clickHandler"
|
||||
:arrowDirection="expanded ? 'up' : 'down'"
|
||||
:disabled="disabled"
|
||||
:customClass="cellCustomClass"
|
||||
:customStyle="cellCustomStyle"
|
||||
>
|
||||
<!-- 微信小程序不支持,因为微信中不支持 <slot name="title" #title />的写法 -->
|
||||
<template #title>
|
||||
@@ -22,7 +24,7 @@
|
||||
</template>
|
||||
<template #icon>
|
||||
<slot name="icon">
|
||||
<u-icon v-if="!$slots.icon && icon" :size="22" :name="icon"></u-icon>
|
||||
<up-icon v-if="!$slots.icon && icon" :size="22" :name="icon"></up-icon>
|
||||
</slot>
|
||||
</template>
|
||||
<template #value>
|
||||
@@ -34,7 +36,7 @@
|
||||
</template>
|
||||
<template #right-icon>
|
||||
<template v-if="showRight">
|
||||
<u-icon v-if="!$slots['right-icon']" :size="16" name="arrow-right"></u-icon>
|
||||
<up-icon v-if="!$slots['right-icon']" :size="16" name="arrow-right"></up-icon>
|
||||
<slot name="right-icon">
|
||||
</slot>
|
||||
</template>
|
||||
@@ -223,7 +225,6 @@
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
@import "../../libs/css/components.scss";
|
||||
|
||||
.u-collapse-item {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user