@nutui/nutui 3.1.21-beta.0 → 3.1.21-beta.3

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 (385) hide show
  1. package/dist/nutui.es.js +18294 -0
  2. package/dist/nutui.umd.js +18398 -0
  3. package/dist/packages/_es/ActionSheet.js +175 -0
  4. package/dist/packages/_es/Address.js +568 -0
  5. package/dist/packages/_es/AddressList.js +616 -0
  6. package/dist/packages/_es/Audio.js +290 -0
  7. package/dist/packages/_es/AudioOperate.js +126 -0
  8. package/dist/packages/_es/Avatar.js +183 -0
  9. package/dist/packages/_es/AvatarGroup.js +78 -0
  10. package/dist/packages/_es/BackTop.js +163 -0
  11. package/dist/packages/_es/Badge.js +91 -0
  12. package/dist/packages/_es/Barrage.js +119 -0
  13. package/dist/packages/_es/Button.js +134 -0
  14. package/dist/packages/_es/Calendar.js +243 -0
  15. package/dist/packages/_es/CalendarItem.js +11 -0
  16. package/dist/packages/_es/Card.js +112 -0
  17. package/dist/packages/_es/Cascader.js +546 -0
  18. package/dist/packages/_es/Category.js +63 -0
  19. package/dist/packages/_es/CategoryPane.js +116 -0
  20. package/dist/packages/_es/Cell.js +103 -0
  21. package/dist/packages/_es/CellGroup.js +49 -0
  22. package/dist/packages/_es/Checkbox.js +120 -0
  23. package/dist/packages/_es/CheckboxGroup.js +63 -0
  24. package/dist/packages/_es/CircleProgress.js +156 -0
  25. package/dist/packages/_es/Col.js +61 -0
  26. package/dist/packages/_es/Collapse.js +90 -0
  27. package/dist/packages/_es/CollapseItem.js +279 -0
  28. package/dist/packages/_es/Comment.js +440 -0
  29. package/dist/packages/_es/CountDown.js +264 -0
  30. package/dist/packages/_es/CountUp.js +568 -0
  31. package/dist/packages/_es/DatePicker.js +343 -0
  32. package/dist/packages/_es/Dialog.js +286 -0
  33. package/dist/packages/_es/Divider.js +50 -0
  34. package/dist/packages/_es/Drag.js +204 -0
  35. package/dist/packages/_es/Ecard.js +164 -0
  36. package/dist/packages/_es/Elevator.js +215 -0
  37. package/dist/packages/_es/Empty.js +76 -0
  38. package/dist/packages/_es/FixedNav.js +127 -0
  39. package/dist/packages/_es/Form.js +153 -0
  40. package/dist/packages/_es/FormItem.js +115 -0
  41. package/dist/packages/_es/Grid.js +13 -0
  42. package/dist/packages/_es/GridItem.js +150 -0
  43. package/dist/packages/_es/Icon.js +45 -0
  44. package/dist/packages/_es/ImagePreview.js +326 -0
  45. package/dist/packages/_es/Indicator.js +67 -0
  46. package/dist/packages/_es/InfiniteLoading.js +275 -0
  47. package/dist/packages/_es/Input.js +420 -0
  48. package/dist/packages/_es/InputNumber.js +165 -0
  49. package/dist/packages/_es/Layout.js +11 -0
  50. package/dist/packages/_es/List.js +128 -0
  51. package/dist/packages/_es/Menu.js +120 -0
  52. package/dist/packages/_es/MenuItem.js +169 -0
  53. package/dist/packages/_es/Navbar.js +100 -0
  54. package/dist/packages/_es/NoticeBar.js +404 -0
  55. package/dist/packages/_es/Notify.js +255 -0
  56. package/dist/packages/_es/NumberKeyboard.js +268 -0
  57. package/dist/packages/_es/OldPicker.js +485 -0
  58. package/dist/packages/_es/OverLay.js +119 -0
  59. package/dist/packages/_es/Pagination.js +165 -0
  60. package/dist/packages/_es/Picker.js +477 -0
  61. package/dist/packages/_es/Popover.js +208 -0
  62. package/dist/packages/_es/Popup.js +317 -0
  63. package/dist/packages/_es/Price.js +123 -0
  64. package/dist/packages/_es/Progress.js +151 -0
  65. package/dist/packages/_es/PullRefresh.js +364 -0
  66. package/dist/packages/_es/Radio.js +96 -0
  67. package/dist/packages/_es/RadioGroup.js +42 -0
  68. package/dist/packages/_es/Range.js +433 -0
  69. package/dist/packages/_es/Rate.js +144 -0
  70. package/dist/packages/_es/Row.js +69 -0
  71. package/dist/packages/_es/SearchBar.js +196 -0
  72. package/dist/packages/_es/ShortPassword.js +231 -0
  73. package/dist/packages/_es/SideNavBar.js +105 -0
  74. package/dist/packages/_es/SideNavBarItem.js +51 -0
  75. package/dist/packages/_es/Signature.js +185 -0
  76. package/dist/packages/_es/Skeleton.js +141 -0
  77. package/dist/packages/_es/Sku.js +517 -0
  78. package/dist/packages/_es/Step.js +138 -0
  79. package/dist/packages/_es/Steps.js +58 -0
  80. package/dist/packages/_es/Sticky.js +144 -0
  81. package/dist/packages/_es/SubSideNavBar.js +105 -0
  82. package/dist/packages/_es/Swipe.js +207 -0
  83. package/dist/packages/_es/Swiper.js +430 -0
  84. package/dist/packages/_es/SwiperItem.js +55 -0
  85. package/dist/packages/_es/Switch.js +121 -0
  86. package/dist/packages/_es/TabPane.js +40 -0
  87. package/dist/packages/_es/Tabbar.js +78 -0
  88. package/dist/packages/_es/TabbarItem.js +158 -0
  89. package/dist/packages/_es/Table.js +201 -0
  90. package/dist/packages/_es/Tabs.js +221 -0
  91. package/dist/packages/_es/Tag.js +102 -0
  92. package/dist/packages/_es/TextArea.js +166 -0
  93. package/dist/packages/_es/TimeDetail.js +103 -0
  94. package/dist/packages/_es/TimePannel.js +71 -0
  95. package/dist/packages/_es/TimeSelect.js +108 -0
  96. package/dist/packages/_es/Toast.js +335 -0
  97. package/dist/packages/_es/Uploader.js +494 -0
  98. package/dist/packages/_es/Video.js +357 -0
  99. package/dist/packages/_es/common.js +136 -0
  100. package/dist/packages/_es/component.js +102 -0
  101. package/dist/packages/_es/index.js +11 -0
  102. package/dist/packages/_es/index2.js +36 -0
  103. package/dist/packages/_es/index3.js +13 -0
  104. package/dist/packages/_es/index4.js +64 -0
  105. package/dist/packages/_es/index5.js +692 -0
  106. package/dist/packages/_es/plugin-vue_export-helper.js +13 -0
  107. package/dist/packages/_es/pxCheck.js +9 -0
  108. package/dist/packages/_es/raf.js +19 -0
  109. package/dist/packages/_es/style.css +111 -0
  110. package/dist/packages/actionsheet/index.scss +73 -0
  111. package/dist/packages/address/index.scss +155 -0
  112. package/dist/packages/addresslist/index.scss +144 -0
  113. package/dist/packages/audio/index.scss +66 -0
  114. package/dist/packages/audiooperate/index.scss +13 -0
  115. package/dist/packages/avatar/index.scss +53 -0
  116. package/dist/packages/avatargroup/index.scss +14 -0
  117. package/dist/packages/backtop/index.scss +20 -0
  118. package/dist/packages/badge/index.scss +33 -0
  119. package/dist/packages/barrage/index.scss +48 -0
  120. package/dist/packages/button/index.scss +169 -0
  121. package/dist/packages/calendar/index.scss +212 -0
  122. package/dist/packages/calendaritem/index.scss +0 -0
  123. package/dist/packages/card/index.scss +97 -0
  124. package/dist/packages/cascader/index.scss +81 -0
  125. package/dist/packages/category/index.scss +38 -0
  126. package/dist/packages/categorypane/index.scss +124 -0
  127. package/dist/packages/cell/index.scss +76 -0
  128. package/dist/packages/cellgroup/index.scss +38 -0
  129. package/dist/packages/checkbox/index.scss +31 -0
  130. package/dist/packages/checkboxgroup/index.scss +0 -0
  131. package/dist/packages/circleprogress/index.scss +24 -0
  132. package/dist/packages/col/index.scss +24 -0
  133. package/dist/packages/collapse/index.scss +0 -0
  134. package/dist/packages/collapseitem/index.scss +143 -0
  135. package/dist/packages/comment/index.scss +353 -0
  136. package/dist/packages/countdown/index.scss +5 -0
  137. package/dist/packages/countup/index.scss +67 -0
  138. package/dist/packages/datepicker/index.scss +2 -0
  139. package/dist/packages/dialog/index.scss +65 -0
  140. package/dist/packages/divider/index.scss +54 -0
  141. package/dist/packages/drag/index.scss +18 -0
  142. package/dist/packages/ecard/index.scss +83 -0
  143. package/dist/packages/elevator/index.scss +73 -0
  144. package/dist/packages/empty/index.scss +33 -0
  145. package/dist/packages/fixednav/index.scss +134 -0
  146. package/dist/packages/form/index.scss +2 -0
  147. package/dist/packages/formitem/index.scss +70 -0
  148. package/dist/packages/grid/index.scss +10 -0
  149. package/dist/packages/griditem/index.scss +92 -0
  150. package/dist/packages/icon/index.scss +131 -0
  151. package/dist/packages/imagepreview/index.scss +49 -0
  152. package/dist/packages/indicator/index.scss +48 -0
  153. package/dist/packages/infiniteloading/index.scss +47 -0
  154. package/dist/packages/input/index.scss +126 -0
  155. package/dist/packages/inputnumber/index.scss +38 -0
  156. package/dist/packages/layout/index.scss +0 -0
  157. package/dist/packages/list/index.scss +24 -0
  158. package/dist/packages/locale/index.d.ts +3 -0
  159. package/dist/packages/locale/index.scss +1 -0
  160. package/dist/packages/locale/lang/baseLang.js +8 -0
  161. package/dist/packages/locale/lang/en-US.js +96 -0
  162. package/dist/packages/locale/lang/index.js +48 -0
  163. package/dist/packages/locale/lang/index.scss +1 -0
  164. package/dist/packages/locale/lang/zh-CN.js +96 -0
  165. package/dist/packages/locale/lang/zh-TW.js +96 -0
  166. package/dist/packages/locale/locale/index.d.ts +8 -0
  167. package/dist/packages/locale/locale/lang/baseLang.d.ts +87 -0
  168. package/dist/packages/locale/locale/lang/en-US.d.ts +88 -0
  169. package/dist/packages/locale/locale/lang/zh-CN.d.ts +88 -0
  170. package/dist/packages/locale/locale/lang/zh-TW.d.ts +88 -0
  171. package/dist/packages/menu/index.scss +49 -0
  172. package/dist/packages/menuitem/index.scss +47 -0
  173. package/dist/packages/navbar/index.scss +124 -0
  174. package/dist/packages/noticebar/index.scss +114 -0
  175. package/dist/packages/notify/index.scss +62 -0
  176. package/dist/packages/numberkeyboard/index.scss +109 -0
  177. package/dist/packages/oldpicker/index.scss +131 -0
  178. package/dist/packages/overlay/index.scss +22 -0
  179. package/dist/packages/pagination/index.scss +50 -0
  180. package/dist/packages/picker/index.scss +128 -0
  181. package/dist/packages/popover/index.scss +133 -0
  182. package/dist/packages/popup/index.scss +132 -0
  183. package/dist/packages/price/index.scss +59 -0
  184. package/dist/packages/progress/index.scss +104 -0
  185. package/dist/packages/pullrefresh/index.scss +71 -0
  186. package/dist/packages/radio/index.scss +59 -0
  187. package/dist/packages/radiogroup/index.scss +22 -0
  188. package/dist/packages/range/index.scss +202 -0
  189. package/dist/packages/rate/index.scss +35 -0
  190. package/dist/packages/row/index.scss +54 -0
  191. package/dist/packages/searchbar/index.scss +98 -0
  192. package/dist/packages/shortpassword/index.scss +169 -0
  193. package/dist/packages/sidenavbar/index.scss +14 -0
  194. package/dist/packages/sidenavbaritem/index.scss +10 -0
  195. package/dist/packages/signature/index.scss +14 -0
  196. package/dist/packages/skeleton/index.scss +57 -0
  197. package/dist/packages/sku/index.scss +147 -0
  198. package/dist/packages/step/index.scss +190 -0
  199. package/dist/packages/steps/index.scss +7 -0
  200. package/dist/packages/sticky/index.scss +5 -0
  201. package/dist/packages/subsidenavbar/index.scss +41 -0
  202. package/dist/packages/swipe/index.scss +22 -0
  203. package/dist/packages/swiper/index.scss +45 -0
  204. package/dist/packages/swiperitem/index.scss +3 -0
  205. package/dist/packages/switch/index.scss +60 -0
  206. package/dist/packages/tabbar/index.scss +27 -0
  207. package/dist/packages/tabbaritem/index.scss +79 -0
  208. package/dist/packages/table/index.scss +81 -0
  209. package/dist/packages/tabpane/index.scss +12 -0
  210. package/dist/packages/tabs/index.scss +166 -0
  211. package/dist/packages/tag/index.scss +48 -0
  212. package/dist/packages/textarea/index.scss +40 -0
  213. package/dist/packages/timedetail/index.scss +38 -0
  214. package/dist/packages/timepannel/index.scss +16 -0
  215. package/dist/packages/timeselect/index.scss +37 -0
  216. package/dist/packages/toast/index.scss +98 -0
  217. package/dist/packages/uploader/index.scss +157 -0
  218. package/dist/packages/video/index.scss +205 -0
  219. package/dist/smartips/attributes.json +2546 -0
  220. package/dist/smartips/tags.json +956 -0
  221. package/dist/style.css +1 -0
  222. package/dist/style.es.js +2 -0
  223. package/dist/styles/animation/drop.scss +24 -0
  224. package/dist/styles/animation/ease.scss +23 -0
  225. package/dist/styles/animation/fade.scss +20 -0
  226. package/dist/styles/animation/icon.scss +245 -0
  227. package/dist/styles/animation/index.scss +7 -0
  228. package/dist/styles/animation/rotate.scss +10 -0
  229. package/dist/styles/animation/zoom.scss +26 -0
  230. package/dist/styles/font/config.json +167 -0
  231. package/dist/styles/font/demo.css +539 -0
  232. package/dist/styles/font/demo_index.html +2879 -0
  233. package/dist/styles/font/iconfont.css +483 -0
  234. package/dist/styles/font/iconfont.eot +0 -0
  235. package/dist/styles/font/iconfont.js +63 -0
  236. package/dist/styles/font/iconfont.json +828 -0
  237. package/dist/styles/font/iconfont.svg +356 -0
  238. package/dist/styles/font/iconfont.ttf +0 -0
  239. package/dist/styles/font/iconfont.woff +0 -0
  240. package/dist/styles/font/iconfont.woff2 +0 -0
  241. package/dist/styles/mixins/index.scss +2 -0
  242. package/dist/styles/mixins/make-animation.scss +24 -0
  243. package/dist/styles/mixins/text-ellipsis.scss +20 -0
  244. package/dist/styles/themes/default.scss +97 -0
  245. package/dist/styles/themes/jdb.scss +97 -0
  246. package/dist/styles/themes/jdt.scss +97 -0
  247. package/dist/styles/variables-jdb.scss +844 -0
  248. package/dist/styles/variables-jdt.scss +750 -0
  249. package/dist/styles/variables.scss +774 -0
  250. package/dist/types/__VUE/actionsheet/index.d.ts +280 -0
  251. package/dist/types/__VUE/address/index.d.ts +396 -0
  252. package/dist/types/__VUE/addresslist/components/GeneralShell.d.ts +35 -0
  253. package/dist/types/__VUE/addresslist/components/ItemContents.d.ts +42 -0
  254. package/dist/types/__VUE/addresslist/components/LongPressShell.d.ts +47 -0
  255. package/dist/types/__VUE/addresslist/components/SwipeShell.d.ts +37 -0
  256. package/dist/types/__VUE/addresslist/index.d.ts +81 -0
  257. package/dist/types/__VUE/audio/index.d.ts +92 -0
  258. package/dist/types/__VUE/audiooperate/index.d.ts +68 -0
  259. package/dist/types/__VUE/avatar/index.d.ts +110 -0
  260. package/dist/types/__VUE/avatargroup/index.d.ts +93 -0
  261. package/dist/types/__VUE/backtop/index.d.ts +105 -0
  262. package/dist/types/__VUE/badge/index.d.ts +94 -0
  263. package/dist/types/__VUE/barrage/index.d.ts +80 -0
  264. package/dist/types/__VUE/button/index.d.ts +116 -0
  265. package/dist/types/__VUE/calendar/index.d.ts +155 -0
  266. package/dist/types/__VUE/calendaritem/index.d.ts +195 -0
  267. package/dist/types/__VUE/card/index.d.ts +90 -0
  268. package/dist/types/__VUE/cascader/cascader-item.d.ts +76 -0
  269. package/dist/types/__VUE/cascader/helper.d.ts +8 -0
  270. package/dist/types/__VUE/cascader/index.d.ts +240 -0
  271. package/dist/types/__VUE/cascader/tree.d.ts +16 -0
  272. package/dist/types/__VUE/cascader/types.d.ts +30 -0
  273. package/dist/types/__VUE/category/index.d.ts +38 -0
  274. package/dist/types/__VUE/categorypane/index.d.ts +45 -0
  275. package/dist/types/__VUE/cell/index.d.ts +109 -0
  276. package/dist/types/__VUE/cellgroup/index.d.ts +38 -0
  277. package/dist/types/__VUE/checkbox/index.d.ts +102 -0
  278. package/dist/types/__VUE/checkboxgroup/index.d.ts +39 -0
  279. package/dist/types/__VUE/circleprogress/index.d.ts +94 -0
  280. package/dist/types/__VUE/col/index.d.ts +45 -0
  281. package/dist/types/__VUE/collapse/index.d.ts +104 -0
  282. package/dist/types/__VUE/collapseitem/index.d.ts +83 -0
  283. package/dist/types/__VUE/comment/components/CmtBottom.d.ts +52 -0
  284. package/dist/types/__VUE/comment/components/CmtHeader.d.ts +47 -0
  285. package/dist/types/__VUE/comment/components/CmtImages.d.ts +51 -0
  286. package/dist/types/__VUE/comment/index.d.ts +110 -0
  287. package/dist/types/__VUE/countdown/index.d.ts +105 -0
  288. package/dist/types/__VUE/countdown/util.d.ts +6 -0
  289. package/dist/types/__VUE/countup/index.d.ts +216 -0
  290. package/dist/types/__VUE/datepicker/index.d.ts +356 -0
  291. package/dist/types/__VUE/datepicker/utils.d.ts +5 -0
  292. package/dist/types/__VUE/dialog/index.d.ts +306 -0
  293. package/dist/types/__VUE/divider/index.d.ts +47 -0
  294. package/dist/types/__VUE/drag/index.d.ts +61 -0
  295. package/dist/types/__VUE/ecard/index.d.ts +124 -0
  296. package/dist/types/__VUE/elevator/index.d.ts +71 -0
  297. package/dist/types/__VUE/empty/index.d.ts +47 -0
  298. package/dist/types/__VUE/fixednav/index.d.ts +96 -0
  299. package/dist/types/__VUE/form/common.d.ts +20 -0
  300. package/dist/types/__VUE/form/index.d.ts +32 -0
  301. package/dist/types/__VUE/form/types.d.ts +13 -0
  302. package/dist/types/__VUE/formitem/index.d.ts +120 -0
  303. package/dist/types/__VUE/formitem/types.d.ts +10 -0
  304. package/dist/types/__VUE/grid/common.d.ts +91 -0
  305. package/dist/types/__VUE/grid/index.d.ts +100 -0
  306. package/dist/types/__VUE/griditem/index.d.ts +80 -0
  307. package/dist/types/__VUE/icon/index.d.ts +74 -0
  308. package/dist/types/__VUE/imagepreview/index.d.ts +125 -0
  309. package/dist/types/__VUE/indicator/index.d.ts +70 -0
  310. package/dist/types/__VUE/infiniteloading/index.d.ts +144 -0
  311. package/dist/types/__VUE/input/index.d.ts +337 -0
  312. package/dist/types/__VUE/input/util.d.ts +5 -0
  313. package/dist/types/__VUE/inputnumber/index.d.ts +117 -0
  314. package/dist/types/__VUE/layout/index.d.ts +13 -0
  315. package/dist/types/__VUE/list/index.d.ts +56 -0
  316. package/dist/types/__VUE/menu/index.d.ts +51 -0
  317. package/dist/types/__VUE/menuitem/index.d.ts +77 -0
  318. package/dist/types/__VUE/navbar/index.d.ts +83 -0
  319. package/dist/types/__VUE/noticebar/index.d.ts +209 -0
  320. package/dist/types/__VUE/notify/index.d.ts +113 -0
  321. package/dist/types/__VUE/numberkeyboard/index.d.ts +124 -0
  322. package/dist/types/__VUE/oldpicker/Column.d.ts +96 -0
  323. package/dist/types/__VUE/oldpicker/commonProps.d.ts +22 -0
  324. package/dist/types/__VUE/oldpicker/index.d.ts +369 -0
  325. package/dist/types/__VUE/oldpicker/types.d.ts +24 -0
  326. package/dist/types/__VUE/overlay/index.d.ts +1614 -0
  327. package/dist/types/__VUE/pagination/index.d.ts +112 -0
  328. package/dist/types/__VUE/picker/Column.d.ts +90 -0
  329. package/dist/types/__VUE/picker/index.d.ts +352 -0
  330. package/dist/types/__VUE/picker/types.d.ts +26 -0
  331. package/dist/types/__VUE/popover/index.d.ts +242 -0
  332. package/dist/types/__VUE/popup/index.d.ts +1743 -0
  333. package/dist/types/__VUE/popup/use-lock-scroll.d.ts +5 -0
  334. package/dist/types/__VUE/price/index.d.ts +87 -0
  335. package/dist/types/__VUE/progress/index.d.ts +138 -0
  336. package/dist/types/__VUE/pullrefresh/index.d.ts +128 -0
  337. package/dist/types/__VUE/pullrefresh/use-touch.d.ts +20 -0
  338. package/dist/types/__VUE/pullrefresh/util.d.ts +6 -0
  339. package/dist/types/__VUE/radio/index.d.ts +90 -0
  340. package/dist/types/__VUE/radiogroup/index.d.ts +48 -0
  341. package/dist/types/__VUE/range/index.d.ts +156 -0
  342. package/dist/types/__VUE/rate/index.d.ts +142 -0
  343. package/dist/types/__VUE/row/index.d.ts +66 -0
  344. package/dist/types/__VUE/searchbar/index.d.ts +100 -0
  345. package/dist/types/__VUE/shortpassword/index.d.ts +137 -0
  346. package/dist/types/__VUE/sidenavbar/index.d.ts +36 -0
  347. package/dist/types/__VUE/sidenavbaritem/index.d.ts +41 -0
  348. package/dist/types/__VUE/signature/index.d.ts +74 -0
  349. package/dist/types/__VUE/skeleton/common.d.ts +63 -0
  350. package/dist/types/__VUE/skeleton/index.d.ts +117 -0
  351. package/dist/types/__VUE/sku/components/SkuHeader.d.ts +28 -0
  352. package/dist/types/__VUE/sku/components/SkuOperate.d.ts +70 -0
  353. package/dist/types/__VUE/sku/components/SkuSelect.d.ts +30 -0
  354. package/dist/types/__VUE/sku/components/SkuStepper.d.ts +67 -0
  355. package/dist/types/__VUE/sku/index.d.ts +310 -0
  356. package/dist/types/__VUE/step/index.d.ts +70 -0
  357. package/dist/types/__VUE/steps/index.d.ts +47 -0
  358. package/dist/types/__VUE/sticky/index.d.ts +63 -0
  359. package/dist/types/__VUE/subsidenavbar/index.d.ts +54 -0
  360. package/dist/types/__VUE/swipe/index.d.ts +69 -0
  361. package/dist/types/__VUE/swiper/index.d.ts +163 -0
  362. package/dist/types/__VUE/swiper/use-touch.d.ts +20 -0
  363. package/dist/types/__VUE/swiperitem/index.d.ts +18 -0
  364. package/dist/types/__VUE/switch/index.d.ts +136 -0
  365. package/dist/types/__VUE/tabbar/index.d.ts +84 -0
  366. package/dist/types/__VUE/tabbaritem/index.d.ts +108 -0
  367. package/dist/types/__VUE/table/common.d.ts +56 -0
  368. package/dist/types/__VUE/table/index.d.ts +76 -0
  369. package/dist/types/__VUE/table/renderColumn.d.ts +15 -0
  370. package/dist/types/__VUE/table/types.d.ts +19 -0
  371. package/dist/types/__VUE/tabpane/index.d.ts +47 -0
  372. package/dist/types/__VUE/tabs/common.d.ts +78 -0
  373. package/dist/types/__VUE/tabs/index.d.ts +126 -0
  374. package/dist/types/__VUE/tag/index.d.ts +89 -0
  375. package/dist/types/__VUE/textarea/index.d.ts +121 -0
  376. package/dist/types/__VUE/timedetail/index.d.ts +48 -0
  377. package/dist/types/__VUE/timepannel/index.d.ts +43 -0
  378. package/dist/types/__VUE/timeselect/index.d.ts +83 -0
  379. package/dist/types/__VUE/toast/index.d.ts +149 -0
  380. package/dist/types/__VUE/uploader/index.d.ts +258 -0
  381. package/dist/types/__VUE/uploader/uploader.d.ts +25 -0
  382. package/dist/types/__VUE/video/index.d.ts +123 -0
  383. package/dist/types/index.d.ts +3 -0
  384. package/dist/types/nutui.d.ts +99 -0
  385. package/package.json +1 -1
