@nutui/nutui 3.1.20 → 3.1.21-beta.0

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 (383) hide show
  1. package/package.json +1 -1
  2. package/dist/nutui.es.js +0 -18271
  3. package/dist/nutui.umd.js +0 -18375
  4. package/dist/packages/_es/ActionSheet.js +0 -175
  5. package/dist/packages/_es/Address.js +0 -568
  6. package/dist/packages/_es/AddressList.js +0 -616
  7. package/dist/packages/_es/Audio.js +0 -290
  8. package/dist/packages/_es/AudioOperate.js +0 -126
  9. package/dist/packages/_es/Avatar.js +0 -183
  10. package/dist/packages/_es/AvatarGroup.js +0 -78
  11. package/dist/packages/_es/BackTop.js +0 -163
  12. package/dist/packages/_es/Badge.js +0 -91
  13. package/dist/packages/_es/Barrage.js +0 -119
  14. package/dist/packages/_es/Button.js +0 -134
  15. package/dist/packages/_es/Calendar.js +0 -243
  16. package/dist/packages/_es/CalendarItem.js +0 -11
  17. package/dist/packages/_es/Card.js +0 -112
  18. package/dist/packages/_es/Cascader.js +0 -546
  19. package/dist/packages/_es/Category.js +0 -63
  20. package/dist/packages/_es/CategoryPane.js +0 -116
  21. package/dist/packages/_es/Cell.js +0 -103
  22. package/dist/packages/_es/CellGroup.js +0 -49
  23. package/dist/packages/_es/Checkbox.js +0 -120
  24. package/dist/packages/_es/CheckboxGroup.js +0 -63
  25. package/dist/packages/_es/CircleProgress.js +0 -156
  26. package/dist/packages/_es/Col.js +0 -61
  27. package/dist/packages/_es/Collapse.js +0 -90
  28. package/dist/packages/_es/CollapseItem.js +0 -279
  29. package/dist/packages/_es/Comment.js +0 -440
  30. package/dist/packages/_es/CountDown.js +0 -264
  31. package/dist/packages/_es/CountUp.js +0 -568
  32. package/dist/packages/_es/DatePicker.js +0 -343
  33. package/dist/packages/_es/Dialog.js +0 -286
  34. package/dist/packages/_es/Divider.js +0 -50
  35. package/dist/packages/_es/Drag.js +0 -204
  36. package/dist/packages/_es/Ecard.js +0 -164
  37. package/dist/packages/_es/Elevator.js +0 -215
  38. package/dist/packages/_es/Empty.js +0 -76
  39. package/dist/packages/_es/FixedNav.js +0 -127
  40. package/dist/packages/_es/Form.js +0 -153
  41. package/dist/packages/_es/FormItem.js +0 -115
  42. package/dist/packages/_es/Grid.js +0 -13
  43. package/dist/packages/_es/GridItem.js +0 -150
  44. package/dist/packages/_es/Icon.js +0 -45
  45. package/dist/packages/_es/ImagePreview.js +0 -326
  46. package/dist/packages/_es/Indicator.js +0 -67
  47. package/dist/packages/_es/InfiniteLoading.js +0 -268
  48. package/dist/packages/_es/Input.js +0 -420
  49. package/dist/packages/_es/InputNumber.js +0 -165
  50. package/dist/packages/_es/Layout.js +0 -11
  51. package/dist/packages/_es/List.js +0 -128
  52. package/dist/packages/_es/Menu.js +0 -120
  53. package/dist/packages/_es/MenuItem.js +0 -169
  54. package/dist/packages/_es/Navbar.js +0 -100
  55. package/dist/packages/_es/NoticeBar.js +0 -404
  56. package/dist/packages/_es/Notify.js +0 -255
  57. package/dist/packages/_es/NumberKeyboard.js +0 -261
  58. package/dist/packages/_es/OldPicker.js +0 -485
  59. package/dist/packages/_es/OverLay.js +0 -119
  60. package/dist/packages/_es/Pagination.js +0 -165
  61. package/dist/packages/_es/Picker.js +0 -477
  62. package/dist/packages/_es/Popover.js +0 -208
  63. package/dist/packages/_es/Popup.js +0 -317
  64. package/dist/packages/_es/Price.js +0 -123
  65. package/dist/packages/_es/Progress.js +0 -151
  66. package/dist/packages/_es/PullRefresh.js +0 -364
  67. package/dist/packages/_es/Radio.js +0 -96
  68. package/dist/packages/_es/RadioGroup.js +0 -42
  69. package/dist/packages/_es/Range.js +0 -433
  70. package/dist/packages/_es/Rate.js +0 -144
  71. package/dist/packages/_es/Row.js +0 -69
  72. package/dist/packages/_es/SearchBar.js +0 -196
  73. package/dist/packages/_es/ShortPassword.js +0 -231
  74. package/dist/packages/_es/SideNavBar.js +0 -105
  75. package/dist/packages/_es/SideNavBarItem.js +0 -51
  76. package/dist/packages/_es/Signature.js +0 -185
  77. package/dist/packages/_es/Skeleton.js +0 -141
  78. package/dist/packages/_es/Sku.js +0 -517
  79. package/dist/packages/_es/Step.js +0 -138
  80. package/dist/packages/_es/Steps.js +0 -58
  81. package/dist/packages/_es/Sticky.js +0 -144
  82. package/dist/packages/_es/SubSideNavBar.js +0 -105
  83. package/dist/packages/_es/Swipe.js +0 -207
  84. package/dist/packages/_es/Swiper.js +0 -430
  85. package/dist/packages/_es/SwiperItem.js +0 -56
  86. package/dist/packages/_es/Switch.js +0 -121
  87. package/dist/packages/_es/TabPane.js +0 -40
  88. package/dist/packages/_es/Tabbar.js +0 -78
  89. package/dist/packages/_es/TabbarItem.js +0 -158
  90. package/dist/packages/_es/Table.js +0 -201
  91. package/dist/packages/_es/Tabs.js +0 -221
  92. package/dist/packages/_es/Tag.js +0 -102
  93. package/dist/packages/_es/TextArea.js +0 -166
  94. package/dist/packages/_es/TimeDetail.js +0 -103
  95. package/dist/packages/_es/TimePannel.js +0 -71
  96. package/dist/packages/_es/TimeSelect.js +0 -108
  97. package/dist/packages/_es/Toast.js +0 -335
  98. package/dist/packages/_es/Uploader.js +0 -494
  99. package/dist/packages/_es/Video.js +0 -357
  100. package/dist/packages/_es/common.js +0 -136
  101. package/dist/packages/_es/component.js +0 -102
  102. package/dist/packages/_es/index.js +0 -11
  103. package/dist/packages/_es/index2.js +0 -36
  104. package/dist/packages/_es/index3.js +0 -13
  105. package/dist/packages/_es/index4.js +0 -64
  106. package/dist/packages/_es/index5.js +0 -692
  107. package/dist/packages/_es/plugin-vue_export-helper.js +0 -13
  108. package/dist/packages/_es/pxCheck.js +0 -9
  109. package/dist/packages/_es/raf.js +0 -19
  110. package/dist/packages/_es/style.css +0 -111
  111. package/dist/packages/actionsheet/index.scss +0 -73
  112. package/dist/packages/address/index.scss +0 -155
  113. package/dist/packages/addresslist/index.scss +0 -144
  114. package/dist/packages/audio/index.scss +0 -66
  115. package/dist/packages/audiooperate/index.scss +0 -13
  116. package/dist/packages/avatar/index.scss +0 -53
  117. package/dist/packages/avatargroup/index.scss +0 -14
  118. package/dist/packages/backtop/index.scss +0 -20
  119. package/dist/packages/badge/index.scss +0 -33
  120. package/dist/packages/barrage/index.scss +0 -48
  121. package/dist/packages/button/index.scss +0 -169
  122. package/dist/packages/calendar/index.scss +0 -212
  123. package/dist/packages/calendaritem/index.scss +0 -0
  124. package/dist/packages/card/index.scss +0 -97
  125. package/dist/packages/cascader/index.scss +0 -81
  126. package/dist/packages/category/index.scss +0 -38
  127. package/dist/packages/categorypane/index.scss +0 -124
  128. package/dist/packages/cell/index.scss +0 -76
  129. package/dist/packages/cellgroup/index.scss +0 -38
  130. package/dist/packages/checkbox/index.scss +0 -31
  131. package/dist/packages/checkboxgroup/index.scss +0 -0
  132. package/dist/packages/circleprogress/index.scss +0 -24
  133. package/dist/packages/col/index.scss +0 -24
  134. package/dist/packages/collapse/index.scss +0 -0
  135. package/dist/packages/collapseitem/index.scss +0 -143
  136. package/dist/packages/comment/index.scss +0 -353
  137. package/dist/packages/countdown/index.scss +0 -5
  138. package/dist/packages/countup/index.scss +0 -67
  139. package/dist/packages/datepicker/index.scss +0 -2
  140. package/dist/packages/dialog/index.scss +0 -65
  141. package/dist/packages/divider/index.scss +0 -54
  142. package/dist/packages/drag/index.scss +0 -18
  143. package/dist/packages/ecard/index.scss +0 -83
  144. package/dist/packages/elevator/index.scss +0 -73
  145. package/dist/packages/empty/index.scss +0 -33
  146. package/dist/packages/fixednav/index.scss +0 -134
  147. package/dist/packages/form/index.scss +0 -2
  148. package/dist/packages/formitem/index.scss +0 -70
  149. package/dist/packages/grid/index.scss +0 -10
  150. package/dist/packages/griditem/index.scss +0 -92
  151. package/dist/packages/icon/index.scss +0 -131
  152. package/dist/packages/imagepreview/index.scss +0 -49
  153. package/dist/packages/indicator/index.scss +0 -48
  154. package/dist/packages/infiniteloading/index.scss +0 -47
  155. package/dist/packages/input/index.scss +0 -126
  156. package/dist/packages/inputnumber/index.scss +0 -38
  157. package/dist/packages/layout/index.scss +0 -0
  158. package/dist/packages/list/index.scss +0 -24
  159. package/dist/packages/locale/index.d.ts +0 -3
  160. package/dist/packages/locale/index.scss +0 -1
  161. package/dist/packages/locale/lang/baseLang.js +0 -8
  162. package/dist/packages/locale/lang/en-US.js +0 -91
  163. package/dist/packages/locale/lang/index.js +0 -48
  164. package/dist/packages/locale/lang/index.scss +0 -1
  165. package/dist/packages/locale/lang/zh-CN.js +0 -91
  166. package/dist/packages/locale/lang/zh-TW.js +0 -91
  167. package/dist/packages/locale/locale/index.d.ts +0 -8
  168. package/dist/packages/locale/locale/lang/baseLang.d.ts +0 -82
  169. package/dist/packages/locale/locale/lang/en-US.d.ts +0 -83
  170. package/dist/packages/locale/locale/lang/zh-CN.d.ts +0 -83
  171. package/dist/packages/locale/locale/lang/zh-TW.d.ts +0 -83
  172. package/dist/packages/menu/index.scss +0 -49
  173. package/dist/packages/menuitem/index.scss +0 -47
  174. package/dist/packages/navbar/index.scss +0 -124
  175. package/dist/packages/noticebar/index.scss +0 -114
  176. package/dist/packages/notify/index.scss +0 -62
  177. package/dist/packages/numberkeyboard/index.scss +0 -109
  178. package/dist/packages/oldpicker/index.scss +0 -131
  179. package/dist/packages/overlay/index.scss +0 -22
  180. package/dist/packages/pagination/index.scss +0 -50
  181. package/dist/packages/picker/index.scss +0 -128
  182. package/dist/packages/popover/index.scss +0 -133
  183. package/dist/packages/popup/index.scss +0 -132
  184. package/dist/packages/price/index.scss +0 -59
  185. package/dist/packages/progress/index.scss +0 -104
  186. package/dist/packages/pullrefresh/index.scss +0 -71
  187. package/dist/packages/radio/index.scss +0 -59
  188. package/dist/packages/radiogroup/index.scss +0 -22
  189. package/dist/packages/range/index.scss +0 -202
  190. package/dist/packages/rate/index.scss +0 -35
  191. package/dist/packages/row/index.scss +0 -54
  192. package/dist/packages/searchbar/index.scss +0 -98
  193. package/dist/packages/shortpassword/index.scss +0 -169
  194. package/dist/packages/sidenavbar/index.scss +0 -14
  195. package/dist/packages/sidenavbaritem/index.scss +0 -10
  196. package/dist/packages/signature/index.scss +0 -14
  197. package/dist/packages/skeleton/index.scss +0 -57
  198. package/dist/packages/sku/index.scss +0 -147
  199. package/dist/packages/step/index.scss +0 -190
  200. package/dist/packages/steps/index.scss +0 -7
  201. package/dist/packages/sticky/index.scss +0 -5
  202. package/dist/packages/subsidenavbar/index.scss +0 -41
  203. package/dist/packages/swipe/index.scss +0 -22
  204. package/dist/packages/swiper/index.scss +0 -45
  205. package/dist/packages/swiperitem/index.scss +0 -3
  206. package/dist/packages/switch/index.scss +0 -60
  207. package/dist/packages/tabbar/index.scss +0 -27
  208. package/dist/packages/tabbaritem/index.scss +0 -79
  209. package/dist/packages/table/index.scss +0 -81
  210. package/dist/packages/tabpane/index.scss +0 -12
  211. package/dist/packages/tabs/index.scss +0 -166
  212. package/dist/packages/tag/index.scss +0 -48
  213. package/dist/packages/textarea/index.scss +0 -40
  214. package/dist/packages/timedetail/index.scss +0 -38
  215. package/dist/packages/timepannel/index.scss +0 -16
  216. package/dist/packages/timeselect/index.scss +0 -37
  217. package/dist/packages/toast/index.scss +0 -98
  218. package/dist/packages/uploader/index.scss +0 -157
  219. package/dist/packages/video/index.scss +0 -205
  220. package/dist/smartips/attributes.json +0 -2542
  221. package/dist/smartips/tags.json +0 -955
  222. package/dist/style.css +0 -1
  223. package/dist/style.es.js +0 -2
  224. package/dist/styles/animation/drop.scss +0 -24
  225. package/dist/styles/animation/ease.scss +0 -23
  226. package/dist/styles/animation/fade.scss +0 -20
  227. package/dist/styles/animation/icon.scss +0 -245
  228. package/dist/styles/animation/index.scss +0 -7
  229. package/dist/styles/animation/rotate.scss +0 -10
  230. package/dist/styles/animation/zoom.scss +0 -26
  231. package/dist/styles/font/config.json +0 -167
  232. package/dist/styles/font/demo.css +0 -539
  233. package/dist/styles/font/demo_index.html +0 -2879
  234. package/dist/styles/font/iconfont.css +0 -483
  235. package/dist/styles/font/iconfont.eot +0 -0
  236. package/dist/styles/font/iconfont.js +0 -63
  237. package/dist/styles/font/iconfont.json +0 -828
  238. package/dist/styles/font/iconfont.svg +0 -356
  239. package/dist/styles/font/iconfont.ttf +0 -0
  240. package/dist/styles/font/iconfont.woff +0 -0
  241. package/dist/styles/font/iconfont.woff2 +0 -0
  242. package/dist/styles/mixins/index.scss +0 -2
  243. package/dist/styles/mixins/make-animation.scss +0 -24
  244. package/dist/styles/mixins/text-ellipsis.scss +0 -20
  245. package/dist/styles/themes/default.scss +0 -97
  246. package/dist/styles/themes/jdt.scss +0 -97
  247. package/dist/styles/variables-jdt.scss +0 -750
  248. package/dist/styles/variables.scss +0 -774
  249. package/dist/types/__VUE/actionsheet/index.d.ts +0 -280
  250. package/dist/types/__VUE/address/index.d.ts +0 -396
  251. package/dist/types/__VUE/addresslist/components/GeneralShell.d.ts +0 -35
  252. package/dist/types/__VUE/addresslist/components/ItemContents.d.ts +0 -42
  253. package/dist/types/__VUE/addresslist/components/LongPressShell.d.ts +0 -47
  254. package/dist/types/__VUE/addresslist/components/SwipeShell.d.ts +0 -37
  255. package/dist/types/__VUE/addresslist/index.d.ts +0 -81
  256. package/dist/types/__VUE/audio/index.d.ts +0 -92
  257. package/dist/types/__VUE/audiooperate/index.d.ts +0 -68
  258. package/dist/types/__VUE/avatar/index.d.ts +0 -110
  259. package/dist/types/__VUE/avatargroup/index.d.ts +0 -93
  260. package/dist/types/__VUE/backtop/index.d.ts +0 -105
  261. package/dist/types/__VUE/badge/index.d.ts +0 -94
  262. package/dist/types/__VUE/barrage/index.d.ts +0 -80
  263. package/dist/types/__VUE/button/index.d.ts +0 -116
  264. package/dist/types/__VUE/calendar/index.d.ts +0 -155
  265. package/dist/types/__VUE/calendaritem/index.d.ts +0 -195
  266. package/dist/types/__VUE/card/index.d.ts +0 -90
  267. package/dist/types/__VUE/cascader/cascader-item.d.ts +0 -76
  268. package/dist/types/__VUE/cascader/helper.d.ts +0 -8
  269. package/dist/types/__VUE/cascader/index.d.ts +0 -240
  270. package/dist/types/__VUE/cascader/tree.d.ts +0 -16
  271. package/dist/types/__VUE/cascader/types.d.ts +0 -30
  272. package/dist/types/__VUE/category/index.d.ts +0 -38
  273. package/dist/types/__VUE/categorypane/index.d.ts +0 -45
  274. package/dist/types/__VUE/cell/index.d.ts +0 -109
  275. package/dist/types/__VUE/cellgroup/index.d.ts +0 -38
  276. package/dist/types/__VUE/checkbox/index.d.ts +0 -102
  277. package/dist/types/__VUE/checkboxgroup/index.d.ts +0 -39
  278. package/dist/types/__VUE/circleprogress/index.d.ts +0 -94
  279. package/dist/types/__VUE/col/index.d.ts +0 -45
  280. package/dist/types/__VUE/collapse/index.d.ts +0 -104
  281. package/dist/types/__VUE/collapseitem/index.d.ts +0 -83
  282. package/dist/types/__VUE/comment/components/CmtBottom.d.ts +0 -52
  283. package/dist/types/__VUE/comment/components/CmtHeader.d.ts +0 -47
  284. package/dist/types/__VUE/comment/components/CmtImages.d.ts +0 -51
  285. package/dist/types/__VUE/comment/index.d.ts +0 -110
  286. package/dist/types/__VUE/countdown/index.d.ts +0 -105
  287. package/dist/types/__VUE/countdown/util.d.ts +0 -6
  288. package/dist/types/__VUE/countup/index.d.ts +0 -216
  289. package/dist/types/__VUE/datepicker/index.d.ts +0 -356
  290. package/dist/types/__VUE/datepicker/utils.d.ts +0 -5
  291. package/dist/types/__VUE/dialog/index.d.ts +0 -306
  292. package/dist/types/__VUE/divider/index.d.ts +0 -47
  293. package/dist/types/__VUE/drag/index.d.ts +0 -61
  294. package/dist/types/__VUE/ecard/index.d.ts +0 -124
  295. package/dist/types/__VUE/elevator/index.d.ts +0 -71
  296. package/dist/types/__VUE/empty/index.d.ts +0 -47
  297. package/dist/types/__VUE/fixednav/index.d.ts +0 -96
  298. package/dist/types/__VUE/form/common.d.ts +0 -20
  299. package/dist/types/__VUE/form/index.d.ts +0 -32
  300. package/dist/types/__VUE/form/types.d.ts +0 -13
  301. package/dist/types/__VUE/formitem/index.d.ts +0 -120
  302. package/dist/types/__VUE/formitem/types.d.ts +0 -10
  303. package/dist/types/__VUE/grid/common.d.ts +0 -91
  304. package/dist/types/__VUE/grid/index.d.ts +0 -100
  305. package/dist/types/__VUE/griditem/index.d.ts +0 -80
  306. package/dist/types/__VUE/icon/index.d.ts +0 -74
  307. package/dist/types/__VUE/imagepreview/index.d.ts +0 -125
  308. package/dist/types/__VUE/indicator/index.d.ts +0 -70
  309. package/dist/types/__VUE/infiniteloading/index.d.ts +0 -140
  310. package/dist/types/__VUE/input/index.d.ts +0 -337
  311. package/dist/types/__VUE/input/util.d.ts +0 -5
  312. package/dist/types/__VUE/inputnumber/index.d.ts +0 -117
  313. package/dist/types/__VUE/layout/index.d.ts +0 -13
  314. package/dist/types/__VUE/list/index.d.ts +0 -56
  315. package/dist/types/__VUE/menu/index.d.ts +0 -51
  316. package/dist/types/__VUE/menuitem/index.d.ts +0 -77
  317. package/dist/types/__VUE/navbar/index.d.ts +0 -83
  318. package/dist/types/__VUE/noticebar/index.d.ts +0 -209
  319. package/dist/types/__VUE/notify/index.d.ts +0 -113
  320. package/dist/types/__VUE/numberkeyboard/index.d.ts +0 -124
  321. package/dist/types/__VUE/oldpicker/Column.d.ts +0 -96
  322. package/dist/types/__VUE/oldpicker/commonProps.d.ts +0 -22
  323. package/dist/types/__VUE/oldpicker/index.d.ts +0 -369
  324. package/dist/types/__VUE/oldpicker/types.d.ts +0 -24
  325. package/dist/types/__VUE/overlay/index.d.ts +0 -1614
  326. package/dist/types/__VUE/pagination/index.d.ts +0 -112
  327. package/dist/types/__VUE/picker/Column.d.ts +0 -90
  328. package/dist/types/__VUE/picker/index.d.ts +0 -352
  329. package/dist/types/__VUE/picker/types.d.ts +0 -26
  330. package/dist/types/__VUE/popover/index.d.ts +0 -242
  331. package/dist/types/__VUE/popup/index.d.ts +0 -1743
  332. package/dist/types/__VUE/popup/use-lock-scroll.d.ts +0 -5
  333. package/dist/types/__VUE/price/index.d.ts +0 -87
  334. package/dist/types/__VUE/progress/index.d.ts +0 -138
  335. package/dist/types/__VUE/pullrefresh/index.d.ts +0 -128
  336. package/dist/types/__VUE/pullrefresh/use-touch.d.ts +0 -20
  337. package/dist/types/__VUE/pullrefresh/util.d.ts +0 -6
  338. package/dist/types/__VUE/radio/index.d.ts +0 -90
  339. package/dist/types/__VUE/radiogroup/index.d.ts +0 -48
  340. package/dist/types/__VUE/range/index.d.ts +0 -156
  341. package/dist/types/__VUE/rate/index.d.ts +0 -142
  342. package/dist/types/__VUE/row/index.d.ts +0 -66
  343. package/dist/types/__VUE/searchbar/index.d.ts +0 -100
  344. package/dist/types/__VUE/shortpassword/index.d.ts +0 -137
  345. package/dist/types/__VUE/sidenavbar/index.d.ts +0 -36
  346. package/dist/types/__VUE/sidenavbaritem/index.d.ts +0 -41
  347. package/dist/types/__VUE/signature/index.d.ts +0 -74
  348. package/dist/types/__VUE/skeleton/common.d.ts +0 -63
  349. package/dist/types/__VUE/skeleton/index.d.ts +0 -117
  350. package/dist/types/__VUE/sku/components/SkuHeader.d.ts +0 -28
  351. package/dist/types/__VUE/sku/components/SkuOperate.d.ts +0 -70
  352. package/dist/types/__VUE/sku/components/SkuSelect.d.ts +0 -30
  353. package/dist/types/__VUE/sku/components/SkuStepper.d.ts +0 -67
  354. package/dist/types/__VUE/sku/index.d.ts +0 -310
  355. package/dist/types/__VUE/step/index.d.ts +0 -70
  356. package/dist/types/__VUE/steps/index.d.ts +0 -47
  357. package/dist/types/__VUE/sticky/index.d.ts +0 -63
  358. package/dist/types/__VUE/subsidenavbar/index.d.ts +0 -54
  359. package/dist/types/__VUE/swipe/index.d.ts +0 -69
  360. package/dist/types/__VUE/swiper/index.d.ts +0 -163
  361. package/dist/types/__VUE/swiper/use-touch.d.ts +0 -20
  362. package/dist/types/__VUE/swiperitem/index.d.ts +0 -24
  363. package/dist/types/__VUE/switch/index.d.ts +0 -136
  364. package/dist/types/__VUE/tabbar/index.d.ts +0 -84
  365. package/dist/types/__VUE/tabbaritem/index.d.ts +0 -108
  366. package/dist/types/__VUE/table/common.d.ts +0 -56
  367. package/dist/types/__VUE/table/index.d.ts +0 -76
  368. package/dist/types/__VUE/table/renderColumn.d.ts +0 -15
  369. package/dist/types/__VUE/table/types.d.ts +0 -19
  370. package/dist/types/__VUE/tabpane/index.d.ts +0 -47
  371. package/dist/types/__VUE/tabs/common.d.ts +0 -78
  372. package/dist/types/__VUE/tabs/index.d.ts +0 -126
  373. package/dist/types/__VUE/tag/index.d.ts +0 -89
  374. package/dist/types/__VUE/textarea/index.d.ts +0 -121
  375. package/dist/types/__VUE/timedetail/index.d.ts +0 -48
  376. package/dist/types/__VUE/timepannel/index.d.ts +0 -43
  377. package/dist/types/__VUE/timeselect/index.d.ts +0 -83
  378. package/dist/types/__VUE/toast/index.d.ts +0 -149
  379. package/dist/types/__VUE/uploader/index.d.ts +0 -258
  380. package/dist/types/__VUE/uploader/uploader.d.ts +0 -25
  381. package/dist/types/__VUE/video/index.d.ts +0 -123
  382. package/dist/types/index.d.ts +0 -3
  383. package/dist/types/nutui.d.ts +0 -99
@@ -1,433 +0,0 @@
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.20 Mon Apr 25 2022 18:06:52 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 };
@@ -1,144 +0,0 @@
1
- /*!
2
- * @nutui/nutui v3.1.20 Mon Apr 25 2022 18:06:52 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 };
@@ -1,69 +0,0 @@
1
- /*!
2
- * @nutui/nutui v3.1.20 Mon Apr 25 2022 18:06:52 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 };