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

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 +16 -16
  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 +11 -2
  32. package/dist/cascader/index.json +3 -3
  33. package/dist/cascader/index.wxml +15 -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 +7 -3
  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 +16 -16
  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 +10 -1
  339. package/lib/cascader/index.json +3 -3
  340. package/lib/cascader/index.wxml +15 -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 +6 -2
  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
@@ -1 +1 @@
1
- @import '../common/index.wxss';.van-calendar{background-color:var(--calendar-background-color,var(--app-B6,#fff));display:flex;flex-direction:column;height:var(--calendar-height,100%)}.van-calendar__close-icon{top:11px}.van-calendar__popup--bottom,.van-calendar__popup--top{height:var(--calendar-popup-height,90%)}.van-calendar__popup--left,.van-calendar__popup--right{height:100%}.van-calendar__body{-webkit-overflow-scrolling:touch;flex:1;overflow:auto}.van-calendar__footer{flex-shrink:0;padding:0 var(--padding-md,16px)}.van-calendar__footer--safe-area-inset-bottom{padding-bottom:env(safe-area-inset-bottom)}.van-calendar__footer+.van-calendar__footer,.van-calendar__footer:empty{display:none}.van-calendar__footer:empty+.van-calendar__footer{display:block!important}.van-calendar__confirm{height:var(--calendar-confirm-button-height,36px)!important;line-height:var(--calendar-confirm-button-line-height,34px)!important;margin:var(--calendar-confirm-button-margin,7px 0)!important}
1
+ @import '../common/index.wxss';.smart-calendar{background-color:var(--calendar-background-color,var(--app-B6,#fff));display:flex;flex-direction:column;height:var(--calendar-height,100%)}.smart-calendar__close-icon{top:11px}.smart-calendar__popup--bottom,.smart-calendar__popup--top{height:var(--calendar-popup-height,90%)}.smart-calendar__popup--left,.smart-calendar__popup--right{height:100%}.smart-calendar__body{-webkit-overflow-scrolling:touch;flex:1;overflow:auto}.smart-calendar__footer{flex-shrink:0;padding:0 var(--padding-md,16px)}.smart-calendar__footer--safe-area-inset-bottom{padding-bottom:env(safe-area-inset-bottom)}.smart-calendar__footer+.smart-calendar__footer,.smart-calendar__footer:empty{display:none}.smart-calendar__footer:empty+.smart-calendar__footer{display:block!important}.smart-calendar__confirm{height:var(--calendar-confirm-button-height,36px)!important;line-height:var(--calendar-confirm-button-line-height,34px)!important;margin:var(--calendar-confirm-button-margin,7px 0)!important}
@@ -1 +1 @@
1
- @import '../common/index.css';.van-cascader__header{align-items:center;display:flex;height:48px;justify-content:space-between;padding:0 16px}.van-cascader__title{font-size:16px;font-weight:600;line-height:20px}.van-cascader__close-icon{color:#c8c9cc;font-size:22px;height:22px}.van-cascader__tabs-wrap{height:48px!important;padding:0 8px}.van-cascader__tab{color:#323233!important;flex:none!important;font-weight:600!important;padding:0 8px!important}.van-cascader__tab--unselected{color:#969799!important;font-weight:400!important}.van-cascader__option{align-items:center;cursor:pointer;display:flex;font-size:14px;justify-content:space-between;line-height:20px;padding:10px 16px}.van-cascader__option:active{background-color:#f2f3f5}.van-cascader__option--selected{color:#1989fa;font-weight:600}.van-cascader__option--disabled{color:#c8c9cc;cursor:not-allowed}.van-cascader__option--disabled:active{background-color:initial}.van-cascader__options{-webkit-overflow-scrolling:touch;box-sizing:border-box;height:384px;overflow-y:auto;padding-top:6px}
1
+ @import '../common/index.css';.smart-cascader__header{align-items:center;display:flex;height:48px;justify-content:space-between;padding:0 16px}.smart-cascader__title{font-size:16px;font-weight:600;line-height:20px}.smart-cascader__close-icon{color:#c8c9cc;font-size:22px;height:22px}.smart-cascader__tabs-wrap{height:48px!important;padding:0 8px}.smart-cascader__tab{color:#323233!important;flex:none!important;font-weight:600!important;padding:0 8px!important}.smart-cascader__tab--unselected{color:#969799!important;font-weight:400!important}.smart-cascader__option{align-items:center;cursor:pointer;display:flex;font-size:14px;justify-content:space-between;line-height:20px;padding:10px 16px}.smart-cascader__option:active{background-color:#f2f3f5}.smart-cascader__option--selected{color:#1989fa;font-weight:600}.smart-cascader__option--disabled{color:#c8c9cc;cursor:not-allowed}.smart-cascader__option--disabled:active{background-color:initial}.smart-cascader__options{-webkit-overflow-scrolling:touch;box-sizing:border-box;height:384px;overflow-y:auto;padding-top:6px}
@@ -1,6 +1,6 @@
1
- import { VantComponent } from '../common/component';
1
+ import { SmartComponent } from '../common/component';
2
2
  import closeIcon from '@tuya-miniapp/icons/dist/svg/Xmark';
3
- VantComponent({
3
+ SmartComponent({
4
4
  props: {
5
5
  title: String,
6
6
  value: {
@@ -26,6 +26,14 @@ VantComponent({
26
26
  type: Boolean,
27
27
  value: true,
28
28
  },
29
+ ellipsis: {
30
+ type: Boolean,
31
+ value: true,
32
+ },
33
+ swipeThreshold: {
34
+ type: Number,
35
+ value: 5,
36
+ },
29
37
  showHeader: {
30
38
  type: Boolean,
31
39
  value: true,
@@ -122,6 +130,7 @@ VantComponent({
122
130
  selected: null,
123
131
  },
124
132
  ],
133
+ activeTab: 0,
125
134
  });
126
135
  },
127
136
  onClose() {
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "component": true,
3
3
  "usingComponents": {
4
- "van-icon": "../icon/index",
5
- "van-tab": "../tab/index",
6
- "van-tabs": "../tabs/index"
4
+ "smart-icon": "../icon/index",
5
+ "smart-tab": "../tab/index",
6
+ "smart-tabs": "../tabs/index"
7
7
  }
8
8
  }
@@ -1,27 +1,29 @@
1
1
  <wxs src="./index.wxs" module="utils" />
2
2
 
3
- <view wx:if="{{ showHeader }}" class="van-cascader__header">
3
+ <view wx:if="{{ showHeader }}" class="smart-cascader__header">
4
4
  <slot name="title" wx:if="{{ useTitleSlot }}"></slot>
5
- <text class="van-cascader__title" wx:else>{{ title }}</text>
6
- <van-icon
5
+ <text class="smart-cascader__title" wx:else>{{ title }}</text>
6
+ <smart-icon
7
7
  wx:if="{{ closeable }}"
8
8
  name="{{ closeIcon }}"
9
- class="van-cascader__close-icon"
9
+ class="smart-cascader__close-icon"
10
10
  bind:tap="onClose"
11
11
  />
12
12
  </view>
13
13
 
14
- <van-tabs
14
+ <smart-tabs
15
15
  active="{{ activeTab }}"
16
- custom-class="van-cascader__tabs"
17
- wrap-class="van-cascader__tabs-wrap"
18
- tab-class="van-cascader__tab"
16
+ custom-class="smart-cascader__tabs"
17
+ wrap-class="smart-cascader__tabs-wrap"
18
+ tab-class="smart-cascader__tab"
19
19
  color="{{ activeColor }}"
20
20
  border="{{ false }}"
21
21
  swipeable="{{ swipeable }}"
22
+ ellipsis="{{ ellipsis }}"
23
+ swipe-threshold="{{ swipeThreshold }}"
22
24
  bind:click="onClickTab"
23
25
  >
24
- <van-tab
26
+ <smart-tab
25
27
  wx:for="{{ tabs }}"
26
28
  wx:for-item="tab"
27
29
  wx:for-index="tabIndex"
@@ -33,7 +35,7 @@
33
35
  <!-- 暂不支持 -->
34
36
  <!-- <slot name="options-top"></slot> -->
35
37
 
36
- <view class="van-cascader__options">
38
+ <view class="smart-cascader__options">
37
39
  <view
38
40
  wx:for="{{ tab.options }}"
39
41
  wx:for-item="option"
@@ -45,10 +47,10 @@
45
47
  bind:tap="onSelect"
46
48
  >
47
49
  <text>{{ option.text }}</text>
48
- <van-icon wx:if="{{ utils.isSelected(tab, option) }}" name="success" size="18" />
50
+ <smart-icon wx:if="{{ utils.isSelected(tab, option) }}" name="success" size="18" />
49
51
  </view>
50
52
  </view>
51
53
  <!-- 暂不支持 -->
52
54
  <!-- <slot name="options-bottom"></slot> -->
53
- </van-tab>
54
- </van-tabs>
55
+ </smart-tab>
56
+ </smart-tabs>
@@ -1 +1 @@
1
- @import '../common/index.wxss';.van-cascader__header{align-items:center;display:flex;height:48px;justify-content:space-between;padding:0 16px}.van-cascader__title{font-size:16px;font-weight:600;line-height:20px}.van-cascader__close-icon{color:#c8c9cc;font-size:22px;height:22px}.van-cascader__tabs-wrap{height:48px!important;padding:0 8px}.van-cascader__tab{color:#323233!important;flex:none!important;font-weight:600!important;padding:0 8px!important}.van-cascader__tab--unselected{color:#969799!important;font-weight:400!important}.van-cascader__option{align-items:center;cursor:pointer;display:flex;font-size:14px;justify-content:space-between;line-height:20px;padding:10px 16px}.van-cascader__option:active{background-color:#f2f3f5}.van-cascader__option--selected{color:#1989fa;font-weight:600}.van-cascader__option--disabled{color:#c8c9cc;cursor:not-allowed}.van-cascader__option--disabled:active{background-color:initial}.van-cascader__options{-webkit-overflow-scrolling:touch;box-sizing:border-box;height:384px;overflow-y:auto;padding-top:6px}
1
+ @import '../common/index.wxss';.smart-cascader__header{align-items:center;display:flex;height:48px;justify-content:space-between;padding:0 16px}.smart-cascader__title{font-size:16px;font-weight:600;line-height:20px}.smart-cascader__close-icon{color:#c8c9cc;font-size:22px;height:22px}.smart-cascader__tabs-wrap{height:48px!important;padding:0 8px}.smart-cascader__tab{color:#323233!important;flex:none!important;font-weight:600!important;padding:0 8px!important}.smart-cascader__tab--unselected{color:#969799!important;font-weight:400!important}.smart-cascader__option{align-items:center;cursor:pointer;display:flex;font-size:14px;justify-content:space-between;line-height:20px;padding:10px 16px}.smart-cascader__option:active{background-color:#f2f3f5}.smart-cascader__option--selected{color:#1989fa;font-weight:600}.smart-cascader__option--disabled{color:#c8c9cc;cursor:not-allowed}.smart-cascader__option--disabled:active{background-color:initial}.smart-cascader__options{-webkit-overflow-scrolling:touch;box-sizing:border-box;height:384px;overflow-y:auto;padding-top:6px}
@@ -1 +1 @@
1
- @import '../common/index.css';.van-cell{align-items:center;background-color:var(--cell-background-color,var(--app-B6,#fff));box-sizing:border-box;color:var(--cell-text-color,var(--app-B6-N1,#000));display:flex;font-size:var(--cell-font-size,16px);line-height:var(--cell-line-height,24px);padding:var(--cell-vertical-padding,16px) var(--cell-horizontal-padding,16px);position:relative;width:100%}.van-cell:after{border-bottom:1px solid var(--app-B6-N7,rgba(0,0,0,.1));bottom:0;box-sizing:border-box;content:" ";left:16px;pointer-events:none;position:absolute;right:16px;transform:scaleY(.5);transform-origin:center}.van-cell--borderless:after{display:none}.van-cell-group{background-color:var(--cell-background-color,var(--app-B6,#fff))}.van-cell__label{color:var(--cell-label-color,var(--app-B6-N3,rgba(0,0,0,.5)));font-size:var(--cell-label-font-size,14px);line-height:var(--cell-label-line-height,18px);margin-top:var(--cell-label-margin-top,3px)}.van-cell__title{align-items:flex-start;display:flex;flex-direction:column;justify-content:center}.van-cell__value{align-items:center;color:var(--cell-value-color,var(--app-B6-N3,rgba(0,0,0,.5)));display:flex;justify-content:flex-end;overflow:hidden;text-align:right;vertical-align:middle}.van-cell__title,.van-cell__value{flex:1}.van-cell__title:empty,.van-cell__value:empty{display:none}.van-cell__left-icon-wrap,.van-cell__right-icon-wrap{align-items:center;display:flex;font-size:var(--cell-icon-size,24px);height:var(--cell-line-height,24px)}.van-cell__left-icon-wrap{margin-right:var(--padding-base,4px)}.van-cell__right-icon-wrap{color:var(--cell-right-icon-color,var(--app-B6-N6,rgba(0,0,0,.2)));margin-left:var(--padding-base,4px)}.van-cell__left-icon{vertical-align:middle}.van-cell__left-icon,.van-cell__right-icon{line-height:var(--cell-line-height,24px)}.van-cell__right-icon>view{background:var(--cell-right-icon-color,var(--app-B6-N6,rgba(0,0,0,.2)))}.van-cell--clickable.van-cell--hover{background-color:var(--cell-active-color,var(--app-B1,#f6f7fb))}.van-cell--required{overflow:visible}.van-cell--required:before{color:var(--cell-required-color,var(--app-M2,#f04c4c));content:"*";font-size:var(--cell-font-size,16px);left:var(--padding-xs,8px);position:absolute}
1
+ @import '../common/index.css';.smart-cell{align-items:center;background-color:var(--cell-background-color,var(--app-B6,#fff));box-sizing:border-box;color:var(--cell-text-color,var(--app-B6-N1,#000));display:flex;font-size:var(--cell-font-size,16px);line-height:var(--cell-line-height,24px);padding:var(--cell-vertical-padding,16px) var(--cell-horizontal-padding,16px);position:relative;width:100%}.smart-cell:after{border-bottom:1px solid var(--app-B6-N7,rgba(0,0,0,.1));bottom:0;box-sizing:border-box;content:" ";left:16px;pointer-events:none;position:absolute;right:16px;transform:scaleY(.5);transform-origin:center}.smart-cell--borderless:after{display:none}.smart-cell-group{background-color:var(--cell-background-color,var(--app-B6,#fff))}.smart-cell__label{color:var(--cell-label-color,var(--app-B6-N3,rgba(0,0,0,.5)));font-size:var(--cell-label-font-size,14px);line-height:var(--cell-label-line-height,18px);margin-top:var(--cell-label-margin-top,3px)}.smart-cell__title{align-items:flex-start;display:flex;flex-direction:column;justify-content:center}.smart-cell__value{align-items:center;color:var(--cell-value-color,var(--app-B6-N3,rgba(0,0,0,.5)));display:flex;justify-content:flex-end;overflow:hidden;text-align:right;vertical-align:middle}.smart-cell__title,.smart-cell__value{flex:1}.smart-cell__title:empty,.smart-cell__value:empty{display:none}.smart-cell__left-icon-wrap,.smart-cell__right-icon-wrap{align-items:center;display:flex;font-size:var(--cell-icon-size,24px);height:var(--cell-line-height,24px)}.smart-cell__left-icon-wrap{margin-right:var(--padding-base,4px)}.smart-cell__right-icon-wrap{color:var(--cell-right-icon-color,var(--app-B6-N6,rgba(0,0,0,.2)));margin-left:var(--padding-base,4px)}.smart-cell__left-icon{vertical-align:middle}.smart-cell__left-icon,.smart-cell__right-icon{line-height:var(--cell-line-height,24px)}.smart-cell__right-icon>view{background:var(--cell-right-icon-color,var(--app-B6-N6,rgba(0,0,0,.2)))}.smart-cell--clickable.smart-cell--hover{background-color:var(--cell-active-color,var(--app-B1,#f6f7fb))}.smart-cell--required{overflow:visible}.smart-cell--required:before{color:var(--cell-required-color,var(--app-M2,#f04c4c));content:"*";font-size:var(--cell-font-size,16px);left:var(--padding-xs,8px);position:absolute}
@@ -3,8 +3,8 @@ import downIcon from '@tuya-miniapp/icons/dist/svg/Down';
3
3
  import leftIcon from '@tuya-miniapp/icons/dist/svg/Left';
4
4
  import rightIcon from '@tuya-miniapp/icons/dist/svg/Right';
5
5
  import { link } from '../mixins/link';
6
- import { VantComponent } from '../common/component';
7
- VantComponent({
6
+ import { SmartComponent } from '../common/component';
7
+ SmartComponent({
8
8
  classes: [
9
9
  'title-class',
10
10
  'label-class',
@@ -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
  }
@@ -3,43 +3,43 @@
3
3
 
4
4
  <view
5
5
  class="custom-class {{ utils.bem('cell', [{ required, borderless: !border, clickable: isLink || clickable }]) }}"
6
- hover-class="van-cell--hover hover-class"
6
+ hover-class="smart-cell--hover hover-class"
7
7
  hover-stay-time="70"
8
8
  style="{{ customStyle }}"
9
9
  bind:tap="onClick"
10
10
  >
11
- <van-icon
11
+ <smart-icon
12
12
  wx:if="{{ icon }}"
13
13
  name="{{ icon }}"
14
- class="van-cell__left-icon-wrap"
15
- custom-class="van-cell__left-icon"
14
+ class="smart-cell__left-icon-wrap"
15
+ custom-class="smart-cell__left-icon"
16
16
  />
17
17
  <slot wx:else name="icon" />
18
18
 
19
19
  <view
20
20
  style="{{ computed.titleStyle({ titleWidth, titleStyle }) }}"
21
- class="van-cell__title title-class"
21
+ class="smart-cell__title title-class"
22
22
  >
23
23
 
24
24
  <block wx:if="{{ title }}">{{ title }}</block>
25
25
  <slot wx:else name="title" />
26
26
 
27
- <view wx:if="{{ label || useLabelSlot }}" class="van-cell__label label-class">
27
+ <view wx:if="{{ label || useLabelSlot }}" class="smart-cell__label label-class">
28
28
  <slot wx:if="{{ useLabelSlot }}" name="label" />
29
29
  <block wx:elif="{{ label }}">{{ label }}</block>
30
30
  </view>
31
31
  </view>
32
32
 
33
- <view class="van-cell__value value-class">
33
+ <view class="smart-cell__value value-class">
34
34
  <block wx:if="{{ value || value === 0 }}">{{ value }}</block>
35
35
  <slot wx:else />
36
36
  </view>
37
37
 
38
- <van-icon
38
+ <smart-icon
39
39
  wx:if="{{ isLink }}"
40
40
  name="{{ arrowDirection ? arrowIcons[arrowDirection] : arrowIcons.right }}"
41
- class="van-cell__right-icon-wrap right-icon-class"
42
- custom-class="van-cell__right-icon"
41
+ class="smart-cell__right-icon-wrap right-icon-class"
42
+ custom-class="smart-cell__right-icon"
43
43
  />
44
44
  <slot wx:else name="right-icon" />
45
45
 
@@ -1 +1 @@
1
- @import '../common/index.wxss';.van-cell{align-items:center;background-color:var(--cell-background-color,var(--app-B6,#fff));box-sizing:border-box;color:var(--cell-text-color,var(--app-B6-N1,#000));display:flex;font-size:var(--cell-font-size,16px);line-height:var(--cell-line-height,24px);padding:var(--cell-vertical-padding,16px) var(--cell-horizontal-padding,16px);position:relative;width:100%}.van-cell:after{border-bottom:1px solid var(--app-B6-N7,rgba(0,0,0,.1));bottom:0;box-sizing:border-box;content:" ";left:16px;pointer-events:none;position:absolute;right:16px;transform:scaleY(.5);transform-origin:center}.van-cell--borderless:after{display:none}.van-cell-group{background-color:var(--cell-background-color,var(--app-B6,#fff))}.van-cell__label{color:var(--cell-label-color,var(--app-B6-N3,rgba(0,0,0,.5)));font-size:var(--cell-label-font-size,14px);line-height:var(--cell-label-line-height,18px);margin-top:var(--cell-label-margin-top,3px)}.van-cell__title{align-items:flex-start;display:flex;flex-direction:column;justify-content:center}.van-cell__value{align-items:center;color:var(--cell-value-color,var(--app-B6-N3,rgba(0,0,0,.5)));display:flex;justify-content:flex-end;overflow:hidden;text-align:right;vertical-align:middle}.van-cell__title,.van-cell__value{flex:1}.van-cell__title:empty,.van-cell__value:empty{display:none}.van-cell__left-icon-wrap,.van-cell__right-icon-wrap{align-items:center;display:flex;font-size:var(--cell-icon-size,24px);height:var(--cell-line-height,24px)}.van-cell__left-icon-wrap{margin-right:var(--padding-base,4px)}.van-cell__right-icon-wrap{color:var(--cell-right-icon-color,var(--app-B6-N6,rgba(0,0,0,.2)));margin-left:var(--padding-base,4px)}.van-cell__left-icon{vertical-align:middle}.van-cell__left-icon,.van-cell__right-icon{line-height:var(--cell-line-height,24px)}.van-cell__right-icon>view{background:var(--cell-right-icon-color,var(--app-B6-N6,rgba(0,0,0,.2)))}.van-cell--clickable.van-cell--hover{background-color:var(--cell-active-color,var(--app-B1,#f6f7fb))}.van-cell--required{overflow:visible}.van-cell--required:before{color:var(--cell-required-color,var(--app-M2,#f04c4c));content:"*";font-size:var(--cell-font-size,16px);left:var(--padding-xs,8px);position:absolute}
1
+ @import '../common/index.wxss';.smart-cell{align-items:center;background-color:var(--cell-background-color,var(--app-B6,#fff));box-sizing:border-box;color:var(--cell-text-color,var(--app-B6-N1,#000));display:flex;font-size:var(--cell-font-size,16px);line-height:var(--cell-line-height,24px);padding:var(--cell-vertical-padding,16px) var(--cell-horizontal-padding,16px);position:relative;width:100%}.smart-cell:after{border-bottom:1px solid var(--app-B6-N7,rgba(0,0,0,.1));bottom:0;box-sizing:border-box;content:" ";left:16px;pointer-events:none;position:absolute;right:16px;transform:scaleY(.5);transform-origin:center}.smart-cell--borderless:after{display:none}.smart-cell-group{background-color:var(--cell-background-color,var(--app-B6,#fff))}.smart-cell__label{color:var(--cell-label-color,var(--app-B6-N3,rgba(0,0,0,.5)));font-size:var(--cell-label-font-size,14px);line-height:var(--cell-label-line-height,18px);margin-top:var(--cell-label-margin-top,3px)}.smart-cell__title{align-items:flex-start;display:flex;flex-direction:column;justify-content:center}.smart-cell__value{align-items:center;color:var(--cell-value-color,var(--app-B6-N3,rgba(0,0,0,.5)));display:flex;justify-content:flex-end;overflow:hidden;text-align:right;vertical-align:middle}.smart-cell__title,.smart-cell__value{flex:1}.smart-cell__title:empty,.smart-cell__value:empty{display:none}.smart-cell__left-icon-wrap,.smart-cell__right-icon-wrap{align-items:center;display:flex;font-size:var(--cell-icon-size,24px);height:var(--cell-line-height,24px)}.smart-cell__left-icon-wrap{margin-right:var(--padding-base,4px)}.smart-cell__right-icon-wrap{color:var(--cell-right-icon-color,var(--app-B6-N6,rgba(0,0,0,.2)));margin-left:var(--padding-base,4px)}.smart-cell__left-icon{vertical-align:middle}.smart-cell__left-icon,.smart-cell__right-icon{line-height:var(--cell-line-height,24px)}.smart-cell__right-icon>view{background:var(--cell-right-icon-color,var(--app-B6-N6,rgba(0,0,0,.2)))}.smart-cell--clickable.smart-cell--hover{background-color:var(--cell-active-color,var(--app-B1,#f6f7fb))}.smart-cell--required{overflow:visible}.smart-cell--required:before{color:var(--cell-required-color,var(--app-M2,#f04c4c));content:"*";font-size:var(--cell-font-size,16px);left:var(--padding-xs,8px);position:absolute}
@@ -1 +1 @@
1
- @import '../common/index.css';.van-cell-group--inset{border-radius:var(--cell-group-inset-border-radius,16px);margin:var(--cell-group-inset-padding,0 16px);overflow:hidden}.van-cell-group__title{color:var(--cell-group-title-color,var(--app-B6-N3,rgba(0,0,0,.5)));font-size:var(--cell-group-title-font-size,16px);line-height:var(--cell-group-title-line-height,16px);padding:var(--cell-group-title-padding,16px 16px 8px)}.van-cell-group__title--inset{padding:var(--cell-group-inset-title-padding,16px 16px 8px 32px)}
1
+ @import '../common/index.css';.smart-cell-group--inset{border-radius:var(--cell-group-inset-border-radius,16px);margin:var(--cell-group-inset-padding,0 16px);overflow:hidden}.smart-cell-group__title{color:var(--cell-group-title-color,var(--app-B6-N3,rgba(0,0,0,.5)));font-size:var(--cell-group-title-font-size,16px);line-height:var(--cell-group-title-line-height,16px);padding:var(--cell-group-title-padding,16px 16px 8px)}.smart-cell-group__title--inset{padding:var(--cell-group-inset-title-padding,16px 16px 8px 32px)}
@@ -1,5 +1,5 @@
1
- import { VantComponent } from '../common/component';
2
- VantComponent({
1
+ import { SmartComponent } from '../common/component';
2
+ SmartComponent({
3
3
  props: {
4
4
  title: String,
5
5
  border: {
@@ -6,6 +6,6 @@
6
6
  >
7
7
  {{ title }}
8
8
  </view>
9
- <view class="custom-class {{ utils.bem('cell-group', { inset }) }} {{ border ? 'van-hairline--top-bottom' : '' }}">
9
+ <view class="custom-class {{ utils.bem('cell-group', { inset }) }} {{ border ? 'smart-hairline--top-bottom' : '' }}">
10
10
  <slot />
11
11
  </view>
@@ -1 +1 @@
1
- @import '../common/index.wxss';.van-cell-group--inset{border-radius:var(--cell-group-inset-border-radius,16px);margin:var(--cell-group-inset-padding,0 16px);overflow:hidden}.van-cell-group__title{color:var(--cell-group-title-color,var(--app-B6-N3,rgba(0,0,0,.5)));font-size:var(--cell-group-title-font-size,16px);line-height:var(--cell-group-title-line-height,16px);padding:var(--cell-group-title-padding,16px 16px 8px)}.van-cell-group__title--inset{padding:var(--cell-group-inset-title-padding,16px 16px 8px 32px)}
1
+ @import '../common/index.wxss';.smart-cell-group--inset{border-radius:var(--cell-group-inset-border-radius,16px);margin:var(--cell-group-inset-padding,0 16px);overflow:hidden}.smart-cell-group__title{color:var(--cell-group-title-color,var(--app-B6-N3,rgba(0,0,0,.5)));font-size:var(--cell-group-title-font-size,16px);line-height:var(--cell-group-title-line-height,16px);padding:var(--cell-group-title-padding,16px 16px 8px)}.smart-cell-group__title--inset{padding:var(--cell-group-inset-title-padding,16px 16px 8px 32px)}
@@ -1 +1 @@
1
- @import '../common/index.css';.van-checkbox{align-items:center;display:flex;overflow:hidden;-webkit-user-select:none;user-select:none}.van-checkbox--horizontal{margin-right:12px}.van-checkbox__icon-wrap,.van-checkbox__label{line-height:var(--checkbox-size,20px)}.van-checkbox__icon-wrap{flex:none}.van-checkbox__icon{align-items:center;border:1px solid var(--checkbox-border-color,#c8c9cc);box-sizing:border-box;color:transparent;display:flex;font-size:var(--checkbox-size,20px);height:1em;justify-content:center;text-align:center;transition-duration:var(--checkbox-transition-duration,.2s);transition-property:color,border-color,background-color;width:1em}.van-checkbox__icon--round{border-radius:100%}.van-checkbox__icon--checked{background-color:var(--checkbox-checked-icon-color,#1989fa);border-color:var(--checkbox-checked-icon-color,#1989fa);color:#fff}.van-checkbox__icon--disabled{background-color:var(--checkbox-disabled-background-color,var(--app-B6-N7,rgba(0,0,0,.1)));border-color:var(--checkbox-disabled-icon-color,var(--app-B6-N7,rgba(0,0,0,.1)))}.van-checkbox__icon--disabled.van-checkbox__icon--checked{color:var(--checkbox-disabled-icon-color,var(--app-B6-N7,rgba(0,0,0,.1)))}.van-checkbox__label{word-wrap:break-word;color:var(--checkbox-label-color,var(--app-B6-N3,rgba(0,0,0,.5)));padding-left:var(--checkbox-label-margin,10px)}.van-checkbox__label--left{float:left;margin:0 var(--checkbox-label-margin,10px) 0 0}.van-checkbox__label--disabled{color:var(--checkbox-disabled-label-color,var(--app-B6-N7,rgba(0,0,0,.1)))}.van-checkbox__label:empty{margin:0}
1
+ @import '../common/index.css';.smart-checkbox{align-items:center;display:flex;overflow:hidden;-webkit-user-select:none;user-select:none}.smart-checkbox--horizontal{margin-right:12px}.smart-checkbox__icon-wrap,.smart-checkbox__label{line-height:var(--checkbox-size,20px)}.smart-checkbox__icon-wrap{flex:none}.smart-checkbox__icon{align-items:center;border:1px solid var(--checkbox-border-color,#c8c9cc);box-sizing:border-box;color:transparent;display:flex;font-size:var(--checkbox-size,20px);height:1em;justify-content:center;text-align:center;transition-duration:var(--checkbox-transition-duration,.2s);transition-property:color,border-color,background-color;width:1em}.smart-checkbox__icon--round{border-radius:100%}.smart-checkbox__icon--checked{background-color:var(--checkbox-checked-icon-color,#1989fa);border-color:var(--checkbox-checked-icon-color,#1989fa);color:#fff}.smart-checkbox__icon--disabled{background-color:var(--checkbox-disabled-background-color,var(--app-B6-N7,rgba(0,0,0,.1)));border-color:var(--checkbox-disabled-icon-color,var(--app-B6-N7,rgba(0,0,0,.1)))}.smart-checkbox__icon--disabled.smart-checkbox__icon--checked{color:var(--checkbox-disabled-icon-color,var(--app-B6-N7,rgba(0,0,0,.1)))}.smart-checkbox__label{word-wrap:break-word;color:var(--checkbox-label-color,var(--app-B6-N3,rgba(0,0,0,.5)));padding-left:var(--checkbox-label-margin,10px)}.smart-checkbox__label--left{float:left;margin:0 var(--checkbox-label-margin,10px) 0 0}.smart-checkbox__label--disabled{color:var(--checkbox-disabled-label-color,var(--app-B6-N7,rgba(0,0,0,.1)))}.smart-checkbox__label:empty{margin:0}
@@ -1,11 +1,11 @@
1
1
  import CheckmarkIcon from '@tuya-miniapp/icons/dist/svg/Checkmark';
2
2
  import { useParent } from '../common/relation';
3
- import { VantComponent } from '../common/component';
3
+ import { SmartComponent } from '../common/component';
4
4
  function emit(target, value) {
5
5
  target.$emit('input', value);
6
6
  target.$emit('change', value);
7
7
  }
8
- VantComponent({
8
+ SmartComponent({
9
9
  field: true,
10
10
  relation: useParent('checkbox-group'),
11
11
  classes: ['icon-class', 'label-class'],
@@ -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
  }
@@ -9,9 +9,9 @@
9
9
  >
10
10
  <slot />
11
11
  </view>
12
- <view class="van-checkbox__icon-wrap" bindtap="toggle">
12
+ <view class="smart-checkbox__icon-wrap" bindtap="toggle">
13
13
  <slot wx:if="{{ useIconSlot }}" name="icon" />
14
- <van-icon
14
+ <smart-icon
15
15
  wx:else
16
16
  name="{{icon}}"
17
17
  size="0.8em"
@@ -1 +1 @@
1
- @import '../common/index.wxss';.van-checkbox{align-items:center;display:flex;overflow:hidden;-webkit-user-select:none;user-select:none}.van-checkbox--horizontal{margin-right:12px}.van-checkbox__icon-wrap,.van-checkbox__label{line-height:var(--checkbox-size,20px)}.van-checkbox__icon-wrap{flex:none}.van-checkbox__icon{align-items:center;border:1px solid var(--checkbox-border-color,#c8c9cc);box-sizing:border-box;color:transparent;display:flex;font-size:var(--checkbox-size,20px);height:1em;justify-content:center;text-align:center;transition-duration:var(--checkbox-transition-duration,.2s);transition-property:color,border-color,background-color;width:1em}.van-checkbox__icon--round{border-radius:100%}.van-checkbox__icon--checked{background-color:var(--checkbox-checked-icon-color,#1989fa);border-color:var(--checkbox-checked-icon-color,#1989fa);color:#fff}.van-checkbox__icon--disabled{background-color:var(--checkbox-disabled-background-color,var(--app-B6-N7,rgba(0,0,0,.1)));border-color:var(--checkbox-disabled-icon-color,var(--app-B6-N7,rgba(0,0,0,.1)))}.van-checkbox__icon--disabled.van-checkbox__icon--checked{color:var(--checkbox-disabled-icon-color,var(--app-B6-N7,rgba(0,0,0,.1)))}.van-checkbox__label{word-wrap:break-word;color:var(--checkbox-label-color,var(--app-B6-N3,rgba(0,0,0,.5)));padding-left:var(--checkbox-label-margin,10px)}.van-checkbox__label--left{float:left;margin:0 var(--checkbox-label-margin,10px) 0 0}.van-checkbox__label--disabled{color:var(--checkbox-disabled-label-color,var(--app-B6-N7,rgba(0,0,0,.1)))}.van-checkbox__label:empty{margin:0}
1
+ @import '../common/index.wxss';.smart-checkbox{align-items:center;display:flex;overflow:hidden;-webkit-user-select:none;user-select:none}.smart-checkbox--horizontal{margin-right:12px}.smart-checkbox__icon-wrap,.smart-checkbox__label{line-height:var(--checkbox-size,20px)}.smart-checkbox__icon-wrap{flex:none}.smart-checkbox__icon{align-items:center;border:1px solid var(--checkbox-border-color,#c8c9cc);box-sizing:border-box;color:transparent;display:flex;font-size:var(--checkbox-size,20px);height:1em;justify-content:center;text-align:center;transition-duration:var(--checkbox-transition-duration,.2s);transition-property:color,border-color,background-color;width:1em}.smart-checkbox__icon--round{border-radius:100%}.smart-checkbox__icon--checked{background-color:var(--checkbox-checked-icon-color,#1989fa);border-color:var(--checkbox-checked-icon-color,#1989fa);color:#fff}.smart-checkbox__icon--disabled{background-color:var(--checkbox-disabled-background-color,var(--app-B6-N7,rgba(0,0,0,.1)));border-color:var(--checkbox-disabled-icon-color,var(--app-B6-N7,rgba(0,0,0,.1)))}.smart-checkbox__icon--disabled.smart-checkbox__icon--checked{color:var(--checkbox-disabled-icon-color,var(--app-B6-N7,rgba(0,0,0,.1)))}.smart-checkbox__label{word-wrap:break-word;color:var(--checkbox-label-color,var(--app-B6-N3,rgba(0,0,0,.5)));padding-left:var(--checkbox-label-margin,10px)}.smart-checkbox__label--left{float:left;margin:0 var(--checkbox-label-margin,10px) 0 0}.smart-checkbox__label--disabled{color:var(--checkbox-disabled-label-color,var(--app-B6-N7,rgba(0,0,0,.1)))}.smart-checkbox__label:empty{margin:0}
@@ -1 +1 @@
1
- @import '../common/index.css';.van-checkbox-group--horizontal{display:flex;flex-wrap:wrap}
1
+ @import '../common/index.css';.smart-checkbox-group--horizontal{display:flex;flex-wrap:wrap}
@@ -1,6 +1,6 @@
1
1
  import { useChildren } from '../common/relation';
2
- import { VantComponent } from '../common/component';
3
- VantComponent({
2
+ import { SmartComponent } from '../common/component';
3
+ SmartComponent({
4
4
  field: true,
5
5
  relation: useChildren('checkbox', function (target) {
6
6
  this.updateChild(target);
@@ -1 +1 @@
1
- @import '../common/index.wxss';.van-checkbox-group--horizontal{display:flex;flex-wrap:wrap}
1
+ @import '../common/index.wxss';.smart-checkbox-group--horizontal{display:flex;flex-wrap:wrap}
@@ -1 +1 @@
1
- @import '../common/index.css';.van-progress-circle{align-items:center;border-radius:50%;box-sizing:border-box;display:flex;height:100px;justify-content:center;overflow:hidden;position:relative;width:100px}.van-progress-circle-box{height:100%;overflow:hidden;position:absolute;top:0;width:50%}.van-progress-circle-box-left{left:0}.van-progress-circle-box-right{right:0}.van-progress-circle-bar{height:100%;width:100%}.van-progress-circle-bar-left{transform-origin:right}.van-progress-circle-bar-right{transform-origin:left}.van-progress-circle-content{align-items:center;background:var(--app-B1,#f6f7fb);border-radius:50%;display:flex;height:100%;justify-content:center;position:relative;width:100%}
1
+ @import '../common/index.css';.smart-progress-circle{align-items:center;border-radius:50%;box-sizing:border-box;display:flex;height:100px;justify-content:center;overflow:hidden;position:relative;width:100px}.smart-progress-circle-box{height:100%;overflow:hidden;position:absolute;top:0;width:50%}.smart-progress-circle-box-left{left:0}.smart-progress-circle-box-right{right:0}.smart-progress-circle-bar{height:100%;width:100%}.smart-progress-circle-bar-left{transform-origin:right}.smart-progress-circle-bar-right{transform-origin:left}.smart-progress-circle-content{align-items:center;background:var(--app-B1,#f6f7fb);border-radius:50%;display:flex;height:100%;justify-content:center;position:relative;width:100%}
@@ -1,6 +1,6 @@
1
- import { VantComponent } from '../common/component';
1
+ import { SmartComponent } from '../common/component';
2
2
  // @ts-ignore
3
- VantComponent({
3
+ SmartComponent({
4
4
  props: {
5
5
  className: String,
6
6
  style: String,
@@ -1,13 +1,13 @@
1
- <view class="van-progress-circle" style="width:{{size}}px;height:{{size}}px;padding:{{trackWidth}}px;background:{{fillColor}};{{style}}">
2
- <view class="van-progress-circle-box van-progress-circle-box-left">
3
- <view class="van-progress-circle-bar van-progress-circle-bar-left" style="transform:{{transformLeft}};background:{{trackColor}};">
1
+ <view class="smart-progress-circle" style="width:{{size}}px;height:{{size}}px;padding:{{trackWidth}}px;background:{{fillColor}};{{style}}">
2
+ <view class="smart-progress-circle-box smart-progress-circle-box-left">
3
+ <view class="smart-progress-circle-bar smart-progress-circle-bar-left" style="transform:{{transformLeft}};background:{{trackColor}};">
4
4
  </view>
5
5
  </view>
6
- <view class="van-progress-circle-box van-progress-circle-box-right">
7
- <view class="van-progress-circle-bar van-progress-circle-bar-right" style="transform:{{transformRight}};background:{{trackColor}};">
6
+ <view class="smart-progress-circle-box smart-progress-circle-box-right">
7
+ <view class="smart-progress-circle-bar smart-progress-circle-bar-right" style="transform:{{transformRight}};background:{{trackColor}};">
8
8
  </view>
9
9
  </view>
10
- <view class="van-progress-circle-content" style="background:{{maskColor}};">
10
+ <view class="smart-progress-circle-content" style="background:{{maskColor}};">
11
11
  <slot></slot>
12
12
  </view>
13
13
  </view>
@@ -1 +1 @@
1
- @import '../common/index.wxss';.van-progress-circle{align-items:center;border-radius:50%;box-sizing:border-box;display:flex;height:100px;justify-content:center;overflow:hidden;position:relative;width:100px}.van-progress-circle-box{height:100%;overflow:hidden;position:absolute;top:0;width:50%}.van-progress-circle-box-left{left:0}.van-progress-circle-box-right{right:0}.van-progress-circle-bar{height:100%;width:100%}.van-progress-circle-bar-left{transform-origin:right}.van-progress-circle-bar-right{transform-origin:left}.van-progress-circle-content{align-items:center;background:var(--app-B1,#f6f7fb);border-radius:50%;display:flex;height:100%;justify-content:center;position:relative;width:100%}
1
+ @import '../common/index.wxss';.smart-progress-circle{align-items:center;border-radius:50%;box-sizing:border-box;display:flex;height:100px;justify-content:center;overflow:hidden;position:relative;width:100px}.smart-progress-circle-box{height:100%;overflow:hidden;position:absolute;top:0;width:50%}.smart-progress-circle-box-left{left:0}.smart-progress-circle-box-right{right:0}.smart-progress-circle-bar{height:100%;width:100%}.smart-progress-circle-bar-left{transform-origin:right}.smart-progress-circle-bar-right{transform-origin:left}.smart-progress-circle-content{align-items:center;background:var(--app-B1,#f6f7fb);border-radius:50%;display:flex;height:100%;justify-content:center;position:relative;width:100%}
@@ -1 +1 @@
1
- @import '../common/index.css';.van-col{box-sizing:border-box;float:left}.van-col--1{width:4.16666667%}.van-col--offset-1{margin-left:4.16666667%}.van-col--2{width:8.33333333%}.van-col--offset-2{margin-left:8.33333333%}.van-col--3{width:12.5%}.van-col--offset-3{margin-left:12.5%}.van-col--4{width:16.66666667%}.van-col--offset-4{margin-left:16.66666667%}.van-col--5{width:20.83333333%}.van-col--offset-5{margin-left:20.83333333%}.van-col--6{width:25%}.van-col--offset-6{margin-left:25%}.van-col--7{width:29.16666667%}.van-col--offset-7{margin-left:29.16666667%}.van-col--8{width:33.33333333%}.van-col--offset-8{margin-left:33.33333333%}.van-col--9{width:37.5%}.van-col--offset-9{margin-left:37.5%}.van-col--10{width:41.66666667%}.van-col--offset-10{margin-left:41.66666667%}.van-col--11{width:45.83333333%}.van-col--offset-11{margin-left:45.83333333%}.van-col--12{width:50%}.van-col--offset-12{margin-left:50%}.van-col--13{width:54.16666667%}.van-col--offset-13{margin-left:54.16666667%}.van-col--14{width:58.33333333%}.van-col--offset-14{margin-left:58.33333333%}.van-col--15{width:62.5%}.van-col--offset-15{margin-left:62.5%}.van-col--16{width:66.66666667%}.van-col--offset-16{margin-left:66.66666667%}.van-col--17{width:70.83333333%}.van-col--offset-17{margin-left:70.83333333%}.van-col--18{width:75%}.van-col--offset-18{margin-left:75%}.van-col--19{width:79.16666667%}.van-col--offset-19{margin-left:79.16666667%}.van-col--20{width:83.33333333%}.van-col--offset-20{margin-left:83.33333333%}.van-col--21{width:87.5%}.van-col--offset-21{margin-left:87.5%}.van-col--22{width:91.66666667%}.van-col--offset-22{margin-left:91.66666667%}.van-col--23{width:95.83333333%}.van-col--offset-23{margin-left:95.83333333%}.van-col--24{width:100%}.van-col--offset-24{margin-left:100%}
1
+ @import '../common/index.css';.smart-col{box-sizing:border-box;float:left}.smart-col--1{width:4.16666667%}.smart-col--offset-1{margin-left:4.16666667%}.smart-col--2{width:8.33333333%}.smart-col--offset-2{margin-left:8.33333333%}.smart-col--3{width:12.5%}.smart-col--offset-3{margin-left:12.5%}.smart-col--4{width:16.66666667%}.smart-col--offset-4{margin-left:16.66666667%}.smart-col--5{width:20.83333333%}.smart-col--offset-5{margin-left:20.83333333%}.smart-col--6{width:25%}.smart-col--offset-6{margin-left:25%}.smart-col--7{width:29.16666667%}.smart-col--offset-7{margin-left:29.16666667%}.smart-col--8{width:33.33333333%}.smart-col--offset-8{margin-left:33.33333333%}.smart-col--9{width:37.5%}.smart-col--offset-9{margin-left:37.5%}.smart-col--10{width:41.66666667%}.smart-col--offset-10{margin-left:41.66666667%}.smart-col--11{width:45.83333333%}.smart-col--offset-11{margin-left:45.83333333%}.smart-col--12{width:50%}.smart-col--offset-12{margin-left:50%}.smart-col--13{width:54.16666667%}.smart-col--offset-13{margin-left:54.16666667%}.smart-col--14{width:58.33333333%}.smart-col--offset-14{margin-left:58.33333333%}.smart-col--15{width:62.5%}.smart-col--offset-15{margin-left:62.5%}.smart-col--16{width:66.66666667%}.smart-col--offset-16{margin-left:66.66666667%}.smart-col--17{width:70.83333333%}.smart-col--offset-17{margin-left:70.83333333%}.smart-col--18{width:75%}.smart-col--offset-18{margin-left:75%}.smart-col--19{width:79.16666667%}.smart-col--offset-19{margin-left:79.16666667%}.smart-col--20{width:83.33333333%}.smart-col--offset-20{margin-left:83.33333333%}.smart-col--21{width:87.5%}.smart-col--offset-21{margin-left:87.5%}.smart-col--22{width:91.66666667%}.smart-col--offset-22{margin-left:91.66666667%}.smart-col--23{width:95.83333333%}.smart-col--offset-23{margin-left:95.83333333%}.smart-col--24{width:100%}.smart-col--offset-24{margin-left:100%}
package/dist/col/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { useParent } from '../common/relation';
2
- import { VantComponent } from '../common/component';
3
- VantComponent({
2
+ import { SmartComponent } from '../common/component';
3
+ SmartComponent({
4
4
  relation: useParent('row'),
5
5
  props: {
6
6
  span: Number,
@@ -2,7 +2,7 @@
2
2
  <wxs src="./index.wxs" module="computed" />
3
3
 
4
4
  <view
5
- class="custom-class {{ utils.bem('col', [span]) }} {{ offset ? 'van-col--offset-' + offset : '' }}"
5
+ class="custom-class {{ utils.bem('col', [span]) }} {{ offset ? 'smart-col--offset-' + offset : '' }}"
6
6
  style="{{ computed.rootStyle({ gutter }) }}"
7
7
  >
8
8
  <slot />
@@ -1 +1 @@
1
- @import '../common/index.wxss';.van-col{box-sizing:border-box;float:left}.van-col--1{width:4.16666667%}.van-col--offset-1{margin-left:4.16666667%}.van-col--2{width:8.33333333%}.van-col--offset-2{margin-left:8.33333333%}.van-col--3{width:12.5%}.van-col--offset-3{margin-left:12.5%}.van-col--4{width:16.66666667%}.van-col--offset-4{margin-left:16.66666667%}.van-col--5{width:20.83333333%}.van-col--offset-5{margin-left:20.83333333%}.van-col--6{width:25%}.van-col--offset-6{margin-left:25%}.van-col--7{width:29.16666667%}.van-col--offset-7{margin-left:29.16666667%}.van-col--8{width:33.33333333%}.van-col--offset-8{margin-left:33.33333333%}.van-col--9{width:37.5%}.van-col--offset-9{margin-left:37.5%}.van-col--10{width:41.66666667%}.van-col--offset-10{margin-left:41.66666667%}.van-col--11{width:45.83333333%}.van-col--offset-11{margin-left:45.83333333%}.van-col--12{width:50%}.van-col--offset-12{margin-left:50%}.van-col--13{width:54.16666667%}.van-col--offset-13{margin-left:54.16666667%}.van-col--14{width:58.33333333%}.van-col--offset-14{margin-left:58.33333333%}.van-col--15{width:62.5%}.van-col--offset-15{margin-left:62.5%}.van-col--16{width:66.66666667%}.van-col--offset-16{margin-left:66.66666667%}.van-col--17{width:70.83333333%}.van-col--offset-17{margin-left:70.83333333%}.van-col--18{width:75%}.van-col--offset-18{margin-left:75%}.van-col--19{width:79.16666667%}.van-col--offset-19{margin-left:79.16666667%}.van-col--20{width:83.33333333%}.van-col--offset-20{margin-left:83.33333333%}.van-col--21{width:87.5%}.van-col--offset-21{margin-left:87.5%}.van-col--22{width:91.66666667%}.van-col--offset-22{margin-left:91.66666667%}.van-col--23{width:95.83333333%}.van-col--offset-23{margin-left:95.83333333%}.van-col--24{width:100%}.van-col--offset-24{margin-left:100%}
1
+ @import '../common/index.wxss';.smart-col{box-sizing:border-box;float:left}.smart-col--1{width:4.16666667%}.smart-col--offset-1{margin-left:4.16666667%}.smart-col--2{width:8.33333333%}.smart-col--offset-2{margin-left:8.33333333%}.smart-col--3{width:12.5%}.smart-col--offset-3{margin-left:12.5%}.smart-col--4{width:16.66666667%}.smart-col--offset-4{margin-left:16.66666667%}.smart-col--5{width:20.83333333%}.smart-col--offset-5{margin-left:20.83333333%}.smart-col--6{width:25%}.smart-col--offset-6{margin-left:25%}.smart-col--7{width:29.16666667%}.smart-col--offset-7{margin-left:29.16666667%}.smart-col--8{width:33.33333333%}.smart-col--offset-8{margin-left:33.33333333%}.smart-col--9{width:37.5%}.smart-col--offset-9{margin-left:37.5%}.smart-col--10{width:41.66666667%}.smart-col--offset-10{margin-left:41.66666667%}.smart-col--11{width:45.83333333%}.smart-col--offset-11{margin-left:45.83333333%}.smart-col--12{width:50%}.smart-col--offset-12{margin-left:50%}.smart-col--13{width:54.16666667%}.smart-col--offset-13{margin-left:54.16666667%}.smart-col--14{width:58.33333333%}.smart-col--offset-14{margin-left:58.33333333%}.smart-col--15{width:62.5%}.smart-col--offset-15{margin-left:62.5%}.smart-col--16{width:66.66666667%}.smart-col--offset-16{margin-left:66.66666667%}.smart-col--17{width:70.83333333%}.smart-col--offset-17{margin-left:70.83333333%}.smart-col--18{width:75%}.smart-col--offset-18{margin-left:75%}.smart-col--19{width:79.16666667%}.smart-col--offset-19{margin-left:79.16666667%}.smart-col--20{width:83.33333333%}.smart-col--offset-20{margin-left:83.33333333%}.smart-col--21{width:87.5%}.smart-col--offset-21{margin-left:87.5%}.smart-col--22{width:91.66666667%}.smart-col--offset-22{margin-left:91.66666667%}.smart-col--23{width:95.83333333%}.smart-col--offset-23{margin-left:95.83333333%}.smart-col--24{width:100%}.smart-col--offset-24{margin-left:100%}
@@ -1,6 +1,6 @@
1
- import { VantComponent } from '../common/component';
1
+ import { SmartComponent } from '../common/component';
2
2
  import { useChildren } from '../common/relation';
3
- VantComponent({
3
+ SmartComponent({
4
4
  relation: useChildren('collapse-item'),
5
5
  props: {
6
6
  value: {
@@ -1,3 +1,3 @@
1
- <view class="custom-class van-collapse {{ border ? 'van-hairline--top-bottom' : '' }}">
1
+ <view class="custom-class smart-collapse {{ border ? 'smart-hairline--top-bottom' : '' }}">
2
2
  <slot />
3
3
  </view>
@@ -31,7 +31,7 @@ function useAnimation(context, expanded, mounted, height) {
31
31
  });
32
32
  }
33
33
  export function setContentAnimate(context, expanded, mounted) {
34
- getRect(context, '.van-collapse-item__content')
34
+ getRect(context, '.smart-collapse-item__content')
35
35
  .then((rect) => rect.height)
36
36
  .then((height) => {
37
37
  useAnimation(context, expanded, mounted, height);
@@ -1 +1 @@
1
- @import '../common/index.css';.van-collapse-item__title .van-cell__right-icon{transform:rotate(90deg);transition:transform var(--collapse-item-transition-duration,.3s)}.van-collapse-item__title--expanded .van-cell__right-icon{transform:rotate(-90deg)}.van-collapse-item__title--disabled .van-cell,.van-collapse-item__title--disabled .van-cell__right-icon{color:var(--collapse-item-title-disabled-color,#c8c9cc)!important}.van-collapse-item__title--disabled .van-cell--hover{background-color:#fff!important}.van-collapse-item__wrapper{overflow:hidden}.van-collapse-item__content{background-color:var(--collapse-item-content-background-color,var(--app-B6,#fff));color:var(--collapse-item-content-text-color,#969799);font-size:var(--collapse-item-content-font-size,13px);line-height:var(--collapse-item-content-line-height,1.5);padding:var(--collapse-item-content-padding,15px)}
1
+ @import '../common/index.css';.smart-collapse-item__title .smart-cell__right-icon{transform:rotate(90deg);transition:transform var(--collapse-item-transition-duration,.3s)}.smart-collapse-item__title--expanded .smart-cell__right-icon{transform:rotate(-90deg)}.smart-collapse-item__title--disabled .smart-cell,.smart-collapse-item__title--disabled .smart-cell__right-icon{color:var(--collapse-item-title-disabled-color,#c8c9cc)!important}.smart-collapse-item__title--disabled .smart-cell--hover{background-color:#fff!important}.smart-collapse-item__wrapper{overflow:hidden}.smart-collapse-item__content{background-color:var(--collapse-item-content-background-color,var(--app-B6,#fff));color:var(--collapse-item-content-text-color,#969799);font-size:var(--collapse-item-content-font-size,13px);line-height:var(--collapse-item-content-line-height,1.5);padding:var(--collapse-item-content-padding,15px)}
@@ -1,7 +1,7 @@
1
- import { VantComponent } from '../common/component';
1
+ import { SmartComponent } from '../common/component';
2
2
  import { useParent } from '../common/relation';
3
3
  import { setContentAnimate } from './animate';
4
- VantComponent({
4
+ SmartComponent({
5
5
  classes: ['title-class', 'content-class'],
6
6
  relation: useParent('collapse'),
7
7
  props: {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "component": true,
3
3
  "usingComponents": {
4
- "van-cell": "../cell/index"
4
+ "smart-cell": "../cell/index"
5
5
  }
6
6
  }
@@ -1,7 +1,7 @@
1
1
  <wxs src="../wxs/utils.wxs" module="utils" />
2
2
 
3
- <view class="van-collapse-item custom-class {{ index !== 0 ? 'van-hairline--top' : '' }}">
4
- <van-cell
3
+ <view class="smart-collapse-item custom-class {{ index !== 0 ? 'smart-hairline--top' : '' }}">
4
+ <smart-cell
5
5
  size="{{ size }}"
6
6
  title="{{ title }}"
7
7
  title-class="title-class"
@@ -12,9 +12,9 @@
12
12
  clickable="{{ clickable }}"
13
13
  border="{{ border && expanded }}"
14
14
  class="{{ utils.bem('collapse-item__title', { disabled, expanded }) }}"
15
- right-icon-class="van-cell__right-icon"
16
- custom-class="van-cell"
17
- hover-class="van-cell--hover"
15
+ right-icon-class="smart-cell__right-icon"
16
+ custom-class="smart-cell"
17
+ hover-class="smart-cell--hover"
18
18
  bind:click="onClick"
19
19
  >
20
20
  <slot
@@ -30,14 +30,14 @@
30
30
  name="right-icon"
31
31
  slot="right-icon"
32
32
  />
33
- </van-cell>
33
+ </smart-cell>
34
34
  <view
35
35
  class="{{ utils.bem('collapse-item__wrapper') }}"
36
36
  style="height: 0;"
37
37
  animation="{{ animation }}"
38
38
  >
39
39
  <view
40
- class="van-collapse-item__content content-class"
40
+ class="smart-collapse-item__content content-class"
41
41
  >
42
42
  <slot />
43
43
  </view>
@@ -1 +1 @@
1
- @import '../common/index.wxss';.van-collapse-item__title .van-cell__right-icon{transform:rotate(90deg);transition:transform var(--collapse-item-transition-duration,.3s)}.van-collapse-item__title--expanded .van-cell__right-icon{transform:rotate(-90deg)}.van-collapse-item__title--disabled .van-cell,.van-collapse-item__title--disabled .van-cell__right-icon{color:var(--collapse-item-title-disabled-color,#c8c9cc)!important}.van-collapse-item__title--disabled .van-cell--hover{background-color:#fff!important}.van-collapse-item__wrapper{overflow:hidden}.van-collapse-item__content{background-color:var(--collapse-item-content-background-color,var(--app-B6,#fff));color:var(--collapse-item-content-text-color,#969799);font-size:var(--collapse-item-content-font-size,13px);line-height:var(--collapse-item-content-line-height,1.5);padding:var(--collapse-item-content-padding,15px)}
1
+ @import '../common/index.wxss';.smart-collapse-item__title .smart-cell__right-icon{transform:rotate(90deg);transition:transform var(--collapse-item-transition-duration,.3s)}.smart-collapse-item__title--expanded .smart-cell__right-icon{transform:rotate(-90deg)}.smart-collapse-item__title--disabled .smart-cell,.smart-collapse-item__title--disabled .smart-cell__right-icon{color:var(--collapse-item-title-disabled-color,#c8c9cc)!important}.smart-collapse-item__title--disabled .smart-cell--hover{background-color:#fff!important}.smart-collapse-item__wrapper{overflow:hidden}.smart-collapse-item__content{background-color:var(--collapse-item-content-background-color,var(--app-B6,#fff));color:var(--collapse-item-content-text-color,#969799);font-size:var(--collapse-item-content-font-size,13px);line-height:var(--collapse-item-content-line-height,1.5);padding:var(--collapse-item-content-padding,15px)}
@@ -1,4 +1,4 @@
1
1
  /// <reference types="miniprogram-api-typings" />
2
- import { VantComponentOptions } from 'definitions/index';
3
- declare function VantComponent<Data extends WechatMiniprogram.Component.DataOption, Props extends WechatMiniprogram.Component.PropertyOption, Methods extends WechatMiniprogram.Component.MethodOption>(vantOptions: VantComponentOptions<Data, Props, Methods>): void;
4
- export { VantComponent };
2
+ import { SmartComponentOptions } from 'definitions/index';
3
+ declare function SmartComponent<Data extends WechatMiniprogram.Component.DataOption, Props extends WechatMiniprogram.Component.PropertyOption, Methods extends WechatMiniprogram.Component.MethodOption>(smartOptions: SmartComponentOptions<Data, Props, Methods>): void;
4
+ export { SmartComponent };
@@ -6,9 +6,9 @@ function mapKeys(source, target, map) {
6
6
  }
7
7
  });
8
8
  }
9
- function VantComponent(vantOptions) {
9
+ function SmartComponent(smartOptions) {
10
10
  const options = {};
11
- mapKeys(vantOptions, options, {
11
+ mapKeys(smartOptions, options, {
12
12
  data: 'data',
13
13
  props: 'properties',
14
14
  watch: 'observers',
@@ -27,13 +27,13 @@ function VantComponent(vantOptions) {
27
27
  options.behaviors = options.behaviors || [];
28
28
  options.behaviors.push(basic);
29
29
  // add relations
30
- const { relation } = vantOptions;
30
+ const { relation } = smartOptions;
31
31
  if (relation) {
32
32
  options.relations = relation.relations;
33
33
  options.behaviors.push(relation.mixin);
34
34
  }
35
35
  // map field to form-field behavior
36
- // if (vantOptions.field) {
36
+ // if (smartOptions.field) {
37
37
  // options.behaviors.push('wx://form-field');
38
38
  // }
39
39
  // add default options
@@ -43,4 +43,4 @@ function VantComponent(vantOptions) {
43
43
  };
44
44
  Component(options);
45
45
  }
46
- export { VantComponent };
46
+ export { SmartComponent };
@@ -1 +1 @@
1
- .van-ellipsis{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.van-multi-ellipsis--l2{-webkit-line-clamp:2}.van-multi-ellipsis--l2,.van-multi-ellipsis--l3{-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden;text-overflow:ellipsis}.van-multi-ellipsis--l3{-webkit-line-clamp:3}.van-clearfix:after{clear:both;content:"";display:table}.van-hairline,.van-hairline--bottom,.van-hairline--left,.van-hairline--right,.van-hairline--surround,.van-hairline--top,.van-hairline--top-bottom{position:relative}.van-hairline--bottom:after,.van-hairline--left:after,.van-hairline--right:after,.van-hairline--surround:after,.van-hairline--top-bottom:after,.van-hairline--top:after,.van-hairline:after{border:0 solid var(--app-B6-N7,rgba(0,0,0,.1));bottom:-50%;box-sizing:border-box;content:" ";left:-50%;pointer-events:none;position:absolute;right:-50%;top:-50%;transform:scale(.5);transform-origin:center}.van-hairline--top:after{border-top-width:1px}.van-hairline--left:after{border-left-width:1px}.van-hairline--right:after{border-right-width:1px}.van-hairline--bottom:after{border-bottom-width:1px}.van-hairline--top-bottom:after{border-width:1px 0}.van-hairline--surround:after{border-width:1px}
1
+ .smart-ellipsis{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.smart-multi-ellipsis--l2{-webkit-line-clamp:2}.smart-multi-ellipsis--l2,.smart-multi-ellipsis--l3{-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden;text-overflow:ellipsis}.smart-multi-ellipsis--l3{-webkit-line-clamp:3}.smart-clearfix:after{clear:both;content:"";display:table}.smart-hairline,.smart-hairline--bottom,.smart-hairline--left,.smart-hairline--right,.smart-hairline--surround,.smart-hairline--top,.smart-hairline--top-bottom{position:relative}.smart-hairline--bottom:after,.smart-hairline--left:after,.smart-hairline--right:after,.smart-hairline--surround:after,.smart-hairline--top-bottom:after,.smart-hairline--top:after,.smart-hairline:after{border:0 solid var(--app-B6-N7,rgba(0,0,0,.1));bottom:-50%;box-sizing:border-box;content:" ";left:-50%;pointer-events:none;position:absolute;right:-50%;top:-50%;transform:scale(.5);transform-origin:center}.smart-hairline--top:after{border-top-width:1px}.smart-hairline--left:after{border-left-width:1px}.smart-hairline--right:after{border-right-width:1px}.smart-hairline--bottom:after{border-bottom-width:1px}.smart-hairline--top-bottom:after{border-width:1px 0}.smart-hairline--surround:after{border-width:1px}
@@ -1 +1 @@
1
- .van-ellipsis{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.van-multi-ellipsis--l2{-webkit-line-clamp:2}.van-multi-ellipsis--l2,.van-multi-ellipsis--l3{-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden;text-overflow:ellipsis}.van-multi-ellipsis--l3{-webkit-line-clamp:3}.van-clearfix:after{clear:both;content:"";display:table}.van-hairline,.van-hairline--bottom,.van-hairline--left,.van-hairline--right,.van-hairline--surround,.van-hairline--top,.van-hairline--top-bottom{position:relative}.van-hairline--bottom:after,.van-hairline--left:after,.van-hairline--right:after,.van-hairline--surround:after,.van-hairline--top-bottom:after,.van-hairline--top:after,.van-hairline:after{border:0 solid var(--app-B6-N7,rgba(0,0,0,.1));bottom:-50%;box-sizing:border-box;content:" ";left:-50%;pointer-events:none;position:absolute;right:-50%;top:-50%;transform:scale(.5);transform-origin:center}.van-hairline--top:after{border-top-width:1px}.van-hairline--left:after{border-left-width:1px}.van-hairline--right:after{border-right-width:1px}.van-hairline--bottom:after{border-bottom-width:1px}.van-hairline--top-bottom:after{border-width:1px 0}.van-hairline--surround:after{border-width:1px}
1
+ .smart-ellipsis{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.smart-multi-ellipsis--l2{-webkit-line-clamp:2}.smart-multi-ellipsis--l2,.smart-multi-ellipsis--l3{-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden;text-overflow:ellipsis}.smart-multi-ellipsis--l3{-webkit-line-clamp:3}.smart-clearfix:after{clear:both;content:"";display:table}.smart-hairline,.smart-hairline--bottom,.smart-hairline--left,.smart-hairline--right,.smart-hairline--surround,.smart-hairline--top,.smart-hairline--top-bottom{position:relative}.smart-hairline--bottom:after,.smart-hairline--left:after,.smart-hairline--right:after,.smart-hairline--surround:after,.smart-hairline--top-bottom:after,.smart-hairline--top:after,.smart-hairline:after{border:0 solid var(--app-B6-N7,rgba(0,0,0,.1));bottom:-50%;box-sizing:border-box;content:" ";left:-50%;pointer-events:none;position:absolute;right:-50%;top:-50%;transform:scale(.5);transform-origin:center}.smart-hairline--top:after{border-top-width:1px}.smart-hairline--left:after{border-left-width:1px}.smart-hairline--right:after{border-right-width:1px}.smart-hairline--bottom:after{border-bottom-width:1px}.smart-hairline--top-bottom:after{border-width:1px 0}.smart-hairline--surround:after{border-width:1px}