@nutui/nutui 4.1.4 → 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/README.md +1 -1
- package/dist/nutui.es.js +1 -1
- package/dist/nutui.js +643 -642
- package/dist/nutui.umd.js +1 -1
- package/dist/packages/_es/ActionSheet.js +5 -5
- 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 +20 -14
- 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 +3 -3
- 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/popover/index.scss +3 -1
- package/dist/packages/video/index.scss +4 -1
- package/dist/smartips/web-types.json +1 -1
- 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/common.d.ts +484 -4
- package/dist/types/__VUE/picker/index.vue.d.ts +125 -5
- 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
|
@@ -252,7 +252,7 @@ const _sfc_main = create({
|
|
|
252
252
|
});
|
|
253
253
|
};
|
|
254
254
|
const autoplay = () => {
|
|
255
|
-
if (props.autoPlay <= 0 || childCount.value <= 1)
|
|
255
|
+
if (+props.autoPlay <= 0 || childCount.value <= 1)
|
|
256
256
|
return;
|
|
257
257
|
stopAutoPlay();
|
|
258
258
|
state.autoplayTimer = setTimeout(() => {
|
|
@@ -353,7 +353,7 @@ const _sfc_main = create({
|
|
|
353
353
|
watch(
|
|
354
354
|
() => props.autoPlay,
|
|
355
355
|
(val) => {
|
|
356
|
-
val > 0 ? autoplay() : stopAutoPlay();
|
|
356
|
+
+val > 0 ? autoplay() : stopAutoPlay();
|
|
357
357
|
}
|
|
358
358
|
);
|
|
359
359
|
return {
|
|
@@ -391,11 +391,11 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
391
391
|
}, [
|
|
392
392
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.state.children.length, (item, index) => {
|
|
393
393
|
return openBlock(), createElementBlock("i", {
|
|
394
|
+
key: index,
|
|
394
395
|
style: normalizeStyle({
|
|
395
396
|
backgroundColor: _ctx.activePagination === index ? _ctx.paginationColor : "#ddd"
|
|
396
397
|
}),
|
|
397
|
-
class: normalizeClass({ active: _ctx.activePagination === index })
|
|
398
|
-
key: index
|
|
398
|
+
class: normalizeClass({ active: _ctx.activePagination === index })
|
|
399
399
|
}, null, 6);
|
|
400
400
|
}), 128))
|
|
401
401
|
], 2)) : createCommentVNode("", true)
|
|
@@ -93,8 +93,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
93
93
|
const _component_Loading1 = resolveComponent("Loading1");
|
|
94
94
|
return openBlock(), createElementBlock("view", {
|
|
95
95
|
class: normalizeClass(_ctx.classes),
|
|
96
|
-
|
|
97
|
-
|
|
96
|
+
style: normalizeStyle(_ctx.style),
|
|
97
|
+
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.onClick && _ctx.onClick(...args))
|
|
98
98
|
}, [
|
|
99
99
|
createElementVNode("view", _hoisted_1, [
|
|
100
100
|
_ctx.loading ? renderSlot(_ctx.$slots, "icon", { key: 0 }, () => [
|
|
@@ -34,7 +34,7 @@ const _sfc_main = create({
|
|
|
34
34
|
default: false
|
|
35
35
|
}
|
|
36
36
|
},
|
|
37
|
-
emits: ["
|
|
37
|
+
emits: ["tabSwitch", "update:modelValue"],
|
|
38
38
|
setup(props, { emit }) {
|
|
39
39
|
const { bottom, placeholder } = toRefs(props);
|
|
40
40
|
const height = ref();
|
|
@@ -46,7 +46,7 @@ const _sfc_main = create({
|
|
|
46
46
|
function changeIndex(index2, active) {
|
|
47
47
|
emit("update:modelValue", active);
|
|
48
48
|
parentData.modelValue = active;
|
|
49
|
-
emit("
|
|
49
|
+
emit("tabSwitch", parentData.children[index2], active);
|
|
50
50
|
}
|
|
51
51
|
let parentData = reactive({
|
|
52
52
|
children: mdValue.children,
|
|
@@ -160,10 +160,10 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
160
160
|
createElementVNode("view", _hoisted_2, [
|
|
161
161
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.columns, (item) => {
|
|
162
162
|
return openBlock(), createElementBlock("span", {
|
|
163
|
-
class: normalizeClass(["nut-table__main__head__tr__th", _ctx.cellClasses(item)]),
|
|
164
163
|
key: item.key,
|
|
165
|
-
|
|
166
|
-
style: normalizeStyle(item.stylehead)
|
|
164
|
+
class: normalizeClass(["nut-table__main__head__tr__th", _ctx.cellClasses(item)]),
|
|
165
|
+
style: normalizeStyle(item.stylehead),
|
|
166
|
+
onClick: ($event) => _ctx.handleSorterClick(item)
|
|
167
167
|
}, [
|
|
168
168
|
createTextVNode(toDisplayString(item.title) + " ", 1),
|
|
169
169
|
renderSlot(_ctx.$slots, "icon"),
|
|
@@ -179,13 +179,13 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
179
179
|
createElementVNode("view", _hoisted_4, [
|
|
180
180
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.curData, (item) => {
|
|
181
181
|
return openBlock(), createElementBlock("view", {
|
|
182
|
-
|
|
183
|
-
|
|
182
|
+
key: item,
|
|
183
|
+
class: "nut-table__main__body__tr"
|
|
184
184
|
}, [
|
|
185
185
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.sortDataItem(), ([value, render]) => {
|
|
186
186
|
return openBlock(), createElementBlock("span", {
|
|
187
|
-
class: normalizeClass(["nut-table__main__body__tr__td", _ctx.cellClasses(_ctx.getColumnItem(value))]),
|
|
188
187
|
key: value,
|
|
188
|
+
class: normalizeClass(["nut-table__main__body__tr__td", _ctx.cellClasses(_ctx.getColumnItem(value))]),
|
|
189
189
|
style: normalizeStyle(_ctx.getColumnItemStyle(value))
|
|
190
190
|
}, [
|
|
191
191
|
typeof item[value] === "function" || typeof render === "function" ? (openBlock(), createBlock(_component_RenderColumn, {
|
|
@@ -438,8 +438,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
438
438
|
const _component_JoySmile = resolveComponent("JoySmile");
|
|
439
439
|
const _component_nut_sticky = resolveComponent("nut-sticky");
|
|
440
440
|
return openBlock(), createElementBlock("view", {
|
|
441
|
-
|
|
442
|
-
|
|
441
|
+
ref: "container",
|
|
442
|
+
class: normalizeClass(["nut-tabs", [_ctx.direction]])
|
|
443
443
|
}, [
|
|
444
444
|
_ctx.sticky ? (openBlock(), createBlock(_component_nut_sticky, {
|
|
445
445
|
key: 0,
|
|
@@ -449,16 +449,16 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
449
449
|
}, {
|
|
450
450
|
default: withCtx(() => [
|
|
451
451
|
createElementVNode("view", {
|
|
452
|
+
ref: "navRef",
|
|
452
453
|
class: normalizeClass(["nut-tabs__titles", { [_ctx.type]: _ctx.type, scrollable: _ctx.titleScroll, [_ctx.size]: _ctx.size }]),
|
|
453
|
-
style: normalizeStyle(_ctx.tabsNavStyle)
|
|
454
|
-
ref: "navRef"
|
|
454
|
+
style: normalizeStyle(_ctx.tabsNavStyle)
|
|
455
455
|
}, [
|
|
456
456
|
_ctx.$slots.titles ? renderSlot(_ctx.$slots, "titles", { key: 0 }) : (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(_ctx.titles, (item, index) => {
|
|
457
457
|
return openBlock(), createElementBlock("view", {
|
|
458
|
+
key: item.paneKey,
|
|
458
459
|
class: normalizeClass(["nut-tabs__titles-item", { active: item.paneKey == _ctx.modelValue, disabled: item.disabled }]),
|
|
459
460
|
style: normalizeStyle(_ctx.titleStyle),
|
|
460
|
-
onClick: ($event) => _ctx.tabChange(item, index)
|
|
461
|
-
key: item.paneKey
|
|
461
|
+
onClick: ($event) => _ctx.tabChange(item, index)
|
|
462
462
|
}, [
|
|
463
463
|
_ctx.type == "line" ? (openBlock(), createElementBlock("view", {
|
|
464
464
|
key: 0,
|
|
@@ -482,18 +482,18 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
482
482
|
_: 3
|
|
483
483
|
}, 8, ["top", "container", "onScroll"])) : (openBlock(), createElementBlock("view", {
|
|
484
484
|
key: 1,
|
|
485
|
+
ref: "navRef",
|
|
485
486
|
class: normalizeClass(["nut-tabs__titles", { [_ctx.type]: _ctx.type, scrollable: _ctx.titleScroll, "scroll-vertical": _ctx.getScrollY, [_ctx.size]: _ctx.size }]),
|
|
486
|
-
style: normalizeStyle(_ctx.tabsNavStyle)
|
|
487
|
-
ref: "navRef"
|
|
487
|
+
style: normalizeStyle(_ctx.tabsNavStyle)
|
|
488
488
|
}, [
|
|
489
489
|
_ctx.$slots.titles ? renderSlot(_ctx.$slots, "titles", { key: 0 }) : (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(_ctx.titles, (item, index) => {
|
|
490
490
|
return openBlock(), createElementBlock("view", {
|
|
491
|
-
class: normalizeClass(["nut-tabs__titles-item", { active: item.paneKey == _ctx.modelValue, disabled: item.disabled }]),
|
|
492
|
-
style: normalizeStyle(_ctx.titleStyle),
|
|
493
|
-
onClick: ($event) => _ctx.tabChange(item, index),
|
|
494
491
|
key: item.paneKey,
|
|
495
492
|
ref_for: true,
|
|
496
|
-
ref: (e) => _ctx.setTabItemRef(e, index)
|
|
493
|
+
ref: (e) => _ctx.setTabItemRef(e, index),
|
|
494
|
+
class: normalizeClass(["nut-tabs__titles-item", { active: item.paneKey == _ctx.modelValue, disabled: item.disabled }]),
|
|
495
|
+
style: normalizeStyle(_ctx.titleStyle),
|
|
496
|
+
onClick: ($event) => _ctx.tabChange(item, index)
|
|
497
497
|
}, [
|
|
498
498
|
_ctx.type == "line" ? (openBlock(), createElementBlock("view", {
|
|
499
499
|
key: 0,
|
|
@@ -514,8 +514,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
514
514
|
}), 128))
|
|
515
515
|
], 6)),
|
|
516
516
|
createElementVNode("view", {
|
|
517
|
-
class: "nut-tabs__content",
|
|
518
517
|
ref: "tabsContentRef",
|
|
518
|
+
class: "nut-tabs__content",
|
|
519
519
|
style: normalizeStyle(_ctx.contentStyle),
|
|
520
520
|
onTouchstart: _cache[0] || (_cache[0] = (...args) => _ctx.onTouchStart && _ctx.onTouchStart(...args)),
|
|
521
521
|
onTouchmove: _cache[1] || (_cache[1] = (...args) => _ctx.onTouchMove && _ctx.onTouchMove(...args)),
|
|
@@ -168,12 +168,12 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
168
168
|
disabled: _ctx.disabled,
|
|
169
169
|
readonly: _ctx.readonly,
|
|
170
170
|
value: _ctx.modelValue,
|
|
171
|
-
onInput: _cache[0] || (_cache[0] = (...args) => _ctx.change && _ctx.change(...args)),
|
|
172
|
-
onBlur: _cache[1] || (_cache[1] = (...args) => _ctx.blur && _ctx.blur(...args)),
|
|
173
|
-
onFocus: _cache[2] || (_cache[2] = (...args) => _ctx.focus && _ctx.focus(...args)),
|
|
174
171
|
maxlength: _ctx.maxLength,
|
|
175
172
|
placeholder: _ctx.placeholder || _ctx.translate("placeholder"),
|
|
176
173
|
autofocus: _ctx.autofocus,
|
|
174
|
+
onInput: _cache[0] || (_cache[0] = (...args) => _ctx.change && _ctx.change(...args)),
|
|
175
|
+
onBlur: _cache[1] || (_cache[1] = (...args) => _ctx.blur && _ctx.blur(...args)),
|
|
176
|
+
onFocus: _cache[2] || (_cache[2] = (...args) => _ctx.focus && _ctx.focus(...args)),
|
|
177
177
|
onChange: _cache[3] || (_cache[3] = (...args) => _ctx.endComposing && _ctx.endComposing(...args)),
|
|
178
178
|
onCompositionend: _cache[4] || (_cache[4] = (...args) => _ctx.endComposing && _ctx.endComposing(...args)),
|
|
179
179
|
onCompositionstart: _cache[5] || (_cache[5] = (...args) => _ctx.startComposing && _ctx.startComposing(...args))
|
|
@@ -81,8 +81,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
81
81
|
createElementVNode("view", _hoisted_2, [
|
|
82
82
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.renderData, (item) => {
|
|
83
83
|
return openBlock(), createElementBlock("view", {
|
|
84
|
-
class: normalizeClass(_ctx.getClass(item)),
|
|
85
84
|
key: item,
|
|
85
|
+
class: normalizeClass(_ctx.getClass(item)),
|
|
86
86
|
onClick: ($event) => _ctx.handleTime(item)
|
|
87
87
|
}, toDisplayString(item), 11, _hoisted_3);
|
|
88
88
|
}), 128))
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { computed, provide, resolveComponent, openBlock, createBlock, normalizeStyle, withCtx, createElementVNode, normalizeClass, createElementBlock, toDisplayString, renderSlot } from "vue";
|
|
2
2
|
import { c as createComponent } from "./component-0fbad28e.js";
|
|
3
|
-
import { P as Popup } from "./index-
|
|
3
|
+
import { P as Popup } from "./index-3032df15.js";
|
|
4
4
|
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
5
5
|
import "../locale/lang";
|
|
6
6
|
import "@nutui/icons-vue";
|
|
@@ -25,7 +25,7 @@ import Popover from "./Popover.js";
|
|
|
25
25
|
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
26
26
|
import "../locale/lang";
|
|
27
27
|
import "./renderIcon-3d0fd47c.js";
|
|
28
|
-
import "./index-
|
|
28
|
+
import "./index-3032df15.js";
|
|
29
29
|
import "./Overlay.js";
|
|
30
30
|
const { create } = createComponent("tour");
|
|
31
31
|
const _sfc_main = create({
|
|
@@ -215,9 +215,9 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
215
215
|
i == _ctx.active ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
216
216
|
_ctx.showTour ? (openBlock(), createElementBlock("div", {
|
|
217
217
|
key: 0,
|
|
218
|
+
id: "nut-tour-popid",
|
|
218
219
|
class: normalizeClass(["nut-tour-mask", [_ctx.mask ? "" : "nut-tour-mask-none"]]),
|
|
219
|
-
style: normalizeStyle(_ctx.maskStyle)
|
|
220
|
-
id: "nut-tour-popid"
|
|
220
|
+
style: normalizeStyle(_ctx.maskStyle)
|
|
221
221
|
}, null, 6)) : createCommentVNode("", true),
|
|
222
222
|
createVNode(_component_nut_popover, {
|
|
223
223
|
visible: _ctx.showPopup,
|
|
@@ -148,7 +148,7 @@ const _sfc_main = create({
|
|
|
148
148
|
"change",
|
|
149
149
|
"delete",
|
|
150
150
|
"update:fileList",
|
|
151
|
-
"
|
|
151
|
+
"fileItemClick"
|
|
152
152
|
],
|
|
153
153
|
setup(props, { emit }) {
|
|
154
154
|
const fileList = ref(props.fileList);
|
|
@@ -176,7 +176,7 @@ const _sfc_main = create({
|
|
|
176
176
|
el.value = "";
|
|
177
177
|
};
|
|
178
178
|
const fileItemClick = (fileItem) => {
|
|
179
|
-
emit("
|
|
179
|
+
emit("fileItemClick", { fileItem });
|
|
180
180
|
};
|
|
181
181
|
const executeUpload = (fileItem, index2) => {
|
|
182
182
|
const uploadOption = new UploadOptions();
|
|
@@ -360,7 +360,7 @@ const _hoisted_4 = {
|
|
|
360
360
|
};
|
|
361
361
|
const _hoisted_5 = { class: "nut-uploader__preview__progress__msg" };
|
|
362
362
|
const _hoisted_6 = ["onClick"];
|
|
363
|
-
const _hoisted_7 = ["
|
|
363
|
+
const _hoisted_7 = ["src", "onClick"];
|
|
364
364
|
const _hoisted_8 = {
|
|
365
365
|
key: 3,
|
|
366
366
|
class: "nut-uploader__preview-img__file"
|
|
@@ -392,8 +392,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
392
392
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.fileList, (item, index2) => {
|
|
393
393
|
var _a;
|
|
394
394
|
return openBlock(), createElementBlock("view", {
|
|
395
|
-
|
|
396
|
-
|
|
395
|
+
key: item.uid,
|
|
396
|
+
class: normalizeClass(["nut-uploader__preview", [_ctx.listType]])
|
|
397
397
|
}, [
|
|
398
398
|
_ctx.listType == "picture" && !_ctx.$slots.default ? (openBlock(), createElementBlock("view", _hoisted_3, [
|
|
399
399
|
item.status != "success" ? (openBlock(), createElementBlock("view", _hoisted_4, [
|
|
@@ -421,12 +421,12 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
421
421
|
((_a = item == null ? void 0 : item.type) == null ? void 0 : _a.includes("image")) && item.url ? (openBlock(), createElementBlock("img", {
|
|
422
422
|
key: 2,
|
|
423
423
|
class: "nut-uploader__preview-img__c",
|
|
424
|
-
|
|
425
|
-
|
|
424
|
+
src: item.url,
|
|
425
|
+
onClick: ($event) => _ctx.fileItemClick(item)
|
|
426
426
|
}, null, 8, _hoisted_7)) : (openBlock(), createElementBlock("view", _hoisted_8, [
|
|
427
427
|
createElementVNode("view", {
|
|
428
|
-
|
|
429
|
-
|
|
428
|
+
class: "nut-uploader__preview-img__file__name",
|
|
429
|
+
onClick: ($event) => _ctx.fileItemClick(item)
|
|
430
430
|
}, [
|
|
431
431
|
createElementVNode("view", _hoisted_10, toDisplayString(item.name), 1)
|
|
432
432
|
], 8, _hoisted_9)
|
|
@@ -434,8 +434,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
434
434
|
createElementVNode("view", _hoisted_11, toDisplayString(item.name), 1)
|
|
435
435
|
])) : _ctx.listType == "list" ? (openBlock(), createElementBlock("view", _hoisted_12, [
|
|
436
436
|
createElementVNode("view", {
|
|
437
|
-
|
|
438
|
-
|
|
437
|
+
class: normalizeClass(["nut-uploader__preview-img__file__name", [item.status]]),
|
|
438
|
+
onClick: ($event) => _ctx.fileItemClick(item)
|
|
439
439
|
}, [
|
|
440
440
|
createVNode(_component_Link, { class: "nut-uploader__preview-img__file__link" }),
|
|
441
441
|
createElementVNode("view", _hoisted_14, toDisplayString(item.name), 1),
|
|
@@ -211,15 +211,15 @@ const _sfc_main = create({
|
|
|
211
211
|
};
|
|
212
212
|
const timeFormat = (t) => {
|
|
213
213
|
var h = Math.floor(t / 3600);
|
|
214
|
-
if (h < 10) {
|
|
214
|
+
if (+h < 10) {
|
|
215
215
|
h = "0" + h;
|
|
216
216
|
}
|
|
217
217
|
var m = Math.floor(t % 3600 / 60);
|
|
218
|
-
if (m < 10) {
|
|
218
|
+
if (+m < 10) {
|
|
219
219
|
m = "0" + m;
|
|
220
220
|
}
|
|
221
221
|
var s = Math.round(t % 3600 % 60);
|
|
222
|
-
if (s < 10) {
|
|
222
|
+
if (+s < 10) {
|
|
223
223
|
s = "0" + s;
|
|
224
224
|
}
|
|
225
225
|
var str = "";
|
|
@@ -317,24 +317,24 @@ const _sfc_main = create({
|
|
|
317
317
|
}
|
|
318
318
|
});
|
|
319
319
|
const _hoisted_1 = {
|
|
320
|
-
|
|
321
|
-
|
|
320
|
+
ref: "videocon",
|
|
321
|
+
class: "nut-video"
|
|
322
322
|
};
|
|
323
323
|
const _hoisted_2 = ["muted", "autoplay", "loop", "poster", "controls", "preload"];
|
|
324
324
|
const _hoisted_3 = ["src", "type"];
|
|
325
325
|
const _hoisted_4 = { class: "nut-video-controller__now" };
|
|
326
326
|
const _hoisted_5 = { class: "nut-video-controller__progress" };
|
|
327
327
|
const _hoisted_6 = {
|
|
328
|
-
|
|
329
|
-
|
|
328
|
+
ref: "progressBar",
|
|
329
|
+
class: "nut-video-controller__progress-value"
|
|
330
330
|
};
|
|
331
331
|
const _hoisted_7 = /* @__PURE__ */ createElementVNode("div", { class: "nut-video-controller__ball-move" }, null, -1);
|
|
332
332
|
const _hoisted_8 = [
|
|
333
333
|
_hoisted_7
|
|
334
334
|
];
|
|
335
335
|
const _hoisted_9 = {
|
|
336
|
-
|
|
337
|
-
|
|
336
|
+
ref: "playedBar",
|
|
337
|
+
class: "nut-video-controller__played"
|
|
338
338
|
};
|
|
339
339
|
const _hoisted_10 = { class: "nut-video-controller__total" };
|
|
340
340
|
const _hoisted_11 = { class: "nut-video-error" };
|
|
@@ -359,14 +359,14 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
359
359
|
], 40, _hoisted_2),
|
|
360
360
|
_ctx.showToolbox && !_ctx.isDisabled ? (openBlock(), createElementBlock("div", {
|
|
361
361
|
key: 0,
|
|
362
|
-
class: "nut-video-mask",
|
|
363
362
|
ref: "touchMask",
|
|
363
|
+
class: "nut-video-mask",
|
|
364
364
|
onClick: _cache[1] || (_cache[1] = (...args) => _ctx.play && _ctx.play(...args))
|
|
365
365
|
}, null, 512)) : createCommentVNode("", true),
|
|
366
366
|
_ctx.showToolbox && !_ctx.isDisabled ? withDirectives((openBlock(), createElementBlock("div", {
|
|
367
367
|
key: 1,
|
|
368
|
-
class: "nut-video-play-btn",
|
|
369
368
|
ref: "palyBtn",
|
|
369
|
+
class: "nut-video-play-btn",
|
|
370
370
|
onClick: _cache[2] || (_cache[2] = (...args) => _ctx.play && _ctx.play(...args))
|
|
371
371
|
}, null, 512)), [
|
|
372
372
|
[vShow, !_ctx.state.playing]
|
|
@@ -113,7 +113,7 @@ const _sfc_main = create({
|
|
|
113
113
|
Close
|
|
114
114
|
},
|
|
115
115
|
props: popupProps,
|
|
116
|
-
emits: ["
|
|
116
|
+
emits: ["clickPop", "clickCloseIcon", "open", "close", "opened", "closed", "clickOverlay", "update:visible"],
|
|
117
117
|
setup(props, { emit }) {
|
|
118
118
|
const state = reactive({
|
|
119
119
|
zIndex: props.zIndex,
|
|
@@ -160,15 +160,15 @@ const _sfc_main = create({
|
|
|
160
160
|
}
|
|
161
161
|
};
|
|
162
162
|
const onClick = (e) => {
|
|
163
|
-
emit("
|
|
163
|
+
emit("clickPop", e);
|
|
164
164
|
};
|
|
165
165
|
const onClickCloseIcon = (e) => {
|
|
166
166
|
e.stopPropagation();
|
|
167
|
-
emit("
|
|
167
|
+
emit("clickCloseIcon", e);
|
|
168
168
|
emit("update:visible", false);
|
|
169
169
|
};
|
|
170
170
|
const onClickOverlay = (e) => {
|
|
171
|
-
emit("
|
|
171
|
+
emit("clickOverlay", e);
|
|
172
172
|
if (props.closeOnClickOverlay) {
|
|
173
173
|
emit("update:visible", false);
|
|
174
174
|
}
|
|
@@ -215,9 +215,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
215
215
|
"lock-scroll": _ctx.lockScroll,
|
|
216
216
|
duration: _ctx.duration,
|
|
217
217
|
"overlay-class": _ctx.overlayClass,
|
|
218
|
-
"overlay-style": _ctx.overlayStyle
|
|
219
|
-
|
|
220
|
-
}, _ctx.$attrs), null, 16, ["visible", "close-on-click-overlay", "z-index", "lock-scroll", "duration", "overlay-class", "overlay-style", "onClick"])) : createCommentVNode("", true),
|
|
218
|
+
"overlay-style": _ctx.overlayStyle
|
|
219
|
+
}, _ctx.$attrs, { onClick: _ctx.onClickOverlay }), null, 16, ["visible", "close-on-click-overlay", "z-index", "lock-scroll", "duration", "overlay-class", "overlay-style", "onClick"])) : createCommentVNode("", true),
|
|
221
220
|
createVNode(Transition, {
|
|
222
221
|
name: _ctx.transitionName,
|
|
223
222
|
onAfterEnter: _ctx.onOpened,
|
|
@@ -232,8 +231,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
232
231
|
_ctx.showSlot ? renderSlot(_ctx.$slots, "default", { key: 0 }) : createCommentVNode("", true),
|
|
233
232
|
_ctx.closed ? (openBlock(), createElementBlock("view", {
|
|
234
233
|
key: 1,
|
|
235
|
-
|
|
236
|
-
|
|
234
|
+
class: normalizeClass(["nut-popup__close-icon", "nut-popup__close-icon--" + _ctx.closeIconPosition]),
|
|
235
|
+
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.onClickCloseIcon && _ctx.onClickCloseIcon(...args))
|
|
237
236
|
}, [
|
|
238
237
|
renderSlot(_ctx.$slots, "close-icon", {}, () => [
|
|
239
238
|
createVNode(_component_Close, { height: "12px" })
|
|
@@ -824,12 +824,12 @@ const _hoisted_4 = {
|
|
|
824
824
|
class: "nut-calendar__header-subtitle"
|
|
825
825
|
};
|
|
826
826
|
const _hoisted_5 = {
|
|
827
|
-
|
|
828
|
-
|
|
827
|
+
ref: "weeksPanel",
|
|
828
|
+
class: "nut-calendar__weekdays"
|
|
829
829
|
};
|
|
830
830
|
const _hoisted_6 = {
|
|
831
|
-
|
|
832
|
-
|
|
831
|
+
ref: "monthsPanel",
|
|
832
|
+
class: "nut-calendar__panel"
|
|
833
833
|
};
|
|
834
834
|
const _hoisted_7 = { class: "nut-calendar__month-title" };
|
|
835
835
|
const _hoisted_8 = { class: "nut-calendar__days" };
|
|
@@ -871,27 +871,27 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
871
871
|
createElementVNode("view", _hoisted_5, [
|
|
872
872
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.weeks, (item, index) => {
|
|
873
873
|
return openBlock(), createElementBlock("view", {
|
|
874
|
-
|
|
875
|
-
|
|
874
|
+
key: index,
|
|
875
|
+
class: normalizeClass(["nut-calendar__weekday", { weekend: item.weekend }])
|
|
876
876
|
}, toDisplayString(item.day), 3);
|
|
877
877
|
}), 128))
|
|
878
878
|
], 512)
|
|
879
879
|
]),
|
|
880
880
|
createElementVNode("view", {
|
|
881
|
-
class: "nut-calendar__content",
|
|
882
881
|
ref: "months",
|
|
882
|
+
class: "nut-calendar__content",
|
|
883
883
|
onScroll: _cache[0] || (_cache[0] = (...args) => _ctx.mothsViewScroll && _ctx.mothsViewScroll(...args))
|
|
884
884
|
}, [
|
|
885
885
|
createElementVNode("view", _hoisted_6, [
|
|
886
886
|
createElementVNode("view", {
|
|
887
|
-
class: "nut-calendar__body",
|
|
888
887
|
ref: "viewArea",
|
|
888
|
+
class: "nut-calendar__body",
|
|
889
889
|
style: normalizeStyle({ transform: `translateY(${_ctx.translateY}px)` })
|
|
890
890
|
}, [
|
|
891
891
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.compConthsData, (month, index) => {
|
|
892
892
|
return openBlock(), createElementBlock("view", {
|
|
893
|
-
|
|
894
|
-
|
|
893
|
+
key: index,
|
|
894
|
+
class: "nut-calendar__month"
|
|
895
895
|
}, [
|
|
896
896
|
createElementVNode("view", _hoisted_7, toDisplayString(month.title), 1),
|
|
897
897
|
createElementVNode("view", _hoisted_8, [
|
|
@@ -37,7 +37,10 @@
|
|
|
37
37
|
border: 0;
|
|
38
38
|
background-color: rgba(0, 0, 0, 0.45);
|
|
39
39
|
color: #fff;
|
|
40
|
-
transition:
|
|
40
|
+
transition:
|
|
41
|
+
border-color 0.4s,
|
|
42
|
+
outline 0.4s,
|
|
43
|
+
background-color 0.4s;
|
|
41
44
|
position: absolute;
|
|
42
45
|
top: 50%;
|
|
43
46
|
left: 50%;
|