@tuya-miniapp/smart-ui 1.3.1-beta-3 → 1.3.1-beta-5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (370) hide show
  1. package/dist/action-sheet/demo/index.d.ts +1 -0
  2. package/dist/action-sheet/demo/index.js +105 -0
  3. package/dist/action-sheet/index.js +2 -2
  4. package/dist/area/demo/index.d.ts +1 -0
  5. package/dist/area/demo/index.js +41 -0
  6. package/dist/area/index.js +4 -5
  7. package/dist/battery/demo/index.d.ts +1 -0
  8. package/dist/battery/demo/index.js +2 -0
  9. package/dist/battery/index.js +1 -3
  10. package/dist/bottom-sheet/demo/index.d.ts +1 -0
  11. package/dist/bottom-sheet/demo/index.js +24 -0
  12. package/dist/bottom-sheet/index.css +1 -1
  13. package/dist/bottom-sheet/index.js +3 -2
  14. package/dist/bottom-sheet/index.wxml +3 -1
  15. package/dist/bottom-sheet/index.wxss +1 -1
  16. package/dist/button/demo/index.d.ts +1 -0
  17. package/dist/button/demo/index.js +9 -0
  18. package/dist/button/index.css +1 -1
  19. package/dist/button/index.js +1 -1
  20. package/dist/button/index.wxss +1 -1
  21. package/dist/calendar/components/header/index.css +1 -1
  22. package/dist/calendar/components/header/index.js +1 -1
  23. package/dist/calendar/components/header/index.wxml +3 -3
  24. package/dist/calendar/components/header/index.wxss +1 -1
  25. package/dist/calendar/components/month/index.css +1 -1
  26. package/dist/calendar/components/month/index.js +3 -5
  27. package/dist/calendar/components/month/index.wxs +1 -4
  28. package/dist/calendar/components/month/index.wxss +1 -1
  29. package/dist/calendar/components/month-list/index.css +1 -1
  30. package/dist/calendar/components/month-list/index.js +4 -17
  31. package/dist/calendar/components/month-list/index.wxml +15 -13
  32. package/dist/calendar/components/month-list/index.wxss +1 -1
  33. package/dist/calendar/components/year-list/index.css +1 -1
  34. package/dist/calendar/components/year-list/index.js +3 -3
  35. package/dist/calendar/components/year-list/index.wxml +1 -1
  36. package/dist/calendar/components/year-list/index.wxss +1 -1
  37. package/dist/calendar/demo/index.d.ts +1 -0
  38. package/dist/calendar/demo/index.js +103 -0
  39. package/dist/calendar/index.js +9 -14
  40. package/dist/calendar/index.wxs +4 -7
  41. package/dist/calendar/utils.js +2 -4
  42. package/dist/cascader/demo/index.d.ts +1 -0
  43. package/dist/cascader/demo/index.js +191 -0
  44. package/dist/cascader/index.js +3 -3
  45. package/dist/cell/demo/index.d.ts +1 -0
  46. package/dist/cell/demo/index.js +14 -0
  47. package/dist/cell/index.js +1 -7
  48. package/dist/checkbox/demo/index.d.ts +1 -0
  49. package/dist/checkbox/demo/index.js +34 -0
  50. package/dist/checkbox/index.js +2 -2
  51. package/dist/checkbox-group/index.js +1 -1
  52. package/dist/circle/demo/index.d.ts +1 -0
  53. package/dist/circle/demo/index.js +19 -0
  54. package/dist/col/demo/index.d.ts +1 -0
  55. package/dist/col/demo/index.js +4 -0
  56. package/dist/collapse/demo/index.d.ts +1 -0
  57. package/dist/collapse/demo/index.js +36 -0
  58. package/dist/collapse/index.js +1 -1
  59. package/dist/collapse-item/animate.js +1 -1
  60. package/dist/common/component.js +1 -1
  61. package/dist/common/utils.js +3 -3
  62. package/dist/config-provider/demo/index.d.ts +1 -0
  63. package/dist/config-provider/demo/index.js +22 -0
  64. package/dist/count-down/demo/index.d.ts +1 -0
  65. package/dist/count-down/demo/index.js +33 -0
  66. package/dist/custom-keyboard/demo/index.d.ts +1 -0
  67. package/dist/custom-keyboard/demo/index.js +17 -0
  68. package/dist/custom-keyboard/index.js +1 -3
  69. package/dist/datetime-picker/demo/index.d.ts +1 -0
  70. package/dist/datetime-picker/demo/index.js +63 -0
  71. package/dist/datetime-picker/index.js +4 -5
  72. package/dist/dialog/demo/index.d.ts +1 -0
  73. package/dist/dialog/demo/index.js +134 -0
  74. package/dist/dialog/dialog.js +3 -5
  75. package/dist/dialog/index.js +1 -1
  76. package/dist/divider/demo/index.d.ts +1 -0
  77. package/dist/divider/demo/index.js +4 -0
  78. package/dist/dropdown-item/index.js +4 -4
  79. package/dist/dropdown-item/index.wxml +1 -7
  80. package/dist/dropdown-menu/demo/index.d.ts +1 -0
  81. package/dist/dropdown-menu/demo/index.js +47 -0
  82. package/dist/dropdown-menu/index.js +8 -10
  83. package/dist/empty/demo/index.d.ts +1 -0
  84. package/dist/empty/demo/index.js +13 -0
  85. package/dist/empty/index.css +1 -1
  86. package/dist/empty/index.wxs +1 -1
  87. package/dist/empty/index.wxss +1 -1
  88. package/dist/field/demo/index.d.ts +1 -0
  89. package/dist/field/demo/index.js +21 -0
  90. package/dist/goods-action/demo/index.d.ts +1 -0
  91. package/dist/goods-action/demo/index.js +12 -0
  92. package/dist/goods-action/index.css +1 -1
  93. package/dist/goods-action/index.js +1 -1
  94. package/dist/goods-action/index.wxss +1 -1
  95. package/dist/goods-action-button/index.css +1 -1
  96. package/dist/goods-action-button/index.wxss +1 -1
  97. package/dist/grid/demo/index.d.ts +1 -0
  98. package/dist/grid/demo/index.js +9 -0
  99. package/dist/grid/index.js +1 -1
  100. package/dist/grid-item/index.js +1 -1
  101. package/dist/icon/demo/index.d.ts +1 -0
  102. package/dist/icon/demo/index.js +26 -0
  103. package/dist/image/demo/index.d.ts +1 -0
  104. package/dist/image/demo/index.js +15 -0
  105. package/dist/index-anchor/index.js +1 -1
  106. package/dist/index-bar/demo/index.d.ts +1 -0
  107. package/dist/index-bar/demo/index.js +21 -0
  108. package/dist/index-bar/index.js +9 -16
  109. package/dist/loading/demo/index.d.ts +1 -0
  110. package/dist/loading/demo/index.js +4 -0
  111. package/dist/loading/index.js +25 -1
  112. package/dist/loading/index.wxml +2 -2
  113. package/dist/loading/index.wxs +6 -21
  114. package/dist/mixins/basic.js +2 -2
  115. package/dist/mixins/link.js +1 -2
  116. package/dist/mixins/page-scroll.js +1 -1
  117. package/dist/mixins/touch.js +1 -2
  118. package/dist/mixins/transition.js +1 -1
  119. package/dist/nav-bar/demo/index.d.ts +1 -0
  120. package/dist/nav-bar/demo/index.js +26 -0
  121. package/dist/nav-bar/index.css +1 -1
  122. package/dist/nav-bar/index.js +1 -1
  123. package/dist/nav-bar/index.wxml +1 -1
  124. package/dist/nav-bar/index.wxss +1 -1
  125. package/dist/normal-slider/demo/index.d.ts +1 -0
  126. package/dist/normal-slider/demo/index.js +19 -0
  127. package/dist/notice-bar/demo/index.d.ts +1 -0
  128. package/dist/notice-bar/demo/index.js +11 -0
  129. package/dist/notice-bar/index.js +3 -6
  130. package/dist/notice-bar/index.wxml +1 -5
  131. package/dist/notify/demo/index.d.ts +1 -0
  132. package/dist/notify/demo/index.js +45 -0
  133. package/dist/overlay/demo/index.d.ts +1 -0
  134. package/dist/overlay/demo/index.js +22 -0
  135. package/dist/picker/demo/index.d.ts +1 -0
  136. package/dist/picker/demo/index.js +76 -0
  137. package/dist/picker/index.css +1 -1
  138. package/dist/picker/index.js +2 -2
  139. package/dist/picker/index.wxml +1 -0
  140. package/dist/picker/index.wxss +1 -1
  141. package/dist/picker-column/index.js +3 -8
  142. package/dist/popup/demo/index.d.ts +1 -0
  143. package/dist/popup/demo/index.js +79 -0
  144. package/dist/progress/demo/index.d.ts +1 -0
  145. package/dist/progress/demo/index.js +4 -0
  146. package/dist/progress/index.js +1 -4
  147. package/dist/radio/demo/index.d.ts +1 -0
  148. package/dist/radio/demo/index.js +31 -0
  149. package/dist/radio/index.js +2 -2
  150. package/dist/radio-group/index.js +1 -1
  151. package/dist/rate/demo/index.d.ts +1 -0
  152. package/dist/rate/demo/index.js +25 -0
  153. package/dist/rate/index.js +2 -2
  154. package/dist/row/index.js +1 -1
  155. package/dist/search/demo/index.d.ts +1 -0
  156. package/dist/search/demo/index.js +43 -0
  157. package/dist/sidebar/demo/index.d.ts +1 -0
  158. package/dist/sidebar/demo/index.js +9 -0
  159. package/dist/skeleton/demo/index.d.ts +1 -0
  160. package/dist/skeleton/demo/index.js +11 -0
  161. package/dist/slider/demo/index.d.ts +1 -0
  162. package/dist/slider/demo/index.js +19 -0
  163. package/dist/slider/index.js +5 -7
  164. package/dist/stepper/demo/index.d.ts +1 -0
  165. package/dist/stepper/demo/index.js +19 -0
  166. package/dist/steps/demo/index.d.ts +1 -0
  167. package/dist/steps/demo/index.js +42 -0
  168. package/dist/sticky/demo/index.d.ts +1 -0
  169. package/dist/sticky/demo/index.js +26 -0
  170. package/dist/sticky/index.js +2 -2
  171. package/dist/swipe-cell/demo/index.d.ts +1 -0
  172. package/dist/swipe-cell/demo/index.js +45 -0
  173. package/dist/swipe-cell/index.js +3 -5
  174. package/dist/switch/demo/index.d.ts +1 -0
  175. package/dist/switch/demo/index.js +29 -0
  176. package/dist/switch/index.css +1 -1
  177. package/dist/switch/index.wxss +1 -1
  178. package/dist/tab/demo/index.d.ts +1 -0
  179. package/dist/tab/demo/index.js +55 -0
  180. package/dist/tabbar/demo/index.d.ts +1 -0
  181. package/dist/tabbar/demo/index.js +34 -0
  182. package/dist/tabbar/index.js +1 -1
  183. package/dist/tabs/index.js +7 -25
  184. package/dist/tag/demo/index.d.ts +1 -0
  185. package/dist/tag/demo/index.js +16 -0
  186. package/dist/tag/index.css +1 -1
  187. package/dist/tag/index.wxss +1 -1
  188. package/dist/toast/demo/index.d.ts +1 -0
  189. package/dist/toast/demo/index.js +67 -0
  190. package/dist/toast/toast.js +3 -5
  191. package/dist/transition/demo/index.d.ts +1 -0
  192. package/dist/transition/demo/index.js +67 -0
  193. package/dist/tree-select/demo/index.d.ts +1 -0
  194. package/dist/tree-select/demo/index.js +113 -0
  195. package/dist/tree-select/index.js +1 -1
  196. package/lib/action-sheet/demo/index.d.ts +1 -0
  197. package/lib/action-sheet/demo/index.js +119 -0
  198. package/lib/action-sheet/index.js +2 -2
  199. package/lib/area/demo/index.d.ts +1 -0
  200. package/lib/area/demo/index.js +47 -0
  201. package/lib/area/index.js +1 -2
  202. package/lib/battery/demo/index.d.ts +1 -0
  203. package/lib/battery/demo/index.js +4 -0
  204. package/lib/battery/index.js +1 -3
  205. package/lib/bottom-sheet/demo/index.d.ts +1 -0
  206. package/lib/bottom-sheet/demo/index.js +27 -0
  207. package/lib/bottom-sheet/index.css +1 -1
  208. package/lib/bottom-sheet/index.js +3 -2
  209. package/lib/bottom-sheet/index.wxml +3 -1
  210. package/lib/bottom-sheet/index.wxss +1 -1
  211. package/lib/button/demo/index.d.ts +1 -0
  212. package/lib/button/demo/index.js +14 -0
  213. package/lib/button/index.css +1 -1
  214. package/lib/button/index.wxss +1 -1
  215. package/lib/calendar/components/header/index.css +1 -1
  216. package/lib/calendar/components/header/index.wxml +3 -3
  217. package/lib/calendar/components/header/index.wxss +1 -1
  218. package/lib/calendar/components/month/index.css +1 -1
  219. package/lib/calendar/components/month/index.js +2 -6
  220. package/lib/calendar/components/month/index.wxs +1 -4
  221. package/lib/calendar/components/month/index.wxss +1 -1
  222. package/lib/calendar/components/month-list/index.css +1 -1
  223. package/lib/calendar/components/month-list/index.js +3 -16
  224. package/lib/calendar/components/month-list/index.wxml +15 -13
  225. package/lib/calendar/components/month-list/index.wxss +1 -1
  226. package/lib/calendar/components/year-list/index.css +1 -1
  227. package/lib/calendar/components/year-list/index.js +1 -1
  228. package/lib/calendar/components/year-list/index.wxml +1 -1
  229. package/lib/calendar/components/year-list/index.wxss +1 -1
  230. package/lib/calendar/demo/index.d.ts +1 -0
  231. package/lib/calendar/demo/index.js +105 -0
  232. package/lib/calendar/index.js +7 -14
  233. package/lib/calendar/index.wxs +4 -7
  234. package/lib/calendar/utils.js +1 -3
  235. package/lib/cascader/demo/index.d.ts +1 -0
  236. package/lib/cascader/demo/index.js +197 -0
  237. package/lib/cell/demo/index.d.ts +1 -0
  238. package/lib/cell/demo/index.js +39 -0
  239. package/lib/cell/index.js +1 -7
  240. package/lib/checkbox/demo/index.d.ts +1 -0
  241. package/lib/checkbox/demo/index.js +38 -0
  242. package/lib/checkbox/index.js +2 -2
  243. package/lib/circle/demo/index.d.ts +1 -0
  244. package/lib/circle/demo/index.js +21 -0
  245. package/lib/col/demo/index.d.ts +1 -0
  246. package/lib/col/demo/index.js +6 -0
  247. package/lib/collapse/demo/index.d.ts +1 -0
  248. package/lib/collapse/demo/index.js +42 -0
  249. package/lib/config-provider/demo/index.d.ts +1 -0
  250. package/lib/config-provider/demo/index.js +24 -0
  251. package/lib/count-down/demo/index.d.ts +1 -0
  252. package/lib/count-down/demo/index.js +38 -0
  253. package/lib/custom-keyboard/demo/index.d.ts +1 -0
  254. package/lib/custom-keyboard/demo/index.js +19 -0
  255. package/lib/custom-keyboard/index.js +1 -3
  256. package/lib/datetime-picker/demo/index.d.ts +1 -0
  257. package/lib/datetime-picker/demo/index.js +68 -0
  258. package/lib/datetime-picker/index.js +4 -3
  259. package/lib/dialog/demo/index.d.ts +1 -0
  260. package/lib/dialog/demo/index.js +144 -0
  261. package/lib/dialog/dialog.js +1 -3
  262. package/lib/divider/demo/index.d.ts +1 -0
  263. package/lib/divider/demo/index.js +6 -0
  264. package/lib/dropdown-item/index.js +2 -2
  265. package/lib/dropdown-item/index.wxml +1 -7
  266. package/lib/dropdown-menu/demo/index.d.ts +1 -0
  267. package/lib/dropdown-menu/demo/index.js +52 -0
  268. package/lib/dropdown-menu/index.js +2 -4
  269. package/lib/empty/demo/index.d.ts +1 -0
  270. package/lib/empty/demo/index.js +15 -0
  271. package/lib/empty/index.css +1 -1
  272. package/lib/empty/index.wxs +1 -1
  273. package/lib/empty/index.wxss +1 -1
  274. package/lib/field/demo/index.d.ts +1 -0
  275. package/lib/field/demo/index.js +23 -0
  276. package/lib/goods-action/demo/index.d.ts +1 -0
  277. package/lib/goods-action/demo/index.js +17 -0
  278. package/lib/goods-action/index.css +1 -1
  279. package/lib/goods-action/index.wxss +1 -1
  280. package/lib/goods-action-button/index.css +1 -1
  281. package/lib/goods-action-button/index.wxss +1 -1
  282. package/lib/grid/demo/index.d.ts +1 -0
  283. package/lib/grid/demo/index.js +11 -0
  284. package/lib/icon/demo/index.d.ts +1 -0
  285. package/lib/icon/demo/index.js +54 -0
  286. package/lib/image/demo/index.d.ts +1 -0
  287. package/lib/image/demo/index.js +17 -0
  288. package/lib/index-bar/demo/index.d.ts +1 -0
  289. package/lib/index-bar/demo/index.js +23 -0
  290. package/lib/index-bar/index.js +3 -10
  291. package/lib/loading/demo/index.d.ts +1 -0
  292. package/lib/loading/demo/index.js +6 -0
  293. package/lib/loading/index.js +27 -1
  294. package/lib/loading/index.wxml +2 -2
  295. package/lib/loading/index.wxs +6 -21
  296. package/lib/mixins/link.js +1 -2
  297. package/lib/mixins/touch.js +1 -2
  298. package/lib/nav-bar/demo/index.d.ts +1 -0
  299. package/lib/nav-bar/demo/index.js +31 -0
  300. package/lib/nav-bar/index.css +1 -1
  301. package/lib/nav-bar/index.wxml +1 -1
  302. package/lib/nav-bar/index.wxss +1 -1
  303. package/lib/normal-slider/demo/index.d.ts +1 -0
  304. package/lib/normal-slider/demo/index.js +21 -0
  305. package/lib/notice-bar/demo/index.d.ts +1 -0
  306. package/lib/notice-bar/demo/index.js +16 -0
  307. package/lib/notice-bar/index.js +2 -5
  308. package/lib/notice-bar/index.wxml +1 -5
  309. package/lib/notify/demo/index.d.ts +1 -0
  310. package/lib/notify/demo/index.js +50 -0
  311. package/lib/overlay/demo/index.d.ts +1 -0
  312. package/lib/overlay/demo/index.js +24 -0
  313. package/lib/picker/demo/index.d.ts +1 -0
  314. package/lib/picker/demo/index.js +82 -0
  315. package/lib/picker/index.css +1 -1
  316. package/lib/picker/index.js +1 -3
  317. package/lib/picker/index.wxml +1 -0
  318. package/lib/picker/index.wxss +1 -1
  319. package/lib/picker-column/index.js +2 -7
  320. package/lib/popup/demo/index.d.ts +1 -0
  321. package/lib/popup/demo/index.js +85 -0
  322. package/lib/progress/demo/index.d.ts +1 -0
  323. package/lib/progress/demo/index.js +6 -0
  324. package/lib/progress/index.js +1 -4
  325. package/lib/radio/demo/index.d.ts +1 -0
  326. package/lib/radio/demo/index.js +34 -0
  327. package/lib/radio/index.js +2 -2
  328. package/lib/rate/demo/index.d.ts +1 -0
  329. package/lib/rate/demo/index.js +30 -0
  330. package/lib/search/demo/index.d.ts +1 -0
  331. package/lib/search/demo/index.js +48 -0
  332. package/lib/sidebar/demo/index.d.ts +1 -0
  333. package/lib/sidebar/demo/index.js +14 -0
  334. package/lib/skeleton/demo/index.d.ts +1 -0
  335. package/lib/skeleton/demo/index.js +14 -0
  336. package/lib/slider/demo/index.d.ts +1 -0
  337. package/lib/slider/demo/index.js +21 -0
  338. package/lib/slider/index.js +1 -3
  339. package/lib/stepper/demo/index.d.ts +1 -0
  340. package/lib/stepper/demo/index.js +25 -0
  341. package/lib/steps/demo/index.d.ts +1 -0
  342. package/lib/steps/demo/index.js +47 -0
  343. package/lib/sticky/demo/index.d.ts +1 -0
  344. package/lib/sticky/demo/index.js +30 -0
  345. package/lib/sticky/index.js +3 -1
  346. package/lib/swipe-cell/demo/index.d.ts +1 -0
  347. package/lib/swipe-cell/demo/index.js +50 -0
  348. package/lib/swipe-cell/index.js +1 -3
  349. package/lib/switch/demo/index.d.ts +1 -0
  350. package/lib/switch/demo/index.js +37 -0
  351. package/lib/switch/index.css +1 -1
  352. package/lib/switch/index.wxss +1 -1
  353. package/lib/tab/demo/index.d.ts +1 -0
  354. package/lib/tab/demo/index.js +57 -0
  355. package/lib/tabbar/demo/index.d.ts +1 -0
  356. package/lib/tabbar/demo/index.js +41 -0
  357. package/lib/tabs/index.js +6 -24
  358. package/lib/tag/demo/index.d.ts +1 -0
  359. package/lib/tag/demo/index.js +19 -0
  360. package/lib/tag/index.css +1 -1
  361. package/lib/tag/index.wxss +1 -1
  362. package/lib/toast/demo/index.d.ts +1 -0
  363. package/lib/toast/demo/index.js +74 -0
  364. package/lib/toast/toast.js +1 -3
  365. package/lib/transition/demo/index.d.ts +1 -0
  366. package/lib/transition/demo/index.js +71 -0
  367. package/lib/tree-select/demo/index.d.ts +1 -0
  368. package/lib/tree-select/demo/index.js +130 -0
  369. package/lib/tree-select/index.js +2 -2
  370. package/package.json +2 -2
