@nutui/nutui 4.2.0 → 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 (327) hide show
  1. package/CHANGELOG.md +26 -0
  2. package/dist/nutui.es.js +1 -1
  3. package/dist/nutui.js +6839 -6866
  4. package/dist/nutui.umd.js +1 -1
  5. package/dist/packages/{_es/Interceptor-006f85b3.js → Interceptor-a7d38af1.js} +1 -1
  6. package/dist/packages/{_es → actionsheet}/ActionSheet.js +27 -37
  7. package/dist/packages/actionsheet/index.mjs +2 -4
  8. package/dist/packages/{_es → address}/Address.js +15 -10
  9. package/dist/packages/address/index.css +1 -1
  10. package/dist/packages/address/index.mjs +2 -4
  11. package/dist/packages/{_es → addresslist}/AddressList.js +23 -27
  12. package/dist/packages/addresslist/index.mjs +2 -4
  13. package/dist/packages/{_es → animate}/Animate.js +2 -2
  14. package/dist/packages/animate/index.mjs +2 -4
  15. package/dist/packages/{_es → audio}/Audio.js +6 -6
  16. package/dist/packages/audio/index.mjs +2 -4
  17. package/dist/packages/{_es → audiooperate}/AudioOperate.js +8 -5
  18. package/dist/packages/audiooperate/index.mjs +2 -4
  19. package/dist/packages/{_es → avatar}/Avatar.js +4 -4
  20. package/dist/packages/avatar/index.mjs +2 -4
  21. package/dist/packages/{_es → avatarcropper}/AvatarCropper.js +6 -6
  22. package/dist/packages/avatarcropper/index.mjs +2 -4
  23. package/dist/packages/{_es → avatargroup}/AvatarGroup.js +4 -4
  24. package/dist/packages/avatargroup/index.mjs +2 -4
  25. package/dist/packages/{_es → backtop}/Backtop.js +3 -3
  26. package/dist/packages/backtop/index.mjs +2 -4
  27. package/dist/packages/{_es → badge}/Badge.js +4 -4
  28. package/dist/packages/badge/index.mjs +2 -4
  29. package/dist/packages/{_es → barrage}/Barrage.js +11 -16
  30. package/dist/packages/barrage/index.mjs +2 -4
  31. package/dist/packages/{_es → button}/Button.js +4 -4
  32. package/dist/packages/button/index.mjs +2 -4
  33. package/dist/packages/{_es → calendar}/Calendar.js +16 -12
  34. package/dist/packages/calendar/index.mjs +2 -4
  35. package/dist/packages/calendaritem/CalendarItem.js +11 -0
  36. package/dist/packages/calendaritem/index.mjs +2 -4
  37. package/dist/packages/{_es → card}/Card.js +6 -6
  38. package/dist/packages/card/index.mjs +2 -4
  39. package/dist/packages/{_es → cascader}/Cascader.js +23 -20
  40. package/dist/packages/cascader/index.mjs +2 -4
  41. package/dist/packages/{_es → category}/Category.js +2 -2
  42. package/dist/packages/category/index.mjs +2 -4
  43. package/dist/packages/{_es → categorypane}/CategoryPane.js +2 -2
  44. package/dist/packages/categorypane/index.mjs +2 -4
  45. package/dist/packages/{_es → cell}/Cell.js +15 -9
  46. package/dist/packages/cell/index.mjs +2 -4
  47. package/dist/packages/{_es → cellgroup}/CellGroup.js +4 -4
  48. package/dist/packages/cellgroup/index.mjs +2 -4
  49. package/dist/packages/{_es → checkbox}/Checkbox.js +2 -2
  50. package/dist/packages/checkbox/index.css +1 -1
  51. package/dist/packages/checkbox/index.mjs +2 -4
  52. package/dist/packages/checkbox/index.scss +1 -0
  53. package/dist/packages/{_es → checkboxgroup}/CheckboxGroup.js +2 -2
  54. package/dist/packages/checkboxgroup/index.mjs +2 -4
  55. package/dist/packages/{_es → circleprogress}/CircleProgress.js +2 -2
  56. package/dist/packages/circleprogress/index.mjs +2 -4
  57. package/dist/packages/{_es → col}/Col.js +2 -2
  58. package/dist/packages/col/index.mjs +2 -4
  59. package/dist/packages/{_es → collapse}/Collapse.js +11 -16
  60. package/dist/packages/collapse/index.mjs +2 -4
  61. package/dist/packages/{_es → collapseitem}/CollapseItem.js +3 -3
  62. package/dist/packages/collapseitem/index.mjs +2 -4
  63. package/dist/packages/{_es → comment}/Comment.js +34 -34
  64. package/dist/packages/comment/index.mjs +2 -4
  65. package/dist/packages/{_es/common-728db750.js → common-3db007cd.js} +2 -2
  66. package/dist/packages/{_es/component-f86a70df.js → component-a8dfbf81.js} +7 -7
  67. package/dist/packages/{_es → configprovider}/ConfigProvider.js +1 -1
  68. package/dist/packages/configprovider/index.mjs +2 -4
  69. package/dist/packages/{_es → countdown}/Countdown.js +12 -17
  70. package/dist/packages/countdown/index.mjs +2 -4
  71. package/dist/packages/{_es → countup}/Countup.js +2 -2
  72. package/dist/packages/countup/index.mjs +2 -4
  73. package/dist/packages/{_es → datepicker}/DatePicker.js +14 -13
  74. package/dist/packages/datepicker/index.mjs +2 -4
  75. package/dist/packages/{_es → dialog}/Dialog.js +26 -21
  76. package/dist/packages/dialog/index.mjs +3 -5
  77. package/dist/packages/{_es → divider}/Divider.js +2 -2
  78. package/dist/packages/divider/index.mjs +2 -4
  79. package/dist/packages/{_es → drag}/Drag.js +7 -14
  80. package/dist/packages/drag/index.mjs +2 -4
  81. package/dist/packages/{_es → ecard}/Ecard.js +9 -6
  82. package/dist/packages/ecard/index.mjs +2 -4
  83. package/dist/packages/{_es → elevator}/Elevator.js +34 -51
  84. package/dist/packages/elevator/index.css +1 -1
  85. package/dist/packages/elevator/index.mjs +2 -4
  86. package/dist/packages/elevator/index.scss +0 -13
  87. package/dist/packages/{_es → ellipsis}/Ellipsis.js +7 -13
  88. package/dist/packages/ellipsis/index.mjs +2 -4
  89. package/dist/packages/{_es → empty}/Empty.js +7 -4
  90. package/dist/packages/empty/index.mjs +2 -4
  91. package/dist/packages/{_es → fixednav}/FixedNav.js +13 -10
  92. package/dist/packages/fixednav/index.mjs +2 -4
  93. package/dist/packages/{_es → form}/Form.js +7 -7
  94. package/dist/packages/form/index.mjs +2 -4
  95. package/dist/packages/{_es → formitem}/FormItem.js +23 -12
  96. package/dist/packages/formitem/index.mjs +2 -4
  97. package/dist/packages/{_es → grid}/Grid.js +3 -3
  98. package/dist/packages/grid/index.mjs +2 -4
  99. package/dist/packages/{_es → griditem}/GridItem.js +5 -5
  100. package/dist/packages/griditem/index.mjs +2 -4
  101. package/dist/packages/{_es → image}/Image.js +3 -3
  102. package/dist/packages/image/index.mjs +2 -4
  103. package/dist/packages/{_es → imagepreview}/ImagePreview.js +19 -18
  104. package/dist/packages/imagepreview/index.css +1 -1
  105. package/dist/packages/imagepreview/index.mjs +3 -5
  106. package/dist/packages/{_es/index-b53aec83.js → index-47708e50.js} +10 -6
  107. package/dist/packages/index-99fdd331.js +17 -0
  108. package/dist/packages/{_es/index-5a1e6d22.js → index-ae743c4f.js} +5 -5
  109. package/dist/packages/{_es/index.vue_vue_type_script_lang-0ccf787e.js → index.vue_vue_type_script_lang-336a1e7d.js} +2 -2
  110. package/dist/packages/{_es/index.vue_vue_type_script_lang-1e118ab6.js → index.vue_vue_type_script_lang-e1fb856d.js} +1 -1
  111. package/dist/packages/{_es → indicator}/Indicator.js +2 -2
  112. package/dist/packages/indicator/index.mjs +2 -4
  113. package/dist/packages/{_es → infiniteloading}/InfiniteLoading.js +25 -28
  114. package/dist/packages/infiniteloading/index.mjs +2 -4
  115. package/dist/packages/{_es → input}/Input.js +17 -9
  116. package/dist/packages/input/index.mjs +2 -4
  117. package/dist/packages/{_es → inputnumber}/InputNumber.js +5 -5
  118. package/dist/packages/inputnumber/index.mjs +2 -4
  119. package/dist/packages/{_es → invoice}/Invoice.js +16 -16
  120. package/dist/packages/invoice/index.mjs +2 -4
  121. package/dist/packages/{_es → layout}/Layout.js +1 -1
  122. package/dist/packages/layout/index.mjs +2 -4
  123. package/dist/packages/{_es → list}/List.js +7 -14
  124. package/dist/packages/list/index.mjs +2 -4
  125. package/dist/packages/locale/lang/baseLang.d.ts +1 -0
  126. package/dist/packages/locale/lang/en-US.d.ts +1 -0
  127. package/dist/packages/locale/lang/en-US.js +2 -1
  128. package/dist/packages/locale/lang/id-ID.d.ts +1 -0
  129. package/dist/packages/locale/lang/id-ID.js +2 -1
  130. package/dist/packages/locale/lang/zh-CN.d.ts +1 -0
  131. package/dist/packages/locale/lang/zh-CN.js +2 -1
  132. package/dist/packages/locale/lang/zh-TW.d.ts +1 -0
  133. package/dist/packages/locale/lang/zh-TW.js +2 -1
  134. package/dist/packages/{_es → menu}/Menu.js +3 -3
  135. package/dist/packages/menu/index.mjs +2 -4
  136. package/dist/packages/{_es → menuitem}/MenuItem.js +5 -5
  137. package/dist/packages/menuitem/index.mjs +2 -4
  138. package/dist/packages/{_es/mountComponent-053caf41.js → mountComponent-614f1309.js} +1 -1
  139. package/dist/packages/{_es → navbar}/Navbar.js +2 -2
  140. package/dist/packages/navbar/index.mjs +2 -4
  141. package/dist/packages/{_es → noticebar}/Noticebar.js +20 -30
  142. package/dist/packages/noticebar/index.mjs +2 -4
  143. package/dist/packages/{_es → notify}/Notify.js +5 -5
  144. package/dist/packages/notify/index.mjs +3 -5
  145. package/dist/packages/{_es → numberkeyboard}/NumberKeyboard.js +9 -6
  146. package/dist/packages/numberkeyboard/index.mjs +2 -4
  147. package/dist/packages/{_es → overlay}/Overlay.js +4 -4
  148. package/dist/packages/overlay/index.mjs +2 -4
  149. package/dist/packages/{_es → pagination}/Pagination.js +6 -3
  150. package/dist/packages/pagination/index.mjs +2 -4
  151. package/dist/packages/{_es → picker}/Picker.js +22 -20
  152. package/dist/packages/picker/index.mjs +2 -4
  153. package/dist/packages/{_es → popover}/Popover.js +9 -9
  154. package/dist/packages/popover/index.mjs +2 -4
  155. package/dist/packages/popup/Popup.js +10 -0
  156. package/dist/packages/popup/index.mjs +2 -4
  157. package/dist/packages/{_es → price}/Price.js +4 -4
  158. package/dist/packages/price/index.mjs +2 -4
  159. package/dist/packages/{_es → progress}/Progress.js +4 -4
  160. package/dist/packages/progress/index.mjs +2 -4
  161. package/dist/packages/{_es → pullrefresh}/PullRefresh.js +39 -29
  162. package/dist/packages/pullrefresh/index.mjs +2 -4
  163. package/dist/packages/pxCheck-a27490eb.js +8 -0
  164. package/dist/packages/radio/Radio.js +9 -0
  165. package/dist/packages/radio/index.mjs +2 -4
  166. package/dist/packages/radiogroup/RadioGroup.js +7 -0
  167. package/dist/packages/radiogroup/index.mjs +2 -4
  168. package/dist/packages/{_es → range}/Range.js +6 -6
  169. package/dist/packages/range/index.mjs +2 -4
  170. package/dist/packages/{_es → rate}/Rate.js +32 -26
  171. package/dist/packages/rate/index.mjs +2 -4
  172. package/dist/packages/{_es → row}/Row.js +2 -2
  173. package/dist/packages/row/index.mjs +2 -4
  174. package/dist/packages/{_es → searchbar}/Searchbar.js +7 -4
  175. package/dist/packages/searchbar/index.mjs +2 -4
  176. package/dist/packages/{_es → shortpassword}/ShortPassword.js +9 -6
  177. package/dist/packages/shortpassword/index.mjs +2 -4
  178. package/dist/packages/{_es → sidenavbar}/SideNavbar.js +12 -20
  179. package/dist/packages/sidenavbar/index.mjs +2 -4
  180. package/dist/packages/{_es → sidenavbaritem}/SideNavbarItem.js +8 -15
  181. package/dist/packages/sidenavbaritem/index.mjs +2 -4
  182. package/dist/packages/{_es → signature}/Signature.js +9 -6
  183. package/dist/packages/signature/index.mjs +2 -4
  184. package/dist/packages/{_es → skeleton}/Skeleton.js +4 -4
  185. package/dist/packages/skeleton/index.mjs +2 -4
  186. package/dist/packages/{_es → sku}/Sku.js +32 -42
  187. package/dist/packages/sku/index.mjs +2 -4
  188. package/dist/packages/{_es → space}/Space.js +1 -1
  189. package/dist/packages/space/index.mjs +2 -4
  190. package/dist/packages/{_es → step}/Step.js +2 -2
  191. package/dist/packages/step/index.mjs +2 -4
  192. package/dist/packages/{_es → steps}/Steps.js +1 -1
  193. package/dist/packages/steps/index.mjs +2 -4
  194. package/dist/packages/{_es → sticky}/Sticky.js +8 -7
  195. package/dist/packages/sticky/index.mjs +2 -4
  196. package/dist/packages/{_es → subsidenavbar}/SubSideNavbar.js +8 -15
  197. package/dist/packages/subsidenavbar/index.mjs +2 -4
  198. package/dist/packages/{_es → swipe}/Swipe.js +5 -5
  199. package/dist/packages/swipe/index.mjs +2 -4
  200. package/dist/packages/{_es → swipegroup}/SwipeGroup.js +2 -2
  201. package/dist/packages/swipegroup/index.mjs +2 -4
  202. package/dist/packages/{_es → swiper}/Swiper.js +18 -17
  203. package/dist/packages/swiper/index.css +1 -1
  204. package/dist/packages/swiper/index.mjs +2 -4
  205. package/dist/packages/swiper/index.scss +0 -1
  206. package/dist/packages/{_es → swiperitem}/SwiperItem.js +10 -17
  207. package/dist/packages/swiperitem/index.mjs +2 -4
  208. package/dist/packages/{_es → switch}/Switch.js +2 -2
  209. package/dist/packages/switch/index.mjs +2 -4
  210. package/dist/packages/{_es → tabbar}/Tabbar.js +2 -2
  211. package/dist/packages/tabbar/index.mjs +2 -4
  212. package/dist/packages/{_es → tabbaritem}/TabbarItem.js +6 -6
  213. package/dist/packages/tabbaritem/index.mjs +2 -4
  214. package/dist/packages/{_es → table}/Table.js +30 -39
  215. package/dist/packages/table/index.mjs +2 -4
  216. package/dist/packages/{_es → tabpane}/TabPane.js +4 -4
  217. package/dist/packages/tabpane/index.mjs +2 -4
  218. package/dist/packages/{_es → tabs}/Tabs.js +11 -11
  219. package/dist/packages/tabs/index.mjs +2 -4
  220. package/dist/packages/{_es → tag}/Tag.js +4 -4
  221. package/dist/packages/tag/index.mjs +2 -4
  222. package/dist/packages/{_es → textarea}/Textarea.js +7 -4
  223. package/dist/packages/textarea/index.mjs +2 -4
  224. package/dist/packages/{_es → timedetail}/TimeDetail.js +17 -28
  225. package/dist/packages/timedetail/index.mjs +2 -4
  226. package/dist/packages/{_es → timepannel}/TimePannel.js +2 -2
  227. package/dist/packages/timepannel/index.mjs +2 -4
  228. package/dist/packages/{_es → timeselect}/TimeSelect.js +28 -34
  229. package/dist/packages/timeselect/index.mjs +2 -4
  230. package/dist/packages/{_es → toast}/Toast.js +4 -4
  231. package/dist/packages/toast/index.mjs +3 -5
  232. package/dist/packages/{_es → tour}/Tour.js +8 -9
  233. package/dist/packages/tour/index.mjs +2 -4
  234. package/dist/packages/{_es → trendarrow}/TrendArrow.js +8 -15
  235. package/dist/packages/trendarrow/index.mjs +2 -4
  236. package/dist/packages/{_es → uploader}/Uploader.js +10 -8
  237. package/dist/packages/uploader/index.mjs +2 -4
  238. package/dist/packages/{_es → video}/Video.js +8 -5
  239. package/dist/packages/video/index.mjs +2 -4
  240. package/dist/packages/{_es → watermark}/Watermark.js +2 -2
  241. package/dist/packages/watermark/index.mjs +2 -4
  242. package/dist/smartips/web-types.json +38 -2
  243. package/dist/style.css +1 -1
  244. package/dist/types/__VUE/actionsheet/index.vue.d.ts +12 -20
  245. package/dist/types/__VUE/address/index.vue.d.ts +20 -19
  246. package/dist/types/__VUE/address/type.d.ts +3 -2
  247. package/dist/types/__VUE/addresslist/components/ItemContents.vue.d.ts +1 -1
  248. package/dist/types/__VUE/addresslist/index.vue.d.ts +1 -4
  249. package/dist/types/__VUE/audiooperate/index.vue.d.ts +1 -1
  250. package/dist/types/__VUE/barrage/index.vue.d.ts +0 -3
  251. package/dist/types/__VUE/calendar/index.vue.d.ts +4 -2
  252. package/dist/types/__VUE/calendaritem/index.vue.d.ts +4 -1
  253. package/dist/types/__VUE/cascader/cascader-item.vue.d.ts +1 -1
  254. package/dist/types/__VUE/cell/index.vue.d.ts +3 -1
  255. package/dist/types/__VUE/collapse/index.vue.d.ts +0 -3
  256. package/dist/types/__VUE/comment/components/CmtBottom.vue.d.ts +1 -1
  257. package/dist/types/__VUE/comment/components/CmtImages.vue.d.ts +2 -2
  258. package/dist/types/__VUE/comment/index.vue.d.ts +2 -5
  259. package/dist/types/__VUE/countdown/index.vue.d.ts +1 -4
  260. package/dist/types/__VUE/dialog/index.d.ts +10 -8
  261. package/dist/types/__VUE/dialog/index.vue.d.ts +10 -4
  262. package/dist/types/__VUE/drag/index.vue.d.ts +0 -3
  263. package/dist/types/__VUE/ecard/index.vue.d.ts +1 -1
  264. package/dist/types/__VUE/elevator/index.vue.d.ts +0 -6
  265. package/dist/types/__VUE/ellipsis/index.vue.d.ts +0 -3
  266. package/dist/types/__VUE/empty/index.vue.d.ts +3 -3
  267. package/dist/types/__VUE/fixednav/index.vue.d.ts +2 -2
  268. package/dist/types/__VUE/formitem/index.vue.d.ts +1 -0
  269. package/dist/types/__VUE/formitem/types.d.ts +3 -3
  270. package/dist/types/__VUE/imagepreview/index.d.ts +1 -0
  271. package/dist/types/__VUE/infiniteloading/index.vue.d.ts +1 -4
  272. package/dist/types/__VUE/input/index.vue.d.ts +7 -4
  273. package/dist/types/__VUE/input/type.d.ts +5 -0
  274. package/dist/types/__VUE/inputnumber/index.vue.d.ts +1 -1
  275. package/dist/types/__VUE/list/index.vue.d.ts +0 -3
  276. package/dist/types/__VUE/noticebar/index.vue.d.ts +5 -24
  277. package/dist/types/__VUE/numberkeyboard/index.vue.d.ts +1 -1
  278. package/dist/types/__VUE/pagination/index.vue.d.ts +1 -1
  279. package/dist/types/__VUE/picker/Column.vue.d.ts +1 -1
  280. package/dist/types/__VUE/picker/common.d.ts +7 -249
  281. package/dist/types/__VUE/picker/index.vue.d.ts +1 -122
  282. package/dist/types/__VUE/picker/types.d.ts +2 -9
  283. package/dist/types/__VUE/pullrefresh/index.vue.d.ts +20 -5
  284. package/dist/types/__VUE/rate/index.vue.d.ts +4 -5
  285. package/dist/types/__VUE/searchbar/index.vue.d.ts +1 -1
  286. package/dist/types/__VUE/shortpassword/index.vue.d.ts +1 -1
  287. package/dist/types/__VUE/sidenavbar/index.vue.d.ts +0 -3
  288. package/dist/types/__VUE/sidenavbaritem/index.vue.d.ts +0 -3
  289. package/dist/types/__VUE/signature/index.vue.d.ts +2 -1
  290. package/dist/types/__VUE/sku/components/SkuHeader.vue.d.ts +3 -3
  291. package/dist/types/__VUE/sku/index.vue.d.ts +9 -177
  292. package/dist/types/__VUE/sticky/index.vue.d.ts +3 -0
  293. package/dist/types/__VUE/subsidenavbar/index.vue.d.ts +0 -3
  294. package/dist/types/__VUE/swiper/index.vue.d.ts +0 -3
  295. package/dist/types/__VUE/swiperitem/index.vue.d.ts +0 -3
  296. package/dist/types/__VUE/table/common.d.ts +7 -7
  297. package/dist/types/__VUE/table/index.vue.d.ts +13 -16
  298. package/dist/types/__VUE/table/types.d.ts +2 -2
  299. package/dist/types/__VUE/tabs/index.vue.d.ts +5 -5
  300. package/dist/types/__VUE/textarea/index.vue.d.ts +3 -2
  301. package/dist/types/__VUE/timedetail/index.vue.d.ts +4 -6
  302. package/dist/types/__VUE/timeselect/index.vue.d.ts +2 -6
  303. package/dist/types/__VUE/tour/index.vue.d.ts +12 -11
  304. package/dist/types/__VUE/trendarrow/index.vue.d.ts +0 -3
  305. package/dist/types/__VUE/video/index.vue.d.ts +1 -1
  306. package/dist/types/index.d.ts +1 -1
  307. package/dist/types/locale/lang/baseLang.d.ts +1 -0
  308. package/dist/types/locale/lang/en-US.d.ts +1 -0
  309. package/dist/types/locale/lang/id-ID.d.ts +1 -0
  310. package/dist/types/locale/lang/zh-CN.d.ts +1 -0
  311. package/dist/types/locale/lang/zh-TW.d.ts +1 -0
  312. package/dist/types/utils/pxCheck.d.ts +1 -1
  313. package/dist/types/utils/useLocale/index.d.ts +1 -0
  314. package/package.json +1 -1
  315. package/dist/packages/_es/CalendarItem.js +0 -10
  316. package/dist/packages/_es/Popup.js +0 -10
  317. package/dist/packages/_es/Radio.js +0 -9
  318. package/dist/packages/_es/RadioGroup.js +0 -7
  319. package/dist/packages/_es/pxCheck-c6b9f6b7.js +0 -6
  320. /package/dist/packages/{_es/_plugin-vue_export-helper-cc2b3d55.js → _plugin-vue_export-helper-cc2b3d55.js} +0 -0
  321. /package/dist/packages/{_es/index-29892cda.js → index-29892cda.js} +0 -0
  322. /package/dist/packages/{_es/index-54d03fc1.js → index-54d03fc1.js} +0 -0
  323. /package/dist/packages/{_es/index-79c5dc33.js → index-79c5dc33.js} +0 -0
  324. /package/dist/packages/{_es/index-7a7385e4.js → index-7a7385e4.js} +0 -0
  325. /package/dist/packages/{_es/index-97b44e6c.js → index-97b44e6c.js} +0 -0
  326. /package/dist/packages/{_es/raf-729dad54.js → raf-729dad54.js} +0 -0
  327. /package/dist/packages/{_es/renderIcon-3d0fd47c.js → renderIcon-3d0fd47c.js} +0 -0
