stellar-ui-v2 1.37.0 → 1.38.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (324) hide show
  1. package/.babelrc +8 -0
  2. package/App.vue +22 -0
  3. package/LICENSE +21 -0
  4. package/README.md +8 -8
  5. package/common/account.js +59 -0
  6. package/common/app-mixin.js +61 -0
  7. package/common/config.js +69 -0
  8. package/common/css/common.scss +155 -54
  9. package/common/css/vars.scss +51 -0
  10. package/common/request.js +38 -0
  11. package/common/token.js +13 -0
  12. package/common/uploadFile.js +21 -0
  13. package/common/usePosition.js +159 -0
  14. package/common/utils.js +303 -0
  15. package/components/item-view/item-view.vue +84 -0
  16. package/components/page-nav/page-nav.vue +245 -0
  17. package/components/t-color-picker/t-color-picker.vue +820 -0
  18. package/index.html +20 -0
  19. package/main.js +22 -0
  20. package/manifest.json +84 -0
  21. package/mp/animate-demo/animate-demo.vue +132 -0
  22. package/mp/badge-demo/badge-demo.vue +211 -0
  23. package/mp/barcode-demo/barcode-demo.vue +59 -0
  24. package/mp/button-demo/button-demo.vue +211 -0
  25. package/mp/calendar-demo/calendar-demo.vue +266 -0
  26. package/mp/checkbox-demo/checkbox-demo.vue +274 -0
  27. package/mp/code-input-demo/code-input-demo.vue +113 -0
  28. package/mp/color-demo/color-demo.vue +363 -0
  29. package/mp/date-picker-demo/date-picker-demo.vue +158 -0
  30. package/mp/drag-demo/drag-demo.vue +112 -0
  31. package/mp/dropdown-menu-demo/dropdown-menu-demo.vue +380 -0
  32. package/mp/icon-demo/icon-demo.vue +223 -0
  33. package/mp/icon-demo/icon-vertical-align.vue +236 -0
  34. package/mp/image-demo/image-demo.vue +140 -0
  35. package/mp/index/index.vue +588 -0
  36. package/mp/index-list-demo/index-list-demo.vue +111 -0
  37. package/mp/input-demo/input-demo.vue +230 -0
  38. package/mp/loading-demo/loading-demo.vue +71 -0
  39. package/mp/media-preview-demo/media-preview-demo.vue +139 -0
  40. package/mp/message-box-demo/message-box-demo.vue +200 -0
  41. package/mp/notice-bar-demo/notice-bar-demo.vue +107 -0
  42. package/mp/number-keyboard-demo/number-keyboard-demo.vue +138 -0
  43. package/mp/popup-demo/popup-demo.vue +351 -0
  44. package/mp/price-demo/price-demo.vue +163 -0
  45. package/mp/progress-demo/progress-demo.vue +219 -0
  46. package/mp/qrcode-demo/qrcode-demo.vue +74 -0
  47. package/mp/radio-demo/radio-demo.vue +276 -0
  48. package/mp/rate-demo/rate-demo.vue +112 -0
  49. package/mp/read-more-demo/read-more-demo.vue +118 -0
  50. package/mp/rich-text-demo/rich-text-demo.vue +58 -0
  51. package/mp/scroll-to-demo/scroll-to-demo.vue +65 -0
  52. package/mp/search-demo/search-demo.vue +225 -0
  53. package/mp/select-demo/select-demo.vue +245 -0
  54. package/mp/signature-demo/signature-demo.vue +74 -0
  55. package/mp/slider-demo/slider-demo.vue +197 -0
  56. package/mp/stepper-demo/stepper-demo.vue +201 -0
  57. package/mp/steps-demo/steps-demo.vue +119 -0
  58. package/mp/sticky-demo/sticky-demo.vue +64 -0
  59. package/mp/swipe-action-demo/swipe-action-demo.vue +223 -0
  60. package/mp/swiper-demo/swiper-demo.vue +120 -0
  61. package/mp/switch-demo/switch-demo.vue +108 -0
  62. package/mp/table-demo/table-demo.vue +647 -0
  63. package/mp/tabs-demo/tabs-demo.vue +518 -0
  64. package/mp/test-demo/test-demo.vue +248 -0
  65. package/mp/text-demo/text-demo.vue +109 -0
  66. package/mp/toast-demo/toast-demo.vue +189 -0
  67. package/mp/touch-swipe-demo/touch-swipe-demo.vue +97 -0
  68. package/mp/tour-demo/tour-demo.vue +103 -0
  69. package/mp/tree-demo/tree-demo.vue +156 -0
  70. package/mp/upload-demo/upload-demo.vue +176 -0
  71. package/mp/video-demo/video-demo.vue +61 -0
  72. package/package.json +27 -6
  73. package/pages/404/404.vue +194 -0
  74. package/pages/gitlab/gitlab.vue +50 -0
  75. package/pages/index/index.vue +36 -0
  76. package/pages/login/login.vue +149 -0
  77. package/pages/user/user.vue +277 -0
  78. package/pages.json +809 -0
  79. package/pc/index/components/append-link.vue +61 -0
  80. package/pc/index/components/comment.vue +347 -0
  81. package/pc/index/components/comp-nav.vue +135 -0
  82. package/pc/index/components/header-nav.vue +74 -0
  83. package/pc/index/components/version-select.vue +217 -0
  84. package/pc/index/iPhone13.png +0 -0
  85. package/pc/index/index.vue +554 -0
  86. package/pc/index/login.vue +146 -0
  87. package/pc/index/md2html.js +163 -0
  88. package/pc/index/mdStyle.scss +270 -0
  89. package/pc/index/sse.js +22 -0
  90. package/pc/markdown/devGuide/93-/347/273/204/344/273/266/346/233/277/346/215/242/350/247/204/350/214/203.md +18 -0
  91. package/pc/markdown/devGuide/94-/345/274/200/345/217/221/350/256/241/345/210/222.md +1083 -0
  92. package/pc/markdown/devGuide/95-/347/273/204/344/273/266/345/221/275/345/220/215/350/247/204/350/214/203.md +78 -0
  93. package/pc/markdown/devGuide/96-/347/273/204/344/273/266/347/244/272/344/276/213/346/250/241/346/235/277.md +49 -0
  94. package/pc/markdown/devGuide/99-/347/273/204/344/273/266/345/272/223/345/274/200/345/217/221/346/214/207/345/215/227.md +93 -0
  95. package/pc/markdown/devGuide/config.json +5 -0
  96. package/pc/markdown/handbook/1-/344/273/213/347/273/215.md +34 -0
  97. package/pc/markdown/handbook/2-/345/277/253/351/200/237/344/270/212/346/211/213.md +59 -0
  98. package/pc/markdown/handbook/3-/350/207/252/345/256/232/344/271/211/344/270/273/351/242/230.md +35 -0
  99. package/pc/markdown/handbook/4-/347/273/204/344/273/266/346/265/213/350/257/225.md +24 -0
  100. package/pc/markdown/handbook/97-/346/233/264/346/226/260/346/227/245/345/277/227.md +1773 -0
  101. package/pc/markdown/handbook/98-/345/205/266/344/273/226/346/217/222/344/273/266.md +28 -0
  102. package/pc/markdown/handbook/99-/345/217/213/346/203/205/351/223/276/346/216/245.md +71 -0
  103. package/pc/markdown/handbook/config.json +4 -0
  104. package/pc/markdown/index.js +75 -0
  105. package/pc/markdown/requireFiles.js +103 -0
  106. package/pc/service/app.js +33 -0
  107. package/pc/service/config.json +16 -0
  108. package/pc/service/datas/ste-rich-text.txt +2 -0
  109. package/pc/service/package-lock.json +1328 -0
  110. package/pc/service/package.json +27 -0
  111. package/pc/service/src/routers.js +100 -0
  112. package/pc/service/src/utils/Applet.js +7 -0
  113. package/pc/service/src/utils/Code.js +70 -0
  114. package/pc/service/src/utils/Data.js +84 -0
  115. package/pc/service/src/utils/Redis.js +35 -0
  116. package/pc/service/src/utils/User.js +65 -0
  117. package/pc/service/src/utils/Utils.js +31 -0
  118. package/pc/service/src/utils/getConfig.js +7 -0
  119. package/pc/service/webs/index.js +11 -0
  120. package/prettier.config.js +20 -0
  121. package/router.js +22 -0
  122. package/static/astronaut.svg +1 -0
  123. package/static/favicon.png +0 -0
  124. package/static/planet.svg +1 -0
  125. package/static/reset.png +0 -0
  126. package/static/tabbars/home.png +0 -0
  127. package/static/tabbars/home_fill.png +0 -0
  128. package/static/tabbars/people.png +0 -0
  129. package/static/tabbars/people_fill.png +0 -0
  130. package/template.h5.html +31 -0
  131. package/test/components/badge.test.js +75 -0
  132. package/test/components/barcode.test.js +22 -0
  133. package/test/components/button.test.js +52 -0
  134. package/test/components/calendar.test.js +105 -0
  135. package/test/components/checkbox.test.js +103 -0
  136. package/test/components/code-input.test.js +61 -0
  137. package/test/components/date-picker.test.js +18 -0
  138. package/test/components/drag.test.js +6 -0
  139. package/test/components/drop-down-menu.test.js +47 -0
  140. package/test/components/icon.test.js +65 -0
  141. package/test/components/image.test.js +64 -0
  142. package/test/components/index-list.test.js +77 -0
  143. package/test/components/input.test.js +82 -0
  144. package/test/components/loading.test.js +63 -0
  145. package/test/components/media-preview.test.js +46 -0
  146. package/test/components/message-box.test.js +118 -0
  147. package/test/components/notice-bar.test.js +59 -0
  148. package/test/components/number-keyboard.test.js +77 -0
  149. package/test/components/popup.test.js +20 -0
  150. package/test/components/price.test.js +116 -0
  151. package/test/components/progress.test.js +94 -0
  152. package/test/components/radio.test.js +98 -0
  153. package/test/components/rate.test.js +94 -0
  154. package/test/components/read-more.test.js +33 -0
  155. package/test/components/rich-text.test.js +20 -0
  156. package/test/components/scroll-to.test.js +54 -0
  157. package/test/components/search.test.js +107 -0
  158. package/test/components/select.test.js +111 -0
  159. package/test/components/signature.test.js +50 -0
  160. package/test/components/slider.test.js +69 -0
  161. package/test/components/stepper.test.js +113 -0
  162. package/test/components/steps.test.js +54 -0
  163. package/test/components/sticky.test.js +40 -0
  164. package/test/components/swipe-action.test.js +76 -0
  165. package/test/components/swiper.test.js +130 -0
  166. package/test/components/switch.test.js +53 -0
  167. package/test/components/tabs.test.js +273 -0
  168. package/test/components/text.test.js +17 -0
  169. package/test/components/touch-swipe.test.js +113 -0
  170. package/test/components/tour.test.js +146 -0
  171. package/test/components/tree.test.js +111 -0
  172. package/test/components/upload.test.js +116 -0
  173. package/test/components/video.test.js +48 -0
  174. package/test/methods.js +74 -0
  175. package/test/setup.js +32 -0
  176. package/test/utils/Color.test.js +26 -0
  177. package/test/utils/utils.test.js +42 -0
  178. package/uni.promisify.adaptor.js +10 -0
  179. package/uni.scss +4 -0
  180. package/uni_modules/stellar-ui/README.md +177 -0
  181. package/uni_modules/stellar-ui/common/css/common.scss +61 -0
  182. package/{components → uni_modules/stellar-ui/components}/ste-calendar/README.md +1 -1
  183. package/{components → uni_modules/stellar-ui/components}/ste-date-picker/ste-date-picker.vue +407 -407
  184. package/{components → uni_modules/stellar-ui/components}/ste-input/README.md +1 -1
  185. package/{components → uni_modules/stellar-ui/components}/ste-picker/ste-picker.vue +2 -2
  186. package/{components → uni_modules/stellar-ui/components}/ste-search/ste-search.vue +1 -1
  187. package/{components → uni_modules/stellar-ui/components}/ste-table/README.md +4 -4
  188. package/uni_modules/stellar-ui/package-lock.json +22 -0
  189. package/uni_modules/stellar-ui/package.json +18 -0
  190. package/vitest.config.js +14 -0
  191. package/vue.config.js +32 -0
  192. /package/{components → uni_modules/stellar-ui/components}/ste-animate/README.md +0 -0
  193. /package/{components → uni_modules/stellar-ui/components}/ste-animate/animate.scss +0 -0
  194. /package/{components → uni_modules/stellar-ui/components}/ste-animate/ste-animate.vue +0 -0
  195. /package/{components → uni_modules/stellar-ui/components}/ste-badge/README.md +0 -0
  196. /package/{components → uni_modules/stellar-ui/components}/ste-badge/ste-badge.vue +0 -0
  197. /package/{components → uni_modules/stellar-ui/components}/ste-barcode/README.md +0 -0
  198. /package/{components → uni_modules/stellar-ui/components}/ste-barcode/encode2.js +0 -0
  199. /package/{components → uni_modules/stellar-ui/components}/ste-barcode/ste-barcode.vue +0 -0
  200. /package/{components → uni_modules/stellar-ui/components}/ste-button/README.md +0 -0
  201. /package/{components → uni_modules/stellar-ui/components}/ste-button/ste-button.vue +0 -0
  202. /package/{components → uni_modules/stellar-ui/components}/ste-calendar/self-date.js +0 -0
  203. /package/{components → uni_modules/stellar-ui/components}/ste-calendar/ste-calendar.vue +0 -0
  204. /package/{components → uni_modules/stellar-ui/components}/ste-checkbox/README.md +0 -0
  205. /package/{components → uni_modules/stellar-ui/components}/ste-checkbox/ste-checkbox.vue +0 -0
  206. /package/{components → uni_modules/stellar-ui/components}/ste-checkbox-group/ste-checkbox-group.vue +0 -0
  207. /package/{components → uni_modules/stellar-ui/components}/ste-code-input/README.md +0 -0
  208. /package/{components → uni_modules/stellar-ui/components}/ste-code-input/ste-code-input.vue +0 -0
  209. /package/{components → uni_modules/stellar-ui/components}/ste-date-picker/README.md +0 -0
  210. /package/{components → uni_modules/stellar-ui/components}/ste-drag/README.md +0 -0
  211. /package/{components → uni_modules/stellar-ui/components}/ste-drag/ste-drag.vue +0 -0
  212. /package/{components → uni_modules/stellar-ui/components}/ste-dropdown-menu/README.md +0 -0
  213. /package/{components → uni_modules/stellar-ui/components}/ste-dropdown-menu/ste-dropdown-menu.vue +0 -0
  214. /package/{components → uni_modules/stellar-ui/components}/ste-dropdown-menu-item/ste-dropdown-menu-item.vue +0 -0
  215. /package/{components → uni_modules/stellar-ui/components}/ste-icon/README.md +0 -0
  216. /package/{components → uni_modules/stellar-ui/components}/ste-icon/iconfont.css +0 -0
  217. /package/{components → uni_modules/stellar-ui/components}/ste-icon/ste-icon.vue +0 -0
  218. /package/{components → uni_modules/stellar-ui/components}/ste-image/README.md +0 -0
  219. /package/{components → uni_modules/stellar-ui/components}/ste-image/ste-image.vue +0 -0
  220. /package/{components → uni_modules/stellar-ui/components}/ste-index-item/ste-index-item.vue +0 -0
  221. /package/{components → uni_modules/stellar-ui/components}/ste-index-list/README.md +0 -0
  222. /package/{components → uni_modules/stellar-ui/components}/ste-index-list/ste-index-list.vue +0 -0
  223. /package/{components → uni_modules/stellar-ui/components}/ste-input/ste-input.vue +0 -0
  224. /package/{components → uni_modules/stellar-ui/components}/ste-loading/README.md +0 -0
  225. /package/{components → uni_modules/stellar-ui/components}/ste-loading/ste-loading.vue +0 -0
  226. /package/{components → uni_modules/stellar-ui/components}/ste-media-preview/README.md +0 -0
  227. /package/{components → uni_modules/stellar-ui/components}/ste-media-preview/TouchScaleing.js +0 -0
  228. /package/{components → uni_modules/stellar-ui/components}/ste-media-preview/ste-media-preview.vue +0 -0
  229. /package/{components → uni_modules/stellar-ui/components}/ste-message-box/README.md +0 -0
  230. /package/{components → uni_modules/stellar-ui/components}/ste-message-box/ste-message-box.js +0 -0
  231. /package/{components → uni_modules/stellar-ui/components}/ste-message-box/ste-message-box.vue +0 -0
  232. /package/{components → uni_modules/stellar-ui/components}/ste-notice-bar/README.md +0 -0
  233. /package/{components → uni_modules/stellar-ui/components}/ste-notice-bar/ste-notice-bar.vue +0 -0
  234. /package/{components → uni_modules/stellar-ui/components}/ste-number-keyboard/README.md +0 -0
  235. /package/{components → uni_modules/stellar-ui/components}/ste-number-keyboard/keyboard.vue +0 -0
  236. /package/{components → uni_modules/stellar-ui/components}/ste-number-keyboard/ste-number-keyboard.vue +0 -0
  237. /package/{components → uni_modules/stellar-ui/components}/ste-popup/README.md +0 -0
  238. /package/{components → uni_modules/stellar-ui/components}/ste-popup/ste-popup.vue +0 -0
  239. /package/{components → uni_modules/stellar-ui/components}/ste-price/README.md +0 -0
  240. /package/{components → uni_modules/stellar-ui/components}/ste-price/ste-price.vue +0 -0
  241. /package/{components → uni_modules/stellar-ui/components}/ste-progress/README.md +0 -0
  242. /package/{components → uni_modules/stellar-ui/components}/ste-progress/ste-progress.vue +0 -0
  243. /package/{components → uni_modules/stellar-ui/components}/ste-qrcode/README.md +0 -0
  244. /package/{components → uni_modules/stellar-ui/components}/ste-qrcode/ste-qrcode.vue +0 -0
  245. /package/{components → uni_modules/stellar-ui/components}/ste-qrcode/uqrcode.js +0 -0
  246. /package/{components → uni_modules/stellar-ui/components}/ste-radio/README.md +0 -0
  247. /package/{components → uni_modules/stellar-ui/components}/ste-radio/ste-radio.vue +0 -0
  248. /package/{components → uni_modules/stellar-ui/components}/ste-radio-group/ste-radio-group.vue +0 -0
  249. /package/{components → uni_modules/stellar-ui/components}/ste-rate/README.md +0 -0
  250. /package/{components → uni_modules/stellar-ui/components}/ste-rate/ste-rate.vue +0 -0
  251. /package/{components → uni_modules/stellar-ui/components}/ste-read-more/README.md +0 -0
  252. /package/{components → uni_modules/stellar-ui/components}/ste-read-more/ste-read-more.vue +0 -0
  253. /package/{components → uni_modules/stellar-ui/components}/ste-rich-text/README.md +0 -0
  254. /package/{components → uni_modules/stellar-ui/components}/ste-rich-text/ste-rich-text.vue +0 -0
  255. /package/{components → uni_modules/stellar-ui/components}/ste-scroll-to/README.md +0 -0
  256. /package/{components → uni_modules/stellar-ui/components}/ste-scroll-to/mixin.js +0 -0
  257. /package/{components → uni_modules/stellar-ui/components}/ste-scroll-to/ste-scroll-to.vue +0 -0
  258. /package/{components → uni_modules/stellar-ui/components}/ste-scroll-to-item/ste-scroll-to-item.vue +0 -0
  259. /package/{components → uni_modules/stellar-ui/components}/ste-search/README.md +0 -0
  260. /package/{components → uni_modules/stellar-ui/components}/ste-select/README.md +0 -0
  261. /package/{components → uni_modules/stellar-ui/components}/ste-select/datapager.vue +0 -0
  262. /package/{components → uni_modules/stellar-ui/components}/ste-select/datetime.vue +0 -0
  263. /package/{components → uni_modules/stellar-ui/components}/ste-select/defaultDate.js +0 -0
  264. /package/{components → uni_modules/stellar-ui/components}/ste-select/ste-select.vue +0 -0
  265. /package/{components → uni_modules/stellar-ui/components}/ste-signature/README.md +0 -0
  266. /package/{components → uni_modules/stellar-ui/components}/ste-signature/ste-signature.vue +0 -0
  267. /package/{components → uni_modules/stellar-ui/components}/ste-slider/README.md +0 -0
  268. /package/{components → uni_modules/stellar-ui/components}/ste-slider/ste-slider.vue +0 -0
  269. /package/{components → uni_modules/stellar-ui/components}/ste-step/ste-step.vue +0 -0
  270. /package/{components → uni_modules/stellar-ui/components}/ste-stepper/README.md +0 -0
  271. /package/{components → uni_modules/stellar-ui/components}/ste-stepper/ste-stepper.vue +0 -0
  272. /package/{components → uni_modules/stellar-ui/components}/ste-steps/README.md +0 -0
  273. /package/{components → uni_modules/stellar-ui/components}/ste-steps/ste-steps.vue +0 -0
  274. /package/{components → uni_modules/stellar-ui/components}/ste-sticky/README.md +0 -0
  275. /package/{components → uni_modules/stellar-ui/components}/ste-sticky/ste-sticky.vue +0 -0
  276. /package/{components → uni_modules/stellar-ui/components}/ste-swipe-action/README.md +0 -0
  277. /package/{components → uni_modules/stellar-ui/components}/ste-swipe-action/ste-swipe-action.vue +0 -0
  278. /package/{components → uni_modules/stellar-ui/components}/ste-swipe-action-group/ste-swipe-action-group.vue +0 -0
  279. /package/{components → uni_modules/stellar-ui/components}/ste-swiper/README.md +0 -0
  280. /package/{components → uni_modules/stellar-ui/components}/ste-swiper/ste-swiper.vue +0 -0
  281. /package/{components → uni_modules/stellar-ui/components}/ste-swiper-item/ste-swiper-item.vue +0 -0
  282. /package/{components → uni_modules/stellar-ui/components}/ste-switch/README.md +0 -0
  283. /package/{components → uni_modules/stellar-ui/components}/ste-switch/ste-switch.vue +0 -0
  284. /package/{components → uni_modules/stellar-ui/components}/ste-tab/ste-tab.vue +0 -0
  285. /package/{components → uni_modules/stellar-ui/components}/ste-table/common.js +0 -0
  286. /package/{components → uni_modules/stellar-ui/components}/ste-table/ste-table.vue +0 -0
  287. /package/{components → uni_modules/stellar-ui/components}/ste-table/utils.js +0 -0
  288. /package/{components → uni_modules/stellar-ui/components}/ste-table-column/checkbox-icon.vue +0 -0
  289. /package/{components → uni_modules/stellar-ui/components}/ste-table-column/common.scss +0 -0
  290. /package/{components → uni_modules/stellar-ui/components}/ste-table-column/radio-icon.vue +0 -0
  291. /package/{components → uni_modules/stellar-ui/components}/ste-table-column/ste-table-column.vue +0 -0
  292. /package/{components → uni_modules/stellar-ui/components}/ste-table-column/sub-table.vue +0 -0
  293. /package/{components → uni_modules/stellar-ui/components}/ste-table-column/table-popover.vue +0 -0
  294. /package/{components → uni_modules/stellar-ui/components}/ste-table-column/var.scss +0 -0
  295. /package/{components → uni_modules/stellar-ui/components}/ste-tabs/README.md +0 -0
  296. /package/{components → uni_modules/stellar-ui/components}/ste-tabs/props.js +0 -0
  297. /package/{components → uni_modules/stellar-ui/components}/ste-tabs/ste-tabs.vue +0 -0
  298. /package/{components → uni_modules/stellar-ui/components}/ste-text/README.md +0 -0
  299. /package/{components → uni_modules/stellar-ui/components}/ste-text/ste-text.vue +0 -0
  300. /package/{components → uni_modules/stellar-ui/components}/ste-toast/README.md +0 -0
  301. /package/{components → uni_modules/stellar-ui/components}/ste-toast/ste-toast.js +0 -0
  302. /package/{components → uni_modules/stellar-ui/components}/ste-toast/ste-toast.vue +0 -0
  303. /package/{components → uni_modules/stellar-ui/components}/ste-touch-swipe/README.md +0 -0
  304. /package/{components → uni_modules/stellar-ui/components}/ste-touch-swipe/TouchEvent.js +0 -0
  305. /package/{components → uni_modules/stellar-ui/components}/ste-touch-swipe/ste-touch-swipe.vue +0 -0
  306. /package/{components → uni_modules/stellar-ui/components}/ste-touch-swipe-item/ste-touch-swipe-item.vue +0 -0
  307. /package/{components → uni_modules/stellar-ui/components}/ste-tour/README.md +0 -0
  308. /package/{components → uni_modules/stellar-ui/components}/ste-tour/ste-tour.vue +0 -0
  309. /package/{components → uni_modules/stellar-ui/components}/ste-tree/README.md +0 -0
  310. /package/{components → uni_modules/stellar-ui/components}/ste-tree/ste-tree.vue +0 -0
  311. /package/{components → uni_modules/stellar-ui/components}/ste-upload/README.md +0 -0
  312. /package/{components → uni_modules/stellar-ui/components}/ste-upload/ReadFile.js +0 -0
  313. /package/{components → uni_modules/stellar-ui/components}/ste-upload/ste-upload.vue +0 -0
  314. /package/{components → uni_modules/stellar-ui/components}/ste-video/README.md +0 -0
  315. /package/{components → uni_modules/stellar-ui/components}/ste-video/props.js +0 -0
  316. /package/{components → uni_modules/stellar-ui/components}/ste-video/ste-video.vue +0 -0
  317. /package/{config → uni_modules/stellar-ui/config}/color.js +0 -0
  318. /package/{index.js → uni_modules/stellar-ui/index.js} +0 -0
  319. /package/{utils → uni_modules/stellar-ui/utils}/Color.js +0 -0
  320. /package/{utils → uni_modules/stellar-ui/utils}/System.js +0 -0
  321. /package/{utils → uni_modules/stellar-ui/utils}/dayjs.min.js +0 -0
  322. /package/{utils → uni_modules/stellar-ui/utils}/mixin.js +0 -0
  323. /package/{utils → uni_modules/stellar-ui/utils}/store.js +0 -0
  324. /package/{utils → uni_modules/stellar-ui/utils}/utils.js +0 -0
