This commit is contained in:
2025-08-12 15:04:01 +08:00
parent df3f5f5269
commit 6708fb8eeb
544 changed files with 75169 additions and 17 deletions
@@ -0,0 +1,81 @@
export default {
props: {
// 需要显示的提示文字
text: {
type: [String, Number],
default() {
return uni.$u.props.tooltip.text
}
},
// 点击复制按钮时,复制的文本,为空则使用text值
copyText: {
type: [String, Number],
default() {
return uni.$u.props.tooltip.copyText
}
},
// 文本大小
size: {
type: [String, Number],
default() {
return uni.$u.props.tooltip.size
}
},
// 字体颜色
color: {
type: String,
default() {
return uni.$u.props.tooltip.color
}
},
// 弹出提示框时,文本的背景色
bgColor: {
type: String,
default() {
return uni.$u.props.tooltip.bgColor
}
},
// 弹出提示的方向,top-上方,bottom-下方
direction: {
type: String,
default() {
return uni.$u.props.tooltip.direction
}
},
// 弹出提示的z-index,nvue无效
zIndex: {
type: [String, Number],
default() {
return uni.$u.props.tooltip.zIndex
}
},
// 是否显示复制按钮
showCopy: {
type: Boolean,
default() {
return uni.$u.props.tooltip.showCopy
}
},
// 扩展的按钮组
buttons: {
type: Array,
default() {
return uni.$u.props.tooltip.buttons
}
},
// 是否显示透明遮罩以防止触摸穿透
overlay: {
type: Boolean,
default() {
return uni.$u.props.tooltip.overlay
}
},
// 是否显示复制成功或者失败的toast
showToast: {
type: Boolean,
default() {
return uni.$u.props.tooltip.showToast
}
}
}
}