@@ -0,0 +1,433 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __defProps = Object.defineProperties;
3
+ var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
4
+ var __getOwnPropSymbols = Object.getOwnPropertySymbols;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __propIsEnum = Object.prototype.propertyIsEnumerable;
7
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
8
+ var __spreadValues = (a, b) => {
9
+ for (var prop in b || (b = {}))
10
+ if (__hasOwnProp.call(b, prop))
11
+ __defNormalProp(a, prop, b[prop]);
12
+ if (__getOwnPropSymbols)
13
+ for (var prop of __getOwnPropSymbols(b)) {
14
+ if (__propIsEnum.call(b, prop))
15
+ __defNormalProp(a, prop, b[prop]);
16
+ }
17
+ return a;
18
+ };
19
+ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20
+ /*!
21
+ * @nutui/nutui v3.1.21-beta.3 Wed May 18 2022 18:19:57 GMT+0800 (中国标准时间)
22
+ * (c) 2022 @jdf2e.
23
+ * Released under the MIT License.
24
+ */
25
+ import { ref, computed, toRefs, openBlock, createElementBlock, normalizeClass, toDisplayString, createCommentVNode, createElementVNode, normalizeStyle, withModifiers, Fragment, renderList, createTextVNode, renderSlot } from "vue";
26
+ import { c as createComponent } from "./component.js";
27
+ import { u as useTouch } from "./index4.js";
28
+ import { u as useRect } from "./index2.js";
29
+ import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
30
+ import "../locale/lang";
31
+ const { componentName, create } = createComponent("range");
32
+ const _sfc_main = create({
33
+ props: {
34
+ range: {
35
+ type: Boolean,
36
+ default: false
37
+ },
38
+ disabled: Boolean,
39
+ activeColor: String,
40
+ inactiveColor: String,
41
+ buttonColor: String,
42
+ vertical: {
43
+ type: Boolean,
44
+ default: false
45
+ },
46
+ marks: {
47
+ type: Object,
48
+ default: {}
49
+ },
50
+ hiddenRange: {
51
+ type: Boolean,
52
+ default: false
53
+ },
54
+ hiddenTag: {
55
+ type: Boolean,
56
+ default: false
57
+ },
58
+ min: {
59
+ type: [Number, String],
60
+ default: 0
61
+ },
62
+ max: {
63
+ type: [Number, String],
64
+ default: 100
65
+ },
66
+ step: {
67
+ type: [Number, String],
68
+ default: 1
69
+ },
70
+ modelValue: {
71
+ type: [Number, Array],
72
+ default: 0
73
+ }
74
+ },
75
+ emits: ["change", "drag-end", "drag-start", "update:modelValue"],
76
+ setup(props, { emit, slots }) {
77
+ const buttonIndex = ref(0);
78
+ let startValue;
79
+ let currentValue;
80
+ const root = ref();
81
+ const dragStatus = ref();
82
+ const touch = useTouch();
83
+ const marksList = computed(() => {
84
+ const { marks, max, min } = props;
85
+ const marksKeys = Object.keys(marks);
86
+ const list = marksKeys.map(parseFloat).sort((a, b) => a - b).filter((point) => point >= min && point <= max);
87
+ return list;
88
+ });
89
+ const scope = computed(() => Number(props.max) - Number(props.min));
90
+ const classes = computed(() => {
91
+ const prefixCls = componentName;
92
+ return {
93
+ [prefixCls]: true,
94
+ [`${prefixCls}-disabled`]: props.disabled,
95
+ [`${prefixCls}-vertical`]: props.vertical,
96
+ [`${prefixCls}-show-number`]: !props.hiddenRange
97
+ };
98
+ });
99
+ const containerClasses = computed(() => {
100
+ const prefixCls = "nut-range-container";
101
+ return {
102
+ [prefixCls]: true,
103
+ [`${prefixCls}-vertical`]: props.vertical
104
+ };
105
+ });
106
+ const wrapperStyle = computed(() => {
107
+ return {
108
+ background: props.inactiveColor
109
+ };
110
+ });
111
+ const buttonStyle = computed(() => {
112
+ return {
113
+ borderColor: props.buttonColor
114
+ };
115
+ });
116
+ const isRange = (val) => !!props.range && Array.isArray(val);
117
+ const calcMainAxis = () => {
118
+ const { modelValue, min } = props;
119
+ if (isRange(modelValue)) {
120
+ return `${(modelValue[1] - modelValue[0]) * 100 / scope.value}%`;
121
+ }
122
+ return `${(modelValue - Number(min)) * 100 / scope.value}%`;
123
+ };
124
+ const calcOffset = () => {
125
+ const { modelValue, min } = props;
126
+ if (isRange(modelValue)) {
127
+ return `${(modelValue[0] - Number(min)) * 100 / scope.value}%`;
128
+ }
129
+ return `0%`;
130
+ };
131
+ const barStyle = computed(() => {
132
+ if (props.vertical) {
133
+ return {
134
+ height: calcMainAxis(),
135
+ top: calcOffset(),
136
+ background: props.activeColor,
137
+ transition: dragStatus.value ? "none" : void 0
138
+ };
139
+ } else {
140
+ return {
141
+ width: calcMainAxis(),
142
+ left: calcOffset(),
143
+ background: props.activeColor,
144
+ transition: dragStatus.value ? "none" : void 0
145
+ };
146
+ }
147
+ });
148
+ const markClassName = (mark) => {
149
+ const classPrefix = "nut-range-mark";
150
+ const { modelValue, max, min } = props;
151
+ let lowerBound = Number(min);
152
+ let upperBound = Number(max);
153
+ if (props.range) {
154
+ const [left, right] = modelValue;
155
+ lowerBound = left;
156
+ upperBound = right;
157
+ } else {
158
+ upperBound = modelValue;
159
+ }
160
+ let isActive = mark <= upperBound && mark >= lowerBound;
161
+ return {
162
+ [`${classPrefix}-text`]: true,
163
+ [`${classPrefix}-text-active`]: isActive
164
+ };
165
+ };
166
+ const marksStyle = (mark) => {
167
+ const { max, min, vertical } = props;
168
+ let style = {
169
+ left: `${(mark - Number(min)) / scope.value * 100}%`
170
+ };
171
+ if (vertical) {
172
+ style = {
173
+ top: `${(mark - Number(min)) / scope.value * 100}%`
174
+ };
175
+ }
176
+ return style;
177
+ };
178
+ const tickStyle = (mark) => {
179
+ const { modelValue, max, min } = props;
180
+ let lowerBound = Number(min);
181
+ let upperBound = Number(max);
182
+ if (props.range) {
183
+ const [left, right] = modelValue;
184
+ lowerBound = left;
185
+ upperBound = right;
186
+ }
187
+ let isActive = mark <= upperBound && mark >= lowerBound;
188
+ let style = {
189
+ background: !isActive ? props.inactiveColor : props.activeColor
190
+ };
191
+ return style;
192
+ };
193
+ const format = (value) => {
194
+ const { min, max, step } = props;
195
+ value = Math.max(+min, Math.min(value, +max));
196
+ return Math.round(value / +step) * +step;
197
+ };
198
+ const isSameValue = (newValue, oldValue) => JSON.stringify(newValue) === JSON.stringify(oldValue);
199
+ const handleOverlap = (value) => {
200
+ if (value[0] > value[1]) {
201
+ return value.slice(0).reverse();
202
+ }
203
+ return value;
204
+ };
205
+ const updateValue = (value, end) => {
206
+ if (isRange(value)) {
207
+ value = handleOverlap(value).map(format);
208
+ } else {
209
+ value = format(value);
210
+ }
211
+ if (!isSameValue(value, props.modelValue)) {
212
+ emit("update:modelValue", value);
213
+ }
214
+ if (end && !isSameValue(value, startValue)) {
215
+ emit("change", value);
216
+ }
217
+ };
218
+ const onClick = (event) => {
219
+ if (props.disabled) {
220
+ return;
221
+ }
222
+ const { min, modelValue } = props;
223
+ const rect = useRect(root);
224
+ let delta = event.clientX - rect.left;
225
+ let total = rect.width;
226
+ if (props.vertical) {
227
+ delta = event.clientY - rect.top;
228
+ total = rect.height;
229
+ }
230
+ const value = Number(min) + delta / total * scope.value;
231
+ if (isRange(modelValue)) {
232
+ const [left, right] = modelValue;
233
+ const middle = (left + right) / 2;
234
+ if (value <= middle) {
235
+ updateValue([value, right], true);
236
+ } else {
237
+ updateValue([left, value], true);
238
+ }
239
+ } else {
240
+ updateValue(value, true);
241
+ }
242
+ };
243
+ const onTouchStart = (event) => {
244
+ if (props.disabled) {
245
+ return;
246
+ }
247
+ touch.start(event);
248
+ currentValue = props.modelValue;
249
+ if (isRange(currentValue)) {
250
+ startValue = currentValue.map(format);
251
+ } else {
252
+ startValue = format(currentValue);
253
+ }
254
+ dragStatus.value = "start";
255
+ };
256
+ const onTouchMove = (event) => {
257
+ if (props.disabled) {
258
+ return;
259
+ }
260
+ if (dragStatus.value === "start") {
261
+ emit("drag-start");
262
+ }
263
+ touch.move(event);
264
+ dragStatus.value = "draging";
265
+ const rect = useRect(root);
266
+ let delta = touch.deltaX.value;
267
+ let total = rect.width;
268
+ let diff = delta / total * scope.value;
269
+ if (props.vertical) {
270
+ delta = touch.deltaY.value;
271
+ total = rect.height;
272
+ diff = delta / total * scope.value;
273
+ }
274
+ if (isRange(startValue)) {
275
+ currentValue[buttonIndex.value] = startValue[buttonIndex.value] + diff;
276
+ } else {
277
+ currentValue = startValue + diff;
278
+ }
279
+ updateValue(currentValue);
280
+ event.stopPropagation();
281
+ event.preventDefault();
282
+ };
283
+ const onTouchEnd = () => {
284
+ if (props.disabled) {
285
+ return;
286
+ }
287
+ if (dragStatus.value === "draging") {
288
+ updateValue(currentValue, true);
289
+ emit("drag-end");
290
+ }
291
+ dragStatus.value = "";
292
+ };
293
+ const curValue = (idx) => {
294
+ const value = typeof idx === "number" ? props.modelValue[idx] : props.modelValue;
295
+ return value;
296
+ };
297
+ return __spreadProps(__spreadValues({
298
+ root,
299
+ classes,
300
+ wrapperStyle,
301
+ buttonStyle,
302
+ onClick,
303
+ onTouchStart,
304
+ onTouchMove,
305
+ onTouchEnd
306
+ }, toRefs(props)), {
307
+ barStyle,
308
+ curValue,
309
+ buttonIndex,
310
+ containerClasses,
311
+ markClassName,
312
+ marksStyle,
313
+ marksList,
314
+ tickStyle
315
+ });
316
+ }
317
+ });
318
+ const _hoisted_1 = {
319
+ key: 0,
320
+ class: "min"
321
+ };
322
+ const _hoisted_2 = {
323
+ key: 0,
324
+ class: "nut-range-mark"
325
+ };
326
+ const _hoisted_3 = ["tabindex", "aria-valuemin", "aria-valuenow", "aria-valuemax", "onTouchstart"];
327
+ const _hoisted_4 = {
328
+ key: 0,
329
+ class: "number"
330
+ };
331
+ const _hoisted_5 = ["tabindex", "aria-valuemin", "aria-valuenow", "aria-valuemax"];
332
+ const _hoisted_6 = {
333
+ key: 0,
334
+ class: "number"
335
+ };
336
+ const _hoisted_7 = {
337
+ key: 1,
338
+ class: "max"
339
+ };
340
+ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
341
+ return openBlock(), createElementBlock("view", {
342
+ class: normalizeClass(_ctx.containerClasses)
343
+ }, [
344
+ !_ctx.hiddenRange ? (openBlock(), createElementBlock("view", _hoisted_1, toDisplayString(+_ctx.min), 1)) : createCommentVNode("", true),
345
+ createElementVNode("view", {
346
+ ref: "root",
347
+ style: normalizeStyle(_ctx.wrapperStyle),
348
+ class: normalizeClass(_ctx.classes),
349
+ onClick: _cache[9] || (_cache[9] = withModifiers((...args) => _ctx.onClick && _ctx.onClick(...args), ["stop"]))
350
+ }, [
351
+ _ctx.marksList.length > 0 ? (openBlock(), createElementBlock("view", _hoisted_2, [
352
+ (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.marksList, (marks) => {
353
+ return openBlock(), createElementBlock("span", {
354
+ key: marks,
355
+ class: normalizeClass(_ctx.markClassName(marks)),
356
+ style: normalizeStyle(_ctx.marksStyle(marks))
357
+ }, [
358
+ createTextVNode(toDisplayString(marks) + " ", 1),
359
+ createElementVNode("span", {
360
+ class: "nut-range-tick",
361
+ style: normalizeStyle(_ctx.tickStyle(marks))
362
+ }, null, 4)
363
+ ], 6);
364
+ }), 128))
365
+ ])) : createCommentVNode("", true),
366
+ createElementVNode("view", {
367
+ class: "nut-range-bar",
368
+ style: normalizeStyle(_ctx.barStyle)
369
+ }, [
370
+ _ctx.range ? (openBlock(), createElementBlock(Fragment, { key: 0 }, renderList([0, 1], (index2) => {
371
+ return createElementVNode("view", {
372
+ key: index2,
373
+ role: "slider",
374
+ class: normalizeClass({
375
+ "nut-range-button-wrapper-left": index2 == 0,
376
+ "nut-range-button-wrapper-right": index2 == 1
377
+ }),
378
+ tabindex: _ctx.disabled ? -1 : 0,
379
+ "aria-valuemin": +_ctx.min,
380
+ "aria-valuenow": _ctx.curValue(index2),
381
+ "aria-valuemax": +_ctx.max,
382
+ "aria-orientation": "horizontal",
383
+ onTouchstart: withModifiers((e) => {
384
+ if (typeof index2 === "number") {
385
+ _ctx.buttonIndex = index2;
386
+ }
387
+ _ctx.onTouchStart(e);
388
+ }, ["stop", "prevent"]),
389
+ onTouchmove: _cache[0] || (_cache[0] = withModifiers((...args) => _ctx.onTouchMove && _ctx.onTouchMove(...args), ["stop", "prevent"])),
390
+ onTouchend: _cache[1] || (_cache[1] = withModifiers((...args) => _ctx.onTouchEnd && _ctx.onTouchEnd(...args), ["stop", "prevent"])),
391
+ onTouchcancel: _cache[2] || (_cache[2] = withModifiers((...args) => _ctx.onTouchEnd && _ctx.onTouchEnd(...args), ["stop", "prevent"])),
392
+ onClick: _cache[3] || (_cache[3] = (e) => e.stopPropagation())
393
+ }, [
394
+ _ctx.$slots.button ? renderSlot(_ctx.$slots, "button", { key: 0 }) : (openBlock(), createElementBlock("view", {
395
+ key: 1,
396
+ class: "nut-range-button",
397
+ style: normalizeStyle(_ctx.buttonStyle)
398
+ }, [
399
+ !_ctx.hiddenTag ? (openBlock(), createElementBlock("view", _hoisted_4, toDisplayString(_ctx.curValue(index2)), 1)) : createCommentVNode("", true)
400
+ ], 4))
401
+ ], 42, _hoisted_3);
402
+ }), 64)) : (openBlock(), createElementBlock("view", {
403
+ key: 1,
404
+ role: "slider",
405
+ class: "nut-range-button-wrapper",
406
+ tabindex: _ctx.disabled ? -1 : 0,
407
+ "aria-valuemin": +_ctx.min,
408
+ "aria-valuenow": _ctx.curValue(),
409
+ "aria-valuemax": +_ctx.max,
410
+ "aria-orientation": "horizontal",
411
+ onTouchstart: _cache[4] || (_cache[4] = withModifiers((e) => {
412
+ _ctx.onTouchStart(e);
413
+ }, ["stop", "prevent"])),
414
+ onTouchmove: _cache[5] || (_cache[5] = withModifiers((...args) => _ctx.onTouchMove && _ctx.onTouchMove(...args), ["stop", "prevent"])),
415
+ onTouchend: _cache[6] || (_cache[6] = withModifiers((...args) => _ctx.onTouchEnd && _ctx.onTouchEnd(...args), ["stop", "prevent"])),
416
+ onTouchcancel: _cache[7] || (_cache[7] = withModifiers((...args) => _ctx.onTouchEnd && _ctx.onTouchEnd(...args), ["stop", "prevent"])),
417
+ onClick: _cache[8] || (_cache[8] = (e) => e.stopPropagation())
418
+ }, [
419
+ _ctx.$slots.button ? renderSlot(_ctx.$slots, "button", { key: 0 }) : (openBlock(), createElementBlock("view", {
420
+ key: 1,
421
+ class: "nut-range-button",
422
+ style: normalizeStyle(_ctx.buttonStyle)
423
+ }, [
424
+ !_ctx.hiddenTag ? (openBlock(), createElementBlock("view", _hoisted_6, toDisplayString(_ctx.curValue()), 1)) : createCommentVNode("", true)
425
+ ], 4))
426
+ ], 40, _hoisted_5))
427
+ ], 4)
428
+ ], 6),
429
+ !_ctx.hiddenRange ? (openBlock(), createElementBlock("view", _hoisted_7, toDisplayString(+_ctx.max), 1)) : createCommentVNode("", true)
430
+ ], 2);
431
+ }
432
+ var index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
433
+ export { index as default };
@@ -0,0 +1,144 @@
1
+ /*!
2
+ * @nutui/nutui v3.1.21-beta.3 Wed May 18 2022 18:19:57 GMT+0800 (中国标准时间)
3
+ * (c) 2022 @jdf2e.
4
+ * Released under the MIT License.
5
+ */
6
+ import { computed, resolveComponent, openBlock, createElementBlock, normalizeClass, Fragment, renderList, normalizeStyle, createVNode, createBlock, createCommentVNode } from "vue";
7
+ import { c as createComponent } from "./component.js";
8
+ import { p as pxCheck } from "./pxCheck.js";
9
+ import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
10
+ import "../locale/lang";
11
+ const { componentName, create } = createComponent("rate");
12
+ const _sfc_main = create({
13
+ props: {
14
+ count: {
15
+ type: [String, Number],
16
+ default: 5
17
+ },
18
+ modelValue: {
19
+ type: [String, Number],
20
+ default: 0
21
+ },
22
+ iconSize: {
23
+ type: [String, Number],
24
+ default: 18
25
+ },
26
+ activeColor: {
27
+ type: String,
28
+ default: ""
29
+ },
30
+ voidColor: {
31
+ type: String,
32
+ default: ""
33
+ },
34
+ uncheckedIcon: {
35
+ type: String,
36
+ default: "star-n"
37
+ },
38
+ checkedIcon: {
39
+ type: String,
40
+ default: "star-fill-n"
41
+ },
42
+ readonly: {
43
+ type: Boolean,
44
+ default: false
45
+ },
46
+ disabled: {
47
+ type: Boolean,
48
+ default: false
49
+ },
50
+ allowHalf: {
51
+ type: Boolean,
52
+ default: false
53
+ },
54
+ spacing: {
55
+ type: [String, Number],
56
+ default: 14
57
+ },
58
+ classPrefix: {
59
+ type: String,
60
+ default: "nut-icon"
61
+ },
62
+ fontClassName: {
63
+ type: String,
64
+ default: "nutui-iconfont"
65
+ }
66
+ },
67
+ emits: ["update:modelValue", "change"],
68
+ setup(props, { emit }) {
69
+ const classes = computed(() => {
70
+ const prefixCls = componentName;
71
+ return {
72
+ [prefixCls]: true
73
+ };
74
+ });
75
+ const onClick = (e, index2) => {
76
+ e.preventDefault();
77
+ e.stopPropagation();
78
+ if (props.disabled || props.readonly)
79
+ return;
80
+ let value = 0;
81
+ if (index2 === 1 && props.modelValue === index2)
82
+ ;
83
+ else {
84
+ value = index2;
85
+ if (props.allowHalf) {
86
+ if ((e == null ? void 0 : e.target).className.includes("__icon--half")) {
87
+ value -= 0.5;
88
+ }
89
+ }
90
+ }
91
+ emit("update:modelValue", value);
92
+ emit("change", value);
93
+ };
94
+ return {
95
+ classes,
96
+ onClick,
97
+ pxCheck
98
+ };
99
+ }
100
+ });
101
+ const _hoisted_1 = ["onClick"];
102
+ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
103
+ const _component_nut_icon = resolveComponent("nut-icon");
104
+ return openBlock(), createElementBlock("view", {
105
+ class: normalizeClass(_ctx.classes)
106
+ }, [
107
+ (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.count, (n) => {
108
+ return openBlock(), createElementBlock("view", {
109
+ class: "nut-rate-item",
110
+ key: n,
111
+ onClick: ($event) => _ctx.onClick($event, n),
112
+ style: normalizeStyle({ marginRight: _ctx.pxCheck(_ctx.spacing) })
113
+ }, [
114
+ createVNode(_component_nut_icon, {
115
+ size: _ctx.iconSize,
116
+ class: normalizeClass(["nut-rate-item__icon", { "nut-rate-item__icon--disabled": _ctx.disabled || n > _ctx.modelValue }]),
117
+ "font-class-name": _ctx.fontClassName,
118
+ "class-prefix": _ctx.classPrefix,
119
+ color: n <= _ctx.modelValue ? _ctx.activeColor : _ctx.voidColor,
120
+ name: n <= _ctx.modelValue ? _ctx.checkedIcon : _ctx.uncheckedIcon
121
+ }, null, 8, ["size", "class", "font-class-name", "class-prefix", "color", "name"]),
122
+ _ctx.allowHalf && _ctx.modelValue + 1 > n ? (openBlock(), createBlock(_component_nut_icon, {
123
+ key: 0,
124
+ class: "nut-rate-item__icon nut-rate-item__icon--half",
125
+ "font-class-name": _ctx.fontClassName,
126
+ "class-prefix": _ctx.classPrefix,
127
+ color: n <= _ctx.modelValue + 1 ? _ctx.activeColor : _ctx.voidColor,
128
+ size: _ctx.iconSize,
129
+ name: _ctx.checkedIcon
130
+ }, null, 8, ["font-class-name", "class-prefix", "color", "size", "name"])) : _ctx.allowHalf && _ctx.modelValue + 1 < n ? (openBlock(), createBlock(_component_nut_icon, {
131
+ key: 1,
132
+ class: "nut-rate-item__icon nut-rate-item__icon--disabled nut-rate-item__icon--half",
133
+ "font-class-name": _ctx.fontClassName,
134
+ "class-prefix": _ctx.classPrefix,
135
+ color: _ctx.voidColor,
136
+ size: _ctx.iconSize,
137
+ name: _ctx.uncheckedIcon
138
+ }, null, 8, ["font-class-name", "class-prefix", "color", "size", "name"])) : createCommentVNode("", true)
139
+ ], 12, _hoisted_1);
140
+ }), 128))
141
+ ], 2);
142
+ }
143
+ var index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
144
+ export { index as default };
@@ -0,0 +1,69 @@
1
+ /*!
2
+ * @nutui/nutui v3.1.21-beta.3 Wed May 18 2022 18:19:57 GMT+0800 (中国标准时间)
3
+ * (c) 2022 @jdf2e.
4
+ * Released under the MIT License.
5
+ */
6
+ import { provide, openBlock, createElementBlock, normalizeClass, renderSlot } from "vue";
7
+ import { c as createComponent } from "./component.js";
8
+ import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
9
+ import "../locale/lang";
10
+ const { componentName, create } = createComponent("row");
11
+ const _sfc_main = create({
12
+ props: {
13
+ type: {
14
+ type: String,
15
+ default: ""
16
+ },
17
+ gutter: {
18
+ type: [String, Number],
19
+ default: ""
20
+ },
21
+ justify: {
22
+ type: String,
23
+ default: "start"
24
+ },
25
+ align: {
26
+ type: String,
27
+ default: "flex-start"
28
+ },
29
+ wrap: {
30
+ type: String,
31
+ default: "nowrap"
32
+ }
33
+ },
34
+ emits: ["click"],
35
+ setup(props, { emit }) {
36
+ const prefixCls = componentName;
37
+ provide("gutter", props.gutter);
38
+ const getClass = (prefix, type) => {
39
+ return prefix ? type ? `nut-row-${prefix}-${type}` : "" : `nut-row-${type}`;
40
+ };
41
+ const getClasses = () => {
42
+ return `
43
+ ${getClass("", props.type)}
44
+ ${getClass("justify", props.justify)}
45
+ ${getClass("align", props.align)}
46
+ ${getClass("flex", props.wrap)}
47
+ ${prefixCls}
48
+ `;
49
+ };
50
+ const handleClick = (evt) => {
51
+ evt.stopPropagation();
52
+ emit("click", evt);
53
+ };
54
+ return {
55
+ getClasses,
56
+ handleClick
57
+ };
58
+ }
59
+ });
60
+ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
61
+ return openBlock(), createElementBlock("view", {
62
+ class: normalizeClass(_ctx.getClasses()),
63
+ onClick: _cache[0] || (_cache[0] = (...args) => _ctx.handleClick && _ctx.handleClick(...args))
64
+ }, [
65
+ renderSlot(_ctx.$slots, "default")
66
+ ], 2);
67
+ }
68
+ var index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
69
+ export { index as default };