非空判断
This commit is contained in:
parent
12a940a55f
commit
3afdf5c3bc
|
@ -55,7 +55,7 @@
|
||||||
<div class="col-2"> <q-select class="q-pt-md" :label="$t('vertical')"
|
<div class="col-2"> <q-select class="q-pt-md" :label="$t('vertical')"
|
||||||
@update:model-value="(val) => { options_v = val }" :dense="true" filled v-model="options_model_v"
|
@update:model-value="(val) => { options_v = val }" :dense="true" filled v-model="options_model_v"
|
||||||
:options="options_v" emit-value map-options /></div>
|
:options="options_v" emit-value map-options /></div>
|
||||||
<div class="col-2"> <q-input filled type="number" class="q-pt-md" :dense="true"
|
<div class="col-2"> <q-input v-if="value_v[options_model_v]" filled type="number" class="q-pt-md" :dense="true"
|
||||||
v-model="value_v[options_model_v].y" @update:model-value="chang(options_model_v, $event, 'v')" lazy-rules />
|
v-model="value_v[options_model_v].y" @update:model-value="chang(options_model_v, $event, 'v')" lazy-rules />
|
||||||
</div>
|
</div>
|
||||||
<div class="q-pt-md col-2">
|
<div class="q-pt-md col-2">
|
||||||
|
@ -75,7 +75,7 @@
|
||||||
<div class="col-2"> <q-select class="q-pt-md" :label="$t('level')"
|
<div class="col-2"> <q-select class="q-pt-md" :label="$t('level')"
|
||||||
@update:model-value="(val) => { options_h = val }" :dense="true" filled v-model="options_model_h"
|
@update:model-value="(val) => { options_h = val }" :dense="true" filled v-model="options_model_h"
|
||||||
:options="options_h" emit-value map-options /></div>
|
:options="options_h" emit-value map-options /></div>
|
||||||
<div class="col-2"> <q-input filled type="number" class="q-pt-md" :dense="true"
|
<div class="col-2"> <q-input v-if="value_h[options_model_h]" filled type="number" class="q-pt-md" :dense="true"
|
||||||
v-model="value_h[options_model_h].x" @update:model-value="chang(options_model_h, $event, 'h')" lazy-rules />
|
v-model="value_h[options_model_h].x" @update:model-value="chang(options_model_h, $event, 'h')" lazy-rules />
|
||||||
</div>
|
</div>
|
||||||
<div class="q-pt-md col-2">
|
<div class="q-pt-md col-2">
|
||||||
|
|
Loading…
Reference in New Issue