@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.
- package/es/field-decorator/FieldDecorator.mjs +31 -48
- package/es/field-decorator/fieldDecorator.css +1 -1
- package/es/field-decorator/props.mjs +0 -4
- package/es/image/Image.mjs +40 -33
- package/es/index.bundle.mjs +1 -1
- package/es/index.mjs +1 -1
- package/es/input/Input.mjs +11 -9
- package/es/pull-refresh/PullRefresh.mjs +2 -2
- package/es/select/Select.mjs +44 -9
- package/es/select/select.css +1 -1
- package/es/slider/Slider.mjs +2 -2
- package/es/snackbar/style/index.mjs +1 -1
- package/es/sticky/Sticky.mjs +3 -3
- package/es/style.css +1 -1
- package/es/time-picker/TimePicker.mjs +2 -1
- package/es/time-picker/clock.mjs +2 -1
- package/es/varlet.esm.js +7012 -6994
- package/highlight/web-types.en-US.json +7 -2
- package/highlight/web-types.zh-CN.json +7 -2
- package/lib/style.css +1 -1
- package/lib/varlet.cjs.js +125 -105
- package/package.json +6 -6
- package/types/image.d.ts +5 -0
- package/umd/varlet.js +5 -5
|
@@ -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
|
|
316
|
+
} = getRect(container.value);
|
|
316
317
|
center.x = left + width / 2;
|
|
317
318
|
center.y = top + height / 2;
|
|
318
319
|
|
package/es/time-picker/clock.mjs
CHANGED
|
@@ -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
|
|
214
|
+
} = getRect(inner.value);
|
|
214
215
|
return {
|
|
215
216
|
width,
|
|
216
217
|
height
|