@nutui/nutui 3.0.2 → 3.1.2-3.beta-4

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 (408) hide show
  1. package/CHANGELOG.md +530 -1
  2. package/LICENSE +1 -1
  3. package/README.md +155 -36
  4. package/dist/nutui.es.js +20777 -4
  5. package/dist/nutui.umd.js +20886 -4
  6. package/dist/packages/_es/ActionSheet.js +162 -0
  7. package/dist/packages/_es/Address.js +551 -0
  8. package/dist/packages/_es/AddressList.js +620 -0
  9. package/dist/packages/_es/Animate.js +64 -0
  10. package/dist/packages/_es/Audio.js +263 -0
  11. package/dist/packages/_es/AudioOperate.js +105 -0
  12. package/dist/packages/_es/Avatar.js +168 -0
  13. package/dist/packages/_es/AvatarGroup.js +78 -0
  14. package/dist/packages/_es/BackTop.js +163 -0
  15. package/dist/packages/_es/Badge.js +91 -0
  16. package/dist/packages/_es/Barrage.js +126 -0
  17. package/dist/packages/_es/Button.js +134 -0
  18. package/dist/packages/_es/Calendar.js +252 -0
  19. package/dist/packages/_es/CalendarItem.js +12 -0
  20. package/dist/packages/_es/Card.js +115 -0
  21. package/dist/packages/_es/Cascader.js +519 -0
  22. package/dist/packages/_es/Category.js +63 -0
  23. package/dist/packages/_es/CategoryPane.js +118 -0
  24. package/dist/packages/_es/Cell.js +113 -0
  25. package/dist/packages/_es/CellGroup.js +49 -0
  26. package/dist/packages/_es/Checkbox.js +152 -0
  27. package/dist/packages/_es/CheckboxGroup.js +84 -0
  28. package/dist/packages/_es/CircleProgress.js +155 -0
  29. package/dist/packages/_es/Col.js +61 -0
  30. package/dist/packages/_es/Collapse.js +115 -0
  31. package/dist/packages/_es/CollapseItem.js +260 -0
  32. package/dist/packages/_es/Comment.js +441 -0
  33. package/dist/packages/_es/ConfigProvider.js +25 -0
  34. package/dist/packages/_es/CountDown.js +246 -0
  35. package/dist/packages/_es/CountUp.js +549 -0
  36. package/dist/packages/_es/DatePicker.js +332 -0
  37. package/dist/packages/_es/Dialog.js +306 -0
  38. package/dist/packages/_es/Divider.js +70 -0
  39. package/dist/packages/_es/Drag.js +204 -0
  40. package/dist/packages/_es/Ecard.js +164 -0
  41. package/dist/packages/_es/Elevator.js +262 -0
  42. package/dist/packages/_es/Ellipsis.js +206 -0
  43. package/dist/packages/_es/Empty.js +76 -0
  44. package/dist/packages/_es/FixedNav.js +127 -0
  45. package/dist/packages/_es/Form.js +158 -0
  46. package/dist/packages/_es/FormItem.js +119 -0
  47. package/dist/packages/_es/Grid.js +13 -0
  48. package/dist/packages/_es/GridItem.js +150 -0
  49. package/dist/packages/_es/Icon.js +45 -0
  50. package/dist/packages/_es/Image.js +142 -0
  51. package/dist/packages/_es/ImagePreview.js +565 -0
  52. package/dist/packages/_es/Indicator.js +67 -0
  53. package/dist/packages/_es/InfiniteLoading.js +256 -0
  54. package/dist/packages/_es/Input.js +440 -0
  55. package/dist/packages/_es/InputNumber.js +165 -0
  56. package/dist/packages/_es/Layout.js +11 -0
  57. package/dist/packages/_es/List.js +111 -0
  58. package/dist/packages/_es/Menu.js +175 -0
  59. package/dist/packages/_es/MenuItem.js +181 -0
  60. package/dist/packages/_es/Navbar.js +198 -0
  61. package/dist/packages/_es/NoticeBar.js +387 -0
  62. package/dist/packages/_es/Notify.js +236 -0
  63. package/dist/packages/_es/NumberKeyboard.js +278 -0
  64. package/dist/packages/_es/OldPicker.js +469 -0
  65. package/dist/packages/_es/OverLay.js +104 -0
  66. package/dist/packages/_es/Pagination.js +165 -0
  67. package/dist/packages/_es/Picker.js +508 -0
  68. package/dist/packages/_es/Popover.js +987 -0
  69. package/dist/packages/_es/Popup.js +302 -0
  70. package/dist/packages/_es/Price.js +123 -0
  71. package/dist/packages/_es/Progress.js +151 -0
  72. package/dist/packages/_es/PullRefresh.js +349 -0
  73. package/dist/packages/_es/Radio.js +96 -0
  74. package/dist/packages/_es/RadioGroup.js +42 -0
  75. package/dist/packages/_es/Range.js +414 -0
  76. package/dist/packages/_es/Rate.js +198 -0
  77. package/dist/packages/_es/Row.js +69 -0
  78. package/dist/packages/_es/SearchBar.js +243 -0
  79. package/dist/packages/_es/ShortPassword.js +231 -0
  80. package/dist/packages/_es/SideNavBar.js +87 -0
  81. package/dist/packages/_es/SideNavBarItem.js +51 -0
  82. package/dist/packages/_es/Signature.js +166 -0
  83. package/dist/packages/_es/Skeleton.js +141 -0
  84. package/dist/packages/_es/Sku.js +499 -0
  85. package/dist/packages/_es/Step.js +120 -0
  86. package/dist/packages/_es/Steps.js +58 -0
  87. package/dist/packages/_es/Sticky.js +144 -0
  88. package/dist/packages/_es/SubSideNavBar.js +87 -0
  89. package/dist/packages/_es/Swipe.js +188 -0
  90. package/dist/packages/_es/Swiper.js +460 -0
  91. package/dist/packages/_es/SwiperItem.js +58 -0
  92. package/dist/packages/_es/Switch.js +129 -0
  93. package/dist/packages/_es/TabPane.js +44 -0
  94. package/dist/packages/_es/Tabbar.js +78 -0
  95. package/dist/packages/_es/TabbarItem.js +179 -0
  96. package/dist/packages/_es/Table.js +183 -0
  97. package/dist/packages/_es/Tabs.js +211 -0
  98. package/dist/packages/_es/Tag.js +102 -0
  99. package/dist/packages/_es/TextArea.js +166 -0
  100. package/dist/packages/_es/TimeDetail.js +84 -0
  101. package/dist/packages/_es/TimePannel.js +53 -0
  102. package/dist/packages/_es/TimeSelect.js +117 -0
  103. package/dist/packages/_es/Toast.js +316 -0
  104. package/dist/packages/_es/Uploader.js +489 -0
  105. package/dist/packages/_es/Video.js +339 -0
  106. package/dist/packages/_es/WaterMark.js +187 -0
  107. package/dist/packages/_es/common.js +136 -0
  108. package/dist/packages/_es/component.js +102 -0
  109. package/dist/packages/_es/index.js +11 -0
  110. package/dist/packages/_es/index2.js +36 -0
  111. package/dist/packages/_es/index3.js +13 -0
  112. package/dist/packages/_es/index4.js +70 -0
  113. package/dist/packages/_es/index5.js +791 -0
  114. package/dist/packages/_es/plugin-vue_export-helper.js +13 -0
  115. package/dist/packages/_es/pxCheck.js +9 -0
  116. package/dist/packages/_es/raf.js +19 -0
  117. package/dist/packages/_es/style.css +111 -0
  118. package/dist/packages/actionsheet/index.scss +12 -7
  119. package/dist/packages/address/index.scss +18 -1
  120. package/dist/packages/addresslist/index.scss +144 -0
  121. package/dist/packages/animate/index.scss +299 -0
  122. package/dist/packages/audio/index.scss +66 -0
  123. package/dist/packages/audiooperate/index.scss +13 -0
  124. package/dist/packages/avatar/index.scss +11 -6
  125. package/dist/packages/avatargroup/index.scss +14 -0
  126. package/dist/packages/badge/index.scss +33 -0
  127. package/dist/packages/barrage/index.scss +48 -0
  128. package/dist/packages/button/index.scss +18 -4
  129. package/dist/packages/calendar/index.scss +67 -46
  130. package/dist/packages/calendaritem/index.scss +0 -195
  131. package/dist/packages/card/index.scss +97 -0
  132. package/dist/packages/cascader/index.scss +94 -0
  133. package/dist/packages/category/index.scss +38 -0
  134. package/dist/packages/categorypane/index.scss +124 -0
  135. package/dist/packages/cell/index.scss +33 -11
  136. package/dist/packages/cellgroup/index.scss +10 -1
  137. package/dist/packages/checkbox/index.scss +31 -3
  138. package/dist/packages/circleprogress/index.scss +24 -0
  139. package/dist/packages/col/index.scss +2 -4
  140. package/dist/packages/collapseitem/index.scss +33 -13
  141. package/dist/packages/comment/index.scss +353 -0
  142. package/dist/packages/configprovider/index.scss +2 -0
  143. package/dist/packages/countdown/index.scss +5 -0
  144. package/dist/packages/countup/index.scss +67 -0
  145. package/dist/packages/dialog/index.scss +18 -1
  146. package/dist/packages/divider/index.scss +63 -0
  147. package/dist/packages/drag/index.scss +11 -0
  148. package/dist/packages/ecard/index.scss +83 -0
  149. package/dist/packages/elevator/index.scss +94 -0
  150. package/dist/packages/ellipsis/index.scss +12 -0
  151. package/dist/packages/empty/index.scss +33 -0
  152. package/dist/packages/fixednav/index.scss +134 -0
  153. package/dist/packages/form/index.scss +2 -0
  154. package/dist/packages/formitem/index.scss +83 -0
  155. package/dist/packages/grid/index.scss +10 -0
  156. package/dist/packages/griditem/index.scss +103 -0
  157. package/dist/packages/icon/index.scss +103 -12
  158. package/dist/packages/image/index.scss +39 -0
  159. package/dist/packages/imagepreview/index.scss +72 -0
  160. package/dist/packages/indicator/index.scss +48 -0
  161. package/dist/packages/infiniteloading/index.scss +1 -1
  162. package/dist/packages/input/index.scss +123 -20
  163. package/dist/packages/inputnumber/index.scss +25 -2
  164. package/dist/packages/layout/index.scss +0 -0
  165. package/dist/packages/list/index.scss +24 -0
  166. package/dist/packages/locale/index.d.ts +8 -0
  167. package/dist/packages/locale/index.scss +1 -0
  168. package/dist/packages/locale/lang/baseLang.d.ts +88 -0
  169. package/dist/packages/locale/lang/baseLang.js +8 -0
  170. package/dist/packages/locale/lang/en-US.d.ts +104 -0
  171. package/dist/packages/locale/lang/en-US.js +112 -0
  172. package/dist/packages/locale/lang/id-ID.d.ts +104 -0
  173. package/dist/packages/locale/lang/id-ID.js +112 -0
  174. package/dist/packages/locale/lang/index.js +48 -0
  175. package/dist/packages/locale/lang/index.scss +1 -0
  176. package/dist/packages/locale/lang/zh-CN.d.ts +104 -0
  177. package/dist/packages/locale/lang/zh-CN.js +112 -0
  178. package/dist/packages/locale/lang/zh-TW.d.ts +104 -0
  179. package/dist/packages/locale/lang/zh-TW.js +112 -0
  180. package/dist/packages/menu/index.scss +56 -5
  181. package/dist/packages/menuitem/index.scss +40 -99
  182. package/dist/packages/navbar/index.scss +54 -42
  183. package/dist/packages/noticebar/index.scss +114 -0
  184. package/dist/packages/notify/index.scss +12 -0
  185. package/dist/packages/numberkeyboard/index.scss +109 -0
  186. package/dist/packages/oldpicker/index.scss +131 -0
  187. package/dist/packages/overlay/index.scss +5 -1
  188. package/dist/packages/pagination/index.scss +69 -0
  189. package/dist/packages/picker/index.scss +118 -37
  190. package/dist/packages/popover/index.scss +454 -0
  191. package/dist/packages/popup/index.scss +7 -0
  192. package/dist/packages/price/index.scss +40 -3
  193. package/dist/packages/progress/index.scss +104 -0
  194. package/dist/packages/radio/index.scss +64 -5
  195. package/dist/packages/radiogroup/index.scss +20 -0
  196. package/dist/packages/range/index.scss +136 -10
  197. package/dist/packages/rate/index.scss +3 -2
  198. package/dist/packages/row/index.scss +3 -0
  199. package/dist/packages/searchbar/index.scss +123 -0
  200. package/dist/packages/shortpassword/index.scss +65 -21
  201. package/dist/packages/sidenavbar/index.scss +14 -0
  202. package/dist/packages/sidenavbaritem/index.scss +10 -0
  203. package/dist/packages/signature/index.scss +14 -0
  204. package/dist/packages/skeleton/index.scss +57 -0
  205. package/dist/packages/sku/index.scss +147 -0
  206. package/dist/packages/step/index.scss +29 -29
  207. package/dist/packages/sticky/index.scss +5 -0
  208. package/dist/packages/subsidenavbar/index.scss +41 -0
  209. package/dist/packages/swipe/index.scss +22 -0
  210. package/dist/packages/swiper/index.scss +4 -4
  211. package/dist/packages/switch/index.scss +10 -9
  212. package/dist/packages/tabbar/index.scss +15 -3
  213. package/dist/packages/tabbaritem/index.scss +29 -4
  214. package/dist/packages/table/index.scss +114 -0
  215. package/dist/packages/tabpane/index.scss +20 -0
  216. package/dist/packages/tabs/index.scss +191 -0
  217. package/dist/packages/tag/index.scss +48 -0
  218. package/dist/packages/textarea/index.scss +10 -1
  219. package/dist/packages/timedetail/index.scss +54 -0
  220. package/dist/packages/timepannel/index.scss +26 -0
  221. package/dist/packages/timeselect/index.scss +56 -0
  222. package/dist/packages/toast/index.scss +13 -6
  223. package/dist/packages/uploader/index.scss +109 -13
  224. package/dist/packages/watermark/index.scss +13 -0
  225. package/dist/smartips/attributes.json +2894 -0
  226. package/dist/smartips/tags.json +1064 -0
  227. package/dist/smartips/web-types.json +7123 -0
  228. package/dist/style.css +1 -1
  229. package/dist/style.es.js +2 -0
  230. package/dist/styles/animation/icon.scss +245 -0
  231. package/dist/styles/animation/index.scss +1 -0
  232. package/dist/styles/font/config.json +169 -0
  233. package/dist/styles/font/demo_index.html +210 -3
  234. package/dist/styles/font/iconfont.css +39 -3
  235. package/dist/styles/font/iconfont.js +32 -32
  236. package/dist/styles/font/iconfont.json +63 -0
  237. package/dist/styles/font/iconfont.ttf +0 -0
  238. package/dist/styles/font/iconfont.woff +0 -0
  239. package/dist/styles/font/iconfont.woff2 +0 -0
  240. package/dist/styles/themes/default.scss +85 -32
  241. package/dist/styles/themes/jdb.scss +102 -0
  242. package/dist/styles/themes/jdt.scss +102 -0
  243. package/dist/styles/variables-jdb.scss +875 -0
  244. package/dist/styles/variables-jdt.scss +781 -0
  245. package/dist/styles/variables.scss +700 -164
  246. package/dist/types/__VUE/actionsheet/index.vue.d.ts +235 -0
  247. package/dist/types/__VUE/address/index.vue.d.ts +326 -0
  248. package/dist/types/__VUE/addresslist/components/GeneralShell.vue.d.ts +34 -0
  249. package/dist/types/__VUE/addresslist/components/ItemContents.vue.d.ts +40 -0
  250. package/dist/types/__VUE/addresslist/components/LongPressShell.vue.d.ts +46 -0
  251. package/dist/types/__VUE/addresslist/components/SwipeShell.vue.d.ts +36 -0
  252. package/dist/types/__VUE/addresslist/index.vue.d.ts +72 -0
  253. package/dist/types/__VUE/animate/index.vue.d.ts +48 -0
  254. package/dist/types/__VUE/animate/type.d.ts +6 -0
  255. package/dist/types/__VUE/audio/index.vue.d.ts +102 -0
  256. package/dist/types/__VUE/audiooperate/index.vue.d.ts +88 -0
  257. package/dist/types/__VUE/avatar/index.vue.d.ts +97 -0
  258. package/dist/types/__VUE/avatargroup/index.vue.d.ts +78 -0
  259. package/dist/types/__VUE/backtop/index.vue.d.ts +89 -0
  260. package/dist/types/__VUE/badge/index.vue.d.ts +81 -0
  261. package/dist/types/__VUE/barrage/index.vue.d.ts +69 -0
  262. package/dist/types/__VUE/button/index.vue.d.ts +99 -0
  263. package/dist/types/__VUE/button/type.d.ts +7 -0
  264. package/dist/types/__VUE/calendar/index.vue.d.ts +130 -0
  265. package/dist/types/__VUE/calendaritem/index.vue.d.ts +178 -0
  266. package/dist/types/__VUE/card/index.vue.d.ts +75 -0
  267. package/dist/types/__VUE/cascader/cascader-item.vue.d.ts +75 -0
  268. package/dist/types/__VUE/cascader/helper.d.ts +8 -0
  269. package/dist/types/__VUE/cascader/index.vue.d.ts +204 -0
  270. package/dist/types/__VUE/cascader/tree.d.ts +16 -0
  271. package/dist/types/__VUE/cascader/types.d.ts +30 -0
  272. package/dist/types/__VUE/category/index.vue.d.ts +35 -0
  273. package/dist/types/__VUE/categorypane/index.vue.d.ts +40 -0
  274. package/dist/types/__VUE/cell/index.vue.d.ts +108 -0
  275. package/dist/types/__VUE/cellgroup/index.vue.d.ts +35 -0
  276. package/dist/types/__VUE/checkbox/common.d.ts +59 -0
  277. package/dist/types/__VUE/checkbox/index.vue.d.ts +98 -0
  278. package/dist/types/__VUE/checkboxgroup/index.vue.d.ts +43 -0
  279. package/dist/types/__VUE/circleprogress/index.vue.d.ts +81 -0
  280. package/dist/types/__VUE/col/index.vue.d.ts +42 -0
  281. package/dist/types/__VUE/collapse/index.vue.d.ts +90 -0
  282. package/dist/types/__VUE/collapseitem/index.vue.d.ts +75 -0
  283. package/dist/types/__VUE/comment/components/CmtBottom.vue.d.ts +47 -0
  284. package/dist/types/__VUE/comment/components/CmtHeader.vue.d.ts +42 -0
  285. package/dist/types/__VUE/comment/components/CmtImages.vue.d.ts +46 -0
  286. package/dist/types/__VUE/comment/index.vue.d.ts +93 -0
  287. package/dist/types/__VUE/configprovider/common.d.ts +20 -0
  288. package/dist/types/__VUE/configprovider/index.vue.d.ts +33 -0
  289. package/dist/types/__VUE/countdown/index.vue.d.ts +91 -0
  290. package/dist/types/__VUE/countdown/util.d.ts +6 -0
  291. package/dist/types/__VUE/countup/index.vue.d.ts +183 -0
  292. package/dist/types/__VUE/datepicker/index.vue.d.ts +309 -0
  293. package/dist/types/__VUE/datepicker/type.d.ts +6 -0
  294. package/dist/types/__VUE/datepicker/utils.d.ts +5 -0
  295. package/dist/types/__VUE/dialog/index.d.ts +48 -0
  296. package/dist/types/__VUE/dialog/index.vue.d.ts +263 -0
  297. package/dist/types/__VUE/divider/index.vue.d.ts +47 -0
  298. package/dist/types/__VUE/drag/index.vue.d.ts +51 -0
  299. package/dist/types/__VUE/ecard/index.vue.d.ts +105 -0
  300. package/dist/types/__VUE/elevator/index.vue.d.ts +96 -0
  301. package/dist/types/__VUE/ellipsis/index.vue.d.ts +72 -0
  302. package/dist/types/__VUE/empty/index.vue.d.ts +42 -0
  303. package/dist/types/__VUE/fixednav/index.vue.d.ts +80 -0
  304. package/dist/types/__VUE/form/common.d.ts +20 -0
  305. package/dist/types/__VUE/form/index.vue.d.ts +31 -0
  306. package/dist/types/__VUE/form/types.d.ts +13 -0
  307. package/dist/types/__VUE/formitem/index.vue.d.ts +94 -0
  308. package/dist/types/__VUE/formitem/types.d.ts +10 -0
  309. package/dist/types/__VUE/grid/common.d.ts +91 -0
  310. package/dist/types/__VUE/grid/index.vue.d.ts +84 -0
  311. package/dist/types/__VUE/griditem/index.vue.d.ts +73 -0
  312. package/dist/types/__VUE/icon/index.vue.d.ts +63 -0
  313. package/dist/types/__VUE/image/index.vue.d.ts +105 -0
  314. package/dist/types/__VUE/image/type.d.ts +6 -0
  315. package/dist/types/__VUE/imagepreview/imagePreviewItem.vue.d.ts +95 -0
  316. package/dist/types/__VUE/imagepreview/index.d.ts +24 -0
  317. package/dist/types/__VUE/imagepreview/index.vue.d.ts +140 -0
  318. package/dist/types/__VUE/indicator/index.vue.d.ts +59 -0
  319. package/dist/types/__VUE/infiniteloading/index.vue.d.ts +123 -0
  320. package/dist/types/__VUE/input/index.vue.d.ts +274 -0
  321. package/dist/types/__VUE/input/type.d.ts +13 -0
  322. package/dist/types/__VUE/input/util.d.ts +5 -0
  323. package/dist/types/__VUE/inputnumber/index.vue.d.ts +100 -0
  324. package/dist/types/__VUE/layout/index.vue.d.ts +13 -0
  325. package/dist/types/__VUE/list/index.vue.d.ts +52 -0
  326. package/dist/types/__VUE/menu/index.vue.d.ts +80 -0
  327. package/dist/types/__VUE/menuitem/index.vue.d.ts +82 -0
  328. package/dist/types/__VUE/menuitem/type.d.ts +8 -0
  329. package/dist/types/__VUE/navbar/index.vue.d.ts +105 -0
  330. package/dist/types/__VUE/noticebar/index.vue.d.ts +180 -0
  331. package/dist/types/__VUE/notify/index.d.ts +16 -0
  332. package/dist/types/__VUE/notify/index.vue.d.ts +101 -0
  333. package/dist/types/__VUE/numberkeyboard/index.vue.d.ts +122 -0
  334. package/dist/types/__VUE/oldpicker/Column.vue.d.ts +91 -0
  335. package/dist/types/__VUE/oldpicker/commonProps.d.ts +22 -0
  336. package/dist/types/__VUE/oldpicker/index.vue.d.ts +316 -0
  337. package/dist/types/__VUE/oldpicker/types.d.ts +24 -0
  338. package/dist/types/__VUE/overlay/index.vue.d.ts +1603 -0
  339. package/dist/types/__VUE/pagination/index.vue.d.ts +95 -0
  340. package/dist/types/__VUE/picker/Column.vue.d.ts +96 -0
  341. package/dist/types/__VUE/picker/index.vue.d.ts +317 -0
  342. package/dist/types/__VUE/picker/types.d.ts +26 -0
  343. package/dist/types/__VUE/popover/index.vue.d.ts +218 -0
  344. package/dist/types/__VUE/popover/type.d.ts +6 -0
  345. package/dist/types/__VUE/popup/index.vue.d.ts +1708 -0
  346. package/dist/types/__VUE/popup/use-lock-scroll.d.ts +5 -0
  347. package/dist/types/__VUE/price/index.vue.d.ts +74 -0
  348. package/dist/types/__VUE/progress/index.vue.d.ts +114 -0
  349. package/dist/types/__VUE/pullrefresh/index.vue.d.ts +100 -0
  350. package/dist/types/__VUE/pullrefresh/use-touch.d.ts +20 -0
  351. package/dist/types/__VUE/pullrefresh/util.d.ts +6 -0
  352. package/dist/types/__VUE/radio/index.vue.d.ts +75 -0
  353. package/dist/types/__VUE/radiogroup/index.vue.d.ts +43 -0
  354. package/dist/types/__VUE/range/index.vue.d.ts +144 -0
  355. package/dist/types/__VUE/range/type.d.ts +5 -0
  356. package/dist/types/__VUE/rate/common.d.ts +149 -0
  357. package/dist/types/__VUE/rate/index.vue.d.ts +127 -0
  358. package/dist/types/__VUE/row/index.vue.d.ts +57 -0
  359. package/dist/types/__VUE/searchbar/index.vue.d.ts +130 -0
  360. package/dist/types/__VUE/shortpassword/index.vue.d.ts +118 -0
  361. package/dist/types/__VUE/sidenavbar/index.vue.d.ts +35 -0
  362. package/dist/types/__VUE/sidenavbaritem/index.vue.d.ts +38 -0
  363. package/dist/types/__VUE/signature/index.vue.d.ts +65 -0
  364. package/dist/types/__VUE/skeleton/common.d.ts +61 -0
  365. package/dist/types/__VUE/skeleton/index.vue.d.ts +98 -0
  366. package/dist/types/__VUE/sku/components/SkuHeader.vue.d.ts +27 -0
  367. package/dist/types/__VUE/sku/components/SkuOperate.vue.d.ts +61 -0
  368. package/dist/types/__VUE/sku/components/SkuSelect.vue.d.ts +29 -0
  369. package/dist/types/__VUE/sku/components/SkuStepper.vue.d.ts +60 -0
  370. package/dist/types/__VUE/sku/index.vue.d.ts +252 -0
  371. package/dist/types/__VUE/step/index.vue.d.ts +61 -0
  372. package/dist/types/__VUE/steps/index.vue.d.ts +42 -0
  373. package/dist/types/__VUE/sticky/index.vue.d.ts +56 -0
  374. package/dist/types/__VUE/subsidenavbar/index.vue.d.ts +49 -0
  375. package/dist/types/__VUE/swipe/index.vue.d.ts +62 -0
  376. package/dist/types/__VUE/swiper/index.vue.d.ts +150 -0
  377. package/dist/types/__VUE/swiper/use-touch.d.ts +20 -0
  378. package/dist/types/__VUE/swiperitem/index.vue.d.ts +18 -0
  379. package/dist/types/__VUE/switch/index.vue.d.ts +113 -0
  380. package/dist/types/__VUE/tabbar/index.vue.d.ts +71 -0
  381. package/dist/types/__VUE/tabbaritem/index.vue.d.ts +99 -0
  382. package/dist/types/__VUE/table/common.d.ts +56 -0
  383. package/dist/types/__VUE/table/index.vue.d.ts +67 -0
  384. package/dist/types/__VUE/table/renderColumn.d.ts +15 -0
  385. package/dist/types/__VUE/table/types.d.ts +19 -0
  386. package/dist/types/__VUE/tabpane/index.vue.d.ts +43 -0
  387. package/dist/types/__VUE/tabs/common.d.ts +82 -0
  388. package/dist/types/__VUE/tabs/index.vue.d.ts +114 -0
  389. package/dist/types/__VUE/tag/index.vue.d.ts +76 -0
  390. package/dist/types/__VUE/tag/type.d.ts +5 -0
  391. package/dist/types/__VUE/textarea/index.vue.d.ts +102 -0
  392. package/dist/types/__VUE/timedetail/index.vue.d.ts +45 -0
  393. package/dist/types/__VUE/timepannel/index.vue.d.ts +40 -0
  394. package/dist/types/__VUE/timeselect/index.vue.d.ts +80 -0
  395. package/dist/types/__VUE/toast/index.d.ts +16 -0
  396. package/dist/types/__VUE/toast/index.vue.d.ts +134 -0
  397. package/dist/types/__VUE/uploader/index.vue.d.ts +211 -0
  398. package/dist/types/__VUE/uploader/type.d.ts +18 -0
  399. package/dist/types/__VUE/uploader/uploader.d.ts +27 -0
  400. package/dist/types/__VUE/video/index.vue.d.ts +106 -0
  401. package/dist/types/__VUE/watermark/index.vue.d.ts +143 -0
  402. package/dist/types/index.d.ts +8 -0
  403. package/dist/types/nutui.d.ts +104 -0
  404. package/package.json +56 -29
  405. package/dist/index.d.ts +0 -3
  406. package/dist/nutui.d.ts +0 -50
  407. package/dist/packages/tab/index.scss +0 -102
  408. package/dist/styles/font/config.js +0 -111
