mtxt-ui3 0.0.47 → 0.0.48

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.
@@ -19,7 +19,8 @@ const getScale = el => {
19
19
  if (zoom !== "1") {
20
20
  if (zoom !== "1") {
21
21
  return {
22
- x: Number(zoom)
22
+ x: Number(zoom),
23
+ y: Number(zoom)
23
24
  };
24
25
  } else {
25
26
  return getScale(parent);
@@ -53,7 +54,7 @@ const autoScroll = {
53
54
  if (hover) return;
54
55
  const scale = getScale(scrollEl);
55
56
  const scrollElHeight = scrollEl.getBoundingClientRect().height / (scale?.y ?? 1);
56
- const step = Math.ceil(1 / (scale?.x ?? 1));
57
+ const step = 1 / (scale?.x ?? 1);
57
58
  if (scrollElHeight >= scrollEl.scrollHeight) {
58
59
  return;
59
60
  }
@@ -15,7 +15,8 @@ const getScale = el => {
15
15
  if (zoom !== "1") {
16
16
  if (zoom !== "1") {
17
17
  return {
18
- x: Number(zoom)
18
+ x: Number(zoom),
19
+ y: Number(zoom)
19
20
  };
20
21
  } else {
21
22
  return getScale(parent);
@@ -49,7 +50,7 @@ const autoScroll = {
49
50
  if (hover) return;
50
51
  const scale = getScale(scrollEl);
51
52
  const scrollElHeight = scrollEl.getBoundingClientRect().height / (scale?.y ?? 1);
52
- const step = Math.ceil(1 / (scale?.x ?? 1));
53
+ const step = 1 / (scale?.x ?? 1);
53
54
  if (scrollElHeight >= scrollEl.scrollHeight) {
54
55
  return;
55
56
  }
package/dist/index.cjs CHANGED
@@ -21,7 +21,7 @@ var ___default = /*#__PURE__*/_interopDefaultLegacy(_);
21
21
  var dayjs__default = /*#__PURE__*/_interopDefaultLegacy(dayjs);
22
22
  var zhCN__default = /*#__PURE__*/_interopDefaultLegacy(zhCN);
23
23
 
24
- var version = "0.0.46";
24
+ var version = "0.0.48";
25
25
 
26
26
  const setRem = opt => {
27
27
  const fontSize = opt.fontSize || 14;
@@ -546,7 +546,8 @@ const getScale = el => {
546
546
  if (zoom !== "1") {
547
547
  if (zoom !== "1") {
548
548
  return {
549
- x: Number(zoom)
549
+ x: Number(zoom),
550
+ y: Number(zoom)
550
551
  };
551
552
  } else {
552
553
  return getScale(parent);
@@ -580,7 +581,7 @@ const autoScroll = {
580
581
  if (hover) return;
581
582
  const scale = getScale(scrollEl);
582
583
  const scrollElHeight = scrollEl.getBoundingClientRect().height / (scale?.y ?? 1);
583
- const step = Math.ceil(1 / (scale?.x ?? 1));
584
+ const step = 1 / (scale?.x ?? 1);
584
585
  if (scrollElHeight >= scrollEl.scrollHeight) {
585
586
  return;
586
587
  }
package/dist/index.d.ts CHANGED
@@ -7,7 +7,7 @@ import { MaybeRef, MaybeComputedRef } from '@vueuse/core';
7
7
  import { Key } from 'ant-design-vue/lib/table/interface';
8
8
  import * as vue_jsx_runtime from 'vue/jsx-runtime';
9
9
 
10
- var version = "0.0.46";
10
+ var version = "0.0.48";
11
11
 
12
12
  /**
13
13
  *
package/dist/index.js CHANGED
@@ -9,7 +9,7 @@ import { SearchOutlined, CaretUpOutlined, CaretRightOutlined, CaretDownOutlined,
9
9
  import 'ant-design-vue/dist/antd.less';
10
10
  import zhCN from 'dayjs/locale/zh-cn';
11
11
 
12
- var version = "0.0.46";
12
+ var version = "0.0.48";
13
13
 
14
14
  const setRem = opt => {
15
15
  const fontSize = opt.fontSize || 14;
@@ -534,7 +534,8 @@ const getScale = el => {
534
534
  if (zoom !== "1") {
535
535
  if (zoom !== "1") {
536
536
  return {
537
- x: Number(zoom)
537
+ x: Number(zoom),
538
+ y: Number(zoom)
538
539
  };
539
540
  } else {
540
541
  return getScale(parent);
@@ -568,7 +569,7 @@ const autoScroll = {
568
569
  if (hover) return;
569
570
  const scale = getScale(scrollEl);
570
571
  const scrollElHeight = scrollEl.getBoundingClientRect().height / (scale?.y ?? 1);
571
- const step = Math.ceil(1 / (scale?.x ?? 1));
572
+ const step = 1 / (scale?.x ?? 1);
572
573
  if (scrollElHeight >= scrollEl.scrollHeight) {
573
574
  return;
574
575
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mtxt-ui3",
3
- "version": "0.0.47",
3
+ "version": "0.0.48",
4
4
  "description": "系统运营组件库",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.js",
@@ -72,4 +72,4 @@
72
72
  "lodash": "^4.17.21",
73
73
  "vue-router": "^4.1.6"
74
74
  }
75
- }
75
+ }