@nutui/nutui 4.2.1 → 4.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 (299) hide show
  1. package/dist/nutui.es.js +1 -1
  2. package/dist/nutui.js +6049 -6030
  3. package/dist/nutui.umd.js +1 -1
  4. package/dist/packages/{_es/Interceptor-006f85b3.js → Interceptor-a7d38af1.js} +1 -1
  5. package/dist/packages/{_es → actionsheet}/ActionSheet.js +6 -9
  6. package/dist/packages/actionsheet/index.mjs +2 -4
  7. package/dist/packages/{_es → address}/Address.js +13 -9
  8. package/dist/packages/address/index.mjs +2 -4
  9. package/dist/packages/{_es → addresslist}/AddressList.js +23 -27
  10. package/dist/packages/addresslist/index.mjs +2 -4
  11. package/dist/packages/{_es → animate}/Animate.js +2 -2
  12. package/dist/packages/animate/index.mjs +2 -4
  13. package/dist/packages/{_es → audio}/Audio.js +6 -6
  14. package/dist/packages/audio/index.mjs +2 -4
  15. package/dist/packages/{_es → audiooperate}/AudioOperate.js +8 -5
  16. package/dist/packages/audiooperate/index.mjs +2 -4
  17. package/dist/packages/{_es → avatar}/Avatar.js +4 -4
  18. package/dist/packages/avatar/index.mjs +2 -4
  19. package/dist/packages/{_es → avatarcropper}/AvatarCropper.js +6 -6
  20. package/dist/packages/avatarcropper/index.mjs +2 -4
  21. package/dist/packages/{_es → avatargroup}/AvatarGroup.js +4 -4
  22. package/dist/packages/avatargroup/index.mjs +2 -4
  23. package/dist/packages/{_es → backtop}/Backtop.js +3 -3
  24. package/dist/packages/backtop/index.mjs +2 -4
  25. package/dist/packages/{_es → badge}/Badge.js +4 -4
  26. package/dist/packages/badge/index.mjs +2 -4
  27. package/dist/packages/{_es → barrage}/Barrage.js +2 -2
  28. package/dist/packages/barrage/index.mjs +2 -4
  29. package/dist/packages/{_es → button}/Button.js +4 -4
  30. package/dist/packages/button/index.mjs +2 -4
  31. package/dist/packages/{_es → calendar}/Calendar.js +10 -9
  32. package/dist/packages/calendar/index.mjs +2 -4
  33. package/dist/packages/calendaritem/CalendarItem.js +11 -0
  34. package/dist/packages/calendaritem/index.mjs +2 -4
  35. package/dist/packages/{_es → card}/Card.js +6 -6
  36. package/dist/packages/card/index.mjs +2 -4
  37. package/dist/packages/{_es → cascader}/Cascader.js +20 -18
  38. package/dist/packages/cascader/index.mjs +2 -4
  39. package/dist/packages/{_es → category}/Category.js +2 -2
  40. package/dist/packages/category/index.mjs +2 -4
  41. package/dist/packages/{_es → categorypane}/CategoryPane.js +2 -2
  42. package/dist/packages/categorypane/index.mjs +2 -4
  43. package/dist/packages/{_es → cell}/Cell.js +15 -9
  44. package/dist/packages/cell/index.mjs +2 -4
  45. package/dist/packages/{_es → cellgroup}/CellGroup.js +4 -4
  46. package/dist/packages/cellgroup/index.mjs +2 -4
  47. package/dist/packages/{_es → checkbox}/Checkbox.js +2 -2
  48. package/dist/packages/checkbox/index.mjs +2 -4
  49. package/dist/packages/{_es → checkboxgroup}/CheckboxGroup.js +2 -2
  50. package/dist/packages/checkboxgroup/index.mjs +2 -4
  51. package/dist/packages/{_es → circleprogress}/CircleProgress.js +2 -2
  52. package/dist/packages/circleprogress/index.mjs +2 -4
  53. package/dist/packages/{_es → col}/Col.js +2 -2
  54. package/dist/packages/col/index.mjs +2 -4
  55. package/dist/packages/{_es → collapse}/Collapse.js +2 -2
  56. package/dist/packages/collapse/index.mjs +2 -4
  57. package/dist/packages/{_es → collapseitem}/CollapseItem.js +3 -3
  58. package/dist/packages/collapseitem/index.mjs +2 -4
  59. package/dist/packages/{_es → comment}/Comment.js +34 -34
  60. package/dist/packages/comment/index.mjs +2 -4
  61. package/dist/packages/{_es/common-728db750.js → common-3db007cd.js} +2 -2
  62. package/dist/packages/{_es/component-f86a70df.js → component-a8dfbf81.js} +7 -7
  63. package/dist/packages/{_es → configprovider}/ConfigProvider.js +1 -1
  64. package/dist/packages/configprovider/index.mjs +2 -4
  65. package/dist/packages/{_es → countdown}/Countdown.js +12 -17
  66. package/dist/packages/countdown/index.mjs +2 -4
  67. package/dist/packages/{_es → countup}/Countup.js +2 -2
  68. package/dist/packages/countup/index.mjs +2 -4
  69. package/dist/packages/{_es → datepicker}/DatePicker.js +14 -13
  70. package/dist/packages/datepicker/index.mjs +2 -4
  71. package/dist/packages/{_es → dialog}/Dialog.js +15 -19
  72. package/dist/packages/dialog/index.mjs +3 -5
  73. package/dist/packages/{_es → divider}/Divider.js +2 -2
  74. package/dist/packages/divider/index.mjs +2 -4
  75. package/dist/packages/{_es → drag}/Drag.js +3 -3
  76. package/dist/packages/drag/index.mjs +2 -4
  77. package/dist/packages/{_es → ecard}/Ecard.js +9 -6
  78. package/dist/packages/ecard/index.mjs +2 -4
  79. package/dist/packages/{_es → elevator}/Elevator.js +8 -9
  80. package/dist/packages/elevator/index.mjs +2 -4
  81. package/dist/packages/{_es → ellipsis}/Ellipsis.js +2 -2
  82. package/dist/packages/ellipsis/index.mjs +2 -4
  83. package/dist/packages/{_es → empty}/Empty.js +7 -4
  84. package/dist/packages/empty/index.mjs +2 -4
  85. package/dist/packages/{_es → fixednav}/FixedNav.js +13 -10
  86. package/dist/packages/fixednav/index.mjs +2 -4
  87. package/dist/packages/{_es → form}/Form.js +7 -7
  88. package/dist/packages/form/index.mjs +2 -4
  89. package/dist/packages/{_es → formitem}/FormItem.js +23 -12
  90. package/dist/packages/formitem/index.mjs +2 -4
  91. package/dist/packages/{_es → grid}/Grid.js +3 -3
  92. package/dist/packages/grid/index.mjs +2 -4
  93. package/dist/packages/{_es → griditem}/GridItem.js +5 -5
  94. package/dist/packages/griditem/index.mjs +2 -4
  95. package/dist/packages/{_es → image}/Image.js +3 -3
  96. package/dist/packages/image/index.mjs +2 -4
  97. package/dist/packages/{_es → imagepreview}/ImagePreview.js +19 -18
  98. package/dist/packages/imagepreview/index.mjs +3 -5
  99. package/dist/packages/{_es/index-a187a5aa.js → index-47708e50.js} +7 -4
  100. package/dist/packages/index-99fdd331.js +17 -0
  101. package/dist/packages/{_es/index-5a1e6d22.js → index-ae743c4f.js} +5 -5
  102. package/dist/packages/{_es/index.vue_vue_type_script_lang-0ccf787e.js → index.vue_vue_type_script_lang-336a1e7d.js} +2 -2
  103. package/dist/packages/{_es/index.vue_vue_type_script_lang-1e118ab6.js → index.vue_vue_type_script_lang-e1fb856d.js} +1 -1
  104. package/dist/packages/{_es → indicator}/Indicator.js +2 -2
  105. package/dist/packages/indicator/index.mjs +2 -4
  106. package/dist/packages/{_es → infiniteloading}/InfiniteLoading.js +25 -28
  107. package/dist/packages/infiniteloading/index.mjs +2 -4
  108. package/dist/packages/{_es → input}/Input.js +2 -2
  109. package/dist/packages/input/index.mjs +2 -4
  110. package/dist/packages/{_es → inputnumber}/InputNumber.js +5 -5
  111. package/dist/packages/inputnumber/index.mjs +2 -4
  112. package/dist/packages/{_es → invoice}/Invoice.js +16 -16
  113. package/dist/packages/invoice/index.mjs +2 -4
  114. package/dist/packages/{_es → layout}/Layout.js +1 -1
  115. package/dist/packages/layout/index.mjs +2 -4
  116. package/dist/packages/{_es → list}/List.js +3 -3
  117. package/dist/packages/list/index.mjs +2 -4
  118. package/dist/packages/locale/lang/baseLang.d.ts +1 -0
  119. package/dist/packages/locale/lang/en-US.d.ts +1 -0
  120. package/dist/packages/locale/lang/en-US.js +2 -1
  121. package/dist/packages/locale/lang/id-ID.d.ts +1 -0
  122. package/dist/packages/locale/lang/id-ID.js +2 -1
  123. package/dist/packages/locale/lang/zh-CN.d.ts +1 -0
  124. package/dist/packages/locale/lang/zh-CN.js +2 -1
  125. package/dist/packages/locale/lang/zh-TW.d.ts +1 -0
  126. package/dist/packages/locale/lang/zh-TW.js +2 -1
  127. package/dist/packages/{_es → menu}/Menu.js +3 -3
  128. package/dist/packages/menu/index.mjs +2 -4
  129. package/dist/packages/{_es → menuitem}/MenuItem.js +5 -5
  130. package/dist/packages/menuitem/index.mjs +2 -4
  131. package/dist/packages/{_es/mountComponent-053caf41.js → mountComponent-614f1309.js} +1 -1
  132. package/dist/packages/{_es → navbar}/Navbar.js +2 -2
  133. package/dist/packages/navbar/index.mjs +2 -4
  134. package/dist/packages/{_es → noticebar}/Noticebar.js +4 -6
  135. package/dist/packages/noticebar/index.mjs +2 -4
  136. package/dist/packages/{_es → notify}/Notify.js +5 -5
  137. package/dist/packages/notify/index.mjs +3 -5
  138. package/dist/packages/{_es → numberkeyboard}/NumberKeyboard.js +9 -6
  139. package/dist/packages/numberkeyboard/index.mjs +2 -4
  140. package/dist/packages/{_es → overlay}/Overlay.js +4 -4
  141. package/dist/packages/overlay/index.mjs +2 -4
  142. package/dist/packages/{_es → pagination}/Pagination.js +6 -3
  143. package/dist/packages/pagination/index.mjs +2 -4
  144. package/dist/packages/{_es → picker}/Picker.js +22 -20
  145. package/dist/packages/picker/index.mjs +2 -4
  146. package/dist/packages/{_es → popover}/Popover.js +9 -9
  147. package/dist/packages/popover/index.mjs +2 -4
  148. package/dist/packages/popup/Popup.js +10 -0
  149. package/dist/packages/popup/index.mjs +2 -4
  150. package/dist/packages/{_es → price}/Price.js +4 -4
  151. package/dist/packages/price/index.mjs +2 -4
  152. package/dist/packages/{_es → progress}/Progress.js +4 -4
  153. package/dist/packages/progress/index.mjs +2 -4
  154. package/dist/packages/{_es → pullrefresh}/PullRefresh.js +39 -29
  155. package/dist/packages/pullrefresh/index.mjs +2 -4
  156. package/dist/packages/pxCheck-a27490eb.js +8 -0
  157. package/dist/packages/radio/Radio.js +9 -0
  158. package/dist/packages/radio/index.mjs +2 -4
  159. package/dist/packages/radiogroup/RadioGroup.js +7 -0
  160. package/dist/packages/radiogroup/index.mjs +2 -4
  161. package/dist/packages/{_es → range}/Range.js +6 -6
  162. package/dist/packages/range/index.mjs +2 -4
  163. package/dist/packages/{_es → rate}/Rate.js +27 -13
  164. package/dist/packages/rate/index.mjs +2 -4
  165. package/dist/packages/{_es → row}/Row.js +2 -2
  166. package/dist/packages/row/index.mjs +2 -4
  167. package/dist/packages/{_es → searchbar}/Searchbar.js +7 -4
  168. package/dist/packages/searchbar/index.mjs +2 -4
  169. package/dist/packages/{_es → shortpassword}/ShortPassword.js +9 -6
  170. package/dist/packages/shortpassword/index.mjs +2 -4
  171. package/dist/packages/{_es → sidenavbar}/SideNavbar.js +2 -2
  172. package/dist/packages/sidenavbar/index.mjs +2 -4
  173. package/dist/packages/{_es → sidenavbaritem}/SideNavbarItem.js +2 -2
  174. package/dist/packages/sidenavbaritem/index.mjs +2 -4
  175. package/dist/packages/{_es → signature}/Signature.js +9 -6
  176. package/dist/packages/signature/index.mjs +2 -4
  177. package/dist/packages/{_es → skeleton}/Skeleton.js +4 -4
  178. package/dist/packages/skeleton/index.mjs +2 -4
  179. package/dist/packages/{_es → sku}/Sku.js +18 -14
  180. package/dist/packages/sku/index.mjs +2 -4
  181. package/dist/packages/{_es → space}/Space.js +1 -1
  182. package/dist/packages/space/index.mjs +2 -4
  183. package/dist/packages/{_es → step}/Step.js +2 -2
  184. package/dist/packages/step/index.mjs +2 -4
  185. package/dist/packages/{_es → steps}/Steps.js +1 -1
  186. package/dist/packages/steps/index.mjs +2 -4
  187. package/dist/packages/{_es → sticky}/Sticky.js +8 -7
  188. package/dist/packages/sticky/index.mjs +2 -4
  189. package/dist/packages/{_es → subsidenavbar}/SubSideNavbar.js +2 -2
  190. package/dist/packages/subsidenavbar/index.mjs +2 -4
  191. package/dist/packages/{_es → swipe}/Swipe.js +5 -5
  192. package/dist/packages/swipe/index.mjs +2 -4
  193. package/dist/packages/{_es → swipegroup}/SwipeGroup.js +2 -2
  194. package/dist/packages/swipegroup/index.mjs +2 -4
  195. package/dist/packages/{_es → swiper}/Swiper.js +7 -7
  196. package/dist/packages/swiper/index.mjs +2 -4
  197. package/dist/packages/{_es → swiperitem}/SwiperItem.js +5 -5
  198. package/dist/packages/swiperitem/index.mjs +2 -4
  199. package/dist/packages/{_es → switch}/Switch.js +2 -2
  200. package/dist/packages/switch/index.mjs +2 -4
  201. package/dist/packages/{_es → tabbar}/Tabbar.js +2 -2
  202. package/dist/packages/tabbar/index.mjs +2 -4
  203. package/dist/packages/{_es → tabbaritem}/TabbarItem.js +6 -6
  204. package/dist/packages/tabbaritem/index.mjs +2 -4
  205. package/dist/packages/{_es → table}/Table.js +6 -3
  206. package/dist/packages/table/index.mjs +2 -4
  207. package/dist/packages/{_es → tabpane}/TabPane.js +4 -4
  208. package/dist/packages/tabpane/index.mjs +2 -4
  209. package/dist/packages/{_es → tabs}/Tabs.js +11 -11
  210. package/dist/packages/tabs/index.mjs +2 -4
  211. package/dist/packages/{_es → tag}/Tag.js +4 -4
  212. package/dist/packages/tag/index.mjs +2 -4
  213. package/dist/packages/{_es → textarea}/Textarea.js +7 -4
  214. package/dist/packages/textarea/index.mjs +2 -4
  215. package/dist/packages/{_es → timedetail}/TimeDetail.js +2 -2
  216. package/dist/packages/timedetail/index.mjs +2 -4
  217. package/dist/packages/{_es → timepannel}/TimePannel.js +2 -2
  218. package/dist/packages/timepannel/index.mjs +2 -4
  219. package/dist/packages/{_es → timeselect}/TimeSelect.js +9 -6
  220. package/dist/packages/timeselect/index.mjs +2 -4
  221. package/dist/packages/{_es → toast}/Toast.js +4 -4
  222. package/dist/packages/toast/index.mjs +3 -5
  223. package/dist/packages/{_es → tour}/Tour.js +8 -9
  224. package/dist/packages/tour/index.mjs +2 -4
  225. package/dist/packages/{_es → trendarrow}/TrendArrow.js +2 -2
  226. package/dist/packages/trendarrow/index.mjs +2 -4
  227. package/dist/packages/{_es → uploader}/Uploader.js +10 -8
  228. package/dist/packages/uploader/index.mjs +2 -4
  229. package/dist/packages/{_es → video}/Video.js +8 -5
  230. package/dist/packages/video/index.mjs +2 -4
  231. package/dist/packages/{_es → watermark}/Watermark.js +2 -2
  232. package/dist/packages/watermark/index.mjs +2 -4
  233. package/dist/smartips/web-types.json +19 -1
  234. package/dist/types/__VUE/actionsheet/index.vue.d.ts +12 -17
  235. package/dist/types/__VUE/address/index.vue.d.ts +20 -19
  236. package/dist/types/__VUE/address/type.d.ts +3 -2
  237. package/dist/types/__VUE/addresslist/components/ItemContents.vue.d.ts +1 -1
  238. package/dist/types/__VUE/addresslist/index.vue.d.ts +1 -4
  239. package/dist/types/__VUE/audiooperate/index.vue.d.ts +1 -1
  240. package/dist/types/__VUE/calendaritem/index.vue.d.ts +1 -1
  241. package/dist/types/__VUE/cascader/cascader-item.vue.d.ts +1 -1
  242. package/dist/types/__VUE/cell/index.vue.d.ts +3 -1
  243. package/dist/types/__VUE/comment/components/CmtBottom.vue.d.ts +1 -1
  244. package/dist/types/__VUE/comment/components/CmtImages.vue.d.ts +2 -2
  245. package/dist/types/__VUE/comment/index.vue.d.ts +2 -5
  246. package/dist/types/__VUE/countdown/index.vue.d.ts +1 -4
  247. package/dist/types/__VUE/dialog/index.vue.d.ts +1 -4
  248. package/dist/types/__VUE/ecard/index.vue.d.ts +1 -1
  249. package/dist/types/__VUE/empty/index.vue.d.ts +3 -3
  250. package/dist/types/__VUE/fixednav/index.vue.d.ts +2 -2
  251. package/dist/types/__VUE/formitem/index.vue.d.ts +1 -0
  252. package/dist/types/__VUE/formitem/types.d.ts +3 -3
  253. package/dist/types/__VUE/infiniteloading/index.vue.d.ts +1 -4
  254. package/dist/types/__VUE/inputnumber/index.vue.d.ts +1 -1
  255. package/dist/types/__VUE/noticebar/index.vue.d.ts +5 -4
  256. package/dist/types/__VUE/numberkeyboard/index.vue.d.ts +1 -1
  257. package/dist/types/__VUE/pagination/index.vue.d.ts +1 -1
  258. package/dist/types/__VUE/picker/Column.vue.d.ts +1 -1
  259. package/dist/types/__VUE/picker/common.d.ts +7 -249
  260. package/dist/types/__VUE/picker/index.vue.d.ts +1 -122
  261. package/dist/types/__VUE/picker/types.d.ts +2 -9
  262. package/dist/types/__VUE/pullrefresh/index.vue.d.ts +20 -5
  263. package/dist/types/__VUE/rate/index.vue.d.ts +1 -1
  264. package/dist/types/__VUE/searchbar/index.vue.d.ts +1 -1
  265. package/dist/types/__VUE/shortpassword/index.vue.d.ts +1 -1
  266. package/dist/types/__VUE/signature/index.vue.d.ts +2 -1
  267. package/dist/types/__VUE/sku/components/SkuHeader.vue.d.ts +3 -3
  268. package/dist/types/__VUE/sku/index.vue.d.ts +1 -1
  269. package/dist/types/__VUE/sticky/index.vue.d.ts +3 -0
  270. package/dist/types/__VUE/table/common.d.ts +7 -7
  271. package/dist/types/__VUE/table/index.vue.d.ts +10 -10
  272. package/dist/types/__VUE/table/types.d.ts +2 -2
  273. package/dist/types/__VUE/tabs/index.vue.d.ts +5 -5
  274. package/dist/types/__VUE/textarea/index.vue.d.ts +3 -2
  275. package/dist/types/__VUE/timeselect/index.vue.d.ts +1 -1
  276. package/dist/types/__VUE/tour/index.vue.d.ts +12 -11
  277. package/dist/types/__VUE/video/index.vue.d.ts +1 -1
  278. package/dist/types/index.d.ts +1 -1
  279. package/dist/types/locale/lang/baseLang.d.ts +1 -0
  280. package/dist/types/locale/lang/en-US.d.ts +1 -0
  281. package/dist/types/locale/lang/id-ID.d.ts +1 -0
  282. package/dist/types/locale/lang/zh-CN.d.ts +1 -0
  283. package/dist/types/locale/lang/zh-TW.d.ts +1 -0
  284. package/dist/types/utils/pxCheck.d.ts +1 -1
  285. package/dist/types/utils/useLocale/index.d.ts +1 -0
  286. package/package.json +1 -1
  287. package/dist/packages/_es/CalendarItem.js +0 -10
  288. package/dist/packages/_es/Popup.js +0 -10
  289. package/dist/packages/_es/Radio.js +0 -9
  290. package/dist/packages/_es/RadioGroup.js +0 -7
  291. package/dist/packages/_es/pxCheck-c6b9f6b7.js +0 -6
  292. /package/dist/packages/{_es/_plugin-vue_export-helper-cc2b3d55.js → _plugin-vue_export-helper-cc2b3d55.js} +0 -0
  293. /package/dist/packages/{_es/index-29892cda.js → index-29892cda.js} +0 -0
  294. /package/dist/packages/{_es/index-54d03fc1.js → index-54d03fc1.js} +0 -0
  295. /package/dist/packages/{_es/index-79c5dc33.js → index-79c5dc33.js} +0 -0
  296. /package/dist/packages/{_es/index-7a7385e4.js → index-7a7385e4.js} +0 -0
  297. /package/dist/packages/{_es/index-97b44e6c.js → index-97b44e6c.js} +0 -0
  298. /package/dist/packages/{_es/raf-729dad54.js → raf-729dad54.js} +0 -0
  299. /package/dist/packages/{_es/renderIcon-3d0fd47c.js → renderIcon-3d0fd47c.js} +0 -0