@@ -0,0 +1,499 @@
1
+ /*!
2
+ * @nutui/nutui v3.1.23.beta-4 Mon Jul 25 2022 22:38:45 GMT+0800 (中国标准时间)
3
+ * (c) 2022 @jdf2e.
4
+ * Released under the MIT License.
5
+ */
6
+ import { resolveComponent, openBlock, createElementBlock, createElementVNode, renderSlot, createBlock, createCommentVNode, toDisplayString, ref, watch, onMounted, Fragment, renderList, normalizeClass, createVNode, withCtx, createSlots } from "vue";
7
+ import { c as createComponent, T as TypeOfFun } from "./component.js";
8
+ import { _ as _export_sfc } from "./plugin-vue_export-helper.js";
9
+ import { popupProps } from "./Popup.js";
10
+ import "../locale/lang";
11
+ import "./OverLay.js";
12
+ import "./Icon.js";
13
+ import "./pxCheck.js";
14
+ const { componentName: componentName$4, create: create$4, translate: translate$1 } = createComponent("sku-header");
15
+ const _sfc_main$4 = create$4({
16
+ props: {
17
+ goods: {
18
+ type: Object,
19
+ default: {}
20
+ }
21
+ },
22
+ emits: [],
23
+ setup(props, { emit, slots }) {
24
+ const getSlots = (name) => slots[name];
25
+ return {
26
+ getSlots,
27
+ translate: translate$1
28
+ };
29
+ }
30
+ });
31
+ const _hoisted_1$4 = { class: "nut-sku-header" };
32
+ const _hoisted_2$4 = ["src"];
33
+ const _hoisted_3$3 = { class: "nut-sku-header-right" };
34
+ const _hoisted_4$3 = {
35
+ key: 3,
36
+ class: "nut-sku-header-right-extra"
37
+ };
38
+ function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
39
+ const _component_nut_price = resolveComponent("nut-price");
40
+ return openBlock(), createElementBlock("view", _hoisted_1$4, [
41
+ createElementVNode("img", {
42
+ src: _ctx.goods.imagePath
43
+ }, null, 8, _hoisted_2$4),
44
+ createElementVNode("view", _hoisted_3$3, [
45
+ _ctx.getSlots("sku-header-price") ? renderSlot(_ctx.$slots, "sku-header-price", { key: 0 }) : (openBlock(), createBlock(_component_nut_price, {
46
+ key: 1,
47
+ price: _ctx.goods.price,
48
+ needSymbol: true,
49
+ thousands: false
50
+ }, null, 8, ["price"])),
51
+ _ctx.getSlots("sku-header-extra") ? renderSlot(_ctx.$slots, "sku-header-extra", { key: 2 }) : createCommentVNode("", true),
52
+ _ctx.goods.skuId && !_ctx.getSlots("sku-header-extra") ? (openBlock(), createElementBlock("view", _hoisted_4$3, toDisplayString(_ctx.translate("skuId")) + "\xA0:\xA0" + toDisplayString(_ctx.goods.skuId), 1)) : createCommentVNode("", true)
53
+ ])
54
+ ]);
55
+ }
56
+ var SkuHeader = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["render", _sfc_render$4]]);
57
+ const { componentName: componentName$3, create: create$3 } = createComponent("sku-select");
58
+ const _sfc_main$3 = create$3({
59
+ props: {
60
+ sku: {
61
+ type: Array,
62
+ default: () => []
63
+ }
64
+ },
65
+ emits: ["selectSku"],
66
+ setup(props, { emit }) {
67
+ const skuInfo = ref([]);
68
+ watch(() => props.sku, (value) => {
69
+ skuInfo.value = [].slice.call(value);
70
+ }, { deep: true });
71
+ onMounted(() => {
72
+ if (props.sku.length > 0) {
73
+ skuInfo.value = [].slice.call(props.sku);
74
+ }
75
+ });
76
+ const changeSaleChild = (attrItem, index2, parentItem, parentIndex) => {
77
+ if (attrItem.checkFlag || attrItem.disable) {
78
+ return;
79
+ }
80
+ emit("selectSku", {
81
+ sku: attrItem,
82
+ skuIndex: index2,
83
+ parentSku: parentItem,
84
+ parentIndex
85
+ });
86
+ };
87
+ return {
88
+ skuInfo,
89
+ changeSaleChild
90
+ };
91
+ }
92
+ });
93
+ const _hoisted_1$3 = { class: "nut-sku-select" };
94
+ const _hoisted_2$3 = { class: "nut-sku-select-item-title" };
95
+ const _hoisted_3$2 = { class: "nut-sku-select-item-skus" };
96
+ const _hoisted_4$2 = ["onClick"];
97
+ function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
98
+ return openBlock(), createElementBlock("view", _hoisted_1$3, [
99
+ (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.skuInfo, (item, index2) => {
100
+ return openBlock(), createElementBlock("view", {
101
+ class: "nut-sku-select-item",
102
+ key: item.id
103
+ }, [
104
+ createElementVNode("view", _hoisted_2$3, toDisplayString(item.name), 1),
105
+ createElementVNode("view", _hoisted_3$2, [
106
+ (openBlock(true), createElementBlock(Fragment, null, renderList(item.list, (itemAttr, itemAttrIndex) => {
107
+ return openBlock(), createElementBlock("view", {
108
+ class: normalizeClass(["nut-sku-select-item-skus-sku", [{ active: !itemAttr.disable && itemAttr.active }, { disable: itemAttr.disable }]]),
109
+ onClick: ($event) => _ctx.changeSaleChild(itemAttr, itemAttrIndex, item, index2),
110
+ key: itemAttr.name
111
+ }, toDisplayString(itemAttr.name), 11, _hoisted_4$2);
112
+ }), 128))
113
+ ])
114
+ ]);
115
+ }), 128))
116
+ ]);
117
+ }
118
+ var SkuSelect = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["render", _sfc_render$3]]);
119
+ const { componentName: componentName$2, create: create$2 } = createComponent("sku-stepper");
120
+ const _sfc_main$2 = create$2({
121
+ props: {
122
+ stepperMax: {
123
+ type: [Number, String],
124
+ default: 99999
125
+ },
126
+ stepperMin: {
127
+ type: [Number, String],
128
+ default: 1
129
+ },
130
+ stepperExtraText: {
131
+ type: [Function, Boolean],
132
+ default: false
133
+ },
134
+ stepperTitle: {
135
+ type: String,
136
+ default: "\u8D2D\u4E70\u6570\u91CF"
137
+ }
138
+ },
139
+ emits: ["click", "changeSku", "changeStepper", "clickBtnOptions", "overLimit", "reduce", "add"],
140
+ setup(props, { emit }) {
141
+ const goodsCount = ref(props.stepperMin);
142
+ onMounted(() => {
143
+ goodsCount.value = props.stepperMin;
144
+ });
145
+ const getExtraText = () => {
146
+ const { stepperExtraText } = props;
147
+ if (stepperExtraText && TypeOfFun(stepperExtraText) == "function") {
148
+ return stepperExtraText();
149
+ } else {
150
+ return "";
151
+ }
152
+ };
153
+ const add = (value) => {
154
+ emit("add", value);
155
+ };
156
+ const reduce = (value) => {
157
+ emit("reduce", value);
158
+ };
159
+ const overlimit = (e, action) => {
160
+ emit("overLimit", {
161
+ action,
162
+ value: parseInt(goodsCount.value + "")
163
+ });
164
+ };
165
+ const changeStepper = (value) => {
166
+ goodsCount.value = value;
167
+ emit("changeStepper", value);
168
+ };
169
+ return {
170
+ goodsCount,
171
+ add,
172
+ reduce,
173
+ overlimit,
174
+ getExtraText,
175
+ changeStepper
176
+ };
177
+ }
178
+ });
179
+ const _hoisted_1$2 = { class: "nut-sku-stepper" };
180
+ const _hoisted_2$2 = { class: "nut-sku-stepper-title" };
181
+ const _hoisted_3$1 = ["innerHTML"];
182
+ const _hoisted_4$1 = { class: "nut-sku-stepper-count" };
183
+ function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
184
+ const _component_nut_inputnumber = resolveComponent("nut-inputnumber");
185
+ return openBlock(), createElementBlock("view", _hoisted_1$2, [
186
+ createElementVNode("view", _hoisted_2$2, toDisplayString(_ctx.stepperTitle), 1),
187
+ createElementVNode("view", {
188
+ class: "nut-sku-stepper-limit",
189
+ innerHTML: _ctx.getExtraText()
190
+ }, null, 8, _hoisted_3$1),
191
+ createElementVNode("view", _hoisted_4$1, [
192
+ createVNode(_component_nut_inputnumber, {
193
+ modelValue: _ctx.goodsCount,
194
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => _ctx.goodsCount = $event),
195
+ min: _ctx.stepperMin,
196
+ max: _ctx.stepperMax,
197
+ onAdd: _ctx.add,
198
+ onReduce: _ctx.reduce,
199
+ onOverlimit: _ctx.overlimit,
200
+ onChange: _ctx.changeStepper
201
+ }, null, 8, ["modelValue", "min", "max", "onAdd", "onReduce", "onOverlimit", "onChange"])
202
+ ])
203
+ ]);
204
+ }
205
+ var SkuStepper = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["render", _sfc_render$2]]);
206
+ const { componentName: componentName$1, create: create$1 } = createComponent("sku-operate");
207
+ const _sfc_main$1 = create$1({
208
+ props: {
209
+ btnOptions: {
210
+ type: Array,
211
+ default: () => ["confirm"]
212
+ },
213
+ btnExtraText: {
214
+ type: String,
215
+ default: ""
216
+ },
217
+ buyText: {
218
+ type: String,
219
+ default: "\u7ACB\u5373\u8D2D\u4E70"
220
+ },
221
+ addCartText: {
222
+ type: String,
223
+ default: "\u52A0\u5165\u8D2D\u7269\u8F66"
224
+ },
225
+ confirmText: {
226
+ type: String,
227
+ default: "\u786E\u5B9A"
228
+ }
229
+ },
230
+ emits: ["click", "changeSku", "changeBuyCount", "clickBtnOperate"],
231
+ setup(props, { emit, slots }) {
232
+ const getBtnDesc = (type) => {
233
+ let mapD = {
234
+ confirm: props.confirmText,
235
+ cart: props.addCartText,
236
+ buy: props.buyText
237
+ };
238
+ return mapD[type];
239
+ };
240
+ const getSlots = (name) => slots[name];
241
+ const clickBtnOperate = (btn) => {
242
+ emit("clickBtnOperate", btn);
243
+ };
244
+ return {
245
+ getBtnDesc,
246
+ clickBtnOperate,
247
+ getSlots
248
+ };
249
+ }
250
+ });
251
+ const _hoisted_1$1 = {
252
+ key: 0,
253
+ class: "nut-sku-operate"
254
+ };
255
+ const _hoisted_2$1 = ["innerHTML"];
256
+ const _hoisted_3 = {
257
+ key: 1,
258
+ class: "nut-sku-operate-btn"
259
+ };
260
+ const _hoisted_4 = ["onClick"];
261
+ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
262
+ return _ctx.btnOptions.length > 0 ? (openBlock(), createElementBlock("view", _hoisted_1$1, [
263
+ _ctx.btnExtraText ? (openBlock(), createElementBlock("view", {
264
+ key: 0,
265
+ class: "nut-sku-operate-desc",
266
+ innerHTML: _ctx.btnExtraText
267
+ }, null, 8, _hoisted_2$1)) : createCommentVNode("", true),
268
+ renderSlot(_ctx.$slots, "operate-btn"),
269
+ !_ctx.getSlots("operate-btn") ? (openBlock(), createElementBlock("view", _hoisted_3, [
270
+ (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.btnOptions, (btn, i) => {
271
+ return openBlock(), createElementBlock("view", {
272
+ class: normalizeClass([`nut-sku-operate-btn-${btn}`, "nut-sku-operate-btn-item"]),
273
+ key: i,
274
+ onClick: ($event) => _ctx.clickBtnOperate(btn)
275
+ }, toDisplayString(_ctx.getBtnDesc(btn)), 11, _hoisted_4);
276
+ }), 128))
277
+ ])) : createCommentVNode("", true)
278
+ ])) : createCommentVNode("", true);
279
+ }
280
+ var SkuOperate = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render$1]]);
281
+ const { componentName, create, translate } = createComponent("sku");
282
+ const _sfc_main = create({
283
+ props: {
284
+ ...popupProps,
285
+ sku: {
286
+ type: Array,
287
+ default: []
288
+ },
289
+ goods: {
290
+ type: Object,
291
+ default: {}
292
+ },
293
+ stepperMax: {
294
+ type: [Number, String],
295
+ default: 99999
296
+ },
297
+ stepperMin: {
298
+ type: [Number, String],
299
+ default: 1
300
+ },
301
+ btnOptions: {
302
+ type: Array,
303
+ default: () => ["confirm"]
304
+ },
305
+ stepperTitle: {
306
+ type: String,
307
+ default: ""
308
+ },
309
+ stepperExtraText: {
310
+ type: [Function, Boolean],
311
+ default: false
312
+ },
313
+ btnExtraText: {
314
+ type: String,
315
+ default: ""
316
+ },
317
+ buyText: {
318
+ type: String,
319
+ default: ""
320
+ },
321
+ addCartText: {
322
+ type: String,
323
+ default: ""
324
+ },
325
+ confirmText: {
326
+ type: String,
327
+ default: ""
328
+ }
329
+ },
330
+ emits: [
331
+ "update:visible",
332
+ "selectSku",
333
+ "changeStepper",
334
+ "clickBtnOperate",
335
+ "clickCloseIcon",
336
+ "clickOverlay",
337
+ "close",
338
+ "reduce",
339
+ "add",
340
+ "overLimit",
341
+ "clickOverlay"
342
+ ],
343
+ components: {
344
+ SkuHeader,
345
+ SkuSelect,
346
+ SkuStepper,
347
+ SkuOperate
348
+ },
349
+ setup(props, { emit, slots }) {
350
+ const showPopup = ref(props.visible);
351
+ const goodsCount = ref(props.stepperMin);
352
+ watch(() => props.visible, (value) => {
353
+ showPopup.value = value;
354
+ });
355
+ watch(() => showPopup.value, (value) => {
356
+ if (value == false) {
357
+ close();
358
+ }
359
+ });
360
+ onMounted(() => {
361
+ });
362
+ const getSlots = (name) => slots[name];
363
+ const selectSku = (skus) => {
364
+ emit("selectSku", skus);
365
+ };
366
+ const changeStepper = (value) => {
367
+ goodsCount.value = value;
368
+ emit("changeStepper", value);
369
+ };
370
+ const add = (value) => {
371
+ emit("add", value);
372
+ };
373
+ const reduce = (value) => {
374
+ emit("reduce", value);
375
+ };
376
+ const stepperOverLimit = (count) => {
377
+ emit("overLimit", count);
378
+ };
379
+ const clickBtnOperate = (btn) => {
380
+ emit("clickBtnOperate", {
381
+ type: btn,
382
+ value: goodsCount.value
383
+ });
384
+ };
385
+ const closePopup = (type) => {
386
+ if (type == "icon") {
387
+ emit("click-close-icon");
388
+ }
389
+ if (type == "overlay") {
390
+ emit("click-overlay");
391
+ }
392
+ if (type == "close") {
393
+ emit("close");
394
+ }
395
+ showPopup.value = false;
396
+ };
397
+ const close = () => {
398
+ emit("update:visible", false);
399
+ };
400
+ return {
401
+ showPopup,
402
+ closePopup,
403
+ selectSku,
404
+ changeStepper,
405
+ stepperOverLimit,
406
+ clickBtnOperate,
407
+ add,
408
+ reduce,
409
+ getSlots,
410
+ translate
411
+ };
412
+ }
413
+ });
414
+ const _hoisted_1 = { class: "nut-sku" };
415
+ const _hoisted_2 = { class: "nut-sku-content" };
416
+ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
417
+ const _component_sku_header = resolveComponent("sku-header");
418
+ const _component_SkuSelect = resolveComponent("SkuSelect");
419
+ const _component_sku_stepper = resolveComponent("sku-stepper");
420
+ const _component_sku_operate = resolveComponent("sku-operate");
421
+ const _component_nut_popup = resolveComponent("nut-popup");
422
+ return openBlock(), createBlock(_component_nut_popup, {
423
+ position: "bottom",
424
+ closeable: "",
425
+ round: "",
426
+ visible: _ctx.showPopup,
427
+ "onUpdate:visible": _cache[0] || (_cache[0] = ($event) => _ctx.showPopup = $event),
428
+ onClickCloseIcon: _cache[1] || (_cache[1] = ($event) => _ctx.closePopup("icon")),
429
+ onClickOverlay: _cache[2] || (_cache[2] = ($event) => _ctx.closePopup("overlay")),
430
+ onClose: _cache[3] || (_cache[3] = ($event) => _ctx.closePopup("close")),
431
+ style: { "height": "75%" },
432
+ isWrapTeleport: _ctx.isWrapTeleport,
433
+ teleport: _ctx.teleport
434
+ }, {
435
+ default: withCtx(() => [
436
+ createElementVNode("view", _hoisted_1, [
437
+ renderSlot(_ctx.$slots, "sku-header"),
438
+ !_ctx.getSlots("sku-header") ? (openBlock(), createBlock(_component_sku_header, {
439
+ key: 0,
440
+ goods: _ctx.goods
441
+ }, createSlots({ _: 2 }, [
442
+ _ctx.getSlots("sku-header-price") ? {
443
+ name: "sku-header-price",
444
+ fn: withCtx(() => [
445
+ renderSlot(_ctx.$slots, "sku-header-price")
446
+ ])
447
+ } : void 0,
448
+ _ctx.getSlots("sku-header-extra") ? {
449
+ name: "sku-header-extra",
450
+ fn: withCtx(() => [
451
+ renderSlot(_ctx.$slots, "sku-header-extra")
452
+ ])
453
+ } : void 0
454
+ ]), 1032, ["goods"])) : createCommentVNode("", true),
455
+ createElementVNode("view", _hoisted_2, [
456
+ renderSlot(_ctx.$slots, "sku-select-top"),
457
+ renderSlot(_ctx.$slots, "sku-select"),
458
+ !_ctx.getSlots("sku-select") ? (openBlock(), createBlock(_component_SkuSelect, {
459
+ key: 0,
460
+ sku: _ctx.sku,
461
+ onSelectSku: _ctx.selectSku
462
+ }, null, 8, ["sku", "onSelectSku"])) : createCommentVNode("", true),
463
+ renderSlot(_ctx.$slots, "sku-stepper"),
464
+ !_ctx.getSlots("sku-stepper") ? (openBlock(), createBlock(_component_sku_stepper, {
465
+ key: 1,
466
+ goods: _ctx.goods,
467
+ stepperTitle: _ctx.stepperTitle || _ctx.translate("buyNumber"),
468
+ stepperMax: _ctx.stepperMax,
469
+ stepperMin: _ctx.stepperMin,
470
+ stepperExtraText: _ctx.stepperExtraText,
471
+ onAdd: _ctx.add,
472
+ onReduce: _ctx.reduce,
473
+ onChangeStepper: _ctx.changeStepper,
474
+ onOverLimit: _ctx.stepperOverLimit
475
+ }, null, 8, ["goods", "stepperTitle", "stepperMax", "stepperMin", "stepperExtraText", "onAdd", "onReduce", "onChangeStepper", "onOverLimit"])) : createCommentVNode("", true),
476
+ renderSlot(_ctx.$slots, "sku-stepper-bottom")
477
+ ]),
478
+ createVNode(_component_sku_operate, {
479
+ btnOptions: _ctx.btnOptions,
480
+ btnExtraText: _ctx.btnExtraText,
481
+ buyText: _ctx.buyText || _ctx.translate("buyNow"),
482
+ addCartText: _ctx.addCartText || _ctx.translate("addToCart"),
483
+ confirmText: _ctx.confirmText || _ctx.translate("confirm"),
484
+ onClickBtnOperate: _ctx.clickBtnOperate
485
+ }, createSlots({ _: 2 }, [
486
+ _ctx.getSlots("sku-operate") ? {
487
+ name: "operate-btn",
488
+ fn: withCtx(() => [
489
+ renderSlot(_ctx.$slots, "sku-operate")
490
+ ])
491
+ } : void 0
492
+ ]), 1032, ["btnOptions", "btnExtraText", "buyText", "addCartText", "confirmText", "onClickBtnOperate"])
493
+ ])
494
+ ]),
495
+ _: 3
496
+ }, 8, ["visible", "isWrapTeleport", "teleport"]);
497
+ }
498
+ var index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
499
+ export { index as default };
@@ -0,0 +1,120 @@
1
+ /*!
2
+ * @nutui/nutui v3.1.23.beta-4 Mon Jul 25 2022 22:38:45 GMT+0800 (中国标准时间)
3
+ * (c) 2022 @jdf2e.
4
+ * Released under the MIT License.
5
+ */
6
+ import { getCurrentInstance, inject, reactive, computed, toRefs, resolveComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, createBlock, Fragment, toDisplayString, createCommentVNode, 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 { create, componentName } = createComponent("step");
11
+ const _sfc_main = create({
12
+ props: {
13
+ title: {
14
+ type: String,
15
+ default: ""
16
+ },
17
+ content: {
18
+ type: String,
19
+ default: ""
20
+ },
21
+ icon: {
22
+ type: String,
23
+ default: null
24
+ },
25
+ iconColor: {
26
+ type: String,
27
+ default: ""
28
+ },
29
+ size: {
30
+ type: [String, Number],
31
+ default: "12px"
32
+ }
33
+ },
34
+ emits: ["click-step"],
35
+ setup(props, { emit, slots }) {
36
+ const { proxy } = getCurrentInstance();
37
+ const parent = inject("parent");
38
+ parent["relation"](proxy);
39
+ const state = reactive({
40
+ dot: parent.props.progressDot
41
+ });
42
+ const index2 = computed(() => parent.state.children.indexOf(proxy) + 1);
43
+ const getCurrentStatus = () => {
44
+ const activeIndex = index2.value;
45
+ if (activeIndex < +parent.props.current)
46
+ return "finish";
47
+ return activeIndex === +parent.props.current ? "process" : "wait";
48
+ };
49
+ const status = computed(() => {
50
+ return getCurrentStatus();
51
+ });
52
+ const classes = computed(() => {
53
+ const prefixCls = componentName;
54
+ return {
55
+ [prefixCls]: true,
56
+ [`${prefixCls}-${status.value}`]: true
57
+ };
58
+ });
59
+ const handleClickStep = () => {
60
+ parent["onEmit"](index2.value);
61
+ };
62
+ return {
63
+ ...toRefs(state),
64
+ index: index2,
65
+ classes,
66
+ handleClickStep
67
+ };
68
+ }
69
+ });
70
+ const _hoisted_1 = { class: "nut-step-head" };
71
+ const _hoisted_2 = /* @__PURE__ */ createElementVNode("view", { class: "nut-step-line" }, null, -1);
72
+ const _hoisted_3 = {
73
+ key: 2,
74
+ class: "nut-step-inner"
75
+ };
76
+ const _hoisted_4 = { class: "nut-step-main" };
77
+ const _hoisted_5 = { class: "nut-step-title" };
78
+ const _hoisted_6 = { key: 0 };
79
+ const _hoisted_7 = {
80
+ key: 0,
81
+ class: "nut-step-content"
82
+ };
83
+ const _hoisted_8 = ["innerHTML"];
84
+ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
85
+ const _component_nut_icon = resolveComponent("nut-icon");
86
+ return openBlock(), createElementBlock("view", {
87
+ class: normalizeClass(_ctx.classes),
88
+ onClick: _cache[0] || (_cache[0] = (...args) => _ctx.handleClickStep && _ctx.handleClickStep(...args))
89
+ }, [
90
+ createElementVNode("view", _hoisted_1, [
91
+ _hoisted_2,
92
+ createElementVNode("view", {
93
+ class: normalizeClass(["nut-step-icon", [!_ctx.dot ? _ctx.icon ? "is-icon" : "is-text" : ""]])
94
+ }, [
95
+ _ctx.icon ? (openBlock(), createBlock(_component_nut_icon, {
96
+ key: 0,
97
+ class: "nut-step-icon-inner",
98
+ color: _ctx.iconColor,
99
+ name: _ctx.icon,
100
+ size: _ctx.size
101
+ }, null, 8, ["color", "name", "size"])) : _ctx.dot ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [], 64)) : (openBlock(), createElementBlock("view", _hoisted_3, toDisplayString(_ctx.index), 1))
102
+ ], 2)
103
+ ]),
104
+ createElementVNode("view", _hoisted_4, [
105
+ createElementVNode("view", _hoisted_5, [
106
+ !_ctx.$slots.title ? (openBlock(), createElementBlock("span", _hoisted_6, toDisplayString(_ctx.title), 1)) : createCommentVNode("", true),
107
+ renderSlot(_ctx.$slots, "title")
108
+ ]),
109
+ _ctx.content || _ctx.$slots.content ? (openBlock(), createElementBlock("view", _hoisted_7, [
110
+ !_ctx.$slots.content ? (openBlock(), createElementBlock("span", {
111
+ key: 0,
112
+ innerHTML: _ctx.content
113
+ }, null, 8, _hoisted_8)) : createCommentVNode("", true),
114
+ renderSlot(_ctx.$slots, "content")
115
+ ])) : createCommentVNode("", true)
116
+ ])
117
+ ], 2);
118
+ }
119
+ var index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
120
+ export { index as default };
@@ -0,0 +1,58 @@
1
+ /*!
2
+ * @nutui/nutui v3.1.23.beta-4 Mon Jul 25 2022 22:38:45 GMT+0800 (中国标准时间)
3
+ * (c) 2022 @jdf2e.
4
+ * Released under the MIT License.
5
+ */
6
+ import { reactive, computed, provide, h } from "vue";
7
+ import { c as createComponent } from "./component.js";
8
+ import "../locale/lang";
9
+ const { create, componentName } = createComponent("steps");
10
+ const _sfc_main = create({
11
+ props: {
12
+ direction: {
13
+ type: String,
14
+ default: "horizontal"
15
+ },
16
+ current: {
17
+ type: [String, Number],
18
+ default: "0"
19
+ },
20
+ progressDot: {
21
+ type: Boolean,
22
+ default: false
23
+ }
24
+ },
25
+ emits: ["click-step"],
26
+ setup(props, { emit, slots }) {
27
+ const state = reactive({
28
+ children: []
29
+ });
30
+ const classes = computed(() => {
31
+ const prefixCls = componentName;
32
+ return {
33
+ [prefixCls]: true,
34
+ [`${prefixCls}-${props.direction}`]: true,
35
+ [`${prefixCls}-dot`]: !!props.progressDot
36
+ };
37
+ });
38
+ const relation = (child) => {
39
+ child && state.children.push(child);
40
+ };
41
+ const onEmit = (index) => {
42
+ emit("click-step", index);
43
+ };
44
+ provide("parent", {
45
+ relation,
46
+ state,
47
+ props,
48
+ onEmit
49
+ });
50
+ return () => {
51
+ var _a;
52
+ return h("view", {
53
+ class: classes.value
54
+ }, (_a = slots.default) == null ? void 0 : _a.call(slots));
55
+ };
56
+ }
57
+ });
58
+ export { _sfc_main as default };