@tuya-miniapp/smart-ui 2.7.2-beta-10 → 2.7.2-beta-11

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 (1105) hide show
  1. package/package.json +2 -2
  2. package/dist/action-sheet/index.css +0 -1
  3. package/dist/action-sheet/index.d.ts +0 -1
  4. package/dist/action-sheet/index.js +0 -115
  5. package/dist/action-sheet/index.json +0 -8
  6. package/dist/action-sheet/index.wxml +0 -87
  7. package/dist/action-sheet/index.wxss +0 -1
  8. package/dist/area/index.css +0 -1
  9. package/dist/area/index.d.ts +0 -1
  10. package/dist/area/index.js +0 -219
  11. package/dist/area/index.json +0 -6
  12. package/dist/area/index.wxml +0 -20
  13. package/dist/area/index.wxs +0 -8
  14. package/dist/area/index.wxss +0 -1
  15. package/dist/battery/index.d.ts +0 -1
  16. package/dist/battery/index.js +0 -110
  17. package/dist/battery/index.json +0 -4
  18. package/dist/battery/index.wxml +0 -1
  19. package/dist/bottom-sheet/index.css +0 -1
  20. package/dist/bottom-sheet/index.d.ts +0 -1
  21. package/dist/bottom-sheet/index.js +0 -151
  22. package/dist/bottom-sheet/index.json +0 -8
  23. package/dist/bottom-sheet/index.wxml +0 -71
  24. package/dist/bottom-sheet/index.wxs +0 -159
  25. package/dist/bottom-sheet/index.wxss +0 -1
  26. package/dist/button/index.css +0 -1
  27. package/dist/button/index.d.ts +0 -1
  28. package/dist/button/index.js +0 -61
  29. package/dist/button/index.json +0 -7
  30. package/dist/button/index.wxml +0 -64
  31. package/dist/button/index.wxs +0 -39
  32. package/dist/button/index.wxss +0 -1
  33. package/dist/calendar/calendar.wxml +0 -84
  34. package/dist/calendar/index.css +0 -1
  35. package/dist/calendar/index.d.ts +0 -1
  36. package/dist/calendar/index.js +0 -448
  37. package/dist/calendar/index.json +0 -12
  38. package/dist/calendar/index.wxml +0 -25
  39. package/dist/calendar/index.wxs +0 -59
  40. package/dist/calendar/index.wxss +0 -1
  41. package/dist/calendar-header/index.css +0 -1
  42. package/dist/calendar-header/index.d.ts +0 -1
  43. package/dist/calendar-header/index.js +0 -64
  44. package/dist/calendar-header/index.json +0 -6
  45. package/dist/calendar-header/index.wxml +0 -27
  46. package/dist/calendar-header/index.wxss +0 -1
  47. package/dist/calendar-month/index.css +0 -1
  48. package/dist/calendar-month/index.d.ts +0 -1
  49. package/dist/calendar-month/index.js +0 -177
  50. package/dist/calendar-month/index.json +0 -3
  51. package/dist/calendar-month/index.wxml +0 -22
  52. package/dist/calendar-month/index.wxs +0 -73
  53. package/dist/calendar-month/index.wxss +0 -1
  54. package/dist/calendar-month-list/index.css +0 -1
  55. package/dist/calendar-month-list/index.d.ts +0 -1
  56. package/dist/calendar-month-list/index.js +0 -103
  57. package/dist/calendar-month-list/index.json +0 -7
  58. package/dist/calendar-month-list/index.wxml +0 -15
  59. package/dist/calendar-month-list/index.wxss +0 -1
  60. package/dist/calendar-utils/types.d.ts +0 -7
  61. package/dist/calendar-utils/types.js +0 -1
  62. package/dist/calendar-utils/utils.d.ts +0 -21
  63. package/dist/calendar-utils/utils.js +0 -156
  64. package/dist/calendar-utils/utils.wxs +0 -25
  65. package/dist/calendar-year-list/index.css +0 -1
  66. package/dist/calendar-year-list/index.d.ts +0 -1
  67. package/dist/calendar-year-list/index.js +0 -113
  68. package/dist/calendar-year-list/index.json +0 -7
  69. package/dist/calendar-year-list/index.wxml +0 -15
  70. package/dist/calendar-year-list/index.wxss +0 -1
  71. package/dist/cascader/index.css +0 -1
  72. package/dist/cascader/index.d.ts +0 -1
  73. package/dist/cascader/index.js +0 -191
  74. package/dist/cascader/index.json +0 -8
  75. package/dist/cascader/index.wxml +0 -56
  76. package/dist/cascader/index.wxs +0 -21
  77. package/dist/cascader/index.wxss +0 -1
  78. package/dist/cell/index.css +0 -1
  79. package/dist/cell/index.d.ts +0 -1
  80. package/dist/cell/index.js +0 -43
  81. package/dist/cell/index.json +0 -6
  82. package/dist/cell/index.wxml +0 -47
  83. package/dist/cell/index.wxs +0 -17
  84. package/dist/cell/index.wxss +0 -1
  85. package/dist/cell-group/index.css +0 -1
  86. package/dist/cell-group/index.d.ts +0 -1
  87. package/dist/cell-group/index.js +0 -12
  88. package/dist/cell-group/index.json +0 -3
  89. package/dist/cell-group/index.wxml +0 -15
  90. package/dist/cell-group/index.wxs +0 -14
  91. package/dist/cell-group/index.wxss +0 -1
  92. package/dist/checkbox/index.css +0 -1
  93. package/dist/checkbox/index.d.ts +0 -1
  94. package/dist/checkbox/index.js +0 -79
  95. package/dist/checkbox/index.json +0 -6
  96. package/dist/checkbox/index.wxml +0 -32
  97. package/dist/checkbox/index.wxs +0 -20
  98. package/dist/checkbox/index.wxss +0 -1
  99. package/dist/checkbox-group/index.css +0 -1
  100. package/dist/checkbox-group/index.d.ts +0 -1
  101. package/dist/checkbox-group/index.js +0 -36
  102. package/dist/checkbox-group/index.json +0 -3
  103. package/dist/checkbox-group/index.wxml +0 -5
  104. package/dist/checkbox-group/index.wxss +0 -1
  105. package/dist/circle/index.css +0 -1
  106. package/dist/circle/index.d.ts +0 -1
  107. package/dist/circle/index.js +0 -127
  108. package/dist/circle/index.json +0 -3
  109. package/dist/circle/index.rjs +0 -232
  110. package/dist/circle/index.wxml +0 -8
  111. package/dist/circle/index.wxss +0 -1
  112. package/dist/col/index.css +0 -1
  113. package/dist/col/index.d.ts +0 -1
  114. package/dist/col/index.js +0 -9
  115. package/dist/col/index.json +0 -3
  116. package/dist/col/index.wxml +0 -9
  117. package/dist/col/index.wxs +0 -18
  118. package/dist/col/index.wxss +0 -1
  119. package/dist/collapse/index.css +0 -1
  120. package/dist/collapse/index.d.ts +0 -1
  121. package/dist/collapse/index.js +0 -46
  122. package/dist/collapse/index.json +0 -3
  123. package/dist/collapse/index.wxml +0 -3
  124. package/dist/collapse/index.wxss +0 -1
  125. package/dist/collapse-item/animate.d.ts +0 -2
  126. package/dist/collapse-item/animate.js +0 -39
  127. package/dist/collapse-item/index.css +0 -1
  128. package/dist/collapse-item/index.d.ts +0 -1
  129. package/dist/collapse-item/index.js +0 -62
  130. package/dist/collapse-item/index.json +0 -6
  131. package/dist/collapse-item/index.wxml +0 -45
  132. package/dist/collapse-item/index.wxss +0 -1
  133. package/dist/common/appLog.d.ts +0 -10
  134. package/dist/common/appLog.js +0 -105
  135. package/dist/common/color.d.ts +0 -7
  136. package/dist/common/color.js +0 -7
  137. package/dist/common/component.d.ts +0 -4
  138. package/dist/common/component.js +0 -46
  139. package/dist/common/index.css +0 -1
  140. package/dist/common/index.wxss +0 -1
  141. package/dist/common/relation.d.ts +0 -15
  142. package/dist/common/relation.js +0 -56
  143. package/dist/common/style/clearfix.css +0 -1
  144. package/dist/common/style/clearfix.wxss +0 -1
  145. package/dist/common/style/ellipsis.css +0 -1
  146. package/dist/common/style/ellipsis.wxss +0 -1
  147. package/dist/common/style/hairline.css +0 -1
  148. package/dist/common/style/hairline.wxss +0 -1
  149. package/dist/common/style/mixins/clearfix.css +0 -0
  150. package/dist/common/style/mixins/clearfix.wxss +0 -0
  151. package/dist/common/style/mixins/ellipsis.css +0 -0
  152. package/dist/common/style/mixins/ellipsis.wxss +0 -0
  153. package/dist/common/style/mixins/hairline.css +0 -1
  154. package/dist/common/style/mixins/hairline.wxss +0 -1
  155. package/dist/common/style/var.css +0 -1
  156. package/dist/common/style/var.wxss +0 -1
  157. package/dist/common/ty.d.ts +0 -7
  158. package/dist/common/ty.js +0 -33
  159. package/dist/common/utils.d.ts +0 -24
  160. package/dist/common/utils.js +0 -113
  161. package/dist/common/validator.d.ts +0 -9
  162. package/dist/common/validator.js +0 -31
  163. package/dist/common/version.d.ts +0 -15
  164. package/dist/common/version.js +0 -59
  165. package/dist/config-provider/index.d.ts +0 -1
  166. package/dist/config-provider/index.js +0 -9
  167. package/dist/config-provider/index.json +0 -3
  168. package/dist/config-provider/index.wxml +0 -5
  169. package/dist/config-provider/index.wxs +0 -29
  170. package/dist/count-down/index.css +0 -1
  171. package/dist/count-down/index.d.ts +0 -1
  172. package/dist/count-down/index.js +0 -100
  173. package/dist/count-down/index.json +0 -3
  174. package/dist/count-down/index.wxml +0 -4
  175. package/dist/count-down/index.wxss +0 -1
  176. package/dist/count-down/utils.d.ts +0 -10
  177. package/dist/count-down/utils.js +0 -57
  178. package/dist/custom-keyboard/index.css +0 -1
  179. package/dist/custom-keyboard/index.d.ts +0 -1
  180. package/dist/custom-keyboard/index.js +0 -162
  181. package/dist/custom-keyboard/index.json +0 -9
  182. package/dist/custom-keyboard/index.wxml +0 -44
  183. package/dist/custom-keyboard/index.wxss +0 -1
  184. package/dist/datetime-picker/index.css +0 -1
  185. package/dist/datetime-picker/index.d.ts +0 -1
  186. package/dist/datetime-picker/index.js +0 -479
  187. package/dist/datetime-picker/index.json +0 -6
  188. package/dist/datetime-picker/index.wxml +0 -22
  189. package/dist/datetime-picker/index.wxss +0 -1
  190. package/dist/definitions/index.d.ts +0 -29
  191. package/dist/definitions/index.js +0 -1
  192. package/dist/dialog/dialog.d.ts +0 -75
  193. package/dist/dialog/dialog.js +0 -116
  194. package/dist/dialog/index.css +0 -1
  195. package/dist/dialog/index.d.ts +0 -1
  196. package/dist/dialog/index.js +0 -215
  197. package/dist/dialog/index.json +0 -10
  198. package/dist/dialog/index.wxml +0 -146
  199. package/dist/dialog/index.wxss +0 -1
  200. package/dist/divider/index.css +0 -1
  201. package/dist/divider/index.d.ts +0 -1
  202. package/dist/divider/index.js +0 -12
  203. package/dist/divider/index.json +0 -4
  204. package/dist/divider/index.wxml +0 -9
  205. package/dist/divider/index.wxs +0 -18
  206. package/dist/divider/index.wxss +0 -1
  207. package/dist/dropdown-item/index.css +0 -1
  208. package/dist/dropdown-item/index.d.ts +0 -1
  209. package/dist/dropdown-item/index.js +0 -141
  210. package/dist/dropdown-item/index.json +0 -8
  211. package/dist/dropdown-item/index.wxml +0 -52
  212. package/dist/dropdown-item/index.wxss +0 -1
  213. package/dist/dropdown-item/shared.d.ts +0 -5
  214. package/dist/dropdown-item/shared.js +0 -1
  215. package/dist/dropdown-menu/index.css +0 -1
  216. package/dist/dropdown-menu/index.d.ts +0 -1
  217. package/dist/dropdown-menu/index.js +0 -130
  218. package/dist/dropdown-menu/index.json +0 -6
  219. package/dist/dropdown-menu/index.wxml +0 -24
  220. package/dist/dropdown-menu/index.wxs +0 -16
  221. package/dist/dropdown-menu/index.wxss +0 -1
  222. package/dist/empty/index.css +0 -1
  223. package/dist/empty/index.d.ts +0 -1
  224. package/dist/empty/index.js +0 -29
  225. package/dist/empty/index.json +0 -4
  226. package/dist/empty/index.wxml +0 -22
  227. package/dist/empty/index.wxs +0 -13
  228. package/dist/empty/index.wxss +0 -1
  229. package/dist/field/cell-input.wxml +0 -59
  230. package/dist/field/cell-textarea.wxml +0 -28
  231. package/dist/field/index.css +0 -1
  232. package/dist/field/index.d.ts +0 -1
  233. package/dist/field/index.js +0 -142
  234. package/dist/field/index.json +0 -7
  235. package/dist/field/index.wxml +0 -4
  236. package/dist/field/index.wxs +0 -19
  237. package/dist/field/index.wxss +0 -1
  238. package/dist/field/input.wxml +0 -30
  239. package/dist/field/props.d.ts +0 -4
  240. package/dist/field/props.js +0 -56
  241. package/dist/field/textarea.wxml +0 -32
  242. package/dist/field/types.d.ts +0 -8
  243. package/dist/field/types.js +0 -1
  244. package/dist/goods-action/index.css +0 -1
  245. package/dist/goods-action/index.d.ts +0 -1
  246. package/dist/goods-action/index.js +0 -15
  247. package/dist/goods-action/index.json +0 -3
  248. package/dist/goods-action/index.wxml +0 -5
  249. package/dist/goods-action/index.wxss +0 -1
  250. package/dist/goods-action-button/index.css +0 -1
  251. package/dist/goods-action-button/index.d.ts +0 -1
  252. package/dist/goods-action-button/index.js +0 -49
  253. package/dist/goods-action-button/index.json +0 -6
  254. package/dist/goods-action-button/index.wxml +0 -35
  255. package/dist/goods-action-button/index.wxss +0 -1
  256. package/dist/goods-action-icon/index.css +0 -1
  257. package/dist/goods-action-icon/index.d.ts +0 -1
  258. package/dist/goods-action-icon/index.js +0 -27
  259. package/dist/goods-action-icon/index.json +0 -7
  260. package/dist/goods-action-icon/index.wxml +0 -41
  261. package/dist/goods-action-icon/index.wxss +0 -1
  262. package/dist/grid/index.css +0 -1
  263. package/dist/grid/index.d.ts +0 -1
  264. package/dist/grid/index.js +0 -55
  265. package/dist/grid/index.json +0 -3
  266. package/dist/grid/index.wxml +0 -8
  267. package/dist/grid/index.wxs +0 -13
  268. package/dist/grid/index.wxss +0 -1
  269. package/dist/grid-item/index.css +0 -1
  270. package/dist/grid-item/index.d.ts +0 -1
  271. package/dist/grid-item/index.js +0 -52
  272. package/dist/grid-item/index.json +0 -6
  273. package/dist/grid-item/index.wxml +0 -27
  274. package/dist/grid-item/index.wxs +0 -32
  275. package/dist/grid-item/index.wxss +0 -1
  276. package/dist/icon/index.css +0 -1
  277. package/dist/icon/index.d.ts +0 -1
  278. package/dist/icon/index.js +0 -21
  279. package/dist/icon/index.json +0 -6
  280. package/dist/icon/index.wxml +0 -30
  281. package/dist/icon/index.wxs +0 -94
  282. package/dist/icon/index.wxss +0 -1
  283. package/dist/image/index.css +0 -1
  284. package/dist/image/index.d.ts +0 -1
  285. package/dist/image/index.js +0 -70
  286. package/dist/image/index.json +0 -7
  287. package/dist/image/index.wxml +0 -40
  288. package/dist/image/index.wxs +0 -42
  289. package/dist/image/index.wxss +0 -1
  290. package/dist/index-anchor/index.css +0 -1
  291. package/dist/index-anchor/index.d.ts +0 -1
  292. package/dist/index-anchor/index.js +0 -25
  293. package/dist/index-anchor/index.json +0 -3
  294. package/dist/index-anchor/index.wxml +0 -14
  295. package/dist/index-anchor/index.wxss +0 -1
  296. package/dist/index-bar/index.css +0 -1
  297. package/dist/index-bar/index.d.ts +0 -1
  298. package/dist/index-bar/index.js +0 -247
  299. package/dist/index-bar/index.json +0 -3
  300. package/dist/index-bar/index.wxml +0 -22
  301. package/dist/index-bar/index.wxss +0 -1
  302. package/dist/info/index.css +0 -1
  303. package/dist/info/index.d.ts +0 -1
  304. package/dist/info/index.js +0 -8
  305. package/dist/info/index.json +0 -3
  306. package/dist/info/index.wxml +0 -7
  307. package/dist/info/index.wxss +0 -1
  308. package/dist/loading/index.css +0 -1
  309. package/dist/loading/index.d.ts +0 -1
  310. package/dist/loading/index.js +0 -40
  311. package/dist/loading/index.json +0 -3
  312. package/dist/loading/index.wxml +0 -17
  313. package/dist/loading/index.wxs +0 -39
  314. package/dist/loading/index.wxss +0 -1
  315. package/dist/mixins/basic.d.ts +0 -1
  316. package/dist/mixins/basic.js +0 -26
  317. package/dist/mixins/button.d.ts +0 -1
  318. package/dist/mixins/button.js +0 -51
  319. package/dist/mixins/link.d.ts +0 -1
  320. package/dist/mixins/link.js +0 -22
  321. package/dist/mixins/page-scroll.d.ts +0 -6
  322. package/dist/mixins/page-scroll.js +0 -42
  323. package/dist/mixins/touch.d.ts +0 -1
  324. package/dist/mixins/touch.js +0 -36
  325. package/dist/mixins/transition.d.ts +0 -1
  326. package/dist/mixins/transition.js +0 -163
  327. package/dist/nav-bar/index.css +0 -1
  328. package/dist/nav-bar/index.d.ts +0 -1
  329. package/dist/nav-bar/index.js +0 -110
  330. package/dist/nav-bar/index.json +0 -6
  331. package/dist/nav-bar/index.wxml +0 -70
  332. package/dist/nav-bar/index.wxs +0 -14
  333. package/dist/nav-bar/index.wxss +0 -1
  334. package/dist/normal-slider/index.css +0 -1
  335. package/dist/normal-slider/index.d.ts +0 -1
  336. package/dist/normal-slider/index.js +0 -158
  337. package/dist/normal-slider/index.json +0 -6
  338. package/dist/normal-slider/index.wxml +0 -35
  339. package/dist/normal-slider/index.wxss +0 -1
  340. package/dist/notice-bar/index.css +0 -1
  341. package/dist/notice-bar/index.d.ts +0 -1
  342. package/dist/notice-bar/index.js +0 -170
  343. package/dist/notice-bar/index.json +0 -6
  344. package/dist/notice-bar/index.wxml +0 -52
  345. package/dist/notice-bar/index.wxs +0 -11
  346. package/dist/notice-bar/index.wxss +0 -1
  347. package/dist/notify/index.css +0 -1
  348. package/dist/notify/index.d.ts +0 -1
  349. package/dist/notify/index.js +0 -77
  350. package/dist/notify/index.json +0 -6
  351. package/dist/notify/index.wxml +0 -22
  352. package/dist/notify/index.wxs +0 -22
  353. package/dist/notify/index.wxss +0 -1
  354. package/dist/notify/notify.d.ts +0 -29
  355. package/dist/notify/notify.js +0 -57
  356. package/dist/overlay/index.css +0 -1
  357. package/dist/overlay/index.d.ts +0 -1
  358. package/dist/overlay/index.js +0 -30
  359. package/dist/overlay/index.json +0 -6
  360. package/dist/overlay/index.wxml +0 -7
  361. package/dist/overlay/index.wxss +0 -1
  362. package/dist/overlay/overlay.wxml +0 -10
  363. package/dist/picker/index.css +0 -1
  364. package/dist/picker/index.d.ts +0 -1
  365. package/dist/picker/index.js +0 -168
  366. package/dist/picker/index.json +0 -7
  367. package/dist/picker/index.wxml +0 -48
  368. package/dist/picker/index.wxs +0 -44
  369. package/dist/picker/index.wxss +0 -1
  370. package/dist/picker/shared.d.ts +0 -44
  371. package/dist/picker/shared.js +0 -44
  372. package/dist/picker/toolbar.wxml +0 -23
  373. package/dist/picker-column/index.css +0 -1
  374. package/dist/picker-column/index.d.ts +0 -1
  375. package/dist/picker-column/index.js +0 -331
  376. package/dist/picker-column/index.json +0 -3
  377. package/dist/picker-column/index.wxml +0 -60
  378. package/dist/picker-column/index.wxs +0 -628
  379. package/dist/picker-column/index.wxss +0 -1
  380. package/dist/popover/index.css +0 -1
  381. package/dist/popover/index.d.ts +0 -1
  382. package/dist/popover/index.js +0 -209
  383. package/dist/popover/index.json +0 -7
  384. package/dist/popover/index.wxml +0 -31
  385. package/dist/popover/index.wxss +0 -1
  386. package/dist/popup/index.css +0 -1
  387. package/dist/popup/index.d.ts +0 -1
  388. package/dist/popup/index.js +0 -117
  389. package/dist/popup/index.json +0 -7
  390. package/dist/popup/index.wxml +0 -21
  391. package/dist/popup/index.wxs +0 -23
  392. package/dist/popup/index.wxss +0 -1
  393. package/dist/popup/popup.wxml +0 -16
  394. package/dist/progress/index.css +0 -1
  395. package/dist/progress/index.d.ts +0 -1
  396. package/dist/progress/index.js +0 -48
  397. package/dist/progress/index.json +0 -3
  398. package/dist/progress/index.wxml +0 -20
  399. package/dist/progress/index.wxs +0 -36
  400. package/dist/progress/index.wxss +0 -1
  401. package/dist/radio/index.css +0 -1
  402. package/dist/radio/index.d.ts +0 -1
  403. package/dist/radio/index.js +0 -70
  404. package/dist/radio/index.json +0 -6
  405. package/dist/radio/index.wxml +0 -32
  406. package/dist/radio/index.wxs +0 -33
  407. package/dist/radio/index.wxss +0 -1
  408. package/dist/radio-group/index.css +0 -1
  409. package/dist/radio-group/index.d.ts +0 -1
  410. package/dist/radio-group/index.js +0 -27
  411. package/dist/radio-group/index.json +0 -3
  412. package/dist/radio-group/index.wxml +0 -5
  413. package/dist/radio-group/index.wxss +0 -1
  414. package/dist/rate/index.css +0 -1
  415. package/dist/rate/index.d.ts +0 -1
  416. package/dist/rate/index.js +0 -89
  417. package/dist/rate/index.json +0 -6
  418. package/dist/rate/index.wxml +0 -35
  419. package/dist/rate/index.wxss +0 -1
  420. package/dist/row/index.css +0 -1
  421. package/dist/row/index.d.ts +0 -1
  422. package/dist/row/index.js +0 -23
  423. package/dist/row/index.json +0 -3
  424. package/dist/row/index.wxml +0 -5
  425. package/dist/row/index.wxs +0 -18
  426. package/dist/row/index.wxss +0 -1
  427. package/dist/search/index.css +0 -1
  428. package/dist/search/index.d.ts +0 -1
  429. package/dist/search/index.js +0 -100
  430. package/dist/search/index.json +0 -7
  431. package/dist/search/index.wxml +0 -57
  432. package/dist/search/index.wxss +0 -1
  433. package/dist/sidebar/index.css +0 -1
  434. package/dist/sidebar/index.d.ts +0 -1
  435. package/dist/sidebar/index.js +0 -34
  436. package/dist/sidebar/index.json +0 -3
  437. package/dist/sidebar/index.wxml +0 -3
  438. package/dist/sidebar/index.wxss +0 -1
  439. package/dist/sidebar-item/index.css +0 -1
  440. package/dist/sidebar-item/index.d.ts +0 -1
  441. package/dist/sidebar-item/index.js +0 -29
  442. package/dist/sidebar-item/index.json +0 -6
  443. package/dist/sidebar-item/index.wxml +0 -18
  444. package/dist/sidebar-item/index.wxss +0 -1
  445. package/dist/skeleton/index.css +0 -1
  446. package/dist/skeleton/index.d.ts +0 -1
  447. package/dist/skeleton/index.js +0 -46
  448. package/dist/skeleton/index.json +0 -4
  449. package/dist/skeleton/index.wxml +0 -29
  450. package/dist/skeleton/index.wxss +0 -1
  451. package/dist/slider/index.css +0 -1
  452. package/dist/slider/index.d.ts +0 -1
  453. package/dist/slider/index.js +0 -209
  454. package/dist/slider/index.json +0 -3
  455. package/dist/slider/index.wxml +0 -68
  456. package/dist/slider/index.wxs +0 -14
  457. package/dist/slider/index.wxss +0 -1
  458. package/dist/stepper/index.css +0 -1
  459. package/dist/stepper/index.d.ts +0 -1
  460. package/dist/stepper/index.js +0 -206
  461. package/dist/stepper/index.json +0 -6
  462. package/dist/stepper/index.wxml +0 -45
  463. package/dist/stepper/index.wxs +0 -32
  464. package/dist/stepper/index.wxss +0 -1
  465. package/dist/steps/index.css +0 -1
  466. package/dist/steps/index.d.ts +0 -1
  467. package/dist/steps/index.js +0 -34
  468. package/dist/steps/index.json +0 -6
  469. package/dist/steps/index.wxml +0 -54
  470. package/dist/steps/index.wxss +0 -1
  471. package/dist/sticky/index.css +0 -1
  472. package/dist/sticky/index.d.ts +0 -1
  473. package/dist/sticky/index.js +0 -120
  474. package/dist/sticky/index.json +0 -3
  475. package/dist/sticky/index.wxml +0 -8
  476. package/dist/sticky/index.wxs +0 -25
  477. package/dist/sticky/index.wxss +0 -1
  478. package/dist/swipe-cell/index.css +0 -1
  479. package/dist/swipe-cell/index.d.ts +0 -1
  480. package/dist/swipe-cell/index.js +0 -140
  481. package/dist/swipe-cell/index.json +0 -3
  482. package/dist/swipe-cell/index.wxml +0 -21
  483. package/dist/swipe-cell/index.wxss +0 -1
  484. package/dist/switch/index.css +0 -1
  485. package/dist/switch/index.d.ts +0 -1
  486. package/dist/switch/index.js +0 -42
  487. package/dist/switch/index.json +0 -6
  488. package/dist/switch/index.wxml +0 -51
  489. package/dist/switch/index.wxs +0 -26
  490. package/dist/switch/index.wxss +0 -1
  491. package/dist/tab/index.css +0 -1
  492. package/dist/tab/index.d.ts +0 -1
  493. package/dist/tab/index.js +0 -64
  494. package/dist/tab/index.json +0 -3
  495. package/dist/tab/index.wxml +0 -8
  496. package/dist/tab/index.wxss +0 -1
  497. package/dist/tabbar/index.css +0 -1
  498. package/dist/tabbar/index.d.ts +0 -1
  499. package/dist/tabbar/index.js +0 -70
  500. package/dist/tabbar/index.json +0 -3
  501. package/dist/tabbar/index.wxml +0 -12
  502. package/dist/tabbar/index.wxss +0 -1
  503. package/dist/tabbar-item/index.css +0 -1
  504. package/dist/tabbar-item/index.d.ts +0 -1
  505. package/dist/tabbar-item/index.js +0 -77
  506. package/dist/tabbar-item/index.json +0 -7
  507. package/dist/tabbar-item/index.wxml +0 -32
  508. package/dist/tabbar-item/index.wxss +0 -1
  509. package/dist/tabs/index.css +0 -1
  510. package/dist/tabs/index.d.ts +0 -1
  511. package/dist/tabs/index.js +0 -304
  512. package/dist/tabs/index.json +0 -7
  513. package/dist/tabs/index.wxml +0 -67
  514. package/dist/tabs/index.wxs +0 -99
  515. package/dist/tabs/index.wxss +0 -1
  516. package/dist/tag/index.css +0 -1
  517. package/dist/tag/index.d.ts +0 -1
  518. package/dist/tag/index.js +0 -29
  519. package/dist/tag/index.json +0 -6
  520. package/dist/tag/index.wxml +0 -17
  521. package/dist/tag/index.wxs +0 -13
  522. package/dist/tag/index.wxss +0 -1
  523. package/dist/toast/icons.d.ts +0 -3
  524. package/dist/toast/icons.js +0 -6
  525. package/dist/toast/index.css +0 -1
  526. package/dist/toast/index.d.ts +0 -1
  527. package/dist/toast/index.js +0 -58
  528. package/dist/toast/index.json +0 -9
  529. package/dist/toast/index.wxml +0 -33
  530. package/dist/toast/index.wxss +0 -1
  531. package/dist/toast/toast.d.ts +0 -35
  532. package/dist/toast/toast.js +0 -97
  533. package/dist/transition/index.css +0 -1
  534. package/dist/transition/index.d.ts +0 -1
  535. package/dist/transition/index.js +0 -13
  536. package/dist/transition/index.json +0 -3
  537. package/dist/transition/index.wxml +0 -9
  538. package/dist/transition/index.wxs +0 -17
  539. package/dist/transition/index.wxss +0 -1
  540. package/dist/tree-select/index.css +0 -1
  541. package/dist/tree-select/index.d.ts +0 -1
  542. package/dist/tree-select/index.js +0 -69
  543. package/dist/tree-select/index.json +0 -8
  544. package/dist/tree-select/index.wxml +0 -41
  545. package/dist/tree-select/index.wxs +0 -12
  546. package/dist/tree-select/index.wxss +0 -1
  547. package/dist/wxs/add-unit.wxs +0 -12
  548. package/dist/wxs/array.wxs +0 -5
  549. package/dist/wxs/bem.wxs +0 -39
  550. package/dist/wxs/memoize.wxs +0 -55
  551. package/dist/wxs/object.wxs +0 -13
  552. package/dist/wxs/style.wxs +0 -46
  553. package/dist/wxs/utils.wxs +0 -85
  554. package/lib/action-sheet/index.css +0 -1
  555. package/lib/action-sheet/index.d.ts +0 -1
  556. package/lib/action-sheet/index.js +0 -121
  557. package/lib/action-sheet/index.json +0 -8
  558. package/lib/action-sheet/index.wxml +0 -87
  559. package/lib/action-sheet/index.wxss +0 -1
  560. package/lib/area/index.css +0 -1
  561. package/lib/area/index.d.ts +0 -1
  562. package/lib/area/index.js +0 -234
  563. package/lib/area/index.json +0 -6
  564. package/lib/area/index.wxml +0 -20
  565. package/lib/area/index.wxs +0 -8
  566. package/lib/area/index.wxss +0 -1
  567. package/lib/battery/index.d.ts +0 -1
  568. package/lib/battery/index.js +0 -105
  569. package/lib/battery/index.json +0 -4
  570. package/lib/battery/index.wxml +0 -1
  571. package/lib/bottom-sheet/index.css +0 -1
  572. package/lib/bottom-sheet/index.d.ts +0 -1
  573. package/lib/bottom-sheet/index.js +0 -156
  574. package/lib/bottom-sheet/index.json +0 -8
  575. package/lib/bottom-sheet/index.wxml +0 -71
  576. package/lib/bottom-sheet/index.wxs +0 -159
  577. package/lib/bottom-sheet/index.wxss +0 -1
  578. package/lib/button/index.css +0 -1
  579. package/lib/button/index.d.ts +0 -1
  580. package/lib/button/index.js +0 -64
  581. package/lib/button/index.json +0 -7
  582. package/lib/button/index.wxml +0 -64
  583. package/lib/button/index.wxs +0 -39
  584. package/lib/button/index.wxss +0 -1
  585. package/lib/calendar/calendar.wxml +0 -84
  586. package/lib/calendar/index.css +0 -1
  587. package/lib/calendar/index.d.ts +0 -1
  588. package/lib/calendar/index.js +0 -465
  589. package/lib/calendar/index.json +0 -12
  590. package/lib/calendar/index.wxml +0 -25
  591. package/lib/calendar/index.wxs +0 -59
  592. package/lib/calendar/index.wxss +0 -1
  593. package/lib/calendar-header/index.css +0 -1
  594. package/lib/calendar-header/index.d.ts +0 -1
  595. package/lib/calendar-header/index.js +0 -75
  596. package/lib/calendar-header/index.json +0 -6
  597. package/lib/calendar-header/index.wxml +0 -27
  598. package/lib/calendar-header/index.wxss +0 -1
  599. package/lib/calendar-month/index.css +0 -1
  600. package/lib/calendar-month/index.d.ts +0 -1
  601. package/lib/calendar-month/index.js +0 -179
  602. package/lib/calendar-month/index.json +0 -3
  603. package/lib/calendar-month/index.wxml +0 -22
  604. package/lib/calendar-month/index.wxs +0 -73
  605. package/lib/calendar-month/index.wxss +0 -1
  606. package/lib/calendar-month-list/index.css +0 -1
  607. package/lib/calendar-month-list/index.d.ts +0 -1
  608. package/lib/calendar-month-list/index.js +0 -105
  609. package/lib/calendar-month-list/index.json +0 -7
  610. package/lib/calendar-month-list/index.wxml +0 -15
  611. package/lib/calendar-month-list/index.wxss +0 -1
  612. package/lib/calendar-utils/types.d.ts +0 -7
  613. package/lib/calendar-utils/types.js +0 -2
  614. package/lib/calendar-utils/utils.d.ts +0 -21
  615. package/lib/calendar-utils/utils.js +0 -175
  616. package/lib/calendar-utils/utils.wxs +0 -25
  617. package/lib/calendar-year-list/index.css +0 -1
  618. package/lib/calendar-year-list/index.d.ts +0 -1
  619. package/lib/calendar-year-list/index.js +0 -115
  620. package/lib/calendar-year-list/index.json +0 -7
  621. package/lib/calendar-year-list/index.wxml +0 -15
  622. package/lib/calendar-year-list/index.wxss +0 -1
  623. package/lib/cascader/index.css +0 -1
  624. package/lib/cascader/index.d.ts +0 -1
  625. package/lib/cascader/index.js +0 -207
  626. package/lib/cascader/index.json +0 -8
  627. package/lib/cascader/index.wxml +0 -56
  628. package/lib/cascader/index.wxs +0 -21
  629. package/lib/cascader/index.wxss +0 -1
  630. package/lib/cell/index.css +0 -1
  631. package/lib/cell/index.d.ts +0 -1
  632. package/lib/cell/index.js +0 -48
  633. package/lib/cell/index.json +0 -6
  634. package/lib/cell/index.wxml +0 -47
  635. package/lib/cell/index.wxs +0 -17
  636. package/lib/cell/index.wxss +0 -1
  637. package/lib/cell-group/index.css +0 -1
  638. package/lib/cell-group/index.d.ts +0 -1
  639. package/lib/cell-group/index.js +0 -14
  640. package/lib/cell-group/index.json +0 -3
  641. package/lib/cell-group/index.wxml +0 -15
  642. package/lib/cell-group/index.wxs +0 -14
  643. package/lib/cell-group/index.wxss +0 -1
  644. package/lib/checkbox/index.css +0 -1
  645. package/lib/checkbox/index.d.ts +0 -1
  646. package/lib/checkbox/index.js +0 -84
  647. package/lib/checkbox/index.json +0 -6
  648. package/lib/checkbox/index.wxml +0 -32
  649. package/lib/checkbox/index.wxs +0 -20
  650. package/lib/checkbox/index.wxss +0 -1
  651. package/lib/checkbox-group/index.css +0 -1
  652. package/lib/checkbox-group/index.d.ts +0 -1
  653. package/lib/checkbox-group/index.js +0 -39
  654. package/lib/checkbox-group/index.json +0 -3
  655. package/lib/checkbox-group/index.wxml +0 -5
  656. package/lib/checkbox-group/index.wxss +0 -1
  657. package/lib/circle/index.css +0 -1
  658. package/lib/circle/index.d.ts +0 -1
  659. package/lib/circle/index.js +0 -134
  660. package/lib/circle/index.json +0 -3
  661. package/lib/circle/index.rjs +0 -232
  662. package/lib/circle/index.wxml +0 -8
  663. package/lib/circle/index.wxss +0 -1
  664. package/lib/col/index.css +0 -1
  665. package/lib/col/index.d.ts +0 -1
  666. package/lib/col/index.js +0 -11
  667. package/lib/col/index.json +0 -3
  668. package/lib/col/index.wxml +0 -9
  669. package/lib/col/index.wxs +0 -18
  670. package/lib/col/index.wxss +0 -1
  671. package/lib/collapse/index.css +0 -1
  672. package/lib/collapse/index.d.ts +0 -1
  673. package/lib/collapse/index.js +0 -48
  674. package/lib/collapse/index.json +0 -3
  675. package/lib/collapse/index.wxml +0 -3
  676. package/lib/collapse/index.wxss +0 -1
  677. package/lib/collapse-item/animate.d.ts +0 -2
  678. package/lib/collapse-item/animate.js +0 -43
  679. package/lib/collapse-item/index.css +0 -1
  680. package/lib/collapse-item/index.d.ts +0 -1
  681. package/lib/collapse-item/index.js +0 -64
  682. package/lib/collapse-item/index.json +0 -6
  683. package/lib/collapse-item/index.wxml +0 -45
  684. package/lib/collapse-item/index.wxss +0 -1
  685. package/lib/common/appLog.d.ts +0 -10
  686. package/lib/common/appLog.js +0 -112
  687. package/lib/common/color.d.ts +0 -7
  688. package/lib/common/color.js +0 -10
  689. package/lib/common/component.d.ts +0 -4
  690. package/lib/common/component.js +0 -49
  691. package/lib/common/index.css +0 -1
  692. package/lib/common/index.wxss +0 -1
  693. package/lib/common/relation.d.ts +0 -15
  694. package/lib/common/relation.js +0 -65
  695. package/lib/common/style/clearfix.css +0 -1
  696. package/lib/common/style/clearfix.wxss +0 -1
  697. package/lib/common/style/ellipsis.css +0 -1
  698. package/lib/common/style/ellipsis.wxss +0 -1
  699. package/lib/common/style/hairline.css +0 -1
  700. package/lib/common/style/hairline.wxss +0 -1
  701. package/lib/common/style/mixins/clearfix.css +0 -0
  702. package/lib/common/style/mixins/clearfix.wxss +0 -0
  703. package/lib/common/style/mixins/ellipsis.css +0 -0
  704. package/lib/common/style/mixins/ellipsis.wxss +0 -0
  705. package/lib/common/style/mixins/hairline.css +0 -1
  706. package/lib/common/style/mixins/hairline.wxss +0 -1
  707. package/lib/common/style/var.css +0 -1
  708. package/lib/common/style/var.wxss +0 -1
  709. package/lib/common/ty.d.ts +0 -7
  710. package/lib/common/ty.js +0 -35
  711. package/lib/common/utils.d.ts +0 -24
  712. package/lib/common/utils.js +0 -140
  713. package/lib/common/validator.d.ts +0 -9
  714. package/lib/common/validator.js +0 -43
  715. package/lib/common/version.d.ts +0 -15
  716. package/lib/common/version.js +0 -70
  717. package/lib/config-provider/index.d.ts +0 -1
  718. package/lib/config-provider/index.js +0 -11
  719. package/lib/config-provider/index.json +0 -3
  720. package/lib/config-provider/index.wxml +0 -5
  721. package/lib/config-provider/index.wxs +0 -29
  722. package/lib/count-down/index.css +0 -1
  723. package/lib/count-down/index.d.ts +0 -1
  724. package/lib/count-down/index.js +0 -104
  725. package/lib/count-down/index.json +0 -3
  726. package/lib/count-down/index.wxml +0 -4
  727. package/lib/count-down/index.wxss +0 -1
  728. package/lib/count-down/utils.d.ts +0 -10
  729. package/lib/count-down/utils.js +0 -64
  730. package/lib/custom-keyboard/index.css +0 -1
  731. package/lib/custom-keyboard/index.d.ts +0 -1
  732. package/lib/custom-keyboard/index.js +0 -156
  733. package/lib/custom-keyboard/index.json +0 -9
  734. package/lib/custom-keyboard/index.wxml +0 -44
  735. package/lib/custom-keyboard/index.wxss +0 -1
  736. package/lib/datetime-picker/index.css +0 -1
  737. package/lib/datetime-picker/index.d.ts +0 -1
  738. package/lib/datetime-picker/index.js +0 -512
  739. package/lib/datetime-picker/index.json +0 -6
  740. package/lib/datetime-picker/index.wxml +0 -22
  741. package/lib/datetime-picker/index.wxss +0 -1
  742. package/lib/definitions/index.d.ts +0 -29
  743. package/lib/definitions/index.js +0 -2
  744. package/lib/dialog/dialog.d.ts +0 -75
  745. package/lib/dialog/dialog.js +0 -137
  746. package/lib/dialog/index.css +0 -1
  747. package/lib/dialog/index.d.ts +0 -1
  748. package/lib/dialog/index.js +0 -223
  749. package/lib/dialog/index.json +0 -10
  750. package/lib/dialog/index.wxml +0 -146
  751. package/lib/dialog/index.wxss +0 -1
  752. package/lib/divider/index.css +0 -1
  753. package/lib/divider/index.d.ts +0 -1
  754. package/lib/divider/index.js +0 -14
  755. package/lib/divider/index.json +0 -4
  756. package/lib/divider/index.wxml +0 -9
  757. package/lib/divider/index.wxs +0 -18
  758. package/lib/divider/index.wxss +0 -1
  759. package/lib/dropdown-item/index.css +0 -1
  760. package/lib/dropdown-item/index.d.ts +0 -1
  761. package/lib/dropdown-item/index.js +0 -150
  762. package/lib/dropdown-item/index.json +0 -8
  763. package/lib/dropdown-item/index.wxml +0 -52
  764. package/lib/dropdown-item/index.wxss +0 -1
  765. package/lib/dropdown-item/shared.d.ts +0 -5
  766. package/lib/dropdown-item/shared.js +0 -2
  767. package/lib/dropdown-menu/index.css +0 -1
  768. package/lib/dropdown-menu/index.d.ts +0 -1
  769. package/lib/dropdown-menu/index.js +0 -137
  770. package/lib/dropdown-menu/index.json +0 -6
  771. package/lib/dropdown-menu/index.wxml +0 -24
  772. package/lib/dropdown-menu/index.wxs +0 -16
  773. package/lib/dropdown-menu/index.wxss +0 -1
  774. package/lib/empty/index.css +0 -1
  775. package/lib/empty/index.d.ts +0 -1
  776. package/lib/empty/index.js +0 -31
  777. package/lib/empty/index.json +0 -4
  778. package/lib/empty/index.wxml +0 -22
  779. package/lib/empty/index.wxs +0 -13
  780. package/lib/empty/index.wxss +0 -1
  781. package/lib/field/cell-input.wxml +0 -59
  782. package/lib/field/cell-textarea.wxml +0 -28
  783. package/lib/field/index.css +0 -1
  784. package/lib/field/index.d.ts +0 -1
  785. package/lib/field/index.js +0 -160
  786. package/lib/field/index.json +0 -7
  787. package/lib/field/index.wxml +0 -4
  788. package/lib/field/index.wxs +0 -19
  789. package/lib/field/index.wxss +0 -1
  790. package/lib/field/input.wxml +0 -30
  791. package/lib/field/props.d.ts +0 -4
  792. package/lib/field/props.js +0 -59
  793. package/lib/field/textarea.wxml +0 -32
  794. package/lib/field/types.d.ts +0 -8
  795. package/lib/field/types.js +0 -2
  796. package/lib/goods-action/index.css +0 -1
  797. package/lib/goods-action/index.d.ts +0 -1
  798. package/lib/goods-action/index.js +0 -17
  799. package/lib/goods-action/index.json +0 -3
  800. package/lib/goods-action/index.wxml +0 -5
  801. package/lib/goods-action/index.wxss +0 -1
  802. package/lib/goods-action-button/index.css +0 -1
  803. package/lib/goods-action-button/index.d.ts +0 -1
  804. package/lib/goods-action-button/index.js +0 -51
  805. package/lib/goods-action-button/index.json +0 -6
  806. package/lib/goods-action-button/index.wxml +0 -35
  807. package/lib/goods-action-button/index.wxss +0 -1
  808. package/lib/goods-action-icon/index.css +0 -1
  809. package/lib/goods-action-icon/index.d.ts +0 -1
  810. package/lib/goods-action-icon/index.js +0 -29
  811. package/lib/goods-action-icon/index.json +0 -7
  812. package/lib/goods-action-icon/index.wxml +0 -41
  813. package/lib/goods-action-icon/index.wxss +0 -1
  814. package/lib/grid/index.css +0 -1
  815. package/lib/grid/index.d.ts +0 -1
  816. package/lib/grid/index.js +0 -57
  817. package/lib/grid/index.json +0 -3
  818. package/lib/grid/index.wxml +0 -8
  819. package/lib/grid/index.wxs +0 -13
  820. package/lib/grid/index.wxss +0 -1
  821. package/lib/grid-item/index.css +0 -1
  822. package/lib/grid-item/index.d.ts +0 -1
  823. package/lib/grid-item/index.js +0 -54
  824. package/lib/grid-item/index.json +0 -6
  825. package/lib/grid-item/index.wxml +0 -27
  826. package/lib/grid-item/index.wxs +0 -32
  827. package/lib/grid-item/index.wxss +0 -1
  828. package/lib/icon/index.css +0 -1
  829. package/lib/icon/index.d.ts +0 -1
  830. package/lib/icon/index.js +0 -23
  831. package/lib/icon/index.json +0 -6
  832. package/lib/icon/index.wxml +0 -30
  833. package/lib/icon/index.wxs +0 -94
  834. package/lib/icon/index.wxss +0 -1
  835. package/lib/image/index.css +0 -1
  836. package/lib/image/index.d.ts +0 -1
  837. package/lib/image/index.js +0 -75
  838. package/lib/image/index.json +0 -7
  839. package/lib/image/index.wxml +0 -40
  840. package/lib/image/index.wxs +0 -42
  841. package/lib/image/index.wxss +0 -1
  842. package/lib/index-anchor/index.css +0 -1
  843. package/lib/index-anchor/index.d.ts +0 -1
  844. package/lib/index-anchor/index.js +0 -28
  845. package/lib/index-anchor/index.json +0 -3
  846. package/lib/index-anchor/index.wxml +0 -14
  847. package/lib/index-anchor/index.wxss +0 -1
  848. package/lib/index-bar/index.css +0 -1
  849. package/lib/index-bar/index.d.ts +0 -1
  850. package/lib/index-bar/index.js +0 -244
  851. package/lib/index-bar/index.json +0 -3
  852. package/lib/index-bar/index.wxml +0 -22
  853. package/lib/index-bar/index.wxss +0 -1
  854. package/lib/info/index.css +0 -1
  855. package/lib/info/index.d.ts +0 -1
  856. package/lib/info/index.js +0 -10
  857. package/lib/info/index.json +0 -3
  858. package/lib/info/index.wxml +0 -7
  859. package/lib/info/index.wxss +0 -1
  860. package/lib/loading/index.css +0 -1
  861. package/lib/loading/index.d.ts +0 -1
  862. package/lib/loading/index.js +0 -44
  863. package/lib/loading/index.json +0 -3
  864. package/lib/loading/index.wxml +0 -17
  865. package/lib/loading/index.wxs +0 -39
  866. package/lib/loading/index.wxss +0 -1
  867. package/lib/mixins/basic.d.ts +0 -1
  868. package/lib/mixins/basic.js +0 -30
  869. package/lib/mixins/button.d.ts +0 -1
  870. package/lib/mixins/button.js +0 -54
  871. package/lib/mixins/link.d.ts +0 -1
  872. package/lib/mixins/link.js +0 -26
  873. package/lib/mixins/page-scroll.d.ts +0 -6
  874. package/lib/mixins/page-scroll.js +0 -47
  875. package/lib/mixins/touch.d.ts +0 -1
  876. package/lib/mixins/touch.js +0 -39
  877. package/lib/mixins/transition.d.ts +0 -1
  878. package/lib/mixins/transition.js +0 -235
  879. package/lib/nav-bar/index.css +0 -1
  880. package/lib/nav-bar/index.d.ts +0 -1
  881. package/lib/nav-bar/index.js +0 -116
  882. package/lib/nav-bar/index.json +0 -6
  883. package/lib/nav-bar/index.wxml +0 -70
  884. package/lib/nav-bar/index.wxs +0 -14
  885. package/lib/nav-bar/index.wxss +0 -1
  886. package/lib/normal-slider/index.css +0 -1
  887. package/lib/normal-slider/index.d.ts +0 -1
  888. package/lib/normal-slider/index.js +0 -160
  889. package/lib/normal-slider/index.json +0 -6
  890. package/lib/normal-slider/index.wxml +0 -35
  891. package/lib/normal-slider/index.wxss +0 -1
  892. package/lib/notice-bar/index.css +0 -1
  893. package/lib/notice-bar/index.d.ts +0 -1
  894. package/lib/notice-bar/index.js +0 -178
  895. package/lib/notice-bar/index.json +0 -6
  896. package/lib/notice-bar/index.wxml +0 -52
  897. package/lib/notice-bar/index.wxs +0 -11
  898. package/lib/notice-bar/index.wxss +0 -1
  899. package/lib/notify/index.css +0 -1
  900. package/lib/notify/index.d.ts +0 -1
  901. package/lib/notify/index.js +0 -80
  902. package/lib/notify/index.json +0 -6
  903. package/lib/notify/index.wxml +0 -22
  904. package/lib/notify/index.wxs +0 -22
  905. package/lib/notify/index.wxss +0 -1
  906. package/lib/notify/notify.d.ts +0 -29
  907. package/lib/notify/notify.js +0 -72
  908. package/lib/overlay/index.css +0 -1
  909. package/lib/overlay/index.d.ts +0 -1
  910. package/lib/overlay/index.js +0 -32
  911. package/lib/overlay/index.json +0 -6
  912. package/lib/overlay/index.wxml +0 -7
  913. package/lib/overlay/index.wxss +0 -1
  914. package/lib/overlay/overlay.wxml +0 -10
  915. package/lib/picker/index.css +0 -1
  916. package/lib/picker/index.d.ts +0 -1
  917. package/lib/picker/index.js +0 -191
  918. package/lib/picker/index.json +0 -7
  919. package/lib/picker/index.wxml +0 -48
  920. package/lib/picker/index.wxs +0 -44
  921. package/lib/picker/index.wxss +0 -1
  922. package/lib/picker/shared.d.ts +0 -44
  923. package/lib/picker/shared.js +0 -47
  924. package/lib/picker/toolbar.wxml +0 -23
  925. package/lib/picker-column/index.css +0 -1
  926. package/lib/picker-column/index.d.ts +0 -1
  927. package/lib/picker-column/index.js +0 -337
  928. package/lib/picker-column/index.json +0 -3
  929. package/lib/picker-column/index.wxml +0 -60
  930. package/lib/picker-column/index.wxs +0 -628
  931. package/lib/picker-column/index.wxss +0 -1
  932. package/lib/popover/index.css +0 -1
  933. package/lib/popover/index.d.ts +0 -1
  934. package/lib/popover/index.js +0 -224
  935. package/lib/popover/index.json +0 -7
  936. package/lib/popover/index.wxml +0 -31
  937. package/lib/popover/index.wxss +0 -1
  938. package/lib/popup/index.css +0 -1
  939. package/lib/popup/index.d.ts +0 -1
  940. package/lib/popup/index.js +0 -122
  941. package/lib/popup/index.json +0 -7
  942. package/lib/popup/index.wxml +0 -21
  943. package/lib/popup/index.wxs +0 -23
  944. package/lib/popup/index.wxss +0 -1
  945. package/lib/popup/popup.wxml +0 -16
  946. package/lib/progress/index.css +0 -1
  947. package/lib/progress/index.d.ts +0 -1
  948. package/lib/progress/index.js +0 -52
  949. package/lib/progress/index.json +0 -3
  950. package/lib/progress/index.wxml +0 -20
  951. package/lib/progress/index.wxs +0 -36
  952. package/lib/progress/index.wxss +0 -1
  953. package/lib/radio/index.css +0 -1
  954. package/lib/radio/index.d.ts +0 -1
  955. package/lib/radio/index.js +0 -75
  956. package/lib/radio/index.json +0 -6
  957. package/lib/radio/index.wxml +0 -32
  958. package/lib/radio/index.wxs +0 -33
  959. package/lib/radio/index.wxss +0 -1
  960. package/lib/radio-group/index.css +0 -1
  961. package/lib/radio-group/index.d.ts +0 -1
  962. package/lib/radio-group/index.js +0 -29
  963. package/lib/radio-group/index.json +0 -3
  964. package/lib/radio-group/index.wxml +0 -5
  965. package/lib/radio-group/index.wxss +0 -1
  966. package/lib/rate/index.css +0 -1
  967. package/lib/rate/index.d.ts +0 -1
  968. package/lib/rate/index.js +0 -107
  969. package/lib/rate/index.json +0 -6
  970. package/lib/rate/index.wxml +0 -35
  971. package/lib/rate/index.wxss +0 -1
  972. package/lib/row/index.css +0 -1
  973. package/lib/row/index.d.ts +0 -1
  974. package/lib/row/index.js +0 -26
  975. package/lib/row/index.json +0 -3
  976. package/lib/row/index.wxml +0 -5
  977. package/lib/row/index.wxs +0 -18
  978. package/lib/row/index.wxss +0 -1
  979. package/lib/search/index.css +0 -1
  980. package/lib/search/index.d.ts +0 -1
  981. package/lib/search/index.js +0 -106
  982. package/lib/search/index.json +0 -7
  983. package/lib/search/index.wxml +0 -57
  984. package/lib/search/index.wxss +0 -1
  985. package/lib/sidebar/index.css +0 -1
  986. package/lib/sidebar/index.d.ts +0 -1
  987. package/lib/sidebar/index.js +0 -36
  988. package/lib/sidebar/index.json +0 -3
  989. package/lib/sidebar/index.wxml +0 -3
  990. package/lib/sidebar/index.wxss +0 -1
  991. package/lib/sidebar-item/index.css +0 -1
  992. package/lib/sidebar-item/index.d.ts +0 -1
  993. package/lib/sidebar-item/index.js +0 -32
  994. package/lib/sidebar-item/index.json +0 -6
  995. package/lib/sidebar-item/index.wxml +0 -18
  996. package/lib/sidebar-item/index.wxss +0 -1
  997. package/lib/skeleton/index.css +0 -1
  998. package/lib/skeleton/index.d.ts +0 -1
  999. package/lib/skeleton/index.js +0 -48
  1000. package/lib/skeleton/index.json +0 -4
  1001. package/lib/skeleton/index.wxml +0 -29
  1002. package/lib/skeleton/index.wxss +0 -1
  1003. package/lib/slider/index.css +0 -1
  1004. package/lib/slider/index.d.ts +0 -1
  1005. package/lib/slider/index.js +0 -208
  1006. package/lib/slider/index.json +0 -3
  1007. package/lib/slider/index.wxml +0 -68
  1008. package/lib/slider/index.wxs +0 -14
  1009. package/lib/slider/index.wxss +0 -1
  1010. package/lib/stepper/index.css +0 -1
  1011. package/lib/stepper/index.d.ts +0 -1
  1012. package/lib/stepper/index.js +0 -225
  1013. package/lib/stepper/index.json +0 -6
  1014. package/lib/stepper/index.wxml +0 -45
  1015. package/lib/stepper/index.wxs +0 -32
  1016. package/lib/stepper/index.wxss +0 -1
  1017. package/lib/steps/index.css +0 -1
  1018. package/lib/steps/index.d.ts +0 -1
  1019. package/lib/steps/index.js +0 -39
  1020. package/lib/steps/index.json +0 -6
  1021. package/lib/steps/index.wxml +0 -54
  1022. package/lib/steps/index.wxss +0 -1
  1023. package/lib/sticky/index.css +0 -1
  1024. package/lib/sticky/index.d.ts +0 -1
  1025. package/lib/sticky/index.js +0 -128
  1026. package/lib/sticky/index.json +0 -3
  1027. package/lib/sticky/index.wxml +0 -8
  1028. package/lib/sticky/index.wxs +0 -25
  1029. package/lib/sticky/index.wxss +0 -1
  1030. package/lib/swipe-cell/index.css +0 -1
  1031. package/lib/swipe-cell/index.d.ts +0 -1
  1032. package/lib/swipe-cell/index.js +0 -142
  1033. package/lib/swipe-cell/index.json +0 -3
  1034. package/lib/swipe-cell/index.wxml +0 -21
  1035. package/lib/swipe-cell/index.wxss +0 -1
  1036. package/lib/switch/index.css +0 -1
  1037. package/lib/switch/index.d.ts +0 -1
  1038. package/lib/switch/index.js +0 -44
  1039. package/lib/switch/index.json +0 -6
  1040. package/lib/switch/index.wxml +0 -51
  1041. package/lib/switch/index.wxs +0 -26
  1042. package/lib/switch/index.wxss +0 -1
  1043. package/lib/tab/index.css +0 -1
  1044. package/lib/tab/index.d.ts +0 -1
  1045. package/lib/tab/index.js +0 -66
  1046. package/lib/tab/index.json +0 -3
  1047. package/lib/tab/index.wxml +0 -8
  1048. package/lib/tab/index.wxss +0 -1
  1049. package/lib/tabbar/index.css +0 -1
  1050. package/lib/tabbar/index.d.ts +0 -1
  1051. package/lib/tabbar/index.js +0 -73
  1052. package/lib/tabbar/index.json +0 -3
  1053. package/lib/tabbar/index.wxml +0 -12
  1054. package/lib/tabbar/index.wxss +0 -1
  1055. package/lib/tabbar-item/index.css +0 -1
  1056. package/lib/tabbar-item/index.d.ts +0 -1
  1057. package/lib/tabbar-item/index.js +0 -79
  1058. package/lib/tabbar-item/index.json +0 -7
  1059. package/lib/tabbar-item/index.wxml +0 -32
  1060. package/lib/tabbar-item/index.wxss +0 -1
  1061. package/lib/tabs/index.css +0 -1
  1062. package/lib/tabs/index.d.ts +0 -1
  1063. package/lib/tabs/index.js +0 -329
  1064. package/lib/tabs/index.json +0 -7
  1065. package/lib/tabs/index.wxml +0 -67
  1066. package/lib/tabs/index.wxs +0 -99
  1067. package/lib/tabs/index.wxss +0 -1
  1068. package/lib/tag/index.css +0 -1
  1069. package/lib/tag/index.d.ts +0 -1
  1070. package/lib/tag/index.js +0 -34
  1071. package/lib/tag/index.json +0 -6
  1072. package/lib/tag/index.wxml +0 -17
  1073. package/lib/tag/index.wxs +0 -13
  1074. package/lib/tag/index.wxss +0 -1
  1075. package/lib/toast/icons.d.ts +0 -3
  1076. package/lib/toast/icons.js +0 -12
  1077. package/lib/toast/index.css +0 -1
  1078. package/lib/toast/index.d.ts +0 -1
  1079. package/lib/toast/index.js +0 -63
  1080. package/lib/toast/index.json +0 -9
  1081. package/lib/toast/index.wxml +0 -33
  1082. package/lib/toast/index.wxss +0 -1
  1083. package/lib/toast/toast.d.ts +0 -35
  1084. package/lib/toast/toast.js +0 -116
  1085. package/lib/transition/index.css +0 -1
  1086. package/lib/transition/index.d.ts +0 -1
  1087. package/lib/transition/index.js +0 -15
  1088. package/lib/transition/index.json +0 -3
  1089. package/lib/transition/index.wxml +0 -9
  1090. package/lib/transition/index.wxs +0 -17
  1091. package/lib/transition/index.wxss +0 -1
  1092. package/lib/tree-select/index.css +0 -1
  1093. package/lib/tree-select/index.d.ts +0 -1
  1094. package/lib/tree-select/index.js +0 -74
  1095. package/lib/tree-select/index.json +0 -8
  1096. package/lib/tree-select/index.wxml +0 -41
  1097. package/lib/tree-select/index.wxs +0 -12
  1098. package/lib/tree-select/index.wxss +0 -1
  1099. package/lib/wxs/add-unit.wxs +0 -12
  1100. package/lib/wxs/array.wxs +0 -5
  1101. package/lib/wxs/bem.wxs +0 -39
  1102. package/lib/wxs/memoize.wxs +0 -55
  1103. package/lib/wxs/object.wxs +0 -13
  1104. package/lib/wxs/style.wxs +0 -46
  1105. package/lib/wxs/utils.wxs +0 -85
