|  | 2 년 전 | |
|---|---|---|
| .. | ||
| components | 2 년 전 | |
| changelog.md | 2 년 전 | |
| package.json | 2 년 전 | |
| readme.md | 2 년 전 | |
基于uni-app开发的一个普通的提示组件,功能点击提示
| 参数 | 说明 | 类型 | 可选值 | 默认值 | 
|---|---|---|---|---|
| visible | 是否显示 tooltip,支持 .sync 修饰符 | Boolean | visible.sync | false | 
| content | 显示的内容,也可以通过 slot#content | String | -- | ' ' | 
| color | 自定义主题颜色 | String | '#303133' | '#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 | 
| 参数 | 说明 | 
|---|---|
| content | 显示提示框得内容 | 
因为uniapp 中小程序中没有window对象,需手动调用 关闭
 第一种办法关闭:this.$refs.tooltip.close()
 第二种办法关闭:visible.sync = false