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

Sign up to get free protection for your applications and to get access to all the features.
Files changed (350) hide show
  1. package/dist/action-sheet/demo/index.d.ts +1 -0
  2. package/dist/action-sheet/demo/index.js +101 -0
  3. package/dist/action-sheet/index.js +1 -1
  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.js +1 -1
  19. package/dist/calendar/components/header/index.css +1 -1
  20. package/dist/calendar/components/header/index.js +1 -1
  21. package/dist/calendar/components/header/index.wxml +3 -3
  22. package/dist/calendar/components/header/index.wxss +1 -1
  23. package/dist/calendar/components/month/index.css +1 -1
  24. package/dist/calendar/components/month/index.js +3 -5
  25. package/dist/calendar/components/month/index.wxs +1 -4
  26. package/dist/calendar/components/month/index.wxss +1 -1
  27. package/dist/calendar/components/month-list/index.css +1 -1
  28. package/dist/calendar/components/month-list/index.js +4 -17
  29. package/dist/calendar/components/month-list/index.wxml +15 -13
  30. package/dist/calendar/components/month-list/index.wxss +1 -1
  31. package/dist/calendar/components/year-list/index.css +1 -1
  32. package/dist/calendar/components/year-list/index.js +3 -3
  33. package/dist/calendar/components/year-list/index.wxml +1 -1
  34. package/dist/calendar/components/year-list/index.wxss +1 -1
  35. package/dist/calendar/demo/index.d.ts +1 -0
  36. package/dist/calendar/demo/index.js +103 -0
  37. package/dist/calendar/index.js +9 -14
  38. package/dist/calendar/index.wxs +4 -7
  39. package/dist/calendar/utils.js +2 -4
  40. package/dist/cascader/demo/index.d.ts +1 -0
  41. package/dist/cascader/demo/index.js +191 -0
  42. package/dist/cascader/index.js +3 -3
  43. package/dist/cell/demo/index.d.ts +1 -0
  44. package/dist/cell/demo/index.js +14 -0
  45. package/dist/cell/index.js +1 -7
  46. package/dist/checkbox/demo/index.d.ts +1 -0
  47. package/dist/checkbox/demo/index.js +34 -0
  48. package/dist/checkbox-group/index.js +1 -1
  49. package/dist/circle/demo/index.d.ts +1 -0
  50. package/dist/circle/demo/index.js +19 -0
  51. package/dist/col/demo/index.d.ts +1 -0
  52. package/dist/col/demo/index.js +4 -0
  53. package/dist/collapse/demo/index.d.ts +1 -0
  54. package/dist/collapse/demo/index.js +36 -0
  55. package/dist/collapse/index.js +1 -1
  56. package/dist/collapse-item/animate.js +1 -1
  57. package/dist/common/component.js +1 -1
  58. package/dist/common/utils.js +3 -3
  59. package/dist/config-provider/demo/index.d.ts +1 -0
  60. package/dist/config-provider/demo/index.js +22 -0
  61. package/dist/count-down/demo/index.d.ts +1 -0
  62. package/dist/count-down/demo/index.js +33 -0
  63. package/dist/custom-keyboard/demo/index.d.ts +1 -0
  64. package/dist/custom-keyboard/demo/index.js +17 -0
  65. package/dist/custom-keyboard/index.js +1 -3
  66. package/dist/datetime-picker/demo/index.d.ts +1 -0
  67. package/dist/datetime-picker/demo/index.js +63 -0
  68. package/dist/datetime-picker/index.js +4 -5
  69. package/dist/dialog/demo/index.d.ts +1 -0
  70. package/dist/dialog/demo/index.js +134 -0
  71. package/dist/dialog/dialog.js +3 -5
  72. package/dist/dialog/index.js +1 -1
  73. package/dist/divider/demo/index.d.ts +1 -0
  74. package/dist/divider/demo/index.js +4 -0
  75. package/dist/dropdown-item/index.js +3 -3
  76. package/dist/dropdown-item/index.wxml +1 -7
  77. package/dist/dropdown-menu/demo/index.d.ts +1 -0
  78. package/dist/dropdown-menu/demo/index.js +47 -0
  79. package/dist/dropdown-menu/index.js +8 -10
  80. package/dist/empty/demo/index.d.ts +1 -0
  81. package/dist/empty/demo/index.js +13 -0
  82. package/dist/empty/index.css +1 -1
  83. package/dist/empty/index.wxs +1 -1
  84. package/dist/empty/index.wxss +1 -1
  85. package/dist/field/demo/index.d.ts +1 -0
  86. package/dist/field/demo/index.js +21 -0
  87. package/dist/goods-action/demo/index.d.ts +1 -0
  88. package/dist/goods-action/demo/index.js +12 -0
  89. package/dist/goods-action/index.js +1 -1
  90. package/dist/grid/demo/index.d.ts +1 -0
  91. package/dist/grid/demo/index.js +9 -0
  92. package/dist/grid/index.js +1 -1
  93. package/dist/grid-item/index.js +1 -1
  94. package/dist/icon/demo/index.d.ts +1 -0
  95. package/dist/icon/demo/index.js +26 -0
  96. package/dist/image/demo/index.d.ts +1 -0
  97. package/dist/image/demo/index.js +15 -0
  98. package/dist/index-anchor/index.js +1 -1
  99. package/dist/index-bar/demo/index.d.ts +1 -0
  100. package/dist/index-bar/demo/index.js +21 -0
  101. package/dist/index-bar/index.js +9 -16
  102. package/dist/loading/demo/index.d.ts +1 -0
  103. package/dist/loading/demo/index.js +4 -0
  104. package/dist/loading/index.js +25 -1
  105. package/dist/loading/index.wxml +2 -2
  106. package/dist/loading/index.wxs +6 -21
  107. package/dist/mixins/basic.js +2 -2
  108. package/dist/mixins/link.js +1 -2
  109. package/dist/mixins/page-scroll.js +1 -1
  110. package/dist/mixins/touch.js +1 -2
  111. package/dist/mixins/transition.js +1 -1
  112. package/dist/nav-bar/demo/index.d.ts +1 -0
  113. package/dist/nav-bar/demo/index.js +26 -0
  114. package/dist/nav-bar/index.css +1 -1
  115. package/dist/nav-bar/index.js +1 -1
  116. package/dist/nav-bar/index.wxml +1 -1
  117. package/dist/nav-bar/index.wxss +1 -1
  118. package/dist/normal-slider/demo/index.d.ts +1 -0
  119. package/dist/normal-slider/demo/index.js +19 -0
  120. package/dist/notice-bar/demo/index.d.ts +1 -0
  121. package/dist/notice-bar/demo/index.js +11 -0
  122. package/dist/notice-bar/index.js +3 -6
  123. package/dist/notice-bar/index.wxml +1 -5
  124. package/dist/notify/demo/index.d.ts +1 -0
  125. package/dist/notify/demo/index.js +45 -0
  126. package/dist/overlay/demo/index.d.ts +1 -0
  127. package/dist/overlay/demo/index.js +22 -0
  128. package/dist/picker/demo/index.d.ts +1 -0
  129. package/dist/picker/demo/index.js +76 -0
  130. package/dist/picker/index.css +1 -1
  131. package/dist/picker/index.js +2 -2
  132. package/dist/picker/index.wxml +1 -0
  133. package/dist/picker/index.wxss +1 -1
  134. package/dist/picker-column/index.js +3 -8
  135. package/dist/popup/demo/index.d.ts +1 -0
  136. package/dist/popup/demo/index.js +79 -0
  137. package/dist/progress/demo/index.d.ts +1 -0
  138. package/dist/progress/demo/index.js +4 -0
  139. package/dist/progress/index.js +1 -4
  140. package/dist/radio/demo/index.d.ts +1 -0
  141. package/dist/radio/demo/index.js +31 -0
  142. package/dist/radio-group/index.js +1 -1
  143. package/dist/rate/demo/index.d.ts +1 -0
  144. package/dist/rate/demo/index.js +25 -0
  145. package/dist/rate/index.js +2 -2
  146. package/dist/row/index.js +1 -1
  147. package/dist/search/demo/index.d.ts +1 -0
  148. package/dist/search/demo/index.js +43 -0
  149. package/dist/sidebar/demo/index.d.ts +1 -0
  150. package/dist/sidebar/demo/index.js +9 -0
  151. package/dist/skeleton/demo/index.d.ts +1 -0
  152. package/dist/skeleton/demo/index.js +11 -0
  153. package/dist/slider/demo/index.d.ts +1 -0
  154. package/dist/slider/demo/index.js +19 -0
  155. package/dist/slider/index.js +5 -7
  156. package/dist/stepper/demo/index.d.ts +1 -0
  157. package/dist/stepper/demo/index.js +19 -0
  158. package/dist/steps/demo/index.d.ts +1 -0
  159. package/dist/steps/demo/index.js +42 -0
  160. package/dist/sticky/demo/index.d.ts +1 -0
  161. package/dist/sticky/demo/index.js +26 -0
  162. package/dist/sticky/index.js +2 -2
  163. package/dist/swipe-cell/demo/index.d.ts +1 -0
  164. package/dist/swipe-cell/demo/index.js +45 -0
  165. package/dist/swipe-cell/index.js +3 -5
  166. package/dist/switch/demo/index.d.ts +1 -0
  167. package/dist/switch/demo/index.js +29 -0
  168. package/dist/switch/index.css +1 -1
  169. package/dist/switch/index.wxss +1 -1
  170. package/dist/tab/demo/index.d.ts +1 -0
  171. package/dist/tab/demo/index.js +55 -0
  172. package/dist/tabbar/demo/index.d.ts +1 -0
  173. package/dist/tabbar/demo/index.js +34 -0
  174. package/dist/tabbar/index.js +1 -1
  175. package/dist/tabs/index.js +7 -25
  176. package/dist/tag/demo/index.d.ts +1 -0
  177. package/dist/tag/demo/index.js +16 -0
  178. package/dist/tag/index.css +1 -1
  179. package/dist/tag/index.wxss +1 -1
  180. package/dist/toast/demo/index.d.ts +1 -0
  181. package/dist/toast/demo/index.js +67 -0
  182. package/dist/toast/toast.js +3 -5
  183. package/dist/transition/demo/index.d.ts +1 -0
  184. package/dist/transition/demo/index.js +67 -0
  185. package/dist/tree-select/demo/index.d.ts +1 -0
  186. package/dist/tree-select/demo/index.js +113 -0
  187. package/lib/action-sheet/demo/index.d.ts +1 -0
  188. package/lib/action-sheet/demo/index.js +115 -0
  189. package/lib/area/demo/index.d.ts +1 -0
  190. package/lib/area/demo/index.js +47 -0
  191. package/lib/area/index.js +1 -2
  192. package/lib/battery/demo/index.d.ts +1 -0
  193. package/lib/battery/demo/index.js +4 -0
  194. package/lib/battery/index.js +1 -3
  195. package/lib/bottom-sheet/demo/index.d.ts +1 -0
  196. package/lib/bottom-sheet/demo/index.js +27 -0
  197. package/lib/bottom-sheet/index.css +1 -1
  198. package/lib/bottom-sheet/index.js +3 -2
  199. package/lib/bottom-sheet/index.wxml +3 -1
  200. package/lib/bottom-sheet/index.wxss +1 -1
  201. package/lib/button/demo/index.d.ts +1 -0
  202. package/lib/button/demo/index.js +14 -0
  203. package/lib/calendar/components/header/index.css +1 -1
  204. package/lib/calendar/components/header/index.wxml +3 -3
  205. package/lib/calendar/components/header/index.wxss +1 -1
  206. package/lib/calendar/components/month/index.css +1 -1
  207. package/lib/calendar/components/month/index.js +2 -6
  208. package/lib/calendar/components/month/index.wxs +1 -4
  209. package/lib/calendar/components/month/index.wxss +1 -1
  210. package/lib/calendar/components/month-list/index.css +1 -1
  211. package/lib/calendar/components/month-list/index.js +3 -16
  212. package/lib/calendar/components/month-list/index.wxml +15 -13
  213. package/lib/calendar/components/month-list/index.wxss +1 -1
  214. package/lib/calendar/components/year-list/index.css +1 -1
  215. package/lib/calendar/components/year-list/index.js +1 -1
  216. package/lib/calendar/components/year-list/index.wxml +1 -1
  217. package/lib/calendar/components/year-list/index.wxss +1 -1
  218. package/lib/calendar/demo/index.d.ts +1 -0
  219. package/lib/calendar/demo/index.js +105 -0
  220. package/lib/calendar/index.js +7 -14
  221. package/lib/calendar/index.wxs +4 -7
  222. package/lib/calendar/utils.js +1 -3
  223. package/lib/cascader/demo/index.d.ts +1 -0
  224. package/lib/cascader/demo/index.js +197 -0
  225. package/lib/cell/demo/index.d.ts +1 -0
  226. package/lib/cell/demo/index.js +39 -0
  227. package/lib/cell/index.js +1 -7
  228. package/lib/checkbox/demo/index.d.ts +1 -0
  229. package/lib/checkbox/demo/index.js +38 -0
  230. package/lib/circle/demo/index.d.ts +1 -0
  231. package/lib/circle/demo/index.js +21 -0
  232. package/lib/col/demo/index.d.ts +1 -0
  233. package/lib/col/demo/index.js +6 -0
  234. package/lib/collapse/demo/index.d.ts +1 -0
  235. package/lib/collapse/demo/index.js +42 -0
  236. package/lib/config-provider/demo/index.d.ts +1 -0
  237. package/lib/config-provider/demo/index.js +24 -0
  238. package/lib/count-down/demo/index.d.ts +1 -0
  239. package/lib/count-down/demo/index.js +38 -0
  240. package/lib/custom-keyboard/demo/index.d.ts +1 -0
  241. package/lib/custom-keyboard/demo/index.js +19 -0
  242. package/lib/custom-keyboard/index.js +1 -3
  243. package/lib/datetime-picker/demo/index.d.ts +1 -0
  244. package/lib/datetime-picker/demo/index.js +68 -0
  245. package/lib/datetime-picker/index.js +4 -3
  246. package/lib/dialog/demo/index.d.ts +1 -0
  247. package/lib/dialog/demo/index.js +144 -0
  248. package/lib/dialog/dialog.js +1 -3
  249. package/lib/divider/demo/index.d.ts +1 -0
  250. package/lib/divider/demo/index.js +6 -0
  251. package/lib/dropdown-item/index.wxml +1 -7
  252. package/lib/dropdown-menu/demo/index.d.ts +1 -0
  253. package/lib/dropdown-menu/demo/index.js +52 -0
  254. package/lib/dropdown-menu/index.js +2 -4
  255. package/lib/empty/demo/index.d.ts +1 -0
  256. package/lib/empty/demo/index.js +15 -0
  257. package/lib/empty/index.css +1 -1
  258. package/lib/empty/index.wxs +1 -1
  259. package/lib/empty/index.wxss +1 -1
  260. package/lib/field/demo/index.d.ts +1 -0
  261. package/lib/field/demo/index.js +23 -0
  262. package/lib/goods-action/demo/index.d.ts +1 -0
  263. package/lib/goods-action/demo/index.js +17 -0
  264. package/lib/grid/demo/index.d.ts +1 -0
  265. package/lib/grid/demo/index.js +11 -0
  266. package/lib/icon/demo/index.d.ts +1 -0
  267. package/lib/icon/demo/index.js +54 -0
  268. package/lib/image/demo/index.d.ts +1 -0
  269. package/lib/image/demo/index.js +17 -0
  270. package/lib/index-bar/demo/index.d.ts +1 -0
  271. package/lib/index-bar/demo/index.js +23 -0
  272. package/lib/index-bar/index.js +3 -10
  273. package/lib/loading/demo/index.d.ts +1 -0
  274. package/lib/loading/demo/index.js +6 -0
  275. package/lib/loading/index.js +27 -1
  276. package/lib/loading/index.wxml +2 -2
  277. package/lib/loading/index.wxs +6 -21
  278. package/lib/mixins/link.js +1 -2
  279. package/lib/mixins/touch.js +1 -2
  280. package/lib/nav-bar/demo/index.d.ts +1 -0
  281. package/lib/nav-bar/demo/index.js +31 -0
  282. package/lib/nav-bar/index.css +1 -1
  283. package/lib/nav-bar/index.wxml +1 -1
  284. package/lib/nav-bar/index.wxss +1 -1
  285. package/lib/normal-slider/demo/index.d.ts +1 -0
  286. package/lib/normal-slider/demo/index.js +21 -0
  287. package/lib/notice-bar/demo/index.d.ts +1 -0
  288. package/lib/notice-bar/demo/index.js +16 -0
  289. package/lib/notice-bar/index.js +2 -5
  290. package/lib/notice-bar/index.wxml +1 -5
  291. package/lib/notify/demo/index.d.ts +1 -0
  292. package/lib/notify/demo/index.js +50 -0
  293. package/lib/overlay/demo/index.d.ts +1 -0
  294. package/lib/overlay/demo/index.js +24 -0
  295. package/lib/picker/demo/index.d.ts +1 -0
  296. package/lib/picker/demo/index.js +82 -0
  297. package/lib/picker/index.css +1 -1
  298. package/lib/picker/index.js +1 -3
  299. package/lib/picker/index.wxml +1 -0
  300. package/lib/picker/index.wxss +1 -1
  301. package/lib/picker-column/index.js +2 -7
  302. package/lib/popup/demo/index.d.ts +1 -0
  303. package/lib/popup/demo/index.js +85 -0
  304. package/lib/progress/demo/index.d.ts +1 -0
  305. package/lib/progress/demo/index.js +6 -0
  306. package/lib/progress/index.js +1 -4
  307. package/lib/radio/demo/index.d.ts +1 -0
  308. package/lib/radio/demo/index.js +34 -0
  309. package/lib/rate/demo/index.d.ts +1 -0
  310. package/lib/rate/demo/index.js +30 -0
  311. package/lib/search/demo/index.d.ts +1 -0
  312. package/lib/search/demo/index.js +48 -0
  313. package/lib/sidebar/demo/index.d.ts +1 -0
  314. package/lib/sidebar/demo/index.js +14 -0
  315. package/lib/skeleton/demo/index.d.ts +1 -0
  316. package/lib/skeleton/demo/index.js +14 -0
  317. package/lib/slider/demo/index.d.ts +1 -0
  318. package/lib/slider/demo/index.js +21 -0
  319. package/lib/slider/index.js +1 -3
  320. package/lib/stepper/demo/index.d.ts +1 -0
  321. package/lib/stepper/demo/index.js +25 -0
  322. package/lib/steps/demo/index.d.ts +1 -0
  323. package/lib/steps/demo/index.js +47 -0
  324. package/lib/sticky/demo/index.d.ts +1 -0
  325. package/lib/sticky/demo/index.js +30 -0
  326. package/lib/sticky/index.js +3 -1
  327. package/lib/swipe-cell/demo/index.d.ts +1 -0
  328. package/lib/swipe-cell/demo/index.js +50 -0
  329. package/lib/swipe-cell/index.js +1 -3
  330. package/lib/switch/demo/index.d.ts +1 -0
  331. package/lib/switch/demo/index.js +37 -0
  332. package/lib/switch/index.css +1 -1
  333. package/lib/switch/index.wxss +1 -1
  334. package/lib/tab/demo/index.d.ts +1 -0
  335. package/lib/tab/demo/index.js +57 -0
  336. package/lib/tabbar/demo/index.d.ts +1 -0
  337. package/lib/tabbar/demo/index.js +41 -0
  338. package/lib/tabs/index.js +6 -24
  339. package/lib/tag/demo/index.d.ts +1 -0
  340. package/lib/tag/demo/index.js +19 -0
  341. package/lib/tag/index.css +1 -1
  342. package/lib/tag/index.wxss +1 -1
  343. package/lib/toast/demo/index.d.ts +1 -0
  344. package/lib/toast/demo/index.js +74 -0
  345. package/lib/toast/toast.js +1 -3
  346. package/lib/transition/demo/index.d.ts +1 -0
  347. package/lib/transition/demo/index.js +71 -0
  348. package/lib/tree-select/demo/index.d.ts +1 -0
  349. package/lib/tree-select/demo/index.js +130 -0
  350. package/package.json +1 -1
