diff --git a/package.json b/package.json index 480ac7961..ef3f8486f 100644 --- a/package.json +++ b/package.json @@ -121,7 +121,7 @@ "vooks": "0.0.8", "vue": "^3.0.5", "vue-router": "^4.0.3", - "vueuc": "^0.1.2" + "vueuc": "^0.1.3" }, "husky": { "hooks": { diff --git a/src/popover/demos/enUS/index.demo-entry.md b/src/popover/demos/enUS/index.demo-entry.md index 0e5d0c20d..67319c21e 100644 --- a/src/popover/demos/enUS/index.demo-entry.md +++ b/src/popover/demos/enUS/index.demo-entry.md @@ -29,6 +29,7 @@ manual-position | display-directive | `'if' \| 'show'` | `'if'` | The conditionally render directive to show popover content. `if` means using `v-if` to render content, `show` means using `v-show` to render content. | | duration | `number` | `200` | Popover vanish delay when trigger is `hover` | | filp | `boolean` | `true` | Whether to filp the popover when there is no space for current placement. | +| overlap | `boolean` | `false` | | | placement | `'top-start' \| 'top' \| 'top-end' \| 'right-start' \| 'right' \| 'right-end' \| 'bottom-start' \| 'bottom' \| 'bottom-end' \| 'left-start' \| 'left' \| 'left-end' \| ` | `'bottom'` | | | raw | `boolean` | `false` | Whether to use no default styles. | | show-arrow | `boolean` | `true` | | diff --git a/src/popover/demos/enUS/placement.demo.md b/src/popover/demos/enUS/placement.demo.md index 1920e05a9..91b9ccd08 100644 --- a/src/popover/demos/enUS/placement.demo.md +++ b/src/popover/demos/enUS/placement.demo.md @@ -1,8 +1,10 @@ # Placement ```html + Overlap Trigger Element +
- +
Oops!
- +
Oops!
- +
Oops!
- +
Oops!
- +
Oops!
- +
Oops!
- +
Oops!
- +
Oops!
- +
Oops!
- +
Oops!
- +
Oops!
- + -
Oops!
+
Oops
``` -```script -console.log('wow') +```js +import { ref } from 'vue' + +export default { + setup () { + return { + overlap: ref(false) + } + } +} ``` ```css diff --git a/src/popover/demos/zhCN/index.demo-entry.md b/src/popover/demos/zhCN/index.demo-entry.md index 84229d15f..92961002b 100644 --- a/src/popover/demos/zhCN/index.demo-entry.md +++ b/src/popover/demos/zhCN/index.demo-entry.md @@ -29,6 +29,7 @@ manual-position | display-directive | `'if' \| 'show'` | `'if'` | 条件渲染使用的指令,`if` 会让内容被使用 `v-if` 渲染,`show` 会让内容被使用 `v-show` 渲染 | | duration | `number` | `200` | 悬浮关闭弹出信息的延迟 | | filp | `boolean` | `true` | 是否在当前放置方式不能提供足够空间的时候调整弹出信息的位置 | +| overlap | `boolean` | `false` | | | placement | `'top-start' \| 'top' \| 'top-end' \| 'right-start' \| 'right' \| 'right-end' \| 'bottom-start' \| 'bottom' \| 'bottom-end' \| 'left-start' \| 'left' \| 'left-end' \| ` | `'bottom'` | | | raw | `boolean` | `false` | 是否不添加默认样式 | | show-arrow | `boolean` | `true` | | diff --git a/src/popover/demos/zhCN/placement.demo.md b/src/popover/demos/zhCN/placement.demo.md index 68f14e3d9..ed5343b9c 100644 --- a/src/popover/demos/zhCN/placement.demo.md +++ b/src/popover/demos/zhCN/placement.demo.md @@ -1,8 +1,10 @@ # 位置 ```html + 覆盖触发元素 +
- +
啊!
- +
啊!
- +
啊!
- +
啊!
- +
啊!
- +
啊!
- +
啊!
- +
啊!
- +
啊!
- +
啊!
- +
啊!
- +