@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
@@ -0,0 +1,113 @@
1
+ import { SmartComponent } from '../../common/component';
2
+ const config = {
3
+ pro1Name: I18n.t('zhejiang'),
4
+ pro1: [
5
+ {
6
+ text: I18n.t('hangzhou'),
7
+ id: 1,
8
+ },
9
+ {
10
+ text: I18n.t('wenzhou'),
11
+ id: 2,
12
+ },
13
+ {
14
+ text: I18n.t('ningbo'),
15
+ id: 3,
16
+ disabled: true,
17
+ },
18
+ {
19
+ text: I18n.t('yiwu'),
20
+ id: 4,
21
+ },
22
+ ],
23
+ pro2Name: I18n.t('jiangsu'),
24
+ pro2: [
25
+ {
26
+ text: I18n.t('nanjing'),
27
+ id: 5,
28
+ },
29
+ {
30
+ text: I18n.t('wuxi'),
31
+ id: 6,
32
+ },
33
+ {
34
+ text: I18n.t('xuzhou'),
35
+ id: 7,
36
+ },
37
+ {
38
+ text: I18n.t('suzhou'),
39
+ id: 8,
40
+ },
41
+ ],
42
+ pro3Name: I18n.t('fujian'),
43
+ pro3: [
44
+ {
45
+ text: I18n.t('quanzhou'),
46
+ id: 9,
47
+ },
48
+ {
49
+ text: I18n.t('xiamen'),
50
+ id: 10,
51
+ },
52
+ ],
53
+ };
54
+ const items = [
55
+ {
56
+ text: config.pro1Name,
57
+ options: config.pro1,
58
+ },
59
+ {
60
+ text: config.pro2Name,
61
+ options: config.pro2,
62
+ },
63
+ {
64
+ text: config.pro3Name,
65
+ disabled: true,
66
+ options: config.pro3,
67
+ },
68
+ ];
69
+ SmartComponent({
70
+ data: {
71
+ items,
72
+ badgeItems: items.slice(0, 2).map((item, index) => {
73
+ if (index === 0) {
74
+ return Object.assign(Object.assign({}, item), { dot: true });
75
+ }
76
+ if (index === 1) {
77
+ return Object.assign(Object.assign({}, item), { badge: 5 });
78
+ }
79
+ return item;
80
+ }),
81
+ mainActiveIndex: 0,
82
+ activeId: 0,
83
+ mainActiveIndexMulti: 0,
84
+ activeIdMulti: [],
85
+ },
86
+ methods: {
87
+ onClickNav({ detail }) {
88
+ this.setData({
89
+ mainActiveIndex: detail.index || 0,
90
+ });
91
+ },
92
+ onClickItem({ detail }) {
93
+ const activeId = this.data.activeId === detail.id ? null : detail.id;
94
+ this.setData({ activeId });
95
+ },
96
+ onClickNavMulti({ detail }) {
97
+ this.setData({
98
+ mainActiveIndexMulti: detail.index || 0,
99
+ });
100
+ },
101
+ onClickItemMulti({ detail }) {
102
+ const { activeIdMulti } = this.data;
103
+ const idx = activeIdMulti.indexOf(detail.id);
104
+ if (idx > -1) {
105
+ activeIdMulti.splice(idx, 1);
106
+ }
107
+ else {
108
+ activeIdMulti.push(detail.id);
109
+ }
110
+ this.setData({ activeIdMulti });
111
+ },
112
+ },
113
+ });
@@ -1,4 +1,4 @@
1
- import IconCheckmark from '@tuya-miniapp/icons/dist/svg/Checkmark';
1
+ import IconCheckmark from '@tuya-miniapp/icons/dist/svg/Check';
2
2
  import { SmartComponent } from '../common/component';
