@nutui/nutui 4.0.0-beta.6 → 4.0.0-beta.8

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 (312) hide show
  1. package/dist/nutui.es.js +223 -102
  2. package/dist/nutui.umd.cjs +138 -225
  3. package/dist/packages/_es/ActionSheet.js +3 -8
  4. package/dist/packages/_es/Address.js +4 -9
  5. package/dist/packages/_es/AddressList.js +3 -8
  6. package/dist/packages/_es/Animate.js +2 -7
  7. package/dist/packages/_es/Audio.js +4 -9
  8. package/dist/packages/_es/AudioOperate.js +2 -7
  9. package/dist/packages/_es/Avatar.js +2 -7
  10. package/dist/packages/_es/AvatarGroup.js +2 -7
  11. package/dist/packages/_es/Backtop.js +3 -8
  12. package/dist/packages/_es/Badge.js +2 -7
  13. package/dist/packages/_es/Barrage.js +17 -34
  14. package/dist/packages/_es/Button.js +2 -7
  15. package/dist/packages/_es/Calendar.js +6 -11
  16. package/dist/packages/_es/CalendarItem.js +5 -10
  17. package/dist/packages/_es/Card.js +3 -8
  18. package/dist/packages/_es/Cascader.js +8 -14
  19. package/dist/packages/_es/Category.js +2 -7
  20. package/dist/packages/_es/CategoryPane.js +2 -7
  21. package/dist/packages/_es/Cell.js +4 -9
  22. package/dist/packages/_es/CellGroup.js +2 -7
  23. package/dist/packages/_es/Checkbox.js +2 -7
  24. package/dist/packages/_es/CheckboxGroup.js +2 -7
  25. package/dist/packages/_es/CircleProgress.js +2 -7
  26. package/dist/packages/_es/Col.js +2 -7
  27. package/dist/packages/_es/Collapse.js +2 -7
  28. package/dist/packages/_es/CollapseItem.js +3 -8
  29. package/dist/packages/_es/Comment.js +5 -10
  30. package/dist/packages/_es/ConfigProvider.js +1 -6
  31. package/dist/packages/_es/Countdown.js +2 -7
  32. package/dist/packages/_es/Countup.js +2 -7
  33. package/dist/packages/_es/DatePicker.js +4 -9
  34. package/dist/packages/_es/Dialog.js +5 -10
  35. package/dist/packages/_es/Divider.js +2 -7
  36. package/dist/packages/_es/Drag.js +3 -8
  37. package/dist/packages/_es/Ecard.js +3 -8
  38. package/dist/packages/_es/Elevator.js +3 -8
  39. package/dist/packages/_es/Ellipsis.js +2 -7
  40. package/dist/packages/_es/Empty.js +2 -7
  41. package/dist/packages/_es/FixedNav.js +2 -7
  42. package/dist/packages/_es/Form.js +2 -7
  43. package/dist/packages/_es/FormItem.js +4 -9
  44. package/dist/packages/_es/Grid.js +3 -8
  45. package/dist/packages/_es/GridItem.js +5 -10
  46. package/dist/packages/_es/Image.js +3 -8
  47. package/dist/packages/_es/ImagePreview.js +13 -19
  48. package/dist/packages/_es/Indicator.js +2 -7
  49. package/dist/packages/_es/InfiniteLoading.js +4 -9
  50. package/dist/packages/_es/Input.js +2 -7
  51. package/dist/packages/_es/InputNumber.js +3 -8
  52. package/dist/packages/_es/Invoice.js +6 -11
  53. package/dist/packages/_es/Layout.js +1 -6
  54. package/dist/packages/_es/List.js +2 -7
  55. package/dist/packages/_es/Loading-5f2ef345.js +59 -0
  56. package/dist/packages/_es/Loading-ff1ade5e.js +59 -0
  57. package/dist/packages/_es/Menu.js +3 -8
  58. package/dist/packages/_es/MenuItem.js +3 -8
  59. package/dist/packages/_es/Navbar.js +2 -7
  60. package/dist/packages/_es/Noticebar.js +4 -9
  61. package/dist/packages/_es/Notify.js +5 -8
  62. package/dist/packages/_es/NumberKeyboard.js +3 -8
  63. package/dist/packages/_es/Overlay.js +2 -7
  64. package/dist/packages/_es/Pagination.js +2 -7
  65. package/dist/packages/_es/Picker.js +4 -9
  66. package/dist/packages/_es/Popover.js +5 -10
  67. package/dist/packages/_es/Popup.js +3 -8
  68. package/dist/packages/_es/Price.js +2 -7
  69. package/dist/packages/_es/Progress.js +2 -7
  70. package/dist/packages/_es/PullRefresh.js +5 -10
  71. package/dist/packages/_es/Radio.js +3 -8
  72. package/dist/packages/_es/RadioGroup.js +2 -7
  73. package/dist/packages/_es/Range.js +4 -9
  74. package/dist/packages/_es/Rate.js +5 -10
  75. package/dist/packages/_es/Row.js +2 -7
  76. package/dist/packages/_es/Searchbar.js +3 -8
  77. package/dist/packages/_es/ShortPassword.js +3 -8
  78. package/dist/packages/_es/SideNavbar.js +2 -7
  79. package/dist/packages/_es/SideNavbarItem.js +2 -7
  80. package/dist/packages/_es/Signature.js +2 -7
  81. package/dist/packages/_es/Skeleton.js +2 -7
  82. package/dist/packages/_es/Sku.js +4 -9
  83. package/dist/packages/_es/Step.js +2 -7
  84. package/dist/packages/_es/Steps.js +1 -6
  85. package/dist/packages/_es/Sticky.js +3 -8
  86. package/dist/packages/_es/SubSideNavbar.js +2 -7
  87. package/dist/packages/_es/Swipe.js +3 -8
  88. package/dist/packages/_es/Swiper.js +58 -121
  89. package/dist/packages/_es/SwiperItem.js +3 -8
  90. package/dist/packages/_es/Switch.js +3 -8
  91. package/dist/packages/_es/TabPane.js +2 -7
  92. package/dist/packages/_es/Tabbar.js +2 -7
  93. package/dist/packages/_es/TabbarItem.js +5 -10
  94. package/dist/packages/_es/Table.js +2 -7
  95. package/dist/packages/_es/Tabs.js +5 -10
  96. package/dist/packages/_es/Tag.js +2 -7
  97. package/dist/packages/_es/Textarea.js +2 -7
  98. package/dist/packages/_es/TimeDetail.js +2 -7
  99. package/dist/packages/_es/TimePannel.js +2 -7
  100. package/dist/packages/_es/TimeSelect.js +3 -8
  101. package/dist/packages/_es/Toast.js +5 -10
  102. package/dist/packages/_es/Tour.js +5 -10
  103. package/dist/packages/_es/TrendArrow.js +2 -7
  104. package/dist/packages/_es/Uploader.js +3 -8
  105. package/dist/packages/_es/Video.js +2 -7
  106. package/dist/packages/_es/Watermark.js +2 -7
  107. package/dist/packages/_es/{_plugin-vue_export-helper-f84579cd.js → _plugin-vue_export-helper-214bd398.js} +1 -1
  108. package/dist/packages/_es/_plugin-vue_export-helper-3119770d.js +15 -0
  109. package/dist/packages/_es/_plugin-vue_export-helper-40ecb205.js +15 -0
  110. package/dist/packages/_es/_plugin-vue_export-helper-cabb815c.js +15 -0
  111. package/dist/packages/_es/_plugin-vue_export-helper-cc2b3d55.js +10 -0
  112. package/dist/packages/_es/{common-8e13240b.js → common-1144cf18.js} +3 -3
  113. package/dist/packages/_es/common-33d6538d.js +142 -0
  114. package/dist/packages/_es/common-38afc79e.js +142 -0
  115. package/dist/packages/_es/common-ceb98554.js +137 -0
  116. package/dist/packages/_es/common-fcbd940e.js +142 -0
  117. package/dist/packages/_es/{component-2bf83b98.js → component-555f9132.js} +1 -1
  118. package/dist/packages/_es/component-81a4c1d0.js +145 -0
  119. package/dist/packages/_es/component-93f40b7f.js +144 -0
  120. package/dist/packages/_es/component-cb778481.js +150 -0
  121. package/dist/packages/_es/component-f9e4b05e.js +144 -0
  122. package/dist/packages/_es/{index-99be5adc.js → index-122e380e.js} +1 -1
  123. package/dist/packages/_es/{index-c2175b7b.js → index-15d5ca2c.js} +1 -1
  124. package/dist/packages/_es/index-16f572cc.js +52 -0
  125. package/dist/packages/_es/{index-97b8ae5b.js → index-18e7c77e.js} +1 -1
  126. package/dist/packages/_es/index-22af3a75.js +35 -0
  127. package/dist/packages/_es/index-29892cda.js +33 -0
  128. package/dist/packages/_es/{index-175ca86c.js → index-2d3e73a7.js} +3 -3
  129. package/dist/packages/_es/index-350a8abd.js +809 -0
  130. package/dist/packages/_es/index-375f2695.js +15 -0
  131. package/dist/packages/_es/index-43c34ac6.js +30 -0
  132. package/dist/packages/_es/index-54d03fc1.js +8 -0
  133. package/dist/packages/_es/{index-da641709.js → index-57aa518c.js} +1 -1
  134. package/dist/packages/_es/{index-63fdf6d9.js → index-65e55319.js} +1 -1
  135. package/dist/packages/_es/index-673e467d.js +72 -0
  136. package/dist/packages/_es/index-69b79b10.js +52 -0
  137. package/dist/packages/_es/index-7386d8ea.js +35 -0
  138. package/dist/packages/_es/index-75be4de5.js +72 -0
  139. package/dist/packages/_es/{index-3e3fbad2.js → index-7653e348.js} +5 -5
  140. package/dist/packages/_es/index-79c5dc33.js +10 -0
  141. package/dist/packages/_es/index-7a7385e4.js +67 -0
  142. package/dist/packages/_es/index-83f367f2.js +15 -0
  143. package/dist/packages/_es/index-a0ae7438.js +72 -0
  144. package/dist/packages/_es/index-abb46652.js +13 -0
  145. package/dist/packages/_es/index-bd90ef5b.js +38 -0
  146. package/dist/packages/_es/index-da7aa231.js +234 -0
  147. package/dist/packages/_es/index-dd23f7fc.js +35 -0
  148. package/dist/packages/_es/index-ec1281d1.js +15 -0
  149. package/dist/packages/_es/index-ee55d99f.js +814 -0
  150. package/dist/packages/_es/index-f9640059.js +239 -0
  151. package/dist/packages/_es/index.taro-15624a72.js +833 -0
  152. package/dist/packages/_es/index.taro-2ce92fc8.js +76 -0
  153. package/dist/packages/_es/index.taro-356b6989.js +238 -0
  154. package/dist/packages/_es/index.taro-5564033f.js +833 -0
  155. package/dist/packages/_es/index.taro-be0723aa.js +76 -0
  156. package/dist/packages/_es/index.taro-da1bc684.js +238 -0
  157. package/dist/packages/_es/index.taro.vue_vue_type_script_lang-5696dfc0.js +102 -0
  158. package/dist/packages/_es/index.taro.vue_vue_type_script_lang-5b67ab83.js +102 -0
  159. package/dist/packages/_es/index.vue_vue_type_script_lang-1291fceb.js +45 -0
  160. package/dist/packages/_es/{index.vue_vue_type_script_lang-1721812a.js → index.vue_vue_type_script_lang-164ba0ab.js} +3 -3
  161. package/dist/packages/_es/{index.vue_vue_type_script_lang-33f247fa.js → index.vue_vue_type_script_lang-1c056efc.js} +3 -3
  162. package/dist/packages/_es/{index.vue_vue_type_script_lang-85ad5ab4.js → index.vue_vue_type_script_lang-2c5dd6ac.js} +2 -2
  163. package/dist/packages/_es/index.vue_vue_type_script_lang-3bc78a6d.js +156 -0
  164. package/dist/packages/_es/index.vue_vue_type_script_lang-630bc089.js +50 -0
  165. package/dist/packages/_es/index.vue_vue_type_script_lang-ba9e696d.js +50 -0
  166. package/dist/packages/_es/index.vue_vue_type_script_lang-cab1cdc4.js +102 -0
  167. package/dist/packages/_es/index.vue_vue_type_script_lang-cc5c4086.js +151 -0
  168. package/dist/packages/_es/index.vue_vue_type_script_lang-d4c88f85.js +97 -0
  169. package/dist/packages/_es/index.vue_vue_type_script_lang-f91aa3ff.js +50 -0
  170. package/dist/packages/_es/{interceptor-92c6157e.js → interceptor-5d3d8b0a.js} +2 -2
  171. package/dist/packages/_es/interceptor-956b24fc.js +29 -0
  172. package/dist/packages/_es/interceptor-bf7033c2.js +34 -0
  173. package/dist/packages/_es/interceptor-ccd1403c.js +34 -0
  174. package/dist/packages/_es/interceptor-dbee5851.js +34 -0
  175. package/dist/packages/_es/{mountComponent-b7bd982c.js → mountComponent-1316c4a2.js} +2 -2
  176. package/dist/packages/_es/mountComponent-1ece4110.js +39 -0
  177. package/dist/packages/_es/mountComponent-3f8ea19f.js +44 -0
  178. package/dist/packages/_es/{pxCheck-f4ea5980.js → pxCheck-110c0d58.js} +1 -1
  179. package/dist/packages/_es/pxCheck-42d1a00f.js +11 -0
  180. package/dist/packages/_es/pxCheck-62a0c829.js +11 -0
  181. package/dist/packages/_es/pxCheck-70f351cb.js +11 -0
  182. package/dist/packages/_es/pxCheck-c6b9f6b7.js +6 -0
  183. package/dist/packages/_es/{raf-9ea18668.js → raf-182636f4.js} +1 -1
  184. package/dist/packages/_es/raf-2ee3bcbb.js +30 -0
  185. package/dist/packages/_es/raf-6ea498df.js +21 -0
  186. package/dist/packages/_es/raf-729dad54.js +25 -0
  187. package/dist/packages/_es/raf-8518c796.js +21 -0
  188. package/dist/packages/_es/{renderIcon-e359b85f.js → renderIcon-0d8f6335.js} +1 -1
  189. package/dist/packages/_es/renderIcon-1be33355.js +14 -0
  190. package/dist/packages/_es/renderIcon-3d0fd47c.js +9 -0
  191. package/dist/packages/_es/renderIcon-ba0fcba3.js +14 -0
  192. package/dist/packages/_es/renderIcon-bde9e715.js +14 -0
  193. package/dist/packages/_es/style_icon-299fd467.js +6 -0
  194. package/dist/packages/_es/style_icon-8872f331.js +6 -0
  195. package/dist/packages/barrage/index.scss +17 -1
  196. package/dist/packages/cell/index.scss +3 -1
  197. package/dist/packages/locale/lang/baseLang-0bdc6353.js +5 -0
  198. package/dist/packages/locale/lang/{baseLang-b64fda03.js → baseLang-0e7bcba4.js} +1 -1
  199. package/dist/packages/locale/lang/baseLang-5db74119.js +10 -0
  200. package/dist/packages/locale/lang/baseLang-6070c617.js +10 -0
  201. package/dist/packages/locale/lang/baseLang-8d65df5e.js +10 -0
  202. package/dist/packages/locale/lang/en-US.js +1 -6
  203. package/dist/packages/locale/lang/id-ID.js +1 -6
  204. package/dist/packages/locale/lang/index.js +1 -6
  205. package/dist/packages/locale/lang/zh-CN.js +1 -6
  206. package/dist/packages/locale/lang/zh-TW.js +1 -6
  207. package/dist/packages/popover/index.scss +1 -1
  208. package/dist/packages/pullrefresh/index.scss +3 -2
  209. package/dist/smartips/attributes.json +19 -15
  210. package/dist/smartips/tags.json +3 -2
  211. package/dist/smartips/web-types.json +32 -23
  212. package/dist/style.css +1 -1
  213. package/dist/styles/themes/default.scss +59 -59
  214. package/dist/styles/themes/jdb.scss +59 -59
  215. package/dist/styles/themes/jddkh.scss +59 -59
  216. package/dist/styles/themes/jdt.scss +59 -59
  217. package/dist/types/__VUE/actionsheet/index.taro.vue.d.ts +292 -0
  218. package/dist/types/__VUE/address/index.taro.vue.d.ts +377 -0
  219. package/dist/types/__VUE/addresslist/index.taro.vue.d.ts +83 -0
  220. package/dist/types/__VUE/animate/index.taro.vue.d.ts +54 -0
  221. package/dist/types/__VUE/avatar/index.taro.vue.d.ts +76 -0
  222. package/dist/types/__VUE/avatargroup/index.taro.vue.d.ts +92 -0
  223. package/dist/types/__VUE/backtop/index.taro.vue.d.ts +76 -0
  224. package/dist/types/__VUE/badge/index.taro.vue.d.ts +93 -0
  225. package/dist/types/__VUE/barrage/index.taro.vue.d.ts +81 -0
  226. package/dist/types/__VUE/barrage/index.vue.d.ts +0 -1
  227. package/dist/types/__VUE/button/index.taro.vue.d.ts +117 -0
  228. package/dist/types/__VUE/calendar/index.taro.vue.d.ts +187 -0
  229. package/dist/types/__VUE/calendaritem/index.taro.vue.d.ts +217 -0
  230. package/dist/types/__VUE/card/index.taro.vue.d.ts +89 -0
  231. package/dist/types/__VUE/cascader/cascader-item.taro.vue.d.ts +77 -0
  232. package/dist/types/__VUE/cascader/index.taro.vue.d.ts +245 -0
  233. package/dist/types/__VUE/category/index.taro.vue.d.ts +42 -0
  234. package/dist/types/__VUE/categorypane/index.taro.vue.d.ts +54 -0
  235. package/dist/types/__VUE/cell/index.taro.vue.d.ts +124 -0
  236. package/dist/types/__VUE/checkbox/index.taro.vue.d.ts +12 -0
  237. package/dist/types/__VUE/circleprogress/index.taro.vue.d.ts +93 -0
  238. package/dist/types/__VUE/collapse/index.taro.vue.d.ts +38 -0
  239. package/dist/types/__VUE/collapseitem/index.taro.vue.d.ts +111 -0
  240. package/dist/types/__VUE/comment/index.taro.vue.d.ts +119 -0
  241. package/dist/types/__VUE/configprovider/index.taro.vue.d.ts +45 -0
  242. package/dist/types/__VUE/countdown/index.taro.vue.d.ts +103 -0
  243. package/dist/types/__VUE/countup/index.taro.vue.d.ts +213 -0
  244. package/dist/types/__VUE/datepicker/index.taro.vue.d.ts +232 -0
  245. package/dist/types/__VUE/dialog/index.taro.vue.d.ts +327 -0
  246. package/dist/types/__VUE/divider/index.taro.vue.d.ts +53 -0
  247. package/dist/types/__VUE/drag/index.taro.vue.d.ts +62 -0
  248. package/dist/types/__VUE/ecard/index.taro.vue.d.ts +128 -0
  249. package/dist/types/__VUE/elevator/index.taro.vue.d.ts +119 -0
  250. package/dist/types/__VUE/ellipsis/index.taro.vue.d.ts +103 -0
  251. package/dist/types/__VUE/empty/index.taro.vue.d.ts +46 -0
  252. package/dist/types/__VUE/fixednav/index.taro.vue.d.ts +105 -0
  253. package/dist/types/__VUE/form/index.taro.vue.d.ts +40 -0
  254. package/dist/types/__VUE/formitem/index.taro.vue.d.ts +114 -0
  255. package/dist/types/__VUE/grid/index.taro.vue.d.ts +84 -0
  256. package/dist/types/__VUE/griditem/index.taro.vue.d.ts +22 -0
  257. package/dist/types/__VUE/icon/index.taro.vue.d.ts +12 -0
  258. package/dist/types/__VUE/image/index.taro.vue.d.ts +32 -0
  259. package/dist/types/__VUE/imagepreview/index.taro.vue.d.ts +172 -0
  260. package/dist/types/__VUE/imagepreview/index.vue.d.ts +0 -9
  261. package/dist/types/__VUE/indicator/index.taro.vue.d.ts +70 -0
  262. package/dist/types/__VUE/input/index.taro.vue.d.ts +257 -0
  263. package/dist/types/__VUE/inputnumber/index.taro.vue.d.ts +116 -0
  264. package/dist/types/__VUE/invoice/index.taro.vue.d.ts +52 -0
  265. package/dist/types/__VUE/layout/index.taro.vue.d.ts +12 -0
  266. package/dist/types/__VUE/list/index.taro.vue.d.ts +58 -0
  267. package/dist/types/__VUE/menu/index.taro.vue.d.ts +93 -0
  268. package/dist/types/__VUE/menuitem/index.taro.vue.d.ts +89 -0
  269. package/dist/types/__VUE/navbar/index.taro.vue.d.ts +121 -0
  270. package/dist/types/__VUE/noticebar/index.taro.vue.d.ts +217 -0
  271. package/dist/types/__VUE/notify/index.taro.vue.d.ts +97 -0
  272. package/dist/types/__VUE/numberkeyboard/index.taro.vue.d.ts +132 -0
  273. package/dist/types/__VUE/overlay/index.taro.vue.d.ts +85 -0
  274. package/dist/types/__VUE/pagination/index.taro.vue.d.ts +111 -0
  275. package/dist/types/__VUE/picker/index.taro.vue.d.ts +14 -0
  276. package/dist/types/__VUE/popover/index.taro.vue.d.ts +201 -0
  277. package/dist/types/__VUE/popup/index.taro.vue.d.ts +201 -0
  278. package/dist/types/__VUE/price/index.taro.vue.d.ts +87 -0
  279. package/dist/types/__VUE/progress/index.taro.vue.d.ts +128 -0
  280. package/dist/types/__VUE/radio/index.taro.vue.d.ts +53 -0
  281. package/dist/types/__VUE/range/index.taro.vue.d.ts +158 -0
  282. package/dist/types/__VUE/rate/index.taro.vue.d.ts +124 -0
  283. package/dist/types/__VUE/scrollView/index.taro.vue.d.ts +14 -0
  284. package/dist/types/__VUE/searchbar/index.taro.vue.d.ts +177 -0
  285. package/dist/types/__VUE/shortpassword/index.taro.vue.d.ts +103 -0
  286. package/dist/types/__VUE/sidenavbar/index.taro.vue.d.ts +31 -0
  287. package/dist/types/__VUE/signature/index.taro.vue.d.ts +83 -0
  288. package/dist/types/__VUE/skeleton/index.taro.vue.d.ts +115 -0
  289. package/dist/types/__VUE/sku/index.taro.vue.d.ts +182 -0
  290. package/dist/types/__VUE/steps/index.taro.vue.d.ts +46 -0
  291. package/dist/types/__VUE/sticky/index.taro.vue.d.ts +47 -0
  292. package/dist/types/__VUE/swipe/index.taro.vue.d.ts +71 -0
  293. package/dist/types/__VUE/swiper/index.taro.vue.d.ts +176 -0
  294. package/dist/types/__VUE/swiper/index.vue.d.ts +8 -7
  295. package/dist/types/__VUE/swiperitem/index.taro.vue.d.ts +18 -0
  296. package/dist/types/__VUE/switch/index.taro.vue.d.ts +108 -0
  297. package/dist/types/__VUE/tabbar/index.taro.vue.d.ts +93 -0
  298. package/dist/types/__VUE/tabbaritem/index.taro.vue.d.ts +59 -0
  299. package/dist/types/__VUE/table/index.taro.vue.d.ts +78 -0
  300. package/dist/types/__VUE/tabs/index.taro.vue.d.ts +164 -0
  301. package/dist/types/__VUE/tag/index.taro.vue.d.ts +90 -0
  302. package/dist/types/__VUE/textarea/index.taro.vue.d.ts +122 -0
  303. package/dist/types/__VUE/timedetail/index.taro.vue.d.ts +47 -0
  304. package/dist/types/__VUE/timepannel/index.taro.vue.d.ts +42 -0
  305. package/dist/types/__VUE/timeselect/index.taro.vue.d.ts +91 -0
  306. package/dist/types/__VUE/toast/index.taro.vue.d.ts +184 -0
  307. package/dist/types/__VUE/tour/index.taro.vue.d.ts +192 -0
  308. package/dist/types/__VUE/trendarrow/index.taro.vue.d.ts +105 -0
  309. package/dist/types/__VUE/uploader/index.taro.vue.d.ts +260 -0
  310. package/dist/types/__VUE/watermark/index.taro.vue.d.ts +175 -0
  311. package/dist/types/index.d.ts +1 -1
  312. package/package.json +5 -46