@@ -17,15 +17,17 @@ var __spreadValues = (a, b) => {
17
17
  return a;
18
18
  };
19
19
  var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20
- import { ref, reactive, computed, watch, toRefs, nextTick, resolveComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, normalizeStyle, createBlock, createCommentVNode, toDisplayString, renderSlot } from "vue";
21
- import { c as createComponent, k as getScrollTopRoot } from "./component-f86a70df.js";
22
- import { u as useTouch } from "./index-7a7385e4.js";
23
- import { p as pxCheck } from "./pxCheck-c6b9f6b7.js";
24
- import { u as useScrollParent } from "./index-97b44e6c.js";
20
+ import { ref, reactive, computed, watch, toRefs, nextTick, resolveComponent, openBlock, createElementBlock, createElementVNode, normalizeStyle, createBlock, createCommentVNode, toDisplayString, renderSlot } from "vue";
21
+ import { c as createComponent, k as getScrollTopRoot } from "../component-a8dfbf81.js";
22
+ import { u as useTouch } from "../index-7a7385e4.js";
23
+ import { p as pxCheck } from "../pxCheck-a27490eb.js";
24
+ import { u as useScrollParent } from "../index-97b44e6c.js";
25
25
  import { Loading } from "@nutui/icons-vue";
26
- import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
26
+ import { u as useLocale } from "../index-99fdd331.js";
27
+ import { _ as _export_sfc } from "../_plugin-vue_export-helper-cc2b3d55.js";
27
28
  import "../locale/lang";
