Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update 05-variable-template.md #353

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -90,3 +90,11 @@ permalink: /guide/ee-tenant/dashboard/variable-template/
模板变量引用成功后,则可在视图的顶部改变模板变量的值,来快速切换视图的数据了。

![5_13.png](https://yunshan-guangzhou.oss-cn-beijing.aliyuncs.com/pub/pic/2023091865082719abddf.png)

## 从 URL 设置选中的模板变量值

::: warning Warning
该功能不是对外的标准功能,对外提供需要单独验证功能。
:::

新建一个名字叫 `变量名称` 的变量,子视图引用模板变量。然后在URL里添加 &template={"value":[2,3,4]},子视图中就会使用对应的变量。

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

&template={"value":[2,3,4]} 这一段用代码块引起来吧