@nutui/nutui 3.1.23-beta.6 → 3.2.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 (231) hide show
  1. package/CHANGELOG.md +63 -1
  2. package/dist/nutui.es.js +1475 -1070
  3. package/dist/nutui.umd.js +1468 -1063
  4. package/dist/packages/_es/ActionSheet.js +4 -22
  5. package/dist/packages/_es/Address.js +79 -71
  6. package/dist/packages/_es/AddressList.js +7 -5
  7. package/dist/packages/_es/Animate.js +2 -21
  8. package/dist/packages/_es/Audio.js +39 -68
  9. package/dist/packages/_es/AudioOperate.js +3 -24
  10. package/dist/packages/_es/Avatar.js +8 -24
  11. package/dist/packages/_es/AvatarGroup.js +1 -1
  12. package/dist/packages/_es/BackTop.js +1 -1
  13. package/dist/packages/_es/Badge.js +1 -1
  14. package/dist/packages/_es/Barrage.js +7 -4
  15. package/dist/packages/_es/Button.js +6 -5
  16. package/dist/packages/_es/Calendar.js +10 -4
  17. package/dist/packages/_es/CalendarItem.js +1 -1
  18. package/dist/packages/_es/Card.js +1 -1
  19. package/dist/packages/_es/Cascader.js +51 -65
  20. package/dist/packages/_es/Category.js +2 -2
  21. package/dist/packages/_es/CategoryPane.js +10 -10
  22. package/dist/packages/_es/Cell.js +8 -9
  23. package/dist/packages/_es/CellGroup.js +1 -1
  24. package/dist/packages/_es/Checkbox.js +31 -17
  25. package/dist/packages/_es/CheckboxGroup.js +14 -7
  26. package/dist/packages/_es/CircleProgress.js +1 -1
  27. package/dist/packages/_es/Col.js +5 -11
  28. package/dist/packages/_es/Collapse.js +22 -19
  29. package/dist/packages/_es/CollapseItem.js +30 -42
  30. package/dist/packages/_es/Comment.js +13 -9
  31. package/dist/packages/_es/ConfigProvider.js +8 -4
  32. package/dist/packages/_es/CountDown.js +40 -46
  33. package/dist/packages/_es/CountUp.js +39 -40
  34. package/dist/packages/_es/DatePicker.js +25 -33
  35. package/dist/packages/_es/Dialog.js +12 -27
  36. package/dist/packages/_es/Divider.js +7 -24
  37. package/dist/packages/_es/Drag.js +1 -1
  38. package/dist/packages/_es/Ecard.js +7 -4
  39. package/dist/packages/_es/Elevator.js +25 -38
  40. package/dist/packages/_es/Ellipsis.js +14 -28
  41. package/dist/packages/_es/Empty.js +1 -1
  42. package/dist/packages/_es/FixedNav.js +18 -14
  43. package/dist/packages/_es/Form.js +8 -4
  44. package/dist/packages/_es/FormItem.js +1 -1
  45. package/dist/packages/_es/Grid.js +1 -1
  46. package/dist/packages/_es/GridItem.js +6 -5
  47. package/dist/packages/_es/Icon.js +15 -11
  48. package/dist/packages/_es/Image.js +8 -24
  49. package/dist/packages/_es/ImagePreview.js +24 -39
  50. package/dist/packages/_es/Indicator.js +1 -1
  51. package/dist/packages/_es/InfiniteLoading.js +8 -33
  52. package/dist/packages/_es/Input.js +75 -69
  53. package/dist/packages/_es/InputNumber.js +20 -14
  54. package/dist/packages/_es/Layout.js +1 -1
  55. package/dist/packages/_es/List.js +10 -25
  56. package/dist/packages/_es/Menu.js +17 -10
  57. package/dist/packages/_es/MenuItem.js +5 -26
  58. package/dist/packages/_es/Navbar.js +10 -8
  59. package/dist/packages/_es/NoticeBar.js +20 -31
  60. package/dist/packages/_es/Notify.js +16 -32
  61. package/dist/packages/_es/NumberKeyboard.js +21 -16
  62. package/dist/packages/_es/OldPicker.js +47 -46
  63. package/dist/packages/_es/OverLay.js +11 -23
  64. package/dist/packages/_es/Pagination.js +1 -1
  65. package/dist/packages/_es/Picker.js +81 -59
  66. package/dist/packages/_es/Popover.js +58 -58
  67. package/dist/packages/_es/Popup.js +38 -43
  68. package/dist/packages/_es/Price.js +1 -1
  69. package/dist/packages/_es/Progress.js +4 -5
  70. package/dist/packages/_es/PullRefresh.js +5 -20
  71. package/dist/packages/_es/Radio.js +25 -13
  72. package/dist/packages/_es/RadioGroup.js +12 -5
  73. package/dist/packages/_es/Range.js +20 -33
  74. package/dist/packages/_es/Rate.js +5 -24
  75. package/dist/packages/_es/Row.js +5 -11
  76. package/dist/packages/_es/SearchBar.js +5 -24
  77. package/dist/packages/_es/ShortPassword.js +18 -11
  78. package/dist/packages/_es/SideNavBar.js +4 -22
  79. package/dist/packages/_es/SideNavBarItem.js +1 -1
  80. package/dist/packages/_es/Signature.js +15 -23
  81. package/dist/packages/_es/Skeleton.js +1 -1
  82. package/dist/packages/_es/Sku.js +24 -32
  83. package/dist/packages/_es/Step.js +9 -26
  84. package/dist/packages/_es/Steps.js +8 -4
  85. package/dist/packages/_es/Sticky.js +23 -12
  86. package/dist/packages/_es/SubSideNavBar.js +4 -22
  87. package/dist/packages/_es/Swipe.js +5 -24
  88. package/dist/packages/_es/Swiper.js +23 -14
  89. package/dist/packages/_es/SwiperItem.js +1 -1
  90. package/dist/packages/_es/Switch.js +15 -11
  91. package/dist/packages/_es/TabPane.js +1 -1
  92. package/dist/packages/_es/Tabbar.js +7 -4
  93. package/dist/packages/_es/TabbarItem.js +13 -14
  94. package/dist/packages/_es/Table.js +10 -25
  95. package/dist/packages/_es/Tabs.js +20 -29
  96. package/dist/packages/_es/Tag.js +11 -15
  97. package/dist/packages/_es/TextArea.js +8 -5
  98. package/dist/packages/_es/TimeDetail.js +5 -24
  99. package/dist/packages/_es/TimePannel.js +4 -22
  100. package/dist/packages/_es/TimeSelect.js +1 -1
  101. package/dist/packages/_es/Toast.js +22 -39
  102. package/dist/packages/_es/Uploader.js +54 -54
  103. package/dist/packages/_es/Video.js +22 -33
  104. package/dist/packages/_es/WaterMark.js +31 -44
  105. package/dist/packages/_es/common.js +21 -11
  106. package/dist/packages/_es/component.js +5 -5
  107. package/dist/packages/_es/index.js +1 -1
  108. package/dist/packages/_es/index2.js +1 -1
  109. package/dist/packages/_es/index3.js +1 -1
  110. package/dist/packages/_es/index4.js +1 -1
  111. package/dist/packages/_es/index5.js +26 -35
  112. package/dist/packages/_es/plugin-vue_export-helper.js +1 -1
  113. package/dist/packages/_es/pxCheck.js +1 -1
  114. package/dist/packages/_es/raf.js +1 -1
  115. package/dist/packages/_es/style.css +1 -111
  116. package/dist/packages/actionsheet/index.scss +17 -0
  117. package/dist/packages/address/index.scss +60 -0
  118. package/dist/packages/addresslist/index.scss +57 -17
  119. package/dist/packages/audio/index.scss +8 -0
  120. package/dist/packages/barrage/index.scss +7 -0
  121. package/dist/packages/button/index.scss +1 -0
  122. package/dist/packages/card/index.scss +8 -1
  123. package/dist/packages/category/index.scss +25 -4
  124. package/dist/packages/categorypane/index.scss +18 -65
  125. package/dist/packages/circleprogress/index.scss +6 -0
  126. package/dist/packages/collapseitem/index.scss +21 -0
  127. package/dist/packages/comment/index.scss +37 -0
  128. package/dist/packages/countup/index.scss +24 -3
  129. package/dist/packages/ecard/index.scss +31 -1
  130. package/dist/packages/elevator/index.scss +16 -0
  131. package/dist/packages/empty/index.scss +6 -0
  132. package/dist/packages/fixednav/index.scss +7 -0
  133. package/dist/packages/image/index.scss +12 -0
  134. package/dist/packages/infiniteloading/index.scss +18 -0
  135. package/dist/packages/locale/lang/baseLang.js +1 -1
  136. package/dist/packages/locale/lang/en-US.js +1 -1
  137. package/dist/packages/locale/lang/id-ID.js +1 -1
  138. package/dist/packages/locale/lang/index.js +1 -1
  139. package/dist/packages/locale/lang/zh-CN.js +1 -1
  140. package/dist/packages/locale/lang/zh-TW.js +1 -1
  141. package/dist/packages/menu/index.scss +14 -2
  142. package/dist/packages/menuitem/index.scss +8 -0
  143. package/dist/packages/noticebar/index.scss +13 -0
  144. package/dist/packages/numberkeyboard/index.scss +10 -0
  145. package/dist/packages/picker/index.scss +33 -0
  146. package/dist/packages/popup/index.scss +10 -0
  147. package/dist/packages/radio/index.scss +1 -0
  148. package/dist/packages/shortpassword/index.scss +20 -0
  149. package/dist/packages/sidenavbaritem/index.scss +9 -0
  150. package/dist/packages/sku/index.scss +40 -0
  151. package/dist/packages/step/index.scss +52 -0
  152. package/dist/packages/subsidenavbar/index.scss +12 -0
  153. package/dist/packages/swiper/index.scss +2 -0
  154. package/dist/packages/swiperitem/index.scss +3 -0
  155. package/dist/packages/tag/index.scss +20 -0
  156. package/dist/packages/watermark/index.scss +1 -1
  157. package/dist/smartips/attributes.json +38 -2
  158. package/dist/smartips/tags.json +14 -4
  159. package/dist/smartips/web-types.json +86 -4
  160. package/dist/style.css +1 -1
  161. package/dist/styles/themes/default.scss +51 -51
  162. package/dist/styles/themes/jdb.scss +51 -51
  163. package/dist/styles/themes/jdt.scss +51 -51
  164. package/dist/styles/variables-jdb.scss +28 -7
  165. package/dist/styles/variables-jdt.scss +28 -7
  166. package/dist/styles/variables.scss +27 -7
  167. package/dist/types/__VUE/actionsheet/index.vue.d.ts +1 -1
  168. package/dist/types/__VUE/address/index.vue.d.ts +1 -1
  169. package/dist/types/__VUE/addresslist/index.vue.d.ts +1 -1
  170. package/dist/types/__VUE/audio/index.vue.d.ts +4 -1
  171. package/dist/types/__VUE/audiooperate/index.vue.d.ts +15 -72
  172. package/dist/types/__VUE/avatargroup/index.vue.d.ts +1 -1
  173. package/dist/types/__VUE/backtop/index.vue.d.ts +1 -1
  174. package/dist/types/__VUE/calendar/index.vue.d.ts +7 -0
  175. package/dist/types/__VUE/calendaritem/index.vue.d.ts +2 -2
  176. package/dist/types/__VUE/categorypane/index.vue.d.ts +1 -1
  177. package/dist/types/__VUE/cell/index.vue.d.ts +9 -2
  178. package/dist/types/__VUE/cellgroup/index.vue.d.ts +1 -1
  179. package/dist/types/__VUE/checkboxgroup/index.vue.d.ts +1 -1
  180. package/dist/types/__VUE/circleprogress/index.vue.d.ts +1 -1
  181. package/dist/types/__VUE/col/index.vue.d.ts +2 -5
  182. package/dist/types/__VUE/collapse/index.vue.d.ts +2 -2
  183. package/dist/types/__VUE/collapseitem/index.vue.d.ts +1 -1
  184. package/dist/types/__VUE/configprovider/index.vue.d.ts +1 -1
  185. package/dist/types/__VUE/countdown/index.vue.d.ts +1 -1
  186. package/dist/types/__VUE/countup/index.vue.d.ts +1 -1
  187. package/dist/types/__VUE/datepicker/index.vue.d.ts +1 -1
  188. package/dist/types/__VUE/fixednav/common.d.ts +56 -0
  189. package/dist/types/__VUE/fixednav/index.vue.d.ts +17 -9
  190. package/dist/types/__VUE/formitem/index.vue.d.ts +1 -1
  191. package/dist/types/__VUE/griditem/index.vue.d.ts +1 -1
  192. package/dist/types/__VUE/imagepreview/imagePreviewItem.vue.d.ts +1 -1
  193. package/dist/types/__VUE/imagepreview/index.d.ts +7 -6
  194. package/dist/types/__VUE/imagepreview/index.vue.d.ts +4 -4
  195. package/dist/types/__VUE/imagepreview/types.d.ts +7 -0
  196. package/dist/types/__VUE/infiniteloading/index.vue.d.ts +1 -1
  197. package/dist/types/__VUE/input/index.vue.d.ts +4 -9
  198. package/dist/types/__VUE/inputnumber/index.vue.d.ts +15 -1
  199. package/dist/types/__VUE/menu/index.vue.d.ts +3 -0
  200. package/dist/types/__VUE/menuitem/index.vue.d.ts +1 -4
  201. package/dist/types/__VUE/noticebar/index.vue.d.ts +4 -4
  202. package/dist/types/__VUE/numberkeyboard/index.vue.d.ts +1 -1
  203. package/dist/types/__VUE/oldpicker/Column.vue.d.ts +1 -1
  204. package/dist/types/__VUE/oldpicker/index.vue.d.ts +1 -1
  205. package/dist/types/__VUE/overlay/index.vue.d.ts +1 -1
  206. package/dist/types/__VUE/picker/Column.vue.d.ts +8 -0
  207. package/dist/types/__VUE/picker/index.vue.d.ts +28 -13
  208. package/dist/types/__VUE/popover/index.vue.d.ts +2 -2
  209. package/dist/types/__VUE/pullrefresh/index.vue.d.ts +1 -1
  210. package/dist/types/__VUE/radiogroup/index.vue.d.ts +1 -1
  211. package/dist/types/__VUE/row/index.vue.d.ts +2 -5
  212. package/dist/types/__VUE/searchbar/index.vue.d.ts +1 -1
  213. package/dist/types/__VUE/shortpassword/index.vue.d.ts +1 -1
  214. package/dist/types/__VUE/sidenavbar/index.vue.d.ts +1 -1
  215. package/dist/types/__VUE/sidenavbaritem/index.vue.d.ts +1 -1
  216. package/dist/types/__VUE/signature/index.vue.d.ts +5 -2
  217. package/dist/types/__VUE/subsidenavbar/index.vue.d.ts +1 -1
  218. package/dist/types/__VUE/swiperitem/index.vue.d.ts +1 -1
  219. package/dist/types/__VUE/switch/index.vue.d.ts +2 -2
  220. package/dist/types/__VUE/tabbaritem/index.vue.d.ts +1 -1
  221. package/dist/types/__VUE/tabpane/index.vue.d.ts +1 -1
  222. package/dist/types/__VUE/textarea/index.vue.d.ts +1 -1
  223. package/dist/types/__VUE/timedetail/index.vue.d.ts +1 -1
  224. package/dist/types/__VUE/timepannel/index.vue.d.ts +1 -1
  225. package/dist/types/__VUE/timeselect/index.vue.d.ts +1 -1
  226. package/dist/types/__VUE/uploader/index.vue.d.ts +7 -0
  227. package/dist/types/__VUE/uploader/uploader.d.ts +1 -0
  228. package/dist/types/__VUE/watermark/index.vue.d.ts +1 -1
  229. package/dist/types/index.d.ts +1 -1
  230. package/package.json +2 -1
  231. package/dist/packages/index.d.ts +0 -3