@@ -32,7 +32,7 @@ function useAnimation(context, expanded, mounted, height) {
32
32
  }
33
33
  export function setContentAnimate(context, expanded, mounted) {
34
34
  getRect(context, '.smart-collapse-item__content')
35
- .then((rect) => rect.height)
35
+ .then(rect => rect.height)
36
36
  .then((height) => {
37
37
  useAnimation(context, expanded, mounted, height);
38
38
  });
@@ -1,6 +1,6 @@
1
1
  import { basic } from '../mixins/basic';
2
2
  function mapKeys(source, target, map) {
3
- Object.keys(map).forEach((key) => {
3
+ Object.keys(map).forEach(key => {
4
4
  if (source[key]) {
5
5
  target[map[key]] = source[key];
6
6
  }
@@ -1,5 +1,5 @@
1
1
  import { isDef, isNumber, isPlainObject, isPromise } from './validator';
2
- import { canIUseGroupSetData, canIUseNextTick, getSystemInfoSync, } from './version';
2
+ import { canIUseGroupSetData, canIUseNextTick, getSystemInfoSync } from './version';
3
3
  export { isDef } from './validator';
4
4
  export { getSystemInfoSync } from './version';
5
5
  export function range(num, min, max) {
@@ -39,7 +39,7 @@ export function pickExclude(obj, keys) {
39
39
  }, {});
40
40
  }
41
41
  export function getRect(context, selector) {
42
- return new Promise((resolve) => {
42
+ return new Promise(resolve => {
43
43
  wx.createSelectorQuery()
44
44
  .in(context)
45
45
  .select(selector)
@@ -48,7 +48,7 @@ export function getRect(context, selector) {
48
48
  });
49
49
  }
50
50
  export function getAllRect(context, selector) {
51
- return new Promise((resolve) => {
51
+ return new Promise(resolve => {
52
52
  wx.createSelectorQuery()
53
53
  .in(context)
54
54
  .selectAll(selector)
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,22 @@
1
+ import { SmartComponent } from '../../common/component';
2
+ SmartComponent({
3
+ data: {
4
+ rate: 4,
5
+ slider: 50,
6
+ themeVars: {
7
+ buttonPrimaryBorderColor: 'red',
8
+ buttonPrimaryBackgroundColor: 'red',
9
+ },
10
+ },
11
+ methods: {
12
+ onChange(event) {
13
+ const { color } = event.currentTarget.dataset;
14
+ this.setData({
15
+ themeVars: {
16
+ buttonPrimaryBorderColor: color,
17
+ buttonPrimaryBackgroundColor: color,
18
+ },
19
+ });
20
+ },
21
+ },
22
+ });
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,33 @@
1
+ import { SmartComponent } from '../../common/component';
2
+ import Toast from '../../toast/toast';
3
+ SmartComponent({
4
+ data: {
5
+ time: 30 * 60 * 60 * 1000,
6
+ timeData: {},
7
+ },
8
+ methods: {
9
+ onChange(e) {
10
+ this.setData({
11
+ timeData: e.detail,
12
+ });
13
+ },
14
+ start() {
15
+ const countDown = this.selectComponent('.control-count-down');
16
+ countDown.start();
17
+ },
18
+ pause() {
19
+ const countDown = this.selectComponent('.control-count-down');
20
+ countDown.pause();
21
+ },
22
+ reset() {
23
+ const countDown = this.selectComponent('.control-count-down');
24
+ countDown.reset();
25
+ },
26
+ finished() {
27
+ Toast({
28
+ context: this,
29
+ message: I18n.t('countdownEnded'),
30
+ });
31
+ },
32
+ },
33
+ });
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,17 @@
1
+ import { SmartComponent } from '../../common/component';
2
+ SmartComponent({
3
+ data: {
4
+ value: '222',
5
+ },
6
+ methods: {
7
+ onChange(v) {
8
+ console.log('onChange value =====>', v.detail);
9
+ },
10
+ onConfirm(v) {
11
+ console.log('onConfirm value ====>', v.detail);
12
+ },
13
+ handleBtn() {
14
+ this.setData({ value: '1234' });
15
+ },
16
+ },
17
+ });
@@ -136,9 +136,7 @@ SmartComponent({
136
136
  toSvgCssBackground(svgString) {
137
137
  let res = svgString;
138
138
  res = svgString
139
- .replace('<svg', ~svgString.indexOf('xmlns')
140
- ? '<svg'
141
- : '<svg xmlns="http://www.w3.org/2000/svg"')
139
+ .replace('<svg', ~svgString.indexOf('xmlns') ? '<svg' : '<svg xmlns="http://www.w3.org/2000/svg"')
142
140
  .replace(/"/g, "'")
143
141
  .replace(/%/g, '%25')
144
142
  .replace(/#/g, '%23')
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,63 @@
1
+ import { SmartComponent } from '../../common/component';
2
+ import Toast from '../../toast/toast';
3
+ SmartComponent({
4
+ data: {
5
+ minHour: 10,
6
+ maxHour: 20,
7
+ minDate: new Date(2018, 0, 1).getTime(),
8
+ maxDate: new Date(2019, 10, 1).getTime(),
9
+ currentDate1: new Date(2018, 2, 31).getTime(),
10
+ currentDate2: null,
11
+ currentDate3: new Date(2018, 0, 1),
12
+ currentDate4: '12:00',
13
+ loading: false,
14
+ formatter(type, value) {
15
+ if (type === 'year') {
16
+ return `${value}${I18n.t('year')}`;
17
+ }
18
+ if (type === 'month') {
19
+ return `${value}${I18n.t('month')}`;
20
+ }
21
+ return value;
22
+ },
23
+ filter(type, options) {
24
+ if (type === 'minute') {
25
+ return options.filter((option) => option % 5 === 0);
26
+ }
27
+ return options;
28
+ },
29
+ locale: {
30
+ year: I18n.t('year'),
31
+ month: I18n.t('month'),
32
+ day: I18n.t('sun'),
33
+ hour: I18n.t('time'),
34
+ minute: I18n.t('minute'),
35
+ second: I18n.t('second'),
36
+ },
37
+ },
38
+ methods: {
39
+ onInput(event) {
40
+ const { detail, currentTarget } = event;
41
+ const result = this.getResult(detail, currentTarget.dataset.type);
42
+ Toast({
43
+ context: this,
44
+ message: result,
45
+ });
46
+ },
47
+ getResult(time, type) {
48
+ const date = new Date(time);
49
+ switch (type) {
50
+ case 'datetime':
51
+ return date.toLocaleString();
52
+ case 'date':
53
+ return date.toLocaleDateString();
54
+ case 'year-month':
55
+ return `${date.getFullYear()}/${date.getMonth() + 1}`;
56
+ case 'time':
57
+ return time;
58
+ default:
59
+ return '';
60
+ }
61
+ },
62
+ },
63
+ });
@@ -100,8 +100,8 @@ SmartComponent({
100
100
  },
101
101
  updateColumns() {
102
102
  const { formatter = defaultFormatter, locale } = this.data;
103
- const results = this.getOriginColumns().map((column) => ({
104
- values: column.values.map((value) => formatter(column.type, value)),
103
+ const results = this.getOriginColumns().map(column => ({
104
+ values: column.values.map(value => formatter(column.type, value)),
105
105
  unit: locale === null || locale === void 0 ? void 0 : locale[column.type],
106
106
  }));
107
107
  return this.set({ columns: results });
@@ -109,7 +109,7 @@ SmartComponent({
109
109
  getOriginColumns() {
110
110
  const { filter } = this.data;
111
111
  const results = this.getRanges().map(({ type, range }) => {
112
- let values = times(range[1] - range[0] + 1, (index) => {
112
+ let values = times(range[1] - range[0] + 1, index => {
113
113
  const value = range[0] + index;
114
114
  return type === 'year' ? `${value}` : padZero(value);
115
115
  });
@@ -234,8 +234,7 @@ SmartComponent({
234
234
  const originColumns = this.getOriginColumns();
235
235
  if (data.type === 'time') {
236
236
  const indexes = picker.getIndexes();
237
- value = `${+originColumns[0].values[indexes[0]]}:${+originColumns[1]
238
- .values[indexes[1]]}`;
237
+ value = `${+originColumns[0].values[indexes[0]]}:${+originColumns[1].values[indexes[1]]}`;
239
238
  }
240
239
  else {
241
240
  const indexes = picker.getIndexes();
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,134 @@
1
+ import { SmartComponent } from '../../common/component';
2
+ import Dialog from '../../dialog/dialog';
3
+ const message = 'Body';
4
+ SmartComponent({
5
+ data: {
6
+ show: false,
7
+ inputValue: '',
8
+ },
9
+ methods: {
10
+ showCustomDialog() {
11
+ this.setData({ show: true });
12
+ },
13
+ getUserInfo(event) {
14
+ console.log(event.detail);
15
+ },
16
+ onClickThemeAlert() {
17
+ console.log('=== click theme alert');
18
+ Dialog.alert({
19
+ context: this,
20
+ title: 'Title',
21
+ theme: 'round-button',
22
+ icon: false,
23
+ message,
24
+ confirmButtonText: I18n.t('confirm'),
25
+ cancelButtonText: I18n.t('cancel'),
26
+ });
27
+ },
28
+ onClickThemeAlert2() {
29
+ console.log('=== 222 click theme alert');
30
+ Dialog.alert({
31
+ context: this,
32
+ theme: 'round-button',
33
+ message,
34
+ confirmButtonText: I18n.t('confirm'),
35
+ cancelButtonText: I18n.t('cancel'),
36
+ });
37
+ },
38
+ onClickAlert() {
39
+ Dialog.alert({
40
+ context: this,
41
+ title: 'Title',
42
+ icon: false,
43
+ message,
44
+ confirmButtonText: I18n.t('confirm'),
45
+ cancelButtonText: I18n.t('cancel'),
46
+ });
47
+ },
48
+ onClickAlert2() {
49
+ Dialog.alert({
50
+ context: this,
51
+ message: 'Title',
52
+ confirmButtonText: I18n.t('confirm'),
53
+ cancelButtonText: I18n.t('cancel'),
54
+ });
55
+ },
56
+ onClickConfirm() {
57
+ Dialog.confirm({
58
+ context: this,
59
+ title: 'Title',
60
+ icon: false,
61
+ message,
62
+ cancelButtonText: 'Sub Action',
63
+ confirmButtonText: I18n.t('confirm'),
64
+ });
65
+ },
66
+ onClickConfirmIcon() {
67
+ Dialog.confirm({
68
+ context: this,
69
+ title: 'Title',
70
+ icon: true,
71
+ message,
72
+ cancelButtonText: 'Sub Action',
73
+ confirmButtonText: I18n.t('confirm'),
74
+ });
75
+ },
76
+ onClickInput() {
77
+ const beforeClose = (action, value) => new Promise((resolve) => {
78
+ setTimeout(() => {
79
+ if (action === 'confirm') {
80
+ // 不存在输入值则拦截确认操作
81
+ resolve(!!value);
82
+ }
83
+ else {
84
+ resolve(true);
85
+ }
86
+ }, 1000);
87
+ });
88
+ Dialog.input({
89
+ context: this,
90
+ title: 'Title',
91
+ value: this.data.inputValue,
92
+ cancelButtonText: 'Sub Action',
93
+ beforeClose,
94
+ confirmButtonText: I18n.t('confirm'),
95
+ })
96
+ .then((res) => {
97
+ var _a;
98
+ console.log('=== onConfirm', res);
99
+ const inputValue = (_a = res === null || res === void 0 ? void 0 : res.data) === null || _a === void 0 ? void 0 : _a.inputValue;
100
+ this.setData({ inputValue });
101
+ })
102
+ .catch((res) => {
103
+ console.log('=== onCancel', res);
104
+ });
105
+ },
106
+ onClickAsyncClose() {
107
+ const beforeClose = (action) => new Promise((resolve) => {
108
+ setTimeout(() => {
109
+ if (action === 'confirm') {
110
+ resolve(true);
111
+ }
112
+ else {
113
+ // 拦截取消操作
114
+ resolve(false);
115
+ }
116
+ }, 1000);
117
+ });
118
+ Dialog.confirm({
119
+ context: this,
120
+ title: 'Title',
121
+ icon: false,
122
+ message,
123
+ beforeClose,
124
+ confirmButtonText: I18n.t('confirm'),
125
+ cancelButtonText: I18n.t('cancel'),
126
+ });
127
+ },
128
+ onClose() {
129
+ this.setData({
130
+ show: false,
131
+ });
132
+ },
133
+ },
134
+ });
@@ -35,9 +35,7 @@ function getContext() {
35
35
  const Dialog = (options) => {
36
36
  options = Object.assign(Object.assign({}, currentOptions), options);
37
37
  return new Promise((resolve, reject) => {
38
- const context = (typeof options.context === 'function'
39
- ? options.context()
40
- : options.context) || getContext();
38
+ const context = (typeof options.context === 'function' ? options.context() : options.context) || getContext();
41
39
  const dialog = context.selectComponent(options.selector);
42
40
  delete options.context;
43
41
  delete options.selector;
@@ -63,13 +61,13 @@ Dialog.alert = (options) => Dialog(options);
63
61
  Dialog.confirm = (options) => Dialog(Object.assign({ showCancelButton: true }, options));
64
62
  Dialog.input = ((options) => Dialog(Object.assign({ showCancelButton: true }, options)));
65
63
  Dialog.close = () => {
66
- queue.forEach((dialog) => {
64
+ queue.forEach(dialog => {
67
65
  dialog.close();
68
66
  });
69
67
  queue = [];
70
68
  };
71
69
  Dialog.stopLoading = () => {
72
- queue.forEach((dialog) => {
70
+ queue.forEach(dialog => {
73
71
  dialog.stopLoading();
74
72
  });
75
73
  };
@@ -137,7 +137,7 @@ SmartComponent({
137
137
  [`loading.${action}`]: true,
138
138
  });
139
139
  if (beforeClose) {
140
- toPromise(beforeClose(action, this.data.inputValue)).then((value) => {
140
+ toPromise(beforeClose(action, this.data.inputValue)).then(value => {
141
141
  if (value) {
142
142
  this.close(action);
143
143
  }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,4 @@
1
+ import { SmartComponent } from '../../common/component';
2
+ SmartComponent({
3
+ data: {},
4
+ });
@@ -1,6 +1,6 @@
1
1
  import { useParent } from '../common/relation';
2
2
  import { SmartComponent } from '../common/component';
3
- import checkMarkIcon from '@tuya-miniapp/icons/dist/svg/Checkmark';
3
+ import checkMarkIcon from '@tuya-miniapp/icons/dist/svg/Check';
4
4
  SmartComponent({
5
5
  classes: ['item-title-class'],
6
6
  field: true,
@@ -61,7 +61,7 @@ SmartComponent({
61
61
  },
62
62
  updateDataFromParent() {
63
63
  if (this.parent) {
64
- const { overlay, duration, activeColor, closeOnClickOverlay, direction, safeAreaTabBar, } = this.parent.data;
64
+ const { overlay, duration, activeColor, closeOnClickOverlay, direction, safeAreaTabBar } = this.parent.data;
65
65
  this.setData({
66
66
  overlay,
67
67
  duration,
@@ -104,7 +104,7 @@ SmartComponent({
104
104
  if (show === showPopup) {
105
105
  return;
106
106
  }
107
- this.onBeforeToggle(show).then((status) => {
107
+ this.onBeforeToggle(show).then(status => {
108
108
  var _a;
109
109
  if (!status) {
110
110
  return;
@@ -129,7 +129,7 @@ SmartComponent({
129
129
  if (!useBeforeToggle) {
130
130
  return Promise.resolve(true);
131
131
  }
132
- return new Promise((resolve) => {
132
+ return new Promise(resolve => {
133
133
  this.$emit('before-toggle', {
134
134
  status,
135
135
  callback: (value) => resolve(value),
@@ -25,13 +25,7 @@
25
25
  wx:for="{{ options }}"
26
26
  wx:key="value"
27
27
  data-option="{{ item }}"
28
- class="{{ utils.bem(
29
- 'dropdown-item__option',
30
- {
31
- active: item.value === value,
32
- first: direction === 'up' ? index === options.length-1 : !index,
33
- up: direction === 'up'
34
- } ) }}"
28
+ class="{{ utils.bem('dropdown-item__option', { active: item.value === value, first: direction === 'up' ? index === options.length-1 : !index, up: direction === 'up' }) }}"
35
29
  clickable
36
30
  icon="{{ item.icon }}"
37
31
  bind:tap="onOptionTap"
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,47 @@
1
+ import { SmartComponent } from '../../common/component';
2
+ SmartComponent({
3
+ data: {
4
+ switchTitle1: I18n.t('freeShipping'),
5
+ switchTitle2: I18n.t('groupBuy'),
6
+ itemTitle: I18n.t('filter'),
7
+ option1: [
8
+ { text: I18n.t('allProducts'), value: 0 },
9
+ { text: I18n.t('newProduct'), value: 1 },
10
+ { text: I18n.t('promotionalItems'), value: 2 },
11
+ ],
12
+ option2: [
13
+ { text: I18n.t('defaultSorting'), value: 'a' },
14
+ { text: I18n.t('sortByPositiveReviews'), value: 'b' },
15
+ { text: I18n.t('sortBySales'), value: 'c' },
16
+ ],
17
+ switch1: true,
18
+ switch2: false,
19
+ value1: 0,
20
+ value2: 'a',
21
+ },
22
+ methods: {
23
+ onConfirm() {
24
+ this.selectComponent('#item').toggle();
25
+ },
26
+ onSwitch1Change({ detail }) {
27
+ this.setData({ switch1: detail });
28
+ },
29
+ onSwitch2Change({ detail }) {
30
+ this.setData({ switch2: detail });
31
+ },
32
+ onBeforeChange({ detail: { status, callback } }) {
33
+ wx.showModal({
34
+ title: I18n.t('asynchronousOnOff'),
35
+ content: `${I18n.t('areYouSureYouWantTo')}${status ? I18n.t('open') : I18n.t('close')}${I18n.t('dropdownMenu')}`,
36
+ success: (res) => {
37
+ if (res.confirm) {
38
+ callback(true);
39
+ }
40
+ else if (res.cancel) {
41
+ callback(false);
42
+ }
43
+ },
44
+ });
45
+ },
46
+ },
47
+ });
@@ -50,7 +50,7 @@ SmartComponent({
50
50
  type: String,
51
51
  value: '#CCCCCC',
52
52
  observer: 'updateChildrenData',
53
- }
53
+ },
54
54
  },
55
55
  data: {
56
56
  triangleDown,
@@ -70,16 +70,16 @@ SmartComponent({
70
70
  ARRAY.push(this);
71
71
  },
72
72
  destroyed() {
73
- ARRAY = ARRAY.filter((item) => item !== this);
73
+ ARRAY = ARRAY.filter(item => item !== this);
74
74
  },
75
75
  methods: {
76
76
  updateItemListData() {
77
77
  this.setData({
78
- itemListData: this.children.map((child) => child.data),
78
+ itemListData: this.children.map(child => child.data),
79
79
  });
80
80
  },
81
81
  updateChildrenData() {
82
- this.children.forEach((child) => {
82
+ this.children.forEach(child => {
83
83
  child.updateDataFromParent();
84
84
  });
85
85
  },
@@ -95,13 +95,13 @@ SmartComponent({
95
95
  });
96
96
  },
97
97
  close() {
98
- this.children.forEach((child) => {
98
+ this.children.forEach(child => {
99
99
  child.toggle(false, { immediate: true });
100
100
  });
101
101
  },
102
102
  getChildWrapperStyle() {
103
103
  const { zIndex, direction } = this.data;
104
- return getRect(this, '.smart-dropdown-menu').then((rect) => {
104
+ return getRect(this, '.smart-dropdown-menu').then(rect => {
105
105
  const { top = 0, bottom = 0 } = rect;
106
106
  const offset = direction === 'down' ? bottom : this.windowHeight - top;
107
107
  let wrapperStyle = `z-index: ${zIndex};`;
@@ -118,10 +118,8 @@ SmartComponent({
118
118
  const { index } = event.currentTarget.dataset;
119
119
  const child = this.children[index];
120
120
  if (!child.data.disabled) {
121
- ARRAY.forEach((menuItem) => {
122
- if (menuItem &&
123
- menuItem.data.closeOnClickOutside &&
124
- menuItem !== this) {
121
+ ARRAY.forEach(menuItem => {
122
+ if (menuItem && menuItem.data.closeOnClickOutside && menuItem !== this) {
125
123
  menuItem.close();
126
124
  }
127
125
  });
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,13 @@
1
+ import { SmartComponent } from '../../common/component';
2
+ SmartComponent({
3
+ data: {
4
+ activeTab: 0,
5
+ },
6
+ methods: {
7
+ onChange(event) {
8
+ this.setData({
9
+ activeTab: event.detail.name,
10
+ });
11
+ },
12
+ },
13
+ });
@@ -1 +1 @@
1
- @import '../common/index.css';.smart-empty{align-items:center;box-sizing:border-box;display:flex;flex-direction:column;justify-content:center}.smart-empty__image{height:var(--empty-image-height,180px);width:var(--empty-image-width,180px)}.smart-empty__image:empty{display:none}.smart-empty__image__img{height:100%;width:100%}.smart-empty__image:not(:empty)+.smart-empty__image{display:none}.smart-empty__title{color:var(--empty-title-color,var(--app-B6-N1,#000));font-size:var(--empty-title-font-size,16px);line-height:var(--empty-title-line-height,24px);margin-top:var(--empty-title-margin-top,7px);text-align:center}.smart-empty__title:empty{display:none}.smart-empty__description{color:var(--empty-description-color,var(--app-B4-N3,rgba(0,0,0,.5)));font-size:var(--empty-description-font-size,14px);line-height:var(--empty-description-line-height,20px);margin-top:var(--empty-description-margin-top,4px)}.smart-empty__description:empty{display:none}.smart-empty__bottom{margin-top:24px}.smart-empty__bottom:empty{display:none}
1
+ @import '../common/index.css';.smart-empty{align-items:center;box-sizing:border-box;display:flex;flex-direction:column;justify-content:center}.smart-empty__image{height:var(--empty-image-height,180px);width:var(--empty-image-width,180px)}.smart-empty__image:empty{display:none}.smart-empty__image__img{height:100%;width:100%}.smart-empty__image:not(:empty)+.smart-empty__image{display:none}.smart-empty__title{color:var(--empty-title-color,var(--app-B6-N1,#000));font-size:var(--empty-title-font-size,16px);font-weight:var(--empty-title-font-weight,normal);line-height:var(--empty-title-line-height,24px);margin-top:var(--empty-title-margin-top,7px);text-align:center}.smart-empty__title:empty{display:none}.smart-empty__description{color:var(--empty-description-color,var(--app-B4-N3,rgba(0,0,0,.5)));font-size:var(--empty-description-font-size,14px);font-weight:var(--empty-description-font-weight,normal);line-height:var(--empty-description-line-height,20px);margin-top:var(--empty-description-margin-top,4px)}.smart-empty__description:empty{display:none}.smart-empty__bottom{margin-top:24px}.smart-empty__bottom:empty{display:none}
@@ -1,5 +1,5 @@
1
1
  /* eslint-disable */
2
- const defaultIcon = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAWgAAAFoCAMAAABNO5HnAAAAAXNSR0IArs4c6QAAADlQTFRFR3BMqKionZ2dhISEkJCQjo6OioqK1NTUjY2NjY2NgoKCkJCQubm5jIyMiIiIoqKiqqqqfn5+e3t7k4/mfgAAABN0Uk5TAGZgBQ4JMmgWIVJcaFJrPTQCUrfY0bAAAA6PSURBVHja7NlLautAFARQEcsgDUyV97/ZB09xbDlxMpBI4nBOow/qWXHpnwYAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD4Y45tHpkP8tnJeUyS04MrmUS0jzHJp1EfZbSHQ5LkJZ8Q0h7mXLw8uDJLabtDvlYxbXeZCR8xH+6kUdLfIjfm3GhNhzsac3UeptVo0bwZJbXRtB4fblO/rEesO3ZwvgtzNVhU0Ptp3vQ+6NlsuJ8+ruizoL8h6FVFV9CbNenSlqCb5ctS0UuPit5B7sfoS7I3q46mFtJbNU1fDcOYNksbr32pH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d1CzP9W8B+mCnvW0FWro0Gwf99VHhkeZ5NRhwZFQPiU8ivJdVHHhYbhesMcbq6RfdURMJ4oeOsDSRaLooyIFx5OUDP0kFcnQb2HpIslbdxk64fPXmAz9JI3J0KcHnfQ3Jc6n5AyN6fjjkZSUlJSUlJSUlJSUlJSU9GL9B+ab4VEvVpgKAAAAAElFTkSuQmCC";
3
3
 
4
4
  function imageUrl(image) {
5
5
  if (image === 'default') {
@@ -1 +1 @@
1
- @import '../common/index.wxss';.smart-empty{align-items:center;box-sizing:border-box;display:flex;flex-direction:column;justify-content:center}.smart-empty__image{height:var(--empty-image-height,180px);width:var(--empty-image-width,180px)}.smart-empty__image:empty{display:none}.smart-empty__image__img{height:100%;width:100%}.smart-empty__image:not(:empty)+.smart-empty__image{display:none}.smart-empty__title{color:var(--empty-title-color,var(--app-B6-N1,#000));font-size:var(--empty-title-font-size,16px);line-height:var(--empty-title-line-height,24px);margin-top:var(--empty-title-margin-top,7px);text-align:center}.smart-empty__title:empty{display:none}.smart-empty__description{color:var(--empty-description-color,var(--app-B4-N3,rgba(0,0,0,.5)));font-size:var(--empty-description-font-size,14px);line-height:var(--empty-description-line-height,20px);margin-top:var(--empty-description-margin-top,4px)}.smart-empty__description:empty{display:none}.smart-empty__bottom{margin-top:24px}.smart-empty__bottom:empty{display:none}
1
+ @import '../common/index.wxss';.smart-empty{align-items:center;box-sizing:border-box;display:flex;flex-direction:column;justify-content:center}.smart-empty__image{height:var(--empty-image-height,180px);width:var(--empty-image-width,180px)}.smart-empty__image:empty{display:none}.smart-empty__image__img{height:100%;width:100%}.smart-empty__image:not(:empty)+.smart-empty__image{display:none}.smart-empty__title{color:var(--empty-title-color,var(--app-B6-N1,#000));font-size:var(--empty-title-font-size,16px);font-weight:var(--empty-title-font-weight,normal);line-height:var(--empty-title-line-height,24px);margin-top:var(--empty-title-margin-top,7px);text-align:center}.smart-empty__title:empty{display:none}.smart-empty__description{color:var(--empty-description-color,var(--app-B4-N3,rgba(0,0,0,.5)));font-size:var(--empty-description-font-size,14px);font-weight:var(--empty-description-font-weight,normal);line-height:var(--empty-description-line-height,20px);margin-top:var(--empty-description-margin-top,4px)}.smart-empty__description:empty{display:none}.smart-empty__bottom{margin-top:24px}.smart-empty__bottom:empty{display:none}
@@ -0,0 +1 @@
1
+ export {};