stellar-ui-plus 1.16.18

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 (382) hide show
  1. package/README.md +176 -0
  2. package/common/css/common.scss +19 -0
  3. package/common/useProps.js +9 -0
  4. package/components/ste-animate/ATTRIBUTES.md +10 -0
  5. package/components/ste-animate/README.md +115 -0
  6. package/components/ste-animate/animate.scss +247 -0
  7. package/components/ste-animate/config.json +5 -0
  8. package/components/ste-animate/props.ts +9 -0
  9. package/components/ste-animate/ste-animate.easycom.json +39 -0
  10. package/components/ste-animate/ste-animate.scss +113 -0
  11. package/components/ste-animate/ste-animate.vue +67 -0
  12. package/components/ste-badge/ATTRIBUTES.md +17 -0
  13. package/components/ste-badge/README.md +162 -0
  14. package/components/ste-badge/config.json +5 -0
  15. package/components/ste-badge/props.ts +17 -0
  16. package/components/ste-badge/ste-badge.easycom.json +96 -0
  17. package/components/ste-badge/ste-badge.vue +157 -0
  18. package/components/ste-barcode/ATTRIBUTES.md +14 -0
  19. package/components/ste-barcode/README.md +28 -0
  20. package/components/ste-barcode/config.json +5 -0
  21. package/components/ste-barcode/encode.ts +317 -0
  22. package/components/ste-barcode/props.ts +7 -0
  23. package/components/ste-barcode/ste-barcode.easycom.json +44 -0
  24. package/components/ste-barcode/ste-barcode.vue +152 -0
  25. package/components/ste-button/ATTRIBUTES.md +32 -0
  26. package/components/ste-button/README.md +119 -0
  27. package/components/ste-button/config.json +5 -0
  28. package/components/ste-button/props.ts +21 -0
  29. package/components/ste-button/ste-button.easycom.json +168 -0
  30. package/components/ste-button/ste-button.vue +275 -0
  31. package/components/ste-calendar/ATTRIBUTES.md +31 -0
  32. package/components/ste-calendar/README.md +241 -0
  33. package/components/ste-calendar/config.json +5 -0
  34. package/components/ste-calendar/date.ts +110 -0
  35. package/components/ste-calendar/props.ts +26 -0
  36. package/components/ste-calendar/ste-calendar.easycom.json +172 -0
  37. package/components/ste-calendar/ste-calendar.vue +376 -0
  38. package/components/ste-calendar/useData.ts +30 -0
  39. package/components/ste-checkbox/ATTRIBUTES.md +25 -0
  40. package/components/ste-checkbox/README.md +302 -0
  41. package/components/ste-checkbox/config.json +5 -0
  42. package/components/ste-checkbox/props.ts +33 -0
  43. package/components/ste-checkbox/ste-checkbox.easycom.json +151 -0
  44. package/components/ste-checkbox/ste-checkbox.vue +206 -0
  45. package/components/ste-checkbox/type.d.ts +2 -0
  46. package/components/ste-checkbox-group/props.ts +34 -0
  47. package/components/ste-checkbox-group/ste-checkbox-group.vue +34 -0
  48. package/components/ste-code-input/ATTRIBUTES.md +22 -0
  49. package/components/ste-code-input/README.md +56 -0
  50. package/components/ste-code-input/config.json +5 -0
  51. package/components/ste-code-input/props.ts +19 -0
  52. package/components/ste-code-input/ste-code-input.easycom.json +99 -0
  53. package/components/ste-code-input/ste-code-input.vue +222 -0
  54. package/components/ste-date-picker/ATTRIBUTES.md +25 -0
  55. package/components/ste-date-picker/README.md +119 -0
  56. package/components/ste-date-picker/config.json +5 -0
  57. package/components/ste-date-picker/props.ts +62 -0
  58. package/components/ste-date-picker/ste-date-picker.easycom.json +137 -0
  59. package/components/ste-date-picker/ste-date-picker.vue +290 -0
  60. package/components/ste-date-picker/types.d.ts +3 -0
  61. package/components/ste-drag/ATTRIBUTES.md +13 -0
  62. package/components/ste-drag/README.md +88 -0
  63. package/components/ste-drag/config.json +5 -0
  64. package/components/ste-drag/props.ts +10 -0
  65. package/components/ste-drag/ste-drag.easycom.json +50 -0
  66. package/components/ste-drag/ste-drag.vue +172 -0
  67. package/components/ste-dropdown-menu/ATTRIBUTES.md +22 -0
  68. package/components/ste-dropdown-menu/README.md +325 -0
  69. package/components/ste-dropdown-menu/config.json +5 -0
  70. package/components/ste-dropdown-menu/constans.ts +4 -0
  71. package/components/ste-dropdown-menu/props.ts +30 -0
  72. package/components/ste-dropdown-menu/ste-dropdown-menu.easycom.json +111 -0
  73. package/components/ste-dropdown-menu/ste-dropdown-menu.scss +99 -0
  74. package/components/ste-dropdown-menu/ste-dropdown-menu.vue +223 -0
  75. package/components/ste-dropdown-menu-item/props.ts +17 -0
  76. package/components/ste-dropdown-menu-item/ste-dropdown-menu-item.scss +61 -0
  77. package/components/ste-dropdown-menu-item/ste-dropdown-menu-item.vue +84 -0
  78. package/components/ste-dropdown-menu-item/type.d.ts +4 -0
  79. package/components/ste-icon/ATTRIBUTES.md +19 -0
  80. package/components/ste-icon/README.md +72 -0
  81. package/components/ste-icon/config.json +5 -0
  82. package/components/ste-icon/iconfont.css +22 -0
  83. package/components/ste-icon/props.ts +14 -0
  84. package/components/ste-icon/ste-icon.easycom.json +71 -0
  85. package/components/ste-icon/ste-icon.vue +80 -0
  86. package/components/ste-image/ATTRIBUTES.md +21 -0
  87. package/components/ste-image/README.md +118 -0
  88. package/components/ste-image/config.json +5 -0
  89. package/components/ste-image/props.ts +15 -0
  90. package/components/ste-image/ste-image.easycom.json +189 -0
  91. package/components/ste-image/ste-image.vue +146 -0
  92. package/components/ste-index-item/props.ts +4 -0
  93. package/components/ste-index-item/ste-index-item.vue +83 -0
  94. package/components/ste-index-list/ATTRIBUTES.md +15 -0
  95. package/components/ste-index-list/README.md +138 -0
  96. package/components/ste-index-list/config.json +5 -0
  97. package/components/ste-index-list/props.ts +17 -0
  98. package/components/ste-index-list/ste-index-list.easycom.json +48 -0
  99. package/components/ste-index-list/ste-index-list.vue +109 -0
  100. package/components/ste-input/ATTRIBUTES.md +37 -0
  101. package/components/ste-input/README.md +130 -0
  102. package/components/ste-input/config.json +5 -0
  103. package/components/ste-input/props.ts +46 -0
  104. package/components/ste-input/ste-input.easycom.json +282 -0
  105. package/components/ste-input/ste-input.scss +124 -0
  106. package/components/ste-input/ste-input.vue +221 -0
  107. package/components/ste-loading/ATTRIBUTES.md +11 -0
  108. package/components/ste-loading/README.md +74 -0
  109. package/components/ste-loading/config.json +5 -0
  110. package/components/ste-loading/props.ts +8 -0
  111. package/components/ste-loading/ste-loading.easycom.json +54 -0
  112. package/components/ste-loading/ste-loading.vue +127 -0
  113. package/components/ste-media-preview/ATTRIBUTES.md +20 -0
  114. package/components/ste-media-preview/README.md +252 -0
  115. package/components/ste-media-preview/TouchScaleing.ts +117 -0
  116. package/components/ste-media-preview/config.json +5 -0
  117. package/components/ste-media-preview/props.ts +12 -0
  118. package/components/ste-media-preview/ste-media-preview.easycom.json +88 -0
  119. package/components/ste-media-preview/ste-media-preview.vue +201 -0
  120. package/components/ste-media-preview/useData.ts +63 -0
  121. package/components/ste-message-box/ATTRIBUTES.md +6 -0
  122. package/components/ste-message-box/README.md +222 -0
  123. package/components/ste-message-box/config.json +5 -0
  124. package/components/ste-message-box/constants.ts +25 -0
  125. package/components/ste-message-box/ste-message-box.easycom.json +14 -0
  126. package/components/ste-message-box/ste-message-box.ts +1 -0
  127. package/components/ste-message-box/ste-message-box.vue +355 -0
  128. package/components/ste-message-box/use-message-box.ts +26 -0
  129. package/components/ste-message-box/useData.ts +56 -0
  130. package/components/ste-notice-bar/ATTRIBUTES.md +22 -0
  131. package/components/ste-notice-bar/README.md +124 -0
  132. package/components/ste-notice-bar/config.json +5 -0
  133. package/components/ste-notice-bar/props.ts +15 -0
  134. package/components/ste-notice-bar/ste-notice-bar.easycom.json +109 -0
  135. package/components/ste-notice-bar/ste-notice-bar.vue +262 -0
  136. package/components/ste-number-keyboard/ATTRIBUTES.md +31 -0
  137. package/components/ste-number-keyboard/KeyboardVue.vue +142 -0
  138. package/components/ste-number-keyboard/README.md +192 -0
  139. package/components/ste-number-keyboard/config.json +5 -0
  140. package/components/ste-number-keyboard/props.ts +35 -0
  141. package/components/ste-number-keyboard/ste-number-keyboard.easycom.json +177 -0
  142. package/components/ste-number-keyboard/ste-number-keyboard.vue +81 -0
  143. package/components/ste-number-keyboard/useData.ts +144 -0
  144. package/components/ste-picker/props.ts +16 -0
  145. package/components/ste-picker/ste-picker.vue +194 -0
  146. package/components/ste-popup/ATTRIBUTES.md +24 -0
  147. package/components/ste-popup/README.md +135 -0
  148. package/components/ste-popup/config.json +6 -0
  149. package/components/ste-popup/event.ts +0 -0
  150. package/components/ste-popup/props.ts +19 -0
  151. package/components/ste-popup/ste-popup.easycom.json +122 -0
  152. package/components/ste-popup/ste-popup.vue +253 -0
  153. package/components/ste-price/ATTRIBUTES.md +26 -0
  154. package/components/ste-price/README.md +110 -0
  155. package/components/ste-price/config.json +5 -0
  156. package/components/ste-price/props.ts +23 -0
  157. package/components/ste-price/ste-price.easycom.json +154 -0
  158. package/components/ste-price/ste-price.vue +148 -0
  159. package/components/ste-progress/ATTRIBUTES.md +17 -0
  160. package/components/ste-progress/README.md +88 -0
  161. package/components/ste-progress/config.json +5 -0
  162. package/components/ste-progress/props.ts +16 -0
  163. package/components/ste-progress/ste-progress.easycom.json +80 -0
  164. package/components/ste-progress/ste-progress.vue +135 -0
  165. package/components/ste-qrcode/ATTRIBUTES.md +16 -0
  166. package/components/ste-qrcode/README.md +34 -0
  167. package/components/ste-qrcode/config.json +5 -0
  168. package/components/ste-qrcode/props.ts +16 -0
  169. package/components/ste-qrcode/ste-qrcode.easycom.json +56 -0
  170. package/components/ste-qrcode/ste-qrcode.vue +134 -0
  171. package/components/ste-qrcode/uqrcode.d.ts +57 -0
  172. package/components/ste-qrcode/uqrcode.js +34 -0
  173. package/components/ste-radio/ATTRIBUTES.md +25 -0
  174. package/components/ste-radio/README.md +260 -0
  175. package/components/ste-radio/config.json +5 -0
  176. package/components/ste-radio/props.ts +33 -0
  177. package/components/ste-radio/ste-radio.easycom.json +150 -0
  178. package/components/ste-radio/ste-radio.vue +188 -0
  179. package/components/ste-radio/type.d.ts +2 -0
  180. package/components/ste-radio-group/props.ts +33 -0
  181. package/components/ste-radio-group/ste-radio-group.vue +34 -0
  182. package/components/ste-rate/ATTRIBUTES.md +21 -0
  183. package/components/ste-rate/README.md +97 -0
  184. package/components/ste-rate/config.json +5 -0
  185. package/components/ste-rate/props.ts +16 -0
  186. package/components/ste-rate/ste-rate.easycom.json +85 -0
  187. package/components/ste-rate/ste-rate.vue +143 -0
  188. package/components/ste-read-more/ATTRIBUTES.md +16 -0
  189. package/components/ste-read-more/README.md +93 -0
  190. package/components/ste-read-more/config.json +5 -0
  191. package/components/ste-read-more/props.ts +9 -0
  192. package/components/ste-read-more/ste-read-more.easycom.json +54 -0
  193. package/components/ste-read-more/ste-read-more.vue +106 -0
  194. package/components/ste-rich-text/ATTRIBUTES.md +8 -0
  195. package/components/ste-rich-text/README.md +26 -0
  196. package/components/ste-rich-text/config.json +5 -0
  197. package/components/ste-rich-text/props.ts +8 -0
  198. package/components/ste-rich-text/ste-rich-text.easycom.json +40 -0
  199. package/components/ste-rich-text/ste-rich-text.vue +33 -0
  200. package/components/ste-scroll-to/ATTRIBUTES.md +11 -0
  201. package/components/ste-scroll-to/README.md +47 -0
  202. package/components/ste-scroll-to/config.json +5 -0
  203. package/components/ste-scroll-to/props.ts +17 -0
  204. package/components/ste-scroll-to/ste-scroll-to.easycom.json +25 -0
  205. package/components/ste-scroll-to/ste-scroll-to.vue +42 -0
  206. package/components/ste-scroll-to/useData.ts +214 -0
  207. package/components/ste-scroll-to-item/ste-scroll-to-item.vue +24 -0
  208. package/components/ste-search/ATTRIBUTES.md +39 -0
  209. package/components/ste-search/README.md +232 -0
  210. package/components/ste-search/config.json +5 -0
  211. package/components/ste-search/props.ts +124 -0
  212. package/components/ste-search/ste-search.easycom.json +232 -0
  213. package/components/ste-search/ste-search.vue +379 -0
  214. package/components/ste-search/useData.ts +34 -0
  215. package/components/ste-select/ATTRIBUTES.md +39 -0
  216. package/components/ste-select/README.md +324 -0
  217. package/components/ste-select/config.json +5 -0
  218. package/components/ste-select/datapager.vue +54 -0
  219. package/components/ste-select/datetime.vue +109 -0
  220. package/components/ste-select/defaultDate.ts +138 -0
  221. package/components/ste-select/props.ts +67 -0
  222. package/components/ste-select/ste-select.easycom.json +287 -0
  223. package/components/ste-select/ste-select.vue +437 -0
  224. package/components/ste-select/useData.ts +471 -0
  225. package/components/ste-signature/ATTRIBUTES.md +18 -0
  226. package/components/ste-signature/README.md +97 -0
  227. package/components/ste-signature/config.json +5 -0
  228. package/components/ste-signature/props.ts +12 -0
  229. package/components/ste-signature/ste-signature.easycom.json +74 -0
  230. package/components/ste-signature/ste-signature.vue +183 -0
  231. package/components/ste-signature/types.d.ts +4 -0
  232. package/components/ste-slider/ATTRIBUTES.md +25 -0
  233. package/components/ste-slider/README.md +149 -0
  234. package/components/ste-slider/config.json +5 -0
  235. package/components/ste-slider/props.ts +32 -0
  236. package/components/ste-slider/ste-slider.easycom.json +128 -0
  237. package/components/ste-slider/ste-slider.scss +150 -0
  238. package/components/ste-slider/ste-slider.vue +293 -0
  239. package/components/ste-slider/type.d.ts +4 -0
  240. package/components/ste-slider/useData.ts +79 -0
  241. package/components/ste-step/props.ts +10 -0
  242. package/components/ste-step/ste-step.scss +104 -0
  243. package/components/ste-step/ste-step.vue +122 -0
  244. package/components/ste-stepper/ATTRIBUTES.md +33 -0
  245. package/components/ste-stepper/README.md +172 -0
  246. package/components/ste-stepper/config.json +5 -0
  247. package/components/ste-stepper/props.ts +41 -0
  248. package/components/ste-stepper/ste-stepper.easycom.json +220 -0
  249. package/components/ste-stepper/ste-stepper.vue +249 -0
  250. package/components/ste-steps/ATTRIBUTES.md +12 -0
  251. package/components/ste-steps/README.md +139 -0
  252. package/components/ste-steps/config.json +5 -0
  253. package/components/ste-steps/props.ts +18 -0
  254. package/components/ste-steps/ste-steps.easycom.json +46 -0
  255. package/components/ste-steps/ste-steps.vue +44 -0
  256. package/components/ste-sticky/ATTRIBUTES.md +15 -0
  257. package/components/ste-sticky/README.md +56 -0
  258. package/components/ste-sticky/config.json +5 -0
  259. package/components/ste-sticky/props.ts +7 -0
  260. package/components/ste-sticky/ste-sticky.easycom.json +48 -0
  261. package/components/ste-sticky/ste-sticky.vue +88 -0
  262. package/components/ste-swipe-action/ATTRIBUTES.md +16 -0
  263. package/components/ste-swipe-action/README.md +195 -0
  264. package/components/ste-swipe-action/config.json +5 -0
  265. package/components/ste-swipe-action/props.ts +23 -0
  266. package/components/ste-swipe-action/ste-swipe-action.easycom.json +74 -0
  267. package/components/ste-swipe-action/ste-swipe-action.vue +138 -0
  268. package/components/ste-swipe-action/useData.ts +204 -0
  269. package/components/ste-swipe-action-group/ATTRIBUTES.md +17 -0
  270. package/components/ste-swipe-action-group/props.ts +22 -0
  271. package/components/ste-swipe-action-group/ste-swipe-action-group.easycom.json +90 -0
  272. package/components/ste-swipe-action-group/ste-swipe-action-group.vue +57 -0
  273. package/components/ste-swiper/ATTRIBUTES.md +24 -0
  274. package/components/ste-swiper/README.md +156 -0
  275. package/components/ste-swiper/config.json +5 -0
  276. package/components/ste-swiper/props.ts +41 -0
  277. package/components/ste-swiper/ste-swiper.easycom.json +123 -0
  278. package/components/ste-swiper/ste-swiper.vue +98 -0
  279. package/components/ste-swiper/useData.ts +365 -0
  280. package/components/ste-swiper-item/ste-swiper-item.vue +41 -0
  281. package/components/ste-switch/ATTRIBUTES.md +17 -0
  282. package/components/ste-switch/README.md +105 -0
  283. package/components/ste-switch/config.json +5 -0
  284. package/components/ste-switch/props.ts +9 -0
  285. package/components/ste-switch/ste-switch.easycom.json +60 -0
  286. package/components/ste-switch/ste-switch.vue +96 -0
  287. package/components/ste-tab/ATTRIBUTES.md +14 -0
  288. package/components/ste-tab/props.ts +25 -0
  289. package/components/ste-tab/ste-tab.easycom.json +56 -0
  290. package/components/ste-tab/ste-tab.vue +26 -0
  291. package/components/ste-table/ATTRIBUTES.md +41 -0
  292. package/components/ste-table/README.md +638 -0
  293. package/components/ste-table/config.json +5 -0
  294. package/components/ste-table/props.ts +72 -0
  295. package/components/ste-table/ste-table.easycom.json +188 -0
  296. package/components/ste-table/ste-table.vue +427 -0
  297. package/components/ste-table/types.d.ts +3 -0
  298. package/components/ste-table/useData.ts +233 -0
  299. package/components/ste-table/utils.ts +11 -0
  300. package/components/ste-table-column/checkbox-icon.vue +35 -0
  301. package/components/ste-table-column/common.scss +52 -0
  302. package/components/ste-table-column/props.ts +18 -0
  303. package/components/ste-table-column/radio-icon.vue +99 -0
  304. package/components/ste-table-column/ste-table-column.vue +169 -0
  305. package/components/ste-table-column/var.scss +1 -0
  306. package/components/ste-tabs/ATTRIBUTES.md +52 -0
  307. package/components/ste-tabs/README.md +165 -0
  308. package/components/ste-tabs/config.json +5 -0
  309. package/components/ste-tabs/props.ts +133 -0
  310. package/components/ste-tabs/ste-tabs.easycom.json +278 -0
  311. package/components/ste-tabs/ste-tabs.vue +447 -0
  312. package/components/ste-tabs/useData.ts +364 -0
  313. package/components/ste-text/ATTRIBUTES.md +9 -0
  314. package/components/ste-text/README.md +58 -0
  315. package/components/ste-text/config.json +6 -0
  316. package/components/ste-text/props.ts +10 -0
  317. package/components/ste-text/ste-text.easycom.json +30 -0
  318. package/components/ste-text/ste-text.vue +46 -0
  319. package/components/ste-toast/ATTRIBUTES.md +15 -0
  320. package/components/ste-toast/README.md +222 -0
  321. package/components/ste-toast/config.json +5 -0
  322. package/components/ste-toast/props.ts +7 -0
  323. package/components/ste-toast/ste-toast.easycom.json +73 -0
  324. package/components/ste-toast/ste-toast.vue +209 -0
  325. package/components/ste-toast/use-toast.ts +26 -0
  326. package/components/ste-touch-swipe/ATTRIBUTES.md +18 -0
  327. package/components/ste-touch-swipe/README.md +89 -0
  328. package/components/ste-touch-swipe/TouchEvent.ts +79 -0
  329. package/components/ste-touch-swipe/config.json +5 -0
  330. package/components/ste-touch-swipe/props.ts +23 -0
  331. package/components/ste-touch-swipe/ste-touch-swipe.easycom.json +83 -0
  332. package/components/ste-touch-swipe/ste-touch-swipe.vue +283 -0
  333. package/components/ste-touch-swipe/useData.ts +51 -0
  334. package/components/ste-touch-swipe-item/ste-touch-swipe-item.vue +32 -0
  335. package/components/ste-tour/ATTRIBUTES.md +26 -0
  336. package/components/ste-tour/README.md +134 -0
  337. package/components/ste-tour/config.json +5 -0
  338. package/components/ste-tour/props.ts +45 -0
  339. package/components/ste-tour/ste-tour.easycom.json +120 -0
  340. package/components/ste-tour/ste-tour.vue +152 -0
  341. package/components/ste-tour/useData.ts +220 -0
  342. package/components/ste-tree/ATTRIBUTES.md +19 -0
  343. package/components/ste-tree/README.md +217 -0
  344. package/components/ste-tree/config.json +5 -0
  345. package/components/ste-tree/props.ts +24 -0
  346. package/components/ste-tree/ste-tree.easycom.json +106 -0
  347. package/components/ste-tree/ste-tree.vue +140 -0
  348. package/components/ste-tree/useData.ts +219 -0
  349. package/components/ste-upload/ATTRIBUTES.md +35 -0
  350. package/components/ste-upload/README.md +208 -0
  351. package/components/ste-upload/ReadFile.ts +305 -0
  352. package/components/ste-upload/config.json +5 -0
  353. package/components/ste-upload/props.ts +25 -0
  354. package/components/ste-upload/ste-upload.easycom.json +267 -0
  355. package/components/ste-upload/ste-upload.vue +386 -0
  356. package/components/ste-upload/useData.ts +46 -0
  357. package/components/ste-video/ATTRIBUTES.md +34 -0
  358. package/components/ste-video/README.md +48 -0
  359. package/components/ste-video/config.json +5 -0
  360. package/components/ste-video/props.ts +86 -0
  361. package/components/ste-video/ste-video.easycom.json +226 -0
  362. package/components/ste-video/ste-video.scss +201 -0
  363. package/components/ste-video/ste-video.vue +390 -0
  364. package/components/ste-video/types.d.ts +4 -0
  365. package/components/ste-video/useData.ts +140 -0
  366. package/composables.ts +2 -0
  367. package/config/color.ts +16 -0
  368. package/config/index.ts +48 -0
  369. package/index.ts +118 -0
  370. package/package.json +22 -0
  371. package/store/color.ts +24 -0
  372. package/store/index.ts +12 -0
  373. package/store/message-box.ts +54 -0
  374. package/store/toast.ts +50 -0
  375. package/types/components.d.ts +124 -0
  376. package/types/event.d.ts +51 -0
  377. package/types/index.d.ts +112 -0
  378. package/types/refComponents.d.ts +118 -0
  379. package/utils/Color.ts +66 -0
  380. package/utils/System.ts +114 -0
  381. package/utils/mixin.ts +122 -0
  382. package/utils/utils.ts +520 -0