@@ -1,28 +1,9 @@
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.1.23-beta.6 Thu Jul 28 2022 18:06:31 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.2-beta.1 Mon Aug 22 2022 15:19:47 GMT+0800 (中国标准时间)
22
3
  * (c) 2022 @jdf2e.
23
4
  * Released under the MIT License.
24
5
  */
25
- import { ref, toRefs, computed, onMounted, onUnmounted, watch, nextTick, resolveComponent, openBlock, createElementBlock, Fragment, createElementVNode, normalizeClass, withModifiers, renderSlot, createVNode, withCtx, createCommentVNode, renderList, toDisplayString } from "vue";
6
+ import { ref, toRefs, computed, onMounted, onUnmounted, watch, nextTick, resolveComponent, openBlock, createElementBlock, Fragment, createElementVNode, normalizeClass, withModifiers, renderSlot, createVNode, withCtx, createCommentVNode, renderList, mergeProps, toDisplayString } from "vue";
26
7
  import { c as createComponent } from "./component.js";
27
8
  import Popup, { popupProps } from "./Popup.js";
28
9
  import Button from "./Button.js";
@@ -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;
@@ -858,7 +855,6 @@ const _sfc_main = create({
858
855
  };
859
856
  });
860
857
  const createPopperInstance = () => {
861
- console.log(reference.value, popoverRef.value);
862
858
  if (reference.value && popoverRef.value) {
863
859
  return createPopper(reference.value, popoverRef.value.popupRef, {
864
860
  placement: props.location,
@@ -881,7 +877,6 @@ const _sfc_main = create({
881
877
  return null;
882
878
  };
883
879
  const clickOverlay = () => {
884
- console.log("\u5173\u95ED");
885
880
  };
886
881
  const uploadLocation = () => {
887
882
  nextTick(() => {
@@ -889,7 +884,6 @@ const _sfc_main = create({
889
884
  return;
890
885
  if (!popper) {
891
886
  popper = createPopperInstance();
892
- console.log(popper);
893
887
  } else {
894
888
  popper.setOptions({
895
889
  placement: props.location
@@ -909,13 +903,19 @@ const _sfc_main = create({
909
903
  onUnmounted(() => {
910
904
  window.removeEventListener("click", clickAway, true);
911
905
  });
912
- watch(() => props.visible, (value) => {
913
- showPopup.value = value;
914
- uploadLocation();
915
- });
916
- watch(() => props.location, (value) => {
917
- uploadLocation();
918
- });
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
+ );
919
919
  const update = (val) => {
920
920
  emit("update", val);
921
921
  emit("update:visible", val);
@@ -987,10 +987,10 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
987
987
  onClick: withModifiers(($event) => _ctx.chooseItem(item, index2), ["stop"])
988
988
  }, [
989
989
  item.icon ? renderSlot(_ctx.$slots, "default", { key: 0 }, () => [
990
- createVNode(_component_nut_icon, {
990
+ createVNode(_component_nut_icon, mergeProps(_ctx.$attrs, {
991
991
  class: "item-img",
992
992
  name: item.icon
993
- }, null, 8, ["name"])
993
+ }), null, 16, ["name"])
994
994
  ]) : createCommentVNode("", true),
995
995
  createElementVNode("view", _hoisted_2, toDisplayString(item.name), 1)
996
996
  ], 10, _hoisted_1);
@@ -1,28 +1,9 @@
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.1.23-beta.6 Thu Jul 28 2022 18:06:31 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.2-beta.1 Mon Aug 22 2022 15:19:47 GMT+0800 (中国标准时间)
22
3
  * (c) 2022 @jdf2e.
23
4
  * Released under the MIT License.
24
5
  */
25
- import { ref, reactive, computed, onMounted, onBeforeUnmount, onBeforeMount, onActivated, onDeactivated, watch, toRefs, resolveComponent, openBlock, createBlock, Teleport, normalizeClass, normalizeStyle, createCommentVNode, createVNode, Transition, withCtx, withDirectives, createElementVNode, renderSlot, createElementBlock, vShow } from "vue";
6
+ import { ref, reactive, computed, onMounted, onBeforeUnmount, onBeforeMount, onActivated, onDeactivated, watch, toRefs, resolveComponent, openBlock, createBlock, Teleport, normalizeClass, normalizeStyle, createCommentVNode, createVNode, Transition, withCtx, withDirectives, createElementVNode, renderSlot, createElementBlock, mergeProps, vShow } from "vue";
26
7
  import overlay, { overlayProps } from "./OverLay.js";
27
8
  import _sfc_main$1 from "./Icon.js";
28
9
  import { c as createComponent } from "./component.js";
@@ -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 };
@@ -259,10 +254,10 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
259
254
  onClick: _cache[0] || (_cache[0] = (...args) => _ctx.onClickCloseIcon && _ctx.onClickCloseIcon(...args)),
260
255
  class: normalizeClass(["nutui-popup__close-icon", "nutui-popup__close-icon--" + _ctx.closeIconPosition])
261
256
  }, [
262
- createVNode(_component_nut_icon, {
257
+ createVNode(_component_nut_icon, mergeProps(_ctx.$attrs, {
263
258
  name: _ctx.closeIcon,
264
259
  size: "12px"
265
- }, null, 8, ["name"])
260
+ }), null, 16, ["name"])
266
261
  ], 2)) : createCommentVNode("", true)
267
262
  ], 6), [
268
263
  [vShow, _ctx.visible]
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui v3.1.23-beta.6 Thu Jul 28 2022 18:06:31 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.2-beta.1 Mon Aug 22 2022 15:19:47 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,9 +1,9 @@
1
1
  /*!
2
- * @nutui/nutui v3.1.23-beta.6 Thu Jul 28 2022 18:06:31 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.2-beta.1 Mon Aug 22 2022 15:19:47 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
6
- import { useSlots, ref, computed, onMounted, resolveComponent, openBlock, createElementBlock, createElementVNode, normalizeClass, normalizeStyle, toDisplayString, createCommentVNode, renderSlot, createBlock } from "vue";
6
+ import { useSlots, ref, computed, onMounted, resolveComponent, openBlock, createElementBlock, createElementVNode, normalizeClass, normalizeStyle, toDisplayString, createCommentVNode, renderSlot, createBlock, mergeProps } from "vue";
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";
@@ -138,12 +138,11 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
138
138
  _ctx.status == "active" || _ctx.status == "" ? (openBlock(), createElementBlock("span", {
139
139
  key: 0,
140
140
  style: normalizeStyle(_ctx.textStyle)
141
- }, toDisplayString(_ctx.percentage) + toDisplayString(_ctx.isShowPercentage ? "%" : ""), 5)) : _ctx.status == "icon" ? (openBlock(), createBlock(_component_nut_icon, {
142
- key: 1,
141
+ }, toDisplayString(_ctx.percentage) + toDisplayString(_ctx.isShowPercentage ? "%" : ""), 5)) : _ctx.status == "icon" ? (openBlock(), createBlock(_component_nut_icon, mergeProps({ key: 1 }, _ctx.$attrs, {
143
142
  size: "16px",
144
143
  name: _ctx.iconName,
145
144
  color: _ctx.iconColor
146
- }, null, 8, ["name", "color"])) : createCommentVNode("", true)
145
+ }), null, 16, ["name", "color"])) : createCommentVNode("", true)
147
146
  ], 4)) : createCommentVNode("", true)
148
147
  ]);
149
148
  }
@@ -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.1.23-beta.6 Thu Jul 28 2022 18:06:31 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.2-beta.1 Mon Aug 22 2022 15:19:47 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.1.23-beta.6 Thu Jul 28 2022 18:06:31 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.2-beta.1 Mon Aug 22 2022 15:19:47 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.1.23-beta.6 Thu Jul 28 2022 18:06:31 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.2-beta.1 Mon Aug 22 2022 15:19:47 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
  });
@@ -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.1.23-beta.6 Thu Jul 28 2022 18:06:31 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.2-beta.1 Mon Aug 22 2022 15:19:47 GMT+0800 (中国标准时间)
22
3
  * (c) 2022 @jdf2e.
23
4
  * Released under the MIT License.
24
5
  */
@@ -294,7 +275,7 @@ const _sfc_main = create({
294
275
  const value = typeof idx === "number" ? props.modelValue[idx] : props.modelValue;
295
276
  return value;
296
277
  };
297
- return __spreadProps(__spreadValues({
278
+ return {
298
279
  root,
299
280
  classes,
300
281
  wrapperStyle,
@@ -302,8 +283,8 @@ const _sfc_main = create({
302
283
  onClick,
303
284
  onTouchStart,
304
285
  onTouchMove,
305
- onTouchEnd
306
- }, toRefs(props)), {
286
+ onTouchEnd,
287
+ ...toRefs(props),
307
288
  barStyle,
308
289
  curValue,
309
290
  buttonIndex,
@@ -312,7 +293,7 @@ const _sfc_main = create({
312
293
  marksStyle,
313
294
  marksList,
314
295
  tickStyle
315
- });
296
+ };
316
297
  }
317
298
  });
318
299
  const _hoisted_1 = {
@@ -380,12 +361,15 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
380
361
  "aria-valuenow": _ctx.curValue(index2),
381
362
  "aria-valuemax": +_ctx.max,
382
363
  "aria-orientation": "horizontal",
383
- onTouchstart: withModifiers((e) => {
384
- if (typeof index2 === "number") {
385
- _ctx.buttonIndex = index2;
386
- }
387
- _ctx.onTouchStart(e);
388
- }, ["stop", "prevent"]),
364
+ onTouchstart: withModifiers(
365
+ (e) => {
366
+ if (typeof index2 === "number") {
367
+ _ctx.buttonIndex = index2;
368
+ }
369
+ _ctx.onTouchStart(e);
370
+ },
371
+ ["stop", "prevent"]
372
+ ),
389
373
  onTouchmove: _cache[0] || (_cache[0] = withModifiers((...args) => _ctx.onTouchMove && _ctx.onTouchMove(...args), ["stop", "prevent"])),
390
374
  onTouchend: _cache[1] || (_cache[1] = withModifiers((...args) => _ctx.onTouchEnd && _ctx.onTouchEnd(...args), ["stop", "prevent"])),
391
375
  onTouchcancel: _cache[2] || (_cache[2] = withModifiers((...args) => _ctx.onTouchEnd && _ctx.onTouchEnd(...args), ["stop", "prevent"])),
@@ -408,9 +392,12 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
408
392
  "aria-valuenow": _ctx.curValue(),
409
393
  "aria-valuemax": +_ctx.max,
410
394
  "aria-orientation": "horizontal",
411
- onTouchstart: _cache[4] || (_cache[4] = withModifiers((e) => {
412
- _ctx.onTouchStart(e);
413
- }, ["stop", "prevent"])),
395
+ onTouchstart: _cache[4] || (_cache[4] = withModifiers(
396
+ (e) => {
397
+ _ctx.onTouchStart(e);
398
+ },
399
+ ["stop", "prevent"]
400
+ )),
414
401
  onTouchmove: _cache[5] || (_cache[5] = withModifiers((...args) => _ctx.onTouchMove && _ctx.onTouchMove(...args), ["stop", "prevent"])),
415
402
  onTouchend: _cache[6] || (_cache[6] = withModifiers((...args) => _ctx.onTouchEnd && _ctx.onTouchEnd(...args), ["stop", "prevent"])),
416
403
  onTouchcancel: _cache[7] || (_cache[7] = withModifiers((...args) => _ctx.onTouchEnd && _ctx.onTouchEnd(...args), ["stop", "prevent"])),
@@ -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.1.23-beta.6 Thu Jul 28 2022 18:06:31 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v3.2.2-beta.1 Mon Aug 22 2022 15:19:47 GMT+0800 (中国标准时间)
22
3
  * (c) 2022 @jdf2e.
23
4
  * Released under the MIT License.
24
5
  */
@@ -151,14 +132,14 @@ const useComponent = (touchable = true) => {
151
132
  }
152
133
  };
153
134
  const refRandomId = Math.random().toString(36).slice(-8);
154
- return __spreadProps(__spreadValues({
155
- classes
156
- }, touchMethods), {
135
+ return {
136
+ classes,
137
+ ...touchMethods,
157
138
  onClick,
158
139
  pxCheck,
159
140
  rateRefs,
160
141
  refRandomId
161
- });
142
+ };
162
143
  }
163
144
  };
164
145
  };