@nutui/nutui 3.2.2-beta.1 → 3.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +40 -0
- package/README.md +5 -3
- package/dist/nutui.es.js +1767 -1993
- package/dist/nutui.umd.js +1777 -2002
- package/dist/packages/_es/ActionSheet.js +22 -4
- package/dist/packages/_es/Address.js +57 -63
- package/dist/packages/_es/AddressList.js +3 -7
- package/dist/packages/_es/Animate.js +21 -2
- package/dist/packages/_es/Audio.js +25 -11
- package/dist/packages/_es/AudioOperate.js +21 -2
- package/dist/packages/_es/Avatar.js +20 -5
- package/dist/packages/_es/AvatarGroup.js +1 -1
- package/dist/packages/_es/BackTop.js +2 -2
- package/dist/packages/_es/Badge.js +1 -1
- package/dist/packages/_es/Barrage.js +4 -7
- package/dist/packages/_es/Button.js +1 -1
- package/dist/packages/_es/Calendar.js +1 -1
- package/dist/packages/_es/CalendarItem.js +1 -1
- package/dist/packages/_es/Card.js +1 -1
- package/dist/packages/_es/Cascader.js +65 -51
- 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 +17 -31
- package/dist/packages/_es/CheckboxGroup.js +7 -14
- package/dist/packages/_es/CircleProgress.js +1 -1
- package/dist/packages/_es/Col.js +1 -1
- package/dist/packages/_es/Collapse.js +19 -22
- package/dist/packages/_es/CollapseItem.js +32 -18
- package/dist/packages/_es/Comment.js +9 -13
- package/dist/packages/_es/ConfigProvider.js +4 -8
- package/dist/packages/_es/CountDown.js +46 -40
- package/dist/packages/_es/CountUp.js +40 -39
- package/dist/packages/_es/DatePicker.js +40 -27
- package/dist/packages/_es/Dialog.js +28 -13
- package/dist/packages/_es/Divider.js +24 -7
- package/dist/packages/_es/Drag.js +4 -4
- package/dist/packages/_es/Ecard.js +4 -7
- package/dist/packages/_es/Elevator.js +38 -25
- package/dist/packages/_es/Ellipsis.js +28 -14
- package/dist/packages/_es/Empty.js +1 -1
- package/dist/packages/_es/FixedNav.js +1 -1
- package/dist/packages/_es/Form.js +5 -9
- package/dist/packages/_es/FormItem.js +5 -4
- package/dist/packages/_es/Grid.js +1 -1
- package/dist/packages/_es/GridItem.js +1 -1
- package/dist/packages/_es/Icon.js +11 -15
- package/dist/packages/_es/Image.js +24 -8
- package/dist/packages/_es/ImagePreview.js +34 -22
- package/dist/packages/_es/Indicator.js +1 -1
- package/dist/packages/_es/InfiniteLoading.js +24 -5
- package/dist/packages/_es/Input.js +9 -13
- package/dist/packages/_es/InputNumber.js +1 -1
- package/dist/packages/_es/Invoice.js +156 -0
- package/dist/packages/_es/Layout.js +1 -1
- package/dist/packages/_es/List.js +25 -10
- package/dist/packages/_es/Menu.js +7 -13
- package/dist/packages/_es/MenuItem.js +22 -3
- package/dist/packages/_es/Navbar.js +2 -2
- package/dist/packages/_es/NoticeBar.js +28 -17
- package/dist/packages/_es/Notify.js +38 -20
- package/dist/packages/_es/NumberKeyboard.js +5 -12
- package/dist/packages/_es/OldPicker.js +46 -47
- package/dist/packages/_es/OverLay.js +23 -11
- package/dist/packages/_es/Pagination.js +1 -1
- package/dist/packages/_es/Picker.js +72 -64
- package/dist/packages/_es/Popover.js +52 -55
- package/dist/packages/_es/Popup.js +40 -35
- package/dist/packages/_es/Price.js +1 -1
- package/dist/packages/_es/Progress.js +1 -1
- package/dist/packages/_es/PullRefresh.js +20 -5
- package/dist/packages/_es/Radio.js +15 -27
- package/dist/packages/_es/RadioGroup.js +5 -12
- package/dist/packages/_es/Range.js +33 -20
- package/dist/packages/_es/Rate.js +24 -5
- package/dist/packages/_es/Row.js +1 -1
- package/dist/packages/_es/SearchBar.js +44 -11
- package/dist/packages/_es/ShortPassword.js +11 -18
- package/dist/packages/_es/SideNavBar.js +22 -4
- package/dist/packages/_es/SideNavBarItem.js +1 -1
- package/dist/packages/_es/Signature.js +21 -2
- package/dist/packages/_es/Skeleton.js +1 -1
- package/dist/packages/_es/Sku.js +32 -24
- package/dist/packages/_es/Step.js +22 -4
- package/dist/packages/_es/Steps.js +4 -8
- package/dist/packages/_es/Sticky.js +12 -23
- package/dist/packages/_es/SubSideNavBar.js +22 -4
- package/dist/packages/_es/Swipe.js +24 -5
- package/dist/packages/_es/Swiper.js +14 -23
- package/dist/packages/_es/SwiperItem.js +1 -1
- package/dist/packages/_es/Switch.js +7 -10
- package/dist/packages/_es/TabPane.js +1 -1
- package/dist/packages/_es/Tabbar.js +4 -7
- package/dist/packages/_es/TabbarItem.js +1 -1
- package/dist/packages/_es/Table.js +25 -10
- package/dist/packages/_es/Tabs.js +41 -25
- package/dist/packages/_es/Tag.js +1 -1
- package/dist/packages/_es/TextArea.js +5 -8
- package/dist/packages/_es/TimeDetail.js +24 -5
- package/dist/packages/_es/TimePannel.js +22 -4
- package/dist/packages/_es/TimeSelect.js +1 -1
- package/dist/packages/_es/Toast.js +47 -28
- package/dist/packages/_es/Uploader.js +27 -18
- package/dist/packages/_es/Video.js +33 -22
- package/dist/packages/_es/WaterMark.js +41 -31
- package/dist/packages/_es/common.js +11 -21
- package/dist/packages/_es/component.js +5 -5
- package/dist/packages/_es/index.js +1 -1
- package/dist/packages/_es/index2.js +1 -1
- package/dist/packages/_es/index3.js +1 -1
- package/dist/packages/_es/index4.js +1 -1
- package/dist/packages/_es/index5.js +31 -23
- 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/address/index.scss +17 -0
- package/dist/packages/invoice/index.scss +33 -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/menuitem/index.scss +3 -1
- package/dist/packages/navbar/index.scss +6 -8
- package/dist/packages/picker/index.scss +8 -0
- package/dist/packages/price/index.scss +1 -1
- package/dist/packages/searchbar/index.scss +2 -0
- package/dist/packages/textarea/index.scss +4 -1
- package/dist/packages/toast/index.scss +3 -0
- package/dist/smartips/attributes.json +36 -12
- package/dist/smartips/tags.json +20 -10
- package/dist/smartips/web-types.json +74 -13
- package/dist/style.css +1 -1
- package/dist/style.es.js +1 -1
- package/dist/styles/themes/default.scss +51 -50
- package/dist/styles/themes/jdb.scss +51 -50
- package/dist/styles/themes/jdt.scss +51 -50
- package/dist/styles/variables-jdb.scss +4 -1
- package/dist/styles/variables-jdt.scss +4 -1
- package/dist/styles/variables.scss +4 -1
- 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 +5 -8
- 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 +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/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 +9 -2
- package/dist/types/__VUE/dialog/index.vue.d.ts +2 -2
- package/dist/types/__VUE/fixednav/index.vue.d.ts +2 -2
- package/dist/types/__VUE/formitem/index.vue.d.ts +1 -0
- package/dist/types/__VUE/grid/index.vue.d.ts +4 -4
- package/dist/types/__VUE/griditem/index.vue.d.ts +1 -1
- package/dist/types/__VUE/input/index.vue.d.ts +6 -7
- package/dist/types/__VUE/invoice/index.vue.d.ts +48 -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/notify/index.d.ts +15 -5
- package/dist/types/__VUE/numberkeyboard/index.vue.d.ts +2 -2
- package/dist/types/__VUE/oldpicker/index.vue.d.ts +3 -3
- package/dist/types/__VUE/picker/index.vue.d.ts +5 -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/radio/index.vue.d.ts +3 -3
- package/dist/types/__VUE/searchbar/index.vue.d.ts +18 -3
- 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 +5 -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/dist/types/nutui.d.ts +2 -1
- package/package.json +1 -1
|
@@ -1,5 +1,24 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __defProps = Object.defineProperties;
|
|
3
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
4
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
7
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
8
|
+
var __spreadValues = (a, b) => {
|
|
9
|
+
for (var prop in b || (b = {}))
|
|
10
|
+
if (__hasOwnProp.call(b, prop))
|
|
11
|
+
__defNormalProp(a, prop, b[prop]);
|
|
12
|
+
if (__getOwnPropSymbols)
|
|
13
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
14
|
+
if (__propIsEnum.call(b, prop))
|
|
15
|
+
__defNormalProp(a, prop, b[prop]);
|
|
16
|
+
}
|
|
17
|
+
return a;
|
|
18
|
+
};
|
|
19
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
1
20
|
/*!
|
|
2
|
-
* @nutui/nutui v3.2.2
|
|
21
|
+
* @nutui/nutui v3.2.2 Thu Sep 08 2022 22:10:31 GMT+0800 (中国标准时间)
|
|
3
22
|
* (c) 2022 @jdf2e.
|
|
4
23
|
* Released under the MIT License.
|
|
5
24
|
*/
|
|
@@ -13,8 +32,7 @@ import "./Icon.js";
|
|
|
13
32
|
import "./pxCheck.js";
|
|
14
33
|
const { componentName, create } = createComponent("actionsheet");
|
|
15
34
|
const _sfc_main = create({
|
|
16
|
-
props: {
|
|
17
|
-
...popupProps,
|
|
35
|
+
props: __spreadProps(__spreadValues({}, popupProps), {
|
|
18
36
|
cancelTxt: {
|
|
19
37
|
type: String,
|
|
20
38
|
default: ""
|
|
@@ -55,7 +73,7 @@ const _sfc_main = create({
|
|
|
55
73
|
type: Boolean,
|
|
56
74
|
default: true
|
|
57
75
|
}
|
|
58
|
-
},
|
|
76
|
+
}),
|
|
59
77
|
emits: ["cancel", "close", "choose", "update:visible"],
|
|
60
78
|
setup(props, { emit }) {
|
|
61
79
|
const slotDefault = !!useSlots().default;
|
|
@@ -1,5 +1,24 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __defProps = Object.defineProperties;
|
|
3
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
4
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
7
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
8
|
+
var __spreadValues = (a, b) => {
|
|
9
|
+
for (var prop in b || (b = {}))
|
|
10
|
+
if (__hasOwnProp.call(b, prop))
|
|
11
|
+
__defNormalProp(a, prop, b[prop]);
|
|
12
|
+
if (__getOwnPropSymbols)
|
|
13
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
14
|
+
if (__propIsEnum.call(b, prop))
|
|
15
|
+
__defNormalProp(a, prop, b[prop]);
|
|
16
|
+
}
|
|
17
|
+
return a;
|
|
18
|
+
};
|
|
19
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
1
20
|
/*!
|
|
2
|
-
* @nutui/nutui v3.2.2
|
|
21
|
+
* @nutui/nutui v3.2.2 Thu Sep 08 2022 22:10:31 GMT+0800 (中国标准时间)
|
|
3
22
|
* (c) 2022 @jdf2e.
|
|
4
23
|
* Released under the MIT License.
|
|
5
24
|
*/
|
|
@@ -14,8 +33,7 @@ import "./pxCheck.js";
|
|
|
14
33
|
const { componentName, create, translate } = createComponent("address");
|
|
15
34
|
const _sfc_main = create({
|
|
16
35
|
inheritAttrs: false,
|
|
17
|
-
props: {
|
|
18
|
-
...popupProps,
|
|
36
|
+
props: __spreadProps(__spreadValues({}, popupProps), {
|
|
19
37
|
modelValue: {
|
|
20
38
|
type: Array,
|
|
21
39
|
default: () => []
|
|
@@ -84,7 +102,7 @@ const _sfc_main = create({
|
|
|
84
102
|
type: [String, Array],
|
|
85
103
|
default: ""
|
|
86
104
|
}
|
|
87
|
-
},
|
|
105
|
+
}),
|
|
88
106
|
emits: ["update:visible", "update:modelValue", "type", "change", "selected", "close", "close-mask", "switch-module"],
|
|
89
107
|
setup(props, { emit }) {
|
|
90
108
|
const regionLine = ref(null);
|
|
@@ -260,13 +278,10 @@ const _sfc_main = create({
|
|
|
260
278
|
lineAnimation();
|
|
261
279
|
};
|
|
262
280
|
const close = () => {
|
|
263
|
-
const resCopy = Object.assign(
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
},
|
|
268
|
-
selectedRegion
|
|
269
|
-
);
|
|
281
|
+
const resCopy = Object.assign({
|
|
282
|
+
addressIdStr: "",
|
|
283
|
+
addressStr: ""
|
|
284
|
+
}, selectedRegion);
|
|
270
285
|
const res = {
|
|
271
286
|
data: {},
|
|
272
287
|
type: privateType.value
|
|
@@ -309,57 +324,36 @@ const _sfc_main = create({
|
|
|
309
324
|
const handleElevatorItem = (key, item) => {
|
|
310
325
|
nextAreaList(item);
|
|
311
326
|
};
|
|
312
|
-
watch(
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
327
|
+
watch(() => props.visible, (value) => {
|
|
328
|
+
showPopup.value = value;
|
|
329
|
+
});
|
|
330
|
+
watch(() => showPopup.value, (value) => {
|
|
331
|
+
if (value == false) {
|
|
332
|
+
close();
|
|
333
|
+
} else {
|
|
334
|
+
initCustomSelected();
|
|
316
335
|
}
|
|
317
|
-
);
|
|
318
|
-
watch(
|
|
319
|
-
()
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
336
|
+
});
|
|
337
|
+
watch(() => props.province, (value) => {
|
|
338
|
+
regionList.province = isCustom2.value ? transformData(value) : value;
|
|
339
|
+
});
|
|
340
|
+
watch(() => props.city, (value) => {
|
|
341
|
+
regionList.city = isCustom2.value ? transformData(value) : value;
|
|
342
|
+
});
|
|
343
|
+
watch(() => props.country, (value) => {
|
|
344
|
+
regionList.country = isCustom2.value ? transformData(value) : value;
|
|
345
|
+
});
|
|
346
|
+
watch(() => props.town, (value) => {
|
|
347
|
+
regionList.town = isCustom2.value ? transformData(value) : value;
|
|
348
|
+
});
|
|
349
|
+
watch(() => props.existAddress, (value) => {
|
|
350
|
+
value.forEach((item, index2) => {
|
|
351
|
+
if (item.selectedAddress) {
|
|
352
|
+
selectedExistAddress = item;
|
|
325
353
|
}
|
|
326
|
-
}
|
|
327
|
-
);
|
|
328
|
-
|
|
329
|
-
() => props.province,
|
|
330
|
-
(value) => {
|
|
331
|
-
regionList.province = isCustom2.value ? transformData(value) : value;
|
|
332
|
-
}
|
|
333
|
-
);
|
|
334
|
-
watch(
|
|
335
|
-
() => props.city,
|
|
336
|
-
(value) => {
|
|
337
|
-
regionList.city = isCustom2.value ? transformData(value) : value;
|
|
338
|
-
}
|
|
339
|
-
);
|
|
340
|
-
watch(
|
|
341
|
-
() => props.country,
|
|
342
|
-
(value) => {
|
|
343
|
-
regionList.country = isCustom2.value ? transformData(value) : value;
|
|
344
|
-
}
|
|
345
|
-
);
|
|
346
|
-
watch(
|
|
347
|
-
() => props.town,
|
|
348
|
-
(value) => {
|
|
349
|
-
regionList.town = isCustom2.value ? transformData(value) : value;
|
|
350
|
-
}
|
|
351
|
-
);
|
|
352
|
-
watch(
|
|
353
|
-
() => props.existAddress,
|
|
354
|
-
(value) => {
|
|
355
|
-
value.forEach((item, index2) => {
|
|
356
|
-
if (item.selectedAddress) {
|
|
357
|
-
selectedExistAddress = item;
|
|
358
|
-
}
|
|
359
|
-
});
|
|
360
|
-
}
|
|
361
|
-
);
|
|
362
|
-
return {
|
|
354
|
+
});
|
|
355
|
+
});
|
|
356
|
+
return __spreadProps(__spreadValues({
|
|
363
357
|
showPopup,
|
|
364
358
|
privateType,
|
|
365
359
|
tabIndex,
|
|
@@ -380,10 +374,10 @@ const _sfc_main = create({
|
|
|
380
374
|
clickOverlay,
|
|
381
375
|
handClose,
|
|
382
376
|
handleElevatorItem,
|
|
383
|
-
initCustomSelected
|
|
384
|
-
|
|
377
|
+
initCustomSelected
|
|
378
|
+
}, toRefs(props)), {
|
|
385
379
|
translate
|
|
386
|
-
};
|
|
380
|
+
});
|
|
387
381
|
}
|
|
388
382
|
});
|
|
389
383
|
const _hoisted_1 = { class: "nut-address" };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.2.2
|
|
2
|
+
* @nutui/nutui v3.2.2 Thu Sep 08 2022 22:10:31 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2022 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
@@ -7,7 +7,7 @@ import { resolveComponent, openBlock, createElementBlock, createElementVNode, re
|
|
|
7
7
|
import { c as createComponent, f as floatData } from "./component.js";
|
|
8
8
|
import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
|
|
9
9
|
import "../locale/lang";
|
|
10
|
-
var ItemContents_vue_vue_type_style_index_0_lang = "";
|
|
10
|
+
var ItemContents_vue_vue_type_style_index_0_lang = /* @__PURE__ */ (() => "/* @import './index.scss'; */")();
|
|
11
11
|
const { componentName: componentName$4, create: create$4 } = createComponent("item-contents");
|
|
12
12
|
const { translate: translate$1 } = createComponent("addresslist");
|
|
13
13
|
const _sfc_main$4 = create$4({
|
|
@@ -480,11 +480,7 @@ const _sfc_main = create({
|
|
|
480
480
|
});
|
|
481
481
|
}
|
|
482
482
|
};
|
|
483
|
-
watch(
|
|
484
|
-
() => props.data,
|
|
485
|
-
() => trowelData(),
|
|
486
|
-
{ deep: true }
|
|
487
|
-
);
|
|
483
|
+
watch(() => props.data, () => trowelData(), { deep: true });
|
|
488
484
|
const clickDelIcon = (event, item) => {
|
|
489
485
|
emit("handelDelIcon", event, item);
|
|
490
486
|
event.stopPropagation();
|
|
@@ -1,5 +1,24 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __defProps = Object.defineProperties;
|
|
3
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
4
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
7
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
8
|
+
var __spreadValues = (a, b) => {
|
|
9
|
+
for (var prop in b || (b = {}))
|
|
10
|
+
if (__hasOwnProp.call(b, prop))
|
|
11
|
+
__defNormalProp(a, prop, b[prop]);
|
|
12
|
+
if (__getOwnPropSymbols)
|
|
13
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
14
|
+
if (__propIsEnum.call(b, prop))
|
|
15
|
+
__defNormalProp(a, prop, b[prop]);
|
|
16
|
+
}
|
|
17
|
+
return a;
|
|
18
|
+
};
|
|
19
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
1
20
|
/*!
|
|
2
|
-
* @nutui/nutui v3.2.2
|
|
21
|
+
* @nutui/nutui v3.2.2 Thu Sep 08 2022 22:10:31 GMT+0800 (中国标准时间)
|
|
3
22
|
* (c) 2022 @jdf2e.
|
|
4
23
|
* Released under the MIT License.
|
|
5
24
|
*/
|
|
@@ -46,7 +65,7 @@ const _sfc_main = create({
|
|
|
46
65
|
}
|
|
47
66
|
emit("click", event);
|
|
48
67
|
};
|
|
49
|
-
return {
|
|
68
|
+
return __spreadProps(__spreadValues({}, toRefs(state)), { classes, handleClick });
|
|
50
69
|
}
|
|
51
70
|
});
|
|
52
71
|
const _hoisted_1 = { class: "nut-animate" };
|
|
@@ -1,5 +1,24 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __defProps = Object.defineProperties;
|
|
3
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
4
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
7
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
8
|
+
var __spreadValues = (a, b) => {
|
|
9
|
+
for (var prop in b || (b = {}))
|
|
10
|
+
if (__hasOwnProp.call(b, prop))
|
|
11
|
+
__defNormalProp(a, prop, b[prop]);
|
|
12
|
+
if (__getOwnPropSymbols)
|
|
13
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
14
|
+
if (__propIsEnum.call(b, prop))
|
|
15
|
+
__defNormalProp(a, prop, b[prop]);
|
|
16
|
+
}
|
|
17
|
+
return a;
|
|
18
|
+
};
|
|
19
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
1
20
|
/*!
|
|
2
|
-
* @nutui/nutui v3.2.2
|
|
21
|
+
* @nutui/nutui v3.2.2 Thu Sep 08 2022 22:10:31 GMT+0800 (中国标准时间)
|
|
3
22
|
* (c) 2022 @jdf2e.
|
|
4
23
|
* Released under the MIT License.
|
|
5
24
|
*/
|
|
@@ -142,12 +161,9 @@ const _sfc_main = create({
|
|
|
142
161
|
result += ("0" + seconds.toString()).slice(-2);
|
|
143
162
|
return result;
|
|
144
163
|
};
|
|
145
|
-
watch(
|
|
146
|
-
()
|
|
147
|
-
|
|
148
|
-
handle(value);
|
|
149
|
-
}
|
|
150
|
-
);
|
|
164
|
+
watch(() => audioData.currentTime, (value) => {
|
|
165
|
+
handle(value);
|
|
166
|
+
});
|
|
151
167
|
provide("audioParent", {
|
|
152
168
|
children: [],
|
|
153
169
|
props,
|
|
@@ -157,9 +173,7 @@ const _sfc_main = create({
|
|
|
157
173
|
fastBack,
|
|
158
174
|
changeStatus
|
|
159
175
|
});
|
|
160
|
-
return {
|
|
161
|
-
...toRefs(props),
|
|
162
|
-
...toRefs(audioData),
|
|
176
|
+
return __spreadProps(__spreadValues(__spreadValues({}, toRefs(props)), toRefs(audioData)), {
|
|
163
177
|
audioRef,
|
|
164
178
|
fastBack,
|
|
165
179
|
forward,
|
|
@@ -169,7 +183,7 @@ const _sfc_main = create({
|
|
|
169
183
|
onTimeupdate,
|
|
170
184
|
handleMute,
|
|
171
185
|
onCanplay
|
|
172
|
-
};
|
|
186
|
+
});
|
|
173
187
|
}
|
|
174
188
|
});
|
|
175
189
|
const _hoisted_1 = { class: "nut-audio" };
|
|
@@ -1,5 +1,24 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __defProps = Object.defineProperties;
|
|
3
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
4
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
7
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
8
|
+
var __spreadValues = (a, b) => {
|
|
9
|
+
for (var prop in b || (b = {}))
|
|
10
|
+
if (__hasOwnProp.call(b, prop))
|
|
11
|
+
__defNormalProp(a, prop, b[prop]);
|
|
12
|
+
if (__getOwnPropSymbols)
|
|
13
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
14
|
+
if (__propIsEnum.call(b, prop))
|
|
15
|
+
__defNormalProp(a, prop, b[prop]);
|
|
16
|
+
}
|
|
17
|
+
return a;
|
|
18
|
+
};
|
|
19
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
1
20
|
/*!
|
|
2
|
-
* @nutui/nutui v3.2.2
|
|
21
|
+
* @nutui/nutui v3.2.2 Thu Sep 08 2022 22:10:31 GMT+0800 (中国标准时间)
|
|
3
22
|
* (c) 2022 @jdf2e.
|
|
4
23
|
* Released under the MIT License.
|
|
5
24
|
*/
|
|
@@ -21,7 +40,7 @@ const _sfc_main = create({
|
|
|
21
40
|
const audio = inject("audioParent");
|
|
22
41
|
const parent = reactive(audio);
|
|
23
42
|
const customSlot = ref(useSlots().default);
|
|
24
|
-
return {
|
|
43
|
+
return __spreadProps(__spreadValues(__spreadValues({}, toRefs(props)), toRefs(parent)), { customSlot, translate });
|
|
25
44
|
}
|
|
26
45
|
});
|
|
27
46
|
const _hoisted_1 = { class: "nut-audio-operate" };
|
|
@@ -1,5 +1,21 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
3
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
4
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
6
|
+
var __spreadValues = (a, b) => {
|
|
7
|
+
for (var prop in b || (b = {}))
|
|
8
|
+
if (__hasOwnProp.call(b, prop))
|
|
9
|
+
__defNormalProp(a, prop, b[prop]);
|
|
10
|
+
if (__getOwnPropSymbols)
|
|
11
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
12
|
+
if (__propIsEnum.call(b, prop))
|
|
13
|
+
__defNormalProp(a, prop, b[prop]);
|
|
14
|
+
}
|
|
15
|
+
return a;
|
|
16
|
+
};
|
|
1
17
|
/*!
|
|
2
|
-
* @nutui/nutui v3.2.2
|
|
18
|
+
* @nutui/nutui v3.2.2 Thu Sep 08 2022 22:10:31 GMT+0800 (中国标准时间)
|
|
3
19
|
* (c) 2022 @jdf2e.
|
|
4
20
|
* Released under the MIT License.
|
|
5
21
|
*/
|
|
@@ -112,7 +128,7 @@ const _sfc_main = create({
|
|
|
112
128
|
const onError = (event) => {
|
|
113
129
|
emit("onError", event);
|
|
114
130
|
};
|
|
115
|
-
return {
|
|
131
|
+
return __spreadValues({
|
|
116
132
|
classes,
|
|
117
133
|
styles,
|
|
118
134
|
iconStyles,
|
|
@@ -122,9 +138,8 @@ const _sfc_main = create({
|
|
|
122
138
|
onError,
|
|
123
139
|
avatarGroup,
|
|
124
140
|
visible,
|
|
125
|
-
avatarRef
|
|
126
|
-
|
|
127
|
-
};
|
|
141
|
+
avatarRef
|
|
142
|
+
}, toRefs(state));
|
|
128
143
|
}
|
|
129
144
|
});
|
|
130
145
|
const _hoisted_1 = ["src", "alt"];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.2.2
|
|
2
|
+
* @nutui/nutui v3.2.2 Thu Sep 08 2022 22:10:31 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2022 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
@@ -19,7 +19,7 @@ const _sfc_main = create({
|
|
|
19
19
|
default: 10
|
|
20
20
|
},
|
|
21
21
|
elId: {
|
|
22
|
-
type: [String
|
|
22
|
+
type: [String],
|
|
23
23
|
default: "body"
|
|
24
24
|
},
|
|
25
25
|
distance: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.2.2
|
|
2
|
+
* @nutui/nutui v3.2.2 Thu Sep 08 2022 22:10:31 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2022 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
@@ -64,12 +64,9 @@ const _sfc_main = create({
|
|
|
64
64
|
clearInterval(timer);
|
|
65
65
|
timer = 0;
|
|
66
66
|
});
|
|
67
|
-
watch(
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
danmuList.value = [...newValue];
|
|
71
|
-
}
|
|
72
|
-
);
|
|
67
|
+
watch(() => props.danmu, (newValue, oldVlaue) => {
|
|
68
|
+
danmuList.value = [...newValue];
|
|
69
|
+
});
|
|
73
70
|
const add = (word) => {
|
|
74
71
|
const _index = index2.value % danmuList.value.length;
|
|
75
72
|
if (!props.loop && index2.value === danmuList.value.length) {
|