@@ -53,7 +53,9 @@ function getTrueValue(formattedValue) {
53
53
  function getMonthEndDay(year, month) {
54
54
  return 32 - new Date(year, month - 1, 32).getDate();
55
55
  }
56
- var defaultFormatter = function (type, value) { return value; };
56
+ var defaultFormatter = function (type, value) {
57
+ return value;
58
+ };
57
59
  (0, component_1.SmartComponent)({
58
60
  classes: ['active-class', 'toolbar-class', 'column-class'],
59
61
  props: __assign(__assign({}, shared_1.pickerProps), { value: {
@@ -266,8 +268,7 @@ var defaultFormatter = function (type, value) { return value; };
266
268
  var originColumns = this.getOriginColumns();
267
269
  if (data.type === 'time') {
268
270
  var indexes = picker.getIndexes();
269
- value = "".concat(+originColumns[0].values[indexes[0]], ":").concat(+originColumns[1]
270
- .values[indexes[1]]);
271
+ value = "".concat(+originColumns[0].values[indexes[0]], ":").concat(+originColumns[1].values[indexes[1]]);
271
272
  }
272
273
  else {
273
274
  var indexes = picker.getIndexes();
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,144 @@
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 component_1 = require("../../common/component");
7
+ var dialog_1 = __importDefault(require("../../dialog/dialog"));
8
+ var message = 'Body';
9
+ (0, component_1.SmartComponent)({
10
+ data: {
11
+ show: false,
12
+ inputValue: '',
13
+ },
14
+ methods: {
15
+ showCustomDialog: function () {
16
+ this.setData({ show: true });
17
+ },
18
+ getUserInfo: function (event) {
19
+ console.log(event.detail);
20
+ },
21
+ onClickThemeAlert: function () {
22
+ console.log('=== click theme alert');
23
+ dialog_1.default.alert({
24
+ context: this,
25
+ title: 'Title',
26
+ theme: 'round-button',
27
+ icon: false,
28
+ message: message,
29
+ confirmButtonText: I18n.t('confirm'),
30
+ cancelButtonText: I18n.t('cancel'),
31
+ });
32
+ },
33
+ onClickThemeAlert2: function () {
34
+ console.log('=== 222 click theme alert');
35
+ dialog_1.default.alert({
36
+ context: this,
37
+ theme: 'round-button',
38
+ message: message,
39
+ confirmButtonText: I18n.t('confirm'),
40
+ cancelButtonText: I18n.t('cancel'),
41
+ });
42
+ },
43
+ onClickAlert: function () {
44
+ dialog_1.default.alert({
45
+ context: this,
46
+ title: 'Title',
47
+ icon: false,
48
+ message: message,
49
+ confirmButtonText: I18n.t('confirm'),
50
+ cancelButtonText: I18n.t('cancel'),
51
+ });
52
+ },
53
+ onClickAlert2: function () {
54
+ dialog_1.default.alert({
55
+ context: this,
56
+ message: 'Title',
57
+ confirmButtonText: I18n.t('confirm'),
58
+ cancelButtonText: I18n.t('cancel'),
59
+ });
60
+ },
61
+ onClickConfirm: function () {
62
+ dialog_1.default.confirm({
63
+ context: this,
64
+ title: 'Title',
65
+ icon: false,
66
+ message: message,
67
+ cancelButtonText: 'Sub Action',
68
+ confirmButtonText: I18n.t('confirm'),
69
+ });
70
+ },
71
+ onClickConfirmIcon: function () {
72
+ dialog_1.default.confirm({
73
+ context: this,
74
+ title: 'Title',
75
+ icon: true,
76
+ message: message,
77
+ cancelButtonText: 'Sub Action',
78
+ confirmButtonText: I18n.t('confirm'),
79
+ });
80
+ },
81
+ onClickInput: function () {
82
+ var _this = this;
83
+ var beforeClose = function (action, value) {
84
+ return new Promise(function (resolve) {
85
+ setTimeout(function () {
86
+ if (action === 'confirm') {
87
+ // 不存在输入值则拦截确认操作
88
+ resolve(!!value);
89
+ }
90
+ else {
91
+ resolve(true);
92
+ }
93
+ }, 1000);
94
+ });
95
+ };
96
+ dialog_1.default.input({
97
+ context: this,
98
+ title: 'Title',
99
+ value: this.data.inputValue,
100
+ cancelButtonText: 'Sub Action',
101
+ beforeClose: beforeClose,
102
+ confirmButtonText: I18n.t('confirm'),
103
+ })
104
+ .then(function (res) {
105
+ var _a;
106
+ console.log('=== onConfirm', res);
107
+ var inputValue = (_a = res === null || res === void 0 ? void 0 : res.data) === null || _a === void 0 ? void 0 : _a.inputValue;
108
+ _this.setData({ inputValue: inputValue });
109
+ })
110
+ .catch(function (res) {
111
+ console.log('=== onCancel', res);
112
+ });
113
+ },
114
+ onClickAsyncClose: function () {
115
+ var beforeClose = function (action) {
116
+ return new Promise(function (resolve) {
117
+ setTimeout(function () {
118
+ if (action === 'confirm') {
119
+ resolve(true);
120
+ }
121
+ else {
122
+ // 拦截取消操作
123
+ resolve(false);
124
+ }
125
+ }, 1000);
126
+ });
127
+ };
128
+ dialog_1.default.confirm({
129
+ context: this,
130
+ title: 'Title',
131
+ icon: false,
132
+ message: message,
133
+ beforeClose: beforeClose,
134
+ confirmButtonText: I18n.t('confirm'),
135
+ cancelButtonText: I18n.t('cancel'),
136
+ });
137
+ },
138
+ onClose: function () {
139
+ this.setData({
140
+ show: false,
141
+ });
142
+ },
143
+ },
144
+ });
@@ -48,9 +48,7 @@ function getContext() {
48
48
  var Dialog = function (options) {
49
49
  options = __assign(__assign({}, currentOptions), options);
50
50
  return new Promise(function (resolve, reject) {
51
- var context = (typeof options.context === 'function'
52
- ? options.context()
53
- : options.context) || getContext();
51
+ var context = (typeof options.context === 'function' ? options.context() : options.context) || getContext();
54
52
  var dialog = context.selectComponent(options.selector);
55
53
  delete options.context;
56
54
  delete options.selector;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,6 @@
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
+ });
@@ -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,52 @@
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
+ switchTitle1: I18n.t('freeShipping'),
7
+ switchTitle2: I18n.t('groupBuy'),
8
+ itemTitle: I18n.t('filter'),
9
+ option1: [
10
+ { text: I18n.t('allProducts'), value: 0 },
11
+ { text: I18n.t('newProduct'), value: 1 },
12
+ { text: I18n.t('promotionalItems'), value: 2 },
13
+ ],
14
+ option2: [
15
+ { text: I18n.t('defaultSorting'), value: 'a' },
16
+ { text: I18n.t('sortByPositiveReviews'), value: 'b' },
17
+ { text: I18n.t('sortBySales'), value: 'c' },
18
+ ],
19
+ switch1: true,
20
+ switch2: false,
21
+ value1: 0,
22
+ value2: 'a',
23
+ },
24
+ methods: {
25
+ onConfirm: function () {
26
+ this.selectComponent('#item').toggle();
27
+ },
28
+ onSwitch1Change: function (_a) {
29
+ var detail = _a.detail;
30
+ this.setData({ switch1: detail });
31
+ },
32
+ onSwitch2Change: function (_a) {
33
+ var detail = _a.detail;
34
+ this.setData({ switch2: detail });
35
+ },
36
+ onBeforeChange: function (_a) {
37
+ var _b = _a.detail, status = _b.status, callback = _b.callback;
38
+ wx.showModal({
39
+ title: I18n.t('asynchronousOnOff'),
40
+ content: "".concat(I18n.t('areYouSureYouWantTo')).concat(status ? I18n.t('open') : I18n.t('close')).concat(I18n.t('dropdownMenu')),
41
+ success: function (res) {
42
+ if (res.confirm) {
43
+ callback(true);
44
+ }
45
+ else if (res.cancel) {
46
+ callback(false);
47
+ }
48
+ },
49
+ });
50
+ },
51
+ },
52
+ });
@@ -55,7 +55,7 @@ var ARRAY = [];
55
55
  type: String,
56
56
  value: '#CCCCCC',
57
57
  observer: 'updateChildrenData',
58
- }
58
+ },
59
59
  },
60
60
  data: {
61
61
  triangleDown: TriangleDown_1.default,
@@ -127,9 +127,7 @@ var ARRAY = [];
127
127
  var child = this.children[index];
128
128
  if (!child.data.disabled) {
129
129
  ARRAY.forEach(function (menuItem) {
130
- if (menuItem &&
131
- menuItem.data.closeOnClickOutside &&
132
- menuItem !== _this) {
130
+ if (menuItem && menuItem.data.closeOnClickOutside && menuItem !== _this) {
133
131
  menuItem.close();
134
132
  }
135
133
  });
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,15 @@
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
+ activeTab: 0,
7
+ },
8
+ methods: {
9
+ onChange: function (event) {
10
+ this.setData({
11
+ activeTab: event.detail.name,
12
+ });
13
+ },
14
+ },
15
+ });
@@ -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/mfgAAABN0Uk5TAGZgBQ4JMmgWIVJcaFJrP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jesOf0fLO4VRsaQRK7lgQL1etPe0IP0EPz++hP7fwgM5416sZt3lWaTLZlVLh6NFr9X+fkf7a0XBuZhWE+o7+U4cGEL6IZ9AusLz31Oouop/lSNqMC2uq2dHxRw3KC/wdCWtFy73J3gCBk9FVqyh6vrmVgypcd7wYNLFtynC3ez1CT4CU0DHgTUs1zdjDqi5bN9QPZbzUwQfotMzar3KVOXoQ1VEwDkkhDTsAHkkBzQ+ivPYJD2FdCL7Q+WjNtBnUxlw+VBVD9rYlSerS8NFDdTloytIR86ZANKBE+4A+JHffzzpsTyrmqVSQUcNzh+n4mDQePCzFWpA+efko79+PJbzydVghBbDR6o6NKDLd1CzP9W8B+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 {};
@@ -0,0 +1,23 @@
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
+ sms: '',
7
+ value: '',
8
+ password: '',
9
+ username: '',
10
+ username2: '',
11
+ username3: '',
12
+ message: '',
13
+ phone: '1365577',
14
+ },
15
+ methods: {
16
+ onClickIcon: function () {
17
+ wx.showToast({
18
+ icon: 'none',
19
+ title: I18n.t('clickTheIcon'),
20
+ });
21
+ },
22
+ },
23
+ });
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,17 @@
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 component_1 = require("../../common/component");
7
+ var toast_1 = __importDefault(require("../../toast/toast"));
8
+ (0, component_1.SmartComponent)({
9
+ methods: {
10
+ onClickIcon: function () {
11
+ (0, toast_1.default)({ context: this, message: I18n.t('clickTheIcon') });
12
+ },
13
+ onClickButton: function () {
14
+ (0, toast_1.default)({ context: this, message: I18n.t('clickTheButton') });
15
+ },
16
+ },
17
+ });
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,11 @@
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
+ array3: [0, 1, 2],
7
+ array4: [0, 1, 2, 3],
8
+ array6: [0, 1, 2, 3, 4, 5],
9
+ array8: [0, 1, 2, 3, 4, 5, 6, 7],
10
+ },
11
+ });
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,54 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
25
+ var __importDefault = (this && this.__importDefault) || function (mod) {
26
+ return (mod && mod.__esModule) ? mod : { "default": mod };
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ var icons = __importStar(require("@tuya-miniapp/icons"));
30
+ var config_1 = __importDefault(require("@tuya-miniapp/icons/dist/config"));
31
+ var component_1 = require("../../common/component");
32
+ function kebabCase(name) {
33
+ var currName = name.replace(/[A-Z]/g, function (word) { return '-' + word.toLocaleLowerCase(); });
34
+ return currName.slice(1);
35
+ }
36
+ var iconsArr = config_1.default.map(function (name) { return ({
37
+ name: kebabCase(name),
38
+ value: icons[name],
39
+ }); });
40
+ (0, component_1.SmartComponent)({
41
+ data: {
42
+ active: 0,
43
+ icons: iconsArr,
44
+ iconWarning: icons.Warning,
45
+ iconAlarm: icons.Alarm,
46
+ },
47
+ methods: {
48
+ onSwitch: function (event) {
49
+ this.setData({
50
+ active: event.detail.index,
51
+ });
52
+ },
53
+ },
54
+ });
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,17 @@
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
+ fits: [
7
+ 'contain',
8
+ 'cover',
9
+ 'fill',
10
+ 'none',
11
+ 'scale-down',
12
+ 'widthFix',
13
+ 'heightFix',
14
+ ],
15
+ src: 'https://images.tuyacn.com/rms-static/f350c8a0-0eb2-11ef-8f06-49ae7b2fadcf-1715334722090.jpeg?tyName=cat.jpeg',
16
+ },
17
+ });
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ var component_1 = require("../../common/component");
4
+ var indexList = [];
5
+ var charCodeOfA = 'A'.charCodeAt(0);
6
+ for (var i = 0; i < 26; i++) {
7
+ indexList.push(String.fromCharCode(charCodeOfA + i));
8
+ }
9
+ (0, component_1.SmartComponent)({
10
+ data: {
11
+ activeTab: 0,
12
+ indexList: indexList,
13
+ customIndexList: [1, 2, 3, 4, 5, 6, 8, 9, 10],
14
+ scrollTop: 0,
15
+ },
16
+ methods: {
17
+ onChange: function (event) {
18
+ this.setData({
19
+ activeTab: event.detail.name,
20
+ });
21
+ },
22
+ },
23
+ });
@@ -70,11 +70,7 @@ var indexList = function () {
70
70
  });
