@nutui/nutui 4.1.4 → 4.1.5-beta.1
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/README.md +1 -1
- package/dist/nutui.es.js +1 -1
- package/dist/nutui.js +643 -642
- package/dist/nutui.umd.js +1 -1
- package/dist/packages/_es/ActionSheet.js +5 -5
- package/dist/packages/_es/Address.js +17 -17
- package/dist/packages/_es/Animate.js +2 -2
- package/dist/packages/_es/Audio.js +7 -7
- package/dist/packages/_es/Avatar.js +2 -2
- package/dist/packages/_es/AvatarGroup.js +1 -1
- package/dist/packages/_es/Badge.js +3 -3
- package/dist/packages/_es/Calendar.js +17 -17
- package/dist/packages/_es/CalendarItem.js +1 -1
- package/dist/packages/_es/Cascader.js +14 -14
- package/dist/packages/_es/Category.js +2 -2
- package/dist/packages/_es/CategoryPane.js +3 -3
- package/dist/packages/_es/Collapse.js +2 -2
- package/dist/packages/_es/CollapseItem.js +7 -7
- package/dist/packages/_es/Comment.js +3 -3
- package/dist/packages/_es/Countdown.js +6 -6
- package/dist/packages/_es/Countup.js +11 -11
- package/dist/packages/_es/DatePicker.js +5 -5
- package/dist/packages/_es/Dialog.js +3 -3
- package/dist/packages/_es/Drag.js +1 -1
- package/dist/packages/_es/Ecard.js +3 -3
- package/dist/packages/_es/Elevator.js +8 -8
- package/dist/packages/_es/Ellipsis.js +2 -2
- package/dist/packages/_es/FormItem.js +0 -1
- package/dist/packages/_es/GridItem.js +1 -1
- package/dist/packages/_es/Image.js +2 -2
- package/dist/packages/_es/ImagePreview.js +12 -12
- package/dist/packages/_es/InfiniteLoading.js +5 -5
- package/dist/packages/_es/Input.js +3 -3
- package/dist/packages/_es/Invoice.js +5 -5
- package/dist/packages/_es/List.js +11 -11
- package/dist/packages/_es/Menu.js +4 -4
- package/dist/packages/_es/MenuItem.js +9 -10
- package/dist/packages/_es/Navbar.js +7 -7
- package/dist/packages/_es/Noticebar.js +20 -14
- package/dist/packages/_es/Notify.js +1 -1
- package/dist/packages/_es/NumberKeyboard.js +2 -2
- package/dist/packages/_es/Overlay.js +3 -3
- package/dist/packages/_es/Picker.js +3 -3
- package/dist/packages/_es/Popover.js +6 -6
- package/dist/packages/_es/Popup.js +1 -1
- package/dist/packages/_es/PullRefresh.js +1 -1
- package/dist/packages/_es/Range.js +5 -5
- package/dist/packages/_es/Row.js +0 -1
- package/dist/packages/_es/Searchbar.js +10 -10
- package/dist/packages/_es/ShortPassword.js +9 -9
- package/dist/packages/_es/SideNavbar.js +2 -3
- package/dist/packages/_es/SideNavbarItem.js +2 -2
- package/dist/packages/_es/Signature.js +2 -2
- package/dist/packages/_es/Sku.js +24 -24
- package/dist/packages/_es/Step.js +1 -1
- package/dist/packages/_es/Steps.js +2 -2
- package/dist/packages/_es/Sticky.js +2 -2
- package/dist/packages/_es/SubSideNavbar.js +2 -2
- package/dist/packages/_es/Swipe.js +2 -2
- package/dist/packages/_es/SwipeGroup.js +2 -2
- package/dist/packages/_es/Swiper.js +4 -4
- package/dist/packages/_es/Switch.js +2 -2
- package/dist/packages/_es/Tabbar.js +2 -2
- package/dist/packages/_es/Table.js +6 -6
- package/dist/packages/_es/Tabs.js +13 -13
- package/dist/packages/_es/Textarea.js +3 -3
- package/dist/packages/_es/TimeDetail.js +1 -1
- package/dist/packages/_es/TimeSelect.js +1 -1
- package/dist/packages/_es/Tour.js +3 -3
- package/dist/packages/_es/Uploader.js +11 -11
- package/dist/packages/_es/Video.js +11 -11
- package/dist/packages/_es/{index-7fe29a2f.js → index-3032df15.js} +8 -9
- package/dist/packages/_es/{index-66fff386.js → index-ae1af668.js} +10 -10
- package/dist/packages/circleprogress/index.scss +3 -1
- package/dist/packages/popover/index.scss +3 -1
- package/dist/packages/video/index.scss +4 -1
- package/dist/smartips/web-types.json +1 -1
- package/dist/style.css +1 -1
- package/dist/styles/themes/default.scss +48 -48
- package/dist/styles/themes/jdb.scss +48 -48
- package/dist/styles/themes/jddkh.scss +48 -48
- package/dist/styles/themes/jdt.scss +48 -48
- package/dist/styles/variables-jdb.scss +7 -1
- package/dist/styles/variables-jddkh.scss +7 -1
- package/dist/types/__VUE/actionsheet/index.vue.d.ts +1 -1
- package/dist/types/__VUE/address/index.vue.d.ts +3 -3
- package/dist/types/__VUE/addresslist/components/GeneralShell.vue.d.ts +60 -0
- package/dist/types/__VUE/addresslist/components/ItemContents.vue.d.ts +23 -0
- package/dist/types/__VUE/addresslist/index.vue.d.ts +2 -2
- package/dist/types/__VUE/audio/index.vue.d.ts +3 -3
- package/dist/types/__VUE/cascader/cascader-item.vue.d.ts +77 -0
- package/dist/types/__VUE/collapseitem/index.vue.d.ts +3 -3
- package/dist/types/__VUE/comment/components/CmtBottom.vue.d.ts +42 -0
- package/dist/types/__VUE/comment/components/CmtHeader.vue.d.ts +36 -0
- package/dist/types/__VUE/comment/components/CmtImages.vue.d.ts +59 -0
- package/dist/types/__VUE/comment/index.vue.d.ts +4 -4
- package/dist/types/__VUE/countdown/index.vue.d.ts +4 -4
- package/dist/types/__VUE/countup/index.vue.d.ts +3 -3
- package/dist/types/__VUE/datepicker/index.vue.d.ts +3 -3
- package/dist/types/__VUE/elevator/index.vue.d.ts +3 -3
- package/dist/types/__VUE/empty/index.vue.d.ts +1 -1
- package/dist/types/__VUE/formitem/index.vue.d.ts +2 -4
- package/dist/types/__VUE/grid/index.vue.d.ts +1 -1
- package/dist/types/__VUE/imagepreview/imagePreviewItem.vue.d.ts +126 -0
- package/dist/types/__VUE/imagepreview/index.vue.d.ts +3 -3
- package/dist/types/__VUE/indicator/index.vue.d.ts +1 -0
- package/dist/types/__VUE/infiniteloading/index.vue.d.ts +3 -3
- package/dist/types/__VUE/input/index.vue.d.ts +3 -3
- package/dist/types/__VUE/inputnumber/index.vue.d.ts +1 -1
- package/dist/types/__VUE/invoice/index.vue.d.ts +2 -2
- package/dist/types/__VUE/list/index.vue.d.ts +4 -4
- package/dist/types/__VUE/navbar/index.vue.d.ts +5 -5
- package/dist/types/__VUE/noticebar/index.vue.d.ts +3 -3
- package/dist/types/__VUE/numberkeyboard/index.vue.d.ts +4 -4
- package/dist/types/__VUE/picker/Column.vue.d.ts +134 -0
- package/dist/types/__VUE/picker/common.d.ts +484 -4
- package/dist/types/__VUE/picker/index.vue.d.ts +125 -5
- package/dist/types/__VUE/popover/index.vue.d.ts +1 -1
- package/dist/types/__VUE/popup/index.vue.d.ts +4 -4
- package/dist/types/__VUE/range/index.vue.d.ts +8 -7
- package/dist/types/__VUE/rate/index.vue.d.ts +5 -5
- package/dist/types/__VUE/row/index.vue.d.ts +2 -2
- package/dist/types/__VUE/searchbar/index.vue.d.ts +7 -7
- package/dist/types/__VUE/sidenavbar/index.vue.d.ts +2 -2
- package/dist/types/__VUE/signature/index.vue.d.ts +1 -1
- package/dist/types/__VUE/sku/components/SkuHeader.vue.d.ts +17 -0
- package/dist/types/__VUE/sku/components/SkuOperate.vue.d.ts +60 -0
- package/dist/types/__VUE/sku/components/SkuSelect.vue.d.ts +25 -0
- package/dist/types/__VUE/sku/components/SkuStepper.vue.d.ts +56 -0
- package/dist/types/__VUE/sku/index.vue.d.ts +9 -9
- package/dist/types/__VUE/step/index.vue.d.ts +2 -2
- package/dist/types/__VUE/steps/index.vue.d.ts +2 -2
- package/dist/types/__VUE/subsidenavbar/index.vue.d.ts +2 -2
- package/dist/types/__VUE/swiper/index.vue.d.ts +2 -2
- package/dist/types/__VUE/tabbar/index.vue.d.ts +2 -2
- package/dist/types/__VUE/tabbaritem/index.vue.d.ts +3 -3
- package/dist/types/__VUE/table/common.d.ts +1 -1
- package/dist/types/__VUE/tabs/index.vue.d.ts +1 -1
- package/dist/types/__VUE/tag/index.vue.d.ts +3 -0
- package/dist/types/__VUE/textarea/index.vue.d.ts +1 -1
- package/dist/types/__VUE/toast/index.vue.d.ts +4 -4
- package/dist/types/__VUE/uploader/index.vue.d.ts +2 -2
- package/dist/types/index.d.ts +1 -1
- package/package.json +1 -1
|
@@ -92,7 +92,7 @@ const _sfc_main = create({
|
|
|
92
92
|
Notice,
|
|
93
93
|
CircleClose
|
|
94
94
|
},
|
|
95
|
-
emits: ["click", "close", "
|
|
95
|
+
emits: ["click", "close", "acrossEnd"],
|
|
96
96
|
setup(props, { emit, slots }) {
|
|
97
97
|
const wrap = ref(null);
|
|
98
98
|
const content = ref(null);
|
|
@@ -208,7 +208,7 @@ const _sfc_main = create({
|
|
|
208
208
|
};
|
|
209
209
|
const onAnimationEnd = (event) => {
|
|
210
210
|
state.firstRound = false;
|
|
211
|
-
emit("
|
|
211
|
+
emit("acrossEnd", event);
|
|
212
212
|
setTimeout(() => {
|
|
213
213
|
state.duration = (state.offsetWidth + state.wrapWidth) / props.speed;
|
|
214
214
|
state.animationClass = "play-infinite";
|
|
@@ -220,19 +220,25 @@ const _sfc_main = create({
|
|
|
220
220
|
};
|
|
221
221
|
const showhorseLamp = () => {
|
|
222
222
|
state.animate = true;
|
|
223
|
-
setTimeout(
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
223
|
+
setTimeout(
|
|
224
|
+
() => {
|
|
225
|
+
state.scrollList.push(state.scrollList[0]);
|
|
226
|
+
state.scrollList.shift();
|
|
227
|
+
state.animate = false;
|
|
228
|
+
},
|
|
229
|
+
~~(props.height / props.speed / 4 * 1e3)
|
|
230
|
+
);
|
|
228
231
|
};
|
|
229
232
|
const startRoll = () => {
|
|
230
|
-
state.timer = setInterval(
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
233
|
+
state.timer = setInterval(
|
|
234
|
+
() => {
|
|
235
|
+
let chunk = 100;
|
|
236
|
+
for (let i = 0; i < chunk; i++) {
|
|
237
|
+
scroll(i, i < chunk - 1 ? false : true);
|
|
238
|
+
}
|
|
239
|
+
},
|
|
240
|
+
props.standTime + 100 * props.speed
|
|
241
|
+
);
|
|
236
242
|
};
|
|
237
243
|
const scroll = (n, last) => {
|
|
238
244
|
setTimeout(() => {
|
|
@@ -407,8 +413,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
407
413
|
}, [
|
|
408
414
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.scrollList, (item, index2) => {
|
|
409
415
|
return openBlock(), createElementBlock("li", {
|
|
410
|
-
class: "nut-noticebar__vertical-item",
|
|
411
416
|
key: index2,
|
|
417
|
+
class: "nut-noticebar__vertical-item",
|
|
412
418
|
style: normalizeStyle({ height: _ctx.pxCheck(_ctx.height), lineHeight: _ctx.pxCheck(_ctx.height) }),
|
|
413
419
|
onClick: ($event) => _ctx.go(item)
|
|
414
420
|
}, toDisplayString(item), 13, _hoisted_5);
|
|
@@ -19,7 +19,7 @@ var __spreadValues = (a, b) => {
|
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
20
|
import { ref, watch, resolveComponent, openBlock, createBlock, withCtx, createElementVNode, normalizeClass, normalizeStyle, renderSlot, createElementBlock, Fragment, createTextVNode, toDisplayString, createVNode, render, onMounted, h } from "vue";
|
|
21
21
|
import { c as createComponent } from "./component-0fbad28e.js";
|
|
22
|
-
import { P as Popup } from "./index-
|
|
22
|
+
import { P as Popup } from "./index-3032df15.js";
|
|
23
23
|
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
24
24
|
import "../locale/lang";
|
|
25
25
|
import "@nutui/icons-vue";
|
|
@@ -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-0fbad28e.js";
|
|
3
|
-
import { P as Popup } from "./index-
|
|
3
|
+
import { P as Popup } from "./index-3032df15.js";
|
|
4
4
|
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
5
5
|
import "../locale/lang";
|
|
6
6
|
import "@nutui/icons-vue";
|
|
@@ -137,7 +137,7 @@ const _sfc_main = create({
|
|
|
137
137
|
clickKeyIndex.value = item.id;
|
|
138
138
|
if (item.type == "number" || item.type == "custom") {
|
|
139
139
|
emit("input", item.id);
|
|
140
|
-
if (props.modelValue.length < props.maxlength) {
|
|
140
|
+
if (props.modelValue.length < +props.maxlength) {
|
|
141
141
|
emit("update:modelValue", props.modelValue + item.id);
|
|
142
142
|
}
|
|
143
143
|
}
|
|
@@ -14,7 +14,7 @@ var __spreadValues = (a, b) => {
|
|
|
14
14
|
}
|
|
15
15
|
return a;
|
|
16
16
|
};
|
|
17
|
-
import { computed, watchEffect, openBlock, createBlock, Transition, withCtx, withDirectives, createElementVNode, normalizeClass,
|
|
17
|
+
import { computed, watchEffect, openBlock, createBlock, Transition, withCtx, withDirectives, createElementVNode, normalizeClass, normalizeStyle, withModifiers, renderSlot, vShow } from "vue";
|
|
18
18
|
import { b as body, c as createComponent } from "./component-0fbad28e.js";
|
|
19
19
|
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
20
20
|
import "../locale/lang";
|
|
@@ -107,8 +107,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
107
107
|
default: withCtx(() => [
|
|
108
108
|
withDirectives(createElementVNode("view", {
|
|
109
109
|
class: normalizeClass(_ctx.classes),
|
|
110
|
-
|
|
111
|
-
|
|
110
|
+
style: normalizeStyle(_ctx.style),
|
|
111
|
+
onClick: _cache[0] || (_cache[0] = withModifiers((...args) => _ctx.onClick && _ctx.onClick(...args), ["stop"]))
|
|
112
112
|
}, [
|
|
113
113
|
renderSlot(_ctx.$slots, "default")
|
|
114
114
|
], 6), [
|
|
@@ -437,8 +437,8 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
437
437
|
onTouchend: _cache[3] || (_cache[3] = (...args) => _ctx.onTouchEnd && _ctx.onTouchEnd(...args))
|
|
438
438
|
}, [
|
|
439
439
|
createElementVNode("view", {
|
|
440
|
-
class: "nut-picker-roller",
|
|
441
440
|
ref: "roller",
|
|
441
|
+
class: "nut-picker-roller",
|
|
442
442
|
style: normalizeStyle(_ctx.threeDimensional ? _ctx.touchRollerStyle : _ctx.touchTileStyle),
|
|
443
443
|
onTransitionend: _cache[0] || (_cache[0] = (...args) => _ctx.stopMomentum && _ctx.stopMomentum(...args))
|
|
444
444
|
}, [
|
|
@@ -588,8 +588,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
588
588
|
}, [
|
|
589
589
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.columnsList, (column2, columnIndex) => {
|
|
590
590
|
return openBlock(), createElementBlock("view", {
|
|
591
|
-
|
|
592
|
-
|
|
591
|
+
key: columnIndex,
|
|
592
|
+
class: "nut-picker__columnitem"
|
|
593
593
|
}, [
|
|
594
594
|
createVNode(_component_nut_picker_column, {
|
|
595
595
|
ref_for: true,
|
|
@@ -2,7 +2,7 @@ import { ref, computed, onMounted, watch, resolveComponent, openBlock, createEle
|
|
|
2
2
|
import { i as isArray, c as createComponent } from "./component-0fbad28e.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-3032df15.js";
|
|
6
6
|
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
7
7
|
import "../locale/lang";
|
|
8
8
|
import "@nutui/icons-vue";
|
|
@@ -223,9 +223,9 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
223
223
|
return openBlock(), createElementBlock(Fragment, null, [
|
|
224
224
|
!_ctx.targetId ? (openBlock(), createElementBlock("div", {
|
|
225
225
|
key: 0,
|
|
226
|
+
ref: "popoverRef",
|
|
226
227
|
class: "nut-popover-wrapper",
|
|
227
|
-
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.openPopover && _ctx.openPopover(...args))
|
|
228
|
-
ref: "popoverRef"
|
|
228
|
+
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.openPopover && _ctx.openPopover(...args))
|
|
229
229
|
}, [
|
|
230
230
|
renderSlot(_ctx.$slots, "reference")
|
|
231
231
|
], 512)) : createCommentVNode("", true),
|
|
@@ -234,10 +234,10 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
234
234
|
style: normalizeStyle(_ctx.getRootPosition)
|
|
235
235
|
}, [
|
|
236
236
|
createVNode(_component_nut_popup, {
|
|
237
|
-
popClass: `nut-popover-content nut-popover-content--${_ctx.location}`,
|
|
238
|
-
style: normalizeStyle(_ctx.customStyle),
|
|
239
237
|
visible: _ctx.showPopup,
|
|
240
238
|
"onUpdate:visible": _cache[1] || (_cache[1] = ($event) => _ctx.showPopup = $event),
|
|
239
|
+
popClass: `nut-popover-content nut-popover-content--${_ctx.location}`,
|
|
240
|
+
style: normalizeStyle(_ctx.customStyle),
|
|
241
241
|
position: "",
|
|
242
242
|
transition: "nut-popover",
|
|
243
243
|
overlay: _ctx.overlay,
|
|
@@ -270,7 +270,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
270
270
|
], 512)
|
|
271
271
|
]),
|
|
272
272
|
_: 3
|
|
273
|
-
}, 8, ["
|
|
273
|
+
}, 8, ["visible", "popClass", "style", "overlay", "duration", "overlayStyle", "overlayClass", "closeOnClickOverlay"])
|
|
274
274
|
], 6)
|
|
275
275
|
], 64);
|
|
276
276
|
}
|
|
@@ -199,8 +199,8 @@ const _hoisted_1 = { class: "nut-pull-refresh-container-topbox-text" };
|
|
|
199
199
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
200
200
|
const _component_Loading = resolveComponent("Loading");
|
|
201
201
|
return openBlock(), createElementBlock("div", {
|
|
202
|
-
class: normalizeClass(_ctx.classes),
|
|
203
202
|
ref: "scroller",
|
|
203
|
+
class: normalizeClass(_ctx.classes),
|
|
204
204
|
onTouchstart: _cache[0] || (_cache[0] = (...args) => _ctx.touchStart && _ctx.touchStart(...args)),
|
|
205
205
|
onTouchmove: _cache[1] || (_cache[1] = (...args) => _ctx.touchMove && _ctx.touchMove(...args)),
|
|
206
206
|
onTouchend: _cache[2] || (_cache[2] = (...args) => _ctx.touchEnd && _ctx.touchEnd(...args))
|
|
@@ -67,7 +67,7 @@ const _sfc_main = create({
|
|
|
67
67
|
default: 0
|
|
68
68
|
}
|
|
69
69
|
},
|
|
70
|
-
emits: ["change", "
|
|
70
|
+
emits: ["change", "dragEnd", "dragStart", "update:modelValue"],
|
|
71
71
|
setup(props, { emit }) {
|
|
72
72
|
const buttonIndex = ref(0);
|
|
73
73
|
let startValue;
|
|
@@ -78,7 +78,7 @@ const _sfc_main = create({
|
|
|
78
78
|
const marksList = computed(() => {
|
|
79
79
|
const { marks, max, min } = props;
|
|
80
80
|
const marksKeys = Object.keys(marks);
|
|
81
|
-
const list = marksKeys.map(parseFloat).sort((a, b) => a - b).filter((point) => point >= min && point <= max);
|
|
81
|
+
const list = marksKeys.map(parseFloat).sort((a, b) => a - b).filter((point) => point >= +min && point <= +max);
|
|
82
82
|
return list;
|
|
83
83
|
});
|
|
84
84
|
const scope = computed(() => Number(props.max) - Number(props.min));
|
|
@@ -152,7 +152,7 @@ const _sfc_main = create({
|
|
|
152
152
|
} else {
|
|
153
153
|
upperBound = modelValue;
|
|
154
154
|
}
|
|
155
|
-
let isActive = mark <= upperBound && mark >= lowerBound;
|
|
155
|
+
let isActive = mark <= +upperBound && mark >= lowerBound;
|
|
156
156
|
return {
|
|
157
157
|
[`${classPrefix}-text`]: true,
|
|
158
158
|
[`${classPrefix}-text-active`]: isActive
|
|
@@ -253,7 +253,7 @@ const _sfc_main = create({
|
|
|
253
253
|
return;
|
|
254
254
|
}
|
|
255
255
|
if (dragStatus.value === "start") {
|
|
256
|
-
emit("
|
|
256
|
+
emit("dragStart");
|
|
257
257
|
}
|
|
258
258
|
touch.move(event);
|
|
259
259
|
dragStatus.value = "draging";
|
|
@@ -281,7 +281,7 @@ const _sfc_main = create({
|
|
|
281
281
|
}
|
|
282
282
|
if (dragStatus.value === "draging") {
|
|
283
283
|
updateValue(currentValue, true);
|
|
284
|
-
emit("
|
|
284
|
+
emit("dragEnd");
|
|
285
285
|
}
|
|
286
286
|
dragStatus.value = "";
|
|
287
287
|
};
|
package/dist/packages/_es/Row.js
CHANGED
|
@@ -94,9 +94,9 @@ const _sfc_main = create({
|
|
|
94
94
|
"focus",
|
|
95
95
|
"clear",
|
|
96
96
|
"search",
|
|
97
|
-
"
|
|
98
|
-
"
|
|
99
|
-
"
|
|
97
|
+
"clickInput",
|
|
98
|
+
"clickLeftIcon",
|
|
99
|
+
"clickRightIcon"
|
|
100
100
|
],
|
|
101
101
|
setup(props, { emit }) {
|
|
102
102
|
const state = reactive({
|
|
@@ -150,13 +150,13 @@ const _sfc_main = create({
|
|
|
150
150
|
emit("search", props.modelValue);
|
|
151
151
|
};
|
|
152
152
|
const clickInput = (event) => {
|
|
153
|
-
emit("
|
|
153
|
+
emit("clickInput", event);
|
|
154
154
|
};
|
|
155
155
|
const leftIconClick = (event) => {
|
|
156
|
-
emit("
|
|
156
|
+
emit("clickLeftIcon", props.modelValue, event);
|
|
157
157
|
};
|
|
158
158
|
const rightIconClick = (event) => {
|
|
159
|
-
emit("
|
|
159
|
+
emit("clickRightIcon", props.modelValue, event);
|
|
160
160
|
};
|
|
161
161
|
const styleSearchbar = computed(() => {
|
|
162
162
|
const style = {
|
|
@@ -244,11 +244,11 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
244
244
|
value: _ctx.modelValue,
|
|
245
245
|
disabled: _ctx.disabled,
|
|
246
246
|
readonly: _ctx.readonly,
|
|
247
|
+
style: normalizeStyle(_ctx.styleSearchbar),
|
|
247
248
|
onClick: _cache[1] || (_cache[1] = (...args) => _ctx.clickInput && _ctx.clickInput(...args)),
|
|
248
249
|
onInput: _cache[2] || (_cache[2] = (...args) => _ctx.valueChange && _ctx.valueChange(...args)),
|
|
249
250
|
onFocus: _cache[3] || (_cache[3] = (...args) => _ctx.valueFocus && _ctx.valueFocus(...args)),
|
|
250
|
-
onBlur: _cache[4] || (_cache[4] = (...args) => _ctx.valueBlur && _ctx.valueBlur(...args))
|
|
251
|
-
style: normalizeStyle(_ctx.styleSearchbar)
|
|
251
|
+
onBlur: _cache[4] || (_cache[4] = (...args) => _ctx.valueBlur && _ctx.valueBlur(...args))
|
|
252
252
|
}, null, 46, _hoisted_3)
|
|
253
253
|
], 32)
|
|
254
254
|
], 2),
|
|
@@ -257,8 +257,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
257
257
|
}, [
|
|
258
258
|
_ctx.clearable ? withDirectives((openBlock(), createElementBlock("view", {
|
|
259
259
|
key: 0,
|
|
260
|
-
|
|
261
|
-
|
|
260
|
+
class: "nut-searchbar__search-icon nut-searchbar__input-clear",
|
|
261
|
+
onClick: _cache[6] || (_cache[6] = (...args) => _ctx.handleClear && _ctx.handleClear(...args))
|
|
262
262
|
}, [
|
|
263
263
|
_ctx.$slots["clear-icon"] ? renderSlot(_ctx.$slots, "clear-icon", { key: 0 }) : (openBlock(), createBlock(resolveDynamicComponent(_ctx.renderIcon(_ctx.clearIcon)), { key: 1 }))
|
|
264
264
|
], 512)), [
|
|
@@ -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-0fbad28e.js";
|
|
3
|
-
import { P as Popup } from "./index-
|
|
3
|
+
import { P as Popup } from "./index-3032df15.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";
|
|
@@ -110,19 +110,19 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
110
110
|
const _component_nut_popup = resolveComponent("nut-popup");
|
|
111
111
|
return openBlock(), createElementBlock("view", null, [
|
|
112
112
|
createVNode(_component_nut_popup, {
|
|
113
|
+
visible: _ctx.show,
|
|
114
|
+
"onUpdate:visible": _cache[2] || (_cache[2] = ($event) => _ctx.show = $event),
|
|
113
115
|
style: {
|
|
114
116
|
padding: "30px 24px 20px 24px",
|
|
115
117
|
borderRadius: "12px",
|
|
116
118
|
textAlign: "center",
|
|
117
119
|
top: "45%"
|
|
118
120
|
},
|
|
119
|
-
visible: _ctx.show,
|
|
120
|
-
"onUpdate:visible": _cache[2] || (_cache[2] = ($event) => _ctx.show = $event),
|
|
121
121
|
closeable: true,
|
|
122
|
-
onClickCloseIcon: _ctx.close,
|
|
123
122
|
"close-on-click-overlay": _ctx.closeOnClickOverlay,
|
|
124
|
-
|
|
125
|
-
|
|
123
|
+
teleportDisable: false,
|
|
124
|
+
onClickCloseIcon: _ctx.close,
|
|
125
|
+
onClickOverlay: _ctx.close
|
|
126
126
|
}, {
|
|
127
127
|
default: withCtx(() => [
|
|
128
128
|
createElementVNode("view", _hoisted_1, toDisplayString(_ctx.title || _ctx.translate("title")), 1),
|
|
@@ -134,8 +134,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
134
134
|
}, [
|
|
135
135
|
(openBlock(true), createElementBlock(Fragment, null, renderList(new Array(_ctx.comLen), (sublen, index2) => {
|
|
136
136
|
return openBlock(), createElementBlock("view", {
|
|
137
|
-
|
|
138
|
-
|
|
137
|
+
key: index2,
|
|
138
|
+
class: "nut-short-password__item"
|
|
139
139
|
}, [
|
|
140
140
|
String(_ctx.realInput).length > index2 ? (openBlock(), createElementBlock("view", _hoisted_4)) : createCommentVNode("", true)
|
|
141
141
|
]);
|
|
@@ -157,7 +157,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
157
157
|
])
|
|
158
158
|
]),
|
|
159
159
|
_: 1
|
|
160
|
-
}, 8, ["visible", "
|
|
160
|
+
}, 8, ["visible", "close-on-click-overlay", "onClickCloseIcon", "onClickOverlay"])
|
|
161
161
|
]);
|
|
162
162
|
}
|
|
163
163
|
const index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
@@ -29,7 +29,6 @@ const _sfc_main = create({
|
|
|
29
29
|
default: 15
|
|
30
30
|
}
|
|
31
31
|
},
|
|
32
|
-
emits: [],
|
|
33
32
|
setup: (props) => {
|
|
34
33
|
const list = ref(null);
|
|
35
34
|
const state = reactive({
|
|
@@ -85,8 +84,8 @@ const _sfc_main = create({
|
|
|
85
84
|
});
|
|
86
85
|
const _hoisted_1 = { class: "nut-side-navbar__content" };
|
|
87
86
|
const _hoisted_2 = {
|
|
88
|
-
|
|
89
|
-
|
|
87
|
+
ref: "list",
|
|
88
|
+
class: "nut-side-navbar__content__list"
|
|
90
89
|
};
|
|
91
90
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
92
91
|
return openBlock(), createElementBlock("view", {
|
|
@@ -36,8 +36,8 @@ const _hoisted_2 = { class: "nut-side-navbar-item__title" };
|
|
|
36
36
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
37
37
|
return openBlock(), createElementBlock("view", {
|
|
38
38
|
class: normalizeClass(_ctx.classes),
|
|
39
|
-
|
|
40
|
-
|
|
39
|
+
ikey: _ctx.ikey,
|
|
40
|
+
onClick: _cache[0] || (_cache[0] = withModifiers((...args) => _ctx.handleClick && _ctx.handleClick(...args), ["stop"]))
|
|
41
41
|
}, [
|
|
42
42
|
createElementVNode("span", _hoisted_2, toDisplayString(_ctx.title), 1)
|
|
43
43
|
], 10, _hoisted_1);
|
package/dist/packages/_es/Sku.js
CHANGED
|
@@ -22,7 +22,7 @@ import Price from "./Price.js";
|
|
|
22
22
|
import { c as createComponent, T as TypeOfFun } from "./component-0fbad28e.js";
|
|
23
23
|
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
24
24
|
import InputNumber from "./InputNumber.js";
|
|
25
|
-
import { p as popupProps, P as Popup } from "./index-
|
|
25
|
+
import { p as popupProps, P as Popup } from "./index-3032df15.js";
|
|
26
26
|
import "../locale/lang";
|
|
27
27
|
import "./pxCheck-c6b9f6b7.js";
|
|
28
28
|
import "@nutui/icons-vue";
|
|
@@ -122,16 +122,16 @@ function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
122
122
|
return openBlock(), createElementBlock("view", _hoisted_1$3, [
|
|
123
123
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.skuInfo, (item, index2) => {
|
|
124
124
|
return openBlock(), createElementBlock("view", {
|
|
125
|
-
|
|
126
|
-
|
|
125
|
+
key: item.id,
|
|
126
|
+
class: "nut-sku-select-item"
|
|
127
127
|
}, [
|
|
128
128
|
createElementVNode("view", _hoisted_2$3, toDisplayString(item.name), 1),
|
|
129
129
|
createElementVNode("view", _hoisted_3$2, [
|
|
130
130
|
(openBlock(true), createElementBlock(Fragment, null, renderList(item.list, (itemAttr, itemAttrIndex) => {
|
|
131
131
|
return openBlock(), createElementBlock("view", {
|
|
132
|
+
key: itemAttr.name,
|
|
132
133
|
class: normalizeClass(["nut-sku-select-item-skus-sku", [{ active: !itemAttr.disable && itemAttr.active }, { disable: itemAttr.disable }]]),
|
|
133
|
-
onClick: ($event) => _ctx.changeSaleChild(itemAttr, itemAttrIndex, item, index2)
|
|
134
|
-
key: itemAttr.name
|
|
134
|
+
onClick: ($event) => _ctx.changeSaleChild(itemAttr, itemAttrIndex, item, index2)
|
|
135
135
|
}, toDisplayString(itemAttr.name), 11, _hoisted_4$2);
|
|
136
136
|
}), 128))
|
|
137
137
|
])
|
|
@@ -301,8 +301,8 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
301
301
|
!_ctx.getSlots("operate-btn") ? (openBlock(), createElementBlock("view", _hoisted_3, [
|
|
302
302
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.btnOptions, (btn, i) => {
|
|
303
303
|
return openBlock(), createElementBlock("view", {
|
|
304
|
-
class: normalizeClass([`nut-sku-operate-btn-${btn}`, "nut-sku-operate-btn-item"]),
|
|
305
304
|
key: i,
|
|
305
|
+
class: normalizeClass([`nut-sku-operate-btn-${btn}`, "nut-sku-operate-btn-item"]),
|
|
306
306
|
onClick: ($event) => _ctx.clickBtnOperate(btn)
|
|
307
307
|
}, toDisplayString(_ctx.getBtnDesc(btn)), 11, _hoisted_4);
|
|
308
308
|
}), 128))
|
|
@@ -368,15 +368,15 @@ const _sfc_main = create({
|
|
|
368
368
|
}),
|
|
369
369
|
emits: [
|
|
370
370
|
"update:visible",
|
|
371
|
-
"
|
|
372
|
-
"
|
|
373
|
-
"
|
|
374
|
-
"
|
|
375
|
-
"
|
|
371
|
+
"selectSku",
|
|
372
|
+
"changeStepper",
|
|
373
|
+
"clickBtnOperate",
|
|
374
|
+
"clickCloseIcon",
|
|
375
|
+
"clickOverlay",
|
|
376
376
|
"close",
|
|
377
377
|
"reduce",
|
|
378
378
|
"add",
|
|
379
|
-
"
|
|
379
|
+
"overLimit"
|
|
380
380
|
],
|
|
381
381
|
components: {
|
|
382
382
|
SkuHeader,
|
|
@@ -406,11 +406,11 @@ const _sfc_main = create({
|
|
|
406
406
|
});
|
|
407
407
|
const getSlots = (name) => slots[name];
|
|
408
408
|
const selectSku = (skus) => {
|
|
409
|
-
emit("
|
|
409
|
+
emit("selectSku", skus);
|
|
410
410
|
};
|
|
411
411
|
const changeStepper = (value) => {
|
|
412
412
|
goodsCount.value = value;
|
|
413
|
-
emit("
|
|
413
|
+
emit("changeStepper", value);
|
|
414
414
|
};
|
|
415
415
|
const add = (value) => {
|
|
416
416
|
emit("add", value);
|
|
@@ -419,20 +419,20 @@ const _sfc_main = create({
|
|
|
419
419
|
emit("reduce", value);
|
|
420
420
|
};
|
|
421
421
|
const stepperOverLimit = (count) => {
|
|
422
|
-
emit("
|
|
422
|
+
emit("overLimit", count);
|
|
423
423
|
};
|
|
424
424
|
const clickBtnOperate = (btn) => {
|
|
425
|
-
emit("
|
|
425
|
+
emit("clickBtnOperate", {
|
|
426
426
|
type: btn,
|
|
427
427
|
value: goodsCount.value
|
|
428
428
|
});
|
|
429
429
|
};
|
|
430
430
|
const closePopup = (type) => {
|
|
431
431
|
if (type == "icon") {
|
|
432
|
-
emit("
|
|
432
|
+
emit("clickCloseIcon");
|
|
433
433
|
}
|
|
434
434
|
if (type == "overlay") {
|
|
435
|
-
emit("
|
|
435
|
+
emit("clickOverlay");
|
|
436
436
|
}
|
|
437
437
|
if (type == "close") {
|
|
438
438
|
emit("close");
|
|
@@ -465,17 +465,17 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
465
465
|
const _component_sku_operate = resolveComponent("sku-operate");
|
|
466
466
|
const _component_nut_popup = resolveComponent("nut-popup");
|
|
467
467
|
return openBlock(), createBlock(_component_nut_popup, {
|
|
468
|
+
visible: _ctx.showPopup,
|
|
469
|
+
"onUpdate:visible": _cache[0] || (_cache[0] = ($event) => _ctx.showPopup = $event),
|
|
468
470
|
position: "bottom",
|
|
469
471
|
closeable: "",
|
|
470
472
|
round: "",
|
|
471
|
-
visible: _ctx.showPopup,
|
|
472
|
-
"onUpdate:visible": _cache[0] || (_cache[0] = ($event) => _ctx.showPopup = $event),
|
|
473
|
-
onClickCloseIcon: _cache[1] || (_cache[1] = ($event) => _ctx.closePopup("icon")),
|
|
474
|
-
onClickOverlay: _cache[2] || (_cache[2] = ($event) => _ctx.closePopup("overlay")),
|
|
475
|
-
onClose: _cache[3] || (_cache[3] = ($event) => _ctx.closePopup("close")),
|
|
476
473
|
style: { "height": "75%" },
|
|
477
474
|
teleportDisable: _ctx.teleportDisable,
|
|
478
|
-
teleport: _ctx.teleport
|
|
475
|
+
teleport: _ctx.teleport,
|
|
476
|
+
onClickCloseIcon: _cache[1] || (_cache[1] = ($event) => _ctx.closePopup("icon")),
|
|
477
|
+
onClickOverlay: _cache[2] || (_cache[2] = ($event) => _ctx.closePopup("overlay")),
|
|
478
|
+
onClose: _cache[3] || (_cache[3] = ($event) => _ctx.closePopup("close"))
|
|
479
479
|
}, {
|
|
480
480
|
default: withCtx(() => [
|
|
481
481
|
createElementVNode("view", _hoisted_1, [
|
|
@@ -17,7 +17,7 @@ const _sfc_main = create({
|
|
|
17
17
|
default: false
|
|
18
18
|
}
|
|
19
19
|
},
|
|
20
|
-
emits: ["
|
|
20
|
+
emits: ["clickStep"],
|
|
21
21
|
setup(props, { emit, slots }) {
|
|
22
22
|
const state = reactive({
|
|
23
23
|
children: []
|
|
@@ -34,7 +34,7 @@ const _sfc_main = create({
|
|
|
34
34
|
child && state.children.push(child);
|
|
35
35
|
};
|
|
36
36
|
const onEmit = (index) => {
|
|
37
|
-
emit("
|
|
37
|
+
emit("clickStep", index);
|
|
38
38
|
};
|
|
39
39
|
provide("parent", {
|
|
40
40
|
relation,
|
|
@@ -113,13 +113,13 @@ const _sfc_main = create({
|
|
|
113
113
|
});
|
|
114
114
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
115
115
|
return openBlock(), createElementBlock("div", {
|
|
116
|
-
class: "nut-sticky",
|
|
117
116
|
ref: "rootRef",
|
|
117
|
+
class: "nut-sticky",
|
|
118
118
|
style: normalizeStyle(_ctx.rootStyle)
|
|
119
119
|
}, [
|
|
120
120
|
createElementVNode("div", {
|
|
121
|
-
class: "nut-sticky__box",
|
|
122
121
|
ref: "stickyRef",
|
|
122
|
+
class: "nut-sticky__box",
|
|
123
123
|
style: normalizeStyle(_ctx.stickyStyle)
|
|
124
124
|
}, [
|
|
125
125
|
renderSlot(_ctx.$slots, "default")
|
|
@@ -39,7 +39,7 @@ const _sfc_main = create({
|
|
|
39
39
|
}
|
|
40
40
|
},
|
|
41
41
|
components: { ArrowDown2, ArrowUp2 },
|
|
42
|
-
emits: ["
|
|
42
|
+
emits: ["titleClick"],
|
|
43
43
|
setup: (props, context) => {
|
|
44
44
|
const state = reactive({
|
|
45
45
|
direction: ""
|
|
@@ -56,7 +56,7 @@ const _sfc_main = create({
|
|
|
56
56
|
};
|
|
57
57
|
});
|
|
58
58
|
const handleClick = () => {
|
|
59
|
-
context.emit("
|
|
59
|
+
context.emit("titleClick");
|
|
60
60
|
state.direction = !state.direction ? "up" : "";
|
|
61
61
|
};
|
|
62
62
|
onMounted(() => {
|
|
@@ -202,8 +202,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
202
202
|
onTouchcancel: _cache[6] || (_cache[6] = (...args) => _ctx.onTouchEnd && _ctx.onTouchEnd(...args))
|
|
203
203
|
}, [
|
|
204
204
|
createElementVNode("view", {
|
|
205
|
-
class: "nut-swipe__left",
|
|
206
205
|
ref: "leftRef",
|
|
206
|
+
class: "nut-swipe__left",
|
|
207
207
|
onClick: _cache[0] || (_cache[0] = ($event) => _ctx.onClick($event, "left", true))
|
|
208
208
|
}, [
|
|
209
209
|
renderSlot(_ctx.$slots, "left")
|
|
@@ -215,8 +215,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
215
215
|
renderSlot(_ctx.$slots, "default")
|
|
216
216
|
]),
|
|
217
217
|
createElementVNode("view", {
|
|
218
|
-
class: "nut-swipe__right",
|
|
219
218
|
ref: "rightRef",
|
|
219
|
+
class: "nut-swipe__right",
|
|
220
220
|
onClick: _cache[2] || (_cache[2] = ($event) => _ctx.onClick($event, "right", true))
|
|
221
221
|
}, [
|
|
222
222
|
renderSlot(_ctx.$slots, "right")
|
|
@@ -25,8 +25,8 @@ const _sfc_main = create({
|
|
|
25
25
|
}
|
|
26
26
|
});
|
|
27
27
|
const _hoisted_1 = {
|
|
28
|
-
|
|
29
|
-
|
|
28
|
+
ref: "swipeGroupRef",
|
|
29
|
+
class: "nut-swipe-group"
|
|
30
30
|
};
|
|
31
31
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
32
32
|
return openBlock(), createElementBlock("div", _hoisted_1, [
|