@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.umd.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
|
*/
|
|
@@ -374,17 +374,21 @@
|
|
|
374
374
|
return () => {
|
|
375
375
|
var _a;
|
|
376
376
|
const _isImage = isImage();
|
|
377
|
-
return vue.h(
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
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 : ""
|
|
384
389
|
},
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
}, (_a = slots.default) == null ? void 0 : _a.call(slots));
|
|
390
|
+
(_a = slots.default) == null ? void 0 : _a.call(slots)
|
|
391
|
+
);
|
|
388
392
|
};
|
|
389
393
|
}
|
|
390
394
|
});
|
|
@@ -702,9 +706,12 @@
|
|
|
702
706
|
[props.overlayClass]: true
|
|
703
707
|
};
|
|
704
708
|
});
|
|
705
|
-
vue.watch(
|
|
706
|
-
|
|
707
|
-
|
|
709
|
+
vue.watch(
|
|
710
|
+
() => props.visible,
|
|
711
|
+
(value) => {
|
|
712
|
+
value ? lock() : unlock();
|
|
713
|
+
}
|
|
714
|
+
);
|
|
708
715
|
const lock = () => {
|
|
709
716
|
if (props.lockScroll && props.visible) {
|
|
710
717
|
document.body.classList.add("nut-overflow-hidden");
|
|
@@ -927,19 +934,28 @@
|
|
|
927
934
|
state.keepAlive = true;
|
|
928
935
|
}
|
|
929
936
|
});
|
|
930
|
-
vue.watch(
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
937
|
+
vue.watch(
|
|
938
|
+
() => props.visible,
|
|
939
|
+
(value) => {
|
|
940
|
+
if (value) {
|
|
941
|
+
open();
|
|
942
|
+
} else {
|
|
943
|
+
close();
|
|
944
|
+
}
|
|
935
945
|
}
|
|
936
|
-
|
|
937
|
-
vue.watch(
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
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
|
+
);
|
|
943
959
|
return {
|
|
944
960
|
...vue.toRefs(state),
|
|
945
961
|
popStyle,
|
|
@@ -1052,9 +1068,13 @@
|
|
|
1052
1068
|
setup(props, { slots }) {
|
|
1053
1069
|
return () => {
|
|
1054
1070
|
var _a;
|
|
1055
|
-
return vue.h(
|
|
1056
|
-
|
|
1057
|
-
|
|
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
|
+
);
|
|
1058
1078
|
};
|
|
1059
1079
|
}
|
|
1060
1080
|
};
|
|
@@ -1132,9 +1152,12 @@
|
|
|
1132
1152
|
};
|
|
1133
1153
|
return styless;
|
|
1134
1154
|
});
|
|
1135
|
-
vue.watch(
|
|
1136
|
-
|
|
1137
|
-
|
|
1155
|
+
vue.watch(
|
|
1156
|
+
() => props.src,
|
|
1157
|
+
(val) => {
|
|
1158
|
+
state.isError = false, state.loading = true;
|
|
1159
|
+
}
|
|
1160
|
+
);
|
|
1138
1161
|
const load = () => {
|
|
1139
1162
|
state.loading = false;
|
|
1140
1163
|
emit("load");
|
|
@@ -1205,8 +1228,8 @@
|
|
|
1205
1228
|
default: "0"
|
|
1206
1229
|
}
|
|
1207
1230
|
},
|
|
1208
|
-
emits: [
|
|
1209
|
-
setup(props
|
|
1231
|
+
emits: [],
|
|
1232
|
+
setup(props) {
|
|
1210
1233
|
const prefixCls = componentName$1l;
|
|
1211
1234
|
const gutter = vue.inject("gutter");
|
|
1212
1235
|
const classes = vue.computed(() => {
|
|
@@ -1223,22 +1246,16 @@
|
|
|
1223
1246
|
paddingRight: gutter / 2 + "px"
|
|
1224
1247
|
};
|
|
1225
1248
|
});
|
|
1226
|
-
const handleClick = (evt) => {
|
|
1227
|
-
evt.stopPropagation();
|
|
1228
|
-
emit("click", evt);
|
|
1229
|
-
};
|
|
1230
1249
|
return {
|
|
1231
1250
|
classes,
|
|
1232
|
-
style
|
|
1233
|
-
handleClick
|
|
1251
|
+
style
|
|
1234
1252
|
};
|
|
1235
1253
|
}
|
|
1236
1254
|
});
|
|
1237
1255
|
function _sfc_render$1w(_ctx, _cache, $props, $setup, $data, $options) {
|
|
1238
1256
|
return vue.openBlock(), vue.createElementBlock("view", {
|
|
1239
1257
|
class: vue.normalizeClass(_ctx.classes),
|
|
1240
|
-
style: vue.normalizeStyle(_ctx.style)
|
|
1241
|
-
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.handleClick && _ctx.handleClick(...args))
|
|
1258
|
+
style: vue.normalizeStyle(_ctx.style)
|
|
1242
1259
|
}, [
|
|
1243
1260
|
vue.renderSlot(_ctx.$slots, "default")
|
|
1244
1261
|
], 6);
|
|
@@ -1268,8 +1285,8 @@
|
|
|
1268
1285
|
default: "nowrap"
|
|
1269
1286
|
}
|
|
1270
1287
|
},
|
|
1271
|
-
emits: [
|
|
1272
|
-
setup(props
|
|
1288
|
+
emits: [],
|
|
1289
|
+
setup(props) {
|
|
1273
1290
|
const prefixCls = componentName$1k;
|
|
1274
1291
|
vue.provide("gutter", props.gutter);
|
|
1275
1292
|
const getClass = (prefix, type) => {
|
|
@@ -1284,20 +1301,14 @@
|
|
|
1284
1301
|
${prefixCls}
|
|
1285
1302
|
`;
|
|
1286
1303
|
};
|
|
1287
|
-
const handleClick = (evt) => {
|
|
1288
|
-
evt.stopPropagation();
|
|
1289
|
-
emit("click", evt);
|
|
1290
|
-
};
|
|
1291
1304
|
return {
|
|
1292
|
-
getClasses
|
|
1293
|
-
handleClick
|
|
1305
|
+
getClasses
|
|
1294
1306
|
};
|
|
1295
1307
|
}
|
|
1296
1308
|
});
|
|
1297
1309
|
function _sfc_render$1v(_ctx, _cache, $props, $setup, $data, $options) {
|
|
1298
1310
|
return vue.openBlock(), vue.createElementBlock("view", {
|
|
1299
|
-
class: vue.normalizeClass(_ctx.getClasses())
|
|
1300
|
-
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.handleClick && _ctx.handleClick(...args))
|
|
1311
|
+
class: vue.normalizeClass(_ctx.getClasses())
|
|
1301
1312
|
}, [
|
|
1302
1313
|
vue.renderSlot(_ctx.$slots, "default")
|
|
1303
1314
|
], 2);
|
|
@@ -1408,10 +1419,14 @@
|
|
|
1408
1419
|
};
|
|
1409
1420
|
const renderFixed = () => {
|
|
1410
1421
|
var _a;
|
|
1411
|
-
return vue.h(
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
|
|
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
|
+
);
|
|
1415
1430
|
};
|
|
1416
1431
|
const onScroll = () => {
|
|
1417
1432
|
if (!isExistRoot())
|
|
@@ -1448,9 +1463,12 @@
|
|
|
1448
1463
|
fixed: state.fixed
|
|
1449
1464
|
});
|
|
1450
1465
|
};
|
|
1451
|
-
vue.watch(
|
|
1452
|
-
|
|
1453
|
-
|
|
1466
|
+
vue.watch(
|
|
1467
|
+
() => state.fixed,
|
|
1468
|
+
(val) => {
|
|
1469
|
+
emit("change", val);
|
|
1470
|
+
}
|
|
1471
|
+
);
|
|
1454
1472
|
vue.onMounted(() => {
|
|
1455
1473
|
window.addEventListener("scroll", onScroll);
|
|
1456
1474
|
onScroll();
|
|
@@ -1459,10 +1477,14 @@
|
|
|
1459
1477
|
window.removeEventListener("scroll", onScroll);
|
|
1460
1478
|
});
|
|
1461
1479
|
return () => {
|
|
1462
|
-
return vue.h(
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1480
|
+
return vue.h(
|
|
1481
|
+
"view",
|
|
1482
|
+
{
|
|
1483
|
+
style: rootStyle.value,
|
|
1484
|
+
ref: root
|
|
1485
|
+
},
|
|
1486
|
+
[renderFixed()]
|
|
1487
|
+
);
|
|
1466
1488
|
};
|
|
1467
1489
|
}
|
|
1468
1490
|
});
|
|
@@ -1574,11 +1596,17 @@
|
|
|
1574
1596
|
};
|
|
1575
1597
|
const extend = Object.assign;
|
|
1576
1598
|
return (value) => {
|
|
1577
|
-
vue.provide(
|
|
1578
|
-
|
|
1579
|
-
|
|
1580
|
-
|
|
1581
|
-
|
|
1599
|
+
vue.provide(
|
|
1600
|
+
key,
|
|
1601
|
+
extend(
|
|
1602
|
+
{
|
|
1603
|
+
add,
|
|
1604
|
+
remove,
|
|
1605
|
+
internalChildren
|
|
1606
|
+
},
|
|
1607
|
+
value
|
|
1608
|
+
)
|
|
1609
|
+
);
|
|
1582
1610
|
return {
|
|
1583
1611
|
internalChildren
|
|
1584
1612
|
};
|
|
@@ -1646,10 +1674,14 @@
|
|
|
1646
1674
|
});
|
|
1647
1675
|
return () => {
|
|
1648
1676
|
var _a;
|
|
1649
|
-
return vue.h(
|
|
1650
|
-
|
|
1651
|
-
|
|
1652
|
-
|
|
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
|
+
);
|
|
1653
1685
|
};
|
|
1654
1686
|
}
|
|
1655
1687
|
};
|
|
@@ -2152,11 +2184,17 @@
|
|
|
2152
2184
|
publicChildren.push(child.proxy);
|
|
2153
2185
|
}
|
|
2154
2186
|
};
|
|
2155
|
-
vue.provide(
|
|
2156
|
-
|
|
2157
|
-
|
|
2158
|
-
|
|
2159
|
-
|
|
2187
|
+
vue.provide(
|
|
2188
|
+
"menuParent",
|
|
2189
|
+
Object.assign(
|
|
2190
|
+
{
|
|
2191
|
+
link,
|
|
2192
|
+
children: publicChildren,
|
|
2193
|
+
internalChildren
|
|
2194
|
+
},
|
|
2195
|
+
value
|
|
2196
|
+
)
|
|
2197
|
+
);
|
|
2160
2198
|
};
|
|
2161
2199
|
return {
|
|
2162
2200
|
children: publicChildren,
|
|
@@ -2490,9 +2528,12 @@
|
|
|
2490
2528
|
changeIndex
|
|
2491
2529
|
});
|
|
2492
2530
|
vue.provide("parent", parentData);
|
|
2493
|
-
vue.watch(
|
|
2494
|
-
|
|
2495
|
-
|
|
2531
|
+
vue.watch(
|
|
2532
|
+
() => props.visible,
|
|
2533
|
+
(value) => {
|
|
2534
|
+
parentData.modelValue = value;
|
|
2535
|
+
}
|
|
2536
|
+
);
|
|
2496
2537
|
return {
|
|
2497
2538
|
changeIndex
|
|
2498
2539
|
};
|
|
@@ -2588,6 +2629,7 @@
|
|
|
2588
2629
|
return null;
|
|
2589
2630
|
});
|
|
2590
2631
|
vue.watch(choosed, (value, oldValue) => {
|
|
2632
|
+
var _a, _b;
|
|
2591
2633
|
state.active = value;
|
|
2592
2634
|
let index = value;
|
|
2593
2635
|
if (props.name) {
|
|
@@ -2595,20 +2637,18 @@
|
|
|
2595
2637
|
return item.name == value;
|
|
2596
2638
|
});
|
|
2597
2639
|
}
|
|
2598
|
-
|
|
2599
|
-
|
|
2600
|
-
|
|
2601
|
-
|
|
2602
|
-
|
|
2603
|
-
|
|
2604
|
-
|
|
2605
|
-
|
|
2606
|
-
|
|
2607
|
-
|
|
2608
|
-
location.replace(to);
|
|
2609
|
-
}
|
|
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);
|
|
2610
2650
|
}
|
|
2611
|
-
}
|
|
2651
|
+
}
|
|
2612
2652
|
});
|
|
2613
2653
|
return {
|
|
2614
2654
|
state,
|
|
@@ -2824,21 +2864,27 @@
|
|
|
2824
2864
|
useExpose({
|
|
2825
2865
|
scrollTo
|
|
2826
2866
|
});
|
|
2827
|
-
vue.watch(
|
|
2828
|
-
state.
|
|
2829
|
-
|
|
2830
|
-
|
|
2831
|
-
|
|
2832
|
-
|
|
2833
|
-
|
|
2834
|
-
|
|
2835
|
-
|
|
2836
|
-
|
|
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;
|
|
2837
2886
|
}
|
|
2838
|
-
|
|
2839
|
-
return;
|
|
2840
|
-
state.fixedTop = fixedTop;
|
|
2841
|
-
});
|
|
2887
|
+
);
|
|
2842
2888
|
return {
|
|
2843
2889
|
classes,
|
|
2844
2890
|
...vue.toRefs(state),
|
|
@@ -3182,15 +3228,21 @@
|
|
|
3182
3228
|
}
|
|
3183
3229
|
findTabsIndex(props.modelValue);
|
|
3184
3230
|
};
|
|
3185
|
-
vue.watch(
|
|
3186
|
-
|
|
3187
|
-
|
|
3188
|
-
|
|
3189
|
-
|
|
3190
|
-
|
|
3191
|
-
|
|
3192
|
-
|
|
3193
|
-
|
|
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
|
+
);
|
|
3194
3246
|
vue.onMounted(init);
|
|
3195
3247
|
vue.onActivated(init);
|
|
3196
3248
|
const contentStyle = vue.computed(() => {
|
|
@@ -3987,12 +4039,15 @@
|
|
|
3987
4039
|
"aria-valuenow": _ctx.curValue(index),
|
|
3988
4040
|
"aria-valuemax": +_ctx.max,
|
|
3989
4041
|
"aria-orientation": "horizontal",
|
|
3990
|
-
onTouchstart: vue.withModifiers(
|
|
3991
|
-
|
|
3992
|
-
|
|
3993
|
-
|
|
3994
|
-
|
|
3995
|
-
|
|
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
|
+
),
|
|
3996
4051
|
onTouchmove: _cache[0] || (_cache[0] = vue.withModifiers((...args) => _ctx.onTouchMove && _ctx.onTouchMove(...args), ["stop", "prevent"])),
|
|
3997
4052
|
onTouchend: _cache[1] || (_cache[1] = vue.withModifiers((...args) => _ctx.onTouchEnd && _ctx.onTouchEnd(...args), ["stop", "prevent"])),
|
|
3998
4053
|
onTouchcancel: _cache[2] || (_cache[2] = vue.withModifiers((...args) => _ctx.onTouchEnd && _ctx.onTouchEnd(...args), ["stop", "prevent"])),
|
|
@@ -4015,9 +4070,12 @@
|
|
|
4015
4070
|
"aria-valuenow": _ctx.curValue(),
|
|
4016
4071
|
"aria-valuemax": +_ctx.max,
|
|
4017
4072
|
"aria-orientation": "horizontal",
|
|
4018
|
-
onTouchstart: _cache[4] || (_cache[4] = vue.withModifiers(
|
|
4019
|
-
|
|
4020
|
-
|
|
4073
|
+
onTouchstart: _cache[4] || (_cache[4] = vue.withModifiers(
|
|
4074
|
+
(e) => {
|
|
4075
|
+
_ctx.onTouchStart(e);
|
|
4076
|
+
},
|
|
4077
|
+
["stop", "prevent"]
|
|
4078
|
+
)),
|
|
4021
4079
|
onTouchmove: _cache[5] || (_cache[5] = vue.withModifiers((...args) => _ctx.onTouchMove && _ctx.onTouchMove(...args), ["stop", "prevent"])),
|
|
4022
4080
|
onTouchend: _cache[6] || (_cache[6] = vue.withModifiers((...args) => _ctx.onTouchEnd && _ctx.onTouchEnd(...args), ["stop", "prevent"])),
|
|
4023
4081
|
onTouchcancel: _cache[7] || (_cache[7] = vue.withModifiers((...args) => _ctx.onTouchEnd && _ctx.onTouchEnd(...args), ["stop", "prevent"])),
|
|
@@ -4588,23 +4646,33 @@
|
|
|
4588
4646
|
return pane.selectedNode && pane.selectedNode.value === node.value;
|
|
4589
4647
|
}
|
|
4590
4648
|
};
|
|
4591
|
-
vue.watch(
|
|
4592
|
-
|
|
4593
|
-
|
|
4594
|
-
|
|
4595
|
-
|
|
4596
|
-
|
|
4597
|
-
|
|
4598
|
-
|
|
4599
|
-
|
|
4600
|
-
|
|
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
|
+
}
|
|
4601
4666
|
}
|
|
4602
|
-
|
|
4603
|
-
vue.watch(
|
|
4604
|
-
|
|
4605
|
-
|
|
4667
|
+
);
|
|
4668
|
+
vue.watch(
|
|
4669
|
+
() => props.visible,
|
|
4670
|
+
(val) => {
|
|
4671
|
+
if (val && Array.isArray(innerValue.value) && innerValue.value.length > 0) {
|
|
4672
|
+
syncValue();
|
|
4673
|
+
}
|
|
4606
4674
|
}
|
|
4607
|
-
|
|
4675
|
+
);
|
|
4608
4676
|
return { panes, initLoading, tabsCursor, ...methods };
|
|
4609
4677
|
}
|
|
4610
4678
|
});
|
|
@@ -4723,11 +4791,14 @@
|
|
|
4723
4791
|
const onPathChange = (pathNodes) => {
|
|
4724
4792
|
emit("pathChange", pathNodes);
|
|
4725
4793
|
};
|
|
4726
|
-
vue.watch(
|
|
4727
|
-
|
|
4728
|
-
|
|
4794
|
+
vue.watch(
|
|
4795
|
+
() => props.modelValue,
|
|
4796
|
+
(value) => {
|
|
4797
|
+
if (value !== innerValue.value) {
|
|
4798
|
+
innerValue.value = value;
|
|
4799
|
+
}
|
|
4729
4800
|
}
|
|
4730
|
-
|
|
4801
|
+
);
|
|
4731
4802
|
return {
|
|
4732
4803
|
onChange,
|
|
4733
4804
|
onPathChange,
|
|
@@ -5164,11 +5235,17 @@
|
|
|
5164
5235
|
}
|
|
5165
5236
|
monthInfo.cssScrollHeight = cssScrollHeight;
|
|
5166
5237
|
if (type == "next") {
|
|
5167
|
-
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
|
+
)) {
|
|
5168
5242
|
state.monthsData.push(monthInfo);
|
|
5169
5243
|
}
|
|
5170
5244
|
} else {
|
|
5171
|
-
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
|
+
)) {
|
|
5172
5249
|
state.monthsData.unshift(monthInfo);
|
|
5173
5250
|
} else {
|
|
5174
5251
|
state.unLoadPrev = true;
|
|
@@ -5220,9 +5297,9 @@
|
|
|
5220
5297
|
if (state.currDate.length > 0) {
|
|
5221
5298
|
let defaultArr = [];
|
|
5222
5299
|
let obj = {};
|
|
5223
|
-
state.currDate.forEach((item
|
|
5300
|
+
state.currDate.forEach((item) => {
|
|
5224
5301
|
if (propStartDate && !Utils.compareDate(item, propStartDate) && propEndDate && !Utils.compareDate(propEndDate, item)) {
|
|
5225
|
-
if (!
|
|
5302
|
+
if (!Object.hasOwnProperty.call(obj, item)) {
|
|
5226
5303
|
defaultArr.push(item);
|
|
5227
5304
|
obj[item] = item;
|
|
5228
5305
|
}
|
|
@@ -5351,7 +5428,7 @@
|
|
|
5351
5428
|
}
|
|
5352
5429
|
return false;
|
|
5353
5430
|
};
|
|
5354
|
-
const rangeTip = (
|
|
5431
|
+
const rangeTip = () => {
|
|
5355
5432
|
if (state.currDate.length >= 2) {
|
|
5356
5433
|
return Utils.isEqual(state.currDate[0], state.currDate[1]);
|
|
5357
5434
|
}
|
|
@@ -5401,13 +5478,16 @@
|
|
|
5401
5478
|
initData();
|
|
5402
5479
|
};
|
|
5403
5480
|
initData();
|
|
5404
|
-
vue.watch(
|
|
5405
|
-
|
|
5406
|
-
|
|
5407
|
-
|
|
5481
|
+
vue.watch(
|
|
5482
|
+
() => props.defaultValue,
|
|
5483
|
+
(val) => {
|
|
5484
|
+
if (val) {
|
|
5485
|
+
if (props.poppable) {
|
|
5486
|
+
resetRender();
|
|
5487
|
+
}
|
|
5408
5488
|
}
|
|
5409
5489
|
}
|
|
5410
|
-
|
|
5490
|
+
);
|
|
5411
5491
|
return {
|
|
5412
5492
|
weeks,
|
|
5413
5493
|
compConthsData,
|
|
@@ -5547,7 +5627,7 @@
|
|
|
5547
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),
|
|
5548
5628
|
_ctx.isStartTip(day, month) ? (vue.openBlock(), vue.createElementBlock("view", {
|
|
5549
5629
|
key: 3,
|
|
5550
|
-
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() }])
|
|
5551
5631
|
}, vue.toDisplayString(_ctx.startText || _ctx.translate("start")), 3)) : vue.createCommentVNode("", true),
|
|
5552
5632
|
_ctx.isEndTip(day, month) ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_13$3, vue.toDisplayString(_ctx.endText || _ctx.translate("end")), 1)) : vue.createCommentVNode("", true)
|
|
5553
5633
|
], 10, _hoisted_8$d);
|
|
@@ -5582,6 +5662,10 @@
|
|
|
5582
5662
|
type: Boolean,
|
|
5583
5663
|
default: false
|
|
5584
5664
|
},
|
|
5665
|
+
toDateAnimation: {
|
|
5666
|
+
type: Boolean,
|
|
5667
|
+
default: true
|
|
5668
|
+
},
|
|
5585
5669
|
poppable: {
|
|
5586
5670
|
type: Boolean,
|
|
5587
5671
|
default: true
|
|
@@ -5718,7 +5802,8 @@
|
|
|
5718
5802
|
onSelect: _ctx.select,
|
|
5719
5803
|
"show-today": _ctx.showToday,
|
|
5720
5804
|
"show-title": _ctx.showTitle,
|
|
5721
|
-
"show-sub-title": _ctx.showSubTitle
|
|
5805
|
+
"show-sub-title": _ctx.showSubTitle,
|
|
5806
|
+
"to-date-animation": _ctx.toDateAnimation
|
|
5722
5807
|
}, vue.createSlots({ _: 2 }, [
|
|
5723
5808
|
_ctx.showTopBtn ? {
|
|
5724
5809
|
name: "btn",
|
|
@@ -5750,7 +5835,7 @@
|
|
|
5750
5835
|
})
|
|
5751
5836
|
])
|
|
5752
5837
|
} : void 0
|
|
5753
|
-
]), 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)
|
|
5754
5839
|
]),
|
|
5755
5840
|
_: 3
|
|
5756
5841
|
}, 8, ["visible", "onClickOverlay", "onClickCloseIcon"])) : (vue.openBlock(), vue.createBlock(_component_nut_calendar_item, {
|
|
@@ -5772,6 +5857,7 @@
|
|
|
5772
5857
|
"show-today": _ctx.showToday,
|
|
5773
5858
|
"show-title": _ctx.showTitle,
|
|
5774
5859
|
"show-sub-title": _ctx.showSubTitle,
|
|
5860
|
+
"to-date-animation": _ctx.toDateAnimation,
|
|
5775
5861
|
ref: "calendarRef"
|
|
5776
5862
|
}, vue.createSlots({ _: 2 }, [
|
|
5777
5863
|
_ctx.showTopBtn ? {
|
|
@@ -5804,7 +5890,7 @@
|
|
|
5804
5890
|
})
|
|
5805
5891
|
])
|
|
5806
5892
|
} : void 0
|
|
5807
|
-
]), 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"]));
|
|
5808
5894
|
}
|
|
5809
5895
|
var Calendar = /* @__PURE__ */ _export_sfc(_sfc_main$1h, [["render", _sfc_render$1b]]);
|
|
5810
5896
|
const component$4 = (componentName2, nutIcon) => {
|
|
@@ -5885,13 +5971,16 @@
|
|
|
5885
5971
|
emit("update:modelValue", value);
|
|
5886
5972
|
emit("change", value, label);
|
|
5887
5973
|
};
|
|
5888
|
-
vue.watch(
|
|
5889
|
-
|
|
5890
|
-
|
|
5891
|
-
|
|
5892
|
-
|
|
5974
|
+
vue.watch(
|
|
5975
|
+
() => props.modelValue,
|
|
5976
|
+
(v) => {
|
|
5977
|
+
if (updateType == "click") {
|
|
5978
|
+
updateType = "";
|
|
5979
|
+
} else {
|
|
5980
|
+
emit("change", v);
|
|
5981
|
+
}
|
|
5893
5982
|
}
|
|
5894
|
-
|
|
5983
|
+
);
|
|
5895
5984
|
const renderIcon = () => {
|
|
5896
5985
|
const { iconName, iconSize, iconActiveName, iconClassPrefix, iconFontClassName, iconIndeterminateName } = props;
|
|
5897
5986
|
return vue.h(nutIcon, {
|
|
@@ -5904,9 +5993,13 @@
|
|
|
5904
5993
|
};
|
|
5905
5994
|
const renderLabel = () => {
|
|
5906
5995
|
var _a;
|
|
5907
|
-
return vue.h(
|
|
5908
|
-
|
|
5909
|
-
|
|
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
|
+
);
|
|
5910
6003
|
};
|
|
5911
6004
|
const handleClick = (e) => {
|
|
5912
6005
|
var _a, _b;
|
|
@@ -5934,14 +6027,21 @@
|
|
|
5934
6027
|
vue.onMounted(() => {
|
|
5935
6028
|
hasParent.value && parent["relation"](vue.getCurrentInstance());
|
|
5936
6029
|
});
|
|
5937
|
-
vue.watch(
|
|
5938
|
-
|
|
5939
|
-
|
|
6030
|
+
vue.watch(
|
|
6031
|
+
() => props.indeterminate,
|
|
6032
|
+
(newVal) => {
|
|
6033
|
+
state.partialSelect = newVal;
|
|
6034
|
+
}
|
|
6035
|
+
);
|
|
5940
6036
|
return () => {
|
|
5941
|
-
return vue.h(
|
|
5942
|
-
|
|
5943
|
-
|
|
5944
|
-
|
|
6037
|
+
return vue.h(
|
|
6038
|
+
"view",
|
|
6039
|
+
{
|
|
6040
|
+
class: `${componentName2} ${props.textPosition === "left" ? `${componentName2}--reverse` : ""}`,
|
|
6041
|
+
onClick: handleClick
|
|
6042
|
+
},
|
|
6043
|
+
[renderIcon(), renderLabel()]
|
|
6044
|
+
);
|
|
5945
6045
|
};
|
|
5946
6046
|
}
|
|
5947
6047
|
};
|
|
@@ -6010,15 +6110,22 @@
|
|
|
6010
6110
|
updateValue,
|
|
6011
6111
|
relation
|
|
6012
6112
|
});
|
|
6013
|
-
vue.watch(
|
|
6014
|
-
|
|
6015
|
-
|
|
6113
|
+
vue.watch(
|
|
6114
|
+
() => props.modelValue,
|
|
6115
|
+
(value) => {
|
|
6116
|
+
emit("change", value);
|
|
6117
|
+
}
|
|
6118
|
+
);
|
|
6016
6119
|
useExpose({ toggleAll, toggleReverse });
|
|
6017
6120
|
return () => {
|
|
6018
6121
|
var _a;
|
|
6019
|
-
return vue.h(
|
|
6020
|
-
|
|
6021
|
-
|
|
6122
|
+
return vue.h(
|
|
6123
|
+
"view",
|
|
6124
|
+
{
|
|
6125
|
+
class: `${componentName$13}`
|
|
6126
|
+
},
|
|
6127
|
+
(_a = slots.default) == null ? void 0 : _a.call(slots)
|
|
6128
|
+
);
|
|
6022
6129
|
};
|
|
6023
6130
|
}
|
|
6024
6131
|
});
|
|
@@ -6042,6 +6149,10 @@
|
|
|
6042
6149
|
threeDimensional: {
|
|
6043
6150
|
type: Boolean,
|
|
6044
6151
|
default: true
|
|
6152
|
+
},
|
|
6153
|
+
swipeDuration: {
|
|
6154
|
+
type: [Number, String],
|
|
6155
|
+
default: 1e3
|
|
6045
6156
|
}
|
|
6046
6157
|
},
|
|
6047
6158
|
emits: ["click", "change"],
|
|
@@ -6069,6 +6180,7 @@
|
|
|
6069
6180
|
const moving = vue.ref(false);
|
|
6070
6181
|
const touchDeg = vue.ref(0);
|
|
6071
6182
|
const touchTime = vue.ref(0);
|
|
6183
|
+
const DEFAULT_DURATION = 200;
|
|
6072
6184
|
const INERTIA_TIME = 300;
|
|
6073
6185
|
const INERTIA_DISTANCE = 15;
|
|
6074
6186
|
const touchRollerStyle = vue.computed(() => {
|
|
@@ -6117,7 +6229,7 @@
|
|
|
6117
6229
|
let moveTime = state.touchParams.lastTime - state.touchParams.startTime;
|
|
6118
6230
|
if (moveTime <= INERTIA_TIME && Math.abs(move) > INERTIA_DISTANCE) {
|
|
6119
6231
|
const distance = momentum(move, moveTime);
|
|
6120
|
-
setMove(distance, "end",
|
|
6232
|
+
setMove(distance, "end", +props.swipeDuration);
|
|
6121
6233
|
return;
|
|
6122
6234
|
} else {
|
|
6123
6235
|
setMove(move, "end");
|
|
@@ -6139,7 +6251,7 @@
|
|
|
6139
6251
|
return false;
|
|
6140
6252
|
}
|
|
6141
6253
|
};
|
|
6142
|
-
const setTransform = (translateY = 0, type, time =
|
|
6254
|
+
const setTransform = (translateY = 0, type, time = DEFAULT_DURATION, deg) => {
|
|
6143
6255
|
if (type === "end") {
|
|
6144
6256
|
touchTime.value = time;
|
|
6145
6257
|
} else {
|
|
@@ -6196,20 +6308,28 @@
|
|
|
6196
6308
|
moving.value = false;
|
|
6197
6309
|
setChooseValue();
|
|
6198
6310
|
};
|
|
6199
|
-
vue.watch(
|
|
6200
|
-
|
|
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) => {
|
|
6201
6326
|
state.transformY = 0;
|
|
6202
6327
|
modifyStatus(false);
|
|
6328
|
+
},
|
|
6329
|
+
{
|
|
6330
|
+
deep: true
|
|
6203
6331
|
}
|
|
6204
|
-
|
|
6205
|
-
deep: true
|
|
6206
|
-
});
|
|
6207
|
-
vue.watch(() => props.value, (val) => {
|
|
6208
|
-
state.transformY = 0;
|
|
6209
|
-
modifyStatus(false);
|
|
6210
|
-
}, {
|
|
6211
|
-
deep: true
|
|
6212
|
-
});
|
|
6332
|
+
);
|
|
6213
6333
|
vue.onMounted(() => {
|
|
6214
6334
|
modifyStatus(true);
|
|
6215
6335
|
});
|
|
@@ -6314,6 +6434,10 @@
|
|
|
6314
6434
|
threeDimensional: {
|
|
6315
6435
|
type: Boolean,
|
|
6316
6436
|
default: true
|
|
6437
|
+
},
|
|
6438
|
+
swipeDuration: {
|
|
6439
|
+
type: [Number, String],
|
|
6440
|
+
default: 1e3
|
|
6317
6441
|
}
|
|
6318
6442
|
},
|
|
6319
6443
|
emits: ["close", "change", "confirm", "update:visible", "update:modelValue"],
|
|
@@ -6433,25 +6557,39 @@
|
|
|
6433
6557
|
if (props.visible)
|
|
6434
6558
|
state.show = false;
|
|
6435
6559
|
});
|
|
6436
|
-
vue.watch(
|
|
6437
|
-
|
|
6438
|
-
|
|
6439
|
-
|
|
6440
|
-
|
|
6441
|
-
|
|
6442
|
-
|
|
6443
|
-
|
|
6444
|
-
|
|
6445
|
-
|
|
6446
|
-
|
|
6447
|
-
|
|
6448
|
-
|
|
6449
|
-
|
|
6450
|
-
|
|
6451
|
-
|
|
6452
|
-
|
|
6453
|
-
|
|
6454
|
-
|
|
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
|
+
);
|
|
6455
6593
|
return {
|
|
6456
6594
|
classes,
|
|
6457
6595
|
...vue.toRefs(state),
|
|
@@ -6517,10 +6655,11 @@
|
|
|
6517
6655
|
columnsType: _ctx.columnsType,
|
|
6518
6656
|
value: _ctx.defaultValues[columnIndex],
|
|
6519
6657
|
threeDimensional: _ctx.threeDimensional,
|
|
6658
|
+
swipeDuration: _ctx.swipeDuration,
|
|
6520
6659
|
onChange: (option) => {
|
|
6521
6660
|
_ctx.changeHandler(columnIndex, option);
|
|
6522
6661
|
}
|
|
6523
|
-
}, null, 8, ["itemShow", "column", "readonly", "columnsType", "value", "threeDimensional", "onChange"])
|
|
6662
|
+
}, null, 8, ["itemShow", "column", "readonly", "columnsType", "value", "threeDimensional", "swipeDuration", "onChange"])
|
|
6524
6663
|
]);
|
|
6525
6664
|
}), 128))
|
|
6526
6665
|
], 512),
|
|
@@ -6808,15 +6947,24 @@
|
|
|
6808
6947
|
vue.onBeforeMount(() => {
|
|
6809
6948
|
state.currentDate = formatValue(props.modelValue);
|
|
6810
6949
|
});
|
|
6811
|
-
vue.watch(
|
|
6812
|
-
|
|
6813
|
-
|
|
6814
|
-
|
|
6815
|
-
|
|
6816
|
-
|
|
6817
|
-
vue.watch(
|
|
6818
|
-
|
|
6819
|
-
|
|
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
|
+
);
|
|
6820
6968
|
return {
|
|
6821
6969
|
...vue.toRefs(state),
|
|
6822
6970
|
changeHandler,
|
|
@@ -6891,6 +7039,14 @@
|
|
|
6891
7039
|
readonly: {
|
|
6892
7040
|
type: Boolean,
|
|
6893
7041
|
default: false
|
|
7042
|
+
},
|
|
7043
|
+
iconLeft: {
|
|
7044
|
+
type: String,
|
|
7045
|
+
default: "minus"
|
|
7046
|
+
},
|
|
7047
|
+
iconRight: {
|
|
7048
|
+
type: String,
|
|
7049
|
+
default: "plus"
|
|
6894
7050
|
}
|
|
6895
7051
|
},
|
|
6896
7052
|
emits: ["update:modelValue", "change", "blur", "focus", "reduce", "add", "overlimit"],
|
|
@@ -6980,12 +7136,11 @@
|
|
|
6980
7136
|
class: vue.normalizeClass(_ctx.classes),
|
|
6981
7137
|
style: vue.normalizeStyle({ height: _ctx.pxCheck(_ctx.buttonSize) })
|
|
6982
7138
|
}, [
|
|
6983
|
-
vue.createVNode(_component_nut_icon, {
|
|
6984
|
-
name:
|
|
6985
|
-
class:
|
|
6986
|
-
size: _ctx.buttonSize
|
|
6987
|
-
|
|
6988
|
-
}, 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"]),
|
|
6989
7144
|
vue.createElementVNode("input", {
|
|
6990
7145
|
type: "number",
|
|
6991
7146
|
min: _ctx.min,
|
|
@@ -6998,12 +7153,11 @@
|
|
|
6998
7153
|
onBlur: _cache[1] || (_cache[1] = (...args) => _ctx.blur && _ctx.blur(...args)),
|
|
6999
7154
|
onFocus: _cache[2] || (_cache[2] = (...args) => _ctx.focus && _ctx.focus(...args))
|
|
7000
7155
|
}, null, 44, _hoisted_1$Z),
|
|
7001
|
-
vue.createVNode(_component_nut_icon, {
|
|
7002
|
-
name:
|
|
7003
|
-
class:
|
|
7004
|
-
size: _ctx.buttonSize
|
|
7005
|
-
|
|
7006
|
-
}, 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"])
|
|
7007
7161
|
], 6);
|
|
7008
7162
|
}
|
|
7009
7163
|
var InputNumber = /* @__PURE__ */ _export_sfc(_sfc_main$1b, [["render", _sfc_render$17]]);
|
|
@@ -7306,10 +7460,13 @@
|
|
|
7306
7460
|
return;
|
|
7307
7461
|
}
|
|
7308
7462
|
};
|
|
7309
|
-
vue.watch(
|
|
7310
|
-
|
|
7311
|
-
|
|
7312
|
-
|
|
7463
|
+
vue.watch(
|
|
7464
|
+
() => props.modelValue,
|
|
7465
|
+
() => {
|
|
7466
|
+
updateValue(getModelValue());
|
|
7467
|
+
resetValidation();
|
|
7468
|
+
}
|
|
7469
|
+
);
|
|
7313
7470
|
vue.onMounted(() => {
|
|
7314
7471
|
updateValue(getModelValue(), props.formatTrigger);
|
|
7315
7472
|
});
|
|
@@ -7526,15 +7683,23 @@
|
|
|
7526
7683
|
};
|
|
7527
7684
|
const renderLabel = () => {
|
|
7528
7685
|
var _a;
|
|
7529
|
-
return vue.h(
|
|
7530
|
-
|
|
7531
|
-
|
|
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
|
+
);
|
|
7532
7693
|
};
|
|
7533
7694
|
const renderButton = () => {
|
|
7534
7695
|
var _a;
|
|
7535
|
-
return vue.h(
|
|
7536
|
-
|
|
7537
|
-
|
|
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
|
+
);
|
|
7538
7703
|
};
|
|
7539
7704
|
const handleClick = () => {
|
|
7540
7705
|
if (isCurValue.value || props.disabled)
|
|
@@ -7543,12 +7708,16 @@
|
|
|
7543
7708
|
};
|
|
7544
7709
|
let reverseState = position.value === "left";
|
|
7545
7710
|
return () => {
|
|
7546
|
-
return vue.h(
|
|
7547
|
-
|
|
7548
|
-
|
|
7549
|
-
|
|
7550
|
-
|
|
7551
|
-
|
|
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
|
+
);
|
|
7552
7721
|
};
|
|
7553
7722
|
}
|
|
7554
7723
|
});
|
|
@@ -7576,12 +7745,19 @@
|
|
|
7576
7745
|
position: props.textPosition,
|
|
7577
7746
|
updateValue
|
|
7578
7747
|
});
|
|
7579
|
-
vue.watch(
|
|
7748
|
+
vue.watch(
|
|
7749
|
+
() => props.modelValue,
|
|
7750
|
+
(value) => emit("change", value)
|
|
7751
|
+
);
|
|
7580
7752
|
return () => {
|
|
7581
7753
|
var _a;
|
|
7582
|
-
return vue.h(
|
|
7583
|
-
|
|
7584
|
-
|
|
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
|
+
);
|
|
7585
7761
|
};
|
|
7586
7762
|
}
|
|
7587
7763
|
});
|
|
@@ -7827,16 +8003,23 @@
|
|
|
7827
8003
|
function focus() {
|
|
7828
8004
|
realpwd.value.focus();
|
|
7829
8005
|
}
|
|
7830
|
-
vue.watch(
|
|
7831
|
-
|
|
7832
|
-
|
|
7833
|
-
|
|
7834
|
-
|
|
7835
|
-
|
|
7836
|
-
|
|
7837
|
-
|
|
7838
|
-
|
|
7839
|
-
|
|
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
|
+
);
|
|
7840
8023
|
function changeValue(e) {
|
|
7841
8024
|
const input = e.target;
|
|
7842
8025
|
let val = input.value;
|
|
@@ -8076,11 +8259,14 @@
|
|
|
8076
8259
|
textarea.style.height = height + "px";
|
|
8077
8260
|
}
|
|
8078
8261
|
};
|
|
8079
|
-
vue.watch(
|
|
8080
|
-
|
|
8081
|
-
|
|
8262
|
+
vue.watch(
|
|
8263
|
+
() => props.modelValue,
|
|
8264
|
+
() => {
|
|
8265
|
+
if (props.autosize) {
|
|
8266
|
+
vue.nextTick(getContentHeight);
|
|
8267
|
+
}
|
|
8082
8268
|
}
|
|
8083
|
-
|
|
8269
|
+
);
|
|
8084
8270
|
const emitChange = (value, event) => {
|
|
8085
8271
|
if (props.maxLength && value.length > Number(props.maxLength)) {
|
|
8086
8272
|
value = value.substring(0, Number(props.maxLength));
|
|
@@ -8170,10 +8356,14 @@
|
|
|
8170
8356
|
const xhr = new XMLHttpRequest();
|
|
8171
8357
|
xhr.timeout = options.timeout;
|
|
8172
8358
|
if (xhr.upload) {
|
|
8173
|
-
xhr.upload.addEventListener(
|
|
8174
|
-
|
|
8175
|
-
(
|
|
8176
|
-
|
|
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
|
+
);
|
|
8177
8367
|
xhr.onreadystatechange = () => {
|
|
8178
8368
|
var _a2, _b;
|
|
8179
8369
|
if (xhr.readyState === 4) {
|
|
@@ -8366,9 +8556,11 @@
|
|
|
8366
8556
|
if (props.autoUpload) {
|
|
8367
8557
|
task.upload();
|
|
8368
8558
|
} else {
|
|
8369
|
-
uploadQueue.push(
|
|
8370
|
-
resolve
|
|
8371
|
-
|
|
8559
|
+
uploadQueue.push(
|
|
8560
|
+
new Promise((resolve, reject) => {
|
|
8561
|
+
resolve(task);
|
|
8562
|
+
})
|
|
8563
|
+
);
|
|
8372
8564
|
}
|
|
8373
8565
|
};
|
|
8374
8566
|
const clearUploadQueue = (index = -1) => {
|
|
@@ -8735,7 +8927,11 @@
|
|
|
8735
8927
|
keys.push({ id: 0, type: "number" }, { id: customKeys[0], type: "custom" });
|
|
8736
8928
|
}
|
|
8737
8929
|
} else if (customKeys.length === 2) {
|
|
8738
|
-
keys.push(
|
|
8930
|
+
keys.push(
|
|
8931
|
+
{ id: customKeys[0], type: "custom" },
|
|
8932
|
+
{ id: 0, type: "number" },
|
|
8933
|
+
{ id: customKeys[1], type: "custom" }
|
|
8934
|
+
);
|
|
8739
8935
|
}
|
|
8740
8936
|
return keys;
|
|
8741
8937
|
}
|
|
@@ -8745,9 +8941,12 @@
|
|
|
8745
8941
|
}
|
|
8746
8942
|
return defaultKey();
|
|
8747
8943
|
});
|
|
8748
|
-
vue.watch(
|
|
8749
|
-
|
|
8750
|
-
|
|
8944
|
+
vue.watch(
|
|
8945
|
+
() => props.visible,
|
|
8946
|
+
(value) => {
|
|
8947
|
+
show.value = value;
|
|
8948
|
+
}
|
|
8949
|
+
);
|
|
8751
8950
|
function onTouchstart(item, event) {
|
|
8752
8951
|
event.stopPropagation();
|
|
8753
8952
|
clickKeyIndex.value = item.id;
|
|
@@ -8922,9 +9121,13 @@
|
|
|
8922
9121
|
const reset = () => {
|
|
8923
9122
|
clearErrorTips();
|
|
8924
9123
|
};
|
|
8925
|
-
vue.watch(
|
|
8926
|
-
|
|
8927
|
-
|
|
9124
|
+
vue.watch(
|
|
9125
|
+
() => props.modelValue,
|
|
9126
|
+
(value) => {
|
|
9127
|
+
clearErrorTips(value);
|
|
9128
|
+
},
|
|
9129
|
+
{ immediate: true }
|
|
9130
|
+
);
|
|
8928
9131
|
const findFormItem = (vnodes) => {
|
|
8929
9132
|
let task = [];
|
|
8930
9133
|
vnodes.forEach((vnode, index) => {
|
|
@@ -9305,16 +9508,23 @@
|
|
|
9305
9508
|
type && setChooseValue();
|
|
9306
9509
|
setMove(-move);
|
|
9307
9510
|
};
|
|
9308
|
-
vue.watch(
|
|
9309
|
-
|
|
9310
|
-
|
|
9311
|
-
|
|
9312
|
-
|
|
9313
|
-
|
|
9314
|
-
|
|
9315
|
-
|
|
9316
|
-
|
|
9317
|
-
|
|
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
|
+
);
|
|
9318
9528
|
vue.onMounted(() => {
|
|
9319
9529
|
modifyStatus(true);
|
|
9320
9530
|
});
|
|
@@ -9509,7 +9719,9 @@
|
|
|
9509
9719
|
_defaultIndex = dataIndex;
|
|
9510
9720
|
} else if (dataType.value === "multipleColumns") {
|
|
9511
9721
|
defaultIndexList[columnIndex] = dataIndex;
|
|
9512
|
-
const val = defaultIndexList.map(
|
|
9722
|
+
const val = defaultIndexList.map(
|
|
9723
|
+
(res, i) => vue.toRaw(state.formattedColumns)[i].values[res]
|
|
9724
|
+
);
|
|
9513
9725
|
emit("change", val, columnIndex, dataIndex);
|
|
9514
9726
|
}
|
|
9515
9727
|
};
|
|
@@ -9521,7 +9733,9 @@
|
|
|
9521
9733
|
for (let i = 0; i < defaultIndexList.length; i++) {
|
|
9522
9734
|
state.formattedColumns[i].defaultIndex = defaultIndexList[i];
|
|
9523
9735
|
}
|
|
9524
|
-
const checkedArr = vue.toRaw(state.formattedColumns).map(
|
|
9736
|
+
const checkedArr = vue.toRaw(state.formattedColumns).map(
|
|
9737
|
+
(res) => res.values && res.values[res.defaultIndex]
|
|
9738
|
+
);
|
|
9525
9739
|
emit("confirm", checkedArr);
|
|
9526
9740
|
} else if (dataType.value === "cascade") {
|
|
9527
9741
|
emit("confirm", getCascadeData(vue.toRaw(state.formattedColumns), state.defaultIndex));
|
|
@@ -9536,12 +9750,18 @@
|
|
|
9536
9750
|
if (props.visible)
|
|
9537
9751
|
state.show = false;
|
|
9538
9752
|
});
|
|
9539
|
-
vue.watch(
|
|
9540
|
-
|
|
9541
|
-
|
|
9542
|
-
|
|
9543
|
-
|
|
9544
|
-
|
|
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
|
+
);
|
|
9545
9765
|
return {
|
|
9546
9766
|
classes,
|
|
9547
9767
|
...vue.toRefs(state),
|
|
@@ -10362,12 +10582,15 @@
|
|
|
10362
10582
|
});
|
|
10363
10583
|
}
|
|
10364
10584
|
});
|
|
10365
|
-
vue.watch(
|
|
10366
|
-
|
|
10367
|
-
|
|
10368
|
-
|
|
10585
|
+
vue.watch(
|
|
10586
|
+
() => props.visible,
|
|
10587
|
+
(value) => {
|
|
10588
|
+
showPopup.value = value;
|
|
10589
|
+
if (value) {
|
|
10590
|
+
emit("opened");
|
|
10591
|
+
}
|
|
10369
10592
|
}
|
|
10370
|
-
|
|
10593
|
+
);
|
|
10371
10594
|
const classes = vue.computed(() => {
|
|
10372
10595
|
return {
|
|
10373
10596
|
[componentName$P]: true,
|
|
@@ -10881,11 +11104,14 @@
|
|
|
10881
11104
|
if (props.duration) {
|
|
10882
11105
|
show();
|
|
10883
11106
|
}
|
|
10884
|
-
vue.watch(
|
|
10885
|
-
|
|
10886
|
-
|
|
11107
|
+
vue.watch(
|
|
11108
|
+
() => props.duration,
|
|
11109
|
+
(val) => {
|
|
11110
|
+
if (val) {
|
|
11111
|
+
show();
|
|
11112
|
+
}
|
|
10887
11113
|
}
|
|
10888
|
-
|
|
11114
|
+
);
|
|
10889
11115
|
const onAfterLeave = () => {
|
|
10890
11116
|
clearTimer();
|
|
10891
11117
|
props.unmount && props.unmount(props.id);
|
|
@@ -11448,13 +11674,16 @@
|
|
|
11448
11674
|
emit("update:modelValue", value);
|
|
11449
11675
|
emit("change", value, event);
|
|
11450
11676
|
};
|
|
11451
|
-
vue.watch(
|
|
11452
|
-
|
|
11453
|
-
|
|
11454
|
-
|
|
11455
|
-
|
|
11677
|
+
vue.watch(
|
|
11678
|
+
() => props.modelValue,
|
|
11679
|
+
(v) => {
|
|
11680
|
+
if (updateType == "click") {
|
|
11681
|
+
updateType = "";
|
|
11682
|
+
} else {
|
|
11683
|
+
emit("change", v);
|
|
11684
|
+
}
|
|
11456
11685
|
}
|
|
11457
|
-
|
|
11686
|
+
);
|
|
11458
11687
|
return {
|
|
11459
11688
|
classes,
|
|
11460
11689
|
style,
|
|
@@ -11587,11 +11816,14 @@
|
|
|
11587
11816
|
if (props.duration) {
|
|
11588
11817
|
show();
|
|
11589
11818
|
}
|
|
11590
|
-
vue.watch(
|
|
11591
|
-
|
|
11592
|
-
|
|
11819
|
+
vue.watch(
|
|
11820
|
+
() => props.duration,
|
|
11821
|
+
(val) => {
|
|
11822
|
+
if (val) {
|
|
11823
|
+
show();
|
|
11824
|
+
}
|
|
11593
11825
|
}
|
|
11594
|
-
|
|
11826
|
+
);
|
|
11595
11827
|
const hasIcon = vue.computed(() => {
|
|
11596
11828
|
if (props.type !== "text") {
|
|
11597
11829
|
return true;
|
|
@@ -11928,9 +12160,12 @@
|
|
|
11928
12160
|
result += ("0" + seconds.toString()).slice(-2);
|
|
11929
12161
|
return result;
|
|
11930
12162
|
};
|
|
11931
|
-
vue.watch(
|
|
11932
|
-
|
|
11933
|
-
|
|
12163
|
+
vue.watch(
|
|
12164
|
+
() => audioData.currentTime,
|
|
12165
|
+
(value) => {
|
|
12166
|
+
handle(value);
|
|
12167
|
+
}
|
|
12168
|
+
);
|
|
11934
12169
|
vue.provide("audioParent", {
|
|
11935
12170
|
children: [],
|
|
11936
12171
|
props,
|
|
@@ -12406,9 +12641,12 @@
|
|
|
12406
12641
|
}
|
|
12407
12642
|
state.startOffset = scrollTop - scrollTop % props.height;
|
|
12408
12643
|
};
|
|
12409
|
-
vue.watch(
|
|
12410
|
-
|
|
12411
|
-
|
|
12644
|
+
vue.watch(
|
|
12645
|
+
() => props.listData,
|
|
12646
|
+
() => {
|
|
12647
|
+
state.list = props.listData.slice();
|
|
12648
|
+
}
|
|
12649
|
+
);
|
|
12412
12650
|
return {
|
|
12413
12651
|
...vue.toRefs(state),
|
|
12414
12652
|
list,
|
|
@@ -12880,12 +13118,18 @@
|
|
|
12880
13118
|
}
|
|
12881
13119
|
return styles;
|
|
12882
13120
|
});
|
|
12883
|
-
vue.watch(
|
|
12884
|
-
|
|
12885
|
-
|
|
12886
|
-
|
|
12887
|
-
|
|
12888
|
-
|
|
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
|
+
);
|
|
12889
13133
|
const initScrollWrap = (value) => {
|
|
12890
13134
|
if (state.showNoticeBar == false) {
|
|
12891
13135
|
return;
|
|
@@ -13247,16 +13491,23 @@
|
|
|
13247
13491
|
const isDisabled = vue.computed(() => {
|
|
13248
13492
|
return props.options.disabled;
|
|
13249
13493
|
});
|
|
13250
|
-
vue.watch(
|
|
13251
|
-
|
|
13252
|
-
|
|
13253
|
-
|
|
13254
|
-
|
|
13494
|
+
vue.watch(
|
|
13495
|
+
() => props.source,
|
|
13496
|
+
(newValue) => {
|
|
13497
|
+
if (newValue.src) {
|
|
13498
|
+
vue.nextTick(() => {
|
|
13499
|
+
state.videoElm.load();
|
|
13500
|
+
});
|
|
13501
|
+
}
|
|
13255
13502
|
}
|
|
13256
|
-
|
|
13257
|
-
vue.watch(
|
|
13258
|
-
|
|
13259
|
-
|
|
13503
|
+
);
|
|
13504
|
+
vue.watch(
|
|
13505
|
+
() => props.options,
|
|
13506
|
+
(newValue) => {
|
|
13507
|
+
state.state.isMuted = newValue ? newValue.muted : false;
|
|
13508
|
+
},
|
|
13509
|
+
{ immediate: true }
|
|
13510
|
+
);
|
|
13260
13511
|
const init = () => {
|
|
13261
13512
|
state.videoElm = root.value;
|
|
13262
13513
|
if (props.options.autoplay) {
|
|
@@ -13550,9 +13801,13 @@
|
|
|
13550
13801
|
});
|
|
13551
13802
|
return () => {
|
|
13552
13803
|
var _a;
|
|
13553
|
-
return vue.h(
|
|
13554
|
-
|
|
13555
|
-
|
|
13804
|
+
return vue.h(
|
|
13805
|
+
"view",
|
|
13806
|
+
{
|
|
13807
|
+
class: classes.value
|
|
13808
|
+
},
|
|
13809
|
+
(_a = slots.default) == null ? void 0 : _a.call(slots)
|
|
13810
|
+
);
|
|
13556
13811
|
};
|
|
13557
13812
|
}
|
|
13558
13813
|
});
|
|
@@ -14050,19 +14305,28 @@
|
|
|
14050
14305
|
vue.onBeforeUnmount(() => {
|
|
14051
14306
|
stopAutoPlay();
|
|
14052
14307
|
});
|
|
14053
|
-
vue.watch(
|
|
14054
|
-
|
|
14055
|
-
|
|
14056
|
-
|
|
14057
|
-
|
|
14058
|
-
|
|
14059
|
-
|
|
14060
|
-
|
|
14061
|
-
|
|
14062
|
-
|
|
14063
|
-
|
|
14064
|
-
|
|
14065
|
-
|
|
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
|
+
);
|
|
14066
14330
|
return {
|
|
14067
14331
|
state,
|
|
14068
14332
|
classes,
|
|
@@ -14495,11 +14759,14 @@
|
|
|
14495
14759
|
};
|
|
14496
14760
|
const clamp = (num, min, max) => Math.min(Math.max(num, min), max);
|
|
14497
14761
|
vue.watch(() => props.initNo, resetScale);
|
|
14498
|
-
vue.watch(
|
|
14499
|
-
|
|
14500
|
-
|
|
14762
|
+
vue.watch(
|
|
14763
|
+
() => props.show,
|
|
14764
|
+
(value) => {
|
|
14765
|
+
if (!value) {
|
|
14766
|
+
resetScale();
|
|
14767
|
+
}
|
|
14501
14768
|
}
|
|
14502
|
-
|
|
14769
|
+
);
|
|
14503
14770
|
return {
|
|
14504
14771
|
...vue.toRefs(state),
|
|
14505
14772
|
onTouchStart,
|
|
@@ -14675,10 +14942,13 @@
|
|
|
14675
14942
|
state.rootWidth = swipeRef.value.offsetWidth;
|
|
14676
14943
|
}, 100);
|
|
14677
14944
|
};
|
|
14678
|
-
vue.watch(
|
|
14679
|
-
|
|
14680
|
-
|
|
14681
|
-
|
|
14945
|
+
vue.watch(
|
|
14946
|
+
() => props.show,
|
|
14947
|
+
(val) => {
|
|
14948
|
+
state.showPop = val;
|
|
14949
|
+
init();
|
|
14950
|
+
}
|
|
14951
|
+
);
|
|
14682
14952
|
vue.onMounted(() => {
|
|
14683
14953
|
state.active = props.initNo;
|
|
14684
14954
|
state.showPop = props.show;
|
|
@@ -14928,23 +15198,35 @@
|
|
|
14928
15198
|
typeMachine: ""
|
|
14929
15199
|
});
|
|
14930
15200
|
const { startFlag, scrolling, customBgImg, type } = vue.reactive(props);
|
|
14931
|
-
vue.watch(
|
|
14932
|
-
|
|
14933
|
-
|
|
14934
|
-
|
|
14935
|
-
|
|
14936
|
-
|
|
14937
|
-
|
|
14938
|
-
vue.watch(
|
|
14939
|
-
|
|
14940
|
-
|
|
14941
|
-
|
|
14942
|
-
|
|
14943
|
-
|
|
14944
|
-
|
|
14945
|
-
|
|
14946
|
-
|
|
14947
|
-
|
|
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
|
+
);
|
|
14948
15230
|
const valChange = () => {
|
|
14949
15231
|
if (data.valFlag) {
|
|
14950
15232
|
return false;
|
|
@@ -15191,7 +15473,11 @@
|
|
|
15191
15473
|
if (data.prizeLevelTrun < 0) {
|
|
15192
15474
|
newLocation += props.numHeight * data.notPrize[i];
|
|
15193
15475
|
}
|
|
15194
|
-
scrollTime(
|
|
15476
|
+
scrollTime(
|
|
15477
|
+
i,
|
|
15478
|
+
newLocation,
|
|
15479
|
+
local
|
|
15480
|
+
);
|
|
15195
15481
|
}, 500 * i);
|
|
15196
15482
|
}
|
|
15197
15483
|
};
|
|
@@ -15543,31 +15829,43 @@
|
|
|
15543
15829
|
state.restTime = props.time;
|
|
15544
15830
|
}
|
|
15545
15831
|
});
|
|
15546
|
-
vue.watch(
|
|
15547
|
-
|
|
15548
|
-
|
|
15549
|
-
|
|
15550
|
-
|
|
15551
|
-
|
|
15552
|
-
|
|
15553
|
-
|
|
15554
|
-
|
|
15555
|
-
|
|
15556
|
-
|
|
15557
|
-
if (!
|
|
15558
|
-
state.counting
|
|
15559
|
-
|
|
15560
|
-
|
|
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);
|
|
15561
15854
|
}
|
|
15562
|
-
emit("on-restart", state.restTime);
|
|
15563
15855
|
}
|
|
15564
|
-
|
|
15565
|
-
vue.watch(
|
|
15566
|
-
|
|
15567
|
-
|
|
15568
|
-
|
|
15569
|
-
|
|
15570
|
-
|
|
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
|
+
);
|
|
15571
15869
|
return {
|
|
15572
15870
|
...vue.toRefs(props),
|
|
15573
15871
|
slots,
|
|
@@ -15789,32 +16087,47 @@
|
|
|
15789
16087
|
return node instanceof OwnElement || node instanceof ShadowRoot;
|
|
15790
16088
|
}
|
|
15791
16089
|
var round = Math.round;
|
|
15792
|
-
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) {
|
|
15793
16103
|
if (includeScale === void 0) {
|
|
15794
16104
|
includeScale = false;
|
|
15795
16105
|
}
|
|
15796
|
-
|
|
16106
|
+
if (isFixedStrategy === void 0) {
|
|
16107
|
+
isFixedStrategy = false;
|
|
16108
|
+
}
|
|
16109
|
+
var clientRect = element.getBoundingClientRect();
|
|
15797
16110
|
var scaleX = 1;
|
|
15798
16111
|
var scaleY = 1;
|
|
15799
|
-
if (isHTMLElement(element)
|
|
15800
|
-
|
|
15801
|
-
|
|
15802
|
-
if (offsetWidth > 0) {
|
|
15803
|
-
scaleX = round(rect.width) / offsetWidth || 1;
|
|
15804
|
-
}
|
|
15805
|
-
if (offsetHeight > 0) {
|
|
15806
|
-
scaleY = round(rect.height) / offsetHeight || 1;
|
|
15807
|
-
}
|
|
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;
|
|
15808
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;
|
|
15809
16122
|
return {
|
|
15810
|
-
width
|
|
15811
|
-
height
|
|
15812
|
-
top:
|
|
15813
|
-
right:
|
|
15814
|
-
bottom:
|
|
15815
|
-
left:
|
|
15816
|
-
x
|
|
15817
|
-
y
|
|
16123
|
+
width,
|
|
16124
|
+
height,
|
|
16125
|
+
top: y,
|
|
16126
|
+
right: x + width,
|
|
16127
|
+
bottom: y + height,
|
|
16128
|
+
left: x,
|
|
16129
|
+
x,
|
|
16130
|
+
y
|
|
15818
16131
|
};
|
|
15819
16132
|
}
|
|
15820
16133
|
function getWindowScroll(node) {
|
|
@@ -15868,7 +16181,7 @@
|
|
|
15868
16181
|
var isOffsetParentAnElement = isHTMLElement(offsetParent);
|
|
15869
16182
|
var offsetParentIsScaled = isHTMLElement(offsetParent) && isElementScaled(offsetParent);
|
|
15870
16183
|
var documentElement = getDocumentElement(offsetParent);
|
|
15871
|
-
var rect = getBoundingClientRect(elementOrVirtualElement, offsetParentIsScaled);
|
|
16184
|
+
var rect = getBoundingClientRect(elementOrVirtualElement, offsetParentIsScaled, isFixed);
|
|
15872
16185
|
var scroll = {
|
|
15873
16186
|
scrollLeft: 0,
|
|
15874
16187
|
scrollTop: 0
|
|
@@ -15950,8 +16263,8 @@
|
|
|
15950
16263
|
return element.offsetParent;
|
|
15951
16264
|
}
|
|
15952
16265
|
function getContainingBlock(element) {
|
|
15953
|
-
var isFirefox =
|
|
15954
|
-
var isIE =
|
|
16266
|
+
var isFirefox = /firefox/i.test(getUAString());
|
|
16267
|
+
var isIE = /Trident/i.test(getUAString());
|
|
15955
16268
|
if (isIE && isHTMLElement(element)) {
|
|
15956
16269
|
var elementCss = getComputedStyle(element);
|
|
15957
16270
|
if (elementCss.position === "fixed") {
|
|
@@ -16639,13 +16952,19 @@
|
|
|
16639
16952
|
vue.onUnmounted(() => {
|
|
16640
16953
|
window.removeEventListener("click", clickAway, true);
|
|
16641
16954
|
});
|
|
16642
|
-
vue.watch(
|
|
16643
|
-
|
|
16644
|
-
|
|
16645
|
-
|
|
16646
|
-
|
|
16647
|
-
|
|
16648
|
-
|
|
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
|
+
);
|
|
16649
16968
|
const update = (val) => {
|
|
16650
16969
|
emit("update", val);
|
|
16651
16970
|
emit("update:visible", val);
|
|
@@ -16909,25 +17228,28 @@
|
|
|
16909
17228
|
setup(props, { emit, slots }) {
|
|
16910
17229
|
const collapseDom = vue.ref(null);
|
|
16911
17230
|
const collapseChldren = vue.ref([]);
|
|
16912
|
-
vue.watch(
|
|
16913
|
-
|
|
16914
|
-
|
|
16915
|
-
|
|
16916
|
-
|
|
16917
|
-
|
|
16918
|
-
|
|
16919
|
-
|
|
16920
|
-
|
|
16921
|
-
|
|
16922
|
-
|
|
16923
|
-
|
|
16924
|
-
|
|
16925
|
-
|
|
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
|
+
}
|
|
16926
17248
|
}
|
|
16927
|
-
|
|
16928
|
-
|
|
16929
|
-
}
|
|
16930
|
-
|
|
17249
|
+
item.animation();
|
|
17250
|
+
});
|
|
17251
|
+
}
|
|
17252
|
+
);
|
|
16931
17253
|
vue.onMounted(() => {
|
|
16932
17254
|
collapseChldren.value = vue.getCurrentInstance().provides.collapseParent.children || [];
|
|
16933
17255
|
});
|
|
@@ -17093,14 +17415,17 @@
|
|
|
17093
17415
|
proxyData.openExpanded = true;
|
|
17094
17416
|
}
|
|
17095
17417
|
});
|
|
17096
|
-
vue.watch(
|
|
17097
|
-
|
|
17098
|
-
|
|
17099
|
-
|
|
17100
|
-
|
|
17101
|
-
|
|
17102
|
-
|
|
17103
|
-
|
|
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
|
+
);
|
|
17104
17429
|
const init = () => {
|
|
17105
17430
|
const { name } = props;
|
|
17106
17431
|
const active = parent && parent.props.active;
|
|
@@ -17302,9 +17627,12 @@
|
|
|
17302
17627
|
return [columns.key, columns.render];
|
|
17303
17628
|
});
|
|
17304
17629
|
};
|
|
17305
|
-
vue.watch(
|
|
17306
|
-
|
|
17307
|
-
|
|
17630
|
+
vue.watch(
|
|
17631
|
+
() => props.data,
|
|
17632
|
+
(val) => {
|
|
17633
|
+
state.curData = val.slice();
|
|
17634
|
+
}
|
|
17635
|
+
);
|
|
17308
17636
|
return {
|
|
17309
17637
|
...vue.toRefs(state),
|
|
17310
17638
|
classes,
|
|
@@ -17507,14 +17835,17 @@
|
|
|
17507
17835
|
[prefixCls]: true
|
|
17508
17836
|
};
|
|
17509
17837
|
});
|
|
17510
|
-
vue.watch(
|
|
17511
|
-
|
|
17512
|
-
|
|
17513
|
-
|
|
17838
|
+
vue.watch(
|
|
17839
|
+
() => props.content,
|
|
17840
|
+
(newV, oldVal) => {
|
|
17841
|
+
if (newV != oldVal) {
|
|
17842
|
+
if (container) {
|
|
17843
|
+
document.body.appendChild(container);
|
|
17844
|
+
}
|
|
17845
|
+
createContainer();
|
|
17514
17846
|
}
|
|
17515
|
-
createContainer();
|
|
17516
17847
|
}
|
|
17517
|
-
|
|
17848
|
+
);
|
|
17518
17849
|
vue.onMounted(() => {
|
|
17519
17850
|
createContainer();
|
|
17520
17851
|
});
|
|
@@ -17539,7 +17870,9 @@
|
|
|
17539
17870
|
container.style.webkitLineClamp = "unset";
|
|
17540
17871
|
container.style.display = "block";
|
|
17541
17872
|
const lineHeight = pxToNumber(originStyle.lineHeight);
|
|
17542
|
-
maxHeight = Math.floor(
|
|
17873
|
+
maxHeight = Math.floor(
|
|
17874
|
+
lineHeight * (Number(props.rows) + 0.5) + pxToNumber(originStyle.paddingTop) + pxToNumber(originStyle.paddingBottom)
|
|
17875
|
+
);
|
|
17543
17876
|
container.innerText = props.content;
|
|
17544
17877
|
document.body.appendChild(container);
|
|
17545
17878
|
calcEllipse();
|
|
@@ -17772,7 +18105,13 @@
|
|
|
17772
18105
|
img.referrerPolicy = "no-referrer";
|
|
17773
18106
|
img.src = image;
|
|
17774
18107
|
img.onload = () => {
|
|
17775
|
-
ctx.drawImage(
|
|
18108
|
+
ctx.drawImage(
|
|
18109
|
+
img,
|
|
18110
|
+
-imageWidth * ratio / 2,
|
|
18111
|
+
-imageHeight * ratio / 2,
|
|
18112
|
+
imageWidth * ratio,
|
|
18113
|
+
imageHeight * ratio
|
|
18114
|
+
);
|
|
17776
18115
|
ctx.restore();
|
|
17777
18116
|
state.base64Url = canvas.toDataURL();
|
|
17778
18117
|
};
|
|
@@ -17793,25 +18132,28 @@
|
|
|
17793
18132
|
}
|
|
17794
18133
|
};
|
|
17795
18134
|
init();
|
|
17796
|
-
vue.watch(
|
|
17797
|
-
|
|
17798
|
-
|
|
17799
|
-
|
|
17800
|
-
|
|
17801
|
-
|
|
17802
|
-
|
|
17803
|
-
|
|
17804
|
-
|
|
17805
|
-
|
|
17806
|
-
|
|
17807
|
-
|
|
17808
|
-
|
|
17809
|
-
|
|
17810
|
-
|
|
17811
|
-
|
|
17812
|
-
|
|
17813
|
-
|
|
17814
|
-
|
|
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
|
+
);
|
|
17815
18157
|
const classes = vue.computed(() => {
|
|
17816
18158
|
const prefixCls = componentName$n;
|
|
17817
18159
|
return {
|
|
@@ -18082,10 +18424,13 @@
|
|
|
18082
18424
|
lineAnimation();
|
|
18083
18425
|
};
|
|
18084
18426
|
const close = () => {
|
|
18085
|
-
const resCopy = Object.assign(
|
|
18086
|
-
|
|
18087
|
-
|
|
18088
|
-
|
|
18427
|
+
const resCopy = Object.assign(
|
|
18428
|
+
{
|
|
18429
|
+
addressIdStr: "",
|
|
18430
|
+
addressStr: ""
|
|
18431
|
+
},
|
|
18432
|
+
selectedRegion
|
|
18433
|
+
);
|
|
18089
18434
|
const res = {
|
|
18090
18435
|
data: {},
|
|
18091
18436
|
type: privateType.value
|
|
@@ -18128,35 +18473,56 @@
|
|
|
18128
18473
|
const handleElevatorItem = (key, item) => {
|
|
18129
18474
|
nextAreaList(item);
|
|
18130
18475
|
};
|
|
18131
|
-
vue.watch(
|
|
18132
|
-
|
|
18133
|
-
|
|
18134
|
-
|
|
18135
|
-
|
|
18136
|
-
|
|
18137
|
-
|
|
18138
|
-
|
|
18139
|
-
|
|
18140
|
-
|
|
18141
|
-
|
|
18142
|
-
|
|
18143
|
-
|
|
18144
|
-
vue.watch(() => props.city, (value) => {
|
|
18145
|
-
regionList.city = isCustom2.value ? transformData(value) : value;
|
|
18146
|
-
});
|
|
18147
|
-
vue.watch(() => props.country, (value) => {
|
|
18148
|
-
regionList.country = isCustom2.value ? transformData(value) : value;
|
|
18149
|
-
});
|
|
18150
|
-
vue.watch(() => props.town, (value) => {
|
|
18151
|
-
regionList.town = isCustom2.value ? transformData(value) : value;
|
|
18152
|
-
});
|
|
18153
|
-
vue.watch(() => props.existAddress, (value) => {
|
|
18154
|
-
value.forEach((item, index) => {
|
|
18155
|
-
if (item.selectedAddress) {
|
|
18156
|
-
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();
|
|
18157
18489
|
}
|
|
18158
|
-
}
|
|
18159
|
-
|
|
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
|
+
);
|
|
18160
18526
|
return {
|
|
18161
18527
|
showPopup,
|
|
18162
18528
|
privateType,
|
|
@@ -18429,9 +18795,12 @@
|
|
|
18429
18795
|
clearInterval(timer);
|
|
18430
18796
|
timer = 0;
|
|
18431
18797
|
});
|
|
18432
|
-
vue.watch(
|
|
18433
|
-
|
|
18434
|
-
|
|
18798
|
+
vue.watch(
|
|
18799
|
+
() => props.danmu,
|
|
18800
|
+
(newValue, oldVlaue) => {
|
|
18801
|
+
danmuList.value = [...newValue];
|
|
18802
|
+
}
|
|
18803
|
+
);
|
|
18435
18804
|
const add = (word) => {
|
|
18436
18805
|
const _index = index.value % danmuList.value.length;
|
|
18437
18806
|
if (!props.loop && index.value === danmuList.value.length) {
|
|
@@ -18935,9 +19304,13 @@
|
|
|
18935
19304
|
emits: ["selectSku"],
|
|
18936
19305
|
setup(props, { emit }) {
|
|
18937
19306
|
const skuInfo = vue.ref([]);
|
|
18938
|
-
vue.watch(
|
|
18939
|
-
|
|
18940
|
-
|
|
19307
|
+
vue.watch(
|
|
19308
|
+
() => props.sku,
|
|
19309
|
+
(value) => {
|
|
19310
|
+
skuInfo.value = [].slice.call(value);
|
|
19311
|
+
},
|
|
19312
|
+
{ deep: true }
|
|
19313
|
+
);
|
|
18941
19314
|
vue.onMounted(() => {
|
|
18942
19315
|
if (props.sku.length > 0) {
|
|
18943
19316
|
skuInfo.value = [].slice.call(props.sku);
|
|
@@ -19219,14 +19592,20 @@
|
|
|
19219
19592
|
setup(props, { emit, slots }) {
|
|
19220
19593
|
const showPopup = vue.ref(props.visible);
|
|
19221
19594
|
const goodsCount = vue.ref(props.stepperMin);
|
|
19222
|
-
vue.watch(
|
|
19223
|
-
|
|
19224
|
-
|
|
19225
|
-
|
|
19226
|
-
|
|
19227
|
-
|
|
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
|
+
}
|
|
19228
19607
|
}
|
|
19229
|
-
|
|
19608
|
+
);
|
|
19230
19609
|
vue.onMounted(() => {
|
|
19231
19610
|
});
|
|
19232
19611
|
const getSlots = (name) => slots[name];
|
|
@@ -19558,9 +19937,12 @@
|
|
|
19558
19937
|
stepValue.value = value;
|
|
19559
19938
|
emit("changeStep", stepValue.value, currentValue.value);
|
|
19560
19939
|
};
|
|
19561
|
-
vue.watch(
|
|
19562
|
-
|
|
19563
|
-
|
|
19940
|
+
vue.watch(
|
|
19941
|
+
() => props.modelValue,
|
|
19942
|
+
(value) => {
|
|
19943
|
+
money.value = value;
|
|
19944
|
+
}
|
|
19945
|
+
);
|
|
19564
19946
|
return {
|
|
19565
19947
|
handleClick,
|
|
19566
19948
|
changeStep,
|
|
@@ -20098,7 +20480,11 @@
|
|
|
20098
20480
|
});
|
|
20099
20481
|
}
|
|
20100
20482
|
};
|
|
20101
|
-
vue.watch(
|
|
20483
|
+
vue.watch(
|
|
20484
|
+
() => props.data,
|
|
20485
|
+
() => trowelData(),
|
|
20486
|
+
{ deep: true }
|
|
20487
|
+
);
|
|
20102
20488
|
const clickDelIcon = (event, item) => {
|
|
20103
20489
|
emit("handelDelIcon", event, item);
|
|
20104
20490
|
event.stopPropagation();
|
|
@@ -20518,14 +20904,18 @@
|
|
|
20518
20904
|
const isShowImage = vue.ref(false);
|
|
20519
20905
|
const initIndex = vue.ref(1);
|
|
20520
20906
|
const totalImages = vue.ref([]);
|
|
20521
|
-
vue.watch(
|
|
20522
|
-
|
|
20523
|
-
|
|
20524
|
-
|
|
20525
|
-
|
|
20526
|
-
|
|
20527
|
-
|
|
20528
|
-
|
|
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
|
+
);
|
|
20529
20919
|
vue.onMounted(() => {
|
|
20530
20920
|
if (props.videos.length > 0) {
|
|
20531
20921
|
props.videos.forEach((el) => {
|
|
@@ -20835,7 +21225,7 @@
|
|
|
20835
21225
|
}
|
|
20836
21226
|
});
|
|
20837
21227
|
}
|
|
20838
|
-
const version = "3.2.1";
|
|
21228
|
+
const version = "3.2.2-beta.1";
|
|
20839
21229
|
var nutui_vue_build = { install, version, Locale };
|
|
20840
21230
|
exports2.ActionSheet = ActionSheet;
|
|
20841
21231
|
exports2.Address = Address;
|