Files
frontend-app/uni_modules/uview-plus/components/u-gap/props.js
T
2025-03-20 08:46:07 +08:00

27 lines
786 B
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
import { defineMixin } from '../../libs/vue'
import defProps from '../../libs/config/props.js'
export const props = defineMixin({
props: {
// 背景颜色(默认transparent)
bgColor: {
type: String,
default: () => defProps.gap.bgColor
},
// 分割槽高度,单位px(默认30)
height: {
type: [String, Number],
default: () => defProps.gap.height
},
// 与上一个组件的距离
marginTop: {
type: [String, Number],
default: () => defProps.gap.marginTop
},
// 与下一个组件的距离
marginBottom: {
type: [String, Number],
default: () => defProps.gap.marginBottom
}
}
})