fix[permission]: directive demo typo
This commit is contained in:
parent
4fc25241fe
commit
20aad46416
|
@ -1,16 +1,19 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="app-container">
|
<div class="app-container">
|
||||||
<switch-roles @change="handleRolesChange" />
|
<switch-roles @change="handleRolesChange" />
|
||||||
|
|
||||||
<div :key="key" style="margin-top:30px;">
|
<div :key="key" style="margin-top:30px;">
|
||||||
<span v-permission="['admin']" class="permission-alert">
|
<span v-permission="['admin']" class="permission-alert">
|
||||||
Only <el-tag class="permission-tag" size="small">admin</el-tag> can see this
|
Only
|
||||||
|
<el-tag class="permission-tag" size="small">admin</el-tag> can see this
|
||||||
</span>
|
</span>
|
||||||
<span v-permission="['editor']" class="permission-alert">
|
<span v-permission="['editor']" class="permission-alert">
|
||||||
Only <el-tag class="permission-tag" size="small">editor</el-tag> can see this
|
Only
|
||||||
|
<el-tag class="permission-tag" size="small">editor</el-tag> can see this
|
||||||
</span>
|
</span>
|
||||||
<span v-permission="[]" class="permission-alert">
|
<span v-permission="['admin','editor']" class="permission-alert">
|
||||||
Both <el-tag class="permission-tag" size="small">admin</el-tag> and <el-tag class="permission-tag" size="small">editor</el-tag> can see this
|
Both
|
||||||
|
<el-tag class="permission-tag" size="small">admin</el-tag> and
|
||||||
|
<el-tag class="permission-tag" size="small">editor</el-tag> can see this
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue