mirror of
https://github.com/jumpserver/lina.git
synced 2025-09-19 01:11:07 +00:00
perf: 修复 asset select
This commit is contained in:
@@ -1,6 +1,13 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="asset-select-dialog">
|
<div class="asset-select-dialog">
|
||||||
<Select2 ref="select2" v-bind="select2Config" @input="onInputChange" @focus.stop="handleFocus" v-on="$listeners" />
|
<Select2
|
||||||
|
ref="select2"
|
||||||
|
v-model="select2Config.value"
|
||||||
|
v-bind="select2Config"
|
||||||
|
@input="onInputChange"
|
||||||
|
@focus.stop="handleFocus"
|
||||||
|
v-on="$listeners"
|
||||||
|
/>
|
||||||
<Dialog
|
<Dialog
|
||||||
v-if="dialogVisible"
|
v-if="dialogVisible"
|
||||||
:title="this.$t('assets.Assets')"
|
:title="this.$t('assets.Assets')"
|
||||||
|
@@ -114,7 +114,8 @@ export default {
|
|||||||
},
|
},
|
||||||
iValue: {
|
iValue: {
|
||||||
set(val) {
|
set(val) {
|
||||||
if (!val || val.length === 0) {
|
const noValue = !this.value || this.value.length === 0
|
||||||
|
if (noValue && !this.initialized) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
this.$emit('input', val)
|
this.$emit('input', val)
|
||||||
|
Reference in New Issue
Block a user