stellar-ui-plus 1.25.0 → 1.25.2

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 (248) hide show
  1. package/components/ste-animate/ATTRIBUTES.md +13 -5
  2. package/components/ste-animate/README.md +4 -28
  3. package/components/ste-animate/ste-animate.easycom.json +31 -9
  4. package/components/ste-app-update/ATTRIBUTES.md +11 -5
  5. package/components/ste-app-update/README.md +1 -3
  6. package/components/ste-app-update/method.ts +44 -1
  7. package/components/ste-app-update/props.ts +17 -2
  8. package/components/ste-app-update/ste-app-update.easycom.json +18 -8
  9. package/components/ste-app-update/ste-app-update.vue +93 -18
  10. package/components/ste-area-chart/ATTRIBUTES.md +3 -1
  11. package/components/ste-area-chart/README.md +4 -4
  12. package/components/ste-badge/ATTRIBUTES.md +10 -1
  13. package/components/ste-badge/README.md +9 -18
  14. package/components/ste-badge/ste-badge.easycom.json +8 -0
  15. package/components/ste-bar-chart/ATTRIBUTES.md +3 -1
  16. package/components/ste-bar-chart/README.md +3 -5
  17. package/components/ste-barcode/ATTRIBUTES.md +6 -2
  18. package/components/ste-barcode/README.md +3 -5
  19. package/components/ste-barcode/ste-barcode.easycom.json +1 -2
  20. package/components/ste-button/ATTRIBUTES.md +24 -14
  21. package/components/ste-button/README.md +11 -19
  22. package/components/ste-button/ste-button.easycom.json +76 -12
  23. package/components/ste-calendar/ATTRIBUTES.md +12 -2
  24. package/components/ste-calendar/README.md +16 -24
  25. package/components/ste-calendar/ste-calendar.easycom.json +4 -3
  26. package/components/ste-category/ATTRIBUTES.md +6 -2
  27. package/components/ste-category/README.md +2 -4
  28. package/components/ste-category/ste-category.easycom.json +1 -2
  29. package/components/ste-checkbox/ATTRIBUTES.md +6 -2
  30. package/components/ste-checkbox/README.md +18 -20
  31. package/components/ste-checkbox/ste-checkbox.easycom.json +1 -3
  32. package/components/ste-checkbox/ste-checkbox.vue +71 -80
  33. package/components/ste-code-input/ATTRIBUTES.md +8 -4
  34. package/components/ste-code-input/README.md +7 -9
  35. package/components/ste-code-input/ste-code-input.easycom.json +13 -4
  36. package/components/ste-column-chart/ATTRIBUTES.md +3 -1
  37. package/components/ste-column-chart/README.md +5 -7
  38. package/components/ste-comment/ATTRIBUTES.md +3 -1
  39. package/components/ste-comment/README.md +2 -4
  40. package/components/ste-coupon-list/ATTRIBUTES.md +15 -5
  41. package/components/ste-coupon-list/README.md +6 -14
  42. package/components/ste-coupon-list/ste-coupon-list.easycom.json +22 -3
  43. package/components/ste-custom-keyboard/ATTRIBUTES.md +16 -7
  44. package/components/ste-custom-keyboard/README.md +10 -18
  45. package/components/ste-custom-keyboard/ste-custom-keyboard.easycom.json +28 -10
  46. package/components/ste-date-picker/ATTRIBUTES.md +9 -5
  47. package/components/ste-date-picker/README.md +9 -11
  48. package/components/ste-date-picker/ste-date-picker.easycom.json +19 -4
  49. package/components/ste-date-user/ATTRIBUTES.md +9 -1
  50. package/components/ste-date-user/README.md +3 -11
  51. package/components/ste-date-user/ste-date-user.easycom.json +4 -0
  52. package/components/ste-drag/ATTRIBUTES.md +13 -3
  53. package/components/ste-drag/README.md +5 -13
  54. package/components/ste-drag/ste-drag.easycom.json +10 -2
  55. package/components/ste-drag-sort/ATTRIBUTES.md +25 -0
  56. package/components/ste-drag-sort/README.md +116 -0
  57. package/components/ste-drag-sort/config.json +5 -0
  58. package/components/ste-drag-sort/props.ts +16 -0
  59. package/components/ste-drag-sort/ste-drag-sort.easycom.json +88 -0
  60. package/components/ste-drag-sort/ste-drag-sort.vue +589 -0
  61. package/components/ste-dropdown-menu/ATTRIBUTES.md +8 -4
  62. package/components/ste-dropdown-menu/README.md +14 -16
  63. package/components/ste-dropdown-menu/ste-dropdown-menu.easycom.json +13 -4
  64. package/components/ste-filter-tool/ATTRIBUTES.md +6 -2
  65. package/components/ste-filter-tool/README.md +4 -6
  66. package/components/ste-filter-tool/ste-filter-tool.easycom.json +1 -5
  67. package/components/ste-function-list/ATTRIBUTES.md +13 -2
  68. package/components/ste-function-list/README.md +3 -12
  69. package/components/ste-function-list/ste-function-list.easycom.json +8 -3
  70. package/components/ste-funnel-chart/ATTRIBUTES.md +3 -1
  71. package/components/ste-funnel-chart/README.md +4 -6
  72. package/components/ste-goods-info/ATTRIBUTES.md +15 -4
  73. package/components/ste-goods-info/README.md +8 -17
  74. package/components/ste-goods-info/ste-goods-info.easycom.json +40 -13
  75. package/components/ste-goods-list/ATTRIBUTES.md +9 -1
  76. package/components/ste-goods-list/README.md +4 -12
  77. package/components/ste-goods-list/ste-goods-list.easycom.json +4 -0
  78. package/components/ste-guide-qa/ATTRIBUTES.md +15 -4
  79. package/components/ste-guide-qa/README.md +6 -15
  80. package/components/ste-guide-qa/ste-guide-qa.easycom.json +20 -2
  81. package/components/ste-icon/ATTRIBUTES.md +7 -3
  82. package/components/ste-icon/README.md +5 -7
  83. package/components/ste-icon/ste-icon.easycom.json +7 -2
  84. package/components/ste-image/ATTRIBUTES.md +13 -2
  85. package/components/ste-image/README.md +6 -15
  86. package/components/ste-image/ste-image.easycom.json +8 -3
  87. package/components/ste-index-list/ATTRIBUTES.md +8 -4
  88. package/components/ste-index-list/README.md +6 -8
  89. package/components/ste-index-list/ste-index-list.easycom.json +13 -3
  90. package/components/ste-input/ATTRIBUTES.md +14 -3
  91. package/components/ste-input/README.md +16 -25
  92. package/components/ste-input/ste-input.easycom.json +14 -5
  93. package/components/ste-line-chart/ATTRIBUTES.md +3 -1
  94. package/components/ste-line-chart/README.md +5 -7
  95. package/components/ste-loading/ATTRIBUTES.md +3 -1
  96. package/components/ste-loading/README.md +6 -8
  97. package/components/ste-login/ATTRIBUTES.md +12 -2
  98. package/components/ste-login/README.md +7 -15
  99. package/components/ste-login/ste-login.easycom.json +4 -7
  100. package/components/ste-login-info/ATTRIBUTES.md +6 -2
  101. package/components/ste-login-info/README.md +2 -4
  102. package/components/ste-login-info/ste-login-info.easycom.json +1 -4
  103. package/components/ste-marquee/ATTRIBUTES.md +44 -0
  104. package/components/ste-marquee/README.md +123 -0
  105. package/components/ste-marquee/config.json +5 -0
  106. package/components/ste-marquee/props.ts +106 -0
  107. package/components/ste-marquee/ste-marquee.easycom.json +132 -0
  108. package/components/ste-marquee/ste-marquee.vue +249 -0
  109. package/components/ste-media-preview/ATTRIBUTES.md +14 -4
  110. package/components/ste-media-preview/README.md +23 -32
  111. package/components/ste-media-preview/ste-media-preview.easycom.json +16 -4
  112. package/components/ste-message-box/ATTRIBUTES.md +3 -1
  113. package/components/ste-message-box/README.md +11 -13
  114. package/components/ste-navbar/ATTRIBUTES.md +13 -3
  115. package/components/ste-navbar/README.md +5 -13
  116. package/components/ste-navbar/ste-navbar.easycom.json +10 -1
  117. package/components/ste-notice-bar/ATTRIBUTES.md +16 -5
  118. package/components/ste-notice-bar/README.md +11 -20
  119. package/components/ste-notice-bar/ste-notice-bar.easycom.json +26 -3
  120. package/components/ste-number-keyboard/ATTRIBUTES.md +17 -7
  121. package/components/ste-number-keyboard/README.md +9 -18
  122. package/components/ste-number-keyboard/ste-number-keyboard.easycom.json +32 -9
  123. package/components/ste-order-card/ATTRIBUTES.md +6 -2
  124. package/components/ste-order-card/README.md +4 -6
  125. package/components/ste-order-card/ste-order-card.easycom.json +1 -4
  126. package/components/ste-pie-chart/ATTRIBUTES.md +3 -1
  127. package/components/ste-pie-chart/README.md +4 -6
  128. package/components/ste-popup/ATTRIBUTES.md +15 -5
  129. package/components/ste-popup/README.md +10 -18
  130. package/components/ste-popup/ste-popup.easycom.json +22 -4
  131. package/components/ste-price/ATTRIBUTES.md +7 -3
  132. package/components/ste-price/README.md +10 -12
  133. package/components/ste-price/ste-price.easycom.json +7 -2
  134. package/components/ste-progress/ATTRIBUTES.md +9 -1
  135. package/components/ste-progress/README.md +9 -17
  136. package/components/ste-progress/ste-progress.easycom.json +4 -0
  137. package/components/ste-qrcode/ATTRIBUTES.md +6 -2
  138. package/components/ste-qrcode/README.md +4 -6
  139. package/components/ste-qrcode/ste-qrcode.easycom.json +1 -2
  140. package/components/ste-radio/ATTRIBUTES.md +6 -2
  141. package/components/ste-radio/README.md +17 -19
  142. package/components/ste-radio/ste-radio.easycom.json +1 -3
  143. package/components/ste-radio/ste-radio.vue +109 -85
  144. package/components/ste-rate/ATTRIBUTES.md +7 -3
  145. package/components/ste-rate/README.md +8 -10
  146. package/components/ste-rate/ste-rate.easycom.json +7 -2
  147. package/components/ste-read-more/ATTRIBUTES.md +20 -4
  148. package/components/ste-read-more/README.md +5 -19
  149. package/components/ste-read-more/ste-read-more.easycom.json +20 -2
  150. package/components/ste-rich-text/ATTRIBUTES.md +3 -1
  151. package/components/ste-rich-text/README.md +2 -4
  152. package/components/ste-ring-chart/ATTRIBUTES.md +3 -1
  153. package/components/ste-ring-chart/README.md +22 -5
  154. package/components/ste-ring-chart/ste-ring-chart.vue +40 -1
  155. package/components/ste-scroll-to/ATTRIBUTES.md +7 -3
  156. package/components/ste-scroll-to/README.md +2 -4
  157. package/components/ste-scroll-to/ste-scroll-to.easycom.json +7 -2
  158. package/components/ste-search/ATTRIBUTES.md +14 -3
  159. package/components/ste-search/README.md +12 -21
  160. package/components/ste-search/ste-search.easycom.json +14 -7
  161. package/components/ste-search-box/ATTRIBUTES.md +6 -2
  162. package/components/ste-search-box/README.md +3 -5
  163. package/components/ste-search-box/ste-search-box.easycom.json +1 -3
  164. package/components/ste-select/ATTRIBUTES.md +9 -5
  165. package/components/ste-select/README.md +11 -11
  166. package/components/ste-select/ste-select.easycom.json +19 -6
  167. package/components/ste-select-seat/ATTRIBUTES.md +8 -4
  168. package/components/ste-select-seat/README.md +7 -21
  169. package/components/ste-select-seat/ste-select-seat.easycom.json +13 -3
  170. package/components/ste-signature/ATTRIBUTES.md +18 -5
  171. package/components/ste-signature/README.md +3 -14
  172. package/components/ste-signature/ste-signature.easycom.json +50 -3
  173. package/components/ste-simple-calendar/ATTRIBUTES.md +16 -4
  174. package/components/ste-simple-calendar/README.md +8 -18
  175. package/components/ste-simple-calendar/ste-simple-calendar.easycom.json +30 -2
  176. package/components/ste-skeleton/ATTRIBUTES.md +9 -1
  177. package/components/ste-skeleton/README.md +5 -13
  178. package/components/ste-skeleton/ste-skeleton.easycom.json +4 -0
  179. package/components/ste-slide-verify/ATTRIBUTES.md +16 -5
  180. package/components/ste-slide-verify/README.md +7 -16
  181. package/components/ste-slide-verify/ste-slide-verify.easycom.json +26 -3
  182. package/components/ste-slider/ATTRIBUTES.md +14 -2
  183. package/components/ste-slider/README.md +12 -21
  184. package/components/ste-slider/ste-slider.easycom.json +12 -4
  185. package/components/ste-slider/ste-slider.vue +5 -3
  186. package/components/ste-stepper/ATTRIBUTES.md +9 -5
  187. package/components/ste-stepper/README.md +9 -13
  188. package/components/ste-stepper/ste-stepper.easycom.json +19 -6
  189. package/components/ste-steps/ATTRIBUTES.md +6 -2
  190. package/components/ste-steps/README.md +9 -11
  191. package/components/ste-steps/ste-steps.easycom.json +1 -2
  192. package/components/ste-sticky/ATTRIBUTES.md +8 -4
  193. package/components/ste-sticky/README.md +2 -4
  194. package/components/ste-sticky/ste-sticky.easycom.json +13 -3
  195. package/components/ste-swipe-action/ATTRIBUTES.md +14 -3
  196. package/components/ste-swipe-action/README.md +9 -18
  197. package/components/ste-swipe-action/ste-swipe-action.easycom.json +20 -2
  198. package/components/ste-swipe-action/useData.ts +15 -8
  199. package/components/ste-swipe-action-group/ATTRIBUTES.md +6 -2
  200. package/components/ste-swipe-action-group/ste-swipe-action-group.easycom.json +1 -3
  201. package/components/ste-swiper/ATTRIBUTES.md +6 -2
  202. package/components/ste-swiper/README.md +12 -14
  203. package/components/ste-swiper/ste-swiper.easycom.json +1 -3
  204. package/components/ste-switch/ATTRIBUTES.md +8 -4
  205. package/components/ste-switch/README.md +7 -9
  206. package/components/ste-switch/ste-switch.easycom.json +13 -3
  207. package/components/ste-tab/ATTRIBUTES.md +3 -1
  208. package/components/ste-table/ATTRIBUTES.md +12 -8
  209. package/components/ste-table/README.md +23 -23
  210. package/components/ste-table/ste-table.easycom.json +38 -9
  211. package/components/ste-tabs/ATTRIBUTES.md +9 -4
  212. package/components/ste-tabs/README.md +4 -6
  213. package/components/ste-tabs/props.ts +3 -0
  214. package/components/ste-tabs/ste-tabs.easycom.json +18 -2
  215. package/components/ste-tabs/useData.ts +1 -1
  216. package/components/ste-text/ATTRIBUTES.md +9 -1
  217. package/components/ste-text/README.md +4 -12
  218. package/components/ste-text/ste-text.easycom.json +4 -0
  219. package/components/ste-toast/ATTRIBUTES.md +10 -1
  220. package/components/ste-toast/README.md +9 -18
  221. package/components/ste-toast/ste-toast.easycom.json +14 -0
  222. package/components/ste-touch-swipe/ATTRIBUTES.md +6 -2
  223. package/components/ste-touch-swipe/README.md +4 -6
  224. package/components/ste-touch-swipe/ste-touch-swipe.easycom.json +1 -2
  225. package/components/ste-tour/ATTRIBUTES.md +7 -3
  226. package/components/ste-tour/README.md +5 -7
  227. package/components/ste-tour/ste-tour.easycom.json +11 -4
  228. package/components/ste-tree/ATTRIBUTES.md +15 -2
  229. package/components/ste-tree/README.md +6 -17
  230. package/components/ste-tree/ste-tree.easycom.json +16 -4
  231. package/components/ste-upload/ATTRIBUTES.md +17 -5
  232. package/components/ste-upload/README.md +9 -20
  233. package/components/ste-upload/ste-upload.easycom.json +36 -9
  234. package/components/ste-user-info/ATTRIBUTES.md +15 -5
  235. package/components/ste-user-info/README.md +5 -13
  236. package/components/ste-user-info/ste-user-info.easycom.json +22 -4
  237. package/components/ste-video/ATTRIBUTES.md +3 -1
  238. package/components/ste-video/README.md +4 -8
  239. package/components/ste-watermark/ATTRIBUTES.md +3 -1
  240. package/components/ste-watermark/README.md +5 -7
  241. package/config/font-size.ts +3 -0
  242. package/config/index.ts +5 -0
  243. package/index.ts +4 -0
  244. package/package.json +1 -1
  245. package/types/components.d.ts +4 -0
  246. package/types/refComponents.d.ts +4 -0
  247. package/utils/System.ts +50 -15
  248. package/utils/mixin.ts +4 -3
