|
|
@ -12,23 +12,23 @@ |
|
|
|
<td> |
|
|
|
<div class="inline-block ml-2 relative" v-for="actionParam in action.params" :key="actionParam.key"> |
|
|
|
<div class="action-param-label">{{ actionParam.name }}</div> |
|
|
|
<a-select v-if="'java.lang.Boolean' === actionParam.type" v-model:value="actionParam.value" |
|
|
|
<a-select v-if="'Boolean' === actionParam.type" v-model:value="actionParam.value" |
|
|
|
:dropdownMatchSelectWidth="false"> |
|
|
|
<a-select-option :value="true">TRUE</a-select-option> |
|
|
|
<a-select-option :value="false">FALSE</a-select-option> |
|
|
|
</a-select> |
|
|
|
<a-input v-else-if="'java.lang.String' === actionParam.type" class="w-24" |
|
|
|
<a-input v-else-if="'String' === actionParam.type" class="w-24" |
|
|
|
v-model:value="actionParam.value" :placeholder="actionParam.name" /> |
|
|
|
<a-input-number v-else-if="'java.lang.Integer' === actionParam.type" class="w-24" |
|
|
|
<a-input-number v-else-if="'Integer' === actionParam.type" class="w-24" |
|
|
|
v-model:value="actionParam.value" :placeholder="actionParam.name" /> |
|
|
|
<a-input-number v-else-if="'java.lang.Double' === actionParam.type" class="w-24" |
|
|
|
<a-input-number v-else-if="'Double' === actionParam.type" class="w-24" |
|
|
|
v-model:value="actionParam.value" :placeholder="actionParam.name" :step="0.01" /> |
|
|
|
<a-select v-else-if="'Enum' === actionParam.type" v-model:value="actionParam.value" |
|
|
|
:dropdownMatchSelectWidth="false"> |
|
|
|
<a-select-option v-for="(enumItem, enumIndex) in actionParam.options" :key="enumIndex" |
|
|
|
:value="enumItem.value">{{ enumItem.name }}</a-select-option> |
|
|
|
</a-select> |
|
|
|
<service-configuration-action-param-file v-else-if="'a8k.utils.HardwareParamFile' === actionParam.type" |
|
|
|
<service-configuration-action-param-file v-else-if="'ExtUIFile' === actionParam.type" |
|
|
|
v-model:value="actionParam.value" /> |
|
|
|
<span v-else>{{ actionParam }}</span> |
|
|
|
</div> |
|
|
|