@nutui/nutui 4.0.0-beta.8 → 4.0.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 (547) hide show
  1. package/CHANGELOG.md +13 -940
  2. package/README.md +1 -1
  3. package/dist/nutui.es.js +109 -105
  4. package/dist/nutui.umd.js +7 -0
  5. package/dist/packages/_es/ActionSheet.js +2 -7
  6. package/dist/packages/_es/Address.js +7 -4
  7. package/dist/packages/_es/AddressList.js +164 -239
  8. package/dist/packages/_es/Audio.js +6 -0
  9. package/dist/packages/_es/AudioOperate.js +1 -0
  10. package/dist/packages/_es/Avatar.js +2 -0
  11. package/dist/packages/_es/AvatarGroup.js +1 -0
  12. package/dist/packages/_es/Badge.js +2 -2
  13. package/dist/packages/_es/Barrage.js +60 -42
  14. package/dist/packages/_es/Calendar.js +12 -12
  15. package/dist/packages/_es/CalendarItem.js +1 -1
  16. package/dist/packages/_es/Card.js +7 -14
  17. package/dist/packages/_es/Cascader.js +5 -4
  18. package/dist/packages/_es/Category.js +2 -0
  19. package/dist/packages/_es/CategoryPane.js +3 -0
  20. package/dist/packages/_es/Cell.js +1 -0
  21. package/dist/packages/_es/Collapse.js +7 -7
  22. package/dist/packages/_es/CollapseItem.js +6 -5
  23. package/dist/packages/_es/Comment.js +16 -13
  24. package/dist/packages/_es/ConfigProvider.js +34 -0
  25. package/dist/packages/_es/Countdown.js +8 -0
  26. package/dist/packages/_es/Countup.js +20 -5
  27. package/dist/packages/_es/DatePicker.js +2 -0
  28. package/dist/packages/_es/Dialog.js +18 -19
  29. package/dist/packages/_es/Ellipsis.js +3 -3
  30. package/dist/packages/_es/Empty.js +3 -0
  31. package/dist/packages/_es/Grid.js +1 -1
  32. package/dist/packages/_es/GridItem.js +2 -1
  33. package/dist/packages/_es/ImagePreview.js +11 -13
  34. package/dist/packages/_es/InfiniteLoading.js +1 -9
  35. package/dist/packages/_es/Input.js +30 -29
  36. package/dist/packages/_es/InputNumber.js +5 -5
  37. package/dist/packages/_es/Invoice.js +5 -3
  38. package/dist/packages/_es/List.js +1 -2
  39. package/dist/packages/_es/MenuItem.js +1 -1
  40. package/dist/packages/_es/Navbar.js +10 -4
  41. package/dist/packages/_es/Noticebar.js +23 -14
  42. package/dist/packages/_es/Notify.js +7 -6
  43. package/dist/packages/_es/NumberKeyboard.js +3 -3
  44. package/dist/packages/_es/Overlay.js +11 -5
  45. package/dist/packages/_es/Picker.js +4 -1
  46. package/dist/packages/_es/Popover.js +1 -2
  47. package/dist/packages/_es/Popup.js +1 -1
  48. package/dist/packages/_es/Price.js +1 -1
  49. package/dist/packages/_es/Progress.js +39 -36
  50. package/dist/packages/_es/PullRefresh.js +10 -13
  51. package/dist/packages/_es/Radio.js +1 -1
  52. package/dist/packages/_es/RadioGroup.js +1 -1
  53. package/dist/packages/_es/Rate.js +19 -18
  54. package/dist/packages/_es/Searchbar.js +25 -19
  55. package/dist/packages/_es/ShortPassword.js +12 -11
  56. package/dist/packages/_es/Signature.js +12 -1
  57. package/dist/packages/_es/Skeleton.js +12 -4
  58. package/dist/packages/_es/Sku.js +31 -13
  59. package/dist/packages/_es/Swiper.js +1 -4
  60. package/dist/packages/_es/Switch.js +4 -1
  61. package/dist/packages/_es/TabbarItem.js +5 -0
  62. package/dist/packages/_es/Table.js +90 -93
  63. package/dist/packages/_es/Tabs.js +5 -3
  64. package/dist/packages/_es/Textarea.js +25 -4
  65. package/dist/packages/_es/TimeDetail.js +0 -4
  66. package/dist/packages/_es/TimeSelect.js +2 -2
  67. package/dist/packages/_es/Toast.js +13 -7
  68. package/dist/packages/_es/Tour.js +9 -8
  69. package/dist/packages/_es/TrendArrow.js +2 -2
  70. package/dist/packages/_es/Uploader.js +19 -16
  71. package/dist/packages/_es/Video.js +18 -0
  72. package/dist/packages/_es/{common-ceb98554.js → common-b9a5e726.js} +8 -0
  73. package/dist/packages/_es/{index-350a8abd.js → index-2ae3ae87.js} +42 -5
  74. package/dist/packages/_es/{index-da7aa231.js → index-991c279f.js} +13 -3
  75. package/dist/packages/_es/{index.vue_vue_type_script_lang-1291fceb.js → index.vue_vue_type_script_lang-22dfc112.js} +1 -0
  76. package/dist/packages/_es/{index.vue_vue_type_script_lang-d4c88f85.js → index.vue_vue_type_script_lang-442e4704.js} +1 -0
  77. package/dist/packages/actionsheet/style.mjs +3 -2
  78. package/dist/packages/address/style.mjs +4 -3
  79. package/dist/packages/addresslist/index.scss +14 -3
  80. package/dist/packages/addresslist/style.mjs +3 -2
  81. package/dist/packages/animate/style.mjs +1 -0
  82. package/dist/packages/audio/index.scss +1 -1
  83. package/dist/packages/audio/style.mjs +2 -1
  84. package/dist/packages/audiooperate/style.mjs +2 -1
  85. package/dist/packages/avatar/index.scss +3 -1
  86. package/dist/packages/avatar/style.mjs +1 -0
  87. package/dist/packages/avatargroup/index.scss +1 -1
  88. package/dist/packages/avatargroup/style.mjs +1 -0
  89. package/dist/packages/backtop/style.mjs +1 -0
  90. package/dist/packages/badge/index.scss +7 -3
  91. package/dist/packages/badge/style.mjs +1 -0
  92. package/dist/packages/barrage/style.mjs +1 -0
  93. package/dist/packages/button/index.scss +63 -1
  94. package/dist/packages/button/style.mjs +1 -0
  95. package/dist/packages/calendar/index.scss +14 -5
  96. package/dist/packages/calendar/style.mjs +4 -3
  97. package/dist/packages/calendaritem/style.mjs +1 -0
  98. package/dist/packages/card/style.mjs +3 -2
  99. package/dist/packages/cascader/style.mjs +6 -5
  100. package/dist/packages/category/style.mjs +1 -0
  101. package/dist/packages/categorypane/style.mjs +1 -0
  102. package/dist/packages/cell/index.scss +2 -0
  103. package/dist/packages/cell/style.mjs +1 -0
  104. package/dist/packages/cellgroup/style.mjs +1 -0
  105. package/dist/packages/checkbox/style.mjs +1 -0
  106. package/dist/packages/checkboxgroup/style.mjs +1 -0
  107. package/dist/packages/circleprogress/style.mjs +1 -0
  108. package/dist/packages/col/style.mjs +1 -0
  109. package/dist/packages/collapse/style.mjs +1 -0
  110. package/dist/packages/collapseitem/style.mjs +1 -0
  111. package/dist/packages/comment/index.scss +12 -7
  112. package/dist/packages/comment/style.mjs +2 -1
  113. package/dist/packages/configprovider/style.mjs +1 -0
  114. package/dist/packages/countdown/style.mjs +1 -0
  115. package/dist/packages/countup/index.scss +1 -0
  116. package/dist/packages/countup/style.mjs +1 -0
  117. package/dist/packages/datepicker/style.mjs +4 -3
  118. package/dist/packages/dialog/index.mjs +2 -1
  119. package/dist/packages/dialog/style.mjs +4 -3
  120. package/dist/packages/divider/style.mjs +1 -0
  121. package/dist/packages/drag/style.mjs +1 -0
  122. package/dist/packages/ecard/index.scss +20 -2
  123. package/dist/packages/ecard/style.mjs +2 -1
  124. package/dist/packages/elevator/index.scss +14 -0
  125. package/dist/packages/elevator/style.mjs +1 -0
  126. package/dist/packages/ellipsis/style.mjs +1 -0
  127. package/dist/packages/empty/style.mjs +1 -0
  128. package/dist/packages/fixednav/style.mjs +2 -1
  129. package/dist/packages/form/style.mjs +2 -1
  130. package/dist/packages/formitem/style.mjs +2 -1
  131. package/dist/packages/grid/style.mjs +1 -0
  132. package/dist/packages/griditem/style.mjs +1 -0
  133. package/dist/packages/icon/index.scss +1 -0
  134. package/dist/packages/icon/style.mjs +1 -0
  135. package/dist/packages/image/style.mjs +1 -0
  136. package/dist/packages/imagepreview/index.mjs +2 -1
  137. package/dist/packages/imagepreview/style.mjs +6 -5
  138. package/dist/packages/indicator/index.scss +4 -4
  139. package/dist/packages/indicator/style.mjs +1 -0
  140. package/dist/packages/infiniteloading/style.mjs +1 -0
  141. package/dist/packages/input/index.scss +6 -2
  142. package/dist/packages/input/style.mjs +1 -0
  143. package/dist/packages/inputnumber/index.scss +5 -1
  144. package/dist/packages/inputnumber/style.mjs +1 -0
  145. package/dist/packages/invoice/style.mjs +8 -7
  146. package/dist/packages/layout/style.mjs +1 -0
  147. package/dist/packages/list/style.mjs +1 -0
  148. package/dist/packages/locale/lang/zh-CN.js +1 -1
  149. package/dist/packages/menu/style.mjs +1 -0
  150. package/dist/packages/menuitem/style.mjs +3 -2
  151. package/dist/packages/navbar/style.mjs +1 -0
  152. package/dist/packages/noticebar/index.scss +13 -10
  153. package/dist/packages/noticebar/style.mjs +1 -0
  154. package/dist/packages/notify/index.mjs +2 -1
  155. package/dist/packages/notify/style.mjs +3 -2
  156. package/dist/packages/numberkeyboard/style.mjs +3 -2
  157. package/dist/packages/overlay/style.mjs +1 -0
  158. package/dist/packages/pagination/style.mjs +1 -0
  159. package/dist/packages/picker/style.mjs +3 -2
  160. package/dist/packages/popover/style.mjs +3 -2
  161. package/dist/packages/popup/style.mjs +2 -1
  162. package/dist/packages/price/style.mjs +1 -0
  163. package/dist/packages/progress/index.scss +8 -6
  164. package/dist/packages/progress/style.mjs +1 -0
  165. package/dist/packages/pullrefresh/index.scss +1 -1
  166. package/dist/packages/pullrefresh/style.mjs +1 -0
  167. package/dist/packages/radio/index.scss +14 -2
  168. package/dist/packages/radio/style.mjs +1 -0
  169. package/dist/packages/radiogroup/style.mjs +1 -0
  170. package/dist/packages/range/index.scss +6 -3
  171. package/dist/packages/range/style.mjs +1 -0
  172. package/dist/packages/rate/index.scss +5 -4
  173. package/dist/packages/rate/style.mjs +1 -0
  174. package/dist/packages/row/style.mjs +1 -0
  175. package/dist/packages/searchbar/index.scss +43 -24
  176. package/dist/packages/searchbar/style.mjs +1 -0
  177. package/dist/packages/shortpassword/style.mjs +3 -2
  178. package/dist/packages/sidenavbar/style.mjs +1 -0
  179. package/dist/packages/sidenavbaritem/style.mjs +1 -0
  180. package/dist/packages/signature/index.scss +2 -2
  181. package/dist/packages/signature/style.mjs +2 -1
  182. package/dist/packages/skeleton/style.mjs +2 -1
  183. package/dist/packages/sku/index.scss +16 -2
  184. package/dist/packages/sku/style.mjs +5 -4
  185. package/dist/packages/step/index.scss +1 -9
  186. package/dist/packages/step/style.mjs +1 -0
  187. package/dist/packages/steps/style.mjs +1 -0
  188. package/dist/packages/sticky/index.scss +1 -0
  189. package/dist/packages/sticky/style.mjs +1 -0
  190. package/dist/packages/subsidenavbar/style.mjs +1 -0
  191. package/dist/packages/swipe/style.mjs +1 -0
  192. package/dist/packages/swiper/style.mjs +1 -0
  193. package/dist/packages/swiperitem/style.mjs +1 -0
  194. package/dist/packages/switch/index.scss +7 -0
  195. package/dist/packages/switch/style.mjs +1 -0
  196. package/dist/packages/tabbar/style.mjs +1 -0
  197. package/dist/packages/tabbaritem/index.scss +6 -0
  198. package/dist/packages/tabbaritem/style.mjs +2 -1
  199. package/dist/packages/table/style.mjs +1 -0
  200. package/dist/packages/tabpane/style.mjs +1 -0
  201. package/dist/packages/tabs/style.mjs +2 -1
  202. package/dist/packages/tag/style.mjs +1 -0
  203. package/dist/packages/textarea/index.scss +7 -1
  204. package/dist/packages/textarea/style.mjs +1 -0
  205. package/dist/packages/timedetail/index.scss +14 -6
  206. package/dist/packages/timedetail/style.mjs +1 -0
  207. package/dist/packages/timepannel/style.mjs +1 -0
  208. package/dist/packages/timeselect/style.mjs +3 -2
  209. package/dist/packages/toast/index.mjs +2 -1
  210. package/dist/packages/toast/style.mjs +1 -0
  211. package/dist/packages/tour/index.scss +3 -0
  212. package/dist/packages/tour/style.mjs +4 -3
  213. package/dist/packages/trendarrow/style.mjs +1 -0
  214. package/dist/packages/uploader/index.scss +21 -15
  215. package/dist/packages/uploader/style.mjs +3 -2
  216. package/dist/packages/video/style.mjs +1 -0
  217. package/dist/packages/watermark/style.mjs +1 -0
  218. package/dist/smartips/web-types.json +709 -790
  219. package/dist/style.css +1 -1
  220. package/dist/styles/reset.css +3 -0
  221. package/dist/styles/themes/default.scss +53 -54
  222. package/dist/styles/themes/jdb.scss +53 -53
  223. package/dist/styles/themes/jddkh.scss +53 -53
  224. package/dist/styles/themes/jdt.scss +53 -54
  225. package/dist/styles/variables-jdb.scss +7 -14
  226. package/dist/styles/variables-jddkh.scss +7 -13
  227. package/dist/styles/variables-jdt.scss +8 -14
  228. package/dist/styles/variables.scss +16 -26
  229. package/dist/types/__VUE/actionsheet/index.vue.d.ts +18 -9
  230. package/dist/types/__VUE/address/index.vue.d.ts +18 -0
  231. package/dist/types/__VUE/addresslist/components/GeneralShell.vue.d.ts +23 -7
  232. package/dist/types/__VUE/addresslist/components/ItemContents.vue.d.ts +2 -2
  233. package/dist/types/__VUE/addresslist/index.vue.d.ts +6 -6
  234. package/dist/types/__VUE/barrage/index.vue.d.ts +2 -4
  235. package/dist/types/__VUE/card/index.vue.d.ts +0 -21
  236. package/dist/types/__VUE/cascader/index.vue.d.ts +18 -0
  237. package/dist/types/__VUE/cell/index.vue.d.ts +1 -1
  238. package/dist/types/__VUE/collapse/index.vue.d.ts +5 -5
  239. package/dist/types/__VUE/comment/components/CmtBottom.vue.d.ts +2 -2
  240. package/dist/types/__VUE/comment/index.vue.d.ts +4 -4
  241. package/dist/types/__VUE/dialog/index.d.ts +9 -9
  242. package/dist/types/__VUE/dialog/index.vue.d.ts +18 -0
  243. package/dist/types/__VUE/griditem/index.vue.d.ts +1 -1
  244. package/dist/types/__VUE/imagepreview/index.d.ts +12 -12
  245. package/dist/types/__VUE/infiniteloading/index.vue.d.ts +0 -18
  246. package/dist/types/__VUE/input/index.vue.d.ts +6 -39
  247. package/dist/types/__VUE/noticebar/index.vue.d.ts +6 -20
  248. package/dist/types/__VUE/notify/index.d.ts +3 -3
  249. package/dist/types/__VUE/popover/index.vue.d.ts +0 -9
  250. package/dist/types/__VUE/popup/common.d.ts +8 -0
  251. package/dist/types/__VUE/popup/index.vue.d.ts +18 -0
  252. package/dist/types/__VUE/popup/props.d.ts +8 -0
  253. package/dist/types/__VUE/progress/index.vue.d.ts +1 -0
  254. package/dist/types/__VUE/pullrefresh/index.vue.d.ts +0 -9
  255. package/dist/types/__VUE/rate/index.vue.d.ts +17 -11
  256. package/dist/types/__VUE/searchbar/index.vue.d.ts +1 -1
  257. package/dist/types/__VUE/shortpassword/index.vue.d.ts +1 -1
  258. package/dist/types/__VUE/sku/index.vue.d.ts +18 -0
  259. package/dist/types/__VUE/swiper/index.vue.d.ts +0 -9
  260. package/dist/types/__VUE/table/common.d.ts +9 -9
  261. package/dist/types/__VUE/table/index.vue.d.ts +13 -11
  262. package/dist/types/__VUE/table/renderColumn.d.ts +9 -9
  263. package/dist/types/__VUE/textarea/index.vue.d.ts +5 -0
  264. package/dist/types/__VUE/timedetail/index.vue.d.ts +0 -9
  265. package/dist/types/__VUE/toast/index.d.ts +3 -3
  266. package/dist/types/__VUE/tour/index.vue.d.ts +9 -9
  267. package/dist/types/index.d.ts +10 -6
  268. package/package.json +10 -101
  269. package/dist/nutui.umd.cjs +0 -19974
  270. package/dist/packages/_es/Loading-5f2ef345.js +0 -59
  271. package/dist/packages/_es/Loading-ff1ade5e.js +0 -59
  272. package/dist/packages/_es/_plugin-vue_export-helper-214bd398.js +0 -15
  273. package/dist/packages/_es/_plugin-vue_export-helper-3119770d.js +0 -15
  274. package/dist/packages/_es/_plugin-vue_export-helper-40ecb205.js +0 -15
  275. package/dist/packages/_es/_plugin-vue_export-helper-cabb815c.js +0 -15
  276. package/dist/packages/_es/common-1144cf18.js +0 -142
  277. package/dist/packages/_es/common-33d6538d.js +0 -142
  278. package/dist/packages/_es/common-38afc79e.js +0 -142
  279. package/dist/packages/_es/common-fcbd940e.js +0 -142
  280. package/dist/packages/_es/component-555f9132.js +0 -150
  281. package/dist/packages/_es/component-93f40b7f.js +0 -144
  282. package/dist/packages/_es/component-cb778481.js +0 -150
  283. package/dist/packages/_es/component-f9e4b05e.js +0 -144
  284. package/dist/packages/_es/index-122e380e.js +0 -15
  285. package/dist/packages/_es/index-15d5ca2c.js +0 -35
  286. package/dist/packages/_es/index-16f572cc.js +0 -52
  287. package/dist/packages/_es/index-18e7c77e.js +0 -38
  288. package/dist/packages/_es/index-22af3a75.js +0 -35
  289. package/dist/packages/_es/index-2d3e73a7.js +0 -239
  290. package/dist/packages/_es/index-375f2695.js +0 -15
  291. package/dist/packages/_es/index-57aa518c.js +0 -13
  292. package/dist/packages/_es/index-65e55319.js +0 -72
  293. package/dist/packages/_es/index-673e467d.js +0 -72
  294. package/dist/packages/_es/index-69b79b10.js +0 -52
  295. package/dist/packages/_es/index-7386d8ea.js +0 -35
  296. package/dist/packages/_es/index-75be4de5.js +0 -72
  297. package/dist/packages/_es/index-7653e348.js +0 -814
  298. package/dist/packages/_es/index-83f367f2.js +0 -15
  299. package/dist/packages/_es/index-a0ae7438.js +0 -72
  300. package/dist/packages/_es/index-abb46652.js +0 -13
  301. package/dist/packages/_es/index-bd90ef5b.js +0 -38
  302. package/dist/packages/_es/index-dd23f7fc.js +0 -35
  303. package/dist/packages/_es/index-ec1281d1.js +0 -15
  304. package/dist/packages/_es/index-ee55d99f.js +0 -814
  305. package/dist/packages/_es/index-f9640059.js +0 -239
  306. package/dist/packages/_es/index.taro-15624a72.js +0 -833
  307. package/dist/packages/_es/index.taro-2ce92fc8.js +0 -76
  308. package/dist/packages/_es/index.taro-356b6989.js +0 -238
  309. package/dist/packages/_es/index.taro-5564033f.js +0 -833
  310. package/dist/packages/_es/index.taro-be0723aa.js +0 -76
  311. package/dist/packages/_es/index.taro-da1bc684.js +0 -238
  312. package/dist/packages/_es/index.taro.vue_vue_type_script_lang-5696dfc0.js +0 -102
  313. package/dist/packages/_es/index.taro.vue_vue_type_script_lang-5b67ab83.js +0 -102
  314. package/dist/packages/_es/index.vue_vue_type_script_lang-164ba0ab.js +0 -102
  315. package/dist/packages/_es/index.vue_vue_type_script_lang-1c056efc.js +0 -156
  316. package/dist/packages/_es/index.vue_vue_type_script_lang-2c5dd6ac.js +0 -50
  317. package/dist/packages/_es/index.vue_vue_type_script_lang-3bc78a6d.js +0 -156
  318. package/dist/packages/_es/index.vue_vue_type_script_lang-630bc089.js +0 -50
  319. package/dist/packages/_es/index.vue_vue_type_script_lang-ba9e696d.js +0 -50
  320. package/dist/packages/_es/index.vue_vue_type_script_lang-cab1cdc4.js +0 -102
  321. package/dist/packages/_es/index.vue_vue_type_script_lang-f91aa3ff.js +0 -50
  322. package/dist/packages/_es/interceptor-5d3d8b0a.js +0 -34
  323. package/dist/packages/_es/interceptor-bf7033c2.js +0 -34
  324. package/dist/packages/_es/interceptor-ccd1403c.js +0 -34
  325. package/dist/packages/_es/interceptor-dbee5851.js +0 -34
  326. package/dist/packages/_es/mountComponent-1316c4a2.js +0 -44
  327. package/dist/packages/_es/mountComponent-3f8ea19f.js +0 -44
  328. package/dist/packages/_es/pxCheck-110c0d58.js +0 -11
  329. package/dist/packages/_es/pxCheck-42d1a00f.js +0 -11
  330. package/dist/packages/_es/pxCheck-62a0c829.js +0 -11
  331. package/dist/packages/_es/pxCheck-70f351cb.js +0 -11
  332. package/dist/packages/_es/raf-182636f4.js +0 -30
  333. package/dist/packages/_es/raf-2ee3bcbb.js +0 -30
  334. package/dist/packages/_es/raf-6ea498df.js +0 -21
  335. package/dist/packages/_es/raf-8518c796.js +0 -21
  336. package/dist/packages/_es/renderIcon-0d8f6335.js +0 -14
  337. package/dist/packages/_es/renderIcon-1be33355.js +0 -14
  338. package/dist/packages/_es/renderIcon-ba0fcba3.js +0 -14
  339. package/dist/packages/_es/renderIcon-bde9e715.js +0 -14
  340. package/dist/packages/_es/style.css +0 -16
  341. package/dist/packages/_es/style_icon-299fd467.js +0 -6
  342. package/dist/packages/_es/style_icon-8872f331.js +0 -6
  343. package/dist/packages/actionsheet/style.cjs +0 -3
  344. package/dist/packages/address/style.cjs +0 -4
  345. package/dist/packages/addresslist/style.cjs +0 -3
  346. package/dist/packages/animate/style.cjs +0 -1
  347. package/dist/packages/audio/style.cjs +0 -2
  348. package/dist/packages/audiooperate/style.cjs +0 -2
  349. package/dist/packages/avatar/style.cjs +0 -1
  350. package/dist/packages/avatargroup/style.cjs +0 -1
  351. package/dist/packages/backtop/style.cjs +0 -1
  352. package/dist/packages/badge/style.cjs +0 -1
  353. package/dist/packages/barrage/style.cjs +0 -1
  354. package/dist/packages/button/style.cjs +0 -1
  355. package/dist/packages/calendar/style.cjs +0 -4
  356. package/dist/packages/calendaritem/style.cjs +0 -1
  357. package/dist/packages/card/style.cjs +0 -3
  358. package/dist/packages/cascader/style.cjs +0 -6
  359. package/dist/packages/category/style.cjs +0 -1
  360. package/dist/packages/categorypane/style.cjs +0 -1
  361. package/dist/packages/cell/style.cjs +0 -1
  362. package/dist/packages/cellgroup/style.cjs +0 -1
  363. package/dist/packages/checkbox/style.cjs +0 -1
  364. package/dist/packages/checkboxgroup/style.cjs +0 -1
  365. package/dist/packages/circleprogress/style.cjs +0 -1
  366. package/dist/packages/col/style.cjs +0 -1
  367. package/dist/packages/collapse/style.cjs +0 -1
  368. package/dist/packages/collapseitem/style.cjs +0 -1
  369. package/dist/packages/comment/style.cjs +0 -2
  370. package/dist/packages/configprovider/style.cjs +0 -1
  371. package/dist/packages/countdown/style.cjs +0 -1
  372. package/dist/packages/countup/style.cjs +0 -1
  373. package/dist/packages/datepicker/style.cjs +0 -4
  374. package/dist/packages/dialog/style.cjs +0 -4
  375. package/dist/packages/divider/style.cjs +0 -1
  376. package/dist/packages/drag/style.cjs +0 -1
  377. package/dist/packages/ecard/style.cjs +0 -2
  378. package/dist/packages/elevator/style.cjs +0 -1
  379. package/dist/packages/ellipsis/style.cjs +0 -1
  380. package/dist/packages/empty/style.cjs +0 -1
  381. package/dist/packages/fixednav/style.cjs +0 -2
  382. package/dist/packages/form/style.cjs +0 -2
  383. package/dist/packages/formitem/style.cjs +0 -2
  384. package/dist/packages/grid/style.cjs +0 -1
  385. package/dist/packages/griditem/style.cjs +0 -1
  386. package/dist/packages/icon/style.cjs +0 -1
  387. package/dist/packages/image/style.cjs +0 -1
  388. package/dist/packages/imagepreview/style.cjs +0 -6
  389. package/dist/packages/indicator/style.cjs +0 -1
  390. package/dist/packages/infiniteloading/style.cjs +0 -1
  391. package/dist/packages/input/style.cjs +0 -1
  392. package/dist/packages/inputnumber/style.cjs +0 -1
  393. package/dist/packages/invoice/style.cjs +0 -8
  394. package/dist/packages/layout/style.cjs +0 -1
  395. package/dist/packages/list/style.cjs +0 -1
  396. package/dist/packages/locale/lang/baseLang-0e7bcba4.js +0 -10
  397. package/dist/packages/locale/lang/baseLang-5db74119.js +0 -10
  398. package/dist/packages/locale/lang/baseLang-6070c617.js +0 -10
  399. package/dist/packages/locale/lang/baseLang-8d65df5e.js +0 -10
  400. package/dist/packages/menu/style.cjs +0 -1
  401. package/dist/packages/menuitem/style.cjs +0 -3
  402. package/dist/packages/navbar/style.cjs +0 -1
  403. package/dist/packages/noticebar/style.cjs +0 -1
  404. package/dist/packages/notify/style.cjs +0 -3
  405. package/dist/packages/numberkeyboard/style.cjs +0 -3
  406. package/dist/packages/overlay/style.cjs +0 -1
  407. package/dist/packages/pagination/style.cjs +0 -1
  408. package/dist/packages/picker/style.cjs +0 -3
  409. package/dist/packages/popover/style.cjs +0 -3
  410. package/dist/packages/popup/style.cjs +0 -2
  411. package/dist/packages/price/style.cjs +0 -1
  412. package/dist/packages/progress/style.cjs +0 -1
  413. package/dist/packages/pullrefresh/style.cjs +0 -1
  414. package/dist/packages/radio/style.cjs +0 -1
  415. package/dist/packages/radiogroup/style.cjs +0 -1
  416. package/dist/packages/range/style.cjs +0 -1
  417. package/dist/packages/rate/style.cjs +0 -1
  418. package/dist/packages/row/style.cjs +0 -1
  419. package/dist/packages/searchbar/style.cjs +0 -1
  420. package/dist/packages/shortpassword/style.cjs +0 -3
  421. package/dist/packages/sidenavbar/style.cjs +0 -1
  422. package/dist/packages/sidenavbaritem/style.cjs +0 -1
  423. package/dist/packages/signature/style.cjs +0 -2
  424. package/dist/packages/skeleton/style.cjs +0 -2
  425. package/dist/packages/sku/style.cjs +0 -5
  426. package/dist/packages/step/style.cjs +0 -1
  427. package/dist/packages/steps/style.cjs +0 -1
  428. package/dist/packages/sticky/style.cjs +0 -1
  429. package/dist/packages/subsidenavbar/style.cjs +0 -1
  430. package/dist/packages/swipe/style.cjs +0 -1
  431. package/dist/packages/swiper/style.cjs +0 -1
  432. package/dist/packages/swiperitem/style.cjs +0 -1
  433. package/dist/packages/switch/style.cjs +0 -1
  434. package/dist/packages/tabbar/style.cjs +0 -1
  435. package/dist/packages/tabbaritem/style.cjs +0 -2
  436. package/dist/packages/table/style.cjs +0 -1
  437. package/dist/packages/tabpane/style.cjs +0 -1
  438. package/dist/packages/tabs/style.cjs +0 -2
  439. package/dist/packages/tag/style.cjs +0 -1
  440. package/dist/packages/textarea/style.cjs +0 -1
  441. package/dist/packages/timedetail/style.cjs +0 -1
  442. package/dist/packages/timepannel/style.cjs +0 -1
  443. package/dist/packages/timeselect/style.cjs +0 -3
  444. package/dist/packages/toast/style.cjs +0 -1
  445. package/dist/packages/tour/style.cjs +0 -4
  446. package/dist/packages/trendarrow/style.cjs +0 -1
  447. package/dist/packages/uploader/style.cjs +0 -3
  448. package/dist/packages/video/style.cjs +0 -1
  449. package/dist/packages/watermark/style.cjs +0 -1
  450. package/dist/smartips/attributes.json +0 -2814
  451. package/dist/smartips/tags.json +0 -1048
  452. package/dist/styles/theme-deafult.scss +0 -919
  453. package/dist/styles/theme-jdt.scss +0 -892
  454. package/dist/styles/variables-var.scss +0 -854
  455. package/dist/types/__VUE/actionsheet/index.taro.vue.d.ts +0 -292
  456. package/dist/types/__VUE/address/index.taro.vue.d.ts +0 -377
  457. package/dist/types/__VUE/addresslist/components/SwipeShell.vue.d.ts +0 -26
  458. package/dist/types/__VUE/addresslist/index.taro.vue.d.ts +0 -83
  459. package/dist/types/__VUE/animate/index.taro.vue.d.ts +0 -54
  460. package/dist/types/__VUE/avatar/index.taro.vue.d.ts +0 -76
  461. package/dist/types/__VUE/avatargroup/index.taro.vue.d.ts +0 -92
  462. package/dist/types/__VUE/backtop/index.taro.vue.d.ts +0 -76
  463. package/dist/types/__VUE/badge/index.taro.vue.d.ts +0 -93
  464. package/dist/types/__VUE/barrage/index.taro.vue.d.ts +0 -81
  465. package/dist/types/__VUE/button/index.taro.vue.d.ts +0 -117
  466. package/dist/types/__VUE/calendar/index.taro.vue.d.ts +0 -187
  467. package/dist/types/__VUE/calendaritem/index.taro.vue.d.ts +0 -217
  468. package/dist/types/__VUE/card/index.taro.vue.d.ts +0 -89
  469. package/dist/types/__VUE/cascader/cascader-item.taro.vue.d.ts +0 -77
  470. package/dist/types/__VUE/cascader/index.taro.vue.d.ts +0 -245
  471. package/dist/types/__VUE/category/index.taro.vue.d.ts +0 -42
  472. package/dist/types/__VUE/categorypane/index.taro.vue.d.ts +0 -54
  473. package/dist/types/__VUE/cell/index.taro.vue.d.ts +0 -124
  474. package/dist/types/__VUE/checkbox/index.taro.vue.d.ts +0 -12
  475. package/dist/types/__VUE/circleprogress/index.taro.vue.d.ts +0 -93
  476. package/dist/types/__VUE/collapse/index.taro.vue.d.ts +0 -38
  477. package/dist/types/__VUE/collapseitem/index.taro.vue.d.ts +0 -111
  478. package/dist/types/__VUE/comment/index.taro.vue.d.ts +0 -119
  479. package/dist/types/__VUE/configprovider/index.taro.vue.d.ts +0 -45
  480. package/dist/types/__VUE/countdown/index.taro.vue.d.ts +0 -103
  481. package/dist/types/__VUE/countup/index.taro.vue.d.ts +0 -213
  482. package/dist/types/__VUE/datepicker/index.taro.vue.d.ts +0 -232
  483. package/dist/types/__VUE/dialog/index.taro.vue.d.ts +0 -327
  484. package/dist/types/__VUE/divider/index.taro.vue.d.ts +0 -53
  485. package/dist/types/__VUE/drag/index.taro.vue.d.ts +0 -62
  486. package/dist/types/__VUE/ecard/index.taro.vue.d.ts +0 -128
  487. package/dist/types/__VUE/elevator/index.taro.vue.d.ts +0 -119
  488. package/dist/types/__VUE/ellipsis/index.taro.vue.d.ts +0 -103
  489. package/dist/types/__VUE/empty/index.taro.vue.d.ts +0 -46
  490. package/dist/types/__VUE/fixednav/index.taro.vue.d.ts +0 -105
  491. package/dist/types/__VUE/form/index.taro.vue.d.ts +0 -40
  492. package/dist/types/__VUE/formitem/index.taro.vue.d.ts +0 -114
  493. package/dist/types/__VUE/grid/index.taro.vue.d.ts +0 -84
  494. package/dist/types/__VUE/griditem/index.taro.vue.d.ts +0 -22
  495. package/dist/types/__VUE/icon/index.taro.vue.d.ts +0 -12
  496. package/dist/types/__VUE/image/index.taro.vue.d.ts +0 -32
  497. package/dist/types/__VUE/imagepreview/index.taro.vue.d.ts +0 -172
  498. package/dist/types/__VUE/indicator/index.taro.vue.d.ts +0 -70
  499. package/dist/types/__VUE/input/index.taro.vue.d.ts +0 -257
  500. package/dist/types/__VUE/inputnumber/index.taro.vue.d.ts +0 -116
  501. package/dist/types/__VUE/invoice/index.taro.vue.d.ts +0 -52
  502. package/dist/types/__VUE/layout/index.taro.vue.d.ts +0 -12
  503. package/dist/types/__VUE/list/index.taro.vue.d.ts +0 -58
  504. package/dist/types/__VUE/menu/index.taro.vue.d.ts +0 -93
  505. package/dist/types/__VUE/menuitem/index.taro.vue.d.ts +0 -89
  506. package/dist/types/__VUE/navbar/index.taro.vue.d.ts +0 -121
  507. package/dist/types/__VUE/noticebar/index.taro.vue.d.ts +0 -217
  508. package/dist/types/__VUE/notify/index.taro.vue.d.ts +0 -97
  509. package/dist/types/__VUE/numberkeyboard/index.taro.vue.d.ts +0 -132
  510. package/dist/types/__VUE/overlay/index.taro.vue.d.ts +0 -85
  511. package/dist/types/__VUE/pagination/index.taro.vue.d.ts +0 -111
  512. package/dist/types/__VUE/picker/index.taro.vue.d.ts +0 -14
  513. package/dist/types/__VUE/popover/index.taro.vue.d.ts +0 -201
  514. package/dist/types/__VUE/popup/index.taro.vue.d.ts +0 -201
  515. package/dist/types/__VUE/price/index.taro.vue.d.ts +0 -87
  516. package/dist/types/__VUE/progress/index.taro.vue.d.ts +0 -128
  517. package/dist/types/__VUE/radio/index.taro.vue.d.ts +0 -53
  518. package/dist/types/__VUE/range/index.taro.vue.d.ts +0 -158
  519. package/dist/types/__VUE/rate/index.taro.vue.d.ts +0 -124
  520. package/dist/types/__VUE/scrollView/index.taro.vue.d.ts +0 -14
  521. package/dist/types/__VUE/searchbar/index.taro.vue.d.ts +0 -177
  522. package/dist/types/__VUE/shortpassword/index.taro.vue.d.ts +0 -103
  523. package/dist/types/__VUE/sidenavbar/index.taro.vue.d.ts +0 -31
  524. package/dist/types/__VUE/signature/index.taro.vue.d.ts +0 -83
  525. package/dist/types/__VUE/skeleton/index.taro.vue.d.ts +0 -115
  526. package/dist/types/__VUE/sku/index.taro.vue.d.ts +0 -182
  527. package/dist/types/__VUE/steps/index.taro.vue.d.ts +0 -46
  528. package/dist/types/__VUE/sticky/index.taro.vue.d.ts +0 -47
  529. package/dist/types/__VUE/swipe/index.taro.vue.d.ts +0 -71
  530. package/dist/types/__VUE/swiper/index.taro.vue.d.ts +0 -176
  531. package/dist/types/__VUE/swiper/use-touch.d.ts +0 -16
  532. package/dist/types/__VUE/swiperitem/index.taro.vue.d.ts +0 -18
  533. package/dist/types/__VUE/switch/index.taro.vue.d.ts +0 -108
  534. package/dist/types/__VUE/tabbar/index.taro.vue.d.ts +0 -93
  535. package/dist/types/__VUE/tabbaritem/index.taro.vue.d.ts +0 -59
  536. package/dist/types/__VUE/table/index.taro.vue.d.ts +0 -78
  537. package/dist/types/__VUE/tabs/index.taro.vue.d.ts +0 -164
  538. package/dist/types/__VUE/tag/index.taro.vue.d.ts +0 -90
  539. package/dist/types/__VUE/textarea/index.taro.vue.d.ts +0 -122
  540. package/dist/types/__VUE/timedetail/index.taro.vue.d.ts +0 -47
  541. package/dist/types/__VUE/timepannel/index.taro.vue.d.ts +0 -42
  542. package/dist/types/__VUE/timeselect/index.taro.vue.d.ts +0 -91
  543. package/dist/types/__VUE/toast/index.taro.vue.d.ts +0 -184
  544. package/dist/types/__VUE/tour/index.taro.vue.d.ts +0 -192
  545. package/dist/types/__VUE/trendarrow/index.taro.vue.d.ts +0 -105
  546. package/dist/types/__VUE/uploader/index.taro.vue.d.ts +0 -260
  547. package/dist/types/__VUE/watermark/index.taro.vue.d.ts +0 -175
