@tuya-miniapp/smart-ui 0.0.1-beta-6 → 1.0.0-beta-1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (616) hide show
  1. package/README.md +2 -2
  2. package/dist/action-sheet/index.css +1 -1
  3. package/dist/action-sheet/index.js +2 -2
  4. package/dist/action-sheet/index.json +3 -3
  5. package/dist/action-sheet/index.wxml +15 -15
  6. package/dist/action-sheet/index.wxss +1 -1
  7. package/dist/area/index.js +3 -3
  8. package/dist/area/index.json +1 -1
  9. package/dist/area/index.wxml +2 -2
  10. package/dist/battery/index.js +2 -2
  11. package/dist/button/index.css +1 -1
  12. package/dist/button/index.js +3 -3
  13. package/dist/button/index.json +2 -2
  14. package/dist/button/index.wxml +9 -9
  15. package/dist/button/index.wxss +1 -1
  16. package/dist/calendar/calendar.wxml +5 -5
  17. package/dist/calendar/components/header/index.css +1 -1
  18. package/dist/calendar/components/header/index.js +2 -2
  19. package/dist/calendar/components/header/index.wxml +6 -6
  20. package/dist/calendar/components/header/index.wxss +1 -1
  21. package/dist/calendar/components/month/index.css +1 -1
  22. package/dist/calendar/components/month/index.js +2 -2
  23. package/dist/calendar/components/month/index.wxml +9 -9
  24. package/dist/calendar/components/month/index.wxss +1 -1
  25. package/dist/calendar/index.css +1 -1
  26. package/dist/calendar/index.js +3 -3
  27. package/dist/calendar/index.json +3 -3
  28. package/dist/calendar/index.wxml +5 -5
  29. package/dist/calendar/index.wxss +1 -1
  30. package/dist/cascader/index.css +1 -1
  31. package/dist/cascader/index.js +3 -2
  32. package/dist/cascader/index.json +3 -3
  33. package/dist/cascader/index.wxml +13 -13
  34. package/dist/cascader/index.wxss +1 -1
  35. package/dist/cell/index.css +1 -1
  36. package/dist/cell/index.js +2 -2
  37. package/dist/cell/index.json +1 -1
  38. package/dist/cell/index.wxml +10 -10
  39. package/dist/cell/index.wxss +1 -1
  40. package/dist/cell-group/index.css +1 -1
  41. package/dist/cell-group/index.js +2 -2
  42. package/dist/cell-group/index.wxml +1 -1
  43. package/dist/cell-group/index.wxss +1 -1
  44. package/dist/checkbox/index.css +1 -1
  45. package/dist/checkbox/index.js +2 -2
  46. package/dist/checkbox/index.json +1 -1
  47. package/dist/checkbox/index.wxml +2 -2
  48. package/dist/checkbox/index.wxss +1 -1
  49. package/dist/checkbox-group/index.css +1 -1
  50. package/dist/checkbox-group/index.js +2 -2
  51. package/dist/checkbox-group/index.wxss +1 -1
  52. package/dist/circle/index.css +1 -1
  53. package/dist/circle/index.js +2 -2
  54. package/dist/circle/index.wxml +6 -6
  55. package/dist/circle/index.wxss +1 -1
  56. package/dist/col/index.css +1 -1
  57. package/dist/col/index.js +2 -2
  58. package/dist/col/index.wxml +1 -1
  59. package/dist/col/index.wxss +1 -1
  60. package/dist/collapse/index.js +2 -2
  61. package/dist/collapse/index.wxml +1 -1
  62. package/dist/collapse-item/animate.js +1 -1
  63. package/dist/collapse-item/index.css +1 -1
  64. package/dist/collapse-item/index.js +2 -2
  65. package/dist/collapse-item/index.json +1 -1
  66. package/dist/collapse-item/index.wxml +7 -7
  67. package/dist/collapse-item/index.wxss +1 -1
  68. package/dist/common/component.d.ts +3 -3
  69. package/dist/common/component.js +5 -5
  70. package/dist/common/index.css +1 -1
  71. package/dist/common/index.wxss +1 -1
  72. package/dist/common/style/clearfix.css +1 -1
  73. package/dist/common/style/clearfix.wxss +1 -1
  74. package/dist/common/style/ellipsis.css +1 -1
  75. package/dist/common/style/ellipsis.wxss +1 -1
  76. package/dist/common/style/hairline.css +1 -1
  77. package/dist/common/style/hairline.wxss +1 -1
  78. package/dist/config-provider/index.js +2 -2
  79. package/dist/config-provider/index.wxml +1 -1
  80. package/dist/count-down/index.css +1 -1
  81. package/dist/count-down/index.js +2 -2
  82. package/dist/count-down/index.wxml +1 -1
  83. package/dist/count-down/index.wxss +1 -1
  84. package/dist/custom-keyboard/index.js +2 -2
  85. package/dist/custom-keyboard/index.json +4 -4
  86. package/dist/custom-keyboard/index.wxml +2 -2
  87. package/dist/datetime-picker/index.js +3 -3
  88. package/dist/datetime-picker/index.json +1 -1
  89. package/dist/datetime-picker/index.wxml +2 -2
  90. package/dist/definitions/index.d.ts +4 -3
  91. package/dist/dialog/index.css +1 -1
  92. package/dist/dialog/index.js +2 -2
  93. package/dist/dialog/index.json +5 -5
  94. package/dist/dialog/index.wxml +25 -25
  95. package/dist/dialog/index.wxss +1 -1
  96. package/dist/divider/index.css +1 -1
  97. package/dist/divider/index.js +2 -2
  98. package/dist/divider/index.wxss +1 -1
  99. package/dist/dropdown-item/index.css +1 -1
  100. package/dist/dropdown-item/index.js +2 -2
  101. package/dist/dropdown-item/index.json +3 -3
  102. package/dist/dropdown-item/index.wxml +7 -7
  103. package/dist/dropdown-item/index.wxss +1 -1
  104. package/dist/dropdown-menu/index.css +1 -1
  105. package/dist/dropdown-menu/index.js +3 -3
  106. package/dist/dropdown-menu/index.wxml +2 -2
  107. package/dist/dropdown-menu/index.wxss +1 -1
  108. package/dist/empty/index.css +1 -1
  109. package/dist/empty/index.js +2 -2
  110. package/dist/empty/index.wxml +7 -7
  111. package/dist/empty/index.wxs +7 -6
  112. package/dist/empty/index.wxss +1 -1
  113. package/dist/field/index.css +1 -1
  114. package/dist/field/index.js +15 -3
  115. package/dist/field/index.json +2 -2
  116. package/dist/field/index.wxml +10 -10
  117. package/dist/field/index.wxss +1 -1
  118. package/dist/field/props.js +1 -9
  119. package/dist/goods-action/index.css +1 -1
  120. package/dist/goods-action/index.js +2 -2
  121. package/dist/goods-action/index.wxss +1 -1
  122. package/dist/goods-action-button/index.css +1 -1
  123. package/dist/goods-action-button/index.js +2 -2
  124. package/dist/goods-action-button/index.json +1 -1
  125. package/dist/goods-action-button/index.wxml +3 -3
  126. package/dist/goods-action-button/index.wxss +1 -1
  127. package/dist/goods-action-icon/index.css +1 -1
  128. package/dist/goods-action-icon/index.js +3 -3
  129. package/dist/goods-action-icon/index.json +2 -2
  130. package/dist/goods-action-icon/index.wxml +5 -5
  131. package/dist/goods-action-icon/index.wxss +1 -1
  132. package/dist/grid/index.css +1 -1
  133. package/dist/grid/index.js +2 -2
  134. package/dist/grid/index.wxml +1 -1
  135. package/dist/grid/index.wxss +1 -1
  136. package/dist/grid-item/index.css +1 -1
  137. package/dist/grid-item/index.js +3 -3
  138. package/dist/grid-item/index.json +1 -1
  139. package/dist/grid-item/index.wxml +4 -4
  140. package/dist/grid-item/index.wxss +1 -1
  141. package/dist/icon/index.css +1 -1
  142. package/dist/icon/index.js +3 -3
  143. package/dist/icon/index.json +1 -1
  144. package/dist/icon/index.wxml +4 -4
  145. package/dist/icon/index.wxs +6 -7
  146. package/dist/icon/index.wxss +1 -1
  147. package/dist/image/index.css +1 -1
  148. package/dist/image/index.js +2 -2
  149. package/dist/image/index.json +2 -2
  150. package/dist/image/index.wxml +5 -5
  151. package/dist/image/index.wxss +1 -1
  152. package/dist/index-anchor/index.css +1 -1
  153. package/dist/index-anchor/index.js +3 -3
  154. package/dist/index-anchor/index.wxml +2 -2
  155. package/dist/index-anchor/index.wxss +1 -1
  156. package/dist/index-bar/index.css +1 -1
  157. package/dist/index-bar/index.js +6 -6
  158. package/dist/index-bar/index.wxml +3 -3
  159. package/dist/index-bar/index.wxss +1 -1
  160. package/dist/info/index.css +1 -1
  161. package/dist/info/index.js +2 -2
  162. package/dist/info/index.wxml +1 -1
  163. package/dist/info/index.wxss +1 -1
  164. package/dist/loading/index.css +1 -1
  165. package/dist/loading/index.js +2 -2
  166. package/dist/loading/index.wxml +3 -3
  167. package/dist/loading/index.wxss +1 -1
  168. package/dist/mixins/basic.js +15 -0
  169. package/dist/mixins/page-scroll.js +10 -10
  170. package/dist/mixins/transition.js +4 -4
  171. package/dist/nav-bar/index.css +1 -1
  172. package/dist/nav-bar/index.js +4 -4
  173. package/dist/nav-bar/index.json +1 -1
  174. package/dist/nav-bar/index.wxml +11 -11
  175. package/dist/nav-bar/index.wxss +1 -1
  176. package/dist/normal-slider/index.js +2 -2
  177. package/dist/notice-bar/index.css +1 -1
  178. package/dist/notice-bar/index.js +4 -4
  179. package/dist/notice-bar/index.json +1 -1
  180. package/dist/notice-bar/index.wxml +7 -7
  181. package/dist/notice-bar/index.wxss +1 -1
  182. package/dist/notify/index.css +1 -1
  183. package/dist/notify/index.js +2 -2
  184. package/dist/notify/index.json +1 -1
  185. package/dist/notify/index.wxml +4 -4
  186. package/dist/notify/index.wxss +1 -1
  187. package/dist/notify/notify.js +2 -2
  188. package/dist/overlay/index.css +1 -1
  189. package/dist/overlay/index.js +2 -2
  190. package/dist/overlay/index.json +1 -1
  191. package/dist/overlay/index.wxss +1 -1
  192. package/dist/overlay/overlay.wxml +3 -3
  193. package/dist/picker/index.css +1 -1
  194. package/dist/picker/index.js +3 -3
  195. package/dist/picker/index.wxml +5 -5
  196. package/dist/picker/index.wxss +1 -1
  197. package/dist/picker/toolbar.wxml +6 -6
  198. package/dist/picker-column/index.css +1 -1
  199. package/dist/picker-column/index.js +2 -2
  200. package/dist/picker-column/index.wxml +6 -6
  201. package/dist/picker-column/index.wxss +1 -1
  202. package/dist/popup/index.css +1 -1
  203. package/dist/popup/index.js +2 -2
  204. package/dist/popup/index.json +2 -2
  205. package/dist/popup/index.wxml +1 -1
  206. package/dist/popup/index.wxss +1 -1
  207. package/dist/popup/popup.wxml +2 -2
  208. package/dist/progress/index.css +1 -1
  209. package/dist/progress/index.js +4 -4
  210. package/dist/progress/index.wxml +3 -3
  211. package/dist/progress/index.wxss +1 -1
  212. package/dist/radio/index.css +1 -1
  213. package/dist/radio/index.js +2 -2
  214. package/dist/radio/index.json +1 -1
  215. package/dist/radio/index.wxml +2 -2
  216. package/dist/radio/index.wxss +1 -1
  217. package/dist/radio-group/index.css +1 -1
  218. package/dist/radio-group/index.js +2 -2
  219. package/dist/radio-group/index.wxss +1 -1
  220. package/dist/rate/index.css +1 -1
  221. package/dist/rate/index.js +7 -7
  222. package/dist/rate/index.json +1 -1
  223. package/dist/rate/index.wxml +2 -2
  224. package/dist/rate/index.wxss +1 -1
  225. package/dist/row/index.css +1 -1
  226. package/dist/row/index.js +2 -2
  227. package/dist/row/index.wxml +1 -1
  228. package/dist/row/index.wxss +1 -1
  229. package/dist/search/index.css +1 -1
  230. package/dist/search/index.js +2 -2
  231. package/dist/search/index.json +1 -1
  232. package/dist/search/index.wxml +7 -7
  233. package/dist/search/index.wxss +1 -1
  234. package/dist/sidebar/index.css +1 -1
  235. package/dist/sidebar/index.js +2 -2
  236. package/dist/sidebar/index.wxml +1 -1
  237. package/dist/sidebar/index.wxss +1 -1
  238. package/dist/sidebar-item/index.css +1 -1
  239. package/dist/sidebar-item/index.js +2 -2
  240. package/dist/sidebar-item/index.json +1 -1
  241. package/dist/sidebar-item/index.wxml +3 -3
  242. package/dist/sidebar-item/index.wxss +1 -1
  243. package/dist/skeleton/index.css +1 -1
  244. package/dist/skeleton/index.js +2 -2
  245. package/dist/skeleton/index.wxss +1 -1
  246. package/dist/slider/index.css +1 -1
  247. package/dist/slider/index.js +4 -4
  248. package/dist/slider/index.wxss +1 -1
  249. package/dist/stepper/index.css +1 -1
  250. package/dist/stepper/index.js +2 -2
  251. package/dist/stepper/index.wxml +4 -4
  252. package/dist/stepper/index.wxss +1 -1
  253. package/dist/steps/index.css +1 -1
  254. package/dist/steps/index.js +2 -2
  255. package/dist/steps/index.json +1 -1
  256. package/dist/steps/index.wxml +9 -9
  257. package/dist/steps/index.wxss +1 -1
  258. package/dist/sticky/index.css +1 -1
  259. package/dist/sticky/index.js +3 -3
  260. package/dist/sticky/index.wxml +1 -1
  261. package/dist/sticky/index.wxss +1 -1
  262. package/dist/swipe-cell/index.css +1 -1
  263. package/dist/swipe-cell/index.js +2 -2
  264. package/dist/swipe-cell/index.wxml +3 -3
  265. package/dist/swipe-cell/index.wxss +1 -1
  266. package/dist/switch/index.css +1 -1
  267. package/dist/switch/index.js +2 -2
  268. package/dist/switch/index.json +1 -1
  269. package/dist/switch/index.wxml +3 -3
  270. package/dist/switch/index.wxss +1 -1
  271. package/dist/tab/index.css +1 -1
  272. package/dist/tab/index.js +2 -2
  273. package/dist/tab/index.wxss +1 -1
  274. package/dist/tabbar/index.css +1 -1
  275. package/dist/tabbar/index.js +3 -3
  276. package/dist/tabbar/index.wxss +1 -1
  277. package/dist/tabbar-item/index.css +1 -1
  278. package/dist/tabbar-item/index.js +3 -3
  279. package/dist/tabbar-item/index.json +2 -2
  280. package/dist/tabbar-item/index.wxml +6 -6
  281. package/dist/tabbar-item/index.wxss +1 -1
  282. package/dist/tabs/index.css +1 -1
  283. package/dist/tabs/index.js +7 -7
  284. package/dist/tabs/index.json +2 -2
  285. package/dist/tabs/index.wxml +9 -9
  286. package/dist/tabs/index.wxs +1 -1
  287. package/dist/tabs/index.wxss +1 -1
  288. package/dist/tag/index.css +1 -1
  289. package/dist/tag/index.js +2 -2
  290. package/dist/tag/index.json +1 -1
  291. package/dist/tag/index.wxml +2 -2
  292. package/dist/tag/index.wxss +1 -1
  293. package/dist/toast/index.css +1 -1
  294. package/dist/toast/index.js +2 -2
  295. package/dist/toast/index.json +4 -4
  296. package/dist/toast/index.wxml +9 -9
  297. package/dist/toast/index.wxss +1 -1
  298. package/dist/toast/toast.js +2 -2
  299. package/dist/transition/index.css +1 -1
  300. package/dist/transition/index.js +2 -2
  301. package/dist/transition/index.wxml +1 -1
  302. package/dist/transition/index.wxss +1 -1
  303. package/dist/tree-select/index.css +1 -1
  304. package/dist/tree-select/index.js +4 -4
  305. package/dist/tree-select/index.json +3 -3
  306. package/dist/tree-select/index.wxml +9 -9
  307. package/dist/tree-select/index.wxss +1 -1
  308. package/dist/wxs/bem.wxs +1 -1
  309. package/lib/action-sheet/index.css +1 -1
  310. package/lib/action-sheet/index.js +1 -1
  311. package/lib/action-sheet/index.json +3 -3
  312. package/lib/action-sheet/index.wxml +15 -15
  313. package/lib/action-sheet/index.wxss +1 -1
  314. package/lib/area/index.js +2 -2
  315. package/lib/area/index.json +1 -1
  316. package/lib/area/index.wxml +2 -2
  317. package/lib/battery/index.js +1 -1
  318. package/lib/button/index.css +1 -1
  319. package/lib/button/index.js +2 -2
  320. package/lib/button/index.json +2 -2
  321. package/lib/button/index.wxml +9 -9
  322. package/lib/button/index.wxss +1 -1
  323. package/lib/calendar/calendar.wxml +5 -5
  324. package/lib/calendar/components/header/index.css +1 -1
  325. package/lib/calendar/components/header/index.js +1 -1
  326. package/lib/calendar/components/header/index.wxml +6 -6
  327. package/lib/calendar/components/header/index.wxss +1 -1
  328. package/lib/calendar/components/month/index.css +1 -1
  329. package/lib/calendar/components/month/index.js +1 -1
  330. package/lib/calendar/components/month/index.wxml +9 -9
  331. package/lib/calendar/components/month/index.wxss +1 -1
  332. package/lib/calendar/index.css +1 -1
  333. package/lib/calendar/index.js +2 -2
  334. package/lib/calendar/index.json +3 -3
  335. package/lib/calendar/index.wxml +5 -5
  336. package/lib/calendar/index.wxss +1 -1
  337. package/lib/cascader/index.css +1 -1
  338. package/lib/cascader/index.js +2 -1
  339. package/lib/cascader/index.json +3 -3
  340. package/lib/cascader/index.wxml +13 -13
  341. package/lib/cascader/index.wxss +1 -1
  342. package/lib/cell/index.css +1 -1
  343. package/lib/cell/index.js +1 -1
  344. package/lib/cell/index.json +1 -1
  345. package/lib/cell/index.wxml +10 -10
  346. package/lib/cell/index.wxss +1 -1
  347. package/lib/cell-group/index.css +1 -1
  348. package/lib/cell-group/index.js +1 -1
  349. package/lib/cell-group/index.wxml +1 -1
  350. package/lib/cell-group/index.wxss +1 -1
  351. package/lib/checkbox/index.css +1 -1
  352. package/lib/checkbox/index.js +1 -1
  353. package/lib/checkbox/index.json +1 -1
  354. package/lib/checkbox/index.wxml +2 -2
  355. package/lib/checkbox/index.wxss +1 -1
  356. package/lib/checkbox-group/index.css +1 -1
  357. package/lib/checkbox-group/index.js +1 -1
  358. package/lib/checkbox-group/index.wxss +1 -1
  359. package/lib/circle/index.css +1 -1
  360. package/lib/circle/index.js +1 -1
  361. package/lib/circle/index.wxml +6 -6
  362. package/lib/circle/index.wxss +1 -1
  363. package/lib/col/index.css +1 -1
  364. package/lib/col/index.js +1 -1
  365. package/lib/col/index.wxml +1 -1
  366. package/lib/col/index.wxss +1 -1
  367. package/lib/collapse/index.js +1 -1
  368. package/lib/collapse/index.wxml +1 -1
  369. package/lib/collapse-item/animate.js +1 -1
  370. package/lib/collapse-item/index.css +1 -1
  371. package/lib/collapse-item/index.js +1 -1
  372. package/lib/collapse-item/index.json +1 -1
  373. package/lib/collapse-item/index.wxml +7 -7
  374. package/lib/collapse-item/index.wxss +1 -1
  375. package/lib/common/component.d.ts +3 -3
  376. package/lib/common/component.js +6 -6
  377. package/lib/common/index.css +1 -1
  378. package/lib/common/index.wxss +1 -1
  379. package/lib/common/style/clearfix.css +1 -1
  380. package/lib/common/style/clearfix.wxss +1 -1
  381. package/lib/common/style/ellipsis.css +1 -1
  382. package/lib/common/style/ellipsis.wxss +1 -1
  383. package/lib/common/style/hairline.css +1 -1
  384. package/lib/common/style/hairline.wxss +1 -1
  385. package/lib/config-provider/index.js +1 -1
  386. package/lib/config-provider/index.wxml +1 -1
  387. package/lib/count-down/index.css +1 -1
  388. package/lib/count-down/index.js +1 -1
  389. package/lib/count-down/index.wxml +1 -1
  390. package/lib/count-down/index.wxss +1 -1
  391. package/lib/custom-keyboard/index.js +1 -1
  392. package/lib/custom-keyboard/index.json +4 -4
  393. package/lib/custom-keyboard/index.wxml +2 -2
  394. package/lib/datetime-picker/index.js +2 -2
  395. package/lib/datetime-picker/index.json +1 -1
  396. package/lib/datetime-picker/index.wxml +2 -2
  397. package/lib/definitions/index.d.ts +4 -3
  398. package/lib/dialog/index.css +1 -1
  399. package/lib/dialog/index.js +1 -1
  400. package/lib/dialog/index.json +5 -5
  401. package/lib/dialog/index.wxml +25 -25
  402. package/lib/dialog/index.wxss +1 -1
  403. package/lib/divider/index.css +1 -1
  404. package/lib/divider/index.js +1 -1
  405. package/lib/divider/index.wxss +1 -1
  406. package/lib/dropdown-item/index.css +1 -1
  407. package/lib/dropdown-item/index.js +1 -1
  408. package/lib/dropdown-item/index.json +3 -3
  409. package/lib/dropdown-item/index.wxml +7 -7
  410. package/lib/dropdown-item/index.wxss +1 -1
  411. package/lib/dropdown-menu/index.css +1 -1
  412. package/lib/dropdown-menu/index.js +2 -2
  413. package/lib/dropdown-menu/index.wxml +2 -2
  414. package/lib/dropdown-menu/index.wxss +1 -1
  415. package/lib/empty/index.css +1 -1
  416. package/lib/empty/index.js +1 -1
  417. package/lib/empty/index.wxml +7 -7
  418. package/lib/empty/index.wxs +7 -6
  419. package/lib/empty/index.wxss +1 -1
  420. package/lib/field/index.css +1 -1
  421. package/lib/field/index.js +14 -2
  422. package/lib/field/index.json +2 -2
  423. package/lib/field/index.wxml +10 -10
  424. package/lib/field/index.wxss +1 -1
  425. package/lib/field/props.js +1 -9
  426. package/lib/goods-action/index.css +1 -1
  427. package/lib/goods-action/index.js +1 -1
  428. package/lib/goods-action/index.wxss +1 -1
  429. package/lib/goods-action-button/index.css +1 -1
  430. package/lib/goods-action-button/index.js +1 -1
  431. package/lib/goods-action-button/index.json +1 -1
  432. package/lib/goods-action-button/index.wxml +3 -3
  433. package/lib/goods-action-button/index.wxss +1 -1
  434. package/lib/goods-action-icon/index.css +1 -1
  435. package/lib/goods-action-icon/index.js +2 -2
  436. package/lib/goods-action-icon/index.json +2 -2
  437. package/lib/goods-action-icon/index.wxml +5 -5
  438. package/lib/goods-action-icon/index.wxss +1 -1
  439. package/lib/grid/index.css +1 -1
  440. package/lib/grid/index.js +1 -1
  441. package/lib/grid/index.wxml +1 -1
  442. package/lib/grid/index.wxss +1 -1
  443. package/lib/grid-item/index.css +1 -1
  444. package/lib/grid-item/index.js +2 -2
  445. package/lib/grid-item/index.json +1 -1
  446. package/lib/grid-item/index.wxml +4 -4
  447. package/lib/grid-item/index.wxss +1 -1
  448. package/lib/icon/index.css +1 -1
  449. package/lib/icon/index.js +2 -2
  450. package/lib/icon/index.json +1 -1
  451. package/lib/icon/index.wxml +4 -4
  452. package/lib/icon/index.wxs +6 -7
  453. package/lib/icon/index.wxss +1 -1
  454. package/lib/image/index.css +1 -1
  455. package/lib/image/index.js +1 -1
  456. package/lib/image/index.json +2 -2
  457. package/lib/image/index.wxml +5 -5
  458. package/lib/image/index.wxss +1 -1
  459. package/lib/index-anchor/index.css +1 -1
  460. package/lib/index-anchor/index.js +2 -2
  461. package/lib/index-anchor/index.wxml +2 -2
  462. package/lib/index-anchor/index.wxss +1 -1
  463. package/lib/index-bar/index.css +1 -1
  464. package/lib/index-bar/index.js +5 -5
  465. package/lib/index-bar/index.wxml +3 -3
  466. package/lib/index-bar/index.wxss +1 -1
  467. package/lib/info/index.css +1 -1
  468. package/lib/info/index.js +1 -1
  469. package/lib/info/index.wxml +1 -1
  470. package/lib/info/index.wxss +1 -1
  471. package/lib/loading/index.css +1 -1
  472. package/lib/loading/index.js +1 -1
  473. package/lib/loading/index.wxml +3 -3
  474. package/lib/loading/index.wxss +1 -1
  475. package/lib/mixins/basic.js +16 -0
  476. package/lib/mixins/page-scroll.js +10 -10
  477. package/lib/mixins/transition.js +4 -4
  478. package/lib/nav-bar/index.css +1 -1
  479. package/lib/nav-bar/index.js +3 -3
  480. package/lib/nav-bar/index.json +1 -1
  481. package/lib/nav-bar/index.wxml +11 -11
  482. package/lib/nav-bar/index.wxss +1 -1
  483. package/lib/normal-slider/index.js +1 -1
  484. package/lib/notice-bar/index.css +1 -1
  485. package/lib/notice-bar/index.js +3 -3
  486. package/lib/notice-bar/index.json +1 -1
  487. package/lib/notice-bar/index.wxml +7 -7
  488. package/lib/notice-bar/index.wxss +1 -1
  489. package/lib/notify/index.css +1 -1
  490. package/lib/notify/index.js +1 -1
  491. package/lib/notify/index.json +1 -1
  492. package/lib/notify/index.wxml +4 -4
  493. package/lib/notify/index.wxss +1 -1
  494. package/lib/notify/notify.js +2 -2
  495. package/lib/overlay/index.css +1 -1
  496. package/lib/overlay/index.js +1 -1
  497. package/lib/overlay/index.json +1 -1
  498. package/lib/overlay/index.wxss +1 -1
  499. package/lib/overlay/overlay.wxml +3 -3
  500. package/lib/picker/index.css +1 -1
  501. package/lib/picker/index.js +2 -2
  502. package/lib/picker/index.wxml +5 -5
  503. package/lib/picker/index.wxss +1 -1
  504. package/lib/picker/toolbar.wxml +6 -6
  505. package/lib/picker-column/index.css +1 -1
  506. package/lib/picker-column/index.js +1 -1
  507. package/lib/picker-column/index.wxml +6 -6
  508. package/lib/picker-column/index.wxss +1 -1
  509. package/lib/popup/index.css +1 -1
  510. package/lib/popup/index.js +1 -1
  511. package/lib/popup/index.json +2 -2
  512. package/lib/popup/index.wxml +1 -1
  513. package/lib/popup/index.wxss +1 -1
  514. package/lib/popup/popup.wxml +2 -2
  515. package/lib/progress/index.css +1 -1
  516. package/lib/progress/index.js +3 -3
  517. package/lib/progress/index.wxml +3 -3
  518. package/lib/progress/index.wxss +1 -1
  519. package/lib/radio/index.css +1 -1
  520. package/lib/radio/index.js +1 -1
  521. package/lib/radio/index.json +1 -1
  522. package/lib/radio/index.wxml +2 -2
  523. package/lib/radio/index.wxss +1 -1
  524. package/lib/radio-group/index.css +1 -1
  525. package/lib/radio-group/index.js +1 -1
  526. package/lib/radio-group/index.wxss +1 -1
  527. package/lib/rate/index.css +1 -1
  528. package/lib/rate/index.js +6 -6
  529. package/lib/rate/index.json +1 -1
  530. package/lib/rate/index.wxml +2 -2
  531. package/lib/rate/index.wxss +1 -1
  532. package/lib/row/index.css +1 -1
  533. package/lib/row/index.js +1 -1
  534. package/lib/row/index.wxml +1 -1
  535. package/lib/row/index.wxss +1 -1
  536. package/lib/search/index.css +1 -1
  537. package/lib/search/index.js +1 -1
  538. package/lib/search/index.json +1 -1
  539. package/lib/search/index.wxml +7 -7
  540. package/lib/search/index.wxss +1 -1
  541. package/lib/sidebar/index.css +1 -1
  542. package/lib/sidebar/index.js +1 -1
  543. package/lib/sidebar/index.wxml +1 -1
  544. package/lib/sidebar/index.wxss +1 -1
  545. package/lib/sidebar-item/index.css +1 -1
  546. package/lib/sidebar-item/index.js +1 -1
  547. package/lib/sidebar-item/index.json +1 -1
  548. package/lib/sidebar-item/index.wxml +3 -3
  549. package/lib/sidebar-item/index.wxss +1 -1
  550. package/lib/skeleton/index.css +1 -1
  551. package/lib/skeleton/index.js +1 -1
  552. package/lib/skeleton/index.wxss +1 -1
  553. package/lib/slider/index.css +1 -1
  554. package/lib/slider/index.js +3 -3
  555. package/lib/slider/index.wxss +1 -1
  556. package/lib/stepper/index.css +1 -1
  557. package/lib/stepper/index.js +1 -1
  558. package/lib/stepper/index.wxml +4 -4
  559. package/lib/stepper/index.wxss +1 -1
  560. package/lib/steps/index.css +1 -1
  561. package/lib/steps/index.js +1 -1
  562. package/lib/steps/index.json +1 -1
  563. package/lib/steps/index.wxml +9 -9
  564. package/lib/steps/index.wxss +1 -1
  565. package/lib/sticky/index.css +1 -1
  566. package/lib/sticky/index.js +2 -2
  567. package/lib/sticky/index.wxml +1 -1
  568. package/lib/sticky/index.wxss +1 -1
  569. package/lib/swipe-cell/index.css +1 -1
  570. package/lib/swipe-cell/index.js +1 -1
  571. package/lib/swipe-cell/index.wxml +3 -3
  572. package/lib/swipe-cell/index.wxss +1 -1
  573. package/lib/switch/index.css +1 -1
  574. package/lib/switch/index.js +1 -1
  575. package/lib/switch/index.json +1 -1
  576. package/lib/switch/index.wxml +3 -3
  577. package/lib/switch/index.wxss +1 -1
  578. package/lib/tab/index.css +1 -1
  579. package/lib/tab/index.js +1 -1
  580. package/lib/tab/index.wxss +1 -1
  581. package/lib/tabbar/index.css +1 -1
  582. package/lib/tabbar/index.js +2 -2
  583. package/lib/tabbar/index.wxss +1 -1
  584. package/lib/tabbar-item/index.css +1 -1
  585. package/lib/tabbar-item/index.js +2 -2
  586. package/lib/tabbar-item/index.json +2 -2
  587. package/lib/tabbar-item/index.wxml +6 -6
  588. package/lib/tabbar-item/index.wxss +1 -1
  589. package/lib/tabs/index.css +1 -1
  590. package/lib/tabs/index.js +6 -6
  591. package/lib/tabs/index.json +2 -2
  592. package/lib/tabs/index.wxml +9 -9
  593. package/lib/tabs/index.wxs +1 -1
  594. package/lib/tabs/index.wxss +1 -1
  595. package/lib/tag/index.css +1 -1
  596. package/lib/tag/index.js +2 -2
  597. package/lib/tag/index.json +1 -1
  598. package/lib/tag/index.wxml +2 -2
  599. package/lib/tag/index.wxss +1 -1
  600. package/lib/toast/index.css +1 -1
  601. package/lib/toast/index.js +2 -2
  602. package/lib/toast/index.json +4 -4
  603. package/lib/toast/index.wxml +9 -9
  604. package/lib/toast/index.wxss +1 -1
  605. package/lib/toast/toast.js +2 -2
  606. package/lib/transition/index.css +1 -1
  607. package/lib/transition/index.js +1 -1
  608. package/lib/transition/index.wxml +1 -1
  609. package/lib/transition/index.wxss +1 -1
  610. package/lib/tree-select/index.css +1 -1
  611. package/lib/tree-select/index.js +2 -2
  612. package/lib/tree-select/index.json +3 -3
  613. package/lib/tree-select/index.wxml +9 -9
  614. package/lib/tree-select/index.wxss +1 -1
  615. package/lib/wxs/bem.wxs +1 -1
  616. package/package.json +3 -4
