$ cnpm install @uyun/ec-no-permission-warn
产品需要统一化的无权限提示组件。
作者:张淑峰
当用户进入产品,但是没有任何功能权限时需要提醒的内容。
属性 | 说明 | 类型 | 默认值 |
---|---|---|---|
seconds | 自动跳转倒计时 | number | 6 |
language | 语种 | en_US 或 zh_CN | cookie附带的language字段或者zh_CN |
href | 跳转后的地址 | string | ${ip}/tenant |
showBackground | 是否有背景色 | bool | true |
redirect | 是否需要跳转 | bool | true |
directory | 字典 | object | 如上述图所示 |
directory.en_US | 英文字典 | object | |
directory.en_US.title | 无权限标题(英文) | string | "This role has not been authorized." |
directory.en_US.description | 无权限描述(英文) | string | "The current role does not have permission to access this menu, please contact the administrator for authorization." |
directory.en_US.timeWarn | 无权限倒计时,{seconds}为具体倒计时的值 | string | "After {seconds} seconds we will automatically go back to Apps list." |
directory.en_US.title | 无权限跳转按钮标题(英文) | string | "Go back immediately" |
directory.zh_CN | 中文字典 | object | |
directory.zh_CN.title | 无权限标题(中文) | string | "该角色尚未授权" |
directory.zh_CN.description | 无权限描述(中文) | string | "您当前的角色无权访问本模块,请联系管理员进行授权" |
directory.zh_CN.timeWarn | 无权限倒计时,{seconds}为具体倒计时的值 | string | "{seconds}秒后自动跳到应用列表" |
directory.zh_CN.title | 无权限跳转按钮标题(中文) | string | "直接返回" |
Copyright 2013 - present © cnpmjs.org