tm-helpTips 弹出菜单

提醒

本组件1.1.1版本新增。主要应用于,文档说明,解释说明的问号帮助。

🎉目录导航

👉使用方法,跟数1,2,3一样简单


基本示例

<tm-helpTips ment-direction="right" tip-direction="right"  label="每点击一次增加一个积分哦,你知道了吗?">
	<tm-icons name="icon-question-circle"></tm-icons>
</tm-helpTips>
1
2
3
<script>
	export default {
		data() {
			return {
			}
		},
		methods: {}
	}
</script>

1
2
3
4
5
6
7
8
9
10

👉完整的示例


可以复制到页面直接运行

<template>
	<view>
		<tm-menubars title="帮助提示" color="bg-gradient-blue-accent"  :showback="true"></tm-menubars>
		<tm-sheet :shadow="24">
			什么是积分?点击右边问号图标展示
			<tm-helpTips ment-direction="right" tip-direction="right"  label="每点击一次增加一个积分哦,你知道了吗?">
				<tm-icons name="icon-question-circle"></tm-icons>
			</tm-helpTips>
		</tm-sheet>
		<tm-sheet :shadow="24">
			<view class="text-align-center">
				什么是积分?<tm-helpTips color="blue" :show="true" direction="top"  label="每点击一次增加一个积分哦,你知道了吗?">
				<tm-icons name="icon-question-circle"></tm-icons>
			</tm-helpTips>点击问号图标展示
			</view>
			
		</tm-sheet>
	</view>
</template>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<script>
	export default {
		data() {
			return {
			}
		},
		methods: {
			
		}
	}
</script>

1
2
3
4
5
6
7
8
9
10
11
12

👉props属性表

属性名称类型可选值默认值说明
tip-directionStringleft/center/rightcenter指示三角形的方向,小三角也可以,左中右对齐
directionStringtop/bottombottom内容框竖向的弹出方向,向上和向下弹出
ment-directionStringleft/center/rightcenter内容框水平方向的对齐方式,左中右对齐
rang-keyString-title菜单列表数组对象时,需要提供key
icon-colorString任意主题色名称white关闭图标颜色主题名称
colorString任意主题色名称primary主题背景色
blackBooleantrue/falsefalse暗黑模式
showBooleantrue/falsefalse显示菜单,用于默认显示的功能,如需双向绑定使用show.sync,也可不提供
labelString-[]需要显示的内容

👉更新日志

2021年8月20日14:8:5 初始版本。

tmzdy 于 2022/12/7 编辑 报错? | 评论?