package/lib/icon/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  var component_1 = require("../common/component");
4
- (0, component_1.VantComponent)({
4
+ (0, component_1.SmartComponent)({
5
5
  classes: ['info-class'],
6
6
  props: {
7
7
  dot: Boolean,
@@ -11,7 +11,7 @@ var component_1 = require("../common/component");
11
11
  customStyle: String,
12
12
  classPrefix: {
13
13
  type: String,
14
- value: 'van-icon',
14
+ value: 'smart-icon',
15
15
  },
16
16
  name: String,
17
17
  },
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "component": true,
3
3
  "usingComponents": {
4
- "van-info": "../info/index"
4
+ "smart-info": "../info/index"
5
5
  }
6
6
  }
@@ -5,21 +5,21 @@
5
5
  style="{{ computed.rootStyle({ customStyle, color, size }) }}"
6
6
  bindtap="onClick"
7
7
  >
8
- <van-info
8
+ <smart-info
9
9
  wx:if="{{ info !== null || dot }}"
10
10
  dot="{{ dot }}"
11
11
  info="{{ info }}"
12
- custom-class="van-icon__info info-class"
12
+ custom-class="smart-icon__info info-class"
13
13
  />
14
14
  <view
15
15
  wx:if="{{ computed.isSvg(name) }}"
16
16
  style="{{ computed.svgStyle({ customStyle, name, color }) }}"
17
- class="van-icon__svg"
17
+ class="smart-icon__svg"
18
18
  />
19
19
  <image
20
20
  wx:elif="{{ computed.isImage(name) }}"
21
21
  src="{{ computed.getImageSrc({ name, color }) }}"
22
22
  mode="aspectFit"
23
- class="van-icon__image"
23
+ class="smart-icon__image"
24
24
  />
25
25
  </view>
@@ -13,8 +13,8 @@ function isSvg(name) {
13
13
  function rootClass(data) {
14
14
  var classes = ['custom-class'];
15
15
 
16
- if (data.classPrefix !== 'van-icon') {
17
- classes.push('van-icon--custom')
16
+ if (data.classPrefix !== 'smart-icon') {
17
+ classes.push('smart-icon--custom')
18
18
  }
19
19
 
20
20
  if (data.classPrefix != null) {
@@ -22,8 +22,8 @@ function rootClass(data) {
22
22
  }
23
23
 
24
24
  if (isImage(data.name)) {
25
- classes.push('van-icon--image');
26
- if (isSvg(data.name)) classes.push('van-icon--svg');
25
+ classes.push('smart-icon--image');
26
+ if (isSvg(data.name)) classes.push('smart-icon--svg');
27
27
  } else if (data.classPrefix != null) {
28
28
  classes.push(data.classPrefix + '-' + data.name);
29
29
  }
@@ -49,9 +49,8 @@ function getImageSrc(data) {
49
49
  }
50
50
 
51
51
  function svgStyle(data) {
52
- const imageBase64Src = `url(${getImageSrc(data)})`;
53
- // console.log('imageBase64Src', imageBase64Src)
54
- const ret = style([
52
+ var imageBase64Src = 'url(' + getImageSrc(data) + ')';
53
+ var ret = style([
55
54
  {
56
55
  '-webkit-mask-image': imageBase64Src,
57
56
  '-webkit-mask-size': 'contain',
@@ -1 +1 @@
1
- @import '../common/index.wxss';:host{align-items:center;display:inline-flex;justify-content:center}.van-icon{text-rendering:auto;-webkit-font-smoothing:antialiased;font:normal normal normal 14px/1 vant-icon;font:normal normal normal 14px/1 var(--van-icon-font-family,"vant-icon");font-size:inherit;position:relative}.van-icon,.van-icon:before{display:inline-block}.van-icon--custom{position:relative}.van-icon--image{height:1em;width:1em}.van-icon__image,.van-icon__svg{height:100%;width:100%}.van-icon__svg{background:var(--icon-color,var(--app-B4-N2,rgba(0,0,0,.7)))}.van-icon__info{z-index:1}
1
+ @import '../common/index.wxss';:host{align-items:center;display:inline-flex;justify-content:center}.smart-icon{text-rendering:auto;-webkit-font-smoothing:antialiased;font:normal normal normal 14px/1 var(--smart-icon-font-family,"smart-icon");font-size:inherit;position:relative}.smart-icon,.smart-icon:before{display:inline-block}.smart-icon--custom{position:relative}.smart-icon--image{height:1em;width:1em}.smart-icon__image,.smart-icon__svg{height:100%;width:100%}.smart-icon__svg{background:var(--icon-color,var(--app-B4-N2,rgba(0,0,0,.7)))}.smart-icon__info{z-index:1}
@@ -1 +1 @@
1
- @import '../common/index.css';.van-image{display:inline-block;position:relative}.van-image--round{border-radius:50%;overflow:hidden}.van-image--round .van-image__img{border-radius:inherit}.van-image__error,.van-image__img,.van-image__loading{display:block;height:100%;width:100%}.van-image__error,.van-image__loading{align-items:center;background-color:var(--image-placeholder-background-color,#f7f8fa);color:var(--image-placeholder-text-color,#969799);display:flex;flex-direction:column;font-size:var(--image-placeholder-font-size,14px);justify-content:center;left:0;position:absolute;top:0}.van-image__loading-icon{color:var(--image-loading-icon-color,#dcdee0);font-size:var(--image-loading-icon-size,32px)!important}.van-image__error-icon{color:var(--image-error-icon-color,#dcdee0);font-size:var(--image-error-icon-size,32px)!important}
1
+ @import '../common/index.css';.smart-image{display:inline-block;position:relative}.smart-image--round{border-radius:50%;overflow:hidden}.smart-image--round .smart-image__img{border-radius:inherit}.smart-image__error,.smart-image__img,.smart-image__loading{display:block;height:100%;width:100%}.smart-image__error,.smart-image__loading{align-items:center;background-color:var(--image-placeholder-background-color,#f7f8fa);color:var(--image-placeholder-text-color,#969799);display:flex;flex-direction:column;font-size:var(--image-placeholder-font-size,14px);justify-content:center;left:0;position:absolute;top:0}.smart-image__loading-icon{color:var(--image-loading-icon-color,#dcdee0);font-size:var(--image-loading-icon-size,32px)!important}.smart-image__error-icon{color:var(--image-error-icon-color,#dcdee0);font-size:var(--image-error-icon-size,32px)!important}
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  var component_1 = require("../common/component");
4
4
  var button_1 = require("../mixins/button");
5
- (0, component_1.VantComponent)({
5
+ (0, component_1.SmartComponent)({
6
6
  mixins: [button_1.button],
7
7
  classes: ['custom-class', 'loading-class', 'error-class', 'image-class'],
8
8
  props: {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "component": true,
3
3
  "usingComponents": {
4
- "van-icon": "../icon/index",
5
- "van-loading": "../loading/index"
4
+ "smart-icon": "../icon/index",
5
+ "smart-loading": "../loading/index"
6
6
  }
7
7
  }
@@ -12,7 +12,7 @@
12
12
  mode="{{ computed.mode(fit) }}"
13
13
  lazy-load="{{ lazyLoad }}"
14
14
  webp="{{ webp }}"
15
- class="image-class van-image__img"
15
+ class="image-class smart-image__img"
16
16
  show-menu-by-longpress="{{ showMenuByLongpress }}"
17
17
  bind:load="onLoad"
18
18
  bind:error="onError"
@@ -20,16 +20,16 @@
20
20
 
21
21
  <view
22
22
  wx:if="{{ loading && showLoading }}"
23
- class="loading-class van-image__loading"
23
+ class="loading-class smart-image__loading"
24
24
  >
25
25
  <slot wx:if="{{ useLoadingSlot }}" name="loading" />
26
- <van-icon wx:else name="photo" custom-class="van-image__loading-icon" />
26
+ <smart-icon wx:else name="photo" custom-class="smart-image__loading-icon" />
27
27
  </view>
28
28
  <view
29
29
  wx:if="{{ error && showError }}"
30
- class="error-class van-image__error"
30
+ class="error-class smart-image__error"
31
31
  >
32
32
  <slot wx:if="{{ useErrorSlot }}" name="error" />
33
- <van-icon wx:else name="photo-fail" custom-class="van-image__error-icon" />
33
+ <smart-icon wx:else name="photo-fail" custom-class="smart-image__error-icon" />
34
34
  </view>
35
35
  </view>
@@ -1 +1 @@
1
- @import '../common/index.wxss';.van-image{display:inline-block;position:relative}.van-image--round{border-radius:50%;overflow:hidden}.van-image--round .van-image__img{border-radius:inherit}.van-image__error,.van-image__img,.van-image__loading{display:block;height:100%;width:100%}.van-image__error,.van-image__loading{align-items:center;background-color:var(--image-placeholder-background-color,#f7f8fa);color:var(--image-placeholder-text-color,#969799);display:flex;flex-direction:column;font-size:var(--image-placeholder-font-size,14px);justify-content:center;left:0;position:absolute;top:0}.van-image__loading-icon{color:var(--image-loading-icon-color,#dcdee0);font-size:var(--image-loading-icon-size,32px)!important}.van-image__error-icon{color:var(--image-error-icon-color,#dcdee0);font-size:var(--image-error-icon-size,32px)!important}
1
+ @import '../common/index.wxss';.smart-image{display:inline-block;position:relative}.smart-image--round{border-radius:50%;overflow:hidden}.smart-image--round .smart-image__img{border-radius:inherit}.smart-image__error,.smart-image__img,.smart-image__loading{display:block;height:100%;width:100%}.smart-image__error,.smart-image__loading{align-items:center;background-color:var(--image-placeholder-background-color,#f7f8fa);color:var(--image-placeholder-text-color,#969799);display:flex;flex-direction:column;font-size:var(--image-placeholder-font-size,14px);justify-content:center;left:0;position:absolute;top:0}.smart-image__loading-icon{color:var(--image-loading-icon-color,#dcdee0);font-size:var(--image-loading-icon-size,32px)!important}.smart-image__error-icon{color:var(--image-error-icon-color,#dcdee0);font-size:var(--image-error-icon-size,32px)!important}
@@ -1 +1 @@
1
- @import '../common/index.css';.van-index-anchor{background-color:var(--index-anchor-background-color,transparent);color:var(--index-anchor-text-color,var(--app-B6-N1,#000));font-size:var(--index-anchor-font-size,14px);font-weight:var(--index-anchor-font-weight,500);line-height:var(--index-anchor-line-height,32px);padding:var(--index-anchor-padding,0 16px)}.van-index-anchor--active{background-color:var(--index-anchor-active-background-color,var(--app-B3,#fff));color:var(--index-anchor-active-text-color,var(--app-M1,#3678e3));left:0;right:0}
1
+ @import '../common/index.css';.smart-index-anchor{background-color:var(--index-anchor-background-color,transparent);color:var(--index-anchor-text-color,var(--app-B6-N1,#000));font-size:var(--index-anchor-font-size,14px);font-weight:var(--index-anchor-font-weight,500);line-height:var(--index-anchor-line-height,32px);padding:var(--index-anchor-padding,0 16px)}.smart-index-anchor--active{background-color:var(--index-anchor-active-background-color,var(--app-B3,#fff));color:var(--index-anchor-active-text-color,var(--app-M1,#3678e3));left:0;right:0}
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  var utils_1 = require("../common/utils");
4
4
  var component_1 = require("../common/component");
5
5
  var relation_1 = require("../common/relation");
6
- (0, component_1.VantComponent)({
6
+ (0, component_1.SmartComponent)({
7
7
  relation: (0, relation_1.useParent)('index-bar'),
8
8
  props: {
9
9
  useSlot: Boolean,
@@ -17,7 +17,7 @@ var relation_1 = require("../common/relation");
17
17
  methods: {
18
18
  scrollIntoView: function (scrollTop) {
19
19
  var _this = this;
20
- (0, utils_1.getRect)(this, '.van-index-anchor-wrapper').then(function (rect) {
20
+ (0, utils_1.getRect)(this, '.smart-index-anchor-wrapper').then(function (rect) {
21
21
  wx.pageScrollTo({
22
22
  duration: 0,
23
23
  scrollTop: scrollTop + rect.top - _this.parent.data.stickyOffsetTop,
@@ -1,9 +1,9 @@
1
1
  <view
2
- class="van-index-anchor-wrapper"
2
+ class="smart-index-anchor-wrapper"
3
3
  style="{{ wrapperStyle }}"
4
4
  >
5
5
  <view
6
- class="van-index-anchor {{ active ? 'van-index-anchor--active van-hairline--bottom' : '' }}"
6
+ class="smart-index-anchor {{ active ? 'smart-index-anchor--active smart-hairline--bottom' : '' }}"
7
7
  style="{{ anchorStyle }}"
8
8
  >
9
9
  <slot wx:if="{{ useSlot }}"/>
@@ -1 +1 @@
1
- @import '../common/index.wxss';.van-index-anchor{background-color:var(--index-anchor-background-color,transparent);color:var(--index-anchor-text-color,var(--app-B6-N1,#000));font-size:var(--index-anchor-font-size,14px);font-weight:var(--index-anchor-font-weight,500);line-height:var(--index-anchor-line-height,32px);padding:var(--index-anchor-padding,0 16px)}.van-index-anchor--active{background-color:var(--index-anchor-active-background-color,var(--app-B3,#fff));color:var(--index-anchor-active-text-color,var(--app-M1,#3678e3));left:0;right:0}
1
+ @import '../common/index.wxss';.smart-index-anchor{background-color:var(--index-anchor-background-color,transparent);color:var(--index-anchor-text-color,var(--app-B6-N1,#000));font-size:var(--index-anchor-font-size,14px);font-weight:var(--index-anchor-font-weight,500);line-height:var(--index-anchor-line-height,32px);padding:var(--index-anchor-padding,0 16px)}.smart-index-anchor--active{background-color:var(--index-anchor-active-background-color,var(--app-B3,#fff));color:var(--index-anchor-active-text-color,var(--app-M1,#3678e3));left:0;right:0}
@@ -1 +1 @@
1
- @import '../common/index.css';.van-index-bar{position:relative}.van-index-bar__sidebar{display:flex;flex-direction:column;position:fixed;right:0;text-align:center;top:50%;transform:translateY(-50%);-webkit-user-select:none;user-select:none}.van-index-bar__index{font-size:var(--index-bar-index-font-size,10px);font-weight:500;line-height:var(--index-bar-index-line-height,14px);padding:0 var(--padding-base,4px) 0 var(--padding-md,16px)}
1
+ @import '../common/index.css';.smart-index-bar{position:relative}.smart-index-bar__sidebar{display:flex;flex-direction:column;position:fixed;right:0;text-align:center;top:50%;transform:translateY(-50%);-webkit-user-select:none;user-select:none}.smart-index-bar__index{font-size:var(--index-bar-index-font-size,10px);font-weight:500;line-height:var(--index-bar-index-line-height,14px);padding:0 var(--padding-base,4px) 0 var(--padding-md,16px)}
@@ -13,7 +13,7 @@ var indexList = function () {
13
13
  }
14
14
  return indexList;
15
15
  };
16
- (0, component_1.VantComponent)({
16
+ (0, component_1.SmartComponent)({
17
17
  relation: (0, relation_1.useChildren)('index-anchor', function () {
18
18
  this.updateData();
19
19
  }),
@@ -79,7 +79,7 @@ var indexList = function () {
79
79
  setAnchorsRect: function () {
80
80
  var _this = this;
81
81
  return Promise.all(this.children.map(function (anchor) {
82
- return (0, utils_1.getRect)(anchor, '.van-index-anchor-wrapper').then(function (rect) {
82
+ return (0, utils_1.getRect)(anchor, '.smart-index-anchor-wrapper').then(function (rect) {
83
83
  Object.assign(anchor, {
84
84
  height: rect.height,
85
85
  top: rect.top + _this.scrollTop,
@@ -89,7 +89,7 @@ var indexList = function () {
89
89
  },
90
90
  setListRect: function () {
91
91
  var _this = this;
92
- return (0, utils_1.getRect)(this, '.van-index-bar').then(function (rect) {
92
+ return (0, utils_1.getRect)(this, '.smart-index-bar').then(function (rect) {
93
93
  if (!(0, utils_1.isDef)(rect)) {
94
94
  return;
95
95
  }
@@ -101,7 +101,7 @@ var indexList = function () {
101
101
  },
102
102
  setSiderbarRect: function () {
103
103
  var _this = this;
104
- return (0, utils_1.getRect)(this, '.van-index-bar__sidebar').then(function (res) {
104
+ return (0, utils_1.getRect)(this, '.smart-index-bar__sidebar').then(function (res) {
105
105
  if (!(0, utils_1.isDef)(res)) {
106
106
  return;
107
107
  }
@@ -124,7 +124,7 @@ var indexList = function () {
124
124
  }
125
125
  },
126
126
  getAnchorRect: function (anchor) {
127
- return (0, utils_1.getRect)(anchor, '.van-index-anchor-wrapper').then(function (rect) { return ({
127
+ return (0, utils_1.getRect)(anchor, '.smart-index-anchor-wrapper').then(function (rect) { return ({
128
128
  height: rect.height,
129
129
  top: rect.top,
130
130
  }); });
@@ -1,9 +1,9 @@
1
- <view class="van-index-bar">
1
+ <view class="smart-index-bar">
2
2
  <slot />
3
3
 
4
4
  <view
5
5
  wx:if="{{ showSidebar }}"
6
- class="van-index-bar__sidebar"
6
+ class="smart-index-bar__sidebar"
7
7
  catch:tap="onClick"
8
8
  catch:touchmove="onTouchMove"
9
9
  catch:touchend="onTouchStop"
@@ -12,7 +12,7 @@
12
12
  <view
13
13
  wx:for="{{ indexList }}"
14
14
  wx:key="index"
15
- class="van-index-bar__index"
15
+ class="smart-index-bar__index"
16
16
  style="z-index: {{ zIndex + 1 }}; color: {{ activeAnchorIndex === index ? highlightColor : '' }}"
17
17
  data-index="{{ index }}"
18
18
  >
@@ -1 +1 @@
1
- @import '../common/index.wxss';.van-index-bar{position:relative}.van-index-bar__sidebar{display:flex;flex-direction:column;position:fixed;right:0;text-align:center;top:50%;transform:translateY(-50%);-webkit-user-select:none;user-select:none}.van-index-bar__index{font-size:var(--index-bar-index-font-size,10px);font-weight:500;line-height:var(--index-bar-index-line-height,14px);padding:0 var(--padding-base,4px) 0 var(--padding-md,16px)}
1
+ @import '../common/index.wxss';.smart-index-bar{position:relative}.smart-index-bar__sidebar{display:flex;flex-direction:column;position:fixed;right:0;text-align:center;top:50%;transform:translateY(-50%);-webkit-user-select:none;user-select:none}.smart-index-bar__index{font-size:var(--index-bar-index-font-size,10px);font-weight:500;line-height:var(--index-bar-index-line-height,14px);padding:0 var(--padding-base,4px) 0 var(--padding-md,16px)}
@@ -1 +1 @@
1
- @import '../common/index.css';.van-info{align-items:center;background-color:var(--info-background-color,var(--app-M2,#f04c4c));border:var(--info-border-width,0) solid #fff;border-radius:var(--info-size,12px);box-sizing:border-box;color:var(--info-color,#fff);display:inline-flex;font-family:var(--info-font-family,-apple-system-font,PingFang SC,Helvetica Neue,Arial,sans-serif);font-size:var(--info-font-size,11px);font-weight:var(--info-font-weight,600);height:var(--info-size,12px);justify-content:center;min-width:var(--info-size,12px);padding:var(--info-padding,0 4px);position:absolute;right:0;top:0;transform:translate(50%,-50%);transform-origin:100%;white-space:nowrap}.van-info--dot{background-color:var(--info-dot-color,var(--app-M2,#f04c4c));border-radius:100%;height:var(--info-dot-size,8px);min-width:0;width:var(--info-dot-size,8px)}
1
+ @import '../common/index.css';.smart-info{align-items:center;background-color:var(--info-background-color,var(--app-M2,#f04c4c));border:var(--info-border-width,0) solid #fff;border-radius:var(--info-size,12px);box-sizing:border-box;color:var(--info-color,#fff);display:inline-flex;font-family:var(--info-font-family,-apple-system-font,PingFang SC,Helvetica Neue,Arial,sans-serif);font-size:var(--info-font-size,11px);font-weight:var(--info-font-weight,600);height:var(--info-size,12px);justify-content:center;min-width:var(--info-size,12px);padding:var(--info-padding,0 4px);position:absolute;right:0;top:0;transform:translate(50%,-50%);transform-origin:100%;white-space:nowrap}.smart-info--dot{background-color:var(--info-dot-color,var(--app-M2,#f04c4c));border-radius:100%;height:var(--info-dot-size,8px);min-width:0;width:var(--info-dot-size,8px)}
package/lib/info/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  var component_1 = require("../common/component");
4
- (0, component_1.VantComponent)({
4
+ (0, component_1.SmartComponent)({
5
5
  props: {
6
6
  dot: Boolean,
7
7
  info: null,
@@ -2,6 +2,6 @@
2
2
 
3
3
  <view
4
4
  wx:if="{{ info !== null && info !== '' || dot }}"
5
- class="van-info {{ utils.bem('info', { dot }) }} custom-class"
5
+ class="smart-info {{ utils.bem('info', { dot }) }} custom-class"
6
6
  style="{{ customStyle }}"
7
7
  >{{ dot ? '' : info }}</view>
@@ -1 +1 @@
1
- @import '../common/index.wxss';.van-info{align-items:center;background-color:var(--info-background-color,var(--app-M2,#f04c4c));border:var(--info-border-width,0) solid #fff;border-radius:var(--info-size,12px);box-sizing:border-box;color:var(--info-color,#fff);display:inline-flex;font-family:var(--info-font-family,-apple-system-font,PingFang SC,Helvetica Neue,Arial,sans-serif);font-size:var(--info-font-size,11px);font-weight:var(--info-font-weight,600);height:var(--info-size,12px);justify-content:center;min-width:var(--info-size,12px);padding:var(--info-padding,0 4px);position:absolute;right:0;top:0;transform:translate(50%,-50%);transform-origin:100%;white-space:nowrap}.van-info--dot{background-color:var(--info-dot-color,var(--app-M2,#f04c4c));border-radius:100%;height:var(--info-dot-size,8px);min-width:0;width:var(--info-dot-size,8px)}
1
+ @import '../common/index.wxss';.smart-info{align-items:center;background-color:var(--info-background-color,var(--app-M2,#f04c4c));border:var(--info-border-width,0) solid #fff;border-radius:var(--info-size,12px);box-sizing:border-box;color:var(--info-color,#fff);display:inline-flex;font-family:var(--info-font-family,-apple-system-font,PingFang SC,Helvetica Neue,Arial,sans-serif);font-size:var(--info-font-size,11px);font-weight:var(--info-font-weight,600);height:var(--info-size,12px);justify-content:center;min-width:var(--info-size,12px);padding:var(--info-padding,0 4px);position:absolute;right:0;top:0;transform:translate(50%,-50%);transform-origin:100%;white-space:nowrap}.smart-info--dot{background-color:var(--info-dot-color,var(--app-M2,#f04c4c));border-radius:100%;height:var(--info-dot-size,8px);min-width:0;width:var(--info-dot-size,8px)}
@@ -1 +1 @@
1
- @import '../common/index.css';:host{font-size:0;line-height:1}.van-loading{align-items:center;color:var(--loading-spinner-color,#c8c9cc);display:inline-flex;justify-content:center}.van-loading__spinner{animation:van-rotate var(--loading-spinner-animation-duration,.8s) linear infinite;box-sizing:border-box;height:var(--loading-spinner-size,30px);max-height:100%;max-width:100%;position:relative;width:var(--loading-spinner-size,30px)}.van-loading__spinner--spinner{animation-timing-function:steps(12)}.van-loading__spinner--circular{border:1px solid transparent;border-radius:100%;border-top-color:initial}.van-loading__text{color:var(--loading-text-color,#969799);font-size:var(--loading-text-font-size,14px);line-height:var(--loading-text-line-height,20px);margin-left:var(--padding-xs,8px)}.van-loading__text:empty{display:none}.van-loading--vertical{flex-direction:column}.van-loading--vertical .van-loading__text{margin:var(--padding-xs,8px) 0 0}.van-loading__dot{height:100%;left:0;position:absolute;top:0;width:100%}.van-loading__dot:before{background-color:currentColor;border-radius:40%;content:" ";display:block;height:25%;margin:0 auto;width:2px}.van-loading__dot:first-of-type{opacity:1;transform:rotate(30deg)}.van-loading__dot:nth-of-type(2){opacity:.9375;transform:rotate(60deg)}.van-loading__dot:nth-of-type(3){opacity:.875;transform:rotate(90deg)}.van-loading__dot:nth-of-type(4){opacity:.8125;transform:rotate(120deg)}.van-loading__dot:nth-of-type(5){opacity:.75;transform:rotate(150deg)}.van-loading__dot:nth-of-type(6){opacity:.6875;transform:rotate(180deg)}.van-loading__dot:nth-of-type(7){opacity:.625;transform:rotate(210deg)}.van-loading__dot:nth-of-type(8){opacity:.5625;transform:rotate(240deg)}.van-loading__dot:nth-of-type(9){opacity:.5;transform:rotate(270deg)}.van-loading__dot:nth-of-type(10){opacity:.4375;transform:rotate(300deg)}.van-loading__dot:nth-of-type(11){opacity:.375;transform:rotate(330deg)}.van-loading__dot:nth-of-type(12){opacity:.3125;transform:rotate(1turn)}@keyframes van-rotate{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}
1
+ @import '../common/index.css';:host{font-size:0;line-height:1}.smart-loading{align-items:center;color:var(--loading-spinner-color,#c8c9cc);display:inline-flex;justify-content:center}.smart-loading__spinner{animation:smart-rotate var(--loading-spinner-animation-duration,.8s) linear infinite;box-sizing:border-box;height:var(--loading-spinner-size,30px);max-height:100%;max-width:100%;position:relative;width:var(--loading-spinner-size,30px)}.smart-loading__spinner--spinner{animation-timing-function:steps(12)}.smart-loading__spinner--circular{border:1px solid transparent;border-radius:100%;border-top-color:initial}.smart-loading__text{color:var(--loading-text-color,#969799);font-size:var(--loading-text-font-size,14px);line-height:var(--loading-text-line-height,20px);margin-left:var(--padding-xs,8px)}.smart-loading__text:empty{display:none}.smart-loading--vertical{flex-direction:column}.smart-loading--vertical .smart-loading__text{margin:var(--padding-xs,8px) 0 0}.smart-loading__dot{height:100%;left:0;position:absolute;top:0;width:100%}.smart-loading__dot:before{background-color:currentColor;border-radius:40%;content:" ";display:block;height:25%;margin:0 auto;width:2px}.smart-loading__dot:first-of-type{opacity:1;transform:rotate(30deg)}.smart-loading__dot:nth-of-type(2){opacity:.9375;transform:rotate(60deg)}.smart-loading__dot:nth-of-type(3){opacity:.875;transform:rotate(90deg)}.smart-loading__dot:nth-of-type(4){opacity:.8125;transform:rotate(120deg)}.smart-loading__dot:nth-of-type(5){opacity:.75;transform:rotate(150deg)}.smart-loading__dot:nth-of-type(6){opacity:.6875;transform:rotate(180deg)}.smart-loading__dot:nth-of-type(7){opacity:.625;transform:rotate(210deg)}.smart-loading__dot:nth-of-type(8){opacity:.5625;transform:rotate(240deg)}.smart-loading__dot:nth-of-type(9){opacity:.5;transform:rotate(270deg)}.smart-loading__dot:nth-of-type(10){opacity:.4375;transform:rotate(300deg)}.smart-loading__dot:nth-of-type(11){opacity:.375;transform:rotate(330deg)}.smart-loading__dot:nth-of-type(12){opacity:.3125;transform:rotate(1turn)}@keyframes smart-rotate{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  var component_1 = require("../common/component");
4
- (0, component_1.VantComponent)({
4
+ (0, component_1.SmartComponent)({
5
5
  props: {
6
6
  color: String,
7
7
  vertical: Boolean,
@@ -3,17 +3,17 @@
3
3
 
4
4
  <view class="custom-class {{ utils.bem('loading', { vertical }) }}">
5
5
  <view
6
- class="van-loading__spinner van-loading__spinner--{{ type }}"
6
+ class="smart-loading__spinner smart-loading__spinner--{{ type }}"
7
7
  style="{{ computed.spinnerStyle({ color, size }) }}"
8
8
  >
9
9
  <view
10
10
  wx:if="{{ type === 'spinner' }}"
11
11
  wx:for="{{ array12 }}"
12
12
  wx:key="index"
13
- class="van-loading__dot"
13
+ class="smart-loading__dot"
14
14
  />
15
15
  </view>
16
- <view class="van-loading__text" style="{{ computed.textStyle({ textSize }) }}">
16
+ <view class="smart-loading__text" style="{{ computed.textStyle({ textSize }) }}">
17
17
  <slot />
18
18
  </view>
19
19
  </view>
@@ -1 +1 @@
1
- @import '../common/index.wxss';:host{font-size:0;line-height:1}.van-loading{align-items:center;color:var(--loading-spinner-color,#c8c9cc);display:inline-flex;justify-content:center}.van-loading__spinner{animation:van-rotate var(--loading-spinner-animation-duration,.8s) linear infinite;box-sizing:border-box;height:var(--loading-spinner-size,30px);max-height:100%;max-width:100%;position:relative;width:var(--loading-spinner-size,30px)}.van-loading__spinner--spinner{animation-timing-function:steps(12)}.van-loading__spinner--circular{border:1px solid transparent;border-radius:100%;border-top-color:initial}.van-loading__text{color:var(--loading-text-color,#969799);font-size:var(--loading-text-font-size,14px);line-height:var(--loading-text-line-height,20px);margin-left:var(--padding-xs,8px)}.van-loading__text:empty{display:none}.van-loading--vertical{flex-direction:column}.van-loading--vertical .van-loading__text{margin:var(--padding-xs,8px) 0 0}.van-loading__dot{height:100%;left:0;position:absolute;top:0;width:100%}.van-loading__dot:before{background-color:currentColor;border-radius:40%;content:" ";display:block;height:25%;margin:0 auto;width:2px}.van-loading__dot:first-of-type{opacity:1;transform:rotate(30deg)}.van-loading__dot:nth-of-type(2){opacity:.9375;transform:rotate(60deg)}.van-loading__dot:nth-of-type(3){opacity:.875;transform:rotate(90deg)}.van-loading__dot:nth-of-type(4){opacity:.8125;transform:rotate(120deg)}.van-loading__dot:nth-of-type(5){opacity:.75;transform:rotate(150deg)}.van-loading__dot:nth-of-type(6){opacity:.6875;transform:rotate(180deg)}.van-loading__dot:nth-of-type(7){opacity:.625;transform:rotate(210deg)}.van-loading__dot:nth-of-type(8){opacity:.5625;transform:rotate(240deg)}.van-loading__dot:nth-of-type(9){opacity:.5;transform:rotate(270deg)}.van-loading__dot:nth-of-type(10){opacity:.4375;transform:rotate(300deg)}.van-loading__dot:nth-of-type(11){opacity:.375;transform:rotate(330deg)}.van-loading__dot:nth-of-type(12){opacity:.3125;transform:rotate(1turn)}@keyframes van-rotate{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}
1
+ @import '../common/index.wxss';:host{font-size:0;line-height:1}.smart-loading{align-items:center;color:var(--loading-spinner-color,#c8c9cc);display:inline-flex;justify-content:center}.smart-loading__spinner{animation:smart-rotate var(--loading-spinner-animation-duration,.8s) linear infinite;box-sizing:border-box;height:var(--loading-spinner-size,30px);max-height:100%;max-width:100%;position:relative;width:var(--loading-spinner-size,30px)}.smart-loading__spinner--spinner{animation-timing-function:steps(12)}.smart-loading__spinner--circular{border:1px solid transparent;border-radius:100%;border-top-color:initial}.smart-loading__text{color:var(--loading-text-color,#969799);font-size:var(--loading-text-font-size,14px);line-height:var(--loading-text-line-height,20px);margin-left:var(--padding-xs,8px)}.smart-loading__text:empty{display:none}.smart-loading--vertical{flex-direction:column}.smart-loading--vertical .smart-loading__text{margin:var(--padding-xs,8px) 0 0}.smart-loading__dot{height:100%;left:0;position:absolute;top:0;width:100%}.smart-loading__dot:before{background-color:currentColor;border-radius:40%;content:" ";display:block;height:25%;margin:0 auto;width:2px}.smart-loading__dot:first-of-type{opacity:1;transform:rotate(30deg)}.smart-loading__dot:nth-of-type(2){opacity:.9375;transform:rotate(60deg)}.smart-loading__dot:nth-of-type(3){opacity:.875;transform:rotate(90deg)}.smart-loading__dot:nth-of-type(4){opacity:.8125;transform:rotate(120deg)}.smart-loading__dot:nth-of-type(5){opacity:.75;transform:rotate(150deg)}.smart-loading__dot:nth-of-type(6){opacity:.6875;transform:rotate(180deg)}.smart-loading__dot:nth-of-type(7){opacity:.625;transform:rotate(210deg)}.smart-loading__dot:nth-of-type(8){opacity:.5625;transform:rotate(240deg)}.smart-loading__dot:nth-of-type(9){opacity:.5;transform:rotate(270deg)}.smart-loading__dot:nth-of-type(10){opacity:.4375;transform:rotate(300deg)}.smart-loading__dot:nth-of-type(11){opacity:.375;transform:rotate(330deg)}.smart-loading__dot:nth-of-type(12){opacity:.3125;transform:rotate(1turn)}@keyframes smart-rotate{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}
@@ -10,5 +10,21 @@ exports.basic = Behavior({
10
10
  this.setData(data);
11
11
  return new Promise(function (resolve) { return wx.nextTick(resolve); });
12
12
  },
13
+ // high performance setData
14
+ setView: function (data, callback) {
15
+ var _this = this;
16
+ var target = {};
17
+ var hasChange = false;
18
+ Object.keys(data).forEach(function (key) {
19
+ if (data[key] !== _this.data[key]) {
20
+ target[key] = data[key];
21
+ hasChange = true;
22
+ }
23
+ });
24
+ if (hasChange) {
25
+ return this.setData(target, callback);
26
+ }
27
+ return callback && callback();
28
+ },
13
29
  },
14
30
  });
@@ -4,8 +4,8 @@ exports.pageScrollMixin = void 0;
4
4
  var validator_1 = require("../common/validator");
5
5
  var utils_1 = require("../common/utils");
6
6
  function onPageScroll(event) {
7
- var _a = (0, utils_1.getCurrentPage)().vanPageScroller, vanPageScroller = _a === void 0 ? [] : _a;
8
- vanPageScroller.forEach(function (scroller) {
7
+ var _a = (0, utils_1.getCurrentPage)().smartPageScroller, smartPageScroller = _a === void 0 ? [] : _a;
8
+ smartPageScroller.forEach(function (scroller) {
9
9
  if (typeof scroller === 'function') {
10
10
  // @ts-ignore
11
11
  scroller(event);
@@ -20,25 +20,25 @@ function pageScrollMixin(scroller) {
20
20
  return;
21
21
  }
22
22
  var _scroller = scroller.bind(this);
23
- var _a = page.vanPageScroller, vanPageScroller = _a === void 0 ? [] : _a;
23
+ var _a = page.smartPageScroller, smartPageScroller = _a === void 0 ? [] : _a;
24
24
  if ((0, validator_1.isFunction)(page.onPageScroll) && page.onPageScroll !== onPageScroll) {
25
- vanPageScroller.push(page.onPageScroll.bind(page));
25
+ smartPageScroller.push(page.onPageScroll.bind(page));
26
26
  }
27
- vanPageScroller.push(_scroller);
28
- page.vanPageScroller = vanPageScroller;
27
+ smartPageScroller.push(_scroller);
28
+ page.smartPageScroller = smartPageScroller;
29
29
  page.onPageScroll = onPageScroll;
30
30
  this._scroller = _scroller;
31
31
  },
32
32
  detached: function () {
33
33
  var _this = this;
34
34
  var page = (0, utils_1.getCurrentPage)();
35
- if (!(0, utils_1.isDef)(page) || !(0, utils_1.isDef)(page.vanPageScroller)) {
35
+ if (!(0, utils_1.isDef)(page) || !(0, utils_1.isDef)(page.smartPageScroller)) {
36
36
  return;
37
37
  }
38
- var vanPageScroller = page.vanPageScroller;
39
- var index = vanPageScroller.findIndex(function (v) { return v === _this._scroller; });
38
+ var smartPageScroller = page.smartPageScroller;
39
+ var index = smartPageScroller.findIndex(function (v) { return v === _this._scroller; });
40
40
  if (index > -1) {
41
- page.vanPageScroller.splice(index, 1);
41
+ page.smartPageScroller.splice(index, 1);
42
42
  }
43
43
  this._scroller = undefined;
44
44
  },
@@ -5,10 +5,10 @@ exports.transition = void 0;
5
5
  var utils_1 = require("../common/utils");
6
6
  var validator_1 = require("../common/validator");
7
7
  var getClassNames = function (name) { return ({
8
- enter: "van-".concat(name, "-enter van-").concat(name, "-enter-active enter-class enter-active-class"),
9
- 'enter-to': "van-".concat(name, "-enter-to van-").concat(name, "-enter-active enter-to-class enter-active-class"),
10
- leave: "van-".concat(name, "-leave van-").concat(name, "-leave-active leave-class leave-active-class"),
11
- 'leave-to': "van-".concat(name, "-leave-to van-").concat(name, "-leave-active leave-to-class leave-active-class"),
8
+ enter: "smart-".concat(name, "-enter smart-").concat(name, "-enter-active enter-class enter-active-class"),
9
+ 'enter-to': "smart-".concat(name, "-enter-to smart-").concat(name, "-enter-active enter-to-class enter-active-class"),
10
+ leave: "smart-".concat(name, "-leave smart-").concat(name, "-leave-active leave-class leave-active-class"),
11
+ 'leave-to': "smart-".concat(name, "-leave-to smart-").concat(name, "-leave-active leave-to-class leave-active-class"),
12
12
  }); };
13
13
  function transition(showDefaultValue) {
14
14
  return Behavior({
@@ -1 +1 @@
1
- @import '../common/index.css';.van-nav-bar{background-color:var(--nav-bar-background-color,var(--app-B2,#fff));box-sizing:initial;height:var(--nav-bar-height,46px);line-height:var(--nav-bar-height,46px);position:relative;text-align:center;-webkit-user-select:none;user-select:none}.van-nav-bar__content{height:100%;position:relative}.van-nav-bar__text{color:var(--nav-bar-text-color,var(--app-B6-N1,#000));display:inline-block;margin:0 calc(var(--padding-md, 16px)*-1);padding:0 var(--padding-md,16px);vertical-align:middle}.van-nav-bar__text--hover{background-color:#f2f3f5}.van-nav-bar__arrow{color:var(--nav-bar-icon-color,var(--app-B6-N1,#000))!important;font-size:var(--nav-bar-arrow-size,16px)!important;vertical-align:middle}.van-nav-bar__arrow+.van-nav-bar__text{margin-left:-20px;padding-left:25px}.van-nav-bar--fixed{left:0;position:fixed;top:0;width:100%}.van-nav-bar__title{color:var(--nav-bar-title-text-color,var(--app-B6-N1,#000));font-size:var(--nav-bar-title-font-size,16px);font-weight:var(--font-weight-bold,500);margin:0 auto;max-width:60%}.van-nav-bar__left,.van-nav-bar__right{align-items:center;bottom:0;display:flex;font-size:var(--font-size-md,14px);position:absolute;top:0}.van-nav-bar__left{left:var(--padding-md,16px)}.van-nav-bar__right{right:var(--padding-md,16px)}
1
+ @import '../common/index.css';.smart-nav-bar{background-color:var(--nav-bar-background-color,var(--app-B2,#fff));box-sizing:initial;height:var(--nav-bar-height,46px);line-height:var(--nav-bar-height,46px);position:relative;text-align:center;-webkit-user-select:none;user-select:none}.smart-nav-bar__content{height:100%;position:relative}.smart-nav-bar__text{color:var(--nav-bar-text-color,var(--app-B6-N1,#000));display:inline-block;margin:0 calc(var(--padding-md, 16px)*-1);padding:0 var(--padding-md,16px);vertical-align:middle}.smart-nav-bar__text--hover{background-color:#f2f3f5}.smart-nav-bar__arrow{color:var(--nav-bar-icon-color,var(--app-B6-N1,#000))!important;font-size:var(--nav-bar-arrow-size,16px)!important;vertical-align:middle}.smart-nav-bar__arrow+.smart-nav-bar__text{margin-left:-20px;padding-left:25px}.smart-nav-bar--fixed{left:0;position:fixed;top:0;width:100%}.smart-nav-bar__title{color:var(--nav-bar-title-text-color,var(--app-B6-N1,#000));font-size:var(--nav-bar-title-font-size,16px);font-weight:var(--font-weight-bold,500);margin:0 auto;max-width:60%}.smart-nav-bar__left,.smart-nav-bar__right{align-items:center;bottom:0;display:flex;font-size:var(--font-size-md,14px);position:absolute;top:0}.smart-nav-bar__left{left:var(--padding-md,16px)}.smart-nav-bar__right{right:var(--padding-md,16px)}
@@ -3,10 +3,10 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
+ var Left_1 = __importDefault(require("@tuya-miniapp/icons/dist/svg/Left"));
6
7
  var component_1 = require("../common/component");
7
8
  var utils_1 = require("../common/utils");
8
- var Left_1 = __importDefault(require("@tuya-miniapp/icons/dist/svg/Left"));
9
- (0, component_1.VantComponent)({
9
+ (0, component_1.SmartComponent)({
10
10
  classes: ['title-class'],
11
11
  props: {
12
12
  title: String,
@@ -62,7 +62,7 @@ var Left_1 = __importDefault(require("@tuya-miniapp/icons/dist/svg/Left"));
62
62
  return;
63
63
  }
64
64
  wx.nextTick(function () {
65
- (0, utils_1.getRect)(_this, '.van-nav-bar').then(function (res) {
65
+ (0, utils_1.getRect)(_this, '.smart-nav-bar').then(function (res) {
66
66
  if (res && 'height' in res) {
67
67
  _this.setData({ height: res.height });
68
68
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "component": true,
3
3
  "usingComponents": {
4
- "van-icon": "../icon/index"
4
+ "smart-icon": "../icon/index"
5
5
  }
6
6
  }
@@ -4,37 +4,37 @@
4
4
  <view wx:if="{{ fixed && placeholder }}" style="height: {{ height }}px;" />
5
5
 
6
6
  <view
7
- class="{{ utils.bem('nav-bar', { fixed }) }} custom-class {{ border ? 'van-hairline--bottom' : '' }}"
7
+ class="{{ utils.bem('nav-bar', { fixed }) }} custom-class {{ border ? 'smart-hairline--bottom' : '' }}"
8
8
  style="{{ computed.barStyle({ zIndex, statusBarHeight, safeAreaInsetTop }) }}; {{ customStyle }}"
9
9
  >
10
- <view class="van-nav-bar__content">
11
- <view class="van-nav-bar__left" bind:tap="onClickLeft">
10
+ <view class="smart-nav-bar__content">
11
+ <view class="smart-nav-bar__left" bind:tap="onClickLeft">
12
12
  <block wx:if="{{ leftArrow || leftText }}">
13
- <van-icon
13
+ <smart-icon
14
14
  wx:if="{{ leftArrow }}"
15
15
  size="16px"
16
16
  name="{{ leftArrowIcon }}"
17
- custom-class="van-nav-bar__arrow"
17
+ custom-class="smart-nav-bar__arrow"
18
18
  />
19
19
  <view
20
20
  wx:if="{{ leftText }}"
21
- class="van-nav-bar__text"
22
- hover-class="van-nav-bar__text--hover"
21
+ class="smart-nav-bar__text"
22
+ hover-class="smart-nav-bar__text--hover"
23
23
  hover-stay-time="70"
24
24
  >{{ leftText }}</view>
25
25
  </block>
26
26
  <slot wx:else name="left" />
27
27
  </view>
28
- <view class="van-nav-bar__title title-class van-ellipsis">
28
+ <view class="smart-nav-bar__title title-class smart-ellipsis">
29
29
  <block wx:if="{{ title }}">{{ title }}</block>
30
30
 
31
31
  <slot wx:else name="title" />
32
32
  </view>
33
- <view class="van-nav-bar__right" bind:tap="onClickRight">
33
+ <view class="smart-nav-bar__right" bind:tap="onClickRight">
34
34
  <view
35
35
  wx:if="{{ rightText }}"
36
- class="van-nav-bar__text"
37
- hover-class="van-nav-bar__text--hover"
36
+ class="smart-nav-bar__text"
37
+ hover-class="smart-nav-bar__text--hover"
38
38
  hover-stay-time="70"
39
39
  >{{ rightText }}</view>
40
40
  <slot wx:else name="right" />
@@ -1 +1 @@
1
- @import '../common/index.wxss';.van-nav-bar{background-color:var(--nav-bar-background-color,var(--app-B2,#fff));box-sizing:initial;height:var(--nav-bar-height,46px);line-height:var(--nav-bar-height,46px);position:relative;text-align:center;-webkit-user-select:none;user-select:none}.van-nav-bar__content{height:100%;position:relative}.van-nav-bar__text{color:var(--nav-bar-text-color,var(--app-B6-N1,#000));display:inline-block;margin:0 calc(var(--padding-md, 16px)*-1);padding:0 var(--padding-md,16px);vertical-align:middle}.van-nav-bar__text--hover{background-color:#f2f3f5}.van-nav-bar__arrow{color:var(--nav-bar-icon-color,var(--app-B6-N1,#000))!important;font-size:var(--nav-bar-arrow-size,16px)!important;vertical-align:middle}.van-nav-bar__arrow+.van-nav-bar__text{margin-left:-20px;padding-left:25px}.van-nav-bar--fixed{left:0;position:fixed;top:0;width:100%}.van-nav-bar__title{color:var(--nav-bar-title-text-color,var(--app-B6-N1,#000));font-size:var(--nav-bar-title-font-size,16px);font-weight:var(--font-weight-bold,500);margin:0 auto;max-width:60%}.van-nav-bar__left,.van-nav-bar__right{align-items:center;bottom:0;display:flex;font-size:var(--font-size-md,14px);position:absolute;top:0}.van-nav-bar__left{left:var(--padding-md,16px)}.van-nav-bar__right{right:var(--padding-md,16px)}
1
+ @import '../common/index.wxss';.smart-nav-bar{background-color:var(--nav-bar-background-color,var(--app-B2,#fff));box-sizing:initial;height:var(--nav-bar-height,46px);line-height:var(--nav-bar-height,46px);position:relative;text-align:center;-webkit-user-select:none;user-select:none}.smart-nav-bar__content{height:100%;position:relative}.smart-nav-bar__text{color:var(--nav-bar-text-color,var(--app-B6-N1,#000));display:inline-block;margin:0 calc(var(--padding-md, 16px)*-1);padding:0 var(--padding-md,16px);vertical-align:middle}.smart-nav-bar__text--hover{background-color:#f2f3f5}.smart-nav-bar__arrow{color:var(--nav-bar-icon-color,var(--app-B6-N1,#000))!important;font-size:var(--nav-bar-arrow-size,16px)!important;vertical-align:middle}.smart-nav-bar__arrow+.smart-nav-bar__text{margin-left:-20px;padding-left:25px}.smart-nav-bar--fixed{left:0;position:fixed;top:0;width:100%}.smart-nav-bar__title{color:var(--nav-bar-title-text-color,var(--app-B6-N1,#000));font-size:var(--nav-bar-title-font-size,16px);font-weight:var(--font-weight-bold,500);margin:0 auto;max-width:60%}.smart-nav-bar__left,.smart-nav-bar__right{align-items:center;bottom:0;display:flex;font-size:var(--font-size-md,14px);position:absolute;top:0}.smart-nav-bar__left{left:var(--padding-md,16px)}.smart-nav-bar__right{right:var(--padding-md,16px)}
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  var component_1 = require("../common/component");
4
- (0, component_1.VantComponent)({
4
+ (0, component_1.SmartComponent)({
5
5
  props: {
6
6
  className: {
7
7
  type: String,
@@ -1 +1 @@
1
- @import '../common/index.css';.van-notice-bar{align-items:center;background-color:var(--notice-bar-background-color,#fffbe8);color:var(--notice-bar-text-color,var(--app-B6-N3,rgba(0,0,0,.5)));display:flex;font-size:var(--notice-bar-font-size,14px);height:var(--notice-bar-height,40px);line-height:var(--notice-bar-line-height,24px);padding:var(--notice-bar-padding,0 16px)}.van-notice-bar--withicon{padding-right:40px;position:relative}.van-notice-bar--wrapable{height:auto;padding:var(--notice-bar-wrapable-padding,8px 16px)}.van-notice-bar--wrapable .van-notice-bar__wrap{height:auto}.van-notice-bar--wrapable .van-notice-bar__content{position:relative;white-space:normal}.van-notice-bar__left-icon{align-items:center;display:flex;margin-right:4px;vertical-align:middle}.van-notice-bar__left-icon,.van-notice-bar__right-icon{font-size:var(--notice-bar-icon-size,16px);min-width:var(--notice-bar-icon-min-width,22px)}.van-notice-bar__right-icon{position:absolute;right:15px;top:10px}.van-notice-bar__wrap{flex:1;height:var(--notice-bar-line-height,24px);overflow:hidden;position:relative}.van-notice-bar__content{position:absolute;white-space:nowrap}.van-notice-bar__content.van-ellipsis{max-width:100%}
1
+ @import '../common/index.css';.smart-notice-bar{align-items:center;background-color:var(--notice-bar-background-color,#fffbe8);color:var(--notice-bar-text-color,var(--app-B6-N3,rgba(0,0,0,.5)));display:flex;font-size:var(--notice-bar-font-size,14px);height:var(--notice-bar-height,40px);line-height:var(--notice-bar-line-height,24px);padding:var(--notice-bar-padding,0 16px)}.smart-notice-bar--withicon{padding-right:40px;position:relative}.smart-notice-bar--wrapable{height:auto;padding:var(--notice-bar-wrapable-padding,8px 16px)}.smart-notice-bar--wrapable .smart-notice-bar__wrap{height:auto}.smart-notice-bar--wrapable .smart-notice-bar__content{position:relative;white-space:normal}.smart-notice-bar__left-icon{align-items:center;display:flex;margin-right:4px;vertical-align:middle}.smart-notice-bar__left-icon,.smart-notice-bar__right-icon{font-size:var(--notice-bar-icon-size,16px);min-width:var(--notice-bar-icon-min-width,22px)}.smart-notice-bar__right-icon{position:absolute;right:15px;top:10px}.smart-notice-bar__wrap{flex:1;height:var(--notice-bar-line-height,24px);overflow:hidden;position:relative}.smart-notice-bar__content{position:absolute;white-space:nowrap}.smart-notice-bar__content.smart-ellipsis{max-width:100%}
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  var component_1 = require("../common/component");
4
4
  var utils_1 = require("../common/utils");
5
- (0, component_1.VantComponent)({
5
+ (0, component_1.SmartComponent)({
6
6
  props: {
7
7
  text: {
8
8
  type: String,
@@ -60,8 +60,8 @@ var utils_1 = require("../common/utils");
60
60
  var _this = this;
61
61
  (0, utils_1.requestAnimationFrame)(function () {
62
62
  Promise.all([
63
- (0, utils_1.getRect)(_this, '.van-notice-bar__content'),
64
- (0, utils_1.getRect)(_this, '.van-notice-bar__wrap'),
63
+ (0, utils_1.getRect)(_this, '.smart-notice-bar__content'),
64
+ (0, utils_1.getRect)(_this, '.smart-notice-bar__wrap'),
65
65
  ]).then(function (rects) {
66
66
  var contentRect = rects[0], wrapRect = rects[1];
67
67
  var _a = _this.data, speed = _a.speed, scrollable = _a.scrollable, delay = _a.delay;
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "component": true,
3
3
  "usingComponents": {
4
- "van-icon": "../icon/index"
4
+ "smart-icon": "../icon/index"
5
5
  }
6
6
  }