@nutui/nutui 4.0.0 → 4.0.1-2.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.
Files changed (285) hide show
  1. package/CHANGELOG.md +226 -0
  2. package/README.md +34 -65
  3. package/dist/nutui.es.js +10 -17
  4. package/dist/nutui.js +16202 -0
  5. package/dist/nutui.umd.js +1 -7
  6. package/dist/packages/_es/ActionSheet.js +79 -94
  7. package/dist/packages/_es/Address.js +260 -345
  8. package/dist/packages/_es/AddressList.js +269 -354
  9. package/dist/packages/_es/Animate.js +46 -38
  10. package/dist/packages/_es/Audio.js +128 -180
  11. package/dist/packages/_es/AudioOperate.js +60 -52
  12. package/dist/packages/_es/Avatar.js +67 -75
  13. package/dist/packages/_es/AvatarGroup.js +23 -31
  14. package/dist/packages/_es/Backtop.js +59 -99
  15. package/dist/packages/_es/Badge.js +39 -46
  16. package/dist/packages/_es/Barrage.js +68 -145
  17. package/dist/packages/_es/Button.js +47 -66
  18. package/dist/packages/_es/Calendar.js +135 -152
  19. package/dist/packages/_es/CalendarItem.js +6 -6
  20. package/dist/packages/_es/Card.js +42 -56
  21. package/dist/packages/_es/Cascader.js +323 -433
  22. package/dist/packages/_es/Category.js +29 -39
  23. package/dist/packages/_es/CategoryPane.js +57 -83
  24. package/dist/packages/_es/Cell.js +56 -71
  25. package/dist/packages/_es/CellGroup.js +19 -27
  26. package/dist/packages/_es/Checkbox.js +109 -138
  27. package/dist/packages/_es/CheckboxGroup.js +38 -61
  28. package/dist/packages/_es/CircleProgress.js +67 -96
  29. package/dist/packages/_es/Col.js +23 -31
  30. package/dist/packages/_es/Collapse.js +37 -67
  31. package/dist/packages/_es/CollapseItem.js +91 -184
  32. package/dist/packages/_es/Comment.js +207 -279
  33. package/dist/packages/_es/ConfigProvider.js +38 -56
  34. package/dist/packages/_es/Countdown.js +100 -194
  35. package/dist/packages/_es/Countup.js +232 -428
  36. package/dist/packages/_es/DatePicker.js +169 -245
  37. package/dist/packages/_es/Dialog.js +163 -188
  38. package/dist/packages/_es/Divider.js +42 -40
  39. package/dist/packages/_es/Drag.js +70 -153
  40. package/dist/packages/_es/Ecard.js +64 -104
  41. package/dist/packages/_es/Elevator.js +144 -201
  42. package/dist/packages/_es/Ellipsis.js +95 -159
  43. package/dist/packages/_es/Empty.js +23 -39
  44. package/dist/packages/_es/FixedNav.js +93 -116
  45. package/dist/packages/_es/Form.js +108 -164
  46. package/dist/packages/_es/FormItem.js +48 -61
  47. package/dist/packages/_es/Grid.js +5 -6
  48. package/dist/packages/_es/GridItem.js +58 -84
  49. package/dist/packages/_es/Image.js +98 -88
  50. package/dist/packages/_es/ImagePreview.js +262 -392
  51. package/dist/packages/_es/Indicator.js +30 -34
  52. package/dist/packages/_es/InfiniteLoading.js +83 -117
  53. package/dist/packages/_es/Input.js +176 -223
  54. package/dist/packages/_es/InputNumber.js +81 -117
  55. package/dist/packages/_es/Interceptor-6e26b757.js +18 -0
  56. package/dist/packages/_es/Invoice.js +105 -113
  57. package/dist/packages/_es/Layout.js +3 -4
  58. package/dist/packages/_es/List.js +147 -89
  59. package/dist/packages/_es/Menu.js +96 -152
  60. package/dist/packages/_es/MenuItem.js +117 -153
  61. package/dist/packages/_es/Navbar.js +103 -119
  62. package/dist/packages/_es/Noticebar.js +207 -273
  63. package/dist/packages/_es/Notify.js +110 -147
  64. package/dist/packages/_es/NumberKeyboard.js +127 -202
  65. package/dist/packages/_es/Overlay.js +53 -66
  66. package/dist/packages/_es/Pagination.js +70 -100
  67. package/dist/packages/_es/Picker.js +276 -425
  68. package/dist/packages/_es/Popover.js +122 -225
  69. package/dist/packages/_es/Popup.js +4 -4
  70. package/dist/packages/_es/Price.js +47 -80
  71. package/dist/packages/_es/Progress.js +63 -79
  72. package/dist/packages/_es/PullRefresh.js +96 -157
  73. package/dist/packages/_es/Radio.js +4 -4
  74. package/dist/packages/_es/RadioGroup.js +3 -3
  75. package/dist/packages/_es/Range.js +205 -329
  76. package/dist/packages/_es/Rate.js +93 -122
  77. package/dist/packages/_es/Row.js +21 -27
  78. package/dist/packages/_es/Searchbar.js +130 -160
  79. package/dist/packages/_es/ShortPassword.js +69 -93
  80. package/dist/packages/_es/SideNavbar.js +49 -59
  81. package/dist/packages/_es/SideNavbarItem.js +22 -32
  82. package/dist/packages/_es/Signature.js +83 -128
  83. package/dist/packages/_es/Skeleton.js +110 -130
  84. package/dist/packages/_es/Sku.js +251 -326
  85. package/dist/packages/_es/Step.js +60 -69
  86. package/dist/packages/_es/Steps.js +26 -31
  87. package/dist/packages/_es/Sticky.js +4 -4
  88. package/dist/packages/_es/SubSideNavbar.js +52 -56
  89. package/dist/packages/_es/Swipe.js +84 -137
  90. package/dist/packages/_es/Swiper.js +175 -310
  91. package/dist/packages/_es/SwiperItem.js +28 -44
  92. package/dist/packages/_es/Switch.js +55 -67
  93. package/dist/packages/_es/TabPane.js +32 -20
  94. package/dist/packages/_es/Tabbar.js +41 -52
  95. package/dist/packages/_es/TabbarItem.js +61 -81
  96. package/dist/packages/_es/Table.js +110 -148
  97. package/dist/packages/_es/Tabs.js +284 -205
  98. package/dist/packages/_es/Tag.js +44 -61
  99. package/dist/packages/_es/Textarea.js +80 -124
  100. package/dist/packages/_es/TimeDetail.js +49 -57
  101. package/dist/packages/_es/TimePannel.js +35 -31
  102. package/dist/packages/_es/TimeSelect.js +47 -68
  103. package/dist/packages/_es/Toast.js +150 -203
  104. package/dist/packages/_es/Tour.js +139 -175
  105. package/dist/packages/_es/TrendArrow.js +57 -58
  106. package/dist/packages/_es/Uploader.js +235 -359
  107. package/dist/packages/_es/Video.js +191 -298
  108. package/dist/packages/_es/Watermark.js +84 -98
  109. package/dist/packages/_es/_plugin-vue_export-helper-dad06003.js +9 -0
  110. package/dist/packages/_es/common-d218746f.js +116 -0
  111. package/dist/packages/_es/component-234624bc.js +89 -0
  112. package/dist/packages/_es/index-14dfadc4.js +561 -0
  113. package/dist/packages/_es/index-192a3ef6.js +29 -0
  114. package/dist/packages/_es/index-360c5092.js +210 -0
  115. package/dist/packages/_es/index-496e6e05.js +24 -0
  116. package/dist/packages/_es/index-50eed3d9.js +7 -0
  117. package/dist/packages/_es/index-53ec2d4d.js +34 -0
  118. package/dist/packages/_es/index-fadb0974.js +8 -0
  119. package/dist/packages/_es/index.vue_vue_type_script_lang-1139b29a.js +43 -0
  120. package/dist/packages/_es/index.vue_vue_type_script_lang-43b774dd.js +77 -0
  121. package/dist/packages/_es/index.vue_vue_type_script_lang-f44c159d.js +110 -0
  122. package/dist/packages/_es/mountComponent-6d4ff200.js +23 -0
  123. package/dist/packages/_es/pxCheck-38173291.js +4 -0
  124. package/dist/packages/_es/raf-a74f1a06.js +16 -0
  125. package/dist/packages/_es/renderIcon-47498b32.js +5 -0
  126. package/dist/packages/actionsheet/index.scss +2 -0
  127. package/dist/packages/actionsheet/style.mjs +0 -2
  128. package/dist/packages/address/index.scss +5 -2
  129. package/dist/packages/address/style.mjs +0 -3
  130. package/dist/packages/addresslist/index.scss +3 -0
  131. package/dist/packages/addresslist/style.mjs +0 -2
  132. package/dist/packages/audio/index.scss +2 -0
  133. package/dist/packages/audio/style.mjs +0 -1
  134. package/dist/packages/audiooperate/index.scss +2 -0
  135. package/dist/packages/audiooperate/style.mjs +0 -1
  136. package/dist/packages/badge/index.scss +3 -0
  137. package/dist/packages/button/index.scss +1 -1
  138. package/dist/packages/calendar/index.scss +3 -0
  139. package/dist/packages/calendar/style.mjs +0 -3
  140. package/dist/packages/card/index.scss +3 -0
  141. package/dist/packages/card/style.mjs +0 -2
  142. package/dist/packages/cascader/index.scss +4 -0
  143. package/dist/packages/cascader/style.mjs +0 -5
  144. package/dist/packages/cellgroup/index.scss +1 -1
  145. package/dist/packages/checkbox/index.scss +41 -0
  146. package/dist/packages/col/index.scss +2 -2
  147. package/dist/packages/comment/index.scss +2 -0
  148. package/dist/packages/comment/style.mjs +0 -1
  149. package/dist/packages/datepicker/index.scss +1 -2
  150. package/dist/packages/datepicker/style.mjs +0 -3
  151. package/dist/packages/dialog/index.scss +11 -0
  152. package/dist/packages/dialog/style.mjs +0 -3
  153. package/dist/packages/ecard/index.scss +2 -0
  154. package/dist/packages/ecard/style.mjs +0 -1
  155. package/dist/packages/fixednav/index.scss +2 -0
  156. package/dist/packages/fixednav/style.mjs +0 -1
  157. package/dist/packages/form/index.scss +1 -2
  158. package/dist/packages/form/style.mjs +0 -1
  159. package/dist/packages/formitem/index.scss +3 -0
  160. package/dist/packages/formitem/style.mjs +0 -1
  161. package/dist/packages/imagepreview/index.scss +5 -5
  162. package/dist/packages/imagepreview/style.mjs +0 -5
  163. package/dist/packages/input/index.scss +13 -13
  164. package/dist/packages/invoice/index.scss +6 -0
  165. package/dist/packages/invoice/style.mjs +0 -7
  166. package/dist/packages/list/index.scss +8 -8
  167. package/dist/packages/menuitem/index.scss +9 -10
  168. package/dist/packages/menuitem/style.mjs +0 -2
  169. package/dist/packages/navbar/index.scss +0 -1
  170. package/dist/packages/noticebar/index.scss +12 -2
  171. package/dist/packages/notify/index.scss +2 -0
  172. package/dist/packages/notify/style.mjs +0 -2
  173. package/dist/packages/numberkeyboard/index.scss +2 -0
  174. package/dist/packages/numberkeyboard/style.mjs +0 -2
  175. package/dist/packages/picker/index.scss +4 -9
  176. package/dist/packages/picker/style.mjs +0 -2
  177. package/dist/packages/popover/index.scss +2 -0
  178. package/dist/packages/popover/style.mjs +0 -2
  179. package/dist/packages/popup/index.scss +2 -0
  180. package/dist/packages/popup/style.mjs +0 -1
  181. package/dist/packages/price/index.scss +5 -10
  182. package/dist/packages/rate/index.scss +6 -9
  183. package/dist/packages/searchbar/index.scss +4 -0
  184. package/dist/packages/shortpassword/index.scss +18 -0
  185. package/dist/packages/shortpassword/style.mjs +0 -2
  186. package/dist/packages/signature/index.scss +2 -0
  187. package/dist/packages/signature/style.mjs +0 -1
  188. package/dist/packages/skeleton/index.scss +2 -0
  189. package/dist/packages/skeleton/style.mjs +0 -1
  190. package/dist/packages/sku/index.scss +4 -0
  191. package/dist/packages/sku/style.mjs +0 -4
  192. package/dist/packages/tabbaritem/index.scss +2 -0
  193. package/dist/packages/tabbaritem/style.mjs +0 -1
  194. package/dist/packages/tabs/index.scss +36 -2
  195. package/dist/packages/tabs/style.mjs +0 -1
  196. package/dist/packages/textarea/index.scss +2 -0
  197. package/dist/packages/timeselect/index.scss +2 -0
  198. package/dist/packages/timeselect/style.mjs +0 -2
  199. package/dist/packages/tour/index.scss +2 -0
  200. package/dist/packages/tour/style.mjs +0 -3
  201. package/dist/packages/uploader/index.scss +10 -2
  202. package/dist/packages/uploader/style.mjs +0 -2
  203. package/dist/resolver/index.d.ts +6 -0
  204. package/dist/resolver/index.js +1 -0
  205. package/dist/resolver/index.mjs +24 -0
  206. package/dist/resolver/package.json +20 -0
  207. package/dist/smartips/web-types.json +114 -15
  208. package/dist/style.css +1 -1
  209. package/dist/styles/themes/default.scss +155 -52
  210. package/dist/styles/themes/jdb.scss +155 -52
  211. package/dist/styles/themes/jddkh.scss +155 -52
  212. package/dist/styles/themes/jdt.scss +155 -52
  213. package/dist/styles/variables-jdb.scss +9 -1
  214. package/dist/styles/variables-jddkh.scss +9 -1
  215. package/dist/styles/variables-jdt.scss +9 -1
  216. package/dist/styles/variables.scss +8 -0
  217. package/dist/types/__VUE/address/index.vue.d.ts +2 -1
  218. package/dist/types/__VUE/addresslist/components/GeneralShell.vue.d.ts +1 -1
  219. package/dist/types/__VUE/addresslist/components/ItemContents.vue.d.ts +1 -1
  220. package/dist/types/__VUE/addresslist/index.vue.d.ts +1 -1
  221. package/dist/types/__VUE/animate/index.vue.d.ts +6 -0
  222. package/dist/types/__VUE/audiooperate/index.vue.d.ts +4 -4
  223. package/dist/types/__VUE/badge/index.vue.d.ts +9 -0
  224. package/dist/types/__VUE/button/type.d.ts +1 -0
  225. package/dist/types/__VUE/calendaritem/type.d.ts +1 -0
  226. package/dist/types/__VUE/collapse/index.vue.d.ts +31 -5
  227. package/dist/types/__VUE/collapseitem/index.vue.d.ts +117 -11
  228. package/dist/types/__VUE/configprovider/index.vue.d.ts +2 -2
  229. package/dist/types/__VUE/datepicker/index.vue.d.ts +1 -1
  230. package/dist/types/__VUE/dialog/index.d.ts +1 -0
  231. package/dist/types/__VUE/dialog/index.vue.d.ts +1 -0
  232. package/dist/types/__VUE/grid/index.vue.d.ts +1 -1
  233. package/dist/types/__VUE/image/index.vue.d.ts +14 -3
  234. package/dist/types/__VUE/imagepreview/imagePreviewItem.vue.d.ts +9 -0
  235. package/dist/types/__VUE/imagepreview/index.vue.d.ts +1 -1
  236. package/dist/types/__VUE/input/index.vue.d.ts +27 -2
  237. package/dist/types/__VUE/list/index.vue.d.ts +42 -13
  238. package/dist/types/__VUE/list/type.d.ts +13 -0
  239. package/dist/types/__VUE/menu/index.vue.d.ts +0 -2
  240. package/dist/types/__VUE/menuitem/index.vue.d.ts +9 -17
  241. package/dist/types/__VUE/navbar/index.vue.d.ts +1 -1
  242. package/dist/types/__VUE/noticebar/index.vue.d.ts +5 -2
  243. package/dist/types/__VUE/picker/common.d.ts +2 -0
  244. package/dist/types/__VUE/picker/usePicker.d.ts +1 -1
  245. package/dist/types/__VUE/price/index.vue.d.ts +9 -0
  246. package/dist/types/__VUE/rate/index.vue.d.ts +110 -3
  247. package/dist/types/__VUE/row/index.vue.d.ts +1 -1
  248. package/dist/types/__VUE/searchbar/index.vue.d.ts +121 -5
  249. package/dist/types/__VUE/skeleton/index.vue.d.ts +2 -2
  250. package/dist/types/__VUE/swiper/index.vue.d.ts +9 -2
  251. package/dist/types/__VUE/switch/index.vue.d.ts +1 -0
  252. package/dist/types/__VUE/table/common.d.ts +55 -2
  253. package/dist/types/__VUE/tabpane/index.vue.d.ts +1 -4
  254. package/dist/types/__VUE/tabs/hooks.d.ts +12 -0
  255. package/dist/types/__VUE/tabs/index.vue.d.ts +35 -5
  256. package/dist/types/__VUE/tabs/types.d.ts +12 -0
  257. package/dist/types/__VUE/timeselect/index.vue.d.ts +1 -1
  258. package/dist/types/__VUE/toast/index.vue.d.ts +11 -4
  259. package/dist/types/__VUE/uploader/type.d.ts +2 -1
  260. package/dist/types/__VUE/watermark/index.vue.d.ts +1 -1
  261. package/dist/types/index.d.ts +1 -2
  262. package/dist/types/resolver/index.d.ts +6 -0
  263. package/dist/types/utils/date.d.ts +4 -0
  264. package/dist/types/utils/useTaroRect/index.d.ts +1 -1
  265. package/dist/types/utils/util.d.ts +1 -1
  266. package/package.json +13 -6
  267. package/dist/packages/_es/_plugin-vue_export-helper-cc2b3d55.js +0 -10
  268. package/dist/packages/_es/common-b9a5e726.js +0 -145
  269. package/dist/packages/_es/component-81a4c1d0.js +0 -145
  270. package/dist/packages/_es/index-29892cda.js +0 -33
  271. package/dist/packages/_es/index-2ae3ae87.js +0 -846
  272. package/dist/packages/_es/index-43c34ac6.js +0 -30
  273. package/dist/packages/_es/index-54d03fc1.js +0 -8
  274. package/dist/packages/_es/index-79c5dc33.js +0 -10
  275. package/dist/packages/_es/index-7a7385e4.js +0 -67
  276. package/dist/packages/_es/index-991c279f.js +0 -244
  277. package/dist/packages/_es/index.vue_vue_type_script_lang-22dfc112.js +0 -46
  278. package/dist/packages/_es/index.vue_vue_type_script_lang-442e4704.js +0 -98
  279. package/dist/packages/_es/index.vue_vue_type_script_lang-cc5c4086.js +0 -151
  280. package/dist/packages/_es/interceptor-956b24fc.js +0 -29
  281. package/dist/packages/_es/mountComponent-1ece4110.js +0 -39
  282. package/dist/packages/_es/pxCheck-c6b9f6b7.js +0 -6
  283. package/dist/packages/_es/raf-729dad54.js +0 -25
  284. package/dist/packages/_es/renderIcon-3d0fd47c.js +0 -9
  285. /package/dist/types/utils/{interceptor.d.ts → Interceptor.d.ts} +0 -0
