mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-01-31 14:08:06 +08:00
style: 修改网站运行环境下拉列表样式 (#2503)
This commit is contained in:
parent
23ed80298e
commit
2e1e76b226
@ -153,7 +153,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div v-if="website.type === 'runtime'">
|
<div v-if="website.type === 'runtime'">
|
||||||
<el-row :gutter="20">
|
<el-row :gutter="20">
|
||||||
<el-col :span="12">
|
<el-col :span="8">
|
||||||
<el-form-item :label="$t('commons.table.type')" prop="runtimeType">
|
<el-form-item :label="$t('commons.table.type')" prop="runtimeType">
|
||||||
<el-select v-model="website.runtimeType" @change="changeRuntimeType()">
|
<el-select v-model="website.runtimeType" @change="changeRuntimeType()">
|
||||||
<el-option label="PHP" value="php"></el-option>
|
<el-option label="PHP" value="php"></el-option>
|
||||||
@ -161,7 +161,7 @@
|
|||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="12">
|
<el-col :span="16">
|
||||||
<el-form-item :label="$t('runtime.runtime')" prop="runtimeID">
|
<el-form-item :label="$t('runtime.runtime')" prop="runtimeID">
|
||||||
<el-select
|
<el-select
|
||||||
v-model="website.runtimeID"
|
v-model="website.runtimeID"
|
||||||
@ -175,8 +175,12 @@
|
|||||||
:value="run.id"
|
:value="run.id"
|
||||||
>
|
>
|
||||||
<el-row>
|
<el-row>
|
||||||
<el-col :span="8">{{ run.name }}</el-col>
|
<el-col :span="14">
|
||||||
<el-col :span="12">
|
<span class="runtimeName">
|
||||||
|
{{ run.name }}
|
||||||
|
</span>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="10">
|
||||||
{{ ' [' + $t('runtime.' + run.resource) + ']' }}
|
{{ ' [' + $t('runtime.' + run.resource) + ']' }}
|
||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
@ -613,3 +617,13 @@ defineExpose({
|
|||||||
acceptParams,
|
acceptParams,
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
<style lang="scss" scoped>
|
||||||
|
.runtimeName {
|
||||||
|
width: 250px;
|
||||||
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
white-space: nowrap;
|
||||||
|
display: inline-block;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user