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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sh-view",
3
- "version": "2.4.7",
3
+ "version": "2.4.8",
4
4
  "description": "基于vxe-table二次封装",
5
5
  "main": "packages/index.js",
6
6
  "scripts": {
@@ -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 = getMax(value, computedMin.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({