@nutui/nutui 3.1.18 → 3.1.19-beta.0
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.es.js +2 -2
- package/dist/nutui.umd.js +2 -2
- package/dist/packages/_es/ActionSheet.js +1 -1
- package/dist/packages/_es/Address.js +1 -1
- package/dist/packages/_es/Audio.js +1 -1
- package/dist/packages/_es/AudioOperate.js +125 -0
- package/dist/packages/_es/Avatar.js +1 -1
- package/dist/packages/_es/BackTop.js +1 -1
- package/dist/packages/_es/Badge.js +1 -1
- package/dist/packages/_es/Barrage.js +1 -1
- package/dist/packages/_es/Button.js +1 -1
- package/dist/packages/_es/Calendar.js +4 -680
- package/dist/packages/_es/CalendarItem.js +10 -0
- package/dist/packages/_es/Card.js +1 -1
- package/dist/packages/_es/Cascader.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/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 +3 -3
- package/dist/packages/_es/Divider.js +1 -1
- package/dist/packages/_es/Drag.js +1 -1
- package/dist/packages/_es/Elevator.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/ImagePreview.js +3 -3
- package/dist/packages/_es/Indicator.js +1 -1
- package/dist/packages/_es/InfiniteLoading.js +1 -1
- package/dist/packages/_es/Input.js +1 -1
- package/dist/packages/_es/InputNumber.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 +3 -3
- package/dist/packages/_es/Navbar.js +1 -1
- package/dist/packages/_es/NoticeBar.js +1 -1
- package/dist/packages/_es/Notify.js +3 -3
- package/dist/packages/_es/NumberKeyboard.js +1 -1
- package/dist/packages/_es/OldPicker.js +484 -0
- package/dist/packages/_es/OverLay.js +1 -1
- package/dist/packages/_es/Pagination.js +1 -1
- package/dist/packages/_es/Picker.js +3 -3
- package/dist/packages/_es/Popover.js +3 -3
- package/dist/packages/_es/Popup.js +3 -3
- package/dist/packages/_es/Price.js +1 -1
- package/dist/packages/_es/Progress.js +1 -1
- package/dist/packages/_es/PullRefresh.js +363 -0
- 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 +1 -1
- 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/Uploader.js +1 -1
- package/dist/packages/_es/Video.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 +687 -0
- 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/_es/util.js +1 -1
- package/dist/style.css +1 -1
- package/dist/styles/themes/default.scss +44 -44
- package/dist/styles/themes/jdt.scss +44 -44
- package/dist/styles/variables-jdt.scss +2 -1
- package/dist/styles/variables.scss +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,363 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
3
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
4
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
6
|
+
var __spreadValues = (a, b) => {
|
|
7
|
+
for (var prop in b || (b = {}))
|
|
8
|
+
if (__hasOwnProp.call(b, prop))
|
|
9
|
+
__defNormalProp(a, prop, b[prop]);
|
|
10
|
+
if (__getOwnPropSymbols)
|
|
11
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
12
|
+
if (__propIsEnum.call(b, prop))
|
|
13
|
+
__defNormalProp(a, prop, b[prop]);
|
|
14
|
+
}
|
|
15
|
+
return a;
|
|
16
|
+
};
|
|
17
|
+
/*!
|
|
18
|
+
* @nutui/nutui v3.1.19-beta.0 Mon Mar 28 2022 17:50:21 GMT+0800 (中国标准时间)
|
|
19
|
+
* (c) 2022 @jdf2e.
|
|
20
|
+
* Released under the MIT License.
|
|
21
|
+
*/
|
|
22
|
+
import { ref, toRefs, reactive, computed, onMounted, openBlock, createElementBlock, normalizeStyle, createElementVNode, normalizeClass, toDisplayString, renderSlot } from "vue";
|
|
23
|
+
import { c as createComponent } from "./component.js";
|
|
24
|
+
import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
|
|
25
|
+
const MIN_DISTANCE = 10;
|
|
26
|
+
function getDirection(x, y) {
|
|
27
|
+
if (x > y && x > MIN_DISTANCE) {
|
|
28
|
+
return "horizontal";
|
|
29
|
+
}
|
|
30
|
+
if (y > x && y > MIN_DISTANCE) {
|
|
31
|
+
return "vertical";
|
|
32
|
+
}
|
|
33
|
+
return "";
|
|
34
|
+
}
|
|
35
|
+
function useTouch() {
|
|
36
|
+
const startX = ref(0);
|
|
37
|
+
const startY = ref(0);
|
|
38
|
+
const deltaX = ref(0);
|
|
39
|
+
const deltaY = ref(0);
|
|
40
|
+
const offsetX = ref(0);
|
|
41
|
+
const offsetY = ref(0);
|
|
42
|
+
const direction = ref("");
|
|
43
|
+
const isVertical = () => direction.value === "vertical";
|
|
44
|
+
const isHorizontal = () => direction.value === "horizontal";
|
|
45
|
+
const reset = () => {
|
|
46
|
+
deltaX.value = 0;
|
|
47
|
+
deltaY.value = 0;
|
|
48
|
+
offsetX.value = 0;
|
|
49
|
+
offsetY.value = 0;
|
|
50
|
+
direction.value = "";
|
|
51
|
+
};
|
|
52
|
+
const start = (event) => {
|
|
53
|
+
reset();
|
|
54
|
+
startX.value = event.touches[0].clientX;
|
|
55
|
+
startY.value = event.touches[0].clientY;
|
|
56
|
+
};
|
|
57
|
+
const move = (event) => {
|
|
58
|
+
const touch = event.touches[0];
|
|
59
|
+
deltaX.value = touch.clientX - startX.value;
|
|
60
|
+
deltaY.value = touch.clientY - startY.value;
|
|
61
|
+
offsetX.value = Math.abs(deltaX.value);
|
|
62
|
+
offsetY.value = Math.abs(deltaY.value);
|
|
63
|
+
if (!direction.value) {
|
|
64
|
+
direction.value = getDirection(offsetX.value, offsetY.value);
|
|
65
|
+
}
|
|
66
|
+
};
|
|
67
|
+
return {
|
|
68
|
+
move,
|
|
69
|
+
start,
|
|
70
|
+
reset,
|
|
71
|
+
startX,
|
|
72
|
+
startY,
|
|
73
|
+
deltaX,
|
|
74
|
+
deltaY,
|
|
75
|
+
offsetX,
|
|
76
|
+
offsetY,
|
|
77
|
+
direction,
|
|
78
|
+
isVertical,
|
|
79
|
+
isHorizontal
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
function preventDefault(event, isStopPropagation) {
|
|
83
|
+
if (typeof event.cancelable !== "boolean" || event.cancelable) {
|
|
84
|
+
event.preventDefault();
|
|
85
|
+
}
|
|
86
|
+
if (isStopPropagation)
|
|
87
|
+
event.stopPropagation();
|
|
88
|
+
}
|
|
89
|
+
const { componentName, create } = createComponent("pullrefresh");
|
|
90
|
+
const _sfc_main = create({
|
|
91
|
+
props: {
|
|
92
|
+
useWindow: {
|
|
93
|
+
type: Boolean,
|
|
94
|
+
default: true
|
|
95
|
+
},
|
|
96
|
+
containerId: {
|
|
97
|
+
type: String,
|
|
98
|
+
default: ""
|
|
99
|
+
},
|
|
100
|
+
disabled: {
|
|
101
|
+
type: Boolean,
|
|
102
|
+
default: false
|
|
103
|
+
},
|
|
104
|
+
direction: {
|
|
105
|
+
type: String,
|
|
106
|
+
default: "vertical"
|
|
107
|
+
},
|
|
108
|
+
pullingText: {
|
|
109
|
+
type: Object,
|
|
110
|
+
default: {
|
|
111
|
+
top: "\u4E0B\u62C9\u5237\u65B0",
|
|
112
|
+
bottom: "\u4E0A\u62C9\u52A0\u8F7D",
|
|
113
|
+
left: "\u5DE6\u6ED1\u5237\u65B0",
|
|
114
|
+
right: "\u53F3\u6ED1\u52A0\u8F7D"
|
|
115
|
+
}
|
|
116
|
+
},
|
|
117
|
+
loosingText: {
|
|
118
|
+
type: Object,
|
|
119
|
+
default: {
|
|
120
|
+
top: "\u677E\u624B\u91CA\u653E\u5237\u65B0",
|
|
121
|
+
bottom: "\u677E\u624B\u91CA\u653E\u5237\u65B0",
|
|
122
|
+
left: "\u91CA\u653E\u5237\u65B0",
|
|
123
|
+
right: "\u52A0\u8F7D\u66F4\u591A"
|
|
124
|
+
}
|
|
125
|
+
},
|
|
126
|
+
loadingText: {
|
|
127
|
+
type: Object,
|
|
128
|
+
default: {
|
|
129
|
+
top: "\u52A0\u8F7D\u4E2D...",
|
|
130
|
+
bottom: "\u52A0\u8F7D\u4E2D...",
|
|
131
|
+
left: "\u52A0\u8F7D\u4E2D...",
|
|
132
|
+
right: "\u52A0\u8F7D\u4E2D..."
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
},
|
|
136
|
+
emits: ["refresh", "downRefresh"],
|
|
137
|
+
setup(props, { emit }) {
|
|
138
|
+
const { containerId, useWindow, direction, disabled } = toRefs(props);
|
|
139
|
+
const reachTop = ref(false);
|
|
140
|
+
const reachBottom = ref(false);
|
|
141
|
+
const reachLeft = ref(false);
|
|
142
|
+
const reachRight = ref(false);
|
|
143
|
+
const state = reactive({
|
|
144
|
+
status: "normal",
|
|
145
|
+
distance: 0,
|
|
146
|
+
duration: 0
|
|
147
|
+
});
|
|
148
|
+
let scrollEl = document.documentElement || document.body;
|
|
149
|
+
const scroller = ref(null);
|
|
150
|
+
const touch = useTouch();
|
|
151
|
+
const getStyle = computed(() => {
|
|
152
|
+
let style = {};
|
|
153
|
+
const { deltaY, deltaX } = touch;
|
|
154
|
+
if (direction.value == "vertical" && (reachTop.value && deltaY.value > 0 || reachBottom.value && deltaY.value < 0) && touch.isVertical()) {
|
|
155
|
+
style = {
|
|
156
|
+
transitionDuration: `${state.duration}ms`,
|
|
157
|
+
transform: state.distance ? `translate3d(0,${state.distance}px, 0)` : `translate3d(0,0,0)`
|
|
158
|
+
};
|
|
159
|
+
}
|
|
160
|
+
if (direction.value == "horizontal" && (reachLeft.value && deltaX.value > 0 || reachRight.value && deltaX.value < 0) && touch.isHorizontal()) {
|
|
161
|
+
style = {
|
|
162
|
+
transitionDuration: `${state.duration}ms`,
|
|
163
|
+
transform: state.distance ? `translate3d(${state.distance}px, 0,0)` : `translate3d(0,0,0)`
|
|
164
|
+
};
|
|
165
|
+
}
|
|
166
|
+
return style;
|
|
167
|
+
});
|
|
168
|
+
const getBottomStyle = computed(() => {
|
|
169
|
+
let style = {};
|
|
170
|
+
if (direction.value == "vertical" && reachBottom.value && touch.deltaY.value < 0 && touch.isVertical()) {
|
|
171
|
+
const dis = Math.abs(state.distance) < 50 ? -state.distance : 50;
|
|
172
|
+
style = {
|
|
173
|
+
height: dis + "px"
|
|
174
|
+
};
|
|
175
|
+
}
|
|
176
|
+
if (direction.value == "horizontal" && reachRight.value && touch.deltaX.value < 0 && touch.isVertical()) {
|
|
177
|
+
const dis = Math.abs(state.distance) < 50 ? -state.distance : 50;
|
|
178
|
+
style = {
|
|
179
|
+
width: dis + "px"
|
|
180
|
+
};
|
|
181
|
+
}
|
|
182
|
+
return style;
|
|
183
|
+
});
|
|
184
|
+
const refreshTopTem = computed(() => {
|
|
185
|
+
const { status, distance } = state;
|
|
186
|
+
const tag = direction.value == "vertical" ? "top" : "left";
|
|
187
|
+
if (status == "loading" && (reachTop.value || reachLeft.value) && distance > 0) {
|
|
188
|
+
return props.loadingText[tag];
|
|
189
|
+
}
|
|
190
|
+
if (status == "pulling" && (reachTop.value || reachLeft.value) && distance > 0) {
|
|
191
|
+
return props.pullingText[tag];
|
|
192
|
+
}
|
|
193
|
+
if (status == "loosing" && (reachTop.value || reachLeft.value) && distance > 0) {
|
|
194
|
+
return props.loosingText[tag];
|
|
195
|
+
}
|
|
196
|
+
return "";
|
|
197
|
+
});
|
|
198
|
+
const refreshBottomTem = computed(() => {
|
|
199
|
+
const { status, distance } = state;
|
|
200
|
+
const tag = direction.value == "vertical" ? "bottom" : "right";
|
|
201
|
+
if (status == "loading" && (reachBottom.value || reachRight.value) && distance < 0) {
|
|
202
|
+
return props.loadingText[tag];
|
|
203
|
+
}
|
|
204
|
+
if (status == "pulling" && (reachBottom.value || reachRight.value) && distance < 0) {
|
|
205
|
+
return props.pullingText[tag];
|
|
206
|
+
}
|
|
207
|
+
if (status == "loosing" && (reachBottom.value || reachRight.value) && distance < 0) {
|
|
208
|
+
return props.loosingText[tag];
|
|
209
|
+
}
|
|
210
|
+
return "";
|
|
211
|
+
});
|
|
212
|
+
const isTouchable = () => state.status !== "loading" && !disabled.value;
|
|
213
|
+
const setStatus = (distance, isLoading) => {
|
|
214
|
+
state.distance = distance;
|
|
215
|
+
if (isLoading) {
|
|
216
|
+
state.status = "loading";
|
|
217
|
+
} else if (distance === 0) {
|
|
218
|
+
state.status = "normal";
|
|
219
|
+
} else if (Math.abs(distance) < 50) {
|
|
220
|
+
state.status = "pulling";
|
|
221
|
+
} else {
|
|
222
|
+
state.status = "loosing";
|
|
223
|
+
}
|
|
224
|
+
};
|
|
225
|
+
const getParentElement = (el) => {
|
|
226
|
+
if (containerId.value != "") {
|
|
227
|
+
return document.querySelector(`#${containerId.value}`);
|
|
228
|
+
}
|
|
229
|
+
return el && el.parentNode;
|
|
230
|
+
};
|
|
231
|
+
onMounted(() => {
|
|
232
|
+
const parentElement = getParentElement(scroller);
|
|
233
|
+
let scrollElCopy = document.documentElement || document.body;
|
|
234
|
+
if (useWindow.value === false) {
|
|
235
|
+
scrollElCopy = parentElement;
|
|
236
|
+
}
|
|
237
|
+
scrollEl = scrollElCopy;
|
|
238
|
+
});
|
|
239
|
+
const ease = (distance) => {
|
|
240
|
+
const headHeight = 50;
|
|
241
|
+
if (distance > headHeight) {
|
|
242
|
+
if (distance < headHeight * 2) {
|
|
243
|
+
distance = headHeight + (distance - headHeight) / 2;
|
|
244
|
+
} else {
|
|
245
|
+
distance = headHeight * 1.5 + (distance - headHeight * 2) / 4;
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
return Math.round(distance);
|
|
249
|
+
};
|
|
250
|
+
const refreshDone = () => {
|
|
251
|
+
setStatus(0);
|
|
252
|
+
};
|
|
253
|
+
const touchStart = (event) => {
|
|
254
|
+
if (isTouchable()) {
|
|
255
|
+
if (direction.value == "vertical") {
|
|
256
|
+
const top = "scrollTop" in scrollEl ? scrollEl.scrollTop : 0;
|
|
257
|
+
reachTop.value = Math.max(top, 0) == 0 ? true : false;
|
|
258
|
+
const { scrollHeight, clientHeight, scrollTop } = scrollEl;
|
|
259
|
+
reachBottom.value = clientHeight + scrollTop == scrollHeight ? true : false;
|
|
260
|
+
if (reachTop.value || reachBottom.value) {
|
|
261
|
+
state.duration = 0;
|
|
262
|
+
touch.start(event);
|
|
263
|
+
}
|
|
264
|
+
} else {
|
|
265
|
+
const { scrollWidth, clientWidth, scrollLeft } = scrollEl;
|
|
266
|
+
const left = "scrollLeft" in scrollEl ? scrollEl.scrollLeft : 0;
|
|
267
|
+
reachLeft.value = Math.max(left, 0) == 0 ? true : false;
|
|
268
|
+
reachRight.value = clientWidth + scrollLeft == scrollWidth ? true : false;
|
|
269
|
+
if (reachLeft.value || reachRight.value) {
|
|
270
|
+
state.duration = 0;
|
|
271
|
+
touch.start(event);
|
|
272
|
+
}
|
|
273
|
+
}
|
|
274
|
+
} else {
|
|
275
|
+
preventDefault(event);
|
|
276
|
+
}
|
|
277
|
+
};
|
|
278
|
+
const touchMove = (event) => {
|
|
279
|
+
if (isTouchable()) {
|
|
280
|
+
const { deltaY, deltaX } = touch;
|
|
281
|
+
touch.move(event);
|
|
282
|
+
if (direction.value == "vertical" && (reachBottom.value && deltaY.value < 0 || reachTop.value && deltaY.value >= 0) && touch.isVertical()) {
|
|
283
|
+
preventDefault(event);
|
|
284
|
+
setStatus(ease(deltaY.value));
|
|
285
|
+
}
|
|
286
|
+
if (direction.value == "horizontal" && (reachLeft.value && deltaX.value >= 0 || reachRight.value && deltaX.value < 0) && touch.isHorizontal()) {
|
|
287
|
+
preventDefault(event);
|
|
288
|
+
setStatus(ease(deltaX.value));
|
|
289
|
+
}
|
|
290
|
+
} else {
|
|
291
|
+
preventDefault(event);
|
|
292
|
+
}
|
|
293
|
+
};
|
|
294
|
+
const touchEnd = () => {
|
|
295
|
+
if (isTouchable()) {
|
|
296
|
+
const { deltaY, deltaX } = touch;
|
|
297
|
+
if (state.status === "loosing") {
|
|
298
|
+
let dis = 0;
|
|
299
|
+
if (direction.value == "vertical" && reachTop.value && deltaY.value > 0) {
|
|
300
|
+
dis = 50;
|
|
301
|
+
emit("downRefresh", refreshDone);
|
|
302
|
+
}
|
|
303
|
+
if (direction.value == "vertical" && reachBottom.value && deltaY.value < 0) {
|
|
304
|
+
dis = -50;
|
|
305
|
+
emit("refresh", refreshDone);
|
|
306
|
+
}
|
|
307
|
+
if (direction.value == "horizontal" && reachLeft.value && deltaX.value > 0) {
|
|
308
|
+
dis = 50;
|
|
309
|
+
emit("downRefresh", refreshDone);
|
|
310
|
+
}
|
|
311
|
+
if (direction.value == "horizontal" && reachRight.value && deltaX.value < 0) {
|
|
312
|
+
dis = -50;
|
|
313
|
+
emit("refresh", refreshDone);
|
|
314
|
+
}
|
|
315
|
+
setStatus(dis, true);
|
|
316
|
+
} else {
|
|
317
|
+
setStatus(0);
|
|
318
|
+
}
|
|
319
|
+
}
|
|
320
|
+
};
|
|
321
|
+
return __spreadValues({
|
|
322
|
+
scroller,
|
|
323
|
+
touchStart,
|
|
324
|
+
touchMove,
|
|
325
|
+
touchEnd,
|
|
326
|
+
getStyle,
|
|
327
|
+
reachBottom,
|
|
328
|
+
reachTop,
|
|
329
|
+
reachRight,
|
|
330
|
+
reachLeft,
|
|
331
|
+
getBottomStyle,
|
|
332
|
+
refreshTopTem,
|
|
333
|
+
refreshBottomTem
|
|
334
|
+
}, toRefs(state));
|
|
335
|
+
}
|
|
336
|
+
});
|
|
337
|
+
const _hoisted_1 = {
|
|
338
|
+
class: "pullrefresh-content",
|
|
339
|
+
ref: "pull"
|
|
340
|
+
};
|
|
341
|
+
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
342
|
+
return openBlock(), createElementBlock("view", {
|
|
343
|
+
class: "nut-pullrefresh",
|
|
344
|
+
ref: "scroller",
|
|
345
|
+
style: normalizeStyle(_ctx.getStyle),
|
|
346
|
+
onTouchstart: _cache[0] || (_cache[0] = (...args) => _ctx.touchStart && _ctx.touchStart(...args)),
|
|
347
|
+
onTouchmove: _cache[1] || (_cache[1] = (...args) => _ctx.touchMove && _ctx.touchMove(...args)),
|
|
348
|
+
onTouchend: _cache[2] || (_cache[2] = (...args) => _ctx.touchEnd && _ctx.touchEnd(...args))
|
|
349
|
+
}, [
|
|
350
|
+
createElementVNode("view", {
|
|
351
|
+
class: normalizeClass(["pullrefresh-top", _ctx.direction == "horizontal" ? "pullrefresh-top-h" : "pullrefresh-top-v"])
|
|
352
|
+
}, toDisplayString(_ctx.refreshTopTem), 3),
|
|
353
|
+
createElementVNode("view", _hoisted_1, [
|
|
354
|
+
renderSlot(_ctx.$slots, "default")
|
|
355
|
+
], 512),
|
|
356
|
+
createElementVNode("view", {
|
|
357
|
+
class: normalizeClass(["pullrefresh-bottom", _ctx.direction == "horizontal" ? "pullrefresh-bottom-h" : "pullrefresh-bottom-v"]),
|
|
358
|
+
style: normalizeStyle(_ctx.getBottomStyle)
|
|
359
|
+
}, toDisplayString(_ctx.refreshBottomTem), 7)
|
|
360
|
+
], 36);
|
|
361
|
+
}
|
|
362
|
+
var index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
363
|
+
export { index as default };
|
|
@@ -18,7 +18,7 @@ var __spreadValues = (a, b) => {
|
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
20
|
/*!
|
|
21
|
-
* @nutui/nutui v3.1.
|
|
21
|
+
* @nutui/nutui v3.1.19-beta.0 Mon Mar 28 2022 17:50:21 GMT+0800 (中国标准时间)
|
|
22
22
|
* (c) 2022 @jdf2e.
|
|
23
23
|
* Released under the MIT License.
|
|
24
24
|
*/
|
package/dist/packages/_es/Row.js
CHANGED
|
@@ -18,7 +18,7 @@ var __spreadValues = (a, b) => {
|
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
20
|
/*!
|
|
21
|
-
* @nutui/nutui v3.1.
|
|
21
|
+
* @nutui/nutui v3.1.19-beta.0 Mon Mar 28 2022 17:50:21 GMT+0800 (中国标准时间)
|
|
22
22
|
* (c) 2022 @jdf2e.
|
|
23
23
|
* Released under the MIT License.
|
|
24
24
|
*/
|
|
@@ -18,7 +18,7 @@ var __spreadValues = (a, b) => {
|
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
20
|
/*!
|
|
21
|
-
* @nutui/nutui v3.1.
|
|
21
|
+
* @nutui/nutui v3.1.19-beta.0 Mon Mar 28 2022 17:50:21 GMT+0800 (中国标准时间)
|
|
22
22
|
* (c) 2022 @jdf2e.
|
|
23
23
|
* Released under the MIT License.
|
|
24
24
|
*/
|
|
@@ -18,7 +18,7 @@ var __spreadValues = (a, b) => {
|
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
20
|
/*!
|
|
21
|
-
* @nutui/nutui v3.1.
|
|
21
|
+
* @nutui/nutui v3.1.19-beta.0 Mon Mar 28 2022 17:50:21 GMT+0800 (中国标准时间)
|
|
22
22
|
* (c) 2022 @jdf2e.
|
|
23
23
|
* Released under the MIT License.
|
|
24
24
|
*/
|
package/dist/packages/_es/Sku.js
CHANGED
|
@@ -18,7 +18,7 @@ var __spreadValues = (a, b) => {
|
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
20
|
/*!
|
|
21
|
-
* @nutui/nutui v3.1.
|
|
21
|
+
* @nutui/nutui v3.1.19-beta.0 Mon Mar 28 2022 17:50:21 GMT+0800 (中国标准时间)
|
|
22
22
|
* (c) 2022 @jdf2e.
|
|
23
23
|
* Released under the MIT License.
|
|
24
24
|
*/
|
|
@@ -18,7 +18,7 @@ var __spreadValues = (a, b) => {
|
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
20
|
/*!
|
|
21
|
-
* @nutui/nutui v3.1.
|
|
21
|
+
* @nutui/nutui v3.1.19-beta.0 Mon Mar 28 2022 17:50:21 GMT+0800 (中国标准时间)
|
|
22
22
|
* (c) 2022 @jdf2e.
|
|
23
23
|
* Released under the MIT License.
|
|
24
24
|
*/
|
|
@@ -18,7 +18,7 @@ var __spreadValues = (a, b) => {
|
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
20
|
/*!
|
|
21
|
-
* @nutui/nutui v3.1.
|
|
21
|
+
* @nutui/nutui v3.1.19-beta.0 Mon Mar 28 2022 17:50:21 GMT+0800 (中国标准时间)
|
|
22
22
|
* (c) 2022 @jdf2e.
|
|
23
23
|
* Released under the MIT License.
|
|
24
24
|
*/
|
|
@@ -18,7 +18,7 @@ var __spreadValues = (a, b) => {
|
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
20
|
/*!
|
|
21
|
-
* @nutui/nutui v3.1.
|
|
21
|
+
* @nutui/nutui v3.1.19-beta.0 Mon Mar 28 2022 17:50:21 GMT+0800 (中国标准时间)
|
|
22
22
|
* (c) 2022 @jdf2e.
|
|
23
23
|
* Released under the MIT License.
|
|
24
24
|
*/
|
|
@@ -18,7 +18,7 @@ var __spreadValues = (a, b) => {
|
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
20
|
/*!
|
|
21
|
-
* @nutui/nutui v3.1.
|
|
21
|
+
* @nutui/nutui v3.1.19-beta.0 Mon Mar 28 2022 17:50:21 GMT+0800 (中国标准时间)
|
|
22
22
|
* (c) 2022 @jdf2e.
|
|
23
23
|
* Released under the MIT License.
|
|
24
24
|
*/
|
|
@@ -19,7 +19,7 @@ var __publicField = (obj, key, value) => {
|
|
|
19
19
|
return value;
|
|
20
20
|
};
|
|
21
21
|
/*!
|
|
22
|
-
* @nutui/nutui v3.1.
|
|
22
|
+
* @nutui/nutui v3.1.19-beta.0 Mon Mar 28 2022 17:50:21 GMT+0800 (中国标准时间)
|
|
23
23
|
* (c) 2022 @jdf2e.
|
|
24
24
|
* Released under the MIT License.
|
|
25
25
|
*/
|
package/dist/packages/_es/Tag.js
CHANGED
|
@@ -18,7 +18,7 @@ var __spreadValues = (a, b) => {
|
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
20
|
/*!
|
|
21
|
-
* @nutui/nutui v3.1.
|
|
21
|
+
* @nutui/nutui v3.1.19-beta.0 Mon Mar 28 2022 17:50:21 GMT+0800 (中国标准时间)
|
|
22
22
|
* (c) 2022 @jdf2e.
|
|
23
23
|
* Released under the MIT License.
|
|
24
24
|
*/
|
|
@@ -18,7 +18,7 @@ var __spreadValues = (a, b) => {
|
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
20
|
/*!
|
|
21
|
-
* @nutui/nutui v3.1.
|
|
21
|
+
* @nutui/nutui v3.1.19-beta.0 Mon Mar 28 2022 17:50:21 GMT+0800 (中国标准时间)
|
|
22
22
|
* (c) 2022 @jdf2e.
|
|
23
23
|
* Released under the MIT License.
|
|
24
24
|
*/
|
|
@@ -18,7 +18,7 @@ var __spreadValues = (a, b) => {
|
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
20
|
/*!
|
|
21
|
-
* @nutui/nutui v3.1.
|
|
21
|
+
* @nutui/nutui v3.1.19-beta.0 Mon Mar 28 2022 17:50:21 GMT+0800 (中国标准时间)
|
|
22
22
|
* (c) 2022 @jdf2e.
|
|
23
23
|
* Released under the MIT License.
|
|
24
24
|
*/
|
|
@@ -19,7 +19,7 @@ var __publicField = (obj, key, value) => {
|
|
|
19
19
|
return value;
|
|
20
20
|
};
|
|
21
21
|
/*!
|
|
22
|
-
* @nutui/nutui v3.1.
|
|
22
|
+
* @nutui/nutui v3.1.19-beta.0 Mon Mar 28 2022 17:50:21 GMT+0800 (中国标准时间)
|
|
23
23
|
* (c) 2022 @jdf2e.
|
|
24
24
|
* Released under the MIT License.
|
|
25
25
|
*/
|