@@ -10,9 +10,9 @@
10
10
 
11
11
  ---$
12
12
 
13
- ### 代码演示
13
+ ## 代码演示
14
14
 
15
- #### 基础用法
15
+ ## 基础用法
16
16
 
17
17
  - 外层使用`ste-swiper`父标签包裹
18
18
  - 默认是水平滚动,宽度必须固定,可以通过`width`属性设置(默认为`100%`,也可以设置父标签宽度)
@@ -44,7 +44,7 @@
44
44
  </template>
45
45
  ```
46
46
 
47
- #### 纵向轮播
47
+ ## 纵向轮播
48
48
 
49
49
  - `ste-swiper`父标签
50
50
  - `direction` 属性是设置滚动方向,默认是水平滚动,可选值`horizontal`、`vertical`
@@ -68,7 +68,7 @@
68
68
  </script>
69
69
  ```
70
70
 
71
- #### 首尾衔接轮播
71
+ ## 首尾衔接轮播
72
72
 
73
73
  - `ste-swiper`父标签
74
74
  - `circular` 属性是设置是否首尾相接,默认是`false`,可选值`true`
@@ -91,7 +91,7 @@
91
91
  </script>
92
92
  ```
93
93
 
94
- #### 自动轮播
94
+ ## 自动轮播
95
95
 
96
96
  - `ste-swiper`父标签
97
97
  - `autoplay` 属性是设置是否自动轮播,默认是`false`,可选值`true`
@@ -115,7 +115,7 @@
115
115
  </script>
116
116
  ```
