|
|
@ -43,9 +43,9 @@ export default { |
|
|
|
<label class="form-label">{{ model.name }}</label> |
|
|
|
<label class="form-label">{{ model.name }}</label> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="col-9 pr-2"> |
|
|
|
<div class="col-9 pr-2"> |
|
|
|
<a class="btn" @click="addValue"> |
|
|
|
<button type="button" class="btn" @click="addValue"> |
|
|
|
<i class="icon icon-plus"></i>Add |
|
|
|
<i class="icon icon-plus"></i>Add |
|
|
|
</a> |
|
|
|
</button> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
@ -58,18 +58,18 @@ export default { |
|
|
|
<integer-value :ref="setFieldRef" :value="instance.value" :id="vi === 0 ? widget_id : null" v-if="model.data_type==='Integer'"></integer-value> |
|
|
|
<integer-value :ref="setFieldRef" :value="instance.value" :id="vi === 0 ? widget_id : null" v-if="model.data_type==='Integer'"></integer-value> |
|
|
|
<decimal-value :ref="setFieldRef" :value="instance.value" :id="vi === 0 ? widget_id : null" v-if="model.data_type==='Decimal'"></decimal-value> |
|
|
|
<decimal-value :ref="setFieldRef" :value="instance.value" :id="vi === 0 ? widget_id : null" v-if="model.data_type==='Decimal'"></decimal-value> |
|
|
|
<boolean-value :ref="setFieldRef" :value="instance.value" :id="vi === 0 ? widget_id : null" v-if="model.data_type==='Boolean'"></boolean-value> |
|
|
|
<boolean-value :ref="setFieldRef" :value="instance.value" :id="vi === 0 ? widget_id : null" v-if="model.data_type==='Boolean'"></boolean-value> |
|
|
|
<a class="btn btn-delete ml-1" @click="removeValue(vi)" v-if="values.length > 1 || model.optional"> |
|
|
|
<button type="button" class="btn btn-delete ml-1" @click="removeValue(vi)" v-if="values.length > 1 || model.optional"> |
|
|
|
<i class="icon icon-cross"></i>Remove |
|
|
|
<i class="icon icon-cross"></i>Remove |
|
|
|
</a> |
|
|
|
</button> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
<div v-if="values.length>0 && model.multiple" class="form-group cols"> |
|
|
|
<div v-if="values.length>0 && model.multiple" class="form-group cols"> |
|
|
|
<div class="col-3 pl-2"></div> |
|
|
|
<div class="col-3 pl-2"></div> |
|
|
|
<div class="col-9 pr-2"> |
|
|
|
<div class="col-9 pr-2"> |
|
|
|
<a class="btn" @click="addValue"> |
|
|
|
<button type="button" class="btn" @click="addValue"> |
|
|
|
<i class="icon icon-plus"></i>Add |
|
|
|
<i class="icon icon-plus"></i>Add |
|
|
|
</a> |
|
|
|
</button> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
</template> |
|
|
|