@nutui/nutui 3.2.2 → 3.2.4-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (281) hide show
  1. package/CHANGELOG.md +53 -0
  2. package/README.md +4 -4
  3. package/dist/nutui.es.js +2136 -1419
  4. package/dist/nutui.umd.js +2145 -1427
  5. package/dist/packages/_es/ActionSheet.js +4 -22
  6. package/dist/packages/_es/Address.js +63 -57
  7. package/dist/packages/_es/AddressList.js +12 -9
  8. package/dist/packages/_es/Animate.js +2 -21
  9. package/dist/packages/_es/Audio.js +11 -25
  10. package/dist/packages/_es/AudioOperate.js +3 -23
  11. package/dist/packages/_es/Avatar.js +6 -21
  12. package/dist/packages/_es/AvatarGroup.js +1 -1
  13. package/dist/packages/_es/BackTop.js +1 -1
  14. package/dist/packages/_es/Badge.js +1 -1
  15. package/dist/packages/_es/Barrage.js +74 -22
  16. package/dist/packages/_es/Button.js +1 -1
  17. package/dist/packages/_es/Calendar.js +17 -9
  18. package/dist/packages/_es/CalendarItem.js +1 -1
  19. package/dist/packages/_es/Card.js +1 -1
  20. package/dist/packages/_es/Cascader.js +72 -68
  21. package/dist/packages/_es/Category.js +1 -1
  22. package/dist/packages/_es/CategoryPane.js +1 -1
  23. package/dist/packages/_es/Cell.js +1 -1
  24. package/dist/packages/_es/CellGroup.js +1 -1
  25. package/dist/packages/_es/Checkbox.js +31 -17
  26. package/dist/packages/_es/CheckboxGroup.js +14 -7
  27. package/dist/packages/_es/CircleProgress.js +4 -4
  28. package/dist/packages/_es/Col.js +1 -1
  29. package/dist/packages/_es/Collapse.js +22 -19
  30. package/dist/packages/_es/CollapseItem.js +18 -32
  31. package/dist/packages/_es/Comment.js +13 -9
  32. package/dist/packages/_es/ConfigProvider.js +8 -4
  33. package/dist/packages/_es/CountDown.js +40 -46
  34. package/dist/packages/_es/CountUp.js +41 -40
  35. package/dist/packages/_es/DatePicker.js +25 -33
  36. package/dist/packages/_es/Dialog.js +13 -28
  37. package/dist/packages/_es/Divider.js +7 -24
  38. package/dist/packages/_es/Drag.js +2 -2
  39. package/dist/packages/_es/Ecard.js +8 -5
  40. package/dist/packages/_es/Elevator.js +27 -39
  41. package/dist/packages/_es/Ellipsis.js +21 -31
  42. package/dist/packages/_es/Empty.js +1 -1
  43. package/dist/packages/_es/FixedNav.js +1 -1
  44. package/dist/packages/_es/Form.js +23 -12
  45. package/dist/packages/_es/FormItem.js +1 -1
  46. package/dist/packages/_es/Grid.js +1 -1
  47. package/dist/packages/_es/GridItem.js +1 -1
  48. package/dist/packages/_es/Icon.js +15 -11
  49. package/dist/packages/_es/Image.js +8 -24
  50. package/dist/packages/_es/ImagePreview.js +34 -48
  51. package/dist/packages/_es/Indicator.js +1 -1
  52. package/dist/packages/_es/InfiniteLoading.js +5 -24
  53. package/dist/packages/_es/Input.js +8 -5
  54. package/dist/packages/_es/InputNumber.js +1 -1
  55. package/dist/packages/_es/Invoice.js +10 -25
  56. package/dist/packages/_es/Layout.js +1 -1
  57. package/dist/packages/_es/List.js +21 -30
  58. package/dist/packages/_es/Menu.js +13 -7
  59. package/dist/packages/_es/MenuItem.js +2 -21
  60. package/dist/packages/_es/Navbar.js +1 -1
  61. package/dist/packages/_es/NoticeBar.js +18 -29
  62. package/dist/packages/_es/Notify.js +16 -32
  63. package/dist/packages/_es/NumberKeyboard.js +23 -18
  64. package/dist/packages/_es/OldPicker.js +47 -46
  65. package/dist/packages/_es/OverLay.js +11 -23
  66. package/dist/packages/_es/Pagination.js +6 -6
  67. package/dist/packages/_es/Picker.js +66 -59
  68. package/dist/packages/_es/Popover.js +55 -52
  69. package/dist/packages/_es/Popup.js +35 -40
  70. package/dist/packages/_es/Price.js +1 -1
  71. package/dist/packages/_es/Progress.js +2 -2
  72. package/dist/packages/_es/PullRefresh.js +5 -20
  73. package/dist/packages/_es/Radio.js +25 -13
  74. package/dist/packages/_es/RadioGroup.js +12 -5
  75. package/dist/packages/_es/Range.js +20 -33
  76. package/dist/packages/_es/Rate.js +6 -24
  77. package/dist/packages/_es/Row.js +1 -1
  78. package/dist/packages/_es/SearchBar.js +6 -25
  79. package/dist/packages/_es/ShortPassword.js +18 -11
  80. package/dist/packages/_es/SideNavBar.js +6 -24
  81. package/dist/packages/_es/SideNavBarItem.js +1 -1
  82. package/dist/packages/_es/Signature.js +2 -21
  83. package/dist/packages/_es/Skeleton.js +1 -1
  84. package/dist/packages/_es/Sku.js +30 -35
  85. package/dist/packages/_es/Step.js +4 -22
  86. package/dist/packages/_es/Steps.js +8 -4
  87. package/dist/packages/_es/Sticky.js +23 -12
  88. package/dist/packages/_es/SubSideNavBar.js +4 -22
  89. package/dist/packages/_es/Swipe.js +5 -24
  90. package/dist/packages/_es/Swiper.js +23 -14
  91. package/dist/packages/_es/SwiperItem.js +1 -1
  92. package/dist/packages/_es/Switch.js +10 -7
  93. package/dist/packages/_es/TabPane.js +1 -1
  94. package/dist/packages/_es/Tabbar.js +7 -4
  95. package/dist/packages/_es/TabbarItem.js +1 -1
  96. package/dist/packages/_es/Table.js +10 -25
  97. package/dist/packages/_es/Tabs.js +99 -34
  98. package/dist/packages/_es/Tag.js +1 -2
  99. package/dist/packages/_es/TextArea.js +8 -5
  100. package/dist/packages/_es/TimeDetail.js +5 -24
  101. package/dist/packages/_es/TimePannel.js +4 -22
  102. package/dist/packages/_es/TimeSelect.js +1 -1
  103. package/dist/packages/_es/Toast.js +21 -37
  104. package/dist/packages/_es/TrendArrow.js +131 -0
  105. package/dist/packages/_es/Uploader.js +40 -34
  106. package/dist/packages/_es/Video.js +22 -33
  107. package/dist/packages/_es/WaterMark.js +31 -41
  108. package/dist/packages/_es/common.js +21 -11
  109. package/dist/packages/_es/component.js +13 -6
  110. package/dist/packages/_es/index.js +1 -1
  111. package/dist/packages/_es/index2.js +1 -1
  112. package/dist/packages/_es/index3.js +1 -1
  113. package/dist/packages/_es/index4.js +1 -1
  114. package/dist/packages/_es/index5.js +39 -41
  115. package/dist/packages/_es/plugin-vue_export-helper.js +1 -1
  116. package/dist/packages/_es/pxCheck.js +1 -1
  117. package/dist/packages/_es/raf.js +1 -1
  118. package/dist/packages/_es/style.css +16 -1
  119. package/dist/packages/barrage/index.scss +27 -18
  120. package/dist/packages/ellipsis/index.scss +1 -0
  121. package/dist/packages/index.d.ts +5 -0
  122. package/dist/packages/list/index.scss +0 -1
  123. package/dist/packages/locale/lang/baseLang.js +1 -1
  124. package/dist/packages/locale/lang/en-US.js +1 -1
  125. package/dist/packages/locale/lang/id-ID.js +1 -1
  126. package/dist/packages/locale/lang/index.js +1 -1
  127. package/dist/packages/locale/lang/zh-CN.js +1 -1
  128. package/dist/packages/locale/lang/zh-TW.js +1 -1
  129. package/dist/packages/picker/index.scss +14 -0
  130. package/dist/packages/tabbar/index.scss +3 -2
  131. package/dist/packages/trendarrow/index.scss +17 -0
  132. package/dist/smartips/attributes.json +76 -12
  133. package/dist/smartips/tags.json +30 -10
  134. package/dist/smartips/web-types.json +164 -13
  135. package/dist/style.css +1 -1
  136. package/dist/style.es.js +1 -1
  137. package/dist/styles/font/config.json +3 -1
  138. package/dist/styles/font/demo_index.html +51 -5
  139. package/dist/styles/font/iconfont.css +11 -3
  140. package/dist/styles/font/iconfont.js +64 -61
  141. package/dist/styles/font/iconfont.json +14 -0
  142. package/dist/styles/font/iconfont.ttf +0 -0
  143. package/dist/styles/font/iconfont.woff +0 -0
  144. package/dist/styles/font/iconfont.woff2 +0 -0
  145. package/dist/styles/themes/default.scss +53 -52
  146. package/dist/styles/themes/jdb.scss +53 -52
  147. package/dist/styles/themes/jdt.scss +53 -52
  148. package/dist/styles/variables-jdb.scss +4 -1
  149. package/dist/styles/variables-jdt.scss +4 -1
  150. package/dist/styles/variables.scss +4 -1
  151. package/dist/types/__VUE/actionsheet/index.vue.d.ts +121 -74
  152. package/dist/types/__VUE/address/index.vue.d.ts +159 -91
  153. package/dist/types/__VUE/addresslist/components/GeneralShell.vue.d.ts +9 -15
  154. package/dist/types/__VUE/addresslist/components/ItemContents.vue.d.ts +13 -17
  155. package/dist/types/__VUE/addresslist/components/LongPressShell.vue.d.ts +9 -15
  156. package/dist/types/__VUE/addresslist/components/SwipeShell.vue.d.ts +9 -15
  157. package/dist/types/__VUE/addresslist/index.vue.d.ts +25 -23
  158. package/dist/types/__VUE/animate/index.vue.d.ts +18 -19
  159. package/dist/types/__VUE/audio/index.vue.d.ts +33 -27
  160. package/dist/types/__VUE/audiooperate/index.vue.d.ts +9 -15
  161. package/dist/types/__VUE/avatar/index.vue.d.ts +37 -31
  162. package/dist/types/__VUE/avatargroup/index.vue.d.ts +37 -29
  163. package/dist/types/__VUE/backtop/index.vue.d.ts +34 -28
  164. package/dist/types/__VUE/badge/index.vue.d.ts +37 -31
  165. package/dist/types/__VUE/barrage/index.vue.d.ts +31 -26
  166. package/dist/types/__VUE/button/index.vue.d.ts +48 -37
  167. package/dist/types/__VUE/calendar/index.vue.d.ts +65 -45
  168. package/dist/types/__VUE/calendaritem/index.vue.d.ts +101 -55
  169. package/dist/types/__VUE/card/index.vue.d.ts +37 -29
  170. package/dist/types/__VUE/cascader/cascader-item.vue.d.ts +29 -33
  171. package/dist/types/__VUE/cascader/index.vue.d.ts +114 -74
  172. package/dist/types/__VUE/cascader/types.d.ts +5 -0
  173. package/dist/types/__VUE/category/index.vue.d.ts +14 -17
  174. package/dist/types/__VUE/categorypane/index.vue.d.ts +17 -19
  175. package/dist/types/__VUE/cell/index.vue.d.ts +58 -44
  176. package/dist/types/__VUE/cellgroup/index.vue.d.ts +13 -17
  177. package/dist/types/__VUE/checkbox/index.vue.d.ts +49 -35
  178. package/dist/types/__VUE/checkboxgroup/index.vue.d.ts +17 -19
  179. package/dist/types/__VUE/circleprogress/index.vue.d.ts +33 -27
  180. package/dist/types/__VUE/col/index.vue.d.ts +13 -17
  181. package/dist/types/__VUE/collapse/index.vue.d.ts +43 -34
  182. package/dist/types/__VUE/collapseitem/index.vue.d.ts +32 -31
  183. package/dist/types/__VUE/comment/components/CmtBottom.vue.d.ts +17 -19
  184. package/dist/types/__VUE/comment/components/CmtHeader.vue.d.ts +17 -19
  185. package/dist/types/__VUE/comment/components/CmtImages.vue.d.ts +17 -19
  186. package/dist/types/__VUE/comment/index.vue.d.ts +41 -31
  187. package/dist/types/__VUE/configprovider/index.vue.d.ts +13 -17
  188. package/dist/types/__VUE/countdown/index.vue.d.ts +37 -30
  189. package/dist/types/__VUE/countup/index.vue.d.ts +76 -50
  190. package/dist/types/__VUE/datepicker/index.vue.d.ts +136 -82
  191. package/dist/types/__VUE/dialog/index.vue.d.ts +141 -85
  192. package/dist/types/__VUE/divider/index.vue.d.ts +21 -21
  193. package/dist/types/__VUE/drag/index.vue.d.ts +22 -19
  194. package/dist/types/__VUE/ecard/index.vue.d.ts +46 -33
  195. package/dist/types/__VUE/elevator/index.vue.d.ts +36 -26
  196. package/dist/types/__VUE/ellipsis/index.vue.d.ts +44 -25
  197. package/dist/types/__VUE/empty/index.vue.d.ts +17 -19
  198. package/dist/types/__VUE/fixednav/index.vue.d.ts +42 -31
  199. package/dist/types/__VUE/form/common.d.ts +4 -0
  200. package/dist/types/__VUE/form/index.vue.d.ts +18 -15
  201. package/dist/types/__VUE/form/types.d.ts +3 -0
  202. package/dist/types/__VUE/formitem/index.vue.d.ts +46 -33
  203. package/dist/types/__VUE/formitem/types.d.ts +5 -2
  204. package/dist/types/__VUE/grid/index.vue.d.ts +44 -35
  205. package/dist/types/__VUE/griditem/index.vue.d.ts +29 -28
  206. package/dist/types/__VUE/icon/index.vue.d.ts +30 -25
  207. package/dist/types/__VUE/image/index.vue.d.ts +41 -35
  208. package/dist/types/__VUE/imagepreview/imagePreviewItem.vue.d.ts +47 -39
  209. package/dist/types/__VUE/imagepreview/index.d.ts +4 -4
  210. package/dist/types/__VUE/imagepreview/index.vue.d.ts +70 -47
  211. package/dist/types/__VUE/indicator/index.vue.d.ts +27 -23
  212. package/dist/types/__VUE/infiniteloading/index.vue.d.ts +49 -35
  213. package/dist/types/__VUE/input/index.vue.d.ts +137 -80
  214. package/dist/types/__VUE/inputnumber/index.vue.d.ts +49 -35
  215. package/dist/types/__VUE/invoice/index.vue.d.ts +17 -19
  216. package/dist/types/__VUE/layout/index.vue.d.ts +2 -9
  217. package/dist/types/__VUE/list/index.vue.d.ts +19 -19
  218. package/dist/types/__VUE/menu/index.vue.d.ts +35 -32
  219. package/dist/types/__VUE/menuitem/index.vue.d.ts +26 -30
  220. package/dist/types/__VUE/navbar/index.vue.d.ts +45 -33
  221. package/dist/types/__VUE/noticebar/index.vue.d.ts +69 -47
  222. package/dist/types/__VUE/notify/index.vue.d.ts +45 -40
  223. package/dist/types/__VUE/numberkeyboard/index.vue.d.ts +69 -46
  224. package/dist/types/__VUE/oldpicker/Column.vue.d.ts +22 -24
  225. package/dist/types/__VUE/oldpicker/index.vue.d.ts +129 -82
  226. package/dist/types/__VUE/overlay/index.vue.d.ts +64 -1557
  227. package/dist/types/__VUE/pagination/index.vue.d.ts +45 -35
  228. package/dist/types/__VUE/picker/Column.vue.d.ts +30 -29
  229. package/dist/types/__VUE/picker/index.vue.d.ts +150 -91
  230. package/dist/types/__VUE/popover/index.vue.d.ts +112 -70
  231. package/dist/types/__VUE/popup/index.vue.d.ts +177 -73
  232. package/dist/types/__VUE/price/index.vue.d.ts +33 -27
  233. package/dist/types/__VUE/progress/index.vue.d.ts +54 -37
  234. package/dist/types/__VUE/pullrefresh/index.vue.d.ts +49 -27
  235. package/dist/types/__VUE/radio/index.vue.d.ts +37 -29
  236. package/dist/types/__VUE/radiogroup/index.vue.d.ts +17 -19
  237. package/dist/types/__VUE/range/index.vue.d.ts +50 -44
  238. package/dist/types/__VUE/rate/index.vue.d.ts +61 -41
  239. package/dist/types/__VUE/row/index.vue.d.ts +25 -23
  240. package/dist/types/__VUE/searchbar/index.vue.d.ts +62 -41
  241. package/dist/types/__VUE/searchbar/type.d.ts +5 -0
  242. package/dist/types/__VUE/shortpassword/index.vue.d.ts +45 -33
  243. package/dist/types/__VUE/sidenavbar/index.vue.d.ts +10 -15
  244. package/dist/types/__VUE/sidenavbaritem/index.vue.d.ts +13 -17
  245. package/dist/types/__VUE/signature/index.vue.d.ts +25 -23
  246. package/dist/types/__VUE/skeleton/common.d.ts +1 -1
  247. package/dist/types/__VUE/skeleton/index.vue.d.ts +46 -34
  248. package/dist/types/__VUE/sku/components/SkuHeader.vue.d.ts +9 -15
  249. package/dist/types/__VUE/sku/components/SkuOperate.vue.d.ts +25 -23
  250. package/dist/types/__VUE/sku/components/SkuSelect.vue.d.ts +9 -15
  251. package/dist/types/__VUE/sku/components/SkuStepper.vue.d.ts +21 -21
  252. package/dist/types/__VUE/sku/index.vue.d.ts +129 -78
  253. package/dist/types/__VUE/step/index.vue.d.ts +27 -25
  254. package/dist/types/__VUE/steps/index.vue.d.ts +17 -19
  255. package/dist/types/__VUE/sticky/index.vue.d.ts +26 -25
  256. package/dist/types/__VUE/subsidenavbar/index.vue.d.ts +17 -19
  257. package/dist/types/__VUE/swipe/index.vue.d.ts +24 -22
  258. package/dist/types/__VUE/swiper/index.vue.d.ts +59 -40
  259. package/dist/types/__VUE/swiperitem/index.vue.d.ts +8 -10
  260. package/dist/types/__VUE/switch/index.vue.d.ts +53 -37
  261. package/dist/types/__VUE/tabbar/index.vue.d.ts +34 -28
  262. package/dist/types/__VUE/tabbaritem/index.vue.d.ts +45 -36
  263. package/dist/types/__VUE/table/common.d.ts +1 -1
  264. package/dist/types/__VUE/table/index.vue.d.ts +26 -24
  265. package/dist/types/__VUE/tabpane/index.vue.d.ts +17 -19
  266. package/dist/types/__VUE/tabs/common.d.ts +13 -0
  267. package/dist/types/__VUE/tabs/index.vue.d.ts +72 -35
  268. package/dist/types/__VUE/tag/index.vue.d.ts +34 -27
  269. package/dist/types/__VUE/textarea/index.vue.d.ts +46 -34
  270. package/dist/types/__VUE/timedetail/index.vue.d.ts +13 -17
  271. package/dist/types/__VUE/timepannel/index.vue.d.ts +13 -17
  272. package/dist/types/__VUE/timeselect/index.vue.d.ts +34 -28
  273. package/dist/types/__VUE/toast/index.d.ts +5 -5
  274. package/dist/types/__VUE/toast/index.vue.d.ts +62 -54
  275. package/dist/types/__VUE/trendarrow/index.vue.d.ts +131 -0
  276. package/dist/types/__VUE/uploader/index.vue.d.ts +111 -68
  277. package/dist/types/__VUE/video/index.vue.d.ts +30 -20
  278. package/dist/types/__VUE/watermark/index.vue.d.ts +75 -49
  279. package/dist/types/index.d.ts +1 -1
  280. package/dist/types/nutui.d.ts +2 -1
  281. package/package.json +5 -5
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui v3.2.2 Thu Sep 08 2022 22:10:31 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.4-beta.0 Fri Oct 14 2022 14:39:24 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -7,7 +7,7 @@ import { toRefs, computed, watchEffect, openBlock, createElementBlock, createEle
7
7
  import { c as createComponent } from "./component.js";
8
8
  import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
9
9
  import "../locale/lang";
10
- const { componentName, create, translate } = createComponent("pagination");
10
+ const { create, translate } = createComponent("pagination");
11
11
  const _sfc_main = create({
12
12
  props: {
13
13
  modelValue: {
@@ -64,7 +64,7 @@ const _sfc_main = create({
64
64
  if (isSelect)
65
65
  emit("change", curPage);
66
66
  };
67
- const setPage = (number, text, active) => {
67
+ const setPage = (number, text, active = false) => {
68
68
  return { number, text, active };
69
69
  };
70
70
  const pages = computed(() => {
@@ -72,16 +72,16 @@ const _sfc_main = create({
72
72
  return;
73
73
  let items = [];
74
74
  const pageCount = countRef.value;
75
- const pageSize = showPageSize.value;
75
+ const pageSize = +showPageSize.value;
76
76
  let startPage = 1;
77
77
  let endPage = pageCount;
78
78
  const partialShow = pageCount > pageSize;
79
79
  if (partialShow) {
80
80
  startPage = Math.max(modelValue.value - Math.floor(pageSize / 2), 1);
81
- endPage = startPage + pageSize - 1;
81
+ endPage = startPage + +pageSize - 1;
82
82
  if (endPage > pageCount) {
83
83
  endPage = pageCount;
84
- startPage = endPage - pageSize + 1;
84
+ startPage = endPage - +pageSize + 1;
85
85
  }
86
86
  }
87
87
  for (var i = startPage; i <= endPage; i++) {
@@ -1,24 +1,5 @@
1
- var __defProp = Object.defineProperty;
2
- var __defProps = Object.defineProperties;
3
- var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
4
- var __getOwnPropSymbols = Object.getOwnPropertySymbols;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __propIsEnum = Object.prototype.propertyIsEnumerable;
7
- var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
8
- var __spreadValues = (a, b) => {
9
- for (var prop in b || (b = {}))
10
- if (__hasOwnProp.call(b, prop))
11
- __defNormalProp(a, prop, b[prop]);
12
- if (__getOwnPropSymbols)
13
- for (var prop of __getOwnPropSymbols(b)) {
14
- if (__propIsEnum.call(b, prop))
15
- __defNormalProp(a, prop, b[prop]);
16
- }
17
- return a;
18
- };
19
- var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20
1
  /*!
21
- * @nutui/nutui v3.2.2 Thu Sep 08 2022 22:10:31 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.4-beta.0 Fri Oct 14 2022 14:39:24 GMT+0800 (中国标准时间)
22
3
  * (c) 2022 @jdf2e.
23
4
  * Released under the MIT License.
24
5
  */
@@ -116,7 +97,7 @@ const _sfc_main$1 = create$1({
116
97
  };
117
98
  const onTouchMove = (event) => {
118
99
  touch.move(event);
119
- if (touch.isVertical) {
100
+ if (touch.isVertical()) {
120
101
  moving.value = true;
121
102
  preventDefault(event, true);
122
103
  }
@@ -211,24 +192,34 @@ const _sfc_main$1 = create$1({
211
192
  touchTime.value = 0;
212
193
  setChooseValue();
213
194
  };
214
- watch(() => props.column, (val) => {
215
- if (props.column && props.column.length > 0) {
195
+ watch(
196
+ () => props.column,
197
+ (val) => {
198
+ if (props.column && props.column.length > 0) {
199
+ state.transformY = 0;
200
+ modifyStatus(false);
201
+ }
202
+ },
203
+ {
204
+ deep: true
205
+ }
206
+ );
207
+ watch(
208
+ () => props.value,
209
+ (val) => {
216
210
  state.transformY = 0;
217
211
  modifyStatus(false);
212
+ },
213
+ {
214
+ deep: true
218
215
  }
219
- }, {
220
- deep: true
221
- });
222
- watch(() => props.value, (val) => {
223
- state.transformY = 0;
224
- modifyStatus(false);
225
- }, {
226
- deep: true
227
- });
216
+ );
228
217
  onMounted(() => {
229
218
  modifyStatus(true);
230
219
  });
231
- return __spreadProps(__spreadValues(__spreadValues({}, toRefs(state)), toRefs(props)), {
220
+ return {
221
+ ...toRefs(state),
222
+ ...toRefs(props),
232
223
  wrapper,
233
224
  setRollerStyle,
234
225
  isHidden,
@@ -241,7 +232,7 @@ const _sfc_main$1 = create$1({
241
232
  touchTileStyle,
242
233
  setMove,
243
234
  stopMomentum
244
- });
235
+ };
245
236
  }
246
237
  });
247
238
  const _hoisted_1$1 = {
@@ -296,7 +287,8 @@ const _sfc_main = create({
296
287
  [column.name]: column,
297
288
  [Popup.name]: Popup
298
289
  },
299
- props: __spreadProps(__spreadValues({}, popupProps), {
290
+ props: {
291
+ ...popupProps,
300
292
  modelValue: {
301
293
  type: Array,
302
294
  default: () => []
@@ -331,7 +323,7 @@ const _sfc_main = create({
331
323
  type: [Number, String],
332
324
  default: 1e3
333
325
  }
334
- }),
326
+ },
335
327
  emits: ["close", "change", "confirm", "update:visible", "update:modelValue"],
336
328
  setup(props, { emit }) {
337
329
  const state = reactive({
@@ -457,30 +449,44 @@ const _sfc_main = create({
457
449
  if (props.visible)
458
450
  state.show = false;
459
451
  });
460
- watch(() => props.modelValue, (newValues) => {
461
- const isSameValue = JSON.stringify(newValues) === JSON.stringify(defaultValues.value);
462
- if (!isSameValue) {
463
- defaultValues.value = newValues;
452
+ watch(
453
+ () => props.modelValue,
454
+ (newValues) => {
455
+ const isSameValue = JSON.stringify(newValues) === JSON.stringify(defaultValues.value);
456
+ if (!isSameValue) {
457
+ defaultValues.value = newValues;
458
+ }
459
+ },
460
+ { deep: true }
461
+ );
462
+ watch(
463
+ defaultValues,
464
+ (newValues) => {
465
+ const isSameValue = JSON.stringify(newValues) === JSON.stringify(props.modelValue);
466
+ if (!isSameValue) {
467
+ emit("update:modelValue", newValues);
468
+ }
469
+ },
470
+ { immediate: true }
471
+ );
472
+ watch(
473
+ () => props.visible,
474
+ (val) => {
475
+ state.show = val;
476
+ if (val)
477
+ pickerColumn.value = [];
464
478
  }
465
- }, { deep: true });
466
- watch(defaultValues, (newValues) => {
467
- const isSameValue = JSON.stringify(newValues) === JSON.stringify(props.modelValue);
468
- if (!isSameValue) {
469
- emit("update:modelValue", newValues);
479
+ );
480
+ watch(
481
+ () => props.columns,
482
+ (val) => {
483
+ if (val.length)
484
+ state.formattedColumns = val;
470
485
  }
471
- }, { immediate: true });
472
- watch(() => props.visible, (val) => {
473
- state.show = val;
474
- if (val)
475
- pickerColumn.value = [];
476
- });
477
- watch(() => props.columns, (val) => {
478
- if (val.length)
479
- state.formattedColumns = val;
480
- });
481
- return __spreadProps(__spreadValues({
482
- classes
483
- }, toRefs(state)), {
486
+ );
487
+ return {
488
+ classes,
489
+ ...toRefs(state),
484
490
  column,
485
491
  columnsType,
486
492
  columnsList,
@@ -491,7 +497,7 @@ const _sfc_main = create({
491
497
  translate,
492
498
  pickerColumn,
493
499
  swipeRef
494
- });
500
+ };
495
501
  }
496
502
  });
497
503
  const _hoisted_1 = { class: "nut-picker__bar" };
@@ -539,6 +545,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
539
545
  key: columnIndex
540
546
  }, [
541
547
  createVNode(_component_nut_picker_column, {
548
+ ref_for: true,
542
549
  ref: _ctx.swipeRef,
543
550
  itemShow: _ctx.show,
544
551
  column: column2,
@@ -1,24 +1,5 @@
1
- var __defProp = Object.defineProperty;
2
- var __defProps = Object.defineProperties;
3
- var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
4
- var __getOwnPropSymbols = Object.getOwnPropertySymbols;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __propIsEnum = Object.prototype.propertyIsEnumerable;
7
- var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
8
- var __spreadValues = (a, b) => {
9
- for (var prop in b || (b = {}))
10
- if (__hasOwnProp.call(b, prop))
11
- __defNormalProp(a, prop, b[prop]);
12
- if (__getOwnPropSymbols)
13
- for (var prop of __getOwnPropSymbols(b)) {
14
- if (__propIsEnum.call(b, prop))
15
- __defNormalProp(a, prop, b[prop]);
16
- }
17
- return a;
18
- };
19
- var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20
1
  /*!
21
- * @nutui/nutui v3.2.2 Thu Sep 08 2022 22:10:31 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.4-beta.0 Fri Oct 14 2022 14:39:24 GMT+0800 (中国标准时间)
22
3
  * (c) 2022 @jdf2e.
23
4
  * Released under the MIT License.
24
5
  */
@@ -57,32 +38,47 @@ function isShadowRoot(node) {
57
38
  return node instanceof OwnElement || node instanceof ShadowRoot;
58
39
  }
59
40
  var round = Math.round;
60
- function getBoundingClientRect(element, includeScale) {
41
+ function getUAString() {
42
+ var uaData = navigator.userAgentData;
43
+ if (uaData != null && uaData.brands) {
44
+ return uaData.brands.map(function(item) {
45
+ return item.brand + "/" + item.version;
46
+ }).join(" ");
47
+ }
48
+ return navigator.userAgent;
49
+ }
50
+ function isLayoutViewport() {
51
+ return !/^((?!chrome|android).)*safari/i.test(getUAString());
52
+ }
53
+ function getBoundingClientRect(element, includeScale, isFixedStrategy) {
61
54
  if (includeScale === void 0) {
62
55
  includeScale = false;
63
56
  }
64
- var rect = element.getBoundingClientRect();
57
+ if (isFixedStrategy === void 0) {
58
+ isFixedStrategy = false;
59
+ }
60
+ var clientRect = element.getBoundingClientRect();
65
61
  var scaleX = 1;
66
62
  var scaleY = 1;
67
- if (isHTMLElement(element) && includeScale) {
68
- var offsetHeight = element.offsetHeight;
69
- var offsetWidth = element.offsetWidth;
70
- if (offsetWidth > 0) {
71
- scaleX = round(rect.width) / offsetWidth || 1;
72
- }
73
- if (offsetHeight > 0) {
74
- scaleY = round(rect.height) / offsetHeight || 1;
75
- }
76
- }
63
+ if (includeScale && isHTMLElement(element)) {
64
+ scaleX = element.offsetWidth > 0 ? round(clientRect.width) / element.offsetWidth || 1 : 1;
65
+ scaleY = element.offsetHeight > 0 ? round(clientRect.height) / element.offsetHeight || 1 : 1;
66
+ }
67
+ var _ref = isElement(element) ? getWindow(element) : window, visualViewport = _ref.visualViewport;
68
+ var addVisualOffsets = !isLayoutViewport() && isFixedStrategy;
69
+ var x = (clientRect.left + (addVisualOffsets && visualViewport ? visualViewport.offsetLeft : 0)) / scaleX;
70
+ var y = (clientRect.top + (addVisualOffsets && visualViewport ? visualViewport.offsetTop : 0)) / scaleY;
71
+ var width = clientRect.width / scaleX;
72
+ var height = clientRect.height / scaleY;
77
73
  return {
78
- width: rect.width / scaleX,
79
- height: rect.height / scaleY,
80
- top: rect.top / scaleY,
81
- right: rect.right / scaleX,
82
- bottom: rect.bottom / scaleY,
83
- left: rect.left / scaleX,
84
- x: rect.left / scaleX,
85
- y: rect.top / scaleY
74
+ width,
75
+ height,
76
+ top: y,
77
+ right: x + width,
78
+ bottom: y + height,
79
+ left: x,
80
+ x,
81
+ y
86
82
  };
87
83
  }
88
84
  function getWindowScroll(node) {
@@ -136,7 +132,7 @@ function getCompositeRect(elementOrVirtualElement, offsetParent, isFixed) {
136
132
  var isOffsetParentAnElement = isHTMLElement(offsetParent);
137
133
  var offsetParentIsScaled = isHTMLElement(offsetParent) && isElementScaled(offsetParent);
138
134
  var documentElement = getDocumentElement(offsetParent);
139
- var rect = getBoundingClientRect(elementOrVirtualElement, offsetParentIsScaled);
135
+ var rect = getBoundingClientRect(elementOrVirtualElement, offsetParentIsScaled, isFixed);
140
136
  var scroll = {
141
137
  scrollLeft: 0,
142
138
  scrollTop: 0
@@ -218,8 +214,8 @@ function getTrueOffsetParent(element) {
218
214
  return element.offsetParent;
219
215
  }
220
216
  function getContainingBlock(element) {
221
- var isFirefox = navigator.userAgent.toLowerCase().indexOf("firefox") !== -1;
222
- var isIE = navigator.userAgent.indexOf("Trident") !== -1;
217
+ var isFirefox = /firefox/i.test(getUAString());
218
+ var isIE = /Trident/i.test(getUAString());
223
219
  if (isIE && isHTMLElement(element)) {
224
220
  var elementCss = getComputedStyle(element);
225
221
  if (elementCss.position === "fixed") {
@@ -806,7 +802,8 @@ const _sfc_main = create({
806
802
  [Popup.name]: Popup,
807
803
  [Button.name]: Button
808
804
  },
809
- props: __spreadProps(__spreadValues({}, popupProps), {
805
+ props: {
806
+ ...popupProps,
810
807
  list: {
811
808
  type: Array,
812
809
  default: []
@@ -831,7 +828,7 @@ const _sfc_main = create({
831
828
  type: Boolean,
832
829
  default: true
833
830
  }
834
- }),
831
+ },
835
832
  emits: ["update", "update:visible", "close", "choose", "open"],
836
833
  setup(props, { emit }) {
837
834
  let popper;
@@ -906,13 +903,19 @@ const _sfc_main = create({
906
903
  onUnmounted(() => {
907
904
  window.removeEventListener("click", clickAway, true);
908
905
  });
909
- watch(() => props.visible, (value) => {
910
- showPopup.value = value;
911
- uploadLocation();
912
- });
913
- watch(() => props.location, (value) => {
914
- uploadLocation();
915
- });
906
+ watch(
907
+ () => props.visible,
908
+ (value) => {
909
+ showPopup.value = value;
910
+ uploadLocation();
911
+ }
912
+ );
913
+ watch(
914
+ () => props.location,
915
+ (value) => {
916
+ uploadLocation();
917
+ }
918
+ );
916
919
  const update = (val) => {
917
920
  emit("update", val);
918
921
  emit("update:visible", val);
@@ -1,24 +1,5 @@
1
- var __defProp = Object.defineProperty;
2
- var __defProps = Object.defineProperties;
3
- var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
4
- var __getOwnPropSymbols = Object.getOwnPropertySymbols;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __propIsEnum = Object.prototype.propertyIsEnumerable;
7
- var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
8
- var __spreadValues = (a, b) => {
9
- for (var prop in b || (b = {}))
10
- if (__hasOwnProp.call(b, prop))
11
- __defNormalProp(a, prop, b[prop]);
12
- if (__getOwnPropSymbols)
13
- for (var prop of __getOwnPropSymbols(b)) {
14
- if (__propIsEnum.call(b, prop))
15
- __defNormalProp(a, prop, b[prop]);
16
- }
17
- return a;
18
- };
19
- var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20
1
  /*!
21
- * @nutui/nutui v3.2.2 Thu Sep 08 2022 22:10:31 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.4-beta.0 Fri Oct 14 2022 14:39:24 GMT+0800 (中国标准时间)
22
3
  * (c) 2022 @jdf2e.
23
4
  * Released under the MIT License.
24
5
  */
@@ -48,7 +29,8 @@ const useLockScroll = (isLock) => {
48
29
  };
49
30
  const { componentName, create } = createComponent("popup");
50
31
  let _zIndex = 2e3;
51
- const popupProps = __spreadProps(__spreadValues({}, overlayProps), {
32
+ const popupProps = {
33
+ ...overlayProps,
52
34
  position: {
53
35
  type: String,
54
36
  default: "center"
@@ -97,13 +79,15 @@ const popupProps = __spreadProps(__spreadValues({}, overlayProps), {
97
79
  type: Boolean,
98
80
  default: false
99
81
  }
100
- });
82
+ };
101
83
  const _sfc_main = create({
102
84
  components: {
103
85
  [overlay.name]: overlay,
104
86
  [_sfc_main$1.name]: _sfc_main$1
105
87
  },
106
- props: __spreadValues({}, popupProps),
88
+ props: {
89
+ ...popupProps
90
+ },
107
91
  emits: ["click", "click-close-icon", "open", "close", "opend", "closed", "update:visible", "click-overlay"],
108
92
  setup(props, { emit }) {
109
93
  const popupRef = ref();
@@ -127,10 +111,11 @@ const _sfc_main = create({
127
111
  };
128
112
  });
129
113
  const popStyle = computed(() => {
130
- return __spreadValues({
114
+ return {
131
115
  zIndex: state.zIndex,
132
- animationDuration: props.duration ? `${props.duration}s` : "initial"
133
- }, props.style);
116
+ animationDuration: props.duration ? `${props.duration}s` : "initial",
117
+ ...props.style
118
+ };
134
119
  });
135
120
  const open = () => {
136
121
  if (props.zIndex != 2e3) {
@@ -197,20 +182,30 @@ const _sfc_main = create({
197
182
  state.keepAlive = true;
198
183
  }
199
184
  });
200
- watch(() => props.visible, (value) => {
201
- if (value) {
202
- open();
203
- } else {
204
- close();
185
+ watch(
186
+ () => props.visible,
187
+ (value) => {
188
+ if (value) {
189
+ open();
190
+ } else {
191
+ close();
192
+ }
205
193
  }
206
- });
207
- watch(() => props.position, (value) => {
208
- value === "center" ? state.transitionName = "popup-fade" : state.transitionName = `popup-slide-${value}`;
209
- });
210
- watch(() => props.closeable, (value) => {
211
- state.closed = value;
212
- });
213
- return __spreadProps(__spreadValues({}, toRefs(state)), {
194
+ );
195
+ watch(
196
+ () => props.position,
197
+ (value) => {
198
+ value === "center" ? state.transitionName = "popup-fade" : state.transitionName = `popup-slide-${value}`;
199
+ }
200
+ );
201
+ watch(
202
+ () => props.closeable,
203
+ (value) => {
204
+ state.closed = value;
205
+ }
206
+ );
207
+ return {
208
+ ...toRefs(state),
214
209
  popStyle,
215
210
  classes,
216
211
  onClick,
@@ -219,7 +214,7 @@ const _sfc_main = create({
219
214
  onOpened,
220
215
  onClosed,
221
216
  popupRef
222
- });
217
+ };
223
218
  }
224
219
  });
225
220
  const _hoisted_1 = { key: 1 };
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui v3.2.2 Thu Sep 08 2022 22:10:31 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.4-beta.0 Fri Oct 14 2022 14:39:24 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui v3.2.2 Thu Sep 08 2022 22:10:31 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.4-beta.0 Fri Oct 14 2022 14:39:24 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -60,7 +60,7 @@ const _sfc_main = create({
60
60
  default: true
61
61
  }
62
62
  },
63
- setup(props, { emit }) {
63
+ setup(props) {
64
64
  const slotDefault = !!useSlots().default;
65
65
  const height = ref(props.strokeWidth + "px");
66
66
  const progressOuter = ref();
@@ -1,21 +1,5 @@
1
- var __defProp = Object.defineProperty;
2
- var __getOwnPropSymbols = Object.getOwnPropertySymbols;
3
- var __hasOwnProp = Object.prototype.hasOwnProperty;
4
- var __propIsEnum = Object.prototype.propertyIsEnumerable;
5
- var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
6
- var __spreadValues = (a, b) => {
7
- for (var prop in b || (b = {}))
8
- if (__hasOwnProp.call(b, prop))
9
- __defNormalProp(a, prop, b[prop]);
10
- if (__getOwnPropSymbols)
11
- for (var prop of __getOwnPropSymbols(b)) {
12
- if (__propIsEnum.call(b, prop))
13
- __defNormalProp(a, prop, b[prop]);
14
- }
15
- return a;
16
- };
17
1
  /*!
18
- * @nutui/nutui v3.2.2 Thu Sep 08 2022 22:10:31 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.4-beta.0 Fri Oct 14 2022 14:39:24 GMT+0800 (中国标准时间)
19
3
  * (c) 2022 @jdf2e.
20
4
  * Released under the MIT License.
21
5
  */
@@ -319,7 +303,7 @@ const _sfc_main = create({
319
303
  }
320
304
  }
321
305
  };
322
- return __spreadValues({
306
+ return {
323
307
  scroller,
324
308
  touchStart,
325
309
  touchMove,
@@ -331,8 +315,9 @@ const _sfc_main = create({
331
315
  reachLeft,
332
316
  getBottomStyle,
333
317
  refreshTopTem,
334
- refreshBottomTem
335
- }, toRefs(state));
318
+ refreshBottomTem,
319
+ ...toRefs(state)
320
+ };
336
321
  }
337
322
  });
338
323
  const _hoisted_1 = {
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui v3.2.2 Thu Sep 08 2022 22:10:31 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.4-beta.0 Fri Oct 14 2022 14:39:24 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -67,15 +67,23 @@ const _sfc_main = create({
67
67
  };
68
68
  const renderLabel = () => {
69
69
  var _a;
70
- return h("view", {
71
- class: `${componentName}__label ${props.disabled ? `${componentName}__label--disabled` : ""}`
72
- }, (_a = slots.default) == null ? void 0 : _a.call(slots));
70
+ return h(
71
+ "view",
72
+ {
73
+ class: `${componentName}__label ${props.disabled ? `${componentName}__label--disabled` : ""}`
74
+ },
75
+ (_a = slots.default) == null ? void 0 : _a.call(slots)
76
+ );
73
77
  };
74
78
  const renderButton = () => {
75
79
  var _a;
76
- return h("view", {
77
- class: `${componentName}__button ${isCurValue.value && `${componentName}__button--active`} ${props.disabled ? `${componentName}__button--disabled` : ""}`
78
- }, (_a = slots.default) == null ? void 0 : _a.call(slots));
80
+ return h(
81
+ "view",
82
+ {
83
+ class: `${componentName}__button ${isCurValue.value && `${componentName}__button--active`} ${props.disabled ? `${componentName}__button--disabled` : ""}`
84
+ },
85
+ (_a = slots.default) == null ? void 0 : _a.call(slots)
86
+ );
79
87
  };
80
88
  const handleClick = () => {
81
89
  if (isCurValue.value || props.disabled)
@@ -84,12 +92,16 @@ const _sfc_main = create({
84
92
  };
85
93
  let reverseState = position.value === "left";
86
94
  return () => {
87
- return h("view", {
88
- class: `${componentName} ${componentName}--${props.shape} ${reverseState ? `${componentName}--reverse` : ""}`,
89
- onClick: handleClick
90
- }, [
91
- props.shape == "button" ? renderButton() : reverseState ? [renderLabel(), renderIcon()] : [renderIcon(), renderLabel()]
92
- ]);
95
+ return h(
96
+ "view",
97
+ {
98
+ class: `${componentName} ${componentName}--${props.shape} ${reverseState ? `${componentName}--reverse` : ""}`,
99
+ onClick: handleClick
100
+ },
101
+ [
102
+ props.shape == "button" ? renderButton() : reverseState ? [renderLabel(), renderIcon()] : [renderIcon(), renderLabel()]
103
+ ]
104
+ );
93
105
  };
94
106
  }
95
107
  });
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui v3.2.2 Thu Sep 08 2022 22:10:31 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.4-beta.0 Fri Oct 14 2022 14:39:24 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -30,12 +30,19 @@ const _sfc_main = create({
30
30
  position: props.textPosition,
31
31
  updateValue
32
32
  });
33
- watch(() => props.modelValue, (value) => emit("change", value));
33
+ watch(
34
+ () => props.modelValue,
35
+ (value) => emit("change", value)
36
+ );
34
37
  return () => {
35
38
  var _a;
36
- return h("view", {
37
- class: `${componentName} ${componentName}--${props.direction}`
38
- }, (_a = slots.default) == null ? void 0 : _a.call(slots));
39
+ return h(
40
+ "view",
41
+ {
42
+ class: `${componentName} ${componentName}--${props.direction}`
43
+ },
44
+ (_a = slots.default) == null ? void 0 : _a.call(slots)
45
+ );
39
46
  };
40
47
  }
41
48
  });