71
71
  },
72
72
  setRect: function () {
73
- return Promise.all([
74
- this.setAnchorsRect(),
75
- this.setListRect(),
76
- this.setSiderbarRect(),
77
- ]);
73
+ return Promise.all([this.setAnchorsRect(), this.setListRect(), this.setSiderbarRect()]);
78
74
  },
79
75
  setAnchorsRect: function () {
80
76
  var _this = this;
@@ -158,8 +154,7 @@ var indexList = function () {
158
154
  if (sticky) {
159
155
  var isActiveAnchorSticky_1 = false;
160
156
  if (active !== -1) {
161
- isActiveAnchorSticky_1 =
162
- children[active].top <= stickyOffsetTop + scrollTop;
157
+ isActiveAnchorSticky_1 = children[active].top <= stickyOffsetTop + scrollTop;
163
158
  }
164
159
  children.forEach(function (item, index) {
165
160
  if (index === active) {
@@ -181,9 +176,7 @@ var indexList = function () {
181
176
  else if (index === active - 1) {
182
177
  var currentAnchor = children[index];
183
178
  var currentOffsetTop = currentAnchor.top;
184
- var targetOffsetTop = index === children.length - 1
185
- ? _this.top
186
- : children[index + 1].top;
179
+ var targetOffsetTop = index === children.length - 1 ? _this.top : children[index + 1].top;
187
180
  var parentOffsetHeight = targetOffsetTop - currentOffsetTop;
188
181
  var translateY = parentOffsetHeight - currentAnchor.height;
189
182
  var anchorStyle = "\n position: relative;\n transform: translate3d(0, ".concat(translateY, "px, 0);\n z-index: ").concat(zIndex, ";\n color: ").concat(highlightColor, ";\n ");
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,6 @@
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
+ });
@@ -3,7 +3,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  var component_1 = require("../common/component");
4
4
  (0, component_1.SmartComponent)({
5
5
  props: {
6
- color: String,
6
+ color: {
7
+ type: String,
8
+ value: '#1989FA'
9
+ },
7
10
  vertical: Boolean,
8
11
  type: {
9
12
  type: String,
@@ -15,4 +18,27 @@ var component_1 = require("../common/component");
15
18
  },
16
19
  textSize: String,
17
20
  },
21
+ data: {
22
+ spinner: '',
23
+ circular: ''
24
+ },
25
+ created: function () {
26
+ this.setData({
27
+ spinner: this.SpinnerLoading({ color: this.data.color }),
28
+ circular: this.CircularLoading({ color: this.data.color })
29
+ });
30
+ },
31
+ methods: {
32
+ createSvgIcon: function (svg) {
33
+ return "data:image/svg+xml,".concat(encodeURIComponent("<?xml version=\"1.0\" standalone=\"no\"?><!DOCTYPE svg PUBLIC \"-//W3C//DTD SVG 1.1//EN\" \"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd\">".concat(svg)));
34
+ },
35
+ CircularLoading: function (_a) {
36
+ var _b = _a.color, color = _b === void 0 ? '#1989FA' : _b;
37
+ return this.createSvgIcon("<svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" fill=\"none\" version=\"1.1\" width=\"24\" height=\"24\" viewBox=\"0 0 24 24\"><defs><clipPath id=\"master_svg0_452_31565\"><rect x=\"0\" y=\"0\" width=\"24\" height=\"24\" rx=\"0\"/></clipPath><linearGradient x1=\"0.5\" y1=\"0.5\" x2=\"0.5\" y2=\"0.8999999761581421\" id=\"master_svg1_452_31641\"><stop offset=\"0%\" stop-color=\"".concat(color, "\" stop-opacity=\"1\"/><stop offset=\"100%\" stop-color=\"").concat(color, "\" stop-opacity=\"0\"/></linearGradient></defs><g clip-path=\"url(#master_svg0_452_31565)\"><g style=\"opacity:0.20000000298023224;\"><path d=\"M12,18.4C15.5346,18.4,18.4,15.5346,18.4,12C18.4,8.46538,15.5346,5.6,12,5.6C8.46538,5.6,5.6,8.46538,5.6,12C5.6,15.5346,8.46538,18.4,12,18.4ZM12,20C16.418300000000002,20,20,16.418300000000002,20,12C20,7.58172,16.418300000000002,4,12,4C7.58172,4,4,7.58172,4,12C4,16.418300000000002,7.58172,20,12,20Z\" fill-rule=\"evenodd\" fill=\"").concat(color, "\" fill-opacity=\"1\"/></g><g><path d=\"M12,5.6C8.46538,5.6,5.6,8.46538,5.6,12C5.6,15.5346,8.46538,18.4,12,18.4C12.44183,18.4,12.8,18.758200000000002,12.8,19.2C12.8,19.6418,12.44183,20,12,20C7.58172,20,4,16.418300000000002,4,12C4,7.58172,7.58172,4,12,4C16.418300000000002,4,20,7.58172,20,12C20,12.44183,19.6418,12.8,19.2,12.8C18.758200000000002,12.8,18.4,12.44183,18.4,12C18.4,8.46538,15.5346,5.6,12,5.6Z\" fill-rule=\"evenodd\" fill=\"url(#master_svg1_452_31641)\" fill-opacity=\"1\"/></g></g></svg>"));
38
+ },
39
+ SpinnerLoading: function (_a) {
40
+ var _b = _a.color, color = _b === void 0 ? '#3678E3' : _b;
41
+ return this.createSvgIcon("<svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" fill=\"none\" version=\"1.1\" width=\"8px\" height=\"8px\" viewBox=\"0 0 20.333251953125 21.333251953125\"><g><g><path d=\"M17.5413973046875,16.023418836669922L15.6560673046875,14.138091836669922C15.1360673046875,13.618087836669922,14.2933963046875,13.618087836669922,13.7707393046875,14.138091836669922C13.2507363046875,14.658095836669922,13.2507363046875,15.503418836669923,13.7707393046875,16.023418836669922L15.6560673046875,17.908748836669922C16.1760673046875,18.42875883666992,17.0213873046875,18.42875883666992,17.5413973046875,17.908748836669922C18.0613973046875,17.388748836669922,18.0613973046875,16.54342883666992,17.5413973046875,16.023418836669922Z\" fill-rule=\"evenodd\" fill=\"".concat(color, "\" fill-opacity=\"1\"/></g><g style=\"opacity:0.699999988079071;\"><path d=\"M9,3.99994C9,4.7359,9.597301,5.33326,10.33332,5.33326C11.06927,5.33326,11.666640000000001,4.73596,11.666640000000001,3.99994L11.666640000000001,1.33332C11.666640000000001,0.597364,11.06927,0,10.33332,0C9.597363,0,9,0.597301,9,1.33332L9,3.99994Z\" fill=\"").concat(color, "\" fill-opacity=\"1\"/></g><g style=\"opacity:0.6000000238418579;\"><path d=\"M2.390002,3.389983926513672C1.869999,3.909987926513672,1.869999,4.755310926513672,2.390002,5.275310926513672L4.27533,7.160640926513672C4.79533,7.680650926513672,5.638,7.680650926513672,6.16066,7.160640926513672C6.68066,6.640640926513672,6.68066,5.795320926513671,6.16066,5.275310926513672L4.27533,3.389983926513672C3.75533,2.869979926513672,2.910006,2.869979926513672,2.390002,3.389983926513672Z\" fill=\"").concat(color, "\" fill-opacity=\"1\"/></g><g transform=\"matrix(-1,0,0,1,37.101318359375,0)\" style=\"opacity:0.800000011920929;\"><path d=\"M18.9406611796875,3.389983926513672C18.4206581796875,3.909987926513672,18.4206581796875,4.755310926513672,18.9406611796875,5.275310926513672L20.8259891796875,7.160640926513672C21.3459891796875,7.680650926513672,22.188659179687498,7.680650926513672,22.7113191796875,7.160640926513672C23.2313191796875,6.640640926513672,23.2313191796875,5.795320926513671,22.7113191796875,5.275310926513672L20.8259891796875,3.389983926513672C20.3059891796875,2.869979926513672,19.4606651796875,2.869979926513672,18.9406611796875,3.389983926513672Z\" fill=\"").concat(color, "\" fill-opacity=\"1\"/></g><g style=\"opacity:0.5;\"><path d=\"M0,10.666644432373047C0,11.402604432373046,0.5973,11.999964432373048,1.33332,11.999964432373048L3.99994,11.999964432373048C4.73589,11.999964432373048,5.33325,11.402664432373047,5.33325,10.666644432373047C5.33325,9.930688432373048,4.73595,9.333324432373047,3.99994,9.333324432373047L1.33332,9.333324432373047C0.597364,9.333324432373047,0,9.930688432373048,0,10.666644432373047Z\" fill=\"").concat(color, "\" fill-opacity=\"1\"/></g><g style=\"opacity:0.8999999761581421;\"><path d=\"M15,10.666644432373047C15,11.402604432373046,15.5973,11.999964432373048,16.33332,11.999964432373048L18.99994,11.999964432373048C19.73589,11.999964432373048,20.33325,11.402664432373047,20.33325,10.666644432373047C20.33325,9.930688432373048,19.73595,9.333324432373047,18.99994,9.333324432373047L16.33332,9.333324432373047C15.597364,9.333324432373047,15,9.930688432373048,15,10.666644432373047Z\" fill=\"").concat(color, "\" fill-opacity=\"1\"/></g><g style=\"opacity:0.4000000059604645;\"><path d=\"M2.45866655078125,16.023418836669922C1.93866355078125,16.54342883666992,1.93866355078125,17.388748836669922,2.45866655078125,17.908748836669922C2.97867055078125,18.42875883666992,3.82399455078125,18.42875883666992,4.34399455078125,17.908748836669922L6.22932455078125,16.023418836669922C6.74932455078125,15.503418836669923,6.74932455078125,14.658095836669922,6.22932455078125,14.138091836669922C5.70931455078125,13.618087836669922,4.86399455078125,13.618087836669922,4.34399455078125,14.138091836669922L2.45866655078125,16.023418836669922Z\" fill=\"").concat(color, "\" fill-opacity=\"1\"/></g><g style=\"opacity:0.20000000298023224;\"><path d=\"M9,17.33332L9,19.99994C9,20.7359,9.597301,21.33326,10.33332,21.33326C11.06927,21.33326,11.666640000000001,20.73596,11.666640000000001,19.99994L11.666640000000001,17.33332C11.666640000000001,16.597364,11.06927,16,10.33332,16C9.597363,16,9,16.597301,9,17.33332Z\" fill=\"").concat(color, "\" fill-opacity=\"1\"/></g></g></svg>"));
42
+ }
43
+ }
18
44
  });
@@ -4,11 +4,11 @@
4
4
  <view class="custom-class {{ utils.bem('loading', { vertical }) }}">
5
5
  <view
6
6
  class="smart-loading__spinner smart-loading__spinner--{{ type }}"
7
- style="{{ computed.loadingStyle({ size, type, color }) }}"
7
+ style="{{ computed.loadingStyle({ size, type, color, spinner, circular }) }}"
8
8
  >
9
9
  <view
10
10
  class="smart-switch__loading"
11
- style="{{ computed.loadingStyle({ size, type, color }) }}"
11
+ style="{{ computed.loadingStyle({ size, type, color, spinner, circular }) }}"
12
12
  />
13
13
  </view>
14
14
  <view class="smart-loading__text" style="{{ computed.textStyle({ textSize, color }) }}">