@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
|
@@ -18,16 +18,15 @@ var __spreadValues = (a, b) => {
|
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
20
|
/*!
|
|
21
|
-
* @nutui/nutui v3.1.19-beta.
|
|
21
|
+
* @nutui/nutui v3.1.19-beta.1 Sat Apr 02 2022 16:26:37 GMT+0800 (中国标准时间)
|
|
22
22
|
* (c) 2022 @jdf2e.
|
|
23
23
|
* Released under the MIT License.
|
|
24
24
|
*/
|
|
25
25
|
import { c as createComponent } from "./component.js";
|
|
26
26
|
import { computed, resolveComponent, openBlock, createElementBlock, normalizeClass, createVNode, withCtx, createElementVNode, toDisplayString, createCommentVNode, Fragment, renderList, normalizeStyle, createTextVNode } from "vue";
|
|
27
|
-
import { popupProps } from "./
|
|
27
|
+
import { p as popupProps } from "./index4.js";
|
|
28
28
|
import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
|
|
29
|
-
import "./
|
|
30
|
-
import "./Icon.js";
|
|
29
|
+
import "./use-lock-scroll.js";
|
|
31
30
|
import "./pxCheck.js";
|
|
32
31
|
const { componentName, create } = createComponent("actionsheet");
|
|
33
32
|
const _sfc_main = create({
|
|
@@ -63,13 +62,9 @@ const _sfc_main = create({
|
|
|
63
62
|
menuItems: {
|
|
64
63
|
type: Array,
|
|
65
64
|
default: () => []
|
|
66
|
-
},
|
|
67
|
-
isWrapTeleport: {
|
|
68
|
-
type: Boolean,
|
|
69
|
-
default: true
|
|
70
65
|
}
|
|
71
66
|
}),
|
|
72
|
-
emits: ["cancel", "
|
|
67
|
+
emits: ["cancel", "choose", "update:visible"],
|
|
73
68
|
setup(props, { emit }) {
|
|
74
69
|
const classes = computed(() => {
|
|
75
70
|
const prefixCls = componentName;
|
|
@@ -84,9 +79,9 @@ const _sfc_main = create({
|
|
|
84
79
|
emit("cancel");
|
|
85
80
|
emit("update:visible", false);
|
|
86
81
|
};
|
|
87
|
-
const chooseItem = (item,
|
|
82
|
+
const chooseItem = (item, index) => {
|
|
88
83
|
if (!item.disable) {
|
|
89
|
-
emit("choose", item,
|
|
84
|
+
emit("choose", item, index);
|
|
90
85
|
emit("update:visible", false);
|
|
91
86
|
}
|
|
92
87
|
};
|
|
@@ -126,7 +121,6 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
126
121
|
createVNode(_component_nut_popup, {
|
|
127
122
|
"pop-class": "popclass",
|
|
128
123
|
visible: _ctx.visible,
|
|
129
|
-
isWrapTeleport: _ctx.isWrapTeleport,
|
|
130
124
|
position: "bottom",
|
|
131
125
|
round: "",
|
|
132
126
|
onClickOverlay: _ctx.close
|
|
@@ -136,12 +130,12 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
136
130
|
_ctx.title ? (openBlock(), createElementBlock("view", _hoisted_2, toDisplayString(_ctx.title), 1)) : createCommentVNode("", true),
|
|
137
131
|
_ctx.description ? (openBlock(), createElementBlock("view", _hoisted_3, toDisplayString(_ctx.description), 1)) : createCommentVNode("", true),
|
|
138
132
|
_ctx.menuItems.length ? (openBlock(), createElementBlock("view", _hoisted_4, [
|
|
139
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.menuItems, (item,
|
|
133
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.menuItems, (item, index) => {
|
|
140
134
|
return openBlock(), createElementBlock("view", {
|
|
141
135
|
class: normalizeClass(["nut-actionsheet-item", { "nut-actionsheet-item-disabled": item.disable }]),
|
|
142
136
|
style: normalizeStyle({ color: _ctx.isHighlight(item) }),
|
|
143
|
-
key:
|
|
144
|
-
onClick: ($event) => _ctx.chooseItem(item,
|
|
137
|
+
key: index,
|
|
138
|
+
onClick: ($event) => _ctx.chooseItem(item, index)
|
|
145
139
|
}, [
|
|
146
140
|
createTextVNode(toDisplayString(item[_ctx.optionTag]), 1),
|
|
147
141
|
createElementVNode("view", _hoisted_6, toDisplayString(item[_ctx.optionSubTag]), 1)
|
|
@@ -156,8 +150,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
156
150
|
])
|
|
157
151
|
]),
|
|
158
152
|
_: 1
|
|
159
|
-
}, 8, ["visible", "
|
|
153
|
+
}, 8, ["visible", "onClickOverlay"])
|
|
160
154
|
], 2);
|
|
161
155
|
}
|
|
162
|
-
var
|
|
163
|
-
export {
|
|
156
|
+
var index_taro = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
157
|
+
export { index_taro as default };
|
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
var __defProp = Object.defineProperty;
|
|
2
|
-
var __defProps = Object.defineProperties;
|
|
3
|
-
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
4
2
|
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
5
3
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
4
|
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
@@ -16,27 +14,27 @@ var __spreadValues = (a, b) => {
|
|
|
16
14
|
}
|
|
17
15
|
return a;
|
|
18
16
|
};
|
|
19
|
-
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
17
|
/*!
|
|
21
|
-
* @nutui/nutui v3.1.19-beta.
|
|
18
|
+
* @nutui/nutui v3.1.19-beta.1 Sat Apr 02 2022 16:26:37 GMT+0800 (中国标准时间)
|
|
22
19
|
* (c) 2022 @jdf2e.
|
|
23
20
|
* Released under the MIT License.
|
|
24
21
|
*/
|
|
25
|
-
import {
|
|
22
|
+
import { computed, ref, reactive, onMounted, watch, toRefs, resolveComponent, openBlock, createBlock, withCtx, createElementVNode, withDirectives, createVNode, vShow, toDisplayString, createCommentVNode, createElementBlock, Fragment, renderList, normalizeClass, normalizeStyle, createTextVNode } from "vue";
|
|
26
23
|
import { c as createComponent } from "./component.js";
|
|
27
|
-
import
|
|
24
|
+
import Taro from "@tarojs/taro";
|
|
28
25
|
import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
|
|
29
|
-
|
|
30
|
-
import "./Icon.js";
|
|
31
|
-
import "./pxCheck.js";
|
|
32
|
-
const { componentName, create } = createComponent("address");
|
|
26
|
+
const { create, componentName } = createComponent("address");
|
|
33
27
|
const _sfc_main = create({
|
|
34
28
|
inheritAttrs: false,
|
|
35
|
-
props:
|
|
29
|
+
props: {
|
|
36
30
|
modelValue: {
|
|
37
31
|
type: Array,
|
|
38
32
|
default: () => []
|
|
39
33
|
},
|
|
34
|
+
visible: {
|
|
35
|
+
type: Boolean,
|
|
36
|
+
default: false
|
|
37
|
+
},
|
|
40
38
|
type: {
|
|
41
39
|
type: String,
|
|
42
40
|
default: "custom"
|
|
@@ -101,11 +99,22 @@ const _sfc_main = create({
|
|
|
101
99
|
type: [String, Array],
|
|
102
100
|
default: "\u8BF7\u9009\u62E9"
|
|
103
101
|
}
|
|
104
|
-
}
|
|
102
|
+
},
|
|
105
103
|
emits: ["update:visible", "update:modelValue", "type", "change", "selected", "close", "close-mask", "switch-module"],
|
|
106
104
|
setup(props, { emit }) {
|
|
105
|
+
const classes = computed(() => {
|
|
106
|
+
const prefixCls = componentName;
|
|
107
|
+
return {
|
|
108
|
+
[prefixCls]: true
|
|
109
|
+
};
|
|
110
|
+
});
|
|
107
111
|
const regionLine = ref(null);
|
|
108
|
-
const
|
|
112
|
+
const tabItemRef = reactive({
|
|
113
|
+
province: ref(null),
|
|
114
|
+
city: ref(null),
|
|
115
|
+
country: ref(null),
|
|
116
|
+
town: ref(null)
|
|
117
|
+
});
|
|
109
118
|
const showPopup = ref(props.visible);
|
|
110
119
|
const privateType = ref(props.type);
|
|
111
120
|
const tabIndex = ref(0);
|
|
@@ -128,16 +137,16 @@ const _sfc_main = create({
|
|
|
128
137
|
return a.title.localeCompare(b.title);
|
|
129
138
|
});
|
|
130
139
|
data.forEach((item) => {
|
|
131
|
-
const
|
|
132
|
-
if (
|
|
140
|
+
const index = newData.findIndex((value) => value.title === item.title);
|
|
141
|
+
if (index <= -1) {
|
|
133
142
|
newData.push({
|
|
134
143
|
title: item.title,
|
|
135
144
|
list: [].concat(item)
|
|
136
145
|
});
|
|
137
146
|
} else {
|
|
138
|
-
newData[
|
|
147
|
+
newData[index] = {
|
|
139
148
|
title: item.title,
|
|
140
|
-
list: newData[
|
|
149
|
+
list: newData[index].list.concat(item)
|
|
141
150
|
};
|
|
142
151
|
}
|
|
143
152
|
});
|
|
@@ -162,23 +171,24 @@ const _sfc_main = create({
|
|
|
162
171
|
customPlaceholder();
|
|
163
172
|
});
|
|
164
173
|
const initCustomSelected = () => {
|
|
174
|
+
console.log(props.modelValue);
|
|
165
175
|
if (props.modelValue.length > 0) {
|
|
166
176
|
tabIndex.value = props.modelValue.length - 1;
|
|
167
|
-
for (let
|
|
168
|
-
if (regionList[tabName.value[
|
|
169
|
-
tabIndex.value =
|
|
177
|
+
for (let index = 0; index < props.modelValue.length; index++) {
|
|
178
|
+
if (regionList[tabName.value[index]].length == 0) {
|
|
179
|
+
tabIndex.value = index - 1;
|
|
170
180
|
break;
|
|
171
181
|
} else {
|
|
172
|
-
const val = props.modelValue[
|
|
173
|
-
const arr = regionList[tabName.value[
|
|
182
|
+
const val = props.modelValue[index];
|
|
183
|
+
const arr = regionList[tabName.value[index]];
|
|
174
184
|
if (privateType.value == "custom") {
|
|
175
|
-
selectedRegion[tabName.value[
|
|
185
|
+
selectedRegion[tabName.value[index]] = arr.filter((item) => item.id == val)[0];
|
|
176
186
|
} else if (privateType.value == "custom2") {
|
|
177
187
|
let sumArr = [];
|
|
178
188
|
arr.map((item) => {
|
|
179
189
|
sumArr.push(...item.list);
|
|
180
190
|
});
|
|
181
|
-
selectedRegion[tabName.value[
|
|
191
|
+
selectedRegion[tabName.value[index]] = sumArr.filter((item) => item.id == val)[0];
|
|
182
192
|
}
|
|
183
193
|
}
|
|
184
194
|
}
|
|
@@ -191,22 +201,22 @@ const _sfc_main = create({
|
|
|
191
201
|
tabNameDefault.value = new Array(4).fill(props.columnsPlaceholder);
|
|
192
202
|
} else if (typeD == "[object Array]") {
|
|
193
203
|
tabNameDefault.value = new Array(4).fill("");
|
|
194
|
-
tabNameDefault.value.forEach((val,
|
|
195
|
-
if (props.columnsPlaceholder[
|
|
196
|
-
tabNameDefault.value[
|
|
204
|
+
tabNameDefault.value.forEach((val, index) => {
|
|
205
|
+
if (props.columnsPlaceholder[index]) {
|
|
206
|
+
tabNameDefault.value[index] = props.columnsPlaceholder[index];
|
|
197
207
|
} else {
|
|
198
|
-
tabNameDefault.value[
|
|
208
|
+
tabNameDefault.value[index] = "\u8BF7\u9009\u62E9";
|
|
199
209
|
}
|
|
200
210
|
});
|
|
201
211
|
}
|
|
202
212
|
};
|
|
203
|
-
const getTabName = (item,
|
|
213
|
+
const getTabName = (item, index) => {
|
|
204
214
|
if (item.name)
|
|
205
215
|
return item.name;
|
|
206
|
-
if (tabIndex.value <
|
|
216
|
+
if (tabIndex.value < index) {
|
|
207
217
|
return item.name;
|
|
208
218
|
} else {
|
|
209
|
-
return
|
|
219
|
+
return "\u8BF7\u9009\u62E9";
|
|
210
220
|
}
|
|
211
221
|
};
|
|
212
222
|
const handClose = (type = "self") => {
|
|
@@ -219,13 +229,15 @@ const _sfc_main = create({
|
|
|
219
229
|
closeWay.value = "mask";
|
|
220
230
|
};
|
|
221
231
|
const lineAnimation = () => {
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
232
|
+
setTimeout(() => {
|
|
233
|
+
Taro.createSelectorQuery().selectAll(`.${tabName.value[tabIndex.value]}`).boundingClientRect((rects) => {
|
|
234
|
+
console.log(rects);
|
|
235
|
+
rects.forEach((rect) => {
|
|
236
|
+
if (rect.width > 0)
|
|
237
|
+
lineDistance.value = rect.left;
|
|
238
|
+
});
|
|
239
|
+
}).exec();
|
|
240
|
+
}, 100);
|
|
229
241
|
};
|
|
230
242
|
const nextAreaList = (item) => {
|
|
231
243
|
const calBack = {
|
|
@@ -248,16 +260,16 @@ const _sfc_main = create({
|
|
|
248
260
|
emit("update:modelValue");
|
|
249
261
|
}
|
|
250
262
|
};
|
|
251
|
-
const changeRegionTab = (item, key,
|
|
252
|
-
if (getTabName(item,
|
|
253
|
-
tabIndex.value =
|
|
263
|
+
const changeRegionTab = (item, key, index) => {
|
|
264
|
+
if (getTabName(item, index)) {
|
|
265
|
+
tabIndex.value = index;
|
|
254
266
|
lineAnimation();
|
|
255
267
|
}
|
|
256
268
|
};
|
|
257
269
|
const selectedExist = (item) => {
|
|
258
270
|
const copyExistAdd = props.existAddress;
|
|
259
271
|
let prevExistAdd = {};
|
|
260
|
-
copyExistAdd.forEach((list,
|
|
272
|
+
copyExistAdd.forEach((list, index) => {
|
|
261
273
|
if (list && list.selectedAddress) {
|
|
262
274
|
prevExistAdd = list;
|
|
263
275
|
}
|
|
@@ -345,13 +357,14 @@ const _sfc_main = create({
|
|
|
345
357
|
regionList.town = isCustom2.value ? transformData(value) : value;
|
|
346
358
|
});
|
|
347
359
|
watch(() => props.existAddress, (value) => {
|
|
348
|
-
value.forEach((item,
|
|
360
|
+
value.forEach((item, index) => {
|
|
349
361
|
if (item.selectedAddress) {
|
|
350
362
|
selectedExistAddress = item;
|
|
351
363
|
}
|
|
352
364
|
});
|
|
353
365
|
});
|
|
354
|
-
return __spreadValues({
|
|
366
|
+
return __spreadValues(__spreadValues({
|
|
367
|
+
classes,
|
|
355
368
|
showPopup,
|
|
356
369
|
privateType,
|
|
357
370
|
tabIndex,
|
|
@@ -365,15 +378,13 @@ const _sfc_main = create({
|
|
|
365
378
|
getTabName,
|
|
366
379
|
nextAreaList,
|
|
367
380
|
regionLine,
|
|
368
|
-
tabRegion,
|
|
369
381
|
lineDistance,
|
|
370
382
|
changeRegionTab,
|
|
371
383
|
selectedExist,
|
|
372
384
|
clickOverlay,
|
|
373
385
|
handClose,
|
|
374
|
-
handleElevatorItem
|
|
375
|
-
|
|
376
|
-
}, toRefs(props));
|
|
386
|
+
handleElevatorItem
|
|
387
|
+
}, toRefs(props)), toRefs(tabItemRef));
|
|
377
388
|
}
|
|
378
389
|
});
|
|
379
390
|
const _hoisted_1 = { class: "nut-address" };
|
|
@@ -427,9 +438,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
427
438
|
onClickOverlay: _ctx.clickOverlay,
|
|
428
439
|
onOpen: _cache[3] || (_cache[3] = ($event) => _ctx.closeWay = "self"),
|
|
429
440
|
visible: _ctx.showPopup,
|
|
430
|
-
"onUpdate:visible": _cache[4] || (_cache[4] = ($event) => _ctx.showPopup = $event)
|
|
431
|
-
isWrapTeleport: _ctx.isWrapTeleport,
|
|
432
|
-
teleport: _ctx.teleport
|
|
441
|
+
"onUpdate:visible": _cache[4] || (_cache[4] = ($event) => _ctx.showPopup = $event)
|
|
433
442
|
}, {
|
|
434
443
|
default: withCtx(() => [
|
|
435
444
|
createElementVNode("view", _hoisted_1, [
|
|
@@ -460,13 +469,13 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
460
469
|
]),
|
|
461
470
|
_ctx.privateType == "custom" ? (openBlock(), createElementBlock("view", _hoisted_4, [
|
|
462
471
|
createElementVNode("view", _hoisted_5, [
|
|
463
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.selectedRegion, (item, key,
|
|
472
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.selectedRegion, (item, key, index) => {
|
|
464
473
|
return openBlock(), createElementBlock("view", {
|
|
465
|
-
class: normalizeClass(
|
|
466
|
-
key:
|
|
467
|
-
onClick: ($event) => _ctx.changeRegionTab(item, key,
|
|
474
|
+
class: normalizeClass({ "tab-item": true, active: index == _ctx.tabIndex, [_ctx.tabName[index]]: true }),
|
|
475
|
+
key: index,
|
|
476
|
+
onClick: ($event) => _ctx.changeRegionTab(item, key, index)
|
|
468
477
|
}, [
|
|
469
|
-
createElementVNode("view", null, toDisplayString(_ctx.getTabName(item,
|
|
478
|
+
createElementVNode("view", null, toDisplayString(_ctx.getTabName(item, index)), 1)
|
|
470
479
|
], 10, _hoisted_6);
|
|
471
480
|
}), 128)),
|
|
472
481
|
createElementVNode("view", {
|
|
@@ -477,10 +486,10 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
477
486
|
], 512),
|
|
478
487
|
createElementVNode("view", _hoisted_7, [
|
|
479
488
|
createElementVNode("ul", _hoisted_8, [
|
|
480
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.regionList[_ctx.tabName[_ctx.tabIndex]], (item,
|
|
489
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.regionList[_ctx.tabName[_ctx.tabIndex]], (item, index) => {
|
|
481
490
|
return openBlock(), createElementBlock("li", {
|
|
482
|
-
key:
|
|
483
|
-
class: normalizeClass(["region-item",
|
|
491
|
+
key: index,
|
|
492
|
+
class: normalizeClass(["region-item", _ctx.selectedRegion[_ctx.tabName[_ctx.tabIndex]].id == item.id ? "active" : ""]),
|
|
484
493
|
onClick: ($event) => _ctx.nextAreaList(item)
|
|
485
494
|
}, [
|
|
486
495
|
_ctx.selectedRegion[_ctx.tabName[_ctx.tabIndex]].id == item.id ? (openBlock(), createBlock(_component_nut_icon, {
|
|
@@ -497,13 +506,13 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
497
506
|
])
|
|
498
507
|
])) : _ctx.privateType == "custom2" ? (openBlock(), createElementBlock("view", _hoisted_10, [
|
|
499
508
|
createElementVNode("view", _hoisted_11, [
|
|
500
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.selectedRegion, (item, key,
|
|
509
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.selectedRegion, (item, key, index) => {
|
|
501
510
|
return openBlock(), createElementBlock("view", {
|
|
502
|
-
class: normalizeClass(
|
|
503
|
-
key:
|
|
504
|
-
onClick: ($event) => _ctx.changeRegionTab(item, key,
|
|
511
|
+
class: normalizeClass({ "tab-item": true, active: index == _ctx.tabIndex, [_ctx.tabName[index]]: true }),
|
|
512
|
+
key: index,
|
|
513
|
+
onClick: ($event) => _ctx.changeRegionTab(item, key, index)
|
|
505
514
|
}, [
|
|
506
|
-
createElementVNode("view", null, toDisplayString(_ctx.getTabName(item,
|
|
515
|
+
createElementVNode("view", null, toDisplayString(_ctx.getTabName(item, index)), 1)
|
|
507
516
|
], 10, _hoisted_12);
|
|
508
517
|
}), 128)),
|
|
509
518
|
createElementVNode("view", {
|
|
@@ -522,10 +531,10 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
522
531
|
])) : _ctx.privateType == "exist" ? (openBlock(), createElementBlock("view", _hoisted_14, [
|
|
523
532
|
createElementVNode("div", _hoisted_15, [
|
|
524
533
|
createElementVNode("ul", _hoisted_16, [
|
|
525
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.existAddress, (item,
|
|
534
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.existAddress, (item, index) => {
|
|
526
535
|
return openBlock(), createElementBlock("li", {
|
|
527
536
|
class: normalizeClass(["exist-item", [item.selectedAddress ? "active" : ""]]),
|
|
528
|
-
key:
|
|
537
|
+
key: index,
|
|
529
538
|
onClick: ($event) => _ctx.selectedExist(item)
|
|
530
539
|
}, [
|
|
531
540
|
createVNode(_component_nut_icon, {
|
|
@@ -558,7 +567,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
558
567
|
])
|
|
559
568
|
]),
|
|
560
569
|
_: 1
|
|
561
|
-
}, 8, ["onClose", "onClickOverlay", "visible"
|
|
570
|
+
}, 8, ["onClose", "onClickOverlay", "visible"]);
|
|
562
571
|
}
|
|
563
|
-
var
|
|
564
|
-
export {
|
|
572
|
+
var index_taro = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
573
|
+
export { index_taro 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.19-beta.
|
|
21
|
+
* @nutui/nutui v3.1.19-beta.1 Sat Apr 02 2022 16:26:37 GMT+0800 (中国标准时间)
|
|
22
22
|
* (c) 2022 @jdf2e.
|
|
23
23
|
* Released under the MIT License.
|
|
24
24
|
*/
|
|
@@ -218,7 +218,7 @@ const _hoisted_2 = {
|
|
|
218
218
|
};
|
|
219
219
|
const _hoisted_3 = { class: "time" };
|
|
220
220
|
const _hoisted_4 = { class: "progress-bar-wrapper" };
|
|
221
|
-
const _hoisted_5 = /* @__PURE__ */ createElementVNode("
|
|
221
|
+
const _hoisted_5 = /* @__PURE__ */ createElementVNode("view", { class: "custom-button" }, null, -1);
|
|
222
222
|
const _hoisted_6 = { class: "time" };
|
|
223
223
|
const _hoisted_7 = {
|
|
224
224
|
key: 1,
|
|
@@ -228,10 +228,10 @@ const _hoisted_8 = ["controls", "src", "preload", "autoplay", "loop", "muted"];
|
|
|
228
228
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
229
229
|
const _component_nut_range = resolveComponent("nut-range");
|
|
230
230
|
const _component_nut_icon = resolveComponent("nut-icon");
|
|
231
|
-
return openBlock(), createElementBlock("
|
|
232
|
-
_ctx.type == "progress" ? (openBlock(), createElementBlock("
|
|
233
|
-
createElementVNode("
|
|
234
|
-
createElementVNode("
|
|
231
|
+
return openBlock(), createElementBlock("view", _hoisted_1, [
|
|
232
|
+
_ctx.type == "progress" ? (openBlock(), createElementBlock("view", _hoisted_2, [
|
|
233
|
+
createElementVNode("view", _hoisted_3, toDisplayString(_ctx.currentDuration), 1),
|
|
234
|
+
createElementVNode("view", _hoisted_4, [
|
|
235
235
|
createVNode(_component_nut_range, {
|
|
236
236
|
modelValue: _ctx.percent,
|
|
237
237
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => _ctx.percent = $event),
|
|
@@ -246,10 +246,10 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
246
246
|
_: 1
|
|
247
247
|
}, 8, ["modelValue", "onChange"])
|
|
248
248
|
]),
|
|
249
|
-
createElementVNode("
|
|
249
|
+
createElementVNode("view", _hoisted_6, toDisplayString(_ctx.duration), 1)
|
|
250
250
|
])) : createCommentVNode("", true),
|
|
251
|
-
_ctx.type == "icon" ? (openBlock(), createElementBlock("
|
|
252
|
-
createElementVNode("
|
|
251
|
+
_ctx.type == "icon" ? (openBlock(), createElementBlock("view", _hoisted_7, [
|
|
252
|
+
createElementVNode("view", {
|
|
253
253
|
class: normalizeClass(["nut-audio-icon-box", _ctx.playing ? "nut-audio-icon-play" : "nut-audio-icon-stop"]),
|
|
254
254
|
onClick: _cache[1] || (_cache[1] = (...args) => _ctx.changeStatus && _ctx.changeStatus(...args))
|
|
255
255
|
}, [
|
|
@@ -264,7 +264,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
264
264
|
})) : createCommentVNode("", true)
|
|
265
265
|
], 2)
|
|
266
266
|
])) : createCommentVNode("", true),
|
|
267
|
-
_ctx.type == "none" ? (openBlock(), createElementBlock("
|
|
267
|
+
_ctx.type == "none" ? (openBlock(), createElementBlock("view", {
|
|
268
268
|
key: 2,
|
|
269
269
|
onClick: _cache[2] || (_cache[2] = (...args) => _ctx.changeStatus && _ctx.changeStatus(...args))
|
|
270
270
|
}, [
|
|
@@ -285,5 +285,5 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
285
285
|
}, null, 40, _hoisted_8)
|
|
286
286
|
]);
|
|
287
287
|
}
|
|
288
|
-
var
|
|
289
|
-
export {
|
|
288
|
+
var index_taro = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
289
|
+
export { index_taro 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.19-beta.
|
|
21
|
+
* @nutui/nutui v3.1.19-beta.1 Sat Apr 02 2022 16:26:37 GMT+0800 (中国标准时间)
|
|
22
22
|
* (c) 2022 @jdf2e.
|
|
23
23
|
* Released under the MIT License.
|
|
24
24
|
*/
|
|
@@ -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
|
*/
|
|
@@ -83,5 +83,5 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
83
83
|
])) : createCommentVNode("", true)
|
|
84
84
|
], 6);
|
|
85
85
|
}
|
|
86
|
-
var
|
|
87
|
-
export {
|
|
86
|
+
var index_taro = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
87
|
+
export { index_taro as default };
|