fix(UI自动化): 导出环境变量改成下拉菜单样式

--bug=1020929 --user=张大海 【系统设置】环境管理-通用配置-鼠标悬浮到导出按钮上未下拉展示 https://www.tapd.cn/55049933/s/1317225
This commit is contained in:
zhangdahai112 2022-12-20 02:21:06 +08:00 committed by zhangdahai112
parent c85972a808
commit bc17173f84
1 changed files with 10 additions and 10 deletions

View File

@ -18,21 +18,18 @@
:content="$t('commons.import')"
@click="importJSON"
/>
<el-popover
v-permission="['PROJECT_ENVIRONMENT:READ+EXPORT']"
placement="bottom"
trigger="hover"
:content="$t('envrionment.export_variable_tip')"
width="300">
<el-dropdown @command="handleExportCommand" class="scenario-ext-btn" trigger="hover"
v-permission="['PROJECT_ENVIRONMENT:READ+EXPORT']">
<ms-table-button
style="margin-left: 10px"
slot="reference"
v-permission="['PROJECT_ENVIRONMENT:READ+EXPORT']"
icon="el-icon-box"
:content="$t('commons.export')"
@click="exportJSON"
/>
</el-popover>
<el-dropdown-menu slot="dropdown">
<el-dropdown-item command="exportApi">{{ $t('envrionment.export_variable_tip') }}</el-dropdown-item>
</el-dropdown-menu>
</el-dropdown>
<el-link
style="margin-left: 10px"
@click="batchAdd"
@ -572,6 +569,9 @@ export default {
}
});
},
handleExportCommand(command){
this.exportJSON();
}
},
created() {
if (this.items.length === 0) {