@nutui/nutui 3.1.22-beta.0 → 3.1.22
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 +48 -0
- package/README.md +3 -4
- package/dist/nutui.es.js +4203 -19263
- package/dist/nutui.umd.js +4208 -19368
- package/dist/packages/_es/ActionSheet.js +17 -167
- package/dist/packages/_es/Address.js +110 -552
- package/dist/packages/_es/AddressList.js +113 -613
- package/dist/packages/_es/Animate.js +22 -0
- package/dist/packages/_es/Audio.js +53 -274
- package/dist/packages/_es/AudioOperate.js +13 -121
- package/dist/packages/_es/Avatar.js +38 -177
- package/dist/packages/_es/AvatarGroup.js +14 -73
- package/dist/packages/_es/BackTop.js +43 -156
- package/dist/packages/_es/Badge.js +14 -86
- package/dist/packages/_es/Barrage.js +41 -120
- package/dist/packages/_es/Button.js +23 -128
- package/dist/packages/_es/Calendar.js +30 -237
- package/dist/packages/_es/CalendarItem.js +2 -1
- package/dist/packages/_es/Card.js +10 -107
- package/dist/packages/_es/Cascader.js +147 -523
- package/dist/packages/_es/Category.js +15 -58
- package/dist/packages/_es/CategoryPane.js +11 -111
- package/dist/packages/_es/Cell.js +21 -100
- package/dist/packages/_es/CellGroup.js +9 -44
- package/dist/packages/_es/Checkbox.js +31 -113
- package/dist/packages/_es/CheckboxGroup.js +29 -58
- package/dist/packages/_es/CircleProgress.js +28 -151
- package/dist/packages/_es/Col.js +14 -56
- package/dist/packages/_es/Collapse.js +32 -84
- package/dist/packages/_es/CollapseItem.js +59 -272
- package/dist/packages/_es/Comment.js +64 -434
- package/dist/packages/_es/ConfigProvider.js +13 -0
- package/dist/packages/_es/CountDown.js +56 -256
- package/dist/packages/_es/CountUp.js +140 -556
- package/dist/packages/_es/DatePicker.js +98 -332
- package/dist/packages/_es/Dialog.js +60 -271
- package/dist/packages/_es/Divider.js +13 -82
- package/dist/packages/_es/Drag.js +56 -197
- package/dist/packages/_es/Ecard.js +24 -159
- package/dist/packages/_es/Elevator.js +58 -212
- package/dist/packages/_es/Ellipsis.js +64 -0
- package/dist/packages/_es/Empty.js +12 -71
- package/dist/packages/_es/FixedNav.js +15 -122
- package/dist/packages/_es/Form.js +64 -151
- package/dist/packages/_es/FormItem.js +15 -110
- package/dist/packages/_es/Grid.js +5 -6
- package/dist/packages/_es/GridItem.js +33 -144
- package/dist/packages/_es/Icon.js +15 -40
- package/dist/packages/_es/Image.js +31 -0
- package/dist/packages/_es/ImagePreview.js +77 -309
- package/dist/packages/_es/Indicator.js +15 -62
- package/dist/packages/_es/InfiniteLoading.js +57 -268
- package/dist/packages/_es/Input.js +51 -413
- package/dist/packages/_es/InputNumber.js +41 -160
- package/dist/packages/_es/Layout.js +4 -5
- package/dist/packages/_es/List.js +18 -124
- package/dist/packages/_es/Menu.js +45 -118
- package/dist/packages/_es/MenuItem.js +37 -162
- package/dist/packages/_es/Navbar.js +30 -192
- package/dist/packages/_es/NoticeBar.js +74 -397
- package/dist/packages/_es/Notify.js +72 -246
- package/dist/packages/_es/NumberKeyboard.js +41 -272
- package/dist/packages/_es/OldPicker.js +131 -474
- package/dist/packages/_es/OverLay.js +24 -113
- package/dist/packages/_es/Pagination.js +39 -157
- package/dist/packages/_es/Picker.js +129 -469
- package/dist/packages/_es/Popover.js +318 -975
- package/dist/packages/_es/Popup.js +55 -313
- package/dist/packages/_es/Price.js +16 -118
- package/dist/packages/_es/Progress.js +14 -146
- package/dist/packages/_es/PullRefresh.js +84 -354
- package/dist/packages/_es/Radio.js +22 -90
- package/dist/packages/_es/RadioGroup.js +8 -37
- package/dist/packages/_es/Range.js +83 -427
- package/dist/packages/_es/Rate.js +35 -137
- package/dist/packages/_es/Row.js +22 -64
- package/dist/packages/_es/SearchBar.js +37 -257
- package/dist/packages/_es/ShortPassword.js +35 -225
- package/dist/packages/_es/SideNavBar.js +24 -99
- package/dist/packages/_es/SideNavBarItem.js +11 -46
- package/dist/packages/_es/Signature.js +41 -179
- package/dist/packages/_es/Skeleton.js +20 -136
- package/dist/packages/_es/Sku.js +84 -509
- package/dist/packages/_es/Step.js +20 -133
- package/dist/packages/_es/Steps.js +18 -53
- package/dist/packages/_es/Sticky.js +53 -138
- package/dist/packages/_es/SubSideNavBar.js +17 -100
- package/dist/packages/_es/Swipe.js +41 -197
- package/dist/packages/_es/Swiper.js +121 -433
- package/dist/packages/_es/SwiperItem.js +22 -53
- package/dist/packages/_es/Switch.js +21 -116
- package/dist/packages/_es/TabPane.js +12 -39
- package/dist/packages/_es/Tabbar.js +17 -72
- package/dist/packages/_es/TabbarItem.js +29 -151
- package/dist/packages/_es/Table.js +18 -196
- package/dist/packages/_es/Tabs.js +43 -217
- package/dist/packages/_es/Tag.js +20 -97
- package/dist/packages/_es/TextArea.js +42 -160
- package/dist/packages/_es/TimeDetail.js +18 -98
- package/dist/packages/_es/TimePannel.js +14 -66
- package/dist/packages/_es/TimeSelect.js +15 -103
- package/dist/packages/_es/Toast.js +71 -329
- package/dist/packages/_es/Uploader.js +104 -468
- package/dist/packages/_es/Video.js +74 -350
- package/dist/packages/_es/common.js +38 -128
- package/dist/packages/_es/component.js +35 -76
- package/dist/packages/_es/index.js +5 -6
- package/dist/packages/_es/index2.js +9 -30
- package/dist/packages/_es/index3.js +6 -8
- package/dist/packages/_es/index4.js +13 -58
- package/dist/packages/_es/index5.js +164 -682
- package/dist/packages/_es/plugin-vue_export-helper.js +7 -8
- package/dist/packages/_es/pxCheck.js +3 -5
- package/dist/packages/_es/raf.js +8 -15
- package/dist/packages/animate/index.scss +299 -0
- package/dist/packages/button/index.scss +2 -1
- package/dist/packages/cell/index.scss +18 -1
- package/dist/packages/checkbox/index.scss +16 -0
- package/dist/packages/configprovider/index.scss +2 -0
- package/dist/packages/dialog/index.scss +1 -0
- package/dist/packages/elevator/index.scss +21 -0
- package/dist/packages/ellipsis/index.scss +12 -0
- package/dist/packages/formitem/index.scss +12 -0
- package/dist/packages/griditem/index.scss +11 -0
- package/dist/packages/image/index.scss +39 -0
- package/dist/packages/imagepreview/index.scss +21 -2
- package/dist/packages/input/index.scss +26 -1
- package/dist/packages/inputnumber/index.scss +21 -0
- package/dist/packages/locale/lang/baseLang.d.ts +1 -0
- package/dist/packages/locale/lang/baseLang.js +3 -3
- package/dist/packages/locale/lang/en-US.d.ts +8 -0
- package/dist/packages/locale/lang/en-US.js +5 -97
- package/dist/packages/locale/lang/id-ID.d.ts +8 -0
- package/dist/packages/locale/lang/id-ID.js +5 -97
- package/dist/packages/locale/lang/index.js +16 -38
- package/dist/packages/locale/lang/zh-CN.d.ts +8 -0
- package/dist/packages/locale/lang/zh-CN.js +5 -97
- package/dist/packages/locale/lang/zh-TW.d.ts +8 -0
- package/dist/packages/locale/lang/zh-TW.js +5 -97
- package/dist/packages/menu/index.scss +45 -36
- package/dist/packages/menuitem/index.scss +4 -0
- package/dist/packages/navbar/index.scss +9 -0
- package/dist/packages/pagination/index.scss +19 -0
- package/dist/packages/radio/index.scss +19 -0
- package/dist/packages/range/index.scss +19 -0
- package/dist/packages/rate/index.scss +1 -1
- package/dist/packages/searchbar/index.scss +21 -0
- package/dist/packages/switch/index.scss +4 -3
- package/dist/packages/tabbar/index.scss +5 -0
- package/dist/packages/tabbaritem/index.scss +7 -0
- package/dist/packages/tabpane/index.scss +6 -0
- package/dist/packages/tabs/index.scss +22 -0
- package/dist/packages/textarea/index.scss +8 -0
- package/dist/smartips/attributes.json +192 -12
- package/dist/smartips/tags.json +70 -10
- package/dist/smartips/web-types.json +6945 -0
- package/dist/style.css +1 -1
- package/dist/style.es.js +1 -1
- package/dist/styles/font/config.json +3 -1
- package/dist/styles/font/demo_index.html +49 -3
- package/dist/styles/font/iconfont.css +11 -3
- package/dist/styles/font/iconfont.js +15 -15
- package/dist/styles/font/iconfont.json +14 -0
- package/dist/styles/font/iconfont.ttf +0 -0
- package/dist/styles/font/iconfont.woff +0 -0
- package/dist/styles/font/iconfont.woff2 +0 -0
- package/dist/styles/themes/default.scss +54 -50
- package/dist/styles/themes/jdb.scss +54 -50
- package/dist/styles/themes/jdt.scss +54 -50
- package/dist/styles/variables-jdb.scss +22 -1
- package/dist/styles/variables-jdt.scss +22 -1
- package/dist/styles/variables.scss +22 -1
- package/dist/types/__VUE/actionsheet/index.vue.d.ts +2 -2
- package/dist/types/__VUE/address/index.vue.d.ts +4 -4
- package/dist/types/__VUE/addresslist/components/ItemContents.vue.d.ts +1 -0
- package/dist/types/__VUE/animate/index.vue.d.ts +48 -0
- package/dist/types/__VUE/animate/type.d.ts +6 -0
- package/dist/types/__VUE/audiooperate/index.vue.d.ts +1 -0
- package/dist/types/__VUE/avatar/index.vue.d.ts +5 -5
- package/dist/types/__VUE/avatargroup/index.vue.d.ts +2 -2
- package/dist/types/__VUE/badge/index.vue.d.ts +4 -4
- package/dist/types/__VUE/button/index.vue.d.ts +6 -6
- package/dist/types/__VUE/calendaritem/index.vue.d.ts +10 -2
- package/dist/types/__VUE/cascader/index.vue.d.ts +3 -3
- package/dist/types/__VUE/cell/index.vue.d.ts +11 -4
- package/dist/types/__VUE/checkbox/common.d.ts +59 -0
- package/dist/types/__VUE/checkbox/index.vue.d.ts +20 -7
- package/dist/types/__VUE/checkboxgroup/index.vue.d.ts +7 -0
- package/dist/types/__VUE/circleprogress/index.vue.d.ts +2 -2
- package/dist/types/__VUE/collapse/index.vue.d.ts +3 -1
- package/dist/types/__VUE/comment/index.vue.d.ts +2 -2
- package/dist/types/__VUE/configprovider/common.d.ts +20 -0
- package/dist/types/__VUE/configprovider/index.vue.d.ts +33 -0
- package/dist/types/__VUE/datepicker/index.vue.d.ts +2 -2
- package/dist/types/__VUE/dialog/index.d.ts +9 -2
- package/dist/types/__VUE/dialog/index.vue.d.ts +25 -10
- package/dist/types/__VUE/ecard/index.vue.d.ts +3 -3
- package/dist/types/__VUE/elevator/index.vue.d.ts +29 -0
- package/dist/types/__VUE/ellipsis/index.vue.d.ts +72 -0
- package/dist/types/__VUE/empty/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 +3 -10
- 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/image/index.vue.d.ts +105 -0
- package/dist/types/__VUE/image/type.d.ts +6 -0
- package/dist/types/__VUE/imagepreview/index.vue.d.ts +36 -2
- package/dist/types/__VUE/input/index.vue.d.ts +6 -6
- package/dist/types/__VUE/inputnumber/index.vue.d.ts +2 -2
- package/dist/types/__VUE/menu/index.vue.d.ts +29 -2
- package/dist/types/__VUE/menuitem/index.vue.d.ts +12 -3
- package/dist/types/__VUE/noticebar/index.vue.d.ts +3 -3
- package/dist/types/__VUE/notify/index.vue.d.ts +2 -2
- package/dist/types/__VUE/oldpicker/index.vue.d.ts +2 -2
- package/dist/types/__VUE/picker/Column.vue.d.ts +1 -1
- package/dist/types/__VUE/picker/index.vue.d.ts +3 -3
- package/dist/types/__VUE/popover/index.vue.d.ts +6 -6
- package/dist/types/__VUE/popup/index.vue.d.ts +2 -2
- package/dist/types/__VUE/radio/index.vue.d.ts +4 -4
- package/dist/types/__VUE/range/index.vue.d.ts +4 -4
- package/dist/types/__VUE/rate/common.d.ts +149 -0
- package/dist/types/__VUE/rate/index.vue.d.ts +15 -5
- package/dist/types/__VUE/skeleton/index.vue.d.ts +4 -4
- package/dist/types/__VUE/sku/index.vue.d.ts +2 -2
- package/dist/types/__VUE/step/index.vue.d.ts +2 -2
- package/dist/types/__VUE/sticky/index.vue.d.ts +4 -4
- package/dist/types/__VUE/swiper/index.vue.d.ts +4 -4
- package/dist/types/__VUE/tabbar/index.vue.d.ts +2 -2
- package/dist/types/__VUE/tag/index.vue.d.ts +2 -2
- package/dist/types/__VUE/timeselect/index.vue.d.ts +10 -2
- package/dist/types/__VUE/toast/index.vue.d.ts +5 -5
- package/dist/types/__VUE/uploader/index.vue.d.ts +6 -6
- package/dist/types/__VUE/uploader/uploader.d.ts +1 -0
- 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 +5 -1
- package/package.json +6 -3
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* @nutui/nutui v3.1.22 Fri Jun 24 2022 18:11:16 GMT+0800 (中国标准时间)
|
|
3
|
+
* (c) 2022 @jdf2e.
|
|
4
|
+
* Released under the MIT License.
|
|
5
|
+
*/
|
|
6
|
+
import { toRefs as e, reactive as t, computed as l, openBlock as a, createElementBlock as i, createElementVNode as o, normalizeClass as c, renderSlot as n } from "vue";
|
|
7
|
+
import { c as s } from "./component.js";
|
|
8
|
+
import { _ as r } from "./plugin-vue_export-helper.js";
|
|
9
|
+
import "../locale/lang";
|
|
10
|
+
const { componentName: p, create: u } = s("animate"), m = u({ props: { type: { type: String, default: "" }, action: { type: String, default: "initial" }, loop: { type: Boolean, default: false } }, emits: ["click"], setup(a2, { emit: i2 }) {
|
|
11
|
+
const { type: o2, loop: c2, action: n2 } = e(a2), s2 = t({ clicked: false });
|
|
12
|
+
let r2 = l(() => ({ "nut-ani-container": true, [`${p}-${o2.value}`]: !(n2.value !== "initial" && !s2.clicked) && o2.value, loop: c2.value }));
|
|
13
|
+
return { ...e(s2), classes: r2, handleClick: (e2) => {
|
|
14
|
+
s2.clicked = true, c2.value || setTimeout(() => {
|
|
15
|
+
s2.clicked = false;
|
|
16
|
+
}, 1e3), i2("click", e2);
|
|
17
|
+
} };
|
|
18
|
+
} }), d = { class: "nut-animate" };
|
|
19
|
+
var k = r(m, [["render", function(e2, t2, l2, s2, r2, p2) {
|
|
20
|
+
return a(), i("view", d, [o("view", { class: c(e2.classes), onClick: t2[0] || (t2[0] = (...t3) => e2.handleClick && e2.handleClick(...t3)) }, [n(e2.$slots, "default")], 2)]);
|
|
21
|
+
}]]);
|
|
22
|
+
export { k as default };
|
|
@@ -1,280 +1,59 @@
|
|
|
1
|
-
var __defProp = Object.defineProperty;
|
|
2
|
-
var __defProps = Object.defineProperties;
|
|
3
|
-
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
4
|
-
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
7
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
8
|
-
var __spreadValues = (a, b) => {
|
|
9
|
-
for (var prop in b || (b = {}))
|
|
10
|
-
if (__hasOwnProp.call(b, prop))
|
|
11
|
-
__defNormalProp(a, prop, b[prop]);
|
|
12
|
-
if (__getOwnPropSymbols)
|
|
13
|
-
for (var prop of __getOwnPropSymbols(b)) {
|
|
14
|
-
if (__propIsEnum.call(b, prop))
|
|
15
|
-
__defNormalProp(a, prop, b[prop]);
|
|
16
|
-
}
|
|
17
|
-
return a;
|
|
18
|
-
};
|
|
19
|
-
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
1
|
/*!
|
|
21
|
-
* @nutui/nutui v3.1.22
|
|
2
|
+
* @nutui/nutui v3.1.22 Fri Jun 24 2022 18:11:16 GMT+0800 (中国标准时间)
|
|
22
3
|
* (c) 2022 @jdf2e.
|
|
23
4
|
* Released under the MIT License.
|
|
24
5
|
*/
|
|
25
|
-
import { ref, reactive, onMounted, watch, provide, toRefs, resolveComponent, openBlock, createElementBlock, createElementVNode, toDisplayString, createVNode, withCtx, createCommentVNode, normalizeClass, createBlock, renderSlot } from "vue";
|
|
26
|
-
import { c as
|
|
27
|
-
import { _ as
|
|
6
|
+
import { ref as e, reactive as a, onMounted as t, watch as n, provide as o, toRefs as r, resolveComponent as u, openBlock as i, createElementBlock as l, createElementVNode as c, toDisplayString as d, createVNode as s, withCtx as p, createCommentVNode as m, normalizeClass as y, createBlock as g, renderSlot as h } from "vue";
|
|
7
|
+
import { c as f } from "./component.js";
|
|
8
|
+
import { _ as v } from "./plugin-vue_export-helper.js";
|
|
28
9
|
import "../locale/lang";
|
|
29
|
-
const { componentName, create } =
|
|
30
|
-
const
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
type: Boolean,
|
|
42
|
-
default: false
|
|
43
|
-
},
|
|
44
|
-
loop: {
|
|
45
|
-
type: Boolean,
|
|
46
|
-
default: false
|
|
47
|
-
},
|
|
48
|
-
preload: {
|
|
49
|
-
type: String,
|
|
50
|
-
default: "auto"
|
|
51
|
-
},
|
|
52
|
-
second: {
|
|
53
|
-
type: Number,
|
|
54
|
-
default: 0
|
|
55
|
-
},
|
|
56
|
-
type: {
|
|
57
|
-
type: String,
|
|
58
|
-
default: "progress"
|
|
10
|
+
const { componentName: T, create: k } = f("audio"), M = k({ props: { url: { type: String, default: "" }, muted: { type: Boolean, default: false }, autoplay: { type: Boolean, default: false }, loop: { type: Boolean, default: false }, preload: { type: String, default: "auto" }, second: { type: Number, default: 0 }, type: { type: String, default: "progress" } }, components: {}, emits: ["fastBack", "play", "forward", "ended", "changeProgress", "mute"], setup(u2, { emit: i2 }) {
|
|
11
|
+
const l2 = e(null), c2 = a({ currentTime: 0, currentDuration: "00:00:00", percent: 0, duration: "00:00:00", second: 0, hanMuted: u2.muted, playing: u2.autoplay, handPlaying: false });
|
|
12
|
+
t(() => {
|
|
13
|
+
var e2 = ["webkitVisibilityState", "visibilitychange"];
|
|
14
|
+
try {
|
|
15
|
+
for (let a2 = 0; a2 < e2.length; a2++)
|
|
16
|
+
document.addEventListener(e2[a2], () => {
|
|
17
|
+
document.hidden ? l2.value.pause() : c2.playing && setTimeout(() => {
|
|
18
|
+
l2.value.play();
|
|
19
|
+
}, 200);
|
|
20
|
+
});
|
|
21
|
+
} catch (e3) {
|
|
59
22
|
}
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
if (audioR && audioR.paused) {
|
|
98
|
-
audioR.play();
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
audioData.second = audioR.duration;
|
|
102
|
-
audioData.duration = formatSeconds(audioR.duration);
|
|
103
|
-
}, 500);
|
|
104
|
-
});
|
|
105
|
-
const onTimeupdate = (e) => {
|
|
106
|
-
audioData.currentTime = parseInt(e.target.currentTime);
|
|
107
|
-
};
|
|
108
|
-
const fastBack = () => {
|
|
109
|
-
audioData.currentTime--;
|
|
110
|
-
audioRef.value.currentTime = audioData.currentTime;
|
|
111
|
-
emit("fastBack", audioData.currentTime);
|
|
112
|
-
};
|
|
113
|
-
const changeStatus = () => {
|
|
114
|
-
const audioR = audioRef.value;
|
|
115
|
-
if (audioData.playing) {
|
|
116
|
-
audioR.pause();
|
|
117
|
-
audioData.handPlaying = false;
|
|
118
|
-
} else {
|
|
119
|
-
audioR.play();
|
|
120
|
-
audioData.handPlaying = true;
|
|
121
|
-
}
|
|
122
|
-
audioData.playing = !audioData.playing;
|
|
123
|
-
emit("play", audioData.playing);
|
|
124
|
-
};
|
|
125
|
-
const forward = () => {
|
|
126
|
-
audioData.currentTime++;
|
|
127
|
-
audioRef.value.currentTime = audioData.currentTime;
|
|
128
|
-
emit("forward", audioData.currentTime);
|
|
129
|
-
};
|
|
130
|
-
const handle = (val) => {
|
|
131
|
-
audioData.currentDuration = formatSeconds(val);
|
|
132
|
-
audioData.percent = val / audioData.second * 100;
|
|
133
|
-
};
|
|
134
|
-
const audioEnd = () => {
|
|
135
|
-
audioData.playing = false;
|
|
136
|
-
emit("ended");
|
|
137
|
-
};
|
|
138
|
-
const progressChange = (val) => {
|
|
139
|
-
const ar = audioRef.value;
|
|
140
|
-
ar.currentTime = audioData.second * val / 100;
|
|
141
|
-
emit("changeProgress", ar.currentTime);
|
|
142
|
-
};
|
|
143
|
-
const handleMute = () => {
|
|
144
|
-
audioData.hanMuted = !audioData.hanMuted;
|
|
145
|
-
emit("mute", audioData.hanMuted);
|
|
146
|
-
};
|
|
147
|
-
const formatSeconds = (value) => {
|
|
148
|
-
let theTime = parseInt(value);
|
|
149
|
-
let theTime1 = 0;
|
|
150
|
-
let theTime2 = 0;
|
|
151
|
-
if (theTime > 60) {
|
|
152
|
-
theTime1 = Math.floor(theTime / 60);
|
|
153
|
-
theTime = Math.floor(theTime % 60);
|
|
154
|
-
if (theTime1 > 60) {
|
|
155
|
-
theTime2 = Math.floor(theTime1 / 60);
|
|
156
|
-
theTime1 = Math.floor(theTime1 % 60);
|
|
157
|
-
}
|
|
158
|
-
}
|
|
159
|
-
let result = "";
|
|
160
|
-
if (theTime < 10) {
|
|
161
|
-
result = "0" + result;
|
|
162
|
-
}
|
|
163
|
-
if (theTime1 > 0) {
|
|
164
|
-
result = "" + theTime1 + ":" + result;
|
|
165
|
-
if (theTime1 < 10) {
|
|
166
|
-
result = "0" + result;
|
|
167
|
-
}
|
|
168
|
-
} else {
|
|
169
|
-
result = "00:" + result;
|
|
170
|
-
}
|
|
171
|
-
if (theTime2 > 0) {
|
|
172
|
-
result = "" + theTime2 + ":" + result;
|
|
173
|
-
if (theTime2 < 10) {
|
|
174
|
-
result = "0" + result;
|
|
175
|
-
}
|
|
176
|
-
} else {
|
|
177
|
-
result = "00:" + result;
|
|
178
|
-
}
|
|
179
|
-
return result;
|
|
180
|
-
};
|
|
181
|
-
watch(() => audioData.currentTime, (value) => {
|
|
182
|
-
handle(value);
|
|
183
|
-
});
|
|
184
|
-
provide("audioParent", {
|
|
185
|
-
children: [],
|
|
186
|
-
props,
|
|
187
|
-
audioData,
|
|
188
|
-
handleMute,
|
|
189
|
-
forward,
|
|
190
|
-
fastBack,
|
|
191
|
-
changeStatus
|
|
192
|
-
});
|
|
193
|
-
return __spreadProps(__spreadValues(__spreadValues({}, toRefs(props)), toRefs(audioData)), {
|
|
194
|
-
audioRef,
|
|
195
|
-
fastBack,
|
|
196
|
-
forward,
|
|
197
|
-
changeStatus,
|
|
198
|
-
progressChange,
|
|
199
|
-
audioEnd,
|
|
200
|
-
onTimeupdate,
|
|
201
|
-
handleMute
|
|
202
|
-
});
|
|
203
|
-
}
|
|
204
|
-
});
|
|
205
|
-
const _hoisted_1 = { class: "nut-audio" };
|
|
206
|
-
const _hoisted_2 = {
|
|
207
|
-
key: 0,
|
|
208
|
-
class: "progress-wrapper"
|
|
209
|
-
};
|
|
210
|
-
const _hoisted_3 = { class: "time" };
|
|
211
|
-
const _hoisted_4 = { class: "progress-bar-wrapper" };
|
|
212
|
-
const _hoisted_5 = /* @__PURE__ */ createElementVNode("div", { class: "custom-button" }, null, -1);
|
|
213
|
-
const _hoisted_6 = { class: "time" };
|
|
214
|
-
const _hoisted_7 = {
|
|
215
|
-
key: 1,
|
|
216
|
-
class: "nut-audio-icon"
|
|
217
|
-
};
|
|
218
|
-
const _hoisted_8 = ["controls", "src", "preload", "autoplay", "loop", "muted"];
|
|
219
|
-
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
220
|
-
const _component_nut_range = resolveComponent("nut-range");
|
|
221
|
-
const _component_nut_icon = resolveComponent("nut-icon");
|
|
222
|
-
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
223
|
-
_ctx.type == "progress" ? (openBlock(), createElementBlock("div", _hoisted_2, [
|
|
224
|
-
createElementVNode("div", _hoisted_3, toDisplayString(_ctx.currentDuration), 1),
|
|
225
|
-
createElementVNode("div", _hoisted_4, [
|
|
226
|
-
createVNode(_component_nut_range, {
|
|
227
|
-
modelValue: _ctx.percent,
|
|
228
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => _ctx.percent = $event),
|
|
229
|
-
"hidden-range": "",
|
|
230
|
-
onChange: _ctx.progressChange,
|
|
231
|
-
"inactive-color": "#cccccc",
|
|
232
|
-
"active-color": "#fa2c19"
|
|
233
|
-
}, {
|
|
234
|
-
button: withCtx(() => [
|
|
235
|
-
_hoisted_5
|
|
236
|
-
]),
|
|
237
|
-
_: 1
|
|
238
|
-
}, 8, ["modelValue", "onChange"])
|
|
239
|
-
]),
|
|
240
|
-
createElementVNode("div", _hoisted_6, toDisplayString(_ctx.duration), 1)
|
|
241
|
-
])) : createCommentVNode("", true),
|
|
242
|
-
_ctx.type == "icon" ? (openBlock(), createElementBlock("div", _hoisted_7, [
|
|
243
|
-
createElementVNode("div", {
|
|
244
|
-
class: normalizeClass(["nut-audio-icon-box", _ctx.playing ? "nut-audio-icon-play" : "nut-audio-icon-stop"]),
|
|
245
|
-
onClick: _cache[1] || (_cache[1] = (...args) => _ctx.changeStatus && _ctx.changeStatus(...args))
|
|
246
|
-
}, [
|
|
247
|
-
_ctx.playing ? (openBlock(), createBlock(_component_nut_icon, {
|
|
248
|
-
key: 0,
|
|
249
|
-
name: "service",
|
|
250
|
-
class: "nut-icon-am-rotate nut-icon-am-infinite"
|
|
251
|
-
})) : createCommentVNode("", true),
|
|
252
|
-
!_ctx.playing ? (openBlock(), createBlock(_component_nut_icon, {
|
|
253
|
-
key: 1,
|
|
254
|
-
name: "service"
|
|
255
|
-
})) : createCommentVNode("", true)
|
|
256
|
-
], 2)
|
|
257
|
-
])) : createCommentVNode("", true),
|
|
258
|
-
_ctx.type == "none" ? (openBlock(), createElementBlock("div", {
|
|
259
|
-
key: 2,
|
|
260
|
-
onClick: _cache[2] || (_cache[2] = (...args) => _ctx.changeStatus && _ctx.changeStatus(...args))
|
|
261
|
-
}, [
|
|
262
|
-
renderSlot(_ctx.$slots, "default")
|
|
263
|
-
])) : createCommentVNode("", true),
|
|
264
|
-
_ctx.type != "none" ? renderSlot(_ctx.$slots, "default", { key: 3 }) : createCommentVNode("", true),
|
|
265
|
-
createElementVNode("audio", {
|
|
266
|
-
class: "audioMain",
|
|
267
|
-
controls: _ctx.type == "controls",
|
|
268
|
-
ref: "audioRef",
|
|
269
|
-
src: _ctx.url,
|
|
270
|
-
preload: _ctx.preload,
|
|
271
|
-
autoplay: _ctx.autoplay,
|
|
272
|
-
loop: _ctx.loop,
|
|
273
|
-
onTimeupdate: _cache[3] || (_cache[3] = (...args) => _ctx.onTimeupdate && _ctx.onTimeupdate(...args)),
|
|
274
|
-
onEnded: _cache[4] || (_cache[4] = (...args) => _ctx.audioEnd && _ctx.audioEnd(...args)),
|
|
275
|
-
muted: _ctx.hanMuted
|
|
276
|
-
}, null, 40, _hoisted_8)
|
|
277
|
-
]);
|
|
278
|
-
}
|
|
279
|
-
var index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
280
|
-
export { index as default };
|
|
23
|
+
setTimeout(() => {
|
|
24
|
+
const e3 = l2.value;
|
|
25
|
+
u2.autoplay && e3 && e3.paused && e3.play(), c2.second = e3.duration, c2.duration = y2(e3.duration);
|
|
26
|
+
}, 500);
|
|
27
|
+
});
|
|
28
|
+
const d2 = () => {
|
|
29
|
+
c2.currentTime--, l2.value.currentTime = c2.currentTime, i2("fastBack", c2.currentTime);
|
|
30
|
+
}, s2 = () => {
|
|
31
|
+
const e2 = l2.value;
|
|
32
|
+
c2.playing ? (e2.pause(), c2.handPlaying = false) : (e2.play(), c2.handPlaying = true), c2.playing = !c2.playing, i2("play", c2.playing);
|
|
33
|
+
}, p2 = () => {
|
|
34
|
+
c2.currentTime++, l2.value.currentTime = c2.currentTime, i2("forward", c2.currentTime);
|
|
35
|
+
}, m2 = () => {
|
|
36
|
+
c2.hanMuted = !c2.hanMuted, i2("mute", c2.hanMuted);
|
|
37
|
+
}, y2 = (e2) => {
|
|
38
|
+
let a2 = parseInt(e2), t2 = 0, n2 = 0;
|
|
39
|
+
a2 > 60 && (t2 = Math.floor(a2 / 60), a2 = Math.floor(a2 % 60), t2 > 60 && (n2 = Math.floor(t2 / 60), t2 = Math.floor(t2 % 60)));
|
|
40
|
+
let o2 = "";
|
|
41
|
+
return a2 < 10 && (o2 = "0" + o2), t2 > 0 ? (o2 = t2 + ":" + o2, t2 < 10 && (o2 = "0" + o2)) : o2 = "00:" + o2, n2 > 0 ? (o2 = n2 + ":" + o2, n2 < 10 && (o2 = "0" + o2)) : o2 = "00:" + o2, o2;
|
|
42
|
+
};
|
|
43
|
+
return n(() => c2.currentTime, (e2) => {
|
|
44
|
+
var a2;
|
|
45
|
+
a2 = e2, c2.currentDuration = y2(a2), c2.percent = a2 / c2.second * 100;
|
|
46
|
+
}), o("audioParent", { children: [], props: u2, audioData: c2, handleMute: m2, forward: p2, fastBack: d2, changeStatus: s2 }), { ...r(u2), ...r(c2), audioRef: l2, fastBack: d2, forward: p2, changeStatus: s2, progressChange: (e2) => {
|
|
47
|
+
const a2 = l2.value;
|
|
48
|
+
a2.currentTime = c2.second * e2 / 100, i2("changeProgress", a2.currentTime);
|
|
49
|
+
}, audioEnd: () => {
|
|
50
|
+
c2.playing = false, i2("ended");
|
|
51
|
+
}, onTimeupdate: (e2) => {
|
|
52
|
+
c2.currentTime = parseInt(e2.target.currentTime);
|
|
53
|
+
}, handleMute: m2 };
|
|
54
|
+
} }), S = { class: "nut-audio" }, b = { key: 0, class: "progress-wrapper" }, w = { class: "time" }, B = { class: "progress-bar-wrapper" }, C = c("div", { class: "custom-button" }, null, -1), P = { class: "time" }, E = { key: 1, class: "nut-audio-icon" }, D = ["controls", "src", "preload", "autoplay", "loop", "muted"];
|
|
55
|
+
var V = v(M, [["render", function(e2, a2, t2, n2, o2, r2) {
|
|
56
|
+
const f2 = u("nut-range"), v2 = u("nut-icon");
|
|
57
|
+
return i(), l("div", S, [e2.type == "progress" ? (i(), l("div", b, [c("div", w, d(e2.currentDuration), 1), c("div", B, [s(f2, { modelValue: e2.percent, "onUpdate:modelValue": a2[0] || (a2[0] = (a3) => e2.percent = a3), "hidden-range": "", onChange: e2.progressChange, "inactive-color": "#cccccc", "active-color": "#fa2c19" }, { button: p(() => [C]), _: 1 }, 8, ["modelValue", "onChange"])]), c("div", P, d(e2.duration), 1)])) : m("", true), e2.type == "icon" ? (i(), l("div", E, [c("div", { class: y(["nut-audio-icon-box", e2.playing ? "nut-audio-icon-play" : "nut-audio-icon-stop"]), onClick: a2[1] || (a2[1] = (...a3) => e2.changeStatus && e2.changeStatus(...a3)) }, [e2.playing ? (i(), g(v2, { key: 0, name: "service", class: "nut-icon-am-rotate nut-icon-am-infinite" })) : m("", true), e2.playing ? m("", true) : (i(), g(v2, { key: 1, name: "service" }))], 2)])) : m("", true), e2.type == "none" ? (i(), l("div", { key: 2, onClick: a2[2] || (a2[2] = (...a3) => e2.changeStatus && e2.changeStatus(...a3)) }, [h(e2.$slots, "default")])) : m("", true), e2.type != "none" ? h(e2.$slots, "default", { key: 3 }) : m("", true), c("audio", { class: "audioMain", controls: e2.type == "controls", ref: "audioRef", src: e2.url, preload: e2.preload, autoplay: e2.autoplay, loop: e2.loop, onTimeupdate: a2[3] || (a2[3] = (...a3) => e2.onTimeupdate && e2.onTimeupdate(...a3)), onEnded: a2[4] || (a2[4] = (...a3) => e2.audioEnd && e2.audioEnd(...a3)), muted: e2.hanMuted }, null, 40, D)]);
|
|
58
|
+
}]]);
|
|
59
|
+
export { V as default };
|
|
@@ -1,126 +1,18 @@
|
|
|
1
|
-
var __defProp = Object.defineProperty;
|
|
2
|
-
var __defProps = Object.defineProperties;
|
|
3
|
-
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
4
|
-
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
7
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
8
|
-
var __spreadValues = (a, b) => {
|
|
9
|
-
for (var prop in b || (b = {}))
|
|
10
|
-
if (__hasOwnProp.call(b, prop))
|
|
11
|
-
__defNormalProp(a, prop, b[prop]);
|
|
12
|
-
if (__getOwnPropSymbols)
|
|
13
|
-
for (var prop of __getOwnPropSymbols(b)) {
|
|
14
|
-
if (__propIsEnum.call(b, prop))
|
|
15
|
-
__defNormalProp(a, prop, b[prop]);
|
|
16
|
-
}
|
|
17
|
-
return a;
|
|
18
|
-
};
|
|
19
|
-
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
1
|
/*!
|
|
21
|
-
* @nutui/nutui v3.1.22
|
|
2
|
+
* @nutui/nutui v3.1.22 Fri Jun 24 2022 18:11:16 GMT+0800 (中国标准时间)
|
|
22
3
|
* (c) 2022 @jdf2e.
|
|
23
4
|
* Released under the MIT License.
|
|
24
5
|
*/
|
|
25
|
-
import { inject, reactive, ref, useSlots, toRefs, resolveComponent, openBlock, createElementBlock, createBlock, withCtx
|
|
26
|
-
import { c as
|
|
27
|
-
import { _ as
|
|
6
|
+
import { inject as t, reactive as e, ref as a, useSlots as o, toRefs as l, resolveComponent as s, openBlock as r, createElementBlock as u, createBlock as i, withCtx as n, createTextVNode as p, toDisplayString as d, createCommentVNode as c, renderSlot as m } from "vue";
|
|
7
|
+
import { c as y } from "./component.js";
|
|
8
|
+
import { _ as f } from "./plugin-vue_export-helper.js";
|
|
28
9
|
import "../locale/lang";
|
|
29
|
-
const { componentName, create } =
|
|
30
|
-
const
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
},
|
|
39
|
-
components: {},
|
|
40
|
-
emits: ["click"],
|
|
41
|
-
setup(props, { emit }) {
|
|
42
|
-
const audio = inject("audioParent");
|
|
43
|
-
const parent = reactive(audio);
|
|
44
|
-
const customSlot = ref(useSlots().default);
|
|
45
|
-
return __spreadProps(__spreadValues(__spreadValues({}, toRefs(props)), toRefs(parent)), { customSlot });
|
|
46
|
-
}
|
|
47
|
-
});
|
|
48
|
-
const _hoisted_1 = { class: "nut-audio-operate" };
|
|
49
|
-
const _hoisted_2 = /* @__PURE__ */ createTextVNode("\u5012\u9000");
|
|
50
|
-
const _hoisted_3 = /* @__PURE__ */ createTextVNode("\u5FEB\u8FDB");
|
|
51
|
-
const _hoisted_4 = /* @__PURE__ */ createTextVNode("\u9759\u97F3");
|
|
52
|
-
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
53
|
-
const _component_nut_button = resolveComponent("nut-button");
|
|
54
|
-
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
55
|
-
_ctx.type == "back" ? (openBlock(), createElementBlock("div", {
|
|
56
|
-
key: 0,
|
|
57
|
-
class: "nut-audio-operate-item",
|
|
58
|
-
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.fastBack && _ctx.fastBack(...args))
|
|
59
|
-
}, [
|
|
60
|
-
!_ctx.customSlot ? (openBlock(), createBlock(_component_nut_button, {
|
|
61
|
-
key: 0,
|
|
62
|
-
type: "primary",
|
|
63
|
-
size: "small"
|
|
64
|
-
}, {
|
|
65
|
-
default: withCtx(() => [
|
|
66
|
-
_hoisted_2
|
|
67
|
-
]),
|
|
68
|
-
_: 1
|
|
69
|
-
})) : createCommentVNode("", true),
|
|
70
|
-
renderSlot(_ctx.$slots, "default")
|
|
71
|
-
])) : createCommentVNode("", true),
|
|
72
|
-
_ctx.type == "play" ? (openBlock(), createElementBlock("div", {
|
|
73
|
-
key: 1,
|
|
74
|
-
class: "nut-audio-operate-item",
|
|
75
|
-
onClick: _cache[1] || (_cache[1] = (...args) => _ctx.changeStatus && _ctx.changeStatus(...args))
|
|
76
|
-
}, [
|
|
77
|
-
!_ctx.customSlot ? (openBlock(), createBlock(_component_nut_button, {
|
|
78
|
-
key: 0,
|
|
79
|
-
type: "primary",
|
|
80
|
-
size: "small"
|
|
81
|
-
}, {
|
|
82
|
-
default: withCtx(() => [
|
|
83
|
-
createTextVNode(toDisplayString(!_ctx.audioData.playing ? "\u5F00\u59CB" : "\u6682\u505C"), 1)
|
|
84
|
-
]),
|
|
85
|
-
_: 1
|
|
86
|
-
})) : createCommentVNode("", true),
|
|
87
|
-
renderSlot(_ctx.$slots, "default")
|
|
88
|
-
])) : createCommentVNode("", true),
|
|
89
|
-
_ctx.type == "forward" ? (openBlock(), createElementBlock("div", {
|
|
90
|
-
key: 2,
|
|
91
|
-
class: "nut-audio-operate-item",
|
|
92
|
-
onClick: _cache[2] || (_cache[2] = (...args) => _ctx.forward && _ctx.forward(...args))
|
|
93
|
-
}, [
|
|
94
|
-
!_ctx.customSlot ? (openBlock(), createBlock(_component_nut_button, {
|
|
95
|
-
key: 0,
|
|
96
|
-
type: "primary",
|
|
97
|
-
size: "small"
|
|
98
|
-
}, {
|
|
99
|
-
default: withCtx(() => [
|
|
100
|
-
_hoisted_3
|
|
101
|
-
]),
|
|
102
|
-
_: 1
|
|
103
|
-
})) : createCommentVNode("", true),
|
|
104
|
-
renderSlot(_ctx.$slots, "default")
|
|
105
|
-
])) : createCommentVNode("", true),
|
|
106
|
-
_ctx.type == "mute" ? (openBlock(), createElementBlock("div", {
|
|
107
|
-
key: 3,
|
|
108
|
-
class: "nut-audio-operate-item",
|
|
109
|
-
onClick: _cache[3] || (_cache[3] = (...args) => _ctx.handleMute && _ctx.handleMute(...args))
|
|
110
|
-
}, [
|
|
111
|
-
!_ctx.customSlot ? (openBlock(), createBlock(_component_nut_button, {
|
|
112
|
-
key: 0,
|
|
113
|
-
type: !_ctx.audioData.hanMuted ? "primary" : "default",
|
|
114
|
-
size: "small"
|
|
115
|
-
}, {
|
|
116
|
-
default: withCtx(() => [
|
|
117
|
-
_hoisted_4
|
|
118
|
-
]),
|
|
119
|
-
_: 1
|
|
120
|
-
}, 8, ["type"])) : createCommentVNode("", true),
|
|
121
|
-
renderSlot(_ctx.$slots, "default")
|
|
122
|
-
])) : createCommentVNode("", true)
|
|
123
|
-
]);
|
|
124
|
-
}
|
|
125
|
-
var index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
126
|
-
export { index as default };
|
|
10
|
+
const { componentName: k, create: v, translate: S } = y("audio-operate"), g = v({ props: { type: { type: String, default: () => "play" } }, components: {}, emits: ["click"], setup(s2, { emit: r2 }) {
|
|
11
|
+
const u2 = t("audioParent"), i2 = e(u2), n2 = a(o().default);
|
|
12
|
+
return { ...l(s2), ...l(i2), customSlot: n2, translate: S };
|
|
13
|
+
} }), h = { class: "nut-audio-operate" }, $ = p("\u5FEB\u8FDB");
|
|
14
|
+
var _ = f(g, [["render", function(t2, e2, a2, o2, l2, y2) {
|
|
15
|
+
const f2 = s("nut-button");
|
|
16
|
+
return r(), u("div", h, [t2.type == "back" ? (r(), u("div", { key: 0, class: "nut-audio-operate-item", onClick: e2[0] || (e2[0] = (...e3) => t2.fastBack && t2.fastBack(...e3)) }, [t2.customSlot ? c("", true) : (r(), i(f2, { key: 0, type: "primary", size: "small" }, { default: n(() => [p(d(t2.translate("back")), 1)]), _: 1 })), m(t2.$slots, "default")])) : c("", true), t2.type == "play" ? (r(), u("div", { key: 1, class: "nut-audio-operate-item", onClick: e2[1] || (e2[1] = (...e3) => t2.changeStatus && t2.changeStatus(...e3)) }, [t2.customSlot ? c("", true) : (r(), i(f2, { key: 0, type: "primary", size: "small" }, { default: n(() => [p(d(t2.audioData.playing ? `${t2.translate("pause")}` : `${t2.translate("start")}`), 1)]), _: 1 })), m(t2.$slots, "default")])) : c("", true), t2.type == "forward" ? (r(), u("div", { key: 2, class: "nut-audio-operate-item", onClick: e2[2] || (e2[2] = (...e3) => t2.forward && t2.forward(...e3)) }, [t2.customSlot ? c("", true) : (r(), i(f2, { key: 0, type: "primary", size: "small" }, { default: n(() => [$]), _: 1 })), m(t2.$slots, "default")])) : c("", true), t2.type == "mute" ? (r(), u("div", { key: 3, class: "nut-audio-operate-item", onClick: e2[3] || (e2[3] = (...e3) => t2.handleMute && t2.handleMute(...e3)) }, [t2.customSlot ? c("", true) : (r(), i(f2, { key: 0, type: t2.audioData.hanMuted ? "default" : "primary", size: "small" }, { default: n(() => [p(d(t2.translate("mute")), 1)]), _: 1 }, 8, ["type"])), m(t2.$slots, "default")])) : c("", true)]);
|
|
17
|
+
}]]);
|
|
18
|
+
export { _ as default };
|