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,274 @@
1
+ <template>
2
+ <view class="page">
3
+ <page-nav :autoBack="true" backColor="#000" titleAlignment="2" title="复选框"></page-nav>
4
+ <view class="content">
5
+ <view class="description">
6
+ <view class="cmp-name">Checkbox 复选框</view>
7
+ <view class="cmp-desc">用于预设的一组选项中执行多项选择,并呈现选择结果。</view>
8
+ </view>
9
+ <view class="type-block">
10
+ <view>01 组件类型</view>
11
+ </view>
12
+ <view class="demo-item">
13
+ <view class="title">纵向排列</view>
14
+ <view class="item-block">
15
+ <ste-checkbox-group v-model="value20">
16
+ <ste-checkbox name="a">复选框a</ste-checkbox>
17
+ <ste-checkbox name="b">复选框b</ste-checkbox>
18
+ <ste-checkbox name="c">复选框c</ste-checkbox>
19
+ </ste-checkbox-group>
20
+ </view>
21
+ </view>
22
+ <view class="demo-item">
23
+ <view class="title">横向排列</view>
24
+ <view class="item-block checkbox-box">
25
+ <ste-checkbox-group v-model="value20" direction="row">
26
+ <ste-checkbox name="a">复选框a</ste-checkbox>
27
+ <ste-checkbox name="b">复选框b</ste-checkbox>
28
+ <ste-checkbox name="c">复选框c</ste-checkbox>
29
+ </ste-checkbox-group>
30
+ </view>
31
+ </view>
32
+ <view class="type-block">
33
+ <view>02 组件状态</view>
34
+ </view>
35
+ <view class="demo-item">
36
+ <view class="title">禁用</view>
37
+ <view class="item-block checkbox-box">
38
+ <ste-checkbox v-model="value2" disabled>复选框1</ste-checkbox>
39
+ <ste-checkbox v-model="value3" disabled>复选框2</ste-checkbox>
40
+ </view>
41
+ </view>
42
+ <view class="demo-item">
43
+ <view class="title">只读</view>
44
+ <view class="item-block checkbox-box">
45
+ <ste-checkbox v-model="value4" readonly>复选框1</ste-checkbox>
46
+ <ste-checkbox v-model="value5" readonly>复选框2</ste-checkbox>
47
+ </view>
48
+ </view>
49
+ <view class="type-block">
50
+ <view>03 组件样式</view>
51
+ </view>
52
+ <view class="demo-item">
53
+ <view class="title">自定义形状</view>
54
+ <view class="item-block checkbox-box">
55
+ <ste-checkbox v-model="value6">圆形</ste-checkbox>
56
+ <ste-checkbox v-model="value7" shape="square">方形</ste-checkbox>
57
+ </view>
58
+ </view>
59
+ <view class="demo-item">
60
+ <view class="title">自定义图标大小</view>
61
+ <view class="item-block checkbox-box">
62
+ <ste-checkbox v-model="value11" iconSize="60">60rpx</ste-checkbox>
63
+ </view>
64
+ </view>
65
+ <view class="demo-item">
66
+ <view class="title">自定义图标颜色</view>
67
+ <view class="item-block checkbox-box">
68
+ <ste-checkbox v-model="value12" checkedColor="#ee0a24">红色</ste-checkbox>
69
+ </view>
70
+ </view>
71
+ <view class="demo-item">
72
+ <view class="title">自定义图标</view>
73
+ <view class="item-block checkbox-box">
74
+ <ste-checkbox-group v-model="value13">
75
+ <ste-checkbox name="a">
76
+ <template #icon="{ slotProps }">
77
+ <ste-icon
78
+ code="&#xe677;"
79
+ size="50"
80
+ :color="slotProps.checked ? '#ee0a24' : '#000000'"
81
+ ></ste-icon>
82
+ </template>
83
+ <template #default="{ slotProps }">
84
+ {{ slotProps.checked ? '已选中' : '未选中' }}
85
+ </template>
86
+ </ste-checkbox>
87
+ <ste-checkbox name="b">
88
+ <template #icon="{ slotProps }">
89
+ <ste-icon
90
+ code="&#xe677;"
91
+ size="50"
92
+ :color="slotProps.checked ? '#ee0a24' : '#000000'"
93
+ ></ste-icon>
94
+ </template>
95
+ <template #default="{ slotProps }">
96
+ {{ slotProps.checked ? '已选中' : '未选中' }}
97
+ </template>
98
+ </ste-checkbox>
99
+ <ste-checkbox name="c" disabled>
100
+ <template #icon="{ slotProps }">
101
+ <ste-icon
102
+ code="&#xe677;"
103
+ size="50"
104
+ :color="slotProps.disabled ? '#eeeeee' : '#000000'"
105
+ ></ste-icon>
106
+ </template>
107
+ <template #default="{ slotProps }">
108
+ {{ slotProps.disabled ? '禁止' : '未禁止' }}
109
+ </template>
110
+ </ste-checkbox>
111
+ <ste-checkbox name="d" readonly>
112
+ <template #icon="{ slotProps }">
113
+ <ste-icon
114
+ code="&#xe677;"
115
+ size="50"
116
+ :color="slotProps.readonly ? 'green' : '#000000'"
117
+ ></ste-icon>
118
+ </template>
119
+ <template #default="{ slotProps }">
120
+ {{ slotProps.readonly ? '只读' : '未只读' }}
121
+ </template>
122
+ </ste-checkbox>
123
+ </ste-checkbox-group>
124
+ </view>
125
+ </view>
126
+ <view class="type-block">
127
+ <view>04 组件自定义</view>
128
+ </view>
129
+ <view class="demo-item">
130
+ <view class="title">左侧文本</view>
131
+ <view class="item-block checkbox-box">
132
+ <ste-checkbox v-model="value8">右边</ste-checkbox>
133
+ <ste-checkbox v-model="value9" textPosition="left">左边</ste-checkbox>
134
+ </view>
135
+ </view>
136
+ <view class="demo-item">
137
+ <view class="title">自定义文本</view>
138
+ <view class="item-block checkbox-box">
139
+ <ste-checkbox v-model="value14" textSize="50" textInactiveColor="green" textActiveColor="#d276a3">
140
+ 复选框
141
+ </ste-checkbox>
142
+ </view>
143
+ </view>
144
+ <view class="demo-item">
145
+ <view class="title">禁用文本点击</view>
146
+ <view class="item-block checkbox-box">
147
+ <ste-checkbox v-model="value15" textDisabled>复选框</ste-checkbox>
148
+ </view>
149
+ </view>
150
+ <view class="demo-item">
151
+ <view class="title">回调事件</view>
152
+ <view class="item-block checkbox-box">
153
+ <ste-checkbox v-model="value16" @click="click1" @change="change">复选框</ste-checkbox>
154
+ <text>在click事件后,执行change事件</text>
155
+ <ste-checkbox v-model="value17" @click="click2" @change="change">复选框</ste-checkbox>
156
+ <text>在click事件后,阻止change事件</text>
157
+ </view>
158
+ </view>
159
+ <view class="demo-item">
160
+ <view class="title">复选框组</view>
161
+ <view class="item-block checkbox-box">
162
+ <ste-checkbox-group v-model="value18">
163
+ <ste-checkbox name="a">复选框a</ste-checkbox>
164
+ <ste-checkbox name="b">复选框b</ste-checkbox>
165
+ <ste-checkbox name="c">复选框c</ste-checkbox>
166
+ </ste-checkbox-group>
167
+ </view>
168
+ </view>
169
+ <view class="demo-item">
170
+ <view class="title">复选框组属性和复选框属性</view>
171
+ <view class="item-block checkbox-box">
172
+ <ste-checkbox-group v-model="value19" shape="square" textPosition="left">
173
+ <ste-checkbox name="a">复选框a</ste-checkbox>
174
+ <ste-checkbox name="b" disabled>复选框b</ste-checkbox>
175
+ <ste-checkbox name="c" shape="circle">复选框c</ste-checkbox>
176
+ </ste-checkbox-group>
177
+ </view>
178
+ </view>
179
+ <view class="demo-item">
180
+ <view class="title">限制最大可选数</view>
181
+ <view class="item-block checkbox-box">
182
+ <ste-checkbox-group v-model="value21" :max="2">
183
+ <ste-checkbox name="a">复选框a</ste-checkbox>
184
+ <ste-checkbox name="b">复选框b</ste-checkbox>
185
+ <ste-checkbox name="c">复选框c</ste-checkbox>
186
+ </ste-checkbox-group>
187
+ </view>
188
+ </view>
189
+ </view>
190
+ </view>
191
+ </template>
192
+ <script>
193
+ export default {
194
+ data() {
195
+ return {
196
+ value1: false,
197
+ value2: true,
198
+ value3: false,
199
+ value4: true,
200
+ value5: false,
201
+ value6: true,
202
+ value7: true,
203
+ value8: false,
204
+ value9: false,
205
+ value10: false,
206
+ value11: true,
207
+ value12: true,
208
+ value13: ['a'],
209
+ value14: false,
210
+ value15: false,
211
+ value16: false,
212
+ value17: false,
213
+ value18: [],
214
+ value19: [],
215
+ value20: [],
216
+ value21: [],
217
+ value22: [],
218
+ };
219
+ },
220
+ created() {},
221
+ methods: {
222
+ click1(value) {
223
+ this.$showToast({
224
+ icon: 'none',
225
+ title: `点击:${value} 复选框的值`,
226
+ });
227
+ },
228
+ click2(value, allowStop, resolve) {
229
+ this.$showToast({
230
+ icon: 'none',
231
+ title: `点击:${value} 复选框的值`,
232
+ });
233
+ // 阻止change事件
234
+ allowStop();
235
+ },
236
+ change(value) {
237
+ setTimeout(() => {
238
+ this.$showToast({
239
+ icon: 'none',
240
+ title: `改变:${value} 复选框的值`,
241
+ });
242
+ }, 1000);
243
+ },
244
+ },
245
+ };
246
+ </script>
247
+
248
+ <style lang="scss" scoped>
249
+ .page {
250
+ .checkbox-box {
251
+ flex-direction: column !important;
252
+ row-gap: 20rpx;
253
+ align-items: flex-start !important;
254
+ justify-content: center;
255
+ }
256
+ color: #0009;
257
+ .content {
258
+ background-color: #f5f5f5;
259
+ padding: 0;
260
+ .description,
261
+ .type-block {
262
+ padding: 0 40rpx;
263
+ }
264
+ }
265
+ .title {
266
+ margin: 0;
267
+ padding: 0 40rpx;
268
+ }
269
+ .item-block {
270
+ background-color: #ffffff;
271
+ padding: 18rpx 40rpx;
272
+ }
273
+ }
274
+ </style>
@@ -0,0 +1,113 @@
1
+ <template>
2
+ <view class="page">
3
+ <page-nav :autoBack="true" backColor="#000" titleAlignment="2" title="验证码输入组件"></page-nav>
4
+ <view class="content">
5
+ <view class="description">
6
+ <view class="cmp-name">CodeInput 验证码输入</view>
7
+ <view class="cmp-desc">用于验证码输入或短密码输入</view>
8
+ </view>
9
+ <view class="demo-item">
10
+ <view class="type-block">
11
+ <view>01 组件类型</view>
12
+ </view>
13
+ <view class="title">基础使用</view>
14
+ <view class="item-block">
15
+ <view style="width: 100%">
16
+ <ste-code-input :maxlength="4" @change="change" @finish="finish"></ste-code-input>
17
+ </view>
18
+ <view style="width: 100%">
19
+ <ste-code-input :maxlength="4" borderColor="rgba(0, 0, 0,0)"></ste-code-input>
20
+ </view>
21
+ </view>
22
+ </view>
23
+ <view class="demo-item">
24
+ <view class="title">横线模式</view>
25
+ <view class="item-block">
26
+ <view>
27
+ <ste-code-input mode="line" :maxlength="4"></ste-code-input>
28
+ </view>
29
+ </view>
30
+ </view>
31
+ <view class="demo-item">
32
+ <view class="title">设置长度</view>
33
+ <view class="item-block">
34
+ <view>
35
+ <ste-code-input :maxlength="5"></ste-code-input>
36
+ </view>
37
+ </view>
38
+ </view>
39
+ <view class="demo-item">
40
+ <view class="title">设置间距</view>
41
+ <view class="item-block">
42
+ <view>
43
+ <ste-code-input mode="box" :space="0" :maxlength="4"></ste-code-input>
44
+ </view>
45
+ </view>
46
+ </view>
47
+ <view class="type-block">
48
+ <view>02 组件样式</view>
49
+ </view>
50
+ <view class="demo-item">
51
+ <view class="title">调整颜色</view>
52
+ <view class="item-block">
53
+ <view style="width: 100%">
54
+ <ste-code-input :maxlength="4" fontColor="#f56c6c" borderColor="#f56c6c"></ste-code-input>
55
+ </view>
56
+ <view style="width: 100%">
57
+ <ste-code-input
58
+ mode="line"
59
+ :maxlength="4"
60
+ fontColor="#0090FF"
61
+ borderColor="#0090FF"
62
+ ></ste-code-input>
63
+ </view>
64
+ </view>
65
+ </view>
66
+ <view class="demo-item">
67
+ <view class="title">自定义显示</view>
68
+ <view class="item-block">
69
+ <view style="width: 100%">
70
+ <ste-code-input v-model="value2" formatter="·" fontSize="100" :maxlength="4"></ste-code-input>
71
+ </view>
72
+ <view style="width: 100%">
73
+ <ste-code-input v-model="value3" mode="line" formatter="*" :maxlength="4"></ste-code-input>
74
+ </view>
75
+ </view>
76
+ </view>
77
+ </view>
78
+ </view>
79
+ </template>
80
+ <script>
81
+ export default {
82
+ data() {
83
+ return {
84
+ value1: '123',
85
+ value2: '1',
86
+ value3: '12',
87
+ };
88
+ },
89
+ created() {},
90
+ methods: {
91
+ change(e) {
92
+ console.log('change', e);
93
+ },
94
+ finish(e) {
95
+ console.log('finish', e);
96
+ },
97
+ },
98
+ };
99
+ </script>
100
+
101
+ <style lang="scss" scoped>
102
+ .page {
103
+ .content {
104
+ .demo-item {
105
+ .item-block {
106
+ > view:not(:last-child) {
107
+ margin: 0 16rpx 32rpx 0;
108
+ }
109
+ }
110
+ }
111
+ }
112
+ }
113
+ </style>