sh-view 2.4.7 → 2.4.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -137,7 +137,7 @@ export default defineComponent({
|
|
|
137
137
|
let outerWidth = splitRef.value[offsetSize.value]
|
|
138
138
|
let value = valueIsPx.value ? `${parseFloat(oldOffset.value) + offset}px` : px2percent(outerWidth * oldOffset.value + offset, outerWidth)
|
|
139
139
|
let anotherValue = getAnotherOffset(value)
|
|
140
|
-
if (parseFloat(value) <= parseFloat(computedMin.value)) value =
|
|
140
|
+
if (parseFloat(value) <= parseFloat(computedMin.value)) value = getMin(value, computedMin.value)
|
|
141
141
|
if (parseFloat(anotherValue) <= parseFloat(computedMax.value)) value = getAnotherOffset(getMax(anotherValue, computedMax.value))
|
|
142
142
|
e.atMin = currentValue.value === computedMin.value
|
|
143
143
|
e.atMax = valueIsPx.value ? getAnotherOffset(currentValue.value) === computedMax.value : getAnotherOffset(currentValue.value).toFixed(5) === computedMax.value.toFixed(5)
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
</template>
|
|
13
13
|
|
|
14
14
|
<script>
|
|
15
|
-
import { defineComponent, getCurrentInstance } from 'vue'
|
|
15
|
+
import { defineComponent, getCurrentInstance, ref } from 'vue'
|
|
16
16
|
import cellProps from '../mixin/cell-props'
|
|
17
17
|
import cellHooks from '../mixin/cell-hooks'
|
|
18
18
|
export default defineComponent({
|