@nutui/nutui 3.2.1 → 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/dist/nutui.es.js +938 -548
- package/dist/nutui.umd.js +938 -548
- package/dist/packages/_es/ActionSheet.js +1 -1
- package/dist/packages/_es/Address.js +56 -32
- package/dist/packages/_es/AddressList.js +6 -2
- package/dist/packages/_es/Animate.js +1 -1
- package/dist/packages/_es/Audio.js +7 -4
- package/dist/packages/_es/AudioOperate.js +1 -1
- package/dist/packages/_es/Avatar.js +1 -1
- 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 +1 -1
- 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 +33 -20
- package/dist/packages/_es/Category.js +1 -1
- package/dist/packages/_es/CategoryPane.js +1 -1
- package/dist/packages/_es/Cell.js +1 -1
- package/dist/packages/_es/CellGroup.js +1 -1
- package/dist/packages/_es/Checkbox.js +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 +12 -9
- package/dist/packages/_es/Comment.js +13 -9
- package/dist/packages/_es/ConfigProvider.js +8 -4
- package/dist/packages/_es/CountDown.js +36 -24
- package/dist/packages/_es/CountUp.js +35 -19
- package/dist/packages/_es/DatePicker.js +19 -10
- package/dist/packages/_es/Dialog.js +9 -6
- package/dist/packages/_es/Divider.js +1 -1
- package/dist/packages/_es/Drag.js +1 -1
- package/dist/packages/_es/Ecard.js +7 -4
- package/dist/packages/_es/Elevator.js +21 -15
- package/dist/packages/_es/Ellipsis.js +13 -8
- package/dist/packages/_es/Empty.js +1 -1
- package/dist/packages/_es/FixedNav.js +1 -1
- 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 +1 -1
- package/dist/packages/_es/Icon.js +15 -11
- package/dist/packages/_es/Image.js +7 -4
- package/dist/packages/_es/ImagePreview.js +15 -9
- package/dist/packages/_es/Indicator.js +1 -1
- package/dist/packages/_es/InfiniteLoading.js +1 -1
- package/dist/packages/_es/Input.js +8 -5
- package/dist/packages/_es/InputNumber.js +20 -14
- package/dist/packages/_es/Layout.js +1 -1
- package/dist/packages/_es/List.js +7 -4
- package/dist/packages/_es/Menu.js +12 -6
- package/dist/packages/_es/MenuItem.js +1 -1
- package/dist/packages/_es/Navbar.js +1 -1
- package/dist/packages/_es/NoticeBar.js +13 -7
- package/dist/packages/_es/Notify.js +8 -5
- package/dist/packages/_es/NumberKeyboard.js +12 -5
- package/dist/packages/_es/OldPicker.js +36 -19
- package/dist/packages/_es/OverLay.js +7 -4
- package/dist/packages/_es/Pagination.js +1 -1
- package/dist/packages/_es/Picker.js +64 -32
- package/dist/packages/_es/Popover.js +52 -31
- package/dist/packages/_es/Popup.js +22 -13
- package/dist/packages/_es/Price.js +1 -1
- package/dist/packages/_es/Progress.js +1 -1
- package/dist/packages/_es/PullRefresh.js +1 -1
- package/dist/packages/_es/Radio.js +25 -13
- package/dist/packages/_es/RadioGroup.js +12 -5
- package/dist/packages/_es/Range.js +16 -10
- package/dist/packages/_es/Rate.js +1 -1
- package/dist/packages/_es/Row.js +5 -11
- package/dist/packages/_es/SearchBar.js +1 -1
- package/dist/packages/_es/ShortPassword.js +18 -11
- package/dist/packages/_es/SideNavBar.js +1 -1
- package/dist/packages/_es/SideNavBarItem.js +1 -1
- package/dist/packages/_es/Signature.js +1 -1
- package/dist/packages/_es/Skeleton.js +1 -1
- package/dist/packages/_es/Sku.js +21 -11
- package/dist/packages/_es/Step.js +1 -1
- package/dist/packages/_es/Steps.js +8 -4
- package/dist/packages/_es/Sticky.js +23 -12
- package/dist/packages/_es/SubSideNavBar.js +1 -1
- package/dist/packages/_es/Swipe.js +1 -1
- package/dist/packages/_es/Swiper.js +23 -14
- package/dist/packages/_es/SwiperItem.js +1 -1
- package/dist/packages/_es/Switch.js +10 -7
- 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 +7 -4
- package/dist/packages/_es/Tabs.js +16 -10
- package/dist/packages/_es/Tag.js +1 -1
- package/dist/packages/_es/TextArea.js +8 -5
- package/dist/packages/_es/TimeDetail.js +1 -1
- package/dist/packages/_es/TimePannel.js +1 -1
- package/dist/packages/_es/TimeSelect.js +1 -1
- package/dist/packages/_es/Toast.js +8 -5
- package/dist/packages/_es/Uploader.js +14 -8
- package/dist/packages/_es/Video.js +17 -10
- package/dist/packages/_es/WaterMark.js +30 -21
- package/dist/packages/_es/common.js +20 -10
- package/dist/packages/_es/component.js +1 -1
- package/dist/packages/_es/index.js +1 -1
- package/dist/packages/_es/index2.js +1 -1
- package/dist/packages/_es/index3.js +1 -1
- package/dist/packages/_es/index4.js +1 -1
- package/dist/packages/_es/index5.js +21 -12
- 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/button/index.scss +1 -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/radio/index.scss +1 -0
- package/dist/smartips/attributes.json +21 -1
- package/dist/smartips/tags.json +7 -2
- package/dist/smartips/web-types.json +47 -2
- package/dist/style.css +1 -1
- package/dist/styles/themes/default.scss +49 -49
- package/dist/styles/themes/jdb.scss +49 -49
- package/dist/styles/themes/jdt.scss +49 -49
- package/dist/types/__VUE/actionsheet/index.vue.d.ts +3 -3
- package/dist/types/__VUE/address/index.vue.d.ts +3 -3
- package/dist/types/__VUE/avatar/index.vue.d.ts +4 -4
- package/dist/types/__VUE/avatargroup/index.vue.d.ts +2 -2
- package/dist/types/__VUE/backtop/index.vue.d.ts +2 -2
- package/dist/types/__VUE/badge/index.vue.d.ts +2 -2
- package/dist/types/__VUE/button/index.vue.d.ts +2 -2
- package/dist/types/__VUE/calendar/index.vue.d.ts +8 -1
- package/dist/types/__VUE/calendaritem/index.vue.d.ts +1 -1
- package/dist/types/__VUE/cascader/index.vue.d.ts +3 -3
- package/dist/types/__VUE/cell/index.vue.d.ts +8 -8
- 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 +2 -2
- package/dist/types/__VUE/datepicker/index.vue.d.ts +2 -2
- package/dist/types/__VUE/dialog/index.vue.d.ts +2 -2
- package/dist/types/__VUE/divider/index.vue.d.ts +2 -2
- package/dist/types/__VUE/fixednav/index.vue.d.ts +4 -4
- package/dist/types/__VUE/grid/index.vue.d.ts +3 -3
- package/dist/types/__VUE/griditem/index.vue.d.ts +1 -1
- package/dist/types/__VUE/imagepreview/index.d.ts +7 -6
- package/dist/types/__VUE/imagepreview/index.vue.d.ts +3 -3
- package/dist/types/__VUE/imagepreview/types.d.ts +7 -0
- package/dist/types/__VUE/input/index.vue.d.ts +4 -4
- package/dist/types/__VUE/inputnumber/index.vue.d.ts +14 -0
- package/dist/types/__VUE/menu/index.vue.d.ts +2 -2
- package/dist/types/__VUE/noticebar/index.vue.d.ts +3 -3
- package/dist/types/__VUE/numberkeyboard/index.vue.d.ts +4 -4
- package/dist/types/__VUE/oldpicker/index.vue.d.ts +3 -3
- package/dist/types/__VUE/picker/Column.vue.d.ts +8 -0
- package/dist/types/__VUE/picker/index.vue.d.ts +18 -3
- package/dist/types/__VUE/popover/index.vue.d.ts +6 -6
- package/dist/types/__VUE/popup/index.vue.d.ts +4 -4
- package/dist/types/__VUE/row/index.vue.d.ts +2 -5
- package/dist/types/__VUE/shortpassword/index.vue.d.ts +1 -1
- package/dist/types/__VUE/sku/index.vue.d.ts +3 -3
- package/dist/types/__VUE/step/index.vue.d.ts +2 -2
- package/dist/types/__VUE/swipe/index.vue.d.ts +2 -2
- package/dist/types/__VUE/tabbaritem/index.vue.d.ts +2 -2
- package/dist/types/__VUE/toast/index.vue.d.ts +2 -2
- package/dist/types/__VUE/uploader/index.vue.d.ts +2 -2
- package/dist/types/__VUE/video/index.vue.d.ts +1 -1
- package/dist/types/index.d.ts +1 -1
- package/package.json +2 -1
package/dist/nutui.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.2.1
|
|
2
|
+
* @nutui/nutui v3.2.2-beta.1 Mon Aug 22 2022 15:19:41 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2022 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
@@ -371,17 +371,21 @@ const _sfc_main$1P = create$1P({
|
|
|
371
371
|
return () => {
|
|
372
372
|
var _a;
|
|
373
373
|
const _isImage = isImage();
|
|
374
|
-
return h(
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
374
|
+
return h(
|
|
375
|
+
_isImage ? "img" : props.tag,
|
|
376
|
+
{
|
|
377
|
+
class: _isImage ? `${componentName$1t}__img` : `${props.fontClassName} ${componentName$1t} ${props.classPrefix}-${props.name}`,
|
|
378
|
+
style: {
|
|
379
|
+
color: props.color,
|
|
380
|
+
fontSize: pxCheck(props.size),
|
|
381
|
+
width: pxCheck(props.size),
|
|
382
|
+
height: pxCheck(props.size)
|
|
383
|
+
},
|
|
384
|
+
onClick: handleClick,
|
|
385
|
+
src: _isImage ? props.name : ""
|
|
381
386
|
},
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
}, (_a = slots.default) == null ? void 0 : _a.call(slots));
|
|
387
|
+
(_a = slots.default) == null ? void 0 : _a.call(slots)
|
|
388
|
+
);
|
|
385
389
|
};
|
|
386
390
|
}
|
|
387
391
|
});
|
|
@@ -699,9 +703,12 @@ const _sfc_main$1L = create$1L({
|
|
|
699
703
|
[props.overlayClass]: true
|
|
700
704
|
};
|
|
701
705
|
});
|
|
702
|
-
watch(
|
|
703
|
-
|
|
704
|
-
|
|
706
|
+
watch(
|
|
707
|
+
() => props.visible,
|
|
708
|
+
(value) => {
|
|
709
|
+
value ? lock() : unlock();
|
|
710
|
+
}
|
|
711
|
+
);
|
|
705
712
|
const lock = () => {
|
|
706
713
|
if (props.lockScroll && props.visible) {
|
|
707
714
|
document.body.classList.add("nut-overflow-hidden");
|
|
@@ -924,19 +931,28 @@ const _sfc_main$1K = create$1K({
|
|
|
924
931
|
state.keepAlive = true;
|
|
925
932
|
}
|
|
926
933
|
});
|
|
927
|
-
watch(
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
934
|
+
watch(
|
|
935
|
+
() => props.visible,
|
|
936
|
+
(value) => {
|
|
937
|
+
if (value) {
|
|
938
|
+
open();
|
|
939
|
+
} else {
|
|
940
|
+
close();
|
|
941
|
+
}
|
|
932
942
|
}
|
|
933
|
-
|
|
934
|
-
watch(
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
943
|
+
);
|
|
944
|
+
watch(
|
|
945
|
+
() => props.position,
|
|
946
|
+
(value) => {
|
|
947
|
+
value === "center" ? state.transitionName = "popup-fade" : state.transitionName = `popup-slide-${value}`;
|
|
948
|
+
}
|
|
949
|
+
);
|
|
950
|
+
watch(
|
|
951
|
+
() => props.closeable,
|
|
952
|
+
(value) => {
|
|
953
|
+
state.closed = value;
|
|
954
|
+
}
|
|
955
|
+
);
|
|
940
956
|
return {
|
|
941
957
|
...toRefs(state),
|
|
942
958
|
popStyle,
|
|
@@ -1049,9 +1065,13 @@ const component$8 = {
|
|
|
1049
1065
|
setup(props, { slots }) {
|
|
1050
1066
|
return () => {
|
|
1051
1067
|
var _a;
|
|
1052
|
-
return h(
|
|
1053
|
-
|
|
1054
|
-
|
|
1068
|
+
return h(
|
|
1069
|
+
props.tag,
|
|
1070
|
+
{
|
|
1071
|
+
class: `nut-theme-${props.theme}`
|
|
1072
|
+
},
|
|
1073
|
+
(_a = slots.default) == null ? void 0 : _a.call(slots)
|
|
1074
|
+
);
|
|
1055
1075
|
};
|
|
1056
1076
|
}
|
|
1057
1077
|
};
|
|
@@ -1129,9 +1149,12 @@ const _sfc_main$1I = create$1I({
|
|
|
1129
1149
|
};
|
|
1130
1150
|
return styless;
|
|
1131
1151
|
});
|
|
1132
|
-
watch(
|
|
1133
|
-
|
|
1134
|
-
|
|
1152
|
+
watch(
|
|
1153
|
+
() => props.src,
|
|
1154
|
+
(val) => {
|
|
1155
|
+
state.isError = false, state.loading = true;
|
|
1156
|
+
}
|
|
1157
|
+
);
|
|
1135
1158
|
const load = () => {
|
|
1136
1159
|
state.loading = false;
|
|
1137
1160
|
emit("load");
|
|
@@ -1202,8 +1225,8 @@ const _sfc_main$1G = create$1G({
|
|
|
1202
1225
|
default: "0"
|
|
1203
1226
|
}
|
|
1204
1227
|
},
|
|
1205
|
-
emits: [
|
|
1206
|
-
setup(props
|
|
1228
|
+
emits: [],
|
|
1229
|
+
setup(props) {
|
|
1207
1230
|
const prefixCls = componentName$1l;
|
|
1208
1231
|
const gutter = inject("gutter");
|
|
1209
1232
|
const classes = computed(() => {
|
|
@@ -1220,22 +1243,16 @@ const _sfc_main$1G = create$1G({
|
|
|
1220
1243
|
paddingRight: gutter / 2 + "px"
|
|
1221
1244
|
};
|
|
1222
1245
|
});
|
|
1223
|
-
const handleClick = (evt) => {
|
|
1224
|
-
evt.stopPropagation();
|
|
1225
|
-
emit("click", evt);
|
|
1226
|
-
};
|
|
1227
1246
|
return {
|
|
1228
1247
|
classes,
|
|
1229
|
-
style
|
|
1230
|
-
handleClick
|
|
1248
|
+
style
|
|
1231
1249
|
};
|
|
1232
1250
|
}
|
|
1233
1251
|
});
|
|
1234
1252
|
function _sfc_render$1w(_ctx, _cache, $props, $setup, $data, $options) {
|
|
1235
1253
|
return openBlock(), createElementBlock("view", {
|
|
1236
1254
|
class: normalizeClass(_ctx.classes),
|
|
1237
|
-
style: normalizeStyle(_ctx.style)
|
|
1238
|
-
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.handleClick && _ctx.handleClick(...args))
|
|
1255
|
+
style: normalizeStyle(_ctx.style)
|
|
1239
1256
|
}, [
|
|
1240
1257
|
renderSlot(_ctx.$slots, "default")
|
|
1241
1258
|
], 6);
|
|
@@ -1265,8 +1282,8 @@ const _sfc_main$1F = create$1F({
|
|
|
1265
1282
|
default: "nowrap"
|
|
1266
1283
|
}
|
|
1267
1284
|
},
|
|
1268
|
-
emits: [
|
|
1269
|
-
setup(props
|
|
1285
|
+
emits: [],
|
|
1286
|
+
setup(props) {
|
|
1270
1287
|
const prefixCls = componentName$1k;
|
|
1271
1288
|
provide("gutter", props.gutter);
|
|
1272
1289
|
const getClass = (prefix, type) => {
|
|
@@ -1281,20 +1298,14 @@ const _sfc_main$1F = create$1F({
|
|
|
1281
1298
|
${prefixCls}
|
|
1282
1299
|
`;
|
|
1283
1300
|
};
|
|
1284
|
-
const handleClick = (evt) => {
|
|
1285
|
-
evt.stopPropagation();
|
|
1286
|
-
emit("click", evt);
|
|
1287
|
-
};
|
|
1288
1301
|
return {
|
|
1289
|
-
getClasses
|
|
1290
|
-
handleClick
|
|
1302
|
+
getClasses
|
|
1291
1303
|
};
|
|
1292
1304
|
}
|
|
1293
1305
|
});
|
|
1294
1306
|
function _sfc_render$1v(_ctx, _cache, $props, $setup, $data, $options) {
|
|
1295
1307
|
return openBlock(), createElementBlock("view", {
|
|
1296
|
-
class: normalizeClass(_ctx.getClasses())
|
|
1297
|
-
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.handleClick && _ctx.handleClick(...args))
|
|
1308
|
+
class: normalizeClass(_ctx.getClasses())
|
|
1298
1309
|
}, [
|
|
1299
1310
|
renderSlot(_ctx.$slots, "default")
|
|
1300
1311
|
], 2);
|
|
@@ -1405,10 +1416,14 @@ const _sfc_main$1E = create$1E({
|
|
|
1405
1416
|
};
|
|
1406
1417
|
const renderFixed = () => {
|
|
1407
1418
|
var _a;
|
|
1408
|
-
return h(
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
|
|
1419
|
+
return h(
|
|
1420
|
+
"view",
|
|
1421
|
+
{
|
|
1422
|
+
style: stickyStyle.value,
|
|
1423
|
+
class: state.fixed ? `${componentName$1j} nut-sticky--fixed` : componentName$1j
|
|
1424
|
+
},
|
|
1425
|
+
(_a = slots.default) == null ? void 0 : _a.call(slots)
|
|
1426
|
+
);
|
|
1412
1427
|
};
|
|
1413
1428
|
const onScroll = () => {
|
|
1414
1429
|
if (!isExistRoot())
|
|
@@ -1445,9 +1460,12 @@ const _sfc_main$1E = create$1E({
|
|
|
1445
1460
|
fixed: state.fixed
|
|
1446
1461
|
});
|
|
1447
1462
|
};
|
|
1448
|
-
watch(
|
|
1449
|
-
|
|
1450
|
-
|
|
1463
|
+
watch(
|
|
1464
|
+
() => state.fixed,
|
|
1465
|
+
(val) => {
|
|
1466
|
+
emit("change", val);
|
|
1467
|
+
}
|
|
1468
|
+
);
|
|
1451
1469
|
onMounted(() => {
|
|
1452
1470
|
window.addEventListener("scroll", onScroll);
|
|
1453
1471
|
onScroll();
|
|
@@ -1456,10 +1474,14 @@ const _sfc_main$1E = create$1E({
|
|
|
1456
1474
|
window.removeEventListener("scroll", onScroll);
|
|
1457
1475
|
});
|
|
1458
1476
|
return () => {
|
|
1459
|
-
return h(
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
1477
|
+
return h(
|
|
1478
|
+
"view",
|
|
1479
|
+
{
|
|
1480
|
+
style: rootStyle.value,
|
|
1481
|
+
ref: root
|
|
1482
|
+
},
|
|
1483
|
+
[renderFixed()]
|
|
1484
|
+
);
|
|
1463
1485
|
};
|
|
1464
1486
|
}
|
|
1465
1487
|
});
|
|
@@ -1571,11 +1593,17 @@ function useProvide(key, childName) {
|
|
|
1571
1593
|
};
|
|
1572
1594
|
const extend = Object.assign;
|
|
1573
1595
|
return (value) => {
|
|
1574
|
-
provide(
|
|
1575
|
-
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
|
|
1596
|
+
provide(
|
|
1597
|
+
key,
|
|
1598
|
+
extend(
|
|
1599
|
+
{
|
|
1600
|
+
add,
|
|
1601
|
+
remove,
|
|
1602
|
+
internalChildren
|
|
1603
|
+
},
|
|
1604
|
+
value
|
|
1605
|
+
)
|
|
1606
|
+
);
|
|
1579
1607
|
return {
|
|
1580
1608
|
internalChildren
|
|
1581
1609
|
};
|
|
@@ -1643,10 +1671,14 @@ const component$7 = {
|
|
|
1643
1671
|
});
|
|
1644
1672
|
return () => {
|
|
1645
1673
|
var _a;
|
|
1646
|
-
return h(
|
|
1647
|
-
|
|
1648
|
-
|
|
1649
|
-
|
|
1674
|
+
return h(
|
|
1675
|
+
"view",
|
|
1676
|
+
{
|
|
1677
|
+
class: rootClass.value,
|
|
1678
|
+
style: rootStyle.value
|
|
1679
|
+
},
|
|
1680
|
+
(_a = slots.default) == null ? void 0 : _a.call(slots)
|
|
1681
|
+
);
|
|
1650
1682
|
};
|
|
1651
1683
|
}
|
|
1652
1684
|
};
|
|
@@ -2149,11 +2181,17 @@ const _sfc_main$1y = create$1y({
|
|
|
2149
2181
|
publicChildren.push(child.proxy);
|
|
2150
2182
|
}
|
|
2151
2183
|
};
|
|
2152
|
-
provide(
|
|
2153
|
-
|
|
2154
|
-
|
|
2155
|
-
|
|
2156
|
-
|
|
2184
|
+
provide(
|
|
2185
|
+
"menuParent",
|
|
2186
|
+
Object.assign(
|
|
2187
|
+
{
|
|
2188
|
+
link,
|
|
2189
|
+
children: publicChildren,
|
|
2190
|
+
internalChildren
|
|
2191
|
+
},
|
|
2192
|
+
value
|
|
2193
|
+
)
|
|
2194
|
+
);
|
|
2157
2195
|
};
|
|
2158
2196
|
return {
|
|
2159
2197
|
children: publicChildren,
|
|
@@ -2487,9 +2525,12 @@ const _sfc_main$1w = create$1w({
|
|
|
2487
2525
|
changeIndex
|
|
2488
2526
|
});
|
|
2489
2527
|
provide("parent", parentData);
|
|
2490
|
-
watch(
|
|
2491
|
-
|
|
2492
|
-
|
|
2528
|
+
watch(
|
|
2529
|
+
() => props.visible,
|
|
2530
|
+
(value) => {
|
|
2531
|
+
parentData.modelValue = value;
|
|
2532
|
+
}
|
|
2533
|
+
);
|
|
2493
2534
|
return {
|
|
2494
2535
|
changeIndex
|
|
2495
2536
|
};
|
|
@@ -2585,6 +2626,7 @@ const _sfc_main$1v = create$1v({
|
|
|
2585
2626
|
return null;
|
|
2586
2627
|
});
|
|
2587
2628
|
watch(choosed, (value, oldValue) => {
|
|
2629
|
+
var _a, _b;
|
|
2588
2630
|
state.active = value;
|
|
2589
2631
|
let index = value;
|
|
2590
2632
|
if (props.name) {
|
|
@@ -2592,20 +2634,18 @@ const _sfc_main$1v = create$1v({
|
|
|
2592
2634
|
return item.name == value;
|
|
2593
2635
|
});
|
|
2594
2636
|
}
|
|
2595
|
-
|
|
2596
|
-
|
|
2597
|
-
|
|
2598
|
-
|
|
2599
|
-
|
|
2600
|
-
|
|
2601
|
-
|
|
2602
|
-
|
|
2603
|
-
|
|
2604
|
-
|
|
2605
|
-
location.replace(to);
|
|
2606
|
-
}
|
|
2637
|
+
if ((_a = parent.children[index]) == null ? void 0 : _a.href) {
|
|
2638
|
+
window.location.href = parent.children[index].href;
|
|
2639
|
+
return;
|
|
2640
|
+
}
|
|
2641
|
+
if ((_b = parent.children[index]) == null ? void 0 : _b.to) {
|
|
2642
|
+
let to = parent.children[index].to;
|
|
2643
|
+
if (to && router) {
|
|
2644
|
+
router.push(to);
|
|
2645
|
+
} else {
|
|
2646
|
+
location.replace(to);
|
|
2607
2647
|
}
|
|
2608
|
-
}
|
|
2648
|
+
}
|
|
2609
2649
|
});
|
|
2610
2650
|
return {
|
|
2611
2651
|
state,
|
|
@@ -2821,21 +2861,27 @@ const _sfc_main$1u = create$1u({
|
|
|
2821
2861
|
useExpose({
|
|
2822
2862
|
scrollTo
|
|
2823
2863
|
});
|
|
2824
|
-
watch(
|
|
2825
|
-
state.
|
|
2826
|
-
|
|
2827
|
-
|
|
2828
|
-
|
|
2829
|
-
|
|
2830
|
-
|
|
2831
|
-
|
|
2832
|
-
|
|
2833
|
-
|
|
2864
|
+
watch(
|
|
2865
|
+
() => state.listGroup.length,
|
|
2866
|
+
() => {
|
|
2867
|
+
state.listHeight = [];
|
|
2868
|
+
nextTick(calculateHeight);
|
|
2869
|
+
}
|
|
2870
|
+
);
|
|
2871
|
+
watch(
|
|
2872
|
+
() => state.diff,
|
|
2873
|
+
(newVal) => {
|
|
2874
|
+
const listHeight = state.listHeight;
|
|
2875
|
+
let fixedTop = newVal > 0 && newVal < props.titleHeight ? newVal - props.titleHeight : 0;
|
|
2876
|
+
if (state.scrollY + clientHeight.value === listHeight[listHeight.length - 1]) {
|
|
2877
|
+
if (fixedTop !== 0)
|
|
2878
|
+
fixedTop = 0;
|
|
2879
|
+
}
|
|
2880
|
+
if (state.fixedTop === fixedTop)
|
|
2881
|
+
return;
|
|
2882
|
+
state.fixedTop = fixedTop;
|
|
2834
2883
|
}
|
|
2835
|
-
|
|
2836
|
-
return;
|
|
2837
|
-
state.fixedTop = fixedTop;
|
|
2838
|
-
});
|
|
2884
|
+
);
|
|
2839
2885
|
return {
|
|
2840
2886
|
classes,
|
|
2841
2887
|
...toRefs(state),
|
|
@@ -3179,15 +3225,21 @@ const component$5 = {
|
|
|
3179
3225
|
}
|
|
3180
3226
|
findTabsIndex(props.modelValue);
|
|
3181
3227
|
};
|
|
3182
|
-
watch(
|
|
3183
|
-
|
|
3184
|
-
|
|
3185
|
-
|
|
3186
|
-
|
|
3187
|
-
|
|
3188
|
-
|
|
3189
|
-
|
|
3190
|
-
|
|
3228
|
+
watch(
|
|
3229
|
+
() => {
|
|
3230
|
+
var _a;
|
|
3231
|
+
return (_a = slots.default) == null ? void 0 : _a.call(slots);
|
|
3232
|
+
},
|
|
3233
|
+
(vnodes) => {
|
|
3234
|
+
init(vnodes);
|
|
3235
|
+
}
|
|
3236
|
+
);
|
|
3237
|
+
watch(
|
|
3238
|
+
() => props.modelValue,
|
|
3239
|
+
(value) => {
|
|
3240
|
+
findTabsIndex(value);
|
|
3241
|
+
}
|
|
3242
|
+
);
|
|
3191
3243
|
onMounted(init);
|
|
3192
3244
|
onActivated(init);
|
|
3193
3245
|
const contentStyle = computed(() => {
|
|
@@ -3984,12 +4036,15 @@ function _sfc_render$1g(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3984
4036
|
"aria-valuenow": _ctx.curValue(index),
|
|
3985
4037
|
"aria-valuemax": +_ctx.max,
|
|
3986
4038
|
"aria-orientation": "horizontal",
|
|
3987
|
-
onTouchstart: withModifiers(
|
|
3988
|
-
|
|
3989
|
-
|
|
3990
|
-
|
|
3991
|
-
|
|
3992
|
-
|
|
4039
|
+
onTouchstart: withModifiers(
|
|
4040
|
+
(e) => {
|
|
4041
|
+
if (typeof index === "number") {
|
|
4042
|
+
_ctx.buttonIndex = index;
|
|
4043
|
+
}
|
|
4044
|
+
_ctx.onTouchStart(e);
|
|
4045
|
+
},
|
|
4046
|
+
["stop", "prevent"]
|
|
4047
|
+
),
|
|
3993
4048
|
onTouchmove: _cache[0] || (_cache[0] = withModifiers((...args) => _ctx.onTouchMove && _ctx.onTouchMove(...args), ["stop", "prevent"])),
|
|
3994
4049
|
onTouchend: _cache[1] || (_cache[1] = withModifiers((...args) => _ctx.onTouchEnd && _ctx.onTouchEnd(...args), ["stop", "prevent"])),
|
|
3995
4050
|
onTouchcancel: _cache[2] || (_cache[2] = withModifiers((...args) => _ctx.onTouchEnd && _ctx.onTouchEnd(...args), ["stop", "prevent"])),
|
|
@@ -4012,9 +4067,12 @@ function _sfc_render$1g(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4012
4067
|
"aria-valuenow": _ctx.curValue(),
|
|
4013
4068
|
"aria-valuemax": +_ctx.max,
|
|
4014
4069
|
"aria-orientation": "horizontal",
|
|
4015
|
-
onTouchstart: _cache[4] || (_cache[4] = withModifiers(
|
|
4016
|
-
|
|
4017
|
-
|
|
4070
|
+
onTouchstart: _cache[4] || (_cache[4] = withModifiers(
|
|
4071
|
+
(e) => {
|
|
4072
|
+
_ctx.onTouchStart(e);
|
|
4073
|
+
},
|
|
4074
|
+
["stop", "prevent"]
|
|
4075
|
+
)),
|
|
4018
4076
|
onTouchmove: _cache[5] || (_cache[5] = withModifiers((...args) => _ctx.onTouchMove && _ctx.onTouchMove(...args), ["stop", "prevent"])),
|
|
4019
4077
|
onTouchend: _cache[6] || (_cache[6] = withModifiers((...args) => _ctx.onTouchEnd && _ctx.onTouchEnd(...args), ["stop", "prevent"])),
|
|
4020
4078
|
onTouchcancel: _cache[7] || (_cache[7] = withModifiers((...args) => _ctx.onTouchEnd && _ctx.onTouchEnd(...args), ["stop", "prevent"])),
|
|
@@ -4585,23 +4643,33 @@ const _sfc_main$1k = create$1k({
|
|
|
4585
4643
|
return pane.selectedNode && pane.selectedNode.value === node.value;
|
|
4586
4644
|
}
|
|
4587
4645
|
};
|
|
4588
|
-
watch(
|
|
4589
|
-
|
|
4590
|
-
|
|
4591
|
-
|
|
4592
|
-
|
|
4593
|
-
|
|
4594
|
-
|
|
4595
|
-
|
|
4596
|
-
|
|
4597
|
-
|
|
4646
|
+
watch(
|
|
4647
|
+
[configs, () => props.options],
|
|
4648
|
+
() => {
|
|
4649
|
+
init();
|
|
4650
|
+
},
|
|
4651
|
+
{
|
|
4652
|
+
deep: true,
|
|
4653
|
+
immediate: true
|
|
4654
|
+
}
|
|
4655
|
+
);
|
|
4656
|
+
watch(
|
|
4657
|
+
() => props.modelValue,
|
|
4658
|
+
(value) => {
|
|
4659
|
+
if (value !== innerValue.value) {
|
|
4660
|
+
innerValue.value = value;
|
|
4661
|
+
syncValue();
|
|
4662
|
+
}
|
|
4598
4663
|
}
|
|
4599
|
-
|
|
4600
|
-
watch(
|
|
4601
|
-
|
|
4602
|
-
|
|
4664
|
+
);
|
|
4665
|
+
watch(
|
|
4666
|
+
() => props.visible,
|
|
4667
|
+
(val) => {
|
|
4668
|
+
if (val && Array.isArray(innerValue.value) && innerValue.value.length > 0) {
|
|
4669
|
+
syncValue();
|
|
4670
|
+
}
|
|
4603
4671
|
}
|
|
4604
|
-
|
|
4672
|
+
);
|
|
4605
4673
|
return { panes, initLoading, tabsCursor, ...methods };
|
|
4606
4674
|
}
|
|
4607
4675
|
});
|
|
@@ -4720,11 +4788,14 @@ const _sfc_main$1j = create$1j({
|
|
|
4720
4788
|
const onPathChange = (pathNodes) => {
|
|
4721
4789
|
emit("pathChange", pathNodes);
|
|
4722
4790
|
};
|
|
4723
|
-
watch(
|
|
4724
|
-
|
|
4725
|
-
|
|
4791
|
+
watch(
|
|
4792
|
+
() => props.modelValue,
|
|
4793
|
+
(value) => {
|
|
4794
|
+
if (value !== innerValue.value) {
|
|
4795
|
+
innerValue.value = value;
|
|
4796
|
+
}
|
|
4726
4797
|
}
|
|
4727
|
-
|
|
4798
|
+
);
|
|
4728
4799
|
return {
|
|
4729
4800
|
onChange,
|
|
4730
4801
|
onPathChange,
|
|
@@ -5161,11 +5232,17 @@ const _sfc_main$1i = create$1i({
|
|
|
5161
5232
|
}
|
|
5162
5233
|
monthInfo.cssScrollHeight = cssScrollHeight;
|
|
5163
5234
|
if (type == "next") {
|
|
5164
|
-
if (!state.endData || !Utils.compareDate(
|
|
5235
|
+
if (!state.endData || !Utils.compareDate(
|
|
5236
|
+
`${state.endData[0]}-${state.endData[1]}-${Utils.getMonthDays(state.endData[0], state.endData[1])}`,
|
|
5237
|
+
`${curData[0]}-${curData[1]}-${curData[2]}`
|
|
5238
|
+
)) {
|
|
5165
5239
|
state.monthsData.push(monthInfo);
|
|
5166
5240
|
}
|
|
5167
5241
|
} else {
|
|
5168
|
-
if (!state.startData || !Utils.compareDate(
|
|
5242
|
+
if (!state.startData || !Utils.compareDate(
|
|
5243
|
+
`${curData[0]}-${curData[1]}-${curData[2]}`,
|
|
5244
|
+
`${state.startData[0]}-${state.startData[1]}-01`
|
|
5245
|
+
)) {
|
|
5169
5246
|
state.monthsData.unshift(monthInfo);
|
|
5170
5247
|
} else {
|
|
5171
5248
|
state.unLoadPrev = true;
|
|
@@ -5217,9 +5294,9 @@ const _sfc_main$1i = create$1i({
|
|
|
5217
5294
|
if (state.currDate.length > 0) {
|
|
5218
5295
|
let defaultArr = [];
|
|
5219
5296
|
let obj = {};
|
|
5220
|
-
state.currDate.forEach((item
|
|
5297
|
+
state.currDate.forEach((item) => {
|
|
5221
5298
|
if (propStartDate && !Utils.compareDate(item, propStartDate) && propEndDate && !Utils.compareDate(propEndDate, item)) {
|
|
5222
|
-
if (!
|
|
5299
|
+
if (!Object.hasOwnProperty.call(obj, item)) {
|
|
5223
5300
|
defaultArr.push(item);
|
|
5224
5301
|
obj[item] = item;
|
|
5225
5302
|
}
|
|
@@ -5348,7 +5425,7 @@ const _sfc_main$1i = create$1i({
|
|
|
5348
5425
|
}
|
|
5349
5426
|
return false;
|
|
5350
5427
|
};
|
|
5351
|
-
const rangeTip = (
|
|
5428
|
+
const rangeTip = () => {
|
|
5352
5429
|
if (state.currDate.length >= 2) {
|
|
5353
5430
|
return Utils.isEqual(state.currDate[0], state.currDate[1]);
|
|
5354
5431
|
}
|
|
@@ -5398,13 +5475,16 @@ const _sfc_main$1i = create$1i({
|
|
|
5398
5475
|
initData();
|
|
5399
5476
|
};
|
|
5400
5477
|
initData();
|
|
5401
|
-
watch(
|
|
5402
|
-
|
|
5403
|
-
|
|
5404
|
-
|
|
5478
|
+
watch(
|
|
5479
|
+
() => props.defaultValue,
|
|
5480
|
+
(val) => {
|
|
5481
|
+
if (val) {
|
|
5482
|
+
if (props.poppable) {
|
|
5483
|
+
resetRender();
|
|
5484
|
+
}
|
|
5405
5485
|
}
|
|
5406
5486
|
}
|
|
5407
|
-
|
|
5487
|
+
);
|
|
5408
5488
|
return {
|
|
5409
5489
|
weeks,
|
|
5410
5490
|
compConthsData,
|
|
@@ -5544,7 +5624,7 @@ function _sfc_render$1c(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5544
5624
|
!_ctx.bottomInfo && _ctx.showToday && _ctx.isCurrDay(day) ? (openBlock(), createElementBlock("view", _hoisted_12$5, toDisplayString(_ctx.translate("today")), 1)) : createCommentVNode("", true),
|
|
5545
5625
|
_ctx.isStartTip(day, month) ? (openBlock(), createElementBlock("view", {
|
|
5546
5626
|
key: 3,
|
|
5547
|
-
class: normalizeClass(["calendar-day-tip", { "calendar-curr-tips-top": _ctx.rangeTip(
|
|
5627
|
+
class: normalizeClass(["calendar-day-tip", { "calendar-curr-tips-top": _ctx.rangeTip() }])
|
|
5548
5628
|
}, toDisplayString(_ctx.startText || _ctx.translate("start")), 3)) : createCommentVNode("", true),
|
|
5549
5629
|
_ctx.isEndTip(day, month) ? (openBlock(), createElementBlock("view", _hoisted_13$3, toDisplayString(_ctx.endText || _ctx.translate("end")), 1)) : createCommentVNode("", true)
|
|
5550
5630
|
], 10, _hoisted_8$d);
|
|
@@ -5579,6 +5659,10 @@ const _sfc_main$1h = create$1h({
|
|
|
5579
5659
|
type: Boolean,
|
|
5580
5660
|
default: false
|
|
5581
5661
|
},
|
|
5662
|
+
toDateAnimation: {
|
|
5663
|
+
type: Boolean,
|
|
5664
|
+
default: true
|
|
5665
|
+
},
|
|
5582
5666
|
poppable: {
|
|
5583
5667
|
type: Boolean,
|
|
5584
5668
|
default: true
|
|
@@ -5715,7 +5799,8 @@ function _sfc_render$1b(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5715
5799
|
onSelect: _ctx.select,
|
|
5716
5800
|
"show-today": _ctx.showToday,
|
|
5717
5801
|
"show-title": _ctx.showTitle,
|
|
5718
|
-
"show-sub-title": _ctx.showSubTitle
|
|
5802
|
+
"show-sub-title": _ctx.showSubTitle,
|
|
5803
|
+
"to-date-animation": _ctx.toDateAnimation
|
|
5719
5804
|
}, createSlots({ _: 2 }, [
|
|
5720
5805
|
_ctx.showTopBtn ? {
|
|
5721
5806
|
name: "btn",
|
|
@@ -5747,7 +5832,7 @@ function _sfc_render$1b(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5747
5832
|
})
|
|
5748
5833
|
])
|
|
5749
5834
|
} : void 0
|
|
5750
|
-
]), 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"])) : createCommentVNode("", true)
|
|
5835
|
+
]), 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"])) : createCommentVNode("", true)
|
|
5751
5836
|
]),
|
|
5752
5837
|
_: 3
|
|
5753
5838
|
}, 8, ["visible", "onClickOverlay", "onClickCloseIcon"])) : (openBlock(), createBlock(_component_nut_calendar_item, {
|
|
@@ -5769,6 +5854,7 @@ function _sfc_render$1b(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5769
5854
|
"show-today": _ctx.showToday,
|
|
5770
5855
|
"show-title": _ctx.showTitle,
|
|
5771
5856
|
"show-sub-title": _ctx.showSubTitle,
|
|
5857
|
+
"to-date-animation": _ctx.toDateAnimation,
|
|
5772
5858
|
ref: "calendarRef"
|
|
5773
5859
|
}, createSlots({ _: 2 }, [
|
|
5774
5860
|
_ctx.showTopBtn ? {
|
|
@@ -5801,7 +5887,7 @@ function _sfc_render$1b(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
5801
5887
|
})
|
|
5802
5888
|
])
|
|
5803
5889
|
} : void 0
|
|
5804
|
-
]), 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"]));
|
|
5890
|
+
]), 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"]));
|
|
5805
5891
|
}
|
|
5806
5892
|
var Calendar = /* @__PURE__ */ _export_sfc(_sfc_main$1h, [["render", _sfc_render$1b]]);
|
|
5807
5893
|
const component$4 = (componentName2, nutIcon) => {
|
|
@@ -5882,13 +5968,16 @@ const component$4 = (componentName2, nutIcon) => {
|
|
|
5882
5968
|
emit("update:modelValue", value);
|
|
5883
5969
|
emit("change", value, label);
|
|
5884
5970
|
};
|
|
5885
|
-
watch(
|
|
5886
|
-
|
|
5887
|
-
|
|
5888
|
-
|
|
5889
|
-
|
|
5971
|
+
watch(
|
|
5972
|
+
() => props.modelValue,
|
|
5973
|
+
(v) => {
|
|
5974
|
+
if (updateType == "click") {
|
|
5975
|
+
updateType = "";
|
|
5976
|
+
} else {
|
|
5977
|
+
emit("change", v);
|
|
5978
|
+
}
|
|
5890
5979
|
}
|
|
5891
|
-
|
|
5980
|
+
);
|
|
5892
5981
|
const renderIcon = () => {
|
|
5893
5982
|
const { iconName, iconSize, iconActiveName, iconClassPrefix, iconFontClassName, iconIndeterminateName } = props;
|
|
5894
5983
|
return h(nutIcon, {
|
|
@@ -5901,9 +5990,13 @@ const component$4 = (componentName2, nutIcon) => {
|
|
|
5901
5990
|
};
|
|
5902
5991
|
const renderLabel = () => {
|
|
5903
5992
|
var _a;
|
|
5904
|
-
return h(
|
|
5905
|
-
|
|
5906
|
-
|
|
5993
|
+
return h(
|
|
5994
|
+
"view",
|
|
5995
|
+
{
|
|
5996
|
+
class: `${componentName2}__label ${pDisabled.value ? `${componentName2}__label--disabled` : ""}`
|
|
5997
|
+
},
|
|
5998
|
+
(_a = slots.default) == null ? void 0 : _a.call(slots)
|
|
5999
|
+
);
|
|
5907
6000
|
};
|
|
5908
6001
|
const handleClick = (e) => {
|
|
5909
6002
|
var _a, _b;
|
|
@@ -5931,14 +6024,21 @@ const component$4 = (componentName2, nutIcon) => {
|
|
|
5931
6024
|
onMounted(() => {
|
|
5932
6025
|
hasParent.value && parent["relation"](getCurrentInstance());
|
|
5933
6026
|
});
|
|
5934
|
-
watch(
|
|
5935
|
-
|
|
5936
|
-
|
|
6027
|
+
watch(
|
|
6028
|
+
() => props.indeterminate,
|
|
6029
|
+
(newVal) => {
|
|
6030
|
+
state.partialSelect = newVal;
|
|
6031
|
+
}
|
|
6032
|
+
);
|
|
5937
6033
|
return () => {
|
|
5938
|
-
return h(
|
|
5939
|
-
|
|
5940
|
-
|
|
5941
|
-
|
|
6034
|
+
return h(
|
|
6035
|
+
"view",
|
|
6036
|
+
{
|
|
6037
|
+
class: `${componentName2} ${props.textPosition === "left" ? `${componentName2}--reverse` : ""}`,
|
|
6038
|
+
onClick: handleClick
|
|
6039
|
+
},
|
|
6040
|
+
[renderIcon(), renderLabel()]
|
|
6041
|
+
);
|
|
5942
6042
|
};
|
|
5943
6043
|
}
|
|
5944
6044
|
};
|
|
@@ -6007,15 +6107,22 @@ const _sfc_main$1f = create$1f({
|
|
|
6007
6107
|
updateValue,
|
|
6008
6108
|
relation
|
|
6009
6109
|
});
|
|
6010
|
-
watch(
|
|
6011
|
-
|
|
6012
|
-
|
|
6110
|
+
watch(
|
|
6111
|
+
() => props.modelValue,
|
|
6112
|
+
(value) => {
|
|
6113
|
+
emit("change", value);
|
|
6114
|
+
}
|
|
6115
|
+
);
|
|
6013
6116
|
useExpose({ toggleAll, toggleReverse });
|
|
6014
6117
|
return () => {
|
|
6015
6118
|
var _a;
|
|
6016
|
-
return h(
|
|
6017
|
-
|
|
6018
|
-
|
|
6119
|
+
return h(
|
|
6120
|
+
"view",
|
|
6121
|
+
{
|
|
6122
|
+
class: `${componentName$13}`
|
|
6123
|
+
},
|
|
6124
|
+
(_a = slots.default) == null ? void 0 : _a.call(slots)
|
|
6125
|
+
);
|
|
6019
6126
|
};
|
|
6020
6127
|
}
|
|
6021
6128
|
});
|
|
@@ -6039,6 +6146,10 @@ const _sfc_main$1e = create$1e({
|
|
|
6039
6146
|
threeDimensional: {
|
|
6040
6147
|
type: Boolean,
|
|
6041
6148
|
default: true
|
|
6149
|
+
},
|
|
6150
|
+
swipeDuration: {
|
|
6151
|
+
type: [Number, String],
|
|
6152
|
+
default: 1e3
|
|
6042
6153
|
}
|
|
6043
6154
|
},
|
|
6044
6155
|
emits: ["click", "change"],
|
|
@@ -6066,6 +6177,7 @@ const _sfc_main$1e = create$1e({
|
|
|
6066
6177
|
const moving = ref(false);
|
|
6067
6178
|
const touchDeg = ref(0);
|
|
6068
6179
|
const touchTime = ref(0);
|
|
6180
|
+
const DEFAULT_DURATION = 200;
|
|
6069
6181
|
const INERTIA_TIME = 300;
|
|
6070
6182
|
const INERTIA_DISTANCE = 15;
|
|
6071
6183
|
const touchRollerStyle = computed(() => {
|
|
@@ -6114,7 +6226,7 @@ const _sfc_main$1e = create$1e({
|
|
|
6114
6226
|
let moveTime = state.touchParams.lastTime - state.touchParams.startTime;
|
|
6115
6227
|
if (moveTime <= INERTIA_TIME && Math.abs(move) > INERTIA_DISTANCE) {
|
|
6116
6228
|
const distance = momentum(move, moveTime);
|
|
6117
|
-
setMove(distance, "end",
|
|
6229
|
+
setMove(distance, "end", +props.swipeDuration);
|
|
6118
6230
|
return;
|
|
6119
6231
|
} else {
|
|
6120
6232
|
setMove(move, "end");
|
|
@@ -6136,7 +6248,7 @@ const _sfc_main$1e = create$1e({
|
|
|
6136
6248
|
return false;
|
|
6137
6249
|
}
|
|
6138
6250
|
};
|
|
6139
|
-
const setTransform = (translateY = 0, type, time =
|
|
6251
|
+
const setTransform = (translateY = 0, type, time = DEFAULT_DURATION, deg) => {
|
|
6140
6252
|
if (type === "end") {
|
|
6141
6253
|
touchTime.value = time;
|
|
6142
6254
|
} else {
|
|
@@ -6193,20 +6305,28 @@ const _sfc_main$1e = create$1e({
|
|
|
6193
6305
|
moving.value = false;
|
|
6194
6306
|
setChooseValue();
|
|
6195
6307
|
};
|
|
6196
|
-
watch(
|
|
6197
|
-
|
|
6308
|
+
watch(
|
|
6309
|
+
() => props.column,
|
|
6310
|
+
(val) => {
|
|
6311
|
+
if (props.column && props.column.length > 0) {
|
|
6312
|
+
state.transformY = 0;
|
|
6313
|
+
modifyStatus(false);
|
|
6314
|
+
}
|
|
6315
|
+
},
|
|
6316
|
+
{
|
|
6317
|
+
deep: true
|
|
6318
|
+
}
|
|
6319
|
+
);
|
|
6320
|
+
watch(
|
|
6321
|
+
() => props.value,
|
|
6322
|
+
(val) => {
|
|
6198
6323
|
state.transformY = 0;
|
|
6199
6324
|
modifyStatus(false);
|
|
6325
|
+
},
|
|
6326
|
+
{
|
|
6327
|
+
deep: true
|
|
6200
6328
|
}
|
|
6201
|
-
|
|
6202
|
-
deep: true
|
|
6203
|
-
});
|
|
6204
|
-
watch(() => props.value, (val) => {
|
|
6205
|
-
state.transformY = 0;
|
|
6206
|
-
modifyStatus(false);
|
|
6207
|
-
}, {
|
|
6208
|
-
deep: true
|
|
6209
|
-
});
|
|
6329
|
+
);
|
|
6210
6330
|
onMounted(() => {
|
|
6211
6331
|
modifyStatus(true);
|
|
6212
6332
|
});
|
|
@@ -6311,6 +6431,10 @@ const _sfc_main$1d = create$1d({
|
|
|
6311
6431
|
threeDimensional: {
|
|
6312
6432
|
type: Boolean,
|
|
6313
6433
|
default: true
|
|
6434
|
+
},
|
|
6435
|
+
swipeDuration: {
|
|
6436
|
+
type: [Number, String],
|
|
6437
|
+
default: 1e3
|
|
6314
6438
|
}
|
|
6315
6439
|
},
|
|
6316
6440
|
emits: ["close", "change", "confirm", "update:visible", "update:modelValue"],
|
|
@@ -6430,25 +6554,39 @@ const _sfc_main$1d = create$1d({
|
|
|
6430
6554
|
if (props.visible)
|
|
6431
6555
|
state.show = false;
|
|
6432
6556
|
});
|
|
6433
|
-
watch(
|
|
6434
|
-
|
|
6435
|
-
|
|
6436
|
-
|
|
6437
|
-
|
|
6438
|
-
|
|
6439
|
-
|
|
6440
|
-
|
|
6441
|
-
|
|
6442
|
-
|
|
6443
|
-
|
|
6444
|
-
|
|
6445
|
-
|
|
6446
|
-
|
|
6447
|
-
|
|
6448
|
-
|
|
6449
|
-
|
|
6450
|
-
|
|
6451
|
-
|
|
6557
|
+
watch(
|
|
6558
|
+
() => props.modelValue,
|
|
6559
|
+
(newValues) => {
|
|
6560
|
+
const isSameValue = JSON.stringify(newValues) === JSON.stringify(defaultValues.value);
|
|
6561
|
+
if (!isSameValue) {
|
|
6562
|
+
defaultValues.value = newValues;
|
|
6563
|
+
}
|
|
6564
|
+
},
|
|
6565
|
+
{ deep: true }
|
|
6566
|
+
);
|
|
6567
|
+
watch(
|
|
6568
|
+
defaultValues,
|
|
6569
|
+
(newValues) => {
|
|
6570
|
+
const isSameValue = JSON.stringify(newValues) === JSON.stringify(props.modelValue);
|
|
6571
|
+
if (!isSameValue) {
|
|
6572
|
+
emit("update:modelValue", newValues);
|
|
6573
|
+
}
|
|
6574
|
+
},
|
|
6575
|
+
{ immediate: true }
|
|
6576
|
+
);
|
|
6577
|
+
watch(
|
|
6578
|
+
() => props.visible,
|
|
6579
|
+
(val) => {
|
|
6580
|
+
state.show = val;
|
|
6581
|
+
}
|
|
6582
|
+
);
|
|
6583
|
+
watch(
|
|
6584
|
+
() => props.columns,
|
|
6585
|
+
(val) => {
|
|
6586
|
+
if (val.length)
|
|
6587
|
+
state.formattedColumns = val;
|
|
6588
|
+
}
|
|
6589
|
+
);
|
|
6452
6590
|
return {
|
|
6453
6591
|
classes,
|
|
6454
6592
|
...toRefs(state),
|
|
@@ -6514,10 +6652,11 @@ function _sfc_render$19(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
6514
6652
|
columnsType: _ctx.columnsType,
|
|
6515
6653
|
value: _ctx.defaultValues[columnIndex],
|
|
6516
6654
|
threeDimensional: _ctx.threeDimensional,
|
|
6655
|
+
swipeDuration: _ctx.swipeDuration,
|
|
6517
6656
|
onChange: (option) => {
|
|
6518
6657
|
_ctx.changeHandler(columnIndex, option);
|
|
6519
6658
|
}
|
|
6520
|
-
}, null, 8, ["itemShow", "column", "readonly", "columnsType", "value", "threeDimensional", "onChange"])
|
|
6659
|
+
}, null, 8, ["itemShow", "column", "readonly", "columnsType", "value", "threeDimensional", "swipeDuration", "onChange"])
|
|
6521
6660
|
]);
|
|
6522
6661
|
}), 128))
|
|
6523
6662
|
], 512),
|
|
@@ -6805,15 +6944,24 @@ const _sfc_main$1c = create$1c({
|
|
|
6805
6944
|
onBeforeMount(() => {
|
|
6806
6945
|
state.currentDate = formatValue(props.modelValue);
|
|
6807
6946
|
});
|
|
6808
|
-
watch(
|
|
6809
|
-
|
|
6810
|
-
|
|
6811
|
-
|
|
6812
|
-
|
|
6813
|
-
|
|
6814
|
-
watch(
|
|
6815
|
-
|
|
6816
|
-
|
|
6947
|
+
watch(
|
|
6948
|
+
() => props.modelValue,
|
|
6949
|
+
(value) => {
|
|
6950
|
+
state.currentDate = formatValue(value);
|
|
6951
|
+
}
|
|
6952
|
+
);
|
|
6953
|
+
watch(
|
|
6954
|
+
() => props.title,
|
|
6955
|
+
(val) => {
|
|
6956
|
+
state.title = val;
|
|
6957
|
+
}
|
|
6958
|
+
);
|
|
6959
|
+
watch(
|
|
6960
|
+
() => props.visible,
|
|
6961
|
+
(val) => {
|
|
6962
|
+
state.show = val;
|
|
6963
|
+
}
|
|
6964
|
+
);
|
|
6817
6965
|
return {
|
|
6818
6966
|
...toRefs(state),
|
|
6819
6967
|
changeHandler,
|
|
@@ -6888,6 +7036,14 @@ const _sfc_main$1b = create$1b({
|
|
|
6888
7036
|
readonly: {
|
|
6889
7037
|
type: Boolean,
|
|
6890
7038
|
default: false
|
|
7039
|
+
},
|
|
7040
|
+
iconLeft: {
|
|
7041
|
+
type: String,
|
|
7042
|
+
default: "minus"
|
|
7043
|
+
},
|
|
7044
|
+
iconRight: {
|
|
7045
|
+
type: String,
|
|
7046
|
+
default: "plus"
|
|
6891
7047
|
}
|
|
6892
7048
|
},
|
|
6893
7049
|
emits: ["update:modelValue", "change", "blur", "focus", "reduce", "add", "overlimit"],
|
|
@@ -6977,12 +7133,11 @@ function _sfc_render$17(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
6977
7133
|
class: normalizeClass(_ctx.classes),
|
|
6978
7134
|
style: normalizeStyle({ height: _ctx.pxCheck(_ctx.buttonSize) })
|
|
6979
7135
|
}, [
|
|
6980
|
-
createVNode(_component_nut_icon, {
|
|
6981
|
-
name:
|
|
6982
|
-
class:
|
|
6983
|
-
size: _ctx.buttonSize
|
|
6984
|
-
|
|
6985
|
-
}, null, 8, ["class", "size", "onClick"]),
|
|
7136
|
+
createVNode(_component_nut_icon, mergeProps({
|
|
7137
|
+
name: _ctx.iconLeft,
|
|
7138
|
+
class: ["nut-inputnumber__icon", { "nut-inputnumber__icon--disabled": !_ctx.reduceAllow() }],
|
|
7139
|
+
size: _ctx.buttonSize
|
|
7140
|
+
}, _ctx.$attrs, { onClick: _ctx.reduce }), null, 16, ["name", "class", "size", "onClick"]),
|
|
6986
7141
|
createElementVNode("input", {
|
|
6987
7142
|
type: "number",
|
|
6988
7143
|
min: _ctx.min,
|
|
@@ -6995,12 +7150,11 @@ function _sfc_render$17(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
6995
7150
|
onBlur: _cache[1] || (_cache[1] = (...args) => _ctx.blur && _ctx.blur(...args)),
|
|
6996
7151
|
onFocus: _cache[2] || (_cache[2] = (...args) => _ctx.focus && _ctx.focus(...args))
|
|
6997
7152
|
}, null, 44, _hoisted_1$Z),
|
|
6998
|
-
createVNode(_component_nut_icon, {
|
|
6999
|
-
name:
|
|
7000
|
-
class:
|
|
7001
|
-
size: _ctx.buttonSize
|
|
7002
|
-
|
|
7003
|
-
}, null, 8, ["class", "size", "onClick"])
|
|
7153
|
+
createVNode(_component_nut_icon, mergeProps({
|
|
7154
|
+
name: _ctx.iconRight,
|
|
7155
|
+
class: ["nut-inputnumber__icon", { "nut-inputnumber__icon--disabled": !_ctx.addAllow() }],
|
|
7156
|
+
size: _ctx.buttonSize
|
|
7157
|
+
}, _ctx.$attrs, { onClick: _ctx.add }), null, 16, ["name", "class", "size", "onClick"])
|
|
7004
7158
|
], 6);
|
|
7005
7159
|
}
|
|
7006
7160
|
var InputNumber = /* @__PURE__ */ _export_sfc(_sfc_main$1b, [["render", _sfc_render$17]]);
|
|
@@ -7303,10 +7457,13 @@ const _sfc_main$1a = create$1a({
|
|
|
7303
7457
|
return;
|
|
7304
7458
|
}
|
|
7305
7459
|
};
|
|
7306
|
-
watch(
|
|
7307
|
-
|
|
7308
|
-
|
|
7309
|
-
|
|
7460
|
+
watch(
|
|
7461
|
+
() => props.modelValue,
|
|
7462
|
+
() => {
|
|
7463
|
+
updateValue(getModelValue());
|
|
7464
|
+
resetValidation();
|
|
7465
|
+
}
|
|
7466
|
+
);
|
|
7310
7467
|
onMounted(() => {
|
|
7311
7468
|
updateValue(getModelValue(), props.formatTrigger);
|
|
7312
7469
|
});
|
|
@@ -7523,15 +7680,23 @@ const _sfc_main$19 = create$19({
|
|
|
7523
7680
|
};
|
|
7524
7681
|
const renderLabel = () => {
|
|
7525
7682
|
var _a;
|
|
7526
|
-
return h(
|
|
7527
|
-
|
|
7528
|
-
|
|
7683
|
+
return h(
|
|
7684
|
+
"view",
|
|
7685
|
+
{
|
|
7686
|
+
class: `${componentName$_}__label ${props.disabled ? `${componentName$_}__label--disabled` : ""}`
|
|
7687
|
+
},
|
|
7688
|
+
(_a = slots.default) == null ? void 0 : _a.call(slots)
|
|
7689
|
+
);
|
|
7529
7690
|
};
|
|
7530
7691
|
const renderButton = () => {
|
|
7531
7692
|
var _a;
|
|
7532
|
-
return h(
|
|
7533
|
-
|
|
7534
|
-
|
|
7693
|
+
return h(
|
|
7694
|
+
"view",
|
|
7695
|
+
{
|
|
7696
|
+
class: `${componentName$_}__button ${isCurValue.value && `${componentName$_}__button--active`} ${props.disabled ? `${componentName$_}__button--disabled` : ""}`
|
|
7697
|
+
},
|
|
7698
|
+
(_a = slots.default) == null ? void 0 : _a.call(slots)
|
|
7699
|
+
);
|
|
7535
7700
|
};
|
|
7536
7701
|
const handleClick = () => {
|
|
7537
7702
|
if (isCurValue.value || props.disabled)
|
|
@@ -7540,12 +7705,16 @@ const _sfc_main$19 = create$19({
|
|
|
7540
7705
|
};
|
|
7541
7706
|
let reverseState = position.value === "left";
|
|
7542
7707
|
return () => {
|
|
7543
|
-
return h(
|
|
7544
|
-
|
|
7545
|
-
|
|
7546
|
-
|
|
7547
|
-
|
|
7548
|
-
|
|
7708
|
+
return h(
|
|
7709
|
+
"view",
|
|
7710
|
+
{
|
|
7711
|
+
class: `${componentName$_} ${componentName$_}--${props.shape} ${reverseState ? `${componentName$_}--reverse` : ""}`,
|
|
7712
|
+
onClick: handleClick
|
|
7713
|
+
},
|
|
7714
|
+
[
|
|
7715
|
+
props.shape == "button" ? renderButton() : reverseState ? [renderLabel(), renderIcon()] : [renderIcon(), renderLabel()]
|
|
7716
|
+
]
|
|
7717
|
+
);
|
|
7549
7718
|
};
|
|
7550
7719
|
}
|
|
7551
7720
|
});
|
|
@@ -7573,12 +7742,19 @@ const _sfc_main$18 = create$18({
|
|
|
7573
7742
|
position: props.textPosition,
|
|
7574
7743
|
updateValue
|
|
7575
7744
|
});
|
|
7576
|
-
watch(
|
|
7745
|
+
watch(
|
|
7746
|
+
() => props.modelValue,
|
|
7747
|
+
(value) => emit("change", value)
|
|
7748
|
+
);
|
|
7577
7749
|
return () => {
|
|
7578
7750
|
var _a;
|
|
7579
|
-
return h(
|
|
7580
|
-
|
|
7581
|
-
|
|
7751
|
+
return h(
|
|
7752
|
+
"view",
|
|
7753
|
+
{
|
|
7754
|
+
class: `${componentName$Z} ${componentName$Z}--${props.direction}`
|
|
7755
|
+
},
|
|
7756
|
+
(_a = slots.default) == null ? void 0 : _a.call(slots)
|
|
7757
|
+
);
|
|
7582
7758
|
};
|
|
7583
7759
|
}
|
|
7584
7760
|
});
|
|
@@ -7824,16 +8000,23 @@ const _sfc_main$16 = create$16({
|
|
|
7824
8000
|
function focus() {
|
|
7825
8001
|
realpwd.value.focus();
|
|
7826
8002
|
}
|
|
7827
|
-
watch(
|
|
7828
|
-
|
|
7829
|
-
|
|
7830
|
-
|
|
7831
|
-
|
|
7832
|
-
|
|
7833
|
-
|
|
7834
|
-
|
|
7835
|
-
|
|
7836
|
-
|
|
8003
|
+
watch(
|
|
8004
|
+
() => props.visible,
|
|
8005
|
+
(value) => {
|
|
8006
|
+
show.value = value;
|
|
8007
|
+
}
|
|
8008
|
+
);
|
|
8009
|
+
watch(
|
|
8010
|
+
() => props.modelValue,
|
|
8011
|
+
(value) => {
|
|
8012
|
+
realInput.value = value;
|
|
8013
|
+
emit("update:modelValue", value);
|
|
8014
|
+
},
|
|
8015
|
+
{
|
|
8016
|
+
deep: true,
|
|
8017
|
+
immediate: true
|
|
8018
|
+
}
|
|
8019
|
+
);
|
|
7837
8020
|
function changeValue(e) {
|
|
7838
8021
|
const input = e.target;
|
|
7839
8022
|
let val = input.value;
|
|
@@ -8073,11 +8256,14 @@ const _sfc_main$15 = create$15({
|
|
|
8073
8256
|
textarea.style.height = height + "px";
|
|
8074
8257
|
}
|
|
8075
8258
|
};
|
|
8076
|
-
watch(
|
|
8077
|
-
|
|
8078
|
-
|
|
8259
|
+
watch(
|
|
8260
|
+
() => props.modelValue,
|
|
8261
|
+
() => {
|
|
8262
|
+
if (props.autosize) {
|
|
8263
|
+
nextTick(getContentHeight);
|
|
8264
|
+
}
|
|
8079
8265
|
}
|
|
8080
|
-
|
|
8266
|
+
);
|
|
8081
8267
|
const emitChange = (value, event) => {
|
|
8082
8268
|
if (props.maxLength && value.length > Number(props.maxLength)) {
|
|
8083
8269
|
value = value.substring(0, Number(props.maxLength));
|
|
@@ -8167,10 +8353,14 @@ class Uploader$1 {
|
|
|
8167
8353
|
const xhr = new XMLHttpRequest();
|
|
8168
8354
|
xhr.timeout = options.timeout;
|
|
8169
8355
|
if (xhr.upload) {
|
|
8170
|
-
xhr.upload.addEventListener(
|
|
8171
|
-
|
|
8172
|
-
(
|
|
8173
|
-
|
|
8356
|
+
xhr.upload.addEventListener(
|
|
8357
|
+
"progress",
|
|
8358
|
+
(e) => {
|
|
8359
|
+
var _a2;
|
|
8360
|
+
(_a2 = options.onProgress) == null ? void 0 : _a2.call(options, e, options);
|
|
8361
|
+
},
|
|
8362
|
+
false
|
|
8363
|
+
);
|
|
8174
8364
|
xhr.onreadystatechange = () => {
|
|
8175
8365
|
var _a2, _b;
|
|
8176
8366
|
if (xhr.readyState === 4) {
|
|
@@ -8363,9 +8553,11 @@ const _sfc_main$14 = create$14({
|
|
|
8363
8553
|
if (props.autoUpload) {
|
|
8364
8554
|
task.upload();
|
|
8365
8555
|
} else {
|
|
8366
|
-
uploadQueue.push(
|
|
8367
|
-
resolve
|
|
8368
|
-
|
|
8556
|
+
uploadQueue.push(
|
|
8557
|
+
new Promise((resolve, reject) => {
|
|
8558
|
+
resolve(task);
|
|
8559
|
+
})
|
|
8560
|
+
);
|
|
8369
8561
|
}
|
|
8370
8562
|
};
|
|
8371
8563
|
const clearUploadQueue = (index = -1) => {
|
|
@@ -8732,7 +8924,11 @@ const _sfc_main$13 = create$13({
|
|
|
8732
8924
|
keys.push({ id: 0, type: "number" }, { id: customKeys[0], type: "custom" });
|
|
8733
8925
|
}
|
|
8734
8926
|
} else if (customKeys.length === 2) {
|
|
8735
|
-
keys.push(
|
|
8927
|
+
keys.push(
|
|
8928
|
+
{ id: customKeys[0], type: "custom" },
|
|
8929
|
+
{ id: 0, type: "number" },
|
|
8930
|
+
{ id: customKeys[1], type: "custom" }
|
|
8931
|
+
);
|
|
8736
8932
|
}
|
|
8737
8933
|
return keys;
|
|
8738
8934
|
}
|
|
@@ -8742,9 +8938,12 @@ const _sfc_main$13 = create$13({
|
|
|
8742
8938
|
}
|
|
8743
8939
|
return defaultKey();
|
|
8744
8940
|
});
|
|
8745
|
-
watch(
|
|
8746
|
-
|
|
8747
|
-
|
|
8941
|
+
watch(
|
|
8942
|
+
() => props.visible,
|
|
8943
|
+
(value) => {
|
|
8944
|
+
show.value = value;
|
|
8945
|
+
}
|
|
8946
|
+
);
|
|
8748
8947
|
function onTouchstart(item, event) {
|
|
8749
8948
|
event.stopPropagation();
|
|
8750
8949
|
clickKeyIndex.value = item.id;
|
|
@@ -8919,9 +9118,13 @@ const component$2 = {
|
|
|
8919
9118
|
const reset = () => {
|
|
8920
9119
|
clearErrorTips();
|
|
8921
9120
|
};
|
|
8922
|
-
watch(
|
|
8923
|
-
|
|
8924
|
-
|
|
9121
|
+
watch(
|
|
9122
|
+
() => props.modelValue,
|
|
9123
|
+
(value) => {
|
|
9124
|
+
clearErrorTips(value);
|
|
9125
|
+
},
|
|
9126
|
+
{ immediate: true }
|
|
9127
|
+
);
|
|
8925
9128
|
const findFormItem = (vnodes) => {
|
|
8926
9129
|
let task = [];
|
|
8927
9130
|
vnodes.forEach((vnode, index) => {
|
|
@@ -9302,16 +9505,23 @@ const _sfc_main$10 = create$10({
|
|
|
9302
9505
|
type && setChooseValue();
|
|
9303
9506
|
setMove(-move);
|
|
9304
9507
|
};
|
|
9305
|
-
watch(
|
|
9306
|
-
|
|
9307
|
-
|
|
9308
|
-
|
|
9309
|
-
|
|
9310
|
-
|
|
9311
|
-
|
|
9312
|
-
|
|
9313
|
-
|
|
9314
|
-
|
|
9508
|
+
watch(
|
|
9509
|
+
() => props.listData,
|
|
9510
|
+
(val) => {
|
|
9511
|
+
state.transformY = 0;
|
|
9512
|
+
modifyStatus(false);
|
|
9513
|
+
},
|
|
9514
|
+
{
|
|
9515
|
+
deep: true
|
|
9516
|
+
}
|
|
9517
|
+
);
|
|
9518
|
+
watch(
|
|
9519
|
+
() => props.defaultIndex,
|
|
9520
|
+
(val) => {
|
|
9521
|
+
state.transformY = 0;
|
|
9522
|
+
modifyStatus(false);
|
|
9523
|
+
}
|
|
9524
|
+
);
|
|
9315
9525
|
onMounted(() => {
|
|
9316
9526
|
modifyStatus(true);
|
|
9317
9527
|
});
|
|
@@ -9506,7 +9716,9 @@ const _sfc_main$$ = create$$({
|
|
|
9506
9716
|
_defaultIndex = dataIndex;
|
|
9507
9717
|
} else if (dataType.value === "multipleColumns") {
|
|
9508
9718
|
defaultIndexList[columnIndex] = dataIndex;
|
|
9509
|
-
const val = defaultIndexList.map(
|
|
9719
|
+
const val = defaultIndexList.map(
|
|
9720
|
+
(res, i) => toRaw(state.formattedColumns)[i].values[res]
|
|
9721
|
+
);
|
|
9510
9722
|
emit("change", val, columnIndex, dataIndex);
|
|
9511
9723
|
}
|
|
9512
9724
|
};
|
|
@@ -9518,7 +9730,9 @@ const _sfc_main$$ = create$$({
|
|
|
9518
9730
|
for (let i = 0; i < defaultIndexList.length; i++) {
|
|
9519
9731
|
state.formattedColumns[i].defaultIndex = defaultIndexList[i];
|
|
9520
9732
|
}
|
|
9521
|
-
const checkedArr = toRaw(state.formattedColumns).map(
|
|
9733
|
+
const checkedArr = toRaw(state.formattedColumns).map(
|
|
9734
|
+
(res) => res.values && res.values[res.defaultIndex]
|
|
9735
|
+
);
|
|
9522
9736
|
emit("confirm", checkedArr);
|
|
9523
9737
|
} else if (dataType.value === "cascade") {
|
|
9524
9738
|
emit("confirm", getCascadeData(toRaw(state.formattedColumns), state.defaultIndex));
|
|
@@ -9533,12 +9747,18 @@ const _sfc_main$$ = create$$({
|
|
|
9533
9747
|
if (props.visible)
|
|
9534
9748
|
state.show = false;
|
|
9535
9749
|
});
|
|
9536
|
-
watch(
|
|
9537
|
-
|
|
9538
|
-
|
|
9539
|
-
|
|
9540
|
-
|
|
9541
|
-
|
|
9750
|
+
watch(
|
|
9751
|
+
() => props.visible,
|
|
9752
|
+
(val) => {
|
|
9753
|
+
state.show = val;
|
|
9754
|
+
}
|
|
9755
|
+
);
|
|
9756
|
+
watch(
|
|
9757
|
+
() => props.listData,
|
|
9758
|
+
(val) => {
|
|
9759
|
+
state.formattedColumns = val;
|
|
9760
|
+
}
|
|
9761
|
+
);
|
|
9542
9762
|
return {
|
|
9543
9763
|
classes,
|
|
9544
9764
|
...toRefs(state),
|
|
@@ -10359,12 +10579,15 @@ const _sfc_main$W = create$W({
|
|
|
10359
10579
|
});
|
|
10360
10580
|
}
|
|
10361
10581
|
});
|
|
10362
|
-
watch(
|
|
10363
|
-
|
|
10364
|
-
|
|
10365
|
-
|
|
10582
|
+
watch(
|
|
10583
|
+
() => props.visible,
|
|
10584
|
+
(value) => {
|
|
10585
|
+
showPopup.value = value;
|
|
10586
|
+
if (value) {
|
|
10587
|
+
emit("opened");
|
|
10588
|
+
}
|
|
10366
10589
|
}
|
|
10367
|
-
|
|
10590
|
+
);
|
|
10368
10591
|
const classes = computed(() => {
|
|
10369
10592
|
return {
|
|
10370
10593
|
[componentName$P]: true,
|
|
@@ -10878,11 +11101,14 @@ const _sfc_main$U = create$U({
|
|
|
10878
11101
|
if (props.duration) {
|
|
10879
11102
|
show();
|
|
10880
11103
|
}
|
|
10881
|
-
watch(
|
|
10882
|
-
|
|
10883
|
-
|
|
11104
|
+
watch(
|
|
11105
|
+
() => props.duration,
|
|
11106
|
+
(val) => {
|
|
11107
|
+
if (val) {
|
|
11108
|
+
show();
|
|
11109
|
+
}
|
|
10884
11110
|
}
|
|
10885
|
-
|
|
11111
|
+
);
|
|
10886
11112
|
const onAfterLeave = () => {
|
|
10887
11113
|
clearTimer();
|
|
10888
11114
|
props.unmount && props.unmount(props.id);
|
|
@@ -11445,13 +11671,16 @@ const _sfc_main$S = create$S({
|
|
|
11445
11671
|
emit("update:modelValue", value);
|
|
11446
11672
|
emit("change", value, event);
|
|
11447
11673
|
};
|
|
11448
|
-
watch(
|
|
11449
|
-
|
|
11450
|
-
|
|
11451
|
-
|
|
11452
|
-
|
|
11674
|
+
watch(
|
|
11675
|
+
() => props.modelValue,
|
|
11676
|
+
(v) => {
|
|
11677
|
+
if (updateType == "click") {
|
|
11678
|
+
updateType = "";
|
|
11679
|
+
} else {
|
|
11680
|
+
emit("change", v);
|
|
11681
|
+
}
|
|
11453
11682
|
}
|
|
11454
|
-
|
|
11683
|
+
);
|
|
11455
11684
|
return {
|
|
11456
11685
|
classes,
|
|
11457
11686
|
style,
|
|
@@ -11584,11 +11813,14 @@ const _sfc_main$R = create$R({
|
|
|
11584
11813
|
if (props.duration) {
|
|
11585
11814
|
show();
|
|
11586
11815
|
}
|
|
11587
|
-
watch(
|
|
11588
|
-
|
|
11589
|
-
|
|
11816
|
+
watch(
|
|
11817
|
+
() => props.duration,
|
|
11818
|
+
(val) => {
|
|
11819
|
+
if (val) {
|
|
11820
|
+
show();
|
|
11821
|
+
}
|
|
11590
11822
|
}
|
|
11591
|
-
|
|
11823
|
+
);
|
|
11592
11824
|
const hasIcon = computed(() => {
|
|
11593
11825
|
if (props.type !== "text") {
|
|
11594
11826
|
return true;
|
|
@@ -11925,9 +12157,12 @@ const _sfc_main$Q = create$Q({
|
|
|
11925
12157
|
result += ("0" + seconds.toString()).slice(-2);
|
|
11926
12158
|
return result;
|
|
11927
12159
|
};
|
|
11928
|
-
watch(
|
|
11929
|
-
|
|
11930
|
-
|
|
12160
|
+
watch(
|
|
12161
|
+
() => audioData.currentTime,
|
|
12162
|
+
(value) => {
|
|
12163
|
+
handle(value);
|
|
12164
|
+
}
|
|
12165
|
+
);
|
|
11931
12166
|
provide("audioParent", {
|
|
11932
12167
|
children: [],
|
|
11933
12168
|
props,
|
|
@@ -12403,9 +12638,12 @@ const _sfc_main$M = create$M({
|
|
|
12403
12638
|
}
|
|
12404
12639
|
state.startOffset = scrollTop - scrollTop % props.height;
|
|
12405
12640
|
};
|
|
12406
|
-
watch(
|
|
12407
|
-
|
|
12408
|
-
|
|
12641
|
+
watch(
|
|
12642
|
+
() => props.listData,
|
|
12643
|
+
() => {
|
|
12644
|
+
state.list = props.listData.slice();
|
|
12645
|
+
}
|
|
12646
|
+
);
|
|
12409
12647
|
return {
|
|
12410
12648
|
...toRefs(state),
|
|
12411
12649
|
list,
|
|
@@ -12877,12 +13115,18 @@ const _sfc_main$J = create$J({
|
|
|
12877
13115
|
}
|
|
12878
13116
|
return styles;
|
|
12879
13117
|
});
|
|
12880
|
-
watch(
|
|
12881
|
-
|
|
12882
|
-
|
|
12883
|
-
|
|
12884
|
-
|
|
12885
|
-
|
|
13118
|
+
watch(
|
|
13119
|
+
() => props.text,
|
|
13120
|
+
(value) => {
|
|
13121
|
+
initScrollWrap();
|
|
13122
|
+
}
|
|
13123
|
+
);
|
|
13124
|
+
watch(
|
|
13125
|
+
() => props.list,
|
|
13126
|
+
(value) => {
|
|
13127
|
+
state.scrollList = [].concat(value);
|
|
13128
|
+
}
|
|
13129
|
+
);
|
|
12886
13130
|
const initScrollWrap = (value) => {
|
|
12887
13131
|
if (state.showNoticeBar == false) {
|
|
12888
13132
|
return;
|
|
@@ -13244,16 +13488,23 @@ const _sfc_main$H = create$H({
|
|
|
13244
13488
|
const isDisabled = computed(() => {
|
|
13245
13489
|
return props.options.disabled;
|
|
13246
13490
|
});
|
|
13247
|
-
watch(
|
|
13248
|
-
|
|
13249
|
-
|
|
13250
|
-
|
|
13251
|
-
|
|
13491
|
+
watch(
|
|
13492
|
+
() => props.source,
|
|
13493
|
+
(newValue) => {
|
|
13494
|
+
if (newValue.src) {
|
|
13495
|
+
nextTick(() => {
|
|
13496
|
+
state.videoElm.load();
|
|
13497
|
+
});
|
|
13498
|
+
}
|
|
13252
13499
|
}
|
|
13253
|
-
|
|
13254
|
-
watch(
|
|
13255
|
-
|
|
13256
|
-
|
|
13500
|
+
);
|
|
13501
|
+
watch(
|
|
13502
|
+
() => props.options,
|
|
13503
|
+
(newValue) => {
|
|
13504
|
+
state.state.isMuted = newValue ? newValue.muted : false;
|
|
13505
|
+
},
|
|
13506
|
+
{ immediate: true }
|
|
13507
|
+
);
|
|
13257
13508
|
const init = () => {
|
|
13258
13509
|
state.videoElm = root.value;
|
|
13259
13510
|
if (props.options.autoplay) {
|
|
@@ -13547,9 +13798,13 @@ const _sfc_main$G = create$G({
|
|
|
13547
13798
|
});
|
|
13548
13799
|
return () => {
|
|
13549
13800
|
var _a;
|
|
13550
|
-
return h(
|
|
13551
|
-
|
|
13552
|
-
|
|
13801
|
+
return h(
|
|
13802
|
+
"view",
|
|
13803
|
+
{
|
|
13804
|
+
class: classes.value
|
|
13805
|
+
},
|
|
13806
|
+
(_a = slots.default) == null ? void 0 : _a.call(slots)
|
|
13807
|
+
);
|
|
13553
13808
|
};
|
|
13554
13809
|
}
|
|
13555
13810
|
});
|
|
@@ -14047,19 +14302,28 @@ const _sfc_main$E = create$E({
|
|
|
14047
14302
|
onBeforeUnmount(() => {
|
|
14048
14303
|
stopAutoPlay();
|
|
14049
14304
|
});
|
|
14050
|
-
watch(
|
|
14051
|
-
|
|
14052
|
-
|
|
14053
|
-
|
|
14054
|
-
|
|
14055
|
-
|
|
14056
|
-
|
|
14057
|
-
|
|
14058
|
-
|
|
14059
|
-
|
|
14060
|
-
|
|
14061
|
-
|
|
14062
|
-
|
|
14305
|
+
watch(
|
|
14306
|
+
() => props.initPage,
|
|
14307
|
+
(val) => {
|
|
14308
|
+
nextTick(() => {
|
|
14309
|
+
init(Number(val));
|
|
14310
|
+
});
|
|
14311
|
+
}
|
|
14312
|
+
);
|
|
14313
|
+
watch(
|
|
14314
|
+
() => state.children.length,
|
|
14315
|
+
() => {
|
|
14316
|
+
nextTick(() => {
|
|
14317
|
+
init();
|
|
14318
|
+
});
|
|
14319
|
+
}
|
|
14320
|
+
);
|
|
14321
|
+
watch(
|
|
14322
|
+
() => props.autoPlay,
|
|
14323
|
+
(val) => {
|
|
14324
|
+
val > 0 ? autoplay() : stopAutoPlay();
|
|
14325
|
+
}
|
|
14326
|
+
);
|
|
14063
14327
|
return {
|
|
14064
14328
|
state,
|
|
14065
14329
|
classes,
|
|
@@ -14492,11 +14756,14 @@ const _sfc_main$B = create$B({
|
|
|
14492
14756
|
};
|
|
14493
14757
|
const clamp = (num, min, max) => Math.min(Math.max(num, min), max);
|
|
14494
14758
|
watch(() => props.initNo, resetScale);
|
|
14495
|
-
watch(
|
|
14496
|
-
|
|
14497
|
-
|
|
14759
|
+
watch(
|
|
14760
|
+
() => props.show,
|
|
14761
|
+
(value) => {
|
|
14762
|
+
if (!value) {
|
|
14763
|
+
resetScale();
|
|
14764
|
+
}
|
|
14498
14765
|
}
|
|
14499
|
-
|
|
14766
|
+
);
|
|
14500
14767
|
return {
|
|
14501
14768
|
...toRefs(state),
|
|
14502
14769
|
onTouchStart,
|
|
@@ -14672,10 +14939,13 @@ const _sfc_main$A = create$A({
|
|
|
14672
14939
|
state.rootWidth = swipeRef.value.offsetWidth;
|
|
14673
14940
|
}, 100);
|
|
14674
14941
|
};
|
|
14675
|
-
watch(
|
|
14676
|
-
|
|
14677
|
-
|
|
14678
|
-
|
|
14942
|
+
watch(
|
|
14943
|
+
() => props.show,
|
|
14944
|
+
(val) => {
|
|
14945
|
+
state.showPop = val;
|
|
14946
|
+
init();
|
|
14947
|
+
}
|
|
14948
|
+
);
|
|
14679
14949
|
onMounted(() => {
|
|
14680
14950
|
state.active = props.initNo;
|
|
14681
14951
|
state.showPop = props.show;
|
|
@@ -14925,23 +15195,35 @@ const _sfc_main$z = create$z({
|
|
|
14925
15195
|
typeMachine: ""
|
|
14926
15196
|
});
|
|
14927
15197
|
const { startFlag, scrolling, customBgImg, type } = reactive(props);
|
|
14928
|
-
watch(
|
|
14929
|
-
|
|
14930
|
-
|
|
14931
|
-
|
|
14932
|
-
|
|
14933
|
-
|
|
14934
|
-
|
|
14935
|
-
watch(
|
|
14936
|
-
|
|
14937
|
-
|
|
14938
|
-
|
|
14939
|
-
|
|
14940
|
-
|
|
14941
|
-
|
|
14942
|
-
|
|
14943
|
-
|
|
14944
|
-
|
|
15198
|
+
watch(
|
|
15199
|
+
() => props.customChangeNum,
|
|
15200
|
+
(count2, prevCount) => {
|
|
15201
|
+
clearIntervalTime();
|
|
15202
|
+
countGo(0);
|
|
15203
|
+
}
|
|
15204
|
+
);
|
|
15205
|
+
watch(
|
|
15206
|
+
() => props.machinePrizeLevel,
|
|
15207
|
+
(count2, prevCount) => {
|
|
15208
|
+
data.prizeLevelTrun = count2;
|
|
15209
|
+
}
|
|
15210
|
+
);
|
|
15211
|
+
watch(
|
|
15212
|
+
() => props.initNum,
|
|
15213
|
+
(count2, prevCount) => {
|
|
15214
|
+
data.current = count2;
|
|
15215
|
+
data.valFlag = false;
|
|
15216
|
+
valChange();
|
|
15217
|
+
}
|
|
15218
|
+
);
|
|
15219
|
+
watch(
|
|
15220
|
+
() => props.endNum,
|
|
15221
|
+
(count2, prevCount) => {
|
|
15222
|
+
data.current = props.initNum;
|
|
15223
|
+
data.valFlag = false;
|
|
15224
|
+
valChange();
|
|
15225
|
+
}
|
|
15226
|
+
);
|
|
14945
15227
|
const valChange = () => {
|
|
14946
15228
|
if (data.valFlag) {
|
|
14947
15229
|
return false;
|
|
@@ -15188,7 +15470,11 @@ const _sfc_main$z = create$z({
|
|
|
15188
15470
|
if (data.prizeLevelTrun < 0) {
|
|
15189
15471
|
newLocation += props.numHeight * data.notPrize[i];
|
|
15190
15472
|
}
|
|
15191
|
-
scrollTime(
|
|
15473
|
+
scrollTime(
|
|
15474
|
+
i,
|
|
15475
|
+
newLocation,
|
|
15476
|
+
local
|
|
15477
|
+
);
|
|
15192
15478
|
}, 500 * i);
|
|
15193
15479
|
}
|
|
15194
15480
|
};
|
|
@@ -15540,31 +15826,43 @@ const _sfc_main$y = create$y({
|
|
|
15540
15826
|
state.restTime = props.time;
|
|
15541
15827
|
}
|
|
15542
15828
|
});
|
|
15543
|
-
watch(
|
|
15544
|
-
|
|
15545
|
-
|
|
15546
|
-
|
|
15547
|
-
|
|
15548
|
-
|
|
15549
|
-
|
|
15550
|
-
|
|
15551
|
-
|
|
15552
|
-
|
|
15553
|
-
|
|
15554
|
-
if (!
|
|
15555
|
-
state.counting
|
|
15556
|
-
|
|
15557
|
-
|
|
15829
|
+
watch(
|
|
15830
|
+
() => state.restTime,
|
|
15831
|
+
(value) => {
|
|
15832
|
+
let tranTime = formatRemainTime(value, "custom");
|
|
15833
|
+
emit("update:modelValue", tranTime);
|
|
15834
|
+
emit("input", tranTime);
|
|
15835
|
+
}
|
|
15836
|
+
);
|
|
15837
|
+
watch(
|
|
15838
|
+
() => props.paused,
|
|
15839
|
+
(v, ov) => {
|
|
15840
|
+
if (!ov) {
|
|
15841
|
+
if (state.counting) {
|
|
15842
|
+
pause();
|
|
15843
|
+
}
|
|
15844
|
+
} else {
|
|
15845
|
+
if (!state.counting) {
|
|
15846
|
+
state.counting = true;
|
|
15847
|
+
state.handleEndTime = Date.now() + Number(state.restTime);
|
|
15848
|
+
tick();
|
|
15849
|
+
}
|
|
15850
|
+
emit("on-restart", state.restTime);
|
|
15558
15851
|
}
|
|
15559
|
-
emit("on-restart", state.restTime);
|
|
15560
15852
|
}
|
|
15561
|
-
|
|
15562
|
-
watch(
|
|
15563
|
-
|
|
15564
|
-
|
|
15565
|
-
|
|
15566
|
-
|
|
15567
|
-
|
|
15853
|
+
);
|
|
15854
|
+
watch(
|
|
15855
|
+
() => props.endTime,
|
|
15856
|
+
(value) => {
|
|
15857
|
+
initTime();
|
|
15858
|
+
}
|
|
15859
|
+
);
|
|
15860
|
+
watch(
|
|
15861
|
+
() => props.startTime,
|
|
15862
|
+
(value) => {
|
|
15863
|
+
initTime();
|
|
15864
|
+
}
|
|
15865
|
+
);
|
|
15568
15866
|
return {
|
|
15569
15867
|
...toRefs(props),
|
|
15570
15868
|
slots,
|
|
@@ -15786,32 +16084,47 @@ function isShadowRoot(node) {
|
|
|
15786
16084
|
return node instanceof OwnElement || node instanceof ShadowRoot;
|
|
15787
16085
|
}
|
|
15788
16086
|
var round = Math.round;
|
|
15789
|
-
function
|
|
16087
|
+
function getUAString() {
|
|
16088
|
+
var uaData = navigator.userAgentData;
|
|
16089
|
+
if (uaData != null && uaData.brands) {
|
|
16090
|
+
return uaData.brands.map(function(item) {
|
|
16091
|
+
return item.brand + "/" + item.version;
|
|
16092
|
+
}).join(" ");
|
|
16093
|
+
}
|
|
16094
|
+
return navigator.userAgent;
|
|
16095
|
+
}
|
|
16096
|
+
function isLayoutViewport() {
|
|
16097
|
+
return !/^((?!chrome|android).)*safari/i.test(getUAString());
|
|
16098
|
+
}
|
|
16099
|
+
function getBoundingClientRect(element, includeScale, isFixedStrategy) {
|
|
15790
16100
|
if (includeScale === void 0) {
|
|
15791
16101
|
includeScale = false;
|
|
15792
16102
|
}
|
|
15793
|
-
|
|
16103
|
+
if (isFixedStrategy === void 0) {
|
|
16104
|
+
isFixedStrategy = false;
|
|
16105
|
+
}
|
|
16106
|
+
var clientRect = element.getBoundingClientRect();
|
|
15794
16107
|
var scaleX = 1;
|
|
15795
16108
|
var scaleY = 1;
|
|
15796
|
-
if (isHTMLElement(element)
|
|
15797
|
-
|
|
15798
|
-
|
|
15799
|
-
if (offsetWidth > 0) {
|
|
15800
|
-
scaleX = round(rect.width) / offsetWidth || 1;
|
|
15801
|
-
}
|
|
15802
|
-
if (offsetHeight > 0) {
|
|
15803
|
-
scaleY = round(rect.height) / offsetHeight || 1;
|
|
15804
|
-
}
|
|
16109
|
+
if (includeScale && isHTMLElement(element)) {
|
|
16110
|
+
scaleX = element.offsetWidth > 0 ? round(clientRect.width) / element.offsetWidth || 1 : 1;
|
|
16111
|
+
scaleY = element.offsetHeight > 0 ? round(clientRect.height) / element.offsetHeight || 1 : 1;
|
|
15805
16112
|
}
|
|
16113
|
+
var _ref = isElement(element) ? getWindow(element) : window, visualViewport = _ref.visualViewport;
|
|
16114
|
+
var addVisualOffsets = !isLayoutViewport() && isFixedStrategy;
|
|
16115
|
+
var x = (clientRect.left + (addVisualOffsets && visualViewport ? visualViewport.offsetLeft : 0)) / scaleX;
|
|
16116
|
+
var y = (clientRect.top + (addVisualOffsets && visualViewport ? visualViewport.offsetTop : 0)) / scaleY;
|
|
16117
|
+
var width = clientRect.width / scaleX;
|
|
16118
|
+
var height = clientRect.height / scaleY;
|
|
15806
16119
|
return {
|
|
15807
|
-
width
|
|
15808
|
-
height
|
|
15809
|
-
top:
|
|
15810
|
-
right:
|
|
15811
|
-
bottom:
|
|
15812
|
-
left:
|
|
15813
|
-
x
|
|
15814
|
-
y
|
|
16120
|
+
width,
|
|
16121
|
+
height,
|
|
16122
|
+
top: y,
|
|
16123
|
+
right: x + width,
|
|
16124
|
+
bottom: y + height,
|
|
16125
|
+
left: x,
|
|
16126
|
+
x,
|
|
16127
|
+
y
|
|
15815
16128
|
};
|
|
15816
16129
|
}
|
|
15817
16130
|
function getWindowScroll(node) {
|
|
@@ -15865,7 +16178,7 @@ function getCompositeRect(elementOrVirtualElement, offsetParent, isFixed) {
|
|
|
15865
16178
|
var isOffsetParentAnElement = isHTMLElement(offsetParent);
|
|
15866
16179
|
var offsetParentIsScaled = isHTMLElement(offsetParent) && isElementScaled(offsetParent);
|
|
15867
16180
|
var documentElement = getDocumentElement(offsetParent);
|
|
15868
|
-
var rect = getBoundingClientRect(elementOrVirtualElement, offsetParentIsScaled);
|
|
16181
|
+
var rect = getBoundingClientRect(elementOrVirtualElement, offsetParentIsScaled, isFixed);
|
|
15869
16182
|
var scroll = {
|
|
15870
16183
|
scrollLeft: 0,
|
|
15871
16184
|
scrollTop: 0
|
|
@@ -15947,8 +16260,8 @@ function getTrueOffsetParent(element) {
|
|
|
15947
16260
|
return element.offsetParent;
|
|
15948
16261
|
}
|
|
15949
16262
|
function getContainingBlock(element) {
|
|
15950
|
-
var isFirefox =
|
|
15951
|
-
var isIE =
|
|
16263
|
+
var isFirefox = /firefox/i.test(getUAString());
|
|
16264
|
+
var isIE = /Trident/i.test(getUAString());
|
|
15952
16265
|
if (isIE && isHTMLElement(element)) {
|
|
15953
16266
|
var elementCss = getComputedStyle(element);
|
|
15954
16267
|
if (elementCss.position === "fixed") {
|
|
@@ -16636,13 +16949,19 @@ const _sfc_main$v = create$v({
|
|
|
16636
16949
|
onUnmounted(() => {
|
|
16637
16950
|
window.removeEventListener("click", clickAway, true);
|
|
16638
16951
|
});
|
|
16639
|
-
watch(
|
|
16640
|
-
|
|
16641
|
-
|
|
16642
|
-
|
|
16643
|
-
|
|
16644
|
-
|
|
16645
|
-
|
|
16952
|
+
watch(
|
|
16953
|
+
() => props.visible,
|
|
16954
|
+
(value) => {
|
|
16955
|
+
showPopup.value = value;
|
|
16956
|
+
uploadLocation();
|
|
16957
|
+
}
|
|
16958
|
+
);
|
|
16959
|
+
watch(
|
|
16960
|
+
() => props.location,
|
|
16961
|
+
(value) => {
|
|
16962
|
+
uploadLocation();
|
|
16963
|
+
}
|
|
16964
|
+
);
|
|
16646
16965
|
const update = (val) => {
|
|
16647
16966
|
emit("update", val);
|
|
16648
16967
|
emit("update:visible", val);
|
|
@@ -16906,25 +17225,28 @@ const _sfc_main$t = create$t({
|
|
|
16906
17225
|
setup(props, { emit, slots }) {
|
|
16907
17226
|
const collapseDom = ref(null);
|
|
16908
17227
|
const collapseChldren = ref([]);
|
|
16909
|
-
watch(
|
|
16910
|
-
|
|
16911
|
-
|
|
16912
|
-
|
|
16913
|
-
|
|
16914
|
-
|
|
16915
|
-
|
|
16916
|
-
|
|
16917
|
-
|
|
16918
|
-
|
|
16919
|
-
|
|
16920
|
-
|
|
16921
|
-
|
|
16922
|
-
|
|
17228
|
+
watch(
|
|
17229
|
+
() => props.active,
|
|
17230
|
+
(newval, oldval) => {
|
|
17231
|
+
let doms = collapseChldren.value;
|
|
17232
|
+
Array.from(doms).forEach((item) => {
|
|
17233
|
+
if (typeof newval == "number" || typeof newval == "string") {
|
|
17234
|
+
if (newval == item.name) {
|
|
17235
|
+
item.changeOpen(true);
|
|
17236
|
+
} else {
|
|
17237
|
+
item.changeOpen(false);
|
|
17238
|
+
}
|
|
17239
|
+
} else if (Object.values(newval) instanceof Array) {
|
|
17240
|
+
if (newval.indexOf(Number(item.name)) > -1 || newval.indexOf(String(item.name)) > -1) {
|
|
17241
|
+
item.changeOpen(true);
|
|
17242
|
+
} else {
|
|
17243
|
+
item.changeOpen(false);
|
|
17244
|
+
}
|
|
16923
17245
|
}
|
|
16924
|
-
|
|
16925
|
-
|
|
16926
|
-
}
|
|
16927
|
-
|
|
17246
|
+
item.animation();
|
|
17247
|
+
});
|
|
17248
|
+
}
|
|
17249
|
+
);
|
|
16928
17250
|
onMounted(() => {
|
|
16929
17251
|
collapseChldren.value = getCurrentInstance().provides.collapseParent.children || [];
|
|
16930
17252
|
});
|
|
@@ -17090,14 +17412,17 @@ const _sfc_main$s = create$s({
|
|
|
17090
17412
|
proxyData.openExpanded = true;
|
|
17091
17413
|
}
|
|
17092
17414
|
});
|
|
17093
|
-
watch(
|
|
17094
|
-
|
|
17095
|
-
|
|
17096
|
-
|
|
17097
|
-
|
|
17098
|
-
|
|
17099
|
-
|
|
17100
|
-
|
|
17415
|
+
watch(
|
|
17416
|
+
() => {
|
|
17417
|
+
var _a, _b;
|
|
17418
|
+
return (_b = (_a = ctx == null ? void 0 : ctx.slots) == null ? void 0 : _a.default) == null ? void 0 : _b.call(_a);
|
|
17419
|
+
},
|
|
17420
|
+
() => {
|
|
17421
|
+
setTimeout(() => {
|
|
17422
|
+
animation();
|
|
17423
|
+
}, 300);
|
|
17424
|
+
}
|
|
17425
|
+
);
|
|
17101
17426
|
const init = () => {
|
|
17102
17427
|
const { name } = props;
|
|
17103
17428
|
const active = parent && parent.props.active;
|
|
@@ -17299,9 +17624,12 @@ const component = (componentName2, translate2) => {
|
|
|
17299
17624
|
return [columns.key, columns.render];
|
|
17300
17625
|
});
|
|
17301
17626
|
};
|
|
17302
|
-
watch(
|
|
17303
|
-
|
|
17304
|
-
|
|
17627
|
+
watch(
|
|
17628
|
+
() => props.data,
|
|
17629
|
+
(val) => {
|
|
17630
|
+
state.curData = val.slice();
|
|
17631
|
+
}
|
|
17632
|
+
);
|
|
17305
17633
|
return {
|
|
17306
17634
|
...toRefs(state),
|
|
17307
17635
|
classes,
|
|
@@ -17504,14 +17832,17 @@ const _sfc_main$p = create$p({
|
|
|
17504
17832
|
[prefixCls]: true
|
|
17505
17833
|
};
|
|
17506
17834
|
});
|
|
17507
|
-
watch(
|
|
17508
|
-
|
|
17509
|
-
|
|
17510
|
-
|
|
17835
|
+
watch(
|
|
17836
|
+
() => props.content,
|
|
17837
|
+
(newV, oldVal) => {
|
|
17838
|
+
if (newV != oldVal) {
|
|
17839
|
+
if (container) {
|
|
17840
|
+
document.body.appendChild(container);
|
|
17841
|
+
}
|
|
17842
|
+
createContainer();
|
|
17511
17843
|
}
|
|
17512
|
-
createContainer();
|
|
17513
17844
|
}
|
|
17514
|
-
|
|
17845
|
+
);
|
|
17515
17846
|
onMounted(() => {
|
|
17516
17847
|
createContainer();
|
|
17517
17848
|
});
|
|
@@ -17536,7 +17867,9 @@ const _sfc_main$p = create$p({
|
|
|
17536
17867
|
container.style.webkitLineClamp = "unset";
|
|
17537
17868
|
container.style.display = "block";
|
|
17538
17869
|
const lineHeight = pxToNumber(originStyle.lineHeight);
|
|
17539
|
-
maxHeight = Math.floor(
|
|
17870
|
+
maxHeight = Math.floor(
|
|
17871
|
+
lineHeight * (Number(props.rows) + 0.5) + pxToNumber(originStyle.paddingTop) + pxToNumber(originStyle.paddingBottom)
|
|
17872
|
+
);
|
|
17540
17873
|
container.innerText = props.content;
|
|
17541
17874
|
document.body.appendChild(container);
|
|
17542
17875
|
calcEllipse();
|
|
@@ -17769,7 +18102,13 @@ const _sfc_main$o = create$o({
|
|
|
17769
18102
|
img.referrerPolicy = "no-referrer";
|
|
17770
18103
|
img.src = image;
|
|
17771
18104
|
img.onload = () => {
|
|
17772
|
-
ctx.drawImage(
|
|
18105
|
+
ctx.drawImage(
|
|
18106
|
+
img,
|
|
18107
|
+
-imageWidth * ratio / 2,
|
|
18108
|
+
-imageHeight * ratio / 2,
|
|
18109
|
+
imageWidth * ratio,
|
|
18110
|
+
imageHeight * ratio
|
|
18111
|
+
);
|
|
17773
18112
|
ctx.restore();
|
|
17774
18113
|
state.base64Url = canvas.toDataURL();
|
|
17775
18114
|
};
|
|
@@ -17790,25 +18129,28 @@ const _sfc_main$o = create$o({
|
|
|
17790
18129
|
}
|
|
17791
18130
|
};
|
|
17792
18131
|
init();
|
|
17793
|
-
watch(
|
|
17794
|
-
|
|
17795
|
-
|
|
17796
|
-
|
|
17797
|
-
|
|
17798
|
-
|
|
17799
|
-
|
|
17800
|
-
|
|
17801
|
-
|
|
17802
|
-
|
|
17803
|
-
|
|
17804
|
-
|
|
17805
|
-
|
|
17806
|
-
|
|
17807
|
-
|
|
17808
|
-
|
|
17809
|
-
|
|
17810
|
-
|
|
17811
|
-
|
|
18132
|
+
watch(
|
|
18133
|
+
() => [
|
|
18134
|
+
zIndex,
|
|
18135
|
+
gapX,
|
|
18136
|
+
gapY,
|
|
18137
|
+
width,
|
|
18138
|
+
height,
|
|
18139
|
+
rotate,
|
|
18140
|
+
image,
|
|
18141
|
+
imageWidth,
|
|
18142
|
+
imageHeight,
|
|
18143
|
+
content,
|
|
18144
|
+
fontStyle,
|
|
18145
|
+
fontWeight,
|
|
18146
|
+
fontColor,
|
|
18147
|
+
fontSize,
|
|
18148
|
+
fontFamily
|
|
18149
|
+
],
|
|
18150
|
+
() => {
|
|
18151
|
+
init();
|
|
18152
|
+
}
|
|
18153
|
+
);
|
|
17812
18154
|
const classes = computed(() => {
|
|
17813
18155
|
const prefixCls = componentName$n;
|
|
17814
18156
|
return {
|
|
@@ -18079,10 +18421,13 @@ const _sfc_main$n = create$n({
|
|
|
18079
18421
|
lineAnimation();
|
|
18080
18422
|
};
|
|
18081
18423
|
const close = () => {
|
|
18082
|
-
const resCopy = Object.assign(
|
|
18083
|
-
|
|
18084
|
-
|
|
18085
|
-
|
|
18424
|
+
const resCopy = Object.assign(
|
|
18425
|
+
{
|
|
18426
|
+
addressIdStr: "",
|
|
18427
|
+
addressStr: ""
|
|
18428
|
+
},
|
|
18429
|
+
selectedRegion
|
|
18430
|
+
);
|
|
18086
18431
|
const res = {
|
|
18087
18432
|
data: {},
|
|
18088
18433
|
type: privateType.value
|
|
@@ -18125,35 +18470,56 @@ const _sfc_main$n = create$n({
|
|
|
18125
18470
|
const handleElevatorItem = (key, item) => {
|
|
18126
18471
|
nextAreaList(item);
|
|
18127
18472
|
};
|
|
18128
|
-
watch(
|
|
18129
|
-
|
|
18130
|
-
|
|
18131
|
-
|
|
18132
|
-
|
|
18133
|
-
|
|
18134
|
-
|
|
18135
|
-
|
|
18136
|
-
|
|
18137
|
-
|
|
18138
|
-
|
|
18139
|
-
|
|
18140
|
-
|
|
18141
|
-
watch(() => props.city, (value) => {
|
|
18142
|
-
regionList.city = isCustom2.value ? transformData(value) : value;
|
|
18143
|
-
});
|
|
18144
|
-
watch(() => props.country, (value) => {
|
|
18145
|
-
regionList.country = isCustom2.value ? transformData(value) : value;
|
|
18146
|
-
});
|
|
18147
|
-
watch(() => props.town, (value) => {
|
|
18148
|
-
regionList.town = isCustom2.value ? transformData(value) : value;
|
|
18149
|
-
});
|
|
18150
|
-
watch(() => props.existAddress, (value) => {
|
|
18151
|
-
value.forEach((item, index) => {
|
|
18152
|
-
if (item.selectedAddress) {
|
|
18153
|
-
selectedExistAddress = item;
|
|
18473
|
+
watch(
|
|
18474
|
+
() => props.visible,
|
|
18475
|
+
(value) => {
|
|
18476
|
+
showPopup.value = value;
|
|
18477
|
+
}
|
|
18478
|
+
);
|
|
18479
|
+
watch(
|
|
18480
|
+
() => showPopup.value,
|
|
18481
|
+
(value) => {
|
|
18482
|
+
if (value == false) {
|
|
18483
|
+
close();
|
|
18484
|
+
} else {
|
|
18485
|
+
initCustomSelected();
|
|
18154
18486
|
}
|
|
18155
|
-
}
|
|
18156
|
-
|
|
18487
|
+
}
|
|
18488
|
+
);
|
|
18489
|
+
watch(
|
|
18490
|
+
() => props.province,
|
|
18491
|
+
(value) => {
|
|
18492
|
+
regionList.province = isCustom2.value ? transformData(value) : value;
|
|
18493
|
+
}
|
|
18494
|
+
);
|
|
18495
|
+
watch(
|
|
18496
|
+
() => props.city,
|
|
18497
|
+
(value) => {
|
|
18498
|
+
regionList.city = isCustom2.value ? transformData(value) : value;
|
|
18499
|
+
}
|
|
18500
|
+
);
|
|
18501
|
+
watch(
|
|
18502
|
+
() => props.country,
|
|
18503
|
+
(value) => {
|
|
18504
|
+
regionList.country = isCustom2.value ? transformData(value) : value;
|
|
18505
|
+
}
|
|
18506
|
+
);
|
|
18507
|
+
watch(
|
|
18508
|
+
() => props.town,
|
|
18509
|
+
(value) => {
|
|
18510
|
+
regionList.town = isCustom2.value ? transformData(value) : value;
|
|
18511
|
+
}
|
|
18512
|
+
);
|
|
18513
|
+
watch(
|
|
18514
|
+
() => props.existAddress,
|
|
18515
|
+
(value) => {
|
|
18516
|
+
value.forEach((item, index) => {
|
|
18517
|
+
if (item.selectedAddress) {
|
|
18518
|
+
selectedExistAddress = item;
|
|
18519
|
+
}
|
|
18520
|
+
});
|
|
18521
|
+
}
|
|
18522
|
+
);
|
|
18157
18523
|
return {
|
|
18158
18524
|
showPopup,
|
|
18159
18525
|
privateType,
|
|
@@ -18426,9 +18792,12 @@ const _sfc_main$m = create$m({
|
|
|
18426
18792
|
clearInterval(timer);
|
|
18427
18793
|
timer = 0;
|
|
18428
18794
|
});
|
|
18429
|
-
watch(
|
|
18430
|
-
|
|
18431
|
-
|
|
18795
|
+
watch(
|
|
18796
|
+
() => props.danmu,
|
|
18797
|
+
(newValue, oldVlaue) => {
|
|
18798
|
+
danmuList.value = [...newValue];
|
|
18799
|
+
}
|
|
18800
|
+
);
|
|
18432
18801
|
const add = (word) => {
|
|
18433
18802
|
const _index = index.value % danmuList.value.length;
|
|
18434
18803
|
if (!props.loop && index.value === danmuList.value.length) {
|
|
@@ -18932,9 +19301,13 @@ const _sfc_main$g = create$g({
|
|
|
18932
19301
|
emits: ["selectSku"],
|
|
18933
19302
|
setup(props, { emit }) {
|
|
18934
19303
|
const skuInfo = ref([]);
|
|
18935
|
-
watch(
|
|
18936
|
-
|
|
18937
|
-
|
|
19304
|
+
watch(
|
|
19305
|
+
() => props.sku,
|
|
19306
|
+
(value) => {
|
|
19307
|
+
skuInfo.value = [].slice.call(value);
|
|
19308
|
+
},
|
|
19309
|
+
{ deep: true }
|
|
19310
|
+
);
|
|
18938
19311
|
onMounted(() => {
|
|
18939
19312
|
if (props.sku.length > 0) {
|
|
18940
19313
|
skuInfo.value = [].slice.call(props.sku);
|
|
@@ -19216,14 +19589,20 @@ const _sfc_main$d = create$d({
|
|
|
19216
19589
|
setup(props, { emit, slots }) {
|
|
19217
19590
|
const showPopup = ref(props.visible);
|
|
19218
19591
|
const goodsCount = ref(props.stepperMin);
|
|
19219
|
-
watch(
|
|
19220
|
-
|
|
19221
|
-
|
|
19222
|
-
|
|
19223
|
-
|
|
19224
|
-
|
|
19592
|
+
watch(
|
|
19593
|
+
() => props.visible,
|
|
19594
|
+
(value) => {
|
|
19595
|
+
showPopup.value = value;
|
|
19596
|
+
}
|
|
19597
|
+
);
|
|
19598
|
+
watch(
|
|
19599
|
+
() => showPopup.value,
|
|
19600
|
+
(value) => {
|
|
19601
|
+
if (value == false) {
|
|
19602
|
+
close();
|
|
19603
|
+
}
|
|
19225
19604
|
}
|
|
19226
|
-
|
|
19605
|
+
);
|
|
19227
19606
|
onMounted(() => {
|
|
19228
19607
|
});
|
|
19229
19608
|
const getSlots = (name) => slots[name];
|
|
@@ -19555,9 +19934,12 @@ const _sfc_main$b = create$b({
|
|
|
19555
19934
|
stepValue.value = value;
|
|
19556
19935
|
emit("changeStep", stepValue.value, currentValue.value);
|
|
19557
19936
|
};
|
|
19558
|
-
watch(
|
|
19559
|
-
|
|
19560
|
-
|
|
19937
|
+
watch(
|
|
19938
|
+
() => props.modelValue,
|
|
19939
|
+
(value) => {
|
|
19940
|
+
money.value = value;
|
|
19941
|
+
}
|
|
19942
|
+
);
|
|
19561
19943
|
return {
|
|
19562
19944
|
handleClick,
|
|
19563
19945
|
changeStep,
|
|
@@ -20095,7 +20477,11 @@ const _sfc_main$6 = create$6({
|
|
|
20095
20477
|
});
|
|
20096
20478
|
}
|
|
20097
20479
|
};
|
|
20098
|
-
watch(
|
|
20480
|
+
watch(
|
|
20481
|
+
() => props.data,
|
|
20482
|
+
() => trowelData(),
|
|
20483
|
+
{ deep: true }
|
|
20484
|
+
);
|
|
20099
20485
|
const clickDelIcon = (event, item) => {
|
|
20100
20486
|
emit("handelDelIcon", event, item);
|
|
20101
20487
|
event.stopPropagation();
|
|
@@ -20515,14 +20901,18 @@ const _sfc_main$2 = create$2({
|
|
|
20515
20901
|
const isShowImage = ref(false);
|
|
20516
20902
|
const initIndex = ref(1);
|
|
20517
20903
|
const totalImages = ref([]);
|
|
20518
|
-
watch(
|
|
20519
|
-
|
|
20520
|
-
|
|
20521
|
-
|
|
20522
|
-
|
|
20523
|
-
|
|
20524
|
-
|
|
20525
|
-
|
|
20904
|
+
watch(
|
|
20905
|
+
() => [props.videos, props.images],
|
|
20906
|
+
(value) => {
|
|
20907
|
+
if (value[0].length > 0) {
|
|
20908
|
+
value[0].forEach((el) => {
|
|
20909
|
+
el.type = "video";
|
|
20910
|
+
});
|
|
20911
|
+
}
|
|
20912
|
+
totalImages.value = value[0].concat(value[1]);
|
|
20913
|
+
},
|
|
20914
|
+
{ deep: true }
|
|
20915
|
+
);
|
|
20526
20916
|
onMounted(() => {
|
|
20527
20917
|
if (props.videos.length > 0) {
|
|
20528
20918
|
props.videos.forEach((el) => {
|
|
@@ -20832,6 +21222,6 @@ function install(app) {
|
|
|
20832
21222
|
}
|
|
20833
21223
|
});
|
|
20834
21224
|
}
|
|
20835
|
-
const version = "3.2.1";
|
|
21225
|
+
const version = "3.2.2-beta.1";
|
|
20836
21226
|
var nutui_vue_build = { install, version, Locale };
|
|
20837
21227
|
export { ActionSheet, Address, AddressList, Animate, Audio, AudioOperate, Avatar, AvatarGroup, BackTop, Badge, Barrage, Button, Calendar, CalendarItem, Card, Cascader, Category, CategoryPane, Cell, CellGroup, _sfc_main$1g as Checkbox, _sfc_main$1f as CheckboxGroup, CircleProgress, Col, Collapse, CollapseItem, Comment, _sfc_main$1J as ConfigProvider, CountDown, CountUp, DatePicker, _Dialog as Dialog, Divider, Drag, Ecard, Elevator, Ellipsis, Empty, FixedNav, Form, FormItem, _sfc_main$1C as Grid, GridItem, _sfc_main$1P as Icon, Image$1 as Image, _ImagePreview as ImagePreview, Indicator, InfiniteLoading, Input, InputNumber, _sfc_main$1H as Layout, List, Locale, Menu, MenuItem, Navbar, NoticeBar, NotifyFunction as Notify, NumberKeyboard, OldPicker, OverLay, Pagination, Picker, Popover, Popup, Price, Progress, PullRefresh, _sfc_main$19 as Radio, _sfc_main$18 as RadioGroup, Range, Rate, Row, SearchBar, ShortPassword, SideNavBar, SideNavBarItem, Signature, Skeleton, Sku, Step, _sfc_main$G as Steps, _sfc_main$1E as Sticky, SubSideNavBar, Swipe, Swiper, SwiperItem, Switch, TabPane, Tabbar, TabbarItem, Table, Tabs, Tag, TextArea, TimeDetail, TimePannel, TimeSelect, ToastFunction as Toast, Uploader, Video, WaterMark, nutui_vue_build as default, install, version };
|