From 56cbdef95b347f415161a6978fcd687bc73ddd04 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E5=A5=95?= Date: Fri, 27 Apr 2018 12:27:41 +0800 Subject: [PATCH] Docs: update popover and table (#10910) --- examples/docs/en-US/popover.md | 20 ++++++++------------ examples/docs/en-US/table.md | 2 +- examples/docs/es/popover.md | 19 +++++++------------ examples/docs/es/table.md | 2 +- examples/docs/zh-CN/popover.md | 20 ++++++++------------ examples/docs/zh-CN/table.md | 2 +- 6 files changed, 26 insertions(+), 39 deletions(-) diff --git a/examples/docs/en-US/popover.md b/examples/docs/en-US/popover.md index ce1f2a07c..b25b99fda 100644 --- a/examples/docs/en-US/popover.md +++ b/examples/docs/en-US/popover.md @@ -100,37 +100,37 @@ Similar to Tooltip, Popover is also built with `Vue-popper`. So for some duplicated attributes, please refer to the documentation of Tooltip. -:::demo Add `ref` in your popover, then in your button, use `v-popover` directive to link the button and the popover. The attribute `trigger` is used to define how popover is triggered: `hover`, `click` or `focus`. Alternatively, you can specify reference using a named `slot`. +:::demo The `trigger` attribute is used to define how popover is triggered: `hover`, `click`, `focus` or `manual`. As for the triggering element, you can write it in two different ways: use the `slot="reference"` named slot, or use the `v-popover` directive and set it to Popover's `ref`. ```html + Hover to activate + Click to activate -Hover to activate -Click to activate - Focus to activate +Focus to activate + ``` ::: @@ -142,7 +142,6 @@ Other components can be nested in popover. Following is an example of nested tab ```html @@ -151,10 +150,9 @@ Other components can be nested in popover. Following is an example of nested tab + Click to activate -Click to activate -