@varlet/ui 2.11.2 → 2.11.3-alpha.1685462737961

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.
@@ -6,6 +6,7 @@ import { toNumber } from '@varlet/shared';
6
6
  import { createNamespace, call, formatElevation } from '../utils/components.mjs';
7
7
  import { padStart } from '../utils/shared.mjs';
8
8
  import { getNumberTime, getIsDisableMinute, getIsDisableSecond } from './utils.mjs';
9
+ import { getRect } from '../utils/elements.mjs';
9
10
  var {
10
11
  n,
11
12
  classes
@@ -312,7 +313,7 @@ var __sfc__ = defineComponent({
312
313
  top,
313
314
  width,
314
315
  height
315
- } = container.value.getBoundingClientRect();
316
+ } = getRect(container.value);
316
317
  center.x = left + width / 2;
317
318
  center.y = top + height / 2;
318
319
 
@@ -5,6 +5,7 @@ import { notConvert, convertHour, getIsDisableMinute, getIsDisableSecond, getNum
5
5
  import { toNumber } from '@varlet/shared';
6
6
  import { createNamespace } from '../utils/components.mjs';
7
7
  import { padStart } from '../utils/shared.mjs';
8
+ import { getRect } from '../utils/elements.mjs';
8
9
  var {
9
10
  n,
10
11
  classes
@@ -210,7 +211,7 @@ var __sfc__ = defineComponent({
210
211
  var {
211
212
  width,
212
213
  height
213
- } = inner.value.getBoundingClientRect();
214
+ } = getRect(inner.value);
214
215
  return {
215
216
  width,
216
217
  height