@@ -0,0 +1,165 @@
1
+ # Tabs 标签页
2
+
3
+ 标签页组件,集成了常见标签页所需功能。
4
+
5
+ ---$
6
+
7
+ ### 代码演示
8
+
9
+ ```html
10
+ <script setup lang="ts">
11
+ import { ref, computed } from 'vue';
12
+ import type { SwitchOnChangeEvent } from '@uni-helper/uni-app-types';
13
+
14
+ const list1 = [
15
+ {
16
+ title: '标签1',
17
+ subTitle: '子标题',
18
+ image: 'https://image.whzb.com/chain/StellarUI/图片.jpg',
19
+ content: 'https://image.whzb.com/chain/StellarUI/image/banner1.png',
20
+ badge: 5,
21
+ },
22
+ {
23
+ title: '标签2',
24
+ subTitle: '子标题',
25
+ image: 'https://image.whzb.com/chain/StellarUI/图片.jpg',
26
+ content: 'https://image.whzb.com/chain/StellarUI/image/banner2.png',
27
+ badge: 0,
28
+ },
29
+ {
30
+ title: '这是一个超长的标签',
31
+ subTitle: '子标题',
32
+ image: 'https://image.whzb.com/chain/StellarUI/图片.jpg',
33
+ content: 'https://image.whzb.com/chain/StellarUI/image/banner1.png',
34
+ badge: 10,
35
+ },
36
+ {
37
+ title: '标签4',
38
+ subTitle: '子标题',
39
+ image: 'https://image.whzb.com/chain/StellarUI/图片.jpg',
40
+ content: 'https://image.whzb.com/chain/StellarUI/image/banner2.png',
41
+ badge: 0,
42
+ },
43
+ ];
44
+ const list2 = [
45
+ {
46
+ title: '标签5',
47
+ subTitle: '子标题',
48
+ image: 'https://image.whzb.com/chain/StellarUI/图片.jpg',
49
+ content: 'https://image.whzb.com/chain/StellarUI/image/banner1.png',
50
+ badge: 0,
51
+ },
52
+ {
53
+ title: '标签6',
54
+ subTitle: '子标题',
55
+ image: 'https://image.whzb.com/chain/StellarUI/图片.jpg',
56
+ content: 'https://image.whzb.com/chain/StellarUI/image/banner2.png',
57
+ badge: 0,
58
+ },
59
+ {
60
+ title: '标签7',
61
+ subTitle: '子标题',
62
+ image: 'https://image.whzb.com/chain/StellarUI/图片.jpg',
63
+ content: 'https://image.whzb.com/chain/StellarUI/image/banner1.png',
64
+ badge: 0,
65
+ },
66
+ {
67
+ title: '标签8',
68
+ subTitle: '子标题',
69
+ image: 'https://image.whzb.com/chain/StellarUI/图片.jpg',
70
+ content: 'https://image.whzb.com/chain/StellarUI/image/banner2.png',
71
+ badge: 0,
72
+ },
73
+ ];
74
+
75
+ const showData = ref(false);
76
+ const datas = computed(() => (showData.value ? [...list1].concat(list2) : list1));
77
+ const switchData = (v: SwitchOnChangeEvent) => (showData.value = v.detail.value);
78
+
79
+ const showImage = ref(false);
80
+ const setShowImage = (v: SwitchOnChangeEvent) => (showImage.value = v.detail.value);
81
+ const showTitle = ref(true);
82
+ const setShowTitle = (v: SwitchOnChangeEvent) => (showTitle.value = v.detail.value);
83
+ const showSubTitle = ref(false);
84
+ const setSubTitle = (v: SwitchOnChangeEvent) => (showSubTitle.value = v.detail.value);
85
+ const showBadge = ref(false);
86
+ const setShowBadge = (v: SwitchOnChangeEvent) => (showBadge.value = v.detail.value);
87
+ const swipeable = ref(false);
88
+ const setSwipeable = (v: SwitchOnChangeEvent) => (swipeable.value = v.detail.value);
89
+ const showType = ref('line');
90
+ const setShowType = (v: SwitchOnChangeEvent) => (showType.value = v.detail.value ? 'card' : 'line');
91
+ </script>
92
+ <ste-tabs :showImage="showImage" :showSubtitle="showSubTitle" :showTitle="showTitle" :swipeable="swipeable" :type="showType">
93
+ <ste-tab v-for="item in datas" :key="item.title" :title="item.title" :image="item.image" :badge="showBadge ? item.badge : 0" :subTitle="item.subTitle">
94
+ <view>{{ item.title }} Content</view>
95
+ <image mode="widthFix" :src="item.content" />
96
+ </ste-tab>
97
+ </ste-tabs>
98
+ <view class="method-list">
99
+ <view>
100
+ 显示主标题
101
+ <switch :checked="showTitle" @change="setShowTitle"></switch>
102
+ </view>
103
+ <view>
104
+ 显示图标
105
+ <switch @change="setShowImage"></switch>
106
+ </view>
107
+ <view>
108
+ 显示子标题
109
+ <switch @change="setSubTitle"></switch>
110
+ </view>
111
+ <view>
112
+ 切换数据
113
+ <switch @change="switchData"></switch>
114
+ </view>
115
+ <view>
116
+ 显示徽标
117
+ <switch @change="setShowBadge"></switch>
118
+ </view>
119
+ <view>
120
+ 手势切换
121
+ <switch @change="setSwipeable"></switch>
122
+ </view>
123
+ <view>
124
+ 卡片模式
125
+ <switch @change="setShowType"></switch>
126
+ </view>
127
+ </view>
128
+ ```
129
+
130
+ ####
131
+
132
+ ---$
133
+
134
+ ### API
135
+
136
+ <!-- props -->
137
+
138
+ #### Tabs Slot
139
+
140
+ | 插槽名 | 说明 | 插槽参数 | 支持版本 |
141
+ | --------- | --------------------------------- | -------- | -------- |
142
+ | `default` | 默认插槽,请传入`ste-tab`标签列表 | - | - |
143
+
144
+ #### Tab Props
145
+
146
+ | 属性名 | 说明 | 类型 | 默认值 | 可选值 | 支持版本 |
147
+ | --------------- | -------------------------------------------------------------------- | ----------------- | ------- | ------ | -------- |
148
+ | `title` | 标题 | `String` | - | - | - |
149
+ | `subTitle` | 子标题 | `String` | - | - | - |
150
+ | `image` | 图片(同image的src属性) | `String` | - | - | - |
151
+ | `name` | 标签唯一标识(当tabs的active值类型为string时,作为匹配激活的标识符) | `String` | - | - | - |
152
+ | `index` | 标签下标(当tabs的active值类型为number时,作为匹配激活的标识符) | `Number` | - | - | - |
153
+ | `disabled` | 禁用当前标签 | `Boolean` | `false` | - | - |
154
+ | `showDot` | 是否在主标题右上角显示小红点(隐藏主标题时无法显示) | `Boolean` | `false` | - | - |
155
+ | `badge` | 右上角徽标的内容 | `String`/`Number` | `0` | - | - |
156
+ | `showZeroBadge` | 当 badge 为数字 0 时,是否展示徽标 | `Boolean` | `false` | - | - |
157
+
158
+ #### Tab Slot
159
+
160
+ | 插槽名 | 说明 | 插槽参数 | 支持版本 |
161
+ | --------- | -------------------------------------------- | -------- | -------- |
162
+ | `default` | 默认插槽,在插槽中的内容会展示在标签内容区域 | - | - |
163
+
164
+ ---$
165
+ {{xuyajun}}
@@ -0,0 +1,5 @@
1
+ {
2
+ "group": "导航组件",
3
+ "title": "Tabs 标签页",
4
+ "icon": "https://image.whzb.com/chain/StellarUI/组件图标/badge.png"
5
+ }
@@ -0,0 +1,133 @@
1
+ export const TAB_KEY = Symbol('ste-tabs')
2
+
3
+ export interface SteTabsProps {
4
+ active: number | string
5
+ type: string
6
+ showImage: boolean
7
+ showTitle: boolean
8
+ showSubtitle: boolean
9
+ color: string
10
+ background: string
11
+ radius: number | string
12
+ duration: number | string
13
+ showLine: boolean
14
+ lineWidth: number | string
15
+ lineHeight: number | string
16
+ border: boolean
17
+ ellipsis: boolean
18
+ tabWidth: number | string
19
+ tabPadding: number | string
20
+ tabSpace: number | string
21
+ divideNum: number
22
+ sticky: boolean
23
+ offsetTop: number | string
24
+ swipeable: boolean
25
+ titleColor: string
26
+ activeTitleColor: string
27
+ titleHeight: number | string
28
+ subColor: string
29
+ activeSubColor: string
30
+ subTitleHeight: number | string
31
+ subTitleRadius: number | string
32
+ imageWidth: number | string
33
+ imageHeight: number | string
34
+ imageRadius: number | string
35
+ imageBorderWidth: number | string
36
+ showGapLine: boolean
37
+ lock: boolean
38
+ disabled: boolean
39
+ pullDown: boolean
40
+ placeholder: string
41
+ maskTop: number | string
42
+ maskRight: number | string
43
+ maskBottom: number | string
44
+ maskLeft: number | string
45
+ maskZindex: number | string
46
+ }
47
+
48
+ export default {
49
+ // 当前激活的选项支持sync双向绑定(类型为number时绑定index,类型为string时绑定name)
50
+ active: { type: [Number, String], default: () => 0 },
51
+ // 样式风格类型,可选值为 line card
52
+ type: { type: String, default: () => 'line' },
53
+ // 是否显示图片
54
+ showImage: { type: Boolean, default: () => false },
55
+ // 是否显示主标题
56
+ showTitle: { type: Boolean, default: () => true },
57
+ // 是否显示副标题
58
+ showSubtitle: { type: Boolean, default: () => false },
59
+ // 主题色(滑块颜色,边框颜色,选中的背景色,激活下拉列表中选项颜色)
60
+ color: { type: String, default: () => '' },
61
+ // 背景
62
+ background: { type: String, default: () => '' },
63
+ // 圆角
64
+ radius: { type: [String, Number], default: () => 0 },
65
+ // 动画时间,单位秒,设置为 0 可以禁用动画
66
+ duration: { type: [String, Number], default: () => 0.3 },
67
+ // 底部条是否显示,默认true(显示副标题的情况下会自动隐藏)
68
+ showLine: { type: Boolean, default: () => true },
69
+ // 底部条宽度,默认单位rpx
70
+ lineWidth: { type: [String, Number], default: () => 52 },
71
+ // 底部条高度,默认单位rpx
72
+ lineHeight: { type: [String, Number], default: () => 6 },
73
+ // 是否显示标签栏外边框,仅在 type="line" 时有效
74
+ border: { type: Boolean, default: () => false },
75
+ // 是否省略过长的标题文字
76
+ ellipsis: { type: Boolean, default: () => false },
77
+ // tab内容的宽度
78
+ tabWidth: { type: [String, Number], default: () => 'auto' },
79
+ // 选项内边距,默认24,单位rpx
80
+ tabPadding: { type: [Number, String], default: () => 24 },
81
+ // tab间距rpx
82
+ tabSpace: { type: [Number, String], default: () => 0 },
83
+ // tab等分数量,设置为 0 ,则不等分
84
+ divideNum: { type: Number, default: () => 4 },
85
+ // 是否使用粘性布局
86
+ sticky: { type: Boolean, default: () => false },
87
+ // 粘性布局下吸顶时与顶部的距离,单位rpx
88
+ offsetTop: { type: [String, Number], default: () => 0 },
89
+ // 是否开启手势左右滑动切换
90
+ swipeable: { type: Boolean, default: () => false },
91
+ // 主标题字体颜色和下拉列表中选项颜色
92
+ titleColor: { type: String, default: () => '#000000' },
93
+ // 激活主标题字体颜色
94
+ activeTitleColor: { type: String, default: () => '#000000' },
95
+ // 标题高度
96
+ titleHeight: { type: [Number, String], default: () => 48 },
97
+ // 子标题字体颜色和下拉列表中选项颜色
98
+ subColor: { type: String, default: () => '#000' },
99
+ // 激活子标题字体颜色和下拉列表中选项颜色
100
+ activeSubColor: { type: String, default: () => '#fff' },
101
+ // 子标题高度
102
+ subTitleHeight: { type: [Number, String], default: () => 42 },
103
+ // 子标题圆角
104
+ subTitleRadius: { type: [Number, String], default: () => 21 },
105
+ // 图片宽度,默认80,单位rpx
106
+ imageWidth: { type: [Number, String], default: () => 80 },
107
+ // 图片高度,默认80,单位rpx
108
+ imageHeight: { type: [Number, String], default: () => 80 },
109
+ // 图片圆角,默认50%,单位rpx
110
+ imageRadius: { type: [Number, String], default: () => '50%' },
111
+ // 选中图片边框宽度,默认4,单位rpx
112
+ imageBorderWidth: { type: [Number, String], default: () => 4 },
113
+ // 是否显示分隔符
114
+ showGapLine: { type: Boolean, default: () => false },
115
+ // 是否锁定tab(无法切换)
116
+ lock: { type: Boolean, default: () => false },
117
+ // 是否禁用tab(所有功能失效)
118
+ disabled: { type: Boolean, default: () => false },
119
+ // 是否有下拉选择按钮
120
+ pullDown: { type: Boolean, default: () => false },
121
+ // 下拉占位符
122
+ placeholder: { type: String, default: () => '请选择' },
123
+ // 下拉蒙层顶部距离
124
+ maskTop: { type: [String, Number], default: () => 0 },
125
+ // 下拉蒙层右侧距离
126
+ maskRight: { type: [String, Number], default: () => 0 },
127
+ // 下拉蒙层底部距离
128
+ maskBottom: { type: [String, Number], default: () => 0 },
129
+ // 下拉蒙层左侧距离
130
+ maskLeft: { type: [String, Number], default: () => 0 },
131
+ // 下拉蒙层层级
132
+ maskZindex: { type: [String, Number], default: () => 1001 },
133
+ }
@@ -0,0 +1,278 @@
1
+ {
2
+ "name": "ste-tabs",
3
+ "description": "标签页",
4
+ "tutorial": "https://stellar-ui.intecloud.com.cn/pc/index/index?name=tabs",
5
+ "attributes": [
6
+ {
7
+ "name": "active",
8
+ "description": "当前激活的选项支持v-model:active双向绑定(类型为number时绑定index,类型为string时绑定name)",
9
+ "type": "number | string",
10
+ "default": 0
11
+ },
12
+ {
13
+ "name": "type",
14
+ "description": "样式风格类型",
15
+ "type": "string",
16
+ "default": "line",
17
+ "values": [
18
+ {
19
+ "name": "line",
20
+ "description": "线型"
21
+ },
22
+ {
23
+ "name": "card",
24
+ "description": "卡片型"
25
+ }
26
+ ]
27
+ },
28
+ {
29
+ "name": "showImage",
30
+ "description": "是否显示图片",
31
+ "type": "boolean",
32
+ "default": false
33
+ },
34
+ {
35
+ "name": "showTitle",
36
+ "description": "是否显示主标题",
37
+ "type": "boolean",
38
+ "default": true
39
+ },
40
+ {
41
+ "name": "showSubtitle",
42
+ "description": "是否显示副标题",
43
+ "type": "boolean",
44
+ "default": false
45
+ },
46
+ {
47
+ "name": "color",
48
+ "description": "主题色(滑块颜色,边框颜色,选中的背景色,激活下拉列表中选项颜色)",
49
+ "type": "string",
50
+ "default": "#0090FF"
51
+ },
52
+ {
53
+ "name": "background",
54
+ "description": "背景",
55
+ "type": "string"
56
+ },
57
+ {
58
+ "name": "radius",
59
+ "description": "圆角,单位RPX",
60
+ "type": "number | string",
61
+ "default": 0
62
+ },
63
+ {
64
+ "name": "duration",
65
+ "description": "动画时间,单位秒,设置为 0 可以禁用动画",
66
+ "type": "number | string",
67
+ "default": 0.3
68
+ },
69
+ {
70
+ "name": "showLine",
71
+ "description": "底部条是否显示(显示副标题的情况下会自动隐藏)",
72
+ "type": "boolean",
73
+ "default": true
74
+ },
75
+ {
76
+ "name": "lineWidth",
77
+ "description": "底部条宽度,默认单位rpx",
78
+ "type": "number | string",
79
+ "default": 52
80
+ },
81
+ {
82
+ "name": "lineHeight",
83
+ "description": "底部条高度,默认单位rpx",
84
+ "type": "number | string",
85
+ "default": 6
86
+ },
87
+ {
88
+ "name": "border",
89
+ "description": "是否显示标签栏外边框,仅在 type=line 时有效",
90
+ "type": "boolean",
91
+ "default": false
92
+ },
93
+ {
94
+ "name": "ellipsis",
95
+ "description": "是否省略过长的标题文字",
96
+ "type": "boolean",
97
+ "default": false
98
+ },
99
+ {
100
+ "name": "tabWidth",
101
+ "description": "tab内容的宽度",
102
+ "type": "number | string",
103
+ "default": "auto"
104
+ },
105
+ {
106
+ "name": "tabPadding",
107
+ "description": "选项内边距,默认24,单位rpx",
108
+ "type": "number | string",
109
+ "default": 24
110
+ },
111
+ {
112
+ "name": "tabSpace",
113
+ "description": "tab间距rpx",
114
+ "type": "number | string",
115
+ "default": 0
116
+ },
117
+ {
118
+ "name": "divideNum",
119
+ "description": "tab等分数量,设置为 0 ,则不等分",
120
+ "type": "number | string",
121
+ "default": 4
122
+ },
123
+ {
124
+ "name": "sticky",
125
+ "description": "是否使用粘性布局",
126
+ "type": "boolean",
127
+ "default": false
128
+ },
129
+ {
130
+ "name": "offsetTop",
131
+ "description": "粘性布局下吸顶时与顶部的距离,单位rpx",
132
+ "type": "number | string",
133
+ "default": 0
134
+ },
135
+ {
136
+ "name": "swipeable",
137
+ "description": "是否开启手势左右滑动切换",
138
+ "type": "boolean",
139
+ "default": false
140
+ },
141
+ {
142
+ "name": "titleColor",
143
+ "description": "主标题字体颜色和下拉列表中选项颜色",
144
+ "type": "string",
145
+ "default": "#000000"
146
+ },
147
+ {
148
+ "name": "activeTitleColor",
149
+ "description": "激活主标题字体颜色",
150
+ "type": "string",
151
+ "default": "#000000"
152
+ },
153
+ {
154
+ "name": "titleHeight",
155
+ "description": "主标题高度",
156
+ "type": "number | string",
157
+ "default": 48
158
+ },
159
+ {
160
+ "name": "subColor",
161
+ "description": "子标题字体颜色和下拉列表中选项颜色",
162
+ "type": "string",
163
+ "default": "#000000"
164
+ },
165
+ {
166
+ "name": "activeSubColor",
167
+ "description": "激活子标题字体颜色和下拉列表中选项颜色",
168
+ "type": "string",
169
+ "default": "#ffffff"
170
+ },
171
+ {
172
+ "name": "subTitleHeight",
173
+ "description": "子标题高度",
174
+ "type": "number | string",
175
+ "default": 42
176
+ },
177
+ {
178
+ "name": "subTitleRadius",
179
+ "description": "子标题圆角",
180
+ "type": "number | string",
181
+ "default": 21
182
+ },
183
+ {
184
+ "name": "imageWidth",
185
+ "description": "图片宽度,默认80,单位rpx",
186
+ "type": "number | string",
187
+ "default": 80
188
+ },
189
+ {
190
+ "name": "imageHeight",
191
+ "description": "图片高度,默认80,单位rpx",
192
+ "type": "number | string",
193
+ "default": 80
194
+ },
195
+ {
196
+ "name": "imageRadius",
197
+ "description": "图片圆角,默认50%,单位rpx",
198
+ "type": "number | string",
199
+ "default": "50%"
200
+ },
201
+ {
202
+ "name": "imageBorderWidth",
203
+ "description": "选中图片边框宽度,默认4,单位rpx",
204
+ "type": "number | string",
205
+ "default": 4
206
+ },
207
+ {
208
+ "name": "showGapLine",
209
+ "description": "是否显示分隔符",
210
+ "type": "boolean",
211
+ "default": false
212
+ },
213
+ {
214
+ "name": "lock",
215
+ "description": "是否锁定tab(无法切换)",
216
+ "type": "boolean",
217
+ "default": false
218
+ },
219
+ {
220
+ "name": "disabled",
221
+ "description": "是否禁用tab(所有功能失效)",
222
+ "type": "boolean",
223
+ "default": false
224
+ },
225
+ {
226
+ "name": "pullDown",
227
+ "description": "是否有下拉选择按钮",
228
+ "type": "boolean",
229
+ "default": false
230
+ },
231
+ {
232
+ "name": "placeholder",
233
+ "description": "下拉占位符",
234
+ "type": "string",
235
+ "default": "请选择"
236
+ },
237
+ {
238
+ "name": "maskTop",
239
+ "description": "下拉蒙层顶部距离",
240
+ "type": "number | string",
241
+ "default": 0
242
+ },
243
+ {
244
+ "name": "maskRight",
245
+ "description": "下拉蒙层右侧距离",
246
+ "type": "number | string",
247
+ "default": 0
248
+ },
249
+ {
250
+ "name": "maskBottom",
251
+ "description": "下拉蒙层底部距离",
252
+ "type": "number | string",
253
+ "default": 0
254
+ },
255
+ {
256
+ "name": "maskLeft",
257
+ "description": "下拉蒙层左侧距离",
258
+ "type": "number | string",
259
+ "default": 0
260
+ },
261
+ {
262
+ "name": "maskZindex",
263
+ "description": "下拉蒙层层级",
264
+ "type": "number | string",
265
+ "default": 1001
266
+ },
267
+ {
268
+ "name": "[event]click-tab",
269
+ "description": "点击tab触发",
270
+ "type": "(tab:TabProps)=>void"
271
+ },
272
+ {
273
+ "name": "[event]change",
274
+ "description": "切换tab触发",
275
+ "type": "(tab:TabProps)=>void"
276
+ }
277
+ ]
278
+ }