@@ -0,0 +1,156 @@
1
+ /*!
2
+ * @nutui/nutui v4.0.0-beta.6 Thu Dec 29 2022 18:47:23 GMT+0800 (中国标准时间)
3
+ * (c) 2022 @jdf2e.
4
+ * Released under the MIT License.
5
+ */
6
+ import { ref, reactive, computed, watch, onMounted, onUnmounted, h, unref } from "vue";
7
+ import { c as createComponent } from "./component-555f9132.js";
8
+ import { u as useRect } from "./index-bd90ef5b.js";
9
+ const { componentName, create } = createComponent("sticky");
10
+ const _sfc_main = create({
11
+ props: {
12
+ position: {
13
+ type: String,
14
+ default: "top"
15
+ },
16
+ top: {
17
+ type: [Number, String],
18
+ default: 0
19
+ },
20
+ bottom: {
21
+ type: [Number, String],
22
+ default: 0
23
+ },
24
+ container: {
25
+ type: Object
26
+ },
27
+ zIndex: {
28
+ type: [Number, String],
29
+ default: 2e3
30
+ }
31
+ },
32
+ emits: ["change", "scroll"],
33
+ setup(props, { emit, slots }) {
34
+ const root = ref();
35
+ const state = reactive({
36
+ width: 0,
37
+ height: 0,
38
+ fixed: false,
39
+ transform: 0
40
+ });
41
+ const rootStyle = computed(() => {
42
+ const { fixed, width, height } = state;
43
+ if (fixed) {
44
+ return {
45
+ width: `${width}px`,
46
+ height: `${height}px`
47
+ };
48
+ }
49
+ });
50
+ const stickyStyle = computed(() => {
51
+ if (!state.fixed)
52
+ return;
53
+ const style = {
54
+ width: `${state.width}px`,
55
+ height: `${state.height}px`,
56
+ [props.position]: `${offset.value}px`,
57
+ zIndex: +props.zIndex
58
+ };
59
+ if (state.transform)
60
+ style.transform = `translate3d(0, ${state.transform}px, 0)`;
61
+ return style;
62
+ });
63
+ const offset = computed(() => {
64
+ return props.position === "top" ? props.top : props.bottom;
65
+ });
66
+ const isHidden = (elementRef) => {
67
+ const el = unref(elementRef);
68
+ if (!el)
69
+ return false;
70
+ const style = window.getComputedStyle(el);
71
+ const hidden = style.display === "none";
72
+ const parentHidden = el.offsetParent === null && style.position !== "fixed";
73
+ return hidden || parentHidden;
74
+ };
75
+ const isExistRoot = () => {
76
+ if (!root.value || isHidden(root))
77
+ return false;
78
+ return true;
79
+ };
80
+ const getScrollTop = (el) => {
81
+ return Math.max(0, "scrollTop" in el ? el.scrollTop : el.pageYOffset);
82
+ };
83
+ const renderFixed = () => {
84
+ var _a;
85
+ return h(
86
+ "view",
87
+ {
88
+ style: stickyStyle.value,
89
+ class: state.fixed ? `${componentName} nut-sticky--fixed` : componentName
90
+ },
91
+ (_a = slots.default) == null ? void 0 : _a.call(slots)
92
+ );
93
+ };
94
+ const onScroll = () => {
95
+ if (!isExistRoot())
96
+ return;
97
+ const { container, position } = props;
98
+ const scrollTop = getScrollTop(window);
99
+ const rootRect = useRect(root);
100
+ if (rootRect.width || rootRect.height) {
101
+ state.width = rootRect.width;
102
+ state.height = rootRect.height;
103
+ }
104
+ if (position === "top") {
105
+ if (container) {
106
+ const containerRect = useRect(container);
107
+ const diff = containerRect.bottom - +offset.value - state.height;
108
+ state.fixed = +offset.value > rootRect.top && containerRect.bottom > 0;
109
+ state.transform = diff < 0 ? diff : 0;
110
+ } else {
111
+ state.fixed = offset.value > rootRect.top;
112
+ }
113
+ } else if (position === "bottom") {
114
+ const clientHeight = document.documentElement.clientHeight;
115
+ if (container) {
116
+ const containerRect = useRect(container);
117
+ const diff = clientHeight - containerRect.top - +offset.value - state.height;
118
+ state.fixed = clientHeight - +offset.value < rootRect.bottom && clientHeight > containerRect.top;
119
+ state.transform = diff < 0 ? -diff : 0;
120
+ } else {
121
+ state.fixed = clientHeight - +offset.value < rootRect.bottom;
122
+ }
123
+ }
124
+ emit("scroll", {
125
+ top: scrollTop,
126
+ fixed: state.fixed
127
+ });
128
+ };
129
+ watch(
130
+ () => state.fixed,
131
+ (val) => {
132
+ emit("change", val);
133
+ }
134
+ );
135
+ onMounted(() => {
136
+ window.addEventListener("scroll", onScroll);
137
+ onScroll();
138
+ });
139
+ onUnmounted(() => {
140
+ window.removeEventListener("scroll", onScroll);
141
+ });
142
+ return () => {
143
+ return h(
144
+ "view",
145
+ {
146
+ style: rootStyle.value,
147
+ ref: root
148
+ },
149
+ [renderFixed()]
150
+ );
151
+ };
152
+ }
153
+ });
154
+ export {
155
+ _sfc_main as _
156
+ };
@@ -0,0 +1,50 @@
1
+ /*!
2
+ * @nutui/nutui v4.0.0-beta.6 Thu Dec 29 2022 18:47:23 GMT+0800 (中国标准时间)
3
+ * (c) 2022 @jdf2e.
4
+ * Released under the MIT License.
5
+ */
6
+ import { provide, readonly, computed, watch, h } from "vue";
7
+ import { c as createComponent } from "./component-555f9132.js";
8
+ const { componentName, create } = createComponent("radio-group");
9
+ const _sfc_main = create({
10
+ props: {
11
+ modelValue: {
12
+ type: [Number, String, Boolean],
13
+ default: ""
14
+ },
15
+ direction: {
16
+ type: String,
17
+ default: "vertical"
18
+ },
19
+ textPosition: {
20
+ type: String,
21
+ default: "right"
22
+ }
23
+ },
24
+ emits: ["change", "update:modelValue"],
25
+ setup(props, { emit, slots }) {
26
+ const updateValue = (value) => emit("update:modelValue", value);
27
+ provide("parent", {
28
+ label: readonly(computed(() => props.modelValue)),
29
+ position: props.textPosition,
30
+ updateValue
31
+ });
32
+ watch(
33
+ () => props.modelValue,
34
+ (value) => emit("change", value)
35
+ );
36
+ return () => {
37
+ var _a;
38
+ return h(
39
+ "view",
40
+ {
41
+ class: `${componentName} ${componentName}--${props.direction}`
42
+ },
43
+ (_a = slots.default) == null ? void 0 : _a.call(slots)
44
+ );
45
+ };
46
+ }
47
+ });
48
+ export {
49
+ _sfc_main as _
50
+ };
@@ -0,0 +1,50 @@
1
+ /*!
2
+ * @nutui/nutui v4.0.0-beta.6 Thu Dec 29 2022 18:41:23 GMT+0800 (中国标准时间)
3
+ * (c) 2022 @jdf2e.
4
+ * Released under the MIT License.
5
+ */
6
+ import { provide, readonly, computed, watch, h } from "vue";
7
+ import { c as createComponent } from "./component-cb778481.js";
8
+ const { componentName, create } = createComponent("radio-group");
9
+ const _sfc_main = create({
10
+ props: {
11
+ modelValue: {
12
+ type: [Number, String, Boolean],
13
+ default: ""
14
+ },
15
+ direction: {
16
+ type: String,
17
+ default: "vertical"
18
+ },
19
+ textPosition: {
20
+ type: String,
21
+ default: "right"
22
+ }
23
+ },
24
+ emits: ["change", "update:modelValue"],
25
+ setup(props, { emit, slots }) {
26
+ const updateValue = (value) => emit("update:modelValue", value);
27
+ provide("parent", {
28
+ label: readonly(computed(() => props.modelValue)),
29
+ position: props.textPosition,
30
+ updateValue
31
+ });
32
+ watch(
33
+ () => props.modelValue,
34
+ (value) => emit("change", value)
35
+ );
36
+ return () => {
37
+ var _a;
38
+ return h(
39
+ "view",
40
+ {
41
+ class: `${componentName} ${componentName}--${props.direction}`
42
+ },
43
+ (_a = slots.default) == null ? void 0 : _a.call(slots)
44
+ );
45
+ };
46
+ }
47
+ });
48
+ export {
49
+ _sfc_main as _
50
+ };
@@ -0,0 +1,102 @@
1
+ /*!
2
+ * @nutui/nutui v4.0.0-beta.6 Thu Dec 29 2022 18:41:23 GMT+0800 (中国标准时间)
3
+ * (c) 2022 @jdf2e.
4
+ * Released under the MIT License.
5
+ */
6
+ import { inject, computed, h } from "vue";
7
+ import { c as createComponent } from "./component-cb778481.js";
8
+ import { CheckNormal, CheckChecked } from "@nutui/icons-vue";
9
+ import { p as pxCheck } from "./pxCheck-42d1a00f.js";
10
+ const { componentName, create } = createComponent("radio");
11
+ const _sfc_main = create({
12
+ components: {
13
+ CheckNormal,
14
+ CheckChecked
15
+ },
16
+ props: {
17
+ disabled: {
18
+ type: Boolean,
19
+ default: false
20
+ },
21
+ shape: {
22
+ type: String,
23
+ default: "round"
24
+ },
25
+ label: {
26
+ type: [String, Number, Boolean],
27
+ default: ""
28
+ },
29
+ iconSize: {
30
+ type: [String, Number],
31
+ default: ""
32
+ }
33
+ },
34
+ setup(props, { emit, slots }) {
35
+ let parent = inject("parent", null);
36
+ const isCurValue = computed(() => {
37
+ return parent.label.value === props.label;
38
+ });
39
+ const color = computed(() => {
40
+ return !props.disabled ? isCurValue.value ? "nut-radio__icon" : "nut-radio__icon--unchecked" : "nut-radio__icon--disable";
41
+ });
42
+ const position = computed(() => {
43
+ return parent.position;
44
+ });
45
+ const renderIcon = () => {
46
+ const { iconSize } = props;
47
+ const iconNodeMap = {
48
+ CheckNormal: slots.icon ? slots.icon : CheckNormal,
49
+ Checked: slots.checkedIcon ? slots.checkedIcon : CheckChecked
50
+ };
51
+ const iconNode = !isCurValue.value ? iconNodeMap.CheckNormal : iconNodeMap.Checked;
52
+ const size = pxCheck(iconSize);
53
+ return h(iconNode, {
54
+ width: size,
55
+ height: size,
56
+ size,
57
+ class: color.value
58
+ });
59
+ };
60
+ const renderLabel = () => {
61
+ var _a;
62
+ return h(
63
+ "view",
64
+ {
65
+ class: `${componentName}__label ${props.disabled ? `${componentName}__label--disabled` : ""}`
66
+ },
67
+ (_a = slots.default) == null ? void 0 : _a.call(slots)
68
+ );
69
+ };
70
+ const renderButton = () => {
71
+ var _a;
72
+ return h(
73
+ "view",
74
+ {
75
+ class: `${componentName}__button ${isCurValue.value && `${componentName}__button--active`} ${props.disabled ? `${componentName}__button--disabled` : ""}`
76
+ },
77
+ (_a = slots.default) == null ? void 0 : _a.call(slots)
78
+ );
79
+ };
80
+ const handleClick = () => {
81
+ if (isCurValue.value || props.disabled)
82
+ return;
83
+ parent.updateValue(props.label);
84
+ };
85
+ let reverseState = position.value === "left";
86
+ return () => {
87
+ return h(
88
+ "view",
89
+ {
90
+ class: `${componentName} ${componentName}--${props.shape} ${reverseState ? `${componentName}--reverse` : ""}`,
91
+ onClick: handleClick
92
+ },
93
+ [
94
+ props.shape == "button" ? renderButton() : reverseState ? [renderLabel(), renderIcon()] : [renderIcon(), renderLabel()]
95
+ ]
96
+ );
97
+ };
98
+ }
99
+ });
100
+ export {
101
+ _sfc_main as _
102
+ };
@@ -0,0 +1,151 @@
1
+ import { ref, reactive, computed, watch, onMounted, onUnmounted, h, unref } from "vue";
2
+ import { c as createComponent } from "./component-81a4c1d0.js";
3
+ import { u as useRect } from "./index-29892cda.js";
4
+ const { componentName, create } = createComponent("sticky");
5
+ const _sfc_main = create({
6
+ props: {
7
+ position: {
8
+ type: String,
9
+ default: "top"
10
+ },
11
+ top: {
12
+ type: [Number, String],
13
+ default: 0
14
+ },
15
+ bottom: {
16
+ type: [Number, String],
17
+ default: 0
18
+ },
19
+ container: {
20
+ type: Object
21
+ },
22
+ zIndex: {
23
+ type: [Number, String],
24
+ default: 2e3
25
+ }
26
+ },
27
+ emits: ["change", "scroll"],
28
+ setup(props, { emit, slots }) {
29
+ const root = ref();
30
+ const state = reactive({
31
+ width: 0,
32
+ height: 0,
33
+ fixed: false,
34
+ transform: 0
35
+ });
36
+ const rootStyle = computed(() => {
37
+ const { fixed, width, height } = state;
38
+ if (fixed) {
39
+ return {
40
+ width: `${width}px`,
41
+ height: `${height}px`
42
+ };
43
+ }
44
+ });
45
+ const stickyStyle = computed(() => {
46
+ if (!state.fixed)
47
+ return;
48
+ const style = {
49
+ width: `${state.width}px`,
50
+ height: `${state.height}px`,
51
+ [props.position]: `${offset.value}px`,
52
+ zIndex: +props.zIndex
53
+ };
54
+ if (state.transform)
55
+ style.transform = `translate3d(0, ${state.transform}px, 0)`;
56
+ return style;
57
+ });
58
+ const offset = computed(() => {
59
+ return props.position === "top" ? props.top : props.bottom;
60
+ });
61
+ const isHidden = (elementRef) => {
62
+ const el = unref(elementRef);
63
+ if (!el)
64
+ return false;
65
+ const style = window.getComputedStyle(el);
66
+ const hidden = style.display === "none";
67
+ const parentHidden = el.offsetParent === null && style.position !== "fixed";
68
+ return hidden || parentHidden;
69
+ };
70
+ const isExistRoot = () => {
71
+ if (!root.value || isHidden(root))
72
+ return false;
73
+ return true;
74
+ };
75
+ const getScrollTop = (el) => {
76
+ return Math.max(0, "scrollTop" in el ? el.scrollTop : el.pageYOffset);
77
+ };
78
+ const renderFixed = () => {
79
+ var _a;
80
+ return h(
81
+ "view",
82
+ {
83
+ style: stickyStyle.value,
84
+ class: state.fixed ? `${componentName} nut-sticky--fixed` : componentName
85
+ },
86
+ (_a = slots.default) == null ? void 0 : _a.call(slots)
87
+ );
88
+ };
89
+ const onScroll = () => {
90
+ if (!isExistRoot())
91
+ return;
92
+ const { container, position } = props;
93
+ const scrollTop = getScrollTop(window);
94
+ const rootRect = useRect(root);
95
+ if (rootRect.width || rootRect.height) {
96
+ state.width = rootRect.width;
97
+ state.height = rootRect.height;
98
+ }
99
+ if (position === "top") {
100
+ if (container) {
101
+ const containerRect = useRect(container);
102
+ const diff = containerRect.bottom - +offset.value - state.height;
103
+ state.fixed = +offset.value > rootRect.top && containerRect.bottom > 0;
104
+ state.transform = diff < 0 ? diff : 0;
105
+ } else {
106
+ state.fixed = offset.value > rootRect.top;
107
+ }
108
+ } else if (position === "bottom") {
109
+ const clientHeight = document.documentElement.clientHeight;
110
+ if (container) {
111
+ const containerRect = useRect(container);
112
+ const diff = clientHeight - containerRect.top - +offset.value - state.height;
113
+ state.fixed = clientHeight - +offset.value < rootRect.bottom && clientHeight > containerRect.top;
114
+ state.transform = diff < 0 ? -diff : 0;
115
+ } else {
116
+ state.fixed = clientHeight - +offset.value < rootRect.bottom;
117
+ }
118
+ }
119
+ emit("scroll", {
120
+ top: scrollTop,
121
+ fixed: state.fixed
122
+ });
123
+ };
124
+ watch(
125
+ () => state.fixed,
126
+ (val) => {
127
+ emit("change", val);
128
+ }
129
+ );
130
+ onMounted(() => {
131
+ window.addEventListener("scroll", onScroll);
132
+ onScroll();
133
+ });
134
+ onUnmounted(() => {
135
+ window.removeEventListener("scroll", onScroll);
136
+ });
137
+ return () => {
138
+ return h(
139
+ "view",
140
+ {
141
+ style: rootStyle.value,
142
+ ref: root
143
+ },
144
+ [renderFixed()]
145
+ );
146
+ };
147
+ }
148
+ });
149
+ export {
150
+ _sfc_main as _
151
+ };
@@ -0,0 +1,97 @@
1
+ import { inject, computed, h } from "vue";
2
+ import { c as createComponent } from "./component-81a4c1d0.js";
3
+ import { CheckNormal, CheckChecked } from "@nutui/icons-vue";
4
+ import { p as pxCheck } from "./pxCheck-c6b9f6b7.js";
5
+ const { componentName, create } = createComponent("radio");
6
+ const _sfc_main = create({
7
+ components: {
8
+ CheckNormal,
9
+ CheckChecked
10
+ },
11
+ props: {
12
+ disabled: {
13
+ type: Boolean,
14
+ default: false
15
+ },
16
+ shape: {
17
+ type: String,
18
+ default: "round"
19
+ },
20
+ label: {
21
+ type: [String, Number, Boolean],
22
+ default: ""
23
+ },
24
+ iconSize: {
25
+ type: [String, Number],
26
+ default: ""
27
+ }
28
+ },
29
+ setup(props, { emit, slots }) {
30
+ let parent = inject("parent", null);
31
+ const isCurValue = computed(() => {
32
+ return parent.label.value === props.label;
33
+ });
34
+ const color = computed(() => {
35
+ return !props.disabled ? isCurValue.value ? "nut-radio__icon" : "nut-radio__icon--unchecked" : "nut-radio__icon--disable";
36
+ });
37
+ const position = computed(() => {
38
+ return parent.position;
39
+ });
40
+ const renderIcon = () => {
41
+ const { iconSize } = props;
42
+ const iconNodeMap = {
43
+ CheckNormal: slots.icon ? slots.icon : CheckNormal,
44
+ Checked: slots.checkedIcon ? slots.checkedIcon : CheckChecked
45
+ };
46
+ const iconNode = !isCurValue.value ? iconNodeMap.CheckNormal : iconNodeMap.Checked;
47
+ const size = pxCheck(iconSize);
48
+ return h(iconNode, {
49
+ width: size,
50
+ height: size,
51
+ size,
52
+ class: color.value
53
+ });
54
+ };
55
+ const renderLabel = () => {
56
+ var _a;
57
+ return h(
58
+ "view",
59
+ {
60
+ class: `${componentName}__label ${props.disabled ? `${componentName}__label--disabled` : ""}`
61
+ },
62
+ (_a = slots.default) == null ? void 0 : _a.call(slots)
63
+ );
64
+ };
65
+ const renderButton = () => {
66
+ var _a;
67
+ return h(
68
+ "view",
69
+ {
70
+ class: `${componentName}__button ${isCurValue.value && `${componentName}__button--active`} ${props.disabled ? `${componentName}__button--disabled` : ""}`
71
+ },
72
+ (_a = slots.default) == null ? void 0 : _a.call(slots)
73
+ );
74
+ };
75
+ const handleClick = () => {
76
+ if (isCurValue.value || props.disabled)
77
+ return;
78
+ parent.updateValue(props.label);
79
+ };
80
+ let reverseState = position.value === "left";
81
+ return () => {
82
+ return h(
83
+ "view",
84
+ {
85
+ class: `${componentName} ${componentName}--${props.shape} ${reverseState ? `${componentName}--reverse` : ""}`,
86
+ onClick: handleClick
87
+ },
88
+ [
89
+ props.shape == "button" ? renderButton() : reverseState ? [renderLabel(), renderIcon()] : [renderIcon(), renderLabel()]
90
+ ]
91
+ );
92
+ };
93
+ }
94
+ });
95
+ export {
96
+ _sfc_main as _
97
+ };
@@ -0,0 +1,50 @@
1
+ /*!
2
+ * @nutui/nutui v4.0.0-beta.6 Thu Dec 29 2022 13:26:55 GMT+0800 (中国标准时间)
3
+ * (c) 2022 @jdf2e.
4
+ * Released under the MIT License.
5
+ */
6
+ import { provide, readonly, computed, watch, h } from "vue";
7
+ import { c as createComponent } from "./component-f9e4b05e.js";
8
+ const { componentName, create } = createComponent("radio-group");
9
+ const _sfc_main = create({
10
+ props: {
11
+ modelValue: {
12
+ type: [Number, String, Boolean],
13
+ default: ""
14
+ },
15
+ direction: {
16
+ type: String,
17
+ default: "vertical"
18
+ },
19
+ textPosition: {
20
+ type: String,
21
+ default: "right"
22
+ }
23
+ },
24
+ emits: ["change", "update:modelValue"],
25
+ setup(props, { emit, slots }) {
26
+ const updateValue = (value) => emit("update:modelValue", value);
27
+ provide("parent", {
28
+ label: readonly(computed(() => props.modelValue)),
29
+ position: props.textPosition,
30
+ updateValue
31
+ });
32
+ watch(
33
+ () => props.modelValue,
34
+ (value) => emit("change", value)
35
+ );
36
+ return () => {
37
+ var _a;
38
+ return h(
39
+ "view",
40
+ {
41
+ class: `${componentName} ${componentName}--${props.direction}`
42
+ },
43
+ (_a = slots.default) == null ? void 0 : _a.call(slots)
44
+ );
45
+ };
46
+ }
47
+ });
48
+ export {
49
+ _sfc_main as _
50
+ };
@@ -1,9 +1,9 @@
1
1
  /*!
2
- * @nutui/nutui v4.0.0-beta.6 Thu Dec 29 2022 12:45:06 GMT+0800 (中国标准时间)
2
+ * @nutui/nutui v4.0.0-beta.6 Thu Dec 29 2022 18:38:20 GMT+0800 (中国标准时间)
3
3
  * (c) 2022 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
6
- import { f as isPromise } from "./component-2bf83b98.js";
6
+ import { e as isPromise } from "./component-93f40b7f.js";
7
7
  const funInterceptor = (interceptor, {
8
8
  args = [],
9
9
  done,
@@ -0,0 +1,29 @@
1
+ import { f as isPromise } from "./component-81a4c1d0.js";
2
+ const funInterceptor = (interceptor, {
3
+ args = [],
4
+ done,
5
+ canceled
6
+ }) => {
7
+ if (interceptor) {
8
+ const returnVal = interceptor.apply(null, args);
9
+ if (isPromise(returnVal)) {
10
+ returnVal.then((value) => {
11
+ if (value) {
12
+ done(value);
13
+ } else if (canceled) {
14
+ canceled();
15
+ }
16
+ }).catch(() => {
17
+ });
18
+ } else if (returnVal) {
19
+ done();
20
+ } else if (canceled) {
21
+ canceled();
22
+ }
23
+ } else {
24
+ done();
25
+ }
26
+ };
27
+ export {
28
+ funInterceptor as f
29
+ };