fix 83033

This commit is contained in:
赵霄
2024-03-26 16:38:57 +08:00
parent c7ec5f0e8f
commit fe20f833e8
+14 -3
View File
@@ -8,13 +8,19 @@
:disabled="disabled || selectOnly"
:max-length="500"
:placeholder="placeholder">
<a-icon v-if="nameStr || value" slot="suffix" class="close-icon" type="close-circle" theme="filled" @click="clearInput" />
<a-icon v-if="(nameStr || value) && !disabled" slot="suffix" class="close-icon" type="close-circle" theme="filled" @click="clearInput" />
</a-input>
<a-button v-if="!disabled" type="primary" class="button-box" @click="standardClick">
{{this.$t('standardSelect.standardSelection')}}
{{ $t('standardSelect.standardSelection') }}
</a-button>
</div>
<standard-selection-modal ref="standardSelectionModal" v-bind="$attrs" :value="value" @change="modalInput" @nameChange="modalNameChange" @listChange="modalListChange"></standard-selection-modal>
<standard-selection-modal ref="standardSelectionModal"
v-bind="$attrs"
:value="value"
@change="modalInput"
@nameChange="modalNameChange"
@listChange="modalListChange"></standard-selection-modal>
</div>
</template>
@@ -95,17 +101,21 @@ export default {
<style scoped lang="less">
@import '~@assets/less/common.less';
.selection-wrapper {
height: 40px;
line-height: 40px;
}
.box-title-text {
height: 100%;
display: flex;
align-items: center;
.box-input {
width: 100%;
}
.button-box {
margin-left: 10px;
}
@@ -116,6 +126,7 @@ export default {
color: rgba(0, 0, 0, 0.25);
transition: color 0.3s;
}
.close-icon:hover {
color: rgba(0, 0, 0, 0.45);
}