@nutui/nutui 3.1.15 → 3.1.16-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/dist/nutui.es.js +302 -340
- package/dist/nutui.umd.js +302 -340
- package/dist/packages/_es/ActionSheet.js +1 -1
- package/dist/packages/_es/Address.js +1 -1
- package/dist/packages/_es/Avatar.js +1 -1
- package/dist/packages/_es/BackTop.js +1 -1
- package/dist/packages/_es/Badge.js +1 -1
- package/dist/packages/_es/Barrage.js +1 -1
- package/dist/packages/_es/Button.js +1 -1
- package/dist/packages/_es/Calendar.js +1 -1
- package/dist/packages/_es/Card.js +1 -1
- package/dist/packages/_es/Cascader.js +1 -1
- package/dist/packages/_es/Cell.js +1 -1
- package/dist/packages/_es/CellGroup.js +1 -1
- package/dist/packages/_es/Checkbox.js +1 -1
- package/dist/packages/_es/CheckboxGroup.js +1 -1
- package/dist/packages/_es/CircleProgress.js +1 -1
- package/dist/packages/_es/Col.js +1 -1
- package/dist/packages/_es/Collapse.js +1 -1
- package/dist/packages/_es/CollapseItem.js +1 -1
- package/dist/packages/_es/CountDown.js +1 -1
- package/dist/packages/_es/CountUp.js +1 -1
- package/dist/packages/_es/DatePicker.js +1 -2
- package/dist/packages/_es/Dialog.js +1 -1
- package/dist/packages/_es/Divider.js +1 -1
- package/dist/packages/_es/Drag.js +1 -1
- package/dist/packages/_es/Elevator.js +1 -1
- package/dist/packages/_es/Empty.js +1 -1
- package/dist/packages/_es/FixedNav.js +1 -1
- package/dist/packages/_es/Form.js +1 -1
- package/dist/packages/_es/FormItem.js +1 -1
- package/dist/packages/_es/Grid.js +1 -1
- package/dist/packages/_es/GridItem.js +1 -1
- package/dist/packages/_es/Icon.js +1 -1
- package/dist/packages/_es/ImagePreview.js +1 -1
- package/dist/packages/_es/Indicator.js +1 -1
- package/dist/packages/_es/InfiniteLoading.js +1 -1
- package/dist/packages/_es/Input.js +15 -10
- package/dist/packages/_es/InputNumber.js +1 -1
- package/dist/packages/_es/Layout.js +1 -1
- package/dist/packages/_es/Menu.js +1 -1
- package/dist/packages/_es/MenuItem.js +1 -1
- package/dist/packages/_es/Navbar.js +6 -32
- package/dist/packages/_es/NoticeBar.js +1 -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/Pagination.js +1 -1
- package/dist/packages/_es/Picker.js +170 -189
- package/dist/packages/_es/Popover.js +1 -1
- package/dist/packages/_es/Popup.js +1 -1
- package/dist/packages/_es/Price.js +1 -1
- package/dist/packages/_es/Progress.js +1 -1
- package/dist/packages/_es/Radio.js +1 -1
- package/dist/packages/_es/RadioGroup.js +1 -1
- package/dist/packages/_es/Range.js +1 -1
- package/dist/packages/_es/Rate.js +1 -1
- package/dist/packages/_es/Row.js +1 -1
- package/dist/packages/_es/SearchBar.js +1 -1
- package/dist/packages/_es/ShortPassword.js +1 -1
- package/dist/packages/_es/SideNavBar.js +1 -1
- package/dist/packages/_es/SideNavBarItem.js +1 -1
- package/dist/packages/_es/Signature.js +1 -1
- package/dist/packages/_es/Skeleton.js +1 -1
- package/dist/packages/_es/Sku.js +1 -2
- package/dist/packages/_es/Step.js +1 -1
- package/dist/packages/_es/Steps.js +1 -1
- package/dist/packages/_es/SubSideNavBar.js +1 -1
- package/dist/packages/_es/Swipe.js +1 -1
- package/dist/packages/_es/Swiper.js +1 -1
- package/dist/packages/_es/SwiperItem.js +1 -1
- package/dist/packages/_es/Switch.js +1 -1
- package/dist/packages/_es/TabPane.js +1 -1
- package/dist/packages/_es/Tabbar.js +1 -1
- package/dist/packages/_es/TabbarItem.js +1 -1
- package/dist/packages/_es/Table.js +1 -1
- package/dist/packages/_es/Tabs.js +1 -1
- package/dist/packages/_es/Tag.js +1 -1
- package/dist/packages/_es/TextArea.js +1 -1
- package/dist/packages/_es/TimeDetail.js +1 -1
- package/dist/packages/_es/TimePannel.js +1 -1
- package/dist/packages/_es/TimeSelect.js +1 -1
- package/dist/packages/_es/Toast.js +1 -1
- package/dist/packages/_es/Uploader.js +6 -4
- package/dist/packages/_es/Video.js +1 -1
- package/dist/packages/_es/common.js +1 -1
- package/dist/packages/_es/component.js +1 -1
- package/dist/packages/_es/index.js +1 -1
- package/dist/packages/_es/index2.js +1 -1
- package/dist/packages/_es/index3.js +1 -1
- package/dist/packages/_es/plugin-vue_export-helper.js +1 -1
- package/dist/packages/_es/pxCheck.js +1 -1
- package/dist/packages/_es/raf.js +1 -1
- package/dist/packages/_es/util.js +1 -1
- package/dist/packages/button/index.scss +3 -0
- package/dist/packages/icon/index.scss +2 -2
- package/dist/packages/input/index.scss +4 -1
- package/dist/packages/menuitem/index.scss +1 -1
- package/dist/packages/navbar/index.scss +8 -34
- package/dist/packages/picker/index.scss +73 -17
- package/dist/style.css +1 -1
- package/dist/styles/themes/default.scss +44 -44
- package/package.json +1 -1
package/dist/nutui.umd.js
CHANGED
|
@@ -35,7 +35,7 @@ var __publicField = (obj, key, value) => {
|
|
|
35
35
|
return value;
|
|
36
36
|
};
|
|
37
37
|
/*!
|
|
38
|
-
* @nutui/nutui v3.1.
|
|
38
|
+
* @nutui/nutui v3.1.16-beta.1 Thu Jan 27 2022 18:18:28 GMT+0800 (中国标准时间)
|
|
39
39
|
* (c) 2021 @jdf2e.
|
|
40
40
|
* Released under the MIT License.
|
|
41
41
|
*/
|
|
@@ -126,7 +126,7 @@ var __publicField = (obj, key, value) => {
|
|
|
126
126
|
};
|
|
127
127
|
}
|
|
128
128
|
});
|
|
129
|
-
const _hoisted_1
|
|
129
|
+
const _hoisted_1$$ = {
|
|
130
130
|
key: 0,
|
|
131
131
|
class: "text"
|
|
132
132
|
};
|
|
@@ -141,7 +141,7 @@ var __publicField = (obj, key, value) => {
|
|
|
141
141
|
class: "icon",
|
|
142
142
|
name: _ctx.iconStyles
|
|
143
143
|
}, null, 8, ["name"]),
|
|
144
|
-
_ctx.isShowText ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_1
|
|
144
|
+
_ctx.isShowText ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_1$$, [
|
|
145
145
|
vue.renderSlot(_ctx.$slots, "default")
|
|
146
146
|
])) : vue.createCommentVNode("", true)
|
|
147
147
|
], 6);
|
|
@@ -270,7 +270,7 @@ var __publicField = (obj, key, value) => {
|
|
|
270
270
|
};
|
|
271
271
|
}
|
|
272
272
|
});
|
|
273
|
-
const _hoisted_1$
|
|
273
|
+
const _hoisted_1$_ = { class: "nut-button__warp" };
|
|
274
274
|
function _sfc_render$1g(_ctx, _cache, $props, $setup, $data, $options) {
|
|
275
275
|
const _component_nut_icon = vue.resolveComponent("nut-icon");
|
|
276
276
|
return vue.openBlock(), vue.createElementBlock("view", {
|
|
@@ -278,7 +278,7 @@ var __publicField = (obj, key, value) => {
|
|
|
278
278
|
style: vue.normalizeStyle(_ctx.getStyle),
|
|
279
279
|
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.handleClick && _ctx.handleClick(...args))
|
|
280
280
|
}, [
|
|
281
|
-
vue.createElementVNode("view", _hoisted_1$
|
|
281
|
+
vue.createElementVNode("view", _hoisted_1$_, [
|
|
282
282
|
_ctx.loading ? (vue.openBlock(), vue.createBlock(_component_nut_icon, {
|
|
283
283
|
key: 0,
|
|
284
284
|
class: "nut-icon-loading"
|
|
@@ -342,7 +342,7 @@ var __publicField = (obj, key, value) => {
|
|
|
342
342
|
};
|
|
343
343
|
}
|
|
344
344
|
});
|
|
345
|
-
const _hoisted_1$
|
|
345
|
+
const _hoisted_1$Z = { class: "title" };
|
|
346
346
|
const _hoisted_2$O = { class: "nut-cell__title-desc" };
|
|
347
347
|
function _sfc_render$1f(_ctx, _cache, $props, $setup, $data, $options) {
|
|
348
348
|
const _component_nut_icon = vue.resolveComponent("nut-icon");
|
|
@@ -362,7 +362,7 @@ var __publicField = (obj, key, value) => {
|
|
|
362
362
|
name: _ctx.icon
|
|
363
363
|
}, null, 8, ["name"])) : vue.createCommentVNode("", true),
|
|
364
364
|
_ctx.subTitle ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 2 }, [
|
|
365
|
-
vue.createElementVNode("view", _hoisted_1$
|
|
365
|
+
vue.createElementVNode("view", _hoisted_1$Z, vue.toDisplayString(_ctx.title), 1),
|
|
366
366
|
vue.createElementVNode("view", _hoisted_2$O, vue.toDisplayString(_ctx.subTitle), 1)
|
|
367
367
|
], 64)) : (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 3 }, [
|
|
368
368
|
vue.createTextVNode(vue.toDisplayString(_ctx.title), 1)
|
|
@@ -400,7 +400,7 @@ var __publicField = (obj, key, value) => {
|
|
|
400
400
|
};
|
|
401
401
|
}
|
|
402
402
|
});
|
|
403
|
-
const _hoisted_1$
|
|
403
|
+
const _hoisted_1$Y = {
|
|
404
404
|
key: 1,
|
|
405
405
|
class: "nut-cell-group__title"
|
|
406
406
|
};
|
|
@@ -413,7 +413,7 @@ var __publicField = (obj, key, value) => {
|
|
|
413
413
|
return vue.openBlock(), vue.createElementBlock("view", {
|
|
414
414
|
class: vue.normalizeClass(_ctx.classes)
|
|
415
415
|
}, [
|
|
416
|
-
_ctx.$slots.title ? vue.renderSlot(_ctx.$slots, "title", { key: 0 }) : _ctx.title ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_1$
|
|
416
|
+
_ctx.$slots.title ? vue.renderSlot(_ctx.$slots, "title", { key: 0 }) : _ctx.title ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_1$Y, vue.toDisplayString(_ctx.title), 1)) : vue.createCommentVNode("", true),
|
|
417
417
|
_ctx.$slots.desc ? vue.renderSlot(_ctx.$slots, "desc", { key: 2 }) : _ctx.desc ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_2$N, vue.toDisplayString(_ctx.desc), 1)) : vue.createCommentVNode("", true),
|
|
418
418
|
vue.createElementVNode("view", _hoisted_3$B, [
|
|
419
419
|
vue.renderSlot(_ctx.$slots, "default")
|
|
@@ -505,7 +505,7 @@ var __publicField = (obj, key, value) => {
|
|
|
505
505
|
};
|
|
506
506
|
}
|
|
507
507
|
});
|
|
508
|
-
const _hoisted_1$
|
|
508
|
+
const _hoisted_1$X = ["innerHTML"];
|
|
509
509
|
const _hoisted_2$M = ["innerHTML"];
|
|
510
510
|
function _sfc_render$1d(_ctx, _cache, $props, $setup, $data, $options) {
|
|
511
511
|
return vue.openBlock(), vue.createElementBlock("view", {
|
|
@@ -515,7 +515,7 @@ var __publicField = (obj, key, value) => {
|
|
|
515
515
|
key: 0,
|
|
516
516
|
class: vue.normalizeClass(["nut-price--symbol", `nut-price--symbol-${_ctx.size}`]),
|
|
517
517
|
innerHTML: _ctx.showSymbol
|
|
518
|
-
}, null, 10, _hoisted_1$
|
|
518
|
+
}, null, 10, _hoisted_1$X)) : vue.createCommentVNode("", true),
|
|
519
519
|
vue.createElementVNode("view", {
|
|
520
520
|
class: vue.normalizeClass(`nut-price--${_ctx.size}`)
|
|
521
521
|
}, vue.toDisplayString(_ctx.formatThousands(_ctx.price)), 3),
|
|
@@ -955,7 +955,7 @@ var __publicField = (obj, key, value) => {
|
|
|
955
955
|
});
|
|
956
956
|
}
|
|
957
957
|
});
|
|
958
|
-
const _hoisted_1$
|
|
958
|
+
const _hoisted_1$W = { key: 1 };
|
|
959
959
|
function _sfc_render$18(_ctx, _cache, $props, $setup, $data, $options) {
|
|
960
960
|
const _component_nut_overlay = vue.resolveComponent("nut-overlay");
|
|
961
961
|
const _component_nut_icon = vue.resolveComponent("nut-icon");
|
|
@@ -1002,7 +1002,7 @@ var __publicField = (obj, key, value) => {
|
|
|
1002
1002
|
]),
|
|
1003
1003
|
_: 3
|
|
1004
1004
|
}, 8, ["name", "onAfterEnter", "onAfterLeave"])
|
|
1005
|
-
], 8, ["to"])) : (vue.openBlock(), vue.createElementBlock("view", _hoisted_1$
|
|
1005
|
+
], 8, ["to"])) : (vue.openBlock(), vue.createElementBlock("view", _hoisted_1$W, [
|
|
1006
1006
|
_ctx.overlay ? (vue.openBlock(), vue.createBlock(_component_nut_overlay, {
|
|
1007
1007
|
key: 0,
|
|
1008
1008
|
visible: _ctx.visible,
|
|
@@ -1317,7 +1317,7 @@ var __publicField = (obj, key, value) => {
|
|
|
1317
1317
|
});
|
|
1318
1318
|
}
|
|
1319
1319
|
});
|
|
1320
|
-
const _hoisted_1$
|
|
1320
|
+
const _hoisted_1$V = {
|
|
1321
1321
|
class: "nut-video",
|
|
1322
1322
|
ref: "videocon"
|
|
1323
1323
|
};
|
|
@@ -1341,7 +1341,7 @@ var __publicField = (obj, key, value) => {
|
|
|
1341
1341
|
const _hoisted_11$4 = { class: "nut-video-error" };
|
|
1342
1342
|
const _hoisted_12$4 = /* @__PURE__ */ vue.createElementVNode("p", { class: "lose" }, "\u89C6\u9891\u52A0\u8F7D\u5931\u8D25", -1);
|
|
1343
1343
|
function _sfc_render$17(_ctx, _cache, $props, $setup, $data, $options) {
|
|
1344
|
-
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
1344
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$V, [
|
|
1345
1345
|
vue.createElementVNode("video", {
|
|
1346
1346
|
ref: "root",
|
|
1347
1347
|
class: "nut-video-player",
|
|
@@ -1582,7 +1582,7 @@ var __publicField = (obj, key, value) => {
|
|
|
1582
1582
|
state.children.push(child.proxy);
|
|
1583
1583
|
}
|
|
1584
1584
|
};
|
|
1585
|
-
const
|
|
1585
|
+
const range = (num, min, max) => {
|
|
1586
1586
|
return Math.min(Math.max(num, min), max);
|
|
1587
1587
|
};
|
|
1588
1588
|
const requestFrame = (fn) => {
|
|
@@ -1595,7 +1595,7 @@ var __publicField = (obj, key, value) => {
|
|
|
1595
1595
|
}
|
|
1596
1596
|
let targetOffset = offset - currentPosition;
|
|
1597
1597
|
if (!props.loop) {
|
|
1598
|
-
targetOffset =
|
|
1598
|
+
targetOffset = range(targetOffset, minOffset.value, 0);
|
|
1599
1599
|
}
|
|
1600
1600
|
return targetOffset;
|
|
1601
1601
|
};
|
|
@@ -1603,9 +1603,9 @@ var __publicField = (obj, key, value) => {
|
|
|
1603
1603
|
const { active } = state;
|
|
1604
1604
|
if (pace) {
|
|
1605
1605
|
if (props.loop) {
|
|
1606
|
-
return
|
|
1606
|
+
return range(active + pace, -1, childCount.value);
|
|
1607
1607
|
}
|
|
1608
|
-
return
|
|
1608
|
+
return range(active + pace, 0, childCount.value - 1);
|
|
1609
1609
|
}
|
|
1610
1610
|
return active;
|
|
1611
1611
|
};
|
|
@@ -2072,7 +2072,7 @@ var __publicField = (obj, key, value) => {
|
|
|
2072
2072
|
});
|
|
2073
2073
|
}
|
|
2074
2074
|
});
|
|
2075
|
-
const _hoisted_1$
|
|
2075
|
+
const _hoisted_1$U = ["src"];
|
|
2076
2076
|
const _hoisted_2$K = { class: "nut-imagepreview-index" };
|
|
2077
2077
|
function _sfc_render$14(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2078
2078
|
const _component_nut_video = vue.resolveComponent("nut-video");
|
|
@@ -2122,7 +2122,7 @@ var __publicField = (obj, key, value) => {
|
|
|
2122
2122
|
vue.createElementVNode("img", {
|
|
2123
2123
|
src: item.src,
|
|
2124
2124
|
class: "nut-imagepreview-img"
|
|
2125
|
-
}, null, 8, _hoisted_1$
|
|
2125
|
+
}, null, 8, _hoisted_1$U)
|
|
2126
2126
|
]),
|
|
2127
2127
|
_: 2
|
|
2128
2128
|
}, 1024);
|
|
@@ -2388,7 +2388,7 @@ var __publicField = (obj, key, value) => {
|
|
|
2388
2388
|
});
|
|
2389
2389
|
}
|
|
2390
2390
|
});
|
|
2391
|
-
const _hoisted_1$
|
|
2391
|
+
const _hoisted_1$T = {
|
|
2392
2392
|
class: "nut-swipe__left",
|
|
2393
2393
|
ref: "leftRef"
|
|
2394
2394
|
};
|
|
@@ -2406,7 +2406,7 @@ var __publicField = (obj, key, value) => {
|
|
|
2406
2406
|
onTouchend: _cache[2] || (_cache[2] = (...args) => _ctx.onTouchEnd && _ctx.onTouchEnd(...args)),
|
|
2407
2407
|
onTouchcancel: _cache[3] || (_cache[3] = (...args) => _ctx.onTouchEnd && _ctx.onTouchEnd(...args))
|
|
2408
2408
|
}, [
|
|
2409
|
-
vue.createElementVNode("view", _hoisted_1$
|
|
2409
|
+
vue.createElementVNode("view", _hoisted_1$T, [
|
|
2410
2410
|
vue.renderSlot(_ctx.$slots, "left")
|
|
2411
2411
|
], 512),
|
|
2412
2412
|
vue.createElementVNode("view", _hoisted_2$J, [
|
|
@@ -2488,7 +2488,7 @@ var __publicField = (obj, key, value) => {
|
|
|
2488
2488
|
};
|
|
2489
2489
|
}
|
|
2490
2490
|
});
|
|
2491
|
-
const _hoisted_1$
|
|
2491
|
+
const _hoisted_1$S = { class: "nut-actionsheet-panel" };
|
|
2492
2492
|
const _hoisted_2$I = {
|
|
2493
2493
|
key: 0,
|
|
2494
2494
|
class: "nut-actionsheet-title"
|
|
@@ -2516,7 +2516,7 @@ var __publicField = (obj, key, value) => {
|
|
|
2516
2516
|
onClickOverlay: _ctx.close
|
|
2517
2517
|
}, {
|
|
2518
2518
|
default: vue.withCtx(() => [
|
|
2519
|
-
vue.createElementVNode("view", _hoisted_1$
|
|
2519
|
+
vue.createElementVNode("view", _hoisted_1$S, [
|
|
2520
2520
|
_ctx.title ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_2$I, vue.toDisplayString(_ctx.title), 1)) : vue.createCommentVNode("", true),
|
|
2521
2521
|
_ctx.description ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_3$y, vue.toDisplayString(_ctx.description), 1)) : vue.createCommentVNode("", true),
|
|
2522
2522
|
_ctx.menuItems.length ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_4$q, [
|
|
@@ -2935,7 +2935,7 @@ var __publicField = (obj, key, value) => {
|
|
|
2935
2935
|
});
|
|
2936
2936
|
}
|
|
2937
2937
|
});
|
|
2938
|
-
const _hoisted_1$
|
|
2938
|
+
const _hoisted_1$R = { class: "collapse-title" };
|
|
2939
2939
|
const _hoisted_2$H = { class: "collapse-title-value" };
|
|
2940
2940
|
const _hoisted_3$x = ["innerHTML"];
|
|
2941
2941
|
const _hoisted_4$p = {
|
|
@@ -2960,7 +2960,7 @@ var __publicField = (obj, key, value) => {
|
|
|
2960
2960
|
class: vue.normalizeClass(["collapse-item", { "item-expanded": _ctx.openExpanded }, { "nut-collapse-item-disabled": _ctx.disabled }]),
|
|
2961
2961
|
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.toggleOpen && _ctx.toggleOpen(...args))
|
|
2962
2962
|
}, [
|
|
2963
|
-
vue.createElementVNode("view", _hoisted_1$
|
|
2963
|
+
vue.createElementVNode("view", _hoisted_1$R, [
|
|
2964
2964
|
vue.createElementVNode("view", null, [
|
|
2965
2965
|
vue.createElementVNode("view", _hoisted_2$H, [
|
|
2966
2966
|
_ctx.titleIcon ? (vue.openBlock(), vue.createBlock(_component_nut_icon, {
|
|
@@ -3314,7 +3314,7 @@ var __publicField = (obj, key, value) => {
|
|
|
3314
3314
|
};
|
|
3315
3315
|
}
|
|
3316
3316
|
});
|
|
3317
|
-
const _hoisted_1$
|
|
3317
|
+
const _hoisted_1$Q = {
|
|
3318
3318
|
key: 0,
|
|
3319
3319
|
class: "nut-dialog__header"
|
|
3320
3320
|
};
|
|
@@ -3336,7 +3336,7 @@ var __publicField = (obj, key, value) => {
|
|
|
3336
3336
|
vue.createElementVNode("view", {
|
|
3337
3337
|
class: vue.normalizeClass(_ctx.classes)
|
|
3338
3338
|
}, [
|
|
3339
|
-
_ctx.title ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_1$
|
|
3339
|
+
_ctx.title ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_1$Q, [
|
|
3340
3340
|
_ctx.$slots.header ? vue.renderSlot(_ctx.$slots, "header", { key: 0 }) : (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 1 }, [
|
|
3341
3341
|
vue.createTextVNode(vue.toDisplayString(_ctx.title), 1)
|
|
3342
3342
|
], 64))
|
|
@@ -3649,7 +3649,7 @@ var __publicField = (obj, key, value) => {
|
|
|
3649
3649
|
});
|
|
3650
3650
|
}
|
|
3651
3651
|
});
|
|
3652
|
-
const _hoisted_1$
|
|
3652
|
+
const _hoisted_1$P = { class: "top-box" };
|
|
3653
3653
|
const _hoisted_2$F = { class: "top-text" };
|
|
3654
3654
|
const _hoisted_3$w = { class: "nut-infinite-container" };
|
|
3655
3655
|
const _hoisted_4$o = { class: "nut-infinite-bottom" };
|
|
@@ -3676,7 +3676,7 @@ var __publicField = (obj, key, value) => {
|
|
|
3676
3676
|
ref: "refreshTop",
|
|
3677
3677
|
style: vue.normalizeStyle(_ctx.getStyle)
|
|
3678
3678
|
}, [
|
|
3679
|
-
vue.createElementVNode("view", _hoisted_1$
|
|
3679
|
+
vue.createElementVNode("view", _hoisted_1$P, [
|
|
3680
3680
|
vue.createVNode(_component_nut_icon, {
|
|
3681
3681
|
class: "top-img",
|
|
3682
3682
|
name: _ctx.pullIcon
|
|
@@ -4126,7 +4126,7 @@ var __publicField = (obj, key, value) => {
|
|
|
4126
4126
|
});
|
|
4127
4127
|
}
|
|
4128
4128
|
});
|
|
4129
|
-
const _hoisted_1$
|
|
4129
|
+
const _hoisted_1$O = { class: "nut-range-container" };
|
|
4130
4130
|
const _hoisted_2$E = {
|
|
4131
4131
|
key: 0,
|
|
4132
4132
|
class: "min"
|
|
@@ -4146,7 +4146,7 @@ var __publicField = (obj, key, value) => {
|
|
|
4146
4146
|
class: "max"
|
|
4147
4147
|
};
|
|
4148
4148
|
function _sfc_render$W(_ctx, _cache, $props, $setup, $data, $options) {
|
|
4149
|
-
return vue.openBlock(), vue.createElementBlock("view", _hoisted_1$
|
|
4149
|
+
return vue.openBlock(), vue.createElementBlock("view", _hoisted_1$O, [
|
|
4150
4150
|
!_ctx.hiddenRange ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_2$E, vue.toDisplayString(+_ctx.min), 1)) : vue.createCommentVNode("", true),
|
|
4151
4151
|
vue.createElementVNode("view", {
|
|
4152
4152
|
ref: "root",
|
|
@@ -4319,7 +4319,7 @@ var __publicField = (obj, key, value) => {
|
|
|
4319
4319
|
});
|
|
4320
4320
|
}
|
|
4321
4321
|
});
|
|
4322
|
-
const _hoisted_1$
|
|
4322
|
+
const _hoisted_1$N = { class: "nut-step-head" };
|
|
4323
4323
|
const _hoisted_2$D = /* @__PURE__ */ vue.createElementVNode("view", { class: "nut-step-line" }, null, -1);
|
|
4324
4324
|
const _hoisted_3$u = {
|
|
4325
4325
|
key: 2,
|
|
@@ -4333,7 +4333,7 @@ var __publicField = (obj, key, value) => {
|
|
|
4333
4333
|
return vue.openBlock(), vue.createElementBlock("view", {
|
|
4334
4334
|
class: vue.normalizeClass(_ctx.classes)
|
|
4335
4335
|
}, [
|
|
4336
|
-
vue.createElementVNode("view", _hoisted_1$
|
|
4336
|
+
vue.createElementVNode("view", _hoisted_1$N, [
|
|
4337
4337
|
_hoisted_2$D,
|
|
4338
4338
|
vue.createElementVNode("view", {
|
|
4339
4339
|
class: vue.normalizeClass(["nut-step-icon", [!_ctx.dot ? _ctx.icon ? "is-icon" : "is-text" : ""]])
|
|
@@ -4442,7 +4442,7 @@ var __publicField = (obj, key, value) => {
|
|
|
4442
4442
|
};
|
|
4443
4443
|
}
|
|
4444
4444
|
});
|
|
4445
|
-
const _hoisted_1$
|
|
4445
|
+
const _hoisted_1$M = { class: "switch-button" };
|
|
4446
4446
|
function _sfc_render$U(_ctx, _cache, $props, $setup, $data, $options) {
|
|
4447
4447
|
const _component_nut_icon = vue.resolveComponent("nut-icon");
|
|
4448
4448
|
return vue.openBlock(), vue.createElementBlock("view", {
|
|
@@ -4450,7 +4450,7 @@ var __publicField = (obj, key, value) => {
|
|
|
4450
4450
|
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.onClick && _ctx.onClick(...args)),
|
|
4451
4451
|
style: vue.normalizeStyle(_ctx.style)
|
|
4452
4452
|
}, [
|
|
4453
|
-
vue.createElementVNode("view", _hoisted_1$
|
|
4453
|
+
vue.createElementVNode("view", _hoisted_1$M, [
|
|
4454
4454
|
_ctx.loading ? (vue.openBlock(), vue.createBlock(_component_nut_icon, {
|
|
4455
4455
|
key: 0,
|
|
4456
4456
|
name: _ctx.name,
|
|
@@ -4598,7 +4598,7 @@ var __publicField = (obj, key, value) => {
|
|
|
4598
4598
|
};
|
|
4599
4599
|
}
|
|
4600
4600
|
});
|
|
4601
|
-
const _hoisted_1$
|
|
4601
|
+
const _hoisted_1$L = {
|
|
4602
4602
|
key: 0,
|
|
4603
4603
|
class: "nut-toast-icon-wrapper"
|
|
4604
4604
|
};
|
|
@@ -4629,7 +4629,7 @@ var __publicField = (obj, key, value) => {
|
|
|
4629
4629
|
"background-color": _ctx.bgColor
|
|
4630
4630
|
})
|
|
4631
4631
|
}, [
|
|
4632
|
-
_ctx.hasIcon ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_1$
|
|
4632
|
+
_ctx.hasIcon ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_1$L, [
|
|
4633
4633
|
vue.createVNode(_component_nut_icon, {
|
|
4634
4634
|
size: "20",
|
|
4635
4635
|
color: "#ffffff",
|
|
@@ -4843,10 +4843,10 @@ var __publicField = (obj, key, value) => {
|
|
|
4843
4843
|
};
|
|
4844
4844
|
}
|
|
4845
4845
|
});
|
|
4846
|
-
const _hoisted_1$
|
|
4846
|
+
const _hoisted_1$K = { class: "nut-progress" };
|
|
4847
4847
|
function _sfc_render$S(_ctx, _cache, $props, $setup, $data, $options) {
|
|
4848
4848
|
const _component_nut_icon = vue.resolveComponent("nut-icon");
|
|
4849
|
-
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$
|
|
4849
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$K, [
|
|
4850
4850
|
vue.createElementVNode("div", {
|
|
4851
4851
|
class: vue.normalizeClass(["nut-progress-outer", [
|
|
4852
4852
|
_ctx.showText && !_ctx.textInside ? "nut-progress-outer-part" : "",
|
|
@@ -4945,7 +4945,7 @@ var __publicField = (obj, key, value) => {
|
|
|
4945
4945
|
};
|
|
4946
4946
|
}
|
|
4947
4947
|
});
|
|
4948
|
-
const _hoisted_1$
|
|
4948
|
+
const _hoisted_1$J = ["height", "width"];
|
|
4949
4949
|
const _hoisted_2$B = ["r", "cx", "cy", "stroke", "stroke-width"];
|
|
4950
4950
|
const _hoisted_3$s = ["r", "cx", "cy", "stroke", "stroke-dasharray", "stroke-width", "transform"];
|
|
4951
4951
|
const _hoisted_4$l = { class: "nut-circleprogress-content" };
|
|
@@ -4979,7 +4979,7 @@ var __publicField = (obj, key, value) => {
|
|
|
4979
4979
|
"stroke-linecap": "round",
|
|
4980
4980
|
style: { "transition": "stroke-dasharray 0.6s ease 0s, stroke 0.6s ease 0s" }
|
|
4981
4981
|
}, null, 8, _hoisted_3$s)
|
|
4982
|
-
], 8, _hoisted_1$
|
|
4982
|
+
], 8, _hoisted_1$J)),
|
|
4983
4983
|
vue.createElementVNode("div", _hoisted_4$l, [
|
|
4984
4984
|
!_ctx.isAuto ? vue.renderSlot(_ctx.$slots, "default", { key: 0 }, () => [
|
|
4985
4985
|
vue.createTextVNode(vue.toDisplayString(_ctx.progress) + "%", 1)
|
|
@@ -5246,7 +5246,7 @@ var __publicField = (obj, key, value) => {
|
|
|
5246
5246
|
});
|
|
5247
5247
|
}
|
|
5248
5248
|
});
|
|
5249
|
-
const _hoisted_1$
|
|
5249
|
+
const _hoisted_1$I = {
|
|
5250
5250
|
ref: "wrap",
|
|
5251
5251
|
class: "wrap"
|
|
5252
5252
|
};
|
|
@@ -5275,7 +5275,7 @@ var __publicField = (obj, key, value) => {
|
|
|
5275
5275
|
color: _ctx.color
|
|
5276
5276
|
}, null, 8, ["color"])) : vue.createCommentVNode("", true)
|
|
5277
5277
|
], 4)) : vue.createCommentVNode("", true),
|
|
5278
|
-
vue.createElementVNode("view", _hoisted_1$
|
|
5278
|
+
vue.createElementVNode("view", _hoisted_1$I, [
|
|
5279
5279
|
vue.createElementVNode("view", {
|
|
5280
5280
|
ref: "content",
|
|
5281
5281
|
class: vue.normalizeClass(["content", [_ctx.animationClass, { "nut-ellipsis": !_ctx.scrollable && !_ctx.wrapable }]]),
|
|
@@ -5439,7 +5439,7 @@ var __publicField = (obj, key, value) => {
|
|
|
5439
5439
|
});
|
|
5440
5440
|
}
|
|
5441
5441
|
});
|
|
5442
|
-
const _hoisted_1$
|
|
5442
|
+
const _hoisted_1$H = {
|
|
5443
5443
|
key: 0,
|
|
5444
5444
|
class: "nut-searchbar__search-icon nut-searchbar__left-search-icon"
|
|
5445
5445
|
};
|
|
@@ -5463,7 +5463,7 @@ var __publicField = (obj, key, value) => {
|
|
|
5463
5463
|
class: "nut-searchbar",
|
|
5464
5464
|
style: vue.normalizeStyle(_ctx.searchbarStyle)
|
|
5465
5465
|
}, [
|
|
5466
|
-
_ctx.$slots.leftout ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_1$
|
|
5466
|
+
_ctx.$slots.leftout ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_1$H, [
|
|
5467
5467
|
vue.renderSlot(_ctx.$slots, "leftout")
|
|
5468
5468
|
])) : vue.createCommentVNode("", true),
|
|
5469
5469
|
vue.createElementVNode("view", {
|
|
@@ -5553,14 +5553,14 @@ var __publicField = (obj, key, value) => {
|
|
|
5553
5553
|
};
|
|
5554
5554
|
}
|
|
5555
5555
|
});
|
|
5556
|
-
const _hoisted_1$
|
|
5556
|
+
const _hoisted_1$G = { class: "nut-empty" };
|
|
5557
5557
|
const _hoisted_2$y = ["src"];
|
|
5558
5558
|
const _hoisted_3$q = {
|
|
5559
5559
|
key: 1,
|
|
5560
5560
|
class: "nut-empty-description"
|
|
5561
5561
|
};
|
|
5562
5562
|
function _sfc_render$O(_ctx, _cache, $props, $setup, $data, $options) {
|
|
5563
|
-
return vue.openBlock(), vue.createElementBlock("view", _hoisted_1$
|
|
5563
|
+
return vue.openBlock(), vue.createElementBlock("view", _hoisted_1$G, [
|
|
5564
5564
|
vue.createElementVNode("view", {
|
|
5565
5565
|
class: "nut-empty-image",
|
|
5566
5566
|
style: vue.normalizeStyle(_ctx.imgStyle)
|
|
@@ -5584,12 +5584,6 @@ var __publicField = (obj, key, value) => {
|
|
|
5584
5584
|
leftShow: { type: Boolean, default: true },
|
|
5585
5585
|
title: { type: String, default: "" },
|
|
5586
5586
|
titIcon: { type: String, default: "" },
|
|
5587
|
-
tabs: {
|
|
5588
|
-
type: Array,
|
|
5589
|
-
defaul: () => {
|
|
5590
|
-
return [];
|
|
5591
|
-
}
|
|
5592
|
-
},
|
|
5593
5587
|
icon: { type: String, default: "" },
|
|
5594
5588
|
desc: { type: String, default: "" },
|
|
5595
5589
|
defaultIndex: {
|
|
@@ -5619,11 +5613,6 @@ var __publicField = (obj, key, value) => {
|
|
|
5619
5613
|
[prefixCls]: true
|
|
5620
5614
|
};
|
|
5621
5615
|
});
|
|
5622
|
-
function switchTitle(id, name) {
|
|
5623
|
-
activeIndex.value = id;
|
|
5624
|
-
console.log(id);
|
|
5625
|
-
emit("switch-tab", activeIndex.value, name);
|
|
5626
|
-
}
|
|
5627
5616
|
function handleLeft() {
|
|
5628
5617
|
emit("on-click-back");
|
|
5629
5618
|
}
|
|
@@ -5654,20 +5643,17 @@ var __publicField = (obj, key, value) => {
|
|
|
5654
5643
|
handleSend,
|
|
5655
5644
|
handleSlot,
|
|
5656
5645
|
handleSends,
|
|
5657
|
-
switchTitle,
|
|
5658
5646
|
activeIndex
|
|
5659
5647
|
};
|
|
5660
5648
|
}
|
|
5661
5649
|
});
|
|
5662
|
-
const _hoisted_1$
|
|
5663
|
-
const _hoisted_2$x = { class: "tab-title" };
|
|
5664
|
-
const _hoisted_3$p = ["onClick"];
|
|
5650
|
+
const _hoisted_1$F = { class: "nut-navbar__left" };
|
|
5665
5651
|
function _sfc_render$N(_ctx, _cache, $props, $setup, $data, $options) {
|
|
5666
5652
|
const _component_nut_icon = vue.resolveComponent("nut-icon");
|
|
5667
5653
|
return vue.openBlock(), vue.createElementBlock("view", {
|
|
5668
5654
|
class: vue.normalizeClass(_ctx.classes)
|
|
5669
5655
|
}, [
|
|
5670
|
-
vue.createElementVNode("view", _hoisted_1$
|
|
5656
|
+
vue.createElementVNode("view", _hoisted_1$F, [
|
|
5671
5657
|
_ctx.leftShow ? (vue.openBlock(), vue.createBlock(_component_nut_icon, {
|
|
5672
5658
|
key: 0,
|
|
5673
5659
|
color: "#979797",
|
|
@@ -5675,8 +5661,7 @@ var __publicField = (obj, key, value) => {
|
|
|
5675
5661
|
onClick: _ctx.handleLeft
|
|
5676
5662
|
}, null, 8, ["onClick"])) : vue.createCommentVNode("", true)
|
|
5677
5663
|
]),
|
|
5678
|
-
|
|
5679
|
-
key: 0,
|
|
5664
|
+
vue.createElementVNode("view", {
|
|
5680
5665
|
class: vue.normalizeClass(["nut-navbar__title", { icon: _ctx.icon }])
|
|
5681
5666
|
}, [
|
|
5682
5667
|
_ctx.title ? (vue.openBlock(), vue.createElementBlock("view", {
|
|
@@ -5689,21 +5674,10 @@ var __publicField = (obj, key, value) => {
|
|
|
5689
5674
|
name: _ctx.titIcon,
|
|
5690
5675
|
onClick: _ctx.handleCenterIcon
|
|
5691
5676
|
}, null, 8, ["name", "onClick"])) : vue.createCommentVNode("", true),
|
|
5692
|
-
vue.
|
|
5693
|
-
|
|
5694
|
-
return vue.openBlock(), vue.createElementBlock("view", {
|
|
5695
|
-
class: vue.normalizeClass([
|
|
5696
|
-
"tab-title-box",
|
|
5697
|
-
{ "nut-tab-active": _ctx.activeIndex == item.id || _ctx.activeIndex == index }
|
|
5698
|
-
]),
|
|
5699
|
-
onClick: ($event) => _ctx.switchTitle(item.id, item.name),
|
|
5700
|
-
key: item.id
|
|
5701
|
-
}, vue.toDisplayString(item.name), 11, _hoisted_3$p);
|
|
5702
|
-
}), 128))
|
|
5703
|
-
])
|
|
5704
|
-
], 2)) : vue.createCommentVNode("", true),
|
|
5677
|
+
vue.renderSlot(_ctx.$slots, "content")
|
|
5678
|
+
], 2),
|
|
5705
5679
|
_ctx.desc || _ctx.icon ? (vue.openBlock(), vue.createElementBlock("view", {
|
|
5706
|
-
key:
|
|
5680
|
+
key: 0,
|
|
5707
5681
|
class: vue.normalizeClass(["nut-navbar__right", { icon: _ctx.icon }])
|
|
5708
5682
|
}, [
|
|
5709
5683
|
_ctx.desc ? (vue.openBlock(), vue.createElementBlock("view", {
|
|
@@ -5792,9 +5766,9 @@ var __publicField = (obj, key, value) => {
|
|
|
5792
5766
|
return { classes, updateValue, selected };
|
|
5793
5767
|
}
|
|
5794
5768
|
});
|
|
5795
|
-
const _hoisted_1$
|
|
5796
|
-
const _hoisted_2$
|
|
5797
|
-
const _hoisted_3$
|
|
5769
|
+
const _hoisted_1$E = { class: "nut-fixednav__list" };
|
|
5770
|
+
const _hoisted_2$x = ["onClick"];
|
|
5771
|
+
const _hoisted_3$p = ["src"];
|
|
5798
5772
|
const _hoisted_4$j = { class: "span" };
|
|
5799
5773
|
const _hoisted_5$c = {
|
|
5800
5774
|
key: 0,
|
|
@@ -5815,7 +5789,7 @@ var __publicField = (obj, key, value) => {
|
|
|
5815
5789
|
onClick: _cache[0] || (_cache[0] = ($event) => _ctx.updateValue(false))
|
|
5816
5790
|
}, null, 8, ["visible"])) : vue.createCommentVNode("", true),
|
|
5817
5791
|
vue.renderSlot(_ctx.$slots, "list", {}, () => [
|
|
5818
|
-
vue.createElementVNode("view", _hoisted_1$
|
|
5792
|
+
vue.createElementVNode("view", _hoisted_1$E, [
|
|
5819
5793
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.navList, (item, index) => {
|
|
5820
5794
|
return vue.openBlock(), vue.createElementBlock("view", {
|
|
5821
5795
|
class: "nut-fixednav__list-item",
|
|
@@ -5824,10 +5798,10 @@ var __publicField = (obj, key, value) => {
|
|
|
5824
5798
|
}, [
|
|
5825
5799
|
vue.createElementVNode("img", {
|
|
5826
5800
|
src: item.icon
|
|
5827
|
-
}, null, 8, _hoisted_3$
|
|
5801
|
+
}, null, 8, _hoisted_3$p),
|
|
5828
5802
|
vue.createElementVNode("view", _hoisted_4$j, vue.toDisplayString(item.text), 1),
|
|
5829
5803
|
item.num ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_5$c, vue.toDisplayString(item.num), 1)) : vue.createCommentVNode("", true)
|
|
5830
|
-
], 8, _hoisted_2$
|
|
5804
|
+
], 8, _hoisted_2$x);
|
|
5831
5805
|
}), 128))
|
|
5832
5806
|
])
|
|
5833
5807
|
]),
|
|
@@ -5920,8 +5894,8 @@ var __publicField = (obj, key, value) => {
|
|
|
5920
5894
|
};
|
|
5921
5895
|
}
|
|
5922
5896
|
});
|
|
5923
|
-
const _hoisted_1$
|
|
5924
|
-
const _hoisted_2$
|
|
5897
|
+
const _hoisted_1$D = ["onClick"];
|
|
5898
|
+
const _hoisted_2$w = { class: "nut-menu__title-text" };
|
|
5925
5899
|
function _sfc_render$L(_ctx, _cache, $props, $setup, $data, $options) {
|
|
5926
5900
|
const _component_nut_icon = vue.resolveComponent("nut-icon");
|
|
5927
5901
|
return vue.openBlock(), vue.createElementBlock("view", {
|
|
@@ -5941,14 +5915,14 @@ var __publicField = (obj, key, value) => {
|
|
|
5941
5915
|
vue.createElementVNode("view", {
|
|
5942
5916
|
class: vue.normalizeClass(["nut-menu__title", { active: item.state.showPopup }])
|
|
5943
5917
|
}, [
|
|
5944
|
-
vue.createElementVNode("view", _hoisted_2$
|
|
5918
|
+
vue.createElementVNode("view", _hoisted_2$w, vue.toDisplayString(item.renderTitle()), 1),
|
|
5945
5919
|
vue.createVNode(_component_nut_icon, {
|
|
5946
5920
|
name: item.titleIcon,
|
|
5947
5921
|
size: "10",
|
|
5948
5922
|
class: "nut-menu__title-icon"
|
|
5949
5923
|
}, null, 8, ["name"])
|
|
5950
5924
|
], 2)
|
|
5951
|
-
], 14, _hoisted_1$
|
|
5925
|
+
], 14, _hoisted_1$D);
|
|
5952
5926
|
}), 128))
|
|
5953
5927
|
], 2),
|
|
5954
5928
|
vue.renderSlot(_ctx.$slots, "default")
|
|
@@ -6052,8 +6026,8 @@ var __publicField = (obj, key, value) => {
|
|
|
6052
6026
|
};
|
|
6053
6027
|
}
|
|
6054
6028
|
});
|
|
6055
|
-
const _hoisted_1$
|
|
6056
|
-
const _hoisted_2$
|
|
6029
|
+
const _hoisted_1$C = { class: "nut-menu-item__content" };
|
|
6030
|
+
const _hoisted_2$v = ["onClick"];
|
|
6057
6031
|
function _sfc_render$K(_ctx, _cache, $props, $setup, $data, $options) {
|
|
6058
6032
|
const _component_nut_icon = vue.resolveComponent("nut-icon");
|
|
6059
6033
|
const _component_nut_popup = vue.resolveComponent("nut-popup");
|
|
@@ -6082,7 +6056,7 @@ var __publicField = (obj, key, value) => {
|
|
|
6082
6056
|
isWrapTeleport: false
|
|
6083
6057
|
}), {
|
|
6084
6058
|
default: vue.withCtx(() => [
|
|
6085
|
-
vue.createElementVNode("view", _hoisted_1$
|
|
6059
|
+
vue.createElementVNode("view", _hoisted_1$C, [
|
|
6086
6060
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.options, (option, index) => {
|
|
6087
6061
|
return vue.openBlock(), vue.createElementBlock("view", {
|
|
6088
6062
|
key: index,
|
|
@@ -6098,7 +6072,7 @@ var __publicField = (obj, key, value) => {
|
|
|
6098
6072
|
vue.createElementVNode("view", {
|
|
6099
6073
|
style: vue.normalizeStyle({ color: option.value === _ctx.modelValue ? _ctx.parent.props.activeColor : "" })
|
|
6100
6074
|
}, vue.toDisplayString(option.text), 5)
|
|
6101
|
-
], 14, _hoisted_2$
|
|
6075
|
+
], 14, _hoisted_2$v);
|
|
6102
6076
|
}), 128)),
|
|
6103
6077
|
vue.renderSlot(_ctx.$slots, "default")
|
|
6104
6078
|
])
|
|
@@ -6260,12 +6234,12 @@ var __publicField = (obj, key, value) => {
|
|
|
6260
6234
|
};
|
|
6261
6235
|
}
|
|
6262
6236
|
});
|
|
6263
|
-
const _hoisted_1$
|
|
6264
|
-
const _hoisted_2$
|
|
6237
|
+
const _hoisted_1$B = { class: "nut-tabbar-item_icon-box" };
|
|
6238
|
+
const _hoisted_2$u = {
|
|
6265
6239
|
key: 0,
|
|
6266
6240
|
class: "nut-tabbar-item_icon-box_tips nut-tabbar-item_icon-box_num"
|
|
6267
6241
|
};
|
|
6268
|
-
const _hoisted_3$
|
|
6242
|
+
const _hoisted_3$o = {
|
|
6269
6243
|
key: 1,
|
|
6270
6244
|
class: "nut-tabbar-item_icon-box_tips nut-tabbar-item_icon-box_nums"
|
|
6271
6245
|
};
|
|
@@ -6279,8 +6253,8 @@ var __publicField = (obj, key, value) => {
|
|
|
6279
6253
|
}),
|
|
6280
6254
|
onClick: _cache[0] || (_cache[0] = ($event) => _ctx.change(_ctx.state.index))
|
|
6281
6255
|
}, [
|
|
6282
|
-
vue.createElementVNode("view", _hoisted_1$
|
|
6283
|
-
_ctx.num && _ctx.num <= 99 ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_2$
|
|
6256
|
+
vue.createElementVNode("view", _hoisted_1$B, [
|
|
6257
|
+
_ctx.num && _ctx.num <= 99 ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_2$u, vue.toDisplayString(_ctx.num), 1)) : _ctx.num && _ctx.num > 100 ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_3$o, vue.toDisplayString("99+"))) : vue.createCommentVNode("", true),
|
|
6284
6258
|
_ctx.icon ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_4$i, [
|
|
6285
6259
|
vue.createVNode(_component_nut_icon, {
|
|
6286
6260
|
class: "nut-tabbar-item_icon-box_icon",
|
|
@@ -6429,9 +6403,9 @@ var __publicField = (obj, key, value) => {
|
|
|
6429
6403
|
});
|
|
6430
6404
|
}
|
|
6431
6405
|
});
|
|
6432
|
-
const _hoisted_1$
|
|
6433
|
-
const _hoisted_2$
|
|
6434
|
-
const _hoisted_3$
|
|
6406
|
+
const _hoisted_1$A = { class: "nut-elevator__list__item__code" };
|
|
6407
|
+
const _hoisted_2$t = ["onClick", "innerHTML"];
|
|
6408
|
+
const _hoisted_3$n = { class: "nut-elevator__bars__inner" };
|
|
6435
6409
|
const _hoisted_4$h = ["data-index", "onClick"];
|
|
6436
6410
|
function _sfc_render$H(_ctx, _cache, $props, $setup, $data, $options) {
|
|
6437
6411
|
return vue.openBlock(), vue.createElementBlock("view", {
|
|
@@ -6449,14 +6423,14 @@ var __publicField = (obj, key, value) => {
|
|
|
6449
6423
|
ref_for: true,
|
|
6450
6424
|
ref: _ctx.setListGroup
|
|
6451
6425
|
}, [
|
|
6452
|
-
vue.createElementVNode("view", _hoisted_1$
|
|
6426
|
+
vue.createElementVNode("view", _hoisted_1$A, vue.toDisplayString(item[_ctx.acceptKey]), 1),
|
|
6453
6427
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(item.list, (subitem) => {
|
|
6454
6428
|
return vue.openBlock(), vue.createElementBlock("view", {
|
|
6455
6429
|
class: "nut-elevator__list__item__name",
|
|
6456
6430
|
key: subitem["id"],
|
|
6457
6431
|
onClick: ($event) => _ctx.handleClickItem(item[_ctx.acceptKey], subitem),
|
|
6458
6432
|
innerHTML: subitem.name
|
|
6459
|
-
}, null, 8, _hoisted_2$
|
|
6433
|
+
}, null, 8, _hoisted_2$t);
|
|
6460
6434
|
}), 128))
|
|
6461
6435
|
]);
|
|
6462
6436
|
}), 128))
|
|
@@ -6473,7 +6447,7 @@ var __publicField = (obj, key, value) => {
|
|
|
6473
6447
|
onTouchmove: _cache[1] || (_cache[1] = vue.withModifiers((...args) => _ctx.touchMove && _ctx.touchMove(...args), ["stop", "prevent"])),
|
|
6474
6448
|
onTouchend: _cache[2] || (_cache[2] = (...args) => _ctx.touchEnd && _ctx.touchEnd(...args))
|
|
6475
6449
|
}, [
|
|
6476
|
-
vue.createElementVNode("view", _hoisted_3$
|
|
6450
|
+
vue.createElementVNode("view", _hoisted_3$n, [
|
|
6477
6451
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.indexList, (item, index) => {
|
|
6478
6452
|
return vue.openBlock(), vue.createElementBlock("view", {
|
|
6479
6453
|
class: "nut-elevator__bars__inner__item",
|
|
@@ -6593,19 +6567,19 @@ var __publicField = (obj, key, value) => {
|
|
|
6593
6567
|
};
|
|
6594
6568
|
}
|
|
6595
6569
|
});
|
|
6596
|
-
const _hoisted_1$
|
|
6597
|
-
const _hoisted_2$
|
|
6570
|
+
const _hoisted_1$z = { class: "nut-pagination" };
|
|
6571
|
+
const _hoisted_2$s = {
|
|
6598
6572
|
key: 0,
|
|
6599
6573
|
class: "nut-pagination-contain"
|
|
6600
6574
|
};
|
|
6601
|
-
const _hoisted_3$
|
|
6575
|
+
const _hoisted_3$m = ["onClick"];
|
|
6602
6576
|
const _hoisted_4$g = {
|
|
6603
6577
|
key: 1,
|
|
6604
6578
|
class: "nut-pagination-contain"
|
|
6605
6579
|
};
|
|
6606
6580
|
const _hoisted_5$b = { class: "nut-pagination-simple" };
|
|
6607
6581
|
function _sfc_render$G(_ctx, _cache, $props, $setup, $data, $options) {
|
|
6608
|
-
return vue.openBlock(), vue.createElementBlock("view", _hoisted_1$
|
|
6582
|
+
return vue.openBlock(), vue.createElementBlock("view", _hoisted_1$z, [
|
|
6609
6583
|
vue.createElementVNode("view", {
|
|
6610
6584
|
class: vue.normalizeClass(["nut-pagination-prev", _ctx.mode == "multi" ? "" : "simple-border", _ctx.modelValue == 1 ? "disabled" : ""]),
|
|
6611
6585
|
onClick: _cache[0] || (_cache[0] = ($event) => _ctx.select(_ctx.modelValue - 1, true))
|
|
@@ -6614,7 +6588,7 @@ var __publicField = (obj, key, value) => {
|
|
|
6614
6588
|
vue.createTextVNode(vue.toDisplayString(_ctx.prevText), 1)
|
|
6615
6589
|
])
|
|
6616
6590
|
], 2),
|
|
6617
|
-
_ctx.mode == "multi" ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_2$
|
|
6591
|
+
_ctx.mode == "multi" ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_2$s, [
|
|
6618
6592
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.pages, (item, index) => {
|
|
6619
6593
|
return vue.openBlock(), vue.createElementBlock("view", {
|
|
6620
6594
|
key: index + "pagination",
|
|
@@ -6624,7 +6598,7 @@ var __publicField = (obj, key, value) => {
|
|
|
6624
6598
|
vue.renderSlot(_ctx.$slots, "page", { item }, () => [
|
|
6625
6599
|
vue.createTextVNode(vue.toDisplayString(item.text), 1)
|
|
6626
6600
|
])
|
|
6627
|
-
], 10, _hoisted_3$
|
|
6601
|
+
], 10, _hoisted_3$m);
|
|
6628
6602
|
}), 128))
|
|
6629
6603
|
])) : vue.createCommentVNode("", true),
|
|
6630
6604
|
_ctx.mode == "simple" ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_4$g, [
|
|
@@ -6779,7 +6753,7 @@ var __publicField = (obj, key, value) => {
|
|
|
6779
6753
|
}, methods);
|
|
6780
6754
|
}
|
|
6781
6755
|
});
|
|
6782
|
-
const _hoisted_1$
|
|
6756
|
+
const _hoisted_1$y = ["onClick"];
|
|
6783
6757
|
function _sfc_render$F(_ctx, _cache, $props, $setup, $data, $options) {
|
|
6784
6758
|
const _component_nut_icon = vue.resolveComponent("nut-icon");
|
|
6785
6759
|
return vue.openBlock(), vue.createElementBlock("view", {
|
|
@@ -6814,7 +6788,7 @@ var __publicField = (obj, key, value) => {
|
|
|
6814
6788
|
vue.createElementVNode("view", {
|
|
6815
6789
|
class: vue.normalizeClass(["nut-tabs__titles-item__text", { ellipsis: _ctx.ellipsis && !_ctx.titleScroll && _ctx.direction == "horizontal" }])
|
|
6816
6790
|
}, vue.toDisplayString(item.title), 3)
|
|
6817
|
-
], 14, _hoisted_1$
|
|
6791
|
+
], 14, _hoisted_1$y);
|
|
6818
6792
|
}), 128))
|
|
6819
6793
|
], 6),
|
|
6820
6794
|
vue.createElementVNode("view", {
|
|
@@ -7152,7 +7126,7 @@ var __publicField = (obj, key, value) => {
|
|
|
7152
7126
|
};
|
|
7153
7127
|
}
|
|
7154
7128
|
});
|
|
7155
|
-
const _hoisted_1$
|
|
7129
|
+
const _hoisted_1$x = {
|
|
7156
7130
|
key: 3,
|
|
7157
7131
|
class: "nut-grid-item__text"
|
|
7158
7132
|
};
|
|
@@ -7173,7 +7147,7 @@ var __publicField = (obj, key, value) => {
|
|
|
7173
7147
|
size: _ctx.iconProps.size,
|
|
7174
7148
|
color: _ctx.iconProps.color
|
|
7175
7149
|
}, null, 8, ["name", "size", "color"])),
|
|
7176
|
-
_ctx.$slots.text ? vue.renderSlot(_ctx.$slots, "text", { key: 2 }) : (vue.openBlock(), vue.createElementBlock("view", _hoisted_1$
|
|
7150
|
+
_ctx.$slots.text ? vue.renderSlot(_ctx.$slots, "text", { key: 2 }) : (vue.openBlock(), vue.createElementBlock("view", _hoisted_1$x, vue.toDisplayString(_ctx.text), 1))
|
|
7177
7151
|
], 64))
|
|
7178
7152
|
], 2)
|
|
7179
7153
|
], 6);
|
|
@@ -7238,8 +7212,8 @@ var __publicField = (obj, key, value) => {
|
|
|
7238
7212
|
});
|
|
7239
7213
|
}
|
|
7240
7214
|
});
|
|
7241
|
-
const _hoisted_1$
|
|
7242
|
-
const _hoisted_2$
|
|
7215
|
+
const _hoisted_1$w = { class: "nut-sidenavbar__content" };
|
|
7216
|
+
const _hoisted_2$r = {
|
|
7243
7217
|
class: "nut-sidenavbar__content__list",
|
|
7244
7218
|
ref: "list"
|
|
7245
7219
|
};
|
|
@@ -7247,8 +7221,8 @@ var __publicField = (obj, key, value) => {
|
|
|
7247
7221
|
return vue.openBlock(), vue.createElementBlock("view", {
|
|
7248
7222
|
class: vue.normalizeClass(_ctx.classes)
|
|
7249
7223
|
}, [
|
|
7250
|
-
vue.createElementVNode("view", _hoisted_1$
|
|
7251
|
-
vue.createElementVNode("view", _hoisted_2$
|
|
7224
|
+
vue.createElementVNode("view", _hoisted_1$w, [
|
|
7225
|
+
vue.createElementVNode("view", _hoisted_2$r, [
|
|
7252
7226
|
vue.renderSlot(_ctx.$slots, "default")
|
|
7253
7227
|
], 512)
|
|
7254
7228
|
])
|
|
@@ -7284,16 +7258,16 @@ var __publicField = (obj, key, value) => {
|
|
|
7284
7258
|
};
|
|
7285
7259
|
}
|
|
7286
7260
|
});
|
|
7287
|
-
const _hoisted_1$
|
|
7288
|
-
const _hoisted_2$
|
|
7261
|
+
const _hoisted_1$v = ["ikey"];
|
|
7262
|
+
const _hoisted_2$q = { class: "nut-sidenavbaritem__title" };
|
|
7289
7263
|
function _sfc_render$A(_ctx, _cache, $props, $setup, $data, $options) {
|
|
7290
7264
|
return vue.openBlock(), vue.createElementBlock("view", {
|
|
7291
7265
|
class: "nut-sidenavbaritem",
|
|
7292
7266
|
onClick: _cache[0] || (_cache[0] = vue.withModifiers((...args) => _ctx.handleClick && _ctx.handleClick(...args), ["stop"])),
|
|
7293
7267
|
ikey: _ctx.ikey
|
|
7294
7268
|
}, [
|
|
7295
|
-
vue.createElementVNode("span", _hoisted_2$
|
|
7296
|
-
], 8, _hoisted_1$
|
|
7269
|
+
vue.createElementVNode("span", _hoisted_2$q, vue.toDisplayString(_ctx.title), 1)
|
|
7270
|
+
], 8, _hoisted_1$v);
|
|
7297
7271
|
}
|
|
7298
7272
|
var SideNavBarItem = /* @__PURE__ */ _export_sfc(_sfc_main$E, [["render", _sfc_render$A]]);
|
|
7299
7273
|
const { componentName: componentName$s, create: create$D } = createComponent("subsidenavbar");
|
|
@@ -7342,9 +7316,9 @@ var __publicField = (obj, key, value) => {
|
|
|
7342
7316
|
});
|
|
7343
7317
|
}
|
|
7344
7318
|
});
|
|
7345
|
-
const _hoisted_1$
|
|
7346
|
-
const _hoisted_2$
|
|
7347
|
-
const _hoisted_3$
|
|
7319
|
+
const _hoisted_1$u = ["ikey"];
|
|
7320
|
+
const _hoisted_2$p = { class: "nut-subsidenavbar__title__text" };
|
|
7321
|
+
const _hoisted_3$l = { class: "nut-subsidenavbar__title__icon" };
|
|
7348
7322
|
function _sfc_render$z(_ctx, _cache, $props, $setup, $data, $options) {
|
|
7349
7323
|
const _component_nut_icon = vue.resolveComponent("nut-icon");
|
|
7350
7324
|
return vue.openBlock(), vue.createElementBlock("view", {
|
|
@@ -7355,8 +7329,8 @@ var __publicField = (obj, key, value) => {
|
|
|
7355
7329
|
class: "nut-subsidenavbar__title",
|
|
7356
7330
|
onClick: _cache[0] || (_cache[0] = vue.withModifiers((...args) => _ctx.handleClick && _ctx.handleClick(...args), ["stop"]))
|
|
7357
7331
|
}, [
|
|
7358
|
-
vue.createElementVNode("span", _hoisted_2$
|
|
7359
|
-
vue.createElementVNode("span", _hoisted_3$
|
|
7332
|
+
vue.createElementVNode("span", _hoisted_2$p, vue.toDisplayString(_ctx.title), 1),
|
|
7333
|
+
vue.createElementVNode("span", _hoisted_3$l, [
|
|
7360
7334
|
vue.createVNode(_component_nut_icon, {
|
|
7361
7335
|
name: "down-arrow",
|
|
7362
7336
|
class: vue.normalizeClass(_ctx.direction)
|
|
@@ -7369,7 +7343,7 @@ var __publicField = (obj, key, value) => {
|
|
|
7369
7343
|
}, [
|
|
7370
7344
|
vue.renderSlot(_ctx.$slots, "default")
|
|
7371
7345
|
], 6)
|
|
7372
|
-
], 10, _hoisted_1$
|
|
7346
|
+
], 10, _hoisted_1$u);
|
|
7373
7347
|
}
|
|
7374
7348
|
var SubSideNavBar = /* @__PURE__ */ _export_sfc(_sfc_main$D, [["render", _sfc_render$z]]);
|
|
7375
7349
|
const Utils = {
|
|
@@ -7840,9 +7814,9 @@ var __publicField = (obj, key, value) => {
|
|
|
7840
7814
|
}, vue.toRefs(state)), vue.toRefs(props));
|
|
7841
7815
|
}
|
|
7842
7816
|
});
|
|
7843
|
-
const _hoisted_1$
|
|
7844
|
-
const _hoisted_2$
|
|
7845
|
-
const _hoisted_3$
|
|
7817
|
+
const _hoisted_1$t = { class: "calendar-title" };
|
|
7818
|
+
const _hoisted_2$o = { class: "calendar-curr-month" };
|
|
7819
|
+
const _hoisted_3$k = {
|
|
7846
7820
|
class: "calendar-weeks",
|
|
7847
7821
|
ref: "weeksPanel"
|
|
7848
7822
|
};
|
|
@@ -7882,10 +7856,10 @@ var __publicField = (obj, key, value) => {
|
|
|
7882
7856
|
class: vue.normalizeClass(["nut-calendar-header", { "nut-calendar-header-tile": !_ctx.poppable }])
|
|
7883
7857
|
}, [
|
|
7884
7858
|
_ctx.poppable ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 0 }, [
|
|
7885
|
-
vue.createElementVNode("view", _hoisted_1$
|
|
7886
|
-
vue.createElementVNode("view", _hoisted_2$
|
|
7859
|
+
vue.createElementVNode("view", _hoisted_1$t, vue.toDisplayString(_ctx.title), 1),
|
|
7860
|
+
vue.createElementVNode("view", _hoisted_2$o, vue.toDisplayString(_ctx.yearMonthTitle), 1)
|
|
7887
7861
|
], 64)) : vue.createCommentVNode("", true),
|
|
7888
|
-
vue.createElementVNode("view", _hoisted_3$
|
|
7862
|
+
vue.createElementVNode("view", _hoisted_3$k, [
|
|
7889
7863
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.weeks, (item, index) => {
|
|
7890
7864
|
return vue.openBlock(), vue.createElementBlock("view", {
|
|
7891
7865
|
class: "calendar-week-item",
|
|
@@ -8209,10 +8183,6 @@ var __publicField = (obj, key, value) => {
|
|
|
8209
8183
|
type: Boolean,
|
|
8210
8184
|
default: false
|
|
8211
8185
|
},
|
|
8212
|
-
visibleItemCount: {
|
|
8213
|
-
type: [Number, String],
|
|
8214
|
-
default: 7
|
|
8215
|
-
},
|
|
8216
8186
|
defaultIndex: {
|
|
8217
8187
|
type: [Number, String],
|
|
8218
8188
|
default: 0
|
|
@@ -8222,206 +8192,208 @@ var __publicField = (obj, key, value) => {
|
|
|
8222
8192
|
default: 35
|
|
8223
8193
|
}
|
|
8224
8194
|
};
|
|
8225
|
-
const MOMENTUM_LIMIT_DISTANCE = 15;
|
|
8226
|
-
const MOMENTUM_LIMIT_TIME = 300;
|
|
8227
|
-
const DEFAULT_DURATION = 200;
|
|
8228
8195
|
const { create: create$y } = createComponent("picker-column");
|
|
8229
|
-
function range(num, min, max) {
|
|
8230
|
-
return Math.min(Math.max(num, min), max);
|
|
8231
|
-
}
|
|
8232
|
-
function stopPropagation(event) {
|
|
8233
|
-
event.stopPropagation();
|
|
8234
|
-
}
|
|
8235
|
-
function preventDefault(event, isStopPropagation) {
|
|
8236
|
-
if (typeof event.cancelable !== "boolean" || event.cancelable) {
|
|
8237
|
-
event.preventDefault();
|
|
8238
|
-
}
|
|
8239
|
-
if (isStopPropagation) {
|
|
8240
|
-
stopPropagation(event);
|
|
8241
|
-
}
|
|
8242
|
-
}
|
|
8243
|
-
function getElementTranslateY(element) {
|
|
8244
|
-
const style = window.getComputedStyle(element);
|
|
8245
|
-
const transform = style.transform || style.webkitTransform;
|
|
8246
|
-
const translateY = transform.slice(7, transform.length - 1).split(", ")[5];
|
|
8247
|
-
return Number(translateY);
|
|
8248
|
-
}
|
|
8249
|
-
function isObject$1(val) {
|
|
8250
|
-
return val !== null && typeof val === "object";
|
|
8251
|
-
}
|
|
8252
|
-
function isOptionDisabled(option) {
|
|
8253
|
-
return isObject$1(option) && option.disabled;
|
|
8254
|
-
}
|
|
8255
8196
|
const _sfc_main$y = create$y({
|
|
8256
8197
|
props: __spreadValues({
|
|
8257
|
-
dataType: String
|
|
8198
|
+
dataType: String,
|
|
8199
|
+
itemShow: {
|
|
8200
|
+
type: Boolean,
|
|
8201
|
+
default: false
|
|
8202
|
+
}
|
|
8258
8203
|
}, commonProps),
|
|
8259
8204
|
emits: ["click", "change"],
|
|
8260
8205
|
setup(props, { emit }) {
|
|
8261
8206
|
const wrapper = vue.ref();
|
|
8262
8207
|
const state = vue.reactive({
|
|
8263
|
-
|
|
8264
|
-
|
|
8265
|
-
|
|
8266
|
-
|
|
8267
|
-
|
|
8268
|
-
|
|
8269
|
-
|
|
8270
|
-
|
|
8271
|
-
|
|
8208
|
+
touchParams: {
|
|
8209
|
+
startY: 0,
|
|
8210
|
+
endY: 0,
|
|
8211
|
+
startTime: 0,
|
|
8212
|
+
endTime: 0,
|
|
8213
|
+
lastY: 0
|
|
8214
|
+
},
|
|
8215
|
+
currIndex: 1,
|
|
8216
|
+
transformY: 0,
|
|
8217
|
+
scrollDistance: 0,
|
|
8218
|
+
lineSpacing: 36,
|
|
8219
|
+
rotation: 20,
|
|
8220
|
+
timer: null
|
|
8272
8221
|
});
|
|
8273
|
-
const
|
|
8274
|
-
const
|
|
8275
|
-
|
|
8276
|
-
|
|
8277
|
-
|
|
8278
|
-
|
|
8279
|
-
const
|
|
8280
|
-
return
|
|
8222
|
+
const roller = vue.ref(null);
|
|
8223
|
+
const list = vue.ref(null);
|
|
8224
|
+
const listItem = vue.ref(null);
|
|
8225
|
+
const touchDeg = vue.ref(0);
|
|
8226
|
+
const touchTime = vue.ref(0);
|
|
8227
|
+
const touchTranslateY = vue.ref(0);
|
|
8228
|
+
const touchListStyle = vue.computed(() => {
|
|
8229
|
+
return {
|
|
8230
|
+
transition: `transform ${touchTime.value}ms cubic-bezier(0.19, 1, 0.22, 1)`,
|
|
8231
|
+
transform: `translate3d(0, ${state.scrollDistance}px, 0)`
|
|
8232
|
+
};
|
|
8233
|
+
});
|
|
8234
|
+
const touchRollerStyle = vue.computed(() => {
|
|
8235
|
+
return {
|
|
8236
|
+
transition: `transform ${touchTime.value}ms cubic-bezier(0.19, 1, 0.22, 1)`,
|
|
8237
|
+
transform: `rotate3d(1, 0, 0, ${touchDeg.value})`
|
|
8238
|
+
};
|
|
8239
|
+
});
|
|
8240
|
+
const onTouchStart = (event) => {
|
|
8241
|
+
event.preventDefault();
|
|
8242
|
+
let changedTouches = event.changedTouches[0];
|
|
8243
|
+
state.touchParams.startY = changedTouches.pageY;
|
|
8244
|
+
state.touchParams.startTime = event.timeStamp || Date.now();
|
|
8245
|
+
state.transformY = state.scrollDistance;
|
|
8281
8246
|
};
|
|
8282
|
-
const
|
|
8283
|
-
|
|
8247
|
+
const onTouchMove = (event) => {
|
|
8248
|
+
event.preventDefault();
|
|
8249
|
+
let changedTouches = event.changedTouches[0];
|
|
8250
|
+
state.touchParams.lastY = changedTouches.pageY;
|
|
8251
|
+
state.touchParams.lastTime = event.timeStamp || Date.now();
|
|
8252
|
+
let move = state.touchParams.lastY - state.touchParams.startY;
|
|
8253
|
+
setMove(move);
|
|
8284
8254
|
};
|
|
8285
|
-
const
|
|
8286
|
-
|
|
8287
|
-
|
|
8288
|
-
|
|
8289
|
-
|
|
8290
|
-
|
|
8291
|
-
|
|
8292
|
-
|
|
8293
|
-
|
|
8294
|
-
|
|
8295
|
-
|
|
8296
|
-
if (!isOptionDisabled(state.options[i]))
|
|
8297
|
-
return i;
|
|
8298
|
-
}
|
|
8299
|
-
for (let i = index - 1; i >= 0; i--) {
|
|
8300
|
-
if (!isOptionDisabled(state.options[i]))
|
|
8301
|
-
return i;
|
|
8302
|
-
}
|
|
8303
|
-
};
|
|
8304
|
-
const setIndex = (index, emitChange = false) => {
|
|
8305
|
-
index = adjustIndex(index) || 0;
|
|
8306
|
-
const offset = -index * +props.itemHeight;
|
|
8307
|
-
const trigger = () => {
|
|
8308
|
-
if (index !== state.index) {
|
|
8309
|
-
state.index = index;
|
|
8310
|
-
if (emitChange) {
|
|
8311
|
-
emit("change", index);
|
|
8312
|
-
}
|
|
8313
|
-
}
|
|
8314
|
-
};
|
|
8315
|
-
if (state.moving && offset !== state.offset) {
|
|
8316
|
-
state.transitionEndTrigger = trigger;
|
|
8255
|
+
const onTouchEnd = (event) => {
|
|
8256
|
+
event.preventDefault();
|
|
8257
|
+
let changedTouches = event.changedTouches[0];
|
|
8258
|
+
state.touchParams.lastY = changedTouches.pageY;
|
|
8259
|
+
state.touchParams.lastTime = event.timestamp || Date.now();
|
|
8260
|
+
let move = state.touchParams.lastY - state.touchParams.startY;
|
|
8261
|
+
let moveTime = state.touchParams.lastTime - state.touchParams.startTime;
|
|
8262
|
+
if (moveTime <= 300) {
|
|
8263
|
+
move = move * 2;
|
|
8264
|
+
moveTime = moveTime + 1e3;
|
|
8265
|
+
setMove(move, "end", moveTime);
|
|
8317
8266
|
} else {
|
|
8318
|
-
|
|
8267
|
+
setMove(move, "end");
|
|
8319
8268
|
}
|
|
8320
|
-
state.offset = offset;
|
|
8321
8269
|
};
|
|
8322
|
-
const
|
|
8323
|
-
|
|
8324
|
-
distance = state.offset + speed / 0.03 * (distance < 0 ? -1 : 1);
|
|
8325
|
-
const index = getIndexByOffset(distance);
|
|
8326
|
-
setIndex(index, true);
|
|
8270
|
+
const setRollerStyle = (index) => {
|
|
8271
|
+
return `transform: rotate3d(1, 0, 0, ${-state.rotation * index}deg) translate3d(0px, 0px, 104px)`;
|
|
8327
8272
|
};
|
|
8328
|
-
const
|
|
8329
|
-
if (
|
|
8330
|
-
return;
|
|
8331
|
-
}
|
|
8332
|
-
touch.start(event);
|
|
8333
|
-
if (state.moving) {
|
|
8334
|
-
const translateY = getElementTranslateY(wrapper.value);
|
|
8335
|
-
state.offset = Math.min(0, translateY - baseOffset());
|
|
8336
|
-
state.startOffset = state.offset;
|
|
8273
|
+
const isHidden = (index) => {
|
|
8274
|
+
if (index >= state.currIndex + 8 || index <= state.currIndex - 8) {
|
|
8275
|
+
return true;
|
|
8337
8276
|
} else {
|
|
8338
|
-
|
|
8277
|
+
return false;
|
|
8339
8278
|
}
|
|
8340
|
-
state.duration = 0;
|
|
8341
|
-
state.touchStartTime = Date.now();
|
|
8342
|
-
state.momentumOffset = state.startOffset;
|
|
8343
|
-
state.transitionEndTrigger = null;
|
|
8344
8279
|
};
|
|
8345
|
-
const
|
|
8346
|
-
if (
|
|
8347
|
-
|
|
8348
|
-
}
|
|
8349
|
-
state.moving = true;
|
|
8350
|
-
touch.move(event);
|
|
8351
|
-
if (touch.isVertical()) {
|
|
8352
|
-
state.moving = true;
|
|
8353
|
-
preventDefault(event, true);
|
|
8354
|
-
}
|
|
8355
|
-
const moveOffset = state.startOffset + touch.deltaY.value;
|
|
8356
|
-
if (moveOffset > props.itemHeight) {
|
|
8357
|
-
state.offset = props.itemHeight;
|
|
8280
|
+
const setTransform = (translateY = 0, type, time = 1e3, deg) => {
|
|
8281
|
+
if (type === "end") {
|
|
8282
|
+
touchTime.value = time;
|
|
8358
8283
|
} else {
|
|
8359
|
-
|
|
8360
|
-
}
|
|
8361
|
-
const now = Date.now();
|
|
8362
|
-
if (now - state.touchStartTime > MOMENTUM_LIMIT_TIME) {
|
|
8363
|
-
state.touchStartTime = now;
|
|
8364
|
-
state.momentumOffset = state.offset;
|
|
8284
|
+
touchTime.value = 0;
|
|
8365
8285
|
}
|
|
8286
|
+
touchDeg.value = deg;
|
|
8287
|
+
touchTranslateY.value = translateY;
|
|
8288
|
+
state.scrollDistance = translateY;
|
|
8366
8289
|
};
|
|
8367
|
-
const
|
|
8368
|
-
|
|
8369
|
-
|
|
8370
|
-
|
|
8371
|
-
|
|
8372
|
-
|
|
8373
|
-
|
|
8374
|
-
|
|
8375
|
-
|
|
8376
|
-
|
|
8290
|
+
const setMove = (move, type, time) => {
|
|
8291
|
+
let updateMove = move + state.transformY;
|
|
8292
|
+
if (type === "end") {
|
|
8293
|
+
if (updateMove > 0) {
|
|
8294
|
+
updateMove = 0;
|
|
8295
|
+
}
|
|
8296
|
+
if (updateMove < -(props.listData.values.length - 1) * state.lineSpacing) {
|
|
8297
|
+
updateMove = -(props.listData.values.length - 1) * state.lineSpacing;
|
|
8298
|
+
}
|
|
8299
|
+
let endMove = Math.round(updateMove / state.lineSpacing) * state.lineSpacing;
|
|
8300
|
+
let deg = `${(Math.abs(Math.round(endMove / state.lineSpacing)) + 1) * state.rotation}deg`;
|
|
8301
|
+
setTransform(endMove, type, time, deg);
|
|
8302
|
+
let t = time ? time / 2 : 0;
|
|
8303
|
+
state.timer = setTimeout(() => {
|
|
8304
|
+
setChooseValue();
|
|
8305
|
+
}, t);
|
|
8306
|
+
state.currIndex = Math.abs(Math.round(endMove / state.lineSpacing)) + 1;
|
|
8307
|
+
} else {
|
|
8308
|
+
let deg = "0deg";
|
|
8309
|
+
if (updateMove < 0) {
|
|
8310
|
+
deg = `${(Math.abs(updateMove / state.lineSpacing) + 1) * state.rotation}deg`;
|
|
8311
|
+
} else {
|
|
8312
|
+
deg = `${(-updateMove / state.lineSpacing + 1) * state.rotation}deg`;
|
|
8313
|
+
}
|
|
8314
|
+
setTransform(updateMove, null, void 0, deg);
|
|
8315
|
+
state.currIndex = Math.abs(Math.round(updateMove / state.lineSpacing)) + 1;
|
|
8377
8316
|
}
|
|
8378
8317
|
};
|
|
8379
|
-
|
|
8380
|
-
|
|
8381
|
-
}
|
|
8318
|
+
const setChooseValue = () => {
|
|
8319
|
+
emit("change", state.currIndex - 1);
|
|
8320
|
+
};
|
|
8321
|
+
const modifyStatus = (type) => {
|
|
8322
|
+
let index = props.defaultIndex;
|
|
8323
|
+
state.currIndex = index === -1 ? 1 : index + 1;
|
|
8324
|
+
let move = index === -1 ? 0 : index * state.lineSpacing;
|
|
8325
|
+
type && setChooseValue();
|
|
8326
|
+
setMove(-move);
|
|
8327
|
+
};
|
|
8382
8328
|
vue.watch(() => props.listData, (val) => {
|
|
8383
|
-
|
|
8384
|
-
|
|
8385
|
-
|
|
8329
|
+
state.transformY = 0;
|
|
8330
|
+
modifyStatus(false);
|
|
8331
|
+
}, {
|
|
8332
|
+
deep: true
|
|
8386
8333
|
});
|
|
8387
8334
|
vue.watch(() => props.defaultIndex, (val) => {
|
|
8388
|
-
|
|
8335
|
+
state.transformY = 0;
|
|
8336
|
+
modifyStatus(false);
|
|
8389
8337
|
});
|
|
8390
|
-
|
|
8338
|
+
vue.onMounted(() => {
|
|
8339
|
+
modifyStatus(true);
|
|
8340
|
+
});
|
|
8341
|
+
return __spreadProps(__spreadValues(__spreadValues({}, vue.toRefs(state)), vue.toRefs(props)), {
|
|
8391
8342
|
wrapper,
|
|
8343
|
+
setRollerStyle,
|
|
8344
|
+
isHidden,
|
|
8345
|
+
roller,
|
|
8346
|
+
list,
|
|
8347
|
+
listItem,
|
|
8392
8348
|
onTouchStart,
|
|
8393
8349
|
onTouchMove,
|
|
8394
8350
|
onTouchEnd,
|
|
8395
|
-
|
|
8396
|
-
|
|
8397
|
-
columns: state.options,
|
|
8398
|
-
height: Number(props.visibleItemCount) * +props.itemHeight
|
|
8351
|
+
touchRollerStyle,
|
|
8352
|
+
touchListStyle
|
|
8399
8353
|
});
|
|
8400
8354
|
}
|
|
8401
8355
|
});
|
|
8356
|
+
const _hoisted_1$s = { class: "nut-picker-content" };
|
|
8357
|
+
const _hoisted_2$n = {
|
|
8358
|
+
key: 0,
|
|
8359
|
+
class: "nut-picker-placeholder"
|
|
8360
|
+
};
|
|
8402
8361
|
function _sfc_render$w(_ctx, _cache, $props, $setup, $data, $options) {
|
|
8403
8362
|
return vue.openBlock(), vue.createElementBlock("view", {
|
|
8404
|
-
class: "nut-
|
|
8405
|
-
style: vue.normalizeStyle({ height: _ctx.height + "px" }),
|
|
8363
|
+
class: "nut-picker__list",
|
|
8406
8364
|
onTouchstart: _cache[0] || (_cache[0] = (...args) => _ctx.onTouchStart && _ctx.onTouchStart(...args)),
|
|
8407
8365
|
onTouchmove: _cache[1] || (_cache[1] = (...args) => _ctx.onTouchMove && _ctx.onTouchMove(...args)),
|
|
8408
|
-
onTouchend: _cache[2] || (_cache[2] = (...args) => _ctx.onTouchEnd && _ctx.onTouchEnd(...args))
|
|
8409
|
-
onTouchcancel: _cache[3] || (_cache[3] = (...args) => _ctx.onTouchEnd && _ctx.onTouchEnd(...args)),
|
|
8410
|
-
onTransitionend: _cache[4] || (_cache[4] = (...args) => _ctx.stopMomentum && _ctx.stopMomentum(...args))
|
|
8366
|
+
onTouchend: _cache[2] || (_cache[2] = (...args) => _ctx.onTouchEnd && _ctx.onTouchEnd(...args))
|
|
8411
8367
|
}, [
|
|
8412
8368
|
vue.createElementVNode("view", {
|
|
8413
|
-
class: "nut-
|
|
8414
|
-
ref: "
|
|
8415
|
-
style: vue.normalizeStyle(_ctx.
|
|
8369
|
+
class: "nut-picker-roller",
|
|
8370
|
+
ref: "roller",
|
|
8371
|
+
style: vue.normalizeStyle(_ctx.touchRollerStyle)
|
|
8416
8372
|
}, [
|
|
8417
|
-
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.
|
|
8373
|
+
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.listData.values, (item, index) => {
|
|
8418
8374
|
return vue.openBlock(), vue.createElementBlock("view", {
|
|
8419
|
-
class: "nut-
|
|
8420
|
-
|
|
8421
|
-
|
|
8375
|
+
class: vue.normalizeClass(["nut-picker-roller-item", { "nut-picker-roller-item-hidden": _ctx.isHidden(index + 1) }]),
|
|
8376
|
+
style: vue.normalizeStyle(_ctx.setRollerStyle(index + 1)),
|
|
8377
|
+
key: item.label ? item.label : index
|
|
8378
|
+
}, vue.toDisplayString(_ctx.dataType === "cascade" ? item.text : item), 7);
|
|
8422
8379
|
}), 128))
|
|
8423
|
-
], 4)
|
|
8424
|
-
|
|
8380
|
+
], 4),
|
|
8381
|
+
vue.createElementVNode("view", _hoisted_1$s, [
|
|
8382
|
+
vue.createElementVNode("view", {
|
|
8383
|
+
class: "nut-picker-list-panel",
|
|
8384
|
+
ref: "list",
|
|
8385
|
+
style: vue.normalizeStyle(_ctx.touchListStyle)
|
|
8386
|
+
}, [
|
|
8387
|
+
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.listData.values, (item, index) => {
|
|
8388
|
+
return vue.openBlock(), vue.createElementBlock("view", {
|
|
8389
|
+
class: "nut-picker-item nut-picker-item-ref",
|
|
8390
|
+
key: item.label ? item.label : index
|
|
8391
|
+
}, vue.toDisplayString(_ctx.dataType === "cascade" ? item.text : item), 1);
|
|
8392
|
+
}), 128)),
|
|
8393
|
+
_ctx.listData && _ctx.listData.length === 1 ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_2$n)) : vue.createCommentVNode("", true)
|
|
8394
|
+
], 4)
|
|
8395
|
+
])
|
|
8396
|
+
], 32);
|
|
8425
8397
|
}
|
|
8426
8398
|
var column = /* @__PURE__ */ _export_sfc(_sfc_main$y, [["render", _sfc_render$w]]);
|
|
8427
8399
|
const { create: create$x, componentName: componentName$p } = createComponent("picker");
|
|
@@ -8461,12 +8433,6 @@ var __publicField = (obj, key, value) => {
|
|
|
8461
8433
|
[prefixCls]: true
|
|
8462
8434
|
};
|
|
8463
8435
|
});
|
|
8464
|
-
const top = vue.computed(() => {
|
|
8465
|
-
return Number(+props.visibleItemCount - 1) / 2 * +props.itemHeight;
|
|
8466
|
-
});
|
|
8467
|
-
const height = vue.computed(() => {
|
|
8468
|
-
return Number(props.visibleItemCount) * +props.itemHeight;
|
|
8469
|
-
});
|
|
8470
8436
|
const dataType = vue.computed(() => {
|
|
8471
8437
|
const firstColumn = state.formattedColumns[0];
|
|
8472
8438
|
if (typeof firstColumn === "object") {
|
|
@@ -8481,9 +8447,7 @@ var __publicField = (obj, key, value) => {
|
|
|
8481
8447
|
});
|
|
8482
8448
|
const columnList = vue.computed(() => {
|
|
8483
8449
|
if (dataType.value === "text") {
|
|
8484
|
-
return [
|
|
8485
|
-
{ values: state.formattedColumns, defaultIndex: state.defaultIndex }
|
|
8486
|
-
];
|
|
8450
|
+
return [{ values: state.formattedColumns, defaultIndex: state.defaultIndex }];
|
|
8487
8451
|
} else if (dataType.value === "multipleColumns") {
|
|
8488
8452
|
return state.formattedColumns;
|
|
8489
8453
|
} else if (dataType.value === "cascade") {
|
|
@@ -8548,7 +8512,7 @@ var __publicField = (obj, key, value) => {
|
|
|
8548
8512
|
} else if (dataType.value === "multipleColumns") {
|
|
8549
8513
|
defaultIndexList[columnIndex] = dataIndex;
|
|
8550
8514
|
const val = defaultIndexList.map((res, i) => vue.toRaw(state.formattedColumns)[i].values[res]);
|
|
8551
|
-
emit("change", val);
|
|
8515
|
+
emit("change", val, columnIndex, dataIndex);
|
|
8552
8516
|
}
|
|
8553
8517
|
};
|
|
8554
8518
|
const confirm = () => {
|
|
@@ -8578,8 +8542,6 @@ var __publicField = (obj, key, value) => {
|
|
|
8578
8542
|
column,
|
|
8579
8543
|
dataType,
|
|
8580
8544
|
columnList,
|
|
8581
|
-
top,
|
|
8582
|
-
height,
|
|
8583
8545
|
close,
|
|
8584
8546
|
changeHandler,
|
|
8585
8547
|
confirm
|
|
@@ -8588,6 +8550,7 @@ var __publicField = (obj, key, value) => {
|
|
|
8588
8550
|
});
|
|
8589
8551
|
const _hoisted_1$r = { class: "nut-picker__bar" };
|
|
8590
8552
|
const _hoisted_2$m = { class: "nut-picker__column" };
|
|
8553
|
+
const _hoisted_3$j = /* @__PURE__ */ vue.createElementVNode("view", { class: "nut-picker__hairline" }, null, -1);
|
|
8591
8554
|
function _sfc_render$v(_ctx, _cache, $props, $setup, $data, $options) {
|
|
8592
8555
|
const _component_nut_picker_column = vue.resolveComponent("nut-picker-column");
|
|
8593
8556
|
const _component_nut_popup = vue.resolveComponent("nut-popup");
|
|
@@ -8596,13 +8559,13 @@ var __publicField = (obj, key, value) => {
|
|
|
8596
8559
|
}, [
|
|
8597
8560
|
vue.createVNode(_component_nut_popup, {
|
|
8598
8561
|
position: "bottom",
|
|
8599
|
-
style: vue.normalizeStyle({ height: _ctx.height + 56 + "px" }),
|
|
8600
8562
|
visible: _ctx.show,
|
|
8601
8563
|
"onUpdate:visible": _cache[2] || (_cache[2] = ($event) => _ctx.show = $event),
|
|
8602
8564
|
teleport: _ctx.teleport,
|
|
8603
8565
|
"lock-scroll": _ctx.lockScroll,
|
|
8604
8566
|
"close-on-click-overlay": _ctx.closeOnClickOverlay,
|
|
8605
|
-
onClose: _ctx.close
|
|
8567
|
+
onClose: _ctx.close,
|
|
8568
|
+
round: true
|
|
8606
8569
|
}, {
|
|
8607
8570
|
default: vue.withCtx(() => [
|
|
8608
8571
|
vue.createElementVNode("view", _hoisted_1$r, [
|
|
@@ -8617,36 +8580,29 @@ var __publicField = (obj, key, value) => {
|
|
|
8617
8580
|
}, vue.toDisplayString(_ctx.okText), 1)
|
|
8618
8581
|
]),
|
|
8619
8582
|
vue.createElementVNode("view", _hoisted_2$m, [
|
|
8620
|
-
|
|
8621
|
-
class: "nut-picker__mask",
|
|
8622
|
-
style: vue.normalizeStyle({ backgroundSize: `100% ${_ctx.top}px` })
|
|
8623
|
-
}, null, 4),
|
|
8624
|
-
vue.createElementVNode("view", {
|
|
8625
|
-
class: "nut-picker__hairline",
|
|
8626
|
-
style: vue.normalizeStyle({ top: ` ${_ctx.top}px` })
|
|
8627
|
-
}, null, 4),
|
|
8583
|
+
_hoisted_3$j,
|
|
8628
8584
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.columnList, (item, columnIndex) => {
|
|
8629
8585
|
return vue.openBlock(), vue.createElementBlock("view", {
|
|
8630
8586
|
class: "nut-picker__columnitem",
|
|
8631
8587
|
key: columnIndex
|
|
8632
8588
|
}, [
|
|
8633
8589
|
vue.createVNode(_component_nut_picker_column, {
|
|
8634
|
-
|
|
8590
|
+
itemShow: _ctx.show,
|
|
8591
|
+
"list-data": item,
|
|
8635
8592
|
readonly: _ctx.readonly,
|
|
8636
8593
|
"default-index": item.defaultIndex,
|
|
8637
8594
|
"visible-item-count": _ctx.visibleItemCount,
|
|
8638
|
-
"item-height": _ctx.itemHeight,
|
|
8639
8595
|
"data-type": _ctx.dataType,
|
|
8640
8596
|
onChange: (dataIndex) => {
|
|
8641
8597
|
_ctx.changeHandler(columnIndex, dataIndex);
|
|
8642
8598
|
}
|
|
8643
|
-
}, null, 8, ["list-data", "readonly", "default-index", "visible-item-count", "
|
|
8599
|
+
}, null, 8, ["itemShow", "list-data", "readonly", "default-index", "visible-item-count", "data-type", "onChange"])
|
|
8644
8600
|
]);
|
|
8645
8601
|
}), 128))
|
|
8646
8602
|
])
|
|
8647
8603
|
]),
|
|
8648
8604
|
_: 1
|
|
8649
|
-
}, 8, ["
|
|
8605
|
+
}, 8, ["visible", "teleport", "lock-scroll", "close-on-click-overlay", "onClose"])
|
|
8650
8606
|
], 2);
|
|
8651
8607
|
}
|
|
8652
8608
|
var Picker = /* @__PURE__ */ _export_sfc(_sfc_main$x, [["render", _sfc_render$v]]);
|
|
@@ -9117,6 +9073,10 @@ var __publicField = (obj, key, value) => {
|
|
|
9117
9073
|
clearable: {
|
|
9118
9074
|
type: Boolean,
|
|
9119
9075
|
default: true
|
|
9076
|
+
},
|
|
9077
|
+
hasBorder: {
|
|
9078
|
+
type: Boolean,
|
|
9079
|
+
default: true
|
|
9120
9080
|
}
|
|
9121
9081
|
},
|
|
9122
9082
|
emits: ["change", "update:modelValue", "blur", "focus", "clear"],
|
|
@@ -9127,7 +9087,8 @@ var __publicField = (obj, key, value) => {
|
|
|
9127
9087
|
return {
|
|
9128
9088
|
[prefixCls]: true,
|
|
9129
9089
|
[`${prefixCls}-disabled`]: props.disabled,
|
|
9130
|
-
[`${prefixCls}-require`]: props.requireShow
|
|
9090
|
+
[`${prefixCls}-require`]: props.requireShow,
|
|
9091
|
+
[`${prefixCls}-border`]: props.hasBorder
|
|
9131
9092
|
};
|
|
9132
9093
|
});
|
|
9133
9094
|
const styles = vue.computed(() => {
|
|
@@ -9159,7 +9120,7 @@ var __publicField = (obj, key, value) => {
|
|
|
9159
9120
|
const valueBlur = (event) => {
|
|
9160
9121
|
setTimeout(() => {
|
|
9161
9122
|
active.value = false;
|
|
9162
|
-
},
|
|
9123
|
+
}, 200);
|
|
9163
9124
|
const input = event.target;
|
|
9164
9125
|
let value = input.value;
|
|
9165
9126
|
if (props.maxLength && value.length > Number(props.maxLength)) {
|
|
@@ -9183,20 +9144,20 @@ var __publicField = (obj, key, value) => {
|
|
|
9183
9144
|
};
|
|
9184
9145
|
}
|
|
9185
9146
|
});
|
|
9186
|
-
const _hoisted_1$p = {
|
|
9187
|
-
const _hoisted_2$l = {
|
|
9147
|
+
const _hoisted_1$p = {
|
|
9188
9148
|
key: 0,
|
|
9189
|
-
class: "label
|
|
9149
|
+
class: "nut-input-label"
|
|
9190
9150
|
};
|
|
9151
|
+
const _hoisted_2$l = { class: "label-string" };
|
|
9191
9152
|
const _hoisted_3$i = ["type", "maxlength", "placeholder", "disabled", "readonly", "value"];
|
|
9192
9153
|
function _sfc_render$s(_ctx, _cache, $props, $setup, $data, $options) {
|
|
9193
9154
|
const _component_nut_icon = vue.resolveComponent("nut-icon");
|
|
9194
9155
|
return vue.openBlock(), vue.createElementBlock("view", {
|
|
9195
9156
|
class: vue.normalizeClass(_ctx.classes)
|
|
9196
9157
|
}, [
|
|
9197
|
-
vue.
|
|
9198
|
-
|
|
9199
|
-
]),
|
|
9158
|
+
_ctx.label ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_1$p, [
|
|
9159
|
+
vue.createElementVNode("view", _hoisted_2$l, vue.toDisplayString(_ctx.label), 1)
|
|
9160
|
+
])) : vue.createCommentVNode("", true),
|
|
9200
9161
|
vue.createElementVNode("input", {
|
|
9201
9162
|
class: "input-text",
|
|
9202
9163
|
style: vue.normalizeStyle(_ctx.styles),
|
|
@@ -9211,7 +9172,7 @@ var __publicField = (obj, key, value) => {
|
|
|
9211
9172
|
onBlur: _cache[2] || (_cache[2] = (...args) => _ctx.valueBlur && _ctx.valueBlur(...args))
|
|
9212
9173
|
}, null, 44, _hoisted_3$i),
|
|
9213
9174
|
_ctx.clearable && !_ctx.readonly ? vue.withDirectives((vue.openBlock(), vue.createElementBlock("view", {
|
|
9214
|
-
key:
|
|
9175
|
+
key: 1,
|
|
9215
9176
|
onClick: _cache[3] || (_cache[3] = (...args) => _ctx.handleClear && _ctx.handleClear(...args)),
|
|
9216
9177
|
class: "nut-textinput-clear"
|
|
9217
9178
|
}, [
|
|
@@ -9510,7 +9471,7 @@ var __publicField = (obj, key, value) => {
|
|
|
9510
9471
|
setup(props, { emit }) {
|
|
9511
9472
|
const realInput = vue.ref(props.modelValue);
|
|
9512
9473
|
const realpwd = vue.ref();
|
|
9513
|
-
const comLen = vue.computed(() =>
|
|
9474
|
+
const comLen = vue.computed(() => range(Number(props.length)));
|
|
9514
9475
|
const show = vue.ref(props.visible);
|
|
9515
9476
|
function sureClick() {
|
|
9516
9477
|
emit("ok", realInput.value);
|
|
@@ -9546,7 +9507,7 @@ var __publicField = (obj, key, value) => {
|
|
|
9546
9507
|
emit("update:visible", false);
|
|
9547
9508
|
emit("close");
|
|
9548
9509
|
}
|
|
9549
|
-
function
|
|
9510
|
+
function range(val) {
|
|
9550
9511
|
return Math.min(Math.max(4, val), 6);
|
|
9551
9512
|
}
|
|
9552
9513
|
function onTips() {
|
|
@@ -9574,7 +9535,7 @@ var __publicField = (obj, key, value) => {
|
|
|
9574
9535
|
realInput,
|
|
9575
9536
|
realpwd,
|
|
9576
9537
|
focus,
|
|
9577
|
-
range
|
|
9538
|
+
range,
|
|
9578
9539
|
changeValue,
|
|
9579
9540
|
close,
|
|
9580
9541
|
onTips,
|
|
@@ -10062,8 +10023,9 @@ var __publicField = (obj, key, value) => {
|
|
|
10062
10023
|
if (oversizes.length) {
|
|
10063
10024
|
emit("oversize", oversizes);
|
|
10064
10025
|
}
|
|
10065
|
-
|
|
10066
|
-
|
|
10026
|
+
let currentFileLength = files.length + fileList.length;
|
|
10027
|
+
if (currentFileLength > maximum) {
|
|
10028
|
+
files.splice(files.length - (currentFileLength - maximum));
|
|
10067
10029
|
}
|
|
10068
10030
|
return files;
|
|
10069
10031
|
};
|
|
@@ -10073,7 +10035,8 @@ var __publicField = (obj, key, value) => {
|
|
|
10073
10035
|
fileList.splice(index, 1);
|
|
10074
10036
|
emit("delete", {
|
|
10075
10037
|
file,
|
|
10076
|
-
fileList
|
|
10038
|
+
fileList,
|
|
10039
|
+
index
|
|
10077
10040
|
});
|
|
10078
10041
|
} else {
|
|
10079
10042
|
console.log("\u7528\u6237\u963B\u6B62\u4E86\u5220\u9664\uFF01");
|
|
@@ -13802,7 +13765,6 @@ var __publicField = (obj, key, value) => {
|
|
|
13802
13765
|
}
|
|
13803
13766
|
});
|
|
13804
13767
|
vue.onMounted(() => {
|
|
13805
|
-
console.log("\u66F4\u65B0\u53C2\u6570");
|
|
13806
13768
|
});
|
|
13807
13769
|
const getSlots = (name) => slots[name];
|
|
13808
13770
|
const selectSku = (skus) => {
|
|
@@ -14213,7 +14175,7 @@ var __publicField = (obj, key, value) => {
|
|
|
14213
14175
|
}
|
|
14214
14176
|
});
|
|
14215
14177
|
}
|
|
14216
|
-
const version = "3.1.
|
|
14178
|
+
const version = "3.1.16-beta.1";
|
|
14217
14179
|
var nutui_vue_build = { install, version };
|
|
14218
14180
|
exports2.ActionSheet = ActionSheet;
|
|
14219
14181
|
exports2.Address = Address;
|