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.
- package/components/ste-animate/ATTRIBUTES.md +13 -5
- package/components/ste-animate/README.md +4 -28
- package/components/ste-animate/ste-animate.easycom.json +31 -9
- package/components/ste-app-update/ATTRIBUTES.md +11 -5
- package/components/ste-app-update/README.md +1 -3
- package/components/ste-app-update/method.ts +44 -1
- package/components/ste-app-update/props.ts +17 -2
- package/components/ste-app-update/ste-app-update.easycom.json +18 -8
- package/components/ste-app-update/ste-app-update.vue +93 -18
- package/components/ste-area-chart/ATTRIBUTES.md +3 -1
- package/components/ste-area-chart/README.md +4 -4
- package/components/ste-badge/ATTRIBUTES.md +10 -1
- package/components/ste-badge/README.md +9 -18
- package/components/ste-badge/ste-badge.easycom.json +8 -0
- package/components/ste-bar-chart/ATTRIBUTES.md +3 -1
- package/components/ste-bar-chart/README.md +3 -5
- package/components/ste-barcode/ATTRIBUTES.md +6 -2
- package/components/ste-barcode/README.md +3 -5
- package/components/ste-barcode/ste-barcode.easycom.json +1 -2
- package/components/ste-button/ATTRIBUTES.md +24 -14
- package/components/ste-button/README.md +11 -19
- package/components/ste-button/ste-button.easycom.json +76 -12
- package/components/ste-calendar/ATTRIBUTES.md +12 -2
- package/components/ste-calendar/README.md +16 -24
- package/components/ste-calendar/ste-calendar.easycom.json +4 -3
- package/components/ste-category/ATTRIBUTES.md +6 -2
- package/components/ste-category/README.md +2 -4
- package/components/ste-category/ste-category.easycom.json +1 -2
- package/components/ste-checkbox/ATTRIBUTES.md +6 -2
- package/components/ste-checkbox/README.md +18 -20
- package/components/ste-checkbox/ste-checkbox.easycom.json +1 -3
- package/components/ste-checkbox/ste-checkbox.vue +71 -80
- package/components/ste-code-input/ATTRIBUTES.md +8 -4
- package/components/ste-code-input/README.md +7 -9
- package/components/ste-code-input/ste-code-input.easycom.json +13 -4
- package/components/ste-column-chart/ATTRIBUTES.md +3 -1
- package/components/ste-column-chart/README.md +5 -7
- package/components/ste-comment/ATTRIBUTES.md +3 -1
- package/components/ste-comment/README.md +2 -4
- package/components/ste-coupon-list/ATTRIBUTES.md +15 -5
- package/components/ste-coupon-list/README.md +6 -14
- package/components/ste-coupon-list/ste-coupon-list.easycom.json +22 -3
- package/components/ste-custom-keyboard/ATTRIBUTES.md +16 -7
- package/components/ste-custom-keyboard/README.md +10 -18
- package/components/ste-custom-keyboard/ste-custom-keyboard.easycom.json +28 -10
- package/components/ste-date-picker/ATTRIBUTES.md +9 -5
- package/components/ste-date-picker/README.md +9 -11
- package/components/ste-date-picker/ste-date-picker.easycom.json +19 -4
- package/components/ste-date-user/ATTRIBUTES.md +9 -1
- package/components/ste-date-user/README.md +3 -11
- package/components/ste-date-user/ste-date-user.easycom.json +4 -0
- package/components/ste-drag/ATTRIBUTES.md +13 -3
- package/components/ste-drag/README.md +5 -13
- package/components/ste-drag/ste-drag.easycom.json +10 -2
- package/components/ste-drag-sort/ATTRIBUTES.md +25 -0
- package/components/ste-drag-sort/README.md +116 -0
- package/components/ste-drag-sort/config.json +5 -0
- package/components/ste-drag-sort/props.ts +16 -0
- package/components/ste-drag-sort/ste-drag-sort.easycom.json +88 -0
- package/components/ste-drag-sort/ste-drag-sort.vue +589 -0
- package/components/ste-dropdown-menu/ATTRIBUTES.md +8 -4
- package/components/ste-dropdown-menu/README.md +14 -16
- package/components/ste-dropdown-menu/ste-dropdown-menu.easycom.json +13 -4
- package/components/ste-filter-tool/ATTRIBUTES.md +6 -2
- package/components/ste-filter-tool/README.md +4 -6
- package/components/ste-filter-tool/ste-filter-tool.easycom.json +1 -5
- package/components/ste-function-list/ATTRIBUTES.md +13 -2
- package/components/ste-function-list/README.md +3 -12
- package/components/ste-function-list/ste-function-list.easycom.json +8 -3
- package/components/ste-funnel-chart/ATTRIBUTES.md +3 -1
- package/components/ste-funnel-chart/README.md +4 -6
- package/components/ste-goods-info/ATTRIBUTES.md +15 -4
- package/components/ste-goods-info/README.md +8 -17
- package/components/ste-goods-info/ste-goods-info.easycom.json +40 -13
- package/components/ste-goods-list/ATTRIBUTES.md +9 -1
- package/components/ste-goods-list/README.md +4 -12
- package/components/ste-goods-list/ste-goods-list.easycom.json +4 -0
- package/components/ste-guide-qa/ATTRIBUTES.md +15 -4
- package/components/ste-guide-qa/README.md +6 -15
- package/components/ste-guide-qa/ste-guide-qa.easycom.json +20 -2
- package/components/ste-icon/ATTRIBUTES.md +7 -3
- package/components/ste-icon/README.md +5 -7
- package/components/ste-icon/ste-icon.easycom.json +7 -2
- package/components/ste-image/ATTRIBUTES.md +13 -2
- package/components/ste-image/README.md +6 -15
- package/components/ste-image/ste-image.easycom.json +8 -3
- package/components/ste-index-list/ATTRIBUTES.md +8 -4
- package/components/ste-index-list/README.md +6 -8
- package/components/ste-index-list/ste-index-list.easycom.json +13 -3
- package/components/ste-input/ATTRIBUTES.md +14 -3
- package/components/ste-input/README.md +16 -25
- package/components/ste-input/ste-input.easycom.json +14 -5
- package/components/ste-line-chart/ATTRIBUTES.md +3 -1
- package/components/ste-line-chart/README.md +5 -7
- package/components/ste-loading/ATTRIBUTES.md +3 -1
- package/components/ste-loading/README.md +6 -8
- package/components/ste-login/ATTRIBUTES.md +12 -2
- package/components/ste-login/README.md +7 -15
- package/components/ste-login/ste-login.easycom.json +4 -7
- package/components/ste-login-info/ATTRIBUTES.md +6 -2
- package/components/ste-login-info/README.md +2 -4
- package/components/ste-login-info/ste-login-info.easycom.json +1 -4
- package/components/ste-marquee/ATTRIBUTES.md +44 -0
- package/components/ste-marquee/README.md +123 -0
- package/components/ste-marquee/config.json +5 -0
- package/components/ste-marquee/props.ts +106 -0
- package/components/ste-marquee/ste-marquee.easycom.json +132 -0
- package/components/ste-marquee/ste-marquee.vue +249 -0
- package/components/ste-media-preview/ATTRIBUTES.md +14 -4
- package/components/ste-media-preview/README.md +23 -32
- package/components/ste-media-preview/ste-media-preview.easycom.json +16 -4
- package/components/ste-message-box/ATTRIBUTES.md +3 -1
- package/components/ste-message-box/README.md +11 -13
- package/components/ste-navbar/ATTRIBUTES.md +13 -3
- package/components/ste-navbar/README.md +5 -13
- package/components/ste-navbar/ste-navbar.easycom.json +10 -1
- package/components/ste-notice-bar/ATTRIBUTES.md +16 -5
- package/components/ste-notice-bar/README.md +11 -20
- package/components/ste-notice-bar/ste-notice-bar.easycom.json +26 -3
- package/components/ste-number-keyboard/ATTRIBUTES.md +17 -7
- package/components/ste-number-keyboard/README.md +9 -18
- package/components/ste-number-keyboard/ste-number-keyboard.easycom.json +32 -9
- package/components/ste-order-card/ATTRIBUTES.md +6 -2
- package/components/ste-order-card/README.md +4 -6
- package/components/ste-order-card/ste-order-card.easycom.json +1 -4
- package/components/ste-pie-chart/ATTRIBUTES.md +3 -1
- package/components/ste-pie-chart/README.md +4 -6
- package/components/ste-popup/ATTRIBUTES.md +15 -5
- package/components/ste-popup/README.md +10 -18
- package/components/ste-popup/ste-popup.easycom.json +22 -4
- package/components/ste-price/ATTRIBUTES.md +7 -3
- package/components/ste-price/README.md +10 -12
- package/components/ste-price/ste-price.easycom.json +7 -2
- package/components/ste-progress/ATTRIBUTES.md +9 -1
- package/components/ste-progress/README.md +9 -17
- package/components/ste-progress/ste-progress.easycom.json +4 -0
- package/components/ste-qrcode/ATTRIBUTES.md +6 -2
- package/components/ste-qrcode/README.md +4 -6
- package/components/ste-qrcode/ste-qrcode.easycom.json +1 -2
- package/components/ste-radio/ATTRIBUTES.md +6 -2
- package/components/ste-radio/README.md +17 -19
- package/components/ste-radio/ste-radio.easycom.json +1 -3
- package/components/ste-radio/ste-radio.vue +109 -85
- package/components/ste-rate/ATTRIBUTES.md +7 -3
- package/components/ste-rate/README.md +8 -10
- package/components/ste-rate/ste-rate.easycom.json +7 -2
- package/components/ste-read-more/ATTRIBUTES.md +20 -4
- package/components/ste-read-more/README.md +5 -19
- package/components/ste-read-more/ste-read-more.easycom.json +20 -2
- package/components/ste-rich-text/ATTRIBUTES.md +3 -1
- package/components/ste-rich-text/README.md +2 -4
- package/components/ste-ring-chart/ATTRIBUTES.md +3 -1
- package/components/ste-ring-chart/README.md +22 -5
- package/components/ste-ring-chart/ste-ring-chart.vue +40 -1
- package/components/ste-scroll-to/ATTRIBUTES.md +7 -3
- package/components/ste-scroll-to/README.md +2 -4
- package/components/ste-scroll-to/ste-scroll-to.easycom.json +7 -2
- package/components/ste-search/ATTRIBUTES.md +14 -3
- package/components/ste-search/README.md +12 -21
- package/components/ste-search/ste-search.easycom.json +14 -7
- package/components/ste-search-box/ATTRIBUTES.md +6 -2
- package/components/ste-search-box/README.md +3 -5
- package/components/ste-search-box/ste-search-box.easycom.json +1 -3
- package/components/ste-select/ATTRIBUTES.md +9 -5
- package/components/ste-select/README.md +11 -11
- package/components/ste-select/ste-select.easycom.json +19 -6
- package/components/ste-select-seat/ATTRIBUTES.md +8 -4
- package/components/ste-select-seat/README.md +7 -21
- package/components/ste-select-seat/ste-select-seat.easycom.json +13 -3
- package/components/ste-signature/ATTRIBUTES.md +18 -5
- package/components/ste-signature/README.md +3 -14
- package/components/ste-signature/ste-signature.easycom.json +50 -3
- package/components/ste-simple-calendar/ATTRIBUTES.md +16 -4
- package/components/ste-simple-calendar/README.md +8 -18
- package/components/ste-simple-calendar/ste-simple-calendar.easycom.json +30 -2
- package/components/ste-skeleton/ATTRIBUTES.md +9 -1
- package/components/ste-skeleton/README.md +5 -13
- package/components/ste-skeleton/ste-skeleton.easycom.json +4 -0
- package/components/ste-slide-verify/ATTRIBUTES.md +16 -5
- package/components/ste-slide-verify/README.md +7 -16
- package/components/ste-slide-verify/ste-slide-verify.easycom.json +26 -3
- package/components/ste-slider/ATTRIBUTES.md +14 -2
- package/components/ste-slider/README.md +12 -21
- package/components/ste-slider/ste-slider.easycom.json +12 -4
- package/components/ste-slider/ste-slider.vue +5 -3
- package/components/ste-stepper/ATTRIBUTES.md +9 -5
- package/components/ste-stepper/README.md +9 -13
- package/components/ste-stepper/ste-stepper.easycom.json +19 -6
- package/components/ste-steps/ATTRIBUTES.md +6 -2
- package/components/ste-steps/README.md +9 -11
- package/components/ste-steps/ste-steps.easycom.json +1 -2
- package/components/ste-sticky/ATTRIBUTES.md +8 -4
- package/components/ste-sticky/README.md +2 -4
- package/components/ste-sticky/ste-sticky.easycom.json +13 -3
- package/components/ste-swipe-action/ATTRIBUTES.md +14 -3
- package/components/ste-swipe-action/README.md +9 -18
- package/components/ste-swipe-action/ste-swipe-action.easycom.json +20 -2
- package/components/ste-swipe-action/useData.ts +15 -8
- package/components/ste-swipe-action-group/ATTRIBUTES.md +6 -2
- package/components/ste-swipe-action-group/ste-swipe-action-group.easycom.json +1 -3
- package/components/ste-swiper/ATTRIBUTES.md +6 -2
- package/components/ste-swiper/README.md +12 -14
- package/components/ste-swiper/ste-swiper.easycom.json +1 -3
- package/components/ste-switch/ATTRIBUTES.md +8 -4
- package/components/ste-switch/README.md +7 -9
- package/components/ste-switch/ste-switch.easycom.json +13 -3
- package/components/ste-tab/ATTRIBUTES.md +3 -1
- package/components/ste-table/ATTRIBUTES.md +12 -8
- package/components/ste-table/README.md +23 -23
- package/components/ste-table/ste-table.easycom.json +38 -9
- package/components/ste-tabs/ATTRIBUTES.md +9 -4
- package/components/ste-tabs/README.md +4 -6
- package/components/ste-tabs/props.ts +3 -0
- package/components/ste-tabs/ste-tabs.easycom.json +18 -2
- package/components/ste-tabs/useData.ts +1 -1
- package/components/ste-text/ATTRIBUTES.md +9 -1
- package/components/ste-text/README.md +4 -12
- package/components/ste-text/ste-text.easycom.json +4 -0
- package/components/ste-toast/ATTRIBUTES.md +10 -1
- package/components/ste-toast/README.md +9 -18
- package/components/ste-toast/ste-toast.easycom.json +14 -0
- package/components/ste-touch-swipe/ATTRIBUTES.md +6 -2
- package/components/ste-touch-swipe/README.md +4 -6
- package/components/ste-touch-swipe/ste-touch-swipe.easycom.json +1 -2
- package/components/ste-tour/ATTRIBUTES.md +7 -3
- package/components/ste-tour/README.md +5 -7
- package/components/ste-tour/ste-tour.easycom.json +11 -4
- package/components/ste-tree/ATTRIBUTES.md +15 -2
- package/components/ste-tree/README.md +6 -17
- package/components/ste-tree/ste-tree.easycom.json +16 -4
- package/components/ste-upload/ATTRIBUTES.md +17 -5
- package/components/ste-upload/README.md +9 -20
- package/components/ste-upload/ste-upload.easycom.json +36 -9
- package/components/ste-user-info/ATTRIBUTES.md +15 -5
- package/components/ste-user-info/README.md +5 -13
- package/components/ste-user-info/ste-user-info.easycom.json +22 -4
- package/components/ste-video/ATTRIBUTES.md +3 -1
- package/components/ste-video/README.md +4 -8
- package/components/ste-watermark/ATTRIBUTES.md +3 -1
- package/components/ste-watermark/README.md +5 -7
- package/config/font-size.ts +3 -0
- package/config/index.ts +5 -0
- package/index.ts +4 -0
- package/package.json +1 -1
- package/types/components.d.ts +4 -0
- package/types/refComponents.d.ts +4 -0
- package/utils/System.ts +50 -15
- package/utils/mixin.ts +4 -3
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
---$
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
## 基础用法
|
|
8
8
|
|
|
9
9
|
- 属性`data`用于接受要展示的数据列表
|
|
10
10
|
- 数据类型`{ label: string; value: string }[]`
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
</template>
|
|
39
39
|
```
|
|
40
40
|
|
|
41
|
-
|
|
41
|
+
## 自定义标题icon
|
|
42
42
|
|
|
43
43
|
- 属性`title-icon`设置自定义标题icon
|
|
44
44
|
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
</template>
|
|
71
71
|
```
|
|
72
72
|
|
|
73
|
-
|
|
73
|
+
## 隐藏icon
|
|
74
74
|
|
|
75
75
|
- 属性`hide-title-icon`可设置是否隐藏标题icon
|
|
76
76
|
|
|
@@ -102,7 +102,7 @@
|
|
|
102
102
|
</template>
|
|
103
103
|
```
|
|
104
104
|
|
|
105
|
-
|
|
105
|
+
## 标题右侧插槽
|
|
106
106
|
|
|
107
107
|
- 插槽`method`可设置标题栏右侧的操作区域内容
|
|
108
108
|
|
|
@@ -141,15 +141,7 @@
|
|
|
141
141
|
|
|
142
142
|
---$
|
|
143
143
|
|
|
144
|
-
### API
|
|
145
|
-
|
|
146
144
|
<!-- props -->
|
|
147
145
|
|
|
148
|
-
#### Slots
|
|
149
|
-
|
|
150
|
-
| 方法名 | 说明 | 支持版本 |
|
|
151
|
-
| ------ | ------------------ | -------- |
|
|
152
|
-
| method | 标题栏右侧操作插槽 | - |
|
|
153
|
-
|
|
154
146
|
---$
|
|
155
147
|
{{xuyajun}}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
## API
|
|
2
|
+
|
|
3
|
+
### Props
|
|
2
4
|
| 属性名 | 说明 | 类型 | 默认值 | 可选值 | 支持版本 |
|
|
3
5
|
| ----- | ----- | --- | ------- | ------ | -------- |
|
|
4
6
|
| `data` | 问答数据列表 | `GuideQaItem[]` | `[]` | - | - |
|
|
@@ -8,8 +10,17 @@
|
|
|
8
10
|
| `showNum` | 是否显示问答数量 | `boolean` | `true` | - | - |
|
|
9
11
|
|
|
10
12
|
|
|
11
|
-
|
|
13
|
+
### Events
|
|
12
14
|
| 事件名 | 说明 | 事件参数 | 支持版本 |
|
|
13
15
|
| ----- | ----- | ------- | -------- |
|
|
14
|
-
| `click-item` | 点击问题或答案时触发 |
|
|
15
|
-
| `click-all` | 点击查看全部时触发 |
|
|
16
|
+
| `click-item` | 点击问题或答案时触发 | `data`:(type: 'q' / 'a', item: GuideQaItem) => void | - |
|
|
17
|
+
| `click-all` | 点击查看全部时触发 | `data`:() => void | - |
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Slots
|
|
21
|
+
| 插槽名 | 说明 | 参数 | 支持版本 |
|
|
22
|
+
| ----- | ----- | --- | -------- |
|
|
23
|
+
| `prefix-q` | 问题前缀 | - | - |
|
|
24
|
+
| `prefix-a` | 答案前缀 | - | - |
|
|
25
|
+
|
|
26
|
+
|
|
@@ -4,9 +4,9 @@
|
|
|
4
4
|
|
|
5
5
|
---$
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
## 代码演示
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
## 简单模式
|
|
10
10
|
|
|
11
11
|
通过`mode="1"`设置为简单模式,默认显示模式
|
|
12
12
|
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
</script>
|
|
44
44
|
```
|
|
45
45
|
|
|
46
|
-
|
|
46
|
+
## 完整模式
|
|
47
47
|
|
|
48
48
|
通过`mode="2"`设置为完整模式,支持点击问题和答案
|
|
49
49
|
|
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
</script>
|
|
73
73
|
```
|
|
74
74
|
|
|
75
|
-
|
|
75
|
+
## 自定义标题
|
|
76
76
|
|
|
77
77
|
通过`title`设置标题文本,`actionTitle`设置操作按钮文本
|
|
78
78
|
|
|
@@ -82,7 +82,7 @@
|
|
|
82
82
|
</template>
|
|
83
83
|
```
|
|
84
84
|
|
|
85
|
-
|
|
85
|
+
## 是否显示数量
|
|
86
86
|
|
|
87
87
|
通过`showNum`控制是否显示数量
|
|
88
88
|
|
|
@@ -94,18 +94,9 @@
|
|
|
94
94
|
|
|
95
95
|
---$
|
|
96
96
|
|
|
97
|
-
### API
|
|
98
|
-
|
|
99
97
|
<!-- props -->
|
|
100
98
|
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
| 插槽名 | 说明 | 插槽参数 | 支持版本 |
|
|
104
|
-
| ---------- | -------- | -------- | -------- |
|
|
105
|
-
| `prefix-q` | 问题前缀 | - | - |
|
|
106
|
-
| `prefix-a` | 答案前缀 | - | - |
|
|
107
|
-
|
|
108
|
-
#### Types
|
|
99
|
+
## Types
|
|
109
100
|
|
|
110
101
|
```typescript
|
|
111
102
|
export interface GuideQaItem {
|
|
@@ -47,12 +47,30 @@
|
|
|
47
47
|
{
|
|
48
48
|
"name": "[event]click-item",
|
|
49
49
|
"description": "点击问题或答案时触发",
|
|
50
|
-
"
|
|
50
|
+
"params": [
|
|
51
|
+
{
|
|
52
|
+
"name": "data",
|
|
53
|
+
"description": "(type: 'q' | 'a', item: GuideQaItem) => void"
|
|
54
|
+
}
|
|
55
|
+
]
|
|
51
56
|
},
|
|
52
57
|
{
|
|
53
58
|
"name": "[event]click-all",
|
|
54
59
|
"description": "点击查看全部时触发",
|
|
55
|
-
"
|
|
60
|
+
"params": [
|
|
61
|
+
{
|
|
62
|
+
"name": "data",
|
|
63
|
+
"description": "() => void"
|
|
64
|
+
}
|
|
65
|
+
]
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"name": "[slot]prefix-q",
|
|
69
|
+
"description": "问题前缀"
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
"name": "[slot]prefix-a",
|
|
73
|
+
"description": "答案前缀"
|
|
56
74
|
}
|
|
57
75
|
]
|
|
58
76
|
}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
## API
|
|
2
|
+
|
|
3
|
+
### Props
|
|
2
4
|
| 属性名 | 说明 | 类型 | 默认值 | 可选值 | 支持版本 |
|
|
3
5
|
| ----- | ----- | --- | ------- | ------ | -------- |
|
|
4
6
|
| `code` | 图标名称 | `string` | - | - | - |
|
|
@@ -13,7 +15,9 @@
|
|
|
13
15
|
| `inlineBlock` | 容器对齐方式 | `boolean` | `true` | - | - |
|
|
14
16
|
|
|
15
17
|
|
|
16
|
-
|
|
18
|
+
### Events
|
|
17
19
|
| 事件名 | 说明 | 事件参数 | 支持版本 |
|
|
18
20
|
| ----- | ----- | ------- | -------- |
|
|
19
|
-
| `click` | 图标点击回调事件 |
|
|
21
|
+
| `click` | 图标点击回调事件 | `data`:() => void | - |
|
|
22
|
+
|
|
23
|
+
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
## 代码演示
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
## 基础用法
|
|
10
10
|
|
|
11
11
|
通过 `code` 属性来指定需要使用的图标,Stellar 组件使用[iconfont 做图标库](https://at.alicdn.com/t/c/font_4041637_pivqtx3f1mq.json?spm=a313x.manage_type_myprojects.i1.49.f7ba3a81fFvJ6W&file=font_4041637_pivqtx3f1mq.json),
|
|
12
12
|
可以直接传入对应的编码来使用
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
</template>
|
|
18
18
|
```
|
|
19
19
|
|
|
20
|
-
|
|
20
|
+
## 图标颜色
|
|
21
21
|
|
|
22
22
|
通过 `color` 属性来设置图标的颜色
|
|
23
23
|
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
</template>
|
|
29
29
|
```
|
|
30
30
|
|
|
31
|
-
|
|
31
|
+
## 图标大小
|
|
32
32
|
|
|
33
33
|
通过 `size` 属性来设置图标的尺寸大小,单位为 rpx,默认`28`
|
|
34
34
|
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
</template>
|
|
41
41
|
```
|
|
42
42
|
|
|
43
|
-
|
|
43
|
+
## 图标是否粗体
|
|
44
44
|
|
|
45
45
|
通过 `bold` 属性来设置图标是否粗体,默认`false`
|
|
46
46
|
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
</template>
|
|
52
52
|
```
|
|
53
53
|
|
|
54
|
-
|
|
54
|
+
## 自定义图标
|
|
55
55
|
|
|
56
56
|
如果需要在现有 `Icon` 的基础上使用更多图标,可以引入第三方 `iconfont` 对应的字体文件和 `CSS` 文件,之后就可以在 `Icon` 组件中直接使用,默认为`ste-iconfont-1709689042473`。
|
|
57
57
|
|
|
@@ -71,8 +71,6 @@
|
|
|
71
71
|
|
|
72
72
|
---$
|
|
73
73
|
|
|
74
|
-
### API
|
|
75
|
-
|
|
76
74
|
<!-- props -->
|
|
77
75
|
|
|
78
76
|
---$
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
## API
|
|
2
|
+
|
|
3
|
+
### Props
|
|
2
4
|
| 属性名 | 说明 | 类型 | 默认值 | 可选值 | 支持版本 |
|
|
3
5
|
| ----- | ----- | --- | ------- | ------ | -------- |
|
|
4
6
|
| `src` | 图片地址 | `string` | - | - | `1.0.0` |
|
|
@@ -13,9 +15,18 @@
|
|
|
13
15
|
| `lazyLoad` | 图片懒加载,在即将进入一定范围(上下三屏)时才开始加载 | `boolean` | `false` | - | - |
|
|
14
16
|
|
|
15
17
|
|
|
16
|
-
|
|
18
|
+
### Events
|
|
17
19
|
| 事件名 | 说明 | 事件参数 | 支持版本 |
|
|
18
20
|
| ----- | ----- | ------- | -------- |
|
|
19
21
|
| `click` | 图片点击触发 | `event`:当前图片Event | - |
|
|
20
22
|
| `load` | 图片加载成功触发 | `event`:当前图片Event | - |
|
|
21
23
|
| `error` | 图片加载失败触发 | `event`:当前图片Event | - |
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
### Slots
|
|
27
|
+
| 插槽名 | 说明 | 参数 | 支持版本 |
|
|
28
|
+
| ----- | ----- | --- | -------- |
|
|
29
|
+
| `loading` | 加载中内容插槽 | - | - |
|
|
30
|
+
| `error` | 加载失败内容插槽 | - | - |
|
|
31
|
+
|
|
32
|
+
|
|
@@ -4,9 +4,9 @@
|
|
|
4
4
|
|
|
5
5
|
---$
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
## 代码演示
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
## 基础用法
|
|
10
10
|
|
|
11
11
|
- 通过`src`属性设置图片地址
|
|
12
12
|
- 通过`width`属性设置图片宽度
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
</template>
|
|
24
24
|
```
|
|
25
25
|
|
|
26
|
-
|
|
26
|
+
## 圆角
|
|
27
27
|
|
|
28
28
|
- 通过`radius`属性设置图片圆角属性
|
|
29
29
|
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
</template>
|
|
34
34
|
```
|
|
35
35
|
|
|
36
|
-
|
|
36
|
+
## 加载效果
|
|
37
37
|
|
|
38
38
|
- 通过`hiddenLoading`关闭图片加载中占位标识
|
|
39
39
|
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
</template>
|
|
64
64
|
```
|
|
65
65
|
|
|
66
|
-
|
|
66
|
+
## 加载失败
|
|
67
67
|
|
|
68
68
|
- 通过`hiddenError`隐藏图片加载失败提示
|
|
69
69
|
|
|
@@ -93,7 +93,7 @@
|
|
|
93
93
|
</template>
|
|
94
94
|
```
|
|
95
95
|
|
|
96
|
-
|
|
96
|
+
## 具名插槽
|
|
97
97
|
|
|
98
98
|
- 通过`loading`具名插槽可以自定义加载中内容
|
|
99
99
|
- 通过`error`具名插槽可以自定义加载失败内容
|
|
@@ -109,16 +109,7 @@
|
|
|
109
109
|
|
|
110
110
|
---$
|
|
111
111
|
|
|
112
|
-
### API
|
|
113
|
-
|
|
114
112
|
<!-- props -->
|
|
115
113
|
|
|
116
|
-
#### Slots
|
|
117
|
-
|
|
118
|
-
| 插槽名 | 说明 | 插槽参数 | 支持版本 |
|
|
119
|
-
| --------- | ---------------- | -------- | -------- |
|
|
120
|
-
| `loading` | 加载中内容插槽 | - | - |
|
|
121
|
-
| `error` | 加载失败内容插槽 | - | - |
|
|
122
|
-
|
|
123
114
|
---$
|
|
124
115
|
{{xuyajun}}
|
|
@@ -155,7 +155,6 @@
|
|
|
155
155
|
{
|
|
156
156
|
"name": "[event]click",
|
|
157
157
|
"description": "图片点击触发",
|
|
158
|
-
"type": "(event: UniEvent) => void",
|
|
159
158
|
"params": [
|
|
160
159
|
{
|
|
161
160
|
"name": "event",
|
|
@@ -166,7 +165,6 @@
|
|
|
166
165
|
{
|
|
167
166
|
"name": "[event]load",
|
|
168
167
|
"description": "图片加载成功触发",
|
|
169
|
-
"type": "(event: UniEvent) => void",
|
|
170
168
|
"params": [
|
|
171
169
|
{
|
|
172
170
|
"name": "event",
|
|
@@ -177,13 +175,20 @@
|
|
|
177
175
|
{
|
|
178
176
|
"name": "[event]error",
|
|
179
177
|
"description": "图片加载失败触发",
|
|
180
|
-
"type": "(event: UniEvent) => void",
|
|
181
178
|
"params": [
|
|
182
179
|
{
|
|
183
180
|
"name": "event",
|
|
184
181
|
"description": "当前图片Event"
|
|
185
182
|
}
|
|
186
183
|
]
|
|
184
|
+
},
|
|
185
|
+
{
|
|
186
|
+
"name": "[slot]loading",
|
|
187
|
+
"description": "加载中内容插槽"
|
|
188
|
+
},
|
|
189
|
+
{
|
|
190
|
+
"name": "[slot]error",
|
|
191
|
+
"description": "加载失败内容插槽"
|
|
187
192
|
}
|
|
188
193
|
]
|
|
189
194
|
}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
## API
|
|
2
|
+
|
|
3
|
+
### Props
|
|
2
4
|
| 属性名 | 说明 | 类型 | 默认值 | 可选值 | 支持版本 |
|
|
3
5
|
| ----- | ----- | --- | ------- | ------ | -------- |
|
|
4
6
|
| `active` | 当前激活的节点 | `number` | `0` | - | - |
|
|
@@ -8,8 +10,10 @@
|
|
|
8
10
|
| `activeColor` | 右边锚点状态激活时的颜色 | `string` | `#0090FF` | - | - |
|
|
9
11
|
|
|
10
12
|
|
|
11
|
-
|
|
13
|
+
### Events
|
|
12
14
|
| 事件名 | 说明 | 事件参数 | 支持版本 |
|
|
13
15
|
| ----- | ----- | ------- | -------- |
|
|
14
|
-
| `change` | 激活节点改变时触发 |
|
|
15
|
-
| `clickItem` | 点击右边锚点时触发 |
|
|
16
|
+
| `change` | 激活节点改变时触发 | `data`:(index:number)=>void | - |
|
|
17
|
+
| `clickItem` | 点击右边锚点时触发 | `data`:(title:string,text:string)=>void | - |
|
|
18
|
+
|
|
19
|
+
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
---$
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
## 基础用法
|
|
8
8
|
|
|
9
9
|
- 标签`ste-index-list`为外层盒子
|
|
10
10
|
- 事件`clickItem`监听点击索引分组事件
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
</script>
|
|
57
57
|
```
|
|
58
58
|
|
|
59
|
-
|
|
59
|
+
## 自定义颜色/标题/内容
|
|
60
60
|
|
|
61
61
|
- 标签`ste-index-list`为外层盒子
|
|
62
62
|
- 属性`inactiveColor`为索引分组标题未选中颜色
|
|
@@ -134,30 +134,28 @@
|
|
|
134
134
|
|
|
135
135
|
---$
|
|
136
136
|
|
|
137
|
-
### API
|
|
138
|
-
|
|
139
137
|
<!-- props -->
|
|
140
138
|
|
|
141
|
-
|
|
139
|
+
## IndexList Method
|
|
142
140
|
|
|
143
141
|
| 方法名 | 说明 | 支持版本 |
|
|
144
142
|
| ------ | -------------------------------- | -------- |
|
|
145
143
|
| `init` | 初始化锚点信息,在渲染完成后调用 | - |
|
|
146
144
|
|
|
147
|
-
|
|
145
|
+
## IndexList Slots
|
|
148
146
|
|
|
149
147
|
| 方法名 | 说明 | 支持版本 |
|
|
150
148
|
| --------- | -------------- | -------- |
|
|
151
149
|
| `default` | 自定义列表内容 | - |
|
|
152
150
|
|
|
153
|
-
|
|
151
|
+
## IndexItem Props
|
|
154
152
|
|
|
155
153
|
| 属性名 | 说明 | 类型 | 默认值 | 可选值 | 支持版本 |
|
|
156
154
|
| ------- | -------------------- | --------------- | ------ | ------ | -------- |
|
|
157
155
|
| `title` | 分组标题,这是必需的 | `String` | `""` | - | - |
|
|
158
156
|
| `list` | 分组字符串列表 | `Array<String>` | `""` | - | - |
|
|
159
157
|
|
|
160
|
-
|
|
158
|
+
## IndexItem Slots
|
|
161
159
|
|
|
162
160
|
| 方法名 | 说明 | 支持版本 |
|
|
163
161
|
| --------- | -------------- | -------- |
|
|
@@ -37,12 +37,22 @@
|
|
|
37
37
|
{
|
|
38
38
|
"name": "[event]change",
|
|
39
39
|
"description": "激活节点改变时触发",
|
|
40
|
-
"
|
|
40
|
+
"params": [
|
|
41
|
+
{
|
|
42
|
+
"name": "data",
|
|
43
|
+
"description": "(index:number)=>void"
|
|
44
|
+
}
|
|
45
|
+
]
|
|
41
46
|
},
|
|
42
47
|
{
|
|
43
48
|
"name": "[event]clickItem",
|
|
44
49
|
"description": "点击右边锚点时触发",
|
|
45
|
-
"
|
|
50
|
+
"params": [
|
|
51
|
+
{
|
|
52
|
+
"name": "data",
|
|
53
|
+
"description": "(title:string,text:string)=>void"
|
|
54
|
+
}
|
|
55
|
+
]
|
|
46
56
|
}
|
|
47
57
|
]
|
|
48
|
-
}
|
|
58
|
+
}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
## API
|
|
2
|
+
|
|
3
|
+
### Props
|
|
2
4
|
| 属性名 | 说明 | 类型 | 默认值 | 可选值 | 支持版本 |
|
|
3
5
|
| ----- | ----- | --- | ------- | ------ | -------- |
|
|
4
6
|
| `value` | 初始内容,支持双向绑定 | `number / string` | - | - | - |
|
|
@@ -28,11 +30,20 @@
|
|
|
28
30
|
| `filter` | 过滤器函数,用于在输入时对值进行预处理 | `(value: any) => string` | `null` | - | - |
|
|
29
31
|
|
|
30
32
|
|
|
31
|
-
|
|
33
|
+
### Events
|
|
32
34
|
| 事件名 | 说明 | 事件参数 | 支持版本 |
|
|
33
35
|
| ----- | ----- | ------- | -------- |
|
|
34
36
|
| `blur` | 输入框失去焦点事件 | `value`:输入框的值 | - |
|
|
35
37
|
| `focus` | 聚焦事件 | `value`:输入框的值 | - |
|
|
36
38
|
| `confirm` | 输入框输入键盘右下角点击事件 | `value`:输入框的值 | - |
|
|
37
|
-
| `clear` | 清除输入框事件 |
|
|
39
|
+
| `clear` | 清除输入框事件 | `data`:() => void | - |
|
|
38
40
|
| `input` | 输入事件 | `value`:输入框的值 | - |
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
### Slots
|
|
44
|
+
| 插槽名 | 说明 | 参数 | 支持版本 |
|
|
45
|
+
| ----- | ----- | --- | -------- |
|
|
46
|
+
| `prefix` | 输入框前置内容 | - | - |
|
|
47
|
+
| `suffix` | 输入框后置内容 | - | - |
|
|
48
|
+
|
|
49
|
+
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
用于承载用户信息录入的文本框,常用于表单、对话框等场景,对不同内容的信息录入,可拓展形成多种信息录入形式
|
|
4
4
|
---$
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
## 代码演示
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
## 文本输入框
|
|
9
9
|
|
|
10
10
|
- 通过`value`给输入框初始值
|
|
11
11
|
- 支持通过`v-model`双向绑定
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
</template>
|
|
17
17
|
```
|
|
18
18
|
|
|
19
|
-
|
|
19
|
+
## 密码输入框
|
|
20
20
|
|
|
21
21
|
```html
|
|
22
22
|
<template>
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
</template>
|
|
25
25
|
```
|
|
26
26
|
|
|
27
|
-
|
|
27
|
+
## 数字输入框
|
|
28
28
|
|
|
29
29
|
```html
|
|
30
30
|
<template>
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
</template>
|
|
33
33
|
```
|
|
34
34
|
|
|
35
|
-
|
|
35
|
+
## 占位符
|
|
36
36
|
|
|
37
37
|
- 支持`placeholderStyle`给占位符指定样式
|
|
38
38
|
- 支持`placeholderClass`给占位符指定类名
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
</template>
|
|
47
47
|
```
|
|
48
48
|
|
|
49
|
-
|
|
49
|
+
## 禁用&只读
|
|
50
50
|
|
|
51
51
|
```html
|
|
52
52
|
<template>
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
</template>
|
|
58
58
|
```
|
|
59
59
|
|
|
60
|
-
|
|
60
|
+
## 字数统计
|
|
61
61
|
|
|
62
62
|
- `showWordLimit`值为`true`时在右下角显示字数统计
|
|
63
63
|
- 当`type`值为`textarea`并且`maxlength`大于0时才会显示
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
</template>
|
|
70
70
|
```
|
|
71
71
|
|
|
72
|
-
|
|
72
|
+
## 焦点
|
|
73
73
|
|
|
74
74
|
通过 `focus`值来控制输入框的焦点,支持双向绑定
|
|
75
75
|
|
|
@@ -79,7 +79,7 @@
|
|
|
79
79
|
</template>
|
|
80
80
|
```
|
|
81
81
|
|
|
82
|
-
|
|
82
|
+
## 文本对齐方式
|
|
83
83
|
|
|
84
84
|
```html
|
|
85
85
|
<template>
|
|
@@ -88,7 +88,7 @@
|
|
|
88
88
|
</template>
|
|
89
89
|
```
|
|
90
90
|
|
|
91
|
-
|
|
91
|
+
## 输入框字体
|
|
92
92
|
|
|
93
93
|
```html
|
|
94
94
|
<template>
|
|
@@ -97,7 +97,7 @@
|
|
|
97
97
|
</template>
|
|
98
98
|
```
|
|
99
99
|
|
|
100
|
-
|
|
100
|
+
## 输入框形状
|
|
101
101
|
|
|
102
102
|
```html
|
|
103
103
|
<template>
|
|
@@ -106,7 +106,7 @@
|
|
|
106
106
|
</template>
|
|
107
107
|
```
|
|
108
108
|
|
|
109
|
-
|
|
109
|
+
## 输入框边框
|
|
110
110
|
|
|
111
111
|
```html
|
|
112
112
|
<template>
|
|
@@ -115,7 +115,7 @@
|
|
|
115
115
|
</template>
|
|
116
116
|
```
|
|
117
117
|
|
|
118
|
-
|
|
118
|
+
## 背景色
|
|
119
119
|
|
|
120
120
|
```html
|
|
121
121
|
<template>
|
|
@@ -124,7 +124,7 @@
|
|
|
124
124
|
</template>
|
|
125
125
|
```
|
|
126
126
|
|
|
127
|
-
|
|
127
|
+
## 前后插槽
|
|
128
128
|
|
|
129
129
|
```html
|
|
130
130
|
<template>
|
|
@@ -144,7 +144,7 @@
|
|
|
144
144
|
</template>
|
|
145
145
|
```
|
|
146
146
|
|
|
147
|
-
|
|
147
|
+
## 前后插槽-验证码
|
|
148
148
|
|
|
149
149
|
```html
|
|
150
150
|
<template>
|
|
@@ -173,7 +173,7 @@
|
|
|
173
173
|
</script>
|
|
174
174
|
```
|
|
175
175
|
|
|
176
|
-
|
|
176
|
+
## 前置过滤
|
|
177
177
|
|
|
178
178
|
```html
|
|
179
179
|
<script lang="ts" setup>
|
|
@@ -202,16 +202,7 @@
|
|
|
202
202
|
|
|
203
203
|
---$
|
|
204
204
|
|
|
205
|
-
### API
|
|
206
|
-
|
|
207
205
|
<!-- props -->
|
|
208
206
|
|
|
209
|
-
#### 组件插槽(Slots)
|
|
210
|
-
|
|
211
|
-
| 插槽名 | 说明 | 插槽参数 | 支持版本 |
|
|
212
|
-
| -------- | -------------- | -------- | -------- |
|
|
213
|
-
| `prefix` | 输入框前置内容 | - | - |
|
|
214
|
-
| `suffix` | 输入框后置内容 | - | - |
|
|
215
|
-
|
|
216
207
|
---$
|
|
217
208
|
{{fuyuwei}}
|