@@ -1,26 +1,36 @@
1
- import { ref, computed, reactive, watch, toRefs, nextTick, resolveComponent, openBlock, createBlock, withCtx, createElementVNode, renderSlot, withDirectives, createVNode, vShow, toDisplayString, createElementBlock, Fragment, renderList, normalizeClass, createCommentVNode, normalizeStyle, createTextVNode } from "vue";
2
- import { c as createComponent } from "./component-81a4c1d0.js";
3
- import { P as Popup, p as popupProps } from "./index-991c279f.js";
4
- import Elevator from "./Elevator.js";
5
- import { Location, Location2, Check, Close, Left } from "@nutui/icons-vue";
6
- import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
1
+ var te = Object.defineProperty, oe = Object.defineProperties;
2
+ var le = Object.getOwnPropertyDescriptors;
3
+ var F = Object.getOwnPropertySymbols;
4
+ var ne = Object.prototype.hasOwnProperty, ae = Object.prototype.propertyIsEnumerable;
5
+ var j = (e, o, v) => o in e ? te(e, o, { enumerable: !0, configurable: !0, writable: !0, value: v }) : e[o] = v, R = (e, o) => {
6
+ for (var v in o || (o = {}))
7
+ ne.call(o, v) && j(e, v, o[v]);
8
+ if (F)
9
+ for (var v of F(o))
10
+ ae.call(o, v) && j(e, v, o[v]);
11
+ return e;
12
+ }, P = (e, o) => oe(e, le(o));
13
+ import { ref as p, computed as re, reactive as ie, watch as q, toRefs as ce, nextTick as G, resolveComponent as g, openBlock as d, createBlock as de, withCtx as ue, createElementVNode as i, renderSlot as w, withDirectives as ve, createVNode as b, vShow as pe, toDisplayString as m, createElementBlock as u, Fragment as V, renderList as z, normalizeClass as B, createCommentVNode as _, normalizeStyle as fe, createTextVNode as me } from "vue";
14
+ import { c as he } from "./component-234624bc.js";
15
+ import { P as H, p as ye } from "./index-360c5092.js";
16
+ import J from "./Elevator.js";
17
+ import { Location as _e, Location2 as ke, Check as ge, Close as we, Left as be } from "@nutui/icons-vue";
18
+ import { _ as Ae } from "./_plugin-vue_export-helper-dad06003.js";
7
19
  import "../locale/lang";
