@nutui/nutui 4.3.13 → 4.3.14-beta.3
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/README.md +30 -30
- package/dist/nutui.es.js +1 -1
- package/dist/nutui.js +2854 -2844
- package/dist/nutui.umd.js +1 -1
- package/dist/packages/addresslist/AddressList.js +2 -2
- package/dist/packages/audio/Audio.js +9 -10
- package/dist/packages/audiooperate/AudioOperate.js +2 -2
- package/dist/packages/cascader/Cascader.js +3 -4
- package/dist/packages/comment/Comment.js +8 -11
- package/dist/packages/dialog/Dialog.js +4 -1
- package/dist/packages/elevator/Elevator.js +2 -2
- package/dist/packages/invoice/Invoice.js +2 -2
- package/dist/packages/locale/index.d.ts +1 -1
- package/dist/packages/numberkeyboard/NumberKeyboard.js +3 -5
- package/dist/packages/step/Step.js +13 -14
- package/dist/packages/swiper/Swiper.js +19 -1
- package/dist/packages/video/Video.js +11 -13
- package/dist/smartips/web-types.json +1 -1
- package/dist/types/__VUE/actionsheet/index.vue.d.ts +496 -8
- package/dist/types/__VUE/address/index.vue.d.ts +865 -56
- package/dist/types/__VUE/addresslist/components/GeneralShell.vue.d.ts +465 -7
- package/dist/types/__VUE/addresslist/components/ItemContents.vue.d.ts +117 -6
- package/dist/types/__VUE/addresslist/index.vue.d.ts +713 -6
- package/dist/types/__VUE/animate/animate.vue.d.ts +5 -5
- package/dist/types/__VUE/audio/index.vue.d.ts +229 -28
- package/dist/types/__VUE/audiooperate/index.vue.d.ts +205 -15
- package/dist/types/__VUE/avatar/index.vue.d.ts +6 -6
- package/dist/types/__VUE/avatarcropper/index.vue.d.ts +319 -19
- package/dist/types/__VUE/avatargroup/index.vue.d.ts +55 -7
- package/dist/types/__VUE/backtop/backtop.vue.d.ts +6 -6
- package/dist/types/__VUE/badge/badge.vue.d.ts +5 -5
- package/dist/types/__VUE/barrage/index.vue.d.ts +7 -7
- package/dist/types/__VUE/button/button.vue.d.ts +5 -5
- package/dist/types/__VUE/calendar/index.vue.d.ts +647 -8
- package/dist/types/__VUE/calendarcard/calendar-card.vue.d.ts +9 -24
- package/dist/types/__VUE/calendaritem/index.vue.d.ts +52 -52
- package/dist/types/__VUE/card/index.vue.d.ts +256 -4
- package/dist/types/__VUE/cascader/cascader-item.vue.d.ts +453 -10
- package/dist/types/__VUE/cascader/index.vue.d.ts +950 -10
- package/dist/types/__VUE/category/index.vue.d.ts +7 -7
- package/dist/types/__VUE/categorypane/index.vue.d.ts +5 -5
- package/dist/types/__VUE/cell/cell.vue.d.ts +5 -5
- package/dist/types/__VUE/cellgroup/cell-group.vue.d.ts +4 -4
- package/dist/types/__VUE/checkbox/index.vue.d.ts +6 -6
- package/dist/types/__VUE/checkboxgroup/index.vue.d.ts +7 -7
- package/dist/types/__VUE/circleprogress/circle-progress.vue.d.ts +5 -5
- package/dist/types/__VUE/col/col.vue.d.ts +4 -4
- package/dist/types/__VUE/collapse/collapse.vue.d.ts +5 -5
- package/dist/types/__VUE/collapseitem/collapse-item.vue.d.ts +4 -4
- package/dist/types/__VUE/comment/components/CmtBottom.vue.d.ts +174 -8
- package/dist/types/__VUE/comment/components/CmtHeader.vue.d.ts +218 -6
- package/dist/types/__VUE/comment/components/CmtImages.vue.d.ts +73 -18
- package/dist/types/__VUE/comment/index.vue.d.ts +627 -16
- package/dist/types/__VUE/comment/type.d.ts +10 -0
- package/dist/types/__VUE/configprovider/index.vue.d.ts +6 -6
- package/dist/types/__VUE/countdown/countdown.vue.d.ts +8 -8
- package/dist/types/__VUE/countup/index.vue.d.ts +46 -46
- package/dist/types/__VUE/datepicker/index.vue.d.ts +265 -9
- package/dist/types/__VUE/dialog/index.vue.d.ts +631 -9
- package/dist/types/__VUE/divider/divider.vue.d.ts +4 -4
- package/dist/types/__VUE/drag/index.vue.d.ts +6 -6
- package/dist/types/__VUE/ecard/index.vue.d.ts +255 -10
- package/dist/types/__VUE/elevator/index.vue.d.ts +24 -17
- package/dist/types/__VUE/ellipsis/index.vue.d.ts +10 -10
- package/dist/types/__VUE/empty/empty.vue.d.ts +4 -4
- package/dist/types/__VUE/fixednav/index.vue.d.ts +231 -7
- package/dist/types/__VUE/form/form.vue.d.ts +6 -6
- package/dist/types/__VUE/formitem/form-item.vue.d.ts +4 -4
- package/dist/types/__VUE/grid/grid.vue.d.ts +4 -4
- package/dist/types/__VUE/griditem/grid-item.vue.d.ts +5 -5
- package/dist/types/__VUE/image/image.vue.d.ts +6 -6
- package/dist/types/__VUE/imagepreview/imagePreviewItem.vue.d.ts +155 -14
- package/dist/types/__VUE/imagepreview/index.vue.d.ts +916 -11
- package/dist/types/__VUE/indicator/indicator.vue.d.ts +4 -4
- package/dist/types/__VUE/infiniteloading/index.vue.d.ts +68 -12
- package/dist/types/__VUE/input/input.vue.d.ts +11 -11
- package/dist/types/__VUE/inputnumber/input-number.vue.d.ts +10 -10
- package/dist/types/__VUE/invoice/invoice.vue.d.ts +5 -5
- package/dist/types/__VUE/layout/layout.vue.d.ts +1 -1
- package/dist/types/__VUE/list/index.vue.d.ts +19 -13
- package/dist/types/__VUE/menu/index.vue.d.ts +117 -6
- package/dist/types/__VUE/menuitem/index.vue.d.ts +494 -6
- package/dist/types/__VUE/navbar/navbar.vue.d.ts +5 -5
- package/dist/types/__VUE/noticebar/index.vue.d.ts +136 -20
- package/dist/types/__VUE/notify/index.vue.d.ts +441 -8
- package/dist/types/__VUE/numberkeyboard/index.vue.d.ts +442 -9
- package/dist/types/__VUE/overlay/overlay.vue.d.ts +6 -6
- package/dist/types/__VUE/pagination/index.vue.d.ts +9 -9
- package/dist/types/__VUE/picker/Column.vue.d.ts +29 -22
- package/dist/types/__VUE/picker/index.vue.d.ts +138 -8
- package/dist/types/__VUE/picker/usePicker.d.ts +3 -3
- package/dist/types/__VUE/popover/index.vue.d.ts +443 -10
- package/dist/types/__VUE/popup/index.vue.d.ts +234 -10
- package/dist/types/__VUE/price/price.vue.d.ts +4 -4
- package/dist/types/__VUE/progress/progress.vue.d.ts +4 -4
- package/dist/types/__VUE/pullrefresh/index.vue.d.ts +76 -8
- package/dist/types/__VUE/radio/radio.vue.d.ts +4 -4
- package/dist/types/__VUE/radiogroup/radio-group.vue.d.ts +5 -5
- package/dist/types/__VUE/range/index.vue.d.ts +25 -25
- package/dist/types/__VUE/rate/rate.vue.d.ts +5 -5
- package/dist/types/__VUE/row/row.vue.d.ts +4 -4
- package/dist/types/__VUE/searchbar/index.vue.d.ts +9 -9
- package/dist/types/__VUE/shortpassword/index.vue.d.ts +496 -8
- package/dist/types/__VUE/sidenavbar/index.vue.d.ts +11 -7
- package/dist/types/__VUE/sidenavbaritem/index.vue.d.ts +4 -4
- package/dist/types/__VUE/signature/index.vue.d.ts +201 -11
- package/dist/types/__VUE/skeleton/skeleton.vue.d.ts +4 -4
- package/dist/types/__VUE/sku/components/SkuHeader.vue.d.ts +82 -5
- package/dist/types/__VUE/sku/components/SkuOperate.vue.d.ts +6 -6
- package/dist/types/__VUE/sku/components/SkuSelect.vue.d.ts +13 -6
- package/dist/types/__VUE/sku/components/SkuStepper.vue.d.ts +252 -7
- package/dist/types/__VUE/sku/index.vue.d.ts +921 -7
- package/dist/types/__VUE/sku/type.d.ts +7 -0
- package/dist/types/__VUE/space/index.vue.d.ts +5 -5
- package/dist/types/__VUE/step/step.vue.d.ts +4 -4
- package/dist/types/__VUE/steps/steps.vue.d.ts +5 -5
- package/dist/types/__VUE/sticky/index.vue.d.ts +8 -8
- package/dist/types/__VUE/subsidenavbar/index.vue.d.ts +118 -7
- package/dist/types/__VUE/swipe/swipe.vue.d.ts +7 -7
- package/dist/types/__VUE/swipegroup/swipe-group.vue.d.ts +4 -4
- package/dist/types/__VUE/swiper/index.vue.d.ts +7 -7
- package/dist/types/__VUE/swiperitem/index.vue.d.ts +1 -1
- package/dist/types/__VUE/switch/switch.vue.d.ts +5 -5
- package/dist/types/__VUE/tabbar/tabbar.vue.d.ts +5 -5
- package/dist/types/__VUE/tabbaritem/tabbar-item.vue.d.ts +4 -4
- package/dist/types/__VUE/table/index.vue.d.ts +87 -7
- package/dist/types/__VUE/table/renderColumn.d.ts +5 -5
- package/dist/types/__VUE/tabpane/index.vue.d.ts +5 -5
- package/dist/types/__VUE/tabs/hooks.d.ts +1 -1
- package/dist/types/__VUE/tabs/index.vue.d.ts +122 -10
- package/dist/types/__VUE/tag/tag.vue.d.ts +5 -5
- package/dist/types/__VUE/textarea/textarea.vue.d.ts +6 -6
- package/dist/types/__VUE/timedetail/index.vue.d.ts +8 -8
- package/dist/types/__VUE/timepannel/index.vue.d.ts +7 -7
- package/dist/types/__VUE/timeselect/index.vue.d.ts +439 -6
- package/dist/types/__VUE/toast/index.vue.d.ts +7 -7
- package/dist/types/__VUE/tour/index.vue.d.ts +671 -9
- package/dist/types/__VUE/trendarrow/trend-arrow.vue.d.ts +4 -4
- package/dist/types/__VUE/uploader/index.vue.d.ts +480 -7
- package/dist/types/__VUE/video/index.vue.d.ts +43 -19
- package/dist/types/__VUE/watermark/watermark.vue.d.ts +4 -4
- package/dist/types/index.d.ts +1 -1
- package/dist/types/locale/index.d.ts +1 -1
- package/dist/types/utils/useRelation/useInject.d.ts +1 -1
- package/dist/types/utils/useScrollParent/index.d.ts +1 -1
- package/dist/types/utils/useTouch/index.d.ts +9 -9
- package/package.json +2 -2
|
@@ -267,9 +267,9 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
267
267
|
type: "danger",
|
|
268
268
|
onClick: _ctx.swipeDelClick
|
|
269
269
|
}, {
|
|
270
|
-
default: withCtx(() => [
|
|
270
|
+
default: withCtx(() => _cache[5] || (_cache[5] = [
|
|
271
271
|
createTextVNode("删除")
|
|
272
|
-
]),
|
|
272
|
+
])),
|
|
273
273
|
_: 1
|
|
274
274
|
}, 8, ["onClick"])
|
|
275
275
|
])
|
|
@@ -203,13 +203,12 @@ const _hoisted_2 = {
|
|
|
203
203
|
};
|
|
204
204
|
const _hoisted_3 = { class: "nut-audio__time" };
|
|
205
205
|
const _hoisted_4 = { class: "nut-audio__bar" };
|
|
206
|
-
const _hoisted_5 =
|
|
207
|
-
const _hoisted_6 = {
|
|
208
|
-
const _hoisted_7 = {
|
|
206
|
+
const _hoisted_5 = { class: "nut-audio__time" };
|
|
207
|
+
const _hoisted_6 = {
|
|
209
208
|
key: 1,
|
|
210
209
|
class: "nut-audio__icon"
|
|
211
210
|
};
|
|
212
|
-
const
|
|
211
|
+
const _hoisted_7 = ["controls", "src", "preload", "autoplay", "loop", "muted"];
|
|
213
212
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
214
213
|
const _component_nut_range = resolveComponent("nut-range");
|
|
215
214
|
const _component_Service = resolveComponent("Service");
|
|
@@ -225,15 +224,15 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
225
224
|
"active-color": "#fa2c19",
|
|
226
225
|
onChange: _ctx.progressChange
|
|
227
226
|
}, {
|
|
228
|
-
button: withCtx(() => [
|
|
229
|
-
|
|
230
|
-
]),
|
|
227
|
+
button: withCtx(() => _cache[6] || (_cache[6] = [
|
|
228
|
+
createElementVNode("div", { class: "nut-audio__button--custom" }, null, -1)
|
|
229
|
+
])),
|
|
231
230
|
_: 1
|
|
232
231
|
}, 8, ["modelValue", "onChange"])
|
|
233
232
|
]),
|
|
234
|
-
createElementVNode("div",
|
|
233
|
+
createElementVNode("div", _hoisted_5, toDisplayString(_ctx.duration), 1)
|
|
235
234
|
])) : createCommentVNode("", true),
|
|
236
|
-
_ctx.type == "icon" ? (openBlock(), createElementBlock("div",
|
|
235
|
+
_ctx.type == "icon" ? (openBlock(), createElementBlock("div", _hoisted_6, [
|
|
237
236
|
createElementVNode("div", {
|
|
238
237
|
class: normalizeClass(["nut-audio__icon--box", _ctx.playing ? "nut-audio__icon--play" : "nut-audio__icon--stop"]),
|
|
239
238
|
onClick: _cache[1] || (_cache[1] = (...args) => _ctx.changeStatus && _ctx.changeStatus(...args))
|
|
@@ -263,7 +262,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
263
262
|
onTimeupdate: _cache[3] || (_cache[3] = (...args) => _ctx.onTimeupdate && _ctx.onTimeupdate(...args)),
|
|
264
263
|
onCanplay: _cache[4] || (_cache[4] = (...args) => _ctx.onCanplay && _ctx.onCanplay(...args)),
|
|
265
264
|
onEnded: _cache[5] || (_cache[5] = (...args) => _ctx.audioEnd && _ctx.audioEnd(...args))
|
|
266
|
-
}, null, 40,
|
|
265
|
+
}, null, 40, _hoisted_7)
|
|
267
266
|
]);
|
|
268
267
|
}
|
|
269
268
|
const index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
@@ -93,9 +93,9 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
93
93
|
type: "primary",
|
|
94
94
|
size: "small"
|
|
95
95
|
}, {
|
|
96
|
-
default: withCtx(() => [
|
|
96
|
+
default: withCtx(() => _cache[4] || (_cache[4] = [
|
|
97
97
|
createTextVNode("快进")
|
|
98
|
-
]),
|
|
98
|
+
])),
|
|
99
99
|
_: 1
|
|
100
100
|
})) : createCommentVNode("", true),
|
|
101
101
|
renderSlot(_ctx.$slots, "default")
|
|
@@ -422,7 +422,6 @@ const _hoisted_1$1 = {
|
|
|
422
422
|
};
|
|
423
423
|
const _hoisted_2 = ["aria-checked", "aria-disabled", "onClick"];
|
|
424
424
|
const _hoisted_3 = { class: "nut-cascader-item__title" };
|
|
425
|
-
const _hoisted_4 = /* @__PURE__ */ createElementVNode("view", { class: "nut-cascader-pane" }, null, -1);
|
|
426
425
|
function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
427
426
|
const _component_Loading = resolveComponent("Loading");
|
|
428
427
|
const _component_Checklist = resolveComponent("Checklist");
|
|
@@ -472,9 +471,9 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
472
471
|
key: 1,
|
|
473
472
|
title: "Loading..."
|
|
474
473
|
}, {
|
|
475
|
-
default: withCtx(() => [
|
|
476
|
-
|
|
477
|
-
]),
|
|
474
|
+
default: withCtx(() => _cache[1] || (_cache[1] = [
|
|
475
|
+
createElementVNode("view", { class: "nut-cascader-pane" }, null, -1)
|
|
476
|
+
])),
|
|
478
477
|
_: 1
|
|
479
478
|
}))
|
|
480
479
|
]),
|
|
@@ -166,10 +166,9 @@ const _sfc_main$2 = create$2({
|
|
|
166
166
|
});
|
|
167
167
|
const _hoisted_1$2 = ["onClick"];
|
|
168
168
|
const _hoisted_2$2 = ["src"];
|
|
169
|
-
const _hoisted_3$2 =
|
|
170
|
-
const _hoisted_4$2 = ["
|
|
171
|
-
const _hoisted_5 =
|
|
172
|
-
const _hoisted_6 = {
|
|
169
|
+
const _hoisted_3$2 = ["onClick"];
|
|
170
|
+
const _hoisted_4$2 = ["src"];
|
|
171
|
+
const _hoisted_5 = {
|
|
173
172
|
key: 0,
|
|
174
173
|
class: "nut-comment-images__mask"
|
|
175
174
|
};
|
|
@@ -187,13 +186,11 @@ function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
187
186
|
createElementVNode("img", {
|
|
188
187
|
src: itV.mainUrl
|
|
189
188
|
}, null, 8, _hoisted_2$2),
|
|
190
|
-
|
|
189
|
+
_cache[0] || (_cache[0] = createElementVNode("view", { class: "nut-comment-images__play" }, null, -1))
|
|
191
190
|
], 8, _hoisted_1$2);
|
|
192
191
|
}), 128)),
|
|
193
192
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.images, (itI, index2) => {
|
|
194
|
-
return openBlock(), createElementBlock(Fragment, {
|
|
195
|
-
key: itI.id
|
|
196
|
-
}, [
|
|
193
|
+
return openBlock(), createElementBlock(Fragment, { key: index2 }, [
|
|
197
194
|
_ctx.type == "multi" && _ctx.videos.length + index2 < 9 || _ctx.type != "multi" ? (openBlock(), createElementBlock("view", {
|
|
198
195
|
key: 0,
|
|
199
196
|
class: "nut-comment-images__item nut-comment-images__item--imgbox",
|
|
@@ -201,12 +198,12 @@ function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
201
198
|
}, [
|
|
202
199
|
createElementVNode("img", {
|
|
203
200
|
src: itI.smallImgUrl ? itI.smallImgUrl : itI.imgUrl
|
|
204
|
-
}, null, 8,
|
|
205
|
-
_ctx.type == "multi" && _ctx.totalImages.length > 9 && _ctx.videos.length + index2 > 7 ? (openBlock(), createElementBlock("view",
|
|
201
|
+
}, null, 8, _hoisted_4$2),
|
|
202
|
+
_ctx.type == "multi" && _ctx.totalImages.length > 9 && _ctx.videos.length + index2 > 7 ? (openBlock(), createElementBlock("view", _hoisted_5, [
|
|
206
203
|
createElementVNode("span", null, "共 " + toDisplayString(_ctx.totalImages.length) + " 张", 1),
|
|
207
204
|
createVNode(_component_Right, { style: { "width": "12px" } })
|
|
208
205
|
])) : createCommentVNode("", true)
|
|
209
|
-
], 8,
|
|
206
|
+
], 8, _hoisted_3$2)) : createCommentVNode("", true)
|
|
210
207
|
], 64);
|
|
211
208
|
}), 128))
|
|
212
209
|
], 2);
|
|
@@ -38,7 +38,7 @@ const _sfc_main = create({
|
|
|
38
38
|
props: __spreadProps(__spreadValues({}, popupProps), {
|
|
39
39
|
closeOnClickOverlay: {
|
|
40
40
|
type: Boolean,
|
|
41
|
-
default:
|
|
41
|
+
default: false
|
|
42
42
|
},
|
|
43
43
|
title: {
|
|
44
44
|
type: String,
|
|
@@ -146,7 +146,10 @@ const _sfc_main = create({
|
|
|
146
146
|
}
|
|
147
147
|
};
|
|
148
148
|
const onClickOverlay = () => {
|
|
149
|
+
console.log(1);
|
|
150
|
+
console.log(props.closeOnClickOverlay);
|
|
149
151
|
if (props.closeOnClickOverlay) {
|
|
152
|
+
console.log(2);
|
|
150
153
|
closed("");
|
|
151
154
|
}
|
|
152
155
|
};
|
|
@@ -197,7 +197,7 @@ const _hoisted_6 = { class: "nut-elevator__list__fixed-title" };
|
|
|
197
197
|
const _hoisted_7 = { class: "nut-elevator__bars__inner" };
|
|
198
198
|
const _hoisted_8 = ["data-index", "onClick"];
|
|
199
199
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
200
|
-
var _a, _b;
|
|
200
|
+
var _a, _b, _c, _d;
|
|
201
201
|
return openBlock(), createElementBlock("view", _hoisted_1, [
|
|
202
202
|
createElementVNode("view", {
|
|
203
203
|
ref: "listview",
|
|
@@ -240,7 +240,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
240
240
|
_ctx.indexList.length ? withDirectives((openBlock(), createElementBlock("view", {
|
|
241
241
|
key: 0,
|
|
242
242
|
class: "nut-elevator__code--current"
|
|
243
|
-
}, toDisplayString(_ctx.indexList[_ctx.codeIndex][_ctx.acceptKey]), 513)), [
|
|
243
|
+
}, toDisplayString((_d = (_c = _ctx.indexList) == null ? void 0 : _c[_ctx.codeIndex]) == null ? void 0 : _d[_ctx.acceptKey]), 513)), [
|
|
244
244
|
[vShow, _ctx.scrollStart]
|
|
245
245
|
]) : createCommentVNode("", true),
|
|
246
246
|
createElementVNode("view", {
|
|
@@ -107,9 +107,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
|
|
|
107
107
|
block: "",
|
|
108
108
|
onClick: submitFun
|
|
109
109
|
}, {
|
|
110
|
-
default: withCtx(() => [
|
|
110
|
+
default: withCtx(() => _cache[0] || (_cache[0] = [
|
|
111
111
|
createTextVNode("提交审批")
|
|
112
|
-
]),
|
|
112
|
+
])),
|
|
113
113
|
_: 1
|
|
114
114
|
})
|
|
115
115
|
])) : createCommentVNode("", true)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export type Lang = Record<string, any>;
|
|
2
2
|
export declare class Locale {
|
|
3
|
-
static currentLang: import("vue").Ref<string>;
|
|
3
|
+
static currentLang: import("vue").Ref<string, string>;
|
|
4
4
|
static languages(): Lang;
|
|
5
5
|
static use(lang: string, newLanguages?: any): void;
|
|
6
6
|
static merge(lang: string, newLanguages: any): void;
|
|
@@ -207,10 +207,6 @@ const _hoisted_10 = {
|
|
|
207
207
|
class: "nut-number-keyboard__sidebar"
|
|
208
208
|
};
|
|
209
209
|
const _hoisted_11 = { class: "nut-key__wrapper" };
|
|
210
|
-
const _hoisted_12 = /* @__PURE__ */ createElementVNode("img", { src: "https://img11.360buyimg.com/imagetools/jfs/t1/129395/8/12735/2030/5f61ac37E70cab338/fb477dc11f46056c.png" }, null, -1);
|
|
211
|
-
const _hoisted_13 = [
|
|
212
|
-
_hoisted_12
|
|
213
|
-
];
|
|
214
210
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
215
211
|
const _component_nut_popup = resolveComponent("nut-popup");
|
|
216
212
|
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
@@ -272,7 +268,9 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
272
268
|
onTouchstart: _cache[3] || (_cache[3] = (event) => _ctx.onTouchstart({ id: "delete", type: "delete" }, event)),
|
|
273
269
|
onTouchmove: _cache[4] || (_cache[4] = (event) => _ctx.onTouchMove(event)),
|
|
274
270
|
onTouchend: _cache[5] || (_cache[5] = (...args) => _ctx.onTouchEnd && _ctx.onTouchEnd(...args))
|
|
275
|
-
},
|
|
271
|
+
}, _cache[8] || (_cache[8] = [
|
|
272
|
+
createElementVNode("img", { src: "https://img11.360buyimg.com/imagetools/jfs/t1/129395/8/12735/2030/5f61ac37E70cab338/fb477dc11f46056c.png" }, null, -1)
|
|
273
|
+
]), 34)
|
|
276
274
|
]),
|
|
277
275
|
createElementVNode("div", {
|
|
278
276
|
class: "nut-key__wrapper nut-key__wrapper--finish",
|
|
@@ -22,19 +22,18 @@ import { u as useParent } from "../useParent-D6DiuxZZ.js";
|
|
|
22
22
|
import { S as STEPS_KEY } from "../types-1HzUV14W.js";
|
|
23
23
|
import { w as withInstall } from "../with-install-Ch3FF0uS.js";
|
|
24
24
|
const _hoisted_1 = { class: "nut-step-head" };
|
|
25
|
-
const _hoisted_2 =
|
|
26
|
-
const _hoisted_3 = {
|
|
27
|
-
const _hoisted_4 = {
|
|
25
|
+
const _hoisted_2 = { class: "nut-step-icon-inner" };
|
|
26
|
+
const _hoisted_3 = {
|
|
28
27
|
key: 0,
|
|
29
28
|
class: "nut-step-inner"
|
|
30
29
|
};
|
|
31
|
-
const
|
|
32
|
-
const
|
|
33
|
-
const
|
|
30
|
+
const _hoisted_4 = { class: "nut-step-main" };
|
|
31
|
+
const _hoisted_5 = { class: "nut-step-title" };
|
|
32
|
+
const _hoisted_6 = {
|
|
34
33
|
key: 0,
|
|
35
34
|
class: "nut-step-content"
|
|
36
35
|
};
|
|
37
|
-
const
|
|
36
|
+
const _hoisted_7 = ["innerHTML"];
|
|
38
37
|
const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({}, {
|
|
39
38
|
name: "NutStep"
|
|
40
39
|
}), {
|
|
@@ -67,26 +66,26 @@ const _sfc_main = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({
|
|
|
67
66
|
onClick: handleClickStep
|
|
68
67
|
}, [
|
|
69
68
|
createElementVNode("view", _hoisted_1, [
|
|
70
|
-
|
|
69
|
+
_cache[0] || (_cache[0] = createElementVNode("view", { class: "nut-step-line" }, null, -1)),
|
|
71
70
|
createElementVNode("view", {
|
|
72
71
|
class: normalizeClass(["nut-step-icon", [!dot.value ? "is-icon" : ""]])
|
|
73
72
|
}, [
|
|
74
|
-
createElementVNode("view",
|
|
73
|
+
createElementVNode("view", _hoisted_2, [
|
|
75
74
|
renderSlot(_ctx.$slots, "icon", {}, () => [
|
|
76
|
-
!dot.value ? (openBlock(), createElementBlock("view",
|
|
75
|
+
!dot.value ? (openBlock(), createElementBlock("view", _hoisted_3, toDisplayString(unref(index) + 1), 1)) : createCommentVNode("", true)
|
|
77
76
|
])
|
|
78
77
|
])
|
|
79
78
|
], 2)
|
|
80
79
|
]),
|
|
81
|
-
createElementVNode("view",
|
|
82
|
-
createElementVNode("view",
|
|
80
|
+
createElementVNode("view", _hoisted_4, [
|
|
81
|
+
createElementVNode("view", _hoisted_5, [
|
|
83
82
|
renderSlot(_ctx.$slots, "title", {}, () => [
|
|
84
83
|
createElementVNode("span", null, toDisplayString(_ctx.title), 1)
|
|
85
84
|
])
|
|
86
85
|
]),
|
|
87
|
-
_ctx.content || _ctx.$slots.content ? (openBlock(), createElementBlock("view",
|
|
86
|
+
_ctx.content || _ctx.$slots.content ? (openBlock(), createElementBlock("view", _hoisted_6, [
|
|
88
87
|
renderSlot(_ctx.$slots, "content", {}, () => [
|
|
89
|
-
createElementVNode("span", { innerHTML: _ctx.content }, null, 8,
|
|
88
|
+
createElementVNode("span", { innerHTML: _ctx.content }, null, 8, _hoisted_7)
|
|
90
89
|
])
|
|
91
90
|
])) : createCommentVNode("", true)
|
|
92
91
|
])
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ref, reactive, computed, provide, onDeactivated, onBeforeUnmount, watch, nextTick, openBlock, createElementBlock, createElementVNode, normalizeClass, normalizeStyle, renderSlot, Fragment, renderList, createCommentVNode } from "vue";
|
|
1
|
+
import { ref, reactive, computed, provide, onDeactivated, onBeforeUnmount, watch, nextTick, onMounted, onUnmounted, openBlock, createElementBlock, createElementVNode, normalizeClass, normalizeStyle, renderSlot, Fragment, renderList, createCommentVNode } from "vue";
|
|
2
2
|
import { c as createComponent } from "../component-DQf3CENX.js";
|
|
3
3
|
import { e as clamp } from "../util-D1pvnUYu.js";
|
|
4
4
|
import { u as useTouch } from "../index-I8tfW3Kf.js";
|
|
@@ -354,6 +354,24 @@ const _sfc_main = create({
|
|
|
354
354
|
+val > 0 ? autoplay() : stopAutoPlay();
|
|
355
355
|
}
|
|
356
356
|
);
|
|
357
|
+
const width = ref(window.innerWidth);
|
|
358
|
+
const height = ref(window.innerHeight);
|
|
359
|
+
const updateDimensions = () => {
|
|
360
|
+
width.value = window.innerWidth;
|
|
361
|
+
height.value = window.innerHeight;
|
|
362
|
+
};
|
|
363
|
+
watch([width, height], () => {
|
|
364
|
+
nextTick(() => {
|
|
365
|
+
init();
|
|
366
|
+
});
|
|
367
|
+
});
|
|
368
|
+
onMounted(() => {
|
|
369
|
+
window.addEventListener("resize", updateDimensions);
|
|
370
|
+
updateDimensions();
|
|
371
|
+
});
|
|
372
|
+
onUnmounted(() => {
|
|
373
|
+
window.removeEventListener("resize", updateDimensions);
|
|
374
|
+
});
|
|
357
375
|
return {
|
|
358
376
|
state,
|
|
359
377
|
classesInner,
|
|
@@ -353,17 +353,13 @@ const _hoisted_6 = {
|
|
|
353
353
|
ref: "progressBar",
|
|
354
354
|
class: "nut-video-controller__progress-value"
|
|
355
355
|
};
|
|
356
|
-
const _hoisted_7 =
|
|
357
|
-
const _hoisted_8 = [
|
|
358
|
-
_hoisted_7
|
|
359
|
-
];
|
|
360
|
-
const _hoisted_9 = {
|
|
356
|
+
const _hoisted_7 = {
|
|
361
357
|
ref: "playedBar",
|
|
362
358
|
class: "nut-video-controller__played"
|
|
363
359
|
};
|
|
364
|
-
const
|
|
365
|
-
const
|
|
366
|
-
const
|
|
360
|
+
const _hoisted_8 = { class: "nut-video-controller__total" };
|
|
361
|
+
const _hoisted_9 = { class: "nut-video-error" };
|
|
362
|
+
const _hoisted_10 = { class: "nut-video-error-tip" };
|
|
367
363
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
368
364
|
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
369
365
|
createElementVNode("video", {
|
|
@@ -418,11 +414,13 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
418
414
|
onTouchmove: _cache[4] || (_cache[4] = withModifiers(($event) => _ctx.touchSlidMove($event), ["stop", "prevent"])),
|
|
419
415
|
onTouchstart: _cache[5] || (_cache[5] = withModifiers(($event) => _ctx.touchSlidSrart(), ["stop"])),
|
|
420
416
|
onTouchend: _cache[6] || (_cache[6] = withModifiers(($event) => _ctx.touchSlidEnd($event), ["stop"]))
|
|
421
|
-
},
|
|
422
|
-
|
|
417
|
+
}, _cache[10] || (_cache[10] = [
|
|
418
|
+
createElementVNode("div", { class: "nut-video-controller__ball-move" }, null, -1)
|
|
419
|
+
]), 36),
|
|
420
|
+
createElementVNode("div", _hoisted_7, null, 512)
|
|
423
421
|
], 512)
|
|
424
422
|
]),
|
|
425
|
-
createElementVNode("div",
|
|
423
|
+
createElementVNode("div", _hoisted_8, toDisplayString(_ctx.videoSet.totalTime), 1),
|
|
426
424
|
createElementVNode("div", {
|
|
427
425
|
class: normalizeClass(["nut-video-controller__volume", { muted: _ctx.state.isMuted }]),
|
|
428
426
|
onClick: _cache[7] || (_cache[7] = (...args) => _ctx.handleMuted && _ctx.handleMuted(...args))
|
|
@@ -434,8 +432,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
434
432
|
], 2), [
|
|
435
433
|
[vShow, _ctx.showToolbox && !_ctx.isDisabled]
|
|
436
434
|
]),
|
|
437
|
-
withDirectives(createElementVNode("div",
|
|
438
|
-
createElementVNode("p",
|
|
435
|
+
withDirectives(createElementVNode("div", _hoisted_9, [
|
|
436
|
+
createElementVNode("p", _hoisted_10, toDisplayString(_ctx.translate("errorTip")), 1),
|
|
439
437
|
createElementVNode("p", {
|
|
440
438
|
class: "nut-video-error-retry",
|
|
441
439
|
onClick: _cache[9] || (_cache[9] = (...args) => _ctx.retry && _ctx.retry(...args))
|