@nutui/nutui 4.1.3 → 4.1.5-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +17 -0
- package/README.md +1 -1
- package/dist/nutui.es.js +1 -1
- package/dist/nutui.js +3215 -3175
- package/dist/nutui.umd.js +1 -1
- package/dist/packages/_es/ActionSheet.js +9 -7
- package/dist/packages/_es/Address.js +17 -17
- package/dist/packages/_es/Animate.js +2 -2
- package/dist/packages/_es/Audio.js +7 -7
- package/dist/packages/_es/Avatar.js +2 -2
- package/dist/packages/_es/AvatarGroup.js +1 -1
- package/dist/packages/_es/Badge.js +3 -3
- package/dist/packages/_es/Calendar.js +17 -17
- package/dist/packages/_es/CalendarItem.js +1 -1
- package/dist/packages/_es/Cascader.js +14 -14
- package/dist/packages/_es/Category.js +2 -2
- package/dist/packages/_es/CategoryPane.js +3 -3
- package/dist/packages/_es/Collapse.js +2 -2
- package/dist/packages/_es/CollapseItem.js +7 -7
- package/dist/packages/_es/Comment.js +3 -3
- package/dist/packages/_es/Countdown.js +6 -6
- package/dist/packages/_es/Countup.js +11 -11
- package/dist/packages/_es/DatePicker.js +5 -5
- package/dist/packages/_es/Dialog.js +3 -3
- package/dist/packages/_es/Drag.js +1 -1
- package/dist/packages/_es/Ecard.js +3 -3
- package/dist/packages/_es/Elevator.js +8 -8
- package/dist/packages/_es/Ellipsis.js +2 -2
- package/dist/packages/_es/FormItem.js +0 -1
- package/dist/packages/_es/GridItem.js +1 -1
- package/dist/packages/_es/Image.js +2 -2
- package/dist/packages/_es/ImagePreview.js +12 -12
- package/dist/packages/_es/InfiniteLoading.js +5 -5
- package/dist/packages/_es/Input.js +3 -3
- package/dist/packages/_es/Invoice.js +5 -5
- package/dist/packages/_es/List.js +11 -11
- package/dist/packages/_es/Menu.js +4 -4
- package/dist/packages/_es/MenuItem.js +9 -10
- package/dist/packages/_es/Navbar.js +7 -7
- package/dist/packages/_es/Noticebar.js +21 -15
- package/dist/packages/_es/Notify.js +1 -1
- package/dist/packages/_es/NumberKeyboard.js +2 -2
- package/dist/packages/_es/Overlay.js +3 -3
- package/dist/packages/_es/Picker.js +96 -57
- package/dist/packages/_es/Popover.js +6 -6
- package/dist/packages/_es/Popup.js +1 -1
- package/dist/packages/_es/PullRefresh.js +1 -1
- package/dist/packages/_es/Range.js +5 -5
- package/dist/packages/_es/Row.js +0 -1
- package/dist/packages/_es/Searchbar.js +10 -10
- package/dist/packages/_es/ShortPassword.js +9 -9
- package/dist/packages/_es/SideNavbar.js +2 -3
- package/dist/packages/_es/SideNavbarItem.js +2 -2
- package/dist/packages/_es/Signature.js +2 -2
- package/dist/packages/_es/Sku.js +24 -24
- package/dist/packages/_es/Step.js +1 -1
- package/dist/packages/_es/Steps.js +2 -2
- package/dist/packages/_es/Sticky.js +2 -2
- package/dist/packages/_es/SubSideNavbar.js +2 -2
- package/dist/packages/_es/Swipe.js +2 -2
- package/dist/packages/_es/SwipeGroup.js +2 -2
- package/dist/packages/_es/Swiper.js +4 -4
- package/dist/packages/_es/Switch.js +2 -2
- package/dist/packages/_es/Tabbar.js +2 -2
- package/dist/packages/_es/Table.js +6 -6
- package/dist/packages/_es/Tabs.js +13 -13
- package/dist/packages/_es/Textarea.js +3 -3
- package/dist/packages/_es/TimeDetail.js +1 -1
- package/dist/packages/_es/TimeSelect.js +1 -1
- package/dist/packages/_es/Tour.js +3 -3
- package/dist/packages/_es/Uploader.js +11 -11
- package/dist/packages/_es/Video.js +11 -11
- package/dist/packages/_es/{index-7fe29a2f.js → index-3032df15.js} +8 -9
- package/dist/packages/_es/{index-66fff386.js → index-ae1af668.js} +10 -10
- package/dist/packages/circleprogress/index.scss +3 -1
- package/dist/packages/formitem/index.scss +3 -1
- package/dist/packages/popover/index.scss +3 -1
- package/dist/packages/video/index.scss +4 -1
- package/dist/smartips/web-types.json +11 -2
- package/dist/style.css +1 -1
- package/dist/styles/themes/default.scss +48 -48
- package/dist/styles/themes/jdb.scss +48 -48
- package/dist/styles/themes/jddkh.scss +48 -48
- package/dist/styles/themes/jdt.scss +48 -48
- package/dist/styles/variables-jdb.scss +7 -1
- package/dist/styles/variables-jddkh.scss +7 -1
- package/dist/types/__VUE/actionsheet/index.vue.d.ts +1 -1
- package/dist/types/__VUE/address/index.vue.d.ts +3 -3
- package/dist/types/__VUE/addresslist/components/GeneralShell.vue.d.ts +60 -0
- package/dist/types/__VUE/addresslist/components/ItemContents.vue.d.ts +23 -0
- package/dist/types/__VUE/addresslist/index.vue.d.ts +2 -2
- package/dist/types/__VUE/audio/index.vue.d.ts +3 -3
- package/dist/types/__VUE/cascader/cascader-item.vue.d.ts +77 -0
- package/dist/types/__VUE/collapseitem/index.vue.d.ts +3 -3
- package/dist/types/__VUE/comment/components/CmtBottom.vue.d.ts +42 -0
- package/dist/types/__VUE/comment/components/CmtHeader.vue.d.ts +36 -0
- package/dist/types/__VUE/comment/components/CmtImages.vue.d.ts +59 -0
- package/dist/types/__VUE/comment/index.vue.d.ts +4 -4
- package/dist/types/__VUE/countdown/index.vue.d.ts +4 -4
- package/dist/types/__VUE/countup/index.vue.d.ts +3 -3
- package/dist/types/__VUE/datepicker/index.vue.d.ts +3 -3
- package/dist/types/__VUE/elevator/index.vue.d.ts +3 -3
- package/dist/types/__VUE/empty/index.vue.d.ts +1 -1
- package/dist/types/__VUE/formitem/index.vue.d.ts +2 -4
- package/dist/types/__VUE/grid/index.vue.d.ts +1 -1
- package/dist/types/__VUE/imagepreview/imagePreviewItem.vue.d.ts +126 -0
- package/dist/types/__VUE/imagepreview/index.vue.d.ts +3 -3
- package/dist/types/__VUE/indicator/index.vue.d.ts +1 -0
- package/dist/types/__VUE/infiniteloading/index.vue.d.ts +3 -3
- package/dist/types/__VUE/input/index.vue.d.ts +3 -3
- package/dist/types/__VUE/inputnumber/index.vue.d.ts +1 -1
- package/dist/types/__VUE/invoice/index.vue.d.ts +2 -2
- package/dist/types/__VUE/list/index.vue.d.ts +4 -4
- package/dist/types/__VUE/navbar/index.vue.d.ts +5 -5
- 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/picker/Column.vue.d.ts +134 -0
- package/dist/types/__VUE/picker/baseProps.d.ts +5 -1
- package/dist/types/__VUE/picker/common.d.ts +503 -11
- package/dist/types/__VUE/picker/doc.en.d.ts +4 -2
- package/dist/types/__VUE/picker/index.vue.d.ts +139 -8
- package/dist/types/__VUE/picker/types.d.ts +6 -0
- package/dist/types/__VUE/picker/usePicker.d.ts +7 -4
- package/dist/types/__VUE/popover/index.vue.d.ts +1 -1
- package/dist/types/__VUE/popup/index.vue.d.ts +4 -4
- package/dist/types/__VUE/range/index.vue.d.ts +8 -7
- package/dist/types/__VUE/rate/index.vue.d.ts +5 -5
- package/dist/types/__VUE/row/index.vue.d.ts +2 -2
- package/dist/types/__VUE/searchbar/index.vue.d.ts +7 -7
- package/dist/types/__VUE/sidenavbar/index.vue.d.ts +2 -2
- package/dist/types/__VUE/signature/index.vue.d.ts +1 -1
- package/dist/types/__VUE/sku/components/SkuHeader.vue.d.ts +17 -0
- package/dist/types/__VUE/sku/components/SkuOperate.vue.d.ts +60 -0
- package/dist/types/__VUE/sku/components/SkuSelect.vue.d.ts +25 -0
- package/dist/types/__VUE/sku/components/SkuStepper.vue.d.ts +56 -0
- package/dist/types/__VUE/sku/index.vue.d.ts +9 -9
- package/dist/types/__VUE/step/index.vue.d.ts +2 -2
- package/dist/types/__VUE/steps/index.vue.d.ts +2 -2
- package/dist/types/__VUE/subsidenavbar/index.vue.d.ts +2 -2
- package/dist/types/__VUE/swiper/index.vue.d.ts +2 -2
- package/dist/types/__VUE/tabbar/index.vue.d.ts +2 -2
- package/dist/types/__VUE/tabbaritem/index.vue.d.ts +3 -3
- package/dist/types/__VUE/table/common.d.ts +1 -1
- package/dist/types/__VUE/tabs/index.vue.d.ts +1 -1
- package/dist/types/__VUE/tag/index.vue.d.ts +3 -0
- package/dist/types/__VUE/textarea/index.vue.d.ts +1 -1
- package/dist/types/__VUE/toast/index.vue.d.ts +4 -4
- package/dist/types/__VUE/uploader/index.vue.d.ts +2 -2
- package/dist/types/index.d.ts +1 -1
- package/package.json +1 -1
|
@@ -19,7 +19,7 @@ var __spreadValues = (a, b) => {
|
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
20
|
import { c as createComponent } from "./component-0fbad28e.js";
|
|
21
21
|
import { useSlots, computed, resolveComponent, openBlock, createBlock, withCtx, createElementVNode, normalizeClass, createElementBlock, toDisplayString, createCommentVNode, renderSlot, Fragment, renderList, normalizeStyle } from "vue";
|
|
22
|
-
import { P as Popup, p as popupProps } from "./index-
|
|
22
|
+
import { P as Popup, p as popupProps } from "./index-3032df15.js";
|
|
23
23
|
import { Loading } from "@nutui/icons-vue";
|
|
24
24
|
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
25
25
|
import "../locale/lang";
|
|
@@ -91,8 +91,10 @@ const _sfc_main = create({
|
|
|
91
91
|
}
|
|
92
92
|
};
|
|
93
93
|
const close = (e) => {
|
|
94
|
-
|
|
95
|
-
|
|
94
|
+
if (props.closeAbled) {
|
|
95
|
+
emit("close", e);
|
|
96
|
+
emit("update:visible", false);
|
|
97
|
+
}
|
|
96
98
|
};
|
|
97
99
|
return {
|
|
98
100
|
slotDefault,
|
|
@@ -127,8 +129,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
127
129
|
visible: _ctx.visible,
|
|
128
130
|
position: "bottom",
|
|
129
131
|
round: "",
|
|
130
|
-
|
|
131
|
-
|
|
132
|
+
closeOnClickOverlay: _ctx.closeAbled,
|
|
133
|
+
onClickOverlay: _ctx.close
|
|
132
134
|
}, {
|
|
133
135
|
default: withCtx(() => [
|
|
134
136
|
createElementVNode("view", {
|
|
@@ -141,12 +143,12 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
141
143
|
_ctx.menuItems.length ? (openBlock(), createElementBlock("view", _hoisted_4, [
|
|
142
144
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.menuItems, (item, index2) => {
|
|
143
145
|
return openBlock(), createElementBlock("view", {
|
|
146
|
+
key: index2,
|
|
144
147
|
class: normalizeClass(["nut-action-sheet__item", {
|
|
145
148
|
"nut-action-sheet__item--disabled": item.disable,
|
|
146
149
|
"nut-action-sheet__item--loading": item.loading
|
|
147
150
|
}]),
|
|
148
151
|
style: normalizeStyle({ color: _ctx.isHighlight(item) || item.color }),
|
|
149
|
-
key: index2,
|
|
150
152
|
onClick: ($event) => _ctx.chooseItem(item, index2)
|
|
151
153
|
}, [
|
|
152
154
|
item.loading ? (openBlock(), createBlock(_component_Loading, {
|
|
@@ -166,7 +168,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
166
168
|
], 2)
|
|
167
169
|
]),
|
|
168
170
|
_: 3
|
|
169
|
-
}, 8, ["visible", "
|
|
171
|
+
}, 8, ["visible", "closeOnClickOverlay", "onClickOverlay"]);
|
|
170
172
|
}
|
|
171
173
|
const index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
172
174
|
export {
|
|
@@ -19,7 +19,7 @@ var __spreadValues = (a, b) => {
|
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
20
|
import { ref, reactive, computed, watch, toRefs, nextTick, resolveComponent, openBlock, createBlock, withCtx, createElementVNode, renderSlot, withDirectives, createVNode, vShow, toDisplayString, createElementBlock, Fragment, renderList, normalizeClass, createCommentVNode, normalizeStyle, createTextVNode } from "vue";
|
|
21
21
|
import { c as createComponent } from "./component-0fbad28e.js";
|
|
22
|
-
import { P as Popup, p as popupProps } from "./index-
|
|
22
|
+
import { P as Popup, p as popupProps } from "./index-3032df15.js";
|
|
23
23
|
import Elevator from "./Elevator.js";
|
|
24
24
|
import { Location, Location2, Check, Close, Left } from "@nutui/icons-vue";
|
|
25
25
|
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
@@ -95,7 +95,7 @@ const _sfc_main = create({
|
|
|
95
95
|
default: ""
|
|
96
96
|
}
|
|
97
97
|
}),
|
|
98
|
-
emits: ["update:visible", "update:modelValue", "type", "change", "selected", "close", "
|
|
98
|
+
emits: ["update:visible", "update:modelValue", "type", "change", "selected", "close", "closeMask", "switchModule"],
|
|
99
99
|
setup(props, { emit }) {
|
|
100
100
|
const regionLine = ref(null);
|
|
101
101
|
const tabRegion = ref(null);
|
|
@@ -279,7 +279,7 @@ const _sfc_main = create({
|
|
|
279
279
|
if (closeWay.value == "self") {
|
|
280
280
|
emit("close", callBackParams);
|
|
281
281
|
} else {
|
|
282
|
-
emit("
|
|
282
|
+
emit("closeMask", { closeWay });
|
|
283
283
|
}
|
|
284
284
|
emit("update:visible", false);
|
|
285
285
|
};
|
|
@@ -287,7 +287,7 @@ const _sfc_main = create({
|
|
|
287
287
|
const type = privateType.value;
|
|
288
288
|
privateType.value = type == "exist" ? "custom" : "exist";
|
|
289
289
|
initAddress();
|
|
290
|
-
emit("
|
|
290
|
+
emit("switchModule", { type: privateType.value });
|
|
291
291
|
};
|
|
292
292
|
const handleElevatorItem = (key, item) => {
|
|
293
293
|
nextAreaList(item);
|
|
@@ -342,8 +342,8 @@ const _hoisted_4 = {
|
|
|
342
342
|
class: "nut-address__custom"
|
|
343
343
|
};
|
|
344
344
|
const _hoisted_5 = {
|
|
345
|
-
|
|
346
|
-
|
|
345
|
+
ref: "tabRegion",
|
|
346
|
+
class: "nut-address__region"
|
|
347
347
|
};
|
|
348
348
|
const _hoisted_6 = ["onClick"];
|
|
349
349
|
const _hoisted_7 = {
|
|
@@ -355,8 +355,8 @@ const _hoisted_8 = {
|
|
|
355
355
|
class: "nut-address__detail"
|
|
356
356
|
};
|
|
357
357
|
const _hoisted_9 = {
|
|
358
|
-
|
|
359
|
-
|
|
358
|
+
ref: "scrollDom",
|
|
359
|
+
class: "nut-address__detail-list"
|
|
360
360
|
};
|
|
361
361
|
const _hoisted_10 = ["onClick"];
|
|
362
362
|
const _hoisted_11 = {
|
|
@@ -389,16 +389,16 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
389
389
|
const _component_Location2 = resolveComponent("Location2");
|
|
390
390
|
const _component_nut_popup = resolveComponent("nut-popup");
|
|
391
391
|
return openBlock(), createBlock(_component_nut_popup, {
|
|
392
|
+
visible: _ctx.showPopup,
|
|
393
|
+
"onUpdate:visible": _cache[3] || (_cache[3] = ($event) => _ctx.showPopup = $event),
|
|
392
394
|
position: "bottom",
|
|
393
395
|
"lock-scroll": _ctx.lockScroll,
|
|
394
396
|
round: _ctx.round,
|
|
397
|
+
teleportDisable: _ctx.teleportDisable,
|
|
398
|
+
teleport: _ctx.teleport,
|
|
395
399
|
onClose: _ctx.close,
|
|
396
400
|
onClickOverlay: _ctx.clickOverlay,
|
|
397
|
-
onOpen: _cache[
|
|
398
|
-
visible: _ctx.showPopup,
|
|
399
|
-
"onUpdate:visible": _cache[4] || (_cache[4] = ($event) => _ctx.showPopup = $event),
|
|
400
|
-
teleportDisable: _ctx.teleportDisable,
|
|
401
|
-
teleport: _ctx.teleport
|
|
401
|
+
onOpen: _cache[4] || (_cache[4] = ($event) => _ctx.closeWay = "self")
|
|
402
402
|
}, {
|
|
403
403
|
default: withCtx(() => [
|
|
404
404
|
createElementVNode("view", _hoisted_1, [
|
|
@@ -430,8 +430,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
430
430
|
createElementVNode("view", _hoisted_5, [
|
|
431
431
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.selectedRegion, (item, index2) => {
|
|
432
432
|
return openBlock(), createElementBlock("view", {
|
|
433
|
-
class: normalizeClass(["nut-address__region-item", index2 == _ctx.tabIndex ? "active" : ""]),
|
|
434
433
|
key: index2,
|
|
434
|
+
class: normalizeClass(["nut-address__region-item", index2 == _ctx.tabIndex ? "active" : ""]),
|
|
435
435
|
onClick: ($event) => _ctx.changeRegionTab(item, index2)
|
|
436
436
|
}, [
|
|
437
437
|
createElementVNode("view", null, toDisplayString(_ctx.getTabName(item, index2)), 1)
|
|
@@ -441,8 +441,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
441
441
|
createElementVNode("view", null, toDisplayString(_ctx.getTabName(null, _ctx.selectedRegion.length)), 1)
|
|
442
442
|
])) : createCommentVNode("", true),
|
|
443
443
|
createElementVNode("view", {
|
|
444
|
-
class: "nut-address__region-line",
|
|
445
444
|
ref: "regionLine",
|
|
445
|
+
class: "nut-address__region-line",
|
|
446
446
|
style: normalizeStyle({ left: _ctx.lineDistance + "px" })
|
|
447
447
|
}, null, 4)
|
|
448
448
|
], 512),
|
|
@@ -479,8 +479,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
479
479
|
createElementVNode("ul", _hoisted_14, [
|
|
480
480
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.existAddress, (item, index2) => {
|
|
481
481
|
return openBlock(), createElementBlock("li", {
|
|
482
|
-
class: normalizeClass(["nut-address__exist-group-item", item.selectedAddress ? "active" : ""]),
|
|
483
482
|
key: index2,
|
|
483
|
+
class: normalizeClass(["nut-address__exist-group-item", item.selectedAddress ? "active" : ""]),
|
|
484
484
|
onClick: ($event) => _ctx.selectedExist(item)
|
|
485
485
|
}, [
|
|
486
486
|
!item.selectedAddress ? renderSlot(_ctx.$slots, "unselected-icon", { key: 0 }, () => [
|
|
@@ -518,7 +518,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
518
518
|
])
|
|
519
519
|
]),
|
|
520
520
|
_: 3
|
|
521
|
-
}, 8, ["lock-scroll", "round", "
|
|
521
|
+
}, 8, ["visible", "lock-scroll", "round", "teleportDisable", "teleport", "onClose", "onClickOverlay"]);
|
|
522
522
|
}
|
|
523
523
|
const index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
524
524
|
export {
|
|
@@ -69,10 +69,10 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
69
69
|
return openBlock(), createElementBlock("view", _hoisted_1, [
|
|
70
70
|
createElementVNode("view", {
|
|
71
71
|
class: normalizeClass(_ctx.classes),
|
|
72
|
-
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.handleClick && _ctx.handleClick(...args)),
|
|
73
72
|
style: normalizeStyle({
|
|
74
73
|
animationDuration: _ctx.duration ? `${_ctx.duration}ms` : void 0
|
|
75
|
-
})
|
|
74
|
+
}),
|
|
75
|
+
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.handleClick && _ctx.handleClick(...args))
|
|
76
76
|
}, [
|
|
77
77
|
renderSlot(_ctx.$slots, "default")
|
|
78
78
|
], 6)
|
|
@@ -67,7 +67,7 @@ const _sfc_main = create({
|
|
|
67
67
|
Service,
|
|
68
68
|
[Range.name]: Range
|
|
69
69
|
},
|
|
70
|
-
emits: ["fastBack", "play", "forward", "ended", "changeProgress", "mute", "
|
|
70
|
+
emits: ["fastBack", "play", "forward", "ended", "changeProgress", "mute", "canPlay"],
|
|
71
71
|
setup(props, { emit, slots }) {
|
|
72
72
|
const audioRef = ref(null);
|
|
73
73
|
const audioData = reactive({
|
|
@@ -109,7 +109,7 @@ const _sfc_main = create({
|
|
|
109
109
|
}
|
|
110
110
|
audioData.second = audioR.duration;
|
|
111
111
|
audioData.duration = formatSeconds(audioR.duration);
|
|
112
|
-
emit("
|
|
112
|
+
emit("canPlay", e);
|
|
113
113
|
};
|
|
114
114
|
const onTimeupdate = (e) => {
|
|
115
115
|
audioData.currentTime = parseInt(e.target.currentTime);
|
|
@@ -223,9 +223,9 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
223
223
|
modelValue: _ctx.percent,
|
|
224
224
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => _ctx.percent = $event),
|
|
225
225
|
"hidden-range": "",
|
|
226
|
-
onChange: _ctx.progressChange,
|
|
227
226
|
"inactive-color": "#cccccc",
|
|
228
|
-
"active-color": "#fa2c19"
|
|
227
|
+
"active-color": "#fa2c19",
|
|
228
|
+
onChange: _ctx.progressChange
|
|
229
229
|
}, {
|
|
230
230
|
button: withCtx(() => [
|
|
231
231
|
_hoisted_5
|
|
@@ -254,17 +254,17 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
254
254
|
])) : createCommentVNode("", true),
|
|
255
255
|
_ctx.type != "none" ? renderSlot(_ctx.$slots, "default", { key: 3 }) : createCommentVNode("", true),
|
|
256
256
|
createElementVNode("audio", {
|
|
257
|
+
ref: "audioRef",
|
|
257
258
|
class: "audioMain",
|
|
258
259
|
controls: _ctx.type == "controls",
|
|
259
|
-
ref: "audioRef",
|
|
260
260
|
src: _ctx.url,
|
|
261
261
|
preload: _ctx.preload,
|
|
262
262
|
autoplay: _ctx.autoplay,
|
|
263
263
|
loop: _ctx.loop,
|
|
264
|
+
muted: _ctx.hanMuted,
|
|
264
265
|
onTimeupdate: _cache[3] || (_cache[3] = (...args) => _ctx.onTimeupdate && _ctx.onTimeupdate(...args)),
|
|
265
266
|
onCanplay: _cache[4] || (_cache[4] = (...args) => _ctx.onCanplay && _ctx.onCanplay(...args)),
|
|
266
|
-
onEnded: _cache[5] || (_cache[5] = (...args) => _ctx.audioEnd && _ctx.audioEnd(...args))
|
|
267
|
-
muted: _ctx.hanMuted
|
|
267
|
+
onEnded: _cache[5] || (_cache[5] = (...args) => _ctx.audioEnd && _ctx.audioEnd(...args))
|
|
268
268
|
}, null, 40, _hoisted_8)
|
|
269
269
|
]);
|
|
270
270
|
}
|
|
@@ -55,9 +55,9 @@ const _sfc_main = create({
|
|
|
55
55
|
});
|
|
56
56
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
57
57
|
return openBlock(), createElementBlock("view", {
|
|
58
|
+
ref: "avatarRef",
|
|
58
59
|
style: normalizeStyle(_ctx.styles),
|
|
59
|
-
class: normalizeClass(_ctx.classes)
|
|
60
|
-
ref: "avatarRef"
|
|
60
|
+
class: normalizeClass(_ctx.classes)
|
|
61
61
|
}, [
|
|
62
62
|
renderSlot(_ctx.$slots, "default")
|
|
63
63
|
], 6);
|
|
@@ -120,8 +120,8 @@ const _sfc_main = create({
|
|
|
120
120
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
121
121
|
const _component_nut_avatar = resolveComponent("nut-avatar");
|
|
122
122
|
return openBlock(), createElementBlock("view", {
|
|
123
|
-
class: "nut-avatar-group",
|
|
124
123
|
ref: "avatarGroupRef",
|
|
124
|
+
class: "nut-avatar-group",
|
|
125
125
|
style: normalizeStyle(_ctx.styles)
|
|
126
126
|
}, [
|
|
127
127
|
renderSlot(_ctx.$slots, "default"),
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { reactive, computed, openBlock, createElementBlock, withDirectives, createElementVNode, normalizeStyle, renderSlot, vShow,
|
|
1
|
+
import { reactive, computed, openBlock, createElementBlock, withDirectives, createElementVNode, normalizeStyle, renderSlot, vShow, normalizeClass, toDisplayString } from "vue";
|
|
2
2
|
import { c as createComponent } from "./component-0fbad28e.js";
|
|
3
3
|
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
4
4
|
import "../locale/lang";
|
|
@@ -82,9 +82,9 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
82
82
|
]),
|
|
83
83
|
renderSlot(_ctx.$slots, "default"),
|
|
84
84
|
withDirectives(createElementVNode("view", {
|
|
85
|
-
textContent: toDisplayString(_ctx.content),
|
|
86
85
|
class: normalizeClass(["nut-badge__content nut-badge__content--sup", { "nut-badge__content--dot": _ctx.dot, "nut-badge__content--bubble": !_ctx.dot && _ctx.bubble }]),
|
|
87
|
-
style: normalizeStyle(_ctx.stl)
|
|
86
|
+
style: normalizeStyle(_ctx.stl),
|
|
87
|
+
textContent: toDisplayString(_ctx.content)
|
|
88
88
|
}, null, 14, _hoisted_2), [
|
|
89
89
|
[vShow, !_ctx.hidden && (_ctx.content || _ctx.dot)]
|
|
90
90
|
])
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { computed, ref, resolveComponent, openBlock, createBlock, mergeProps, withCtx, createVNode, createSlots, renderSlot } from "vue";
|
|
2
2
|
import { c as createComponent } from "./component-0fbad28e.js";
|
|
3
|
-
import { C as CalendarItem, U as Utils } from "./index-
|
|
4
|
-
import { P as Popup } from "./index-
|
|
3
|
+
import { C as CalendarItem, U as Utils } from "./index-ae1af668.js";
|
|
4
|
+
import { P as Popup } from "./index-3032df15.js";
|
|
5
5
|
import { u as useExpose } from "./index-79c5dc33.js";
|
|
6
6
|
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
7
7
|
import "../locale/lang";
|
|
@@ -148,9 +148,9 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
148
148
|
round: "",
|
|
149
149
|
closeable: ""
|
|
150
150
|
}, _ctx.$attrs, {
|
|
151
|
+
style: { height: "85vh" },
|
|
151
152
|
onClickOverlay: _ctx.closePopup,
|
|
152
|
-
onClickCloseIcon: _ctx.closePopup
|
|
153
|
-
style: { height: "85vh" }
|
|
153
|
+
onClickCloseIcon: _ctx.closePopup
|
|
154
154
|
}), {
|
|
155
155
|
default: withCtx(() => [
|
|
156
156
|
createVNode(_component_nut_calendar_item, {
|
|
@@ -162,10 +162,6 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
162
162
|
"default-value": _ctx.defaultValue,
|
|
163
163
|
"start-date": _ctx.startDate,
|
|
164
164
|
"end-date": _ctx.endDate,
|
|
165
|
-
onUpdate: _ctx.update,
|
|
166
|
-
onClose: _ctx.close,
|
|
167
|
-
onChoose: _ctx.choose,
|
|
168
|
-
onSelect: _ctx.select,
|
|
169
165
|
"confirm-text": _ctx.confirmText,
|
|
170
166
|
"start-text": _ctx.startText,
|
|
171
167
|
"end-text": _ctx.endText,
|
|
@@ -173,7 +169,11 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
173
169
|
"show-title": _ctx.showTitle,
|
|
174
170
|
"show-sub-title": _ctx.showSubTitle,
|
|
175
171
|
"to-date-animation": _ctx.toDateAnimation,
|
|
176
|
-
"first-day-of-week": _ctx.firstDayOfWeek
|
|
172
|
+
"first-day-of-week": _ctx.firstDayOfWeek,
|
|
173
|
+
onUpdate: _ctx.update,
|
|
174
|
+
onClose: _ctx.close,
|
|
175
|
+
onChoose: _ctx.choose,
|
|
176
|
+
onSelect: _ctx.select
|
|
177
177
|
}, createSlots({ _: 2 }, [
|
|
178
178
|
_ctx.showTopBtn ? {
|
|
179
179
|
name: "btn",
|
|
@@ -209,31 +209,31 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
209
209
|
]),
|
|
210
210
|
key: "3"
|
|
211
211
|
} : void 0
|
|
212
|
-
]), 1032, ["type", "is-auto-back-fill", "poppable", "title", "default-value", "start-date", "end-date", "
|
|
212
|
+
]), 1032, ["type", "is-auto-back-fill", "poppable", "title", "default-value", "start-date", "end-date", "confirm-text", "start-text", "end-text", "show-today", "show-title", "show-sub-title", "to-date-animation", "first-day-of-week", "onUpdate", "onClose", "onChoose", "onSelect"])
|
|
213
213
|
]),
|
|
214
214
|
_: 3
|
|
215
215
|
}, 16, ["visible", "onClickOverlay", "onClickCloseIcon"])) : (openBlock(), createBlock(_component_nut_calendar_item, {
|
|
216
216
|
key: 1,
|
|
217
|
+
ref: "calendarRef",
|
|
217
218
|
type: _ctx.type,
|
|
218
219
|
"is-auto-back-fill": _ctx.isAutoBackFill,
|
|
219
220
|
poppable: _ctx.poppable,
|
|
220
221
|
title: _ctx.title,
|
|
221
|
-
ref: "calendarRef",
|
|
222
222
|
"confirm-text": _ctx.confirmText,
|
|
223
223
|
"start-text": _ctx.startText,
|
|
224
224
|
"end-text": _ctx.endText,
|
|
225
225
|
"default-value": _ctx.defaultValue,
|
|
226
226
|
"start-date": _ctx.startDate,
|
|
227
227
|
"end-date": _ctx.endDate,
|
|
228
|
-
onUpdate: _ctx.update,
|
|
229
|
-
onClose: _ctx.close,
|
|
230
|
-
onChoose: _ctx.choose,
|
|
231
|
-
onSelect: _ctx.select,
|
|
232
228
|
"show-title": _ctx.showTitle,
|
|
233
229
|
"show-sub-title": _ctx.showSubTitle,
|
|
234
230
|
"to-date-animation": _ctx.toDateAnimation,
|
|
235
231
|
"show-today": _ctx.showToday,
|
|
236
|
-
"first-day-of-week": _ctx.firstDayOfWeek
|
|
232
|
+
"first-day-of-week": _ctx.firstDayOfWeek,
|
|
233
|
+
onUpdate: _ctx.update,
|
|
234
|
+
onClose: _ctx.close,
|
|
235
|
+
onChoose: _ctx.choose,
|
|
236
|
+
onSelect: _ctx.select
|
|
237
237
|
}, createSlots({ _: 2 }, [
|
|
238
238
|
_ctx.showTopBtn ? {
|
|
239
239
|
name: "btn",
|
|
@@ -269,7 +269,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
269
269
|
]),
|
|
270
270
|
key: "3"
|
|
271
271
|
} : void 0
|
|
272
|
-
]), 1032, ["type", "is-auto-back-fill", "poppable", "title", "confirm-text", "start-text", "end-text", "default-value", "start-date", "end-date", "
|
|
272
|
+
]), 1032, ["type", "is-auto-back-fill", "poppable", "title", "confirm-text", "start-text", "end-text", "default-value", "start-date", "end-date", "show-title", "show-sub-title", "to-date-animation", "show-today", "first-day-of-week", "onUpdate", "onClose", "onChoose", "onSelect"]));
|
|
273
273
|
}
|
|
274
274
|
const index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
275
275
|
export {
|
|
@@ -55,7 +55,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
55
55
|
});
|
|
56
56
|
};
|
|
57
57
|
import { computed, ref, watch, resolveComponent, openBlock, createBlock, withCtx, createElementBlock, Fragment, renderList, createElementVNode, normalizeClass, toDisplayString, createCommentVNode, createVNode } from "vue";
|
|
58
|
-
import { P as Popup, p as popupProps } from "./index-
|
|
58
|
+
import { P as Popup, p as popupProps } from "./index-3032df15.js";
|
|
59
59
|
import { c as createComponent } from "./component-0fbad28e.js";
|
|
60
60
|
import { Loading, Checklist } from "@nutui/icons-vue";
|
|
61
61
|
import Tabs from "./Tabs.js";
|
|
@@ -438,17 +438,17 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
438
438
|
const _component_nut_tab_pane = resolveComponent("nut-tab-pane");
|
|
439
439
|
const _component_nut_tabs = resolveComponent("nut-tabs");
|
|
440
440
|
return openBlock(), createBlock(_component_nut_tabs, {
|
|
441
|
-
class: "nut-cascader",
|
|
442
441
|
modelValue: _ctx.tabsCursor,
|
|
443
442
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => _ctx.tabsCursor = $event),
|
|
444
|
-
|
|
445
|
-
"title-scroll": ""
|
|
443
|
+
class: "nut-cascader",
|
|
444
|
+
"title-scroll": "",
|
|
445
|
+
onClick: _ctx.handleTabClick
|
|
446
446
|
}, {
|
|
447
447
|
default: withCtx(() => [
|
|
448
448
|
!_ctx.initLoading && _ctx.panes.length ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(_ctx.panes, (pane, index2) => {
|
|
449
449
|
return openBlock(), createBlock(_component_nut_tab_pane, {
|
|
450
|
-
|
|
451
|
-
|
|
450
|
+
key: index2,
|
|
451
|
+
title: _ctx.formatTabTitle(pane)
|
|
452
452
|
}, {
|
|
453
453
|
default: withCtx(() => [
|
|
454
454
|
createElementVNode("view", _hoisted_1$1, [
|
|
@@ -583,8 +583,6 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
583
583
|
innerHTML: _ctx.title
|
|
584
584
|
}, null, 8, _hoisted_1)) : createCommentVNode("", true),
|
|
585
585
|
createVNode(_component_nut_cascader_item, {
|
|
586
|
-
onChange: _ctx.onChange,
|
|
587
|
-
onPathChange: _ctx.onPathChange,
|
|
588
586
|
modelValue: _ctx.innerValue,
|
|
589
587
|
options: _ctx.options,
|
|
590
588
|
lazy: _ctx.lazy,
|
|
@@ -593,14 +591,14 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
593
591
|
"text-key": _ctx.textKey,
|
|
594
592
|
"children-key": _ctx.childrenKey,
|
|
595
593
|
"convert-config": _ctx.convertConfig,
|
|
596
|
-
visible: _ctx.innerVisible
|
|
597
|
-
|
|
594
|
+
visible: _ctx.innerVisible,
|
|
595
|
+
onChange: _ctx.onChange,
|
|
596
|
+
onPathChange: _ctx.onPathChange
|
|
597
|
+
}, null, 8, ["modelValue", "options", "lazy", "lazy-load", "value-key", "text-key", "children-key", "convert-config", "visible", "onChange", "onPathChange"])
|
|
598
598
|
]),
|
|
599
599
|
_: 1
|
|
600
600
|
}, 8, ["visible", "closeable", "close-icon-position"])) : (openBlock(), createBlock(_component_nut_cascader_item, {
|
|
601
601
|
key: 1,
|
|
602
|
-
onChange: _ctx.onChange,
|
|
603
|
-
onPathChange: _ctx.onPathChange,
|
|
604
602
|
modelValue: _ctx.innerValue,
|
|
605
603
|
options: _ctx.options,
|
|
606
604
|
lazy: _ctx.lazy,
|
|
@@ -609,8 +607,10 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
609
607
|
"text-key": _ctx.textKey,
|
|
610
608
|
"children-key": _ctx.childrenKey,
|
|
611
609
|
"convert-config": _ctx.convertConfig,
|
|
612
|
-
visible: _ctx.innerVisible
|
|
613
|
-
|
|
610
|
+
visible: _ctx.innerVisible,
|
|
611
|
+
onChange: _ctx.onChange,
|
|
612
|
+
onPathChange: _ctx.onPathChange
|
|
613
|
+
}, null, 8, ["modelValue", "options", "lazy", "lazy-load", "value-key", "text-key", "children-key", "convert-config", "visible", "onChange", "onPathChange"]));
|
|
614
614
|
}
|
|
615
615
|
const index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
616
616
|
export {
|
|
@@ -40,8 +40,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
40
40
|
_ctx.type == "classify" || _ctx.type == "text" ? (openBlock(), createElementBlock("div", _hoisted_3, [
|
|
41
41
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.category, (item, index2) => {
|
|
42
42
|
return openBlock(), createElementBlock("div", {
|
|
43
|
-
|
|
44
|
-
|
|
43
|
+
key: index2,
|
|
44
|
+
class: "nut-category__cateListLeft"
|
|
45
45
|
}, [
|
|
46
46
|
createElementVNode("div", {
|
|
47
47
|
class: normalizeClass([_ctx.checkIndex == index2 ? "nut-category__cateListItemChecked" : "nut-category__cateListItem"]),
|
|
@@ -68,8 +68,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
68
68
|
(item == null ? void 0 : item.catType) == 1 ? (openBlock(), createElementBlock("div", _hoisted_4, [
|
|
69
69
|
(openBlock(true), createElementBlock(Fragment, null, renderList(item.childCateList, (sku, key) => {
|
|
70
70
|
return openBlock(), createElementBlock("div", {
|
|
71
|
-
class: "nut-category-pane__childItem",
|
|
72
71
|
key,
|
|
72
|
+
class: "nut-category-pane__childItem",
|
|
73
73
|
onClick: ($event) => _ctx.onChange(sku)
|
|
74
74
|
}, [
|
|
75
75
|
createElementVNode("img", {
|
|
@@ -90,8 +90,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
90
90
|
(item == null ? void 0 : item.catType) == 1 ? (openBlock(), createElementBlock("div", _hoisted_10, [
|
|
91
91
|
(openBlock(true), createElementBlock(Fragment, null, renderList(item.childCateList, (sku, key) => {
|
|
92
92
|
return openBlock(), createElementBlock("div", {
|
|
93
|
-
class: "nut-category-pane__childItem",
|
|
94
93
|
key,
|
|
94
|
+
class: "nut-category-pane__childItem",
|
|
95
95
|
onClick: ($event) => _ctx.onChange(sku)
|
|
96
96
|
}, [
|
|
97
97
|
createElementVNode("div", _hoisted_12, toDisplayString(sku == null ? void 0 : sku.catName), 1)
|
|
@@ -104,8 +104,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
104
104
|
_ctx.type == "custom" ? (openBlock(), createElementBlock("div", _hoisted_13, [
|
|
105
105
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.customCategory, (sku, key) => {
|
|
106
106
|
return openBlock(), createElementBlock("div", {
|
|
107
|
-
class: "nut-category-pane__skuName",
|
|
108
107
|
key,
|
|
108
|
+
class: "nut-category-pane__skuName",
|
|
109
109
|
onClick: ($event) => _ctx.onChange(sku)
|
|
110
110
|
}, toDisplayString(sku == null ? void 0 : sku.catName), 9, _hoisted_14);
|
|
111
111
|
}), 128))
|
|
@@ -73,8 +73,8 @@ const _sfc_main = create({
|
|
|
73
73
|
});
|
|
74
74
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
75
75
|
return openBlock(), createElementBlock("view", {
|
|
76
|
-
|
|
77
|
-
|
|
76
|
+
ref: "collapseDom",
|
|
77
|
+
class: normalizeClass(_ctx.classes)
|
|
78
78
|
}, [
|
|
79
79
|
renderSlot(_ctx.$slots, "default")
|
|
80
80
|
], 2);
|
|
@@ -125,8 +125,8 @@ const _hoisted_7 = {
|
|
|
125
125
|
};
|
|
126
126
|
const _hoisted_8 = { class: "nut-collapse__item-extraWrapper__extraRender" };
|
|
127
127
|
const _hoisted_9 = {
|
|
128
|
-
|
|
129
|
-
|
|
128
|
+
ref: "contentRef",
|
|
129
|
+
class: "nut-collapse__item-wrapper__content"
|
|
130
130
|
};
|
|
131
131
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
132
132
|
return openBlock(), createElementBlock("view", {
|
|
@@ -140,8 +140,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
140
140
|
createElementVNode("view", _hoisted_2, [
|
|
141
141
|
_ctx.$slots.title ? renderSlot(_ctx.$slots, "title", { key: 0 }) : (openBlock(), createElementBlock("view", {
|
|
142
142
|
key: 1,
|
|
143
|
-
|
|
144
|
-
|
|
143
|
+
class: "nut-collapse-item__title-mtitle",
|
|
144
|
+
innerHTML: _ctx.title
|
|
145
145
|
}, null, 8, _hoisted_3)),
|
|
146
146
|
_ctx.label ? (openBlock(), createElementBlock("view", _hoisted_4, toDisplayString(_ctx.label), 1)) : createCommentVNode("", true)
|
|
147
147
|
])
|
|
@@ -150,8 +150,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
150
150
|
renderSlot(_ctx.$slots, "value")
|
|
151
151
|
])) : (openBlock(), createElementBlock("view", {
|
|
152
152
|
key: 1,
|
|
153
|
-
|
|
154
|
-
|
|
153
|
+
class: "nut-collapse-item__title-sub",
|
|
154
|
+
innerHTML: _ctx.value
|
|
155
155
|
}, null, 8, _hoisted_6)),
|
|
156
156
|
createElementVNode("view", {
|
|
157
157
|
class: normalizeClass(["nut-collapse-item__title-icon", { "nut-collapse-item__title-icon--expanded": _ctx.expanded }]),
|
|
@@ -166,8 +166,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
166
166
|
])
|
|
167
167
|
])) : createCommentVNode("", true),
|
|
168
168
|
createElementVNode("view", {
|
|
169
|
-
class: "nut-collapse__item-wrapper",
|
|
170
169
|
ref: "wrapperRef",
|
|
170
|
+
class: "nut-collapse__item-wrapper",
|
|
171
171
|
style: normalizeStyle({
|
|
172
172
|
willChange: "height",
|
|
173
173
|
height: _ctx.wrapperHeight
|
|
@@ -183,8 +183,8 @@ function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
183
183
|
}, [
|
|
184
184
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.videos, (itV, index2) => {
|
|
185
185
|
return openBlock(), createElementBlock("view", {
|
|
186
|
-
class: "nut-comment-images__item nut-comment-images__item--video",
|
|
187
186
|
key: itV.id,
|
|
187
|
+
class: "nut-comment-images__item nut-comment-images__item--video",
|
|
188
188
|
onClick: ($event) => _ctx.showImages("video", index2)
|
|
189
189
|
}, [
|
|
190
190
|
createElementVNode("img", {
|
|
@@ -269,8 +269,8 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
269
269
|
const _component_MoreX = resolveComponent("MoreX");
|
|
270
270
|
return openBlock(), createElementBlock("view", _hoisted_1$1, [
|
|
271
271
|
createElementVNode("view", {
|
|
272
|
-
|
|
273
|
-
|
|
272
|
+
class: "nut-comment-bottom__lable",
|
|
273
|
+
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.handleClick && _ctx.handleClick(...args))
|
|
274
274
|
}, [
|
|
275
275
|
_ctx.type != "complex" ? (openBlock(), createElementBlock("span", _hoisted_2$1, toDisplayString(_ctx.info.size), 1)) : createCommentVNode("", true)
|
|
276
276
|
]),
|
|
@@ -76,7 +76,7 @@ const _sfc_main = create({
|
|
|
76
76
|
default: 0
|
|
77
77
|
}
|
|
78
78
|
},
|
|
79
|
-
emits: ["input", "
|
|
79
|
+
emits: ["input", "onEnd", "onRestart", "onPaused", "update:modelValue"],
|
|
80
80
|
setup(props, { emit, slots }) {
|
|
81
81
|
const state = reactive({
|
|
82
82
|
restTime: 0,
|
|
@@ -115,7 +115,7 @@ const _sfc_main = create({
|
|
|
115
115
|
if (!remainTime) {
|
|
116
116
|
state.counting = false;
|
|
117
117
|
pause();
|
|
118
|
-
emit("
|
|
118
|
+
emit("onEnd");
|
|
119
119
|
}
|
|
120
120
|
if (remainTime > 0) {
|
|
121
121
|
tick();
|
|
@@ -176,7 +176,7 @@ const _sfc_main = create({
|
|
|
176
176
|
} else if (format.includes("SS")) {
|
|
177
177
|
format = format.replace("SS", msC.slice(0, 2));
|
|
178
178
|
} else if (format.includes("S")) {
|
|
179
|
-
format = format.replace("
|
|
179
|
+
format = format.replace("S", msC.slice(0, 1));
|
|
180
180
|
}
|
|
181
181
|
}
|
|
182
182
|
return format;
|
|
@@ -186,13 +186,13 @@ const _sfc_main = create({
|
|
|
186
186
|
state.counting = true;
|
|
187
187
|
state.handleEndTime = Date.now() + Number(state.restTime);
|
|
188
188
|
tick();
|
|
189
|
-
emit("
|
|
189
|
+
emit("onRestart", state.restTime);
|
|
190
190
|
}
|
|
191
191
|
};
|
|
192
192
|
const pause = () => {
|
|
193
193
|
cancelAnimationFrame(state.timer);
|
|
194
194
|
state.counting = false;
|
|
195
|
-
emit("
|
|
195
|
+
emit("onPaused", state.restTime);
|
|
196
196
|
};
|
|
197
197
|
const reset = () => {
|
|
198
198
|
if (!props.autoStart) {
|
|
@@ -228,7 +228,7 @@ const _sfc_main = create({
|
|
|
228
228
|
state.handleEndTime = Date.now() + Number(state.restTime);
|
|
229
229
|
tick();
|
|
230
230
|
}
|
|
231
|
-
emit("
|
|
231
|
+
emit("onRestart", state.restTime);
|
|
232
232
|
}
|
|
233
233
|
}
|
|
234
234
|
);
|