117
117
 
118
- #### 显示指示器
118
+ ## 显示指示器
119
119
 
120
120
  - `ste-swiper`父标签
121
121
  - `indicatorDots` 属性是设置是否显示指示器,默认是`false`,可选值`true`
@@ -138,7 +138,7 @@
138
138
  </script>
139
139
  ```
140
140
 
141
- #### 指示器颜色
141
+ ## 指示器颜色
142
142
 
143
143
  - `ste-swiper`父标签
144
144
  - `indicatorColor` 属性是设置指示器的颜色,默认是`#00000`
@@ -162,7 +162,7 @@
162
162
  </script>
163
163
  ```
164
164
 
165
- #### 显示前后页部分
165
+ ## 显示前后页部分
166
166
 
167
167
  - `ste-swiper`父标签
168
168
  - `previousMargin` 属性是设置前边距,默认是`0`,单位是`rpx`
@@ -186,7 +186,7 @@
186
186
  </script>
187
187
  ```
188
188
 
189
- #### 突出显示
189
+ ## 突出显示
190
190
 
191
191
  需要搭配 `perviousMargin` 和 `nextMargin`属性给内容前后留出空间
192
192
  `highlightActive` 为 `true` 可突出显示当前内容(横向滑动时有效)
@@ -211,23 +211,21 @@
211
211
 
