@nutui/nutui 3.1.19-beta.1 → 3.1.19-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +9 -8
- package/dist/nutui.es.js +2875 -3576
- package/dist/nutui.umd.js +2965 -3579
- package/dist/packages/_es/ActionSheet.js +18 -12
- package/dist/packages/_es/Address.js +69 -78
- 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 +110 -68
- package/dist/packages/_es/Badge.js +3 -3
- package/dist/packages/_es/Barrage.js +55 -62
- package/dist/packages/_es/Button.js +2 -2
- package/dist/packages/_es/Calendar.js +27 -32
- package/dist/packages/_es/CalendarItem.js +3 -3
- package/dist/packages/_es/Card.js +5 -6
- package/dist/packages/_es/Cascader.js +7 -7
- package/dist/packages/_es/Cell.js +11 -4
- package/dist/packages/_es/CellGroup.js +1 -1
- package/dist/packages/_es/Checkbox.js +13 -3
- package/dist/packages/_es/CheckboxGroup.js +2 -2
- package/dist/packages/_es/CircleProgress.js +40 -149
- package/dist/packages/_es/Col.js +1 -1
- package/dist/packages/_es/Collapse.js +8 -34
- package/dist/packages/_es/CollapseItem.js +59 -90
- package/dist/packages/_es/CountDown.js +5 -5
- package/dist/packages/_es/CountUp.js +51 -43
- package/dist/packages/_es/DatePicker.js +20 -21
- package/dist/packages/_es/Dialog.js +91 -12
- package/dist/packages/_es/Divider.js +4 -4
- package/dist/packages/_es/Drag.js +54 -92
- package/dist/packages/_es/Elevator.js +50 -75
- package/dist/packages/_es/Empty.js +3 -3
- package/dist/packages/_es/FixedNav.js +10 -11
- package/dist/packages/_es/Form.js +5 -9
- package/dist/packages/_es/FormItem.js +1 -1
- package/dist/packages/_es/Grid.js +1 -1
- package/dist/packages/_es/GridItem.js +26 -8
- package/dist/packages/_es/Icon.js +1 -1
- package/dist/packages/_es/ImagePreview.js +83 -14
- package/dist/packages/_es/Indicator.js +3 -3
- package/dist/packages/_es/InfiniteLoading.js +107 -93
- package/dist/packages/_es/Input.js +8 -8
- package/dist/packages/_es/InputNumber.js +16 -23
- package/dist/packages/_es/Layout.js +1 -1
- package/dist/packages/_es/List.js +34 -41
- package/dist/packages/_es/Menu.js +12 -15
- package/dist/packages/_es/MenuItem.js +7 -7
- package/dist/packages/_es/Navbar.js +4 -3
- package/dist/packages/_es/NoticeBar.js +40 -47
- package/dist/packages/_es/Notify.js +166 -27
- package/dist/packages/_es/NumberKeyboard.js +18 -8
- package/dist/packages/_es/OldPicker.js +120 -122
- package/dist/packages/_es/OverLay.js +25 -5
- package/dist/packages/_es/Pagination.js +14 -13
- package/dist/packages/_es/Picker.js +16 -39
- package/dist/packages/_es/Popover.js +29 -154
- package/dist/packages/_es/Popup.js +69 -6
- package/dist/packages/_es/Price.js +5 -17
- package/dist/packages/_es/Progress.js +8 -18
- package/dist/packages/_es/PullRefresh.js +1 -1
- package/dist/packages/_es/Radio.js +14 -4
- package/dist/packages/_es/RadioGroup.js +1 -1
- package/dist/packages/_es/Range.js +33 -46
- package/dist/packages/_es/Rate.js +19 -16
- package/dist/packages/_es/Row.js +1 -1
- package/dist/packages/_es/SearchBar.js +11 -12
- package/dist/packages/_es/ShortPassword.js +67 -89
- package/dist/packages/_es/SideNavBar.js +16 -5
- package/dist/packages/_es/SideNavBarItem.js +1 -1
- package/dist/packages/_es/Signature.js +88 -69
- package/dist/packages/_es/Skeleton.js +11 -8
- package/dist/packages/_es/Sku.js +57 -49
- package/dist/packages/_es/Step.js +1 -1
- package/dist/packages/_es/Steps.js +1 -1
- package/dist/packages/_es/Sticky.js +23 -28
- package/dist/packages/_es/SubSideNavBar.js +1 -1
- package/dist/packages/_es/Swipe.js +26 -39
- package/dist/packages/_es/Swiper.js +14 -32
- package/dist/packages/_es/SwiperItem.js +2 -2
- 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 +21 -11
- package/dist/packages/_es/Table.js +13 -13
- package/dist/packages/_es/Tabs.js +20 -21
- package/dist/packages/_es/Tag.js +4 -4
- package/dist/packages/_es/TextArea.js +42 -44
- package/dist/packages/_es/TimeDetail.js +3 -4
- package/dist/packages/_es/TimePannel.js +3 -3
- package/dist/packages/_es/TimeSelect.js +7 -8
- package/dist/packages/_es/Toast.js +170 -41
- package/dist/packages/_es/Uploader.js +138 -109
- package/dist/packages/_es/Video.js +9 -8
- package/dist/packages/_es/common.js +1 -1
- package/dist/packages/_es/component.js +135 -3
- package/dist/packages/_es/index.js +6 -44
- package/dist/packages/_es/index2.js +31 -8
- package/dist/packages/_es/index3.js +7 -58
- package/dist/packages/_es/index4.js +56 -413
- package/dist/packages/_es/{index.taro.js → index5.js} +113 -140
- 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 +19 -0
- package/dist/style.css +1 -1
- package/dist/styles/themes/default.scss +42 -42
- package/dist/styles/themes/jdt.scss +42 -42
- package/dist/types/__VUE/actionsheet/index.d.ts +269 -0
- package/dist/types/__VUE/address/index.d.ts +386 -0
- package/dist/types/__VUE/audio/index.d.ts +92 -0
- package/dist/types/__VUE/audiooperate/index.d.ts +68 -0
- package/dist/types/__VUE/avatar/index.d.ts +66 -0
- package/dist/types/__VUE/backtop/index.d.ts +105 -0
- package/dist/types/__VUE/badge/index.d.ts +94 -0
- package/dist/types/__VUE/barrage/index.d.ts +80 -0
- package/dist/types/__VUE/button/index.d.ts +116 -0
- package/dist/types/__VUE/calendar/index.d.ts +155 -0
- package/dist/types/__VUE/calendaritem/index.d.ts +195 -0
- package/dist/types/__VUE/card/index.d.ts +81 -0
- package/dist/types/__VUE/cascader/cascader-item.d.ts +76 -0
- package/dist/types/__VUE/cascader/helper.d.ts +8 -0
- package/dist/types/__VUE/cascader/index.d.ts +76 -0
- package/dist/types/__VUE/cascader/tree.d.ts +17 -0
- package/dist/types/__VUE/cascader/types.d.ts +30 -0
- package/dist/types/__VUE/cell/index.d.ts +109 -0
- package/dist/types/__VUE/cellgroup/index.d.ts +38 -0
- package/dist/types/__VUE/checkbox/index.d.ts +102 -0
- package/dist/types/__VUE/checkboxgroup/index.d.ts +39 -0
- package/dist/types/__VUE/circleprogress/index.d.ts +66 -0
- package/dist/types/__VUE/col/index.d.ts +42 -0
- package/dist/types/__VUE/collapse/index.d.ts +104 -0
- package/dist/types/__VUE/collapseitem/index.d.ts +83 -0
- package/dist/types/__VUE/countdown/index.d.ts +90 -0
- package/dist/types/__VUE/countup/index.d.ts +216 -0
- package/dist/types/__VUE/datepicker/index.d.ts +347 -0
- package/dist/types/__VUE/datepicker/utils.d.ts +5 -0
- package/dist/types/__VUE/dialog/index.d.ts +306 -0
- package/dist/types/__VUE/divider/index.d.ts +47 -0
- package/dist/types/__VUE/drag/index.d.ts +61 -0
- package/dist/types/__VUE/elevator/index.d.ts +71 -0
- package/dist/types/__VUE/empty/index.d.ts +46 -0
- package/dist/types/__VUE/fixednav/index.d.ts +96 -0
- package/dist/types/__VUE/form/common.d.ts +20 -0
- package/dist/types/__VUE/form/index.d.ts +32 -0
- package/dist/types/__VUE/form/types.d.ts +13 -0
- package/dist/types/__VUE/formitem/index.d.ts +120 -0
- package/dist/types/__VUE/formitem/types.d.ts +10 -0
- package/dist/types/__VUE/grid/common.d.ts +91 -0
- package/dist/types/__VUE/grid/index.d.ts +100 -0
- package/dist/types/__VUE/griditem/index.d.ts +80 -0
- package/dist/types/__VUE/icon/index.d.ts +74 -0
- package/dist/types/__VUE/imagepreview/index.d.ts +125 -0
- package/dist/types/__VUE/indicator/index.d.ts +70 -0
- package/dist/types/__VUE/infiniteloading/index.d.ts +140 -0
- package/dist/types/__VUE/input/index.d.ts +336 -0
- package/dist/types/__VUE/input/util.d.ts +5 -0
- package/dist/types/__VUE/inputnumber/index.d.ts +117 -0
- package/dist/types/__VUE/layout/index.d.ts +13 -0
- package/dist/types/__VUE/list/index.d.ts +48 -0
- package/dist/types/__VUE/menu/index.d.ts +51 -0
- package/dist/types/__VUE/menuitem/index.d.ts +77 -0
- package/dist/types/__VUE/navbar/index.d.ts +84 -0
- package/dist/types/__VUE/noticebar/index.d.ts +209 -0
- package/dist/types/__VUE/notify/index.d.ts +103 -0
- package/dist/types/__VUE/numberkeyboard/index.d.ts +123 -0
- package/dist/types/__VUE/oldpicker/Column.d.ts +96 -0
- package/dist/types/__VUE/oldpicker/commonProps.d.ts +22 -0
- package/dist/types/__VUE/oldpicker/index.d.ts +360 -0
- package/dist/types/__VUE/oldpicker/types.d.ts +24 -0
- package/dist/types/__VUE/overlay/index.d.ts +1614 -0
- package/dist/types/__VUE/pagination/index.d.ts +112 -0
- package/dist/types/__VUE/picker/Column.d.ts +90 -0
- package/dist/types/__VUE/picker/index.d.ts +342 -0
- package/dist/types/__VUE/picker/types.d.ts +26 -0
- package/dist/types/__VUE/popover/index.d.ts +233 -0
- package/dist/types/__VUE/popup/index.d.ts +1734 -0
- package/dist/types/__VUE/popup/use-lock-scroll.d.ts +5 -0
- package/dist/types/__VUE/price/index.d.ts +87 -0
- package/dist/types/__VUE/progress/index.d.ts +137 -0
- package/dist/types/__VUE/pullrefresh/index.d.ts +128 -0
- package/dist/types/__VUE/pullrefresh/use-touch.d.ts +20 -0
- package/dist/types/__VUE/pullrefresh/util.d.ts +6 -0
- package/dist/types/__VUE/radio/index.d.ts +90 -0
- package/dist/types/__VUE/radiogroup/index.d.ts +48 -0
- package/dist/types/__VUE/range/index.d.ts +156 -0
- package/dist/types/__VUE/rate/index.d.ts +142 -0
- package/dist/types/__VUE/row/index.d.ts +63 -0
- package/dist/types/__VUE/searchbar/index.d.ts +100 -0
- package/dist/types/__VUE/shortpassword/index.d.ts +136 -0
- package/dist/types/__VUE/sidenavbar/index.d.ts +36 -0
- package/dist/types/__VUE/sidenavbaritem/index.d.ts +41 -0
- package/dist/types/__VUE/signature/index.d.ts +73 -0
- package/dist/types/__VUE/skeleton/common.d.ts +63 -0
- package/dist/types/__VUE/skeleton/index.d.ts +117 -0
- package/dist/types/__VUE/sku/components/SkuHeader.d.ts +27 -0
- package/dist/types/__VUE/sku/components/SkuOperate.d.ts +70 -0
- package/dist/types/__VUE/sku/components/SkuSelect.d.ts +30 -0
- package/dist/types/__VUE/sku/components/SkuStepper.d.ts +67 -0
- package/dist/types/__VUE/sku/index.d.ts +300 -0
- package/dist/types/__VUE/step/index.d.ts +70 -0
- package/dist/types/__VUE/steps/index.d.ts +47 -0
- package/dist/types/__VUE/sticky/index.d.ts +63 -0
- package/dist/types/__VUE/subsidenavbar/index.d.ts +54 -0
- package/dist/types/__VUE/swipe/index.d.ts +69 -0
- package/dist/types/__VUE/swiper/index.d.ts +163 -0
- package/dist/types/__VUE/swiper/use-touch.d.ts +20 -0
- package/dist/types/__VUE/swiperitem/index.d.ts +24 -0
- package/dist/types/__VUE/switch/index.d.ts +136 -0
- package/dist/types/__VUE/tabbar/index.d.ts +84 -0
- package/dist/types/__VUE/tabbaritem/index.d.ts +108 -0
- package/dist/types/__VUE/table/common.d.ts +54 -0
- package/dist/types/__VUE/table/index.d.ts +75 -0
- package/dist/types/__VUE/table/renderColumn.d.ts +20 -0
- package/dist/types/__VUE/table/types.d.ts +19 -0
- package/dist/types/__VUE/tabpane/index.d.ts +47 -0
- package/dist/types/__VUE/tabs/index.d.ts +128 -0
- package/dist/types/__VUE/tag/index.d.ts +89 -0
- package/dist/types/__VUE/textarea/index.d.ts +120 -0
- package/dist/types/__VUE/timedetail/index.d.ts +48 -0
- package/dist/types/__VUE/timepannel/index.d.ts +43 -0
- package/dist/types/__VUE/timeselect/index.d.ts +82 -0
- package/dist/types/__VUE/toast/index.d.ts +149 -0
- package/dist/types/__VUE/uploader/index.d.ts +258 -0
- package/dist/types/__VUE/uploader/uploader.d.ts +25 -0
- package/dist/types/__VUE/video/index.d.ts +123 -0
- package/dist/{index.d.ts → types/index.d.ts} +0 -0
- package/dist/types/nutui.d.ts +92 -0
- package/package.json +14 -5
- package/dist/nutui.d.ts +0 -104
- package/dist/packages/_es/use-lock-scroll.js +0 -23
- package/dist/packages/_es/util.js +0 -47
|
@@ -18,15 +18,16 @@ 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.2 Thu Apr 07 2022 17:52:31 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 {
|
|
27
|
+
import { popupProps } from "./Popup.js";
|
|
28
28
|
import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
|
|
29
|
-
import "./
|
|
29
|
+
import "./OverLay.js";
|
|
30
|
+
import "./Icon.js";
|
|
30
31
|
import "./pxCheck.js";
|
|
31
32
|
const { componentName, create } = createComponent("actionsheet");
|
|
32
33
|
const _sfc_main = create({
|
|
@@ -62,9 +63,13 @@ const _sfc_main = create({
|
|
|
62
63
|
menuItems: {
|
|
63
64
|
type: Array,
|
|
64
65
|
default: () => []
|
|
66
|
+
},
|
|
67
|
+
isWrapTeleport: {
|
|
68
|
+
type: Boolean,
|
|
69
|
+
default: true
|
|
65
70
|
}
|
|
66
71
|
}),
|
|
67
|
-
emits: ["cancel", "choose", "update:visible"],
|
|
72
|
+
emits: ["cancel", "close", "choose", "update:visible"],
|
|
68
73
|
setup(props, { emit }) {
|
|
69
74
|
const classes = computed(() => {
|
|
70
75
|
const prefixCls = componentName;
|
|
@@ -79,9 +84,9 @@ const _sfc_main = create({
|
|
|
79
84
|
emit("cancel");
|
|
80
85
|
emit("update:visible", false);
|
|
81
86
|
};
|
|
82
|
-
const chooseItem = (item,
|
|
87
|
+
const chooseItem = (item, index2) => {
|
|
83
88
|
if (!item.disable) {
|
|
84
|
-
emit("choose", item,
|
|
89
|
+
emit("choose", item, index2);
|
|
85
90
|
emit("update:visible", false);
|
|
86
91
|
}
|
|
87
92
|
};
|
|
@@ -121,6 +126,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
121
126
|
createVNode(_component_nut_popup, {
|
|
122
127
|
"pop-class": "popclass",
|
|
123
128
|
visible: _ctx.visible,
|
|
129
|
+
isWrapTeleport: _ctx.isWrapTeleport,
|
|
124
130
|
position: "bottom",
|
|
125
131
|
round: "",
|
|
126
132
|
onClickOverlay: _ctx.close
|
|
@@ -130,12 +136,12 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
130
136
|
_ctx.title ? (openBlock(), createElementBlock("view", _hoisted_2, toDisplayString(_ctx.title), 1)) : createCommentVNode("", true),
|
|
131
137
|
_ctx.description ? (openBlock(), createElementBlock("view", _hoisted_3, toDisplayString(_ctx.description), 1)) : createCommentVNode("", true),
|
|
132
138
|
_ctx.menuItems.length ? (openBlock(), createElementBlock("view", _hoisted_4, [
|
|
133
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.menuItems, (item,
|
|
139
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.menuItems, (item, index2) => {
|
|
134
140
|
return openBlock(), createElementBlock("view", {
|
|
135
141
|
class: normalizeClass(["nut-actionsheet-item", { "nut-actionsheet-item-disabled": item.disable }]),
|
|
136
142
|
style: normalizeStyle({ color: _ctx.isHighlight(item) }),
|
|
137
|
-
key:
|
|
138
|
-
onClick: ($event) => _ctx.chooseItem(item,
|
|
143
|
+
key: index2,
|
|
144
|
+
onClick: ($event) => _ctx.chooseItem(item, index2)
|
|
139
145
|
}, [
|
|
140
146
|
createTextVNode(toDisplayString(item[_ctx.optionTag]), 1),
|
|
141
147
|
createElementVNode("view", _hoisted_6, toDisplayString(item[_ctx.optionSubTag]), 1)
|
|
@@ -150,8 +156,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
150
156
|
])
|
|
151
157
|
]),
|
|
152
158
|
_: 1
|
|
153
|
-
}, 8, ["visible", "onClickOverlay"])
|
|
159
|
+
}, 8, ["visible", "isWrapTeleport", "onClickOverlay"])
|
|
154
160
|
], 2);
|
|
155
161
|
}
|
|
156
|
-
var
|
|
157
|
-
export {
|
|
162
|
+
var index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
163
|
+
export { index as default };
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
var __defProp = Object.defineProperty;
|
|
2
|
+
var __defProps = Object.defineProperties;
|
|
3
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
2
4
|
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
3
5
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
4
6
|
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
@@ -14,27 +16,27 @@ var __spreadValues = (a, b) => {
|
|
|
14
16
|
}
|
|
15
17
|
return a;
|
|
16
18
|
};
|
|
19
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
17
20
|
/*!
|
|
18
|
-
* @nutui/nutui v3.1.19-beta.
|
|
21
|
+
* @nutui/nutui v3.1.19-beta.2 Thu Apr 07 2022 17:52:31 GMT+0800 (中国标准时间)
|
|
19
22
|
* (c) 2022 @jdf2e.
|
|
20
23
|
* Released under the MIT License.
|
|
21
24
|
*/
|
|
22
|
-
import {
|
|
25
|
+
import { ref, computed, reactive, onMounted, watch, toRefs, nextTick, resolveComponent, openBlock, createBlock, withCtx, createElementVNode, withDirectives, createVNode, vShow, toDisplayString, createCommentVNode, createElementBlock, Fragment, renderList, normalizeClass, normalizeStyle, createTextVNode } from "vue";
|
|
23
26
|
import { c as createComponent } from "./component.js";
|
|
24
|
-
import
|
|
27
|
+
import { popupProps } from "./Popup.js";
|
|
25
28
|
import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
|
|
26
|
-
|
|
29
|
+
import "./OverLay.js";
|
|
30
|
+
import "./Icon.js";
|
|
31
|
+
import "./pxCheck.js";
|
|
32
|
+
const { componentName, create } = createComponent("address");
|
|
27
33
|
const _sfc_main = create({
|
|
28
34
|
inheritAttrs: false,
|
|
29
|
-
props: {
|
|
35
|
+
props: __spreadProps(__spreadValues({}, popupProps), {
|
|
30
36
|
modelValue: {
|
|
31
37
|
type: Array,
|
|
32
38
|
default: () => []
|
|
33
39
|
},
|
|
34
|
-
visible: {
|
|
35
|
-
type: Boolean,
|
|
36
|
-
default: false
|
|
37
|
-
},
|
|
38
40
|
type: {
|
|
39
41
|
type: String,
|
|
40
42
|
default: "custom"
|
|
@@ -99,22 +101,11 @@ const _sfc_main = create({
|
|
|
99
101
|
type: [String, Array],
|
|
100
102
|
default: "\u8BF7\u9009\u62E9"
|
|
101
103
|
}
|
|
102
|
-
},
|
|
104
|
+
}),
|
|
103
105
|
emits: ["update:visible", "update:modelValue", "type", "change", "selected", "close", "close-mask", "switch-module"],
|
|
104
106
|
setup(props, { emit }) {
|
|
105
|
-
const classes = computed(() => {
|
|
106
|
-
const prefixCls = componentName;
|
|
107
|
-
return {
|
|
108
|
-
[prefixCls]: true
|
|
109
|
-
};
|
|
110
|
-
});
|
|
111
107
|
const regionLine = ref(null);
|
|
112
|
-
const
|
|
113
|
-
province: ref(null),
|
|
114
|
-
city: ref(null),
|
|
115
|
-
country: ref(null),
|
|
116
|
-
town: ref(null)
|
|
117
|
-
});
|
|
108
|
+
const tabRegion = ref(null);
|
|
118
109
|
const showPopup = ref(props.visible);
|
|
119
110
|
const privateType = ref(props.type);
|
|
120
111
|
const tabIndex = ref(0);
|
|
@@ -137,16 +128,16 @@ const _sfc_main = create({
|
|
|
137
128
|
return a.title.localeCompare(b.title);
|
|
138
129
|
});
|
|
139
130
|
data.forEach((item) => {
|
|
140
|
-
const
|
|
141
|
-
if (
|
|
131
|
+
const index2 = newData.findIndex((value) => value.title === item.title);
|
|
132
|
+
if (index2 <= -1) {
|
|
142
133
|
newData.push({
|
|
143
134
|
title: item.title,
|
|
144
135
|
list: [].concat(item)
|
|
145
136
|
});
|
|
146
137
|
} else {
|
|
147
|
-
newData[
|
|
138
|
+
newData[index2] = {
|
|
148
139
|
title: item.title,
|
|
149
|
-
list: newData[
|
|
140
|
+
list: newData[index2].list.concat(item)
|
|
150
141
|
};
|
|
151
142
|
}
|
|
152
143
|
});
|
|
@@ -171,24 +162,23 @@ const _sfc_main = create({
|
|
|
171
162
|
customPlaceholder();
|
|
172
163
|
});
|
|
173
164
|
const initCustomSelected = () => {
|
|
174
|
-
console.log(props.modelValue);
|
|
175
165
|
if (props.modelValue.length > 0) {
|
|
176
166
|
tabIndex.value = props.modelValue.length - 1;
|
|
177
|
-
for (let
|
|
178
|
-
if (regionList[tabName.value[
|
|
179
|
-
tabIndex.value =
|
|
167
|
+
for (let index2 = 0; index2 < props.modelValue.length; index2++) {
|
|
168
|
+
if (regionList[tabName.value[index2]].length == 0) {
|
|
169
|
+
tabIndex.value = index2 - 1;
|
|
180
170
|
break;
|
|
181
171
|
} else {
|
|
182
|
-
const val = props.modelValue[
|
|
183
|
-
const arr = regionList[tabName.value[
|
|
172
|
+
const val = props.modelValue[index2];
|
|
173
|
+
const arr = regionList[tabName.value[index2]];
|
|
184
174
|
if (privateType.value == "custom") {
|
|
185
|
-
selectedRegion[tabName.value[
|
|
175
|
+
selectedRegion[tabName.value[index2]] = arr.filter((item) => item.id == val)[0];
|
|
186
176
|
} else if (privateType.value == "custom2") {
|
|
187
177
|
let sumArr = [];
|
|
188
178
|
arr.map((item) => {
|
|
189
179
|
sumArr.push(...item.list);
|
|
190
180
|
});
|
|
191
|
-
selectedRegion[tabName.value[
|
|
181
|
+
selectedRegion[tabName.value[index2]] = sumArr.filter((item) => item.id == val)[0];
|
|
192
182
|
}
|
|
193
183
|
}
|
|
194
184
|
}
|
|
@@ -201,22 +191,22 @@ const _sfc_main = create({
|
|
|
201
191
|
tabNameDefault.value = new Array(4).fill(props.columnsPlaceholder);
|
|
202
192
|
} else if (typeD == "[object Array]") {
|
|
203
193
|
tabNameDefault.value = new Array(4).fill("");
|
|
204
|
-
tabNameDefault.value.forEach((val,
|
|
205
|
-
if (props.columnsPlaceholder[
|
|
206
|
-
tabNameDefault.value[
|
|
194
|
+
tabNameDefault.value.forEach((val, index2) => {
|
|
195
|
+
if (props.columnsPlaceholder[index2]) {
|
|
196
|
+
tabNameDefault.value[index2] = props.columnsPlaceholder[index2];
|
|
207
197
|
} else {
|
|
208
|
-
tabNameDefault.value[
|
|
198
|
+
tabNameDefault.value[index2] = "\u8BF7\u9009\u62E9";
|
|
209
199
|
}
|
|
210
200
|
});
|
|
211
201
|
}
|
|
212
202
|
};
|
|
213
|
-
const getTabName = (item,
|
|
203
|
+
const getTabName = (item, index2) => {
|
|
214
204
|
if (item.name)
|
|
215
205
|
return item.name;
|
|
216
|
-
if (tabIndex.value <
|
|
206
|
+
if (tabIndex.value < index2) {
|
|
217
207
|
return item.name;
|
|
218
208
|
} else {
|
|
219
|
-
return
|
|
209
|
+
return tabNameDefault.value[index2];
|
|
220
210
|
}
|
|
221
211
|
};
|
|
222
212
|
const handClose = (type = "self") => {
|
|
@@ -229,15 +219,13 @@ const _sfc_main = create({
|
|
|
229
219
|
closeWay.value = "mask";
|
|
230
220
|
};
|
|
231
221
|
const lineAnimation = () => {
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
}).exec();
|
|
240
|
-
}, 100);
|
|
222
|
+
nextTick(() => {
|
|
223
|
+
const name = tabRegion.value && tabRegion.value.getElementsByClassName("active")[0];
|
|
224
|
+
if (name) {
|
|
225
|
+
const distance = name.offsetLeft;
|
|
226
|
+
lineDistance.value = distance ? distance : 20;
|
|
227
|
+
}
|
|
228
|
+
});
|
|
241
229
|
};
|
|
242
230
|
const nextAreaList = (item) => {
|
|
243
231
|
const calBack = {
|
|
@@ -260,16 +248,16 @@ const _sfc_main = create({
|
|
|
260
248
|
emit("update:modelValue");
|
|
261
249
|
}
|
|
262
250
|
};
|
|
263
|
-
const changeRegionTab = (item, key,
|
|
264
|
-
if (getTabName(item,
|
|
265
|
-
tabIndex.value =
|
|
251
|
+
const changeRegionTab = (item, key, index2) => {
|
|
252
|
+
if (getTabName(item, index2)) {
|
|
253
|
+
tabIndex.value = index2;
|
|
266
254
|
lineAnimation();
|
|
267
255
|
}
|
|
268
256
|
};
|
|
269
257
|
const selectedExist = (item) => {
|
|
270
258
|
const copyExistAdd = props.existAddress;
|
|
271
259
|
let prevExistAdd = {};
|
|
272
|
-
copyExistAdd.forEach((list,
|
|
260
|
+
copyExistAdd.forEach((list, index2) => {
|
|
273
261
|
if (list && list.selectedAddress) {
|
|
274
262
|
prevExistAdd = list;
|
|
275
263
|
}
|
|
@@ -357,14 +345,13 @@ const _sfc_main = create({
|
|
|
357
345
|
regionList.town = isCustom2.value ? transformData(value) : value;
|
|
358
346
|
});
|
|
359
347
|
watch(() => props.existAddress, (value) => {
|
|
360
|
-
value.forEach((item,
|
|
348
|
+
value.forEach((item, index2) => {
|
|
361
349
|
if (item.selectedAddress) {
|
|
362
350
|
selectedExistAddress = item;
|
|
363
351
|
}
|
|
364
352
|
});
|
|
365
353
|
});
|
|
366
|
-
return __spreadValues(
|
|
367
|
-
classes,
|
|
354
|
+
return __spreadValues({
|
|
368
355
|
showPopup,
|
|
369
356
|
privateType,
|
|
370
357
|
tabIndex,
|
|
@@ -378,13 +365,15 @@ const _sfc_main = create({
|
|
|
378
365
|
getTabName,
|
|
379
366
|
nextAreaList,
|
|
380
367
|
regionLine,
|
|
368
|
+
tabRegion,
|
|
381
369
|
lineDistance,
|
|
382
370
|
changeRegionTab,
|
|
383
371
|
selectedExist,
|
|
384
372
|
clickOverlay,
|
|
385
373
|
handClose,
|
|
386
|
-
handleElevatorItem
|
|
387
|
-
|
|
374
|
+
handleElevatorItem,
|
|
375
|
+
initCustomSelected
|
|
376
|
+
}, toRefs(props));
|
|
388
377
|
}
|
|
389
378
|
});
|
|
390
379
|
const _hoisted_1 = { class: "nut-address" };
|
|
@@ -438,7 +427,9 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
438
427
|
onClickOverlay: _ctx.clickOverlay,
|
|
439
428
|
onOpen: _cache[3] || (_cache[3] = ($event) => _ctx.closeWay = "self"),
|
|
440
429
|
visible: _ctx.showPopup,
|
|
441
|
-
"onUpdate:visible": _cache[4] || (_cache[4] = ($event) => _ctx.showPopup = $event)
|
|
430
|
+
"onUpdate:visible": _cache[4] || (_cache[4] = ($event) => _ctx.showPopup = $event),
|
|
431
|
+
isWrapTeleport: _ctx.isWrapTeleport,
|
|
432
|
+
teleport: _ctx.teleport
|
|
442
433
|
}, {
|
|
443
434
|
default: withCtx(() => [
|
|
444
435
|
createElementVNode("view", _hoisted_1, [
|
|
@@ -469,13 +460,13 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
469
460
|
]),
|
|
470
461
|
_ctx.privateType == "custom" ? (openBlock(), createElementBlock("view", _hoisted_4, [
|
|
471
462
|
createElementVNode("view", _hoisted_5, [
|
|
472
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.selectedRegion, (item, key,
|
|
463
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.selectedRegion, (item, key, index2) => {
|
|
473
464
|
return openBlock(), createElementBlock("view", {
|
|
474
|
-
class: normalizeClass(
|
|
475
|
-
key:
|
|
476
|
-
onClick: ($event) => _ctx.changeRegionTab(item, key,
|
|
465
|
+
class: normalizeClass(["tab-item", [index2 == _ctx.tabIndex ? "active" : ""]]),
|
|
466
|
+
key: index2,
|
|
467
|
+
onClick: ($event) => _ctx.changeRegionTab(item, key, index2)
|
|
477
468
|
}, [
|
|
478
|
-
createElementVNode("view", null, toDisplayString(_ctx.getTabName(item,
|
|
469
|
+
createElementVNode("view", null, toDisplayString(_ctx.getTabName(item, index2)), 1)
|
|
479
470
|
], 10, _hoisted_6);
|
|
480
471
|
}), 128)),
|
|
481
472
|
createElementVNode("view", {
|
|
@@ -486,10 +477,10 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
486
477
|
], 512),
|
|
487
478
|
createElementVNode("view", _hoisted_7, [
|
|
488
479
|
createElementVNode("ul", _hoisted_8, [
|
|
489
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.regionList[_ctx.tabName[_ctx.tabIndex]], (item,
|
|
480
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.regionList[_ctx.tabName[_ctx.tabIndex]], (item, index2) => {
|
|
490
481
|
return openBlock(), createElementBlock("li", {
|
|
491
|
-
key:
|
|
492
|
-
class: normalizeClass(["region-item", _ctx.selectedRegion[_ctx.tabName[_ctx.tabIndex]].id == item.id ? "active" : ""]),
|
|
482
|
+
key: index2,
|
|
483
|
+
class: normalizeClass(["region-item", [_ctx.selectedRegion[_ctx.tabName[_ctx.tabIndex]].id == item.id ? "active" : ""]]),
|
|
493
484
|
onClick: ($event) => _ctx.nextAreaList(item)
|
|
494
485
|
}, [
|
|
495
486
|
_ctx.selectedRegion[_ctx.tabName[_ctx.tabIndex]].id == item.id ? (openBlock(), createBlock(_component_nut_icon, {
|
|
@@ -506,13 +497,13 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
506
497
|
])
|
|
507
498
|
])) : _ctx.privateType == "custom2" ? (openBlock(), createElementBlock("view", _hoisted_10, [
|
|
508
499
|
createElementVNode("view", _hoisted_11, [
|
|
509
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.selectedRegion, (item, key,
|
|
500
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.selectedRegion, (item, key, index2) => {
|
|
510
501
|
return openBlock(), createElementBlock("view", {
|
|
511
|
-
class: normalizeClass(
|
|
512
|
-
key:
|
|
513
|
-
onClick: ($event) => _ctx.changeRegionTab(item, key,
|
|
502
|
+
class: normalizeClass(["tab-item", [index2 == _ctx.tabIndex ? "active" : ""]]),
|
|
503
|
+
key: index2,
|
|
504
|
+
onClick: ($event) => _ctx.changeRegionTab(item, key, index2)
|
|
514
505
|
}, [
|
|
515
|
-
createElementVNode("view", null, toDisplayString(_ctx.getTabName(item,
|
|
506
|
+
createElementVNode("view", null, toDisplayString(_ctx.getTabName(item, index2)), 1)
|
|
516
507
|
], 10, _hoisted_12);
|
|
517
508
|
}), 128)),
|
|
518
509
|
createElementVNode("view", {
|
|
@@ -531,10 +522,10 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
531
522
|
])) : _ctx.privateType == "exist" ? (openBlock(), createElementBlock("view", _hoisted_14, [
|
|
532
523
|
createElementVNode("div", _hoisted_15, [
|
|
533
524
|
createElementVNode("ul", _hoisted_16, [
|
|
534
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.existAddress, (item,
|
|
525
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.existAddress, (item, index2) => {
|
|
535
526
|
return openBlock(), createElementBlock("li", {
|
|
536
527
|
class: normalizeClass(["exist-item", [item.selectedAddress ? "active" : ""]]),
|
|
537
|
-
key:
|
|
528
|
+
key: index2,
|
|
538
529
|
onClick: ($event) => _ctx.selectedExist(item)
|
|
539
530
|
}, [
|
|
540
531
|
createVNode(_component_nut_icon, {
|
|
@@ -567,7 +558,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
567
558
|
])
|
|
568
559
|
]),
|
|
569
560
|
_: 1
|
|
570
|
-
}, 8, ["onClose", "onClickOverlay", "visible"]);
|
|
561
|
+
}, 8, ["onClose", "onClickOverlay", "visible", "isWrapTeleport", "teleport"]);
|
|
571
562
|
}
|
|
572
|
-
var
|
|
573
|
-
export {
|
|
563
|
+
var index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
564
|
+
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.19-beta.
|
|
21
|
+
* @nutui/nutui v3.1.19-beta.2 Thu Apr 07 2022 17:52:31 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("div", { 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("div", _hoisted_1, [
|
|
232
|
+
_ctx.type == "progress" ? (openBlock(), createElementBlock("div", _hoisted_2, [
|
|
233
|
+
createElementVNode("div", _hoisted_3, toDisplayString(_ctx.currentDuration), 1),
|
|
234
|
+
createElementVNode("div", _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("div", _hoisted_6, toDisplayString(_ctx.duration), 1)
|
|
250
250
|
])) : createCommentVNode("", true),
|
|
251
|
-
_ctx.type == "icon" ? (openBlock(), createElementBlock("
|
|
252
|
-
createElementVNode("
|
|
251
|
+
_ctx.type == "icon" ? (openBlock(), createElementBlock("div", _hoisted_7, [
|
|
252
|
+
createElementVNode("div", {
|
|
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("div", {
|
|
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 = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
289
|
+
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.19-beta.
|
|
21
|
+
* @nutui/nutui v3.1.19-beta.2 Thu Apr 07 2022 17:52:31 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.2 Thu Apr 07 2022 17:52:31 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 = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
87
|
+
export { index as default };
|