8
20
  import "./Overlay.js";
9
- import "./index-79c5dc33.js";
10
- const { componentName, create, translate } = createComponent("address");
11
- const _sfc_main = create({
21
+ import "./index-fadb0974.js";
22
+ const { componentName: os, create: Ce, translate: K } = he("address"), Te = Ce({
12
23
  components: {
13
- Location,
14
- Location2,
15
- Check,
16
- Close,
17
- Left,
18
- [Popup.name]: Popup,
19
- [Elevator.name]: Elevator
24
+ Location: _e,
25
+ Location2: ke,
26
+ Check: ge,
27
+ Close: we,
28
+ Left: be,
29
+ [H.name]: H,
30
+ [J.name]: J
20
31
  },
21
- inheritAttrs: false,
22
- props: {
23
- ...popupProps,
32
+ inheritAttrs: !1,
33
+ props: P(R({}, ye), {
24
34
  modelValue: {
25
35
  type: Array,
26
36
  default: () => []
@@ -54,7 +64,7 @@ const _sfc_main = create({
54
64
  // 镇
55
65
  isShowCustomAddress: {
56
66
  type: Boolean,
57
- default: true
67
+ default: !0
58
68
  },
59
69
  existAddress: {
60
70
  type: Array,
@@ -76,419 +86,324 @@ const _sfc_main = create({
76
86
  type: [String, Array],
77
87
  default: ""
78
88
  }
79
- },
89
+ }),
80
90
  emits: ["update:visible", "update:modelValue", "type", "change", "selected", "close", "close-mask", "switch-module"],
81
- setup(props, { emit }) {
82
- const regionLine = ref(null);
83
- const tabRegion = ref(null);
84
- const showPopup = ref(props.visible);
85
- const privateType = ref(props.type);
86
- const tabIndex = ref(0);
87
- const tabName = ref(["province", "city", "country", "town"]);
88
- const regionList = computed(() => {
89
- switch (tabIndex.value) {
91
+ setup(e, { emit: o }) {
92
+ const v = p(null), T = p(null), A = p(e.visible), h = p(e.type), c = p(0), C = p(0), k = p(["province", "city", "country", "town"]), E = p(null), S = p([0, 0, 0, 0]), $ = re(() => {
93
+ switch (c.value) {
90
94
  case 0:
91
- return props.province;
95
+ return e.province;
92
96
  case 1:
93
- return props.city;
97
+ return e.city;
94
98
  case 2:
95
- return props.country;
99
+ return e.country;
96
100
  default:
97
- return props.town;
101
+ return e.town;
98
102
  }
99
- });
100
- const transformData = (data) => {
101
- if (!Array.isArray(data))
103
+ }), l = (s) => {
104
+ if (!Array.isArray(s))
102
105
  throw new TypeError("params muse be array.");
103
- if (!data.length)
106
+ if (!s.length)
104
107
  return [];
105
- data.forEach((item) => {
106
- if (!item.title) {
107
- console.error("[NutUI] <Address> 请检查数组选项的 title 值是否有设置 ,title 为必填项 .");
108
+ s.forEach((n) => {
109
+ if (!n.title) {
110
+ console.warn("[NutUI] <Address> 请检查数组选项的 title 值是否有设置 ,title 为必填项 .");
108
111
  return;
109
112
  }
110
113
  });
111
- const newData = [];
112
- data = data.sort((a, b) => a.title.localeCompare(b.title));
113
- data.forEach((item) => {
114
- const index2 = newData.findIndex((value) => value.title === item.title);
115
- if (index2 <= -1) {
116
- newData.push({
117
- title: item.title,
118
- list: [].concat(item)
119
- });
120
- } else {
121
- newData[index2].list.push(item);
122
- }
123
- });
124
- return newData;
114
+ const t = [];
115
+ return s = s.sort((n, a) => n.title.localeCompare(a.title)), s.forEach((n) => {
116
+ const a = t.findIndex((I) => I.title === n.title);
117
+ a <= -1 ? t.push({
118
+ title: n.title,
119
+ list: [].concat(n)
120
+ }) : t[a].list.push(n);
121
+ }), t;
125
122
  };
126
- let selectedRegion = ref([]);
127
- let selectedExistAddress = reactive({});
128
- const closeWay = ref("self");
129
- const lineDistance = ref(20);
130
- const initCustomSelected = () => {
131
- const defaultValue = props.modelValue;
132
- const num = defaultValue.length;
133
- if (num > 0) {
134
- tabIndex.value = num - 1;
135
- if (regionList.value.length == 0) {
136
- tabIndex.value = 0;
123
+ let r = p([]), y = ie({});
124
+ const f = p("self"), N = p(20), M = () => {
125
+ const s = e.modelValue, t = s.length;
126
+ if (t > 0) {
127
+ if (c.value = t - 1, $.value.length == 0) {
128
+ c.value = 0;
137
129
  return;
138
130
  }
139
- for (let index2 = 0; index2 < num; index2++) {
140
- let arr = [];
141
- switch (index2) {
131
+ for (let n = 0; n < t; n++) {
132
+ let a = [];
133
+ switch (n) {
142
134
  case 0:
143
- arr = props.province;
135
+ a = e.province;
144
136
  break;
145
137
  case 1:
146
- arr = props.city;
138
+ a = e.city;
147
139
  break;
148
140
  case 2:
149
- arr = props.country;
141
+ a = e.country;
150
142
  break;
151
143
  default:
152
- arr = props.town;
144
+ a = e.town;
153
145
  }
154
- selectedRegion.value[index2] = arr.filter((item) => item.id == defaultValue[index2])[0];
146
+ r.value[n] = a.filter((I) => I.id == s[n])[0];
155
147
  }
156
- lineAnimation();
157
- }
158
- };
159
- const getTabName = (item, index2) => {
160
- if (item && item.name)
161
- return item.name;
162
- if (tabIndex.value < index2 && item) {
163
- return item.name;
164
- } else {
165
- return props.columnsPlaceholder[index2] || translate("select");
148
+ L();
166
149
  }
167
- };
168
- const lineAnimation = () => {
169
- nextTick(() => {
170
- const name = tabRegion.value && tabRegion.value.getElementsByClassName("active")[0];
171
- if (name) {
172
- const distance = name.offsetLeft;
173
- lineDistance.value = distance ? distance : 20;
150
+ }, O = (s, t) => s && s.name || c.value < t && s ? s.name : e.columnsPlaceholder[t] || K("select"), L = () => {
151
+ X(), G(() => {
152
+ const s = T.value && T.value.getElementsByClassName("active")[0];
153
+ if (s) {
154
+ const t = s.offsetLeft;
155
+ N.value = t || 20;
174
156
  }
175
157
  });
176
- };
177
- const nextAreaList = (item) => {
178
- const tab = tabIndex.value;
179
- const callBackParams = {
180
- custom: tabName.value[tab]
158
+ }, U = (s) => {
159
+ const t = c.value;
160
+ C.value = c.value;
161
+ const n = {
162
+ custom: k.value[t]
181
163
  };
182
- selectedRegion.value[tab] = item;
183
- for (let i = tab + 2; i < 4; i++) {
184
- selectedRegion.value.splice(i, 1);
185
- }
186
- if (tab < 3) {
187
- tabIndex.value = tab + 1;
188
- lineAnimation();
189
- callBackParams.next = tabName.value[tabIndex.value];
190
- callBackParams.value = item;
191
- emit("change", callBackParams);
192
- } else {
193
- handClose();
194
- emit("update:modelValue");
195
- }
196
- };
197
- const changeRegionTab = (item, index2) => {
198
- if (getTabName(item, index2)) {
199
- tabIndex.value = index2;
200
- lineAnimation();
201
- }
202
- };
203
- const selectedExist = (item) => {
204
- const copyExistAdd = props.existAddress;
205
- let prevExistAdd = {};
206
- copyExistAdd.forEach((list) => {
207
- if (list && list.selectedAddress)
208
- prevExistAdd = list;
209
- list.selectedAddress = false;
164
+ r.value[t] = s;
165
+ for (let a = t + 2; a < 4; a++)
166
+ r.value.splice(a, 1);
167
+ t < 3 ? (c.value = t + 1, L(), n.next = k.value[c.value], n.value = s, o("change", n)) : (D(), o("update:modelValue"));
168
+ }, Q = (s, t) => {
169
+ C.value = c.value, O(s, t) && (c.value = t, L());
170
+ }, X = () => {
171
+ const s = E.value, t = C.value, n = S.value[c.value];
172
+ s != null && s.scrollTop && (S.value[t] = s == null ? void 0 : s.scrollTop), G(() => {
173
+ s == null || s.scrollTo({
174
+ top: n,
175
+ behavior: "auto"
176
+ });
210
177
  });
211
- item.selectedAddress = true;
212
- selectedExistAddress = item;
213
- emit("selected", prevExistAdd, item, copyExistAdd);
214
- handClose();
215
- };
216
- const initAddress = () => {
217
- selectedRegion.value = [];
218
- tabIndex.value = 0;
219
- lineAnimation();
220
- };
221
- const handClose = (type = "self") => {
222
- closeWay.value = type == "cross" ? "cross" : "self";
223
- showPopup.value = false;
224
- };
225
- const clickOverlay = () => {
226
- closeWay.value = "mask";
227
- };
228
- const close = () => {
229
- const data = {
178
+ }, Y = (s) => {
179
+ const t = e.existAddress;
180
+ let n = {};
181
+ t.forEach((a) => {
182
+ a && a.selectedAddress && (n = a), a.selectedAddress = !1;
183
+ }), s.selectedAddress = !0, y = s, o("selected", n, s, t), D();
184
+ }, W = () => {
185
+ r.value = [], c.value = 0, L();
186
+ }, D = (s = "self") => {
187
+ f.value = s == "cross" ? "cross" : "self", A.value = !1;
188
+ }, Z = () => {
189
+ f.value = "mask";
190
+ }, x = () => {
191
+ const s = {
230
192
  addressIdStr: "",
231
193
  addressStr: "",
232
- province: selectedRegion.value[0],
233
- city: selectedRegion.value[1],
234
- country: selectedRegion.value[2],
235
- town: selectedRegion.value[3]
236
- };
237
- const callBackParams = {
194
+ province: r.value[0],
195
+ city: r.value[1],
196
+ country: r.value[2],
197
+ town: r.value[3]
198
+ }, t = {
238
199
  data: {},
239
- type: privateType.value
200
+ type: h.value
240
201
  };
241
- if (["custom", "custom2"].includes(privateType.value)) {
242
- [0, 1, 2, 3].forEach((i) => {
243
- const item = selectedRegion.value[i];
244
- data.addressIdStr += `${i ? "_" : ""}${item && item.id || 0}`;
245
- data.addressStr += item && item.name || "";
246
- });
247
- callBackParams.data = data;
248
- } else {
249
- callBackParams.data = selectedExistAddress;
250
- }
251
- initAddress();
252
- if (closeWay.value == "self") {
253
- emit("close", callBackParams);
254
- } else {
255
- emit("close-mask", { closeWay });
256
- }
257
- emit("update:visible", false);
258
- };
259
- const switchModule = () => {
260
- const type = privateType.value;
261
- privateType.value = type == "exist" ? "custom" : "exist";
262
- initAddress();
263
- emit("switch-module", { type: privateType.value });
202
+ ["custom", "custom2"].includes(h.value) ? ([0, 1, 2, 3].forEach((n) => {
203
+ const a = r.value[n];
204
+ s.addressIdStr += `${n ? "_" : ""}${a && a.id || 0}`, s.addressStr += a && a.name || "";
205
+ }), t.data = s) : t.data = y, W(), f.value == "self" ? o("close", t) : o("close-mask", { closeWay: f }), o("update:visible", !1);
206
+ }, ee = () => {
207
+ const s = h.value;
208
+ h.value = s == "exist" ? "custom" : "exist", W(), o("switch-module", { type: h.value });
209
+ }, se = (s, t) => {
210
+ U(t);
264
211
  };
265
- const handleElevatorItem = (key, item) => {
266
- nextAreaList(item);
267
- };
268
- watch(
269
- () => props.visible,
270
- (value) => {
271
- showPopup.value = value;
212
+ return q(
213
+ () => e.visible,
214
+ (s) => {
215
+ A.value = s;
272
216
  }
273
- );
274
- watch(
275
- () => showPopup.value,
276
- (value) => {
277
- if (value) {
278
- initCustomSelected();
279
- }
217
+ ), q(
218
+ () => A.value,
219
+ (s) => {
220
+ s && M();
280
221
  }
281
- );
282
- return {
283
- showPopup,
284
- privateType,
285
- tabIndex,
286
- tabName,
287
- selectedRegion,
288
- switchModule,
289
- closeWay,
290
- close,
291
- getTabName,
292
- nextAreaList,
293
- regionLine,
294
- tabRegion,
295
- lineDistance,
296
- changeRegionTab,
297
- selectedExist,
298
- clickOverlay,
299
- handClose,
300
- handleElevatorItem,
301
- initCustomSelected,
302
- ...toRefs(props),
303
- translate,
304
- regionList,
305
- transformData
306
- };
222
+ ), P(R({
223
+ showPopup: A,
224
+ privateType: h,
225
+ tabIndex: c,
226
+ tabName: k,
227
+ selectedRegion: r,
228
+ switchModule: ee,
229
+ closeWay: f,
230
+ close: x,
231
+ getTabName: O,
232
+ nextAreaList: U,
233
+ regionLine: v,
234
+ tabRegion: T,
235
+ lineDistance: N,
236
+ changeRegionTab: Q,
237
+ selectedExist: Y,
238
+ clickOverlay: Z,
239
+ handClose: D,
240
+ handleElevatorItem: se,
241
+ initCustomSelected: M
242
+ }, ce(e)), {
243
+ translate: K,
244
+ regionList: $,
245
+ transformData: l,
246
+ scrollDom: E
247
+ });
307
248
  }
308
- });
309
- const _hoisted_1 = { class: "nut-address" };
310
- const _hoisted_2 = { class: "nut-address__header" };
311
- const _hoisted_3 = { class: "nut-address__header__title" };
312
- const _hoisted_4 = {
249
+ }), Ee = { class: "nut-address" }, Se = { class: "nut-address__header" }, $e = { class: "nut-address__header__title" }, Le = {
313
250
  key: 0,
314
251
  class: "nut-address__custom"
315
- };
316
- const _hoisted_5 = {
252
+ }, Ne = {
317
253
  class: "nut-address__region",
318
254
  ref: "tabRegion"
319
- };
320
- const _hoisted_6 = ["onClick"];
321
- const _hoisted_7 = {
255
+ }, De = ["onClick"], Ie = {
322
256
  key: 0,
323
257
  class: "active nut-address__region-item"
324
- };
325
- const _hoisted_8 = {
258
+ }, Re = {
326
259
  key: 0,
327
260
  class: "nut-address__detail"
328
- };
329
- const _hoisted_9 = { class: "nut-address__detail-list" };
330
- const _hoisted_10 = ["onClick"];
331
- const _hoisted_11 = {
261
+ }, Pe = {
262
+ class: "nut-address__detail-list",
263
+ ref: "scrollDom"
264
+ }, Ve = ["onClick"], ze = {
332
265
  key: 1,
333
266
  class: "nut-address__elevator-group"
334
- };
335
- const _hoisted_12 = {
267
+ }, Be = {
336
268
  key: 1,
337
269
  class: "nut-address__exist"
338
- };
339
- const _hoisted_13 = { class: "nut-address__exist-group" };
340
- const _hoisted_14 = { class: "nut-address__exist-group-list" };
341
- const _hoisted_15 = ["onClick"];
342
- const _hoisted_16 = { class: "nut-address__exist-item-info" };
343
- const _hoisted_17 = {
270
+ }, Me = { class: "nut-address__exist-group" }, Oe = { class: "nut-address__exist-group-list" }, Ue = ["onClick"], We = { class: "nut-address__exist-item-info" }, Fe = {
344
271
  key: 0,
345
272
  class: "nut-address__exist-item-info-name"
346
- };
347
- const _hoisted_18 = {
273
+ }, je = {
348
274
  key: 1,
349
275
  class: "nut-address__exist-item-info-phone"
350
- };
351
- const _hoisted_19 = { class: "nut-address__exist-item-info-bottom" };
352
- const _hoisted_20 = { class: "nut-address__exist-choose-btn" };
353
- function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
354
- const _component_Left = resolveComponent("Left");
355
- const _component_Close = resolveComponent("Close");
356
- const _component_Check = resolveComponent("Check");
357
- const _component_nut_elevator = resolveComponent("nut-elevator");
358
- const _component_Location2 = resolveComponent("Location2");
359
- const _component_nut_popup = resolveComponent("nut-popup");
360
- return openBlock(), createBlock(_component_nut_popup, {
276
+ }, qe = { class: "nut-address__exist-item-info-bottom" }, Ge = { class: "nut-address__exist-choose-btn" };
277
+ function He(e, o, v, T, A, h) {
278
+ const c = g("Left"), C = g("Close"), k = g("Check"), E = g("nut-elevator"), S = g("Location2"), $ = g("nut-popup");
279
+ return d(), de($, {
361
280
  position: "bottom",
362
- "lock-scroll": _ctx.lockScroll,
363
- onClose: _ctx.close,
364
- onClickOverlay: _ctx.clickOverlay,
365
- onOpen: _cache[3] || (_cache[3] = ($event) => _ctx.closeWay = "self"),
366
- visible: _ctx.showPopup,
367
- "onUpdate:visible": _cache[4] || (_cache[4] = ($event) => _ctx.showPopup = $event),
368
- teleportDisable: _ctx.teleportDisable,
369
- teleport: _ctx.teleport
281
+ "lock-scroll": e.lockScroll,
282
+ onClose: e.close,
283
+ onClickOverlay: e.clickOverlay,
284
+ onOpen: o[3] || (o[3] = (l) => e.closeWay = "self"),
285
+ visible: e.showPopup,
286
+ "onUpdate:visible": o[4] || (o[4] = (l) => e.showPopup = l),
287
+ teleportDisable: e.teleportDisable,
288
+ teleport: e.teleport
370
289
  }, {
371
- default: withCtx(() => [
372
- createElementVNode("view", _hoisted_1, [
373
- createElementVNode("view", _hoisted_2, [
374
- createElementVNode("view", {
290
+ default: ue(() => [
291
+ i("view", Ee, [
292
+ i("view", Se, [
293
+ i("view", {
375
294
  class: "nut-address__header-back",
376
- onClick: _cache[0] || (_cache[0] = (...args) => _ctx.switchModule && _ctx.switchModule(...args))
295
+ onClick: o[0] || (o[0] = (...l) => e.switchModule && e.switchModule(...l))
377
296
  }, [
378
- renderSlot(_ctx.$slots, "back-icon", {}, () => [
379
- withDirectives(createVNode(_component_Left, null, null, 512), [
380
- [vShow, _ctx.type == "exist" && _ctx.privateType == "custom"]
297
+ w(e.$slots, "back-icon", {}, () => [
298
+ ve(b(c, { size: "14px" }, null, 512), [
299
+ [pe, e.type == "exist" && e.privateType == "custom"]
381
300
  ])
382
301
  ])
383
302
  ]),
384
- createElementVNode("view", _hoisted_3, toDisplayString(_ctx.privateType == "custom" ? _ctx.customAddressTitle || _ctx.translate("selectRegion") : _ctx.existAddressTitle || _ctx.translate("deliveryTo")), 1),
385
- createElementVNode("view", {
303
+ i("view", $e, m(e.privateType == "custom" ? e.customAddressTitle || e.translate("selectRegion") : e.existAddressTitle || e.translate("deliveryTo")), 1),
304
+ i("view", {
386
305
  class: "nut-address__header-close",
387
- onClick: _cache[1] || (_cache[1] = ($event) => _ctx.handClose("cross"))
306
+ onClick: o[1] || (o[1] = (l) => e.handClose("cross"))
388
307
  }, [
389
- renderSlot(_ctx.$slots, "close-icon", {}, () => [
390
- createVNode(_component_Close, {
308
+ w(e.$slots, "close-icon", {}, () => [
309
+ b(C, {
391
310
  color: "#cccccc",
392
- size: "18px"
311
+ size: "14px"
393
312
  })
394
313
  ])
395
314
  ])
396
315
  ]),
397
- ["custom", "custom2"].includes(_ctx.privateType) ? (openBlock(), createElementBlock("view", _hoisted_4, [
398
- createElementVNode("view", _hoisted_5, [
399
- (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.selectedRegion, (item, index2) => {
400
- return openBlock(), createElementBlock("view", {
401
- class: normalizeClass(["nut-address__region-item", index2 == _ctx.tabIndex ? "active" : ""]),
402
- key: index2,
403
- onClick: ($event) => _ctx.changeRegionTab(item, index2)
404
- }, [
405
- createElementVNode("view", null, toDisplayString(_ctx.getTabName(item, index2)), 1)
406
- ], 10, _hoisted_6);
407
- }), 128)),
408
- _ctx.tabIndex == _ctx.selectedRegion.length ? (openBlock(), createElementBlock("view", _hoisted_7, [
409
- createElementVNode("view", null, toDisplayString(_ctx.getTabName(null, _ctx.selectedRegion.length)), 1)
410
- ])) : createCommentVNode("", true),
411
- createElementVNode("view", {
316
+ ["custom", "custom2"].includes(e.privateType) ? (d(), u("view", Le, [
317
+ i("view", Ne, [
318
+ (d(!0), u(V, null, z(e.selectedRegion, (l, r) => (d(), u("view", {
319
+ class: B(["nut-address__region-item", r == e.tabIndex ? "active" : ""]),
320
+ key: r,
321
+ onClick: (y) => e.changeRegionTab(l, r)
322
+ }, [
323
+ i("view", null, m(e.getTabName(l, r)), 1)
324
+ ], 10, De))), 128)),
325
+ e.tabIndex == e.selectedRegion.length ? (d(), u("view", Ie, [
326
+ i("view", null, m(e.getTabName(null, e.selectedRegion.length)), 1)
327
+ ])) : _("", !0),
328
+ i("view", {
412
329
  class: "nut-address__region-line",
413
330
  ref: "regionLine",
414
- style: normalizeStyle({ left: _ctx.lineDistance + "px" })
331
+ style: fe({ left: e.lineDistance + "px" })
415
332
  }, null, 4)
416
333
  ], 512),
417
- _ctx.privateType == "custom" ? (openBlock(), createElementBlock("view", _hoisted_8, [
418
- createElementVNode("ul", _hoisted_9, [
419
- (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.regionList, (item, index2) => {
420
- var _a, _b;
421
- return openBlock(), createElementBlock("li", {
422
- key: index2,
423
- class: normalizeClass(["nut-address__detail-item", ((_a = _ctx.selectedRegion[_ctx.tabIndex]) == null ? void 0 : _a.id) == item.id ? "active" : ""]),
424
- onClick: ($event) => _ctx.nextAreaList(item)
334
+ e.privateType == "custom" ? (d(), u("view", Re, [
335
+ i("ul", Pe, [
336
+ (d(!0), u(V, null, z(e.regionList, (l, r) => {
337
+ var y, f;
338
+ return d(), u("li", {
339
+ key: r,
340
+ class: B(["nut-address__detail-item", ((y = e.selectedRegion[e.tabIndex]) == null ? void 0 : y.id) == l.id ? "active" : ""]),
341
+ onClick: (N) => e.nextAreaList(l)
425
342
  }, [
426
- createElementVNode("div", null, [
427
- ((_b = _ctx.selectedRegion[_ctx.tabIndex]) == null ? void 0 : _b.id) == item.id ? renderSlot(_ctx.$slots, "icon", { key: 0 }, () => [
428
- createVNode(_component_Check, {
343
+ i("div", null, [
344
+ ((f = e.selectedRegion[e.tabIndex]) == null ? void 0 : f.id) == l.id ? w(e.$slots, "icon", { key: 0 }, () => [
345
+ b(k, {
429
346
  class: "nut-address-select-icon",
430
- width: "13px"
347
+ size: "13px"
431
348
  })
432
- ]) : createCommentVNode("", true),
433
- createTextVNode(toDisplayString(item.name), 1)
349
+ ]) : _("", !0),
350
+ me(m(l.name), 1)
434
351
  ])
435
- ], 10, _hoisted_10);
352
+ ], 10, Ve);
436
353
  }), 128))
437
- ])
438
- ])) : (openBlock(), createElementBlock("view", _hoisted_11, [
439
- createVNode(_component_nut_elevator, {
440
- height: _ctx.height,
441
- "index-list": _ctx.transformData(_ctx.regionList),
442
- onClickItem: _ctx.handleElevatorItem
354
+ ], 512)
355
+ ])) : (d(), u("view", ze, [
356
+ b(E, {
357
+ height: e.height,
358
+ "index-list": e.transformData(e.regionList),
359
+ onClickItem: e.handleElevatorItem
443
360
  }, null, 8, ["height", "index-list", "onClickItem"])
444
361
  ]))
445
- ])) : (openBlock(), createElementBlock("view", _hoisted_12, [
446
- createElementVNode("div", _hoisted_13, [
447
- createElementVNode("ul", _hoisted_14, [
448
- (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.existAddress, (item, index2) => {
449
- return openBlock(), createElementBlock("li", {
450
- class: normalizeClass(["nut-address__exist-group-item", item.selectedAddress ? "active" : ""]),
451
- key: index2,
452
- onClick: ($event) => _ctx.selectedExist(item)
453
- }, [
454
- !item.selectedAddress ? renderSlot(_ctx.$slots, "unselected-icon", { key: 0 }, () => [
455
- createVNode(_component_Location2, {
456
- class: "nut-address-select-icon",
457
- width: "13px"
458
- })
459
- ]) : createCommentVNode("", true),
460
- item.selectedAddress ? renderSlot(_ctx.$slots, "icon", { key: 1 }, () => [
461
- createVNode(_component_Check, {
462
- class: "nut-address-select-icon",
463
- width: "13px"
464
- })
465
- ]) : createCommentVNode("", true),
466
- createElementVNode("div", _hoisted_16, [
467
- item.name ? (openBlock(), createElementBlock("div", _hoisted_17, toDisplayString(item.name), 1)) : createCommentVNode("", true),
468
- item.phone ? (openBlock(), createElementBlock("div", _hoisted_18, toDisplayString(item.phone), 1)) : createCommentVNode("", true),
469
- createElementVNode("div", _hoisted_19, [
470
- createElementVNode("view", null, toDisplayString(item.provinceName + item.cityName + item.countyName + item.townName + item.addressDetail), 1)
471
- ])
362
+ ])) : (d(), u("view", Be, [
363
+ i("div", Me, [
364
+ i("ul", Oe, [
365
+ (d(!0), u(V, null, z(e.existAddress, (l, r) => (d(), u("li", {
366
+ class: B(["nut-address__exist-group-item", l.selectedAddress ? "active" : ""]),
367
+ key: r,
368
+ onClick: (y) => e.selectedExist(l)
369
+ }, [
370
+ l.selectedAddress ? _("", !0) : w(e.$slots, "unselected-icon", { key: 0 }, () => [
371
+ b(S, {
372
+ class: "nut-address-select-icon",
373
+ size: "13px"
374
+ })
375
+ ]),
376
+ l.selectedAddress ? w(e.$slots, "icon", { key: 1 }, () => [
377
+ b(k, {
378
+ class: "nut-address-select-icon",
379
+ size: "13px"
380
+ })
381
+ ]) : _("", !0),
382
+ i("div", We, [
383
+ l.name ? (d(), u("div", Fe, m(l.name), 1)) : _("", !0),
384
+ l.phone ? (d(), u("div", je, m(l.phone), 1)) : _("", !0),
385
+ i("div", qe, [
386
+ i("view", null, m(l.provinceName + l.cityName + l.countyName + l.townName + l.addressDetail), 1)
472
387
  ])
473
- ], 10, _hoisted_15);
474
- }), 128))
388
+ ])
389
+ ], 10, Ue))), 128))
475
390
  ])
476
391
  ]),
477
- _ctx.isShowCustomAddress ? (openBlock(), createElementBlock("div", {
392
+ e.isShowCustomAddress ? (d(), u("div", {
478
393
  key: 0,
479
394
  class: "nut-address__exist-choose",
480
- onClick: _cache[2] || (_cache[2] = (...args) => _ctx.switchModule && _ctx.switchModule(...args))
395
+ onClick: o[2] || (o[2] = (...l) => e.switchModule && e.switchModule(...l))
481
396
  }, [
482
- createElementVNode("div", _hoisted_20, toDisplayString(_ctx.customAndExistTitle || _ctx.translate("chooseAnotherAddress")), 1)
483
- ])) : createCommentVNode("", true)
397
+ i("div", Ge, m(e.customAndExistTitle || e.translate("chooseAnotherAddress")), 1)
398
+ ])) : _("", !0)
484
399
  ])),
485
- renderSlot(_ctx.$slots, "bottom")
400
+ w(e.$slots, "bottom")
486
401
  ])
487
402
  ]),
488
403
  _: 3
489
404
  }, 8, ["lock-scroll", "onClose", "onClickOverlay", "visible", "teleportDisable", "teleport"]);
490
405
  }
491
- const index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
406
+ const ls = /* @__PURE__ */ Ae(Te, [["render", He]]);
492
407
  export {
493
- index as default
408
+ ls as default
494
409
  };