212
212
  ---$
213
213
 
214
- ### API
215
-
216
214
  <!-- props -->
217
215
 
218
- #### Swiper Slot
216
+ ## Swiper Slot
219
217
 
220
218
  | 插槽名 | 说明 | 插槽参数 | 支持版本 |
221
219
  | --------- | ----------------------------------------- | -------- | -------- |
222
220
  | `default` | 默认插槽,请传入`ste-swiper-item`标签列表 | - | - |
223
221
 
224
- #### Swiper Method
222
+ ## Swiper Method
225
223
 
226
224
  | 方法名 | 说明 | 支持版本 |
227
225
  | ------ | -------------------------------- | -------- |
228
226
  | `init` | 初始化轮播信息,在渲染完成后调用 | - |
229
227
 
230
- #### SwiperItem Slot
228
+ ## SwiperItem Slot
231
229
 
232
230
  | 插槽名 | 说明 | 插槽参数 | 支持版本 |
233
231
  | --------- | -------------------------------------------- | -------- | -------- |
@@ -114,7 +114,6 @@
114
114
  {
115
115
  "name": "[event]change",
116
116
  "description": "监听item切换",
117
- "type": "(index:number,source:'autoplay'| 'touch')=>void",
118
117
  "params": [
119
118
  {
120
119
  "name": "index",
@@ -129,7 +128,6 @@
129
128
  {
130
129
  "name": "[event]error",
131
130
  "description": "错误监听",
132
- "type": "(error: Error, context: string)=>void",
133
131
  "params": [
134
132
  {
135
133
  "name": "error",
@@ -142,4 +140,4 @@
142
140
  ]
143
141
  }
144
142
  ]
145
- }
143
+ }
@@ -1,4 +1,6 @@
1
- #### Props
1
+ ## API
2
+
3
+ ### Props
2
4
  | 属性名 | 说明 | 类型 | 默认值 | 可选值 | 支持版本 |
3
5
  | ----- | ----- | --- | ------- | ------ | -------- |
4
6
  | `modelValue` | 开关状态(支持v-model双向绑定) | `Boolean` | `false` | - | - |
@@ -10,8 +12,10 @@
10
12
  | `loading` | 加载中 | `Boolean` | `false` | - | - |
11
13
 
12
14
 
13
- #### Events
15
+ ### Events
14
16
  | 事件名 | 说明 | 事件参数 | 支持版本 |
15
17
  | ----- | ----- | ------- | -------- |
16
- | `click` | 点击开关时触发的事件(可拦截change事件)`value`:改变后的绑定值,`allowStop`:允许阻止后续的事件触发,:`resolve`:后续的事件执行 | - | - |
17
- | `change` | 当绑定值变化时触发的事件 | - | - |
18
+ | `click` | 点击开关时触发的事件(可拦截change事件)`value`:改变后的绑定值,`allowStop`:允许阻止后续的事件触发,:`resolve`:后续的事件执行 | `data`:() => void | - |
19
+ | `change` | 当绑定值变化时触发的事件 | `data`:() => void | - |
20
+
21
+
@@ -4,9 +4,9 @@
4
4
 
5
5
  ---$
6
6
 
7
- ### 代码演示
7
+ ## 代码演示
8
8
 
9
- #### 基础用法
9
+ ## 基础用法
10
10
 
11
11
  通过`value`属性,双向绑定,绑定开关的选中状态,`true` 表示开,`false` 表示关。
12
12
 
@@ -20,7 +20,7 @@
20
20
  </template>
21
21
  ```
22
22
 
23
- #### 只读
23
+ ## 只读
24
24
 
25
25
  通过`readonly `属性,设置只读,不可切换,样式不置灰 默认`false`。
26
26
 
@@ -34,7 +34,7 @@
34
34
  </template>
35
35
  ```
36
36
 
37
- #### 禁用
37
+ ## 禁用
38
38
 
39
39
  通过`disabled`属性,设置禁用,不可切换,样式置灰,默认`false`。
40
40
 
@@ -48,7 +48,7 @@
48
48
  </template>
49
49
  ```
50
50
 
51
- #### 自定义大小
51
+ ## 自定义大小
52
52
 
53
53
  通过 `size` 属性自定义开关的大小,默认`52`。
54
54
 
@@ -62,7 +62,7 @@
62
62
  </template>
63
63
  ```
64
64
 
65
- #### 自定义颜色
65
+ ## 自定义颜色
66
66
 
67
67
  通过 `activeColor` 属性自定义开关的激活颜色,默认`#0090FF`。
68
68
  通过 `inactiveColor` 属性自定义开关的激活颜色,默认`#bbbbbb`。
@@ -77,7 +77,7 @@
77
77
  </template>
78
78
  ```
79
79
 
80
- #### 加载状态
80
+ ## 加载状态
81
81
 
82
82
  通过 `loading` 属性设置开关为加载状态,加载状态下开关不可点击,默认`false`。
83
83
 
@@ -95,8 +95,6 @@
95
95
 
96
96
  ---$
97
97
 
98
- ### API
99
-
100
98
  <!-- props -->
101
99
 
102
100
  ---$
@@ -49,12 +49,22 @@
49
49
  {
50
50
  "name": "[event]click",
51
51
  "description": "点击开关时触发的事件(可拦截change事件)`value`:改变后的绑定值,`allowStop`:允许阻止后续的事件触发,:`resolve`:后续的事件执行",
52
- "type": "() => void"
52
+ "params": [
53
+ {
54
+ "name": "data",
55
+ "description": "() => void"
56
+ }
57
+ ]
53
58
  },
54
59
  {
55
60
  "name": "[event]change",
56
61
  "description": "当绑定值变化时触发的事件",
57
- "type": "() => void"
62
+ "params": [
63
+ {
64
+ "name": "data",
65
+ "description": "() => void"
66
+ }
67
+ ]
58
68
  }
59
69
  ]
60
- }
70
+ }
@@ -1,4 +1,6 @@
1
- #### Props
1
+ ## API
2
+
3
+ ### Props
2
4
  | 属性名 | 说明 | 类型 | 默认值 | 可选值 | 支持版本 |
3
5
  | ----- | ----- | --- | ------- | ------ | -------- |
4
6
  | `title` | 当前标签标题 | `string` | - | - | - |
@@ -1,4 +1,6 @@
1
- #### Props
1
+ ## API
2
+
3
+ ### Props
2
4
  | 属性名 | 说明 | 类型 | 默认值 | 可选值 | 支持版本 |
3
5
  | ----- | ----- | --- | ------- | ------ | -------- |
4
6
  | `data` | 表格数据 | `array` | `[]` | - | - |
@@ -32,12 +34,14 @@
32
34
  | `popoverLine` | 单元格开启isPopover时,超过多少行才显示省略提示 | `number / string` | - | - | - |
33
35
 
34
36
 
35
- #### Events
37
+ ### Events
36
38
  | 事件名 | 说明 | 事件参数 | 支持版本 |
37
39
  | ----- | ----- | ------- | -------- |
38
- | `select` | 当用户手动勾选数据行的 Checkbox 时触发的事件 | - | - |
39
- | `selectAll` | 当用户手动勾选全选 Checkbox 时触发的事件 | - | - |
40
- | `cellClick` | 当某个单元格被点击时会触发该事件 | - | - |
41
- | `rowClick` | 当某一行被点击时会触发该事件 | - | - |
42
- | `headerClick` | 当某一列的表头被点击时会触发该事件 | - | - |
43
- | `scrollToLower` | 表格体滚动到底事件 | - | `v1.18.9` |
40
+ | `select` | 当用户手动勾选数据行的 Checkbox 时触发的事件 | `data`:() => void | - |
41
+ | `selectAll` | 当用户手动勾选全选 Checkbox 时触发的事件 | `data`:() => void | - |
42
+ | `cellClick` | 当某个单元格被点击时会触发该事件 | `data`:() => void | - |
43
+ | `rowClick` | 当某一行被点击时会触发该事件 | `data`:() => void | - |
44
+ | `headerClick` | 当某一列的表头被点击时会触发该事件 | `data`:() => void | - |
45
+ | `scrollToLower` | 表格体滚动到底事件 | `data`:() => void | `v1.18.9` |
46
+
47
+
@@ -4,9 +4,9 @@
4
4
 
5
5
  ---$
6
6
 
7
- ### 代码演示
7
+ ## 代码演示
8
8
 
9
- #### 基础使用
9
+ ## 基础使用
10
10
 
11
11
  ```html
12
12
  <script lang="ts" setup>
@@ -30,7 +30,7 @@
30
30
  </template>
31
31
  ```
32
32
 
33
- #### 带边框
33
+ ## 带边框
34
34
 
35
35
  ```html
36
36
  <script lang="ts" setup>
@@ -54,7 +54,7 @@
54
54
  </template>
55
55
  ```
56
56
 
57
- #### 空数据显示
57
+ ## 空数据显示
58
58
 
59
59
  - 通过`table`中的`emptyText`属性来指定单元格中数据为空时显示的值,否则显示`-`
60
60
  - 也可以通过插槽来自定义空数据时显示
@@ -85,7 +85,7 @@
85
85
  </template>
86
86
  ```
87
87
 
88
- #### 列类型
88
+ ## 列类型
89
89
 
90
90
  通过指定某列上的`type`属性
91
91
 
@@ -128,7 +128,7 @@
128
128
  </template>
129
129
  ```
130
130
 
131
- #### 禁用或只读选择项
131
+ ## 禁用或只读选择项
132
132
 
133
133
  传入一个自定义方法来指定某行是否能选择,方法会传入当前行数据(`row`)和下标(`index`)
134
134
  只读同理
@@ -162,7 +162,7 @@
162
162
  </template>
163
163
  ```
164
164
 
165
- #### 显示合计
165
+ ## 显示合计
166
166
 
167
167
  - 通过`showSummary`控制是否显示合计,`sumText`控制合计行第一列的文本
168
168
  - `summaryMethod`来指定合计的方法,需要返回一个数组来确定每一列合计显示的内容
@@ -199,7 +199,7 @@
199
199
  </template>
200
200
  ```
201
201
 
202
- #### 对齐方式
202
+ ## 对齐方式
203
203
 
204
204
  - 通过`align`指定某列的单元格的对齐方式
205
205
  - `headerAlign`指定表头的单元格对齐方式, 没设置时跟随`align`值
@@ -216,7 +216,7 @@
216
216
  </template>
217
217
  ```
218
218
 
219
- #### 表格方法
219
+ ## 表格方法
220
220
 
221
221
  ```html
222
222
  <script lang="ts" setup>
@@ -259,7 +259,7 @@
259
259
  </template>
260
260
  ```
261
261
 
262
- #### 表格滚动
262
+ ## 表格滚动
263
263
 
264
264
  此时需要给表格设置高度`height`,并保证表体高度是大于此高度,此时表格可以滚动,且滚动到底部时触发`scrollToLower`事件
265
265
 
@@ -295,7 +295,7 @@
295
295
  </template>
296
296
  ```
297
297
 
298
- #### 自定义列
298
+ ## 自定义列
299
299
 
300
300
  当需要格式化某列时,可以不设置列的`prop`,但需要设置`customKey`值,然后给表格传入一个`formatter`方法,
301
301
  方法中第一个参数是每一行的数据,第二个参数是列的`customKey`,示例如下
@@ -341,7 +341,7 @@
341
341
  </template>
342
342
  ```
343
343
 
344
- #### 动态设置表头
344
+ ## 动态设置表头
345
345
 
346
346
  当需要动态设置表头,可以不设置列的`label`,但需要设置`customKey`值,然后给表格传入一个`header`方法,
347
347
  方法中第一个参数是列的数据,第二个参数是表格的数据`data`,示例如下
@@ -374,7 +374,7 @@
374
374
  </template>
375
375
  ```
376
376
 
377
- #### 自定义边框样式
377
+ ## 自定义边框样式
378
378
 
379
379
  表格边框样式不满足时,可通过css更改样式
380
380
 
@@ -487,7 +487,7 @@
487
487
  </style>
488
488
  ```
489
489
 
490
- #### 自定义行或单元格样式
490
+ ## 自定义行或单元格样式
491
491
 
492
492
  ```html
493
493
  <script lang="ts" setup>
@@ -558,7 +558,7 @@
558
558
  </template>
559
559
  ```
560
560
 
561
- #### 高亮行
561
+ ## 高亮行
562
562
 
563
563
  `highlight-current-row`为`true`点击某一行时会高亮显示
564
564
  `hightlight-selection-row`为`true`时,列类型为`checkbox`时,勾选后会高亮
@@ -576,7 +576,7 @@
576
576
  </template>
577
577
  ```
578
578
 
579
- #### 配置选择项图标色
579
+ ## 配置选择项图标色
580
580
 
581
581
  需要指定属性`selectionIconColor`,数据结构如下
582
582
 
@@ -589,7 +589,7 @@
589
589
  }
590
590
  ```
591
591
 
592
- #### 单元格超出长按显示气泡
592
+ ## 单元格超出长按显示气泡
593
593
 
594
594
  ```html
595
595
  <script lang="ts" setup>
@@ -618,7 +618,7 @@
618
618
  </template>
619
619
  ```
620
620
 
621
- #### 合并单元格
621
+ ## 合并单元格
622
622
 
623
623
  当某列的数据为数组类型时,该列会自动触发合并单元格模式,将数组中的每个元素作为一行展示。这在需要展示一对多关系的数据时非常有用。
624
624
 
@@ -672,9 +672,9 @@
672
672
 
673
673
  ---$
674
674
 
675
- ### API
675
+ ## API
676
676
 
677
- #### Table Props
677
+ ## Table Props
678
678
 
679
679
  | 属性名 | 说明 | 类型 | 默认值 | 可选值 | 支持版本 |
680
680
  | ----------------------- | ----------------------------------------------------------------------------------------------------- | ------------------------------------------ | ---------- | ------ | -------- |
@@ -703,7 +703,7 @@
703
703
  | `showHeader` | 是否显示表头 | `Boolean` | `true` | - | - |
704
704
  | `maxHeight` | 表格最大高度 | `Number/String` | - | - | - |
705
705
 
706
- #### Table Events
706
+ ## Table Events
707
707
 
708
708
  | 事件名 | 说明 | 事件参数 | 支持版本 |
709
709
  | --------------- | -------------------------------------------- | --------------------------------------------------------------------- | -------- |
@@ -716,7 +716,7 @@
716
716
 
717
717
  <!-- props -->
718
718
 
719
- #### Table Method
719
+ ## Table Method
720
720
 
721
721
  | 方法名 | 说明 | 方法参数 | 支持版本 |
722
722
  | -------------------- | ---------------------------------- | -------------------------------------------------------------------------------- | -------- |
@@ -725,7 +725,7 @@
725
725
  | `toggleAllSelection` | 用于多选表格,切换所有行的选中状态 | - | - |
726
726
  | `getSelection` | 获取当前表格的选中状态的数据 | - | - |
727
727
 
728
- #### TableColumn Props
728
+ ## TableColumn Props
729
729
 
730
730
  | 属性名 | 说明 | 类型 | 默认值 | 可选值 | 支持版本 |
731
731
  | ------------- | ------------------------------------------------ | -------- | ------ | ----------------------------------------------------------------------------------------- | -------- |
@@ -79,7 +79,6 @@
79
79
  "description": "格式化表头内容的方法,同formatter属性,需要定义customKey属性",
80
80
  "type": "function"
81
81
  },
