基于uni-app开发的一个普通的提示组件,功能点击提示
参数 | 说明 | 类型 | 可选值 | 默认值 | 是否必须 |
---|
| visible | 是否显示 tooltip,支持 .sync 修饰符 | String |visible.sync | -- |
| content | 显示的内容,也可以通过 slot#content | String |-- | -- |
| color | 自定义主题颜色| String |'#303133' | -- |
| placement | Tooltip 的出现位置 | String |top/top-start/top-end/bottom/bottom-start/bottom-end/left/left-start/left-end/right/right-start/right-end | top |
因为uniapp 中小程序中没有window对象,需手动调用 关闭
this.$refs.tooltip.close()