mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2025-03-01 13:36:55 +08:00
refactor(popover): duration & delay prop default value set to 100
This commit is contained in:
parent
8e2678eb4a
commit
07ba0a55b5
@ -2,6 +2,11 @@
|
||||
|
||||
## Pending
|
||||
|
||||
## Breaking Changes
|
||||
|
||||
- `n-popover` default `duration` is set to `100`.
|
||||
- `n-popover` default `delay` is set to `100`.
|
||||
|
||||
### Feat
|
||||
|
||||
- `n-config-provider` prop `theme-overrides` support inheritance.
|
||||
|
@ -2,6 +2,11 @@
|
||||
|
||||
## Pending
|
||||
|
||||
## Breaking Changes
|
||||
|
||||
- `n-popover` 默认 `duration` 设为 `100`
|
||||
- `n-popover` 默认 `delay` 设为 `100`
|
||||
|
||||
### Feat
|
||||
|
||||
- `n-config-provider` 的 `theme-overrides` 支持继承
|
||||
|
@ -25,10 +25,10 @@ manual-position
|
||||
| --- | --- | --- | --- |
|
||||
| animated | `boolean` | `true` | |
|
||||
| arrow-style | `Object` | `undefined` | |
|
||||
| delay | `number` | `200` | Popover showing delay when trigger is `hover` |
|
||||
| delay | `number` | `100` | Popover showing delay when trigger is `hover` |
|
||||
| disabled | `boolean` | `false` | Whether the popover can't be activated. |
|
||||
| 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` |
|
||||
| duration | `number` | `100` | 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'` | |
|
||||
|
@ -25,10 +25,10 @@ manual-position
|
||||
| --- | --- | --- | --- |
|
||||
| animated | `boolean` | `true` | |
|
||||
| arrow-style | `Object` | `undefined` | |
|
||||
| delay | `number` | `200` | 悬浮触发弹出信息的延迟 |
|
||||
| delay | `number` | `100` | 悬浮触发弹出信息的延迟 |
|
||||
| disabled | `boolean` | `false` | 是否不能激活弹出信息 |
|
||||
| display-directive | `'if' \| 'show'` | `'if'` | 条件渲染使用的指令,`if` 会让内容被使用 `v-if` 渲染,`show` 会让内容被使用 `v-show` 渲染 |
|
||||
| duration | `number` | `200` | 悬浮关闭弹出信息的延迟 |
|
||||
| duration | `number` | `100` | 悬浮关闭弹出信息的延迟 |
|
||||
| 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'` | |
|
||||
|
@ -83,11 +83,11 @@ export const popoverProps = {
|
||||
},
|
||||
delay: {
|
||||
type: Number,
|
||||
default: 200
|
||||
default: 100
|
||||
},
|
||||
duration: {
|
||||
type: Number,
|
||||
default: 200
|
||||
default: 100
|
||||
},
|
||||
raw: {
|
||||
type: Boolean,
|
||||
|
Loading…
Reference in New Issue
Block a user