82
-
83
82
  {
84
83
  "name": "headerRowClassName",
85
84
  "description": "表头行的 className 的回调方法,也可以使用字符串为所有表头行设置一个固定的 className",
@@ -166,33 +165,63 @@
166
165
  {
167
166
  "name": "[event]select",
168
167
  "description": "当用户手动勾选数据行的 Checkbox 时触发的事件",
169
- "type": "() => void"
168
+ "params": [
169
+ {
170
+ "name": "data",
171
+ "description": "() => void"
172
+ }
173
+ ]
170
174
  },
171
175
  {
172
176
  "name": "[event]selectAll",
173
177
  "description": "当用户手动勾选全选 Checkbox 时触发的事件",
174
- "type": "() => void"
178
+ "params": [
179
+ {
180
+ "name": "data",
181
+ "description": "() => void"
182
+ }
183
+ ]
175
184
  },
176
185
  {
177
186
  "name": "[event]cellClick",
178
187
  "description": "当某个单元格被点击时会触发该事件",
179
- "type": "() => void"
188
+ "params": [
189
+ {
190
+ "name": "data",
191
+ "description": "() => void"
192
+ }
193
+ ]
180
194
  },
181
195
  {
182
196
  "name": "[event]rowClick",
183
197
  "description": "当某一行被点击时会触发该事件",
184
- "type": "() => void"
198
+ "params": [
199
+ {
200
+ "name": "data",
201
+ "description": "() => void"
202
+ }
203
+ ]
185
204
  },
186
205
  {
187
206
  "name": "[event]headerClick",
188
207
  "description": "当某一列的表头被点击时会触发该事件",
189
- "type": "() => void"
208
+ "params": [
209
+ {
210
+ "name": "data",
211
+ "description": "() => void"
212
+ }
213
+ ]
190
214
  },
191
215
  {
192
216
  "name": "[event]scrollToLower",
193
217
  "description": "表格体滚动到底事件",
194
- "type": "() => void",
195
- "version": "v1.18.9"
218
+ "version": "v1.18.9",
219
+ "params": [
220
+ {
221
+ "name": "data",
222
+ "description": "() => void"
223
+ }
224
+ ]
196
225
  }
197
226
  ]