@@ -0,0 +1,820 @@
1
+ <template>
2
+ <view v-show="show" class="t-wrapper" @touchmove.stop.prevent="moveHandle" @mousemove.stop.prevent="moveHandle">
3
+ <view class="t-mask" :class="{ active: active }" @click.stop="close"></view>
4
+ <view class="t-box" :class="{ active: active }">
5
+ <view class="t-header">
6
+ <view class="t-header-button" @click="close">取消</view>
7
+ <view class="t-header-button" @click="confirm">确认</view>
8
+ </view>
9
+ <view
10
+ class="t-color__box"
11
+ :style="{ background: 'rgb(' + bgcolor.r + ',' + bgcolor.g + ',' + bgcolor.b + ')' }"
12
+ >
13
+ <view
14
+ class="t-background boxs"
15
+ @touchstart="touchstart($event, 0)"
16
+ @touchmove="touchmove($event, 0)"
17
+ @touchend="touchend($event, 0)"
18
+ @mousedown="touchstart($event, 0)"
19
+ @mouseup="touchend($event, 0)"
20
+ >
21
+ <view class="t-color-mask"></view>
22
+ <view
23
+ class="t-pointer"
24
+ :style="{ top: site[0].top - 8 + 'px', left: site[0].left - 8 + 'px' }"
25
+ ></view>
26
+ </view>
27
+ </view>
28
+ <view class="t-control__box">
29
+ <view class="t-control__color">
30
+ <view
31
+ class="t-control__color-content"
32
+ :style="{ background: 'rgba(' + rgba.r + ',' + rgba.g + ',' + rgba.b + ',' + rgba.a + ')' }"
33
+ ></view>
34
+ </view>
35
+ <view class="t-control-box__item">
36
+ <view
37
+ class="t-controller boxs"
38
+ @touchstart="touchstart($event, 1)"
39
+ @touchmove="touchmove($event, 1)"
40
+ @touchend="touchend($event, 1)"
41
+ @mousedown="touchstart($event, 1)"
42
+ @mousemove="touchmove($event, 1)"
43
+ @mouseup="touchend($event, 1)"
44
+ >
45
+ <view class="t-hue">
46
+ <view class="t-circle" :style="{ left: site[1].left - 12 + 'px' }"></view>
47
+ </view>
48
+ </view>
49
+ <view
50
+ class="t-controller boxs"
51
+ @touchstart="touchstart($event, 2)"
52
+ @touchmove="touchmove($event, 2)"
53
+ @touchend="touchend($event, 2)"
54
+ @mousedown="touchstart($event, 2)"
55
+ @mousemove="touchmove($event, 2)"
56
+ @mouseup="touchend($event, 2)"
57
+ >
58
+ <view class="t-transparency">
59
+ <view class="t-circle" :style="{ left: site[2].left - 12 + 'px' }"></view>
60
+ </view>
61
+ </view>
62
+ </view>
63
+ </view>
64
+ <view class="t-result__box">
65
+ <view v-if="mode" class="t-result__item">
66
+ <view class="t-result__box-input">{{ hex }}</view>
67
+ <view class="t-result__box-text">HEX</view>
68
+ </view>
69
+ <template v-else>
70
+ <view class="t-result__item">
71
+ <view class="t-result__box-input">{{ rgba.r }}</view>
72
+ <view class="t-result__box-text">R</view>
73
+ </view>
74
+ <view class="t-result__item">
75
+ <view class="t-result__box-input">{{ rgba.g }}</view>
76
+ <view class="t-result__box-text">G</view>
77
+ </view>
78
+ <view class="t-result__item">
79
+ <view class="t-result__box-input">{{ rgba.b }}</view>
80
+ <view class="t-result__box-text">B</view>
81
+ </view>
82
+ <view class="t-result__item">
83
+ <view class="t-result__box-input">{{ rgba.a }}</view>
84
+ <view class="t-result__box-text">A</view>
85
+ </view>
86
+ </template>
87
+
88
+ <view class="t-result__item t-select" @click="select">
89
+ <view class="t-result__box-input">
90
+ <view>切换</view>
91
+ <view>模式</view>
92
+ </view>
93
+ </view>
94
+ </view>
95
+ <view class="t-alternative">
96
+ <view class="t-alternative__item" v-for="(item, index) in colorList" :key="index">
97
+ <view
98
+ class="t-alternative__item-content"
99
+ :style="{ background: 'rgba(' + item.r + ',' + item.g + ',' + item.b + ',' + item.a + ')' }"
100
+ @click="selectColor(item)"
101
+ ></view>
102
+ </view>
103
+ </view>
104
+ </view>
105
+ </view>
106
+ </template>
107
+
108
+ <script>
109
+ export default {
110
+ props: {
111
+ color: {
112
+ type: Object,
113
+ default() {
114
+ return {
115
+ r: 0,
116
+ g: 0,
117
+ b: 0,
118
+ a: 0,
119
+ };
120
+ },
121
+ },
122
+ spareColor: {
123
+ type: Array,
124
+ default() {
125
+ return [];
126
+ },
127
+ },
128
+ },
129
+ data() {
130
+ return {
131
+ show: false,
132
+ active: false,
133
+ // rgba 颜色
134
+ rgba: {
135
+ r: 0,
136
+ g: 0,
137
+ b: 0,
138
+ a: 1,
139
+ },
140
+ // hsb 颜色
141
+ hsb: {
142
+ h: 0,
143
+ s: 0,
144
+ b: 0,
145
+ },
146
+ site: [
147
+ {
148
+ top: 0,
149
+ left: 0,
150
+ },
151
+ {
152
+ left: 0,
153
+ },
154
+ {
155
+ left: 0,
156
+ },
157
+ ],
158
+ index: 0,
159
+ bgcolor: {
160
+ r: 255,
161
+ g: 0,
162
+ b: 0,
163
+ a: 1,
164
+ },
165
+ hex: '#000000',
166
+ mode: true,
167
+ colorList: [
168
+ {
169
+ r: 244,
170
+ g: 67,
171
+ b: 54,
172
+ a: 1,
173
+ },
174
+ {
175
+ r: 233,
176
+ g: 30,
177
+ b: 99,
178
+ a: 1,
179
+ },
180
+ {
181
+ r: 156,
182
+ g: 39,
183
+ b: 176,
184
+ a: 1,
185
+ },
186
+ {
187
+ r: 103,
188
+ g: 58,
189
+ b: 183,
190
+ a: 1,
191
+ },
192
+ {
193
+ r: 63,
194
+ g: 81,
195
+ b: 181,
196
+ a: 1,
197
+ },
198
+ {
199
+ r: 33,
200
+ g: 150,
201
+ b: 243,
202
+ a: 1,
203
+ },
204
+ {
205
+ r: 3,
206
+ g: 169,
207
+ b: 244,
208
+ a: 1,
209
+ },
210
+ {
211
+ r: 0,
212
+ g: 188,
213
+ b: 212,
214
+ a: 1,
215
+ },
216
+ {
217
+ r: 0,
218
+ g: 150,
219
+ b: 136,
220
+ a: 1,
221
+ },
222
+ {
223
+ r: 76,
224
+ g: 175,
225
+ b: 80,
226
+ a: 1,
227
+ },
228
+ {
229
+ r: 139,
230
+ g: 195,
231
+ b: 74,
232
+ a: 1,
233
+ },
234
+ {
235
+ r: 205,
236
+ g: 220,
237
+ b: 57,
238
+ a: 1,
239
+ },
240
+ {
241
+ r: 255,
242
+ g: 235,
243
+ b: 59,
244
+ a: 1,
245
+ },
246
+ {
247
+ r: 255,
248
+ g: 193,
249
+ b: 7,
250
+ a: 1,
251
+ },
252
+ {
253
+ r: 255,
254
+ g: 152,
255
+ b: 0,
256
+ a: 1,
257
+ },
258
+ {
259
+ r: 255,
260
+ g: 87,
261
+ b: 34,
262
+ a: 1,
263
+ },
264
+ {
265
+ r: 121,
266
+ g: 85,
267
+ b: 72,
268
+ a: 1,
269
+ },
270
+ {
271
+ r: 158,
272
+ g: 158,
273
+ b: 158,
274
+ a: 1,
275
+ },
276
+ {
277
+ r: 0,
278
+ g: 0,
279
+ b: 0,
280
+ a: 0.5,
281
+ },
282
+ {
283
+ r: 0,
284
+ g: 0,
285
+ b: 0,
286
+ a: 0,
287
+ },
288
+ ],
289
+ };
290
+ },
291
+ created() {
292
+ this.rgba = this.color;
293
+ if (this.spareColor.length !== 0) {
294
+ this.colorList = this.spareColor;
295
+ }
296
+ },
297
+ methods: {
298
+ /**
299
+ * 初始化
300
+ */
301
+ init() {
302
+ // hsb 颜色
303
+ this.hsb = this.rgbToHex(this.rgba);
304
+ // this.setColor();
305
+ this.setValue(this.rgba);
306
+ },
307
+ moveHandle() {},
308
+ open() {
309
+ this.show = true;
310
+ this.$nextTick(() => {
311
+ this.init();
312
+ setTimeout(() => {
313
+ this.active = true;
314
+ setTimeout(() => {
315
+ this.getSelectorQuery();
316
+ }, 350);
317
+ }, 50);
318
+ });
319
+ },
320
+ close() {
321
+ this.active = false;
322
+ this.$nextTick(() => {
323
+ setTimeout(() => {
324
+ this.show = false;
325
+ }, 500);
326
+ });
327
+ },
328
+ confirm() {
329
+ this.close();
330
+ this.$emit('confirm', {
331
+ rgba: this.rgba,
332
+ hex: this.hex,
333
+ });
334
+ },
335
+ // 选择模式
336
+ select() {
337
+ this.mode = !this.mode;
338
+ },
339
+ // 常用颜色选择
340
+ selectColor(item) {
341
+ this.setColorBySelect(item);
342
+ },
343
+ touchstart(e, index) {
344
+ const { clientX, clientY } = e.touches[0] ? e.touches[0] : e;
345
+ this.clientX = clientX;
346
+ this.clientY = clientY;
347
+ this.setPosition(clientX, clientY, index);
348
+ },
349
+ touchmove(e, index) {
350
+ const { clientX, clientY } = e.touches[0] ? e.touches[0] : e;
351
+ this.moveX = clientX;
352
+ this.moveY = clientY;
353
+ this.setPosition(clientX, clientY, index);
354
+ },
355
+ touchend(e, index) {},
356
+ /**
357
+ * 设置位置
358
+ */
359
+ setPosition(x, y, index) {
360
+ this.index = index;
361
+ const { top, left, width, height } = this.position[index];
362
+ // 设置最大最小值
363
+
364
+ this.site[index].left = Math.max(0, Math.min(parseInt(x - left), width));
365
+ if (index === 0) {
366
+ this.site[index].top = Math.max(0, Math.min(parseInt(y - top), height));
367
+ // 设置颜色
368
+ this.hsb.s = parseInt((100 * this.site[index].left) / width);
369
+ this.hsb.b = parseInt(100 - (100 * this.site[index].top) / height);
370
+ this.setColor();
371
+ this.setValue(this.rgba);
372
+ } else {
373
+ this.setControl(index, this.site[index].left);
374
+ }
375
+ },
376
+ /**
377
+ * 设置 rgb 颜色
378
+ */
379
+ setColor() {
380
+ const rgb = this.HSBToRGB(this.hsb);
381
+ this.rgba.r = rgb.r;
382
+ this.rgba.g = rgb.g;
383
+ this.rgba.b = rgb.b;
384
+ },
385
+ /**
386
+ * 设置二进制颜色
387
+ * @param {Object} rgb
388
+ */
389
+ setValue(rgb) {
390
+ this.hex = '#' + this.rgbToHex(rgb);
391
+ },
392
+ setControl(index, x) {
393
+ const { top, left, width, height } = this.position[index];
394
+
395
+ if (index === 1) {
396
+ this.hsb.h = parseInt((360 * x) / width);
397
+ this.bgcolor = this.HSBToRGB({
398
+ h: this.hsb.h,
399
+ s: 100,
400
+ b: 100,
401
+ });
402
+ this.setColor();
403
+ } else {
404
+ this.rgba.a = (x / width).toFixed(1);
405
+ }
406
+ this.setValue(this.rgba);
407
+ },
408
+ /**
409
+ * rgb 转 二进制 hex
410
+ * @param {Object} rgb
411
+ */
412
+ rgbToHex(rgb) {
413
+ let hex = [rgb.r.toString(16), rgb.g.toString(16), rgb.b.toString(16)];
414
+ hex.map(function (str, i) {
415
+ if (str.length == 1) {
416
+ hex[i] = '0' + str;
417
+ }
418
+ });
419
+ return hex.join('');
420
+ },
421
+ setColorBySelect(getrgb) {
422
+ const { r, g, b, a } = getrgb;
423
+ let rgb = {};
424
+ rgb = {
425
+ r: r ? parseInt(r) : 0,
426
+ g: g ? parseInt(g) : 0,
427
+ b: b ? parseInt(b) : 0,
428
+ a: a ? a : 0,
429
+ };
430
+ this.rgba = rgb;
431
+ this.hsb = this.rgbToHsb(rgb);
432
+ this.changeViewByHsb();
433
+ },
434
+ changeViewByHsb() {
435
+ const [a, b, c] = this.position;
436
+ this.site[0].left = parseInt((this.hsb.s * a.width) / 100);
437
+ this.site[0].top = parseInt(((100 - this.hsb.b) * a.height) / 100);
438
+ // this.setColor(this.hsb.h);
439
+ this.setValue(this.rgba);
440
+ this.bgcolor = this.HSBToRGB({
441
+ h: this.hsb.h,
442
+ s: 100,
443
+ b: 100,
444
+ });
445
+
446
+ this.site[1].left = (this.hsb.h / 360) * b.width;
447
+ this.site[2].left = this.rgba.a * c.width;
448
+ },
449
+ /**
450
+ * hsb 转 rgb
451
+ * @param {Object} 颜色模式 H(hues)表示色相,S(saturation)表示饱和度,B(brightness)表示亮度
452
+ */
453
+ HSBToRGB(hsb) {
454
+ let rgb = {};
455
+ let h = Math.round(hsb.h);
456
+ let s = Math.round((hsb.s * 255) / 100);
457
+ let v = Math.round((hsb.b * 255) / 100);
458
+ if (s == 0) {
459
+ rgb.r = rgb.g = rgb.b = v;
460
+ } else {
461
+ let t1 = v;
462
+ let t2 = ((255 - s) * v) / 255;
463
+ let t3 = ((t1 - t2) * (h % 60)) / 60;
464
+ if (h == 360) h = 0;
465
+ if (h < 60) {
466
+ rgb.r = t1;
467
+ rgb.b = t2;
468
+ rgb.g = t2 + t3;
469
+ } else if (h < 120) {
470
+ rgb.g = t1;
471
+ rgb.b = t2;
472
+ rgb.r = t1 - t3;
473
+ } else if (h < 180) {
474
+ rgb.g = t1;
475
+ rgb.r = t2;
476
+ rgb.b = t2 + t3;
477
+ } else if (h < 240) {
478
+ rgb.b = t1;
479
+ rgb.r = t2;
480
+ rgb.g = t1 - t3;
481
+ } else if (h < 300) {
482
+ rgb.b = t1;
483
+ rgb.g = t2;
484
+ rgb.r = t2 + t3;
485
+ } else if (h < 360) {
486
+ rgb.r = t1;
487
+ rgb.g = t2;
488
+ rgb.b = t1 - t3;
489
+ } else {
490
+ rgb.r = 0;
491
+ rgb.g = 0;
492
+ rgb.b = 0;
493
+ }
494
+ }
495
+ return {
496
+ r: Math.round(rgb.r),
497
+ g: Math.round(rgb.g),
498
+ b: Math.round(rgb.b),
499
+ };
500
+ },
501
+ rgbToHsb(rgb) {
502
+ let hsb = {
503
+ h: 0,
504
+ s: 0,
505
+ b: 0,
506
+ };
507
+ let min = Math.min(rgb.r, rgb.g, rgb.b);
508
+ let max = Math.max(rgb.r, rgb.g, rgb.b);
509
+ let delta = max - min;
510
+ hsb.b = max;
511
+ hsb.s = max != 0 ? (255 * delta) / max : 0;
512
+ if (hsb.s != 0) {
513
+ if (rgb.r == max) hsb.h = (rgb.g - rgb.b) / delta;
514
+ else if (rgb.g == max) hsb.h = 2 + (rgb.b - rgb.r) / delta;
515
+ else hsb.h = 4 + (rgb.r - rgb.g) / delta;
516
+ } else hsb.h = -1;
517
+ hsb.h *= 60;
518
+ if (hsb.h < 0) hsb.h = 360;
519
+ hsb.s *= 100 / 255;
520
+ hsb.b *= 100 / 255;
521
+ return hsb;
522
+ },
523
+ getSelectorQuery() {
524
+ const views = uni.createSelectorQuery().in(this);
525
+ views
526
+ .selectAll('.boxs')
527
+ .boundingClientRect((data) => {
528
+ if (!data || data.length === 0) {
529
+ setTimeout(() => this.getSelectorQuery(), 20);
530
+ return;
531
+ }
532
+ this.position = data;
533
+ // this.site[0].top = data[0].height;
534
+ // this.site[0].left = 0;
535
+ // this.site[1].left = data[1].width;
536
+ // this.site[2].left = data[2].width;
537
+ this.setColorBySelect(this.rgba);
538
+ })
539
+ .exec();
540
+ },
541
+ },
542
+ watch: {
543
+ spareColor(newVal) {
544
+ this.colorList = newVal;
545
+ },
546
+ },
547
+ };
548
+ </script>
549
+
550
+ <style>
551
+ .t-wrapper {
552
+ position: fixed;
553
+ top: 0;
554
+ bottom: 0;
555
+ left: 0;
556
+ width: 100%;
557
+ box-sizing: border-box;
558
+ z-index: 9999;
559
+ }
560
+
561
+ .t-box {
562
+ width: 100%;
563
+ position: absolute;
564
+ bottom: 0;
565
+ padding: 30upx 0;
566
+ padding-top: 0;
567
+ background: #fff;
568
+ transition: all 0.3s;
569
+ transform: translateY(100%);
570
+ }
571
+
572
+ .t-box.active {
573
+ transform: translateY(0%);
574
+ }
575
+
576
+ .t-header {
577
+ display: flex;
578
+ justify-content: space-between;
579
+ width: 100%;
580
+ height: 100upx;
581
+ border-bottom: 1px #eee solid;
582
+ box-shadow: 1px 0 2px rgba(0, 0, 0, 0.1);
583
+ background: #fff;
584
+ }
585
+
586
+ .t-header-button {
587
+ display: flex;
588
+ align-items: center;
589
+ width: 150upx;
590
+ height: 100upx;
591
+ font-size: 30upx;
592
+ color: #666;
593
+ padding-left: 20upx;
594
+ }
595
+
596
+ .t-header-button:last-child {
597
+ justify-content: flex-end;
598
+ padding-right: 20upx;
599
+ }
600
+
601
+ .t-mask {
602
+ position: absolute;
603
+ top: 0;
604
+ left: 0;
605
+ right: 0;
606
+ bottom: 0;
607
+ background: rgba(0, 0, 0, 0.6);
608
+ z-index: -1;
609
+ transition: all 0.3s;
610
+ opacity: 0;
611
+ }
612
+
613
+ .t-mask.active {
614
+ opacity: 1;
615
+ }
616
+
617
+ .t-color__box {
618
+ position: relative;
619
+ height: 400upx;
620
+ background: rgb(255, 0, 0);
621
+ overflow: hidden;
622
+ box-sizing: border-box;
623
+ margin: 0 20upx;
624
+ margin-top: 20upx;
625
+ box-sizing: border-box;
626
+ }
627
+
628
+ .t-background {
629
+ position: absolute;
630
+ top: 0;
631
+ left: 0;
632
+ right: 0;
633
+ bottom: 0;
634
+ background: linear-gradient(to right, #fff, rgba(255, 255, 255, 0));
635
+ }
636
+
637
+ .t-color-mask {
638
+ position: absolute;
639
+ top: 0;
640
+ left: 0;
641
+ right: 0;
642
+ bottom: 0;
643
+ width: 100%;
644
+ height: 400upx;
645
+ background: linear-gradient(to top, #000, rgba(0, 0, 0, 0));
646
+ }
647
+
648
+ .t-pointer {
649
+ position: absolute;
650
+ bottom: -8px;
651
+ left: -8px;
652
+ z-index: 2;
653
+ width: 15px;
654
+ height: 15px;
655
+ border: 1px #fff solid;
656
+ border-radius: 50%;
657
+ }
658
+
659
+ .t-show-color {
660
+ width: 100upx;
661
+ height: 50upx;
662
+ }
663
+
664
+ .t-control__box {
665
+ margin-top: 50upx;
666
+ width: 100%;
667
+ display: flex;
668
+ padding-left: 20upx;
669
+ box-sizing: border-box;
670
+ }
671
+
672
+ .t-control__color {
673
+ flex-shrink: 0;
674
+ width: 100upx;
675
+ height: 100upx;
676
+ border-radius: 50%;
677
+ background-color: #fff;
678
+ background-image: linear-gradient(45deg, #eee 25%, transparent 25%, transparent 75%, #eee 75%, #eee),
679
+ linear-gradient(45deg, #eee 25%, transparent 25%, transparent 75%, #eee 75%, #eee);
680
+ background-size: 36upx 36upx;
681
+ background-position: 0 0, 18upx 18upx;
682
+ border: 1px #eee solid;
683
+ overflow: hidden;
684
+ }
685
+
686
+ .t-control__color-content {
687
+ width: 100%;
688
+ height: 100%;
689
+ }
690
+
691
+ .t-control-box__item {
692
+ display: flex;
693
+ flex-direction: column;
694
+ justify-content: space-between;
695
+ width: 100%;
696
+ padding: 0 30upx;
697
+ }
698
+
699
+ .t-controller {
700
+ position: relative;
701
+ width: 100%;
702
+ height: 16px;
703
+ background-color: #fff;
704
+ background-image: linear-gradient(45deg, #eee 25%, transparent 25%, transparent 75%, #eee 75%, #eee),
705
+ linear-gradient(45deg, #eee 25%, transparent 25%, transparent 75%, #eee 75%, #eee);
706
+ background-size: 32upx 32upx;
707
+ background-position: 0 0, 16upx 16upx;
708
+ }
709
+
710
+ .t-hue {
711
+ width: 100%;
712
+ height: 100%;
713
+ background: linear-gradient(to right, #f00 0%, #ff0 17%, #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);
714
+ }
715
+
716
+ .t-transparency {
717
+ width: 100%;
718
+ height: 100%;
719
+ background: linear-gradient(to right, rgba(0, 0, 0, 0) 0%, rgb(0, 0, 0));
720
+ }
721
+
722
+ .t-circle {
723
+ position: absolute;
724
+ /* right: -10px; */
725
+ top: -2px;
726
+ width: 20px;
727
+ height: 20px;
728
+ box-sizing: border-box;
729
+ border-radius: 50%;
730
+ background: #fff;
731
+ box-shadow: 0 0 2px 1px rgba(0, 0, 0, 0.1);
732
+ }
733
+
734
+ .t-result__box {
735
+ margin-top: 20upx;
736
+ padding: 10upx;
737
+ width: 100%;
738
+ display: flex;
739
+ box-sizing: border-box;
740
+ }
741
+
742
+ .t-result__item {
743
+ display: flex;
744
+ flex-direction: column;
745
+ align-items: center;
746
+ justify-content: center;
747
+ padding: 10upx;
748
+ width: 100%;
749
+ box-sizing: border-box;
750
+ }
751
+
752
+ .t-result__box-input {
753
+ padding: 10upx 0;
754
+ width: 100%;
755
+ font-size: 28upx;
756
+ box-shadow: 0 0 1px 1px rgba(0, 0, 0, 0.1);
757
+ color: #999;
758
+ text-align: center;
759
+ background: #fff;
760
+ }
761
+
762
+ .t-result__box-text {
763
+ margin-top: 10upx;
764
+ font-size: 28upx;
765
+ line-height: 2;
766
+ }
767
+
768
+ .t-select {
769
+ flex-shrink: 0;
770
+ width: 150upx;
771
+ padding: 0 30upx;
772
+ }
773
+
774
+ .t-select .t-result__box-input {
775
+ border-radius: 10upx;
776
+ border: none;
777
+ color: #999;
778
+ box-shadow: 1px 1px 2px 1px rgba(0, 0, 0, 0.1);
779
+ background: #fff;
780
+ }
781
+
782
+ .t-select .t-result__box-input:active {
783
+ box-shadow: 0px 0px 1px 0px rgba(0, 0, 0, 0.1);
784
+ }
785
+
786
+ .t-alternative {
787
+ display: flex;
788
+ flex-wrap: wrap;
789
+ /* justify-content: space-between; */
790
+ width: 100%;
791
+ padding-right: 10upx;
792
+ box-sizing: border-box;
793
+ }
794
+
795
+ .t-alternative__item {
796
+ margin-left: 12upx;
797
+ margin-top: 10upx;
798
+ width: 50upx;
799
+ height: 50upx;
800
+ border-radius: 10upx;
801
+ background-color: #fff;
802
+ background-image: linear-gradient(45deg, #eee 25%, transparent 25%, transparent 75%, #eee 75%, #eee),
803
+ linear-gradient(45deg, #eee 25%, transparent 25%, transparent 75%, #eee 75%, #eee);
804
+ background-size: 36upx 36upx;
805
+ background-position: 0 0, 18upx 18upx;
806
+ border: 1px #eee solid;
807
+ overflow: hidden;
808
+ }
809
+
810
+ .t-alternative__item-content {
811
+ width: 50upx;
812
+ height: 50upx;
813
+ background: rgba(255, 0, 0, 0.5);
814
+ }
815
+
816
+ .t-alternative__item:active {
817
+ transition: all 0.3s;
818
+ transform: scale(1.1);
819
+ }
820
+ </style>