@nutui/nutui 3.1.23-beta.6 → 3.2.2-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/CHANGELOG.md +63 -1
- package/dist/nutui.es.js +1475 -1070
- package/dist/nutui.umd.js +1468 -1063
- package/dist/packages/_es/ActionSheet.js +4 -22
- package/dist/packages/_es/Address.js +79 -71
- package/dist/packages/_es/AddressList.js +7 -5
- package/dist/packages/_es/Animate.js +2 -21
- package/dist/packages/_es/Audio.js +39 -68
- package/dist/packages/_es/AudioOperate.js +3 -24
- package/dist/packages/_es/Avatar.js +8 -24
- package/dist/packages/_es/AvatarGroup.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 +7 -4
- package/dist/packages/_es/Button.js +6 -5
- package/dist/packages/_es/Calendar.js +10 -4
- package/dist/packages/_es/CalendarItem.js +1 -1
- package/dist/packages/_es/Card.js +1 -1
- package/dist/packages/_es/Cascader.js +51 -65
- package/dist/packages/_es/Category.js +2 -2
- package/dist/packages/_es/CategoryPane.js +10 -10
- package/dist/packages/_es/Cell.js +8 -9
- package/dist/packages/_es/CellGroup.js +1 -1
- package/dist/packages/_es/Checkbox.js +31 -17
- package/dist/packages/_es/CheckboxGroup.js +14 -7
- package/dist/packages/_es/CircleProgress.js +1 -1
- package/dist/packages/_es/Col.js +5 -11
- package/dist/packages/_es/Collapse.js +22 -19
- package/dist/packages/_es/CollapseItem.js +30 -42
- package/dist/packages/_es/Comment.js +13 -9
- package/dist/packages/_es/ConfigProvider.js +8 -4
- package/dist/packages/_es/CountDown.js +40 -46
- package/dist/packages/_es/CountUp.js +39 -40
- package/dist/packages/_es/DatePicker.js +25 -33
- package/dist/packages/_es/Dialog.js +12 -27
- package/dist/packages/_es/Divider.js +7 -24
- package/dist/packages/_es/Drag.js +1 -1
- package/dist/packages/_es/Ecard.js +7 -4
- package/dist/packages/_es/Elevator.js +25 -38
- package/dist/packages/_es/Ellipsis.js +14 -28
- package/dist/packages/_es/Empty.js +1 -1
- package/dist/packages/_es/FixedNav.js +18 -14
- package/dist/packages/_es/Form.js +8 -4
- package/dist/packages/_es/FormItem.js +1 -1
- package/dist/packages/_es/Grid.js +1 -1
- package/dist/packages/_es/GridItem.js +6 -5
- package/dist/packages/_es/Icon.js +15 -11
- package/dist/packages/_es/Image.js +8 -24
- package/dist/packages/_es/ImagePreview.js +24 -39
- package/dist/packages/_es/Indicator.js +1 -1
- package/dist/packages/_es/InfiniteLoading.js +8 -33
- package/dist/packages/_es/Input.js +75 -69
- package/dist/packages/_es/InputNumber.js +20 -14
- package/dist/packages/_es/Layout.js +1 -1
- package/dist/packages/_es/List.js +10 -25
- package/dist/packages/_es/Menu.js +17 -10
- package/dist/packages/_es/MenuItem.js +5 -26
- package/dist/packages/_es/Navbar.js +10 -8
- package/dist/packages/_es/NoticeBar.js +20 -31
- package/dist/packages/_es/Notify.js +16 -32
- package/dist/packages/_es/NumberKeyboard.js +21 -16
- package/dist/packages/_es/OldPicker.js +47 -46
- package/dist/packages/_es/OverLay.js +11 -23
- package/dist/packages/_es/Pagination.js +1 -1
- package/dist/packages/_es/Picker.js +81 -59
- package/dist/packages/_es/Popover.js +58 -58
- package/dist/packages/_es/Popup.js +38 -43
- package/dist/packages/_es/Price.js +1 -1
- package/dist/packages/_es/Progress.js +4 -5
- package/dist/packages/_es/PullRefresh.js +5 -20
- package/dist/packages/_es/Radio.js +25 -13
- package/dist/packages/_es/RadioGroup.js +12 -5
- package/dist/packages/_es/Range.js +20 -33
- package/dist/packages/_es/Rate.js +5 -24
- package/dist/packages/_es/Row.js +5 -11
- package/dist/packages/_es/SearchBar.js +5 -24
- package/dist/packages/_es/ShortPassword.js +18 -11
- package/dist/packages/_es/SideNavBar.js +4 -22
- package/dist/packages/_es/SideNavBarItem.js +1 -1
- package/dist/packages/_es/Signature.js +15 -23
- package/dist/packages/_es/Skeleton.js +1 -1
- package/dist/packages/_es/Sku.js +24 -32
- package/dist/packages/_es/Step.js +9 -26
- package/dist/packages/_es/Steps.js +8 -4
- package/dist/packages/_es/Sticky.js +23 -12
- package/dist/packages/_es/SubSideNavBar.js +4 -22
- package/dist/packages/_es/Swipe.js +5 -24
- package/dist/packages/_es/Swiper.js +23 -14
- package/dist/packages/_es/SwiperItem.js +1 -1
- package/dist/packages/_es/Switch.js +15 -11
- package/dist/packages/_es/TabPane.js +1 -1
- package/dist/packages/_es/Tabbar.js +7 -4
- package/dist/packages/_es/TabbarItem.js +13 -14
- package/dist/packages/_es/Table.js +10 -25
- package/dist/packages/_es/Tabs.js +20 -29
- package/dist/packages/_es/Tag.js +11 -15
- package/dist/packages/_es/TextArea.js +8 -5
- package/dist/packages/_es/TimeDetail.js +5 -24
- package/dist/packages/_es/TimePannel.js +4 -22
- package/dist/packages/_es/TimeSelect.js +1 -1
- package/dist/packages/_es/Toast.js +22 -39
- package/dist/packages/_es/Uploader.js +54 -54
- package/dist/packages/_es/Video.js +22 -33
- package/dist/packages/_es/WaterMark.js +31 -44
- package/dist/packages/_es/common.js +21 -11
- package/dist/packages/_es/component.js +5 -5
- 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/index4.js +1 -1
- package/dist/packages/_es/index5.js +26 -35
- 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/style.css +1 -111
- package/dist/packages/actionsheet/index.scss +17 -0
- package/dist/packages/address/index.scss +60 -0
- package/dist/packages/addresslist/index.scss +57 -17
- package/dist/packages/audio/index.scss +8 -0
- package/dist/packages/barrage/index.scss +7 -0
- package/dist/packages/button/index.scss +1 -0
- package/dist/packages/card/index.scss +8 -1
- package/dist/packages/category/index.scss +25 -4
- package/dist/packages/categorypane/index.scss +18 -65
- package/dist/packages/circleprogress/index.scss +6 -0
- package/dist/packages/collapseitem/index.scss +21 -0
- package/dist/packages/comment/index.scss +37 -0
- package/dist/packages/countup/index.scss +24 -3
- package/dist/packages/ecard/index.scss +31 -1
- package/dist/packages/elevator/index.scss +16 -0
- package/dist/packages/empty/index.scss +6 -0
- package/dist/packages/fixednav/index.scss +7 -0
- package/dist/packages/image/index.scss +12 -0
- package/dist/packages/infiniteloading/index.scss +18 -0
- package/dist/packages/locale/lang/baseLang.js +1 -1
- package/dist/packages/locale/lang/en-US.js +1 -1
- package/dist/packages/locale/lang/id-ID.js +1 -1
- package/dist/packages/locale/lang/index.js +1 -1
- package/dist/packages/locale/lang/zh-CN.js +1 -1
- package/dist/packages/locale/lang/zh-TW.js +1 -1
- package/dist/packages/menu/index.scss +14 -2
- package/dist/packages/menuitem/index.scss +8 -0
- package/dist/packages/noticebar/index.scss +13 -0
- package/dist/packages/numberkeyboard/index.scss +10 -0
- package/dist/packages/picker/index.scss +33 -0
- package/dist/packages/popup/index.scss +10 -0
- package/dist/packages/radio/index.scss +1 -0
- package/dist/packages/shortpassword/index.scss +20 -0
- package/dist/packages/sidenavbaritem/index.scss +9 -0
- package/dist/packages/sku/index.scss +40 -0
- package/dist/packages/step/index.scss +52 -0
- package/dist/packages/subsidenavbar/index.scss +12 -0
- package/dist/packages/swiper/index.scss +2 -0
- package/dist/packages/swiperitem/index.scss +3 -0
- package/dist/packages/tag/index.scss +20 -0
- package/dist/packages/watermark/index.scss +1 -1
- package/dist/smartips/attributes.json +38 -2
- package/dist/smartips/tags.json +14 -4
- package/dist/smartips/web-types.json +86 -4
- package/dist/style.css +1 -1
- package/dist/styles/themes/default.scss +51 -51
- package/dist/styles/themes/jdb.scss +51 -51
- package/dist/styles/themes/jdt.scss +51 -51
- package/dist/styles/variables-jdb.scss +28 -7
- package/dist/styles/variables-jdt.scss +28 -7
- package/dist/styles/variables.scss +27 -7
- package/dist/types/__VUE/actionsheet/index.vue.d.ts +1 -1
- package/dist/types/__VUE/address/index.vue.d.ts +1 -1
- package/dist/types/__VUE/addresslist/index.vue.d.ts +1 -1
- package/dist/types/__VUE/audio/index.vue.d.ts +4 -1
- package/dist/types/__VUE/audiooperate/index.vue.d.ts +15 -72
- package/dist/types/__VUE/avatargroup/index.vue.d.ts +1 -1
- package/dist/types/__VUE/backtop/index.vue.d.ts +1 -1
- package/dist/types/__VUE/calendar/index.vue.d.ts +7 -0
- package/dist/types/__VUE/calendaritem/index.vue.d.ts +2 -2
- package/dist/types/__VUE/categorypane/index.vue.d.ts +1 -1
- package/dist/types/__VUE/cell/index.vue.d.ts +9 -2
- package/dist/types/__VUE/cellgroup/index.vue.d.ts +1 -1
- package/dist/types/__VUE/checkboxgroup/index.vue.d.ts +1 -1
- package/dist/types/__VUE/circleprogress/index.vue.d.ts +1 -1
- package/dist/types/__VUE/col/index.vue.d.ts +2 -5
- package/dist/types/__VUE/collapse/index.vue.d.ts +2 -2
- package/dist/types/__VUE/collapseitem/index.vue.d.ts +1 -1
- package/dist/types/__VUE/configprovider/index.vue.d.ts +1 -1
- package/dist/types/__VUE/countdown/index.vue.d.ts +1 -1
- package/dist/types/__VUE/countup/index.vue.d.ts +1 -1
- package/dist/types/__VUE/datepicker/index.vue.d.ts +1 -1
- package/dist/types/__VUE/fixednav/common.d.ts +56 -0
- package/dist/types/__VUE/fixednav/index.vue.d.ts +17 -9
- package/dist/types/__VUE/formitem/index.vue.d.ts +1 -1
- package/dist/types/__VUE/griditem/index.vue.d.ts +1 -1
- package/dist/types/__VUE/imagepreview/imagePreviewItem.vue.d.ts +1 -1
- package/dist/types/__VUE/imagepreview/index.d.ts +7 -6
- package/dist/types/__VUE/imagepreview/index.vue.d.ts +4 -4
- package/dist/types/__VUE/imagepreview/types.d.ts +7 -0
- package/dist/types/__VUE/infiniteloading/index.vue.d.ts +1 -1
- package/dist/types/__VUE/input/index.vue.d.ts +4 -9
- package/dist/types/__VUE/inputnumber/index.vue.d.ts +15 -1
- package/dist/types/__VUE/menu/index.vue.d.ts +3 -0
- package/dist/types/__VUE/menuitem/index.vue.d.ts +1 -4
- package/dist/types/__VUE/noticebar/index.vue.d.ts +4 -4
- package/dist/types/__VUE/numberkeyboard/index.vue.d.ts +1 -1
- package/dist/types/__VUE/oldpicker/Column.vue.d.ts +1 -1
- package/dist/types/__VUE/oldpicker/index.vue.d.ts +1 -1
- package/dist/types/__VUE/overlay/index.vue.d.ts +1 -1
- package/dist/types/__VUE/picker/Column.vue.d.ts +8 -0
- package/dist/types/__VUE/picker/index.vue.d.ts +28 -13
- package/dist/types/__VUE/popover/index.vue.d.ts +2 -2
- package/dist/types/__VUE/pullrefresh/index.vue.d.ts +1 -1
- package/dist/types/__VUE/radiogroup/index.vue.d.ts +1 -1
- package/dist/types/__VUE/row/index.vue.d.ts +2 -5
- package/dist/types/__VUE/searchbar/index.vue.d.ts +1 -1
- package/dist/types/__VUE/shortpassword/index.vue.d.ts +1 -1
- package/dist/types/__VUE/sidenavbar/index.vue.d.ts +1 -1
- package/dist/types/__VUE/sidenavbaritem/index.vue.d.ts +1 -1
- package/dist/types/__VUE/signature/index.vue.d.ts +5 -2
- package/dist/types/__VUE/subsidenavbar/index.vue.d.ts +1 -1
- package/dist/types/__VUE/swiperitem/index.vue.d.ts +1 -1
- package/dist/types/__VUE/switch/index.vue.d.ts +2 -2
- package/dist/types/__VUE/tabbaritem/index.vue.d.ts +1 -1
- package/dist/types/__VUE/tabpane/index.vue.d.ts +1 -1
- package/dist/types/__VUE/textarea/index.vue.d.ts +1 -1
- package/dist/types/__VUE/timedetail/index.vue.d.ts +1 -1
- package/dist/types/__VUE/timepannel/index.vue.d.ts +1 -1
- package/dist/types/__VUE/timeselect/index.vue.d.ts +1 -1
- package/dist/types/__VUE/uploader/index.vue.d.ts +7 -0
- package/dist/types/__VUE/uploader/uploader.d.ts +1 -0
- package/dist/types/__VUE/watermark/index.vue.d.ts +1 -1
- package/dist/types/index.d.ts +1 -1
- package/package.json +2 -1
- package/dist/packages/index.d.ts +0 -3
package/dist/nutui.umd.js
CHANGED
|
@@ -1,37 +1,5 @@
|
|
|
1
|
-
var __defProp = Object.defineProperty;
|
|
2
|
-
var __defProps = Object.defineProperties;
|
|
3
|
-
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
4
|
-
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
7
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
8
|
-
var __spreadValues = (a, b) => {
|
|
9
|
-
for (var prop in b || (b = {}))
|
|
10
|
-
if (__hasOwnProp.call(b, prop))
|
|
11
|
-
__defNormalProp(a, prop, b[prop]);
|
|
12
|
-
if (__getOwnPropSymbols)
|
|
13
|
-
for (var prop of __getOwnPropSymbols(b)) {
|
|
14
|
-
if (__propIsEnum.call(b, prop))
|
|
15
|
-
__defNormalProp(a, prop, b[prop]);
|
|
16
|
-
}
|
|
17
|
-
return a;
|
|
18
|
-
};
|
|
19
|
-
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
|
-
var __restKey = (key) => typeof key === "symbol" ? key : key + "";
|
|
21
|
-
var __objRest = (source, exclude) => {
|
|
22
|
-
var target = {};
|
|
23
|
-
for (var prop in source)
|
|
24
|
-
if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
25
|
-
target[prop] = source[prop];
|
|
26
|
-
if (source != null && __getOwnPropSymbols)
|
|
27
|
-
for (var prop of __getOwnPropSymbols(source)) {
|
|
28
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
|
|
29
|
-
target[prop] = source[prop];
|
|
30
|
-
}
|
|
31
|
-
return target;
|
|
32
|
-
};
|
|
33
1
|
/*!
|
|
34
|
-
* @nutui/nutui v3.
|
|
2
|
+
* @nutui/nutui v3.2.2-beta.1 Mon Aug 22 2022 15:19:41 GMT+0800 (中国标准时间)
|
|
35
3
|
* (c) 2022 @jdf2e.
|
|
36
4
|
* Released under the MIT License.
|
|
37
5
|
*/
|
|
@@ -252,11 +220,11 @@ var __objRest = (source, exclude) => {
|
|
|
252
220
|
}
|
|
253
221
|
}
|
|
254
222
|
const TypeOfFun = (value) => {
|
|
255
|
-
if (
|
|
223
|
+
if (null === value) {
|
|
256
224
|
return "null";
|
|
257
225
|
}
|
|
258
226
|
const type = typeof value;
|
|
259
|
-
if (
|
|
227
|
+
if ("undefined" === type || "string" === type) {
|
|
260
228
|
return type;
|
|
261
229
|
}
|
|
262
230
|
const typeString = toString.call(value);
|
|
@@ -274,8 +242,8 @@ var __objRest = (source, exclude) => {
|
|
|
274
242
|
case "[object RegExp]":
|
|
275
243
|
return "regexp";
|
|
276
244
|
case "[object Object]":
|
|
277
|
-
if (value.nodeType
|
|
278
|
-
if (value.nodeType
|
|
245
|
+
if (void 0 !== value.nodeType) {
|
|
246
|
+
if (3 == value.nodeType) {
|
|
279
247
|
return /\S/.test(value.nodeValue) ? "textnode" : "whitespace";
|
|
280
248
|
} else {
|
|
281
249
|
return "element";
|
|
@@ -406,17 +374,21 @@ var __objRest = (source, exclude) => {
|
|
|
406
374
|
return () => {
|
|
407
375
|
var _a;
|
|
408
376
|
const _isImage = isImage();
|
|
409
|
-
return vue.h(
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
377
|
+
return vue.h(
|
|
378
|
+
_isImage ? "img" : props.tag,
|
|
379
|
+
{
|
|
380
|
+
class: _isImage ? `${componentName$1t}__img` : `${props.fontClassName} ${componentName$1t} ${props.classPrefix}-${props.name}`,
|
|
381
|
+
style: {
|
|
382
|
+
color: props.color,
|
|
383
|
+
fontSize: pxCheck(props.size),
|
|
384
|
+
width: pxCheck(props.size),
|
|
385
|
+
height: pxCheck(props.size)
|
|
386
|
+
},
|
|
387
|
+
onClick: handleClick,
|
|
388
|
+
src: _isImage ? props.name : ""
|
|
416
389
|
},
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
}, (_a = slots.default) == null ? void 0 : _a.call(slots));
|
|
390
|
+
(_a = slots.default) == null ? void 0 : _a.call(slots)
|
|
391
|
+
);
|
|
420
392
|
};
|
|
421
393
|
}
|
|
422
394
|
});
|
|
@@ -521,7 +493,7 @@ var __objRest = (source, exclude) => {
|
|
|
521
493
|
}
|
|
522
494
|
});
|
|
523
495
|
const _hoisted_1$1l = { class: "nut-button__warp" };
|
|
524
|
-
function _sfc_render$
|
|
496
|
+
function _sfc_render$1B(_ctx, _cache, $props, $setup, $data, $options) {
|
|
525
497
|
const _component_nut_icon = vue.resolveComponent("nut-icon");
|
|
526
498
|
return vue.openBlock(), vue.createElementBlock("view", {
|
|
527
499
|
class: vue.normalizeClass(_ctx.classes),
|
|
@@ -533,12 +505,13 @@ var __objRest = (source, exclude) => {
|
|
|
533
505
|
key: 0,
|
|
534
506
|
class: "nut-icon-loading"
|
|
535
507
|
})) : vue.createCommentVNode("", true),
|
|
536
|
-
_ctx.icon && !_ctx.loading ? (vue.openBlock(), vue.createBlock(_component_nut_icon, {
|
|
508
|
+
_ctx.icon && !_ctx.loading ? (vue.openBlock(), vue.createBlock(_component_nut_icon, vue.mergeProps({
|
|
537
509
|
key: 1,
|
|
538
|
-
name: _ctx.icon
|
|
510
|
+
name: _ctx.icon
|
|
511
|
+
}, _ctx.$attrs, {
|
|
539
512
|
"class-prefix": _ctx.iconClassPrefix,
|
|
540
513
|
"font-class-name": _ctx.iconFontClassName
|
|
541
|
-
}, null,
|
|
514
|
+
}), null, 16, ["name", "class-prefix", "font-class-name"])) : vue.createCommentVNode("", true),
|
|
542
515
|
_ctx.$slots.default ? (vue.openBlock(), vue.createElementBlock("view", {
|
|
543
516
|
key: 2,
|
|
544
517
|
class: vue.normalizeClass({ text: _ctx.icon || _ctx.loading })
|
|
@@ -548,7 +521,7 @@ var __objRest = (source, exclude) => {
|
|
|
548
521
|
])
|
|
549
522
|
], 6);
|
|
550
523
|
}
|
|
551
|
-
var Button = /* @__PURE__ */ _export_sfc(_sfc_main$1O, [["render", _sfc_render$
|
|
524
|
+
var Button = /* @__PURE__ */ _export_sfc(_sfc_main$1O, [["render", _sfc_render$1B]]);
|
|
552
525
|
function useRouter() {
|
|
553
526
|
const proxy = vue.getCurrentInstance().proxy;
|
|
554
527
|
return proxy.$router || null;
|
|
@@ -563,7 +536,7 @@ var __objRest = (source, exclude) => {
|
|
|
563
536
|
};
|
|
564
537
|
const _hoisted_3$Q = { class: "title" };
|
|
565
538
|
const _hoisted_4$E = { class: "nut-cell__title-desc" };
|
|
566
|
-
function render$
|
|
539
|
+
function render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
567
540
|
const _component_nut_icon = vue.resolveComponent("nut-icon");
|
|
568
541
|
return vue.openBlock(), vue.createElementBlock("view", {
|
|
569
542
|
class: vue.normalizeClass(_ctx.classes),
|
|
@@ -573,11 +546,10 @@ var __objRest = (source, exclude) => {
|
|
|
573
546
|
vue.renderSlot(_ctx.$slots, "default", {}, () => [
|
|
574
547
|
_ctx.icon || _ctx.$slots.icon ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_1$1k, [
|
|
575
548
|
vue.renderSlot(_ctx.$slots, "icon", {}, () => [
|
|
576
|
-
_ctx.icon ? (vue.openBlock(), vue.createBlock(_component_nut_icon, {
|
|
577
|
-
key: 0,
|
|
549
|
+
_ctx.icon ? (vue.openBlock(), vue.createBlock(_component_nut_icon, vue.mergeProps({ key: 0 }, _ctx.$attrs, {
|
|
578
550
|
class: "icon",
|
|
579
551
|
name: _ctx.icon
|
|
580
|
-
}, null,
|
|
552
|
+
}), null, 16, ["name"])) : vue.createCommentVNode("", true)
|
|
581
553
|
])
|
|
582
554
|
])) : vue.createCommentVNode("", true),
|
|
583
555
|
_ctx.title || _ctx.subTitle || _ctx.$slots.title ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_2$14, [
|
|
@@ -596,11 +568,10 @@ var __objRest = (source, exclude) => {
|
|
|
596
568
|
style: vue.normalizeStyle({ "text-align": _ctx.descTextAlign })
|
|
597
569
|
}, vue.toDisplayString(_ctx.desc), 7)) : vue.createCommentVNode("", true),
|
|
598
570
|
vue.renderSlot(_ctx.$slots, "link", {}, () => [
|
|
599
|
-
_ctx.isLink || _ctx.to ? (vue.openBlock(), vue.createBlock(_component_nut_icon, {
|
|
571
|
+
_ctx.isLink || _ctx.to ? (vue.openBlock(), vue.createBlock(_component_nut_icon, vue.mergeProps({
|
|
600
572
|
key: 0,
|
|
601
|
-
class: "nut-cell__link"
|
|
602
|
-
|
|
603
|
-
})) : vue.createCommentVNode("", true)
|
|
573
|
+
class: "nut-cell__link"
|
|
574
|
+
}, _ctx.$attrs, { name: _ctx.rightIcon }), null, 16, ["name"])) : vue.createCommentVNode("", true)
|
|
604
575
|
])
|
|
605
576
|
])
|
|
606
577
|
], 6);
|
|
@@ -618,6 +589,7 @@ var __objRest = (source, exclude) => {
|
|
|
618
589
|
roundRadius: { type: [String, Number], default: "" },
|
|
619
590
|
url: { type: String, default: "" },
|
|
620
591
|
icon: { type: String, default: "" },
|
|
592
|
+
rightIcon: { type: String, default: "right" },
|
|
621
593
|
center: { type: Boolean, default: false },
|
|
622
594
|
size: { type: String, default: "" }
|
|
623
595
|
},
|
|
@@ -653,7 +625,7 @@ var __objRest = (source, exclude) => {
|
|
|
653
625
|
};
|
|
654
626
|
}
|
|
655
627
|
});
|
|
656
|
-
var Cell = /* @__PURE__ */ _export_sfc(_sfc_main$1N, [["render", render$
|
|
628
|
+
var Cell = /* @__PURE__ */ _export_sfc(_sfc_main$1N, [["render", render$3]]);
|
|
657
629
|
const { componentName: componentName$1q, create: create$1M } = createComponent("cell-group");
|
|
658
630
|
const _sfc_main$1M = create$1M({
|
|
659
631
|
props: {
|
|
@@ -681,7 +653,7 @@ var __objRest = (source, exclude) => {
|
|
|
681
653
|
class: "nut-cell-group__desc"
|
|
682
654
|
};
|
|
683
655
|
const _hoisted_3$P = { class: "nut-cell-group__warp" };
|
|
684
|
-
function _sfc_render$
|
|
656
|
+
function _sfc_render$1A(_ctx, _cache, $props, $setup, $data, $options) {
|
|
685
657
|
return vue.openBlock(), vue.createElementBlock("view", {
|
|
686
658
|
class: vue.normalizeClass(_ctx.classes)
|
|
687
659
|
}, [
|
|
@@ -692,7 +664,7 @@ var __objRest = (source, exclude) => {
|
|
|
692
664
|
])
|
|
693
665
|
], 2);
|
|
694
666
|
}
|
|
695
|
-
var CellGroup = /* @__PURE__ */ _export_sfc(_sfc_main$1M, [["render", _sfc_render$
|
|
667
|
+
var CellGroup = /* @__PURE__ */ _export_sfc(_sfc_main$1M, [["render", _sfc_render$1A]]);
|
|
696
668
|
const { componentName: componentName$1p, create: create$1L } = createComponent("overlay");
|
|
697
669
|
const overlayProps = {
|
|
698
670
|
visible: {
|
|
@@ -734,9 +706,12 @@ var __objRest = (source, exclude) => {
|
|
|
734
706
|
[props.overlayClass]: true
|
|
735
707
|
};
|
|
736
708
|
});
|
|
737
|
-
vue.watch(
|
|
738
|
-
|
|
739
|
-
|
|
709
|
+
vue.watch(
|
|
710
|
+
() => props.visible,
|
|
711
|
+
(value) => {
|
|
712
|
+
value ? lock() : unlock();
|
|
713
|
+
}
|
|
714
|
+
);
|
|
740
715
|
const lock = () => {
|
|
741
716
|
if (props.lockScroll && props.visible) {
|
|
742
717
|
document.body.classList.add("nut-overflow-hidden");
|
|
@@ -750,10 +725,11 @@ var __objRest = (source, exclude) => {
|
|
|
750
725
|
vue.onMounted(lock);
|
|
751
726
|
vue.onActivated(lock);
|
|
752
727
|
const style = vue.computed(() => {
|
|
753
|
-
return
|
|
728
|
+
return {
|
|
754
729
|
animationDuration: `${props.duration}s`,
|
|
755
|
-
zIndex: props.zIndex
|
|
756
|
-
|
|
730
|
+
zIndex: props.zIndex,
|
|
731
|
+
...props.overlayStyle
|
|
732
|
+
};
|
|
757
733
|
});
|
|
758
734
|
const touchmove = (e) => {
|
|
759
735
|
if (props.lockScroll)
|
|
@@ -768,7 +744,7 @@ var __objRest = (source, exclude) => {
|
|
|
768
744
|
return { classes, style, touchmove, onClick };
|
|
769
745
|
}
|
|
770
746
|
});
|
|
771
|
-
function _sfc_render$
|
|
747
|
+
function _sfc_render$1z(_ctx, _cache, $props, $setup, $data, $options) {
|
|
772
748
|
return vue.openBlock(), vue.createBlock(vue.Transition, { name: "overlay-fade" }, {
|
|
773
749
|
default: vue.withCtx(() => [
|
|
774
750
|
vue.withDirectives(vue.createElementVNode("view", {
|
|
@@ -785,7 +761,7 @@ var __objRest = (source, exclude) => {
|
|
|
785
761
|
_: 3
|
|
786
762
|
});
|
|
787
763
|
}
|
|
788
|
-
var OverLay = /* @__PURE__ */ _export_sfc(_sfc_main$1L, [["render", _sfc_render$
|
|
764
|
+
var OverLay = /* @__PURE__ */ _export_sfc(_sfc_main$1L, [["render", _sfc_render$1z]]);
|
|
789
765
|
let count = 0;
|
|
790
766
|
const CLSNAME = "nut-overflow-hidden";
|
|
791
767
|
const useLockScroll = (isLock) => {
|
|
@@ -805,7 +781,8 @@ var __objRest = (source, exclude) => {
|
|
|
805
781
|
};
|
|
806
782
|
const { componentName: componentName$1o, create: create$1K } = createComponent("popup");
|
|
807
783
|
let _zIndex = 2e3;
|
|
808
|
-
const popupProps =
|
|
784
|
+
const popupProps = {
|
|
785
|
+
...overlayProps,
|
|
809
786
|
position: {
|
|
810
787
|
type: String,
|
|
811
788
|
default: "center"
|
|
@@ -854,13 +831,15 @@ var __objRest = (source, exclude) => {
|
|
|
854
831
|
type: Boolean,
|
|
855
832
|
default: false
|
|
856
833
|
}
|
|
857
|
-
}
|
|
834
|
+
};
|
|
858
835
|
const _sfc_main$1K = create$1K({
|
|
859
836
|
components: {
|
|
860
837
|
[OverLay.name]: OverLay,
|
|
861
838
|
[_sfc_main$1P.name]: _sfc_main$1P
|
|
862
839
|
},
|
|
863
|
-
props:
|
|
840
|
+
props: {
|
|
841
|
+
...popupProps
|
|
842
|
+
},
|
|
864
843
|
emits: ["click", "click-close-icon", "open", "close", "opend", "closed", "update:visible", "click-overlay"],
|
|
865
844
|
setup(props, { emit }) {
|
|
866
845
|
const popupRef = vue.ref();
|
|
@@ -884,10 +863,11 @@ var __objRest = (source, exclude) => {
|
|
|
884
863
|
};
|
|
885
864
|
});
|
|
886
865
|
const popStyle = vue.computed(() => {
|
|
887
|
-
return
|
|
866
|
+
return {
|
|
888
867
|
zIndex: state.zIndex,
|
|
889
|
-
animationDuration: props.duration ? `${props.duration}s` : "initial"
|
|
890
|
-
|
|
868
|
+
animationDuration: props.duration ? `${props.duration}s` : "initial",
|
|
869
|
+
...props.style
|
|
870
|
+
};
|
|
891
871
|
});
|
|
892
872
|
const open = () => {
|
|
893
873
|
if (props.zIndex != 2e3) {
|
|
@@ -954,20 +934,30 @@ var __objRest = (source, exclude) => {
|
|
|
954
934
|
state.keepAlive = true;
|
|
955
935
|
}
|
|
956
936
|
});
|
|
957
|
-
vue.watch(
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
937
|
+
vue.watch(
|
|
938
|
+
() => props.visible,
|
|
939
|
+
(value) => {
|
|
940
|
+
if (value) {
|
|
941
|
+
open();
|
|
942
|
+
} else {
|
|
943
|
+
close();
|
|
944
|
+
}
|
|
962
945
|
}
|
|
963
|
-
|
|
964
|
-
vue.watch(
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
946
|
+
);
|
|
947
|
+
vue.watch(
|
|
948
|
+
() => props.position,
|
|
949
|
+
(value) => {
|
|
950
|
+
value === "center" ? state.transitionName = "popup-fade" : state.transitionName = `popup-slide-${value}`;
|
|
951
|
+
}
|
|
952
|
+
);
|
|
953
|
+
vue.watch(
|
|
954
|
+
() => props.closeable,
|
|
955
|
+
(value) => {
|
|
956
|
+
state.closed = value;
|
|
957
|
+
}
|
|
958
|
+
);
|
|
959
|
+
return {
|
|
960
|
+
...vue.toRefs(state),
|
|
971
961
|
popStyle,
|
|
972
962
|
classes,
|
|
973
963
|
onClick,
|
|
@@ -976,11 +966,11 @@ var __objRest = (source, exclude) => {
|
|
|
976
966
|
onOpened,
|
|
977
967
|
onClosed,
|
|
978
968
|
popupRef
|
|
979
|
-
}
|
|
969
|
+
};
|
|
980
970
|
}
|
|
981
971
|
});
|
|
982
972
|
const _hoisted_1$1i = { key: 1 };
|
|
983
|
-
function _sfc_render$
|
|
973
|
+
function _sfc_render$1y(_ctx, _cache, $props, $setup, $data, $options) {
|
|
984
974
|
const _component_nut_overlay = vue.resolveComponent("nut-overlay");
|
|
985
975
|
const _component_nut_icon = vue.resolveComponent("nut-icon");
|
|
986
976
|
return _ctx.isWrapTeleport ? (vue.openBlock(), vue.createBlock(vue.Teleport, {
|
|
@@ -1016,10 +1006,10 @@ var __objRest = (source, exclude) => {
|
|
|
1016
1006
|
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.onClickCloseIcon && _ctx.onClickCloseIcon(...args)),
|
|
1017
1007
|
class: vue.normalizeClass(["nutui-popup__close-icon", "nutui-popup__close-icon--" + _ctx.closeIconPosition])
|
|
1018
1008
|
}, [
|
|
1019
|
-
vue.createVNode(_component_nut_icon, {
|
|
1009
|
+
vue.createVNode(_component_nut_icon, vue.mergeProps(_ctx.$attrs, {
|
|
1020
1010
|
name: _ctx.closeIcon,
|
|
1021
1011
|
size: "12px"
|
|
1022
|
-
}, null,
|
|
1012
|
+
}), null, 16, ["name"])
|
|
1023
1013
|
], 2)) : vue.createCommentVNode("", true)
|
|
1024
1014
|
], 6), [
|
|
1025
1015
|
[vue.vShow, _ctx.visible]
|
|
@@ -1069,8 +1059,8 @@ var __objRest = (source, exclude) => {
|
|
|
1069
1059
|
}, 8, ["name", "onAfterEnter", "onAfterLeave"])
|
|
1070
1060
|
]));
|
|
1071
1061
|
}
|
|
1072
|
-
var Popup = /* @__PURE__ */ _export_sfc(_sfc_main$1K, [["render", _sfc_render$
|
|
1073
|
-
const component$
|
|
1062
|
+
var Popup = /* @__PURE__ */ _export_sfc(_sfc_main$1K, [["render", _sfc_render$1y]]);
|
|
1063
|
+
const component$8 = {
|
|
1074
1064
|
props: {
|
|
1075
1065
|
theme: { type: String, default: "" },
|
|
1076
1066
|
tag: { type: String, default: "div" }
|
|
@@ -1078,14 +1068,18 @@ var __objRest = (source, exclude) => {
|
|
|
1078
1068
|
setup(props, { slots }) {
|
|
1079
1069
|
return () => {
|
|
1080
1070
|
var _a;
|
|
1081
|
-
return vue.h(
|
|
1082
|
-
|
|
1083
|
-
|
|
1071
|
+
return vue.h(
|
|
1072
|
+
props.tag,
|
|
1073
|
+
{
|
|
1074
|
+
class: `nut-theme-${props.theme}`
|
|
1075
|
+
},
|
|
1076
|
+
(_a = slots.default) == null ? void 0 : _a.call(slots)
|
|
1077
|
+
);
|
|
1084
1078
|
};
|
|
1085
1079
|
}
|
|
1086
1080
|
};
|
|
1087
1081
|
const { componentName: componentName$1n, create: create$1J } = createComponent("config-provider");
|
|
1088
|
-
const _sfc_main$1J = create$1J(component$
|
|
1082
|
+
const _sfc_main$1J = create$1J(component$8);
|
|
1089
1083
|
const { componentName: componentName$1m, create: create$1I } = createComponent("image");
|
|
1090
1084
|
const _sfc_main$1I = create$1I({
|
|
1091
1085
|
props: {
|
|
@@ -1158,9 +1152,12 @@ var __objRest = (source, exclude) => {
|
|
|
1158
1152
|
};
|
|
1159
1153
|
return styless;
|
|
1160
1154
|
});
|
|
1161
|
-
vue.watch(
|
|
1162
|
-
|
|
1163
|
-
|
|
1155
|
+
vue.watch(
|
|
1156
|
+
() => props.src,
|
|
1157
|
+
(val) => {
|
|
1158
|
+
state.isError = false, state.loading = true;
|
|
1159
|
+
}
|
|
1160
|
+
);
|
|
1164
1161
|
const load = () => {
|
|
1165
1162
|
state.loading = false;
|
|
1166
1163
|
emit("load");
|
|
@@ -1173,7 +1170,7 @@ var __objRest = (source, exclude) => {
|
|
|
1173
1170
|
const imageClick = (event) => {
|
|
1174
1171
|
emit("click", event);
|
|
1175
1172
|
};
|
|
1176
|
-
return
|
|
1173
|
+
return { ...vue.toRefs(state), imageClick, classes, styles, stylebox, error, load };
|
|
1177
1174
|
}
|
|
1178
1175
|
});
|
|
1179
1176
|
const _hoisted_1$1h = ["src", "alt"];
|
|
@@ -1185,7 +1182,7 @@ var __objRest = (source, exclude) => {
|
|
|
1185
1182
|
key: 1,
|
|
1186
1183
|
class: "nut-img-error"
|
|
1187
1184
|
};
|
|
1188
|
-
function _sfc_render$
|
|
1185
|
+
function _sfc_render$1x(_ctx, _cache, $props, $setup, $data, $options) {
|
|
1189
1186
|
const _component_nut_icon = vue.resolveComponent("nut-icon");
|
|
1190
1187
|
return vue.openBlock(), vue.createElementBlock("view", {
|
|
1191
1188
|
class: vue.normalizeClass(_ctx.classes),
|
|
@@ -1216,7 +1213,7 @@ var __objRest = (source, exclude) => {
|
|
|
1216
1213
|
])) : vue.createCommentVNode("", true)
|
|
1217
1214
|
], 6);
|
|
1218
1215
|
}
|
|
1219
|
-
var Image$1 = /* @__PURE__ */ _export_sfc(_sfc_main$1I, [["render", _sfc_render$
|
|
1216
|
+
var Image$1 = /* @__PURE__ */ _export_sfc(_sfc_main$1I, [["render", _sfc_render$1x]]);
|
|
1220
1217
|
const { create: create$1H } = createComponent("layout");
|
|
1221
1218
|
const _sfc_main$1H = create$1H({});
|
|
1222
1219
|
const { componentName: componentName$1l, create: create$1G } = createComponent("col");
|
|
@@ -1231,8 +1228,8 @@ var __objRest = (source, exclude) => {
|
|
|
1231
1228
|
default: "0"
|
|
1232
1229
|
}
|
|
1233
1230
|
},
|
|
1234
|
-
emits: [
|
|
1235
|
-
setup(props
|
|
1231
|
+
emits: [],
|
|
1232
|
+
setup(props) {
|
|
1236
1233
|
const prefixCls = componentName$1l;
|
|
1237
1234
|
const gutter = vue.inject("gutter");
|
|
1238
1235
|
const classes = vue.computed(() => {
|
|
@@ -1249,27 +1246,21 @@ var __objRest = (source, exclude) => {
|
|
|
1249
1246
|
paddingRight: gutter / 2 + "px"
|
|
1250
1247
|
};
|
|
1251
1248
|
});
|
|
1252
|
-
const handleClick = (evt) => {
|
|
1253
|
-
evt.stopPropagation();
|
|
1254
|
-
emit("click", evt);
|
|
1255
|
-
};
|
|
1256
1249
|
return {
|
|
1257
1250
|
classes,
|
|
1258
|
-
style
|
|
1259
|
-
handleClick
|
|
1251
|
+
style
|
|
1260
1252
|
};
|
|
1261
1253
|
}
|
|
1262
1254
|
});
|
|
1263
|
-
function _sfc_render$
|
|
1255
|
+
function _sfc_render$1w(_ctx, _cache, $props, $setup, $data, $options) {
|
|
1264
1256
|
return vue.openBlock(), vue.createElementBlock("view", {
|
|
1265
1257
|
class: vue.normalizeClass(_ctx.classes),
|
|
1266
|
-
style: vue.normalizeStyle(_ctx.style)
|
|
1267
|
-
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.handleClick && _ctx.handleClick(...args))
|
|
1258
|
+
style: vue.normalizeStyle(_ctx.style)
|
|
1268
1259
|
}, [
|
|
1269
1260
|
vue.renderSlot(_ctx.$slots, "default")
|
|
1270
1261
|
], 6);
|
|
1271
1262
|
}
|
|
1272
|
-
var Col = /* @__PURE__ */ _export_sfc(_sfc_main$1G, [["render", _sfc_render$
|
|
1263
|
+
var Col = /* @__PURE__ */ _export_sfc(_sfc_main$1G, [["render", _sfc_render$1w]]);
|
|
1273
1264
|
const { componentName: componentName$1k, create: create$1F } = createComponent("row");
|
|
1274
1265
|
const _sfc_main$1F = create$1F({
|
|
1275
1266
|
props: {
|
|
@@ -1294,8 +1285,8 @@ var __objRest = (source, exclude) => {
|
|
|
1294
1285
|
default: "nowrap"
|
|
1295
1286
|
}
|
|
1296
1287
|
},
|
|
1297
|
-
emits: [
|
|
1298
|
-
setup(props
|
|
1288
|
+
emits: [],
|
|
1289
|
+
setup(props) {
|
|
1299
1290
|
const prefixCls = componentName$1k;
|
|
1300
1291
|
vue.provide("gutter", props.gutter);
|
|
1301
1292
|
const getClass = (prefix, type) => {
|
|
@@ -1310,25 +1301,19 @@ var __objRest = (source, exclude) => {
|
|
|
1310
1301
|
${prefixCls}
|
|
1311
1302
|
`;
|
|
1312
1303
|
};
|
|
1313
|
-
const handleClick = (evt) => {
|
|
1314
|
-
evt.stopPropagation();
|
|
1315
|
-
emit("click", evt);
|
|
1316
|
-
};
|
|
1317
1304
|
return {
|
|
1318
|
-
getClasses
|
|
1319
|
-
handleClick
|
|
1305
|
+
getClasses
|
|
1320
1306
|
};
|
|
1321
1307
|
}
|
|
1322
1308
|
});
|
|
1323
|
-
function _sfc_render$
|
|
1309
|
+
function _sfc_render$1v(_ctx, _cache, $props, $setup, $data, $options) {
|
|
1324
1310
|
return vue.openBlock(), vue.createElementBlock("view", {
|
|
1325
|
-
class: vue.normalizeClass(_ctx.getClasses())
|
|
1326
|
-
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.handleClick && _ctx.handleClick(...args))
|
|
1311
|
+
class: vue.normalizeClass(_ctx.getClasses())
|
|
1327
1312
|
}, [
|
|
1328
1313
|
vue.renderSlot(_ctx.$slots, "default")
|
|
1329
1314
|
], 2);
|
|
1330
1315
|
}
|
|
1331
|
-
var Row = /* @__PURE__ */ _export_sfc(_sfc_main$1F, [["render", _sfc_render$
|
|
1316
|
+
var Row = /* @__PURE__ */ _export_sfc(_sfc_main$1F, [["render", _sfc_render$1v]]);
|
|
1332
1317
|
function isWindow(val) {
|
|
1333
1318
|
return val === window;
|
|
1334
1319
|
}
|
|
@@ -1434,10 +1419,14 @@ var __objRest = (source, exclude) => {
|
|
|
1434
1419
|
};
|
|
1435
1420
|
const renderFixed = () => {
|
|
1436
1421
|
var _a;
|
|
1437
|
-
return vue.h(
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
|
|
1422
|
+
return vue.h(
|
|
1423
|
+
"view",
|
|
1424
|
+
{
|
|
1425
|
+
style: stickyStyle.value,
|
|
1426
|
+
class: state.fixed ? `${componentName$1j} nut-sticky--fixed` : componentName$1j
|
|
1427
|
+
},
|
|
1428
|
+
(_a = slots.default) == null ? void 0 : _a.call(slots)
|
|
1429
|
+
);
|
|
1441
1430
|
};
|
|
1442
1431
|
const onScroll = () => {
|
|
1443
1432
|
if (!isExistRoot())
|
|
@@ -1474,9 +1463,12 @@ var __objRest = (source, exclude) => {
|
|
|
1474
1463
|
fixed: state.fixed
|
|
1475
1464
|
});
|
|
1476
1465
|
};
|
|
1477
|
-
vue.watch(
|
|
1478
|
-
|
|
1479
|
-
|
|
1466
|
+
vue.watch(
|
|
1467
|
+
() => state.fixed,
|
|
1468
|
+
(val) => {
|
|
1469
|
+
emit("change", val);
|
|
1470
|
+
}
|
|
1471
|
+
);
|
|
1480
1472
|
vue.onMounted(() => {
|
|
1481
1473
|
window.addEventListener("scroll", onScroll);
|
|
1482
1474
|
onScroll();
|
|
@@ -1485,10 +1477,14 @@ var __objRest = (source, exclude) => {
|
|
|
1485
1477
|
window.removeEventListener("scroll", onScroll);
|
|
1486
1478
|
});
|
|
1487
1479
|
return () => {
|
|
1488
|
-
return vue.h(
|
|
1489
|
-
|
|
1490
|
-
|
|
1491
|
-
|
|
1480
|
+
return vue.h(
|
|
1481
|
+
"view",
|
|
1482
|
+
{
|
|
1483
|
+
style: rootStyle.value,
|
|
1484
|
+
ref: root
|
|
1485
|
+
},
|
|
1486
|
+
[renderFixed()]
|
|
1487
|
+
);
|
|
1492
1488
|
};
|
|
1493
1489
|
}
|
|
1494
1490
|
});
|
|
@@ -1521,24 +1517,26 @@ var __objRest = (source, exclude) => {
|
|
|
1521
1517
|
};
|
|
1522
1518
|
let classesObj = {};
|
|
1523
1519
|
if (props.direction === "horizontal") {
|
|
1524
|
-
classesObj =
|
|
1520
|
+
classesObj = {
|
|
1521
|
+
...defaultClassesObj,
|
|
1525
1522
|
[`${prefixCls}-center`]: context.slots.default,
|
|
1526
1523
|
[`${prefixCls}-left`]: props.contentPosition === "left",
|
|
1527
1524
|
[`${prefixCls}-right`]: props.contentPosition === "right",
|
|
1528
1525
|
[`${prefixCls}-dashed`]: props.dashed,
|
|
1529
1526
|
[`${prefixCls}-hairline`]: props.hairline
|
|
1530
|
-
}
|
|
1527
|
+
};
|
|
1531
1528
|
} else {
|
|
1532
|
-
classesObj =
|
|
1529
|
+
classesObj = {
|
|
1530
|
+
...defaultClassesObj,
|
|
1533
1531
|
[`${prefixCls}-vertical`]: props.direction === "vertical"
|
|
1534
|
-
}
|
|
1532
|
+
};
|
|
1535
1533
|
}
|
|
1536
1534
|
return classesObj;
|
|
1537
1535
|
});
|
|
1538
1536
|
return { classes };
|
|
1539
1537
|
}
|
|
1540
1538
|
});
|
|
1541
|
-
function _sfc_render$
|
|
1539
|
+
function _sfc_render$1u(_ctx, _cache, $props, $setup, $data, $options) {
|
|
1542
1540
|
return _ctx.direction === "horizontal" ? (vue.openBlock(), vue.createElementBlock("view", {
|
|
1543
1541
|
key: 0,
|
|
1544
1542
|
class: vue.normalizeClass(_ctx.classes)
|
|
@@ -1549,7 +1547,7 @@ var __objRest = (source, exclude) => {
|
|
|
1549
1547
|
class: vue.normalizeClass(_ctx.classes)
|
|
1550
1548
|
}, null, 2));
|
|
1551
1549
|
}
|
|
1552
|
-
var Divider = /* @__PURE__ */ _export_sfc(_sfc_main$1D, [["render", _sfc_render$
|
|
1550
|
+
var Divider = /* @__PURE__ */ _export_sfc(_sfc_main$1D, [["render", _sfc_render$1u]]);
|
|
1553
1551
|
function flattenVNodes(children, childName) {
|
|
1554
1552
|
const result = [];
|
|
1555
1553
|
const traverse = (children2) => {
|
|
@@ -1598,11 +1596,17 @@ var __objRest = (source, exclude) => {
|
|
|
1598
1596
|
};
|
|
1599
1597
|
const extend = Object.assign;
|
|
1600
1598
|
return (value) => {
|
|
1601
|
-
vue.provide(
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
|
|
1599
|
+
vue.provide(
|
|
1600
|
+
key,
|
|
1601
|
+
extend(
|
|
1602
|
+
{
|
|
1603
|
+
add,
|
|
1604
|
+
remove,
|
|
1605
|
+
internalChildren
|
|
1606
|
+
},
|
|
1607
|
+
value
|
|
1608
|
+
)
|
|
1609
|
+
);
|
|
1606
1610
|
return {
|
|
1607
1611
|
internalChildren
|
|
1608
1612
|
};
|
|
@@ -1650,7 +1654,7 @@ var __objRest = (source, exclude) => {
|
|
|
1650
1654
|
default: false
|
|
1651
1655
|
}
|
|
1652
1656
|
};
|
|
1653
|
-
const component$
|
|
1657
|
+
const component$7 = {
|
|
1654
1658
|
props: gridProps,
|
|
1655
1659
|
setup(props, { slots }) {
|
|
1656
1660
|
useProvide(GRID_KEY, `${componentName$1h}-item`)({ props });
|
|
@@ -1670,15 +1674,19 @@ var __objRest = (source, exclude) => {
|
|
|
1670
1674
|
});
|
|
1671
1675
|
return () => {
|
|
1672
1676
|
var _a;
|
|
1673
|
-
return vue.h(
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
|
|
1677
|
+
return vue.h(
|
|
1678
|
+
"view",
|
|
1679
|
+
{
|
|
1680
|
+
class: rootClass.value,
|
|
1681
|
+
style: rootStyle.value
|
|
1682
|
+
},
|
|
1683
|
+
(_a = slots.default) == null ? void 0 : _a.call(slots)
|
|
1684
|
+
);
|
|
1677
1685
|
};
|
|
1678
1686
|
}
|
|
1679
1687
|
};
|
|
1680
1688
|
const { create: create$1C } = createComponent("grid");
|
|
1681
|
-
const _sfc_main$1C = create$1C(component$
|
|
1689
|
+
const _sfc_main$1C = create$1C(component$7);
|
|
1682
1690
|
function useInject(key) {
|
|
1683
1691
|
const parent = vue.inject(key, null);
|
|
1684
1692
|
if (parent) {
|
|
@@ -1793,7 +1801,7 @@ var __objRest = (source, exclude) => {
|
|
|
1793
1801
|
key: 3,
|
|
1794
1802
|
class: "nut-grid-item__text"
|
|
1795
1803
|
};
|
|
1796
|
-
function _sfc_render$
|
|
1804
|
+
function _sfc_render$1t(_ctx, _cache, $props, $setup, $data, $options) {
|
|
1797
1805
|
const _component_nut_icon = vue.resolveComponent("nut-icon");
|
|
1798
1806
|
return vue.openBlock(), vue.createElementBlock("view", {
|
|
1799
1807
|
class: vue.normalizeClass(_ctx.rootClass),
|
|
@@ -1804,18 +1812,19 @@ var __objRest = (source, exclude) => {
|
|
|
1804
1812
|
class: vue.normalizeClass(_ctx.contentClass)
|
|
1805
1813
|
}, [
|
|
1806
1814
|
_ctx.$slots.default ? vue.renderSlot(_ctx.$slots, "default", { key: 0 }) : (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 1 }, [
|
|
1807
|
-
_ctx.$slots.icon ? vue.renderSlot(_ctx.$slots, "icon", { key: 0 }) : (vue.openBlock(), vue.createBlock(_component_nut_icon, {
|
|
1815
|
+
_ctx.$slots.icon ? vue.renderSlot(_ctx.$slots, "icon", { key: 0 }) : (vue.openBlock(), vue.createBlock(_component_nut_icon, vue.mergeProps({
|
|
1808
1816
|
key: 1,
|
|
1809
|
-
name: _ctx.iconProps.name
|
|
1817
|
+
name: _ctx.iconProps.name
|
|
1818
|
+
}, _ctx.$attrs, {
|
|
1810
1819
|
size: _ctx.iconProps.size,
|
|
1811
1820
|
color: _ctx.iconProps.color
|
|
1812
|
-
}, null,
|
|
1821
|
+
}), null, 16, ["name", "size", "color"])),
|
|
1813
1822
|
_ctx.$slots.text ? vue.renderSlot(_ctx.$slots, "text", { key: 2 }) : (vue.openBlock(), vue.createElementBlock("view", _hoisted_1$1g, vue.toDisplayString(_ctx.text), 1))
|
|
1814
1823
|
], 64))
|
|
1815
1824
|
], 2)
|
|
1816
1825
|
], 6);
|
|
1817
1826
|
}
|
|
1818
|
-
var GridItem = /* @__PURE__ */ _export_sfc(_sfc_main$1B, [["render", _sfc_render$
|
|
1827
|
+
var GridItem = /* @__PURE__ */ _export_sfc(_sfc_main$1B, [["render", _sfc_render$1t]]);
|
|
1819
1828
|
const { componentName: componentName$1f, create: create$1A } = createComponent("navbar");
|
|
1820
1829
|
const _sfc_main$1A = create$1A({
|
|
1821
1830
|
props: {
|
|
@@ -1921,7 +1930,7 @@ var __objRest = (source, exclude) => {
|
|
|
1921
1930
|
key: 0,
|
|
1922
1931
|
class: "nut-navbar__text"
|
|
1923
1932
|
};
|
|
1924
|
-
function _sfc_render$
|
|
1933
|
+
function _sfc_render$1s(_ctx, _cache, $props, $setup, $data, $options) {
|
|
1925
1934
|
const _component_nut_icon = vue.resolveComponent("nut-icon");
|
|
1926
1935
|
return _ctx.fixed && _ctx.placeholder ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_1$1f, [
|
|
1927
1936
|
vue.createElementVNode("view", {
|
|
@@ -1947,12 +1956,13 @@ var __objRest = (source, exclude) => {
|
|
|
1947
1956
|
class: "title",
|
|
1948
1957
|
onClick: _cache[1] || (_cache[1] = (...args) => _ctx.handleCenter && _ctx.handleCenter(...args))
|
|
1949
1958
|
}, vue.toDisplayString(_ctx.title), 1)) : vue.createCommentVNode("", true),
|
|
1950
|
-
_ctx.titIcon ? (vue.openBlock(), vue.createBlock(_component_nut_icon, {
|
|
1959
|
+
_ctx.titIcon ? (vue.openBlock(), vue.createBlock(_component_nut_icon, vue.mergeProps({
|
|
1951
1960
|
key: 1,
|
|
1952
|
-
class: "icon"
|
|
1961
|
+
class: "icon"
|
|
1962
|
+
}, _ctx.$attrs, {
|
|
1953
1963
|
name: _ctx.titIcon,
|
|
1954
1964
|
onClick: _ctx.handleCenterIcon
|
|
1955
|
-
}, null,
|
|
1965
|
+
}), null, 16, ["name", "onClick"])) : vue.createCommentVNode("", true),
|
|
1956
1966
|
vue.renderSlot(_ctx.$slots, "content")
|
|
1957
1967
|
]),
|
|
1958
1968
|
vue.createElementVNode("view", {
|
|
@@ -1986,12 +1996,13 @@ var __objRest = (source, exclude) => {
|
|
|
1986
1996
|
class: "title",
|
|
1987
1997
|
onClick: _cache[4] || (_cache[4] = (...args) => _ctx.handleCenter && _ctx.handleCenter(...args))
|
|
1988
1998
|
}, vue.toDisplayString(_ctx.title), 1)) : vue.createCommentVNode("", true),
|
|
1989
|
-
_ctx.titIcon ? (vue.openBlock(), vue.createBlock(_component_nut_icon, {
|
|
1999
|
+
_ctx.titIcon ? (vue.openBlock(), vue.createBlock(_component_nut_icon, vue.mergeProps({
|
|
1990
2000
|
key: 1,
|
|
1991
|
-
class: "icon"
|
|
2001
|
+
class: "icon"
|
|
2002
|
+
}, _ctx.$attrs, {
|
|
1992
2003
|
name: _ctx.titIcon,
|
|
1993
2004
|
onClick: _ctx.handleCenterIcon
|
|
1994
|
-
}, null,
|
|
2005
|
+
}), null, 16, ["name", "onClick"])) : vue.createCommentVNode("", true),
|
|
1995
2006
|
vue.renderSlot(_ctx.$slots, "content")
|
|
1996
2007
|
]),
|
|
1997
2008
|
vue.createElementVNode("view", {
|
|
@@ -2003,12 +2014,9 @@ var __objRest = (source, exclude) => {
|
|
|
2003
2014
|
])
|
|
2004
2015
|
], 6));
|
|
2005
2016
|
}
|
|
2006
|
-
var Navbar = /* @__PURE__ */ _export_sfc(_sfc_main$1A, [["render", _sfc_render$
|
|
2007
|
-
const { componentName: componentName$1e,
|
|
2008
|
-
const
|
|
2009
|
-
components: {
|
|
2010
|
-
[OverLay.name]: OverLay
|
|
2011
|
-
},
|
|
2017
|
+
var Navbar = /* @__PURE__ */ _export_sfc(_sfc_main$1A, [["render", _sfc_render$1s]]);
|
|
2018
|
+
const { componentName: componentName$1e, translate: translate$t } = createComponent("fixednav");
|
|
2019
|
+
const component$6 = {
|
|
2012
2020
|
props: {
|
|
2013
2021
|
visible: {
|
|
2014
2022
|
type: Boolean,
|
|
@@ -2022,6 +2030,10 @@ var __objRest = (source, exclude) => {
|
|
|
2022
2030
|
default: () => [],
|
|
2023
2031
|
type: Array
|
|
2024
2032
|
},
|
|
2033
|
+
activeColor: {
|
|
2034
|
+
default: "",
|
|
2035
|
+
type: String
|
|
2036
|
+
},
|
|
2025
2037
|
activeText: {
|
|
2026
2038
|
default: "",
|
|
2027
2039
|
type: String
|
|
@@ -2054,6 +2066,7 @@ var __objRest = (source, exclude) => {
|
|
|
2054
2066
|
[props.type]: true
|
|
2055
2067
|
};
|
|
2056
2068
|
});
|
|
2069
|
+
const current = vue.ref(-1);
|
|
2057
2070
|
const updateValue = (value = !props.visible) => {
|
|
2058
2071
|
emit("update:visible", value);
|
|
2059
2072
|
};
|
|
@@ -2062,10 +2075,11 @@ var __objRest = (source, exclude) => {
|
|
|
2062
2075
|
item,
|
|
2063
2076
|
event
|
|
2064
2077
|
});
|
|
2078
|
+
current.value = item.id;
|
|
2065
2079
|
};
|
|
2066
|
-
return { classes, updateValue, selected, translate: translate$t };
|
|
2080
|
+
return { classes, updateValue, selected, translate: translate$t, current };
|
|
2067
2081
|
}
|
|
2068
|
-
}
|
|
2082
|
+
};
|
|
2069
2083
|
const _hoisted_1$1e = { class: "nut-fixednav__list" };
|
|
2070
2084
|
const _hoisted_2$10 = ["onClick"];
|
|
2071
2085
|
const _hoisted_3$M = ["src"];
|
|
@@ -2075,7 +2089,7 @@ var __objRest = (source, exclude) => {
|
|
|
2075
2089
|
class: "b"
|
|
2076
2090
|
};
|
|
2077
2091
|
const _hoisted_6$p = { class: "text" };
|
|
2078
|
-
function
|
|
2092
|
+
function render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2079
2093
|
const _component_nut_overlay = vue.resolveComponent("nut-overlay");
|
|
2080
2094
|
const _component_nut_icon = vue.resolveComponent("nut-icon");
|
|
2081
2095
|
return vue.openBlock(), vue.createElementBlock("view", {
|
|
@@ -2092,7 +2106,7 @@ var __objRest = (source, exclude) => {
|
|
|
2092
2106
|
vue.createElementVNode("view", _hoisted_1$1e, [
|
|
2093
2107
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.navList, (item, index) => {
|
|
2094
2108
|
return vue.openBlock(), vue.createElementBlock("view", {
|
|
2095
|
-
class: "nut-fixednav__list-item",
|
|
2109
|
+
class: vue.normalizeClass(["nut-fixednav__list-item", { active: item.id == _ctx.current }]),
|
|
2096
2110
|
onClick: ($event) => _ctx.selected(item, $event),
|
|
2097
2111
|
key: item.id || index
|
|
2098
2112
|
}, [
|
|
@@ -2101,7 +2115,7 @@ var __objRest = (source, exclude) => {
|
|
|
2101
2115
|
}, null, 8, _hoisted_3$M),
|
|
2102
2116
|
vue.createElementVNode("view", _hoisted_4$C, vue.toDisplayString(item.text), 1),
|
|
2103
2117
|
item.num ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_5$s, vue.toDisplayString(item.num), 1)) : vue.createCommentVNode("", true)
|
|
2104
|
-
],
|
|
2118
|
+
], 10, _hoisted_2$10);
|
|
2105
2119
|
}), 128))
|
|
2106
2120
|
])
|
|
2107
2121
|
]),
|
|
@@ -2119,7 +2133,9 @@ var __objRest = (source, exclude) => {
|
|
|
2119
2133
|
])
|
|
2120
2134
|
], 6);
|
|
2121
2135
|
}
|
|
2122
|
-
|
|
2136
|
+
const { create: create$1z } = createComponent("fixednav");
|
|
2137
|
+
const _sfc_main$1z = create$1z(component$6);
|
|
2138
|
+
var FixedNav = /* @__PURE__ */ _export_sfc(_sfc_main$1z, [["render", render$2]]);
|
|
2123
2139
|
const { componentName: componentName$1d, create: create$1y } = createComponent("menu");
|
|
2124
2140
|
const _sfc_main$1y = create$1y({
|
|
2125
2141
|
props: {
|
|
@@ -2139,6 +2155,7 @@ var __objRest = (source, exclude) => {
|
|
|
2139
2155
|
type: [Number, String],
|
|
2140
2156
|
default: 0
|
|
2141
2157
|
},
|
|
2158
|
+
titleIcon: String,
|
|
2142
2159
|
closeOnClickOverlay: {
|
|
2143
2160
|
type: Boolean,
|
|
2144
2161
|
default: true
|
|
@@ -2167,11 +2184,17 @@ var __objRest = (source, exclude) => {
|
|
|
2167
2184
|
publicChildren.push(child.proxy);
|
|
2168
2185
|
}
|
|
2169
2186
|
};
|
|
2170
|
-
vue.provide(
|
|
2171
|
-
|
|
2172
|
-
|
|
2173
|
-
|
|
2174
|
-
|
|
2187
|
+
vue.provide(
|
|
2188
|
+
"menuParent",
|
|
2189
|
+
Object.assign(
|
|
2190
|
+
{
|
|
2191
|
+
link,
|
|
2192
|
+
children: publicChildren,
|
|
2193
|
+
internalChildren
|
|
2194
|
+
},
|
|
2195
|
+
value
|
|
2196
|
+
)
|
|
2197
|
+
);
|
|
2175
2198
|
};
|
|
2176
2199
|
return {
|
|
2177
2200
|
children: publicChildren,
|
|
@@ -2271,11 +2294,11 @@ var __objRest = (source, exclude) => {
|
|
|
2271
2294
|
class: vue.normalizeClass(["nut-menu__title", _ctx.getClasses(item.state.showPopup)])
|
|
2272
2295
|
}, [
|
|
2273
2296
|
vue.createElementVNode("view", _hoisted_2$$, vue.toDisplayString(item.renderTitle()), 1),
|
|
2274
|
-
vue.createVNode(_component_nut_icon, {
|
|
2275
|
-
name:
|
|
2297
|
+
vue.createVNode(_component_nut_icon, vue.mergeProps(_ctx.$attrs, {
|
|
2298
|
+
name: _ctx.titleIcon || (_ctx.direction === "up" ? "arrow-up" : "down-arrow"),
|
|
2276
2299
|
size: "10",
|
|
2277
2300
|
class: "nut-menu__title-icon"
|
|
2278
|
-
}, null,
|
|
2301
|
+
}), null, 16, ["name"])
|
|
2279
2302
|
], 2)
|
|
2280
2303
|
], 14, _hoisted_1$1d);
|
|
2281
2304
|
}), 128))
|
|
@@ -2301,7 +2324,6 @@ var __objRest = (source, exclude) => {
|
|
|
2301
2324
|
type: Number,
|
|
2302
2325
|
default: 1
|
|
2303
2326
|
},
|
|
2304
|
-
titleIcon: String,
|
|
2305
2327
|
activeTitleClass: String,
|
|
2306
2328
|
inactiveTitleClass: String,
|
|
2307
2329
|
optionIcon: {
|
|
@@ -2344,7 +2366,7 @@ var __objRest = (source, exclude) => {
|
|
|
2344
2366
|
if (parent.props.direction === "down") {
|
|
2345
2367
|
return heightStyle;
|
|
2346
2368
|
} else {
|
|
2347
|
-
return
|
|
2369
|
+
return { ...heightStyle, top: "auto" };
|
|
2348
2370
|
}
|
|
2349
2371
|
});
|
|
2350
2372
|
const toggle = (show = !state.showPopup, options = {}) => {
|
|
@@ -2433,12 +2455,11 @@ var __objRest = (source, exclude) => {
|
|
|
2433
2455
|
style: vue.normalizeStyle({ "flex-basis": 100 / _ctx.cols + "%" }),
|
|
2434
2456
|
onClick: ($event) => _ctx.onClick(option)
|
|
2435
2457
|
}, [
|
|
2436
|
-
option.value === _ctx.modelValue ? (vue.openBlock(), vue.createBlock(_component_nut_icon, {
|
|
2437
|
-
|
|
2438
|
-
class: vue.normalizeClass({ activeTitleClass: option.value === _ctx.modelValue, inactiveTitleClass: option.value !== _ctx.modelValue }),
|
|
2458
|
+
option.value === _ctx.modelValue ? (vue.openBlock(), vue.createBlock(_component_nut_icon, vue.mergeProps({ key: 0 }, _ctx.$attrs, {
|
|
2459
|
+
class: { activeTitleClass: option.value === _ctx.modelValue, inactiveTitleClass: option.value !== _ctx.modelValue },
|
|
2439
2460
|
name: _ctx.optionIcon,
|
|
2440
2461
|
color: _ctx.parent.props.activeColor
|
|
2441
|
-
}, null,
|
|
2462
|
+
}), null, 16, ["class", "name", "color"])) : vue.createCommentVNode("", true),
|
|
2442
2463
|
vue.createElementVNode("view", {
|
|
2443
2464
|
class: vue.normalizeClass({ activeTitleClass: option.value === _ctx.modelValue, inactiveTitleClass: option.value !== _ctx.modelValue }),
|
|
2444
2465
|
style: vue.normalizeStyle({ color: option.value === _ctx.modelValue ? _ctx.parent.props.activeColor : "" })
|
|
@@ -2507,9 +2528,12 @@ var __objRest = (source, exclude) => {
|
|
|
2507
2528
|
changeIndex
|
|
2508
2529
|
});
|
|
2509
2530
|
vue.provide("parent", parentData);
|
|
2510
|
-
vue.watch(
|
|
2511
|
-
|
|
2512
|
-
|
|
2531
|
+
vue.watch(
|
|
2532
|
+
() => props.visible,
|
|
2533
|
+
(value) => {
|
|
2534
|
+
parentData.modelValue = value;
|
|
2535
|
+
}
|
|
2536
|
+
);
|
|
2513
2537
|
return {
|
|
2514
2538
|
changeIndex
|
|
2515
2539
|
};
|
|
@@ -2605,6 +2629,7 @@ var __objRest = (source, exclude) => {
|
|
|
2605
2629
|
return null;
|
|
2606
2630
|
});
|
|
2607
2631
|
vue.watch(choosed, (value, oldValue) => {
|
|
2632
|
+
var _a, _b;
|
|
2608
2633
|
state.active = value;
|
|
2609
2634
|
let index = value;
|
|
2610
2635
|
if (props.name) {
|
|
@@ -2612,20 +2637,18 @@ var __objRest = (source, exclude) => {
|
|
|
2612
2637
|
return item.name == value;
|
|
2613
2638
|
});
|
|
2614
2639
|
}
|
|
2615
|
-
|
|
2616
|
-
|
|
2617
|
-
|
|
2618
|
-
|
|
2619
|
-
|
|
2620
|
-
|
|
2621
|
-
|
|
2622
|
-
|
|
2623
|
-
|
|
2624
|
-
|
|
2625
|
-
location.replace(to);
|
|
2626
|
-
}
|
|
2640
|
+
if ((_a = parent.children[index]) == null ? void 0 : _a.href) {
|
|
2641
|
+
window.location.href = parent.children[index].href;
|
|
2642
|
+
return;
|
|
2643
|
+
}
|
|
2644
|
+
if ((_b = parent.children[index]) == null ? void 0 : _b.to) {
|
|
2645
|
+
let to = parent.children[index].to;
|
|
2646
|
+
if (to && router) {
|
|
2647
|
+
router.push(to);
|
|
2648
|
+
} else {
|
|
2649
|
+
location.replace(to);
|
|
2627
2650
|
}
|
|
2628
|
-
}
|
|
2651
|
+
}
|
|
2629
2652
|
});
|
|
2630
2653
|
return {
|
|
2631
2654
|
state,
|
|
@@ -2841,24 +2864,30 @@ var __objRest = (source, exclude) => {
|
|
|
2841
2864
|
useExpose({
|
|
2842
2865
|
scrollTo
|
|
2843
2866
|
});
|
|
2844
|
-
vue.watch(
|
|
2845
|
-
state.
|
|
2846
|
-
|
|
2847
|
-
|
|
2848
|
-
|
|
2849
|
-
|
|
2850
|
-
|
|
2851
|
-
|
|
2852
|
-
|
|
2853
|
-
|
|
2867
|
+
vue.watch(
|
|
2868
|
+
() => state.listGroup.length,
|
|
2869
|
+
() => {
|
|
2870
|
+
state.listHeight = [];
|
|
2871
|
+
vue.nextTick(calculateHeight);
|
|
2872
|
+
}
|
|
2873
|
+
);
|
|
2874
|
+
vue.watch(
|
|
2875
|
+
() => state.diff,
|
|
2876
|
+
(newVal) => {
|
|
2877
|
+
const listHeight = state.listHeight;
|
|
2878
|
+
let fixedTop = newVal > 0 && newVal < props.titleHeight ? newVal - props.titleHeight : 0;
|
|
2879
|
+
if (state.scrollY + clientHeight.value === listHeight[listHeight.length - 1]) {
|
|
2880
|
+
if (fixedTop !== 0)
|
|
2881
|
+
fixedTop = 0;
|
|
2882
|
+
}
|
|
2883
|
+
if (state.fixedTop === fixedTop)
|
|
2884
|
+
return;
|
|
2885
|
+
state.fixedTop = fixedTop;
|
|
2854
2886
|
}
|
|
2855
|
-
|
|
2856
|
-
|
|
2857
|
-
|
|
2858
|
-
|
|
2859
|
-
return __spreadProps(__spreadValues({
|
|
2860
|
-
classes
|
|
2861
|
-
}, vue.toRefs(state)), {
|
|
2887
|
+
);
|
|
2888
|
+
return {
|
|
2889
|
+
classes,
|
|
2890
|
+
...vue.toRefs(state),
|
|
2862
2891
|
fixedStyle,
|
|
2863
2892
|
clientHeight,
|
|
2864
2893
|
setListGroup,
|
|
@@ -2868,7 +2897,7 @@ var __objRest = (source, exclude) => {
|
|
|
2868
2897
|
touchEnd,
|
|
2869
2898
|
handleClickItem,
|
|
2870
2899
|
handleClickIndex
|
|
2871
|
-
}
|
|
2900
|
+
};
|
|
2872
2901
|
}
|
|
2873
2902
|
});
|
|
2874
2903
|
const _hoisted_1$1a = { class: "nut-elevator__list__item__code" };
|
|
@@ -3199,15 +3228,21 @@ var __objRest = (source, exclude) => {
|
|
|
3199
3228
|
}
|
|
3200
3229
|
findTabsIndex(props.modelValue);
|
|
3201
3230
|
};
|
|
3202
|
-
vue.watch(
|
|
3203
|
-
|
|
3204
|
-
|
|
3205
|
-
|
|
3206
|
-
|
|
3207
|
-
|
|
3208
|
-
|
|
3209
|
-
|
|
3210
|
-
|
|
3231
|
+
vue.watch(
|
|
3232
|
+
() => {
|
|
3233
|
+
var _a;
|
|
3234
|
+
return (_a = slots.default) == null ? void 0 : _a.call(slots);
|
|
3235
|
+
},
|
|
3236
|
+
(vnodes) => {
|
|
3237
|
+
init(vnodes);
|
|
3238
|
+
}
|
|
3239
|
+
);
|
|
3240
|
+
vue.watch(
|
|
3241
|
+
() => props.modelValue,
|
|
3242
|
+
(value) => {
|
|
3243
|
+
findTabsIndex(value);
|
|
3244
|
+
}
|
|
3245
|
+
);
|
|
3211
3246
|
vue.onMounted(init);
|
|
3212
3247
|
vue.onActivated(init);
|
|
3213
3248
|
const contentStyle = vue.computed(() => {
|
|
@@ -3244,13 +3279,14 @@ var __objRest = (source, exclude) => {
|
|
|
3244
3279
|
emit("change", item);
|
|
3245
3280
|
}
|
|
3246
3281
|
};
|
|
3247
|
-
return
|
|
3282
|
+
return {
|
|
3248
3283
|
titles,
|
|
3249
3284
|
contentStyle,
|
|
3250
3285
|
tabsNavStyle,
|
|
3251
3286
|
titleStyle,
|
|
3252
|
-
tabsActiveStyle
|
|
3253
|
-
|
|
3287
|
+
tabsActiveStyle,
|
|
3288
|
+
...methods
|
|
3289
|
+
};
|
|
3254
3290
|
}
|
|
3255
3291
|
};
|
|
3256
3292
|
const _hoisted_1$18 = ["onClick"];
|
|
@@ -3446,10 +3482,11 @@ var __objRest = (source, exclude) => {
|
|
|
3446
3482
|
subtree: false
|
|
3447
3483
|
});
|
|
3448
3484
|
});
|
|
3449
|
-
return
|
|
3485
|
+
return {
|
|
3486
|
+
...vue.toRefs(state),
|
|
3450
3487
|
list,
|
|
3451
3488
|
classes
|
|
3452
|
-
}
|
|
3489
|
+
};
|
|
3453
3490
|
}
|
|
3454
3491
|
});
|
|
3455
3492
|
const _hoisted_1$17 = { class: "nut-sidenavbar__content" };
|
|
@@ -3549,11 +3586,12 @@ var __objRest = (source, exclude) => {
|
|
|
3549
3586
|
vue.onMounted(() => {
|
|
3550
3587
|
state.direction = props.open ? "" : "up";
|
|
3551
3588
|
});
|
|
3552
|
-
return
|
|
3589
|
+
return {
|
|
3590
|
+
...vue.toRefs(state),
|
|
3553
3591
|
classes,
|
|
3554
3592
|
style,
|
|
3555
3593
|
handleClick
|
|
3556
|
-
}
|
|
3594
|
+
};
|
|
3557
3595
|
}
|
|
3558
3596
|
});
|
|
3559
3597
|
const _hoisted_1$15 = ["ikey"];
|
|
@@ -3915,7 +3953,7 @@ var __objRest = (source, exclude) => {
|
|
|
3915
3953
|
const value = typeof idx === "number" ? props.modelValue[idx] : props.modelValue;
|
|
3916
3954
|
return value;
|
|
3917
3955
|
};
|
|
3918
|
-
return
|
|
3956
|
+
return {
|
|
3919
3957
|
root,
|
|
3920
3958
|
classes,
|
|
3921
3959
|
wrapperStyle,
|
|
@@ -3923,8 +3961,8 @@ var __objRest = (source, exclude) => {
|
|
|
3923
3961
|
onClick,
|
|
3924
3962
|
onTouchStart,
|
|
3925
3963
|
onTouchMove,
|
|
3926
|
-
onTouchEnd
|
|
3927
|
-
|
|
3964
|
+
onTouchEnd,
|
|
3965
|
+
...vue.toRefs(props),
|
|
3928
3966
|
barStyle,
|
|
3929
3967
|
curValue,
|
|
3930
3968
|
buttonIndex,
|
|
@@ -3933,7 +3971,7 @@ var __objRest = (source, exclude) => {
|
|
|
3933
3971
|
marksStyle,
|
|
3934
3972
|
marksList,
|
|
3935
3973
|
tickStyle
|
|
3936
|
-
}
|
|
3974
|
+
};
|
|
3937
3975
|
}
|
|
3938
3976
|
});
|
|
3939
3977
|
const _hoisted_1$14 = {
|
|
@@ -4001,12 +4039,15 @@ var __objRest = (source, exclude) => {
|
|
|
4001
4039
|
"aria-valuenow": _ctx.curValue(index),
|
|
4002
4040
|
"aria-valuemax": +_ctx.max,
|
|
4003
4041
|
"aria-orientation": "horizontal",
|
|
4004
|
-
onTouchstart: vue.withModifiers(
|
|
4005
|
-
|
|
4006
|
-
|
|
4007
|
-
|
|
4008
|
-
|
|
4009
|
-
|
|
4042
|
+
onTouchstart: vue.withModifiers(
|
|
4043
|
+
(e) => {
|
|
4044
|
+
if (typeof index === "number") {
|
|
4045
|
+
_ctx.buttonIndex = index;
|
|
4046
|
+
}
|
|
4047
|
+
_ctx.onTouchStart(e);
|
|
4048
|
+
},
|
|
4049
|
+
["stop", "prevent"]
|
|
4050
|
+
),
|
|
4010
4051
|
onTouchmove: _cache[0] || (_cache[0] = vue.withModifiers((...args) => _ctx.onTouchMove && _ctx.onTouchMove(...args), ["stop", "prevent"])),
|
|
4011
4052
|
onTouchend: _cache[1] || (_cache[1] = vue.withModifiers((...args) => _ctx.onTouchEnd && _ctx.onTouchEnd(...args), ["stop", "prevent"])),
|
|
4012
4053
|
onTouchcancel: _cache[2] || (_cache[2] = vue.withModifiers((...args) => _ctx.onTouchEnd && _ctx.onTouchEnd(...args), ["stop", "prevent"])),
|
|
@@ -4029,9 +4070,12 @@ var __objRest = (source, exclude) => {
|
|
|
4029
4070
|
"aria-valuenow": _ctx.curValue(),
|
|
4030
4071
|
"aria-valuemax": +_ctx.max,
|
|
4031
4072
|
"aria-orientation": "horizontal",
|
|
4032
|
-
onTouchstart: _cache[4] || (_cache[4] = vue.withModifiers(
|
|
4033
|
-
|
|
4034
|
-
|
|
4073
|
+
onTouchstart: _cache[4] || (_cache[4] = vue.withModifiers(
|
|
4074
|
+
(e) => {
|
|
4075
|
+
_ctx.onTouchStart(e);
|
|
4076
|
+
},
|
|
4077
|
+
["stop", "prevent"]
|
|
4078
|
+
)),
|
|
4035
4079
|
onTouchmove: _cache[5] || (_cache[5] = vue.withModifiers((...args) => _ctx.onTouchMove && _ctx.onTouchMove(...args), ["stop", "prevent"])),
|
|
4036
4080
|
onTouchend: _cache[6] || (_cache[6] = vue.withModifiers((...args) => _ctx.onTouchEnd && _ctx.onTouchEnd(...args), ["stop", "prevent"])),
|
|
4037
4081
|
onTouchcancel: _cache[7] || (_cache[7] = vue.withModifiers((...args) => _ctx.onTouchEnd && _ctx.onTouchEnd(...args), ["stop", "prevent"])),
|
|
@@ -4182,9 +4226,9 @@ var __objRest = (source, exclude) => {
|
|
|
4182
4226
|
inputsearch.value.focus();
|
|
4183
4227
|
}
|
|
4184
4228
|
});
|
|
4185
|
-
return
|
|
4186
|
-
inputsearch
|
|
4187
|
-
|
|
4229
|
+
return {
|
|
4230
|
+
inputsearch,
|
|
4231
|
+
...vue.toRefs(state),
|
|
4188
4232
|
valueChange,
|
|
4189
4233
|
valueFocus,
|
|
4190
4234
|
valueBlur,
|
|
@@ -4197,7 +4241,7 @@ var __objRest = (source, exclude) => {
|
|
|
4197
4241
|
leftIconClick,
|
|
4198
4242
|
rightIconClick,
|
|
4199
4243
|
styleSearchbar
|
|
4200
|
-
}
|
|
4244
|
+
};
|
|
4201
4245
|
}
|
|
4202
4246
|
});
|
|
4203
4247
|
const _hoisted_1$13 = {
|
|
@@ -4286,16 +4330,16 @@ var __objRest = (source, exclude) => {
|
|
|
4286
4330
|
var SearchBar = /* @__PURE__ */ _export_sfc(_sfc_main$1l, [["render", _sfc_render$1f]]);
|
|
4287
4331
|
const formatTree = (tree, parent, config) => tree.map((node) => {
|
|
4288
4332
|
const { value: valueKey = "value", text: textKey = "text", children: childrenKey = "children" } = config;
|
|
4289
|
-
const
|
|
4290
|
-
const newNode =
|
|
4291
|
-
loading: false
|
|
4292
|
-
|
|
4333
|
+
const { [valueKey]: value, [textKey]: text, [childrenKey]: children, ...others } = node;
|
|
4334
|
+
const newNode = {
|
|
4335
|
+
loading: false,
|
|
4336
|
+
...others,
|
|
4293
4337
|
level: parent ? (parent && parent.level || 0) + 1 : 0,
|
|
4294
4338
|
value,
|
|
4295
4339
|
text,
|
|
4296
4340
|
children,
|
|
4297
4341
|
_parent: parent
|
|
4298
|
-
}
|
|
4342
|
+
};
|
|
4299
4343
|
if (newNode.children && newNode.children.length) {
|
|
4300
4344
|
newNode.children = formatTree(newNode.children, newNode, config);
|
|
4301
4345
|
}
|
|
@@ -4320,12 +4364,15 @@ var __objRest = (source, exclude) => {
|
|
|
4320
4364
|
sortKey: ""
|
|
4321
4365
|
};
|
|
4322
4366
|
const convertListToOptions = (list, options) => {
|
|
4323
|
-
const mergedOptions =
|
|
4367
|
+
const mergedOptions = {
|
|
4368
|
+
...defaultConvertConfig,
|
|
4369
|
+
...options || {}
|
|
4370
|
+
};
|
|
4324
4371
|
const { topId, idKey, pidKey, sortKey } = mergedOptions;
|
|
4325
4372
|
let result = [];
|
|
4326
4373
|
let map = {};
|
|
4327
4374
|
list.forEach((node) => {
|
|
4328
|
-
node =
|
|
4375
|
+
node = { ...node };
|
|
4329
4376
|
const { [idKey]: id, [pidKey]: pid } = node;
|
|
4330
4377
|
const children = map[pid] = map[pid] || [];
|
|
4331
4378
|
if (!result.length && pid === topId) {
|
|
@@ -4346,11 +4393,12 @@ var __objRest = (source, exclude) => {
|
|
|
4346
4393
|
};
|
|
4347
4394
|
class Tree {
|
|
4348
4395
|
constructor(nodes, config) {
|
|
4349
|
-
this.config =
|
|
4396
|
+
this.config = {
|
|
4350
4397
|
value: "value",
|
|
4351
4398
|
text: "text",
|
|
4352
|
-
children: "children"
|
|
4353
|
-
|
|
4399
|
+
children: "children",
|
|
4400
|
+
...config || {}
|
|
4401
|
+
};
|
|
4354
4402
|
this.nodes = formatTree(nodes, null, this.config);
|
|
4355
4403
|
}
|
|
4356
4404
|
updateChildren(nodes, parent) {
|
|
@@ -4598,24 +4646,34 @@ var __objRest = (source, exclude) => {
|
|
|
4598
4646
|
return pane.selectedNode && pane.selectedNode.value === node.value;
|
|
4599
4647
|
}
|
|
4600
4648
|
};
|
|
4601
|
-
vue.watch(
|
|
4602
|
-
|
|
4603
|
-
|
|
4604
|
-
|
|
4605
|
-
|
|
4606
|
-
|
|
4607
|
-
|
|
4608
|
-
|
|
4609
|
-
|
|
4610
|
-
|
|
4649
|
+
vue.watch(
|
|
4650
|
+
[configs, () => props.options],
|
|
4651
|
+
() => {
|
|
4652
|
+
init();
|
|
4653
|
+
},
|
|
4654
|
+
{
|
|
4655
|
+
deep: true,
|
|
4656
|
+
immediate: true
|
|
4657
|
+
}
|
|
4658
|
+
);
|
|
4659
|
+
vue.watch(
|
|
4660
|
+
() => props.modelValue,
|
|
4661
|
+
(value) => {
|
|
4662
|
+
if (value !== innerValue.value) {
|
|
4663
|
+
innerValue.value = value;
|
|
4664
|
+
syncValue();
|
|
4665
|
+
}
|
|
4611
4666
|
}
|
|
4612
|
-
|
|
4613
|
-
vue.watch(
|
|
4614
|
-
|
|
4615
|
-
|
|
4667
|
+
);
|
|
4668
|
+
vue.watch(
|
|
4669
|
+
() => props.visible,
|
|
4670
|
+
(val) => {
|
|
4671
|
+
if (val && Array.isArray(innerValue.value) && innerValue.value.length > 0) {
|
|
4672
|
+
syncValue();
|
|
4673
|
+
}
|
|
4616
4674
|
}
|
|
4617
|
-
|
|
4618
|
-
return
|
|
4675
|
+
);
|
|
4676
|
+
return { panes, initLoading, tabsCursor, ...methods };
|
|
4619
4677
|
}
|
|
4620
4678
|
});
|
|
4621
4679
|
const _hoisted_1$12 = {
|
|
@@ -4688,7 +4746,8 @@ var __objRest = (source, exclude) => {
|
|
|
4688
4746
|
components: {
|
|
4689
4747
|
[CascaderItem.name]: CascaderItem
|
|
4690
4748
|
},
|
|
4691
|
-
props:
|
|
4749
|
+
props: {
|
|
4750
|
+
...popupProps,
|
|
4692
4751
|
modelValue: Array,
|
|
4693
4752
|
visible: Boolean,
|
|
4694
4753
|
title: String,
|
|
@@ -4711,7 +4770,7 @@ var __objRest = (source, exclude) => {
|
|
|
4711
4770
|
default: "children"
|
|
4712
4771
|
},
|
|
4713
4772
|
convertConfig: Object
|
|
4714
|
-
}
|
|
4773
|
+
},
|
|
4715
4774
|
emits: ["update:modelValue", "change", "pathChange", "update:visible"],
|
|
4716
4775
|
setup(props, { emit }) {
|
|
4717
4776
|
const innerValue = vue.ref(props.modelValue);
|
|
@@ -4732,11 +4791,14 @@ var __objRest = (source, exclude) => {
|
|
|
4732
4791
|
const onPathChange = (pathNodes) => {
|
|
4733
4792
|
emit("pathChange", pathNodes);
|
|
4734
4793
|
};
|
|
4735
|
-
vue.watch(
|
|
4736
|
-
|
|
4737
|
-
|
|
4794
|
+
vue.watch(
|
|
4795
|
+
() => props.modelValue,
|
|
4796
|
+
(value) => {
|
|
4797
|
+
if (value !== innerValue.value) {
|
|
4798
|
+
innerValue.value = value;
|
|
4799
|
+
}
|
|
4738
4800
|
}
|
|
4739
|
-
|
|
4801
|
+
);
|
|
4740
4802
|
return {
|
|
4741
4803
|
onChange,
|
|
4742
4804
|
onPathChange,
|
|
@@ -5173,11 +5235,17 @@ var __objRest = (source, exclude) => {
|
|
|
5173
5235
|
}
|
|
5174
5236
|
monthInfo.cssScrollHeight = cssScrollHeight;
|
|
5175
5237
|
if (type == "next") {
|
|
5176
|
-
if (!state.endData || !Utils.compareDate(
|
|
5238
|
+
if (!state.endData || !Utils.compareDate(
|
|
5239
|
+
`${state.endData[0]}-${state.endData[1]}-${Utils.getMonthDays(state.endData[0], state.endData[1])}`,
|
|
5240
|
+
`${curData[0]}-${curData[1]}-${curData[2]}`
|
|
5241
|
+
)) {
|
|
5177
5242
|
state.monthsData.push(monthInfo);
|
|
5178
5243
|
}
|
|
5179
5244
|
} else {
|
|
5180
|
-
if (!state.startData || !Utils.compareDate(
|
|
5245
|
+
if (!state.startData || !Utils.compareDate(
|
|
5246
|
+
`${curData[0]}-${curData[1]}-${curData[2]}`,
|
|
5247
|
+
`${state.startData[0]}-${state.startData[1]}-01`
|
|
5248
|
+
)) {
|
|
5181
5249
|
state.monthsData.unshift(monthInfo);
|
|
5182
5250
|
} else {
|
|
5183
5251
|
state.unLoadPrev = true;
|
|
@@ -5229,9 +5297,9 @@ var __objRest = (source, exclude) => {
|
|
|
5229
5297
|
if (state.currDate.length > 0) {
|
|
5230
5298
|
let defaultArr = [];
|
|
5231
5299
|
let obj = {};
|
|
5232
|
-
state.currDate.forEach((item
|
|
5300
|
+
state.currDate.forEach((item) => {
|
|
5233
5301
|
if (propStartDate && !Utils.compareDate(item, propStartDate) && propEndDate && !Utils.compareDate(propEndDate, item)) {
|
|
5234
|
-
if (!
|
|
5302
|
+
if (!Object.hasOwnProperty.call(obj, item)) {
|
|
5235
5303
|
defaultArr.push(item);
|
|
5236
5304
|
obj[item] = item;
|
|
5237
5305
|
}
|
|
@@ -5360,7 +5428,7 @@ var __objRest = (source, exclude) => {
|
|
|
5360
5428
|
}
|
|
5361
5429
|
return false;
|
|
5362
5430
|
};
|
|
5363
|
-
const rangeTip = (
|
|
5431
|
+
const rangeTip = () => {
|
|
5364
5432
|
if (state.currDate.length >= 2) {
|
|
5365
5433
|
return Utils.isEqual(state.currDate[0], state.currDate[1]);
|
|
5366
5434
|
}
|
|
@@ -5410,14 +5478,17 @@ var __objRest = (source, exclude) => {
|
|
|
5410
5478
|
initData();
|
|
5411
5479
|
};
|
|
5412
5480
|
initData();
|
|
5413
|
-
vue.watch(
|
|
5414
|
-
|
|
5415
|
-
|
|
5416
|
-
|
|
5481
|
+
vue.watch(
|
|
5482
|
+
() => props.defaultValue,
|
|
5483
|
+
(val) => {
|
|
5484
|
+
if (val) {
|
|
5485
|
+
if (props.poppable) {
|
|
5486
|
+
resetRender();
|
|
5487
|
+
}
|
|
5417
5488
|
}
|
|
5418
5489
|
}
|
|
5419
|
-
|
|
5420
|
-
return
|
|
5490
|
+
);
|
|
5491
|
+
return {
|
|
5421
5492
|
weeks,
|
|
5422
5493
|
compConthsData,
|
|
5423
5494
|
showTopBtn,
|
|
@@ -5434,10 +5505,11 @@ var __objRest = (source, exclude) => {
|
|
|
5434
5505
|
monthsPanel,
|
|
5435
5506
|
months,
|
|
5436
5507
|
weeksPanel,
|
|
5437
|
-
viewArea
|
|
5438
|
-
|
|
5508
|
+
viewArea,
|
|
5509
|
+
...vue.toRefs(state),
|
|
5510
|
+
...vue.toRefs(props),
|
|
5439
5511
|
translate: translate$p
|
|
5440
|
-
}
|
|
5512
|
+
};
|
|
5441
5513
|
}
|
|
5442
5514
|
});
|
|
5443
5515
|
const _hoisted_1$10 = {
|
|
@@ -5463,12 +5535,12 @@ var __objRest = (source, exclude) => {
|
|
|
5463
5535
|
const _hoisted_6$l = { class: "calendar-month-title" };
|
|
5464
5536
|
const _hoisted_7$i = { class: "calendar-month-con" };
|
|
5465
5537
|
const _hoisted_8$d = ["onClick"];
|
|
5466
|
-
const _hoisted_9$
|
|
5467
|
-
const _hoisted_10$
|
|
5538
|
+
const _hoisted_9$9 = { class: "calendar-day" };
|
|
5539
|
+
const _hoisted_10$6 = {
|
|
5468
5540
|
key: 0,
|
|
5469
5541
|
class: "calendar-curr-tips calendar-curr-tips-top"
|
|
5470
5542
|
};
|
|
5471
|
-
const _hoisted_11$
|
|
5543
|
+
const _hoisted_11$6 = {
|
|
5472
5544
|
key: 1,
|
|
5473
5545
|
class: "calendar-curr-tips calendar-curr-tips-bottom"
|
|
5474
5546
|
};
|
|
@@ -5480,7 +5552,7 @@ var __objRest = (source, exclude) => {
|
|
|
5480
5552
|
key: 4,
|
|
5481
5553
|
class: "calendar-day-tip"
|
|
5482
5554
|
};
|
|
5483
|
-
const _hoisted_14$
|
|
5555
|
+
const _hoisted_14$3 = {
|
|
5484
5556
|
key: 0,
|
|
5485
5557
|
class: "nut-calendar-footer"
|
|
5486
5558
|
};
|
|
@@ -5535,19 +5607,19 @@ var __objRest = (source, exclude) => {
|
|
|
5535
5607
|
class: vue.normalizeClass(["calendar-month-day", _ctx.getClass(day, month)]),
|
|
5536
5608
|
onClick: ($event) => _ctx.chooseDay(day, month)
|
|
5537
5609
|
}, [
|
|
5538
|
-
vue.createElementVNode("view", _hoisted_9$
|
|
5610
|
+
vue.createElementVNode("view", _hoisted_9$9, [
|
|
5539
5611
|
vue.renderSlot(_ctx.$slots, "day", {
|
|
5540
5612
|
date: day.type == "curr" ? day : ""
|
|
5541
5613
|
}, () => [
|
|
5542
5614
|
vue.createTextVNode(vue.toDisplayString(day.type == "curr" ? day.day : ""), 1)
|
|
5543
5615
|
])
|
|
5544
5616
|
]),
|
|
5545
|
-
_ctx.topInfo ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_10$
|
|
5617
|
+
_ctx.topInfo ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_10$6, [
|
|
5546
5618
|
vue.renderSlot(_ctx.$slots, "topInfo", {
|
|
5547
5619
|
date: day.type == "curr" ? day : ""
|
|
5548
5620
|
})
|
|
5549
5621
|
])) : vue.createCommentVNode("", true),
|
|
5550
|
-
_ctx.bottomInfo ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_11$
|
|
5622
|
+
_ctx.bottomInfo ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_11$6, [
|
|
5551
5623
|
vue.renderSlot(_ctx.$slots, "bottomInfo", {
|
|
5552
5624
|
date: day.type == "curr" ? day : ""
|
|
5553
5625
|
})
|
|
@@ -5555,7 +5627,7 @@ var __objRest = (source, exclude) => {
|
|
|
5555
5627
|
!_ctx.bottomInfo && _ctx.showToday && _ctx.isCurrDay(day) ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_12$5, vue.toDisplayString(_ctx.translate("today")), 1)) : vue.createCommentVNode("", true),
|
|
5556
5628
|
_ctx.isStartTip(day, month) ? (vue.openBlock(), vue.createElementBlock("view", {
|
|
5557
5629
|
key: 3,
|
|
5558
|
-
class: vue.normalizeClass(["calendar-day-tip", { "calendar-curr-tips-top": _ctx.rangeTip(
|
|
5630
|
+
class: vue.normalizeClass(["calendar-day-tip", { "calendar-curr-tips-top": _ctx.rangeTip() }])
|
|
5559
5631
|
}, vue.toDisplayString(_ctx.startText || _ctx.translate("start")), 3)) : vue.createCommentVNode("", true),
|
|
5560
5632
|
_ctx.isEndTip(day, month) ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_13$3, vue.toDisplayString(_ctx.endText || _ctx.translate("end")), 1)) : vue.createCommentVNode("", true)
|
|
5561
5633
|
], 10, _hoisted_8$d);
|
|
@@ -5567,7 +5639,7 @@ var __objRest = (source, exclude) => {
|
|
|
5567
5639
|
], 4)
|
|
5568
5640
|
], 512)
|
|
5569
5641
|
], 544),
|
|
5570
|
-
_ctx.poppable && !_ctx.isAutoBackFill ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_14$
|
|
5642
|
+
_ctx.poppable && !_ctx.isAutoBackFill ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_14$3, [
|
|
5571
5643
|
vue.createElementVNode("view", {
|
|
5572
5644
|
class: "calendar-confirm-btn",
|
|
5573
5645
|
onClick: _cache[1] || (_cache[1] = (...args) => _ctx.confirm && _ctx.confirm(...args))
|
|
@@ -5590,6 +5662,10 @@ var __objRest = (source, exclude) => {
|
|
|
5590
5662
|
type: Boolean,
|
|
5591
5663
|
default: false
|
|
5592
5664
|
},
|
|
5665
|
+
toDateAnimation: {
|
|
5666
|
+
type: Boolean,
|
|
5667
|
+
default: true
|
|
5668
|
+
},
|
|
5593
5669
|
poppable: {
|
|
5594
5670
|
type: Boolean,
|
|
5595
5671
|
default: true
|
|
@@ -5726,7 +5802,8 @@ var __objRest = (source, exclude) => {
|
|
|
5726
5802
|
onSelect: _ctx.select,
|
|
5727
5803
|
"show-today": _ctx.showToday,
|
|
5728
5804
|
"show-title": _ctx.showTitle,
|
|
5729
|
-
"show-sub-title": _ctx.showSubTitle
|
|
5805
|
+
"show-sub-title": _ctx.showSubTitle,
|
|
5806
|
+
"to-date-animation": _ctx.toDateAnimation
|
|
5730
5807
|
}, vue.createSlots({ _: 2 }, [
|
|
5731
5808
|
_ctx.showTopBtn ? {
|
|
5732
5809
|
name: "btn",
|
|
@@ -5758,7 +5835,7 @@ var __objRest = (source, exclude) => {
|
|
|
5758
5835
|
})
|
|
5759
5836
|
])
|
|
5760
5837
|
} : void 0
|
|
5761
|
-
]), 1032, ["type", "is-auto-back-fill", "poppable", "title", "confirm-text", "start-text", "end-text", "default-value", "start-date", "end-date", "onUpdate", "onClose", "onChoose", "onSelect", "show-today", "show-title", "show-sub-title"])) : vue.createCommentVNode("", true)
|
|
5838
|
+
]), 1032, ["type", "is-auto-back-fill", "poppable", "title", "confirm-text", "start-text", "end-text", "default-value", "start-date", "end-date", "onUpdate", "onClose", "onChoose", "onSelect", "show-today", "show-title", "show-sub-title", "to-date-animation"])) : vue.createCommentVNode("", true)
|
|
5762
5839
|
]),
|
|
5763
5840
|
_: 3
|
|
5764
5841
|
}, 8, ["visible", "onClickOverlay", "onClickCloseIcon"])) : (vue.openBlock(), vue.createBlock(_component_nut_calendar_item, {
|
|
@@ -5780,6 +5857,7 @@ var __objRest = (source, exclude) => {
|
|
|
5780
5857
|
"show-today": _ctx.showToday,
|
|
5781
5858
|
"show-title": _ctx.showTitle,
|
|
5782
5859
|
"show-sub-title": _ctx.showSubTitle,
|
|
5860
|
+
"to-date-animation": _ctx.toDateAnimation,
|
|
5783
5861
|
ref: "calendarRef"
|
|
5784
5862
|
}, vue.createSlots({ _: 2 }, [
|
|
5785
5863
|
_ctx.showTopBtn ? {
|
|
@@ -5812,7 +5890,7 @@ var __objRest = (source, exclude) => {
|
|
|
5812
5890
|
})
|
|
5813
5891
|
])
|
|
5814
5892
|
} : void 0
|
|
5815
|
-
]), 1032, ["type", "is-auto-back-fill", "poppable", "title", "confirm-text", "start-text", "end-text", "default-value", "start-date", "end-date", "onUpdate", "onClose", "onChoose", "onSelect", "show-today", "show-title", "show-sub-title"]));
|
|
5893
|
+
]), 1032, ["type", "is-auto-back-fill", "poppable", "title", "confirm-text", "start-text", "end-text", "default-value", "start-date", "end-date", "onUpdate", "onClose", "onChoose", "onSelect", "show-today", "show-title", "show-sub-title", "to-date-animation"]));
|
|
5816
5894
|
}
|
|
5817
5895
|
var Calendar = /* @__PURE__ */ _export_sfc(_sfc_main$1h, [["render", _sfc_render$1b]]);
|
|
5818
5896
|
const component$4 = (componentName2, nutIcon) => {
|
|
@@ -5893,13 +5971,16 @@ var __objRest = (source, exclude) => {
|
|
|
5893
5971
|
emit("update:modelValue", value);
|
|
5894
5972
|
emit("change", value, label);
|
|
5895
5973
|
};
|
|
5896
|
-
vue.watch(
|
|
5897
|
-
|
|
5898
|
-
|
|
5899
|
-
|
|
5900
|
-
|
|
5974
|
+
vue.watch(
|
|
5975
|
+
() => props.modelValue,
|
|
5976
|
+
(v) => {
|
|
5977
|
+
if (updateType == "click") {
|
|
5978
|
+
updateType = "";
|
|
5979
|
+
} else {
|
|
5980
|
+
emit("change", v);
|
|
5981
|
+
}
|
|
5901
5982
|
}
|
|
5902
|
-
|
|
5983
|
+
);
|
|
5903
5984
|
const renderIcon = () => {
|
|
5904
5985
|
const { iconName, iconSize, iconActiveName, iconClassPrefix, iconFontClassName, iconIndeterminateName } = props;
|
|
5905
5986
|
return vue.h(nutIcon, {
|
|
@@ -5912,9 +5993,13 @@ var __objRest = (source, exclude) => {
|
|
|
5912
5993
|
};
|
|
5913
5994
|
const renderLabel = () => {
|
|
5914
5995
|
var _a;
|
|
5915
|
-
return vue.h(
|
|
5916
|
-
|
|
5917
|
-
|
|
5996
|
+
return vue.h(
|
|
5997
|
+
"view",
|
|
5998
|
+
{
|
|
5999
|
+
class: `${componentName2}__label ${pDisabled.value ? `${componentName2}__label--disabled` : ""}`
|
|
6000
|
+
},
|
|
6001
|
+
(_a = slots.default) == null ? void 0 : _a.call(slots)
|
|
6002
|
+
);
|
|
5918
6003
|
};
|
|
5919
6004
|
const handleClick = (e) => {
|
|
5920
6005
|
var _a, _b;
|
|
@@ -5942,14 +6027,21 @@ var __objRest = (source, exclude) => {
|
|
|
5942
6027
|
vue.onMounted(() => {
|
|
5943
6028
|
hasParent.value && parent["relation"](vue.getCurrentInstance());
|
|
5944
6029
|
});
|
|
5945
|
-
vue.watch(
|
|
5946
|
-
|
|
5947
|
-
|
|
6030
|
+
vue.watch(
|
|
6031
|
+
() => props.indeterminate,
|
|
6032
|
+
(newVal) => {
|
|
6033
|
+
state.partialSelect = newVal;
|
|
6034
|
+
}
|
|
6035
|
+
);
|
|
5948
6036
|
return () => {
|
|
5949
|
-
return vue.h(
|
|
5950
|
-
|
|
5951
|
-
|
|
5952
|
-
|
|
6037
|
+
return vue.h(
|
|
6038
|
+
"view",
|
|
6039
|
+
{
|
|
6040
|
+
class: `${componentName2} ${props.textPosition === "left" ? `${componentName2}--reverse` : ""}`,
|
|
6041
|
+
onClick: handleClick
|
|
6042
|
+
},
|
|
6043
|
+
[renderIcon(), renderLabel()]
|
|
6044
|
+
);
|
|
5953
6045
|
};
|
|
5954
6046
|
}
|
|
5955
6047
|
};
|
|
@@ -6018,15 +6110,22 @@ var __objRest = (source, exclude) => {
|
|
|
6018
6110
|
updateValue,
|
|
6019
6111
|
relation
|
|
6020
6112
|
});
|
|
6021
|
-
vue.watch(
|
|
6022
|
-
|
|
6023
|
-
|
|
6113
|
+
vue.watch(
|
|
6114
|
+
() => props.modelValue,
|
|
6115
|
+
(value) => {
|
|
6116
|
+
emit("change", value);
|
|
6117
|
+
}
|
|
6118
|
+
);
|
|
6024
6119
|
useExpose({ toggleAll, toggleReverse });
|
|
6025
6120
|
return () => {
|
|
6026
6121
|
var _a;
|
|
6027
|
-
return vue.h(
|
|
6028
|
-
|
|
6029
|
-
|
|
6122
|
+
return vue.h(
|
|
6123
|
+
"view",
|
|
6124
|
+
{
|
|
6125
|
+
class: `${componentName$13}`
|
|
6126
|
+
},
|
|
6127
|
+
(_a = slots.default) == null ? void 0 : _a.call(slots)
|
|
6128
|
+
);
|
|
6030
6129
|
};
|
|
6031
6130
|
}
|
|
6032
6131
|
});
|
|
@@ -6050,6 +6149,10 @@ var __objRest = (source, exclude) => {
|
|
|
6050
6149
|
threeDimensional: {
|
|
6051
6150
|
type: Boolean,
|
|
6052
6151
|
default: true
|
|
6152
|
+
},
|
|
6153
|
+
swipeDuration: {
|
|
6154
|
+
type: [Number, String],
|
|
6155
|
+
default: 1e3
|
|
6053
6156
|
}
|
|
6054
6157
|
},
|
|
6055
6158
|
emits: ["click", "change"],
|
|
@@ -6077,6 +6180,7 @@ var __objRest = (source, exclude) => {
|
|
|
6077
6180
|
const moving = vue.ref(false);
|
|
6078
6181
|
const touchDeg = vue.ref(0);
|
|
6079
6182
|
const touchTime = vue.ref(0);
|
|
6183
|
+
const DEFAULT_DURATION = 200;
|
|
6080
6184
|
const INERTIA_TIME = 300;
|
|
6081
6185
|
const INERTIA_DISTANCE = 15;
|
|
6082
6186
|
const touchRollerStyle = vue.computed(() => {
|
|
@@ -6125,7 +6229,7 @@ var __objRest = (source, exclude) => {
|
|
|
6125
6229
|
let moveTime = state.touchParams.lastTime - state.touchParams.startTime;
|
|
6126
6230
|
if (moveTime <= INERTIA_TIME && Math.abs(move) > INERTIA_DISTANCE) {
|
|
6127
6231
|
const distance = momentum(move, moveTime);
|
|
6128
|
-
setMove(distance, "end",
|
|
6232
|
+
setMove(distance, "end", +props.swipeDuration);
|
|
6129
6233
|
return;
|
|
6130
6234
|
} else {
|
|
6131
6235
|
setMove(move, "end");
|
|
@@ -6147,7 +6251,7 @@ var __objRest = (source, exclude) => {
|
|
|
6147
6251
|
return false;
|
|
6148
6252
|
}
|
|
6149
6253
|
};
|
|
6150
|
-
const setTransform = (translateY = 0, type, time =
|
|
6254
|
+
const setTransform = (translateY = 0, type, time = DEFAULT_DURATION, deg) => {
|
|
6151
6255
|
if (type === "end") {
|
|
6152
6256
|
touchTime.value = time;
|
|
6153
6257
|
} else {
|
|
@@ -6204,24 +6308,34 @@ var __objRest = (source, exclude) => {
|
|
|
6204
6308
|
moving.value = false;
|
|
6205
6309
|
setChooseValue();
|
|
6206
6310
|
};
|
|
6207
|
-
vue.watch(
|
|
6208
|
-
|
|
6311
|
+
vue.watch(
|
|
6312
|
+
() => props.column,
|
|
6313
|
+
(val) => {
|
|
6314
|
+
if (props.column && props.column.length > 0) {
|
|
6315
|
+
state.transformY = 0;
|
|
6316
|
+
modifyStatus(false);
|
|
6317
|
+
}
|
|
6318
|
+
},
|
|
6319
|
+
{
|
|
6320
|
+
deep: true
|
|
6321
|
+
}
|
|
6322
|
+
);
|
|
6323
|
+
vue.watch(
|
|
6324
|
+
() => props.value,
|
|
6325
|
+
(val) => {
|
|
6209
6326
|
state.transformY = 0;
|
|
6210
6327
|
modifyStatus(false);
|
|
6328
|
+
},
|
|
6329
|
+
{
|
|
6330
|
+
deep: true
|
|
6211
6331
|
}
|
|
6212
|
-
|
|
6213
|
-
deep: true
|
|
6214
|
-
});
|
|
6215
|
-
vue.watch(() => props.value, (val) => {
|
|
6216
|
-
state.transformY = 0;
|
|
6217
|
-
modifyStatus(false);
|
|
6218
|
-
}, {
|
|
6219
|
-
deep: true
|
|
6220
|
-
});
|
|
6332
|
+
);
|
|
6221
6333
|
vue.onMounted(() => {
|
|
6222
6334
|
modifyStatus(true);
|
|
6223
6335
|
});
|
|
6224
|
-
return
|
|
6336
|
+
return {
|
|
6337
|
+
...vue.toRefs(state),
|
|
6338
|
+
...vue.toRefs(props),
|
|
6225
6339
|
wrapper,
|
|
6226
6340
|
setRollerStyle,
|
|
6227
6341
|
isHidden,
|
|
@@ -6234,7 +6348,7 @@ var __objRest = (source, exclude) => {
|
|
|
6234
6348
|
touchTileStyle,
|
|
6235
6349
|
setMove,
|
|
6236
6350
|
stopMomentum
|
|
6237
|
-
}
|
|
6351
|
+
};
|
|
6238
6352
|
}
|
|
6239
6353
|
});
|
|
6240
6354
|
const _hoisted_1$$ = {
|
|
@@ -6289,7 +6403,8 @@ var __objRest = (source, exclude) => {
|
|
|
6289
6403
|
[column$1.name]: column$1,
|
|
6290
6404
|
[Popup.name]: Popup
|
|
6291
6405
|
},
|
|
6292
|
-
props:
|
|
6406
|
+
props: {
|
|
6407
|
+
...popupProps,
|
|
6293
6408
|
modelValue: {
|
|
6294
6409
|
type: Array,
|
|
6295
6410
|
default: () => []
|
|
@@ -6319,8 +6434,12 @@ var __objRest = (source, exclude) => {
|
|
|
6319
6434
|
threeDimensional: {
|
|
6320
6435
|
type: Boolean,
|
|
6321
6436
|
default: true
|
|
6437
|
+
},
|
|
6438
|
+
swipeDuration: {
|
|
6439
|
+
type: [Number, String],
|
|
6440
|
+
default: 1e3
|
|
6322
6441
|
}
|
|
6323
|
-
}
|
|
6442
|
+
},
|
|
6324
6443
|
emits: ["close", "change", "confirm", "update:visible", "update:modelValue"],
|
|
6325
6444
|
setup(props, { emit }) {
|
|
6326
6445
|
const state = vue.reactive({
|
|
@@ -6418,6 +6537,12 @@ var __objRest = (source, exclude) => {
|
|
|
6418
6537
|
}
|
|
6419
6538
|
};
|
|
6420
6539
|
const confirmHandler = () => {
|
|
6540
|
+
if (defaultValues.value && !defaultValues.value.length) {
|
|
6541
|
+
columnsList.value.forEach((columns) => {
|
|
6542
|
+
defaultValues.value.push(columns[0].value);
|
|
6543
|
+
selectedOptions.value.push(columns[0]);
|
|
6544
|
+
});
|
|
6545
|
+
}
|
|
6421
6546
|
emit("confirm", {
|
|
6422
6547
|
selectedValue: defaultValues.value,
|
|
6423
6548
|
selectedOptions: selectedOptions.value
|
|
@@ -6432,28 +6557,42 @@ var __objRest = (source, exclude) => {
|
|
|
6432
6557
|
if (props.visible)
|
|
6433
6558
|
state.show = false;
|
|
6434
6559
|
});
|
|
6435
|
-
vue.watch(
|
|
6436
|
-
|
|
6437
|
-
|
|
6438
|
-
|
|
6439
|
-
|
|
6440
|
-
|
|
6441
|
-
|
|
6442
|
-
|
|
6443
|
-
|
|
6444
|
-
|
|
6445
|
-
|
|
6446
|
-
|
|
6447
|
-
|
|
6448
|
-
|
|
6449
|
-
|
|
6450
|
-
|
|
6451
|
-
|
|
6452
|
-
|
|
6453
|
-
|
|
6454
|
-
|
|
6455
|
-
|
|
6456
|
-
|
|
6560
|
+
vue.watch(
|
|
6561
|
+
() => props.modelValue,
|
|
6562
|
+
(newValues) => {
|
|
6563
|
+
const isSameValue = JSON.stringify(newValues) === JSON.stringify(defaultValues.value);
|
|
6564
|
+
if (!isSameValue) {
|
|
6565
|
+
defaultValues.value = newValues;
|
|
6566
|
+
}
|
|
6567
|
+
},
|
|
6568
|
+
{ deep: true }
|
|
6569
|
+
);
|
|
6570
|
+
vue.watch(
|
|
6571
|
+
defaultValues,
|
|
6572
|
+
(newValues) => {
|
|
6573
|
+
const isSameValue = JSON.stringify(newValues) === JSON.stringify(props.modelValue);
|
|
6574
|
+
if (!isSameValue) {
|
|
6575
|
+
emit("update:modelValue", newValues);
|
|
6576
|
+
}
|
|
6577
|
+
},
|
|
6578
|
+
{ immediate: true }
|
|
6579
|
+
);
|
|
6580
|
+
vue.watch(
|
|
6581
|
+
() => props.visible,
|
|
6582
|
+
(val) => {
|
|
6583
|
+
state.show = val;
|
|
6584
|
+
}
|
|
6585
|
+
);
|
|
6586
|
+
vue.watch(
|
|
6587
|
+
() => props.columns,
|
|
6588
|
+
(val) => {
|
|
6589
|
+
if (val.length)
|
|
6590
|
+
state.formattedColumns = val;
|
|
6591
|
+
}
|
|
6592
|
+
);
|
|
6593
|
+
return {
|
|
6594
|
+
classes,
|
|
6595
|
+
...vue.toRefs(state),
|
|
6457
6596
|
column: column$1,
|
|
6458
6597
|
columnsType,
|
|
6459
6598
|
columnsList,
|
|
@@ -6462,7 +6601,7 @@ var __objRest = (source, exclude) => {
|
|
|
6462
6601
|
confirmHandler,
|
|
6463
6602
|
defaultValues,
|
|
6464
6603
|
translate: translate$o
|
|
6465
|
-
}
|
|
6604
|
+
};
|
|
6466
6605
|
}
|
|
6467
6606
|
});
|
|
6468
6607
|
const _hoisted_1$_ = { class: "nut-picker__bar" };
|
|
@@ -6516,10 +6655,11 @@ var __objRest = (source, exclude) => {
|
|
|
6516
6655
|
columnsType: _ctx.columnsType,
|
|
6517
6656
|
value: _ctx.defaultValues[columnIndex],
|
|
6518
6657
|
threeDimensional: _ctx.threeDimensional,
|
|
6658
|
+
swipeDuration: _ctx.swipeDuration,
|
|
6519
6659
|
onChange: (option) => {
|
|
6520
6660
|
_ctx.changeHandler(columnIndex, option);
|
|
6521
6661
|
}
|
|
6522
|
-
}, null, 8, ["itemShow", "column", "readonly", "columnsType", "value", "threeDimensional", "onChange"])
|
|
6662
|
+
}, null, 8, ["itemShow", "column", "readonly", "columnsType", "value", "threeDimensional", "swipeDuration", "onChange"])
|
|
6523
6663
|
]);
|
|
6524
6664
|
}), 128))
|
|
6525
6665
|
], 512),
|
|
@@ -6554,7 +6694,8 @@ var __objRest = (source, exclude) => {
|
|
|
6554
6694
|
components: {
|
|
6555
6695
|
[Picker.name]: Picker
|
|
6556
6696
|
},
|
|
6557
|
-
props:
|
|
6697
|
+
props: {
|
|
6698
|
+
...popupProps,
|
|
6558
6699
|
modelValue: null,
|
|
6559
6700
|
title: {
|
|
6560
6701
|
type: String,
|
|
@@ -6599,7 +6740,7 @@ var __objRest = (source, exclude) => {
|
|
|
6599
6740
|
default: true
|
|
6600
6741
|
},
|
|
6601
6742
|
filter: Function
|
|
6602
|
-
}
|
|
6743
|
+
},
|
|
6603
6744
|
emits: ["click", "update:visible", "change", "confirm", "update:moduleValue"],
|
|
6604
6745
|
setup(props, { emit }) {
|
|
6605
6746
|
const state = vue.reactive({
|
|
@@ -6806,21 +6947,31 @@ var __objRest = (source, exclude) => {
|
|
|
6806
6947
|
vue.onBeforeMount(() => {
|
|
6807
6948
|
state.currentDate = formatValue(props.modelValue);
|
|
6808
6949
|
});
|
|
6809
|
-
vue.watch(
|
|
6810
|
-
|
|
6811
|
-
|
|
6812
|
-
|
|
6813
|
-
|
|
6814
|
-
|
|
6815
|
-
vue.watch(
|
|
6816
|
-
|
|
6817
|
-
|
|
6818
|
-
|
|
6950
|
+
vue.watch(
|
|
6951
|
+
() => props.modelValue,
|
|
6952
|
+
(value) => {
|
|
6953
|
+
state.currentDate = formatValue(value);
|
|
6954
|
+
}
|
|
6955
|
+
);
|
|
6956
|
+
vue.watch(
|
|
6957
|
+
() => props.title,
|
|
6958
|
+
(val) => {
|
|
6959
|
+
state.title = val;
|
|
6960
|
+
}
|
|
6961
|
+
);
|
|
6962
|
+
vue.watch(
|
|
6963
|
+
() => props.visible,
|
|
6964
|
+
(val) => {
|
|
6965
|
+
state.show = val;
|
|
6966
|
+
}
|
|
6967
|
+
);
|
|
6968
|
+
return {
|
|
6969
|
+
...vue.toRefs(state),
|
|
6819
6970
|
changeHandler,
|
|
6820
6971
|
closeHandler,
|
|
6821
6972
|
confirm,
|
|
6822
6973
|
columns
|
|
6823
|
-
}
|
|
6974
|
+
};
|
|
6824
6975
|
}
|
|
6825
6976
|
});
|
|
6826
6977
|
function _sfc_render$18(_ctx, _cache, $props, $setup, $data, $options) {
|
|
@@ -6888,6 +7039,14 @@ var __objRest = (source, exclude) => {
|
|
|
6888
7039
|
readonly: {
|
|
6889
7040
|
type: Boolean,
|
|
6890
7041
|
default: false
|
|
7042
|
+
},
|
|
7043
|
+
iconLeft: {
|
|
7044
|
+
type: String,
|
|
7045
|
+
default: "minus"
|
|
7046
|
+
},
|
|
7047
|
+
iconRight: {
|
|
7048
|
+
type: String,
|
|
7049
|
+
default: "plus"
|
|
6891
7050
|
}
|
|
6892
7051
|
},
|
|
6893
7052
|
emits: ["update:modelValue", "change", "blur", "focus", "reduce", "add", "overlimit"],
|
|
@@ -6977,12 +7136,11 @@ var __objRest = (source, exclude) => {
|
|
|
6977
7136
|
class: vue.normalizeClass(_ctx.classes),
|
|
6978
7137
|
style: vue.normalizeStyle({ height: _ctx.pxCheck(_ctx.buttonSize) })
|
|
6979
7138
|
}, [
|
|
6980
|
-
vue.createVNode(_component_nut_icon, {
|
|
6981
|
-
name:
|
|
6982
|
-
class:
|
|
6983
|
-
size: _ctx.buttonSize
|
|
6984
|
-
|
|
6985
|
-
}, null, 8, ["class", "size", "onClick"]),
|
|
7139
|
+
vue.createVNode(_component_nut_icon, vue.mergeProps({
|
|
7140
|
+
name: _ctx.iconLeft,
|
|
7141
|
+
class: ["nut-inputnumber__icon", { "nut-inputnumber__icon--disabled": !_ctx.reduceAllow() }],
|
|
7142
|
+
size: _ctx.buttonSize
|
|
7143
|
+
}, _ctx.$attrs, { onClick: _ctx.reduce }), null, 16, ["name", "class", "size", "onClick"]),
|
|
6986
7144
|
vue.createElementVNode("input", {
|
|
6987
7145
|
type: "number",
|
|
6988
7146
|
min: _ctx.min,
|
|
@@ -6995,12 +7153,11 @@ var __objRest = (source, exclude) => {
|
|
|
6995
7153
|
onBlur: _cache[1] || (_cache[1] = (...args) => _ctx.blur && _ctx.blur(...args)),
|
|
6996
7154
|
onFocus: _cache[2] || (_cache[2] = (...args) => _ctx.focus && _ctx.focus(...args))
|
|
6997
7155
|
}, null, 44, _hoisted_1$Z),
|
|
6998
|
-
vue.createVNode(_component_nut_icon, {
|
|
6999
|
-
name:
|
|
7000
|
-
class:
|
|
7001
|
-
size: _ctx.buttonSize
|
|
7002
|
-
|
|
7003
|
-
}, null, 8, ["class", "size", "onClick"])
|
|
7156
|
+
vue.createVNode(_component_nut_icon, vue.mergeProps({
|
|
7157
|
+
name: _ctx.iconRight,
|
|
7158
|
+
class: ["nut-inputnumber__icon", { "nut-inputnumber__icon--disabled": !_ctx.addAllow() }],
|
|
7159
|
+
size: _ctx.buttonSize
|
|
7160
|
+
}, _ctx.$attrs, { onClick: _ctx.add }), null, 16, ["name", "class", "size", "onClick"])
|
|
7004
7161
|
], 6);
|
|
7005
7162
|
}
|
|
7006
7163
|
var InputNumber = /* @__PURE__ */ _export_sfc(_sfc_main$1b, [["render", _sfc_render$17]]);
|
|
@@ -7267,6 +7424,8 @@ var __objRest = (source, exclude) => {
|
|
|
7267
7424
|
emit("blur", value, event);
|
|
7268
7425
|
};
|
|
7269
7426
|
const clear = (event) => {
|
|
7427
|
+
if (props.disabled)
|
|
7428
|
+
return;
|
|
7270
7429
|
emit("update:modelValue", "", event);
|
|
7271
7430
|
emit("change", "", event);
|
|
7272
7431
|
emit("clear", "", event);
|
|
@@ -7301,10 +7460,13 @@ var __objRest = (source, exclude) => {
|
|
|
7301
7460
|
return;
|
|
7302
7461
|
}
|
|
7303
7462
|
};
|
|
7304
|
-
vue.watch(
|
|
7305
|
-
|
|
7306
|
-
|
|
7307
|
-
|
|
7463
|
+
vue.watch(
|
|
7464
|
+
() => props.modelValue,
|
|
7465
|
+
() => {
|
|
7466
|
+
updateValue(getModelValue());
|
|
7467
|
+
resetValidation();
|
|
7468
|
+
}
|
|
7469
|
+
);
|
|
7308
7470
|
vue.onMounted(() => {
|
|
7309
7471
|
updateValue(getModelValue(), props.formatTrigger);
|
|
7310
7472
|
});
|
|
@@ -7331,18 +7493,21 @@ var __objRest = (source, exclude) => {
|
|
|
7331
7493
|
const _hoisted_2$N = { class: "nut-input-value" };
|
|
7332
7494
|
const _hoisted_3$B = { class: "label-string" };
|
|
7333
7495
|
const _hoisted_4$t = { class: "nut-input-value" };
|
|
7334
|
-
const _hoisted_5$l =
|
|
7335
|
-
const _hoisted_6$k =
|
|
7336
|
-
const _hoisted_7$h =
|
|
7496
|
+
const _hoisted_5$l = { class: "nut-input-inner" };
|
|
7497
|
+
const _hoisted_6$k = { class: "nut-input-box" };
|
|
7498
|
+
const _hoisted_7$h = ["maxlength", "placeholder", "disabled", "readonly", "value", "formatTrigger", "autofocus"];
|
|
7499
|
+
const _hoisted_8$c = ["type", "maxlength", "placeholder", "disabled", "readonly", "value", "formatTrigger", "autofocus"];
|
|
7500
|
+
const _hoisted_9$8 = { class: "nut-input-clear-box" };
|
|
7501
|
+
const _hoisted_10$5 = {
|
|
7337
7502
|
key: 0,
|
|
7338
7503
|
class: "nut-input-word-limit"
|
|
7339
7504
|
};
|
|
7340
|
-
const
|
|
7505
|
+
const _hoisted_11$5 = { class: "nut-input-word-num" };
|
|
7341
7506
|
function _sfc_render$16(_ctx, _cache, $props, $setup, $data, $options) {
|
|
7342
7507
|
const _component_nut_icon = vue.resolveComponent("nut-icon");
|
|
7343
7508
|
return vue.openBlock(), vue.createElementBlock("view", {
|
|
7344
7509
|
class: vue.normalizeClass(_ctx.classes),
|
|
7345
|
-
onClick: _cache[
|
|
7510
|
+
onClick: _cache[11] || (_cache[11] = (...args) => _ctx.onClick && _ctx.onClick(...args))
|
|
7346
7511
|
}, [
|
|
7347
7512
|
_ctx.$slots.input ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 0 }, [
|
|
7348
7513
|
_ctx.label ? (vue.openBlock(), vue.createElementBlock("view", {
|
|
@@ -7369,10 +7534,7 @@ var __objRest = (source, exclude) => {
|
|
|
7369
7534
|
class: "nut-input-left-icon",
|
|
7370
7535
|
onClick: _cache[1] || (_cache[1] = (...args) => _ctx.onClickLeftIcon && _ctx.onClickLeftIcon(...args))
|
|
7371
7536
|
}, [
|
|
7372
|
-
vue.createVNode(_component_nut_icon, {
|
|
7373
|
-
name: _ctx.leftIcon,
|
|
7374
|
-
size: _ctx.leftIconSize
|
|
7375
|
-
}, null, 8, ["name", "size"])
|
|
7537
|
+
vue.createVNode(_component_nut_icon, vue.mergeProps({ name: _ctx.leftIcon }, _ctx.$attrs, { size: _ctx.leftIconSize }), null, 16, ["name", "size"])
|
|
7376
7538
|
])) : vue.createCommentVNode("", true),
|
|
7377
7539
|
_ctx.label ? (vue.openBlock(), vue.createElementBlock("view", {
|
|
7378
7540
|
key: 1,
|
|
@@ -7385,68 +7547,69 @@ var __objRest = (source, exclude) => {
|
|
|
7385
7547
|
vue.createElementVNode("view", _hoisted_3$B, vue.toDisplayString(_ctx.label) + " " + vue.toDisplayString(_ctx.colon ? ":" : ""), 1)
|
|
7386
7548
|
], 6)) : vue.createCommentVNode("", true),
|
|
7387
7549
|
vue.createElementVNode("view", _hoisted_4$t, [
|
|
7388
|
-
vue.createElementVNode("view",
|
|
7389
|
-
|
|
7390
|
-
|
|
7391
|
-
|
|
7392
|
-
|
|
7393
|
-
|
|
7394
|
-
|
|
7395
|
-
|
|
7396
|
-
|
|
7397
|
-
|
|
7398
|
-
|
|
7399
|
-
|
|
7400
|
-
|
|
7401
|
-
|
|
7402
|
-
|
|
7403
|
-
|
|
7404
|
-
|
|
7405
|
-
|
|
7406
|
-
|
|
7407
|
-
|
|
7408
|
-
|
|
7409
|
-
|
|
7410
|
-
|
|
7411
|
-
|
|
7412
|
-
|
|
7413
|
-
|
|
7414
|
-
|
|
7415
|
-
|
|
7416
|
-
|
|
7417
|
-
|
|
7418
|
-
|
|
7419
|
-
|
|
7420
|
-
|
|
7421
|
-
|
|
7422
|
-
|
|
7423
|
-
|
|
7424
|
-
|
|
7425
|
-
|
|
7426
|
-
|
|
7427
|
-
|
|
7428
|
-
|
|
7429
|
-
|
|
7430
|
-
|
|
7431
|
-
|
|
7432
|
-
|
|
7550
|
+
vue.createElementVNode("view", _hoisted_5$l, [
|
|
7551
|
+
vue.createElementVNode("view", _hoisted_6$k, [
|
|
7552
|
+
_ctx.type == "textarea" ? (vue.openBlock(), vue.createElementBlock("textarea", {
|
|
7553
|
+
key: 0,
|
|
7554
|
+
class: "input-text",
|
|
7555
|
+
ref: "inputRef",
|
|
7556
|
+
style: vue.normalizeStyle(_ctx.stylesTextarea),
|
|
7557
|
+
maxlength: _ctx.maxLength,
|
|
7558
|
+
placeholder: _ctx.placeholder || _ctx.translate("placeholder"),
|
|
7559
|
+
disabled: _ctx.disabled,
|
|
7560
|
+
readonly: _ctx.readonly,
|
|
7561
|
+
value: _ctx.modelValue,
|
|
7562
|
+
formatTrigger: _ctx.formatTrigger,
|
|
7563
|
+
autofocus: _ctx.autofocus,
|
|
7564
|
+
onInput: _cache[2] || (_cache[2] = (...args) => _ctx.onInput && _ctx.onInput(...args)),
|
|
7565
|
+
onFocus: _cache[3] || (_cache[3] = (...args) => _ctx.onFocus && _ctx.onFocus(...args)),
|
|
7566
|
+
onBlur: _cache[4] || (_cache[4] = (...args) => _ctx.onBlur && _ctx.onBlur(...args)),
|
|
7567
|
+
onClick: _cache[5] || (_cache[5] = (...args) => _ctx.onClickInput && _ctx.onClickInput(...args))
|
|
7568
|
+
}, null, 44, _hoisted_7$h)) : (vue.openBlock(), vue.createElementBlock("input", {
|
|
7569
|
+
key: 1,
|
|
7570
|
+
class: "input-text",
|
|
7571
|
+
ref: "inputRef",
|
|
7572
|
+
style: vue.normalizeStyle(_ctx.styles),
|
|
7573
|
+
type: _ctx.inputType(_ctx.type),
|
|
7574
|
+
maxlength: _ctx.maxLength,
|
|
7575
|
+
placeholder: _ctx.placeholder || _ctx.translate("placeholder"),
|
|
7576
|
+
disabled: _ctx.disabled,
|
|
7577
|
+
readonly: _ctx.readonly,
|
|
7578
|
+
value: _ctx.modelValue,
|
|
7579
|
+
formatTrigger: _ctx.formatTrigger,
|
|
7580
|
+
autofocus: _ctx.autofocus,
|
|
7581
|
+
onInput: _cache[6] || (_cache[6] = (...args) => _ctx.onInput && _ctx.onInput(...args)),
|
|
7582
|
+
onFocus: _cache[7] || (_cache[7] = (...args) => _ctx.onFocus && _ctx.onFocus(...args)),
|
|
7583
|
+
onBlur: _cache[8] || (_cache[8] = (...args) => _ctx.onBlur && _ctx.onBlur(...args)),
|
|
7584
|
+
onClick: _cache[9] || (_cache[9] = (...args) => _ctx.onClickInput && _ctx.onClickInput(...args))
|
|
7585
|
+
}, null, 44, _hoisted_8$c))
|
|
7586
|
+
]),
|
|
7587
|
+
vue.createElementVNode("view", _hoisted_9$8, [
|
|
7588
|
+
_ctx.clearable && !_ctx.readonly ? vue.withDirectives((vue.openBlock(), vue.createBlock(_component_nut_icon, vue.mergeProps({
|
|
7589
|
+
key: 0,
|
|
7590
|
+
class: "nut-input-clear",
|
|
7591
|
+
name: _ctx.clearIcon
|
|
7592
|
+
}, _ctx.$attrs, {
|
|
7593
|
+
size: _ctx.clearSize,
|
|
7594
|
+
onClick: _ctx.clear
|
|
7595
|
+
}), null, 16, ["name", "size", "onClick"])), [
|
|
7596
|
+
[vue.vShow, _ctx.active && _ctx.modelValue.length > 0]
|
|
7597
|
+
]) : vue.createCommentVNode("", true)
|
|
7598
|
+
]),
|
|
7433
7599
|
_ctx.rightIcon && _ctx.rightIcon.length > 0 ? (vue.openBlock(), vue.createElementBlock("view", {
|
|
7434
|
-
key:
|
|
7600
|
+
key: 0,
|
|
7435
7601
|
class: "nut-input-right-icon",
|
|
7436
|
-
onClick: _cache[
|
|
7602
|
+
onClick: _cache[10] || (_cache[10] = (...args) => _ctx.onClickRightIcon && _ctx.onClickRightIcon(...args))
|
|
7437
7603
|
}, [
|
|
7438
|
-
vue.createVNode(_component_nut_icon, {
|
|
7439
|
-
name: _ctx.rightIcon,
|
|
7440
|
-
size: _ctx.rightIconSize
|
|
7441
|
-
}, null, 8, ["name", "size"])
|
|
7604
|
+
vue.createVNode(_component_nut_icon, vue.mergeProps({ name: _ctx.rightIcon }, _ctx.$attrs, { size: _ctx.rightIconSize }), null, 16, ["name", "size"])
|
|
7442
7605
|
])) : vue.createCommentVNode("", true),
|
|
7443
7606
|
_ctx.$slots.button ? vue.renderSlot(_ctx.$slots, "button", {
|
|
7444
|
-
key:
|
|
7607
|
+
key: 1,
|
|
7445
7608
|
class: "nut-input-button"
|
|
7446
7609
|
}) : vue.createCommentVNode("", true)
|
|
7447
7610
|
]),
|
|
7448
|
-
_ctx.showWordLimit && _ctx.maxLength ? (vue.openBlock(), vue.createElementBlock("view",
|
|
7449
|
-
vue.createElementVNode("span",
|
|
7611
|
+
_ctx.showWordLimit && _ctx.maxLength ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_10$5, [
|
|
7612
|
+
vue.createElementVNode("span", _hoisted_11$5, vue.toDisplayString(_ctx.modelValue ? _ctx.modelValue.length : 0), 1),
|
|
7450
7613
|
vue.createTextVNode("/" + vue.toDisplayString(_ctx.maxLength), 1)
|
|
7451
7614
|
])) : vue.createCommentVNode("", true),
|
|
7452
7615
|
_ctx.errorMessage ? (vue.openBlock(), vue.createElementBlock("view", {
|
|
@@ -7520,15 +7683,23 @@ var __objRest = (source, exclude) => {
|
|
|
7520
7683
|
};
|
|
7521
7684
|
const renderLabel = () => {
|
|
7522
7685
|
var _a;
|
|
7523
|
-
return vue.h(
|
|
7524
|
-
|
|
7525
|
-
|
|
7686
|
+
return vue.h(
|
|
7687
|
+
"view",
|
|
7688
|
+
{
|
|
7689
|
+
class: `${componentName$_}__label ${props.disabled ? `${componentName$_}__label--disabled` : ""}`
|
|
7690
|
+
},
|
|
7691
|
+
(_a = slots.default) == null ? void 0 : _a.call(slots)
|
|
7692
|
+
);
|
|
7526
7693
|
};
|
|
7527
7694
|
const renderButton = () => {
|
|
7528
7695
|
var _a;
|
|
7529
|
-
return vue.h(
|
|
7530
|
-
|
|
7531
|
-
|
|
7696
|
+
return vue.h(
|
|
7697
|
+
"view",
|
|
7698
|
+
{
|
|
7699
|
+
class: `${componentName$_}__button ${isCurValue.value && `${componentName$_}__button--active`} ${props.disabled ? `${componentName$_}__button--disabled` : ""}`
|
|
7700
|
+
},
|
|
7701
|
+
(_a = slots.default) == null ? void 0 : _a.call(slots)
|
|
7702
|
+
);
|
|
7532
7703
|
};
|
|
7533
7704
|
const handleClick = () => {
|
|
7534
7705
|
if (isCurValue.value || props.disabled)
|
|
@@ -7537,12 +7708,16 @@ var __objRest = (source, exclude) => {
|
|
|
7537
7708
|
};
|
|
7538
7709
|
let reverseState = position.value === "left";
|
|
7539
7710
|
return () => {
|
|
7540
|
-
return vue.h(
|
|
7541
|
-
|
|
7542
|
-
|
|
7543
|
-
|
|
7544
|
-
|
|
7545
|
-
|
|
7711
|
+
return vue.h(
|
|
7712
|
+
"view",
|
|
7713
|
+
{
|
|
7714
|
+
class: `${componentName$_} ${componentName$_}--${props.shape} ${reverseState ? `${componentName$_}--reverse` : ""}`,
|
|
7715
|
+
onClick: handleClick
|
|
7716
|
+
},
|
|
7717
|
+
[
|
|
7718
|
+
props.shape == "button" ? renderButton() : reverseState ? [renderLabel(), renderIcon()] : [renderIcon(), renderLabel()]
|
|
7719
|
+
]
|
|
7720
|
+
);
|
|
7546
7721
|
};
|
|
7547
7722
|
}
|
|
7548
7723
|
});
|
|
@@ -7570,12 +7745,19 @@ var __objRest = (source, exclude) => {
|
|
|
7570
7745
|
position: props.textPosition,
|
|
7571
7746
|
updateValue
|
|
7572
7747
|
});
|
|
7573
|
-
vue.watch(
|
|
7748
|
+
vue.watch(
|
|
7749
|
+
() => props.modelValue,
|
|
7750
|
+
(value) => emit("change", value)
|
|
7751
|
+
);
|
|
7574
7752
|
return () => {
|
|
7575
7753
|
var _a;
|
|
7576
|
-
return vue.h(
|
|
7577
|
-
|
|
7578
|
-
|
|
7754
|
+
return vue.h(
|
|
7755
|
+
"view",
|
|
7756
|
+
{
|
|
7757
|
+
class: `${componentName$Z} ${componentName$Z}--${props.direction}`
|
|
7758
|
+
},
|
|
7759
|
+
(_a = slots.default) == null ? void 0 : _a.call(slots)
|
|
7760
|
+
);
|
|
7579
7761
|
};
|
|
7580
7762
|
}
|
|
7581
7763
|
});
|
|
@@ -7702,14 +7884,14 @@ var __objRest = (source, exclude) => {
|
|
|
7702
7884
|
}
|
|
7703
7885
|
};
|
|
7704
7886
|
const refRandomId = Math.random().toString(36).slice(-8);
|
|
7705
|
-
return
|
|
7706
|
-
classes
|
|
7707
|
-
|
|
7887
|
+
return {
|
|
7888
|
+
classes,
|
|
7889
|
+
...touchMethods,
|
|
7708
7890
|
onClick,
|
|
7709
7891
|
pxCheck,
|
|
7710
7892
|
rateRefs,
|
|
7711
7893
|
refRandomId
|
|
7712
|
-
}
|
|
7894
|
+
};
|
|
7713
7895
|
}
|
|
7714
7896
|
};
|
|
7715
7897
|
};
|
|
@@ -7821,16 +8003,23 @@ var __objRest = (source, exclude) => {
|
|
|
7821
8003
|
function focus() {
|
|
7822
8004
|
realpwd.value.focus();
|
|
7823
8005
|
}
|
|
7824
|
-
vue.watch(
|
|
7825
|
-
|
|
7826
|
-
|
|
7827
|
-
|
|
7828
|
-
|
|
7829
|
-
|
|
7830
|
-
|
|
7831
|
-
|
|
7832
|
-
|
|
7833
|
-
|
|
8006
|
+
vue.watch(
|
|
8007
|
+
() => props.visible,
|
|
8008
|
+
(value) => {
|
|
8009
|
+
show.value = value;
|
|
8010
|
+
}
|
|
8011
|
+
);
|
|
8012
|
+
vue.watch(
|
|
8013
|
+
() => props.modelValue,
|
|
8014
|
+
(value) => {
|
|
8015
|
+
realInput.value = value;
|
|
8016
|
+
emit("update:modelValue", value);
|
|
8017
|
+
},
|
|
8018
|
+
{
|
|
8019
|
+
deep: true,
|
|
8020
|
+
immediate: true
|
|
8021
|
+
}
|
|
8022
|
+
);
|
|
7834
8023
|
function changeValue(e) {
|
|
7835
8024
|
const input = e.target;
|
|
7836
8025
|
let val = input.value;
|
|
@@ -8070,11 +8259,14 @@ var __objRest = (source, exclude) => {
|
|
|
8070
8259
|
textarea.style.height = height + "px";
|
|
8071
8260
|
}
|
|
8072
8261
|
};
|
|
8073
|
-
vue.watch(
|
|
8074
|
-
|
|
8075
|
-
|
|
8262
|
+
vue.watch(
|
|
8263
|
+
() => props.modelValue,
|
|
8264
|
+
() => {
|
|
8265
|
+
if (props.autosize) {
|
|
8266
|
+
vue.nextTick(getContentHeight);
|
|
8267
|
+
}
|
|
8076
8268
|
}
|
|
8077
|
-
|
|
8269
|
+
);
|
|
8078
8270
|
const emitChange = (value, event) => {
|
|
8079
8271
|
if (props.maxLength && value.length > Number(props.maxLength)) {
|
|
8080
8272
|
value = value.substring(0, Number(props.maxLength));
|
|
@@ -8164,10 +8356,14 @@ var __objRest = (source, exclude) => {
|
|
|
8164
8356
|
const xhr = new XMLHttpRequest();
|
|
8165
8357
|
xhr.timeout = options.timeout;
|
|
8166
8358
|
if (xhr.upload) {
|
|
8167
|
-
xhr.upload.addEventListener(
|
|
8168
|
-
|
|
8169
|
-
(
|
|
8170
|
-
|
|
8359
|
+
xhr.upload.addEventListener(
|
|
8360
|
+
"progress",
|
|
8361
|
+
(e) => {
|
|
8362
|
+
var _a2;
|
|
8363
|
+
(_a2 = options.onProgress) == null ? void 0 : _a2.call(options, e, options);
|
|
8364
|
+
},
|
|
8365
|
+
false
|
|
8366
|
+
);
|
|
8171
8367
|
xhr.onreadystatechange = () => {
|
|
8172
8368
|
var _a2, _b;
|
|
8173
8369
|
if (xhr.readyState === 4) {
|
|
@@ -8184,8 +8380,8 @@ var __objRest = (source, exclude) => {
|
|
|
8184
8380
|
xhr.setRequestHeader(key, value);
|
|
8185
8381
|
}
|
|
8186
8382
|
(_a = options.onStart) == null ? void 0 : _a.call(options, options);
|
|
8187
|
-
if (options.
|
|
8188
|
-
|
|
8383
|
+
if (options.beforeXhrUpload) {
|
|
8384
|
+
options.beforeXhrUpload(xhr, options);
|
|
8189
8385
|
} else {
|
|
8190
8386
|
xhr.send(options.formData);
|
|
8191
8387
|
}
|
|
@@ -8199,33 +8395,38 @@ var __objRest = (source, exclude) => {
|
|
|
8199
8395
|
if (env === "WEB") {
|
|
8200
8396
|
this.upload();
|
|
8201
8397
|
} else {
|
|
8202
|
-
|
|
8203
|
-
|
|
8204
|
-
|
|
8205
|
-
|
|
8206
|
-
|
|
8207
|
-
|
|
8208
|
-
|
|
8209
|
-
|
|
8210
|
-
|
|
8211
|
-
|
|
8212
|
-
|
|
8213
|
-
|
|
8214
|
-
|
|
8215
|
-
|
|
8216
|
-
|
|
8398
|
+
if (options.beforeXhrUpload) {
|
|
8399
|
+
options.beforeXhrUpload(uploadFile, options);
|
|
8400
|
+
} else {
|
|
8401
|
+
const uploadTask = uploadFile({
|
|
8402
|
+
url: options.url,
|
|
8403
|
+
filePath: options.taroFilePath,
|
|
8404
|
+
fileType: options.fileType,
|
|
8405
|
+
header: {
|
|
8406
|
+
"Content-Type": "multipart/form-data",
|
|
8407
|
+
...options.headers
|
|
8408
|
+
},
|
|
8409
|
+
formData: options.formData,
|
|
8410
|
+
name: options.name,
|
|
8411
|
+
success(response) {
|
|
8412
|
+
var _a2, _b;
|
|
8413
|
+
if (options.xhrState == response.statusCode) {
|
|
8414
|
+
(_a2 = options.onSuccess) == null ? void 0 : _a2.call(options, response, options);
|
|
8415
|
+
} else {
|
|
8416
|
+
(_b = options.onFailure) == null ? void 0 : _b.call(options, response, options);
|
|
8417
|
+
}
|
|
8418
|
+
},
|
|
8419
|
+
fail(e) {
|
|
8420
|
+
var _a2;
|
|
8421
|
+
(_a2 = options.onFailure) == null ? void 0 : _a2.call(options, e, options);
|
|
8217
8422
|
}
|
|
8218
|
-
}
|
|
8219
|
-
|
|
8423
|
+
});
|
|
8424
|
+
(_a = options.onStart) == null ? void 0 : _a.call(options, options);
|
|
8425
|
+
uploadTask.progress((res) => {
|
|
8220
8426
|
var _a2;
|
|
8221
|
-
(_a2 = options.
|
|
8222
|
-
}
|
|
8223
|
-
}
|
|
8224
|
-
(_a = options.onStart) == null ? void 0 : _a.call(options, options);
|
|
8225
|
-
uploadTask.progress((res) => {
|
|
8226
|
-
var _a2;
|
|
8227
|
-
(_a2 = options.onProgress) == null ? void 0 : _a2.call(options, res, options);
|
|
8228
|
-
});
|
|
8427
|
+
(_a2 = options.onProgress) == null ? void 0 : _a2.call(options, res, options);
|
|
8428
|
+
});
|
|
8429
|
+
}
|
|
8229
8430
|
}
|
|
8230
8431
|
}
|
|
8231
8432
|
}
|
|
@@ -8268,6 +8469,10 @@ var __objRest = (source, exclude) => {
|
|
|
8268
8469
|
type: Function,
|
|
8269
8470
|
default: null
|
|
8270
8471
|
},
|
|
8472
|
+
beforeXhrUpload: {
|
|
8473
|
+
type: Function,
|
|
8474
|
+
default: null
|
|
8475
|
+
},
|
|
8271
8476
|
beforeDelete: {
|
|
8272
8477
|
type: Function,
|
|
8273
8478
|
default: (file, files) => {
|
|
@@ -8311,6 +8516,7 @@ var __objRest = (source, exclude) => {
|
|
|
8311
8516
|
uploadOption.xhrState = props.xhrState;
|
|
8312
8517
|
uploadOption.headers = props.headers;
|
|
8313
8518
|
uploadOption.withCredentials = props.withCredentials;
|
|
8519
|
+
uploadOption.beforeXhrUpload = props.beforeXhrUpload;
|
|
8314
8520
|
try {
|
|
8315
8521
|
uploadOption.sourceFile = fileItem.formData.get(props.name);
|
|
8316
8522
|
} catch (error) {
|
|
@@ -8350,9 +8556,11 @@ var __objRest = (source, exclude) => {
|
|
|
8350
8556
|
if (props.autoUpload) {
|
|
8351
8557
|
task.upload();
|
|
8352
8558
|
} else {
|
|
8353
|
-
uploadQueue.push(
|
|
8354
|
-
resolve
|
|
8355
|
-
|
|
8559
|
+
uploadQueue.push(
|
|
8560
|
+
new Promise((resolve, reject) => {
|
|
8561
|
+
resolve(task);
|
|
8562
|
+
})
|
|
8563
|
+
);
|
|
8356
8564
|
}
|
|
8357
8565
|
};
|
|
8358
8566
|
const clearUploadQueue = (index = -1) => {
|
|
@@ -8490,7 +8698,7 @@ var __objRest = (source, exclude) => {
|
|
|
8490
8698
|
key: 1,
|
|
8491
8699
|
class: "nut-uploader__preview-list"
|
|
8492
8700
|
};
|
|
8493
|
-
const _hoisted_14$
|
|
8701
|
+
const _hoisted_14$2 = ["onClick"];
|
|
8494
8702
|
const _hoisted_15$1 = ["accept", "multiple", "name", "disabled"];
|
|
8495
8703
|
const _hoisted_16$1 = ["accept", "multiple", "name", "disabled"];
|
|
8496
8704
|
function _sfc_render$13(_ctx, _cache, $props, $setup, $data, $options) {
|
|
@@ -8570,7 +8778,7 @@ var __objRest = (source, exclude) => {
|
|
|
8570
8778
|
}, [
|
|
8571
8779
|
vue.createVNode(_component_nut_icon, { name: "link" }),
|
|
8572
8780
|
vue.createTextVNode("\xA0" + vue.toDisplayString(item.name), 1)
|
|
8573
|
-
], 10, _hoisted_14$
|
|
8781
|
+
], 10, _hoisted_14$2),
|
|
8574
8782
|
vue.createVNode(_component_nut_icon, {
|
|
8575
8783
|
class: "nut-uploader__preview-img__file__del",
|
|
8576
8784
|
onClick: ($event) => _ctx.onDelete(item, index),
|
|
@@ -8591,11 +8799,11 @@ var __objRest = (source, exclude) => {
|
|
|
8591
8799
|
key: 1,
|
|
8592
8800
|
class: vue.normalizeClass(["nut-uploader__upload", [_ctx.listType]])
|
|
8593
8801
|
}, [
|
|
8594
|
-
vue.createVNode(_component_nut_icon, {
|
|
8802
|
+
vue.createVNode(_component_nut_icon, vue.mergeProps(_ctx.$attrs, {
|
|
8595
8803
|
size: _ctx.uploadIconSize,
|
|
8596
8804
|
color: "#808080",
|
|
8597
8805
|
name: _ctx.uploadIcon
|
|
8598
|
-
}, null,
|
|
8806
|
+
}), null, 16, ["size", "name"]),
|
|
8599
8807
|
_ctx.capture ? (vue.openBlock(), vue.createElementBlock("input", {
|
|
8600
8808
|
key: 0,
|
|
8601
8809
|
class: "nut-uploader__input",
|
|
@@ -8709,19 +8917,21 @@ var __objRest = (source, exclude) => {
|
|
|
8709
8917
|
if (customKeys.length > 2) {
|
|
8710
8918
|
customKeys = [customKeys[0], customKeys[1]];
|
|
8711
8919
|
}
|
|
8920
|
+
if (customKeys.length == 2 && props.title && props.type != "rightColumn") {
|
|
8921
|
+
customKeys = [customKeys[0]];
|
|
8922
|
+
}
|
|
8712
8923
|
if (customKeys.length === 1) {
|
|
8713
|
-
if (props.title) {
|
|
8924
|
+
if (props.title && props.type != "rightColumn") {
|
|
8714
8925
|
keys.push({ id: customKeys[0], type: "custom" }, { id: 0, type: "number" }, { id: "delete", type: "delete" });
|
|
8715
8926
|
} else {
|
|
8716
8927
|
keys.push({ id: 0, type: "number" }, { id: customKeys[0], type: "custom" });
|
|
8717
8928
|
}
|
|
8718
8929
|
} else if (customKeys.length === 2) {
|
|
8719
|
-
keys.push(
|
|
8720
|
-
|
|
8721
|
-
|
|
8722
|
-
|
|
8723
|
-
|
|
8724
|
-
keys.push({ id: 0, type: "number" });
|
|
8930
|
+
keys.push(
|
|
8931
|
+
{ id: customKeys[0], type: "custom" },
|
|
8932
|
+
{ id: 0, type: "number" },
|
|
8933
|
+
{ id: customKeys[1], type: "custom" }
|
|
8934
|
+
);
|
|
8725
8935
|
}
|
|
8726
8936
|
return keys;
|
|
8727
8937
|
}
|
|
@@ -8731,9 +8941,12 @@ var __objRest = (source, exclude) => {
|
|
|
8731
8941
|
}
|
|
8732
8942
|
return defaultKey();
|
|
8733
8943
|
});
|
|
8734
|
-
vue.watch(
|
|
8735
|
-
|
|
8736
|
-
|
|
8944
|
+
vue.watch(
|
|
8945
|
+
() => props.visible,
|
|
8946
|
+
(value) => {
|
|
8947
|
+
show.value = value;
|
|
8948
|
+
}
|
|
8949
|
+
);
|
|
8737
8950
|
function onTouchstart(item, event) {
|
|
8738
8951
|
event.stopPropagation();
|
|
8739
8952
|
clickKeyIndex.value = item.id;
|
|
@@ -8825,10 +9038,11 @@ var __objRest = (source, exclude) => {
|
|
|
8825
9038
|
vue.createElementVNode("div", _hoisted_1$T, [
|
|
8826
9039
|
_ctx.title ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$J, [
|
|
8827
9040
|
vue.createElementVNode("h3", _hoisted_3$y, vue.toDisplayString(_ctx.title), 1),
|
|
8828
|
-
vue.
|
|
9041
|
+
_ctx.type == "default" ? (vue.openBlock(), vue.createElementBlock("span", {
|
|
9042
|
+
key: 0,
|
|
8829
9043
|
class: "keyboard-close",
|
|
8830
9044
|
onClick: _cache[0] || (_cache[0] = ($event) => _ctx.closeBoard())
|
|
8831
|
-
}, vue.toDisplayString(_ctx.translate("done")), 1)
|
|
9045
|
+
}, vue.toDisplayString(_ctx.translate("done")), 1)) : vue.createCommentVNode("", true)
|
|
8832
9046
|
])) : vue.createCommentVNode("", true),
|
|
8833
9047
|
vue.createElementVNode("div", _hoisted_4$q, [
|
|
8834
9048
|
vue.createElementVNode("div", _hoisted_5$i, [
|
|
@@ -8871,15 +9085,14 @@ var __objRest = (source, exclude) => {
|
|
|
8871
9085
|
onTouchend: _cache[4] || (_cache[4] = (...args) => _ctx.onTouchEnd && _ctx.onTouchEnd(...args))
|
|
8872
9086
|
}, _hoisted_12$3, 34)
|
|
8873
9087
|
]),
|
|
8874
|
-
|
|
8875
|
-
key: 0,
|
|
9088
|
+
vue.createElementVNode("div", {
|
|
8876
9089
|
class: "key-board-wrapper key-board-finish",
|
|
8877
9090
|
onClick: _cache[5] || (_cache[5] = ($event) => _ctx.closeBoard())
|
|
8878
9091
|
}, [
|
|
8879
9092
|
vue.createElementVNode("div", {
|
|
8880
9093
|
class: vue.normalizeClass(["key", "finish", { activeFinsh: _ctx.clickKeyIndex == "finish" }])
|
|
8881
9094
|
}, vue.toDisplayString(_ctx.confirmText || _ctx.translate("done")), 3)
|
|
8882
|
-
])
|
|
9095
|
+
])
|
|
8883
9096
|
])) : vue.createCommentVNode("", true)
|
|
8884
9097
|
])
|
|
8885
9098
|
], 512)
|
|
@@ -8908,9 +9121,13 @@ var __objRest = (source, exclude) => {
|
|
|
8908
9121
|
const reset = () => {
|
|
8909
9122
|
clearErrorTips();
|
|
8910
9123
|
};
|
|
8911
|
-
vue.watch(
|
|
8912
|
-
|
|
8913
|
-
|
|
9124
|
+
vue.watch(
|
|
9125
|
+
() => props.modelValue,
|
|
9126
|
+
(value) => {
|
|
9127
|
+
clearErrorTips(value);
|
|
9128
|
+
},
|
|
9129
|
+
{ immediate: true }
|
|
9130
|
+
);
|
|
8914
9131
|
const findFormItem = (vnodes) => {
|
|
8915
9132
|
let task = [];
|
|
8916
9133
|
vnodes.forEach((vnode, index) => {
|
|
@@ -9291,20 +9508,29 @@ var __objRest = (source, exclude) => {
|
|
|
9291
9508
|
type && setChooseValue();
|
|
9292
9509
|
setMove(-move);
|
|
9293
9510
|
};
|
|
9294
|
-
vue.watch(
|
|
9295
|
-
|
|
9296
|
-
|
|
9297
|
-
|
|
9298
|
-
|
|
9299
|
-
|
|
9300
|
-
|
|
9301
|
-
|
|
9302
|
-
|
|
9303
|
-
|
|
9511
|
+
vue.watch(
|
|
9512
|
+
() => props.listData,
|
|
9513
|
+
(val) => {
|
|
9514
|
+
state.transformY = 0;
|
|
9515
|
+
modifyStatus(false);
|
|
9516
|
+
},
|
|
9517
|
+
{
|
|
9518
|
+
deep: true
|
|
9519
|
+
}
|
|
9520
|
+
);
|
|
9521
|
+
vue.watch(
|
|
9522
|
+
() => props.defaultIndex,
|
|
9523
|
+
(val) => {
|
|
9524
|
+
state.transformY = 0;
|
|
9525
|
+
modifyStatus(false);
|
|
9526
|
+
}
|
|
9527
|
+
);
|
|
9304
9528
|
vue.onMounted(() => {
|
|
9305
9529
|
modifyStatus(true);
|
|
9306
9530
|
});
|
|
9307
|
-
return
|
|
9531
|
+
return {
|
|
9532
|
+
...vue.toRefs(state),
|
|
9533
|
+
...vue.toRefs(props),
|
|
9308
9534
|
wrapper,
|
|
9309
9535
|
setRollerStyle,
|
|
9310
9536
|
isHidden,
|
|
@@ -9317,7 +9543,7 @@ var __objRest = (source, exclude) => {
|
|
|
9317
9543
|
touchRollerStyle,
|
|
9318
9544
|
touchListStyle,
|
|
9319
9545
|
setMove
|
|
9320
|
-
}
|
|
9546
|
+
};
|
|
9321
9547
|
}
|
|
9322
9548
|
});
|
|
9323
9549
|
const _hoisted_1$R = { class: "nut-oldpicker-content" };
|
|
@@ -9369,7 +9595,8 @@ var __objRest = (source, exclude) => {
|
|
|
9369
9595
|
[column.name]: column,
|
|
9370
9596
|
[Popup.name]: Popup
|
|
9371
9597
|
},
|
|
9372
|
-
props:
|
|
9598
|
+
props: {
|
|
9599
|
+
...popupProps,
|
|
9373
9600
|
title: {
|
|
9374
9601
|
type: String,
|
|
9375
9602
|
default: ""
|
|
@@ -9396,7 +9623,7 @@ var __objRest = (source, exclude) => {
|
|
|
9396
9623
|
type: [Number, String],
|
|
9397
9624
|
default: 0
|
|
9398
9625
|
}
|
|
9399
|
-
}
|
|
9626
|
+
},
|
|
9400
9627
|
emits: ["close", "change", "confirm", "update:visible"],
|
|
9401
9628
|
setup(props, { emit }) {
|
|
9402
9629
|
const childrenKey = "children";
|
|
@@ -9492,7 +9719,9 @@ var __objRest = (source, exclude) => {
|
|
|
9492
9719
|
_defaultIndex = dataIndex;
|
|
9493
9720
|
} else if (dataType.value === "multipleColumns") {
|
|
9494
9721
|
defaultIndexList[columnIndex] = dataIndex;
|
|
9495
|
-
const val = defaultIndexList.map(
|
|
9722
|
+
const val = defaultIndexList.map(
|
|
9723
|
+
(res, i) => vue.toRaw(state.formattedColumns)[i].values[res]
|
|
9724
|
+
);
|
|
9496
9725
|
emit("change", val, columnIndex, dataIndex);
|
|
9497
9726
|
}
|
|
9498
9727
|
};
|
|
@@ -9504,7 +9733,9 @@ var __objRest = (source, exclude) => {
|
|
|
9504
9733
|
for (let i = 0; i < defaultIndexList.length; i++) {
|
|
9505
9734
|
state.formattedColumns[i].defaultIndex = defaultIndexList[i];
|
|
9506
9735
|
}
|
|
9507
|
-
const checkedArr = vue.toRaw(state.formattedColumns).map(
|
|
9736
|
+
const checkedArr = vue.toRaw(state.formattedColumns).map(
|
|
9737
|
+
(res) => res.values && res.values[res.defaultIndex]
|
|
9738
|
+
);
|
|
9508
9739
|
emit("confirm", checkedArr);
|
|
9509
9740
|
} else if (dataType.value === "cascade") {
|
|
9510
9741
|
emit("confirm", getCascadeData(vue.toRaw(state.formattedColumns), state.defaultIndex));
|
|
@@ -9519,22 +9750,28 @@ var __objRest = (source, exclude) => {
|
|
|
9519
9750
|
if (props.visible)
|
|
9520
9751
|
state.show = false;
|
|
9521
9752
|
});
|
|
9522
|
-
vue.watch(
|
|
9523
|
-
|
|
9524
|
-
|
|
9525
|
-
|
|
9526
|
-
|
|
9527
|
-
|
|
9528
|
-
|
|
9529
|
-
|
|
9530
|
-
|
|
9753
|
+
vue.watch(
|
|
9754
|
+
() => props.visible,
|
|
9755
|
+
(val) => {
|
|
9756
|
+
state.show = val;
|
|
9757
|
+
}
|
|
9758
|
+
);
|
|
9759
|
+
vue.watch(
|
|
9760
|
+
() => props.listData,
|
|
9761
|
+
(val) => {
|
|
9762
|
+
state.formattedColumns = val;
|
|
9763
|
+
}
|
|
9764
|
+
);
|
|
9765
|
+
return {
|
|
9766
|
+
classes,
|
|
9767
|
+
...vue.toRefs(state),
|
|
9531
9768
|
column,
|
|
9532
9769
|
dataType,
|
|
9533
9770
|
columnList,
|
|
9534
9771
|
close,
|
|
9535
9772
|
changeHandler,
|
|
9536
9773
|
confirm
|
|
9537
|
-
}
|
|
9774
|
+
};
|
|
9538
9775
|
}
|
|
9539
9776
|
});
|
|
9540
9777
|
const _hoisted_1$Q = { class: "nut-oldpicker__bar" };
|
|
@@ -9732,15 +9969,15 @@ var __objRest = (source, exclude) => {
|
|
|
9732
9969
|
}
|
|
9733
9970
|
}
|
|
9734
9971
|
};
|
|
9735
|
-
return
|
|
9972
|
+
return {
|
|
9736
9973
|
classes,
|
|
9737
|
-
touchStyle
|
|
9738
|
-
|
|
9974
|
+
touchStyle,
|
|
9975
|
+
...touchMethods,
|
|
9739
9976
|
leftRef,
|
|
9740
9977
|
rightRef,
|
|
9741
9978
|
open,
|
|
9742
9979
|
close
|
|
9743
|
-
}
|
|
9980
|
+
};
|
|
9744
9981
|
}
|
|
9745
9982
|
});
|
|
9746
9983
|
const _hoisted_1$P = {
|
|
@@ -9775,7 +10012,8 @@ var __objRest = (source, exclude) => {
|
|
|
9775
10012
|
var Swipe = /* @__PURE__ */ _export_sfc(_sfc_main$_, [["render", _sfc_render$Z]]);
|
|
9776
10013
|
const { componentName: componentName$S, create: create$Z } = createComponent("actionsheet");
|
|
9777
10014
|
const _sfc_main$Z = create$Z({
|
|
9778
|
-
props:
|
|
10015
|
+
props: {
|
|
10016
|
+
...popupProps,
|
|
9779
10017
|
cancelTxt: {
|
|
9780
10018
|
type: String,
|
|
9781
10019
|
default: ""
|
|
@@ -9816,7 +10054,7 @@ var __objRest = (source, exclude) => {
|
|
|
9816
10054
|
type: Boolean,
|
|
9817
10055
|
default: true
|
|
9818
10056
|
}
|
|
9819
|
-
}
|
|
10057
|
+
},
|
|
9820
10058
|
emits: ["cancel", "close", "choose", "update:visible"],
|
|
9821
10059
|
setup(props, { emit }) {
|
|
9822
10060
|
const slotDefault = !!vue.useSlots().default;
|
|
@@ -10273,7 +10511,8 @@ var __objRest = (source, exclude) => {
|
|
|
10273
10511
|
[Popup.name]: Popup,
|
|
10274
10512
|
[Button.name]: Button
|
|
10275
10513
|
},
|
|
10276
|
-
props:
|
|
10514
|
+
props: {
|
|
10515
|
+
...popupProps,
|
|
10277
10516
|
closeOnClickOverlay: {
|
|
10278
10517
|
type: Boolean,
|
|
10279
10518
|
default: false
|
|
@@ -10332,7 +10571,7 @@ var __objRest = (source, exclude) => {
|
|
|
10332
10571
|
beforeClose: {
|
|
10333
10572
|
type: Function
|
|
10334
10573
|
}
|
|
10335
|
-
}
|
|
10574
|
+
},
|
|
10336
10575
|
emits: ["update", "update:visible", "ok", "cancel", "opened", "closed"],
|
|
10337
10576
|
setup(props, { emit }) {
|
|
10338
10577
|
const showPopup = vue.ref(props.visible);
|
|
@@ -10343,12 +10582,15 @@ var __objRest = (source, exclude) => {
|
|
|
10343
10582
|
});
|
|
10344
10583
|
}
|
|
10345
10584
|
});
|
|
10346
|
-
vue.watch(
|
|
10347
|
-
|
|
10348
|
-
|
|
10349
|
-
|
|
10585
|
+
vue.watch(
|
|
10586
|
+
() => props.visible,
|
|
10587
|
+
(value) => {
|
|
10588
|
+
showPopup.value = value;
|
|
10589
|
+
if (value) {
|
|
10590
|
+
emit("opened");
|
|
10591
|
+
}
|
|
10350
10592
|
}
|
|
10351
|
-
|
|
10593
|
+
);
|
|
10352
10594
|
const classes = vue.computed(() => {
|
|
10353
10595
|
return {
|
|
10354
10596
|
[componentName$P]: true,
|
|
@@ -10736,16 +10978,16 @@ var __objRest = (source, exclude) => {
|
|
|
10736
10978
|
isKeepAlive.value = true;
|
|
10737
10979
|
state.scrollEl.removeEventListener("scroll", handleScroll, props.useCapture);
|
|
10738
10980
|
});
|
|
10739
|
-
return
|
|
10740
|
-
classes
|
|
10741
|
-
|
|
10981
|
+
return {
|
|
10982
|
+
classes,
|
|
10983
|
+
...vue.toRefs(state),
|
|
10742
10984
|
touchStart,
|
|
10743
10985
|
touchMove,
|
|
10744
10986
|
touchEnd,
|
|
10745
10987
|
getStyle,
|
|
10746
10988
|
translate: translate$f,
|
|
10747
10989
|
slots
|
|
10748
|
-
}
|
|
10990
|
+
};
|
|
10749
10991
|
}
|
|
10750
10992
|
});
|
|
10751
10993
|
const _hoisted_1$M = { class: "top-box" };
|
|
@@ -10776,10 +11018,7 @@ var __objRest = (source, exclude) => {
|
|
|
10776
11018
|
style: vue.normalizeStyle(_ctx.getStyle)
|
|
10777
11019
|
}, [
|
|
10778
11020
|
vue.createElementVNode("view", _hoisted_1$M, [
|
|
10779
|
-
vue.createVNode(_component_nut_icon, {
|
|
10780
|
-
class: "top-img",
|
|
10781
|
-
name: _ctx.pullIcon
|
|
10782
|
-
}, null, 8, ["name"]),
|
|
11021
|
+
vue.createVNode(_component_nut_icon, vue.mergeProps({ class: "top-img" }, _ctx.$attrs, { name: _ctx.pullIcon }), null, 16, ["name"]),
|
|
10783
11022
|
vue.createElementVNode("view", _hoisted_2$D, vue.toDisplayString(_ctx.pullTxt || _ctx.translate("pullTxt")), 1)
|
|
10784
11023
|
])
|
|
10785
11024
|
], 4),
|
|
@@ -10789,10 +11028,7 @@ var __objRest = (source, exclude) => {
|
|
|
10789
11028
|
vue.createElementVNode("view", _hoisted_4$n, [
|
|
10790
11029
|
_ctx.isInfiniting ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_5$g, [
|
|
10791
11030
|
!_ctx.slots.loading ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 0 }, [
|
|
10792
|
-
vue.createVNode(_component_nut_icon, {
|
|
10793
|
-
class: "bottom-img",
|
|
10794
|
-
name: _ctx.loadIcon
|
|
10795
|
-
}, null, 8, ["name"]),
|
|
11031
|
+
vue.createVNode(_component_nut_icon, vue.mergeProps({ class: "bottom-img" }, _ctx.$attrs, { name: _ctx.loadIcon }), null, 16, ["name"]),
|
|
10796
11032
|
vue.createElementVNode("view", _hoisted_6$f, vue.toDisplayString(_ctx.loadTxt || _ctx.translate("loading")), 1)
|
|
10797
11033
|
], 64)) : vue.renderSlot(_ctx.$slots, "loading", { key: 1 })
|
|
10798
11034
|
])) : !_ctx.hasMore ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 1 }, [
|
|
@@ -10868,11 +11104,14 @@ var __objRest = (source, exclude) => {
|
|
|
10868
11104
|
if (props.duration) {
|
|
10869
11105
|
show();
|
|
10870
11106
|
}
|
|
10871
|
-
vue.watch(
|
|
10872
|
-
|
|
10873
|
-
|
|
11107
|
+
vue.watch(
|
|
11108
|
+
() => props.duration,
|
|
11109
|
+
(val) => {
|
|
11110
|
+
if (val) {
|
|
11111
|
+
show();
|
|
11112
|
+
}
|
|
10874
11113
|
}
|
|
10875
|
-
|
|
11114
|
+
);
|
|
10876
11115
|
const onAfterLeave = () => {
|
|
10877
11116
|
clearTimer();
|
|
10878
11117
|
props.unmount && props.unmount(props.id);
|
|
@@ -10940,9 +11179,9 @@ var __objRest = (source, exclude) => {
|
|
|
10940
11179
|
if (container) {
|
|
10941
11180
|
const currentOpt = optsMap$1.find((item) => item.id === opts.id);
|
|
10942
11181
|
if (currentOpt) {
|
|
10943
|
-
opts =
|
|
11182
|
+
opts = { ...defaultOptions$1, ...currentOpt, ...opts };
|
|
10944
11183
|
} else {
|
|
10945
|
-
opts =
|
|
11184
|
+
opts = { ...defaultOptions$1, ...opts };
|
|
10946
11185
|
}
|
|
10947
11186
|
const instance = vue.createVNode(Notify, opts);
|
|
10948
11187
|
vue.render(instance, container);
|
|
@@ -10960,7 +11199,7 @@ var __objRest = (source, exclude) => {
|
|
|
10960
11199
|
} else {
|
|
10961
11200
|
_id = new Date().getTime() + "";
|
|
10962
11201
|
}
|
|
10963
|
-
opts =
|
|
11202
|
+
opts = { ...defaultOptions$1, ...opts };
|
|
10964
11203
|
opts.id = _id;
|
|
10965
11204
|
idsMap$1.push(opts.id);
|
|
10966
11205
|
optsMap$1.push(opts);
|
|
@@ -10992,23 +11231,23 @@ var __objRest = (source, exclude) => {
|
|
|
10992
11231
|
const NotifyFunction = {
|
|
10993
11232
|
text(msg, obj = {}) {
|
|
10994
11233
|
errorMsg$1(msg);
|
|
10995
|
-
return mountNotify(
|
|
11234
|
+
return mountNotify({ ...obj, msg });
|
|
10996
11235
|
},
|
|
10997
11236
|
primary(msg, obj = {}) {
|
|
10998
11237
|
errorMsg$1(msg);
|
|
10999
|
-
return mountNotify(
|
|
11238
|
+
return mountNotify({ ...obj, msg, type: "primary" });
|
|
11000
11239
|
},
|
|
11001
11240
|
success(msg, obj = {}) {
|
|
11002
11241
|
errorMsg$1(msg);
|
|
11003
|
-
return mountNotify(
|
|
11242
|
+
return mountNotify({ ...obj, msg, type: "success" });
|
|
11004
11243
|
},
|
|
11005
11244
|
danger(msg, obj = {}) {
|
|
11006
11245
|
errorMsg$1(msg);
|
|
11007
|
-
return mountNotify(
|
|
11246
|
+
return mountNotify({ ...obj, msg, type: "danger" });
|
|
11008
11247
|
},
|
|
11009
11248
|
warn(msg, obj = {}) {
|
|
11010
11249
|
errorMsg$1(msg);
|
|
11011
|
-
return mountNotify(
|
|
11250
|
+
return mountNotify({ ...obj, msg, type: "warning" });
|
|
11012
11251
|
},
|
|
11013
11252
|
hide() {
|
|
11014
11253
|
clearNotify();
|
|
@@ -11314,7 +11553,7 @@ var __objRest = (source, exclude) => {
|
|
|
11314
11553
|
}
|
|
11315
11554
|
}
|
|
11316
11555
|
};
|
|
11317
|
-
return
|
|
11556
|
+
return {
|
|
11318
11557
|
scroller,
|
|
11319
11558
|
touchStart,
|
|
11320
11559
|
touchMove,
|
|
@@ -11326,8 +11565,9 @@ var __objRest = (source, exclude) => {
|
|
|
11326
11565
|
reachLeft,
|
|
11327
11566
|
getBottomStyle,
|
|
11328
11567
|
refreshTopTem,
|
|
11329
|
-
refreshBottomTem
|
|
11330
|
-
|
|
11568
|
+
refreshBottomTem,
|
|
11569
|
+
...vue.toRefs(state)
|
|
11570
|
+
};
|
|
11331
11571
|
}
|
|
11332
11572
|
});
|
|
11333
11573
|
const _hoisted_1$L = {
|
|
@@ -11434,13 +11674,16 @@ var __objRest = (source, exclude) => {
|
|
|
11434
11674
|
emit("update:modelValue", value);
|
|
11435
11675
|
emit("change", value, event);
|
|
11436
11676
|
};
|
|
11437
|
-
vue.watch(
|
|
11438
|
-
|
|
11439
|
-
|
|
11440
|
-
|
|
11441
|
-
|
|
11677
|
+
vue.watch(
|
|
11678
|
+
() => props.modelValue,
|
|
11679
|
+
(v) => {
|
|
11680
|
+
if (updateType == "click") {
|
|
11681
|
+
updateType = "";
|
|
11682
|
+
} else {
|
|
11683
|
+
emit("change", v);
|
|
11684
|
+
}
|
|
11442
11685
|
}
|
|
11443
|
-
|
|
11686
|
+
);
|
|
11444
11687
|
return {
|
|
11445
11688
|
classes,
|
|
11446
11689
|
style,
|
|
@@ -11457,12 +11700,13 @@ var __objRest = (source, exclude) => {
|
|
|
11457
11700
|
style: vue.normalizeStyle(_ctx.style)
|
|
11458
11701
|
}, [
|
|
11459
11702
|
vue.createElementVNode("view", _hoisted_1$K, [
|
|
11460
|
-
_ctx.loading ? (vue.openBlock(), vue.createBlock(_component_nut_icon, {
|
|
11703
|
+
_ctx.loading ? (vue.openBlock(), vue.createBlock(_component_nut_icon, vue.mergeProps({
|
|
11461
11704
|
key: 0,
|
|
11462
|
-
name: _ctx.name
|
|
11705
|
+
name: _ctx.name
|
|
11706
|
+
}, _ctx.$attrs, {
|
|
11463
11707
|
size: _ctx.size,
|
|
11464
11708
|
color: _ctx.color
|
|
11465
|
-
}, null,
|
|
11709
|
+
}), null, 16, ["name", "size", "color"])) : vue.createCommentVNode("", true),
|
|
11466
11710
|
_ctx.activeText ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 1 }, [
|
|
11467
11711
|
vue.withDirectives(vue.createElementVNode("view", { class: "nut-switch-label open" }, vue.toDisplayString(_ctx.activeText), 513), [
|
|
11468
11712
|
[vue.vShow, _ctx.modelValue]
|
|
@@ -11572,11 +11816,14 @@ var __objRest = (source, exclude) => {
|
|
|
11572
11816
|
if (props.duration) {
|
|
11573
11817
|
show();
|
|
11574
11818
|
}
|
|
11575
|
-
vue.watch(
|
|
11576
|
-
|
|
11577
|
-
|
|
11819
|
+
vue.watch(
|
|
11820
|
+
() => props.duration,
|
|
11821
|
+
(val) => {
|
|
11822
|
+
if (val) {
|
|
11823
|
+
show();
|
|
11824
|
+
}
|
|
11578
11825
|
}
|
|
11579
|
-
|
|
11826
|
+
);
|
|
11580
11827
|
const hasIcon = vue.computed(() => {
|
|
11581
11828
|
if (props.type !== "text") {
|
|
11582
11829
|
return true;
|
|
@@ -11642,11 +11889,10 @@ var __objRest = (source, exclude) => {
|
|
|
11642
11889
|
})
|
|
11643
11890
|
}, [
|
|
11644
11891
|
_ctx.hasIcon ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_1$J, [
|
|
11645
|
-
vue.createVNode(_component_nut_icon, {
|
|
11646
|
-
size: _ctx.iconSize,
|
|
11892
|
+
vue.createVNode(_component_nut_icon, vue.mergeProps({ size: _ctx.iconSize }, _ctx.$attrs, {
|
|
11647
11893
|
color: "#ffffff",
|
|
11648
11894
|
name: _ctx.icon
|
|
11649
|
-
}, null,
|
|
11895
|
+
}), null, 16, ["size", "name"])
|
|
11650
11896
|
])) : vue.createCommentVNode("", true),
|
|
11651
11897
|
_ctx.title ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$C, vue.toDisplayString(_ctx.title), 1)) : vue.createCommentVNode("", true),
|
|
11652
11898
|
vue.createElementVNode("view", {
|
|
@@ -11709,9 +11955,9 @@ var __objRest = (source, exclude) => {
|
|
|
11709
11955
|
if (container) {
|
|
11710
11956
|
const currentOpt = optsMap.find((item) => item.id === opts.id);
|
|
11711
11957
|
if (currentOpt) {
|
|
11712
|
-
opts =
|
|
11958
|
+
opts = { ...defaultOptions, ...currentOpt, ...opts };
|
|
11713
11959
|
} else {
|
|
11714
|
-
opts =
|
|
11960
|
+
opts = { ...defaultOptions, ...opts };
|
|
11715
11961
|
}
|
|
11716
11962
|
const instance = vue.createVNode(Toast, opts);
|
|
11717
11963
|
vue.render(instance, container);
|
|
@@ -11729,7 +11975,7 @@ var __objRest = (source, exclude) => {
|
|
|
11729
11975
|
} else {
|
|
11730
11976
|
_id = new Date().getTime() + "";
|
|
11731
11977
|
}
|
|
11732
|
-
opts =
|
|
11978
|
+
opts = { ...defaultOptions, ...opts };
|
|
11733
11979
|
opts.id = _id;
|
|
11734
11980
|
idsMap.push(opts.id);
|
|
11735
11981
|
optsMap.push(opts);
|
|
@@ -11749,27 +11995,27 @@ var __objRest = (source, exclude) => {
|
|
|
11749
11995
|
const ToastFunction = {
|
|
11750
11996
|
text(msg, opts = {}) {
|
|
11751
11997
|
errorMsg(msg);
|
|
11752
|
-
return mountToast(
|
|
11998
|
+
return mountToast({ ...opts, type: "text", msg });
|
|
11753
11999
|
},
|
|
11754
12000
|
success(msg, opts = {}) {
|
|
11755
12001
|
errorMsg(msg);
|
|
11756
|
-
return mountToast(
|
|
12002
|
+
return mountToast({ icon: "success", ...opts, msg, type: "success" });
|
|
11757
12003
|
},
|
|
11758
12004
|
fail(msg, opts = {}) {
|
|
11759
12005
|
errorMsg(msg);
|
|
11760
|
-
return mountToast(
|
|
12006
|
+
return mountToast({ icon: "failure", ...opts, msg, type: "fail" });
|
|
11761
12007
|
},
|
|
11762
12008
|
warn(msg, opts = {}) {
|
|
11763
12009
|
errorMsg(msg);
|
|
11764
|
-
return mountToast(
|
|
12010
|
+
return mountToast({ icon: "tips", ...opts, msg, type: "warn" });
|
|
11765
12011
|
},
|
|
11766
12012
|
loading(msg, opts = {}) {
|
|
11767
|
-
return mountToast(
|
|
11768
|
-
icon: "loading"
|
|
11769
|
-
|
|
12013
|
+
return mountToast({
|
|
12014
|
+
icon: "loading",
|
|
12015
|
+
...opts,
|
|
11770
12016
|
msg,
|
|
11771
12017
|
type: "loading"
|
|
11772
|
-
})
|
|
12018
|
+
});
|
|
11773
12019
|
},
|
|
11774
12020
|
hide(id) {
|
|
11775
12021
|
clearToast(id);
|
|
@@ -11812,7 +12058,7 @@ var __objRest = (source, exclude) => {
|
|
|
11812
12058
|
}
|
|
11813
12059
|
},
|
|
11814
12060
|
components: {},
|
|
11815
|
-
emits: ["fastBack", "play", "forward", "ended", "changeProgress", "mute"],
|
|
12061
|
+
emits: ["fastBack", "play", "forward", "ended", "changeProgress", "mute", "can-play"],
|
|
11816
12062
|
setup(props, { emit }) {
|
|
11817
12063
|
const audioRef = vue.ref(null);
|
|
11818
12064
|
const audioData = vue.reactive({
|
|
@@ -11844,22 +12090,25 @@ var __objRest = (source, exclude) => {
|
|
|
11844
12090
|
} catch (e) {
|
|
11845
12091
|
console.log(e.message);
|
|
11846
12092
|
}
|
|
11847
|
-
setTimeout(() => {
|
|
11848
|
-
const audioR = audioRef.value;
|
|
11849
|
-
if (props.autoplay) {
|
|
11850
|
-
if (audioR && audioR.paused) {
|
|
11851
|
-
audioR.play();
|
|
11852
|
-
}
|
|
11853
|
-
}
|
|
11854
|
-
audioData.second = audioR.duration;
|
|
11855
|
-
audioData.duration = formatSeconds(audioR.duration);
|
|
11856
|
-
}, 500);
|
|
11857
12093
|
});
|
|
12094
|
+
const onCanplay = (e) => {
|
|
12095
|
+
const audioR = audioRef.value;
|
|
12096
|
+
if (props.autoplay) {
|
|
12097
|
+
if (audioR && audioR.paused) {
|
|
12098
|
+
audioR.play();
|
|
12099
|
+
}
|
|
12100
|
+
}
|
|
12101
|
+
audioData.second = audioR.duration;
|
|
12102
|
+
audioData.duration = formatSeconds(audioR.duration);
|
|
12103
|
+
emit("can-play", e);
|
|
12104
|
+
};
|
|
11858
12105
|
const onTimeupdate = (e) => {
|
|
11859
12106
|
audioData.currentTime = parseInt(e.target.currentTime);
|
|
11860
12107
|
};
|
|
11861
12108
|
const fastBack = () => {
|
|
11862
|
-
audioData.currentTime
|
|
12109
|
+
if (audioData.currentTime > 0) {
|
|
12110
|
+
audioData.currentTime--;
|
|
12111
|
+
}
|
|
11863
12112
|
audioRef.value.currentTime = audioData.currentTime;
|
|
11864
12113
|
emit("fastBack", audioData.currentTime);
|
|
11865
12114
|
};
|
|
@@ -11898,42 +12147,25 @@ var __objRest = (source, exclude) => {
|
|
|
11898
12147
|
emit("mute", audioData.hanMuted);
|
|
11899
12148
|
};
|
|
11900
12149
|
const formatSeconds = (value) => {
|
|
11901
|
-
|
|
11902
|
-
|
|
11903
|
-
let theTime2 = 0;
|
|
11904
|
-
if (theTime > 60) {
|
|
11905
|
-
theTime1 = Math.floor(theTime / 60);
|
|
11906
|
-
theTime = Math.floor(theTime % 60);
|
|
11907
|
-
if (theTime1 > 60) {
|
|
11908
|
-
theTime2 = Math.floor(theTime1 / 60);
|
|
11909
|
-
theTime1 = Math.floor(theTime1 % 60);
|
|
11910
|
-
}
|
|
12150
|
+
if (!value) {
|
|
12151
|
+
return "00:00:00";
|
|
11911
12152
|
}
|
|
12153
|
+
let time = parseInt(value);
|
|
12154
|
+
let hours = Math.floor(time / 3600);
|
|
12155
|
+
let minutes = Math.floor((time - hours * 3600) / 60);
|
|
12156
|
+
let seconds = time - hours * 3600 - minutes * 60;
|
|
11912
12157
|
let result = "";
|
|
11913
|
-
|
|
11914
|
-
|
|
11915
|
-
|
|
11916
|
-
if (theTime1 > 0) {
|
|
11917
|
-
result = "" + theTime1 + ":" + result;
|
|
11918
|
-
if (theTime1 < 10) {
|
|
11919
|
-
result = "0" + result;
|
|
11920
|
-
}
|
|
11921
|
-
} else {
|
|
11922
|
-
result = "00:" + result;
|
|
11923
|
-
}
|
|
11924
|
-
if (theTime2 > 0) {
|
|
11925
|
-
result = "" + theTime2 + ":" + result;
|
|
11926
|
-
if (theTime2 < 10) {
|
|
11927
|
-
result = "0" + result;
|
|
11928
|
-
}
|
|
11929
|
-
} else {
|
|
11930
|
-
result = "00:" + result;
|
|
11931
|
-
}
|
|
12158
|
+
result += ("0" + hours.toString()).slice(-2) + ":";
|
|
12159
|
+
result += ("0" + minutes.toString()).slice(-2) + ":";
|
|
12160
|
+
result += ("0" + seconds.toString()).slice(-2);
|
|
11932
12161
|
return result;
|
|
11933
12162
|
};
|
|
11934
|
-
vue.watch(
|
|
11935
|
-
|
|
11936
|
-
|
|
12163
|
+
vue.watch(
|
|
12164
|
+
() => audioData.currentTime,
|
|
12165
|
+
(value) => {
|
|
12166
|
+
handle(value);
|
|
12167
|
+
}
|
|
12168
|
+
);
|
|
11937
12169
|
vue.provide("audioParent", {
|
|
11938
12170
|
children: [],
|
|
11939
12171
|
props,
|
|
@@ -11943,7 +12175,9 @@ var __objRest = (source, exclude) => {
|
|
|
11943
12175
|
fastBack,
|
|
11944
12176
|
changeStatus
|
|
11945
12177
|
});
|
|
11946
|
-
return
|
|
12178
|
+
return {
|
|
12179
|
+
...vue.toRefs(props),
|
|
12180
|
+
...vue.toRefs(audioData),
|
|
11947
12181
|
audioRef,
|
|
11948
12182
|
fastBack,
|
|
11949
12183
|
forward,
|
|
@@ -11951,8 +12185,9 @@ var __objRest = (source, exclude) => {
|
|
|
11951
12185
|
progressChange,
|
|
11952
12186
|
audioEnd,
|
|
11953
12187
|
onTimeupdate,
|
|
11954
|
-
handleMute
|
|
11955
|
-
|
|
12188
|
+
handleMute,
|
|
12189
|
+
onCanplay
|
|
12190
|
+
};
|
|
11956
12191
|
}
|
|
11957
12192
|
});
|
|
11958
12193
|
const _hoisted_1$I = { class: "nut-audio" };
|
|
@@ -12024,7 +12259,8 @@ var __objRest = (source, exclude) => {
|
|
|
12024
12259
|
autoplay: _ctx.autoplay,
|
|
12025
12260
|
loop: _ctx.loop,
|
|
12026
12261
|
onTimeupdate: _cache[3] || (_cache[3] = (...args) => _ctx.onTimeupdate && _ctx.onTimeupdate(...args)),
|
|
12027
|
-
|
|
12262
|
+
onCanplay: _cache[4] || (_cache[4] = (...args) => _ctx.onCanplay && _ctx.onCanplay(...args)),
|
|
12263
|
+
onEnded: _cache[5] || (_cache[5] = (...args) => _ctx.audioEnd && _ctx.audioEnd(...args)),
|
|
12028
12264
|
muted: _ctx.hanMuted
|
|
12029
12265
|
}, null, 40, _hoisted_8$7)
|
|
12030
12266
|
]);
|
|
@@ -12035,9 +12271,7 @@ var __objRest = (source, exclude) => {
|
|
|
12035
12271
|
props: {
|
|
12036
12272
|
type: {
|
|
12037
12273
|
type: String,
|
|
12038
|
-
default()
|
|
12039
|
-
return "play";
|
|
12040
|
-
}
|
|
12274
|
+
default: () => "play"
|
|
12041
12275
|
}
|
|
12042
12276
|
},
|
|
12043
12277
|
components: {},
|
|
@@ -12046,7 +12280,7 @@ var __objRest = (source, exclude) => {
|
|
|
12046
12280
|
const audio = vue.inject("audioParent");
|
|
12047
12281
|
const parent = vue.reactive(audio);
|
|
12048
12282
|
const customSlot = vue.ref(vue.useSlots().default);
|
|
12049
|
-
return
|
|
12283
|
+
return { ...vue.toRefs(props), ...vue.toRefs(parent), customSlot, translate: translate$e };
|
|
12050
12284
|
}
|
|
12051
12285
|
});
|
|
12052
12286
|
const _hoisted_1$H = { class: "nut-audio-operate" };
|
|
@@ -12230,7 +12464,7 @@ var __objRest = (source, exclude) => {
|
|
|
12230
12464
|
const onError = (event) => {
|
|
12231
12465
|
emit("onError", event);
|
|
12232
12466
|
};
|
|
12233
|
-
return
|
|
12467
|
+
return {
|
|
12234
12468
|
classes,
|
|
12235
12469
|
styles,
|
|
12236
12470
|
iconStyles,
|
|
@@ -12240,8 +12474,9 @@ var __objRest = (source, exclude) => {
|
|
|
12240
12474
|
onError,
|
|
12241
12475
|
avatarGroup,
|
|
12242
12476
|
visible,
|
|
12243
|
-
avatarRef
|
|
12244
|
-
|
|
12477
|
+
avatarRef,
|
|
12478
|
+
...vue.toRefs(state)
|
|
12479
|
+
};
|
|
12245
12480
|
}
|
|
12246
12481
|
});
|
|
12247
12482
|
const _hoisted_1$G = ["src", "alt"];
|
|
@@ -12269,11 +12504,10 @@ var __objRest = (source, exclude) => {
|
|
|
12269
12504
|
src: _ctx.url,
|
|
12270
12505
|
alt: _ctx.alt,
|
|
12271
12506
|
onError: _cache[0] || (_cache[0] = (...args) => _ctx.onError && _ctx.onError(...args))
|
|
12272
|
-
}, null, 40, _hoisted_1$G)) : _ctx.icon ? (vue.openBlock(), vue.createBlock(_component_nut_icon, {
|
|
12273
|
-
key: 1,
|
|
12507
|
+
}, null, 40, _hoisted_1$G)) : _ctx.icon ? (vue.openBlock(), vue.createBlock(_component_nut_icon, vue.mergeProps({ key: 1 }, _ctx.$attrs, {
|
|
12274
12508
|
class: "icon",
|
|
12275
12509
|
name: _ctx.iconStyles
|
|
12276
|
-
}, null,
|
|
12510
|
+
}), null, 16, ["name"])) : vue.createCommentVNode("", true),
|
|
12277
12511
|
_ctx.isShowText ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_2$z, [
|
|
12278
12512
|
vue.renderSlot(_ctx.$slots, "default")
|
|
12279
12513
|
])) : vue.createCommentVNode("", true)
|
|
@@ -12407,17 +12641,21 @@ var __objRest = (source, exclude) => {
|
|
|
12407
12641
|
}
|
|
12408
12642
|
state.startOffset = scrollTop - scrollTop % props.height;
|
|
12409
12643
|
};
|
|
12410
|
-
vue.watch(
|
|
12411
|
-
|
|
12412
|
-
|
|
12413
|
-
|
|
12644
|
+
vue.watch(
|
|
12645
|
+
() => props.listData,
|
|
12646
|
+
() => {
|
|
12647
|
+
state.list = props.listData.slice();
|
|
12648
|
+
}
|
|
12649
|
+
);
|
|
12650
|
+
return {
|
|
12651
|
+
...vue.toRefs(state),
|
|
12414
12652
|
list,
|
|
12415
12653
|
getTransform,
|
|
12416
12654
|
listHeight,
|
|
12417
12655
|
visibleData,
|
|
12418
12656
|
classes,
|
|
12419
12657
|
handleScrollEvent
|
|
12420
|
-
}
|
|
12658
|
+
};
|
|
12421
12659
|
}
|
|
12422
12660
|
});
|
|
12423
12661
|
function _sfc_render$L(_ctx, _cache, $props, $setup, $data, $options) {
|
|
@@ -12581,12 +12819,11 @@ var __objRest = (source, exclude) => {
|
|
|
12581
12819
|
_ctx.status == "active" || _ctx.status == "" ? (vue.openBlock(), vue.createElementBlock("span", {
|
|
12582
12820
|
key: 0,
|
|
12583
12821
|
style: vue.normalizeStyle(_ctx.textStyle)
|
|
12584
|
-
}, vue.toDisplayString(_ctx.percentage) + vue.toDisplayString(_ctx.isShowPercentage ? "%" : ""), 5)) : _ctx.status == "icon" ? (vue.openBlock(), vue.createBlock(_component_nut_icon, {
|
|
12585
|
-
key: 1,
|
|
12822
|
+
}, vue.toDisplayString(_ctx.percentage) + vue.toDisplayString(_ctx.isShowPercentage ? "%" : ""), 5)) : _ctx.status == "icon" ? (vue.openBlock(), vue.createBlock(_component_nut_icon, vue.mergeProps({ key: 1 }, _ctx.$attrs, {
|
|
12586
12823
|
size: "16px",
|
|
12587
12824
|
name: _ctx.iconName,
|
|
12588
12825
|
color: _ctx.iconColor
|
|
12589
|
-
}, null,
|
|
12826
|
+
}), null, 16, ["name", "color"])) : vue.createCommentVNode("", true)
|
|
12590
12827
|
], 4)) : vue.createCommentVNode("", true)
|
|
12591
12828
|
]);
|
|
12592
12829
|
}
|
|
@@ -12881,12 +13118,18 @@ var __objRest = (source, exclude) => {
|
|
|
12881
13118
|
}
|
|
12882
13119
|
return styles;
|
|
12883
13120
|
});
|
|
12884
|
-
vue.watch(
|
|
12885
|
-
|
|
12886
|
-
|
|
12887
|
-
|
|
12888
|
-
|
|
12889
|
-
|
|
13121
|
+
vue.watch(
|
|
13122
|
+
() => props.text,
|
|
13123
|
+
(value) => {
|
|
13124
|
+
initScrollWrap();
|
|
13125
|
+
}
|
|
13126
|
+
);
|
|
13127
|
+
vue.watch(
|
|
13128
|
+
() => props.list,
|
|
13129
|
+
(value) => {
|
|
13130
|
+
state.scrollList = [].concat(value);
|
|
13131
|
+
}
|
|
13132
|
+
);
|
|
12890
13133
|
const initScrollWrap = (value) => {
|
|
12891
13134
|
if (state.showNoticeBar == false) {
|
|
12892
13135
|
return;
|
|
@@ -12987,7 +13230,9 @@ var __objRest = (source, exclude) => {
|
|
|
12987
13230
|
vue.onUnmounted(() => {
|
|
12988
13231
|
clearInterval(state.timer);
|
|
12989
13232
|
});
|
|
12990
|
-
return
|
|
13233
|
+
return {
|
|
13234
|
+
...vue.toRefs(props),
|
|
13235
|
+
...vue.toRefs(state),
|
|
12991
13236
|
isEllipsis,
|
|
12992
13237
|
classes,
|
|
12993
13238
|
iconShow,
|
|
@@ -13003,7 +13248,7 @@ var __objRest = (source, exclude) => {
|
|
|
13003
13248
|
go,
|
|
13004
13249
|
handleClickIcon,
|
|
13005
13250
|
slots
|
|
13006
|
-
}
|
|
13251
|
+
};
|
|
13007
13252
|
}
|
|
13008
13253
|
});
|
|
13009
13254
|
const _hoisted_1$D = {
|
|
@@ -13056,10 +13301,10 @@ var __objRest = (source, exclude) => {
|
|
|
13056
13301
|
onClick: _cache[2] || (_cache[2] = vue.withModifiers((...args) => _ctx.onClickIcon && _ctx.onClickIcon(...args), ["stop"]))
|
|
13057
13302
|
}, [
|
|
13058
13303
|
vue.renderSlot(_ctx.$slots, "right-icon", {}, () => [
|
|
13059
|
-
vue.createVNode(_component_nut_icon, {
|
|
13304
|
+
vue.createVNode(_component_nut_icon, vue.mergeProps(_ctx.$attrs, {
|
|
13060
13305
|
name: _ctx.rightIcon ? _ctx.rightIcon : "close",
|
|
13061
13306
|
color: _ctx.color
|
|
13062
|
-
}, null,
|
|
13307
|
+
}), null, 16, ["name", "color"])
|
|
13063
13308
|
])
|
|
13064
13309
|
])) : vue.createCommentVNode("", true)
|
|
13065
13310
|
], 6)), [
|
|
@@ -13246,16 +13491,23 @@ var __objRest = (source, exclude) => {
|
|
|
13246
13491
|
const isDisabled = vue.computed(() => {
|
|
13247
13492
|
return props.options.disabled;
|
|
13248
13493
|
});
|
|
13249
|
-
vue.watch(
|
|
13250
|
-
|
|
13251
|
-
|
|
13252
|
-
|
|
13253
|
-
|
|
13494
|
+
vue.watch(
|
|
13495
|
+
() => props.source,
|
|
13496
|
+
(newValue) => {
|
|
13497
|
+
if (newValue.src) {
|
|
13498
|
+
vue.nextTick(() => {
|
|
13499
|
+
state.videoElm.load();
|
|
13500
|
+
});
|
|
13501
|
+
}
|
|
13254
13502
|
}
|
|
13255
|
-
|
|
13256
|
-
vue.watch(
|
|
13257
|
-
|
|
13258
|
-
|
|
13503
|
+
);
|
|
13504
|
+
vue.watch(
|
|
13505
|
+
() => props.options,
|
|
13506
|
+
(newValue) => {
|
|
13507
|
+
state.state.isMuted = newValue ? newValue.muted : false;
|
|
13508
|
+
},
|
|
13509
|
+
{ immediate: true }
|
|
13510
|
+
);
|
|
13259
13511
|
const init = () => {
|
|
13260
13512
|
state.videoElm = root.value;
|
|
13261
13513
|
if (props.options.autoplay) {
|
|
@@ -13384,9 +13636,10 @@ var __objRest = (source, exclude) => {
|
|
|
13384
13636
|
vue.onMounted(() => {
|
|
13385
13637
|
init();
|
|
13386
13638
|
});
|
|
13387
|
-
return
|
|
13388
|
-
root
|
|
13389
|
-
|
|
13639
|
+
return {
|
|
13640
|
+
root,
|
|
13641
|
+
...vue.toRefs(props),
|
|
13642
|
+
...vue.toRefs(state),
|
|
13390
13643
|
handleError,
|
|
13391
13644
|
isDisabled,
|
|
13392
13645
|
play,
|
|
@@ -13397,7 +13650,7 @@ var __objRest = (source, exclude) => {
|
|
|
13397
13650
|
retry,
|
|
13398
13651
|
fullScreen,
|
|
13399
13652
|
translate: translate$c
|
|
13400
|
-
}
|
|
13653
|
+
};
|
|
13401
13654
|
}
|
|
13402
13655
|
});
|
|
13403
13656
|
const _hoisted_1$B = {
|
|
@@ -13548,9 +13801,13 @@ var __objRest = (source, exclude) => {
|
|
|
13548
13801
|
});
|
|
13549
13802
|
return () => {
|
|
13550
13803
|
var _a;
|
|
13551
|
-
return vue.h(
|
|
13552
|
-
|
|
13553
|
-
|
|
13804
|
+
return vue.h(
|
|
13805
|
+
"view",
|
|
13806
|
+
{
|
|
13807
|
+
class: classes.value
|
|
13808
|
+
},
|
|
13809
|
+
(_a = slots.default) == null ? void 0 : _a.call(slots)
|
|
13810
|
+
);
|
|
13554
13811
|
};
|
|
13555
13812
|
}
|
|
13556
13813
|
});
|
|
@@ -13606,11 +13863,12 @@ var __objRest = (source, exclude) => {
|
|
|
13606
13863
|
const handleClickStep = () => {
|
|
13607
13864
|
parent["onEmit"](index.value);
|
|
13608
13865
|
};
|
|
13609
|
-
return
|
|
13866
|
+
return {
|
|
13867
|
+
...vue.toRefs(state),
|
|
13610
13868
|
index,
|
|
13611
13869
|
classes,
|
|
13612
13870
|
handleClickStep
|
|
13613
|
-
}
|
|
13871
|
+
};
|
|
13614
13872
|
}
|
|
13615
13873
|
});
|
|
13616
13874
|
const _hoisted_1$A = { class: "nut-step-head" };
|
|
@@ -13638,13 +13896,14 @@ var __objRest = (source, exclude) => {
|
|
|
13638
13896
|
vue.createElementVNode("view", {
|
|
13639
13897
|
class: vue.normalizeClass(["nut-step-icon", [!_ctx.dot ? _ctx.icon ? "is-icon" : "is-text" : ""]])
|
|
13640
13898
|
}, [
|
|
13641
|
-
_ctx.icon ? (vue.openBlock(), vue.createBlock(_component_nut_icon, {
|
|
13899
|
+
_ctx.icon ? (vue.openBlock(), vue.createBlock(_component_nut_icon, vue.mergeProps({
|
|
13642
13900
|
key: 0,
|
|
13643
|
-
class: "nut-step-icon-inner"
|
|
13901
|
+
class: "nut-step-icon-inner"
|
|
13902
|
+
}, _ctx.$attrs, {
|
|
13644
13903
|
color: _ctx.iconColor,
|
|
13645
13904
|
name: _ctx.icon,
|
|
13646
13905
|
size: _ctx.size
|
|
13647
|
-
}, null,
|
|
13906
|
+
}), null, 16, ["color", "name", "size"])) : _ctx.dot ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 1 }, [], 64)) : (vue.openBlock(), vue.createElementBlock("view", _hoisted_3$n, vue.toDisplayString(_ctx.index), 1))
|
|
13648
13907
|
], 2)
|
|
13649
13908
|
]),
|
|
13650
13909
|
vue.createElementVNode("view", _hoisted_4$j, [
|
|
@@ -14046,19 +14305,28 @@ var __objRest = (source, exclude) => {
|
|
|
14046
14305
|
vue.onBeforeUnmount(() => {
|
|
14047
14306
|
stopAutoPlay();
|
|
14048
14307
|
});
|
|
14049
|
-
vue.watch(
|
|
14050
|
-
|
|
14051
|
-
|
|
14052
|
-
|
|
14053
|
-
|
|
14054
|
-
|
|
14055
|
-
|
|
14056
|
-
|
|
14057
|
-
|
|
14058
|
-
|
|
14059
|
-
|
|
14060
|
-
|
|
14061
|
-
|
|
14308
|
+
vue.watch(
|
|
14309
|
+
() => props.initPage,
|
|
14310
|
+
(val) => {
|
|
14311
|
+
vue.nextTick(() => {
|
|
14312
|
+
init(Number(val));
|
|
14313
|
+
});
|
|
14314
|
+
}
|
|
14315
|
+
);
|
|
14316
|
+
vue.watch(
|
|
14317
|
+
() => state.children.length,
|
|
14318
|
+
() => {
|
|
14319
|
+
vue.nextTick(() => {
|
|
14320
|
+
init();
|
|
14321
|
+
});
|
|
14322
|
+
}
|
|
14323
|
+
);
|
|
14324
|
+
vue.watch(
|
|
14325
|
+
() => props.autoPlay,
|
|
14326
|
+
(val) => {
|
|
14327
|
+
val > 0 ? autoplay() : stopAutoPlay();
|
|
14328
|
+
}
|
|
14329
|
+
);
|
|
14062
14330
|
return {
|
|
14063
14331
|
state,
|
|
14064
14332
|
classes,
|
|
@@ -14491,19 +14759,23 @@ var __objRest = (source, exclude) => {
|
|
|
14491
14759
|
};
|
|
14492
14760
|
const clamp = (num, min, max) => Math.min(Math.max(num, min), max);
|
|
14493
14761
|
vue.watch(() => props.initNo, resetScale);
|
|
14494
|
-
vue.watch(
|
|
14495
|
-
|
|
14496
|
-
|
|
14762
|
+
vue.watch(
|
|
14763
|
+
() => props.show,
|
|
14764
|
+
(value) => {
|
|
14765
|
+
if (!value) {
|
|
14766
|
+
resetScale();
|
|
14767
|
+
}
|
|
14497
14768
|
}
|
|
14498
|
-
|
|
14499
|
-
return
|
|
14769
|
+
);
|
|
14770
|
+
return {
|
|
14771
|
+
...vue.toRefs(state),
|
|
14500
14772
|
onTouchStart,
|
|
14501
14773
|
onTouchMove,
|
|
14502
14774
|
onTouchEnd,
|
|
14503
14775
|
getDistance,
|
|
14504
14776
|
imageStyle,
|
|
14505
14777
|
imageLoad
|
|
14506
|
-
}
|
|
14778
|
+
};
|
|
14507
14779
|
}
|
|
14508
14780
|
});
|
|
14509
14781
|
const _hoisted_1$y = ["src"];
|
|
@@ -14670,23 +14942,26 @@ var __objRest = (source, exclude) => {
|
|
|
14670
14942
|
state.rootWidth = swipeRef.value.offsetWidth;
|
|
14671
14943
|
}, 100);
|
|
14672
14944
|
};
|
|
14673
|
-
vue.watch(
|
|
14674
|
-
|
|
14675
|
-
|
|
14676
|
-
|
|
14945
|
+
vue.watch(
|
|
14946
|
+
() => props.show,
|
|
14947
|
+
(val) => {
|
|
14948
|
+
state.showPop = val;
|
|
14949
|
+
init();
|
|
14950
|
+
}
|
|
14951
|
+
);
|
|
14677
14952
|
vue.onMounted(() => {
|
|
14678
14953
|
state.active = props.initNo;
|
|
14679
14954
|
state.showPop = props.show;
|
|
14680
14955
|
state.maxNo = props.images.length + props.videos.length;
|
|
14681
14956
|
});
|
|
14682
|
-
return
|
|
14683
|
-
swipeRef
|
|
14684
|
-
|
|
14957
|
+
return {
|
|
14958
|
+
swipeRef,
|
|
14959
|
+
...vue.toRefs(state),
|
|
14685
14960
|
slideChangeEnd,
|
|
14686
14961
|
onClose,
|
|
14687
14962
|
handleCloseIcon,
|
|
14688
14963
|
styles
|
|
14689
|
-
}
|
|
14964
|
+
};
|
|
14690
14965
|
}
|
|
14691
14966
|
});
|
|
14692
14967
|
const _hoisted_1$x = {
|
|
@@ -14760,10 +15035,7 @@ var __objRest = (source, exclude) => {
|
|
|
14760
15035
|
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.handleCloseIcon && _ctx.handleCloseIcon(...args)),
|
|
14761
15036
|
style: vue.normalizeStyle(_ctx.styles)
|
|
14762
15037
|
}, [
|
|
14763
|
-
vue.createVNode(_component_nut_icon, {
|
|
14764
|
-
name: _ctx.closeIcon,
|
|
14765
|
-
color: "#ffffff"
|
|
14766
|
-
}, null, 8, ["name"])
|
|
15038
|
+
vue.createVNode(_component_nut_icon, vue.mergeProps({ name: _ctx.closeIcon }, _ctx.$attrs, { color: "#ffffff" }), null, 16, ["name"])
|
|
14767
15039
|
], 4)) : vue.createCommentVNode("", true)
|
|
14768
15040
|
]),
|
|
14769
15041
|
_: 1
|
|
@@ -14926,23 +15198,35 @@ var __objRest = (source, exclude) => {
|
|
|
14926
15198
|
typeMachine: ""
|
|
14927
15199
|
});
|
|
14928
15200
|
const { startFlag, scrolling, customBgImg, type } = vue.reactive(props);
|
|
14929
|
-
vue.watch(
|
|
14930
|
-
|
|
14931
|
-
|
|
14932
|
-
|
|
14933
|
-
|
|
14934
|
-
|
|
14935
|
-
|
|
14936
|
-
vue.watch(
|
|
14937
|
-
|
|
14938
|
-
|
|
14939
|
-
|
|
14940
|
-
|
|
14941
|
-
|
|
14942
|
-
|
|
14943
|
-
|
|
14944
|
-
|
|
14945
|
-
|
|
15201
|
+
vue.watch(
|
|
15202
|
+
() => props.customChangeNum,
|
|
15203
|
+
(count2, prevCount) => {
|
|
15204
|
+
clearIntervalTime();
|
|
15205
|
+
countGo(0);
|
|
15206
|
+
}
|
|
15207
|
+
);
|
|
15208
|
+
vue.watch(
|
|
15209
|
+
() => props.machinePrizeLevel,
|
|
15210
|
+
(count2, prevCount) => {
|
|
15211
|
+
data.prizeLevelTrun = count2;
|
|
15212
|
+
}
|
|
15213
|
+
);
|
|
15214
|
+
vue.watch(
|
|
15215
|
+
() => props.initNum,
|
|
15216
|
+
(count2, prevCount) => {
|
|
15217
|
+
data.current = count2;
|
|
15218
|
+
data.valFlag = false;
|
|
15219
|
+
valChange();
|
|
15220
|
+
}
|
|
15221
|
+
);
|
|
15222
|
+
vue.watch(
|
|
15223
|
+
() => props.endNum,
|
|
15224
|
+
(count2, prevCount) => {
|
|
15225
|
+
data.current = props.initNum;
|
|
15226
|
+
data.valFlag = false;
|
|
15227
|
+
valChange();
|
|
15228
|
+
}
|
|
15229
|
+
);
|
|
14946
15230
|
const valChange = () => {
|
|
14947
15231
|
if (data.valFlag) {
|
|
14948
15232
|
return false;
|
|
@@ -15189,7 +15473,11 @@ var __objRest = (source, exclude) => {
|
|
|
15189
15473
|
if (data.prizeLevelTrun < 0) {
|
|
15190
15474
|
newLocation += props.numHeight * data.notPrize[i];
|
|
15191
15475
|
}
|
|
15192
|
-
scrollTime(
|
|
15476
|
+
scrollTime(
|
|
15477
|
+
i,
|
|
15478
|
+
newLocation,
|
|
15479
|
+
local
|
|
15480
|
+
);
|
|
15193
15481
|
}, 500 * i);
|
|
15194
15482
|
}
|
|
15195
15483
|
};
|
|
@@ -15239,12 +15527,14 @@ var __objRest = (source, exclude) => {
|
|
|
15239
15527
|
clearIntervalTime();
|
|
15240
15528
|
data.timer = null;
|
|
15241
15529
|
});
|
|
15242
|
-
return
|
|
15530
|
+
return {
|
|
15531
|
+
...vue.toRefs(data),
|
|
15532
|
+
...vue.toRefs(vue.reactive(props)),
|
|
15243
15533
|
runNumberImg,
|
|
15244
15534
|
setRef,
|
|
15245
15535
|
topNumber,
|
|
15246
15536
|
turnNumber
|
|
15247
|
-
}
|
|
15537
|
+
};
|
|
15248
15538
|
}
|
|
15249
15539
|
});
|
|
15250
15540
|
const _hoisted_1$w = { class: "nut-countup" };
|
|
@@ -15476,7 +15766,7 @@ var __objRest = (source, exclude) => {
|
|
|
15476
15766
|
rest.s = Math.floor(ts % MINUTE / SECOND);
|
|
15477
15767
|
rest.ms = Math.floor(ts % SECOND);
|
|
15478
15768
|
}
|
|
15479
|
-
return type == "custom" ? rest : parseFormat(
|
|
15769
|
+
return type == "custom" ? rest : parseFormat({ ...rest });
|
|
15480
15770
|
};
|
|
15481
15771
|
const parseFormat = (time) => {
|
|
15482
15772
|
let { d, h, m, s, ms } = time;
|
|
@@ -15539,32 +15829,45 @@ var __objRest = (source, exclude) => {
|
|
|
15539
15829
|
state.restTime = props.time;
|
|
15540
15830
|
}
|
|
15541
15831
|
});
|
|
15542
|
-
vue.watch(
|
|
15543
|
-
|
|
15544
|
-
|
|
15545
|
-
|
|
15546
|
-
|
|
15547
|
-
|
|
15548
|
-
|
|
15549
|
-
|
|
15550
|
-
|
|
15551
|
-
|
|
15552
|
-
|
|
15553
|
-
if (!
|
|
15554
|
-
state.counting
|
|
15555
|
-
|
|
15556
|
-
|
|
15832
|
+
vue.watch(
|
|
15833
|
+
() => state.restTime,
|
|
15834
|
+
(value) => {
|
|
15835
|
+
let tranTime = formatRemainTime(value, "custom");
|
|
15836
|
+
emit("update:modelValue", tranTime);
|
|
15837
|
+
emit("input", tranTime);
|
|
15838
|
+
}
|
|
15839
|
+
);
|
|
15840
|
+
vue.watch(
|
|
15841
|
+
() => props.paused,
|
|
15842
|
+
(v, ov) => {
|
|
15843
|
+
if (!ov) {
|
|
15844
|
+
if (state.counting) {
|
|
15845
|
+
pause();
|
|
15846
|
+
}
|
|
15847
|
+
} else {
|
|
15848
|
+
if (!state.counting) {
|
|
15849
|
+
state.counting = true;
|
|
15850
|
+
state.handleEndTime = Date.now() + Number(state.restTime);
|
|
15851
|
+
tick();
|
|
15852
|
+
}
|
|
15853
|
+
emit("on-restart", state.restTime);
|
|
15557
15854
|
}
|
|
15558
|
-
emit("on-restart", state.restTime);
|
|
15559
15855
|
}
|
|
15560
|
-
|
|
15561
|
-
vue.watch(
|
|
15562
|
-
|
|
15563
|
-
|
|
15564
|
-
|
|
15565
|
-
|
|
15566
|
-
|
|
15567
|
-
|
|
15856
|
+
);
|
|
15857
|
+
vue.watch(
|
|
15858
|
+
() => props.endTime,
|
|
15859
|
+
(value) => {
|
|
15860
|
+
initTime();
|
|
15861
|
+
}
|
|
15862
|
+
);
|
|
15863
|
+
vue.watch(
|
|
15864
|
+
() => props.startTime,
|
|
15865
|
+
(value) => {
|
|
15866
|
+
initTime();
|
|
15867
|
+
}
|
|
15868
|
+
);
|
|
15869
|
+
return {
|
|
15870
|
+
...vue.toRefs(props),
|
|
15568
15871
|
slots,
|
|
15569
15872
|
classes,
|
|
15570
15873
|
getTimeStamp,
|
|
@@ -15573,7 +15876,7 @@ var __objRest = (source, exclude) => {
|
|
|
15573
15876
|
renderTime,
|
|
15574
15877
|
translate: translate$b,
|
|
15575
15878
|
reset
|
|
15576
|
-
}
|
|
15879
|
+
};
|
|
15577
15880
|
}
|
|
15578
15881
|
});
|
|
15579
15882
|
const _hoisted_1$v = ["innerHTML"];
|
|
@@ -15710,23 +16013,19 @@ var __objRest = (source, exclude) => {
|
|
|
15710
16013
|
};
|
|
15711
16014
|
});
|
|
15712
16015
|
const getStyle = () => {
|
|
15713
|
-
|
|
15714
|
-
|
|
15715
|
-
|
|
15716
|
-
|
|
15717
|
-
|
|
16016
|
+
const style = {};
|
|
16017
|
+
if (textColor.value) {
|
|
16018
|
+
style.color = textColor.value;
|
|
16019
|
+
} else if (color.value && plain.value) {
|
|
16020
|
+
style.color = color.value;
|
|
15718
16021
|
}
|
|
15719
16022
|
if (plain.value) {
|
|
15720
|
-
|
|
15721
|
-
|
|
15722
|
-
|
|
15723
|
-
|
|
15724
|
-
};
|
|
16023
|
+
style.background = "#fff";
|
|
16024
|
+
style["border-color"] = color.value;
|
|
16025
|
+
} else if (color.value) {
|
|
16026
|
+
style.background = color.value;
|
|
15725
16027
|
}
|
|
15726
|
-
return
|
|
15727
|
-
color: "",
|
|
15728
|
-
background: ""
|
|
15729
|
-
};
|
|
16028
|
+
return style;
|
|
15730
16029
|
};
|
|
15731
16030
|
const onClose = (event) => {
|
|
15732
16031
|
event.stopPropagation();
|
|
@@ -15788,32 +16087,47 @@ var __objRest = (source, exclude) => {
|
|
|
15788
16087
|
return node instanceof OwnElement || node instanceof ShadowRoot;
|
|
15789
16088
|
}
|
|
15790
16089
|
var round = Math.round;
|
|
15791
|
-
function
|
|
16090
|
+
function getUAString() {
|
|
16091
|
+
var uaData = navigator.userAgentData;
|
|
16092
|
+
if (uaData != null && uaData.brands) {
|
|
16093
|
+
return uaData.brands.map(function(item) {
|
|
16094
|
+
return item.brand + "/" + item.version;
|
|
16095
|
+
}).join(" ");
|
|
16096
|
+
}
|
|
16097
|
+
return navigator.userAgent;
|
|
16098
|
+
}
|
|
16099
|
+
function isLayoutViewport() {
|
|
16100
|
+
return !/^((?!chrome|android).)*safari/i.test(getUAString());
|
|
16101
|
+
}
|
|
16102
|
+
function getBoundingClientRect(element, includeScale, isFixedStrategy) {
|
|
15792
16103
|
if (includeScale === void 0) {
|
|
15793
16104
|
includeScale = false;
|
|
15794
16105
|
}
|
|
15795
|
-
|
|
16106
|
+
if (isFixedStrategy === void 0) {
|
|
16107
|
+
isFixedStrategy = false;
|
|
16108
|
+
}
|
|
16109
|
+
var clientRect = element.getBoundingClientRect();
|
|
15796
16110
|
var scaleX = 1;
|
|
15797
16111
|
var scaleY = 1;
|
|
15798
|
-
if (isHTMLElement(element)
|
|
15799
|
-
|
|
15800
|
-
|
|
15801
|
-
if (offsetWidth > 0) {
|
|
15802
|
-
scaleX = round(rect.width) / offsetWidth || 1;
|
|
15803
|
-
}
|
|
15804
|
-
if (offsetHeight > 0) {
|
|
15805
|
-
scaleY = round(rect.height) / offsetHeight || 1;
|
|
15806
|
-
}
|
|
16112
|
+
if (includeScale && isHTMLElement(element)) {
|
|
16113
|
+
scaleX = element.offsetWidth > 0 ? round(clientRect.width) / element.offsetWidth || 1 : 1;
|
|
16114
|
+
scaleY = element.offsetHeight > 0 ? round(clientRect.height) / element.offsetHeight || 1 : 1;
|
|
15807
16115
|
}
|
|
16116
|
+
var _ref = isElement(element) ? getWindow(element) : window, visualViewport = _ref.visualViewport;
|
|
16117
|
+
var addVisualOffsets = !isLayoutViewport() && isFixedStrategy;
|
|
16118
|
+
var x = (clientRect.left + (addVisualOffsets && visualViewport ? visualViewport.offsetLeft : 0)) / scaleX;
|
|
16119
|
+
var y = (clientRect.top + (addVisualOffsets && visualViewport ? visualViewport.offsetTop : 0)) / scaleY;
|
|
16120
|
+
var width = clientRect.width / scaleX;
|
|
16121
|
+
var height = clientRect.height / scaleY;
|
|
15808
16122
|
return {
|
|
15809
|
-
width
|
|
15810
|
-
height
|
|
15811
|
-
top:
|
|
15812
|
-
right:
|
|
15813
|
-
bottom:
|
|
15814
|
-
left:
|
|
15815
|
-
x
|
|
15816
|
-
y
|
|
16123
|
+
width,
|
|
16124
|
+
height,
|
|
16125
|
+
top: y,
|
|
16126
|
+
right: x + width,
|
|
16127
|
+
bottom: y + height,
|
|
16128
|
+
left: x,
|
|
16129
|
+
x,
|
|
16130
|
+
y
|
|
15817
16131
|
};
|
|
15818
16132
|
}
|
|
15819
16133
|
function getWindowScroll(node) {
|
|
@@ -15867,7 +16181,7 @@ var __objRest = (source, exclude) => {
|
|
|
15867
16181
|
var isOffsetParentAnElement = isHTMLElement(offsetParent);
|
|
15868
16182
|
var offsetParentIsScaled = isHTMLElement(offsetParent) && isElementScaled(offsetParent);
|
|
15869
16183
|
var documentElement = getDocumentElement(offsetParent);
|
|
15870
|
-
var rect = getBoundingClientRect(elementOrVirtualElement, offsetParentIsScaled);
|
|
16184
|
+
var rect = getBoundingClientRect(elementOrVirtualElement, offsetParentIsScaled, isFixed);
|
|
15871
16185
|
var scroll = {
|
|
15872
16186
|
scrollLeft: 0,
|
|
15873
16187
|
scrollTop: 0
|
|
@@ -15949,8 +16263,8 @@ var __objRest = (source, exclude) => {
|
|
|
15949
16263
|
return element.offsetParent;
|
|
15950
16264
|
}
|
|
15951
16265
|
function getContainingBlock(element) {
|
|
15952
|
-
var isFirefox =
|
|
15953
|
-
var isIE =
|
|
16266
|
+
var isFirefox = /firefox/i.test(getUAString());
|
|
16267
|
+
var isIE = /Trident/i.test(getUAString());
|
|
15954
16268
|
if (isIE && isHTMLElement(element)) {
|
|
15955
16269
|
var elementCss = getComputedStyle(element);
|
|
15956
16270
|
if (elementCss.position === "fixed") {
|
|
@@ -16537,7 +16851,8 @@ var __objRest = (source, exclude) => {
|
|
|
16537
16851
|
[Popup.name]: Popup,
|
|
16538
16852
|
[Button.name]: Button
|
|
16539
16853
|
},
|
|
16540
|
-
props:
|
|
16854
|
+
props: {
|
|
16855
|
+
...popupProps,
|
|
16541
16856
|
list: {
|
|
16542
16857
|
type: Array,
|
|
16543
16858
|
default: []
|
|
@@ -16562,7 +16877,7 @@ var __objRest = (source, exclude) => {
|
|
|
16562
16877
|
type: Boolean,
|
|
16563
16878
|
default: true
|
|
16564
16879
|
}
|
|
16565
|
-
}
|
|
16880
|
+
},
|
|
16566
16881
|
emits: ["update", "update:visible", "close", "choose", "open"],
|
|
16567
16882
|
setup(props, { emit }) {
|
|
16568
16883
|
let popper;
|
|
@@ -16589,7 +16904,6 @@ var __objRest = (source, exclude) => {
|
|
|
16589
16904
|
};
|
|
16590
16905
|
});
|
|
16591
16906
|
const createPopperInstance = () => {
|
|
16592
|
-
console.log(reference.value, popoverRef.value);
|
|
16593
16907
|
if (reference.value && popoverRef.value) {
|
|
16594
16908
|
return createPopper(reference.value, popoverRef.value.popupRef, {
|
|
16595
16909
|
placement: props.location,
|
|
@@ -16612,7 +16926,6 @@ var __objRest = (source, exclude) => {
|
|
|
16612
16926
|
return null;
|
|
16613
16927
|
};
|
|
16614
16928
|
const clickOverlay = () => {
|
|
16615
|
-
console.log("\u5173\u95ED");
|
|
16616
16929
|
};
|
|
16617
16930
|
const uploadLocation = () => {
|
|
16618
16931
|
vue.nextTick(() => {
|
|
@@ -16620,7 +16933,6 @@ var __objRest = (source, exclude) => {
|
|
|
16620
16933
|
return;
|
|
16621
16934
|
if (!popper) {
|
|
16622
16935
|
popper = createPopperInstance();
|
|
16623
|
-
console.log(popper);
|
|
16624
16936
|
} else {
|
|
16625
16937
|
popper.setOptions({
|
|
16626
16938
|
placement: props.location
|
|
@@ -16640,13 +16952,19 @@ var __objRest = (source, exclude) => {
|
|
|
16640
16952
|
vue.onUnmounted(() => {
|
|
16641
16953
|
window.removeEventListener("click", clickAway, true);
|
|
16642
16954
|
});
|
|
16643
|
-
vue.watch(
|
|
16644
|
-
|
|
16645
|
-
|
|
16646
|
-
|
|
16647
|
-
|
|
16648
|
-
|
|
16649
|
-
|
|
16955
|
+
vue.watch(
|
|
16956
|
+
() => props.visible,
|
|
16957
|
+
(value) => {
|
|
16958
|
+
showPopup.value = value;
|
|
16959
|
+
uploadLocation();
|
|
16960
|
+
}
|
|
16961
|
+
);
|
|
16962
|
+
vue.watch(
|
|
16963
|
+
() => props.location,
|
|
16964
|
+
(value) => {
|
|
16965
|
+
uploadLocation();
|
|
16966
|
+
}
|
|
16967
|
+
);
|
|
16650
16968
|
const update = (val) => {
|
|
16651
16969
|
emit("update", val);
|
|
16652
16970
|
emit("update:visible", val);
|
|
@@ -16718,10 +17036,10 @@ var __objRest = (source, exclude) => {
|
|
|
16718
17036
|
onClick: vue.withModifiers(($event) => _ctx.chooseItem(item, index), ["stop"])
|
|
16719
17037
|
}, [
|
|
16720
17038
|
item.icon ? vue.renderSlot(_ctx.$slots, "default", { key: 0 }, () => [
|
|
16721
|
-
vue.createVNode(_component_nut_icon, {
|
|
17039
|
+
vue.createVNode(_component_nut_icon, vue.mergeProps(_ctx.$attrs, {
|
|
16722
17040
|
class: "item-img",
|
|
16723
17041
|
name: item.icon
|
|
16724
|
-
}, null,
|
|
17042
|
+
}), null, 16, ["name"])
|
|
16725
17043
|
]) : vue.createCommentVNode("", true),
|
|
16726
17044
|
vue.createElementVNode("view", _hoisted_2$o, vue.toDisplayString(item.name), 1)
|
|
16727
17045
|
], 10, _hoisted_1$t);
|
|
@@ -16910,25 +17228,28 @@ var __objRest = (source, exclude) => {
|
|
|
16910
17228
|
setup(props, { emit, slots }) {
|
|
16911
17229
|
const collapseDom = vue.ref(null);
|
|
16912
17230
|
const collapseChldren = vue.ref([]);
|
|
16913
|
-
vue.watch(
|
|
16914
|
-
|
|
16915
|
-
|
|
16916
|
-
|
|
16917
|
-
|
|
16918
|
-
|
|
16919
|
-
|
|
16920
|
-
|
|
16921
|
-
|
|
16922
|
-
|
|
16923
|
-
|
|
16924
|
-
|
|
16925
|
-
|
|
16926
|
-
|
|
17231
|
+
vue.watch(
|
|
17232
|
+
() => props.active,
|
|
17233
|
+
(newval, oldval) => {
|
|
17234
|
+
let doms = collapseChldren.value;
|
|
17235
|
+
Array.from(doms).forEach((item) => {
|
|
17236
|
+
if (typeof newval == "number" || typeof newval == "string") {
|
|
17237
|
+
if (newval == item.name) {
|
|
17238
|
+
item.changeOpen(true);
|
|
17239
|
+
} else {
|
|
17240
|
+
item.changeOpen(false);
|
|
17241
|
+
}
|
|
17242
|
+
} else if (Object.values(newval) instanceof Array) {
|
|
17243
|
+
if (newval.indexOf(Number(item.name)) > -1 || newval.indexOf(String(item.name)) > -1) {
|
|
17244
|
+
item.changeOpen(true);
|
|
17245
|
+
} else {
|
|
17246
|
+
item.changeOpen(false);
|
|
17247
|
+
}
|
|
16927
17248
|
}
|
|
16928
|
-
|
|
16929
|
-
|
|
16930
|
-
}
|
|
16931
|
-
|
|
17249
|
+
item.animation();
|
|
17250
|
+
});
|
|
17251
|
+
}
|
|
17252
|
+
);
|
|
16932
17253
|
vue.onMounted(() => {
|
|
16933
17254
|
collapseChldren.value = vue.getCurrentInstance().provides.collapseParent.children || [];
|
|
16934
17255
|
});
|
|
@@ -17094,14 +17415,17 @@ var __objRest = (source, exclude) => {
|
|
|
17094
17415
|
proxyData.openExpanded = true;
|
|
17095
17416
|
}
|
|
17096
17417
|
});
|
|
17097
|
-
vue.watch(
|
|
17098
|
-
|
|
17099
|
-
|
|
17100
|
-
|
|
17101
|
-
|
|
17102
|
-
|
|
17103
|
-
|
|
17104
|
-
|
|
17418
|
+
vue.watch(
|
|
17419
|
+
() => {
|
|
17420
|
+
var _a, _b;
|
|
17421
|
+
return (_b = (_a = ctx == null ? void 0 : ctx.slots) == null ? void 0 : _a.default) == null ? void 0 : _b.call(_a);
|
|
17422
|
+
},
|
|
17423
|
+
() => {
|
|
17424
|
+
setTimeout(() => {
|
|
17425
|
+
animation();
|
|
17426
|
+
}, 300);
|
|
17427
|
+
}
|
|
17428
|
+
);
|
|
17105
17429
|
const init = () => {
|
|
17106
17430
|
const { name } = props;
|
|
17107
17431
|
const active = parent && parent.props.active;
|
|
@@ -17129,17 +17453,19 @@ var __objRest = (source, exclude) => {
|
|
|
17129
17453
|
}
|
|
17130
17454
|
return _class;
|
|
17131
17455
|
});
|
|
17132
|
-
return
|
|
17456
|
+
return {
|
|
17133
17457
|
classes,
|
|
17134
|
-
emptyContent
|
|
17135
|
-
|
|
17458
|
+
emptyContent,
|
|
17459
|
+
...vue.toRefs(proxyData),
|
|
17460
|
+
...vue.toRefs(parent.props),
|
|
17461
|
+
...vue.toRefs(titleIconStyle),
|
|
17136
17462
|
wrapperRef,
|
|
17137
17463
|
contentRef,
|
|
17138
17464
|
open,
|
|
17139
17465
|
toggleOpen,
|
|
17140
17466
|
changeOpen,
|
|
17141
17467
|
animation
|
|
17142
|
-
}
|
|
17468
|
+
};
|
|
17143
17469
|
}
|
|
17144
17470
|
});
|
|
17145
17471
|
const _hoisted_1$q = { class: "collapse-title" };
|
|
@@ -17171,13 +17497,14 @@ var __objRest = (source, exclude) => {
|
|
|
17171
17497
|
vue.createElementVNode("view", _hoisted_1$q, [
|
|
17172
17498
|
vue.createElementVNode("view", null, [
|
|
17173
17499
|
vue.createElementVNode("view", _hoisted_2$m, [
|
|
17174
|
-
_ctx.titleIcon ? (vue.openBlock(), vue.createBlock(_component_nut_icon, {
|
|
17500
|
+
_ctx.titleIcon ? (vue.openBlock(), vue.createBlock(_component_nut_icon, vue.mergeProps({
|
|
17175
17501
|
key: 0,
|
|
17176
|
-
name: _ctx.titleIcon
|
|
17502
|
+
name: _ctx.titleIcon
|
|
17503
|
+
}, _ctx.$attrs, {
|
|
17177
17504
|
size: _ctx.titleIconSize,
|
|
17178
17505
|
color: _ctx.titleIconColor,
|
|
17179
|
-
class:
|
|
17180
|
-
}, null,
|
|
17506
|
+
class: [_ctx.titleIconPosition == "left" ? "titleIconLeft" : "titleIconRight"]
|
|
17507
|
+
}), null, 16, ["name", "size", "color", "class"])) : vue.createCommentVNode("", true),
|
|
17181
17508
|
_ctx.$slots.mTitle ? vue.renderSlot(_ctx.$slots, "mTitle", { key: 1 }) : (vue.openBlock(), vue.createElementBlock("view", {
|
|
17182
17509
|
key: 2,
|
|
17183
17510
|
innerHTML: _ctx.title,
|
|
@@ -17193,14 +17520,15 @@ var __objRest = (source, exclude) => {
|
|
|
17193
17520
|
innerHTML: _ctx.subTitle,
|
|
17194
17521
|
class: "subTitle"
|
|
17195
17522
|
}, null, 8, _hoisted_5$a)),
|
|
17196
|
-
_ctx.icon ? (vue.openBlock(), vue.createBlock(_component_nut_icon, {
|
|
17523
|
+
_ctx.icon ? (vue.openBlock(), vue.createBlock(_component_nut_icon, vue.mergeProps({
|
|
17197
17524
|
key: 2,
|
|
17198
|
-
name: _ctx.icon
|
|
17525
|
+
name: _ctx.icon
|
|
17526
|
+
}, _ctx.$attrs, {
|
|
17199
17527
|
size: _ctx.iconSize,
|
|
17200
17528
|
color: _ctx.iconColor,
|
|
17201
|
-
class:
|
|
17202
|
-
style:
|
|
17203
|
-
}, null,
|
|
17529
|
+
class: ["collapse-icon", { "col-expanded": _ctx.openExpanded }, { "collapse-icon-disabled": _ctx.disabled }],
|
|
17530
|
+
style: _ctx.iconStyle
|
|
17531
|
+
}), null, 16, ["name", "size", "color", "class", "style"])) : vue.createCommentVNode("", true)
|
|
17204
17532
|
], 2),
|
|
17205
17533
|
_ctx.$slots.extraRender ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_6$9, [
|
|
17206
17534
|
vue.createElementVNode("div", _hoisted_7$7, [
|
|
@@ -17299,10 +17627,14 @@ var __objRest = (source, exclude) => {
|
|
|
17299
17627
|
return [columns.key, columns.render];
|
|
17300
17628
|
});
|
|
17301
17629
|
};
|
|
17302
|
-
vue.watch(
|
|
17303
|
-
|
|
17304
|
-
|
|
17305
|
-
|
|
17630
|
+
vue.watch(
|
|
17631
|
+
() => props.data,
|
|
17632
|
+
(val) => {
|
|
17633
|
+
state.curData = val.slice();
|
|
17634
|
+
}
|
|
17635
|
+
);
|
|
17636
|
+
return {
|
|
17637
|
+
...vue.toRefs(state),
|
|
17306
17638
|
classes,
|
|
17307
17639
|
cellClasses,
|
|
17308
17640
|
getColumnItem,
|
|
@@ -17312,7 +17644,7 @@ var __objRest = (source, exclude) => {
|
|
|
17312
17644
|
translate: translate2,
|
|
17313
17645
|
stylehead,
|
|
17314
17646
|
stylecolumn
|
|
17315
|
-
}
|
|
17647
|
+
};
|
|
17316
17648
|
}
|
|
17317
17649
|
};
|
|
17318
17650
|
};
|
|
@@ -17444,7 +17776,7 @@ var __objRest = (source, exclude) => {
|
|
|
17444
17776
|
}
|
|
17445
17777
|
emit("click", event);
|
|
17446
17778
|
};
|
|
17447
|
-
return
|
|
17779
|
+
return { ...vue.toRefs(state), classes, handleClick };
|
|
17448
17780
|
}
|
|
17449
17781
|
});
|
|
17450
17782
|
const _hoisted_1$o = { class: "nut-animate" };
|
|
@@ -17503,14 +17835,17 @@ var __objRest = (source, exclude) => {
|
|
|
17503
17835
|
[prefixCls]: true
|
|
17504
17836
|
};
|
|
17505
17837
|
});
|
|
17506
|
-
vue.watch(
|
|
17507
|
-
|
|
17508
|
-
|
|
17509
|
-
|
|
17838
|
+
vue.watch(
|
|
17839
|
+
() => props.content,
|
|
17840
|
+
(newV, oldVal) => {
|
|
17841
|
+
if (newV != oldVal) {
|
|
17842
|
+
if (container) {
|
|
17843
|
+
document.body.appendChild(container);
|
|
17844
|
+
}
|
|
17845
|
+
createContainer();
|
|
17510
17846
|
}
|
|
17511
|
-
createContainer();
|
|
17512
17847
|
}
|
|
17513
|
-
|
|
17848
|
+
);
|
|
17514
17849
|
vue.onMounted(() => {
|
|
17515
17850
|
createContainer();
|
|
17516
17851
|
});
|
|
@@ -17535,7 +17870,9 @@ var __objRest = (source, exclude) => {
|
|
|
17535
17870
|
container.style.webkitLineClamp = "unset";
|
|
17536
17871
|
container.style.display = "block";
|
|
17537
17872
|
const lineHeight = pxToNumber(originStyle.lineHeight);
|
|
17538
|
-
maxHeight = Math.floor(
|
|
17873
|
+
maxHeight = Math.floor(
|
|
17874
|
+
lineHeight * (Number(props.rows) + 0.5) + pxToNumber(originStyle.paddingTop) + pxToNumber(originStyle.paddingBottom)
|
|
17875
|
+
);
|
|
17539
17876
|
container.innerText = props.content;
|
|
17540
17877
|
document.body.appendChild(container);
|
|
17541
17878
|
calcEllipse();
|
|
@@ -17622,7 +17959,7 @@ var __objRest = (source, exclude) => {
|
|
|
17622
17959
|
const handleClick = () => {
|
|
17623
17960
|
emit("click");
|
|
17624
17961
|
};
|
|
17625
|
-
return
|
|
17962
|
+
return { ...vue.toRefs(state), root, ellipsis, classes, clickHandle, handleClick };
|
|
17626
17963
|
}
|
|
17627
17964
|
});
|
|
17628
17965
|
const _hoisted_1$n = { key: 0 };
|
|
@@ -17752,7 +18089,6 @@ var __objRest = (source, exclude) => {
|
|
|
17752
18089
|
const init = () => {
|
|
17753
18090
|
const canvas = document.createElement("canvas");
|
|
17754
18091
|
const ratio = window.devicePixelRatio;
|
|
17755
|
-
console.log(ratio);
|
|
17756
18092
|
const ctx = canvas.getContext("2d");
|
|
17757
18093
|
const canvasWidth = `${(gapX + width) * ratio}px`;
|
|
17758
18094
|
const canvasHeight = `${(gapY + height) * ratio}px`;
|
|
@@ -17769,10 +18105,15 @@ var __objRest = (source, exclude) => {
|
|
|
17769
18105
|
img.referrerPolicy = "no-referrer";
|
|
17770
18106
|
img.src = image;
|
|
17771
18107
|
img.onload = () => {
|
|
17772
|
-
ctx.drawImage(
|
|
18108
|
+
ctx.drawImage(
|
|
18109
|
+
img,
|
|
18110
|
+
-imageWidth * ratio / 2,
|
|
18111
|
+
-imageHeight * ratio / 2,
|
|
18112
|
+
imageWidth * ratio,
|
|
18113
|
+
imageHeight * ratio
|
|
18114
|
+
);
|
|
17773
18115
|
ctx.restore();
|
|
17774
18116
|
state.base64Url = canvas.toDataURL();
|
|
17775
|
-
console.log(state.base64Url);
|
|
17776
18117
|
};
|
|
17777
18118
|
} else if (content) {
|
|
17778
18119
|
ctx.textBaseline = "middle";
|
|
@@ -17785,32 +18126,34 @@ var __objRest = (source, exclude) => {
|
|
|
17785
18126
|
ctx.fillText(content, 0, 0);
|
|
17786
18127
|
ctx.restore();
|
|
17787
18128
|
state.base64Url = canvas.toDataURL();
|
|
17788
|
-
console.log(state.base64Url);
|
|
17789
18129
|
}
|
|
17790
18130
|
} else {
|
|
17791
18131
|
throw new Error("\u5F53\u524D\u73AF\u5883\u4E0D\u652F\u6301Canvas");
|
|
17792
18132
|
}
|
|
17793
18133
|
};
|
|
17794
18134
|
init();
|
|
17795
|
-
vue.watch(
|
|
17796
|
-
|
|
17797
|
-
|
|
17798
|
-
|
|
17799
|
-
|
|
17800
|
-
|
|
17801
|
-
|
|
17802
|
-
|
|
17803
|
-
|
|
17804
|
-
|
|
17805
|
-
|
|
17806
|
-
|
|
17807
|
-
|
|
17808
|
-
|
|
17809
|
-
|
|
17810
|
-
|
|
17811
|
-
|
|
17812
|
-
|
|
17813
|
-
|
|
18135
|
+
vue.watch(
|
|
18136
|
+
() => [
|
|
18137
|
+
zIndex,
|
|
18138
|
+
gapX,
|
|
18139
|
+
gapY,
|
|
18140
|
+
width,
|
|
18141
|
+
height,
|
|
18142
|
+
rotate,
|
|
18143
|
+
image,
|
|
18144
|
+
imageWidth,
|
|
18145
|
+
imageHeight,
|
|
18146
|
+
content,
|
|
18147
|
+
fontStyle,
|
|
18148
|
+
fontWeight,
|
|
18149
|
+
fontColor,
|
|
18150
|
+
fontSize,
|
|
18151
|
+
fontFamily
|
|
18152
|
+
],
|
|
18153
|
+
() => {
|
|
18154
|
+
init();
|
|
18155
|
+
}
|
|
18156
|
+
);
|
|
17814
18157
|
const classes = vue.computed(() => {
|
|
17815
18158
|
const prefixCls = componentName$n;
|
|
17816
18159
|
return {
|
|
@@ -17818,7 +18161,7 @@ var __objRest = (source, exclude) => {
|
|
|
17818
18161
|
[`${prefixCls}-full-page`]: props.fullPage
|
|
17819
18162
|
};
|
|
17820
18163
|
});
|
|
17821
|
-
return
|
|
18164
|
+
return { ...vue.toRefs(state), classes };
|
|
17822
18165
|
}
|
|
17823
18166
|
});
|
|
17824
18167
|
function _sfc_render$o(_ctx, _cache, $props, $setup, $data, $options) {
|
|
@@ -17835,7 +18178,8 @@ var __objRest = (source, exclude) => {
|
|
|
17835
18178
|
const { componentName: componentName$m, create: create$n, translate: translate$9 } = createComponent("address");
|
|
17836
18179
|
const _sfc_main$n = create$n({
|
|
17837
18180
|
inheritAttrs: false,
|
|
17838
|
-
props:
|
|
18181
|
+
props: {
|
|
18182
|
+
...popupProps,
|
|
17839
18183
|
modelValue: {
|
|
17840
18184
|
type: Array,
|
|
17841
18185
|
default: () => []
|
|
@@ -17904,7 +18248,7 @@ var __objRest = (source, exclude) => {
|
|
|
17904
18248
|
type: [String, Array],
|
|
17905
18249
|
default: ""
|
|
17906
18250
|
}
|
|
17907
|
-
}
|
|
18251
|
+
},
|
|
17908
18252
|
emits: ["update:visible", "update:modelValue", "type", "change", "selected", "close", "close-mask", "switch-module"],
|
|
17909
18253
|
setup(props, { emit }) {
|
|
17910
18254
|
const regionLine = vue.ref(null);
|
|
@@ -18080,10 +18424,13 @@ var __objRest = (source, exclude) => {
|
|
|
18080
18424
|
lineAnimation();
|
|
18081
18425
|
};
|
|
18082
18426
|
const close = () => {
|
|
18083
|
-
const resCopy = Object.assign(
|
|
18084
|
-
|
|
18085
|
-
|
|
18086
|
-
|
|
18427
|
+
const resCopy = Object.assign(
|
|
18428
|
+
{
|
|
18429
|
+
addressIdStr: "",
|
|
18430
|
+
addressStr: ""
|
|
18431
|
+
},
|
|
18432
|
+
selectedRegion
|
|
18433
|
+
);
|
|
18087
18434
|
const res = {
|
|
18088
18435
|
data: {},
|
|
18089
18436
|
type: privateType.value
|
|
@@ -18126,36 +18473,57 @@ var __objRest = (source, exclude) => {
|
|
|
18126
18473
|
const handleElevatorItem = (key, item) => {
|
|
18127
18474
|
nextAreaList(item);
|
|
18128
18475
|
};
|
|
18129
|
-
vue.watch(
|
|
18130
|
-
|
|
18131
|
-
|
|
18132
|
-
|
|
18133
|
-
|
|
18134
|
-
|
|
18135
|
-
|
|
18136
|
-
|
|
18137
|
-
|
|
18138
|
-
|
|
18139
|
-
|
|
18140
|
-
|
|
18141
|
-
|
|
18142
|
-
vue.watch(() => props.city, (value) => {
|
|
18143
|
-
regionList.city = isCustom2.value ? transformData(value) : value;
|
|
18144
|
-
});
|
|
18145
|
-
vue.watch(() => props.country, (value) => {
|
|
18146
|
-
regionList.country = isCustom2.value ? transformData(value) : value;
|
|
18147
|
-
});
|
|
18148
|
-
vue.watch(() => props.town, (value) => {
|
|
18149
|
-
regionList.town = isCustom2.value ? transformData(value) : value;
|
|
18150
|
-
});
|
|
18151
|
-
vue.watch(() => props.existAddress, (value) => {
|
|
18152
|
-
value.forEach((item, index) => {
|
|
18153
|
-
if (item.selectedAddress) {
|
|
18154
|
-
selectedExistAddress = item;
|
|
18476
|
+
vue.watch(
|
|
18477
|
+
() => props.visible,
|
|
18478
|
+
(value) => {
|
|
18479
|
+
showPopup.value = value;
|
|
18480
|
+
}
|
|
18481
|
+
);
|
|
18482
|
+
vue.watch(
|
|
18483
|
+
() => showPopup.value,
|
|
18484
|
+
(value) => {
|
|
18485
|
+
if (value == false) {
|
|
18486
|
+
close();
|
|
18487
|
+
} else {
|
|
18488
|
+
initCustomSelected();
|
|
18155
18489
|
}
|
|
18156
|
-
}
|
|
18157
|
-
|
|
18158
|
-
|
|
18490
|
+
}
|
|
18491
|
+
);
|
|
18492
|
+
vue.watch(
|
|
18493
|
+
() => props.province,
|
|
18494
|
+
(value) => {
|
|
18495
|
+
regionList.province = isCustom2.value ? transformData(value) : value;
|
|
18496
|
+
}
|
|
18497
|
+
);
|
|
18498
|
+
vue.watch(
|
|
18499
|
+
() => props.city,
|
|
18500
|
+
(value) => {
|
|
18501
|
+
regionList.city = isCustom2.value ? transformData(value) : value;
|
|
18502
|
+
}
|
|
18503
|
+
);
|
|
18504
|
+
vue.watch(
|
|
18505
|
+
() => props.country,
|
|
18506
|
+
(value) => {
|
|
18507
|
+
regionList.country = isCustom2.value ? transformData(value) : value;
|
|
18508
|
+
}
|
|
18509
|
+
);
|
|
18510
|
+
vue.watch(
|
|
18511
|
+
() => props.town,
|
|
18512
|
+
(value) => {
|
|
18513
|
+
regionList.town = isCustom2.value ? transformData(value) : value;
|
|
18514
|
+
}
|
|
18515
|
+
);
|
|
18516
|
+
vue.watch(
|
|
18517
|
+
() => props.existAddress,
|
|
18518
|
+
(value) => {
|
|
18519
|
+
value.forEach((item, index) => {
|
|
18520
|
+
if (item.selectedAddress) {
|
|
18521
|
+
selectedExistAddress = item;
|
|
18522
|
+
}
|
|
18523
|
+
});
|
|
18524
|
+
}
|
|
18525
|
+
);
|
|
18526
|
+
return {
|
|
18159
18527
|
showPopup,
|
|
18160
18528
|
privateType,
|
|
18161
18529
|
tabIndex,
|
|
@@ -18176,10 +18544,10 @@ var __objRest = (source, exclude) => {
|
|
|
18176
18544
|
clickOverlay,
|
|
18177
18545
|
handClose,
|
|
18178
18546
|
handleElevatorItem,
|
|
18179
|
-
initCustomSelected
|
|
18180
|
-
|
|
18547
|
+
initCustomSelected,
|
|
18548
|
+
...vue.toRefs(props),
|
|
18181
18549
|
translate: translate$9
|
|
18182
|
-
}
|
|
18550
|
+
};
|
|
18183
18551
|
}
|
|
18184
18552
|
});
|
|
18185
18553
|
const _hoisted_1$m = { class: "nut-address" };
|
|
@@ -18207,7 +18575,7 @@ var __objRest = (source, exclude) => {
|
|
|
18207
18575
|
};
|
|
18208
18576
|
const _hoisted_12$1 = ["onClick"];
|
|
18209
18577
|
const _hoisted_13$1 = { class: "elevator-group" };
|
|
18210
|
-
const _hoisted_14 = {
|
|
18578
|
+
const _hoisted_14$1 = {
|
|
18211
18579
|
key: 2,
|
|
18212
18580
|
class: "exist-address"
|
|
18213
18581
|
};
|
|
@@ -18245,10 +18613,10 @@ var __objRest = (source, exclude) => {
|
|
|
18245
18613
|
class: "arrow-back",
|
|
18246
18614
|
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.switchModule && _ctx.switchModule(...args))
|
|
18247
18615
|
}, [
|
|
18248
|
-
vue.withDirectives(vue.createVNode(_component_nut_icon, {
|
|
18616
|
+
vue.withDirectives(vue.createVNode(_component_nut_icon, vue.mergeProps(_ctx.$attrs, {
|
|
18249
18617
|
name: _ctx.backBtnIcon,
|
|
18250
18618
|
color: "#cccccc"
|
|
18251
|
-
}, null,
|
|
18619
|
+
}), null, 16, ["name"]), [
|
|
18252
18620
|
[vue.vShow, _ctx.type == "exist" && _ctx.privateType == "custom" && _ctx.backBtnIcon]
|
|
18253
18621
|
])
|
|
18254
18622
|
]),
|
|
@@ -18257,12 +18625,11 @@ var __objRest = (source, exclude) => {
|
|
|
18257
18625
|
class: "arrow-close",
|
|
18258
18626
|
onClick: _cache[1] || (_cache[1] = ($event) => _ctx.handClose("cross"))
|
|
18259
18627
|
}, [
|
|
18260
|
-
_ctx.closeBtnIcon ? (vue.openBlock(), vue.createBlock(_component_nut_icon, {
|
|
18261
|
-
key: 0,
|
|
18628
|
+
_ctx.closeBtnIcon ? (vue.openBlock(), vue.createBlock(_component_nut_icon, vue.mergeProps({ key: 0 }, _ctx.$attrs, {
|
|
18262
18629
|
name: _ctx.closeBtnIcon,
|
|
18263
18630
|
color: "#cccccc",
|
|
18264
18631
|
size: "18px"
|
|
18265
|
-
}, null,
|
|
18632
|
+
}), null, 16, ["name"])) : vue.createCommentVNode("", true)
|
|
18266
18633
|
])
|
|
18267
18634
|
]),
|
|
18268
18635
|
_ctx.privateType == "custom" ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_4$f, [
|
|
@@ -18290,13 +18657,14 @@ var __objRest = (source, exclude) => {
|
|
|
18290
18657
|
class: vue.normalizeClass(["region-item", [_ctx.selectedRegion[_ctx.tabName[_ctx.tabIndex]].id == item.id ? "active" : ""]]),
|
|
18291
18658
|
onClick: ($event) => _ctx.nextAreaList(item)
|
|
18292
18659
|
}, [
|
|
18293
|
-
_ctx.selectedRegion[_ctx.tabName[_ctx.tabIndex]].id == item.id ? (vue.openBlock(), vue.createBlock(_component_nut_icon, {
|
|
18660
|
+
_ctx.selectedRegion[_ctx.tabName[_ctx.tabIndex]].id == item.id ? (vue.openBlock(), vue.createBlock(_component_nut_icon, vue.mergeProps({
|
|
18294
18661
|
key: 0,
|
|
18295
18662
|
class: "region-item-icon",
|
|
18296
|
-
type: "self"
|
|
18663
|
+
type: "self"
|
|
18664
|
+
}, _ctx.$attrs, {
|
|
18297
18665
|
name: _ctx.selectedIcon,
|
|
18298
18666
|
size: "13px"
|
|
18299
|
-
}, null,
|
|
18667
|
+
}), null, 16, ["name"])) : vue.createCommentVNode("", true),
|
|
18300
18668
|
vue.createTextVNode(vue.toDisplayString(item.name), 1)
|
|
18301
18669
|
], 10, _hoisted_9$2);
|
|
18302
18670
|
}), 128))
|
|
@@ -18326,7 +18694,7 @@ var __objRest = (source, exclude) => {
|
|
|
18326
18694
|
onClickItem: _ctx.handleElevatorItem
|
|
18327
18695
|
}, null, 8, ["height", "index-list", "onClickItem"])
|
|
18328
18696
|
])
|
|
18329
|
-
])) : _ctx.privateType == "exist" ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_14, [
|
|
18697
|
+
])) : _ctx.privateType == "exist" ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_14$1, [
|
|
18330
18698
|
vue.createElementVNode("div", _hoisted_15, [
|
|
18331
18699
|
vue.createElementVNode("ul", _hoisted_16, [
|
|
18332
18700
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.existAddress, (item, index) => {
|
|
@@ -18335,12 +18703,13 @@ var __objRest = (source, exclude) => {
|
|
|
18335
18703
|
key: index,
|
|
18336
18704
|
onClick: ($event) => _ctx.selectedExist(item)
|
|
18337
18705
|
}, [
|
|
18338
|
-
vue.createVNode(_component_nut_icon, {
|
|
18706
|
+
vue.createVNode(_component_nut_icon, vue.mergeProps({
|
|
18339
18707
|
class: "exist-item-icon",
|
|
18340
|
-
type: "self"
|
|
18708
|
+
type: "self"
|
|
18709
|
+
}, _ctx.$attrs, {
|
|
18341
18710
|
name: item.selectedAddress ? _ctx.selectedIcon : _ctx.defaultIcon,
|
|
18342
18711
|
size: "13px"
|
|
18343
|
-
}, null,
|
|
18712
|
+
}), null, 16, ["name"]),
|
|
18344
18713
|
vue.createElementVNode("div", _hoisted_18, [
|
|
18345
18714
|
item.name && item.phone ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_19, [
|
|
18346
18715
|
vue.createElementVNode("div", _hoisted_20, vue.toDisplayString(item.name), 1),
|
|
@@ -18361,10 +18730,11 @@ var __objRest = (source, exclude) => {
|
|
|
18361
18730
|
}, [
|
|
18362
18731
|
vue.createElementVNode("div", _hoisted_23, vue.toDisplayString(_ctx.customAndExistTitle || _ctx.translate("chooseAnotherAddress")), 1)
|
|
18363
18732
|
])) : vue.createCommentVNode("", true)
|
|
18364
|
-
])) : vue.createCommentVNode("", true)
|
|
18733
|
+
])) : vue.createCommentVNode("", true),
|
|
18734
|
+
vue.renderSlot(_ctx.$slots, "bottom")
|
|
18365
18735
|
])
|
|
18366
18736
|
]),
|
|
18367
|
-
_:
|
|
18737
|
+
_: 3
|
|
18368
18738
|
}, 8, ["lock-scroll", "onClose", "onClickOverlay", "visible", "isWrapTeleport", "teleport"]);
|
|
18369
18739
|
}
|
|
18370
18740
|
var Address = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["render", _sfc_render$n]]);
|
|
@@ -18425,9 +18795,12 @@ var __objRest = (source, exclude) => {
|
|
|
18425
18795
|
clearInterval(timer);
|
|
18426
18796
|
timer = 0;
|
|
18427
18797
|
});
|
|
18428
|
-
vue.watch(
|
|
18429
|
-
|
|
18430
|
-
|
|
18798
|
+
vue.watch(
|
|
18799
|
+
() => props.danmu,
|
|
18800
|
+
(newValue, oldVlaue) => {
|
|
18801
|
+
danmuList.value = [...newValue];
|
|
18802
|
+
}
|
|
18803
|
+
);
|
|
18431
18804
|
const add = (word) => {
|
|
18432
18805
|
const _index = index.value % danmuList.value.length;
|
|
18433
18806
|
if (!props.loop && index.value === danmuList.value.length) {
|
|
@@ -18497,7 +18870,15 @@ var __objRest = (source, exclude) => {
|
|
|
18497
18870
|
},
|
|
18498
18871
|
strokeStyle: {
|
|
18499
18872
|
type: String,
|
|
18500
|
-
default:
|
|
18873
|
+
default: () => {
|
|
18874
|
+
let bodyDom = document.getElementsByTagName("body");
|
|
18875
|
+
let clsName = bodyDom[0]["className"];
|
|
18876
|
+
if (clsName.indexOf("nut-theme-dark") == -1) {
|
|
18877
|
+
return "#000";
|
|
18878
|
+
} else {
|
|
18879
|
+
return "#fff";
|
|
18880
|
+
}
|
|
18881
|
+
}
|
|
18501
18882
|
},
|
|
18502
18883
|
type: {
|
|
18503
18884
|
type: String,
|
|
@@ -18509,7 +18890,7 @@ var __objRest = (source, exclude) => {
|
|
|
18509
18890
|
}
|
|
18510
18891
|
},
|
|
18511
18892
|
components: {},
|
|
18512
|
-
emits: ["confirm", "clear"],
|
|
18893
|
+
emits: ["start", "end", "signing", "confirm", "clear"],
|
|
18513
18894
|
setup(props, { emit }) {
|
|
18514
18895
|
const canvas = vue.ref(null);
|
|
18515
18896
|
const wrap = vue.ref(null);
|
|
@@ -18539,6 +18920,7 @@ var __objRest = (source, exclude) => {
|
|
|
18539
18920
|
state.ctx.beginPath();
|
|
18540
18921
|
state.ctx.lineWidth = props.lineWidth;
|
|
18541
18922
|
state.ctx.strokeStyle = props.strokeStyle;
|
|
18923
|
+
emit("start");
|
|
18542
18924
|
canvas.value.addEventListener(state.events[1], moveEventHandler, false);
|
|
18543
18925
|
canvas.value.addEventListener(state.events[2], endEventHandler, false);
|
|
18544
18926
|
canvas.value.addEventListener(state.events[3], leaveEventHandler, false);
|
|
@@ -18546,6 +18928,7 @@ var __objRest = (source, exclude) => {
|
|
|
18546
18928
|
const moveEventHandler = (event) => {
|
|
18547
18929
|
event.preventDefault();
|
|
18548
18930
|
let evt = state.isSupportTouch ? event.touches[0] : event;
|
|
18931
|
+
emit("signing", evt);
|
|
18549
18932
|
let coverPos = canvas.value.getBoundingClientRect();
|
|
18550
18933
|
let mouseX = evt.clientX - coverPos.left;
|
|
18551
18934
|
let mouseY = evt.clientY - coverPos.top;
|
|
@@ -18554,6 +18937,7 @@ var __objRest = (source, exclude) => {
|
|
|
18554
18937
|
};
|
|
18555
18938
|
const endEventHandler = (event) => {
|
|
18556
18939
|
event.preventDefault();
|
|
18940
|
+
emit("end");
|
|
18557
18941
|
canvas.value.removeEventListener(state.events[1], moveEventHandler, false);
|
|
18558
18942
|
canvas.value.removeEventListener(state.events[2], endEventHandler, false);
|
|
18559
18943
|
};
|
|
@@ -18592,7 +18976,7 @@ var __objRest = (source, exclude) => {
|
|
|
18592
18976
|
addEvent();
|
|
18593
18977
|
}
|
|
18594
18978
|
});
|
|
18595
|
-
return
|
|
18979
|
+
return { ...vue.toRefs(state), canvas, wrap, isCanvasSupported, confirm, clear, classes, translate: translate$8 };
|
|
18596
18980
|
}
|
|
18597
18981
|
});
|
|
18598
18982
|
const _hoisted_1$k = {
|
|
@@ -18778,10 +19162,11 @@ var __objRest = (source, exclude) => {
|
|
|
18778
19162
|
const handlePannel = (pannelKey) => {
|
|
18779
19163
|
context.emit("change", pannelKey);
|
|
18780
19164
|
};
|
|
18781
|
-
return
|
|
19165
|
+
return {
|
|
19166
|
+
...vue.toRefs(state),
|
|
18782
19167
|
classes,
|
|
18783
19168
|
handlePannel
|
|
18784
|
-
}
|
|
19169
|
+
};
|
|
18785
19170
|
}
|
|
18786
19171
|
});
|
|
18787
19172
|
function _sfc_render$j(_ctx, _cache, $props, $setup, $data, $options) {
|
|
@@ -18835,13 +19220,13 @@ var __objRest = (source, exclude) => {
|
|
|
18835
19220
|
const handleTime = (time) => {
|
|
18836
19221
|
context.emit("select", time);
|
|
18837
19222
|
};
|
|
18838
|
-
return
|
|
18839
|
-
classes
|
|
18840
|
-
|
|
19223
|
+
return {
|
|
19224
|
+
classes,
|
|
19225
|
+
...vue.toRefs(state),
|
|
18841
19226
|
getClass,
|
|
18842
19227
|
renderData,
|
|
18843
19228
|
handleTime
|
|
18844
|
-
}
|
|
19229
|
+
};
|
|
18845
19230
|
}
|
|
18846
19231
|
});
|
|
18847
19232
|
const _hoisted_1$i = { class: "nut-timedetail__detail nut-timedetail__detail--moring" };
|
|
@@ -18919,9 +19304,13 @@ var __objRest = (source, exclude) => {
|
|
|
18919
19304
|
emits: ["selectSku"],
|
|
18920
19305
|
setup(props, { emit }) {
|
|
18921
19306
|
const skuInfo = vue.ref([]);
|
|
18922
|
-
vue.watch(
|
|
18923
|
-
|
|
18924
|
-
|
|
19307
|
+
vue.watch(
|
|
19308
|
+
() => props.sku,
|
|
19309
|
+
(value) => {
|
|
19310
|
+
skuInfo.value = [].slice.call(value);
|
|
19311
|
+
},
|
|
19312
|
+
{ deep: true }
|
|
19313
|
+
);
|
|
18925
19314
|
vue.onMounted(() => {
|
|
18926
19315
|
if (props.sku.length > 0) {
|
|
18927
19316
|
skuInfo.value = [].slice.call(props.sku);
|
|
@@ -19134,7 +19523,8 @@ var __objRest = (source, exclude) => {
|
|
|
19134
19523
|
var SkuOperate = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["render", _sfc_render$e]]);
|
|
19135
19524
|
const { componentName: componentName$c, create: create$d, translate: translate$5 } = createComponent("sku");
|
|
19136
19525
|
const _sfc_main$d = create$d({
|
|
19137
|
-
props:
|
|
19526
|
+
props: {
|
|
19527
|
+
...popupProps,
|
|
19138
19528
|
sku: {
|
|
19139
19529
|
type: Array,
|
|
19140
19530
|
default: []
|
|
@@ -19179,7 +19569,7 @@ var __objRest = (source, exclude) => {
|
|
|
19179
19569
|
type: String,
|
|
19180
19570
|
default: ""
|
|
19181
19571
|
}
|
|
19182
|
-
}
|
|
19572
|
+
},
|
|
19183
19573
|
emits: [
|
|
19184
19574
|
"update:visible",
|
|
19185
19575
|
"selectSku",
|
|
@@ -19202,14 +19592,20 @@ var __objRest = (source, exclude) => {
|
|
|
19202
19592
|
setup(props, { emit, slots }) {
|
|
19203
19593
|
const showPopup = vue.ref(props.visible);
|
|
19204
19594
|
const goodsCount = vue.ref(props.stepperMin);
|
|
19205
|
-
vue.watch(
|
|
19206
|
-
|
|
19207
|
-
|
|
19208
|
-
|
|
19209
|
-
|
|
19210
|
-
|
|
19595
|
+
vue.watch(
|
|
19596
|
+
() => props.visible,
|
|
19597
|
+
(value) => {
|
|
19598
|
+
showPopup.value = value;
|
|
19599
|
+
}
|
|
19600
|
+
);
|
|
19601
|
+
vue.watch(
|
|
19602
|
+
() => showPopup.value,
|
|
19603
|
+
(value) => {
|
|
19604
|
+
if (value == false) {
|
|
19605
|
+
close();
|
|
19606
|
+
}
|
|
19211
19607
|
}
|
|
19212
|
-
|
|
19608
|
+
);
|
|
19213
19609
|
vue.onMounted(() => {
|
|
19214
19610
|
});
|
|
19215
19611
|
const getSlots = (name) => slots[name];
|
|
@@ -19541,9 +19937,12 @@ var __objRest = (source, exclude) => {
|
|
|
19541
19937
|
stepValue.value = value;
|
|
19542
19938
|
emit("changeStep", stepValue.value, currentValue.value);
|
|
19543
19939
|
};
|
|
19544
|
-
vue.watch(
|
|
19545
|
-
|
|
19546
|
-
|
|
19940
|
+
vue.watch(
|
|
19941
|
+
() => props.modelValue,
|
|
19942
|
+
(value) => {
|
|
19943
|
+
money.value = value;
|
|
19944
|
+
}
|
|
19945
|
+
);
|
|
19547
19946
|
return {
|
|
19548
19947
|
handleClick,
|
|
19549
19948
|
changeStep,
|
|
@@ -19627,7 +20026,6 @@ var __objRest = (source, exclude) => {
|
|
|
19627
20026
|
setup(props, { emit }) {
|
|
19628
20027
|
const delClick = (event) => {
|
|
19629
20028
|
emit("delIconClick", event, props.item);
|
|
19630
|
-
console.log(123);
|
|
19631
20029
|
event.stopPropagation();
|
|
19632
20030
|
};
|
|
19633
20031
|
const editClick = (event) => {
|
|
@@ -20076,14 +20474,17 @@ var __objRest = (source, exclude) => {
|
|
|
20076
20474
|
fullAddress: "\u5317\u4EAC\u5E02\u901A\u5DDE\u533A\u6D4B\u8BD5\u6D4B\u8BD5\u6D4B\u8BD5\u6D4B\u8BD5\u6D4B\u8BD5\u6D4B\u8BD5\u6D4B\u8BD5\u6D4B\u8BD5\u6D4B\u8BD5"
|
|
20077
20475
|
});
|
|
20078
20476
|
const trowelData = () => {
|
|
20079
|
-
|
|
20080
|
-
if (Object.keys(props.dataMapOptions).length > 0 && props.data.length > 0) {
|
|
20477
|
+
if (Object.keys(props.dataMapOptions).length > 0) {
|
|
20081
20478
|
dataArray.value = props.data.map((item, index) => {
|
|
20082
20479
|
return floatData(dataInfo, item, props.dataMapOptions);
|
|
20083
20480
|
});
|
|
20084
20481
|
}
|
|
20085
20482
|
};
|
|
20086
|
-
vue.watch(
|
|
20483
|
+
vue.watch(
|
|
20484
|
+
() => props.data,
|
|
20485
|
+
() => trowelData(),
|
|
20486
|
+
{ deep: true }
|
|
20487
|
+
);
|
|
20087
20488
|
const clickDelIcon = (event, item) => {
|
|
20088
20489
|
emit("handelDelIcon", event, item);
|
|
20089
20490
|
event.stopPropagation();
|
|
@@ -20262,7 +20663,7 @@ var __objRest = (source, exclude) => {
|
|
|
20262
20663
|
vue.createElementVNode("div", {
|
|
20263
20664
|
class: vue.normalizeClass([_ctx.checkIndex == index ? "nut-category__cateListItemChecked" : "nut-category__cateListItem"]),
|
|
20264
20665
|
onClick: ($event) => _ctx.getChildList(index)
|
|
20265
|
-
}, vue.toDisplayString(item.catName), 11, _hoisted_4$5)
|
|
20666
|
+
}, vue.toDisplayString(item == null ? void 0 : item.catName), 11, _hoisted_4$5)
|
|
20266
20667
|
]);
|
|
20267
20668
|
}), 128))
|
|
20268
20669
|
])) : vue.createCommentVNode("", true),
|
|
@@ -20271,7 +20672,6 @@ var __objRest = (source, exclude) => {
|
|
|
20271
20672
|
]);
|
|
20272
20673
|
}
|
|
20273
20674
|
var Category = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["render", _sfc_render$5]]);
|
|
20274
|
-
var index_vue_vue_type_style_index_0_lang = "";
|
|
20275
20675
|
const { componentName: componentName$4, create: create$4 } = createComponent("categorypane");
|
|
20276
20676
|
const _sfc_main$4 = create$4({
|
|
20277
20677
|
props: {
|
|
@@ -20325,13 +20725,14 @@ var __objRest = (source, exclude) => {
|
|
|
20325
20725
|
key: 2,
|
|
20326
20726
|
class: "nut-categorypane__selfItemList"
|
|
20327
20727
|
};
|
|
20728
|
+
const _hoisted_14 = ["onClick"];
|
|
20328
20729
|
function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
20329
20730
|
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$4, [
|
|
20330
20731
|
_ctx.type == "classify" ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$4, [
|
|
20331
20732
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.categoryChild, (item, index) => {
|
|
20332
20733
|
return vue.openBlock(), vue.createElementBlock("div", { key: index }, [
|
|
20333
|
-
vue.createElementVNode("div", _hoisted_3$4, vue.toDisplayString(item.catName), 1),
|
|
20334
|
-
item.catType == 1 ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_4$4, [
|
|
20734
|
+
vue.createElementVNode("div", _hoisted_3$4, vue.toDisplayString(item == null ? void 0 : item.catName), 1),
|
|
20735
|
+
(item == null ? void 0 : item.catType) == 1 ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_4$4, [
|
|
20335
20736
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(item.childCateList, (sku, key) => {
|
|
20336
20737
|
return vue.openBlock(), vue.createElementBlock("div", {
|
|
20337
20738
|
class: "nut-categorypane__childItem",
|
|
@@ -20342,7 +20743,7 @@ var __objRest = (source, exclude) => {
|
|
|
20342
20743
|
class: "nut-categorypane__childImg",
|
|
20343
20744
|
src: sku.backImg
|
|
20344
20745
|
}, null, 8, _hoisted_6$1),
|
|
20345
|
-
vue.createElementVNode("div", _hoisted_7, vue.toDisplayString(sku.catName), 1)
|
|
20746
|
+
vue.createElementVNode("div", _hoisted_7, vue.toDisplayString(sku == null ? void 0 : sku.catName), 1)
|
|
20346
20747
|
], 8, _hoisted_5$2);
|
|
20347
20748
|
}), 128))
|
|
20348
20749
|
])) : vue.createCommentVNode("", true)
|
|
@@ -20352,15 +20753,15 @@ var __objRest = (source, exclude) => {
|
|
|
20352
20753
|
_ctx.type == "text" ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_8, [
|
|
20353
20754
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.categoryChild, (item, index) => {
|
|
20354
20755
|
return vue.openBlock(), vue.createElementBlock("div", { key: index }, [
|
|
20355
|
-
vue.createElementVNode("div", _hoisted_9, vue.toDisplayString(item.catName), 1),
|
|
20356
|
-
item.catType == 1 ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_10, [
|
|
20756
|
+
vue.createElementVNode("div", _hoisted_9, vue.toDisplayString(item == null ? void 0 : item.catName), 1),
|
|
20757
|
+
(item == null ? void 0 : item.catType) == 1 ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_10, [
|
|
20357
20758
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(item.childCateList, (sku, key) => {
|
|
20358
20759
|
return vue.openBlock(), vue.createElementBlock("div", {
|
|
20359
20760
|
class: "nut-categorypane__childItem",
|
|
20360
20761
|
key,
|
|
20361
20762
|
onClick: ($event) => _ctx.onChange(sku)
|
|
20362
20763
|
}, [
|
|
20363
|
-
vue.createElementVNode("div", _hoisted_12, vue.toDisplayString(sku.catName), 1)
|
|
20764
|
+
vue.createElementVNode("div", _hoisted_12, vue.toDisplayString(sku == null ? void 0 : sku.catName), 1)
|
|
20364
20765
|
], 8, _hoisted_11);
|
|
20365
20766
|
}), 128))
|
|
20366
20767
|
])) : vue.createCommentVNode("", true)
|
|
@@ -20372,8 +20773,8 @@ var __objRest = (source, exclude) => {
|
|
|
20372
20773
|
return vue.openBlock(), vue.createElementBlock("div", {
|
|
20373
20774
|
class: "nut-categorypane__skuName",
|
|
20374
20775
|
key,
|
|
20375
|
-
onClick:
|
|
20376
|
-
}, vue.toDisplayString(sku.catName),
|
|
20776
|
+
onClick: ($event) => _ctx.onChange(sku)
|
|
20777
|
+
}, vue.toDisplayString(sku == null ? void 0 : sku.catName), 9, _hoisted_14);
|
|
20377
20778
|
}), 128))
|
|
20378
20779
|
])) : vue.createCommentVNode("", true)
|
|
20379
20780
|
]);
|
|
@@ -20503,14 +20904,18 @@ var __objRest = (source, exclude) => {
|
|
|
20503
20904
|
const isShowImage = vue.ref(false);
|
|
20504
20905
|
const initIndex = vue.ref(1);
|
|
20505
20906
|
const totalImages = vue.ref([]);
|
|
20506
|
-
vue.watch(
|
|
20507
|
-
|
|
20508
|
-
|
|
20509
|
-
|
|
20510
|
-
|
|
20511
|
-
|
|
20512
|
-
|
|
20513
|
-
|
|
20907
|
+
vue.watch(
|
|
20908
|
+
() => [props.videos, props.images],
|
|
20909
|
+
(value) => {
|
|
20910
|
+
if (value[0].length > 0) {
|
|
20911
|
+
value[0].forEach((el) => {
|
|
20912
|
+
el.type = "video";
|
|
20913
|
+
});
|
|
20914
|
+
}
|
|
20915
|
+
totalImages.value = value[0].concat(value[1]);
|
|
20916
|
+
},
|
|
20917
|
+
{ deep: true }
|
|
20918
|
+
);
|
|
20514
20919
|
vue.onMounted(() => {
|
|
20515
20920
|
if (props.videos.length > 0) {
|
|
20516
20921
|
props.videos.forEach((el) => {
|
|
@@ -20820,7 +21225,7 @@ var __objRest = (source, exclude) => {
|
|
|
20820
21225
|
}
|
|
20821
21226
|
});
|
|
20822
21227
|
}
|
|
20823
|
-
const version = "3.
|
|
21228
|
+
const version = "3.2.2-beta.1";
|
|
20824
21229
|
var nutui_vue_build = { install, version, Locale };
|
|
20825
21230
|
exports2.ActionSheet = ActionSheet;
|
|
20826
21231
|
exports2.Address = Address;
|