@nutui/nutui 4.3.0-beta.6 → 4.3.0
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/CHANGELOG.md +26 -0
- package/README.md +1 -1
- package/dist/nutui.es.js +1 -1
- package/dist/nutui.js +3771 -3783
- package/dist/nutui.umd.js +1 -1
- package/dist/packages/audio/Audio.js +1 -1
- package/dist/packages/avatarcropper/AvatarCropper.js +1 -1
- package/dist/packages/button/Button.js +17 -18
- package/dist/packages/calendarcard/CalendarCard.js +6 -24
- package/dist/packages/cascader/Cascader.js +1 -1
- package/dist/packages/imagepreview/ImagePreview.js +1 -1
- package/dist/packages/{index-rf29bejW.js → index-cp6Ms_Qe.js} +1 -1
- package/dist/packages/inputnumber/InputNumber.js +1 -0
- package/dist/packages/list/List.js +1 -1
- package/dist/packages/menu/Menu.js +1 -1
- package/dist/packages/noticebar/Noticebar.js +9 -10
- package/dist/packages/popover/Popover.js +89 -87
- package/dist/packages/popover/index.css +1 -1
- package/dist/packages/popover/index.scss +3 -12
- package/dist/packages/range/Range.js +1 -1
- package/dist/packages/sticky/Sticky.js +1 -1
- package/dist/packages/tabs/Tabs.js +1 -1
- package/dist/packages/tour/Tour.js +2 -2
- package/dist/packages/tour/index.css +1 -1
- package/dist/smartips/web-types.json +2 -2
- package/dist/style.css +1 -1
- package/dist/types/__VUE/calendarcard/calendar-card.vue.d.ts +59 -57
- package/dist/types/__VUE/calendarcard/index.d.ts +1 -0
- package/dist/types/__VUE/noticebar/index.vue.d.ts +4 -3
- package/dist/types/__VUE/noticebar/types.d.ts +1 -0
- package/dist/types/__VUE/popover/index.vue.d.ts +0 -1
- package/dist/types/__VUE/popover/type.d.ts +7 -0
- package/dist/types/index.d.ts +1 -1
- package/package.json +1 -1
|
@@ -24,7 +24,7 @@ import NutRange from "../range/Range.js";
|
|
|
24
24
|
import { _ as _export_sfc } from "../_plugin-vue_export-helper-yVxbj29m.js";
|
|
25
25
|
import "../util-4Jkyw4BJ.js";
|
|
26
26
|
import "../index-084nl_oE.js";
|
|
27
|
-
import "../index-
|
|
27
|
+
import "../index-cp6Ms_Qe.js";
|
|
28
28
|
const { create } = createComponent("audio");
|
|
29
29
|
const _sfc_main = create({
|
|
30
30
|
props: {
|
|
@@ -44,7 +44,7 @@ import { c as createComponent } from "../component-TCzwHGVq.js";
|
|
|
44
44
|
import { d as preventDefault, e as clamp } from "../util-4Jkyw4BJ.js";
|
|
45
45
|
import { Refresh2, Retweet } from "@nutui/icons-vue";
|
|
46
46
|
import { u as useTouch } from "../index-084nl_oE.js";
|
|
47
|
-
import { u as useRect } from "../index-
|
|
47
|
+
import { u as useRect } from "../index-cp6Ms_Qe.js";
|
|
48
48
|
import { _ as _export_sfc } from "../_plugin-vue_export-helper-yVxbj29m.js";
|
|
49
49
|
import "../with-install-p59gYYU_.js";
|
|
50
50
|
const { create } = createComponent("avatar-cropper");
|
|
@@ -17,7 +17,7 @@ var __spreadValues = (a, b) => {
|
|
|
17
17
|
return a;
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
|
-
import { defineComponent,
|
|
20
|
+
import { defineComponent, computed, openBlock, createElementBlock, normalizeClass, normalizeStyle, createElementVNode, createBlock, unref, createCommentVNode, renderSlot } from "vue";
|
|
21
21
|
import { Loading } from "@nutui/icons-vue";
|
|
22
22
|
import { w as withInstall } from "../with-install-p59gYYU_.js";
|
|
23
23
|
const _hoisted_1 = { class: "nut-button__wrap" };
|
|
@@ -39,9 +39,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
|
|
|
39
39
|
setup(__props, { emit: __emit }) {
|
|
40
40
|
const props = __props;
|
|
41
41
|
const emit = __emit;
|
|
42
|
-
const { type, size, shape, disabled, loading, color, plain, block } = toRefs(props);
|
|
43
42
|
const handleClick = (event) => {
|
|
44
|
-
if (!loading
|
|
43
|
+
if (!props.loading && !props.disabled) {
|
|
45
44
|
emit("click", event);
|
|
46
45
|
}
|
|
47
46
|
};
|
|
@@ -49,26 +48,26 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
|
|
|
49
48
|
const prefixCls = "nut-button";
|
|
50
49
|
return {
|
|
51
50
|
[prefixCls]: true,
|
|
52
|
-
[`${prefixCls}--${type
|
|
53
|
-
[`${prefixCls}--${size
|
|
54
|
-
[`${prefixCls}--${shape
|
|
55
|
-
[`${prefixCls}--plain`]: plain
|
|
56
|
-
[`${prefixCls}--block`]: block
|
|
57
|
-
[`${prefixCls}--disabled`]: disabled
|
|
58
|
-
[`${prefixCls}--loading`]: loading
|
|
51
|
+
[`${prefixCls}--${props.type}`]: props.type,
|
|
52
|
+
[`${prefixCls}--${props.size}`]: props.size,
|
|
53
|
+
[`${prefixCls}--${props.shape}`]: props.shape,
|
|
54
|
+
[`${prefixCls}--plain`]: props.plain,
|
|
55
|
+
[`${prefixCls}--block`]: props.block,
|
|
56
|
+
[`${prefixCls}--disabled`]: props.disabled,
|
|
57
|
+
[`${prefixCls}--loading`]: props.loading
|
|
59
58
|
};
|
|
60
59
|
});
|
|
61
60
|
const getStyle = computed(() => {
|
|
62
61
|
let style = {};
|
|
63
|
-
if (color
|
|
62
|
+
if (props.color) {
|
|
64
63
|
style = {
|
|
65
|
-
color: plain
|
|
66
|
-
background: plain
|
|
64
|
+
color: props.plain ? props.color : "#fff",
|
|
65
|
+
background: props.plain ? "#fff" : `border-box ${props.color}`
|
|
67
66
|
};
|
|
68
|
-
if (color.
|
|
67
|
+
if (props.color.includes("gradient")) {
|
|
69
68
|
style.borderColor = "transparent";
|
|
70
69
|
} else {
|
|
71
|
-
style.borderColor = color
|
|
70
|
+
style.borderColor = props.color;
|
|
72
71
|
}
|
|
73
72
|
}
|
|
74
73
|
return style;
|
|
@@ -80,14 +79,14 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
|
|
|
80
79
|
onClick: handleClick
|
|
81
80
|
}, [
|
|
82
81
|
createElementVNode("view", _hoisted_1, [
|
|
83
|
-
|
|
82
|
+
_ctx.loading ? (openBlock(), createBlock(unref(Loading), {
|
|
84
83
|
key: 0,
|
|
85
84
|
class: "nut-icon-loading"
|
|
86
85
|
})) : createCommentVNode("", true),
|
|
87
|
-
_ctx.$slots.icon && !
|
|
86
|
+
_ctx.$slots.icon && !_ctx.loading ? renderSlot(_ctx.$slots, "icon", { key: 1 }) : createCommentVNode("", true),
|
|
88
87
|
_ctx.$slots.default ? (openBlock(), createElementBlock("view", {
|
|
89
88
|
key: 2,
|
|
90
|
-
class: normalizeClass({ "nut-button__text": _ctx.$slots.icon ||
|
|
89
|
+
class: normalizeClass({ "nut-button__text": _ctx.$slots.icon || _ctx.loading })
|
|
91
90
|
}, [
|
|
92
91
|
renderSlot(_ctx.$slots, "default")
|
|
93
92
|
], 2)) : createCommentVNode("", true)
|
|
@@ -204,30 +204,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
|
|
|
204
204
|
}), {
|
|
205
205
|
__name: "calendar-card",
|
|
206
206
|
props: {
|
|
207
|
-
type: {
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
},
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
default: 0
|
|
214
|
-
},
|
|
215
|
-
modelValue: {
|
|
216
|
-
type: [Object, Array],
|
|
217
|
-
default: () => []
|
|
218
|
-
},
|
|
219
|
-
startDate: {
|
|
220
|
-
type: Date,
|
|
221
|
-
default: null
|
|
222
|
-
},
|
|
223
|
-
endDate: {
|
|
224
|
-
type: Date,
|
|
225
|
-
default: null
|
|
226
|
-
},
|
|
227
|
-
disableDay: {
|
|
228
|
-
type: Function,
|
|
229
|
-
default: () => false
|
|
230
|
-
}
|
|
207
|
+
type: { default: "single" },
|
|
208
|
+
firstDayOfWeek: { default: 0 },
|
|
209
|
+
modelValue: { default: null },
|
|
210
|
+
startDate: { default: null },
|
|
211
|
+
endDate: { default: null },
|
|
212
|
+
disableDay: { type: Function, default: () => false }
|
|
231
213
|
},
|
|
232
214
|
emits: ["update:modelValue", "change", "dayClick", "pageChange"],
|
|
233
215
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
@@ -66,7 +66,7 @@ import "../overlay/Overlay.js";
|
|
|
66
66
|
import "../util-4Jkyw4BJ.js";
|
|
67
67
|
import "../sticky/Sticky.js";
|
|
68
68
|
import "../index-xDfQLRen.js";
|
|
69
|
-
import "../index-
|
|
69
|
+
import "../index-cp6Ms_Qe.js";
|
|
70
70
|
import "../pxCheck-OnXlN1NC.js";
|
|
71
71
|
import "../raf-MQjoO-Ag.js";
|
|
72
72
|
import "../index-084nl_oE.js";
|
|
@@ -25,7 +25,7 @@ var __publicField = (obj, key, value) => {
|
|
|
25
25
|
import { reactive, computed, watch, toRefs, resolveComponent, openBlock, createBlock, withCtx, createElementVNode, normalizeStyle, createElementBlock, createCommentVNode, ref, nextTick, onMounted, Fragment, renderList, toDisplayString, normalizeClass, renderSlot, createVNode, h } from "vue";
|
|
26
26
|
import { c as createComponent } from "../component-TCzwHGVq.js";
|
|
27
27
|
import { e as clamp, d as preventDefault, a as isArray } from "../util-4Jkyw4BJ.js";
|
|
28
|
-
import { u as useRect } from "../index-
|
|
28
|
+
import { u as useRect } from "../index-cp6Ms_Qe.js";
|
|
29
29
|
import { u as useTouch } from "../index-084nl_oE.js";
|
|
30
30
|
import NutVideo from "../video/Video.js";
|
|
31
31
|
import NutSwiperItem from "../swiperitem/SwiperItem.js";
|
|
@@ -59,6 +59,7 @@ const _sfc_main = create({
|
|
|
59
59
|
const change = (event) => {
|
|
60
60
|
const input = event.target;
|
|
61
61
|
emit("update:modelValue", input.value, event);
|
|
62
|
+
emit("change", input.value, event);
|
|
62
63
|
};
|
|
63
64
|
const emitChange = (value, event) => {
|
|
64
65
|
let output_value = fixedDecimalPlaces(value);
|
|
@@ -19,7 +19,7 @@ var __spreadValues = (a, b) => {
|
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
20
|
import { ref, reactive, computed, watch, toRefs, openBlock, createElementBlock, normalizeStyle, createElementVNode, Fragment, renderList, renderSlot } from "vue";
|
|
21
21
|
import { c as createComponent } from "../component-TCzwHGVq.js";
|
|
22
|
-
import { u as useRect } from "../index-
|
|
22
|
+
import { u as useRect } from "../index-cp6Ms_Qe.js";
|
|
23
23
|
import { _ as _export_sfc } from "../_plugin-vue_export-helper-yVxbj29m.js";
|
|
24
24
|
var CompareResult = /* @__PURE__ */ ((CompareResult2) => {
|
|
25
25
|
CompareResult2[CompareResult2["eq"] = 1] = "eq";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ref, computed, onMounted, onUnmounted, resolveComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, Fragment, renderList, normalizeStyle, toDisplayString, renderSlot, createBlock } from "vue";
|
|
2
2
|
import { c as createComponent } from "../component-TCzwHGVq.js";
|
|
3
|
-
import { u as useRect } from "../index-
|
|
3
|
+
import { u as useRect } from "../index-cp6Ms_Qe.js";
|
|
4
4
|
import { RectUp, RectDown } from "@nutui/icons-vue";
|
|
5
5
|
import { M as MENU_KEY } from "../types-j71K23JP.js";
|
|
6
6
|
import { u as useChildren } from "../useChildren-GU_NVfD8.js";
|
|
@@ -17,7 +17,7 @@ var __spreadValues = (a, b) => {
|
|
|
17
17
|
return a;
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
|
-
import { h, ref, reactive, computed, watch, onMounted, onActivated, onDeactivated, onUnmounted, toRefs, resolveComponent, openBlock, createElementBlock, withDirectives, normalizeClass, normalizeStyle,
|
|
20
|
+
import { h, ref, reactive, computed, watch, onMounted, onActivated, onDeactivated, onUnmounted, toRefs, resolveComponent, openBlock, createElementBlock, withDirectives, normalizeClass, normalizeStyle, renderSlot, createVNode, createCommentVNode, createElementVNode, createTextVNode, toDisplayString, withModifiers, createBlock, vShow, Fragment, renderList } from "vue";
|
|
21
21
|
import { Notice, CircleClose } from "@nutui/icons-vue";
|
|
22
22
|
import { c as createComponent } from "../component-TCzwHGVq.js";
|
|
23
23
|
import { p as pxCheck } from "../pxCheck-OnXlN1NC.js";
|
|
@@ -25,7 +25,6 @@ import { _ as _export_sfc } from "../_plugin-vue_export-helper-yVxbj29m.js";
|
|
|
25
25
|
const { create } = createComponent("noticebar");
|
|
26
26
|
const _sfc_main = create({
|
|
27
27
|
props: {
|
|
28
|
-
// 滚动方向 across 横向 vertical 纵向
|
|
29
28
|
direction: {
|
|
30
29
|
type: String,
|
|
31
30
|
default: "across"
|
|
@@ -318,7 +317,10 @@ const _sfc_main = create({
|
|
|
318
317
|
}
|
|
319
318
|
});
|
|
320
319
|
const _hoisted_1 = { class: "nut-noticebar" };
|
|
321
|
-
const _hoisted_2 = {
|
|
320
|
+
const _hoisted_2 = {
|
|
321
|
+
key: 0,
|
|
322
|
+
class: "nut-noticebar__page-lefticon"
|
|
323
|
+
};
|
|
322
324
|
const _hoisted_3 = {
|
|
323
325
|
ref: "wrap",
|
|
324
326
|
class: "nut-noticebar__page-wrap"
|
|
@@ -341,14 +343,11 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
341
343
|
style: normalizeStyle(_ctx.barStyle),
|
|
342
344
|
onClick: _cache[3] || (_cache[3] = (...args) => _ctx.handleClick && _ctx.handleClick(...args))
|
|
343
345
|
}, [
|
|
344
|
-
|
|
346
|
+
_ctx.leftIcon ? (openBlock(), createElementBlock("view", _hoisted_2, [
|
|
345
347
|
renderSlot(_ctx.$slots, "left-icon", {}, () => [
|
|
346
|
-
|
|
347
|
-
key: 0,
|
|
348
|
-
size: "16px"
|
|
349
|
-
})) : createCommentVNode("", true)
|
|
348
|
+
createVNode(_component_Notice, { size: "16px" })
|
|
350
349
|
])
|
|
351
|
-
]),
|
|
350
|
+
])) : createCommentVNode("", true),
|
|
352
351
|
createElementVNode("view", _hoisted_3, [
|
|
353
352
|
createElementVNode("view", {
|
|
354
353
|
ref: "content",
|
|
@@ -363,7 +362,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
363
362
|
], 38)
|
|
364
363
|
], 512),
|
|
365
364
|
_ctx.closeMode || _ctx.$slots["right-icon"] ? (openBlock(), createElementBlock("view", {
|
|
366
|
-
key:
|
|
365
|
+
key: 1,
|
|
367
366
|
class: "nut-noticebar__page-righticon",
|
|
368
367
|
onClick: _cache[2] || (_cache[2] = withModifiers((...args) => _ctx.onClickIcon && _ctx.onClickIcon(...args), ["stop"]))
|
|
369
368
|
}, [
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { ref, computed, onMounted, watch, resolveComponent, openBlock, createElementBlock, Fragment, renderSlot, createCommentVNode, createElementVNode, normalizeClass, normalizeStyle, createVNode, withCtx, renderList, withModifiers,
|
|
1
|
+
import { ref, computed, onMounted, watch, nextTick, resolveComponent, openBlock, createElementBlock, Fragment, renderSlot, createCommentVNode, createBlock, Teleport, createElementVNode, normalizeClass, normalizeStyle, createVNode, withCtx, renderList, withModifiers, resolveDynamicComponent, toDisplayString } from "vue";
|
|
2
2
|
import { c as createComponent } from "../component-TCzwHGVq.js";
|
|
3
3
|
import { r as renderIcon } from "../renderIcon--EgZu5_5.js";
|
|
4
|
-
import {
|
|
5
|
-
import { u as useRect } from "../index-rf29bejW.js";
|
|
4
|
+
import { u as useRect } from "../index-cp6Ms_Qe.js";
|
|
6
5
|
import { N as NutPopup } from "../index-wY4t0zYt.js";
|
|
7
6
|
import { _ as _export_sfc } from "../_plugin-vue_export-helper-yVxbj29m.js";
|
|
8
7
|
import "@nutui/icons-vue";
|
|
9
8
|
import "../overlay/Overlay.js";
|
|
9
|
+
import "../util-4Jkyw4BJ.js";
|
|
10
10
|
const { create } = createComponent("popover");
|
|
11
11
|
const _sfc_main = create({
|
|
12
12
|
components: {
|
|
@@ -36,8 +36,11 @@ const _sfc_main = create({
|
|
|
36
36
|
const popoverRef = ref();
|
|
37
37
|
const popoverContentRef = ref();
|
|
38
38
|
const showPopup = ref(props.visible);
|
|
39
|
-
|
|
40
|
-
|
|
39
|
+
const rootPosition = ref();
|
|
40
|
+
const elRect = ref({
|
|
41
|
+
width: 0,
|
|
42
|
+
height: 0
|
|
43
|
+
});
|
|
41
44
|
const popoverArrow = computed(() => {
|
|
42
45
|
const prefixCls = "nut-popover-arrow";
|
|
43
46
|
const loca = props.location;
|
|
@@ -85,76 +88,72 @@ const _sfc_main = create({
|
|
|
85
88
|
return str;
|
|
86
89
|
};
|
|
87
90
|
const getRootPosition = computed(() => {
|
|
88
|
-
|
|
89
|
-
if (!
|
|
91
|
+
const styles = {};
|
|
92
|
+
if (!rootPosition.value)
|
|
90
93
|
return {};
|
|
91
|
-
const
|
|
92
|
-
const
|
|
93
|
-
const { width, height, left, top } =
|
|
94
|
+
const contentWidth = elRect.value.width;
|
|
95
|
+
const contentHeight = elRect.value.height;
|
|
96
|
+
const { width, height, left, top, right } = rootPosition.value;
|
|
94
97
|
const { location, offset } = props;
|
|
95
|
-
const direction = location.split("-")[0];
|
|
96
|
-
const skew = location.split("-")[1];
|
|
98
|
+
const direction = location == null ? void 0 : location.split("-")[0];
|
|
99
|
+
const skew = location == null ? void 0 : location.split("-")[1];
|
|
97
100
|
let cross = 0;
|
|
98
101
|
let parallel = 0;
|
|
99
|
-
if (isArray(offset) && offset.length
|
|
102
|
+
if (Array.isArray(offset) && (offset == null ? void 0 : offset.length) === 2) {
|
|
100
103
|
cross += Number(offset[1]);
|
|
101
104
|
parallel += Number(offset[0]);
|
|
102
105
|
}
|
|
103
106
|
if (width) {
|
|
104
107
|
if (["bottom", "top"].includes(direction)) {
|
|
105
|
-
const h = direction
|
|
108
|
+
const h = direction === "bottom" ? height + cross : -(contentHeight + cross);
|
|
106
109
|
styles.top = `${top + h}px`;
|
|
107
110
|
if (!skew) {
|
|
108
|
-
styles.left = `${-(
|
|
111
|
+
styles.left = `${-(contentWidth - width) / 2 + left + parallel}px`;
|
|
109
112
|
}
|
|
110
|
-
if (skew
|
|
113
|
+
if (skew === "start") {
|
|
111
114
|
styles.left = `${left + parallel}px`;
|
|
112
115
|
}
|
|
113
|
-
if (skew
|
|
114
|
-
styles.left = `${
|
|
116
|
+
if (skew === "end") {
|
|
117
|
+
styles.left = `${right + parallel}px`;
|
|
115
118
|
}
|
|
116
119
|
}
|
|
117
120
|
if (["left", "right"].includes(direction)) {
|
|
118
|
-
const contentW = direction
|
|
121
|
+
const contentW = direction === "left" ? -(contentWidth + cross) : width + cross;
|
|
119
122
|
styles.left = `${left + contentW}px`;
|
|
120
123
|
if (!skew) {
|
|
121
|
-
styles.top = `${top -
|
|
124
|
+
styles.top = `${top - contentHeight / 2 + height / 2 - 4 + parallel}px`;
|
|
122
125
|
}
|
|
123
|
-
if (skew
|
|
126
|
+
if (skew === "start") {
|
|
124
127
|
styles.top = `${top + parallel}px`;
|
|
125
128
|
}
|
|
126
|
-
if (skew
|
|
129
|
+
if (skew === "end") {
|
|
127
130
|
styles.top = `${top + height + parallel}px`;
|
|
128
131
|
}
|
|
129
132
|
}
|
|
130
133
|
}
|
|
131
134
|
return styles;
|
|
132
135
|
});
|
|
133
|
-
const customStyle = computed(() => {
|
|
134
|
-
const styles = {};
|
|
135
|
-
if (props.bgColor) {
|
|
136
|
-
styles.background = props.bgColor;
|
|
137
|
-
}
|
|
138
|
-
return styles;
|
|
139
|
-
});
|
|
140
136
|
const getContentWidth = () => {
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
137
|
+
var _a, _b, _c, _d;
|
|
138
|
+
const rect = useRect(
|
|
139
|
+
props.targetId ? document.querySelector(`#${props.targetId}`) : popoverRef.value
|
|
140
|
+
);
|
|
141
|
+
rootPosition.value = {
|
|
142
|
+
width: rect.width,
|
|
143
|
+
height: rect.height,
|
|
144
|
+
left: rect.left,
|
|
145
|
+
top: rect.top + Math.max(((_a = document.documentElement) == null ? void 0 : _a.scrollTop) || 0, ((_b = document.body) == null ? void 0 : _b.scrollTop) || 0),
|
|
146
|
+
right: rect.right
|
|
147
|
+
};
|
|
148
|
+
elRect.value = {
|
|
149
|
+
height: (_c = popoverContentRef.value) == null ? void 0 : _c.clientHeight,
|
|
150
|
+
width: (_d = popoverContentRef.value) == null ? void 0 : _d.clientWidth
|
|
151
|
+
};
|
|
153
152
|
};
|
|
154
153
|
onMounted(() => {
|
|
155
154
|
setTimeout(() => {
|
|
156
155
|
getContentWidth();
|
|
157
|
-
},
|
|
156
|
+
}, 300);
|
|
158
157
|
});
|
|
159
158
|
watch(
|
|
160
159
|
() => props.visible,
|
|
@@ -162,7 +161,9 @@ const _sfc_main = create({
|
|
|
162
161
|
showPopup.value = value;
|
|
163
162
|
if (value) {
|
|
164
163
|
window.addEventListener("touchstart", clickAway, true);
|
|
165
|
-
|
|
164
|
+
nextTick(() => {
|
|
165
|
+
getContentWidth();
|
|
166
|
+
});
|
|
166
167
|
} else {
|
|
167
168
|
window.removeEventListener("touchstart", clickAway, true);
|
|
168
169
|
}
|
|
@@ -207,7 +208,6 @@ const _sfc_main = create({
|
|
|
207
208
|
popoverRef,
|
|
208
209
|
popoverContentRef,
|
|
209
210
|
getRootPosition,
|
|
210
|
-
customStyle,
|
|
211
211
|
popoverArrowStyle,
|
|
212
212
|
renderIcon
|
|
213
213
|
};
|
|
@@ -230,49 +230,51 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
230
230
|
}, [
|
|
231
231
|
renderSlot(_ctx.$slots, "reference")
|
|
232
232
|
], 512)) : createCommentVNode("", true),
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
233
|
+
(openBlock(), createBlock(Teleport, { to: "body" }, [
|
|
234
|
+
createElementVNode("div", {
|
|
235
|
+
class: normalizeClass(["nut-popover", `nut-popover--${_ctx.theme}`, `${_ctx.customClass}`]),
|
|
236
|
+
style: normalizeStyle(_ctx.getRootPosition)
|
|
237
|
+
}, [
|
|
238
|
+
createVNode(_component_nut_popup, {
|
|
239
|
+
visible: _ctx.showPopup,
|
|
240
|
+
"onUpdate:visible": _cache[1] || (_cache[1] = ($event) => _ctx.showPopup = $event),
|
|
241
|
+
"pop-class": `nut-popover-content nut-popover-content--${_ctx.location}`,
|
|
242
|
+
style: normalizeStyle({ background: _ctx.bgColor }),
|
|
243
|
+
position: "",
|
|
244
|
+
transition: "nut-popover",
|
|
245
|
+
overlay: _ctx.overlay,
|
|
246
|
+
duration: _ctx.duration,
|
|
247
|
+
"overlay-style": _ctx.overlayStyle,
|
|
248
|
+
"overlay-class": _ctx.overlayClass,
|
|
249
|
+
"close-on-click-overlay": _ctx.closeOnClickOverlay
|
|
250
|
+
}, {
|
|
251
|
+
default: withCtx(() => [
|
|
252
|
+
createElementVNode("div", _hoisted_1, [
|
|
253
|
+
_ctx.showArrow ? (openBlock(), createElementBlock("div", {
|
|
254
|
+
key: 0,
|
|
255
|
+
class: normalizeClass(_ctx.popoverArrow),
|
|
256
|
+
style: normalizeStyle(_ctx.popoverArrowStyle)
|
|
257
|
+
}, null, 6)) : createCommentVNode("", true),
|
|
258
|
+
renderSlot(_ctx.$slots, "content"),
|
|
259
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.list, (item, index) => {
|
|
260
|
+
return openBlock(), createElementBlock("div", {
|
|
261
|
+
key: index,
|
|
262
|
+
class: normalizeClass([item.className, item.disabled && "nut-popover-menu-disabled", "nut-popover-menu-item"]),
|
|
263
|
+
onClick: withModifiers(($event) => _ctx.chooseItem(item, index), ["stop"])
|
|
264
|
+
}, [
|
|
265
|
+
item.icon ? (openBlock(), createBlock(resolveDynamicComponent(_ctx.renderIcon(item.icon)), {
|
|
266
|
+
key: 0,
|
|
267
|
+
class: "nut-popover-item-img"
|
|
268
|
+
})) : createCommentVNode("", true),
|
|
269
|
+
createElementVNode("div", _hoisted_3, toDisplayString(item.name), 1)
|
|
270
|
+
], 10, _hoisted_2);
|
|
271
|
+
}), 128))
|
|
272
|
+
], 512)
|
|
273
|
+
]),
|
|
274
|
+
_: 3
|
|
275
|
+
}, 8, ["visible", "pop-class", "style", "overlay", "duration", "overlay-style", "overlay-class", "close-on-click-overlay"])
|
|
276
|
+
], 6)
|
|
277
|
+
]))
|
|
276
278
|
], 64);
|
|
277
279
|
}
|
|
278
280
|
const NutPopover = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.overlay-fade-enter-active,.overlay-fade-leave-active{transition-property:opacity;transition-timing-function:ease}.overlay-fade-enter-from,.overlay-fade-leave-to{opacity:0}.nut-overlay{position:fixed;top:0;left:0;width:100%;height:100%;background:var(--nut-overlay-bg-color, rgba(0, 0, 0, 0.7))}.nut-overflow-hidden{overflow:hidden !important}.nut-theme-dark .nut-popup{background:var(--nut-dark-background2, #1b1b1b)}.nut-theme-dark .nut-popup__close-icon{color:var(--nut-dark-color, var(--nut-white, #fff))}.nut-popup-slide-center-enter-active,.nut-popup-slide-center-leave-active{transition-property:opacity;transition-timing-function:ease}.nut-popup-slide-center-enter-from,.nut-popup-slide-center-leave-to{opacity:0}.nut-popup-slide-top-enter-from,.nut-popup-slide-top-leave-active{transform:translate(0, -100%)}.nut-popup-slide-right-enter-from,.nut-popup-slide-right-leave-active{transform:translate(100%, 0)}.nut-popup-slide-bottom-enter-from,.nut-popup-slide-bottom-leave-active{transform:translate(0, 100%)}.nut-popup-slide-left-enter-from,.nut-popup-slide-left-leave-active{transform:translate(-100%, 0)}.nut-popup--center{top:50%;left:50%;transform:translate(-50%, -50%)}.nut-popup--center.round{border-radius:var(--nut-popup-border-radius, 20px)}.nut-popup--bottom{bottom:0;left:0;width:100%}.nut-popup--bottom.round{border-radius:var(--nut-popup-border-radius, 20px) var(--nut-popup-border-radius, 20px) 0 0}.nut-popup--bottom--safebottom{padding-bottom:constant(safe-area-inset-bottom);padding-bottom:env(safe-area-inset-bottom)}.nut-popup--right{top:0;right:0}.nut-popup--right.round{border-radius:var(--nut-popup-border-radius, 20px) 0 0 var(--nut-popup-border-radius, 20px)}.nut-popup--left{top:0;left:0}.nut-popup--left.round{border-radius:0 var(--nut-popup-border-radius, 20px) var(--nut-popup-border-radius, 20px) 0}.nut-popup--top{top:0;left:0;width:100%}.nut-popup--top.round{border-radius:0 0 var(--nut-popup-border-radius, 20px) var(--nut-popup-border-radius, 20px)}.nut-popup{position:fixed;max-height:100%;overflow-y:auto;background-color:var(--nut-white, #fff);-webkit-overflow-scrolling:touch}.nut-popup__close-icon{position:absolute !important;z-index:1;color:#969799;font-size:18px;cursor:pointer;width:30px;height:30px;line-height:30px;text-align:center}.nut-popup__close-icon:active{opacity:.7}.nut-popup__close-icon--top-left{top:var(--nut-popup-close-icon-margin, 16px);left:var(--nut-popup-close-icon-margin, 16px)}.nut-popup__close-icon--top-right{top:var(--nut-popup-close-icon-margin, 16px);right:var(--nut-popup-close-icon-margin, 16px)}.nut-popup__close-icon--bottom-left{bottom:var(--nut-popup-close-icon-margin, 16px);left:var(--nut-popup-close-icon-margin, 16px)}.nut-popup__close-icon--bottom-right{right:var(--nut-popup-close-icon-margin, 16px);bottom:var(--nut-popup-close-icon-margin, 16px)}.nut-popover{position:absolute;display:inline-block;word-break:normal}.nut-popover .nut-popover-arrow{position:absolute;width:0;height:0;border:8px solid rgba(0,0,0,0)}.nut-popover .nut-popover-arrow-top{bottom:0;border-top-color:var(--nut-popover-white-background-color, rgb(255, 255, 255));border-bottom-width:0;margin-bottom:-8px}.nut-popover .nut-popover-arrow-bottom{top:0px;border-bottom-color:var(--nut-popover-white-background-color, rgb(255, 255, 255));border-top-width:0;margin-top:-8px}.nut-popover .nut-popover-arrow-bottom.nut-popover-arrow--bottom{left:50%;transform:translateX(-50%)}.nut-popover .nut-popover-arrow-bottom.nut-popover-arrow--bottom-start{left:16px;transform:translateX(0%)}.nut-popover .nut-popover-arrow-bottom.nut-popover-arrow--bottom-end{right:16px;transform:translateX(0%)}.nut-popover .nut-popover-arrow-left{right:0px;border-left-color:var(--nut-popover-white-background-color, rgb(255, 255, 255));border-right-width:0;margin-right:-8px}.nut-popover .nut-popover-arrow-left.nut-popover-arrow--left{top:50%;transform:translateY(-50%)}.nut-popover .nut-popover-arrow-left.nut-popover-arrow--left-start{top:16px;transform:translateY(0%)}.nut-popover .nut-popover-arrow-left.nut-popover-arrow--left-end{bottom:16px;transform:translateY(0%)}.nut-popover .nut-popover-arrow-right{left:0px;border-right-color:var(--nut-popover-white-background-color, rgb(255, 255, 255));border-left-width:0;margin-left:-8px}.nut-popover .nut-popover-arrow-right.nut-popover-arrow--right{top:50%;transform:translateY(-50%)}.nut-popover .nut-popover-arrow-right.nut-popover-arrow--right-start{top:16px;transform:translateY(0%)}.nut-popover .nut-popover-arrow-right.nut-popover-arrow--right-end{bottom:16px;transform:translateY(0%)}.nut-popover .nut-popover-content{position:absolute;z-index:9999;background:#fff;border-radius:5px;font-size:14px;font-weight:normal;color:#333;box-shadow:0 2px 12px rgba(50,50,51,.1215686275);opacity:1;transition:opacity .15s,transform .15s;max-height:initial;overflow-y:initial}.nut-popover .nut-popover-content-group{display:block;height:100%;width:100%}.nut-popover .nut-popover-content .nut-popover-menu-item{display:
|
|
1
|
+
.overlay-fade-enter-active,.overlay-fade-leave-active{transition-property:opacity;transition-timing-function:ease}.overlay-fade-enter-from,.overlay-fade-leave-to{opacity:0}.nut-overlay{position:fixed;top:0;left:0;width:100%;height:100%;background:var(--nut-overlay-bg-color, rgba(0, 0, 0, 0.7))}.nut-overflow-hidden{overflow:hidden !important}.nut-theme-dark .nut-popup{background:var(--nut-dark-background2, #1b1b1b)}.nut-theme-dark .nut-popup__close-icon{color:var(--nut-dark-color, var(--nut-white, #fff))}.nut-popup-slide-center-enter-active,.nut-popup-slide-center-leave-active{transition-property:opacity;transition-timing-function:ease}.nut-popup-slide-center-enter-from,.nut-popup-slide-center-leave-to{opacity:0}.nut-popup-slide-top-enter-from,.nut-popup-slide-top-leave-active{transform:translate(0, -100%)}.nut-popup-slide-right-enter-from,.nut-popup-slide-right-leave-active{transform:translate(100%, 0)}.nut-popup-slide-bottom-enter-from,.nut-popup-slide-bottom-leave-active{transform:translate(0, 100%)}.nut-popup-slide-left-enter-from,.nut-popup-slide-left-leave-active{transform:translate(-100%, 0)}.nut-popup--center{top:50%;left:50%;transform:translate(-50%, -50%)}.nut-popup--center.round{border-radius:var(--nut-popup-border-radius, 20px)}.nut-popup--bottom{bottom:0;left:0;width:100%}.nut-popup--bottom.round{border-radius:var(--nut-popup-border-radius, 20px) var(--nut-popup-border-radius, 20px) 0 0}.nut-popup--bottom--safebottom{padding-bottom:constant(safe-area-inset-bottom);padding-bottom:env(safe-area-inset-bottom)}.nut-popup--right{top:0;right:0}.nut-popup--right.round{border-radius:var(--nut-popup-border-radius, 20px) 0 0 var(--nut-popup-border-radius, 20px)}.nut-popup--left{top:0;left:0}.nut-popup--left.round{border-radius:0 var(--nut-popup-border-radius, 20px) var(--nut-popup-border-radius, 20px) 0}.nut-popup--top{top:0;left:0;width:100%}.nut-popup--top.round{border-radius:0 0 var(--nut-popup-border-radius, 20px) var(--nut-popup-border-radius, 20px)}.nut-popup{position:fixed;max-height:100%;overflow-y:auto;background-color:var(--nut-white, #fff);-webkit-overflow-scrolling:touch}.nut-popup__close-icon{position:absolute !important;z-index:1;color:#969799;font-size:18px;cursor:pointer;width:30px;height:30px;line-height:30px;text-align:center}.nut-popup__close-icon:active{opacity:.7}.nut-popup__close-icon--top-left{top:var(--nut-popup-close-icon-margin, 16px);left:var(--nut-popup-close-icon-margin, 16px)}.nut-popup__close-icon--top-right{top:var(--nut-popup-close-icon-margin, 16px);right:var(--nut-popup-close-icon-margin, 16px)}.nut-popup__close-icon--bottom-left{bottom:var(--nut-popup-close-icon-margin, 16px);left:var(--nut-popup-close-icon-margin, 16px)}.nut-popup__close-icon--bottom-right{right:var(--nut-popup-close-icon-margin, 16px);bottom:var(--nut-popup-close-icon-margin, 16px)}.nut-popover{position:absolute;display:inline-block;word-break:normal}.nut-popover .nut-popover-arrow{position:absolute;width:0;height:0;border:8px solid rgba(0,0,0,0)}.nut-popover .nut-popover-arrow-top{bottom:0;border-top-color:var(--nut-popover-white-background-color, rgb(255, 255, 255));border-bottom-width:0;margin-bottom:-8px}.nut-popover .nut-popover-arrow-bottom{top:0px;border-bottom-color:var(--nut-popover-white-background-color, rgb(255, 255, 255));border-top-width:0;margin-top:-8px}.nut-popover .nut-popover-arrow-bottom.nut-popover-arrow--bottom{left:50%;transform:translateX(-50%)}.nut-popover .nut-popover-arrow-bottom.nut-popover-arrow--bottom-start{left:16px;transform:translateX(0%)}.nut-popover .nut-popover-arrow-bottom.nut-popover-arrow--bottom-end{right:16px;transform:translateX(0%)}.nut-popover .nut-popover-arrow-left{right:0px;border-left-color:var(--nut-popover-white-background-color, rgb(255, 255, 255));border-right-width:0;margin-right:-8px}.nut-popover .nut-popover-arrow-left.nut-popover-arrow--left{top:50%;transform:translateY(-50%)}.nut-popover .nut-popover-arrow-left.nut-popover-arrow--left-start{top:16px;transform:translateY(0%)}.nut-popover .nut-popover-arrow-left.nut-popover-arrow--left-end{bottom:16px;transform:translateY(0%)}.nut-popover .nut-popover-arrow-right{left:0px;border-right-color:var(--nut-popover-white-background-color, rgb(255, 255, 255));border-left-width:0;margin-left:-8px}.nut-popover .nut-popover-arrow-right.nut-popover-arrow--right{top:50%;transform:translateY(-50%)}.nut-popover .nut-popover-arrow-right.nut-popover-arrow--right-start{top:16px;transform:translateY(0%)}.nut-popover .nut-popover-arrow-right.nut-popover-arrow--right-end{bottom:16px;transform:translateY(0%)}.nut-popover .nut-popover-content{position:absolute;z-index:9999;background:#fff;border-radius:5px;font-size:14px;font-weight:normal;color:#333;box-shadow:0 2px 12px rgba(50,50,51,.1215686275);opacity:1;transition:opacity .15s,transform .15s;max-height:initial;overflow-y:initial}.nut-popover .nut-popover-content-group{display:block;height:100%;width:100%}.nut-popover .nut-popover-content .nut-popover-menu-item{display:flex;align-items:center;padding:8px;border-bottom:1px solid var(--nut-popover-border-bottom-color, rgb(229, 229, 229))}.nut-popover .nut-popover-content .nut-popover-menu-item:first-child{margin-top:15px}.nut-popover .nut-popover-content .nut-popover-menu-item:last-child{margin-bottom:2px;border-bottom:none}.nut-popover .nut-popover-content .nut-popover-menu-item .nut-popover-item-img{vertical-align:top;margin-right:3px}.nut-popover .nut-popover-content .nut-popover-menu-item .nut-popover-menu-item-name{width:100%;text-align:center;word-break:keep-all}.nut-popover .nut-popover-content .nut-popover-menu-item.nut-popover-menu-disabled{color:var(--nut-popover-disable-color, rgb(154, 155, 157));cursor:not-allowed}.nut-popover .nut-popover-content--top .nut-popover-arrow--top{left:50%;transform:translateX(-50%)}.nut-popover .nut-popover-content--top-end{right:0}.nut-popover .nut-popover-content--top-end .nut-popover-arrow--top-end{right:16px;transform:translateX(0%)}.nut-popover .nut-popover-content--top-start{left:0}.nut-popover .nut-popover-content--top-start .nut-popover-arrow--top-start{left:16px;transform:translateX(0%)}.nut-popover .nut-popover-content--bottom-end{right:0}.nut-popover .nut-popover-content--left-end{bottom:0}.nut-popover .nut-popover-content--left-start{top:0}.nut-popover .nut-popover-content--right-end{bottom:0}.nut-popover .nut-popover-content--right-start{top:0}.nut-popover--dark .nut-popover-content{background:var(--nut-popover-dark-background-color, rgb(75, 76, 77));color:var(--nut-popover-white-background-color, rgb(255, 255, 255))}.nut-popover--dark .nut-popover-content--bottom .nut-popover-arrow,.nut-popover--dark .nut-popover-content--bottom-start .nut-popover-arrow,.nut-popover--dark .nut-popover-content--bottom-end .nut-popover-arrow{border-bottom-color:var(--nut-popover-dark-background-color, rgb(75, 76, 77))}.nut-popover--dark .nut-popover-content--top .nut-popover-arrow,.nut-popover--dark .nut-popover-content--top-start .nut-popover-arrow,.nut-popover--dark .nut-popover-content--top-end .nut-popover-arrow{border-top-color:var(--nut-popover-dark-background-color, rgb(75, 76, 77))}.nut-popover--dark .nut-popover-content--left .nut-popover-arrow,.nut-popover--dark .nut-popover-content--left-start .nut-popover-arrow,.nut-popover--dark .nut-popover-content--left-end .nut-popover-arrow{border-left-color:var(--nut-popover-dark-background-color, rgb(75, 76, 77))}.nut-popover--dark .nut-popover-content--right .nut-popover-arrow,.nut-popover--dark .nut-popover-content--right-start .nut-popover-arrow,.nut-popover--dark .nut-popover-content--right-end .nut-popover-arrow{border-right-color:var(--nut-popover-dark-background-color, rgb(75, 76, 77))}.nut-popover-enter-from,.nut-popover-leave-active{transform:scale(0.8);opacity:0}.nut-popover-enter-active{transition-timing-function:ease-out}.nut-popover-leave-active{transition-timing-function:ease-in}.nut-popover-content-bg{position:fixed;height:100%;width:100%;top:0;left:0;background:rgba(0,0,0,0);z-index:1999}.nut-popover-wrapper{display:inline-block}
|
|
@@ -109,8 +109,8 @@
|
|
|
109
109
|
}
|
|
110
110
|
|
|
111
111
|
.nut-popover-menu-item {
|
|
112
|
-
display:
|
|
113
|
-
|
|
112
|
+
display: flex;
|
|
113
|
+
align-items: center;
|
|
114
114
|
padding: 8px;
|
|
115
115
|
border-bottom: 1px solid $popover-border-bottom-color;
|
|
116
116
|
|
|
@@ -130,6 +130,7 @@
|
|
|
130
130
|
|
|
131
131
|
.nut-popover-menu-item-name {
|
|
132
132
|
width: 100%;
|
|
133
|
+
text-align: center;
|
|
133
134
|
word-break: keep-all;
|
|
134
135
|
}
|
|
135
136
|
|
|
@@ -137,10 +138,6 @@
|
|
|
137
138
|
color: $popover-disable-color;
|
|
138
139
|
cursor: not-allowed;
|
|
139
140
|
}
|
|
140
|
-
|
|
141
|
-
&.nut-popover-menu-taroitem {
|
|
142
|
-
display: flex;
|
|
143
|
-
}
|
|
144
141
|
}
|
|
145
142
|
|
|
146
143
|
&--top {
|
|
@@ -256,9 +253,3 @@
|
|
|
256
253
|
.nut-popover-wrapper {
|
|
257
254
|
display: inline-block;
|
|
258
255
|
}
|
|
259
|
-
|
|
260
|
-
// Taro
|
|
261
|
-
.nut-popover-content-copy {
|
|
262
|
-
position: absolute;
|
|
263
|
-
top: -99999px;
|
|
264
|
-
}
|
|
@@ -21,7 +21,7 @@ import { ref, computed, toRefs, openBlock, createElementBlock, normalizeClass, t
|
|
|
21
21
|
import { c as createComponent } from "../component-TCzwHGVq.js";
|
|
22
22
|
import { a as isArray } from "../util-4Jkyw4BJ.js";
|
|
23
23
|
import { u as useTouch } from "../index-084nl_oE.js";
|
|
24
|
-
import { u as useRect } from "../index-
|
|
24
|
+
import { u as useRect } from "../index-cp6Ms_Qe.js";
|
|
25
25
|
import { _ as _export_sfc } from "../_plugin-vue_export-helper-yVxbj29m.js";
|
|
26
26
|
const { componentName, create } = createComponent("range");
|
|
27
27
|
const _sfc_main = create({
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ref, reactive, computed, watch, onMounted, onUnmounted, openBlock, createElementBlock, normalizeStyle, createElementVNode, renderSlot } from "vue";
|
|
2
2
|
import { c as createComponent } from "../component-TCzwHGVq.js";
|
|
3
3
|
import { g as getScrollParent } from "../index-xDfQLRen.js";
|
|
4
|
-
import { u as useRect } from "../index-
|
|
4
|
+
import { u as useRect } from "../index-cp6Ms_Qe.js";
|
|
5
5
|
import { _ as _export_sfc } from "../_plugin-vue_export-helper-yVxbj29m.js";
|
|
6
6
|
const { create } = createComponent("sticky");
|
|
7
7
|
const _sfc_main = create({
|
|
@@ -44,7 +44,7 @@ import { JoySmile } from "@nutui/icons-vue";
|
|
|
44
44
|
import { c as createComponent } from "../component-TCzwHGVq.js";
|
|
45
45
|
import { T as TypeOfFun } from "../util-4Jkyw4BJ.js";
|
|
46
46
|
import { p as pxCheck } from "../pxCheck-OnXlN1NC.js";
|
|
47
|
-
import { u as useRect } from "../index-
|
|
47
|
+
import { u as useRect } from "../index-cp6Ms_Qe.js";
|
|
48
48
|
import { r as requestAniFrame } from "../raf-MQjoO-Ag.js";
|
|
49
49
|
import { u as useTouch } from "../index-084nl_oE.js";
|
|
50
50
|
import { _ as _export_sfc } from "../_plugin-vue_export-helper-yVxbj29m.js";
|
|
@@ -19,14 +19,14 @@ var __spreadValues = (a, b) => {
|
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
20
|
import { reactive, ref, computed, onMounted, watch, toRefs, nextTick, resolveComponent, openBlock, createElementBlock, normalizeClass, withDirectives, createElementVNode, vShow, Fragment, renderList, normalizeStyle, createCommentVNode, createVNode, withCtx, renderSlot, toDisplayString } from "vue";
|
|
21
21
|
import { c as createComponent } from "../component-TCzwHGVq.js";
|
|
22
|
-
import { u as useRect } from "../index-
|
|
22
|
+
import { u as useRect } from "../index-cp6Ms_Qe.js";
|
|
23
23
|
import { Close } from "@nutui/icons-vue";
|
|
24
24
|
import NutPopover from "../popover/Popover.js";
|
|
25
25
|
import { _ as _export_sfc } from "../_plugin-vue_export-helper-yVxbj29m.js";
|
|
26
26
|
import "../renderIcon--EgZu5_5.js";
|
|
27
|
-
import "../util-4Jkyw4BJ.js";
|
|
28
27
|
import "../index-wY4t0zYt.js";
|
|
29
28
|
import "../overlay/Overlay.js";
|
|
29
|
+
import "../util-4Jkyw4BJ.js";
|
|
30
30
|
const { create } = createComponent("tour");
|
|
31
31
|
const _sfc_main = create({
|
|
32
32
|
components: {
|