198
- }
227
+ }
@@ -1,4 +1,6 @@
1
- #### Props
1
+ ## API
2
+
3
+ ### Props
2
4
  | 属性名 | 说明 | 类型 | 默认值 | 可选值 | 支持版本 |
3
5
  | ----- | ----- | --- | ------- | ------ | -------- |
4
6
  | `active` | 当前激活的选项支持v-model:active双向绑定(类型为number时绑定index,类型为string时绑定name) | `number / string` | `0` | - | - |
@@ -17,6 +19,7 @@
17
19
  | `ellipsis` | 是否省略过长的标题文字 | `boolean` | `false` | - | - |
18
20
  | `tabWidth` | tab内容的宽度 | `number / string` | `auto` | - | - |
19
21
  | `tabPadding` | 选项内边距,默认24,单位rpx | `number / string` | `24` | - | - |
22
+ | `tabLineGap` | tab到下划线的距离,默认单位rpx | `number / string` | `4` | - | - |
20
23
  | `tabSpace` | tab间距rpx | `number / string` | `0` | - | - |
21
24
  | `divideNum` | tab等分数量,设置为 0 ,则不等分 | `number / string` | `4` | - | - |
22
25
  | `sticky` | 是否使用粘性布局 | `boolean` | `false` | - | - |
