more diagonal work (unfinished)
This commit is contained in:
@@ -3,7 +3,6 @@
|
||||
v-model="priceEndpoints" :mode="0" :flip="flipped"
|
||||
:shape="HLine"
|
||||
:get-model-value="getModelValue" :set-model-value="setModelValue"
|
||||
:get-points-value="getPointsValue"
|
||||
:set-values="setPrices" :set-weights="setWeights"
|
||||
:std-width="stdWidth" :build-tranches="buildTranches">
|
||||
<table>
|
||||
@@ -193,7 +192,7 @@ function setWeights(ws) { weights.value = ws }
|
||||
|
||||
const color = computed(()=>props.builder.color ? props.builder.color : defaultColor)
|
||||
|
||||
const stdWidth = 2*co.meanRange
|
||||
const stdWidth = computed(()=>2*co.meanRange)
|
||||
|
||||
|
||||
function getModelValue(model) {
|
||||
@@ -202,9 +201,6 @@ function getModelValue(model) {
|
||||
return model.price
|
||||
}
|
||||
|
||||
function getPointsValue(points) {
|
||||
return points[0].price
|
||||
}
|
||||
|
||||
function setModelValue(model, value) {
|
||||
// console.log('setModelValue->', model.price, value)
|
||||
|
||||
Reference in New Issue
Block a user