@nutui/nutui 4.0.0-beta.23 → 4.0.0-beta.25
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 +13 -940
- package/dist/nutui.es.js +1 -1
- package/dist/nutui.umd.js +2 -2
- package/dist/packages/_es/ActionSheet.js +1 -1
- package/dist/packages/_es/Address.js +4 -4
- package/dist/packages/_es/AddressList.js +25 -25
- package/dist/packages/_es/Badge.js +2 -2
- package/dist/packages/_es/Barrage.js +42 -18
- package/dist/packages/_es/Calendar.js +1 -1
- package/dist/packages/_es/Cascader.js +2 -2
- package/dist/packages/_es/CollapseItem.js +2 -2
- package/dist/packages/_es/Dialog.js +1 -1
- package/dist/packages/_es/ImagePreview.js +1 -1
- package/dist/packages/_es/InfiniteLoading.js +1 -1
- package/dist/packages/_es/InputNumber.js +4 -4
- package/dist/packages/_es/MenuItem.js +1 -1
- package/dist/packages/_es/Navbar.js +4 -4
- package/dist/packages/_es/Noticebar.js +11 -7
- package/dist/packages/_es/Notify.js +1 -1
- package/dist/packages/_es/NumberKeyboard.js +1 -1
- package/dist/packages/_es/Overlay.js +10 -4
- package/dist/packages/_es/Popover.js +1 -1
- package/dist/packages/_es/Popup.js +1 -1
- package/dist/packages/_es/Progress.js +1 -1
- package/dist/packages/_es/Searchbar.js +1 -1
- package/dist/packages/_es/ShortPassword.js +1 -1
- package/dist/packages/_es/Sku.js +1 -1
- package/dist/packages/_es/Tabs.js +3 -3
- package/dist/packages/_es/TimeSelect.js +1 -1
- package/dist/packages/_es/Tour.js +3 -3
- package/dist/packages/_es/TrendArrow.js +2 -2
- package/dist/packages/_es/{index-af79da1a.js → index-991c279f.js} +1 -1
- package/dist/packages/countup/index.scss +1 -0
- package/dist/packages/ecard/index.scss +20 -6
- package/dist/packages/inputnumber/index.scss +6 -0
- package/dist/packages/noticebar/index.scss +9 -9
- package/dist/packages/tabbaritem/index.scss +2 -0
- package/dist/packages/tour/index.scss +3 -0
- package/dist/smartips/web-types.json +19 -10
- package/dist/style.css +1 -1
- package/dist/styles/themes/default.scss +54 -54
- package/dist/styles/themes/jdb.scss +54 -54
- package/dist/styles/themes/jddkh.scss +54 -54
- package/dist/styles/themes/jdt.scss +54 -54
- package/dist/styles/variables-jdb.scss +2 -4
- package/dist/styles/variables-jddkh.scss +2 -4
- package/dist/styles/variables-jdt.scss +2 -4
- package/dist/styles/variables.scss +2 -4
- package/dist/types/__VUE/noticebar/index.vue.d.ts +6 -10
- package/dist/types/index.d.ts +1 -1
- package/package.json +2 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { c as createComponent } from "./component-81a4c1d0.js";
|
|
2
2
|
import { useSlots, computed, resolveComponent, openBlock, createBlock, withCtx, createElementVNode, normalizeClass, createElementBlock, toDisplayString, createCommentVNode, renderSlot, Fragment, renderList, normalizeStyle } from "vue";
|
|
3
|
-
import { P as Popup, p as popupProps } from "./index-
|
|
3
|
+
import { P as Popup, p as popupProps } from "./index-991c279f.js";
|
|
4
4
|
import { Loading } from "@nutui/icons-vue";
|
|
5
5
|
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
6
6
|
import "../locale/lang";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ref, computed, reactive, watch, toRefs, nextTick, resolveComponent, openBlock, createBlock, withCtx, createElementVNode, renderSlot, withDirectives, createVNode, vShow, toDisplayString, createElementBlock, Fragment, renderList, normalizeClass, createCommentVNode, normalizeStyle, createTextVNode } from "vue";
|
|
2
2
|
import { c as createComponent } from "./component-81a4c1d0.js";
|
|
3
|
-
import { P as Popup, p as popupProps } from "./index-
|
|
3
|
+
import { P as Popup, p as popupProps } from "./index-991c279f.js";
|
|
4
4
|
import Elevator from "./Elevator.js";
|
|
5
5
|
import { Location, Location2, Check, Close, Left } from "@nutui/icons-vue";
|
|
6
6
|
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
@@ -375,7 +375,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
375
375
|
class: "nut-address__header-back",
|
|
376
376
|
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.switchModule && _ctx.switchModule(...args))
|
|
377
377
|
}, [
|
|
378
|
-
renderSlot(_ctx.$slots, "
|
|
378
|
+
renderSlot(_ctx.$slots, "back-icon", {}, () => [
|
|
379
379
|
withDirectives(createVNode(_component_Left, null, null, 512), [
|
|
380
380
|
[vShow, _ctx.type == "exist" && _ctx.privateType == "custom"]
|
|
381
381
|
])
|
|
@@ -386,7 +386,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
386
386
|
class: "nut-address__header-close",
|
|
387
387
|
onClick: _cache[1] || (_cache[1] = ($event) => _ctx.handClose("cross"))
|
|
388
388
|
}, [
|
|
389
|
-
renderSlot(_ctx.$slots, "
|
|
389
|
+
renderSlot(_ctx.$slots, "close-icon", {}, () => [
|
|
390
390
|
createVNode(_component_Close, {
|
|
391
391
|
color: "#cccccc",
|
|
392
392
|
size: "18px"
|
|
@@ -451,7 +451,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
451
451
|
key: index2,
|
|
452
452
|
onClick: ($event) => _ctx.selectedExist(item)
|
|
453
453
|
}, [
|
|
454
|
-
!item.selectedAddress ? renderSlot(_ctx.$slots, "
|
|
454
|
+
!item.selectedAddress ? renderSlot(_ctx.$slots, "unselected-icon", { key: 0 }, () => [
|
|
455
455
|
createVNode(_component_Location2, {
|
|
456
456
|
class: "nut-address-select-icon",
|
|
457
457
|
width: "13px"
|
|
@@ -57,14 +57,14 @@ function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
57
57
|
}, [
|
|
58
58
|
createElementVNode("div", _hoisted_1$1, [
|
|
59
59
|
createElementVNode("div", _hoisted_2$1, [
|
|
60
|
-
renderSlot(_ctx.$slots, "
|
|
60
|
+
renderSlot(_ctx.$slots, "content-top", {}, () => [
|
|
61
61
|
createElementVNode("div", _hoisted_3, toDisplayString(_ctx.item.addressName), 1),
|
|
62
62
|
createElementVNode("div", _hoisted_4, toDisplayString(_ctx.item.phone), 1),
|
|
63
63
|
_ctx.item.defaultAddress ? (openBlock(), createElementBlock("div", _hoisted_5, toDisplayString(_ctx.translate("default")), 1)) : createCommentVNode("", true)
|
|
64
64
|
])
|
|
65
65
|
]),
|
|
66
66
|
createElementVNode("div", _hoisted_6, [
|
|
67
|
-
renderSlot(_ctx.$slots, "
|
|
67
|
+
renderSlot(_ctx.$slots, "content-icon", {}, () => [
|
|
68
68
|
createVNode(_component_Del, {
|
|
69
69
|
name: "del",
|
|
70
70
|
class: "nut-address-list-item__info-handle-del",
|
|
@@ -79,7 +79,7 @@ function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
79
79
|
])
|
|
80
80
|
]),
|
|
81
81
|
createElementVNode("div", _hoisted_7, [
|
|
82
|
-
renderSlot(_ctx.$slots, "
|
|
82
|
+
renderSlot(_ctx.$slots, "content-addr", {}, () => [
|
|
83
83
|
createTextVNode(toDisplayString(_ctx.item.fullAddress), 1)
|
|
84
84
|
])
|
|
85
85
|
])
|
|
@@ -222,14 +222,14 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
222
222
|
onTouchend: _ctx.holddownend,
|
|
223
223
|
onTouchmove: _ctx.holddownmove
|
|
224
224
|
}, {
|
|
225
|
-
|
|
226
|
-
renderSlot(_ctx.$slots, "
|
|
225
|
+
"content-top": withCtx(() => [
|
|
226
|
+
renderSlot(_ctx.$slots, "content-info")
|
|
227
227
|
]),
|
|
228
|
-
|
|
229
|
-
renderSlot(_ctx.$slots, "
|
|
228
|
+
"content-icon": withCtx(() => [
|
|
229
|
+
renderSlot(_ctx.$slots, "content-icons")
|
|
230
230
|
]),
|
|
231
|
-
|
|
232
|
-
renderSlot(_ctx.$slots, "
|
|
231
|
+
"content-addr": withCtx(() => [
|
|
232
|
+
renderSlot(_ctx.$slots, "content-addrs")
|
|
233
233
|
]),
|
|
234
234
|
_: 3
|
|
235
235
|
}, 40, ["onTouchstart", "onTouchend", "onTouchmove"])),
|
|
@@ -238,7 +238,7 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
238
238
|
class: "nut-address-list-general__mask",
|
|
239
239
|
onClick: _cache[3] || (_cache[3] = (...args) => _ctx.maskClick && _ctx.maskClick(...args))
|
|
240
240
|
}, [
|
|
241
|
-
renderSlot(_ctx.$slots, "
|
|
241
|
+
renderSlot(_ctx.$slots, "longpress-all", {}, () => [
|
|
242
242
|
createElementVNode("div", {
|
|
243
243
|
class: "nut-address-list-general__mask-copy",
|
|
244
244
|
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.copyCLick && _ctx.copyCLick(...args))
|
|
@@ -260,7 +260,7 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
260
260
|
})) : createCommentVNode("", true)
|
|
261
261
|
])) : (openBlock(), createBlock(_component_nut_swipe, { key: 1 }, {
|
|
262
262
|
right: withCtx(() => [
|
|
263
|
-
renderSlot(_ctx.$slots, "
|
|
263
|
+
renderSlot(_ctx.$slots, "swipe-right-btn", {}, () => [
|
|
264
264
|
createVNode(_component_nut_button, {
|
|
265
265
|
shape: "square",
|
|
266
266
|
style: { "height": "100%" },
|
|
@@ -280,14 +280,14 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
280
280
|
onTouchmove: _ctx.swipemove,
|
|
281
281
|
onTouchstart: _ctx.swipestart
|
|
282
282
|
}, {
|
|
283
|
-
|
|
284
|
-
renderSlot(_ctx.$slots, "
|
|
283
|
+
"content-top": withCtx(() => [
|
|
284
|
+
renderSlot(_ctx.$slots, "content-info")
|
|
285
285
|
]),
|
|
286
|
-
|
|
287
|
-
renderSlot(_ctx.$slots, "
|
|
286
|
+
"content-icon": withCtx(() => [
|
|
287
|
+
renderSlot(_ctx.$slots, "content-icons")
|
|
288
288
|
]),
|
|
289
|
-
|
|
290
|
-
renderSlot(_ctx.$slots, "
|
|
289
|
+
"content-addr": withCtx(() => [
|
|
290
|
+
renderSlot(_ctx.$slots, "content-addrs")
|
|
291
291
|
]),
|
|
292
292
|
_: 3
|
|
293
293
|
}, 40, ["onTouchmove", "onTouchstart"]))
|
|
@@ -423,28 +423,28 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
423
423
|
onLongSet: _ctx.clickLongSet,
|
|
424
424
|
onLongDel: _ctx.clickLongDel
|
|
425
425
|
}, createSlots({
|
|
426
|
-
|
|
427
|
-
renderSlot(_ctx.$slots, "
|
|
426
|
+
"content-info": withCtx(() => [
|
|
427
|
+
renderSlot(_ctx.$slots, "item-infos")
|
|
428
428
|
]),
|
|
429
|
-
|
|
429
|
+
"content-icons": withCtx(() => [
|
|
430
430
|
renderSlot(_ctx.$slots, "itemicon")
|
|
431
431
|
]),
|
|
432
|
-
|
|
432
|
+
"content-addrs": withCtx(() => [
|
|
433
433
|
renderSlot(_ctx.$slots, "itemaddr")
|
|
434
434
|
]),
|
|
435
435
|
_: 2
|
|
436
436
|
}, [
|
|
437
437
|
_ctx.longPress ? {
|
|
438
|
-
name: "
|
|
438
|
+
name: "longpress-all",
|
|
439
439
|
fn: withCtx(() => [
|
|
440
|
-
renderSlot(_ctx.$slots, "
|
|
440
|
+
renderSlot(_ctx.$slots, "longpress-btns")
|
|
441
441
|
]),
|
|
442
442
|
key: "0"
|
|
443
443
|
} : void 0,
|
|
444
444
|
_ctx.swipeEdition ? {
|
|
445
|
-
name: "
|
|
445
|
+
name: "swipe-right-btn",
|
|
446
446
|
fn: withCtx(() => [
|
|
447
|
-
renderSlot(_ctx.$slots, "
|
|
447
|
+
renderSlot(_ctx.$slots, "swipe-right")
|
|
448
448
|
]),
|
|
449
449
|
key: "1"
|
|
450
450
|
} : void 0
|
|
@@ -72,9 +72,9 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
72
72
|
class: "nut-badge__icon",
|
|
73
73
|
style: normalizeStyle(_ctx.stl)
|
|
74
74
|
}, [
|
|
75
|
-
renderSlot(_ctx.$slots, "
|
|
75
|
+
renderSlot(_ctx.$slots, "icon")
|
|
76
76
|
], 4), [
|
|
77
|
-
[vShow, !_ctx.hidden && !_ctx.dot]
|
|
77
|
+
[vShow, !_ctx.hidden && !_ctx.dot && _ctx.$slots.icon]
|
|
78
78
|
]),
|
|
79
79
|
renderSlot(_ctx.$slots, "default"),
|
|
80
80
|
withDirectives(createElementVNode("view", {
|
|
@@ -31,7 +31,7 @@ const _sfc_main = create({
|
|
|
31
31
|
default: true
|
|
32
32
|
}
|
|
33
33
|
},
|
|
34
|
-
setup(props
|
|
34
|
+
setup(props) {
|
|
35
35
|
const classTime = new Date().getTime();
|
|
36
36
|
const slotDefault = !!useSlots().default;
|
|
37
37
|
const classes = computed(() => {
|
|
@@ -51,32 +51,53 @@ const _sfc_main = create({
|
|
|
51
51
|
const danmuCWidth = ref(0);
|
|
52
52
|
onMounted(() => {
|
|
53
53
|
init();
|
|
54
|
+
if (slotDefault) {
|
|
55
|
+
document.addEventListener("visibilitychange", function() {
|
|
56
|
+
if (document.visibilityState === "hidden") {
|
|
57
|
+
clearTime();
|
|
58
|
+
index2.value = 0;
|
|
59
|
+
eleSlot("hidden");
|
|
60
|
+
} else if (document.visibilityState === "visible") {
|
|
61
|
+
init();
|
|
62
|
+
}
|
|
63
|
+
});
|
|
64
|
+
}
|
|
54
65
|
});
|
|
55
66
|
onUnmounted(() => {
|
|
56
67
|
danmuList.value = [];
|
|
57
68
|
clearTime();
|
|
58
69
|
});
|
|
59
70
|
const init = () => {
|
|
60
|
-
var _a;
|
|
61
71
|
danmuCWidth.value = dmBody.value.offsetWidth;
|
|
62
72
|
if (slotDefault) {
|
|
63
|
-
|
|
64
|
-
let childrens = ((_a = list == null ? void 0 : list[0]) == null ? void 0 : _a.children) || [];
|
|
65
|
-
const dmList = [];
|
|
66
|
-
if (childrens) {
|
|
67
|
-
Array.from(childrens).forEach((item) => {
|
|
68
|
-
item.style.opacity = "0";
|
|
69
|
-
dmList.push(item);
|
|
70
|
-
});
|
|
71
|
-
}
|
|
72
|
-
danmuList.value = dmList;
|
|
73
|
+
eleSlot("init");
|
|
73
74
|
}
|
|
74
75
|
setTimeout(() => {
|
|
75
|
-
var
|
|
76
|
-
(
|
|
76
|
+
var _a;
|
|
77
|
+
(_a = dmBody.value) == null ? void 0 : _a.style.setProperty("--move-distance", `-${danmuCWidth.value}px`);
|
|
77
78
|
run();
|
|
78
79
|
}, 300);
|
|
79
80
|
};
|
|
81
|
+
const eleSlot = (flag) => {
|
|
82
|
+
var _a;
|
|
83
|
+
const list = document.getElementsByClassName("slotBody" + classTime);
|
|
84
|
+
let childrens = ((_a = list == null ? void 0 : list[0]) == null ? void 0 : _a.children) || [];
|
|
85
|
+
const dmList = [];
|
|
86
|
+
if (childrens) {
|
|
87
|
+
Array.from(childrens).forEach((item) => {
|
|
88
|
+
if (flag == "init") {
|
|
89
|
+
item.style.opacity = "0";
|
|
90
|
+
dmList.push(item);
|
|
91
|
+
} else {
|
|
92
|
+
item.classList = "";
|
|
93
|
+
item.style = {};
|
|
94
|
+
}
|
|
95
|
+
});
|
|
96
|
+
}
|
|
97
|
+
if (flag == "init") {
|
|
98
|
+
danmuList.value = dmList;
|
|
99
|
+
}
|
|
100
|
+
};
|
|
80
101
|
const clearTime = () => {
|
|
81
102
|
clearTimeout(timer);
|
|
82
103
|
timer = 0;
|
|
@@ -101,7 +122,6 @@ const _sfc_main = create({
|
|
|
101
122
|
clearTime();
|
|
102
123
|
timer = setTimeout(() => {
|
|
103
124
|
play();
|
|
104
|
-
run();
|
|
105
125
|
}, props.frequency);
|
|
106
126
|
};
|
|
107
127
|
const play = () => {
|
|
@@ -130,16 +150,20 @@ const _sfc_main = create({
|
|
|
130
150
|
const width = el.offsetWidth;
|
|
131
151
|
el.style.width = width + 20 + "px";
|
|
132
152
|
}
|
|
133
|
-
el.dataset.index = `${_index}`;
|
|
134
153
|
el.addEventListener("animationend", () => {
|
|
135
|
-
var _a3;
|
|
136
154
|
if (slotDefault) {
|
|
137
|
-
|
|
155
|
+
el.classList.remove("move");
|
|
138
156
|
} else {
|
|
139
157
|
dmContainer.value.removeChild(el);
|
|
140
158
|
}
|
|
141
159
|
});
|
|
142
160
|
index2.value++;
|
|
161
|
+
if (index2.value >= danmuList.value.length) {
|
|
162
|
+
index2.value = 0;
|
|
163
|
+
}
|
|
164
|
+
el.removeEventListener("animationend", () => {
|
|
165
|
+
});
|
|
166
|
+
run();
|
|
143
167
|
});
|
|
144
168
|
};
|
|
145
169
|
return { classTime, classes, danmuList, dmBody, dmContainer, add };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { computed, ref, resolveComponent, openBlock, createBlock, withCtx, createSlots, renderSlot, createCommentVNode } from "vue";
|
|
2
2
|
import { c as createComponent } from "./component-81a4c1d0.js";
|
|
3
3
|
import { C as CalendarItem, U as Utils } from "./index-f3a722c9.js";
|
|
4
|
-
import { P as Popup } from "./index-
|
|
4
|
+
import { P as Popup } from "./index-991c279f.js";
|
|
5
5
|
import { u as useExpose } from "./index-79c5dc33.js";
|
|
6
6
|
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
7
7
|
import "../locale/lang";
|
|
@@ -5,7 +5,7 @@ var __publicField = (obj, key, value) => {
|
|
|
5
5
|
return value;
|
|
6
6
|
};
|
|
7
7
|
import { computed, ref, watch, resolveComponent, openBlock, createBlock, withCtx, createElementBlock, Fragment, renderList, createElementVNode, normalizeClass, toDisplayString, createCommentVNode, createVNode } from "vue";
|
|
8
|
-
import { P as Popup, p as popupProps } from "./index-
|
|
8
|
+
import { P as Popup, p as popupProps } from "./index-991c279f.js";
|
|
9
9
|
import { c as createComponent } from "./component-81a4c1d0.js";
|
|
10
10
|
import { Loading, Checklist } from "@nutui/icons-vue";
|
|
11
11
|
import Tabs from "./Tabs.js";
|
|
@@ -522,7 +522,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
522
522
|
position: "bottom",
|
|
523
523
|
"pop-class": "nut-cascader__popup",
|
|
524
524
|
round: "",
|
|
525
|
-
closeable:
|
|
525
|
+
closeable: _ctx.closeable,
|
|
526
526
|
"destroy-on-close": false,
|
|
527
527
|
"close-icon-position": _ctx.closeIconPosition
|
|
528
528
|
}, {
|
|
@@ -228,9 +228,9 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
228
228
|
(openBlock(), createBlock(resolveDynamicComponent(_ctx.renderIcon(_ctx.icon))))
|
|
229
229
|
], 6)
|
|
230
230
|
], 2),
|
|
231
|
-
_ctx.$slots.
|
|
231
|
+
_ctx.$slots.extra ? (openBlock(), createElementBlock("view", _hoisted_7, [
|
|
232
232
|
createElementVNode("div", _hoisted_8, [
|
|
233
|
-
renderSlot(_ctx.$slots, "
|
|
233
|
+
renderSlot(_ctx.$slots, "extra")
|
|
234
234
|
])
|
|
235
235
|
])) : createCommentVNode("", true),
|
|
236
236
|
createElementVNode("view", _hoisted_9, [
|
|
@@ -7,7 +7,7 @@ var __publicField = (obj, key, value) => {
|
|
|
7
7
|
import { ref, onMounted, watch, computed, resolveComponent, openBlock, createBlock, normalizeStyle, withCtx, createElementVNode, normalizeClass, createElementBlock, renderSlot, Fragment, createTextVNode, toDisplayString, createCommentVNode, resolveDynamicComponent, h } from "vue";
|
|
8
8
|
import { c as createComponent } from "./component-81a4c1d0.js";
|
|
9
9
|
import { f as funInterceptor } from "./interceptor-956b24fc.js";
|
|
10
|
-
import { P as Popup, p as popupProps } from "./index-
|
|
10
|
+
import { P as Popup, p as popupProps } from "./index-991c279f.js";
|
|
11
11
|
import Button from "./Button.js";
|
|
12
12
|
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
13
13
|
import Overlay from "./Overlay.js";
|
|
@@ -12,7 +12,7 @@ import Video from "./Video.js";
|
|
|
12
12
|
import SwiperItem from "./SwiperItem.js";
|
|
13
13
|
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
14
14
|
import { CircleClose } from "@nutui/icons-vue";
|
|
15
|
-
import { P as Popup } from "./index-
|
|
15
|
+
import { P as Popup } from "./index-991c279f.js";
|
|
16
16
|
import Swiper from "./Swiper.js";
|
|
17
17
|
import { f as funInterceptor } from "./interceptor-956b24fc.js";
|
|
18
18
|
import "../locale/lang";
|
|
@@ -151,7 +151,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
151
151
|
createElementVNode("view", _hoisted_2, [
|
|
152
152
|
_ctx.isInfiniting ? (openBlock(), createElementBlock("view", _hoisted_3, [
|
|
153
153
|
renderSlot(_ctx.$slots, "loading", {}, () => [
|
|
154
|
-
renderSlot(_ctx.$slots, "
|
|
154
|
+
renderSlot(_ctx.$slots, "loading-icon", {}, () => [
|
|
155
155
|
createVNode(_component_Loading, { class: "nut-icon-loading nut-infinite__bottom-box__img" })
|
|
156
156
|
]),
|
|
157
157
|
createElementVNode("view", _hoisted_4, toDisplayString(_ctx.loadTxt || _ctx.translate("loading")), 1)
|
|
@@ -14,11 +14,11 @@ const _sfc_main = create({
|
|
|
14
14
|
},
|
|
15
15
|
inputWidth: {
|
|
16
16
|
type: [Number, String],
|
|
17
|
-
default: "
|
|
17
|
+
default: ""
|
|
18
18
|
},
|
|
19
19
|
buttonSize: {
|
|
20
20
|
type: [Number, String],
|
|
21
|
-
default: "
|
|
21
|
+
default: ""
|
|
22
22
|
},
|
|
23
23
|
min: {
|
|
24
24
|
type: [Number, String],
|
|
@@ -136,7 +136,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
136
136
|
class: normalizeClass(["nut-input-number__icon nut-input-number__left", { "nut-input-number__icon--disabled": !_ctx.reduceAllow() }]),
|
|
137
137
|
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.reduce && _ctx.reduce(...args))
|
|
138
138
|
}, [
|
|
139
|
-
renderSlot(_ctx.$slots, "
|
|
139
|
+
renderSlot(_ctx.$slots, "left-icon", {}, () => [
|
|
140
140
|
createVNode(_component_Minus, {
|
|
141
141
|
width: _ctx.pxCheck(_ctx.buttonSize),
|
|
142
142
|
height: _ctx.pxCheck(_ctx.buttonSize)
|
|
@@ -159,7 +159,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
159
159
|
class: normalizeClass(["nut-input-number__icon nut-input-number__right", { "nut-input-number__icon--disabled": !_ctx.addAllow() }]),
|
|
160
160
|
onClick: _cache[4] || (_cache[4] = (...args) => _ctx.add && _ctx.add(...args))
|
|
161
161
|
}, [
|
|
162
|
-
renderSlot(_ctx.$slots, "
|
|
162
|
+
renderSlot(_ctx.$slots, "right-icon", {}, () => [
|
|
163
163
|
createVNode(_component_Plus, {
|
|
164
164
|
width: _ctx.pxCheck(_ctx.buttonSize),
|
|
165
165
|
height: _ctx.pxCheck(_ctx.buttonSize)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { reactive, computed, inject, getCurrentInstance, onUnmounted, resolveComponent, withDirectives, openBlock, createElementBlock, normalizeClass, createElementVNode, normalizeStyle, vShow, createVNode, mergeProps, withCtx, Fragment, renderList, renderSlot, createCommentVNode, toDisplayString } from "vue";
|
|
2
2
|
import { c as createComponent } from "./component-81a4c1d0.js";
|
|
3
|
-
import { P as Popup } from "./index-
|
|
3
|
+
import { P as Popup } from "./index-991c279f.js";
|
|
4
4
|
import { Check } from "@nutui/icons-vue";
|
|
5
5
|
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
6
6
|
import "../locale/lang";
|
|
@@ -127,7 +127,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
127
127
|
class: "nut-navbar__left",
|
|
128
128
|
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.handleLeft && _ctx.handleLeft(...args))
|
|
129
129
|
}, [
|
|
130
|
-
_ctx.leftShow ? renderSlot(_ctx.$slots, "
|
|
130
|
+
_ctx.leftShow ? renderSlot(_ctx.$slots, "left-show", { key: 0 }, () => [
|
|
131
131
|
createVNode(_component_Left, {
|
|
132
132
|
height: "12px",
|
|
133
133
|
color: "#979797"
|
|
@@ -147,7 +147,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
147
147
|
class: "icon",
|
|
148
148
|
onClick: _cache[3] || (_cache[3] = (...args) => _ctx.handleCenterIcon && _ctx.handleCenterIcon(...args))
|
|
149
149
|
}, [
|
|
150
|
-
renderSlot(_ctx.$slots, "
|
|
150
|
+
renderSlot(_ctx.$slots, "title-icon", {
|
|
151
151
|
onClick: _cache[2] || (_cache[2] = (...args) => _ctx.handleCenterIcon && _ctx.handleCenterIcon(...args))
|
|
152
152
|
})
|
|
153
153
|
])) : createCommentVNode("", true),
|
|
@@ -170,7 +170,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
170
170
|
class: "nut-navbar__left",
|
|
171
171
|
onClick: _cache[5] || (_cache[5] = (...args) => _ctx.handleLeft && _ctx.handleLeft(...args))
|
|
172
172
|
}, [
|
|
173
|
-
_ctx.leftShow ? renderSlot(_ctx.$slots, "
|
|
173
|
+
_ctx.leftShow ? renderSlot(_ctx.$slots, "left-show", { key: 0 }, () => [
|
|
174
174
|
createVNode(_component_Left, {
|
|
175
175
|
height: "12px",
|
|
176
176
|
color: "#979797"
|
|
@@ -190,7 +190,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
190
190
|
class: "icon",
|
|
191
191
|
onClick: _cache[8] || (_cache[8] = (...args) => _ctx.handleCenterIcon && _ctx.handleCenterIcon(...args))
|
|
192
192
|
}, [
|
|
193
|
-
renderSlot(_ctx.$slots, "
|
|
193
|
+
renderSlot(_ctx.$slots, "title-icon", {
|
|
194
194
|
onClick: _cache[7] || (_cache[7] = (...args) => _ctx.handleCenterIcon && _ctx.handleCenterIcon(...args))
|
|
195
195
|
})
|
|
196
196
|
])) : createCommentVNode("", true),
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { h, ref, reactive, computed, watch, onMounted, onActivated, onDeactivated, onUnmounted, toRefs, resolveComponent, openBlock, createElementBlock, normalizeClass, withDirectives, normalizeStyle, createElementVNode, renderSlot, createBlock,
|
|
1
|
+
import { h, ref, reactive, computed, watch, onMounted, onActivated, onDeactivated, onUnmounted, toRefs, resolveComponent, openBlock, createElementBlock, normalizeClass, withDirectives, normalizeStyle, createElementVNode, renderSlot, createBlock, createCommentVNode, createTextVNode, toDisplayString, withModifiers, vShow, Fragment, renderList } from "vue";
|
|
2
2
|
import { Notice, CircleClose } from "@nutui/icons-vue";
|
|
3
3
|
import { c as createComponent } from "./component-81a4c1d0.js";
|
|
4
|
-
import { r as renderIcon } from "./renderIcon-3d0fd47c.js";
|
|
5
4
|
import { p as pxCheck } from "./pxCheck-c6b9f6b7.js";
|
|
6
5
|
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
7
6
|
import "../locale/lang";
|
|
@@ -43,7 +42,7 @@ const _sfc_main = create({
|
|
|
43
42
|
type: Boolean,
|
|
44
43
|
default: false
|
|
45
44
|
},
|
|
46
|
-
leftIcon: { type:
|
|
45
|
+
leftIcon: { type: Boolean, default: true },
|
|
47
46
|
color: {
|
|
48
47
|
type: String,
|
|
49
48
|
default: ""
|
|
@@ -277,8 +276,7 @@ const _sfc_main = create({
|
|
|
277
276
|
handleClickIcon,
|
|
278
277
|
slots,
|
|
279
278
|
pxCheck,
|
|
280
|
-
wrapContentClass
|
|
281
|
-
renderIcon
|
|
279
|
+
wrapContentClass
|
|
282
280
|
};
|
|
283
281
|
}
|
|
284
282
|
});
|
|
@@ -289,6 +287,7 @@ const _hoisted_2 = {
|
|
|
289
287
|
};
|
|
290
288
|
const _hoisted_3 = ["onClick"];
|
|
291
289
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
290
|
+
const _component_Notice = resolveComponent("Notice");
|
|
292
291
|
const _component_CircleClose = resolveComponent("CircleClose");
|
|
293
292
|
const _component_ScrollItem = resolveComponent("ScrollItem");
|
|
294
293
|
return openBlock(), createElementBlock("view", {
|
|
@@ -305,7 +304,12 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
305
304
|
onClick: _cache[3] || (_cache[3] = (...args) => _ctx.handleClick && _ctx.handleClick(...args))
|
|
306
305
|
}, [
|
|
307
306
|
createElementVNode("view", _hoisted_1, [
|
|
308
|
-
|
|
307
|
+
renderSlot(_ctx.$slots, "left-icon", {}, () => [
|
|
308
|
+
_ctx.leftIcon ? (openBlock(), createBlock(_component_Notice, {
|
|
309
|
+
key: 0,
|
|
310
|
+
size: "16px"
|
|
311
|
+
})) : createCommentVNode("", true)
|
|
312
|
+
])
|
|
309
313
|
]),
|
|
310
314
|
createElementVNode("view", _hoisted_2, [
|
|
311
315
|
createElementVNode("view", {
|
|
@@ -365,7 +369,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
365
369
|
class: "go",
|
|
366
370
|
onClick: _cache[4] || (_cache[4] = ($event) => !_ctx.slots.rightIcon && _ctx.handleClickIcon())
|
|
367
371
|
}, [
|
|
368
|
-
renderSlot(_ctx.$slots, "
|
|
372
|
+
renderSlot(_ctx.$slots, "right-icon", {}, () => [
|
|
369
373
|
_ctx.closeMode ? (openBlock(), createBlock(_component_CircleClose, {
|
|
370
374
|
key: 0,
|
|
371
375
|
color: _ctx.color,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ref, watch, resolveComponent, openBlock, createBlock, withCtx, createElementVNode, normalizeClass, normalizeStyle, renderSlot, createElementBlock, Fragment, createTextVNode, toDisplayString, createVNode, render, onMounted, h } from "vue";
|
|
2
2
|
import { c as createComponent } from "./component-81a4c1d0.js";
|
|
3
|
-
import { P as Popup } from "./index-
|
|
3
|
+
import { P as Popup } from "./index-991c279f.js";
|
|
4
4
|
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
5
5
|
import "../locale/lang";
|
|
6
6
|
import "./Overlay.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ref, computed, watch, resolveComponent, openBlock, createElementBlock, createVNode, withCtx, createElementVNode, toDisplayString, createCommentVNode, Fragment, renderList, normalizeClass, createTextVNode } from "vue";
|
|
2
2
|
import { c as createComponent } from "./component-81a4c1d0.js";
|
|
3
|
-
import { P as Popup } from "./index-
|
|
3
|
+
import { P as Popup } from "./index-991c279f.js";
|
|
4
4
|
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
5
5
|
import "../locale/lang";
|
|
6
6
|
import "./Overlay.js";
|
|
@@ -7,14 +7,20 @@ const CLSNAME = "nut-overflow-hidden";
|
|
|
7
7
|
const useLockScroll = (isLock) => {
|
|
8
8
|
const lock = () => {
|
|
9
9
|
if (isLock()) {
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
try {
|
|
11
|
+
!count && body.classList.add(CLSNAME);
|
|
12
|
+
count++;
|
|
13
|
+
} catch (error) {
|
|
14
|
+
}
|
|
12
15
|
}
|
|
13
16
|
};
|
|
14
17
|
const unlock = () => {
|
|
15
18
|
if (isLock() && count) {
|
|
16
|
-
|
|
17
|
-
|
|
19
|
+
try {
|
|
20
|
+
count--;
|
|
21
|
+
!count && body.classList.remove(CLSNAME);
|
|
22
|
+
} catch (error) {
|
|
23
|
+
}
|
|
18
24
|
}
|
|
19
25
|
};
|
|
20
26
|
return [lock, unlock];
|
|
@@ -2,7 +2,7 @@ import { ref, computed, onMounted, watch, resolveComponent, openBlock, createEle
|
|
|
2
2
|
import { i as isArray, c as createComponent } from "./component-81a4c1d0.js";
|
|
3
3
|
import { r as renderIcon } from "./renderIcon-3d0fd47c.js";
|
|
4
4
|
import { u as useRect } from "./index-29892cda.js";
|
|
5
|
-
import { P as Popup } from "./index-
|
|
5
|
+
import { P as Popup } from "./index-991c279f.js";
|
|
6
6
|
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
7
7
|
import "../locale/lang";
|
|
8
8
|
import "./Overlay.js";
|
|
@@ -130,7 +130,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
130
130
|
_ctx.status == "active" || _ctx.status == "" ? (openBlock(), createElementBlock("span", {
|
|
131
131
|
key: 0,
|
|
132
132
|
style: normalizeStyle(_ctx.textStyle)
|
|
133
|
-
}, toDisplayString(_ctx.percentage) + toDisplayString(_ctx.isShowPercentage ? "%" : ""), 5)) : _ctx.status == "icon" ? renderSlot(_ctx.$slots, "
|
|
133
|
+
}, toDisplayString(_ctx.percentage) + toDisplayString(_ctx.isShowPercentage ? "%" : ""), 5)) : _ctx.status == "icon" ? renderSlot(_ctx.$slots, "icon-name", { key: 1 }, () => [
|
|
134
134
|
createVNode(_component_Checked, {
|
|
135
135
|
width: "15px",
|
|
136
136
|
height: "15px",
|
|
@@ -230,7 +230,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
230
230
|
onClick: _cache[6] || (_cache[6] = (...args) => _ctx.handleClear && _ctx.handleClear(...args)),
|
|
231
231
|
class: "nut-searchbar__input-clear"
|
|
232
232
|
}, [
|
|
233
|
-
_ctx.$slots
|
|
233
|
+
_ctx.$slots["clear-icon"] ? renderSlot(_ctx.$slots, "clear-icon", { key: 0 }) : (openBlock(), createBlock(resolveDynamicComponent(_ctx.renderIcon(_ctx.clearIcon)), { key: 1 }))
|
|
234
234
|
], 512)), [
|
|
235
235
|
[vShow, String(_ctx.modelValue).length > 0]
|
|
236
236
|
]) : createCommentVNode("", true)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ref, computed, watch, resolveComponent, openBlock, createElementBlock, createVNode, withCtx, createElementVNode, toDisplayString, Fragment, renderList, createCommentVNode } from "vue";
|
|
2
2
|
import { c as createComponent } from "./component-81a4c1d0.js";
|
|
3
|
-
import { P as Popup } from "./index-
|
|
3
|
+
import { P as Popup } from "./index-991c279f.js";
|
|
4
4
|
import { Tips } from "@nutui/icons-vue";
|
|
5
5
|
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
6
6
|
import "../locale/lang";
|
package/dist/packages/_es/Sku.js
CHANGED
|
@@ -3,7 +3,7 @@ import Price from "./Price.js";
|
|
|
3
3
|
import { c as createComponent, T as TypeOfFun } from "./component-81a4c1d0.js";
|
|
4
4
|
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
5
5
|
import InputNumber from "./InputNumber.js";
|
|
6
|
-
import { p as popupProps, P as Popup } from "./index-
|
|
6
|
+
import { p as popupProps, P as Popup } from "./index-991c279f.js";
|
|
7
7
|
import "../locale/lang";
|
|
8
8
|
import "./pxCheck-c6b9f6b7.js";
|
|
9
9
|
import "@nutui/icons-vue";
|
|
@@ -116,9 +116,9 @@ const _sfc_main = create({
|
|
|
116
116
|
let index = titles.value.findIndex((item) => item.paneKey == value);
|
|
117
117
|
if (titles.value.length == 0) {
|
|
118
118
|
console.error("[NutUI] <Tabs> 当前未找到 TabPane 组件元素 , 请检查 .");
|
|
119
|
-
} else if (index == -1)
|
|
120
|
-
|
|
121
|
-
|
|
119
|
+
} else if (index == -1)
|
|
120
|
+
;
|
|
121
|
+
else {
|
|
122
122
|
currentIndex.value = index;
|
|
123
123
|
}
|
|
124
124
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { computed, provide, resolveComponent, openBlock, createBlock, normalizeStyle, withCtx, createElementVNode, normalizeClass, createElementBlock, toDisplayString, renderSlot } from "vue";
|
|
2
2
|
import { c as createComponent } from "./component-81a4c1d0.js";
|
|
3
|
-
import { P as Popup } from "./index-
|
|
3
|
+
import { P as Popup } from "./index-991c279f.js";
|
|
4
4
|
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
5
5
|
import "../locale/lang";
|
|
6
6
|
import "./Overlay.js";
|