Line data Source code
1 1 : <template lang='pug'> 2 1 : BaseCard 3 1 : li(key='values') 4 1 : .row 5 1 : .col-auto #[strong Live Values] 6 : .col-auto.ml-auto 7 : button.btn.btn-sm.btn-outline-secondary.mx-1(v-show='showReset' @click='doReset') #[i.fa.fa-sync] reset 8 : template(v-for='value, idx in transformList') 9 : .input-group.input-group-sm.my-1&attributes(attributes) 10 : .input-group-prepend 11 : .input-group-text.text-muted(style='min-width: 8rem;') {{ value.transform }} 12 : template(v-for='arg, argIdx in value.args') 13 : input.form-control(type='number' :value='arg' @change='setValue(value, argIdx, $event.target.value)') 14 : input.form-control(type='text' :value='value.units[argIdx] || ""' @change='setUnit(value, argIdx, $event.target.value)') 15 : </template> 16 : <script src='./TransformEditValues.vue.js' />