@@ -1,9 +1,9 @@
1
- import { ref, reactive, computed, onMounted, onActivated, onDeactivated, openBlock, createElementBlock, normalizeClass, renderSlot } from "vue";
2
- import { c as createComponent } from "./component-f86a70df.js";
3
- import { r as requestAniFrame } from "./raf-729dad54.js";
4
- import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
1
+ import { ref, reactive, onMounted, onActivated, onDeactivated, openBlock, createElementBlock, renderSlot } from "vue";
2
+ import { c as createComponent } from "../component-a8dfbf81.js";
3
+ import { r as requestAniFrame } from "../raf-729dad54.js";
4
+ import { _ as _export_sfc } from "../_plugin-vue_export-helper-cc2b3d55.js";
5
5
  import "../locale/lang";
6
- const { componentName, create } = createComponent("drag");
6
+ const { create } = createComponent("drag");
7
7
  const _sfc_main = create({
8
8
  props: {
9
9
  attract: {
@@ -48,12 +48,6 @@ const _sfc_main = create({
48
48
  bottom: 0
49
49
  }
50
50
  });
51
- const classes = computed(() => {
52
- const prefixCls = componentName;
53
- return {
54
- [prefixCls]: true
55
- };
56
- });
57
51
  function getInfo() {
58
52
  const domElem = document.documentElement;
59
53
  state.elWidth = myDrag.value.offsetWidth;
@@ -176,7 +170,6 @@ const _sfc_main = create({
176
170
  myDrag.value.removeEventListener("touchend", touchEnd);
177
171
  });
178
172
  return {
179
- classes,
180
173
  myDrag,
181
174
  touchStart,
182
175
  touchMove,
@@ -187,13 +180,13 @@ const _sfc_main = create({
187
180
  function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
188
181
  return openBlock(), createElementBlock("view", {
189
182
  ref: "myDrag",
190
- class: normalizeClass(_ctx.classes),
183
+ class: "nut-drag",
191
184
  onTouchstart: _cache[0] || (_cache[0] = ($event) => _ctx.touchStart($event)),
192
185
  onTouchmove: _cache[1] || (_cache[1] = ($event) => _ctx.touchMove($event)),
193
186
  onTouchend: _cache[2] || (_cache[2] = ($event) => _ctx.touchEnd($event))
194
187
  }, [
195
188
  renderSlot(_ctx.$slots, "default")
196
- ], 34);
189
+ ], 544);
197
190
  }
198
191
  const index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
199
192
  export {
@@ -1,4 +1,2 @@
1
- import _Drag from '../_es/Drag.js';
2
- const treeshaking = (t) => t;
3
- const Drag = treeshaking(_Drag);
4
- export { Drag };
1
+ import Drag from './Drag.js';
2
+ export { Drag, Drag as default };
@@ -1,14 +1,16 @@
1
1
  import { ref, watch, resolveComponent, openBlock, createElementBlock, createElementVNode, toDisplayString, Fragment, renderList, normalizeClass, withDirectives, vModelText, createTextVNode, createVNode } from "vue";
2
- import { c as createComponent } from "./component-f86a70df.js";
3
- import InputNumber from "./InputNumber.js";
4
- import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
2
+ import { c as createComponent } from "../component-a8dfbf81.js";
3
+ import NutInputNumber from "../inputnumber/InputNumber.js";
4
+ import { u as useLocale } from "../index-99fdd331.js";
5
+ import { _ as _export_sfc } from "../_plugin-vue_export-helper-cc2b3d55.js";
5
6
  import "../locale/lang";
6
- import "./pxCheck-c6b9f6b7.js";
7
+ import "../pxCheck-a27490eb.js";
7
8
  import "@nutui/icons-vue";
8
- const { create, translate } = createComponent("ecard");
9
+ const { create } = createComponent("ecard");
10
+ const cN = "NutEcard";
9
11
  const _sfc_main = create({
10
12
  components: {
11
- [InputNumber.name]: InputNumber
13
+ NutInputNumber
12
14
  },
13
15
  props: {
14
16
  chooseText: {
@@ -54,6 +56,7 @@ const _sfc_main = create({
54
56
  },
55
57
  emits: ["inputChange", "changeStep", "inputClick", "change", "update:modelValue"],
56
58
  setup(props, { emit }) {
59
+ const translate = useLocale(cN);
57
60
  const currentIndex = ref(null);
58
61
  const currentValue = ref(null);
59
62
  const inputValue = ref("");
@@ -1,4 +1,2 @@
1
- import _Ecard from '../_es/Ecard.js';
2
- const treeshaking = (t) => t;
3
- const Ecard = treeshaking(_Ecard);
4
- export { Ecard };
1
+ import Ecard from './Ecard.js';
2
+ export { Ecard, Ecard as default };
@@ -17,12 +17,12 @@ 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, onMounted, watch, nextTick, toRefs, openBlock, createElementBlock, normalizeClass, createElementVNode, normalizeStyle, Fragment, renderList, toDisplayString, renderSlot, withDirectives, vShow, createCommentVNode, withModifiers } from "vue";
21
- import { c as createComponent } from "./component-f86a70df.js";
22
- import { u as useExpose } from "./index-79c5dc33.js";
23
- import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
20
+ import { ref, reactive, computed, onMounted, watch, nextTick, toRefs, openBlock, createElementBlock, createElementVNode, normalizeStyle, Fragment, renderList, toDisplayString, normalizeClass, renderSlot, withDirectives, vShow, createCommentVNode, withModifiers } from "vue";
21
+ import { c as createComponent } from "../component-a8dfbf81.js";
22
+ import { u as useExpose } from "../index-79c5dc33.js";
23
+ import { _ as _export_sfc } from "../_plugin-vue_export-helper-cc2b3d55.js";
24
24
  import "../locale/lang";
25
- const { componentName, create } = createComponent("elevator");
25
+ const { create } = createComponent("elevator");
26
26
  const _sfc_main = create({
27
27
  props: {
28
28
  height: {
@@ -35,9 +35,7 @@ const _sfc_main = create({
35
35
  },
36
36
  indexList: {
37
37
  type: Array,
38
- default: () => {
39
- return [];
40
- }
38
+ default: () => []
41
39
  },
42
40
  isSticky: {
43
41
  type: [Boolean],
@@ -72,17 +70,6 @@ const _sfc_main = create({
72
70
  diff: -1,
73
71
  fixedTop: 0
74
72
  });
75
- const classes = computed(() => {
76
- const prefixCls = componentName;
77
- return {
78
- [prefixCls]: true
79
- };
80
- });
81
- const fixedStyle = computed(() => {
82
- return {
83
- transform: `translate3d(0, ${state.scrollY + state.fixedTop}px, 0)`
84
- };
85
- });
86
73
  const clientHeight = computed(() => {
87
74
  return listview.value.clientHeight;
88
75
  });
@@ -161,7 +148,9 @@ const _sfc_main = create({
161
148
  state.currentIndex = listHeight.length - 2;
162
149
  };
163
150
  onMounted(() => {
164
- listview.value.addEventListener("scroll", listViewScroll);
151
+ if (listview.value) {
152
+ listview.value.addEventListener("scroll", listViewScroll);
153
+ }
165
154
  });
166
155
  useExpose({
167
156
  scrollTo
@@ -193,10 +182,7 @@ const _sfc_main = create({
193
182
  context.emit("change", newVal);
194
183
  }
195
184
  );
196
- return __spreadProps(__spreadValues({
197
- classes
198
- }, toRefs(state)), {
199
- fixedStyle,
185
+ return __spreadProps(__spreadValues({}, toRefs(state)), {
200
186
  clientHeight,
201
187
  setListGroup,
202
188
  listview,
@@ -208,16 +194,17 @@ const _sfc_main = create({
208
194
  });
209
195
  }
210
196
  });
211
- const _hoisted_1 = { class: "nut-elevator__list__item__code" };
212
- const _hoisted_2 = ["onClick"];
213
- const _hoisted_3 = ["innerHTML"];
214
- const _hoisted_4 = { class: "nut-elevator__fixed-title" };
215
- const _hoisted_5 = { class: "nut-elevator__bars__inner" };
216
- const _hoisted_6 = ["data-index", "onClick"];
197
+ const _hoisted_1 = { class: "nut-elevator" };
198
+ const _hoisted_2 = { class: "nut-elevator__list__item__code" };
199
+ const _hoisted_3 = ["onClick"];
200
+ const _hoisted_4 = ["innerHTML"];
201
+ const _hoisted_5 = { class: "nut-elevator__list__fixed" };
202
+ const _hoisted_6 = { class: "nut-elevator__list__fixed-title" };
203
+ const _hoisted_7 = { class: "nut-elevator__bars__inner" };
204
+ const _hoisted_8 = ["data-index", "onClick"];
217
205
  function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
218
- return openBlock(), createElementBlock("view", {
219
- class: normalizeClass(_ctx.classes)
220
- }, [
206
+ var _a, _b;
207
+ return openBlock(), createElementBlock("view", _hoisted_1, [
221
208
  createElementVNode("view", {
222
209
  ref: "listview",
223
210
  class: "nut-elevator__list",
@@ -230,7 +217,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
230
217
  ref: _ctx.setListGroup,
231
218
  class: "nut-elevator__list__item"
232
219
  }, [
233
- createElementVNode("view", _hoisted_1, toDisplayString(item[_ctx.acceptKey]), 1),
220
+ createElementVNode("view", _hoisted_2, toDisplayString(item[_ctx.acceptKey]), 1),
234
221
  (openBlock(true), createElementBlock(Fragment, null, renderList(item.list, (subitem) => {
235
222
  return openBlock(), createElementBlock("view", {
236
223
  key: subitem["id"],
@@ -242,24 +229,20 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
242
229
  !_ctx.$slots.default ? (openBlock(), createElementBlock("span", {
243
230
  key: 0,
244
231
  innerHTML: subitem.name
245
- }, null, 8, _hoisted_3)) : renderSlot(_ctx.$slots, "default", {
232
+ }, null, 8, _hoisted_4)) : renderSlot(_ctx.$slots, "default", {
246
233
  key: 1,
247
234
  item: subitem
248
235
  })
249
- ], 10, _hoisted_2);
236
+ ], 10, _hoisted_3);
250
237
  }), 128))
251
238
  ]);
252
- }), 128)),
253
- _ctx.isSticky ? withDirectives((openBlock(), createElementBlock("view", {
254
- key: 0,
255
- class: "nut-elevator__list__fixed",
256
- style: normalizeStyle(_ctx.fixedStyle)
257
- }, [
258
- createElementVNode("span", _hoisted_4, toDisplayString(_ctx.indexList[_ctx.currentIndex][_ctx.acceptKey]), 1)
259
- ], 4)), [
260
- [vShow, _ctx.scrollY > 0]
261
- ]) : createCommentVNode("", true)
239
+ }), 128))
262
240
  ], 4),
241
+ withDirectives(createElementVNode("view", _hoisted_5, [
242
+ createElementVNode("view", _hoisted_6, toDisplayString((_b = (_a = _ctx.indexList) == null ? void 0 : _a[_ctx.currentIndex]) == null ? void 0 : _b[_ctx.acceptKey]), 1)
243
+ ], 512), [
244
+ [vShow, _ctx.scrollY > 0 && _ctx.isSticky]
245
+ ]),
263
246
  _ctx.indexList.length ? withDirectives((openBlock(), createElementBlock("view", {
264
247
  key: 0,
265
248
  class: "nut-elevator__code--current"
@@ -272,20 +255,20 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
272
255
  onTouchmove: _cache[1] || (_cache[1] = withModifiers((...args) => _ctx.touchMove && _ctx.touchMove(...args), ["stop", "prevent"])),
273
256
  onTouchend: _cache[2] || (_cache[2] = (...args) => _ctx.touchEnd && _ctx.touchEnd(...args))
274
257
  }, [
275
- createElementVNode("view", _hoisted_5, [
258
+ createElementVNode("view", _hoisted_7, [
276
259
  (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.indexList, (item, index) => {
277
260
  return openBlock(), createElementBlock("view", {
278
261
  key: item[_ctx.acceptKey],
279
262
  class: normalizeClass(["nut-elevator__bars__inner__item", { active: item[_ctx.acceptKey] === _ctx.indexList[_ctx.currentIndex][_ctx.acceptKey] }]),
280
263
  "data-index": index,
281
264
  onClick: ($event) => _ctx.handleClickIndex(item[_ctx.acceptKey])
282
- }, toDisplayString(item[_ctx.acceptKey]), 11, _hoisted_6);
265
+ }, toDisplayString(item[_ctx.acceptKey]), 11, _hoisted_8);
283
266
  }), 128))
284
267
  ])
285
268
  ], 32)
286
- ], 2);
269
+ ]);
287
270
  }
288
- const Elevator = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
271
+ const NutElevator = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
289
272
  export {
290
- Elevator as default
273
+ NutElevator as default
291
274
  };
@@ -1 +1 @@
1
- .nut-theme-dark .nut-elevator{background-color:var(--nut-dark-background2, #1b1b1b)}.nut-theme-dark .nut-elevator__list__item{color:var(--nut-dark-color, var(--nut-white, #fff))}.nut-theme-dark .nut-elevator__list__item__code{color:var(--nut-dark-color, var(--nut-white, #fff))}.nut-theme-dark .nut-elevator__list__fixed{background-color:var(--nut-dark-background2, #1b1b1b)}.nut-elevator{width:100%;display:block;position:relative}.nut-elevator__list{display:block;position:relative;overflow:auto}.nut-elevator__list__item{display:block;font-size:var(--nut-elevator-list-item-font-size, 12px);color:var(--nut-elevator-list-item-font-color, #333333)}.nut-elevator__list__item__code{display:flex;position:relative;height:var(--nut-elevator-list-item-code-height, 35px);line-height:var(--nut-elevator-list-item-code-line-height, 35px);font-size:var(--nut-elevator-list-item-code-font-size, 14px);color:var(--nut-elevator-list-item-code-font-color, #1a1a1a);padding:var(--nut-elevator-list-item-code-padding, 0 20px);font-weight:var(--nut-elevator-list-item-code-font-weight, 500);box-sizing:border-box}.nut-elevator__list__item__code::after{content:" ";width:var(--nut-elevator-list-item-code-after-width, 100%);height:var(--nut-elevator-list-item-code-after-height, 1px);position:absolute;left:0;bottom:0;background-color:var(--nut-elevator-list-item-code-after-bg-color, #f5f5f5)}.nut-elevator__list__item__name{display:flex;align-items:center;padding:var(--nut-elevator-list-item-name-padding, 0 20px);height:var(--nut-elevator-list-item-name-height, 30px);line-height:var(--nut-elevator-list-item-name-line-height, 30px)}.nut-elevator__list__item__name--highcolor{color:var(--nut-elevator-list-item-highcolor, var(--nut-primary-color, #fa2c19))}.nut-elevator__list .nut-elevator__list__fixed__wrapper{position:absolute;top:0;left:0;width:100%}.nut-elevator__list__fixed{width:100%;position:absolute;top:0;left:0;padding:var(--nut-elevator-list-item-code-padding, 0 20px);height:var(--nut-elevator-list-item-code-height, 35px);line-height:var(--nut-elevator-list-item-code-line-height, 35px);font-size:var(--nut-elevator-list-item-code-font-size, 14px);color:var(--nut-elevator-list-fixed-color, var(--nut-primary-color, #fa2c19));font-weight:var(--nut-elevator-list-item-code-font-weight, 500);background-color:var(--nut-elevator-list-fixed-bg-color, var(--nut-white, #fff));box-sizing:border-box;box-shadow:var(--nut-elevator-list-fixed-box-shadow, 0 0 10px #eee);z-index:1}.nut-elevator__list__fixed--mini{position:sticky;top:-1px}.nut-elevator__list--mini{position:static}.nut-elevator__code--current{position:var(--nut-elevator-list-item-code-current-position, absolute);right:var(--nut-elevator-list-item-code-current-right, 60px);top:var(--nut-elevator-list-item-code-current-top, 50%);transform:var(--nut-elevator-list-item-code-current-transform, translateY(-50%));width:var(--nut-elevator-list-item-code-current-width, 45px);height:var(--nut-elevator-list-item-code-current-height, 45px);line-height:var(--nut-elevator-list-item-code-current-line-height, 45px);border-radius:var(--nut-elevator-list-item-code-current-border-radius, 50%);background:var(--nut-elevator-list-item-code-current-bg-color, #fff);box-shadow:var(--nut-elevator-list-item-code-current-box-shadow, 0 3px 3px 1px rgb(240, 240, 240));text-align:var(--nut-elevator-list-item-code-current-text-align, center)}.nut-elevator__bars{position:var(--nut-elevator-list-item-bars-position, absolute);right:var(--nut-elevator-list-item-bars-right, 8px);top:var(--nut-elevator-list-item-bars-top, 50%);transform:var(--nut-elevator-list-item-bars-transform, translateY(-50%));padding:var(--nut-elevator-list-item-bars-padding, 15px 0);background-color:var(--nut-elevator-list-item-bars-background-color, #eeeff2);border-radius:var(--nut-elevator-list-item-bars-border-radius, 6px);text-align:var(--nut-elevator-list-item-bars-text-align, center);z-index:var(--nut-elevator-list-item-bars-z-index, 1)}.nut-elevator__bars__inner__item{display:block;padding:var(--nut-elevator-list-item-bars-inner-item-padding, 3px);font-size:var(--nut-elevator-list-item-bars-inner-item-font-size, 10px)}.nut-elevator__bars__inner__item.active{color:var(--nut-elevator-list-item-bars-inner-item-active-color, var(--nut-primary-color, #fa2c19))}
1
+ .nut-theme-dark .nut-elevator{background-color:var(--nut-dark-background2, #1b1b1b)}.nut-theme-dark .nut-elevator__list__item{color:var(--nut-dark-color, var(--nut-white, #fff))}.nut-theme-dark .nut-elevator__list__item__code{color:var(--nut-dark-color, var(--nut-white, #fff))}.nut-theme-dark .nut-elevator__list__fixed{background-color:var(--nut-dark-background2, #1b1b1b)}.nut-elevator{width:100%;display:block;position:relative}.nut-elevator__list{display:block;position:relative;overflow:auto}.nut-elevator__list__item{display:block;font-size:var(--nut-elevator-list-item-font-size, 12px);color:var(--nut-elevator-list-item-font-color, #333333)}.nut-elevator__list__item__code{display:flex;position:relative;height:var(--nut-elevator-list-item-code-height, 35px);line-height:var(--nut-elevator-list-item-code-line-height, 35px);font-size:var(--nut-elevator-list-item-code-font-size, 14px);color:var(--nut-elevator-list-item-code-font-color, #1a1a1a);padding:var(--nut-elevator-list-item-code-padding, 0 20px);font-weight:var(--nut-elevator-list-item-code-font-weight, 500);box-sizing:border-box}.nut-elevator__list__item__code::after{content:" ";width:var(--nut-elevator-list-item-code-after-width, 100%);height:var(--nut-elevator-list-item-code-after-height, 1px);position:absolute;left:0;bottom:0;background-color:var(--nut-elevator-list-item-code-after-bg-color, #f5f5f5)}.nut-elevator__list__item__name{display:flex;align-items:center;padding:var(--nut-elevator-list-item-name-padding, 0 20px);height:var(--nut-elevator-list-item-name-height, 30px);line-height:var(--nut-elevator-list-item-name-line-height, 30px)}.nut-elevator__list__item__name--highcolor{color:var(--nut-elevator-list-item-highcolor, var(--nut-primary-color, #fa2c19))}.nut-elevator__list__fixed{width:100%;position:absolute;top:0;left:0;padding:var(--nut-elevator-list-item-code-padding, 0 20px);height:var(--nut-elevator-list-item-code-height, 35px);line-height:var(--nut-elevator-list-item-code-line-height, 35px);font-size:var(--nut-elevator-list-item-code-font-size, 14px);color:var(--nut-elevator-list-fixed-color, var(--nut-primary-color, #fa2c19));font-weight:var(--nut-elevator-list-item-code-font-weight, 500);background-color:var(--nut-elevator-list-fixed-bg-color, var(--nut-white, #fff));box-sizing:border-box;box-shadow:var(--nut-elevator-list-fixed-box-shadow, 0 0 10px #eee);z-index:1}.nut-elevator__code--current{position:var(--nut-elevator-list-item-code-current-position, absolute);right:var(--nut-elevator-list-item-code-current-right, 60px);top:var(--nut-elevator-list-item-code-current-top, 50%);transform:var(--nut-elevator-list-item-code-current-transform, translateY(-50%));width:var(--nut-elevator-list-item-code-current-width, 45px);height:var(--nut-elevator-list-item-code-current-height, 45px);line-height:var(--nut-elevator-list-item-code-current-line-height, 45px);border-radius:var(--nut-elevator-list-item-code-current-border-radius, 50%);background:var(--nut-elevator-list-item-code-current-bg-color, #fff);box-shadow:var(--nut-elevator-list-item-code-current-box-shadow, 0 3px 3px 1px rgb(240, 240, 240));text-align:var(--nut-elevator-list-item-code-current-text-align, center)}.nut-elevator__bars{position:var(--nut-elevator-list-item-bars-position, absolute);right:var(--nut-elevator-list-item-bars-right, 8px);top:var(--nut-elevator-list-item-bars-top, 50%);transform:var(--nut-elevator-list-item-bars-transform, translateY(-50%));padding:var(--nut-elevator-list-item-bars-padding, 15px 0);background-color:var(--nut-elevator-list-item-bars-background-color, #eeeff2);border-radius:var(--nut-elevator-list-item-bars-border-radius, 6px);text-align:var(--nut-elevator-list-item-bars-text-align, center);z-index:var(--nut-elevator-list-item-bars-z-index, 1)}.nut-elevator__bars__inner__item{display:block;padding:var(--nut-elevator-list-item-bars-inner-item-padding, 3px);font-size:var(--nut-elevator-list-item-bars-inner-item-font-size, 10px)}.nut-elevator__bars__inner__item.active{color:var(--nut-elevator-list-item-bars-inner-item-active-color, var(--nut-primary-color, #fa2c19))}
@@ -1,4 +1,2 @@
1
- import _Elevator from '../_es/Elevator.js';
2
- const treeshaking = (t) => t;
3
- const Elevator = treeshaking(_Elevator);
4
- export { Elevator };
1
+ import Elevator from './Elevator.js';
2
+ export { Elevator, Elevator as default };
@@ -57,12 +57,6 @@
57
57
  }
58
58
  }
59
59
  }
60
- .nut-elevator__list__fixed__wrapper {
61
- position: absolute;
62
- top: 0;
63
- left: 0;
64
- width: 100%;
65
- }
66
60
  &__fixed {
67
61
  width: 100%;
68
62
  position: absolute;
@@ -78,13 +72,6 @@
78
72
  box-sizing: border-box;
79
73
  box-shadow: $elevator-list-fixed-box-shadow;
80
74
  z-index: 1;
81
- &--mini {
82
- position: sticky;
83
- top: -1px;
84
- }
85
- }
86
- &--mini {
87
- position: static;
88
75
  }
89
76
  }
90
77
  &__code--current {
@@ -17,11 +17,11 @@ 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, onMounted, toRefs, openBlock, createElementBlock, normalizeClass, toDisplayString, createCommentVNode, createTextVNode, withModifiers } from "vue";
21
- import { c as createComponent } from "./component-f86a70df.js";
22
- import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
20
+ import { ref, reactive, watch, onMounted, toRefs, openBlock, createElementBlock, toDisplayString, createCommentVNode, createTextVNode, withModifiers } from "vue";
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
- const { componentName, create } = createComponent("ellipsis");
24
+ const { create } = createComponent("ellipsis");
25
25
  const _sfc_main = create({
26
26
  props: {
27
27
  content: {
@@ -65,12 +65,6 @@ const _sfc_main = create({
65
65
  expanded: false
66
66
  //是否折叠
67
67
  });
68
- const classes = computed(() => {
69
- const prefixCls = componentName;
70
- return {
71
- [prefixCls]: true
72
- };
73
- });
74
68
  watch(
75
69
  () => props.content,
76
70
  (newV, oldVal) => {
@@ -193,7 +187,7 @@ const _sfc_main = create({
193
187
  const handleClick = () => {
194
188
  emit("click");
195
189
  };
196
- return __spreadProps(__spreadValues({}, toRefs(state)), { root, ellipsis, classes, clickHandle, handleClick });
190
+ return __spreadProps(__spreadValues({}, toRefs(state)), { root, ellipsis, clickHandle, handleClick });
197
191
  }
198
192
  });
199
193
  const _hoisted_1 = { key: 0 };
@@ -202,7 +196,7 @@ const _hoisted_3 = { key: 2 };
202
196
  function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
203
197
  return openBlock(), createElementBlock("view", {
204
198
  ref: "root",
205
- class: normalizeClass(_ctx.classes),
199
+ class: "nut-ellipsis",
206
200
  onClick: _cache[2] || (_cache[2] = (...args) => _ctx.handleClick && _ctx.handleClick(...args))
207
201
  }, [
208
202
  !_ctx.exceeded ? (openBlock(), createElementBlock("view", _hoisted_1, toDisplayString(_ctx.content), 1)) : createCommentVNode("", true),
@@ -223,7 +217,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
223
217
  onClick: _cache[1] || (_cache[1] = withModifiers(($event) => _ctx.clickHandle(2), ["stop"]))
224
218
  }, toDisplayString(_ctx.collapseText), 1)) : createCommentVNode("", true)
225
219
  ])) : createCommentVNode("", true)
226
- ], 2);
220
+ ], 512);
227
221
  }
228
222
  const index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
229
223
  export {
@@ -1,4 +1,2 @@
1
- import _Ellipsis from '../_es/Ellipsis.js';
2
- const treeshaking = (t) => t;
3
- const Ellipsis = treeshaking(_Ellipsis);
4
- export { Ellipsis };
1
+ import Ellipsis from './Ellipsis.js';
2
+ export { Ellipsis, Ellipsis as default };
@@ -1,9 +1,11 @@
1
1
  import { computed, openBlock, createElementBlock, createElementVNode, normalizeStyle, renderSlot, createCommentVNode, toDisplayString } from "vue";
2
- import { c as createComponent } from "./component-f86a70df.js";
3
- import { p as pxCheck } from "./pxCheck-c6b9f6b7.js";
4
- import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
2
+ import { c as createComponent } from "../component-a8dfbf81.js";
3
+ import { p as pxCheck } from "../pxCheck-a27490eb.js";
4
+ import { u as useLocale } from "../index-99fdd331.js";
5
+ import { _ as _export_sfc } from "../_plugin-vue_export-helper-cc2b3d55.js";
5
6
  import "../locale/lang";
6
- const { create, translate } = createComponent("empty");
7
+ const { create } = createComponent("empty");
8
+ const cN = "NutEmpty";
7
9
  const defaultStatus = {
8
10
  empty: "https://static-ftcms.jd.com/p/files/61a9e3183985005b3958672b.png",
9
11
  error: "https://ftcms.jd.com/p/files/61a9e33ee7dcdbcc0ce62736.png",
@@ -25,6 +27,7 @@ const _sfc_main = create({
25
27
  }
26
28
  },
27
29
  setup(props) {
30
+ const translate = useLocale(cN);
28
31
  const style = computed(() => {
29
32
  if (props.imageSize) {
30
33
  return {
@@ -1,4 +1,2 @@
1
- import _Empty from '../_es/Empty.js';
2
- const treeshaking = (t) => t;
3
- const Empty = treeshaking(_Empty);
4
- export { Empty };
1
+ import Empty from './Empty.js';
2
+ export { Empty, Empty as default };
@@ -1,13 +1,15 @@
1
1
  import { computed, ref, resolveComponent, openBlock, createElementBlock, normalizeClass, normalizeStyle, createBlock, createCommentVNode, renderSlot, createElementVNode, Fragment, renderList, toDisplayString, createVNode } from "vue";
2
2
  import { Left } from "@nutui/icons-vue";
3
- import Overlay from "./Overlay.js";
4
- import { c as createComponent } from "./component-f86a70df.js";
5
- import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
3
+ import NutOverlay from "../overlay/Overlay.js";
4
+ import { c as createComponent } from "../component-a8dfbf81.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
- const { translate, create, componentName } = createComponent("fixed-nav");
8
+ const { create } = createComponent("fixed-nav");
9
+ const cN = "NutFixedNav";
8
10
  const _sfc_main = create({
9
11
  components: {
10
- [Overlay.name]: Overlay,
12
+ NutOverlay,
11
13
  Left
12
14
  },
13
15
  props: {
@@ -51,8 +53,9 @@ const _sfc_main = create({
51
53
  },
52
54
  emits: ["update:visible", "selected"],
53
55
  setup(props, { emit }) {
56
+ const translate = useLocale(cN);
54
57
  const classes = computed(() => {
55
- const prefixCls = componentName;
58
+ const prefixCls = "nut-fixed-nav";
56
59
  return {
57
60
  [prefixCls]: true,
58
61
  active: props.visible,
@@ -82,7 +85,7 @@ const _hoisted_5 = {
82
85
  class: "b"
83
86
  };
84
87
  const _hoisted_6 = { class: "text" };
85
- function render(_ctx, _cache, $props, $setup, $data, $options) {
88
+ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
86
89
  const _component_nut_overlay = resolveComponent("nut-overlay");
87
90
  const _component_Left = resolveComponent("Left");
88
91
  return openBlock(), createElementBlock("view", {
@@ -99,9 +102,9 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
99
102
  createElementVNode("view", _hoisted_1, [
100
103
  (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.navList, (item, index2) => {
101
104
  return openBlock(), createElementBlock("view", {
105
+ key: item.id || index2,
102
106
  class: normalizeClass(["nut-fixed-nav__list-item", { active: item.id == _ctx.current }]),
103
- onClick: ($event) => _ctx.selected(item, $event),
104
- key: item.id || index2
107
+ onClick: ($event) => _ctx.selected(item, $event)
105
108
  }, [
106
109
  createElementVNode("img", {
107
110
  src: item.icon
@@ -123,7 +126,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
123
126
  ])
124
127
  ], 6);
125
128
  }
126
- const index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", render]]);
129
+ const index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
127
130
  export {
128
131
  index as default
129
132
  };
@@ -1,4 +1,2 @@
1
- import _FixedNav from '../_es/FixedNav.js';
2
- const treeshaking = (t) => t;
3
- const FixedNav = treeshaking(_FixedNav);
4
- export { FixedNav };
1
+ import FixedNav from './FixedNav.js';
2
+ export { FixedNav, FixedNav as default };
@@ -33,10 +33,10 @@ var __async = (__this, __arguments, generator) => {
33
33
  step((generator = generator.apply(__this, __arguments)).next());
34
34
  });
35
35
  };
36
- import { g as getPropByPath, f as isPromise, c as createComponent } from "./component-f86a70df.js";
36
+ import { g as getPropByPath, h as isPromise, c as createComponent } from "../component-a8dfbf81.js";
37
37
  import { computed, reactive, provide, watch, resolveComponent, openBlock, createElementBlock, withModifiers, createVNode, withCtx, renderSlot } from "vue";
38
- import CellGroup from "./CellGroup.js";
39
- import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
38
+ import NutCellGroup from "../cellgroup/CellGroup.js";
39
+ import { _ as _export_sfc } from "../_plugin-vue_export-helper-cc2b3d55.js";
40
40
  import "../locale/lang";
41
41
  const component = (components) => {
42
42
  return {
@@ -151,7 +151,7 @@ const component = (components) => {
151
151
  const rule = _rules.shift();
152
152
  const _a = rule, { validator } = _a, ruleWithoutValidator = __objRest(_a, ["validator"]);
153
153
  const { required, regex, message } = ruleWithoutValidator;
154
- const errorMsg = { prop, message };
154
+ const errorMsg = { prop, message: message || "" };
155
155
  if (required) {
156
156
  if (!value && value !== 0) {
157
157
  return _Promise(errorMsg);
@@ -216,7 +216,7 @@ const component = (components) => {
216
216
  const { create } = createComponent("form");
217
217
  const _sfc_main = create(
218
218
  component({
219
- [CellGroup.name]: CellGroup
219
+ NutCellGroup
220
220
  })
221
221
  );
222
222
  const _hoisted_1 = ["onSubmit"];
@@ -235,7 +235,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
235
235
  })
236
236
  ], 40, _hoisted_1);
237
237
  }
238
- const Form = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
238
+ const NutForm = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
239
239
  export {
240
- Form as default
240
+ NutForm as default
241
241
  };
@@ -1,4 +1,2 @@
1
- import _Form from '../_es/Form.js';
2
- const treeshaking = (t) => t;
3
- const Form = treeshaking(_Form);
4
- export { Form };
1
+ import Form from './Form.js';
2
+ export { Form, Form as default };
@@ -1,10 +1,10 @@
1
- import { p as pxCheck } from "./pxCheck-c6b9f6b7.js";
2
- import { inject, provide, computed, getCurrentInstance, onUnmounted, resolveComponent, openBlock, createBlock, normalizeClass, normalizeStyle, withCtx, createElementBlock, renderSlot, createTextVNode, toDisplayString, createCommentVNode, createElementVNode } from "vue";
3
- import { c as createComponent } from "./component-f86a70df.js";
4
- import Cell from "./Cell.js";
5
- import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
1
+ import { p as pxCheck } from "../pxCheck-a27490eb.js";
2
+ import { computed, inject, provide, getCurrentInstance, onUnmounted, resolveComponent, openBlock, createBlock, normalizeClass, normalizeStyle, withCtx, createElementBlock, renderSlot, createTextVNode, toDisplayString, createCommentVNode, createElementVNode } from "vue";
3
+ import { c as createComponent } from "../component-a8dfbf81.js";
4
+ import NutCell from "../cell/Cell.js";
5
+ import { _ as _export_sfc } from "../_plugin-vue_export-helper-cc2b3d55.js";
6
6
  import "../locale/lang";
7
- import "./index-54d03fc1.js";
7
+ import "../index-54d03fc1.js";
8
8
  import "@nutui/icons-vue";
9
9
  const { create } = createComponent("form-item");
10
10
  const _sfc_main = create({
@@ -52,7 +52,7 @@ const _sfc_main = create({
52
52
  }
53
53
  },
54
54
  components: {
55
- [Cell.name]: Cell
55
+ NutCell
56
56
  },
57
57
  setup(props, { slots }) {
58
58
  const useParent = () => {
@@ -67,7 +67,18 @@ const _sfc_main = create({
67
67
  return { parent: parent2 };
68
68
  }
69
69
  };
70
- useParent();
70
+ const { parent: parentObj } = useParent();
71
+ const isRequired = computed(() => {
72
+ var _a;
73
+ const rules = (_a = parentObj.props) == null ? void 0 : _a.rules;
74
+ let formRequired = false;
75
+ for (const key in rules) {
76
+ if (Object.prototype.hasOwnProperty.call(rules, key) && key === props.prop && Array.isArray(rules[key])) {
77
+ formRequired = rules[key].some((rule) => rule.required);
78
+ }
79
+ }
80
+ return props.required || props.rules.some((rule) => rule.required) || formRequired;
81
+ });
71
82
  const parent = inject("formErrorTip");
72
83
  provide("form", {
73
84
  props
@@ -89,7 +100,7 @@ const _sfc_main = create({
89
100
  };
90
101
  });
91
102
  const getSlots = (name) => slots[name];
92
- return { parent, labelStyle, bodyStyle, errorMessageStyle, getSlots };
103
+ return { parent, labelStyle, bodyStyle, errorMessageStyle, getSlots, isRequired };
93
104
  }
94
105
  });
95
106
  const _hoisted_1 = { class: "nut-cell__value nut-form-item__body" };
@@ -102,7 +113,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
102
113
  default: withCtx(() => [
103
114
  _ctx.label || _ctx.getSlots("label") ? (openBlock(), createElementBlock("view", {
104
115
  key: 0,
105
- class: normalizeClass(["nut-cell__title nut-form-item__label", { required: _ctx.required }]),
116
+ class: normalizeClass(["nut-cell__title nut-form-item__label", { required: _ctx.isRequired }]),
106
117
  style: normalizeStyle(_ctx.labelStyle)
107
118
  }, [
108
119
  renderSlot(_ctx.$slots, "label", {}, () => [
@@ -126,7 +137,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
126
137
  _: 3
127
138
  }, 8, ["class", "style"]);
128
139
  }
129
- const FormItem = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
140
+ const NutFormItem = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
130
141
  export {
131
- FormItem as default
142
+ NutFormItem as default
132
143
  };
@@ -1,4 +1,2 @@
1
- import _FormItem from '../_es/FormItem.js';
2
- const treeshaking = (t) => t;
3
- const FormItem = treeshaking(_FormItem);
4
- export { FormItem };
1
+ import FormItem from './FormItem.js';
2
+ export { FormItem, FormItem as default };
@@ -1,8 +1,8 @@
1
- import { c as createComponent } from "./component-f86a70df.js";
1
+ import { c as createComponent } from "../component-a8dfbf81.js";
2
2
  import "vue";
3
- import { c as component } from "./common-728db750.js";
3
+ import { c as component } from "../common-3db007cd.js";
4
4
  import "../locale/lang";
5
- import "./pxCheck-c6b9f6b7.js";
5
+ import "../pxCheck-a27490eb.js";
6
6
  const { create } = createComponent("grid");
7
7
  const _sfc_main = create(component);
8
8
  export {
@@ -1,4 +1,2 @@
1
- import _Grid from '../_es/Grid.js';
2
- const treeshaking = (t) => t;
3
- const Grid = treeshaking(_Grid);
4
- export { Grid };
1
+ import Grid from './Grid.js';
2
+ export { Grid, Grid as default };