@nutui/nutui 3.2.5 → 3.2.6-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -0
- package/README.md +18 -4
- package/dist/nutui.es.js +305 -209
- package/dist/nutui.umd.js +305 -209
- package/dist/packages/_es/ActionSheet.js +1 -1
- package/dist/packages/_es/Address.js +1 -1
- package/dist/packages/_es/AddressList.js +1 -1
- package/dist/packages/_es/Animate.js +1 -1
- package/dist/packages/_es/Audio.js +1 -1
- package/dist/packages/_es/AudioOperate.js +1 -1
- package/dist/packages/_es/Avatar.js +1 -1
- package/dist/packages/_es/AvatarGroup.js +1 -1
- package/dist/packages/_es/BackTop.js +1 -1
- package/dist/packages/_es/Badge.js +10 -6
- package/dist/packages/_es/Barrage.js +1 -1
- package/dist/packages/_es/Button.js +1 -1
- package/dist/packages/_es/Calendar.js +1 -1
- package/dist/packages/_es/CalendarItem.js +1 -1
- package/dist/packages/_es/Card.js +1 -1
- package/dist/packages/_es/Cascader.js +1 -1
- package/dist/packages/_es/Category.js +1 -1
- package/dist/packages/_es/CategoryPane.js +1 -1
- package/dist/packages/_es/Cell.js +1 -1
- package/dist/packages/_es/CellGroup.js +1 -1
- package/dist/packages/_es/Checkbox.js +1 -1
- package/dist/packages/_es/CheckboxGroup.js +1 -1
- package/dist/packages/_es/CircleProgress.js +1 -1
- package/dist/packages/_es/Col.js +1 -1
- package/dist/packages/_es/Collapse.js +1 -1
- package/dist/packages/_es/CollapseItem.js +1 -1
- package/dist/packages/_es/Comment.js +1 -1
- package/dist/packages/_es/ConfigProvider.js +1 -1
- package/dist/packages/_es/CountDown.js +1 -1
- package/dist/packages/_es/CountUp.js +1 -1
- package/dist/packages/_es/DatePicker.js +1 -1
- package/dist/packages/_es/Dialog.js +1 -1
- package/dist/packages/_es/Divider.js +1 -1
- package/dist/packages/_es/Drag.js +1 -1
- package/dist/packages/_es/Ecard.js +1 -1
- package/dist/packages/_es/Elevator.js +1 -1
- package/dist/packages/_es/Ellipsis.js +1 -1
- package/dist/packages/_es/Empty.js +1 -1
- package/dist/packages/_es/FixedNav.js +1 -1
- package/dist/packages/_es/Form.js +1 -1
- package/dist/packages/_es/FormItem.js +1 -1
- package/dist/packages/_es/Grid.js +1 -1
- package/dist/packages/_es/GridItem.js +1 -1
- package/dist/packages/_es/Icon.js +1 -1
- package/dist/packages/_es/Image.js +1 -1
- package/dist/packages/_es/ImagePreview.js +35 -19
- package/dist/packages/_es/Indicator.js +1 -1
- package/dist/packages/_es/InfiniteLoading.js +1 -1
- package/dist/packages/_es/Input.js +8 -4
- package/dist/packages/_es/InputNumber.js +1 -1
- package/dist/packages/_es/Invoice.js +1 -1
- package/dist/packages/_es/Layout.js +1 -1
- package/dist/packages/_es/List.js +1 -1
- package/dist/packages/_es/Menu.js +1 -1
- package/dist/packages/_es/MenuItem.js +1 -1
- package/dist/packages/_es/Navbar.js +1 -1
- package/dist/packages/_es/NoticeBar.js +5 -3
- package/dist/packages/_es/Notify.js +25 -36
- package/dist/packages/_es/NumberKeyboard.js +1 -1
- package/dist/packages/_es/OldPicker.js +1 -1
- package/dist/packages/_es/OverLay.js +1 -1
- package/dist/packages/_es/Pagination.js +1 -1
- package/dist/packages/_es/Picker.js +13 -6
- package/dist/packages/_es/Popover.js +1 -1
- package/dist/packages/_es/Popup.js +1 -1
- package/dist/packages/_es/Price.js +1 -1
- package/dist/packages/_es/Progress.js +1 -1
- package/dist/packages/_es/PullRefresh.js +1 -1
- package/dist/packages/_es/Radio.js +1 -1
- package/dist/packages/_es/RadioGroup.js +1 -1
- package/dist/packages/_es/Range.js +1 -1
- package/dist/packages/_es/Rate.js +1 -1
- package/dist/packages/_es/Row.js +1 -1
- package/dist/packages/_es/SearchBar.js +1 -1
- package/dist/packages/_es/ShortPassword.js +1 -1
- package/dist/packages/_es/SideNavBar.js +1 -1
- package/dist/packages/_es/SideNavBarItem.js +1 -1
- package/dist/packages/_es/Signature.js +1 -1
- package/dist/packages/_es/Skeleton.js +1 -1
- package/dist/packages/_es/Sku.js +1 -1
- package/dist/packages/_es/Step.js +1 -1
- package/dist/packages/_es/Steps.js +1 -1
- package/dist/packages/_es/Sticky.js +1 -1
- package/dist/packages/_es/SubSideNavBar.js +1 -1
- package/dist/packages/_es/Swipe.js +1 -1
- package/dist/packages/_es/Swiper.js +1 -1
- package/dist/packages/_es/SwiperItem.js +1 -1
- package/dist/packages/_es/Switch.js +1 -1
- package/dist/packages/_es/TabPane.js +1 -1
- package/dist/packages/_es/Tabbar.js +34 -5
- package/dist/packages/_es/TabbarItem.js +1 -1
- package/dist/packages/_es/Table.js +1 -1
- package/dist/packages/_es/Tabs.js +1 -1
- package/dist/packages/_es/Tag.js +1 -1
- package/dist/packages/_es/TextArea.js +1 -1
- package/dist/packages/_es/TimeDetail.js +1 -1
- package/dist/packages/_es/TimePannel.js +1 -1
- package/dist/packages/_es/TimeSelect.js +1 -1
- package/dist/packages/_es/Toast.js +1 -1
- package/dist/packages/_es/TrendArrow.js +1 -1
- package/dist/packages/_es/Uploader.js +1 -1
- package/dist/packages/_es/Video.js +48 -2
- package/dist/packages/_es/WaterMark.js +1 -1
- package/dist/packages/_es/common.js +1 -1
- package/dist/packages/_es/component.js +1 -1
- package/dist/packages/_es/index.js +1 -1
- package/dist/packages/_es/index2.js +1 -1
- package/dist/packages/_es/index3.js +1 -1
- package/dist/packages/_es/index4.js +1 -1
- package/dist/packages/_es/index5.js +1 -1
- package/dist/packages/_es/plugin-vue_export-helper.js +1 -1
- package/dist/packages/_es/pxCheck.js +1 -1
- package/dist/packages/_es/raf.js +1 -1
- package/dist/packages/checkbox/index.scss +1 -0
- package/dist/packages/locale/lang/baseLang.js +1 -1
- package/dist/packages/locale/lang/en-US.js +1 -1
- package/dist/packages/locale/lang/id-ID.js +1 -1
- package/dist/packages/locale/lang/index.js +1 -1
- package/dist/packages/locale/lang/zh-CN.js +1 -1
- package/dist/packages/locale/lang/zh-TW.js +1 -1
- package/dist/packages/menuitem/index.scss +12 -3
- package/dist/packages/signature/index.scss +4 -1
- package/dist/packages/swiperitem/index.scss +1 -1
- package/dist/smartips/attributes.json +9 -1
- package/dist/smartips/tags.json +3 -1
- package/dist/smartips/web-types.json +20 -2
- package/dist/style.css +1 -1
- package/dist/styles/themes/default.scss +53 -53
- package/dist/styles/themes/jdb.scss +53 -53
- package/dist/styles/themes/jddkh.scss +53 -53
- package/dist/styles/themes/jdt.scss +53 -53
- package/dist/types/__VUE/actionsheet/index.vue.d.ts +2 -2
- package/dist/types/__VUE/address/index.vue.d.ts +2 -2
- package/dist/types/__VUE/avatar/index.vue.d.ts +2 -2
- package/dist/types/__VUE/avatargroup/index.vue.d.ts +1 -1
- package/dist/types/__VUE/backtop/index.vue.d.ts +1 -1
- package/dist/types/__VUE/badge/index.vue.d.ts +1 -1
- package/dist/types/__VUE/button/index.vue.d.ts +1 -1
- package/dist/types/__VUE/calendar/index.vue.d.ts +1 -1
- package/dist/types/__VUE/cascader/index.vue.d.ts +1 -1
- package/dist/types/__VUE/cell/index.vue.d.ts +3 -3
- package/dist/types/__VUE/collapseitem/index.vue.d.ts +1 -1
- package/dist/types/__VUE/datepicker/index.vue.d.ts +1 -1
- package/dist/types/__VUE/dialog/index.vue.d.ts +2 -2
- package/dist/types/__VUE/divider/index.vue.d.ts +1 -1
- package/dist/types/__VUE/fixednav/index.vue.d.ts +2 -2
- package/dist/types/__VUE/grid/index.vue.d.ts +1 -1
- package/dist/types/__VUE/image/index.vue.d.ts +4 -4
- package/dist/types/__VUE/imagepreview/imagePreviewItem.vue.d.ts +1 -0
- package/dist/types/__VUE/imagepreview/index.vue.d.ts +10 -1
- package/dist/types/__VUE/infiniteloading/index.vue.d.ts +4 -4
- package/dist/types/__VUE/input/index.vue.d.ts +3 -3
- package/dist/types/__VUE/menu/index.vue.d.ts +1 -1
- package/dist/types/__VUE/navbar/index.vue.d.ts +1 -1
- package/dist/types/__VUE/noticebar/index.vue.d.ts +4 -3
- package/dist/types/__VUE/notify/index.vue.d.ts +8 -10
- package/dist/types/__VUE/numberkeyboard/index.vue.d.ts +1 -1
- package/dist/types/__VUE/oldpicker/index.vue.d.ts +2 -2
- package/dist/types/__VUE/picker/index.vue.d.ts +2 -2
- package/dist/types/__VUE/popover/index.vue.d.ts +4 -4
- package/dist/types/__VUE/popup/index.vue.d.ts +3 -3
- package/dist/types/__VUE/range/index.vue.d.ts +1 -1
- package/dist/types/__VUE/shortpassword/index.vue.d.ts +1 -1
- package/dist/types/__VUE/sku/index.vue.d.ts +2 -2
- package/dist/types/__VUE/step/index.vue.d.ts +1 -1
- package/dist/types/__VUE/swipe/index.vue.d.ts +2 -2
- package/dist/types/__VUE/tabbar/index.vue.d.ts +11 -0
- package/dist/types/__VUE/tabbaritem/index.vue.d.ts +1 -1
- package/dist/types/__VUE/toast/index.vue.d.ts +1 -1
- package/dist/types/__VUE/uploader/index.vue.d.ts +1 -1
- package/dist/types/__VUE/video/index.vue.d.ts +4 -2
- package/dist/types/__VUE/watermark/index.vue.d.ts +1 -1
- package/dist/types/index.d.ts +1 -1
- package/package.json +3 -2
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.2.
|
|
2
|
+
* @nutui/nutui v3.2.6-beta.2 Fri Nov 04 2022 17:24:29 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2022 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
|
-
import { reactive, computed, openBlock, createElementBlock, createElementVNode, renderSlot,
|
|
6
|
+
import { reactive, computed, openBlock, createElementBlock, withDirectives, createElementVNode, normalizeStyle, renderSlot, vShow, toDisplayString, normalizeClass } from "vue";
|
|
7
7
|
import { c as createComponent } from "./component.js";
|
|
8
8
|
import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
|
|
9
9
|
import "../locale/lang";
|
|
@@ -70,19 +70,23 @@ const _sfc_main = create({
|
|
|
70
70
|
}
|
|
71
71
|
});
|
|
72
72
|
const _hoisted_1 = { class: "nut-badge" };
|
|
73
|
-
const _hoisted_2 =
|
|
74
|
-
const _hoisted_3 = ["textContent"];
|
|
73
|
+
const _hoisted_2 = ["textContent"];
|
|
75
74
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
76
75
|
return openBlock(), createElementBlock("view", _hoisted_1, [
|
|
77
|
-
createElementVNode("view",
|
|
76
|
+
withDirectives(createElementVNode("view", {
|
|
77
|
+
class: "slot-icons",
|
|
78
|
+
style: normalizeStyle(_ctx.stl)
|
|
79
|
+
}, [
|
|
78
80
|
renderSlot(_ctx.$slots, "icons")
|
|
81
|
+
], 4), [
|
|
82
|
+
[vShow, !_ctx.hidden && !_ctx.dot]
|
|
79
83
|
]),
|
|
80
84
|
renderSlot(_ctx.$slots, "default"),
|
|
81
85
|
withDirectives(createElementVNode("view", {
|
|
82
86
|
textContent: toDisplayString(_ctx.content),
|
|
83
87
|
class: normalizeClass(["nut-badge__content sup", { "is-dot": _ctx.dot }]),
|
|
84
88
|
style: normalizeStyle(_ctx.stl)
|
|
85
|
-
}, null, 14,
|
|
89
|
+
}, null, 14, _hoisted_2), [
|
|
86
90
|
[vShow, !_ctx.hidden && (_ctx.content || _ctx.dot)]
|
|
87
91
|
])
|
|
88
92
|
]);
|
package/dist/packages/_es/Col.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.2.
|
|
2
|
+
* @nutui/nutui v3.2.6-beta.2 Fri Nov 04 2022 17:24:29 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2022 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
@@ -174,6 +174,9 @@ const _sfc_main$1 = create$1({
|
|
|
174
174
|
}
|
|
175
175
|
};
|
|
176
176
|
const checkTap = () => {
|
|
177
|
+
if (fingerNum == 1 && props.video && props.video.source) {
|
|
178
|
+
return;
|
|
179
|
+
}
|
|
177
180
|
if (fingerNum > 1) {
|
|
178
181
|
return;
|
|
179
182
|
}
|
|
@@ -195,6 +198,7 @@ const _sfc_main$1 = create$1({
|
|
|
195
198
|
}
|
|
196
199
|
};
|
|
197
200
|
const onTouchEnd = (event) => {
|
|
201
|
+
console.log("ontauchend");
|
|
198
202
|
let stopPropagation = false;
|
|
199
203
|
if (state.moving || state.zooming) {
|
|
200
204
|
stopPropagation = true;
|
|
@@ -232,6 +236,10 @@ const _sfc_main$1 = create$1({
|
|
|
232
236
|
}
|
|
233
237
|
};
|
|
234
238
|
const clamp = (num, min, max) => Math.min(Math.max(num, min), max);
|
|
239
|
+
const closeSwiper = (event) => {
|
|
240
|
+
console.log("\u5173\u95ED\u89C6\u9891");
|
|
241
|
+
emit("close");
|
|
242
|
+
};
|
|
235
243
|
watch(() => props.initNo, resetScale);
|
|
236
244
|
watch(
|
|
237
245
|
() => props.show,
|
|
@@ -248,45 +256,49 @@ const _sfc_main$1 = create$1({
|
|
|
248
256
|
onTouchEnd,
|
|
249
257
|
getDistance,
|
|
250
258
|
imageStyle,
|
|
251
|
-
imageLoad
|
|
259
|
+
imageLoad,
|
|
260
|
+
closeSwiper
|
|
252
261
|
};
|
|
253
262
|
}
|
|
254
263
|
});
|
|
255
264
|
const _hoisted_1$1 = ["src"];
|
|
256
|
-
const _hoisted_2$1 = {
|
|
257
|
-
key: 1,
|
|
258
|
-
class: "nut-imagepreview-box"
|
|
259
|
-
};
|
|
260
265
|
function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
261
266
|
const _component_nut_video = resolveComponent("nut-video");
|
|
262
267
|
const _component_nut_swiper_item = resolveComponent("nut-swiper-item");
|
|
263
|
-
return openBlock(), createBlock(_component_nut_swiper_item, {
|
|
264
|
-
onTouchstart: _ctx.onTouchStart,
|
|
265
|
-
onTouchmove: _ctx.onTouchMove,
|
|
266
|
-
onTouchend: _ctx.onTouchEnd,
|
|
267
|
-
onTouchcancel: _ctx.onTouchEnd
|
|
268
|
-
}, {
|
|
268
|
+
return openBlock(), createBlock(_component_nut_swiper_item, { onClick: _ctx.closeSwiper }, {
|
|
269
269
|
default: withCtx(() => [
|
|
270
270
|
_ctx.image && _ctx.image.src ? (openBlock(), createElementBlock("view", {
|
|
271
271
|
key: 0,
|
|
272
272
|
style: normalizeStyle(_ctx.imageStyle),
|
|
273
|
-
class: "nut-imagepreview-box"
|
|
273
|
+
class: "nut-imagepreview-box",
|
|
274
|
+
onTouchstart: _cache[1] || (_cache[1] = (...args) => _ctx.onTouchStart && _ctx.onTouchStart(...args)),
|
|
275
|
+
onTouchmove: _cache[2] || (_cache[2] = (...args) => _ctx.onTouchMove && _ctx.onTouchMove(...args)),
|
|
276
|
+
onTouchend: _cache[3] || (_cache[3] = (...args) => _ctx.onTouchEnd && _ctx.onTouchEnd(...args)),
|
|
277
|
+
onTouchcancel: _cache[4] || (_cache[4] = (...args) => _ctx.onTouchEnd && _ctx.onTouchEnd(...args))
|
|
274
278
|
}, [
|
|
275
279
|
createElementVNode("img", {
|
|
276
280
|
src: _ctx.image.src,
|
|
277
281
|
class: "nut-imagepreview-img",
|
|
278
282
|
onLoad: _cache[0] || (_cache[0] = (...args) => _ctx.imageLoad && _ctx.imageLoad(...args))
|
|
279
283
|
}, null, 40, _hoisted_1$1)
|
|
280
|
-
],
|
|
281
|
-
_ctx.video && _ctx.video.source ? (openBlock(), createElementBlock("view",
|
|
284
|
+
], 36)) : createCommentVNode("", true),
|
|
285
|
+
_ctx.video && _ctx.video.source ? (openBlock(), createElementBlock("view", {
|
|
286
|
+
key: 1,
|
|
287
|
+
class: "nut-imagepreview-box",
|
|
288
|
+
onClick: _cache[5] || (_cache[5] = (...args) => _ctx.videoClick && _ctx.videoClick(...args)),
|
|
289
|
+
onTouchstart: _cache[6] || (_cache[6] = (...args) => _ctx.onTouchStart && _ctx.onTouchStart(...args)),
|
|
290
|
+
onTouchmove: _cache[7] || (_cache[7] = (...args) => _ctx.onTouchMove && _ctx.onTouchMove(...args)),
|
|
291
|
+
onTouchend: _cache[8] || (_cache[8] = (...args) => _ctx.onTouchEnd && _ctx.onTouchEnd(...args)),
|
|
292
|
+
onTouchcancel: _cache[9] || (_cache[9] = (...args) => _ctx.onTouchEnd && _ctx.onTouchEnd(...args))
|
|
293
|
+
}, [
|
|
282
294
|
createVNode(_component_nut_video, {
|
|
283
295
|
source: _ctx.video.source,
|
|
284
296
|
options: _ctx.video.options
|
|
285
297
|
}, null, 8, ["source", "options"])
|
|
286
|
-
])) : createCommentVNode("", true)
|
|
298
|
+
], 32)) : createCommentVNode("", true)
|
|
287
299
|
]),
|
|
288
300
|
_: 1
|
|
289
|
-
}, 8, ["
|
|
301
|
+
}, 8, ["onClick"]);
|
|
290
302
|
}
|
|
291
303
|
var ImagePreviewItem = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render$1]]);
|
|
292
304
|
const { create } = createComponent("imagepreview");
|
|
@@ -352,6 +364,10 @@ const _sfc_main = create({
|
|
|
352
364
|
maxZoom: {
|
|
353
365
|
type: Number,
|
|
354
366
|
default: 3
|
|
367
|
+
},
|
|
368
|
+
isLoop: {
|
|
369
|
+
type: Boolean,
|
|
370
|
+
default: true
|
|
355
371
|
}
|
|
356
372
|
},
|
|
357
373
|
emits: ["close", "change"],
|
|
@@ -465,7 +481,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
465
481
|
key: 0,
|
|
466
482
|
"auto-play": _ctx.autoplay,
|
|
467
483
|
class: "nut-imagepreview-swiper",
|
|
468
|
-
loop:
|
|
484
|
+
loop: _ctx.isLoop,
|
|
469
485
|
"is-preventDefault": false,
|
|
470
486
|
direction: "horizontal",
|
|
471
487
|
onChange: _ctx.slideChangeEnd,
|
|
@@ -500,7 +516,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
500
516
|
}), 128))
|
|
501
517
|
]),
|
|
502
518
|
_: 1
|
|
503
|
-
}, 8, ["auto-play", "onChange", "init-page", "pagination-visible", "pagination-color"])) : createCommentVNode("", true)
|
|
519
|
+
}, 8, ["auto-play", "loop", "onChange", "init-page", "pagination-visible", "pagination-color"])) : createCommentVNode("", true)
|
|
504
520
|
], 512),
|
|
505
521
|
_ctx.showIndex ? (openBlock(), createElementBlock("view", _hoisted_2, toDisplayString(_ctx.active) + " / " + toDisplayString(_ctx.images.length + _ctx.videos.length), 1)) : createCommentVNode("", true),
|
|
506
522
|
_ctx.closeable ? (openBlock(), createElementBlock("view", {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.2.
|
|
2
|
+
* @nutui/nutui v3.2.6-beta.2 Fri Nov 04 2022 17:24:29 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2022 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
@@ -309,12 +309,16 @@ const _sfc_main = create({
|
|
|
309
309
|
watch(
|
|
310
310
|
() => props.modelValue,
|
|
311
311
|
() => {
|
|
312
|
-
|
|
313
|
-
|
|
312
|
+
if (!slots.input) {
|
|
313
|
+
updateValue(getModelValue());
|
|
314
|
+
resetValidation();
|
|
315
|
+
}
|
|
314
316
|
}
|
|
315
317
|
);
|
|
316
318
|
onMounted(() => {
|
|
317
|
-
|
|
319
|
+
if (!slots.input) {
|
|
320
|
+
updateValue(getModelValue(), props.formatTrigger);
|
|
321
|
+
}
|
|
318
322
|
});
|
|
319
323
|
return {
|
|
320
324
|
inputRef,
|