@@ -1,9 +1,9 @@
1
+ import { defineComponent, h, reactive, computed, watch, toRefs, resolveComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, Fragment, renderList, normalizeStyle, createTextVNode, toDisplayString, renderSlot, createBlock, createCommentVNode } from "vue";
1
2
  import { c as createComponent } from "./component-81a4c1d0.js";
2
- import { h, reactive, computed, watch, toRefs, resolveComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, Fragment, renderList, normalizeStyle, createTextVNode, toDisplayString, renderSlot, createBlock, createCommentVNode } from "vue";
3
3
  import { DownArrow } from "@nutui/icons-vue";
4
4
  import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
5
5
  import "../locale/lang";
6
- const RenderColumn = {
6
+ const RenderColumn = defineComponent({
7
7
  setup(props) {
8
8
  return () => h(`view`, {}, props.slots[0] ? props.slots[0](props.record) : props.slots[1](props.record));
9
9
  },
@@ -11,103 +11,100 @@ const RenderColumn = {
11
11
  slots: Array,
12
12
  record: Object
13
13
  }
14
- };
15
- const component = (componentName2, translate2) => {
16
- return {
17
- components: {
18
- RenderColumn,
19
- DownArrow
14
+ });
15
+ const { componentName, create, translate } = createComponent("table");
16
+ const _sfc_main = create({
17
+ components: {
18
+ RenderColumn,
19
+ DownArrow
20
+ },
21
+ props: {
22
+ bordered: {
23
+ type: Boolean,
24
+ default: true
20
25
  },
21
- props: {
22
- bordered: {
23
- type: Boolean,
24
- default: true
25
- },
26
- columns: {
27
- type: Array,
28
- default: () => {
29
- return [];
30
- }
31
- },
32
- data: {
33
- type: Object,
34
- default: () => {
35
- return {};
36
- }
37
- },
38
- summary: {
39
- type: Function,
40
- default: null
41
- },
42
- striped: {
43
- type: Boolean,
44
- default: false
26
+ columns: {
27
+ type: Array,
28
+ default: () => {
29
+ return [];
45
30
  }
46
31
  },
47
- emits: ["sorter"],
48
- setup(props, { emit, slots }) {
49
- const state = reactive({
50
- curData: props.data
51
- });
52
- const classes = computed(() => {
53
- const prefixCls = componentName2;
54
- return {
55
- [prefixCls]: true
56
- };
57
- });
58
- const cellClasses = (item) => {
59
- return {
60
- "nut-table__main__head__tr--border": props.bordered,
61
- [`nut-table__main__head__tr--align${item.align ? item.align : ""}`]: true
62
- };
63
- };
64
- const stylehead = (item) => {
65
- return item.stylehead ? item.stylehead : "";
66
- };
67
- const stylecolumn = (item) => {
68
- return item.stylecolumn ? item.stylecolumn : "";
69
- };
70
- const getColumnItem = (value) => {
71
- return props.columns.filter((item) => item.key === value)[0];
72
- };
73
- const getColumnItemStyle = (value) => {
74
- const style = props.columns.filter((item) => item.key === value);
75
- return style[0].stylecolumn ? style[0].stylecolumn : "";
76
- };
77
- const handleSorterClick = (item) => {
78
- if (item.sorter) {
79
- emit("sorter", item);
80
- state.curData = typeof item.sorter === "function" ? state.curData.sort(item.sorter) : item.sorter === "default" ? state.curData.sort() : state.curData;
81
- }
82
- };
83
- const sortDataItem = () => {
84
- return props.columns.map((columns) => {
85
- return [columns.key, columns.render];
86
- });
32
+ data: {
33
+ type: Object,
34
+ default: () => {
35
+ return {};
36
+ }
37
+ },
38
+ summary: {
39
+ type: Function,
40
+ default: null
41
+ },
42
+ striped: {
43
+ type: Boolean,
44
+ default: false
45
+ }
46
+ },
47
+ emits: ["sorter"],
48
+ setup(props, { emit, slots }) {
49
+ const state = reactive({
50
+ curData: props.data
51
+ });
52
+ const classes = computed(() => {
53
+ const prefixCls = componentName;
54
+ return {
55
+ [prefixCls]: true
87
56
  };
88
- watch(
89
- () => props.data,
90
- (val) => {
91
- state.curData = val.slice();
92
- }
93
- );
57
+ });
58
+ const cellClasses = (item) => {
94
59
  return {
95
- ...toRefs(state),
96
- classes,
97
- cellClasses,
98
- getColumnItem,
99
- getColumnItemStyle,
100
- handleSorterClick,
101
- sortDataItem,
102
- translate: translate2,
103
- stylehead,
104
- stylecolumn
60
+ "nut-table__main__head__tr--border": props.bordered,
61
+ [`nut-table__main__head__tr--align${item.align ? item.align : ""}`]: true
105
62
  };
106
- }
107
- };
108
- };
109
- const { componentName, create, translate } = createComponent("table");
110
- const _sfc_main = create(component(componentName, translate));
63
+ };
64
+ const stylehead = (item) => {
65
+ return item.stylehead ? item.stylehead : "";
66
+ };
67
+ const stylecolumn = (item) => {
68
+ return item.stylecolumn ? item.stylecolumn : "";
69
+ };
70
+ const getColumnItem = (value) => {
71
+ return props.columns.filter((item) => item.key === value)[0];
72
+ };
73
+ const getColumnItemStyle = (value) => {
74
+ const style = props.columns.filter((item) => item.key === value);
75
+ return style[0].stylecolumn ? style[0].stylecolumn : "";
76
+ };
77
+ const handleSorterClick = (item) => {
78
+ if (item.sorter) {
79
+ emit("sorter", item);
80
+ state.curData = typeof item.sorter === "function" ? state.curData.sort(item.sorter) : item.sorter === "default" ? state.curData.sort() : state.curData;
81
+ }
82
+ };
83
+ const sortDataItem = () => {
84
+ return props.columns.map((columns) => {
85
+ return [columns.key, columns.render];
86
+ });
87
+ };
88
+ watch(
89
+ () => props.data,
90
+ (val) => {
91
+ state.curData = val.slice();
92
+ }
93
+ );
94
+ return {
95
+ ...toRefs(state),
96
+ classes,
97
+ cellClasses,
98
+ getColumnItem,
99
+ getColumnItemStyle,
100
+ handleSorterClick,
101
+ sortDataItem,
102
+ translate,
103
+ stylehead,
104
+ stylecolumn
105
+ };
106
+ }
107
+ });
111
108
  const _hoisted_1 = { class: "nut-table__main__head" };
112
109
  const _hoisted_2 = { class: "nut-table__main__head__tr" };
113
110
  const _hoisted_3 = ["onClick"];
@@ -35,6 +35,7 @@ const _sfc_main = create({
35
35
  direction: {
36
36
  type: String,
37
37
  default: "horizontal"
38
+ //vertical
38
39
  },
39
40
  size: {
40
41
  type: String,
@@ -43,6 +44,7 @@ const _sfc_main = create({
43
44
  type: {
44
45
  type: String,
45
46
  default: "line"
47
+ //card、line、smile
46
48
  },
47
49
  titleScroll: {
48
50
  type: Boolean,
@@ -114,9 +116,9 @@ const _sfc_main = create({
114
116
  let index = titles.value.findIndex((item) => item.paneKey == value);
115
117
  if (titles.value.length == 0) {
116
118
  console.error("[NutUI] <Tabs> 当前未找到 TabPane 组件元素 , 请检查 .");
117
- } else if (index == -1) {
118
- console.error("[NutUI] <Tabs> 请检查 v-model 值是否为 paneKey ,如 paneKey 未设置,请采用下标控制 .");
119
- } else {
119
+ } else if (index == -1)
120
+ ;
121
+ else {
120
122
  currentIndex.value = index;
121
123
  }
122
124
  };
@@ -67,6 +67,7 @@ const _sfc_main = create({
67
67
  const styles = computed(() => {
68
68
  return {
69
69
  textAlign: props.textAlign
70
+ // resize: props.autosize ? 'vertical' : 'none'
70
71
  };
71
72
  });
72
73
  const getContentHeight = () => {
@@ -102,8 +103,14 @@ const _sfc_main = create({
102
103
  emit("change", value, event);
103
104
  };
104
105
  const change = (event) => {
105
- const input = event.target;
106
- emitChange(input.value, event);
106
+ if (!event.target.composing) {
107
+ const input = event.target;
108
+ let value = input.value;
109
+ if (props.maxLength && value.length > Number(props.maxLength)) {
110
+ value = value.slice(0, Number(props.maxLength));
111
+ }
112
+ emitChange(input.value, event);
113
+ }
107
114
  };
108
115
  const focus = (event) => {
109
116
  if (props.disabled)
@@ -122,6 +129,15 @@ const _sfc_main = create({
122
129
  emitChange(value, event);
123
130
  emit("blur", { value, event });
124
131
  };
132
+ const startComposing = ({ target }) => {
133
+ target.composing = true;
134
+ };
135
+ const endComposing = ({ target }) => {
136
+ if (target.composing) {
137
+ target.composing = false;
138
+ target.dispatchEvent(new Event("input"));
139
+ }
140
+ };
125
141
  return {
126
142
  textareaRef,
127
143
  classes,
@@ -129,7 +145,9 @@ const _sfc_main = create({
129
145
  change,
130
146
  focus,
131
147
  blur,
132
- translate
148
+ translate,
149
+ startComposing,
150
+ endComposing
133
151
  };
134
152
  }
135
153
  });
@@ -155,7 +173,10 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
155
173
  onFocus: _cache[2] || (_cache[2] = (...args) => _ctx.focus && _ctx.focus(...args)),
156
174
  maxlength: _ctx.maxLength,
157
175
  placeholder: _ctx.placeholder || _ctx.translate("placeholder"),
158
- autofocus: _ctx.autofocus
176
+ autofocus: _ctx.autofocus,
177
+ onChange: _cache[3] || (_cache[3] = (...args) => _ctx.endComposing && _ctx.endComposing(...args)),
178
+ onCompositionend: _cache[4] || (_cache[4] = (...args) => _ctx.endComposing && _ctx.endComposing(...args)),
179
+ onCompositionstart: _cache[5] || (_cache[5] = (...args) => _ctx.startComposing && _ctx.startComposing(...args))
159
180
  }, null, 44, _hoisted_1),
160
181
  _ctx.limitShow ? (openBlock(), createElementBlock("view", _hoisted_2, toDisplayString(_ctx.modelValue ? _ctx.modelValue.length : 0) + "/" + toDisplayString(_ctx.maxLength), 1)) : createCommentVNode("", true)
161
182
  ], 2);
@@ -11,10 +11,6 @@ const _sfc_main = create({
11
11
  default: () => {
12
12
  return [];
13
13
  }
14
- },
15
- detailKey: {
16
- type: [Number, String],
17
- default: 0
18
14
  }
19
15
  },
20
16
  emits: ["select"],
@@ -1,6 +1,6 @@
1
1
  import { computed, provide, resolveComponent, openBlock, createBlock, normalizeStyle, withCtx, createElementVNode, normalizeClass, createElementBlock, toDisplayString, renderSlot } from "vue";
2
2
  import { c as createComponent } from "./component-81a4c1d0.js";
3
- import { P as Popup } from "./index-da7aa231.js";
3
+ import { P as Popup } from "./index-991c279f.js";
4
4
  import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
5
5
  import "../locale/lang";
6
6
  import "./Overlay.js";
@@ -35,7 +35,7 @@ const _sfc_main = create({
35
35
  },
36
36
  lockScroll: {
37
37
  type: [Boolean],
38
- default: false
38
+ default: true
39
39
  },
40
40
  teleportDisable: {
41
41
  type: Boolean,
@@ -196,7 +196,9 @@ const defaultOptions = {
196
196
  msg: "",
197
197
  id: "",
198
198
  duration: 2e3,
199
+ //显示时间(毫秒)
199
200
  center: true,
201
+ // 未实现
200
202
  type: "text",
201
203
  title: "",
202
204
  customClass: "",
@@ -205,13 +207,19 @@ const defaultOptions = {
205
207
  iconSize: "20",
206
208
  icon: null,
207
209
  textAlignCenter: true,
210
+ // 未实现
208
211
  loadingRotate: true,
212
+ // 未实现
209
213
  bgColor: "",
210
214
  onClose: null,
215
+ // 未实现
211
216
  unmount: null,
212
217
  cover: false,
218
+ //透明遮罩层 // 未实现
213
219
  coverColor: "",
220
+ // 未实现
214
221
  closeOnClickOverlay: false
222
+ // 未实现
215
223
  };
216
224
  let idsMap = [];
217
225
  let optsMap = [];
@@ -245,7 +253,7 @@ const updateToast = (opts) => {
245
253
  }
246
254
  const instance = createVNode(Toast, opts);
247
255
  render(instance, container);
248
- return ToastFunction;
256
+ return showToast;
249
257
  }
250
258
  };
251
259
  const mountToast = (opts) => {
@@ -266,7 +274,7 @@ const mountToast = (opts) => {
266
274
  CreateComponent(opts, {
267
275
  wrapper: Toast
268
276
  });
269
- return ToastFunction;
277
+ return showToast;
270
278
  };
271
279
  const errorMsg = (msg) => {
272
280
  if (!msg) {
@@ -274,7 +282,7 @@ const errorMsg = (msg) => {
274
282
  return;
275
283
  }
276
284
  };
277
- const ToastFunction = {
285
+ const showToast = {
278
286
  text(msg, opts = {}) {
279
287
  errorMsg(msg);
280
288
  return mountToast({ ...opts, type: "text", msg });
@@ -304,11 +312,9 @@ const ToastFunction = {
304
312
  },
305
313
  install(app) {
306
314
  app.use(Toast);
307
- app.config.globalProperties.$toast = ToastFunction;
308
315
  }
309
316
  };
310
317
  export {
311
- Toast,
312
- ToastFunction,
313
- ToastFunction as default
318
+ Toast as default,
319
+ showToast
314
320
  };
@@ -6,7 +6,7 @@ import Popover from "./Popover.js";
6
6
  import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
7
7
  import "../locale/lang";
8
8
  import "./renderIcon-3d0fd47c.js";
9
- import "./index-da7aa231.js";
9
+ import "./index-991c279f.js";
10
10
  import "./Overlay.js";
11
11
  const { create } = createComponent("tour");
12
12
  const _sfc_main = create({
@@ -15,10 +15,11 @@ const _sfc_main = create({
15
15
  Close
16
16
  },
17
17
  props: {
18
- visible: { type: Boolean, default: false },
18
+ modelValue: { type: Boolean, default: false },
19
19
  type: {
20
20
  type: String,
21
21
  default: "step"
22
+ // tile
22
23
  },
23
24
  steps: {
24
25
  type: Array,
@@ -81,10 +82,10 @@ const _sfc_main = create({
81
82
  default: true
82
83
  }
83
84
  },
84
- emits: ["update:visible", "change", "close"],
85
+ emits: ["update:modelValue", "change", "close"],
85
86
  setup(props, { emit }) {
86
87
  const state = reactive({
87
- showTour: props.visible,
88
+ showTour: props.modelValue,
88
89
  showPopup: false,
89
90
  active: 0
90
91
  });
@@ -129,7 +130,7 @@ const _sfc_main = create({
129
130
  state.showTour = false;
130
131
  state.showPopup = false;
131
132
  emit("close", state.active);
132
- emit("update:visible", false);
133
+ emit("update:modelValue", false);
133
134
  };
134
135
  const handleClickMask = () => {
135
136
  props.closeOnClickOverlay && close();
@@ -139,7 +140,7 @@ const _sfc_main = create({
139
140
  getRootPosition();
140
141
  });
141
142
  watch(
142
- () => props.visible,
143
+ () => props.modelValue,
143
144
  (val) => {
144
145
  if (val) {
145
146
  getRootPosition();
@@ -225,7 +226,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
225
226
  createElementVNode("div", _hoisted_4, [
226
227
  createElementVNode("div", _hoisted_5, toDisplayString(_ctx.active + 1) + "/" + toDisplayString(_ctx.steps.length), 1),
227
228
  createElementVNode("div", _hoisted_6, [
228
- renderSlot(_ctx.$slots, "prevStep", {}, () => [
229
+ renderSlot(_ctx.$slots, "prev-step", {}, () => [
229
230
  _ctx.active != 0 && _ctx.showPrevStep ? (openBlock(), createElementBlock("div", {
230
231
  key: 0,
231
232
  class: "nut-tour-content-bottom-operate-btn",
@@ -237,7 +238,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
237
238
  class: "nut-tour-content-bottom-operate-btn active",
238
239
  onClick: _cache[3] || (_cache[3] = (...args) => _ctx.close && _ctx.close(...args))
239
240
  }, toDisplayString(_ctx.completeTxt), 1)) : createCommentVNode("", true),
240
- renderSlot(_ctx.$slots, "nextStep", {}, () => [
241
+ renderSlot(_ctx.$slots, "next-step", {}, () => [
241
242
  _ctx.steps.length - 1 != _ctx.active ? (openBlock(), createElementBlock("div", {
242
243
  key: 0,
243
244
  class: "nut-tour-content-bottom-operate-btn active",
@@ -88,10 +88,10 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
88
88
  class: "nut-trend-arrow-icon-before nut-trend-arrow-rate",
89
89
  style: normalizeStyle(_ctx.calcStyle)
90
90
  }, toDisplayString(_ctx.calcRate), 5)) : createCommentVNode("", true),
91
- Number(_ctx.rate) !== 0 && _ctx.rateTrend ? renderSlot(_ctx.$slots, "upIcon", { key: 1 }, () => [
91
+ Number(_ctx.rate) !== 0 && _ctx.rateTrend ? renderSlot(_ctx.$slots, "up-icon", { key: 1 }, () => [
92
92
  createVNode(_component_TriangleUp, { color: _ctx.riseColor }, null, 8, ["color"])
93
93
  ]) : createCommentVNode("", true),
94
- Number(_ctx.rate) !== 0 && !_ctx.rateTrend ? renderSlot(_ctx.$slots, "downIcon", { key: 2 }, () => [
94
+ Number(_ctx.rate) !== 0 && !_ctx.rateTrend ? renderSlot(_ctx.$slots, "down-icon", { key: 2 }, () => [
95
95
  createVNode(_component_TriangleDown, { color: _ctx.dropColor }, null, 8, ["color"])
96
96
  ]) : createCommentVNode("", true),
97
97
  _ctx.arrowLeft ? (openBlock(), createElementBlock("span", {
@@ -4,7 +4,7 @@ var __publicField = (obj, key, value) => {
4
4
  __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
5
5
  return value;
6
6
  };
7
- import { reactive, computed, h, resolveComponent, openBlock, createElementBlock, normalizeClass, renderSlot, createBlock, resolveDynamicComponent, createCommentVNode, Fragment, renderList, createElementVNode, toDisplayString, createVNode, createTextVNode } from "vue";
7
+ import { reactive, computed, h, resolveComponent, openBlock, createElementBlock, normalizeClass, renderSlot, createBlock, resolveDynamicComponent, createCommentVNode, Fragment, renderList, createElementVNode, toDisplayString, createVNode } from "vue";
8
8
  import { c as createComponent } from "./component-81a4c1d0.js";
9
9
  import { f as funInterceptor } from "./interceptor-956b24fc.js";
10
10
  import Progress from "./Progress.js";
@@ -103,9 +103,11 @@ const _sfc_main = create({
103
103
  props: {
104
104
  name: { type: String, default: "file" },
105
105
  url: { type: String, default: "" },
106
+ // defaultFileList: { type: Array, default: () => new Array<FileItem>() },
106
107
  timeout: { type: [Number, String], default: 1e3 * 30 },
107
108
  fileList: { type: Array, default: () => [] },
108
109
  isPreview: { type: Boolean, default: true },
110
+ // picture、list
109
111
  listType: { type: String, default: "picture" },
110
112
  isDeletable: { type: Boolean, default: true },
111
113
  method: { type: String, default: "post" },
@@ -362,12 +364,14 @@ const _hoisted_7 = {
362
364
  class: "nut-uploader__preview-img__file"
363
365
  };
364
366
  const _hoisted_8 = ["onClick"];
365
- const _hoisted_9 = { class: "tips" };
366
- const _hoisted_10 = {
367
+ const _hoisted_9 = { class: "file__name_tips" };
368
+ const _hoisted_10 = { class: "tips" };
369
+ const _hoisted_11 = {
367
370
  key: 1,
368
371
  class: "nut-uploader__preview-list"
369
372
  };
370
- const _hoisted_11 = ["onClick"];
373
+ const _hoisted_12 = ["onClick"];
374
+ const _hoisted_13 = { class: "file__name_tips" };
371
375
  function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
372
376
  const _component_Failure = resolveComponent("Failure");
373
377
  const _component_Loading = resolveComponent("Loading");
@@ -424,24 +428,23 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
424
428
  onClick: ($event) => _ctx.fileItemClick(item),
425
429
  class: "nut-uploader__preview-img__file__name"
426
430
  }, [
427
- createVNode(_component_Link, { color: "#808080" }),
428
- createTextVNode(" " + toDisplayString(item.name), 1)
431
+ createElementVNode("view", _hoisted_9, toDisplayString(item.name), 1)
429
432
  ], 8, _hoisted_8)
430
433
  ])),
431
- createElementVNode("view", _hoisted_9, toDisplayString(item.name), 1)
432
- ])) : _ctx.listType == "list" ? (openBlock(), createElementBlock("view", _hoisted_10, [
434
+ createElementVNode("view", _hoisted_10, toDisplayString(item.name), 1)
435
+ ])) : _ctx.listType == "list" ? (openBlock(), createElementBlock("view", _hoisted_11, [
433
436
  createElementVNode("view", {
434
437
  onClick: ($event) => _ctx.fileItemClick(item),
435
438
  class: normalizeClass(["nut-uploader__preview-img__file__name", [item.status]])
436
439
  }, [
437
- createVNode(_component_Link),
438
- createTextVNode(" " + toDisplayString(item.name), 1)
439
- ], 10, _hoisted_11),
440
- createVNode(_component_Del, {
441
- color: "#808080",
442
- class: "nut-uploader__preview-img__file__del",
443
- onClick: ($event) => _ctx.onDelete(item, index2)
444
- }, null, 8, ["onClick"]),
440
+ createVNode(_component_Link, { class: "nut-uploader__preview-img__file__link" }),
441
+ createElementVNode("view", _hoisted_13, toDisplayString(item.name), 1),
442
+ createVNode(_component_Del, {
443
+ color: "#808080",
444
+ class: "nut-uploader__preview-img__file__del",
445
+ onClick: ($event) => _ctx.onDelete(item, index2)
446
+ }, null, 8, ["onClick"])
447
+ ], 10, _hoisted_12),
445
448
  item.status == "uploading" ? (openBlock(), createBlock(_component_nut_progress, {
446
449
  key: 0,
447
450
  size: "small",
@@ -29,13 +29,17 @@ const _sfc_main = create({
29
29
  type: Object,
30
30
  default: {
31
31
  autoplay: false,
32
+ //是否自动播放
32
33
  volume: 0.5,
33
34
  poster: "",
34
35
  loop: false,
35
36
  controls: true,
36
37
  muted: false,
38
+ //是否静音
37
39
  disabled: false,
40
+ //禁止操作
38
41
  playsinline: false,
42
+ //行内展示
39
43
  touchPlay: false,
40
44
  preload: ""
41
45
  },
@@ -52,30 +56,44 @@ const _sfc_main = create({
52
56
  const state = reactive({
53
57
  videoElm: null,
54
58
  initial: true,
59
+ //控制封面的显示
55
60
  showToolbox: false,
61
+ //控制控制器和标题的显示
62
+ // 视频容器元素
56
63
  player: {
57
64
  $player: null,
58
65
  pos: null
59
66
  },
67
+ // progress进度条元素
60
68
  progressBar: {
61
69
  progressElm: null,
70
+ // 进度条DOM对象
62
71
  pos: null
63
72
  },
73
+ // video控制显示设置
64
74
  videoSet: {
65
75
  loaded: 0,
76
+ // 缓存长度
66
77
  displayTime: "00:00",
78
+ // 进度时间
67
79
  totalTime: "00:00",
80
+ // 总时间
68
81
  progress: {
69
82
  width: 0,
83
+ // 进度条长度
70
84
  current: 0
85
+ // 进度条当前位置
71
86
  }
72
87
  },
73
88
  state: {
74
89
  controlShow: true,
75
90
  vol: 0.5,
91
+ //音量
76
92
  currentTime: 0,
93
+ //当前时间
77
94
  fullScreen: false,
78
95
  playing: false,
96
+ //是否正在播放
79
97
  isLoading: false,
80
98
  isEnd: false,
81
99
  isError: false,
@@ -68,33 +68,41 @@ function useProvide(key, childName) {
68
68
  const { componentName } = createComponent("grid");
69
69
  const GRID_KEY = Symbol("grid");
70
70
  const gridProps = {
71
+ // 列数
71
72
  columnNum: {
72
73
  type: [Number, String],
73
74
  default: 4
74
75
  },
76
+ // 是否显示边框
75
77
  border: {
76
78
  type: Boolean,
77
79
  default: true
78
80
  },
81
+ // 格子之间间隔距离
79
82
  gutter: {
80
83
  type: [Number, String],
81
84
  default: 0
82
85
  },
86
+ // 是否内容居中
83
87
  center: {
84
88
  type: Boolean,
85
89
  default: true
86
90
  },
91
+ // 是否固定正方形
87
92
  square: {
88
93
  type: Boolean,
89
94
  default: false
90
95
  },
96
+ // 内容与文字翻转
91
97
  reverse: {
92
98
  type: Boolean,
93
99
  default: false
94
100
  },
101
+ // 内容排列方向
95
102
  direction: {
96
103
  type: String
97
104
  },
105
+ // 是否开启点击反馈
98
106
  clickable: {
99
107
  type: Boolean,
100
108
  default: false