@nutui/nutui 4.0.0-beta.17 → 4.0.0-beta.19
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/dist/nutui.es.js +1 -1
- package/dist/nutui.umd.js +7 -0
- package/dist/packages/_es/ActionSheet.js +1 -1
- package/dist/packages/_es/Address.js +1 -1
- package/dist/packages/_es/AddressList.js +7 -6
- package/dist/packages/_es/Barrage.js +21 -27
- package/dist/packages/_es/Calendar.js +1 -1
- package/dist/packages/_es/Cascader.js +2 -3
- package/dist/packages/_es/Comment.js +12 -12
- package/dist/packages/_es/Dialog.js +5 -3
- package/dist/packages/_es/ImagePreview.js +1 -1
- package/dist/packages/_es/InfiniteLoading.js +0 -8
- package/dist/packages/_es/List.js +1 -1
- package/dist/packages/_es/MenuItem.js +1 -1
- package/dist/packages/_es/Noticebar.js +4 -1
- package/dist/packages/_es/Notify.js +1 -1
- package/dist/packages/_es/NumberKeyboard.js +1 -1
- package/dist/packages/_es/Overlay.js +1 -1
- package/dist/packages/_es/Popover.js +1 -2
- package/dist/packages/_es/Popup.js +1 -1
- package/dist/packages/_es/PullRefresh.js +5 -8
- package/dist/packages/_es/ShortPassword.js +1 -1
- package/dist/packages/_es/Signature.js +12 -1
- package/dist/packages/_es/Skeleton.js +1 -3
- package/dist/packages/_es/Sku.js +11 -7
- package/dist/packages/_es/Swiper.js +0 -4
- package/dist/packages/_es/TimeDetail.js +0 -4
- package/dist/packages/_es/TimeSelect.js +2 -2
- package/dist/packages/_es/Tour.js +1 -1
- package/dist/packages/_es/{index-1006915b.js → index-af79da1a.js} +1 -1
- package/dist/packages/comment/index.scss +5 -0
- package/dist/packages/inputnumber/index.scss +0 -2
- package/dist/packages/noticebar/index.scss +2 -0
- package/dist/packages/radio/index.scss +0 -1
- package/dist/packages/signature/index.scss +2 -2
- package/dist/packages/step/index.scss +1 -9
- package/dist/packages/sticky/index.scss +1 -0
- package/dist/packages/timedetail/index.scss +0 -5
- package/dist/smartips/web-types.json +32 -50
- package/dist/style.css +1 -1
- package/dist/styles/themes/default.scss +53 -53
- package/dist/styles/themes/jdb.scss +53 -53
- package/dist/styles/themes/jddkh.scss +53 -53
- package/dist/styles/themes/jdt.scss +53 -53
- package/dist/styles/variables-jdb.scss +1 -5
- package/dist/styles/variables-jddkh.scss +1 -4
- package/dist/styles/variables-jdt.scss +1 -4
- package/dist/styles/variables.scss +1 -4
- package/dist/types/__VUE/barrage/index.vue.d.ts +2 -4
- package/dist/types/__VUE/comment/components/CmtBottom.vue.d.ts +2 -2
- package/dist/types/__VUE/comment/index.vue.d.ts +4 -4
- package/dist/types/__VUE/infiniteloading/index.vue.d.ts +0 -18
- package/dist/types/__VUE/popover/index.vue.d.ts +0 -9
- package/dist/types/__VUE/pullrefresh/index.vue.d.ts +0 -9
- package/dist/types/__VUE/swiper/index.vue.d.ts +0 -9
- package/dist/types/__VUE/timedetail/index.vue.d.ts +0 -9
- package/dist/types/__VUE/tour/index.vue.d.ts +1 -1
- package/dist/types/index.d.ts +1 -1
- package/package.json +2 -2
- package/dist/nutui.umd.cjs +0 -7
|
@@ -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-af79da1a.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-af79da1a.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";
|
|
@@ -6,8 +6,8 @@ import Button from "./Button.js";
|
|
|
6
6
|
import Swipe from "./Swipe.js";
|
|
7
7
|
import "../locale/lang";
|
|
8
8
|
import "./index-7a7385e4.js";
|
|
9
|
-
const { create: create$2 } = createComponent("
|
|
10
|
-
const { translate: translate$1 } = createComponent("
|
|
9
|
+
const { create: create$2 } = createComponent("address-list-item");
|
|
10
|
+
const { translate: translate$1 } = createComponent("address-list");
|
|
11
11
|
const _sfc_main$2 = create$2({
|
|
12
12
|
components: { Del, Edit },
|
|
13
13
|
props: {
|
|
@@ -86,7 +86,7 @@ function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
86
86
|
]);
|
|
87
87
|
}
|
|
88
88
|
const ItemContents = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["render", _sfc_render$2]]);
|
|
89
|
-
const { create: create$1 } = createComponent("
|
|
89
|
+
const { create: create$1 } = createComponent("address-list-general");
|
|
90
90
|
const _sfc_main$1 = create$1({
|
|
91
91
|
props: {
|
|
92
92
|
item: {
|
|
@@ -104,7 +104,9 @@ const _sfc_main$1 = create$1({
|
|
|
104
104
|
},
|
|
105
105
|
emits: ["delIcon", "editIcon", "itemClick", "longDown", "longCopy", "longSet", "longDel", "swipeDel"],
|
|
106
106
|
components: {
|
|
107
|
-
ItemContents
|
|
107
|
+
ItemContents,
|
|
108
|
+
[Button.name]: Button,
|
|
109
|
+
[Swipe.name]: Swipe
|
|
108
110
|
},
|
|
109
111
|
setup(props, { emit }) {
|
|
110
112
|
const renderCompontent = () => {
|
|
@@ -345,8 +347,7 @@ const _sfc_main = create({
|
|
|
345
347
|
},
|
|
346
348
|
components: {
|
|
347
349
|
GeneralShell,
|
|
348
|
-
[Button.name]: Button
|
|
349
|
-
[Swipe.name]: Swipe
|
|
350
|
+
[Button.name]: Button
|
|
350
351
|
},
|
|
351
352
|
emits: ["delIcon", "editIcon", "itemClick", "longCopy", "longSet", "longDel", "swipeDel", "add"],
|
|
352
353
|
setup(props, { emit }) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { useSlots, computed, ref, onMounted, onUnmounted,
|
|
1
|
+
import { useSlots, computed, ref, onMounted, onUnmounted, watch, nextTick, openBlock, createElementBlock, normalizeClass, createElementVNode, renderSlot, createCommentVNode } from "vue";
|
|
2
2
|
import { c as createComponent } from "./component-81a4c1d0.js";
|
|
3
3
|
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
4
4
|
import "../locale/lang";
|
|
@@ -31,7 +31,6 @@ const _sfc_main = create({
|
|
|
31
31
|
default: true
|
|
32
32
|
}
|
|
33
33
|
},
|
|
34
|
-
emits: ["click"],
|
|
35
34
|
setup(props, { slots }) {
|
|
36
35
|
const classTime = new Date().getTime();
|
|
37
36
|
const slotDefault = !!useSlots().default;
|
|
@@ -51,6 +50,13 @@ const _sfc_main = create({
|
|
|
51
50
|
const speeds = props.speeds;
|
|
52
51
|
const danmuCWidth = ref(0);
|
|
53
52
|
onMounted(() => {
|
|
53
|
+
init();
|
|
54
|
+
});
|
|
55
|
+
onUnmounted(() => {
|
|
56
|
+
danmuList.value = [];
|
|
57
|
+
clearTime();
|
|
58
|
+
});
|
|
59
|
+
const init = () => {
|
|
54
60
|
var _a;
|
|
55
61
|
danmuCWidth.value = dmBody.value.offsetWidth;
|
|
56
62
|
if (slotDefault) {
|
|
@@ -70,17 +76,11 @@ const _sfc_main = create({
|
|
|
70
76
|
(_a2 = dmBody.value) == null ? void 0 : _a2.style.setProperty("--move-distance", `-${danmuCWidth.value}px`);
|
|
71
77
|
run();
|
|
72
78
|
}, 300);
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
clearInterval(timer);
|
|
77
|
-
timer = 0;
|
|
78
|
-
});
|
|
79
|
-
onDeactivated(() => {
|
|
80
|
-
danmuList.value = [];
|
|
81
|
-
clearInterval(timer);
|
|
79
|
+
};
|
|
80
|
+
const clearTime = () => {
|
|
81
|
+
clearTimeout(timer);
|
|
82
82
|
timer = 0;
|
|
83
|
-
}
|
|
83
|
+
};
|
|
84
84
|
watch(
|
|
85
85
|
() => props.danmu,
|
|
86
86
|
(newValue) => {
|
|
@@ -98,8 +98,7 @@ const _sfc_main = create({
|
|
|
98
98
|
}
|
|
99
99
|
};
|
|
100
100
|
const run = () => {
|
|
101
|
-
|
|
102
|
-
timer = 0;
|
|
101
|
+
clearTime();
|
|
103
102
|
timer = setTimeout(() => {
|
|
104
103
|
play();
|
|
105
104
|
run();
|
|
@@ -132,20 +131,15 @@ const _sfc_main = create({
|
|
|
132
131
|
el.style.width = width + 20 + "px";
|
|
133
132
|
}
|
|
134
133
|
el.dataset.index = `${_index}`;
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
el.classList.remove("move");
|
|
141
|
-
}
|
|
142
|
-
});
|
|
143
|
-
} else {
|
|
144
|
-
el.addEventListener("animationend", () => {
|
|
134
|
+
el.addEventListener("animationend", () => {
|
|
135
|
+
var _a3;
|
|
136
|
+
if (slotDefault) {
|
|
137
|
+
((_a3 = el == null ? void 0 : el.classList) == null ? void 0 : _a3.contains("move")) && el.classList.remove("move");
|
|
138
|
+
} else {
|
|
145
139
|
dmContainer.value.removeChild(el);
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
|
|
140
|
+
}
|
|
141
|
+
});
|
|
142
|
+
index2.value++;
|
|
149
143
|
});
|
|
150
144
|
};
|
|
151
145
|
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-af79da1a.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-af79da1a.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";
|
|
@@ -523,7 +523,6 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
523
523
|
"pop-class": "nut-cascader__popup",
|
|
524
524
|
round: "",
|
|
525
525
|
closeable: !_ctx.closeable,
|
|
526
|
-
"close-icon": _ctx.closeIcon,
|
|
527
526
|
"destroy-on-close": false,
|
|
528
527
|
"close-icon-position": _ctx.closeIconPosition
|
|
529
528
|
}, {
|
|
@@ -548,7 +547,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
548
547
|
}, null, 8, ["onChange", "onPathChange", "modelValue", "options", "lazy", "lazy-load", "value-key", "text-key", "children-key", "convert-config", "visible"])
|
|
549
548
|
]),
|
|
550
549
|
_: 1
|
|
551
|
-
}, 8, ["visible", "closeable", "close-icon
|
|
550
|
+
}, 8, ["visible", "closeable", "close-icon-position"])) : (openBlock(), createBlock(_component_nut_cascader_item, {
|
|
552
551
|
key: 1,
|
|
553
552
|
onChange: _ctx.onChange,
|
|
554
553
|
onPathChange: _ctx.onPathChange,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { resolveComponent, openBlock, createElementBlock, createElementVNode, createCommentVNode, normalizeClass, toDisplayString, renderSlot, createVNode, ref, watch, onMounted, Fragment, renderList, createBlock, computed, withCtx, normalizeStyle, createTextVNode } from "vue";
|
|
2
2
|
import { c as createComponent } from "./component-81a4c1d0.js";
|
|
3
|
-
import { Right, Fabulous, Comment, MoreX
|
|
3
|
+
import { Right, Fabulous, Comment, MoreX } from "@nutui/icons-vue";
|
|
4
4
|
import Rate from "./Rate.js";
|
|
5
5
|
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
6
6
|
import "../locale/lang";
|
|
@@ -9,6 +9,9 @@ import "./pxCheck-c6b9f6b7.js";
|
|
|
9
9
|
import "./index-7a7385e4.js";
|
|
10
10
|
const { componentName: componentName$3, create: create$3 } = createComponent("comment-header");
|
|
11
11
|
const _sfc_main$3 = create$3({
|
|
12
|
+
components: {
|
|
13
|
+
[Rate.name]: Rate
|
|
14
|
+
},
|
|
12
15
|
props: {
|
|
13
16
|
type: {
|
|
14
17
|
type: String,
|
|
@@ -73,6 +76,7 @@ function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
73
76
|
"icon-size": "10",
|
|
74
77
|
spacing: "5",
|
|
75
78
|
readonly: "",
|
|
79
|
+
disabled: true,
|
|
76
80
|
onChange: _ctx.handleClick
|
|
77
81
|
}, null, 8, ["modelValue", "onChange"])
|
|
78
82
|
])
|
|
@@ -97,7 +101,8 @@ function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
97
101
|
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => _ctx.info.score = $event),
|
|
98
102
|
"icon-size": "12",
|
|
99
103
|
spacing: "3",
|
|
100
|
-
readonly: ""
|
|
104
|
+
readonly: "",
|
|
105
|
+
disabled: true
|
|
101
106
|
}, null, 8, ["modelValue"]),
|
|
102
107
|
createElementVNode("i", {
|
|
103
108
|
class: normalizeClass([`nut-comment-header__${_ctx.type}-score-i`])
|
|
@@ -222,8 +227,7 @@ const _sfc_main$1 = create$1({
|
|
|
222
227
|
},
|
|
223
228
|
info: {
|
|
224
229
|
type: Object,
|
|
225
|
-
default: () => {
|
|
226
|
-
}
|
|
230
|
+
default: () => ({})
|
|
227
231
|
},
|
|
228
232
|
operation: {
|
|
229
233
|
type: Array,
|
|
@@ -324,13 +328,11 @@ const _sfc_main = create({
|
|
|
324
328
|
},
|
|
325
329
|
info: {
|
|
326
330
|
type: Object,
|
|
327
|
-
default: () => {
|
|
328
|
-
}
|
|
331
|
+
default: () => ({})
|
|
329
332
|
},
|
|
330
333
|
follow: {
|
|
331
334
|
type: Object,
|
|
332
|
-
default: () => {
|
|
333
|
-
}
|
|
335
|
+
default: () => ({})
|
|
334
336
|
},
|
|
335
337
|
labels: {
|
|
336
338
|
type: Function,
|
|
@@ -342,12 +344,10 @@ const _sfc_main = create({
|
|
|
342
344
|
}
|
|
343
345
|
},
|
|
344
346
|
components: {
|
|
345
|
-
[Rate.name]: Rate,
|
|
346
347
|
CommentHeader,
|
|
347
348
|
CommentImages,
|
|
348
349
|
CommentBottom,
|
|
349
|
-
Right
|
|
350
|
-
JoySmile
|
|
350
|
+
Right
|
|
351
351
|
},
|
|
352
352
|
emits: ["click", "clickImages", "clickOperate"],
|
|
353
353
|
setup(props, { emit }) {
|
|
@@ -406,7 +406,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
406
406
|
class: "nut-comment__main",
|
|
407
407
|
style: normalizeStyle(`-webkit-line-clamp:${_ctx.conEllipsis}`),
|
|
408
408
|
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.handleClick && _ctx.handleClick(...args)),
|
|
409
|
-
innerHTML: _ctx.info.content
|
|
409
|
+
innerHTML: _ctx.info.content
|
|
410
410
|
}, null, 12, _hoisted_1),
|
|
411
411
|
createVNode(_component_comment_images, {
|
|
412
412
|
images: _ctx.images,
|
|
@@ -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-af79da1a.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";
|
|
@@ -160,6 +160,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
160
160
|
"close-on-click-overlay": _ctx.closeOnClickOverlay,
|
|
161
161
|
"lock-scroll": _ctx.lockScroll,
|
|
162
162
|
"pop-class": _ctx.popClass,
|
|
163
|
+
"overlay-class": _ctx.overlayClass,
|
|
164
|
+
"overlay-style": _ctx.overlayStyle,
|
|
163
165
|
style: normalizeStyle(_ctx.popStyle),
|
|
164
166
|
round: "",
|
|
165
167
|
onClickOverlay: _ctx.closed,
|
|
@@ -218,7 +220,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
218
220
|
], 2)
|
|
219
221
|
]),
|
|
220
222
|
_: 3
|
|
221
|
-
}, 8, ["teleport", "visible", "close-on-click-overlay", "lock-scroll", "pop-class", "style", "onClickOverlay", "onClickCloseIcon"]);
|
|
223
|
+
}, 8, ["teleport", "visible", "close-on-click-overlay", "lock-scroll", "pop-class", "overlay-class", "overlay-style", "style", "onClickOverlay", "onClickCloseIcon"]);
|
|
222
224
|
}
|
|
223
225
|
const Dialog = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
224
226
|
class DialogOptions {
|
|
@@ -250,7 +252,7 @@ class DialogOptions {
|
|
|
250
252
|
__publicField(this, "noCancelBtn", false);
|
|
251
253
|
__publicField(this, "okBtnDisabled", false);
|
|
252
254
|
__publicField(this, "closeOnPopstate", false);
|
|
253
|
-
__publicField(this, "lockScroll",
|
|
255
|
+
__publicField(this, "lockScroll", true);
|
|
254
256
|
}
|
|
255
257
|
}
|
|
256
258
|
class DialogFunction {
|
|
@@ -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-af79da1a.js";
|
|
16
16
|
import Swiper from "./Swiper.js";
|
|
17
17
|
import { f as funInterceptor } from "./interceptor-956b24fc.js";
|
|
18
18
|
import "../locale/lang";
|
|
@@ -57,7 +57,7 @@ const _sfc_main = create({
|
|
|
57
57
|
var _a;
|
|
58
58
|
const scrollTop = (_a = list.value) == null ? void 0 : _a.scrollTop;
|
|
59
59
|
state.start = Math.floor(scrollTop / props.height);
|
|
60
|
-
if (end.value
|
|
60
|
+
if (end.value >= state.list.length) {
|
|
61
61
|
emit("scroll-bottom");
|
|
62
62
|
}
|
|
63
63
|
state.startOffset = scrollTop - scrollTop % props.height;
|
|
@@ -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-af79da1a.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";
|
|
@@ -229,6 +229,9 @@ const _sfc_main = create({
|
|
|
229
229
|
emit("click", item);
|
|
230
230
|
};
|
|
231
231
|
const handleClickIcon = () => {
|
|
232
|
+
if (props.closeMode) {
|
|
233
|
+
state.showNoticebar = !props.closeMode;
|
|
234
|
+
}
|
|
232
235
|
emit("close", state.scrollList[0]);
|
|
233
236
|
};
|
|
234
237
|
onMounted(() => {
|
|
@@ -327,7 +330,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
327
330
|
], 6)), [
|
|
328
331
|
[vShow, _ctx.showNoticebar]
|
|
329
332
|
]) : createCommentVNode("", true),
|
|
330
|
-
_ctx.scrollList.length > 0 && _ctx.direction == "vertical" ? (openBlock(), createElementBlock("view", {
|
|
333
|
+
_ctx.scrollList.length > 0 && _ctx.direction == "vertical" && _ctx.showNoticebar ? (openBlock(), createElementBlock("view", {
|
|
331
334
|
key: 1,
|
|
332
335
|
class: "nut-noticebar__vertical",
|
|
333
336
|
style: normalizeStyle(_ctx.barStyle)
|
|
@@ -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-af79da1a.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-af79da1a.js";
|
|
4
4
|
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
5
5
|
import "../locale/lang";
|
|
6
6
|
import "./Overlay.js";
|
|
@@ -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-af79da1a.js";
|
|
6
6
|
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
7
7
|
import "../locale/lang";
|
|
8
8
|
import "./Overlay.js";
|
|
@@ -21,7 +21,6 @@ const _sfc_main = create({
|
|
|
21
21
|
arrowOffset: { type: Number, default: 0 },
|
|
22
22
|
customClass: { type: String, default: "" },
|
|
23
23
|
showArrow: { type: Boolean, default: true },
|
|
24
|
-
iconPrefix: { type: String, default: "nut-icon" },
|
|
25
24
|
duration: { type: [Number, String], default: 0.3 },
|
|
26
25
|
overlay: { type: Boolean, default: false },
|
|
27
26
|
overlayClass: { type: String, default: "" },
|
|
@@ -25,10 +25,10 @@ const _sfc_main = create({
|
|
|
25
25
|
type: String,
|
|
26
26
|
default: translate("loading")
|
|
27
27
|
},
|
|
28
|
-
completeTxt: {
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
},
|
|
28
|
+
// completeTxt: {
|
|
29
|
+
// type: String,
|
|
30
|
+
// default: ''
|
|
31
|
+
// },
|
|
32
32
|
headHeight: {
|
|
33
33
|
type: [String, Number],
|
|
34
34
|
default: 50
|
|
@@ -67,8 +67,6 @@ const _sfc_main = create({
|
|
|
67
67
|
return !slots.loosing ? props.loosingTxt : "";
|
|
68
68
|
case "loading":
|
|
69
69
|
return !slots.loading ? props.loadingTxt : "";
|
|
70
|
-
case "complete":
|
|
71
|
-
return !slots.complete ? props.completeTxt : "";
|
|
72
70
|
}
|
|
73
71
|
});
|
|
74
72
|
const getStyle = computed(() => {
|
|
@@ -204,8 +202,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
204
202
|
createElementVNode("div", _hoisted_1, toDisplayString(_ctx.getPullStatus), 1),
|
|
205
203
|
_ctx.status == "pulling" ? renderSlot(_ctx.$slots, "pulling", { key: 1 }) : createCommentVNode("", true),
|
|
206
204
|
_ctx.status == "loosing" ? renderSlot(_ctx.$slots, "loosing", { key: 2 }) : createCommentVNode("", true),
|
|
207
|
-
_ctx.status == "loading" ? renderSlot(_ctx.$slots, "loading", { key: 3 }) : createCommentVNode("", true)
|
|
208
|
-
_ctx.status == "complete" ? renderSlot(_ctx.$slots, "complete", { key: 4 }) : createCommentVNode("", true)
|
|
205
|
+
_ctx.status == "loading" ? renderSlot(_ctx.$slots, "loading", { key: 3 }) : createCommentVNode("", true)
|
|
209
206
|
], 4),
|
|
210
207
|
renderSlot(_ctx.$slots, "default")
|
|
211
208
|
], 4)
|
|
@@ -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-af79da1a.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";
|
|
@@ -104,6 +104,15 @@ const _sfc_main = create({
|
|
|
104
104
|
const confirm = () => {
|
|
105
105
|
onSave(canvas.value);
|
|
106
106
|
};
|
|
107
|
+
const isCanvasBlank = (canvas2) => {
|
|
108
|
+
if (!canvas2) {
|
|
109
|
+
return true;
|
|
110
|
+
}
|
|
111
|
+
var blank = document.createElement("canvas");
|
|
112
|
+
blank.width = canvas2.width;
|
|
113
|
+
blank.height = canvas2.height;
|
|
114
|
+
return (canvas2 == null ? void 0 : canvas2.toDataURL()) == blank.toDataURL();
|
|
115
|
+
};
|
|
107
116
|
const onSave = (canvas2) => {
|
|
108
117
|
let dataurl;
|
|
109
118
|
switch (props.type) {
|
|
@@ -114,8 +123,10 @@ const _sfc_main = create({
|
|
|
114
123
|
dataurl = canvas2.toDataURL("image/jpeg", 0.8);
|
|
115
124
|
break;
|
|
116
125
|
}
|
|
126
|
+
const _canvas = isCanvasBlank(canvas2) ? "请绘制签名" : canvas2;
|
|
127
|
+
const _filePath = isCanvasBlank(canvas2) ? "" : dataurl;
|
|
117
128
|
clear();
|
|
118
|
-
emit("confirm",
|
|
129
|
+
emit("confirm", _canvas, _filePath);
|
|
119
130
|
};
|
|
120
131
|
onMounted(() => {
|
|
121
132
|
if (isCanvasSupported()) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { c as createComponent } from "./component-81a4c1d0.js";
|
|
2
|
-
import { toRefs, computed,
|
|
2
|
+
import { toRefs, computed, resolveComponent, openBlock, createElementBlock, renderSlot, createCommentVNode, createElementVNode, createBlock, normalizeClass, normalizeStyle, Fragment, renderList } from "vue";
|
|
3
3
|
import Avatar from "./Avatar.js";
|
|
4
4
|
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
5
5
|
import "../locale/lang";
|
|
@@ -85,8 +85,6 @@ const component = (components) => {
|
|
|
85
85
|
height: "50px"
|
|
86
86
|
};
|
|
87
87
|
};
|
|
88
|
-
onMounted(() => {
|
|
89
|
-
});
|
|
90
88
|
return {
|
|
91
89
|
avatarShape,
|
|
92
90
|
avatarClass,
|
package/dist/packages/_es/Sku.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { resolveComponent, openBlock, createElementBlock, createElementVNode, renderSlot, createBlock, createCommentVNode, toDisplayString, ref, watch, onMounted, Fragment, renderList, normalizeClass, createVNode, withCtx, createSlots } from "vue";
|
|
2
|
+
import Price from "./Price.js";
|
|
2
3
|
import { c as createComponent, T as TypeOfFun } from "./component-81a4c1d0.js";
|
|
3
4
|
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
4
|
-
import { p as popupProps, P as Popup } from "./index-1006915b.js";
|
|
5
|
-
import Price from "./Price.js";
|
|
6
5
|
import InputNumber from "./InputNumber.js";
|
|
6
|
+
import { p as popupProps, P as Popup } from "./index-af79da1a.js";
|
|
7
7
|
import "../locale/lang";
|
|
8
|
-
import "./Overlay.js";
|
|
9
|
-
import "@nutui/icons-vue";
|
|
10
8
|
import "./pxCheck-c6b9f6b7.js";
|
|
9
|
+
import "@nutui/icons-vue";
|
|
10
|
+
import "./Overlay.js";
|
|
11
11
|
const { componentName: componentName$4, create: create$4, translate: translate$1 } = createComponent("sku-header");
|
|
12
12
|
const _sfc_main$4 = create$4({
|
|
13
13
|
props: {
|
|
@@ -17,6 +17,9 @@ const _sfc_main$4 = create$4({
|
|
|
17
17
|
}
|
|
18
18
|
},
|
|
19
19
|
emits: [],
|
|
20
|
+
components: {
|
|
21
|
+
[Price.name]: Price
|
|
22
|
+
},
|
|
20
23
|
setup(props, { emit, slots }) {
|
|
21
24
|
const getSlots = (name) => slots[name];
|
|
22
25
|
return {
|
|
@@ -142,6 +145,9 @@ const _sfc_main$2 = create$2({
|
|
|
142
145
|
}
|
|
143
146
|
},
|
|
144
147
|
emits: ["click", "changeSku", "changeStepper", "clickBtnOptions", "overLimit", "reduce", "add"],
|
|
148
|
+
components: {
|
|
149
|
+
[InputNumber.name]: InputNumber
|
|
150
|
+
},
|
|
145
151
|
setup(props, { emit }) {
|
|
146
152
|
const goodsCount = ref(props.stepperMin);
|
|
147
153
|
onMounted(() => {
|
|
@@ -360,9 +366,7 @@ const _sfc_main = create({
|
|
|
360
366
|
SkuSelect,
|
|
361
367
|
SkuStepper,
|
|
362
368
|
SkuOperate,
|
|
363
|
-
[Popup.name]: Popup
|
|
364
|
-
[Price.name]: Price,
|
|
365
|
-
[InputNumber.name]: InputNumber
|
|
369
|
+
[Popup.name]: Popup
|
|
366
370
|
},
|
|
367
371
|
setup(props, { emit, slots }) {
|
|
368
372
|
const showPopup = ref(props.visible);
|
|
@@ -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-af79da1a.js";
|
|
4
4
|
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
5
5
|
import "../locale/lang";
|
|
6
6
|
import "./Overlay.js";
|
|
@@ -35,7 +35,7 @@ const _sfc_main = create({
|
|
|
35
35
|
},
|
|
36
36
|
lockScroll: {
|
|
37
37
|
type: [Boolean],
|
|
38
|
-
default:
|
|
38
|
+
default: true
|
|
39
39
|
},
|
|
40
40
|
teleportDisable: {
|
|
41
41
|
type: Boolean,
|
|
@@ -6,7 +6,7 @@ import Popover from "./Popover.js";
|
|
|
6
6
|
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
7
7
|
import "../locale/lang";
|
|
8
8
|
import "./renderIcon-3d0fd47c.js";
|
|
9
|
-
import "./index-
|
|
9
|
+
import "./index-af79da1a.js";
|
|
10
10
|
import "./Overlay.js";
|
|
11
11
|
const { create } = createComponent("tour");
|
|
12
12
|
const _sfc_main = create({
|
|
@@ -38,7 +38,6 @@
|
|
|
38
38
|
display: flex;
|
|
39
39
|
align-items: center;
|
|
40
40
|
color: $inputnumber-icon-color;
|
|
41
|
-
font-size: $inputnumber-icon-size;
|
|
42
41
|
cursor: pointer;
|
|
43
42
|
&--disabled {
|
|
44
43
|
color: $inputnumber-icon-void-color;
|
|
@@ -54,7 +53,6 @@
|
|
|
54
53
|
input,
|
|
55
54
|
&__text--readonly,
|
|
56
55
|
&__text--input {
|
|
57
|
-
width: $inputnumber-input-width;
|
|
58
56
|
height: 100%;
|
|
59
57
|
text-align: center;
|
|
60
58
|
display: flex;
|