3
3
  SmartComponent({
4
4
  classes: [
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,119 @@
1
+ "use strict";
2
+ var __assign = (this && this.__assign) || function () {
3
+ __assign = Object.assign || function(t) {
4
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
5
+ s = arguments[i];
6
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
+ t[p] = s[p];
8
+ }
9
+ return t;
10
+ };
11
+ return __assign.apply(this, arguments);
12
+ };
13
+ Object.defineProperty(exports, "__esModule", { value: true });
14
+ var component_1 = require("../../common/component");
15
+ (0, component_1.SmartComponent)({
16
+ data: {
17
+ show1: false,
18
+ show2: false,
19
+ show3: false,
20
+ show4: false,
21
+ show5: false,
22
+ showSelect: false,
23
+ showSelect2: false,
24
+ showNumber: false,
25
+ showPicker: false,
26
+ isReady: false,
27
+ action1: [{ name: 'Action' }, { name: 'Action' }, { name: 'Action' }],
28
+ action2: [
29
+ { name: I18n.t('coloringOptions'), color: '#ee0a24' },
30
+ { loading: true },
31
+ { name: I18n.t('disableOption'), disabled: true },
32
+ ],
33
+ actionSelect: [
34
+ { id: 0, name: 'Action', checked: true },
35
+ { id: 1, name: 'Action', checked: false },
36
+ { id: 2, name: 'Action', checked: false },
37
+ ],
38
+ currentNumber: 0,
39
+ currentDate: new Date(2018, 0, 1),
40
+ currentDateStr: new Date(2018, 0, 1).toLocaleDateString(),
41
+ minDate: new Date(2018, 0, 1).getTime(),
42
+ formatter: function (type, value) {
43
+ if (type === 'year') {
44
+ return "".concat(value).concat(I18n.t('year'));
45
+ }
46
+ if (type === 'month') {
47
+ return "".concat(value).concat(I18n.t('month'));
48
+ }
49
+ return value;
50
+ },
51
+ },
52
+ methods: {
53
+ toggle: function (type) {
54
+ var _a;
55
+ this.setData((_a = {},
56
+ _a[type] = !this.data[type],
57
+ _a));
58
+ },
59
+ toggleActionSheet1: function () {
60
+ this.toggle('show1');
61
+ },
62
+ toggleActionSheet2: function () {
63
+ this.toggle('show2');
64
+ },
65
+ toggleActionSheet3: function () {
66
+ this.toggle('show3');
67
+ },
68
+ toggleActionSheet4: function () {
69
+ this.toggle('show4');
70
+ },
71
+ toggleActionSheet5: function () {
72
+ this.toggle('show5');
73
+ },
74
+ toggleActionSheet6: function () {
75
+ this.toggle('show6');
76
+ },
77
+ toggleActionSheetSelect: function () {
78
+ this.toggle('showSelect');
79
+ },
80
+ toggleActionSheetSelect2: function () {
81
+ this.toggle('showSelect2');
82
+ },
83
+ toggleActionSheetNumber: function () {
84
+ this.toggle('showNumber');
85
+ },
86
+ toggleActionSheetPicker: function () {
87
+ this.toggle('showPicker');
88
+ },
89
+ onAfterEnter: function () {
90
+ this.setData({ isReady: true });
91
+ },
92
+ onChange: function (event) {
93
+ this.setData({ currentNumber: event.detail.value });
94
+ },
95
+ onSelect: function (evt) {
96
+ var id = evt.detail.id;
97
+ var newActionSelect = this.data.actionSelect.map(function (item) {
98
+ if (item.id === id)
99
+ return __assign(__assign({}, item), { checked: true });
100
+ return __assign(__assign({}, item), { checked: false });
101
+ });
102
+ this.setData({
103
+ actionSelect: newActionSelect,
104
+ });
105
+ },
106
+ onInput: function (event) {
107
+ var detail = event.detail;
108
+ var date = new Date(detail);
109
+ this.setData({ currentDate: date });
110
+ },
111
+ onPickerConfirm: function () {
112
+ var _a, _b;
113
+ this.setData({
114
+ showPicker: false,
115
+ currentDateStr: (_b = (_a = this.data) === null || _a === void 0 ? void 0 : _a.currentDate) === null || _b === void 0 ? void 0 : _b.toLocaleDateString(),
116
+ });
117
+ },
118
+ },
119
+ });
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- var Checkmark_1 = __importDefault(require("@tuya-miniapp/icons/dist/svg/Checkmark"));
6
+ var Check_1 = __importDefault(require("@tuya-miniapp/icons/dist/svg/Check"));
7
7
  var component_1 = require("../common/component");
8
8
  var button_1 = require("../mixins/button");
9
9
  (0, component_1.SmartComponent)({
@@ -54,7 +54,7 @@ var button_1 = require("../mixins/button");
54
54
  },
55
55
  },
56
56
  data: {
57
- checkMarkIcon: Checkmark_1.default,
57
+ checkMarkIcon: Check_1.default,
58
58
  checkMarkIconColor: '#3678E3',
59
59
  },
60
60
  mounted: function () {
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,47 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ var _a;
6
+ Object.defineProperty(exports, "__esModule", { value: true });
7
+ var component_1 = require("../../common/component");
8
+ var toast_1 = __importDefault(require("../../toast/toast"));
9
+ var db = (_a = wx.cloud) === null || _a === void 0 ? void 0 : _a.database();
10
+ (0, component_1.SmartComponent)({
11
+ data: {
12
+ areaList: {},
13
+ loading: true,
14
+ value: 330302,
15
+ },
16
+ mounted: function () {
17
+ var _this = this;
18
+ db === null || db === void 0 ? void 0 : db.collection('region').limit(1).get().then(function (res) {
19
+ if (res.data && res.data.length > 0) {
20
+ _this.setData({
21
+ loading: false,
22
+ areaList: res.data[0],
23
+ });
24
+ }
25
+ }).catch(function (err) {
26
+ console.log(err);
27
+ _this.setData({
28
+ loading: false,
29
+ });
30
+ });
31
+ },
32
+ methods: {
33
+ onChange: function (event) {
34
+ var values = event.detail.values;
35
+ (0, toast_1.default)({
36
+ context: this,
37
+ message: values.map(function (item) { return item.name; }).join('-'),
38
+ });
39
+ },
40
+ onConfirm: function (event) {
41
+ console.log(event);
42
+ },
43
+ onCancel: function (event) {
44
+ console.log(event);
45
+ },
46
+ },
47
+ });
package/lib/area/index.js CHANGED
@@ -79,8 +79,7 @@ var EMPTY_CODE = '000000';
79
79
  parseValues: function (values) {
80
80
  var columnsPlaceholder = this.data.columnsPlaceholder;
81
81
  return values.map(function (value, index) {
82
- if (value &&
83
- (!value.code || value.name === columnsPlaceholder[index])) {
82
+ if (value && (!value.code || value.name === columnsPlaceholder[index])) {
84
83
  return __assign(__assign({}, value), { code: '', name: '' });
85
84
  }
86
85
  return value;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ var component_1 = require("../../common/component");
4
+ (0, component_1.SmartComponent)({});
@@ -86,9 +86,7 @@ var wrapBatteryD = 'M6.5,0 C6.77614237,-5.07265313e-17 7,0.223857625 7,0.5 L7,1
86
86
  toSvgCssBackground: function (svgString) {
87
87
  var res = svgString;
88
88
  res = svgString
89
- .replace('<svg', ~svgString.indexOf('xmlns')
90
- ? '<svg'
91
- : '<svg xmlns="http://www.w3.org/2000/svg"')
89
+ .replace('<svg', ~svgString.indexOf('xmlns') ? '<svg' : '<svg xmlns="http://www.w3.org/2000/svg"')
92
90
  .replace(/"/g, "'")
93
91
  .replace(/%/g, '%25')
94
92
  .replace(/#/g, '%23')
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,27 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ var component_1 = require("../../common/component");
4
+ (0, component_1.SmartComponent)({
5
+ data: {
6
+ show1: false,
7
+ show2: false,
8
+ show3: false,
9
+ },
10
+ methods: {
11
+ toggle: function (type) {
12
+ var _a;
13
+ this.setData((_a = {},
14
+ _a[type] = !this.data[type],
15
+ _a));
16
+ },
17
+ toggleActionSheet1: function () {
18
+ this.toggle('show1');
19
+ },
20
+ toggleActionSheet2: function () {
21
+ this.toggle('show2');
22
+ },
23
+ toggleActionSheet3: function () {
24
+ this.toggle('show3');
25
+ },
26
+ },
27
+ });
@@ -1 +1 @@
1
- @import '../common/index.css';.smart-bottom-sheet{color:var(--bottom-sheet-font-color,var(--app-B4-N1,#000));max-height:var(--bottom-sheet-max-height,50%)!important;min-height:var(--bottom-sheet-min-height,auto);padding:var(--bottom-sheet-padding,0 16px);padding-bottom:env(safe-area-inset-bottom);width:var(--bottom-sheet-width,100%)!important}.smart-bottom-sheet__header{color:var(--bottom-sheet-header-color,var(--app-B4-N1,#000));font-size:var(--bottom-sheet-header-font-size,17px);font-weight:var(--bottom-sheet-header-font-weight,600);line-height:var(--bottom-sheet-header-height,56px);text-align:center}.smart-bottom-sheet__icon{margin:var(--bottom-sheet-icon-margin,16px 16px 0 0);position:absolute;right:0;top:0}
1
+ @import '../common/index.css';.smart-bottom-sheet{color:var(--bottom-sheet-font-color,var(--app-B4-N1,#000));display:flex;flex-direction:column;max-height:var(--bottom-sheet-max-height,50%)!important;min-height:var(--bottom-sheet-min-height,auto);padding:var(--bottom-sheet-padding,0 16px);padding-bottom:env(safe-area-inset-bottom);width:var(--bottom-sheet-width,100%)!important}.smart-bottom-sheet__header{color:var(--bottom-sheet-header-color,var(--app-B4-N1,#000));font-size:var(--bottom-sheet-header-font-size,17px);font-weight:var(--bottom-sheet-header-font-weight,600);line-height:var(--bottom-sheet-header-height,56px);text-align:center}.smart-bottom-sheet__content{overflow-y:scroll}.smart-bottom-sheet__icon{margin:var(--bottom-sheet-icon-margin,16px 16px 0 0);position:absolute;right:0;top:0}
@@ -9,6 +9,7 @@ var component_1 = require("../common/component");
9
9
  props: {
10
10
  show: Boolean,
11
11
  title: String,
12
+ iconColor: String,
12
13
  iconSize: {
13
14
  type: null,
14
15
  value: 24,
@@ -36,13 +37,13 @@ var component_1 = require("../common/component");
36
37
  },
37
38
  data: {
38
39
  xmarkIcon: Xmark_1.default,
39
- xmarkIconColor: '#3678E3',
40
+ xmarkIconColor: 'rgba(0, 0, 0, 0.5)',
40
41
  },
41
42
  mounted: function () {
42
43
  var _a;
43
44
  // @ts-ignore
44
45
  var themeInfo = (_a = ty === null || ty === void 0 ? void 0 : ty.getThemeInfo()) !== null && _a !== void 0 ? _a : {};
45
- var xmarkIconColor = this.data.activeColor || themeInfo['--app-B4-N3'] || 'rgba(0, 0, 0, 0.5)';
46
+ var xmarkIconColor = this.data.iconColor || themeInfo['--app-B4-N3'] || 'rgba(0, 0, 0, 0.5)';
46
47
  this.setData({ xmarkIconColor: xmarkIconColor });
47
48
  },
48
49
  methods: {
@@ -22,5 +22,7 @@
22
22
  {{ title }}
23
23
  <smart-icon bind:click="onClose" name="{{ xmarkIcon }}" class="smart-bottom-sheet__icon" size="{{ iconSize }}" color="{{ xmarkIconColor }}" />
24
24
  </view>
25
- <slot />
25
+ <view class="smart-bottom-sheet__content">
26
+ <slot />
27
+ </view>
26
28
  </smart-popup>
@@ -1 +1 @@
1
- @import '../common/index.wxss';.smart-bottom-sheet{color:var(--bottom-sheet-font-color,var(--app-B4-N1,#000));max-height:var(--bottom-sheet-max-height,50%)!important;min-height:var(--bottom-sheet-min-height,auto);padding:var(--bottom-sheet-padding,0 16px);padding-bottom:env(safe-area-inset-bottom);width:var(--bottom-sheet-width,100%)!important}.smart-bottom-sheet__header{color:var(--bottom-sheet-header-color,var(--app-B4-N1,#000));font-size:var(--bottom-sheet-header-font-size,17px);font-weight:var(--bottom-sheet-header-font-weight,600);line-height:var(--bottom-sheet-header-height,56px);text-align:center}.smart-bottom-sheet__icon{margin:var(--bottom-sheet-icon-margin,16px 16px 0 0);position:absolute;right:0;top:0}
1
+ @import '../common/index.wxss';.smart-bottom-sheet{color:var(--bottom-sheet-font-color,var(--app-B4-N1,#000));display:flex;flex-direction:column;max-height:var(--bottom-sheet-max-height,50%)!important;min-height:var(--bottom-sheet-min-height,auto);padding:var(--bottom-sheet-padding,0 16px);padding-bottom:env(safe-area-inset-bottom);width:var(--bottom-sheet-width,100%)!important}.smart-bottom-sheet__header{color:var(--bottom-sheet-header-color,var(--app-B4-N1,#000));font-size:var(--bottom-sheet-header-font-size,17px);font-weight:var(--bottom-sheet-header-font-weight,600);line-height:var(--bottom-sheet-header-height,56px);text-align:center}.smart-bottom-sheet__content{overflow-y:scroll}.smart-bottom-sheet__icon{margin:var(--bottom-sheet-icon-margin,16px 16px 0 0);position:absolute;right:0;top:0}
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ var PlusCircle_1 = __importDefault(require("@tuya-miniapp/icons/dist/svg/PlusCircle"));
7
+ var Right_1 = __importDefault(require("@tuya-miniapp/icons/dist/svg/Right"));
8
+ var component_1 = require("../../common/component");
9
+ (0, component_1.SmartComponent)({
10
+ data: {
11
+ iconAdd: PlusCircle_1.default,
12
+ iconRight: Right_1.default,
13
+ },
14
+ });
@@ -1 +1 @@
1
- @import '../common/index.css';.smart-button{-webkit-text-size-adjust:100%;align-items:center;-webkit-appearance:none;border-radius:var(--button-border-radius,10px);box-sizing:border-box;display:inline-flex;font-size:var(--button-default-font-size,16px);font-weight:400;height:var(--button-default-height,48px);justify-content:center;line-height:var(--button-line-height,20px);padding:0;position:relative;text-align:center;transition:opacity .2s;vertical-align:middle}.smart-button:before{background-color:#000;border:inherit;border-color:#000;border-radius:inherit;content:" ";height:100%;left:50%;opacity:0;position:absolute;top:50%;transform:translate(-50%,-50%);width:100%}.smart-button:after{border-width:0}.smart-button--active:before{opacity:.15}.smart-button--unclickable:after{display:none}.smart-button--default{background:var(--button-default-background-color,var(--app-B3,#fff));border:var(--button-border-width,1px) solid var(--button-default-border-color,var(--app-B6-N7,rgba(0,0,0,.1)));color:var(--button-default-color,#323233)}.smart-button--default .smart-button__icon>view>view,.smart-button--default .smart-button__right-icon>view>view{background:var(--button-default-color,#323233)}.smart-button--primary{background:var(--button-primary-background-color,var(--app-M3,#2dda86));border:var(--button-border-width,1px) solid var(--button-primary-border-color,var(--app-M3,#2dda86));color:var(--button-primary-color,#fff);font-weight:600}.smart-button--primary .smart-button__icon>view>view,.smart-button--primary .smart-button__right-icon>view>view{background:var(--button-primary-color,#fff)}.smart-button--info{background:var(--button-info-background-color,var(--app-M4,#1989fa));border:var(--button-border-width,1px) solid var(--button-info-border-color,var(--app-M4,#1989fa));color:var(--button-info-color,#fff)}.smart-button--info .smart-button__icon>view>view,.smart-button--info .smart-button__right-icon>view>view{background:var(--button-info-color,#fff)}.smart-button--danger{background:var(--button-danger-background-color,var(--app-M2,#f04c4c));border:var(--button-border-width,1px) solid var(--button-danger-border-color,var(--app-M2,#f04c4c));color:var(--button-danger-color,#fff)}.smart-button--danger .smart-button__icon>view>view,.smart-button--danger .smart-button__right-icon>view>view{background:var(--button-danger-color,#fff)}.smart-button--warning{background:var(--button-warning-background-color,var(--app-M5,#ffa000));border:var(--button-border-width,1px) solid var(--button-warning-border-color,var(--app-M5,#ffa000));color:var(--button-warning-color,#fff)}.smart-button--warning .smart-button__icon>view>view,.smart-button--warning .smart-button__right-icon>view>view{background:var(--button-warning-color,#fff)}.smart-button--plain{background:var(--button-plain-background-color,#fff)}.smart-button--plain.smart-button--primary{color:var(--button-primary-background-color,var(--app-M3,#2dda86))}.smart-button--plain.smart-button--primary .smart-button__icon>view>view,.smart-button--plain.smart-button--primary .smart-button__right-icon>view>view{background:var(--button-primary-background-color,var(--app-M3,#2dda86))}.smart-button--plain.smart-button--info{color:var(--button-info-background-color,var(--app-M4,#1989fa))}.smart-button--plain.smart-button--info .smart-button__icon>view>view,.smart-button--plain.smart-button--info .smart-button__right-icon>view>view{background:var(--button-info-background-color,var(--app-M4,#1989fa))}.smart-button--plain.smart-button--danger{color:var(--button-danger-background-color,var(--app-M2,#f04c4c))}.smart-button--plain.smart-button--danger .smart-button__icon>view>view,.smart-button--plain.smart-button--danger .smart-button__right-icon>view>view{background:var(--button-danger-background-color,var(--app-M2,#f04c4c))}.smart-button--plain.smart-button--warning{color:var(--button-warning-background-color,var(--app-M5,#ffa000))}.smart-button--plain.smart-button--warning .smart-button__icon>view>view,.smart-button--plain.smart-button--warning .smart-button__right-icon>view>view{background:var(--button-warning-background-color,var(--app-M5,#ffa000))}.smart-button--large{height:var(--button-large-height,48px);width:100%}.smart-button--normal{font-size:var(--button-normal-font-size,14px);padding:0 15px}.smart-button--small{font-size:var(--button-small-font-size,12px);height:var(--button-small-height,30px);min-width:var(--button-small-min-width,60px);padding:0 var(--padding-xs,8px)}.smart-button--mini{display:inline-block;font-size:var(--button-mini-font-size,10px);height:var(--button-mini-height,22px);min-width:var(--button-mini-min-width,50px)}.smart-button--mini+.smart-button--mini{margin-left:5px}.smart-button--block{display:flex;width:100%}.smart-button--round{border-radius:var(--button-round-border-radius,999px)}.smart-button--square{border-radius:0}.smart-button--disabled{opacity:var(--button-disabled-opacity,.3)}.smart-button__text{display:inline}.smart-button__icon+.smart-button__text:not(:empty),.smart-button__loading-text,.smart-button__text:not(:empty)+.smart-button__right-icon{margin-left:4px}.smart-button__icon,.smart-button__right-icon{line-height:inherit!important;min-width:1em;vertical-align:top}.smart-button--hairline{border-width:0;padding-top:1px}.smart-button--hairline:after{border-color:inherit;border-radius:calc(var(--button-border-radius, 10px)*2);border-width:1px}.smart-button--hairline.smart-button--round:after{border-radius:var(--button-round-border-radius,999px)}.smart-button--hairline.smart-button--square:after{border-radius:0}
1
+ @import '../common/index.css';.smart-button{-webkit-text-size-adjust:100%;align-items:center;-webkit-appearance:none;border-radius:var(--button-border-radius,10px);box-sizing:border-box;display:inline-flex;font-size:var(--button-default-font-size,16px);font-weight:400;height:var(--button-default-height,48px);justify-content:center;line-height:var(--button-line-height,20px);padding:0;position:relative;text-align:center;transition:opacity .2s;vertical-align:middle}.smart-button:before{background-color:#000;border:inherit;border-color:#000;border-radius:inherit;content:" ";height:100%;left:50%;opacity:0;position:absolute;top:50%;transform:translate(-50%,-50%);width:100%}.smart-button:after{border-width:0}.smart-button--active:before{opacity:.15}.smart-button--unclickable:after{display:none}.smart-button--default{background:var(--button-default-background-color,var(--app-B3,#fff));border:var(--button-border-width,1px) solid var(--button-default-border-color,var(--app-B6-N7,rgba(0,0,0,.1)));color:var(--button-default-color,var(--app-B1-N1,#000))}.smart-button--default .smart-button__icon>view>view,.smart-button--default .smart-button__right-icon>view>view{background:var(--button-default-color,var(--app-B1-N1,#000))}.smart-button--primary{background:var(--button-primary-background-color,var(--app-M3,#2dda86));border:var(--button-border-width,1px) solid var(--button-primary-border-color,var(--app-M3,#2dda86));color:var(--button-primary-color,#fff);font-weight:600}.smart-button--primary .smart-button__icon>view>view,.smart-button--primary .smart-button__right-icon>view>view{background:var(--button-primary-color,#fff)}.smart-button--info{background:var(--button-info-background-color,var(--app-M4,#1989fa));border:var(--button-border-width,1px) solid var(--button-info-border-color,var(--app-M4,#1989fa));color:var(--button-info-color,#fff)}.smart-button--info .smart-button__icon>view>view,.smart-button--info .smart-button__right-icon>view>view{background:var(--button-info-color,#fff)}.smart-button--danger{background:var(--button-danger-background-color,var(--app-M2,#f04c4c));border:var(--button-border-width,1px) solid var(--button-danger-border-color,var(--app-M2,#f04c4c));color:var(--button-danger-color,#fff)}.smart-button--danger .smart-button__icon>view>view,.smart-button--danger .smart-button__right-icon>view>view{background:var(--button-danger-color,#fff)}.smart-button--warning{background:var(--button-warning-background-color,var(--app-M5,#ffa000));border:var(--button-border-width,1px) solid var(--button-warning-border-color,var(--app-M5,#ffa000));color:var(--button-warning-color,#fff)}.smart-button--warning .smart-button__icon>view>view,.smart-button--warning .smart-button__right-icon>view>view{background:var(--button-warning-color,#fff)}.smart-button--plain{background:var(--button-plain-background-color,#fff)}.smart-button--plain.smart-button--primary{color:var(--button-primary-background-color,var(--app-M3,#2dda86))}.smart-button--plain.smart-button--primary .smart-button__icon>view>view,.smart-button--plain.smart-button--primary .smart-button__right-icon>view>view{background:var(--button-primary-background-color,var(--app-M3,#2dda86))}.smart-button--plain.smart-button--info{color:var(--button-info-background-color,var(--app-M4,#1989fa))}.smart-button--plain.smart-button--info .smart-button__icon>view>view,.smart-button--plain.smart-button--info .smart-button__right-icon>view>view{background:var(--button-info-background-color,var(--app-M4,#1989fa))}.smart-button--plain.smart-button--danger{color:var(--button-danger-background-color,var(--app-M2,#f04c4c))}.smart-button--plain.smart-button--danger .smart-button__icon>view>view,.smart-button--plain.smart-button--danger .smart-button__right-icon>view>view{background:var(--button-danger-background-color,var(--app-M2,#f04c4c))}.smart-button--plain.smart-button--warning{color:var(--button-warning-background-color,var(--app-M5,#ffa000))}.smart-button--plain.smart-button--warning .smart-button__icon>view>view,.smart-button--plain.smart-button--warning .smart-button__right-icon>view>view{background:var(--button-warning-background-color,var(--app-M5,#ffa000))}.smart-button--large{height:var(--button-large-height,48px);width:100%}.smart-button--normal{font-size:var(--button-normal-font-size,14px);padding:0 15px}.smart-button--small{font-size:var(--button-small-font-size,12px);height:var(--button-small-height,30px);min-width:var(--button-small-min-width,60px);padding:0 var(--padding-xs,8px)}.smart-button--mini{display:inline-block;font-size:var(--button-mini-font-size,10px);height:var(--button-mini-height,22px);min-width:var(--button-mini-min-width,50px)}.smart-button--mini+.smart-button--mini{margin-left:5px}.smart-button--block{display:flex;width:100%}.smart-button--round{border-radius:var(--button-round-border-radius,999px)}.smart-button--square{border-radius:0}.smart-button--disabled{opacity:var(--button-disabled-opacity,.3)}.smart-button__text{display:inline}.smart-button__icon+.smart-button__text:not(:empty),.smart-button__loading-text,.smart-button__text:not(:empty)+.smart-button__right-icon{margin-left:4px}.smart-button__icon,.smart-button__right-icon{line-height:inherit!important;min-width:1em;vertical-align:top}.smart-button--hairline{border-width:0;padding-top:1px}.smart-button--hairline:after{border-color:inherit;border-radius:calc(var(--button-border-radius, 10px)*2);border-width:1px}.smart-button--hairline.smart-button--round:after{border-radius:var(--button-round-border-radius,999px)}.smart-button--hairline.smart-button--square:after{border-radius:0}
@@ -1 +1 @@
1
- @import '../common/index.wxss';.smart-button{-webkit-text-size-adjust:100%;align-items:center;-webkit-appearance:none;border-radius:var(--button-border-radius,10px);box-sizing:border-box;display:inline-flex;font-size:var(--button-default-font-size,16px);font-weight:400;height:var(--button-default-height,48px);justify-content:center;line-height:var(--button-line-height,20px);padding:0;position:relative;text-align:center;transition:opacity .2s;vertical-align:middle}.smart-button:before{background-color:#000;border:inherit;border-color:#000;border-radius:inherit;content:" ";height:100%;left:50%;opacity:0;position:absolute;top:50%;transform:translate(-50%,-50%);width:100%}.smart-button:after{border-width:0}.smart-button--active:before{opacity:.15}.smart-button--unclickable:after{display:none}.smart-button--default{background:var(--button-default-background-color,var(--app-B3,#fff));border:var(--button-border-width,1px) solid var(--button-default-border-color,var(--app-B6-N7,rgba(0,0,0,.1)));color:var(--button-default-color,#323233)}.smart-button--default .smart-button__icon>view>view,.smart-button--default .smart-button__right-icon>view>view{background:var(--button-default-color,#323233)}.smart-button--primary{background:var(--button-primary-background-color,var(--app-M3,#2dda86));border:var(--button-border-width,1px) solid var(--button-primary-border-color,var(--app-M3,#2dda86));color:var(--button-primary-color,#fff);font-weight:600}.smart-button--primary .smart-button__icon>view>view,.smart-button--primary .smart-button__right-icon>view>view{background:var(--button-primary-color,#fff)}.smart-button--info{background:var(--button-info-background-color,var(--app-M4,#1989fa));border:var(--button-border-width,1px) solid var(--button-info-border-color,var(--app-M4,#1989fa));color:var(--button-info-color,#fff)}.smart-button--info .smart-button__icon>view>view,.smart-button--info .smart-button__right-icon>view>view{background:var(--button-info-color,#fff)}.smart-button--danger{background:var(--button-danger-background-color,var(--app-M2,#f04c4c));border:var(--button-border-width,1px) solid var(--button-danger-border-color,var(--app-M2,#f04c4c));color:var(--button-danger-color,#fff)}.smart-button--danger .smart-button__icon>view>view,.smart-button--danger .smart-button__right-icon>view>view{background:var(--button-danger-color,#fff)}.smart-button--warning{background:var(--button-warning-background-color,var(--app-M5,#ffa000));border:var(--button-border-width,1px) solid var(--button-warning-border-color,var(--app-M5,#ffa000));color:var(--button-warning-color,#fff)}.smart-button--warning .smart-button__icon>view>view,.smart-button--warning .smart-button__right-icon>view>view{background:var(--button-warning-color,#fff)}.smart-button--plain{background:var(--button-plain-background-color,#fff)}.smart-button--plain.smart-button--primary{color:var(--button-primary-background-color,var(--app-M3,#2dda86))}.smart-button--plain.smart-button--primary .smart-button__icon>view>view,.smart-button--plain.smart-button--primary .smart-button__right-icon>view>view{background:var(--button-primary-background-color,var(--app-M3,#2dda86))}.smart-button--plain.smart-button--info{color:var(--button-info-background-color,var(--app-M4,#1989fa))}.smart-button--plain.smart-button--info .smart-button__icon>view>view,.smart-button--plain.smart-button--info .smart-button__right-icon>view>view{background:var(--button-info-background-color,var(--app-M4,#1989fa))}.smart-button--plain.smart-button--danger{color:var(--button-danger-background-color,var(--app-M2,#f04c4c))}.smart-button--plain.smart-button--danger .smart-button__icon>view>view,.smart-button--plain.smart-button--danger .smart-button__right-icon>view>view{background:var(--button-danger-background-color,var(--app-M2,#f04c4c))}.smart-button--plain.smart-button--warning{color:var(--button-warning-background-color,var(--app-M5,#ffa000))}.smart-button--plain.smart-button--warning .smart-button__icon>view>view,.smart-button--plain.smart-button--warning .smart-button__right-icon>view>view{background:var(--button-warning-background-color,var(--app-M5,#ffa000))}.smart-button--large{height:var(--button-large-height,48px);width:100%}.smart-button--normal{font-size:var(--button-normal-font-size,14px);padding:0 15px}.smart-button--small{font-size:var(--button-small-font-size,12px);height:var(--button-small-height,30px);min-width:var(--button-small-min-width,60px);padding:0 var(--padding-xs,8px)}.smart-button--mini{display:inline-block;font-size:var(--button-mini-font-size,10px);height:var(--button-mini-height,22px);min-width:var(--button-mini-min-width,50px)}.smart-button--mini+.smart-button--mini{margin-left:5px}.smart-button--block{display:flex;width:100%}.smart-button--round{border-radius:var(--button-round-border-radius,999px)}.smart-button--square{border-radius:0}.smart-button--disabled{opacity:var(--button-disabled-opacity,.3)}.smart-button__text{display:inline}.smart-button__icon+.smart-button__text:not(:empty),.smart-button__loading-text,.smart-button__text:not(:empty)+.smart-button__right-icon{margin-left:4px}.smart-button__icon,.smart-button__right-icon{line-height:inherit!important;min-width:1em;vertical-align:top}.smart-button--hairline{border-width:0;padding-top:1px}.smart-button--hairline:after{border-color:inherit;border-radius:calc(var(--button-border-radius, 10px)*2);border-width:1px}.smart-button--hairline.smart-button--round:after{border-radius:var(--button-round-border-radius,999px)}.smart-button--hairline.smart-button--square:after{border-radius:0}
1
+ @import '../common/index.wxss';.smart-button{-webkit-text-size-adjust:100%;align-items:center;-webkit-appearance:none;border-radius:var(--button-border-radius,10px);box-sizing:border-box;display:inline-flex;font-size:var(--button-default-font-size,16px);font-weight:400;height:var(--button-default-height,48px);justify-content:center;line-height:var(--button-line-height,20px);padding:0;position:relative;text-align:center;transition:opacity .2s;vertical-align:middle}.smart-button:before{background-color:#000;border:inherit;border-color:#000;border-radius:inherit;content:" ";height:100%;left:50%;opacity:0;position:absolute;top:50%;transform:translate(-50%,-50%);width:100%}.smart-button:after{border-width:0}.smart-button--active:before{opacity:.15}.smart-button--unclickable:after{display:none}.smart-button--default{background:var(--button-default-background-color,var(--app-B3,#fff));border:var(--button-border-width,1px) solid var(--button-default-border-color,var(--app-B6-N7,rgba(0,0,0,.1)));color:var(--button-default-color,var(--app-B1-N1,#000))}.smart-button--default .smart-button__icon>view>view,.smart-button--default .smart-button__right-icon>view>view{background:var(--button-default-color,var(--app-B1-N1,#000))}.smart-button--primary{background:var(--button-primary-background-color,var(--app-M3,#2dda86));border:var(--button-border-width,1px) solid var(--button-primary-border-color,var(--app-M3,#2dda86));color:var(--button-primary-color,#fff);font-weight:600}.smart-button--primary .smart-button__icon>view>view,.smart-button--primary .smart-button__right-icon>view>view{background:var(--button-primary-color,#fff)}.smart-button--info{background:var(--button-info-background-color,var(--app-M4,#1989fa));border:var(--button-border-width,1px) solid var(--button-info-border-color,var(--app-M4,#1989fa));color:var(--button-info-color,#fff)}.smart-button--info .smart-button__icon>view>view,.smart-button--info .smart-button__right-icon>view>view{background:var(--button-info-color,#fff)}.smart-button--danger{background:var(--button-danger-background-color,var(--app-M2,#f04c4c));border:var(--button-border-width,1px) solid var(--button-danger-border-color,var(--app-M2,#f04c4c));color:var(--button-danger-color,#fff)}.smart-button--danger .smart-button__icon>view>view,.smart-button--danger .smart-button__right-icon>view>view{background:var(--button-danger-color,#fff)}.smart-button--warning{background:var(--button-warning-background-color,var(--app-M5,#ffa000));border:var(--button-border-width,1px) solid var(--button-warning-border-color,var(--app-M5,#ffa000));color:var(--button-warning-color,#fff)}.smart-button--warning .smart-button__icon>view>view,.smart-button--warning .smart-button__right-icon>view>view{background:var(--button-warning-color,#fff)}.smart-button--plain{background:var(--button-plain-background-color,#fff)}.smart-button--plain.smart-button--primary{color:var(--button-primary-background-color,var(--app-M3,#2dda86))}.smart-button--plain.smart-button--primary .smart-button__icon>view>view,.smart-button--plain.smart-button--primary .smart-button__right-icon>view>view{background:var(--button-primary-background-color,var(--app-M3,#2dda86))}.smart-button--plain.smart-button--info{color:var(--button-info-background-color,var(--app-M4,#1989fa))}.smart-button--plain.smart-button--info .smart-button__icon>view>view,.smart-button--plain.smart-button--info .smart-button__right-icon>view>view{background:var(--button-info-background-color,var(--app-M4,#1989fa))}.smart-button--plain.smart-button--danger{color:var(--button-danger-background-color,var(--app-M2,#f04c4c))}.smart-button--plain.smart-button--danger .smart-button__icon>view>view,.smart-button--plain.smart-button--danger .smart-button__right-icon>view>view{background:var(--button-danger-background-color,var(--app-M2,#f04c4c))}.smart-button--plain.smart-button--warning{color:var(--button-warning-background-color,var(--app-M5,#ffa000))}.smart-button--plain.smart-button--warning .smart-button__icon>view>view,.smart-button--plain.smart-button--warning .smart-button__right-icon>view>view{background:var(--button-warning-background-color,var(--app-M5,#ffa000))}.smart-button--large{height:var(--button-large-height,48px);width:100%}.smart-button--normal{font-size:var(--button-normal-font-size,14px);padding:0 15px}.smart-button--small{font-size:var(--button-small-font-size,12px);height:var(--button-small-height,30px);min-width:var(--button-small-min-width,60px);padding:0 var(--padding-xs,8px)}.smart-button--mini{display:inline-block;font-size:var(--button-mini-font-size,10px);height:var(--button-mini-height,22px);min-width:var(--button-mini-min-width,50px)}.smart-button--mini+.smart-button--mini{margin-left:5px}.smart-button--block{display:flex;width:100%}.smart-button--round{border-radius:var(--button-round-border-radius,999px)}.smart-button--square{border-radius:0}.smart-button--disabled{opacity:var(--button-disabled-opacity,.3)}.smart-button__text{display:inline}.smart-button__icon+.smart-button__text:not(:empty),.smart-button__loading-text,.smart-button__text:not(:empty)+.smart-button__right-icon{margin-left:4px}.smart-button__icon,.smart-button__right-icon{line-height:inherit!important;min-width:1em;vertical-align:top}.smart-button--hairline{border-width:0;padding-top:1px}.smart-button--hairline:after{border-color:inherit;border-radius:calc(var(--button-border-radius, 10px)*2);border-width:1px}.smart-button--hairline.smart-button--round:after{border-radius:var(--button-round-border-radius,999px)}.smart-button--hairline.smart-button--square:after{border-radius:0}
@@ -1 +1 @@
1
- @import '../../../common/index.css';.smart-calendar__header{flex-shrink:0}.smart-calendar__header-title{position:relative}.smart-calendar__header-title-save{color:var(--calendar-header-title-save-color,#1989fa);font-size:16px;font-weight:400;letter-spacing:0;line-height:24px;position:absolute;right:48rpx;text-align:right;top:50%;transform:translateY(-50%)}.smart-calendar__header-subtitle,.smart-calendar__header-title{font-size:16px;font-weight:var(--font-weight-bold,500);font-weight:500;height:var(--calendar-header-title-height,44px);line-height:var(--calendar-header-title-height,44px);text-align:center}.smart-calendar__header-subtitle_wrap{align-items:center;display:flex;justify-content:center;position:relative}.smart-calendar__header-subtitle_left{left:52rpx}.smart-calendar__header-subtitle_left,.smart-calendar__header-subtitle_right{align-items:center;background:rgba(0,0,0,.05);border-radius:50%;display:flex;height:48rpx;justify-content:center;position:absolute;top:50%;transform:translateY(-50%);width:48rpx}.smart-calendar__header-subtitle_right{right:52rpx}.smart-calendar__header-title+.smart-calendar__header-title,.smart-calendar__header-title:empty{display:none}.smart-calendar__header-title:empty+.smart-calendar__header-title{display:block!important}.smart-calendar__weekdays{display:flex;margin-bottom:16rpx;margin-top:16rpx}.smart-calendar__weekday{color:var(--calendar-weekdays-font-color,var(--app-B4-N1,#000));flex:1;font-size:var(--calendar-weekdays-font-size,12px);font-weight:500;line-height:var(--calendar-weekdays-height,30px);opacity:.5;text-align:center}
1
+ @import '../../../common/index.css';.smart-calendar__header{flex-shrink:0}.smart-calendar__header-title{position:relative}.smart-calendar__header-title-save{color:var(--calendar-header-title-save-color,#1989fa);font-size:16px;font-weight:400;letter-spacing:0;line-height:24px;position:absolute;right:48rpx;text-align:right;top:50%;transform:translateY(-50%)}.smart-calendar__header-subtitle,.smart-calendar__header-title{color:var(--calendar-header-title-font-color,var(--app-B4-N1,#000));font-size:16px;font-weight:var(--font-weight-bold,500);height:var(--calendar-header-title-height,44px);line-height:var(--calendar-header-title-height,44px);text-align:center}.smart-calendar__header-subtitle_wrap{align-items:center;display:flex;justify-content:center;position:relative}.smart-calendar__header-subtitle_left{align-items:center;background:rgba(0,0,0,.05);border-radius:50%;display:flex;height:48rpx;justify-content:center;left:52rpx;position:absolute;top:50%;transform:translateY(-50%);width:48rpx}.smart-calendar__header-subtitle_left_icon{left:-1px;position:relative}.smart-calendar__header-subtitle_right{align-items:center;background:rgba(0,0,0,.05);border-radius:50%;display:flex;height:48rpx;justify-content:center;position:absolute;right:52rpx;top:50%;transform:translateY(-50%);width:48rpx}.smart-calendar__header-subtitle_right_icon{position:relative;right:-1px}.smart-calendar__header-title+.smart-calendar__header-title,.smart-calendar__header-title:empty{display:none}.smart-calendar__header-title:empty+.smart-calendar__header-title{display:block!important}.smart-calendar__weekdays{display:flex;margin-bottom:16rpx;margin-top:16rpx;padding-left:16rpx;padding-right:16rpx}.smart-calendar__weekday{color:var(--calendar-weekdays-font-color,var(--app-B4-N1,#000));flex:1;font-size:var(--calendar-weekdays-font-size,12px);font-weight:500;line-height:var(--calendar-weekdays-height,30px);opacity:.5;text-align:center}
@@ -3,19 +3,19 @@
3
3
  <view class="smart-calendar__header-title"><slot name="title"></slot></view>
4
4
  <view class="smart-calendar__header-title">
5
5
  {{ title }}
6
- <view class="smart-calendar__header-title-save" bind:tap=="onSave" wx:if="{{showConfirm}}">{{ rightText }}</view>
6
+ <view class="smart-calendar__header-title-save" bind:tap="onSave" wx:if="{{showConfirm}}">{{ rightText }}</view>
7
7
  </view>
8
8
  </block>
9
9
 
10
10
  <view class="smart-calendar__header-subtitle_wrap">
11
11
  <view class="smart-calendar__header-subtitle_left" bind:tap="onPrev">
12
- <smart-icon name="{{LeftIcon}}" />
12
+ <smart-icon class="smart-calendar__header-subtitle_left_icon" name="{{LeftIcon}}" />
13
13
  </view>
14
14
  <view wx:if="{{ showSubtitle }}" class="smart-calendar__header-subtitle" bind:tap="onClickSubtitle">
15
15
  {{ subtitle }}
16
16
  </view>
17
17
  <view class="smart-calendar__header-subtitle_right" bind:tap="onNext">
18
- <smart-icon name="{{RightIcon}}" />
18
+ <smart-icon class="smart-calendar__header-subtitle_right_icon" name="{{RightIcon}}" />
19
19
  </view>
20
20
  </view>
21
21
 
@@ -1 +1 @@
1
- @import '../../../common/index.wxss';.smart-calendar__header{flex-shrink:0}.smart-calendar__header-title{position:relative}.smart-calendar__header-title-save{color:var(--calendar-header-title-save-color,#1989fa);font-size:16px;font-weight:400;letter-spacing:0;line-height:24px;position:absolute;right:48rpx;text-align:right;top:50%;transform:translateY(-50%)}.smart-calendar__header-subtitle,.smart-calendar__header-title{font-size:16px;font-weight:var(--font-weight-bold,500);font-weight:500;height:var(--calendar-header-title-height,44px);line-height:var(--calendar-header-title-height,44px);text-align:center}.smart-calendar__header-subtitle_wrap{align-items:center;display:flex;justify-content:center;position:relative}.smart-calendar__header-subtitle_left{left:52rpx}.smart-calendar__header-subtitle_left,.smart-calendar__header-subtitle_right{align-items:center;background:rgba(0,0,0,.05);border-radius:50%;display:flex;height:48rpx;justify-content:center;position:absolute;top:50%;transform:translateY(-50%);width:48rpx}.smart-calendar__header-subtitle_right{right:52rpx}.smart-calendar__header-title+.smart-calendar__header-title,.smart-calendar__header-title:empty{display:none}.smart-calendar__header-title:empty+.smart-calendar__header-title{display:block!important}.smart-calendar__weekdays{display:flex;margin-bottom:16rpx;margin-top:16rpx}.smart-calendar__weekday{color:var(--calendar-weekdays-font-color,var(--app-B4-N1,#000));flex:1;font-size:var(--calendar-weekdays-font-size,12px);font-weight:500;line-height:var(--calendar-weekdays-height,30px);opacity:.5;text-align:center}
1
+ @import '../../../common/index.wxss';.smart-calendar__header{flex-shrink:0}.smart-calendar__header-title{position:relative}.smart-calendar__header-title-save{color:var(--calendar-header-title-save-color,#1989fa);font-size:16px;font-weight:400;letter-spacing:0;line-height:24px;position:absolute;right:48rpx;text-align:right;top:50%;transform:translateY(-50%)}.smart-calendar__header-subtitle,.smart-calendar__header-title{color:var(--calendar-header-title-font-color,var(--app-B4-N1,#000));font-size:16px;font-weight:var(--font-weight-bold,500);height:var(--calendar-header-title-height,44px);line-height:var(--calendar-header-title-height,44px);text-align:center}.smart-calendar__header-subtitle_wrap{align-items:center;display:flex;justify-content:center;position:relative}.smart-calendar__header-subtitle_left{align-items:center;background:rgba(0,0,0,.05);border-radius:50%;display:flex;height:48rpx;justify-content:center;left:52rpx;position:absolute;top:50%;transform:translateY(-50%);width:48rpx}.smart-calendar__header-subtitle_left_icon{left:-1px;position:relative}.smart-calendar__header-subtitle_right{align-items:center;background:rgba(0,0,0,.05);border-radius:50%;display:flex;height:48rpx;justify-content:center;position:absolute;right:52rpx;top:50%;transform:translateY(-50%);width:48rpx}.smart-calendar__header-subtitle_right_icon{position:relative;right:-1px}.smart-calendar__header-title+.smart-calendar__header-title,.smart-calendar__header-title:empty{display:none}.smart-calendar__header-title:empty+.smart-calendar__header-title{display:block!important}.smart-calendar__weekdays{display:flex;margin-bottom:16rpx;margin-top:16rpx;padding-left:16rpx;padding-right:16rpx}.smart-calendar__weekday{color:var(--calendar-weekdays-font-color,var(--app-B4-N1,#000));flex:1;font-size:var(--calendar-weekdays-font-size,12px);font-weight:500;line-height:var(--calendar-weekdays-height,30px);opacity:.5;text-align:center}
@@ -1 +1 @@
1
- @import '../../../common/index.css';.smart-calendar{background-color:var(--calendar-background-color,var(--app-B6,#fff));display:flex;flex-direction:column;height:100%}.smart-calendar__month-title{font-size:var(--calendar-month-title-font-size,14px);font-weight:var(--font-weight-bold,500);height:var(--calendar-header-title-height,44px);line-height:var(--calendar-header-title-height,44px);text-align:center}.smart-calendar__days{display:flex;flex-wrap:wrap;position:relative;-webkit-user-select:none;user-select:none}.smart-calendar__month-mark{color:var(--calendar-month-mark-color,hsla(210,6%,87%,.6));font-size:var(--calendar-month-mark-font-size,160px);left:50%;pointer-events:none;position:absolute;top:50%;transform:translate(-50%,-50%);z-index:0}.smart-calendar__day,.smart-calendar__selected-day{align-items:center;display:flex;justify-content:center;text-align:center}.smart-calendar__day{font-size:var(--calendar-day-font-size,15px);font-weight:var(--calendar-day-font-weight,500);height:var(--calendar-day-height,100rpx);position:relative;width:14.285%}.smart-calendar__day--end,.smart-calendar__day--multiple-middle,.smart-calendar__day--multiple-selected,.smart-calendar__day--start,.smart-calendar__day--start-end{background-color:var(--calendar-range-edge-background-color,#3678e3);color:var(--calendar-range-edge-color,#fff)}.smart-calendar__day--start{border-bottom-left-radius:var(--calendar-day-select-border-radius,34rpx);border-top-left-radius:var(--calendar-day-select-border-radius,34rpx)}.smart-calendar__day--end{border-bottom-right-radius:var(--calendar-day-select-border-radius,34rpx);border-top-right-radius:var(--calendar-day-select-border-radius,34rpx)}.smart-calendar__day--multiple-selected,.smart-calendar__day--start-end{border-radius:4px}.smart-calendar__day--middle{background-color:var(--calendar-range-edge-background-color,#3678e3);color:var(--calendar-range-middle-color,var(--app-B3,#fff))}.smart-calendar__day--disabled{color:var(--calendar-day-disabled-color,#c8c9cc);cursor:default}.smart-calendar__bottom-info,.smart-calendar__top-info{font-size:var(--calendar-info-font-size,10px);left:0;line-height:var(--calendar-info-line-height,14px);position:absolute;right:0}@media (max-width:350px){.smart-calendar__bottom-info,.smart-calendar__top-info{font-size:9px}}.smart-calendar__top-info{top:6px}.smart-calendar__bottom-info{bottom:6px}.smart-calendar__selected-day{background-color:var(--calendar-selected-day-background-color,#3678e3);border-radius:50%;color:var(--calendar-selected-day-color,#fff);height:var(--calendar-selected-day-size,34px);width:var(--calendar-selected-day-size,34px)}
1
+ @import '../../../common/index.css';.smart-calendar{background-color:var(--calendar-background-color,var(--app-B6,#fff));display:flex;flex-direction:column;height:100%}.smart-calendar__month{padding-bottom:48rpx;padding-left:16rpx;padding-right:16rpx}.smart-calendar__month-title{font-size:var(--calendar-month-title-font-size,14px);font-weight:var(--font-weight-bold,500);height:var(--calendar-header-title-height,44px);line-height:var(--calendar-header-title-height,44px);text-align:center}.smart-calendar__days{display:flex;flex-wrap:wrap;position:relative;-webkit-user-select:none;user-select:none}.smart-calendar__month-mark{color:var(--calendar-month-mark-color,hsla(210,6%,87%,.6));font-size:var(--calendar-month-mark-font-size,160px);left:50%;pointer-events:none;position:absolute;top:50%;transform:translate(-50%,-50%);z-index:0}.smart-calendar__day,.smart-calendar__selected-day{align-items:center;display:flex;justify-content:center;text-align:center}.smart-calendar__day{color:var(--calendar-cell-item-font-color,var(--app-B4-N1,#000));font-size:var(--calendar-cell-item-font-size,15px);font-weight:var(--calendar-day-font-weight,500);height:var(--calendar-day-height,100rpx);margin:4px 0;position:relative;width:14.285%}.smart-calendar__day--end,.smart-calendar__day--multiple-middle,.smart-calendar__day--multiple-selected,.smart-calendar__day--start,.smart-calendar__day--start-end{background-color:var(--calendar-range-edge-background-color,#3678e3);color:var(--calendar-range-edge-color,#fff)}.smart-calendar__day--start{border-bottom-left-radius:var(--calendar-day-select-border-radius,34rpx);border-top-left-radius:var(--calendar-day-select-border-radius,34rpx)}.smart-calendar__day--end{border-bottom-right-radius:var(--calendar-day-select-border-radius,34rpx);border-top-right-radius:var(--calendar-day-select-border-radius,34rpx)}.smart-calendar__day--multiple-selected,.smart-calendar__day--start-end{border-radius:4px}.smart-calendar__day--middle{background-color:var(--calendar-range-edge-background-color,#3678e3);color:var(--calendar-range-middle-color,#fff)}.smart-calendar__day--disabled{color:var(--calendar-day-disabled-color,#c8c9cc);cursor:default}.smart-calendar__bottom-info,.smart-calendar__top-info{font-size:var(--calendar-info-font-size,10px);left:0;line-height:var(--calendar-info-line-height,14px);position:absolute;right:0}@media (max-width:350px){.smart-calendar__bottom-info,.smart-calendar__top-info{font-size:9px}}.smart-calendar__top-info{top:6px}.smart-calendar__bottom-info{bottom:6px}.smart-calendar__selected-day{background-color:var(--calendar-selected-day-background-color,#3678e3);border-radius:50%;color:var(--calendar-selected-day-color,#fff);height:var(--calendar-selected-day-size,34px);width:var(--calendar-selected-day-size,34px)}
@@ -84,9 +84,7 @@ var utils_1 = require("../../utils");
84
84
  if (!Array.isArray(currentDate)) {
85
85
  return '';
86
86
  }
87
- var isSelected = function (date) {
88
- return currentDate.some(function (item) { return (0, utils_1.compareDay)(item, date) === 0; });
89
- };
87
+ var isSelected = function (date) { return currentDate.some(function (item) { return (0, utils_1.compareDay)(item, date) === 0; }); };
90
88
  if (isSelected(day)) {
91
89
  var prevDay = (0, utils_1.getPrevDay)(day);
92
90
  var nextDay = (0, utils_1.getNextDay)(day);
@@ -159,9 +157,7 @@ var utils_1 = require("../../utils");
159
157
  return this.properties.rangeEnd || 'End';
160
158
  }
161
159
  if (type === 'start-end') {
162
- return ((this.properties.rangeStart || 'Start') +
163
- '/' +
164
- (this.properties.rangeEnd || 'End'));
160
+ return ((this.properties.rangeStart || 'Start') + '/' + (this.properties.rangeEnd || 'End'));
165
161
  }
166
162
  }
167
163
  },
@@ -49,10 +49,7 @@ function getDayStyle(type, index, date, rowHeight, color, firstDayOfWeek) {
49
49
  function formatMonthTitle(date, formatter = 'YYYY-MM') {
50
50
  date = getDate(date);
51
51
  const year = date.getFullYear();
52
- const month =
53
- date.getMonth() + 1 < 10
54
- ? `0${date.getMonth() + 1}`
55
- : date.getMonth() + 1 + '';
52
+ const month = date.getMonth() + 1 < 10 ? "0" + (date.getMonth() + 1) : date.getMonth() + 1 + "";
56
53
  return formatter.replace('YYYY', year + '').replace('MM', month);
57
54
  }
58
55
 
@@ -1 +1 @@
1
- @import '../../../common/index.wxss';.smart-calendar{background-color:var(--calendar-background-color,var(--app-B6,#fff));display:flex;flex-direction:column;height:100%}.smart-calendar__month-title{font-size:var(--calendar-month-title-font-size,14px);font-weight:var(--font-weight-bold,500);height:var(--calendar-header-title-height,44px);line-height:var(--calendar-header-title-height,44px);text-align:center}.smart-calendar__days{display:flex;flex-wrap:wrap;position:relative;-webkit-user-select:none;user-select:none}.smart-calendar__month-mark{color:var(--calendar-month-mark-color,hsla(210,6%,87%,.6));font-size:var(--calendar-month-mark-font-size,160px);left:50%;pointer-events:none;position:absolute;top:50%;transform:translate(-50%,-50%);z-index:0}.smart-calendar__day,.smart-calendar__selected-day{align-items:center;display:flex;justify-content:center;text-align:center}.smart-calendar__day{font-size:var(--calendar-day-font-size,15px);font-weight:var(--calendar-day-font-weight,500);height:var(--calendar-day-height,100rpx);position:relative;width:14.285%}.smart-calendar__day--end,.smart-calendar__day--multiple-middle,.smart-calendar__day--multiple-selected,.smart-calendar__day--start,.smart-calendar__day--start-end{background-color:var(--calendar-range-edge-background-color,#3678e3);color:var(--calendar-range-edge-color,#fff)}.smart-calendar__day--start{border-bottom-left-radius:var(--calendar-day-select-border-radius,34rpx);border-top-left-radius:var(--calendar-day-select-border-radius,34rpx)}.smart-calendar__day--end{border-bottom-right-radius:var(--calendar-day-select-border-radius,34rpx);border-top-right-radius:var(--calendar-day-select-border-radius,34rpx)}.smart-calendar__day--multiple-selected,.smart-calendar__day--start-end{border-radius:4px}.smart-calendar__day--middle{background-color:var(--calendar-range-edge-background-color,#3678e3);color:var(--calendar-range-middle-color,var(--app-B3,#fff))}.smart-calendar__day--disabled{color:var(--calendar-day-disabled-color,#c8c9cc);cursor:default}.smart-calendar__bottom-info,.smart-calendar__top-info{font-size:var(--calendar-info-font-size,10px);left:0;line-height:var(--calendar-info-line-height,14px);position:absolute;right:0}@media (max-width:350px){.smart-calendar__bottom-info,.smart-calendar__top-info{font-size:9px}}.smart-calendar__top-info{top:6px}.smart-calendar__bottom-info{bottom:6px}.smart-calendar__selected-day{background-color:var(--calendar-selected-day-background-color,#3678e3);border-radius:50%;color:var(--calendar-selected-day-color,#fff);height:var(--calendar-selected-day-size,34px);width:var(--calendar-selected-day-size,34px)}
1
+ @import '../../../common/index.wxss';.smart-calendar{background-color:var(--calendar-background-color,var(--app-B6,#fff));display:flex;flex-direction:column;height:100%}.smart-calendar__month{padding-bottom:48rpx;padding-left:16rpx;padding-right:16rpx}.smart-calendar__month-title{font-size:var(--calendar-month-title-font-size,14px);font-weight:var(--font-weight-bold,500);height:var(--calendar-header-title-height,44px);line-height:var(--calendar-header-title-height,44px);text-align:center}.smart-calendar__days{display:flex;flex-wrap:wrap;position:relative;-webkit-user-select:none;user-select:none}.smart-calendar__month-mark{color:var(--calendar-month-mark-color,hsla(210,6%,87%,.6));font-size:var(--calendar-month-mark-font-size,160px);left:50%;pointer-events:none;position:absolute;top:50%;transform:translate(-50%,-50%);z-index:0}.smart-calendar__day,.smart-calendar__selected-day{align-items:center;display:flex;justify-content:center;text-align:center}.smart-calendar__day{color:var(--calendar-cell-item-font-color,var(--app-B4-N1,#000));font-size:var(--calendar-cell-item-font-size,15px);font-weight:var(--calendar-day-font-weight,500);height:var(--calendar-day-height,100rpx);margin:4px 0;position:relative;width:14.285%}.smart-calendar__day--end,.smart-calendar__day--multiple-middle,.smart-calendar__day--multiple-selected,.smart-calendar__day--start,.smart-calendar__day--start-end{background-color:var(--calendar-range-edge-background-color,#3678e3);color:var(--calendar-range-edge-color,#fff)}.smart-calendar__day--start{border-bottom-left-radius:var(--calendar-day-select-border-radius,34rpx);border-top-left-radius:var(--calendar-day-select-border-radius,34rpx)}.smart-calendar__day--end{border-bottom-right-radius:var(--calendar-day-select-border-radius,34rpx);border-top-right-radius:var(--calendar-day-select-border-radius,34rpx)}.smart-calendar__day--multiple-selected,.smart-calendar__day--start-end{border-radius:4px}.smart-calendar__day--middle{background-color:var(--calendar-range-edge-background-color,#3678e3);color:var(--calendar-range-middle-color,#fff)}.smart-calendar__day--disabled{color:var(--calendar-day-disabled-color,#c8c9cc);cursor:default}.smart-calendar__bottom-info,.smart-calendar__top-info{font-size:var(--calendar-info-font-size,10px);left:0;line-height:var(--calendar-info-line-height,14px);position:absolute;right:0}@media (max-width:350px){.smart-calendar__bottom-info,.smart-calendar__top-info{font-size:9px}}.smart-calendar__top-info{top:6px}.smart-calendar__bottom-info{bottom:6px}.smart-calendar__selected-day{background-color:var(--calendar-selected-day-background-color,#3678e3);border-radius:50%;color:var(--calendar-selected-day-color,#fff);height:var(--calendar-selected-day-size,34px);width:var(--calendar-selected-day-size,34px)}
@@ -1 +1 @@
1
- @import '../../../common/index.css';.item{border-radius:50%;color:rgba(0,0,0,.9);font-size:15px;font-weight:500;height:104rpx;line-height:104rpx;text-align:center;width:104rpx}.item_active{background:#3678e3;color:#fff}.item_disabled{opacity:.5}
1
+ @import '../../../common/index.css';.contain{margin:24rpx 0}.item{border-radius:var(--calendar-cell-item-border-radius,104rpx);color:var(--calendar-cell-item-font-color,var(--app-B4-N1,#000));font-size:var(--calendar-cell-item-font-size,15px);font-weight:var(--calendar-day-font-weight,500);height:var(--calendar-cell-item-height,104rpx);line-height:var(--calendar-cell-item-height,104rpx);text-align:center;width:var(--calendar-cell-item-width,104rpx)}.item_active{background:#3678e3;color:#fff}.item_disabled{opacity:.5}.col_item{display:flex;justify-content:center}