28
- const { componentName, create, translate } = createComponent("pull-refresh");
29
+ const { create } = createComponent("pull-refresh");
30
+ const cN = "NutPullRefresh";
29
31
  const _sfc_main = create({
30
32
  props: {
31
33
  modelValue: {
@@ -34,20 +36,20 @@ const _sfc_main = create({
34
36
  },
35
37
  pullingTxt: {
36
38
  type: String,
37
- default: translate("pulling")
39
+ default: ""
38
40
  },
39
41
  loosingTxt: {
40
42
  type: String,
41
- default: translate("loosing")
43
+ default: ""
42
44
  },
43
45
  loadingTxt: {
44
46
  type: String,
45
- default: translate("loading")
47
+ default: ""
48
+ },
49
+ completeTxt: {
50
+ type: String,
51
+ default: ""
46
52
  },
47
- // completeTxt: {
48
- // type: String,
49
- // default: ''
50
- // },
51
53
  headHeight: {
52
54
  type: [String, Number],
53
55
  default: 50
@@ -59,11 +61,16 @@ const _sfc_main = create({
59
61
  duration: {
60
62
  type: [String, Number],
61
63
  default: 0.3
64
+ },
65
+ completeDuration: {
66
+ type: Number,
67
+ default: 0
62
68
  }
63
69
  },
64
70
  emits: ["change", "refresh", "update:modelValue"],
65
71
  components: { Loading },
66
72
  setup(props, { emit, slots }) {
73
+ const translate = useLocale(cN);
67
74
  const touch = useTouch();
68
75
  const scroller = ref();
69
76
  const scrollParent = useScrollParent(scroller);
@@ -72,20 +79,16 @@ const _sfc_main = create({
72
79
  distance: 0,
73
80
  status: "normal"
74
81
  });
75
- const classes = computed(() => {
76
- const prefixCls = componentName;
77
- return {
78
- [prefixCls]: true
79
- };
80
- });
81
82
  const getPullStatus = computed(() => {
82
83
  switch (state.status) {
83
84
  case "pulling":
84
- return !slots.pulling ? props.pullingTxt : "";
85
+ return !slots.pulling ? props.pullingTxt || translate("pulling") : "";
85
86
  case "loosing":
86
- return !slots.loosing ? props.loosingTxt : "";
87
+ return !slots.loosing ? props.loosingTxt || translate("loosing") : "";
87
88
  case "loading":
88
- return !slots.loading ? props.loadingTxt : "";
89
+ return !slots.loading ? props.loadingTxt || translate("loading") : "";
90
+ case "complete":
91
+ return !slots.complete ? props.completeTxt || translate("complete") : "";
89
92
  }
90
93
  return "";
91
94
  });
@@ -113,11 +116,13 @@ const _sfc_main = create({
113
116
  }
114
117
  return Math.round(moveDistance);
115
118
  };
116
- const setPullStatus = (distance, isLoading) => {
119
+ const setPullStatus = (distance, isLoading, isComplete) => {
117
120
  const pullDistance = +(props.pullDistance || props.headHeight);
118
121
  state.distance = distance;
119
122
  if (isLoading) {
120
123
  state.status = "loading";
124
+ } else if (isComplete) {
125
+ state.status = "complete";
121
126
  } else if (distance === 0) {
122
127
  state.status = "normal";
123
128
  } else if (distance < pullDistance) {
@@ -176,12 +181,16 @@ const _sfc_main = create({
176
181
  if (val) {
177
182
  setPullStatus(+props.headHeight, true);
178
183
  } else {
179
- setPullStatus(0);
184
+ if (props.completeDuration === 0)
185
+ setPullStatus(0);
186
+ setPullStatus(+props.headHeight, false, true);
187
+ setTimeout(() => {
188
+ setPullStatus(0);
189
+ }, props.completeDuration);
180
190
  }
181
191
  }
182
192
  );
183
193
  return __spreadProps(__spreadValues({
184
- classes,
185
194
  scroller
186
195
  }, toRefs(state)), {
187
196
  touchStart,
@@ -200,7 +209,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
200
209
  const _component_Loading = resolveComponent("Loading");
201
210
  return openBlock(), createElementBlock("div", {
202
211
  ref: "scroller",
203
- class: normalizeClass(_ctx.classes),
212
+ class: "nut-pull-refresh",
204
213
  onTouchstart: _cache[0] || (_cache[0] = (...args) => _ctx.touchStart && _ctx.touchStart(...args)),
205
214
  onTouchmove: _cache[1] || (_cache[1] = (...args) => _ctx.touchMove && _ctx.touchMove(...args)),
206
215
  onTouchend: _cache[2] || (_cache[2] = (...args) => _ctx.touchEnd && _ctx.touchEnd(...args))
@@ -220,11 +229,12 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
220
229
  createElementVNode("div", _hoisted_1, toDisplayString(_ctx.getPullStatus), 1),
221
230
  _ctx.status == "pulling" ? renderSlot(_ctx.$slots, "pulling", { key: 1 }) : createCommentVNode("", true),
222
231
  _ctx.status == "loosing" ? renderSlot(_ctx.$slots, "loosing", { key: 2 }) : createCommentVNode("", true),
223
- _ctx.status == "loading" ? renderSlot(_ctx.$slots, "loading", { key: 3 }) : createCommentVNode("", true)
232
+ _ctx.status == "loading" ? renderSlot(_ctx.$slots, "loading", { key: 3 }) : createCommentVNode("", true),
233
+ _ctx.status == "complete" ? renderSlot(_ctx.$slots, "complete", { key: 4 }) : createCommentVNode("", true)
224
234
  ], 4),
225
235
  renderSlot(_ctx.$slots, "default")
226
236
  ], 4)
227
- ], 34);
237
+ ], 544);
228
238
  }
229
239
  const index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
230
240
  export {
@@ -1,4 +1,2 @@
1
- import _PullRefresh from '../_es/PullRefresh.js';
2
- const treeshaking = (t) => t;
3
- const PullRefresh = treeshaking(_PullRefresh);
4
- export { PullRefresh };
1
+ import PullRefresh from './PullRefresh.js';
2
+ export { PullRefresh, PullRefresh as default };
@@ -0,0 +1,8 @@
1
+ const pxCheck = (value) => {
2
+ if (value !== void 0) {
3
+ return isNaN(Number(value)) ? String(value) : `${value}px`;
4
+ }
5
+ };
6
+ export {
7
+ pxCheck as p
8
+ };
@@ -0,0 +1,9 @@
1
+ import { _ as _sfc_main } from "../index.vue_vue_type_script_lang-336a1e7d.js";
2
+ import "vue";
3
+ import "../component-a8dfbf81.js";
4
+ import "../locale/lang";
5
+ import "@nutui/icons-vue";
6
+ import "../pxCheck-a27490eb.js";
7
+ export {
8
+ _sfc_main as default
9
+ };
@@ -1,4 +1,2 @@
1
- import _Radio from '../_es/Radio.js';
2
- const treeshaking = (t) => t;
3
- const Radio = treeshaking(_Radio);
4
- export { Radio };
1
+ import Radio from './Radio.js';
2
+ export { Radio, Radio as default };
@@ -0,0 +1,7 @@
1
+ import { _ as _sfc_main } from "../index.vue_vue_type_script_lang-e1fb856d.js";
2
+ import "vue";
3
+ import "../component-a8dfbf81.js";
4
+ import "../locale/lang";
5
+ export {
6
+ _sfc_main as default
7
+ };
@@ -1,4 +1,2 @@
1
- import _RadioGroup from '../_es/RadioGroup.js';
2
- const treeshaking = (t) => t;
3
- const RadioGroup = treeshaking(_RadioGroup);
4
- export { RadioGroup };
1
+ import RadioGroup from './RadioGroup.js';
2
+ export { RadioGroup, RadioGroup as default };
@@ -18,10 +18,10 @@ var __spreadValues = (a, b) => {
18
18
  };
19
19
  var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20
20
  import { ref, computed, toRefs, openBlock, createElementBlock, normalizeClass, toDisplayString, createCommentVNode, createElementVNode, normalizeStyle, withModifiers, Fragment, renderList, createTextVNode, renderSlot } from "vue";
21
- import { c as createComponent, i as isArray } from "./component-f86a70df.js";
22
- import { u as useTouch } from "./index-7a7385e4.js";
23
- import { u as useRect } from "./index-29892cda.js";
24
- import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
21
+ import { c as createComponent, a as isArray } from "../component-a8dfbf81.js";
22
+ import { u as useTouch } from "../index-7a7385e4.js";
23
+ import { u as useRect } from "../index-29892cda.js";
24
+ import { _ as _export_sfc } from "../_plugin-vue_export-helper-cc2b3d55.js";
25
25
  import "../locale/lang";
26
26
  const { componentName, create } = createComponent("range");
27
27
  const _sfc_main = create({
@@ -430,7 +430,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
430
430
  !_ctx.hiddenRange ? (openBlock(), createElementBlock("view", _hoisted_7, toDisplayString(+_ctx.max), 1)) : createCommentVNode("", true)
431
431
  ], 2);
432
432
  }
433
- const Range = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
433
+ const NutRange = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
434
434
  export {
435
- Range as default
435
+ NutRange as default
436
436
  };
@@ -1,4 +1,2 @@
1
- import _Range from '../_es/Range.js';
2
- const treeshaking = (t) => t;
3
- const Range = treeshaking(_Range);
4
- export { Range };
1
+ import Range from './Range.js';
2
+ export { Range, Range as default };
@@ -19,11 +19,11 @@ var __spreadValues = (a, b) => {
19
19
  var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20
20
  import { ref, openBlock, createElementBlock, Fragment, renderList, normalizeStyle, createElementVNode, createBlock, resolveDynamicComponent, normalizeClass, createCommentVNode } from "vue";
21
21
  import { StarFillN } from "@nutui/icons-vue";
22
- import { c as createComponent } from "./component-f86a70df.js";
23
- import { r as renderIcon } from "./renderIcon-3d0fd47c.js";
24
- import { p as pxCheck } from "./pxCheck-c6b9f6b7.js";
25
- import { u as useTouch } from "./index-7a7385e4.js";
26
- import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
22
+ import { c as createComponent } from "../component-a8dfbf81.js";
23
+ import { r as renderIcon } from "../renderIcon-3d0fd47c.js";
24
+ import { p as pxCheck } from "../pxCheck-a27490eb.js";
25
+ import { u as useTouch } from "../index-7a7385e4.js";
26
+ import { _ as _export_sfc } from "../_plugin-vue_export-helper-cc2b3d55.js";
27
27
  import "../locale/lang";
28
28
  const { create } = createComponent("rate");
29
29
  const _sfc_main = create({
@@ -152,7 +152,7 @@ const _hoisted_4 = {
152
152
  key: 1,
153
153
  class: "nut-rate-item__icon--half"
154
154
  };
155
- function render(_ctx, _cache, $props, $setup, $data, $options) {
155
+ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
156
156
  return openBlock(), createElementBlock("view", {
157
157
  class: "nut-rate",
158
158
  onTouchstart: _cache[0] || (_cache[0] = (...args) => _ctx.onTouchStart && _ctx.onTouchStart(...args)),
@@ -160,21 +160,35 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
160
160
  }, [
161
161
  (openBlock(true), createElementBlock(Fragment, null, renderList(Number(_ctx.count), (n) => {
162
162
  return openBlock(), createElementBlock("view", {
163
- class: "nut-rate-item",
163
+ id: "rateRefs-" + _ctx.refRandomId + n,
164
164
  key: n,
165
165
  ref_for: true,
166
166
  ref: "rateRefs",
167
- id: "rateRefs-" + _ctx.refRandomId + n,
167
+ class: "nut-rate-item",
168
168
  style: normalizeStyle(n < Number(_ctx.count) ? { marginRight: _ctx.pxCheck(_ctx.spacing) } : {})
169
169
  }, [
170
170
  createElementVNode("view", _hoisted_2, [
171
- (openBlock(), createBlock(resolveDynamicComponent(_ctx.renderIcon(_ctx.customIcon, { width: _ctx.size, height: _ctx.size, size: _ctx.size, color: n <= _ctx.modelValue ? _ctx.activeColor : _ctx.voidColor })), {
172
- class: normalizeClass(["nut-rate-item__icon", { "nut-rate-item__icon--disabled": _ctx.disabled || n > _ctx.modelValue }]),
171
+ (openBlock(), createBlock(resolveDynamicComponent(
172
+ _ctx.renderIcon(_ctx.customIcon, {
173
+ width: _ctx.size,
174
+ height: _ctx.size,
175
+ size: _ctx.size,
176
+ color: n <= Number(_ctx.modelValue) ? _ctx.activeColor : _ctx.voidColor
177
+ })
178
+ ), {
179
+ class: normalizeClass(["nut-rate-item__icon", { "nut-rate-item__icon--disabled": _ctx.disabled || n > Number(_ctx.modelValue) }]),
173
180
  onClick: ($event) => _ctx.onClick(1, n)
174
181
  }, null, 8, ["class", "onClick"]))
175
182
  ]),
176
183
  _ctx.allowHalf && Number(_ctx.modelValue) + 1 > n ? (openBlock(), createElementBlock("view", _hoisted_3, [
177
- (openBlock(), createBlock(resolveDynamicComponent(_ctx.renderIcon(_ctx.customIcon, { width: _ctx.size, height: _ctx.size, size: _ctx.size, color: n <= Number(_ctx.modelValue) + 1 ? _ctx.activeColor : _ctx.voidColor })), {
184
+ (openBlock(), createBlock(resolveDynamicComponent(
185
+ _ctx.renderIcon(_ctx.customIcon, {
186
+ width: _ctx.size,
187
+ height: _ctx.size,
188
+ size: _ctx.size,
189
+ color: n <= Number(_ctx.modelValue) + 1 ? _ctx.activeColor : _ctx.voidColor
190
+ })
191
+ ), {
178
192
  class: "nut-rate-item__icon",
179
193
  onClick: ($event) => _ctx.onClick(2, n)
180
194
  }, null, 8, ["onClick"]))
@@ -188,7 +202,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
188
202
  }), 128))
189
203
  ], 32);
190
204
  }
191
- const Rate = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", render]]);
205
+ const NutRate = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
192
206
  export {
193
- Rate as default
207
+ NutRate as default
194
208
  };
@@ -1,4 +1,2 @@
1
- import _Rate from '../_es/Rate.js';
2
- const treeshaking = (t) => t;
3
- const Rate = treeshaking(_Rate);
4
- export { Rate };
1
+ import Rate from './Rate.js';
2
+ export { Rate, Rate as default };
@@ -1,6 +1,6 @@
1
1
  import { provide, computed, openBlock, createElementBlock, normalizeClass, renderSlot } from "vue";
2
- import { c as createComponent } from "./component-f86a70df.js";
3
- import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
2
+ import { c as createComponent } from "../component-a8dfbf81.js";
3
+ import { _ as _export_sfc } from "../_plugin-vue_export-helper-cc2b3d55.js";
4
4
  import "../locale/lang";
5
5
  const { componentName, create } = createComponent("row");
6
6
  const _sfc_main = create({
@@ -1,4 +1,2 @@
1
- import _Row from '../_es/Row.js';
2
- const treeshaking = (t) => t;
3
- const Row = treeshaking(_Row);
4
- export { Row };
1
+ import Row from './Row.js';
2
+ export { Row, Row as default };
@@ -18,12 +18,14 @@ var __spreadValues = (a, b) => {
18
18
  };
19
19
  var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20
20
  import { reactive, computed, ref, onMounted, toRefs, openBlock, createElementBlock, normalizeClass, normalizeStyle, toDisplayString, createCommentVNode, renderSlot, createElementVNode, withModifiers, withDirectives, createBlock, resolveDynamicComponent, vShow } from "vue";
21
- import { c as createComponent } from "./component-f86a70df.js";
22
- import { r as renderIcon } from "./renderIcon-3d0fd47c.js";
21
+ import { c as createComponent } from "../component-a8dfbf81.js";
22
+ import { r as renderIcon } from "../renderIcon-3d0fd47c.js";
23
23
  import { CircleClose } from "@nutui/icons-vue";
24
- import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
24
+ import { u as useLocale } from "../index-99fdd331.js";
25
+ import { _ as _export_sfc } from "../_plugin-vue_export-helper-cc2b3d55.js";
25
26
  import "../locale/lang";
26
- const { create, translate } = createComponent("searchbar");
27
+ const { create } = createComponent("searchbar");
28
+ const cN = "NutSearchbar";
27
29
  const _sfc_main = create({
28
30
  props: {
29
31
  modelValue: {
@@ -103,6 +105,7 @@ const _sfc_main = create({
103
105
  "clickRightIcon"
104
106
  ],
105
107
  setup(props, { emit }) {
108
+ const translate = useLocale(cN);
106
109
  const state = reactive({
107
110
  active: false
108
111
  });
@@ -1,4 +1,2 @@
1
- import _Searchbar from '../_es/Searchbar.js';
2
- const treeshaking = (t) => t;
3
- const Searchbar = treeshaking(_Searchbar);
4
- export { Searchbar };
1
+ import Searchbar from './Searchbar.js';
2
+ export { Searchbar, Searchbar as default };
@@ -1,14 +1,16 @@
1
1
  import { ref, computed, watch, resolveComponent, openBlock, createElementBlock, createVNode, withCtx, createElementVNode, toDisplayString, Fragment, renderList, createCommentVNode } from "vue";
2
- import { c as createComponent } from "./component-f86a70df.js";
3
- import { P as Popup } from "./index-5a1e6d22.js";
2
+ import { c as createComponent } from "../component-a8dfbf81.js";
3
+ import { N as NutPopup } from "../index-ae743c4f.js";
4
4
  import { Tips } from "@nutui/icons-vue";
5
- import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
5
+ import { u as useLocale } from "../index-99fdd331.js";
6
+ import { _ as _export_sfc } from "../_plugin-vue_export-helper-cc2b3d55.js";
6
7
  import "../locale/lang";
7
- import "./Overlay.js";
8
- const { create, translate } = createComponent("short-password");
8
+ import "../overlay/Overlay.js";
9
+ const { create } = createComponent("short-password");
10
+ const cN = "NutShortPassword";
9
11
  const _sfc_main = create({
10
12
  components: {
11
- [Popup.name]: Popup,
13
+ NutPopup,
12
14
  Tips
13
15
  },
14
16
  props: {
@@ -52,6 +54,7 @@ const _sfc_main = create({
52
54
  },
53
55
  emits: ["update:modelValue", "update:visible", "complete", "tips", "close", "focus"],
54
56
  setup(props, { emit }) {
57
+ const translate = useLocale(cN);
55
58
  const realInput = ref(props.modelValue);
56
59
  const comLen = computed(() => range(Number(props.length)));
57
60
  const show = ref(props.visible);
@@ -1,4 +1,2 @@
1
- import _ShortPassword from '../_es/ShortPassword.js';
2
- const treeshaking = (t) => t;
3
- const ShortPassword = treeshaking(_ShortPassword);
4
- export { ShortPassword };
1
+ import ShortPassword from './ShortPassword.js';
2
+ export { ShortPassword, ShortPassword as default };
@@ -18,8 +18,8 @@ var __spreadValues = (a, b) => {
18
18
  };
19
19
  var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20
20
  import { ref, reactive, onMounted, toRefs, openBlock, createElementBlock, createElementVNode, renderSlot } from "vue";
21
- import { c as createComponent } from "./component-f86a70df.js";
22
- import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
21
+ import { c as createComponent } from "../component-a8dfbf81.js";
22
+ import { _ as _export_sfc } from "../_plugin-vue_export-helper-cc2b3d55.js";
23
23
  import "../locale/lang";
24
24
  const { create } = createComponent("side-navbar");
25
25
  const _sfc_main = create({
@@ -1,4 +1,2 @@
1
- import _SideNavbar from '../_es/SideNavbar.js';
2
- const treeshaking = (t) => t;
3
- const SideNavbar = treeshaking(_SideNavbar);
4
- export { SideNavbar };
1
+ import SideNavbar from './SideNavbar.js';
2
+ export { SideNavbar, SideNavbar as default };
@@ -1,6 +1,6 @@
1
- import { c as createComponent } from "./component-f86a70df.js";
1
+ import { c as createComponent } from "../component-a8dfbf81.js";
2
2
  import { openBlock, createElementBlock, withModifiers, createElementVNode, toDisplayString } from "vue";
3
- import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
3
+ import { _ as _export_sfc } from "../_plugin-vue_export-helper-cc2b3d55.js";
4
4
  import "../locale/lang";
5
5
  const { create } = createComponent("side-navbar-item");
6
6
  const _sfc_main = create({
@@ -1,4 +1,2 @@
1
- import _SideNavbarItem from '../_es/SideNavbarItem.js';
2
- const treeshaking = (t) => t;
3
- const SideNavbarItem = treeshaking(_SideNavbarItem);
4
- export { SideNavbarItem };
1
+ import SideNavbarItem from './SideNavbarItem.js';
2
+ export { SideNavbarItem, SideNavbarItem as default };
@@ -18,12 +18,14 @@ var __spreadValues = (a, b) => {
18
18
  };
19
19
  var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20
20
  import { ref, computed, reactive, onMounted, toRefs, resolveComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, withDirectives, vShow, toDisplayString, createCommentVNode, createVNode, withCtx, createTextVNode } from "vue";
21
- import { c as createComponent } from "./component-f86a70df.js";
22
- import Button from "./Button.js";
23
- import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
21
+ import { c as createComponent } from "../component-a8dfbf81.js";
22
+ import NutButton from "../button/Button.js";
23
+ import { u as useLocale } from "../index-99fdd331.js";
24
+ import { _ as _export_sfc } from "../_plugin-vue_export-helper-cc2b3d55.js";
24
25
  import "../locale/lang";
25
26
  import "@nutui/icons-vue";
26
- const { componentName, create, translate } = createComponent("signature");
27
+ const { create } = createComponent("signature");
28
+ const cN = "NutSignature";
27
29
  const _sfc_main = create({
28
30
  props: {
29
31
  customClass: {
@@ -56,14 +58,15 @@ const _sfc_main = create({
56
58
  }
57
59
  },
58
60
  components: {
59
- [Button.name]: Button
61
+ NutButton
60
62
  },
61
63
  emits: ["start", "end", "signing", "confirm", "clear"],
62
64
  setup(props, { emit }) {
65
+ const translate = useLocale(cN);
63
66
  const canvas = ref(null);
64
67
  const wrap = ref(null);
65
68
  const classes = computed(() => {
66
- const prefixCls = componentName;
69
+ const prefixCls = "nut-signature";
67
70
  return {
68
71
  [prefixCls]: true,
69
72
  [`${props.customClass}`]: props.customClass
@@ -1,4 +1,2 @@
1
- import _Signature from '../_es/Signature.js';
2
- const treeshaking = (t) => t;
3
- const Signature = treeshaking(_Signature);
4
- export { Signature };
1
+ import Signature from './Signature.js';
2
+ export { Signature, Signature as default };
@@ -1,12 +1,12 @@
1
- import { c as createComponent } from "./component-f86a70df.js";
1
+ import { c as createComponent } from "../component-a8dfbf81.js";
2
2
  import { toRefs, computed, resolveComponent, openBlock, createElementBlock, renderSlot, createCommentVNode, createElementVNode, createBlock, normalizeClass, normalizeStyle, Fragment, renderList } from "vue";
3
- import Avatar from "./Avatar.js";
4
- import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
3
+ import NutAvatar from "../avatar/Avatar.js";
4
+ import { _ as _export_sfc } from "../_plugin-vue_export-helper-cc2b3d55.js";
5
5
  import "../locale/lang";
6
6
  const { create } = createComponent("skeleton");
7
7
  const _sfc_main = create({
8
8
  components: {
9
- [Avatar.name]: Avatar
9
+ NutAvatar
10
10
  },
11
11
  props: {
12
12
  //每行宽度
@@ -1,4 +1,2 @@
1
- import _Skeleton from '../_es/Skeleton.js';
2
- const treeshaking = (t) => t;
3
- const Skeleton = treeshaking(_Skeleton);
4
- export { Skeleton };
1
+ import Skeleton from './Skeleton.js';
2
+ export { Skeleton, Skeleton as default };
@@ -1,14 +1,16 @@
1
1
  import { resolveComponent, openBlock, createElementBlock, createElementVNode, renderSlot, createBlock, createCommentVNode, toDisplayString, ref, watch, onMounted, Fragment, renderList, normalizeClass, createVNode, withCtx, createSlots } from "vue";
2
- import Price from "./Price.js";
3
- import { c as createComponent, T as TypeOfFun } from "./component-f86a70df.js";
4
- import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
5
- import InputNumber from "./InputNumber.js";
6
- import { P as Popup } from "./index-5a1e6d22.js";
2
+ import NutPrice from "../price/Price.js";
3
+ import { c as createComponent, T as TypeOfFun } from "../component-a8dfbf81.js";
4
+ import { u as useLocale } from "../index-99fdd331.js";
5
+ import { _ as _export_sfc } from "../_plugin-vue_export-helper-cc2b3d55.js";
6
+ import NutInputNumber from "../inputnumber/InputNumber.js";
7
+ import { N as NutPopup } from "../index-ae743c4f.js";
7
8
  import "../locale/lang";
8
- import "./pxCheck-c6b9f6b7.js";
9
+ import "../pxCheck-a27490eb.js";
9
10
  import "@nutui/icons-vue";
10
- import "./Overlay.js";
11
- const { create: create$4, translate: translate$1 } = createComponent("sku-header");
11
+ import "../overlay/Overlay.js";
12
+ const { create: create$4 } = createComponent("sku-header");
13
+ const cN$1 = "NutSkuHeader";
12
14
  const _sfc_main$4 = create$4({
13
15
  props: {
14
16
  goods: {
@@ -16,15 +18,15 @@ const _sfc_main$4 = create$4({
16
18
  default: {}
17
19
  }
18
20
  },
19
- emits: [],
20
21
  components: {
21
- [Price.name]: Price
22
+ NutPrice
22
23
  },
23
24
  setup(props, { slots }) {
25
+ const translate = useLocale(cN$1);
24
26
  const getSlots = (name) => slots[name];
25
27
  return {
26
28
  getSlots,
27
- translate: translate$1
29
+ translate
28
30
  };
29
31
  }
30
32
  });
@@ -146,7 +148,7 @@ const _sfc_main$2 = create$2({
146
148
  },
147
149
  emits: ["click", "changeSku", "changeStepper", "clickBtnOptions", "overLimit", "reduce", "add"],
148
150
  components: {
149
- [InputNumber.name]: InputNumber
151
+ NutInputNumber
150
152
  },
151
153
  setup(props, { emit }) {
152
154
  const goodsCount = ref(props.stepperMin);
@@ -291,7 +293,8 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
291
293
  ])) : createCommentVNode("", true);
292
294
  }
293
295
  const SkuOperate = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render$1]]);
294
- const { create, translate } = createComponent("sku");
296
+ const { create } = createComponent("sku");
297
+ const cN = "NutSku";
295
298
  const _sfc_main = create({
296
299
  props: {
297
300
  visible: {
@@ -372,9 +375,10 @@ const _sfc_main = create({
372
375
  SkuSelect,
373
376
  SkuStepper,
374
377
  SkuOperate,
375
- [Popup.name]: Popup
378
+ NutPopup
376
379
  },
377
380
  setup(props, { emit, slots }) {
381
+ const translate = useLocale(cN);
378
382
  const showPopup = ref(props.visible);
379
383
  const goodsCount = ref(props.stepperMin);
380
384
  watch(
@@ -1,4 +1,2 @@
1
- import _Sku from '../_es/Sku.js';
2
- const treeshaking = (t) => t;
3
- const Sku = treeshaking(_Sku);
4
- export { Sku };
1
+ import Sku from './Sku.js';
2
+ export { Sku, Sku as default };
@@ -1,5 +1,5 @@
1
1
  import { h, Fragment, Comment, Text } from "vue";
2
- import { c as createComponent } from "./component-f86a70df.js";
2
+ import { c as createComponent } from "../component-a8dfbf81.js";
3
3
  import "../locale/lang";
4
4
  const { create, componentName } = createComponent("space");
5
5
  const _sfc_main = create({
@@ -1,4 +1,2 @@
1
- import _Space from '../_es/Space.js';
2
- const treeshaking = (t) => t;
3
- const Space = treeshaking(_Space);
4
- export { Space };
1
+ import Space from './Space.js';
2
+ export { Space, Space as default };