提交 fd794edd 编写于 作者: ibizdev's avatar ibizdev

zhujiamin 发布系统代码 [TrainSys,网页端]

上级 61684a62
...@@ -13,13 +13,13 @@ ...@@ -13,13 +13,13 @@
"dependencies": { "dependencies": {
"@floating-ui/dom": "^1.5.3", "@floating-ui/dom": "^1.5.3",
"@ibiz-template/command": "^0.0.1-beta.50", "@ibiz-template/command": "^0.0.1-beta.50",
"@ibiz-template/controller": "^0.0.1-beta.134", "@ibiz-template/controller": "^0.0.1-beta.135",
"@ibiz-template/core": "^0.0.1-beta.134", "@ibiz-template/core": "^0.0.1-beta.135",
"@ibiz-template/model": "^0.0.1-beta.134", "@ibiz-template/model": "^0.0.1-beta.135",
"@ibiz-template/runtime": "^0.0.1-beta.134", "@ibiz-template/runtime": "^0.0.1-beta.135",
"@ibiz-template/service": "^0.0.1-beta.134", "@ibiz-template/service": "^0.0.1-beta.135",
"@ibiz-template/theme": "^0.0.1-beta.134", "@ibiz-template/theme": "^0.0.1-beta.135",
"@ibiz-template/vue-util": "^0.0.1-beta.134", "@ibiz-template/vue-util": "^0.0.1-beta.135",
"@ibiz/dynamic-model-api": "^2.1.28", "@ibiz/dynamic-model-api": "^2.1.28",
"@riophae/vue-treeselect": "^0.4.0", "@riophae/vue-treeselect": "^0.4.0",
"dayjs": "^1.11.10", "dayjs": "^1.11.10",
...@@ -82,4 +82,4 @@ ...@@ -82,4 +82,4 @@
"*.{ts,vue}": "eslint --fix", "*.{ts,vue}": "eslint --fix",
"*.scss": "stylelint --custom-syntax=postcss-scss" "*.scss": "stylelint --custom-syntax=postcss-scss"
} }
} }
\ No newline at end of file
此差异已折叠。
...@@ -27,7 +27,12 @@ export const AppUser = defineComponent({ ...@@ -27,7 +27,12 @@ export const AppUser = defineComponent({
render() { render() {
return ( return (
<div class={this.ns.b()}> <div class={this.ns.b()}>
<i-dropdown class={this.ns.b('avatar')}> <i-dropdown
class={[
this.ns.b('avatar'),
this.ns.is('disabled', ibiz.env.disableLogout),
]}
>
<span class={this.ns.b('avatar-wrapper')}> <span class={this.ns.b('avatar-wrapper')}>
<i-avatar <i-avatar
size='small' size='small'
...@@ -35,12 +40,14 @@ export const AppUser = defineComponent({ ...@@ -35,12 +40,14 @@ export const AppUser = defineComponent({
/> />
<span class={this.ns.be('avatar', 'name')}>{this.srfusername}</span> <span class={this.ns.be('avatar', 'name')}>{this.srfusername}</span>
</span> </span>
<i-dropdown-menu slot='list'> {ibiz.env.disableLogout ? null : (
<i-dropdown-item> <i-dropdown-menu slot='list'>
<i class='ivu-icon ivu-icon-ios-log-out'></i> <i-dropdown-item>
<span on-click={this.onClick}>退出登录</span> <i class='ivu-icon ivu-icon-ios-log-out'></i>
</i-dropdown-item> <span on-click={this.onClick}>退出登录</span>
</i-dropdown-menu> </i-dropdown-item>
</i-dropdown-menu>
)}
</i-dropdown> </i-dropdown>
</div> </div>
); );
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册