From d1448cb0ef10f358bb7bddb4e1ec268515e0b787 Mon Sep 17 00:00:00 2001 From: gaoluyang <2820782392@qq.com> Date: 星期二, 15 七月 2025 11:46:57 +0800 Subject: [PATCH] 项目初始化 --- uni_modules/uview-ui/components/u-tooltip/props.js | 59 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 59 insertions(+), 0 deletions(-) diff --git a/uni_modules/uview-ui/components/u-tooltip/props.js b/uni_modules/uview-ui/components/u-tooltip/props.js new file mode 100644 index 0000000..16aecbc --- /dev/null +++ b/uni_modules/uview-ui/components/u-tooltip/props.js @@ -0,0 +1,59 @@ +export default { + props: { + // 闇�瑕佹樉绀虹殑鎻愮ず鏂囧瓧 + text: { + type: [String, Number], + default: uni.$u.props.tooltip.text + }, + // 鐐瑰嚮澶嶅埗鎸夐挳鏃讹紝澶嶅埗鐨勬枃鏈紝涓虹┖鍒欎娇鐢╰ext鍊� + copyText: { + type: [String, Number], + default: uni.$u.props.tooltip.copyText + }, + // 鏂囨湰澶у皬 + size: { + type: [String, Number], + default: uni.$u.props.tooltip.size + }, + // 瀛椾綋棰滆壊 + color: { + type: String, + default: uni.$u.props.tooltip.color + }, + // 寮瑰嚭鎻愮ず妗嗘椂锛屾枃鏈殑鑳屾櫙鑹� + bgColor: { + type: String, + default: uni.$u.props.tooltip.bgColor + }, + // 寮瑰嚭鎻愮ず鐨勬柟鍚戯紝top-涓婃柟锛宐ottom-涓嬫柟 + direction: { + type: String, + default: uni.$u.props.tooltip.direction + }, + // 寮瑰嚭鎻愮ず鐨剒-index锛宯vue鏃犳晥 + zIndex: { + type: [String, Number], + default: uni.$u.props.tooltip.zIndex + }, + // 鏄惁鏄剧ず澶嶅埗鎸夐挳 + showCopy: { + type: Boolean, + default: uni.$u.props.tooltip.showCopy + }, + // 鎵╁睍鐨勬寜閽粍 + buttons: { + type: Array, + default: uni.$u.props.tooltip.buttons + }, + // 鏄惁鏄剧ず閫忔槑閬僵浠ラ槻姝㈣Е鎽哥┛閫� + overlay: { + type: Boolean, + default: uni.$u.props.tooltip.overlay + }, + // 鏄惁鏄剧ず澶嶅埗鎴愬姛鎴栬�呭け璐ョ殑toast + showToast: { + type: Boolean, + default: uni.$u.props.tooltip.showToast + } + } +} -- Gitblit v1.9.3