@@ -1,479 +0,0 @@
1
- var __rest = (this && this.__rest) || function (s, e) {
2
- var t = {};
3
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
4
- t[p] = s[p];
5
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
6
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
7
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
8
- t[p[i]] = s[p[i]];
9
- }
10
- return t;
11
- };
12
- import { SmartComponent } from '../common/component';
13
- import { isDef } from '../common/validator';
14
- import { pickerProps } from '../picker/shared';
15
- import { range, replacePlaceholders } from '../common/utils';
16
- const currentYear = new Date().getFullYear();
17
- function isValidDate(date) {
18
- return isDef(date) && !isNaN(new Date(date).getTime());
19
- }
20
- function padZero(val) {
21
- return `00${val}`.slice(-2);
22
- }
23
- function times(n, iteratee) {
24
- let index = -1;
25
- const result = Array(n < 0 ? 0 : n);
26
- while (++index < n) {
27
- result[index] = iteratee(index);
28
- }
29
- return result;
30
- }
31
- function getTrueValue(formattedValue) {
32
- if (formattedValue === undefined) {
33
- formattedValue = '1';
34
- }
35
- while (isNaN(parseInt(formattedValue, 10))) {
36
- formattedValue = formattedValue.slice(1);
37
- }
38
- return parseInt(formattedValue, 10);
39
- }
40
- function getMonthEndDay(year, month) {
41
- return 32 - new Date(year, month - 1, 32).getDate();
42
- }
43
- function findIntersection(range1, range2) {
44
- const [start1, end1] = range1;
45
- const [start2, end2] = range2;
46
- // 确定交集的开始和结束
47
- const intersectionStart = Math.max(start1, start2);
48
- const intersectionEnd = Math.min(end1, end2);
49
- // 检查是否有交集
50
- if (intersectionStart <= intersectionEnd) {
51
- return [intersectionStart, intersectionEnd];
52
- }
53
- return []; // 没有交集
54
- }
55
- const defaultFormatter = (type, value) => value;
56
- SmartComponent({
57
- classes: ['active-class', 'toolbar-class', 'column-class'],
58
- props: Object.assign(Object.assign({}, pickerProps), { value: {
59
- type: null,
60
- observer: 'updateValue',
61
- }, filter: null, type: {
62
- type: String,
63
- value: 'datetime',
64
- observer: 'updateValue',
65
- }, showToolbar: {
66
- type: Boolean,
67
- value: true,
68
- }, locale: {
69
- type: Object,
70
- }, formatter: {
71
- type: null,
72
- value: defaultFormatter,
73
- }, amText: {
74
- type: String,
75
- value: 'AM',
76
- }, pmText: {
77
- type: String,
78
- value: 'PM',
79
- }, columnsOrder: {
80
- type: Array,
81
- value: [],
82
- }, is12HourClock: {
83
- type: Boolean,
84
- value: false,
85
- }, minDate: {
86
- type: Number,
87
- value: new Date(currentYear - 10, 0, 1).getTime(),
88
- observer: 'updateValue',
89
- }, maxDate: {
90
- type: Number,
91
- value: new Date(currentYear + 10, 11, 31).getTime(),
92
- observer: 'updateValue',
93
- }, minHour: {
94
- type: Number,
95
- value: 0,
96
- observer: 'updateValue',
97
- }, maxHour: {
98
- type: Number,
99
- value: 23,
100
- observer: 'updateValue',
101
- }, minMinute: {
102
- type: Number,
103
- value: 0,
104
- observer: 'updateValue',
105
- }, maxMinute: {
106
- type: Number,
107
- value: 59,
108
- observer: 'updateValue',
109
- }, formatterMap: {
110
- type: Object,
111
- value: undefined,
112
- }, columnStyles: {
113
- type: Object,
114
- value: undefined,
115
- }, fontStyles: {
116
- type: Object,
117
- value: undefined,
118
- } }),
119
- data: {
120
- part: 'am',
121
- innerValue: Date.now(),
122
- isCreated: false,
123
- columns: [],
124
- },
125
- created() {
126
- const innerValue = this.correctValue(this.data.value);
127
- this.updateColumnValue(innerValue);
128
- if (innerValue !== this.data.value) {
129
- this.$emit('input', innerValue);
130
- }
131
- this.setData({
132
- isCreated: true,
133
- });
134
- },
135
- methods: {
136
- updateValue() {
137
- const { value, innerValue, isCreated } = this.data;
138
- if (!isCreated)
139
- return;
140
- const val = this.correctValue(value);
141
- const isEqual = val === innerValue;
142
- this.updateColumnValue(val);
143
- if (!isEqual) {
144
- this.$emit('input', val);
145
- }
146
- },
147
- getPicker() {
148
- if (this.picker == null) {
149
- this.picker = this.selectComponent('.smart-datetime-picker');
150
- const { picker } = this;
151
- const { setColumnValues } = picker;
152
- picker.setColumnValues = (...args) => setColumnValues.apply(picker, [...args, false]);
153
- }
154
- return this.picker;
155
- },
156
- getTimeBoundary() {
157
- const { type, is12HourClock, minHour, maxHour, minMinute, maxMinute } = this.data;
158
- if (type === 'time' && is12HourClock) {
159
- if (minHour === 1 && maxHour === 24) {
160
- return {
161
- minHour: 0,
162
- maxHour: 23,
163
- minMinute,
164
- maxMinute,
165
- };
166
- }
167
- }
168
- return {
169
- minHour,
170
- maxHour,
171
- minMinute,
172
- maxMinute,
173
- };
174
- },
175
- formatterFunc(type, value, data) {
176
- var _a, _b;
177
- if (type === 'part') {
178
- return value === 'am' ? data.amText : data.pmText;
179
- }
180
- const { formatterMap, formatter = defaultFormatter } = (_a = this === null || this === void 0 ? void 0 : this.data) !== null && _a !== void 0 ? _a : data;
181
- const mapDetail = formatterMap === null || formatterMap === void 0 ? void 0 : formatterMap[type];
182
- if (typeof mapDetail === 'string') {
183
- return replacePlaceholders(mapDetail, { [type]: value });
184
- }
185
- if (typeof mapDetail === 'object') {
186
- return (_b = mapDetail[value]) !== null && _b !== void 0 ? _b : formatter(type, value);
187
- }
188
- return formatter(type, value);
189
- },
190
- updateColumns(values) {
191
- const { locale, columnStyles, fontStyles } = this.data;
192
- const results = this.getOriginColumns().map((column, index) => {
193
- const value = values[index];
194
- const list = column.values.map(value => this.formatterFunc(column.type, value, this.data));
195
- const activeIndex = list.findIndex(item => item === value);
196
- return {
197
- values: list,
198
- order: column.order,
199
- unit: locale === null || locale === void 0 ? void 0 : locale[column.type],
200
- style: columnStyles === null || columnStyles === void 0 ? void 0 : columnStyles[column.type],
201
- fontStyle: fontStyles === null || fontStyles === void 0 ? void 0 : fontStyles[column.type],
202
- activeIndex: activeIndex === -1 ? 0 : activeIndex,
203
- loop: !['12HourClock', 'year'].includes(column.type),
204
- };
205
- });
206
- return this.setData({ columns: results });
207
- },
208
- getOriginColumns() {
209
- const { part, filter, is12HourClock, type, amText, pmText, columnsOrder } = this.data;
210
- const { minHour, maxHour } = this.getTimeBoundary();
211
- const results = this.getRanges().map(({ type: timeType, range }, index) => {
212
- const order = columnsOrder[index];
213
- let values = times(range[1] - range[0] + 1, index => {
214
- const value = range[0] + index;
215
- if (is12HourClock && type === 'time' && timeType === 'hour') {
216
- if (part === 'pm') {
217
- if (value === 12)
218
- return '12';
219
- return padZero(value - 12);
220
- }
221
- if (value === 0)
222
- return '12';
223
- return padZero(value);
224
- }
225
- return timeType === 'year' ? `${value}` : padZero(value);
226
- });
227
- if (filter) {
228
- values = filter(timeType, values);
229
- }
230
- return { type: timeType, values, order };
231
- });
232
- if (is12HourClock && type === 'time') {
233
- return [
234
- {
235
- type: '12HourClock',
236
- values: minHour > 11 ? [pmText] : maxHour < 12 ? [amText] : [amText, pmText],
237
- order: columnsOrder[0],
238
- },
239
- ...results.map((item, index) => (Object.assign(Object.assign({}, item), { order: columnsOrder[index + 1] }))),
240
- ].filter(Boolean);
241
- }
242
- return results;
243
- },
244
- getRanges() {
245
- const { data } = this;
246
- if (data.type === 'time' && data.is12HourClock) {
247
- const { minHour, maxHour, minMinute, maxMinute } = this.getTimeBoundary();
248
- const { part } = data;
249
- const time12Range = part === 'pm' ? [12, 23] : [0, 11];
250
- return [
251
- {
252
- type: 'hour',
253
- range: findIntersection(time12Range, [minHour, maxHour]),
254
- },
255
- {
256
- type: 'minute',
257
- range: [minMinute, maxMinute],
258
- },
259
- ];
260
- }
261
- if (data.type === 'time') {
262
- const { minHour, maxHour, minMinute, maxMinute } = this.getTimeBoundary();
263
- return [
264
- {
265
- type: 'hour',
266
- range: [minHour, maxHour],
267
- },
268
- {
269
- type: 'minute',
270
- range: [minMinute, maxMinute],
271
- },
272
- ];
273
- }
274
- const { maxYear, maxDate, maxMonth, maxHour, maxMinute } = this.getBoundary('max', data.innerValue);
275
- const { minYear, minDate, minMonth, minHour, minMinute } = this.getBoundary('min', data.innerValue);
276
- const result = [
277
- {
278
- type: 'year',
279
- range: [minYear, maxYear],
280
- },
281
- {
282
- type: 'month',
283
- range: [minMonth, maxMonth],
284
- },
285
- {
286
- type: 'day',
287
- range: [minDate, maxDate],
288
- },
289
- {
290
- type: 'hour',
291
- range: [minHour, maxHour],
292
- },
293
- {
294
- type: 'minute',
295
- range: [minMinute, maxMinute],
296
- },
297
- ];
298
- if (data.type === 'date')
299
- result.splice(3, 2);
300
- if (data.type === 'year-month')
301
- result.splice(2, 3);
302
- return result;
303
- },
304
- correctValue(value) {
305
- const { data } = this;
306
- // validate value
307
- const isDateType = data.type !== 'time';
308
- if (isDateType && !isValidDate(value)) {
309
- value = data.minDate;
310
- }
311
- else if (!isDateType && !value) {
312
- const { minHour } = data;
313
- value = `${padZero(minHour)}:00`;
314
- }
315
- // time type
316
- if (!isDateType) {
317
- const { minHour, maxHour, minMinute, maxMinute } = this.getTimeBoundary();
318
- let [hour, minute] = value.split(':');
319
- if (Number(hour) === 24) {
320
- hour = 0;
321
- }
322
- hour = padZero(range(hour, minHour, maxHour));
323
- minute = padZero(range(minute, minMinute, maxMinute));
324
- return `${hour}:${minute}`;
325
- }
326
- // date type
327
- value = Math.max(value, data.minDate);
328
- value = Math.min(value, data.maxDate);
329
- return value;
330
- },
331
- getBoundary(type, innerValue) {
332
- const value = new Date(innerValue);
333
- const boundary = new Date(this.data[`${type}Date`]);
334
- const year = boundary.getFullYear();
335
- let month = 1;
336
- let date = 1;
337
- let hour = 0;
338
- let minute = 0;
339
- if (type === 'max') {
340
- month = 12;
341
- date = getMonthEndDay(value.getFullYear(), value.getMonth() + 1);
342
- hour = 23;
343
- minute = 59;
344
- }
345
- if (value.getFullYear() === year) {
346
- month = boundary.getMonth() + 1;
347
- if (value.getMonth() + 1 === month) {
348
- date = boundary.getDate();
349
- if (value.getDate() === date) {
350
- hour = boundary.getHours();
351
- if (value.getHours() === hour) {
352
- minute = boundary.getMinutes();
353
- }
354
- }
355
- }
356
- }
357
- return {
358
- [`${type}Year`]: year,
359
- [`${type}Month`]: month,
360
- [`${type}Date`]: date,
361
- [`${type}Hour`]: hour,
362
- [`${type}Minute`]: minute,
363
- };
364
- },
365
- onCancel() {
366
- this.$emit('cancel');
367
- },
368
- onConfirm() {
369
- this.$emit('confirm', this.data.innerValue);
370
- },
371
- onChange() {
372
- const { data } = this;
373
- let value;
374
- const picker = this.getPicker();
375
- const indexes = picker.getIndexes();
376
- if (data.type === 'time' && data.is12HourClock) {
377
- const originColumns = this.getOriginColumns();
378
- const [partText, hour, minute] = indexes.map((item, index) => originColumns[index].values[item]);
379
- const part = partText === this.data.pmText ? 'pm' : 'am';
380
- this.setData({
381
- part,
382
- });
383
- value = `${part === 'pm'
384
- ? hour === '12'
385
- ? 12
386
- : Number(hour) + 12
387
- : hour === '12'
388
- ? 0
389
- : Number(hour)}:${Number(minute)}`;
390
- }
391
- else if (data.type === 'time') {
392
- const originColumns = this.getOriginColumns();
393
- value = `${+originColumns[0].values[indexes[0]]}:${+originColumns[1].values[indexes[1]]}`;
394
- }
395
- else {
396
- const originColumns = this.getOriginColumns();
397
- const values = indexes.map((value, index) => originColumns[index].values[value]);
398
- const year = getTrueValue(values[0]);
399
- const month = getTrueValue(values[1]);
400
- const maxDate = getMonthEndDay(year, month);
401
- let date = getTrueValue(values[2]);
402
- if (data.type === 'year-month') {
403
- date = 1;
404
- }
405
- date = date > maxDate ? maxDate : date;
406
- let hour = 0;
407
- let minute = 0;
408
- if (data.type === 'datetime') {
409
- hour = getTrueValue(values[3]);
410
- minute = getTrueValue(values[4]);
411
- }
412
- value = new Date(year, month - 1, date, hour, minute);
413
- }
414
- value = this.correctValue(value);
415
- this.updateColumnValue(value);
416
- picker.value = value;
417
- this.$emit('input', value);
418
- this.$emit('change', picker);
419
- },
420
- updateColumnValue(value) {
421
- let values = [];
422
- const _a = this.data, { columns, part, value: outerValue } = _a, rest = __rest(_a, ["columns", "part", "value"]);
423
- rest.innerValue = value;
424
- const dataStr = JSON.stringify(rest);
425
- if (dataStr === this.preDataStr)
426
- return;
427
- this.preDataStr = dataStr;
428
- const { type, is12HourClock } = this.data;
429
- const formatter = this.formatterFunc;
430
- if (type === 'time' && is12HourClock) {
431
- const [hour, minute] = value.split(':');
432
- const part = Number(hour) < 12 ? 'am' : 'pm';
433
- this.setData({
434
- part,
435
- });
436
- values = [
437
- formatter('part', part, this.data),
438
- formatter('hour', part === 'am'
439
- ? hour === '0'
440
- ? '12'
441
- : hour
442
- : hour === '12'
443
- ? '12'
444
- : padZero(Number(hour) - 12), this.data),
445
- formatter('minute', minute, this.data),
446
- ];
447
- }
448
- else if (type === 'time') {
449
- const pair = value.split(':');
450
- values = [formatter('hour', pair[0], this.data), formatter('minute', pair[1], this.data)];
451
- }
452
- else {
453
- const date = new Date(value);
454
- values = [
455
- formatter('year', `${date.getFullYear()}`, this.data),
456
- formatter('month', padZero(date.getMonth() + 1), this.data),
457
- ];
458
- if (type === 'date') {
459
- values.push(formatter('day', padZero(date.getDate()), this.data));
460
- }
461
- if (type === 'datetime') {
462
- values.push(formatter('day', padZero(date.getDate()), this.data), formatter('hour', padZero(date.getHours()), this.data), formatter('minute', padZero(date.getMinutes()), this.data));
463
- }
464
- }
465
- this.setData({ innerValue: value });
466
- this.updateColumns(values);
467
- // picker.setValues(values);
468
- // return this.set({ innerValue: value })
469
- // .then(() => this.updateColumns())
470
- // .then(() => picker.setValues(values));
471
- },
472
- onAnimationStart() {
473
- this.$emit('animation-start');
474
- },
475
- onAnimationEnd() {
476
- this.$emit('animation-end');
477
- },
478
- },
479
- });
@@ -1,6 +0,0 @@
1
- {
2
- "component": true,
3
- "usingComponents": {
4
- "smart-picker": "../picker/index"
5
- }
6
- }
@@ -1,22 +0,0 @@
1
- <smart-picker
2
- class="smart-datetime-picker"
3
- active-class="active-class"
4
- toolbar-class="toolbar-class"
5
- column-class="column-class"
6
- hairline-class="smart-datetime-picker-hairline"
7
- title="{{ title }}"
8
- columns="{{ columns }}"
9
- item-height="{{ itemHeight }}"
10
- active-style="{{ activeStyle }}"
11
- animation-time="{{ animationTime }}"
12
- show-toolbar="{{ showToolbar }}"
13
- visible-item-count="{{ visibleItemCount }}"
14
- confirm-button-text="{{ confirmButtonText }}"
15
- cancel-button-text="{{ cancelButtonText }}"
16
- change-animation="{{ changeAnimation }}"
17
- bind:change="onChange"
18
- bind:confirm="onConfirm"
19
- bind:cancel="onCancel"
20
- bind:animation-start="onAnimationStart"
21
- bind:animation-end="onAnimationEnd"
22
- />
@@ -1 +0,0 @@
1
- @import '../common/index.wxss';:root{--smart-ui-overlay:rgba(0,0,0,.4);--smart-ui-bottom-sheet-dragger-node-background:rgba(0,0,0,.3);--smart-ui-dialog-background:#fff;--smart-ui-border-image:linear-gradient(90deg,transparent,rgba(0,0,0,.3),transparent)}:root[theme=dark]{--smart-ui-bottom-sheet-dragger-node-background:hsla(0,0%,100%,.3);--smart-ui-overlay:rgba(0,0,0,.7);--smart-ui-dialog-background:#333;--smart-ui-border-image:linear-gradient(90deg,hsla(0,0%,100%,0),hsla(0,0%,100%,.3),hsla(0,0%,100%,0))}.smart-manrope{font-family:Manrope,sans-serif}:host{width:100%}.smart-datetime-picker{--hairline-color:transparent}.smart-datetime-picker-hairline{border-image-slice:1;border-image-source:var(--hairline-border-image-color,var(--smart-ui-border-image,linear-gradient(to right,transparent,rgba(0,0,0,.3),transparent)));border-style:solid;border-width:.5px 0;position:absolute}
@@ -1,29 +0,0 @@
1
- /// <reference types="miniprogram-api-typings" />
2
- interface SmartComponentInstance {
3
- parent: WechatMiniprogram.Component.TrivialInstance;
4
- children: WechatMiniprogram.Component.TrivialInstance[];
5
- index: number;
6
- $emit: (name: string, detail?: unknown, options?: WechatMiniprogram.Component.TriggerEventOption) => void;
7
- setView: (value: Record<string, any>, callback?: () => void) => void;
8
- }
9
- export type SmartComponentOptions<Data extends WechatMiniprogram.Component.DataOption, Props extends WechatMiniprogram.Component.PropertyOption, Methods extends WechatMiniprogram.Component.MethodOption> = {
10
- data?: Data;
11
- field?: boolean;
12
- classes?: string[];
13
- mixins?: string[];
14
- props?: Props;
15
- relation?: {
16
- relations: Record<string, WechatMiniprogram.Component.RelationOption>;
17
- mixin: string;
18
- };
19
- watch?: Record<string, (...args: any[]) => any>;
20
- methods?: Methods;
21
- beforeCreate?: () => void;
22
- created?: () => void;
23
- mounted?: () => void;
24
- destroyed?: () => void;
25
- } & ThisType<SmartComponentInstance & WechatMiniprogram.Component.Instance<Data & {
26
- name: string;
27
- value: any;
28
- } & Record<string, any>, Props, Methods> & Record<string, any>>;
29
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1,75 +0,0 @@
1
- /// <reference types="miniprogram-api-typings" />
2
- /// <reference types="miniprogram-api-typings" />
3
- export type Action = 'confirm' | 'cancel' | 'overlay';
4
- type DialogContext = WechatMiniprogram.Page.TrivialInstance | WechatMiniprogram.Component.TrivialInstance;
5
- type AnyObject = {};
6
- interface DialogOptions {
7
- lang?: string;
8
- show?: boolean;
9
- title?: string;
10
- icon?: boolean | string;
11
- iconColor?: string;
12
- iconSize?: string;
13
- nativeDisabled?: boolean;
14
- width?: string | number | null;
15
- zIndex?: number;
16
- theme?: string;
17
- context?: (() => DialogContext) | DialogContext;
18
- message?: string;
19
- overlay?: boolean;
20
- selector?: string;
21
- ariaLabel?: string;
22
- customStyle?: string;
23
- transition?: string;
24
- autoClose?: boolean;
25
- beforeClose?: null | ((action: Action, value?: string) => Promise<void | boolean> | void);
26
- businessId?: number;
27
- sessionFrom?: string;
28
- overlayStyle?: string;
29
- appParameter?: string;
30
- messageAlign?: string;
31
- sendMessageImg?: string;
32
- showMessageCard?: boolean;
33
- sendMessagePath?: string;
34
- sendMessageTitle?: string;
35
- confirmButtonText?: string;
36
- cancelButtonText?: string;
37
- showConfirmButton?: boolean;
38
- showCancelButton?: boolean;
39
- closeOnClickOverlay?: boolean;
40
- confirmButtonOpenType?: string;
41
- value?: null | string;
42
- ignoreQueue?: boolean;
43
- password?: boolean;
44
- placeholder?: string;
45
- maxlength?: number;
46
- }
47
- interface DialogInputOptions extends DialogOptions {
48
- value: string;
49
- type?: string;
50
- password?: boolean;
51
- placeholder?: string;
52
- maxlength?: number;
53
- emptyDisabled?: boolean;
54
- }
55
- export declare const contextRef: {
56
- value: Record<string, DialogContext | null>;
57
- };
58
- declare const Dialog: {
59
- (options: DialogOptions): Promise<WechatMiniprogram.Component.TrivialInstance>;
60
- alert(options: DialogOptions): Promise<WechatMiniprogram.Component.TrivialInstance>;
61
- confirm(options: DialogOptions): Promise<WechatMiniprogram.Component.TrivialInstance>;
62
- input: (options: DialogInputOptions) => Promise<WechatMiniprogram.Component.Instance<{
63
- /**
64
- * 输入框的当前值
65
- */
66
- inputValue: string;
67
- }, AnyObject, AnyObject>>;
68
- close(): void;
69
- stopLoading(): void;
70
- currentOptions: DialogOptions;
71
- defaultOptions: DialogOptions;
72
- setDefaultOptions(options: DialogOptions): void;
73
- resetDefaultOptions(): void;
74
- };
75
- export default Dialog;