@@ -45,8 +48,10 @@
45
48
  | `maskZindex` | 下拉蒙层层级 | `number / string` | `1001` | - | - |
46
49
 
47
50
 
48
- #### Events
51
+ ### Events
49
52
  | 事件名 | 说明 | 事件参数 | 支持版本 |
50
53
  | ----- | ----- | ------- | -------- |
51
- | `click-tab` | 点击tab触发 | - | - |
52
- | `change` | 切换tab触发 | - | - |
54
+ | `click-tab` | 点击tab触发 | `data`:(tab:TabProps)=>void | - |
55
+ | `change` | 切换tab触发 | `data`:(tab:TabProps)=>void | - |
56
+
57
+
@@ -4,7 +4,7 @@
4
4
 
5
5
  ---$
6
6
 
7
- ### 代码演示
7
+ ## 代码演示
8
8
 
9
9
  ```html
10
10
  <script setup lang="ts">
@@ -133,17 +133,15 @@
133
133
 
134
134
  ---$
135
135
 
136
- ### API
137
-
138
136
  <!-- props -->
139
137
 
140
- #### Tabs Slot
138
+ ## Tabs Slot
141
139
 
142
140
  | 插槽名 | 说明 | 插槽参数 | 支持版本 |
143
141
  | --------- | --------------------------------- | -------- | -------- |
144
142
  | `default` | 默认插槽,请传入`ste-tab`标签列表 | - | - |
145
143
 
146
- #### Tab Props
144
+ ## Tab Props
147
145
 
148
146
  | 属性名 | 说明 | 类型 | 默认值 | 可选值 | 支持版本 |
149
147
  | --------------- | -------------------------------------------------------------------- | ----------------- | ------- | ------ | -------- |
@@ -157,7 +155,7 @@
157
155
  | `badge` | 右上角徽标的内容 | `String`/`Number` | `0` | - | - |
158
156
  | `showZeroBadge` | 当 badge 为数字 0 时,是否展示徽标 | `Boolean` | `false` | - | - |
159
157
 
160
- #### Tab Slot
158
+ ## Tab Slot
161
159
 
162
160
  | 插槽名 | 说明 | 插槽参数 | 支持版本 |
163
161
  | --------------- | -------------------------------------------- | -------- | ---------- |
@@ -17,6 +17,7 @@ export interface SteTabsProps {
17
17
  ellipsis: boolean
18
18
  tabWidth: number | string
19
19
  tabPadding: number | string
20
+ tabLineGap: number | string
20
21
  tabSpace: number | string
21
22
  divideNum: number
22
23
  sticky: boolean
@@ -78,6 +79,8 @@ export default {
78
79
  tabWidth: { type: [String, Number], default: () => 'auto' },
79
80
  // 选项内边距,默认24,单位rpx
80
81
  tabPadding: { type: [Number, String], default: () => 24 },
82
+ // tab到下划线的距离,默认单位rpx
83
+ tabLineGap: { type: [Number, String], default: () => 4 },
81
84
  // tab间距rpx
82
85
  tabSpace: { type: [Number, String], default: () => 0 },
83
86
  // tab等分数量,设置为 0 ,则不等分
@@ -108,6 +108,12 @@
108
108
  "type": "number | string",
109
109
  "default": 24
110
110
  },
111
+ {
112
+ "name": "tabLineGap",
113
+ "description": "tab到下划线的距离,默认单位rpx",
114
+ "type": "number | string",
115
+ "default": 4
116
+ },
111
117
  {
112
118
  "name": "tabSpace",
113
119
  "description": "tab间距rpx",
@@ -267,12 +273,22 @@
267
273
  {
268
274
  "name": "[event]click-tab",
269
275
  "description": "点击tab触发",
270
- "type": "(tab:TabProps)=>void"
276
+ "params": [
277
+ {
278
+ "name": "data",
279
+ "description": "(tab:TabProps)=>void"
280
+ }
281
+ ]
271
282
  },
272
283
  {
273
284
  "name": "[event]change",
274
285
  "description": "切换tab触发",
275
- "type": "(tab:TabProps)=>void"
286
+ "params": [
287
+ {
288
+ "name": "data",
289
+ "description": "(tab:TabProps)=>void"
290
+ }
291
+ ]
276
292
  }
277
293
  ]
278
294
  }
@@ -136,7 +136,7 @@ export default function useData({
136
136
  '--tabs-line-height': utils.formatPx(props.lineHeight),
137
137
  '--tabs-tab-width': tabWidth,
138
138
  '--tabs-tab-padding': utils.formatPx(props.tabPadding),
139
- '--tabs-tab-padding-bottom': cmpShowLine.value ? utils.formatPx(4) : utils.formatPx(props.tabPadding),
139
+ '--tabs-tab-padding-bottom': cmpShowLine.value ? utils.formatPx(props.tabLineGap) : utils.formatPx(props.tabPadding),
140
140
  '--tabs-transition-duration': props.duration ? `${props.duration}s` : 'inherit',
141
141
  '--tabs-tab-space': tabSpace,
142
142
  '--tabs-tab-space-line': tabSpaceLine,