@nutui/nutui 3.1.19-beta.0 → 3.1.19-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/dist/nutui.d.ts +38 -37
- package/dist/nutui.es.js +13439 -12616
- package/dist/nutui.umd.js +13431 -12695
- package/dist/packages/_es/ActionSheet.js +12 -18
- package/dist/packages/_es/Address.js +78 -69
- package/dist/packages/_es/Audio.js +12 -12
- package/dist/packages/_es/AudioOperate.js +1 -1
- package/dist/packages/_es/Avatar.js +3 -3
- package/dist/packages/_es/BackTop.js +68 -110
- package/dist/packages/_es/Badge.js +3 -3
- package/dist/packages/_es/Barrage.js +62 -55
- package/dist/packages/_es/Button.js +2 -2
- package/dist/packages/_es/Calendar.js +28 -23
- package/dist/packages/_es/CalendarItem.js +3 -3
- package/dist/packages/_es/Card.js +6 -5
- package/dist/packages/_es/Cascader.js +7 -7
- package/dist/packages/_es/Cell.js +4 -11
- 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 +149 -40
- package/dist/packages/_es/Col.js +1 -1
- package/dist/packages/_es/Collapse.js +34 -8
- package/dist/packages/_es/CollapseItem.js +90 -59
- package/dist/packages/_es/CountDown.js +5 -5
- package/dist/packages/_es/CountUp.js +43 -51
- package/dist/packages/_es/DatePicker.js +21 -20
- package/dist/packages/_es/Dialog.js +8 -86
- package/dist/packages/_es/Divider.js +4 -4
- package/dist/packages/_es/Drag.js +92 -54
- package/dist/packages/_es/Elevator.js +74 -49
- package/dist/packages/_es/Empty.js +3 -3
- package/dist/packages/_es/FixedNav.js +5 -5
- package/dist/packages/_es/Form.js +4 -4
- package/dist/packages/_es/FormItem.js +1 -1
- package/dist/packages/_es/Grid.js +1 -1
- package/dist/packages/_es/GridItem.js +8 -26
- package/dist/packages/_es/Icon.js +1 -1
- package/dist/packages/_es/ImagePreview.js +15 -84
- package/dist/packages/_es/Indicator.js +3 -3
- package/dist/packages/_es/InfiniteLoading.js +93 -107
- package/dist/packages/_es/Input.js +8 -8
- package/dist/packages/_es/InputNumber.js +23 -16
- package/dist/packages/_es/Layout.js +1 -1
- package/dist/packages/_es/List.js +41 -34
- package/dist/packages/_es/Menu.js +15 -12
- package/dist/packages/_es/MenuItem.js +9 -9
- package/dist/packages/_es/Navbar.js +3 -4
- package/dist/packages/_es/NoticeBar.js +47 -40
- package/dist/packages/_es/Notify.js +29 -168
- package/dist/packages/_es/NumberKeyboard.js +5 -10
- package/dist/packages/_es/OldPicker.js +122 -120
- package/dist/packages/_es/OverLay.js +5 -25
- package/dist/packages/_es/Pagination.js +7 -7
- package/dist/packages/_es/Picker.js +39 -16
- package/dist/packages/_es/Popover.js +155 -30
- package/dist/packages/_es/Popup.js +8 -71
- package/dist/packages/_es/Price.js +17 -5
- package/dist/packages/_es/Progress.js +18 -8
- package/dist/packages/_es/PullRefresh.js +1 -1
- package/dist/packages/_es/Radio.js +2 -2
- package/dist/packages/_es/RadioGroup.js +1 -1
- package/dist/packages/_es/Range.js +46 -33
- package/dist/packages/_es/Rate.js +16 -19
- package/dist/packages/_es/Row.js +1 -1
- package/dist/packages/_es/SearchBar.js +8 -6
- package/dist/packages/_es/ShortPassword.js +89 -67
- package/dist/packages/_es/SideNavBar.js +5 -16
- package/dist/packages/_es/SideNavBarItem.js +1 -1
- package/dist/packages/_es/Signature.js +69 -88
- package/dist/packages/_es/Skeleton.js +8 -11
- package/dist/packages/_es/Sku.js +47 -56
- package/dist/packages/_es/Step.js +1 -1
- package/dist/packages/_es/Steps.js +1 -1
- package/dist/packages/_es/Sticky.js +28 -23
- package/dist/packages/_es/SubSideNavBar.js +1 -1
- package/dist/packages/_es/Swipe.js +39 -26
- package/dist/packages/_es/Swiper.js +31 -13
- package/dist/packages/_es/SwiperItem.js +1 -1
- package/dist/packages/_es/Switch.js +3 -3
- package/dist/packages/_es/TabPane.js +1 -1
- package/dist/packages/_es/Tabbar.js +3 -3
- package/dist/packages/_es/TabbarItem.js +17 -23
- package/dist/packages/_es/Table.js +13 -13
- package/dist/packages/_es/Tabs.js +21 -20
- package/dist/packages/_es/Tag.js +4 -4
- package/dist/packages/_es/TextArea.js +44 -42
- package/dist/packages/_es/TimeDetail.js +4 -3
- package/dist/packages/_es/TimePannel.js +3 -3
- package/dist/packages/_es/TimeSelect.js +8 -7
- package/dist/packages/_es/Toast.js +41 -170
- package/dist/packages/_es/Uploader.js +109 -138
- package/dist/packages/_es/Video.js +3 -3
- package/dist/packages/_es/common.js +1 -1
- package/dist/packages/_es/component.js +1 -1
- package/dist/packages/_es/index.js +44 -6
- package/dist/packages/_es/{index5.js → index.taro.js} +127 -95
- package/dist/packages/_es/index2.js +1 -1
- package/dist/packages/_es/index3.js +56 -28
- package/dist/packages/_es/index4.js +413 -56
- package/dist/packages/_es/plugin-vue_export-helper.js +1 -1
- package/dist/packages/_es/pxCheck.js +1 -1
- package/dist/packages/_es/use-lock-scroll.js +23 -0
- package/dist/packages/_es/util.js +1 -1
- package/dist/packages/uploader/index.scss +2 -2
- package/dist/style.css +1 -1
- package/dist/styles/themes/default.scss +61 -61
- package/dist/styles/themes/jdt.scss +61 -61
- package/package.json +1 -1
- package/dist/packages/_es/raf.js +0 -19
|
@@ -1,14 +1,37 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __defProps = Object.defineProperties;
|
|
3
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
4
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
7
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
8
|
+
var __spreadValues = (a, b) => {
|
|
9
|
+
for (var prop in b || (b = {}))
|
|
10
|
+
if (__hasOwnProp.call(b, prop))
|
|
11
|
+
__defNormalProp(a, prop, b[prop]);
|
|
12
|
+
if (__getOwnPropSymbols)
|
|
13
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
14
|
+
if (__propIsEnum.call(b, prop))
|
|
15
|
+
__defNormalProp(a, prop, b[prop]);
|
|
16
|
+
}
|
|
17
|
+
return a;
|
|
18
|
+
};
|
|
19
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
1
20
|
/*!
|
|
2
|
-
* @nutui/nutui v3.1.19-beta.
|
|
21
|
+
* @nutui/nutui v3.1.19-beta.1 Sat Apr 02 2022 16:26:37 GMT+0800 (中国标准时间)
|
|
3
22
|
* (c) 2022 @jdf2e.
|
|
4
23
|
* Released under the MIT License.
|
|
5
24
|
*/
|
|
6
|
-
import { reactive, computed,
|
|
25
|
+
import { reactive, computed, toRefs, resolveComponent, openBlock, createElementBlock, createVNode, normalizeStyle, withCtx, renderSlot, createElementVNode, normalizeClass, withModifiers } from "vue";
|
|
7
26
|
import { c as createComponent } from "./component.js";
|
|
8
27
|
import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
|
|
9
28
|
const { componentName, create } = createComponent("backtop");
|
|
10
29
|
const _sfc_main = create({
|
|
11
30
|
props: {
|
|
31
|
+
height: {
|
|
32
|
+
type: String,
|
|
33
|
+
default: "100vh"
|
|
34
|
+
},
|
|
12
35
|
bottom: {
|
|
13
36
|
type: Number,
|
|
14
37
|
default: 20
|
|
@@ -17,35 +40,20 @@ const _sfc_main = create({
|
|
|
17
40
|
type: Number,
|
|
18
41
|
default: 10
|
|
19
42
|
},
|
|
20
|
-
elId: {
|
|
21
|
-
type: [String, Element],
|
|
22
|
-
default: "body"
|
|
23
|
-
},
|
|
24
|
-
distance: {
|
|
25
|
-
type: Number,
|
|
26
|
-
default: 200
|
|
27
|
-
},
|
|
28
43
|
zIndex: {
|
|
29
44
|
type: Number,
|
|
30
45
|
default: 10
|
|
31
46
|
},
|
|
32
|
-
|
|
33
|
-
type: Boolean,
|
|
34
|
-
default: true
|
|
35
|
-
},
|
|
36
|
-
duration: {
|
|
47
|
+
distance: {
|
|
37
48
|
type: Number,
|
|
38
|
-
default:
|
|
49
|
+
default: 200
|
|
39
50
|
}
|
|
40
51
|
},
|
|
41
52
|
emits: ["click"],
|
|
42
53
|
setup(props, { emit }) {
|
|
43
54
|
const state = reactive({
|
|
44
55
|
backTop: false,
|
|
45
|
-
scrollTop:
|
|
46
|
-
scrollEl: window,
|
|
47
|
-
startTime: 0,
|
|
48
|
-
keepAlive: false
|
|
56
|
+
scrollTop: 1
|
|
49
57
|
});
|
|
50
58
|
const classes = computed(() => {
|
|
51
59
|
const prefixCls = componentName;
|
|
@@ -61,102 +69,52 @@ const _sfc_main = create({
|
|
|
61
69
|
zIndex: props.zIndex
|
|
62
70
|
};
|
|
63
71
|
});
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
state.backTop = state.scrollTop >= props.distance;
|
|
71
|
-
}
|
|
72
|
-
function scroll(y = 0) {
|
|
73
|
-
if (state.scrollEl instanceof Window) {
|
|
74
|
-
window.scrollTo(0, y);
|
|
75
|
-
} else {
|
|
76
|
-
state.scrollEl.scrollTop = y;
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
function scrollAnimation() {
|
|
80
|
-
let cid = requestAniFrame()(function fn() {
|
|
81
|
-
var t = props.duration - Math.max(0, state.startTime - +new Date() + props.duration);
|
|
82
|
-
var y = t * -state.scrollTop / props.duration + state.scrollTop;
|
|
83
|
-
scroll(y);
|
|
84
|
-
cid = requestAniFrame()(fn);
|
|
85
|
-
if (t == props.duration || y == 0) {
|
|
86
|
-
window.cancelAnimationFrame(cid);
|
|
87
|
-
}
|
|
88
|
-
});
|
|
89
|
-
}
|
|
90
|
-
function addEventListener() {
|
|
91
|
-
state.scrollEl.addEventListener("scroll", scrollListener, false);
|
|
92
|
-
state.scrollEl.addEventListener("resize", scrollListener, false);
|
|
93
|
-
}
|
|
94
|
-
function removeEventListener() {
|
|
95
|
-
state.scrollEl.removeEventListener("scroll", scrollListener, false);
|
|
96
|
-
state.scrollEl.removeEventListener("resize", scrollListener, false);
|
|
97
|
-
}
|
|
98
|
-
function initCancelAniFrame() {
|
|
99
|
-
window.cancelAnimationFrame = window.webkitCancelAnimationFrame;
|
|
100
|
-
}
|
|
101
|
-
function requestAniFrame() {
|
|
102
|
-
return window.requestAnimationFrame || window.webkitRequestAnimationFrame || function(callback) {
|
|
103
|
-
window.setTimeout(callback, 1e3 / 60);
|
|
104
|
-
};
|
|
105
|
-
}
|
|
106
|
-
function click(e) {
|
|
107
|
-
state.startTime = +new Date();
|
|
108
|
-
props.isAnimation && props.duration > 0 ? scrollAnimation() : scroll();
|
|
72
|
+
const scroll = (e) => {
|
|
73
|
+
state.scrollTop = 2;
|
|
74
|
+
state.backTop = e.detail.scrollTop >= props.distance;
|
|
75
|
+
};
|
|
76
|
+
const click = (e) => {
|
|
77
|
+
state.scrollTop = 1;
|
|
109
78
|
emit("click", e);
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
if (props.elId && document.getElementById(props.elId)) {
|
|
113
|
-
state.scrollEl = document.getElementById(props.elId);
|
|
114
|
-
}
|
|
115
|
-
addEventListener();
|
|
116
|
-
initCancelAniFrame();
|
|
117
|
-
}
|
|
118
|
-
onMounted(() => {
|
|
119
|
-
if (props.distance == 0) {
|
|
120
|
-
state.backTop = true;
|
|
121
|
-
}
|
|
122
|
-
init();
|
|
123
|
-
});
|
|
124
|
-
onUnmounted(() => {
|
|
125
|
-
removeEventListener();
|
|
126
|
-
});
|
|
127
|
-
onActivated(() => {
|
|
128
|
-
if (state.keepAlive) {
|
|
129
|
-
state.keepAlive = false;
|
|
130
|
-
init();
|
|
131
|
-
}
|
|
132
|
-
});
|
|
133
|
-
onDeactivated(() => {
|
|
134
|
-
state.keepAlive = true;
|
|
135
|
-
removeEventListener();
|
|
136
|
-
});
|
|
137
|
-
return {
|
|
138
|
-
state,
|
|
79
|
+
};
|
|
80
|
+
return __spreadProps(__spreadValues({}, toRefs(state)), {
|
|
139
81
|
classes,
|
|
140
82
|
style,
|
|
83
|
+
scroll,
|
|
141
84
|
click
|
|
142
|
-
};
|
|
85
|
+
});
|
|
143
86
|
}
|
|
144
87
|
});
|
|
145
88
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
89
|
+
const _component_scroll_view = resolveComponent("scroll-view");
|
|
146
90
|
const _component_nut_icon = resolveComponent("nut-icon");
|
|
147
|
-
return openBlock(), createElementBlock("
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
91
|
+
return openBlock(), createElementBlock("view", null, [
|
|
92
|
+
createVNode(_component_scroll_view, {
|
|
93
|
+
"scroll-y": true,
|
|
94
|
+
style: normalizeStyle({ height: _ctx.height }),
|
|
95
|
+
onScroll: _ctx.scroll,
|
|
96
|
+
"scroll-top": _ctx.scrollTop,
|
|
97
|
+
"scroll-with-animation": "true"
|
|
98
|
+
}, {
|
|
99
|
+
default: withCtx(() => [
|
|
100
|
+
renderSlot(_ctx.$slots, "content")
|
|
101
|
+
]),
|
|
102
|
+
_: 3
|
|
103
|
+
}, 8, ["style", "onScroll", "scroll-top"]),
|
|
104
|
+
createElementVNode("view", {
|
|
105
|
+
class: normalizeClass(_ctx.classes),
|
|
106
|
+
style: normalizeStyle(_ctx.style),
|
|
107
|
+
onClick: _cache[0] || (_cache[0] = withModifiers((...args) => _ctx.click && _ctx.click(...args), ["stop"]))
|
|
108
|
+
}, [
|
|
109
|
+
renderSlot(_ctx.$slots, "icon", {}, () => [
|
|
110
|
+
createVNode(_component_nut_icon, {
|
|
111
|
+
size: "19px",
|
|
112
|
+
class: "nut-backtop-main",
|
|
113
|
+
name: "top"
|
|
114
|
+
})
|
|
115
|
+
])
|
|
116
|
+
], 6)
|
|
117
|
+
]);
|
|
160
118
|
}
|
|
161
|
-
var
|
|
162
|
-
export {
|
|
119
|
+
var index_taro = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
120
|
+
export { index_taro as default };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.1.19-beta.
|
|
2
|
+
* @nutui/nutui v3.1.19-beta.1 Sat Apr 02 2022 16:26:37 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2022 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
@@ -86,5 +86,5 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
86
86
|
])
|
|
87
87
|
]);
|
|
88
88
|
}
|
|
89
|
-
var
|
|
90
|
-
export {
|
|
89
|
+
var index_taro = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
90
|
+
export { index_taro as default };
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.1.19-beta.
|
|
2
|
+
* @nutui/nutui v3.1.19-beta.1 Sat Apr 02 2022 16:26:37 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2022 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
|
-
import {
|
|
6
|
+
import { ref, computed, onMounted, onUnmounted, onDeactivated, watch, reactive, openBlock, createElementBlock, normalizeClass, createElementVNode, Fragment, renderList, normalizeStyle, toDisplayString } from "vue";
|
|
7
7
|
import { c as createComponent } from "./component.js";
|
|
8
|
+
import Taro from "@tarojs/taro";
|
|
8
9
|
import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
|
|
9
10
|
const { componentName, create } = createComponent("barrage");
|
|
10
11
|
const _sfc_main = create({
|
|
@@ -15,7 +16,7 @@ const _sfc_main = create({
|
|
|
15
16
|
},
|
|
16
17
|
frequency: {
|
|
17
18
|
type: Number,
|
|
18
|
-
default:
|
|
19
|
+
default: 200
|
|
19
20
|
},
|
|
20
21
|
speeds: {
|
|
21
22
|
type: Number,
|
|
@@ -36,83 +37,89 @@ const _sfc_main = create({
|
|
|
36
37
|
},
|
|
37
38
|
emits: ["click"],
|
|
38
39
|
setup(props, { emit }) {
|
|
40
|
+
const timeId = ref(new Date().getTime());
|
|
41
|
+
const danmuList = ref(props.danmu);
|
|
42
|
+
const rows = ref(props.rows);
|
|
43
|
+
const top = ref(props.top);
|
|
44
|
+
const speeds = props.speeds;
|
|
39
45
|
const classes = computed(() => {
|
|
40
46
|
const prefixCls = componentName;
|
|
41
47
|
return {
|
|
42
|
-
[prefixCls]: true
|
|
48
|
+
[prefixCls]: true,
|
|
49
|
+
["dmBody" + timeId.value]: true
|
|
43
50
|
};
|
|
44
51
|
});
|
|
45
|
-
let dmBody = ref(document.createElement("div"));
|
|
46
|
-
let dmContainer = ref(document.createElement("div"));
|
|
47
|
-
let timer = 0;
|
|
48
|
-
const danmuList = ref(props.danmu);
|
|
49
|
-
const rows = ref(props.rows);
|
|
50
|
-
const top = ref(props.top);
|
|
51
|
-
const index2 = ref(0);
|
|
52
|
-
const speeds = props.speeds;
|
|
53
|
-
const danmuCWidth = ref(0);
|
|
54
52
|
onMounted(() => {
|
|
55
|
-
|
|
56
|
-
run();
|
|
53
|
+
runStep();
|
|
57
54
|
});
|
|
58
55
|
onUnmounted(() => {
|
|
59
|
-
|
|
60
|
-
timer = 0;
|
|
56
|
+
danmuList.value = [];
|
|
61
57
|
});
|
|
62
58
|
onDeactivated(() => {
|
|
63
|
-
|
|
64
|
-
timer = 0;
|
|
59
|
+
danmuList.value = [];
|
|
65
60
|
});
|
|
66
61
|
watch(() => props.danmu, (newValue, oldVlaue) => {
|
|
67
62
|
danmuList.value = [...newValue];
|
|
68
63
|
});
|
|
69
64
|
const add = (word) => {
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
};
|
|
73
|
-
const run = () => {
|
|
74
|
-
clearInterval(timer);
|
|
75
|
-
timer = 0;
|
|
76
|
-
timer = setInterval(() => {
|
|
77
|
-
play();
|
|
78
|
-
run();
|
|
79
|
-
}, props.frequency);
|
|
65
|
+
danmuList.value = [...danmuList.value, word];
|
|
66
|
+
runStep();
|
|
80
67
|
};
|
|
81
|
-
const
|
|
82
|
-
const
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
nextTick(() => {
|
|
88
|
-
const width = el.offsetWidth;
|
|
89
|
-
const height = el.offsetHeight;
|
|
90
|
-
el.classList.add("move");
|
|
91
|
-
el.style.animationDuration = `${speeds}ms`;
|
|
92
|
-
el.style.top = _index % rows.value * (height + top.value) + 20 + "px";
|
|
93
|
-
el.style.width = width + 20 + "px";
|
|
94
|
-
el.style.setProperty("--move-distance", `-${danmuCWidth.value}px`);
|
|
95
|
-
el.dataset.index = `${_index}`;
|
|
96
|
-
el.addEventListener("animationend", () => {
|
|
97
|
-
dmContainer.value.removeChild(el);
|
|
68
|
+
const getNode = (index) => {
|
|
69
|
+
const query = Taro.createSelectorQuery();
|
|
70
|
+
setTimeout(() => {
|
|
71
|
+
let width = 100;
|
|
72
|
+
query.select(".dmBody" + timeId.value).boundingClientRect((rec) => {
|
|
73
|
+
width = rec.width || 300;
|
|
98
74
|
});
|
|
99
|
-
|
|
75
|
+
query.select(".dmitem" + index).boundingClientRect((recs) => {
|
|
76
|
+
let height = recs.height;
|
|
77
|
+
let nodeTop = index % rows.value * (height + top.value) + 20 + "px";
|
|
78
|
+
styleInfo(index, nodeTop, width);
|
|
79
|
+
}).exec();
|
|
80
|
+
}, 500);
|
|
81
|
+
};
|
|
82
|
+
const runStep = () => {
|
|
83
|
+
danmuList.value.forEach((item, index) => {
|
|
84
|
+
getNode(index);
|
|
100
85
|
});
|
|
101
86
|
};
|
|
102
|
-
|
|
87
|
+
let styleList = reactive([]);
|
|
88
|
+
const styleInfo = (index, nodeTop, width) => {
|
|
89
|
+
let timeIndex = index - rows.value > 0 ? index - rows.value : 0;
|
|
90
|
+
let list = styleList;
|
|
91
|
+
let time = list[timeIndex] ? Number(list[timeIndex]["--time"]) : 0;
|
|
92
|
+
let obj = {
|
|
93
|
+
top: nodeTop,
|
|
94
|
+
"--time": `${props.frequency * index + time}`,
|
|
95
|
+
animationDuration: `${speeds}ms`,
|
|
96
|
+
animationIterationCount: `${props.loop ? "infinite" : 1}`,
|
|
97
|
+
animationDelay: `${props.frequency * index + time}ms`,
|
|
98
|
+
"--move-distance": `-${width}px`
|
|
99
|
+
};
|
|
100
|
+
styleList.push(obj);
|
|
101
|
+
};
|
|
102
|
+
return { classes, danmuList, add, styleList };
|
|
103
103
|
}
|
|
104
104
|
});
|
|
105
105
|
const _hoisted_1 = {
|
|
106
|
-
|
|
107
|
-
|
|
106
|
+
class: "dmContainer",
|
|
107
|
+
id: "dmContainer"
|
|
108
108
|
};
|
|
109
109
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
110
110
|
return openBlock(), createElementBlock("view", {
|
|
111
|
-
|
|
112
|
-
class: normalizeClass(_ctx.classes)
|
|
111
|
+
class: normalizeClass(["dmBody", _ctx.classes])
|
|
113
112
|
}, [
|
|
114
|
-
createElementVNode("view", _hoisted_1,
|
|
113
|
+
createElementVNode("view", _hoisted_1, [
|
|
114
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.danmuList, (item, index) => {
|
|
115
|
+
return openBlock(), createElementBlock("view", {
|
|
116
|
+
key: "danmu" + index,
|
|
117
|
+
class: normalizeClass(["dmitem", "dmitem" + index, "move"]),
|
|
118
|
+
style: normalizeStyle(_ctx.styleList[index])
|
|
119
|
+
}, toDisplayString(item.length > 8 ? item.substr(0, 8) + "..." : item), 7);
|
|
120
|
+
}), 128))
|
|
121
|
+
])
|
|
115
122
|
], 2);
|
|
116
123
|
}
|
|
117
|
-
var
|
|
118
|
-
export {
|
|
124
|
+
var index_taro = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
125
|
+
export { index_taro as default };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.1.19-beta.
|
|
2
|
+
* @nutui/nutui v3.1.19-beta.1 Sat Apr 02 2022 16:26:37 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2022 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
@@ -104,7 +104,7 @@ const _sfc_main = create({
|
|
|
104
104
|
const _hoisted_1 = { class: "nut-button__warp" };
|
|
105
105
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
106
106
|
const _component_nut_icon = resolveComponent("nut-icon");
|
|
107
|
-
return openBlock(), createElementBlock("
|
|
107
|
+
return openBlock(), createElementBlock("button", {
|
|
108
108
|
class: normalizeClass(_ctx.classes),
|
|
109
109
|
style: normalizeStyle(_ctx.getStyle),
|
|
110
110
|
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.handleClick && _ctx.handleClick(...args))
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.1.19-beta.
|
|
2
|
+
* @nutui/nutui v3.1.19-beta.1 Sat Apr 02 2022 16:26:37 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2022 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
|
-
import { computed, ref, resolveComponent, openBlock, createBlock, withCtx, createSlots, renderSlot, createCommentVNode } from "vue";
|
|
6
|
+
import { computed, ref, watch, resolveComponent, openBlock, createBlock, withCtx, createSlots, renderSlot, createCommentVNode } from "vue";
|
|
7
7
|
import { c as createComponent } from "./component.js";
|
|
8
|
-
import { C as CalendarItem, U as Utils } from "./
|
|
8
|
+
import { C as CalendarItem, U as Utils } from "./index.taro.js";
|
|
9
9
|
import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
|
|
10
|
-
import "
|
|
10
|
+
import "@tarojs/taro";
|
|
11
11
|
const { create } = createComponent("calendar");
|
|
12
12
|
const _sfc_main = create({
|
|
13
13
|
components: {
|
|
@@ -84,11 +84,14 @@ const _sfc_main = create({
|
|
|
84
84
|
const bottomInfo = computed(() => {
|
|
85
85
|
return slots.bottomInfo;
|
|
86
86
|
});
|
|
87
|
+
let show = ref(props.visible);
|
|
87
88
|
const calendarRef = ref(null);
|
|
88
89
|
const update = () => {
|
|
90
|
+
show.value = false;
|
|
89
91
|
emit("update:visible", false);
|
|
90
92
|
};
|
|
91
93
|
const close = () => {
|
|
94
|
+
show.value = false;
|
|
92
95
|
emit("close");
|
|
93
96
|
emit("update:visible", false);
|
|
94
97
|
};
|
|
@@ -96,18 +99,22 @@ const _sfc_main = create({
|
|
|
96
99
|
close();
|
|
97
100
|
emit("choose", param);
|
|
98
101
|
};
|
|
99
|
-
const select = (param) => {
|
|
100
|
-
emit("select", param);
|
|
101
|
-
};
|
|
102
102
|
const closePopup = () => {
|
|
103
103
|
close();
|
|
104
104
|
};
|
|
105
|
+
const select = (param) => {
|
|
106
|
+
emit("select", param);
|
|
107
|
+
};
|
|
108
|
+
watch(() => props.visible, (value) => {
|
|
109
|
+
show.value = value;
|
|
110
|
+
});
|
|
105
111
|
return {
|
|
112
|
+
show,
|
|
106
113
|
closePopup,
|
|
107
114
|
update,
|
|
108
115
|
close,
|
|
109
|
-
choose,
|
|
110
116
|
select,
|
|
117
|
+
choose,
|
|
111
118
|
calendarRef,
|
|
112
119
|
showTopBtn,
|
|
113
120
|
topInfo,
|
|
@@ -121,27 +128,23 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
121
128
|
const _component_nut_popup = resolveComponent("nut-popup");
|
|
122
129
|
return _ctx.poppable ? (openBlock(), createBlock(_component_nut_popup, {
|
|
123
130
|
key: 0,
|
|
124
|
-
visible: _ctx.
|
|
131
|
+
visible: _ctx.show,
|
|
132
|
+
"onUpdate:visible": _cache[0] || (_cache[0] = ($event) => _ctx.show = $event),
|
|
125
133
|
position: "bottom",
|
|
126
134
|
round: "",
|
|
127
|
-
closeable:
|
|
135
|
+
closeable: "",
|
|
128
136
|
onClickOverlay: _ctx.closePopup,
|
|
129
137
|
onClickCloseIcon: _ctx.closePopup,
|
|
130
|
-
"destroy-on-close": true,
|
|
131
138
|
style: { height: "85vh" }
|
|
132
139
|
}, {
|
|
133
140
|
default: withCtx(() => [
|
|
134
|
-
_ctx.
|
|
141
|
+
_ctx.show ? (openBlock(), createBlock(_component_nut_calendar_item, {
|
|
135
142
|
key: 0,
|
|
136
|
-
props: "",
|
|
137
143
|
ref: "calendarRef",
|
|
138
144
|
type: _ctx.type,
|
|
139
145
|
"is-auto-back-fill": _ctx.isAutoBackFill,
|
|
140
146
|
poppable: _ctx.poppable,
|
|
141
147
|
title: _ctx.title,
|
|
142
|
-
"confirm-text": _ctx.confirmText,
|
|
143
|
-
"start-text": _ctx.startText,
|
|
144
|
-
"end-text": _ctx.endText,
|
|
145
148
|
"default-value": _ctx.defaultValue,
|
|
146
149
|
"start-date": _ctx.startDate,
|
|
147
150
|
"end-date": _ctx.endDate,
|
|
@@ -149,6 +152,9 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
149
152
|
onClose: _ctx.close,
|
|
150
153
|
onChoose: _ctx.choose,
|
|
151
154
|
onSelect: _ctx.select,
|
|
155
|
+
"confirm-text": _ctx.confirmText,
|
|
156
|
+
"start-text": _ctx.startText,
|
|
157
|
+
"end-text": _ctx.endText,
|
|
152
158
|
"show-today": _ctx.showToday,
|
|
153
159
|
"show-title": _ctx.showTitle,
|
|
154
160
|
"show-sub-title": _ctx.showSubTitle
|
|
@@ -183,7 +189,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
183
189
|
})
|
|
184
190
|
])
|
|
185
191
|
} : void 0
|
|
186
|
-
]), 1032, ["type", "is-auto-back-fill", "poppable", "title", "
|
|
192
|
+
]), 1032, ["type", "is-auto-back-fill", "poppable", "title", "default-value", "start-date", "end-date", "onUpdate", "onClose", "onChoose", "onSelect", "confirm-text", "start-text", "end-text", "show-today", "show-title", "show-sub-title"])) : createCommentVNode("", true)
|
|
187
193
|
]),
|
|
188
194
|
_: 3
|
|
189
195
|
}, 8, ["visible", "onClickOverlay", "onClickCloseIcon"])) : (openBlock(), createBlock(_component_nut_calendar_item, {
|
|
@@ -198,13 +204,12 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
198
204
|
"default-value": _ctx.defaultValue,
|
|
199
205
|
"start-date": _ctx.startDate,
|
|
200
206
|
"end-date": _ctx.endDate,
|
|
201
|
-
onUpdate: _ctx.update,
|
|
202
207
|
onClose: _ctx.close,
|
|
203
208
|
onChoose: _ctx.choose,
|
|
204
209
|
onSelect: _ctx.select,
|
|
205
|
-
"show-today": _ctx.showToday,
|
|
206
210
|
"show-title": _ctx.showTitle,
|
|
207
|
-
"show-sub-title": _ctx.showSubTitle
|
|
211
|
+
"show-sub-title": _ctx.showSubTitle,
|
|
212
|
+
"show-today": _ctx.showToday
|
|
208
213
|
}, createSlots({ _: 2 }, [
|
|
209
214
|
_ctx.showTopBtn ? {
|
|
210
215
|
name: "btn",
|
|
@@ -236,7 +241,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
236
241
|
})
|
|
237
242
|
])
|
|
238
243
|
} : void 0
|
|
239
|
-
]), 1032, ["type", "is-auto-back-fill", "poppable", "title", "confirm-text", "start-text", "end-text", "default-value", "start-date", "end-date", "
|
|
244
|
+
]), 1032, ["type", "is-auto-back-fill", "poppable", "title", "confirm-text", "start-text", "end-text", "default-value", "start-date", "end-date", "onClose", "onChoose", "onSelect", "show-title", "show-sub-title", "show-today"]));
|
|
240
245
|
}
|
|
241
|
-
var
|
|
242
|
-
export {
|
|
246
|
+
var index_taro = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
247
|
+
export { index_taro as default };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.1.19-beta.
|
|
2
|
+
* @nutui/nutui v3.1.19-beta.1 Sat Apr 02 2022 16:26:37 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2022 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
6
|
import "vue";
|
|
7
7
|
import "./component.js";
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
import "@tarojs/taro";
|
|
9
|
+
export { C as default } from "./index.taro.js";
|
|
10
10
|
import "./plugin-vue_export-helper.js";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui v3.1.19-beta.
|
|
2
|
+
* @nutui/nutui v3.1.19-beta.1 Sat Apr 02 2022 16:26:37 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2022 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
6
|
import { c as createComponent } from "./component.js";
|
|
7
|
-
import { resolveComponent, openBlock, createElementBlock, createElementVNode, toDisplayString, renderSlot, createVNode, createBlock, Fragment, withCtx, createTextVNode } from "vue";
|
|
7
|
+
import { resolveComponent, openBlock, createElementBlock, createElementVNode, toDisplayString, renderSlot, createVNode, createBlock, createCommentVNode, Fragment, withCtx, createTextVNode } from "vue";
|
|
8
8
|
import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
|
|
9
9
|
const { create } = createComponent("card");
|
|
10
10
|
const _sfc_main = create({
|
|
@@ -75,7 +75,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
75
75
|
key: 1,
|
|
76
76
|
class: "nut-card__right__price__origin",
|
|
77
77
|
price: _ctx.vipPrice
|
|
78
|
-
}, null, 8, ["price"]))
|
|
78
|
+
}, null, 8, ["price"])),
|
|
79
|
+
_ctx.isHaveSlot("tag") ? renderSlot(_ctx.$slots, "tag", { key: 2 }) : createCommentVNode("", true)
|
|
79
80
|
]),
|
|
80
81
|
createElementVNode("div", _hoisted_7, [
|
|
81
82
|
_ctx.isHaveSlot("shop-tag") ? renderSlot(_ctx.$slots, "shop-tag", { key: 0 }) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
@@ -100,5 +101,5 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
100
101
|
])
|
|
101
102
|
]);
|
|
102
103
|
}
|
|
103
|
-
var
|
|
104
|
-
export {
|
|
104
|
+
var index_taro = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
105
|
+
export { index_taro as default };
|
|
@@ -35,7 +35,7 @@ var __publicField = (obj, key, value) => {
|
|
|
35
35
|
return value;
|
|
36
36
|
};
|
|
37
37
|
/*!
|
|
38
|
-
* @nutui/nutui v3.1.19-beta.
|
|
38
|
+
* @nutui/nutui v3.1.19-beta.1 Sat Apr 02 2022 16:26:37 GMT+0800 (中国标准时间)
|
|
39
39
|
* (c) 2022 @jdf2e.
|
|
40
40
|
* Released under the MIT License.
|
|
41
41
|
*/
|
|
@@ -266,8 +266,8 @@ const _sfc_main$1 = create$1({
|
|
|
266
266
|
}
|
|
267
267
|
if (needToSync.length && currentValue === props.modelValue) {
|
|
268
268
|
const pathNodes = tree.value.getPathNodesByValue(needToSync);
|
|
269
|
-
pathNodes.map((node,
|
|
270
|
-
tabsCursor.value =
|
|
269
|
+
pathNodes.map((node, index) => {
|
|
270
|
+
tabsCursor.value = index;
|
|
271
271
|
methods.handleNode(node, true);
|
|
272
272
|
});
|
|
273
273
|
}
|
|
@@ -400,10 +400,10 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
400
400
|
"title-scroll": ""
|
|
401
401
|
}, {
|
|
402
402
|
default: withCtx(() => [
|
|
403
|
-
!_ctx.initLoading && _ctx.panes.length ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(_ctx.panes, (pane,
|
|
403
|
+
!_ctx.initLoading && _ctx.panes.length ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(_ctx.panes, (pane, index) => {
|
|
404
404
|
return openBlock(), createBlock(_component_nut_tabpane, {
|
|
405
405
|
title: _ctx.formatTabTitle(pane),
|
|
406
|
-
key:
|
|
406
|
+
key: index
|
|
407
407
|
}, {
|
|
408
408
|
default: withCtx(() => [
|
|
409
409
|
createElementVNode("view", _hoisted_1$1, [
|
|
@@ -543,5 +543,5 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
543
543
|
_: 1
|
|
544
544
|
}, 8, ["visible"]);
|
|
545
545
|
}
|
|
546
|
-
var
|
|
547
|
-
export {
|
|
546
|
+
var index_taro = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
547
|
+
export { index_taro as default };
|