mirror of
https://gitee.com/fit2cloud-feizhiyun/MeterSphere.git
synced 2024-12-05 05:29:29 +08:00
Merge remote-tracking branch 'origin/v1.4' into v1.4
This commit is contained in:
commit
41df7ed375
@ -1,5 +1,5 @@
|
||||
<template>
|
||||
<div class="variable-input">
|
||||
<div class="variable-input" :class="{'show-copy': !showCopy}">
|
||||
<el-input class="el-input__inner_pd" :disabled="isReadOnly" :value="value" v-bind="$attrs" :size="size" @change="change" @input="input"/>
|
||||
<div :class="{'hidden': !showVariable}" class="variable-combine" v-if="value">
|
||||
<div v-if="showCopy" class="variable">{{variable}}</div>
|
||||
@ -75,13 +75,20 @@
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
|
||||
.variable-input {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.el-input__inner_pd >>> .el-input__inner {
|
||||
padding-right: 135px;
|
||||
}
|
||||
|
||||
.show-copy .el-input__inner_pd >>> .el-input__inner {
|
||||
padding-right: 0px;
|
||||
}
|
||||
|
||||
|
||||
.variable-combine {
|
||||
color: #7F7F7F;
|
||||
max-width: 80px;
|
||||
|
Loading…
Reference in New Issue
Block a user