stellar-ui-plus 1.25.1 → 1.25.3
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 +21 -4
- package/components/ste-area-chart/ste-area-chart.vue +33 -1
- 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 +20 -5
- package/components/ste-bar-chart/ste-bar-chart.vue +34 -1
- 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 +22 -7
- package/components/ste-column-chart/ste-column-chart.vue +34 -1
- 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 +21 -6
- package/components/ste-funnel-chart/ste-funnel-chart.vue +34 -1
- 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 +22 -7
- package/components/ste-line-chart/ste-line-chart.vue +34 -1
- 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 +21 -6
- package/components/ste-pie-chart/ste-pie-chart.vue +34 -1
- 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 +33 -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 +11 -21
- package/components/ste-slider/ste-slider.easycom.json +12 -4
- 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
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
## API
|
|
2
|
+
|
|
3
|
+
### Props
|
|
2
4
|
| 属性名 | 说明 | 类型 | 默认值 | 可选值 | 支持版本 |
|
|
3
5
|
| ----- | ----- | --- | ------- | ------ | -------- |
|
|
4
6
|
| `show` | 是否显示,支持v-model:show双向绑定 | `boolean` | `false` | - | - |
|
|
@@ -19,8 +21,10 @@
|
|
|
19
21
|
| `completeTxt` | 完成按钮文字 | `string` | `完成` | - | - |
|
|
20
22
|
|
|
21
23
|
|
|
22
|
-
|
|
24
|
+
### Events
|
|
23
25
|
| 事件名 | 说明 | 事件参数 | 支持版本 |
|
|
24
26
|
| ----- | ----- | ------- | -------- |
|
|
25
27
|
| `change` | 步骤切换时触发 | `current`:当前步骤 | - |
|
|
26
|
-
| `close` | 关闭时触发 |
|
|
28
|
+
| `close` | 关闭时触发 | `data`:()=>void | - |
|
|
29
|
+
|
|
30
|
+
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
}
|
|
16
16
|
```
|
|
17
17
|
|
|
18
|
-
|
|
18
|
+
## 基础用法
|
|
19
19
|
|
|
20
20
|
- 属性`show`用于控制显示隐藏
|
|
21
21
|
- 属性`steps`用于设置步骤内容,数组形式,数组中每个元素是一个对象,对象包含以下属性
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
</template>
|
|
42
42
|
```
|
|
43
43
|
|
|
44
|
-
|
|
44
|
+
## 位置偏移量
|
|
45
45
|
|
|
46
46
|
- 属性`offset`用于设置位置偏移量,数组形式,数组中两个元素分别表示横纵方向上的偏移量
|
|
47
47
|
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
</template>
|
|
60
60
|
```
|
|
61
61
|
|
|
62
|
-
|
|
62
|
+
## 插槽
|
|
63
63
|
|
|
64
64
|
- 默认插槽可以自定义描述内容,插槽参数`item`为当前步骤信息
|
|
65
65
|
- 属性`messageBg`可以将默认背景改为透明,然后通过插槽自定义背景样式,实现自定义描述内容。
|
|
@@ -81,7 +81,7 @@
|
|
|
81
81
|
</template>
|
|
82
82
|
```
|
|
83
83
|
|
|
84
|
-
|
|
84
|
+
## 多步骤,显示标题栏
|
|
85
85
|
|
|
86
86
|
- 属性`offset`用于设置位置偏移量,数组形式,数组中两个元素分别表示横纵方向上的偏移量
|
|
87
87
|
|
|
@@ -106,7 +106,7 @@
|
|
|
106
106
|
</template>
|
|
107
107
|
```
|
|
108
108
|
|
|
109
|
-
|
|
109
|
+
## 不显示背景蒙层
|
|
110
110
|
|
|
111
111
|
- 属性`mask`用于设置是否显示背景蒙层,默认显示
|
|
112
112
|
|
|
@@ -126,8 +126,6 @@
|
|
|
126
126
|
|
|
127
127
|
---$
|
|
128
128
|
|
|
129
|
-
### API
|
|
130
|
-
|
|
131
129
|
<!-- props -->
|
|
132
130
|
|
|
133
131
|
---$
|
|
@@ -26,7 +26,10 @@
|
|
|
26
26
|
"name": "offset",
|
|
27
27
|
"description": "位置偏移量,格式为:[x, y]",
|
|
28
28
|
"type": "[number, number]",
|
|
29
|
-
"default": [
|
|
29
|
+
"default": [
|
|
30
|
+
0,
|
|
31
|
+
0
|
|
32
|
+
]
|
|
30
33
|
},
|
|
31
34
|
{
|
|
32
35
|
"name": "showTitleBar",
|
|
@@ -103,7 +106,6 @@
|
|
|
103
106
|
{
|
|
104
107
|
"name": "[event]change",
|
|
105
108
|
"description": "步骤切换时触发",
|
|
106
|
-
"type": "(current:number)=>void",
|
|
107
109
|
"params": [
|
|
108
110
|
{
|
|
109
111
|
"name": "current",
|
|
@@ -114,7 +116,12 @@
|
|
|
114
116
|
{
|
|
115
117
|
"name": "[event]close",
|
|
116
118
|
"description": "关闭时触发",
|
|
117
|
-
"
|
|
119
|
+
"params": [
|
|
120
|
+
{
|
|
121
|
+
"name": "data",
|
|
122
|
+
"description": "()=>void"
|
|
123
|
+
}
|
|
124
|
+
]
|
|
118
125
|
}
|
|
119
126
|
]
|
|
120
|
-
}
|
|
127
|
+
}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
## API
|
|
2
|
+
|
|
3
|
+
### Props
|
|
2
4
|
| 属性名 | 说明 | 类型 | 默认值 | 可选值 | 支持版本 |
|
|
3
5
|
| ----- | ----- | --- | ------- | ------ | -------- |
|
|
4
6
|
| `options` | 树形结构数组(Node结构见基础用法详情 ),若组件渲染完成后修此属性,请手动调用init方法 | `Array<TreeNode>` | `[]` | - | - |
|
|
@@ -10,10 +12,21 @@
|
|
|
10
12
|
| `openNodes` | 默认展开的节点数组 | `Array<number / string>` | `[]` | - | - |
|
|
11
13
|
|
|
12
14
|
|
|
13
|
-
|
|
15
|
+
### Events
|
|
14
16
|
| 事件名 | 说明 | 事件参数 | 支持版本 |
|
|
15
17
|
| ----- | ----- | ------- | -------- |
|
|
16
18
|
| `click` | 点击节点时触发 | `node`:当前点击的节点 | - |
|
|
17
19
|
| `open` | 打开节点时出发 | `node`:当前打开的节点 | - |
|
|
18
20
|
| `close` | 关闭节点时出发 | `node`:当前关闭的节点 | - |
|
|
19
21
|
| `beforeOpen` | 打开节点前触发 | `node`:当前即将打开的节点<br/>`suspend`:调用该函数等待后续操作<br/>`next`:调用该函数继续执行后续代码,可接收一个对象数组,该数组会替换当前节点的children<br/>`stop`:调用该函数阻止后续代码执行 | - |
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
### Methods
|
|
25
|
+
| 方法名 | 说明 | 参数 | 返回值 | 支持版本 |
|
|
26
|
+
| ----- | ----- | --- | ------ | -------- |
|
|
27
|
+
| `init` | 初始化方法,若`options`改变时页面没有更新,可调用此方法重现渲染 | - | - | - |
|
|
28
|
+
| `open` | 打开指定节点 | - | - | - |
|
|
29
|
+
| `close` | 关闭指定节点 | - | - | - |
|
|
30
|
+
| `search` | 节点搜索 | - | - | - |
|
|
31
|
+
|
|
32
|
+
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
## 使用示例
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
## 基础用法
|
|
10
10
|
|
|
11
11
|
- 属性`options`用于设置折叠面板的选项,类型为树形结构
|
|
12
12
|
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
</template>
|
|
71
71
|
```
|
|
72
72
|
|
|
73
|
-
|
|
73
|
+
## 默认展开节点,打开/关闭指定节点
|
|
74
74
|
|
|
75
75
|
- 属性`openNodes`用于设置默认展开的节点,默认展开的节点数组(数组内容为节点value值,请在组件加载前设置,加载后若要展开请调用open方法)
|
|
76
76
|
- 方法`open`用于打开指定节点
|
|
@@ -132,7 +132,7 @@
|
|
|
132
132
|
</template>
|
|
133
133
|
```
|
|
134
134
|
|
|
135
|
-
|
|
135
|
+
## 节点搜索
|
|
136
136
|
|
|
137
137
|
- 属性`searchTitle`用于搜索节点
|
|
138
138
|
- 也可以使用方法`search(keyword)`进行搜索
|
|
@@ -181,7 +181,7 @@
|
|
|
181
181
|
</template>
|
|
182
182
|
```
|
|
183
183
|
|
|
184
|
-
|
|
184
|
+
## 非手风琴模式(展开时不关闭兄弟节点)
|
|
185
185
|
|
|
186
186
|
- 属性`accordion`用于设置是否为手风琴模式,默认为`true`
|
|
187
187
|
|
|
@@ -227,7 +227,7 @@
|
|
|
227
227
|
</template>
|
|
228
228
|
```
|
|
229
229
|
|
|
230
|
-
|
|
230
|
+
## 懒加载
|
|
231
231
|
|
|
232
232
|
- `options`中对象没有子集`children`时,将属性`hasChildren`设置为`true`可展示`open`按钮
|
|
233
233
|
- 事件`beforeOpen`用于监听用户点击`open`时,打开指定节点前触发
|
|
@@ -297,7 +297,7 @@
|
|
|
297
297
|
</template>
|
|
298
298
|
```
|
|
299
299
|
|
|
300
|
-
|
|
300
|
+
## 自定义内容
|
|
301
301
|
|
|
302
302
|
- 插槽`default`用于自定义节点标题
|
|
303
303
|
- 插槽`open`用于自定义节点展开按钮图标,大小不得超过30rpx
|
|
@@ -358,18 +358,7 @@
|
|
|
358
358
|
|
|
359
359
|
---$
|
|
360
360
|
|
|
361
|
-
### API
|
|
362
|
-
|
|
363
361
|
<!-- props -->
|
|
364
362
|
|
|
365
|
-
#### Method
|
|
366
|
-
|
|
367
|
-
| 方法名 | 说明 | 方法参数 | 支持版本 |
|
|
368
|
-
| -------- | --------------------------------------------------------------- | -------- | -------- |
|
|
369
|
-
| `init` | 初始化方法,若`options`改变时页面没有更新,可调用此方法重现渲染 | - | - |
|
|
370
|
-
| `open` | 打开指定节点 | `value` | - |
|
|
371
|
-
| `close` | 关闭指定节点 | `value` | - |
|
|
372
|
-
| `search` | 节点搜索 | `title` | - |
|
|
373
|
-
|
|
374
363
|
---$
|
|
375
364
|
{{xuyajun}}
|
|
@@ -49,7 +49,6 @@
|
|
|
49
49
|
{
|
|
50
50
|
"name": "[event]click",
|
|
51
51
|
"description": "点击节点时触发",
|
|
52
|
-
"type": "(node:TreeNode)=>void",
|
|
53
52
|
"params": [
|
|
54
53
|
{
|
|
55
54
|
"name": "node",
|
|
@@ -60,7 +59,6 @@
|
|
|
60
59
|
{
|
|
61
60
|
"name": "[event]open",
|
|
62
61
|
"description": "打开节点时出发",
|
|
63
|
-
"type": "(node:TreeNode)=>void",
|
|
64
62
|
"params": [
|
|
65
63
|
{
|
|
66
64
|
"name": "node",
|
|
@@ -71,7 +69,6 @@
|
|
|
71
69
|
{
|
|
72
70
|
"name": "[event]close",
|
|
73
71
|
"description": "关闭节点时出发",
|
|
74
|
-
"type": "(node:TreeNode)=>void",
|
|
75
72
|
"params": [
|
|
76
73
|
{
|
|
77
74
|
"name": "node",
|
|
@@ -82,7 +79,6 @@
|
|
|
82
79
|
{
|
|
83
80
|
"name": "[event]beforeOpen",
|
|
84
81
|
"description": "打开节点前触发",
|
|
85
|
-
"type": "(node:TreeNode,suspend:()=>void,next:(tree:TreeNode[])=>void,stop:()=>void)=>void",
|
|
86
82
|
"params": [
|
|
87
83
|
{
|
|
88
84
|
"name": "node",
|
|
@@ -101,6 +97,22 @@
|
|
|
101
97
|
"description": "调用该函数阻止后续代码执行"
|
|
102
98
|
}
|
|
103
99
|
]
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
"name": "[method]init",
|
|
103
|
+
"description": "初始化方法,若`options`改变时页面没有更新,可调用此方法重现渲染"
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
"name": "[method]open",
|
|
107
|
+
"description": "打开指定节点"
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
"name": "[method]close",
|
|
111
|
+
"description": "关闭指定节点"
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
"name": "[method]search",
|
|
115
|
+
"description": "节点搜索"
|
|
104
116
|
}
|
|
105
117
|
]
|
|
106
118
|
}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
## API
|
|
2
|
+
|
|
3
|
+
### Props
|
|
2
4
|
| 属性名 | 说明 | 类型 | 默认值 | 可选值 | 支持版本 |
|
|
3
5
|
| ----- | ----- | --- | ------- | ------ | -------- |
|
|
4
6
|
| `modelValue` | 文件列表 | `Array<UploadFileType>` | `[]` | - | - |
|
|
@@ -23,7 +25,7 @@
|
|
|
23
25
|
| `flexWrap` | 子元素是否换行 | `string` | `wrap` | `wrap`:换行<br/>`nowrap`:不换行 | - |
|
|
24
26
|
|
|
25
27
|
|
|
26
|
-
|
|
28
|
+
### Events
|
|
27
29
|
| 事件名 | 说明 | 事件参数 | 支持版本 |
|
|
28
30
|
| ----- | ----- | ------- | -------- |
|
|
29
31
|
| `beforeRead` | 文件读取前触发 | `fileList`:即将选择的文件列表<br/>`suspend`:等待<br/>`next`:继续<br/>`stop`:停止 | - |
|
|
@@ -31,7 +33,17 @@
|
|
|
31
33
|
| `oversize` | 文件大小超出限制触发 | `file`:超出限制的第一个文件<br/>`fileList`:选择的文件列表 | - |
|
|
32
34
|
| `beforeDelete` | 文件删除前触发 | `index`:正在删除的文件下标<br/>`suspend`:等待<br/>`next`:继续<br/>`stop`:停止 | - |
|
|
33
35
|
| `delete` | 文件删除后触发 | `index`:删除的文件下标<br/>`fileList`:删除后的文件列表 | - |
|
|
34
|
-
| `open-preview` | 打开预览时触发 |
|
|
35
|
-
| `preview-change` | 预览图片变化触发 |
|
|
36
|
-
| `close-preview` | 关闭预览时触发 |
|
|
36
|
+
| `open-preview` | 打开预览时触发 | `data`:()=>void | - |
|
|
37
|
+
| `preview-change` | 预览图片变化触发 | `data`:(index:number / null)=>void | - |
|
|
38
|
+
| `close-preview` | 关闭预览时触发 | `data`:()=>void | - |
|
|
37
39
|
| `click-item` | 点击文件触发 | `index`:文件下标 | - |
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
### Slots
|
|
43
|
+
| 插槽名 | 说明 | 参数 | 支持版本 |
|
|
44
|
+
| ----- | ----- | --- | -------- |
|
|
45
|
+
| `default` | 上传按钮 | - | - |
|
|
46
|
+
| `preview-cover` | 每一份文件的预览图层样式 | `file`:当前文件 | - |
|
|
47
|
+
| `media-preview` | 图片放大预览(媒体预览组件带默认插槽) | - | - |
|
|
48
|
+
|
|
49
|
+
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
---$
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
## 基础用法
|
|
8
8
|
|
|
9
9
|
- `v-model`双向绑定接收一个对象数组,对象包含以下属性
|
|
10
10
|
- `url`:文件路径(与path二选一必须)
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
</script>
|
|
50
50
|
```
|
|
51
51
|
|
|
52
|
-
|
|
52
|
+
## 文件类型,多选
|
|
53
53
|
|
|
54
54
|
- `accept`属性可以设置选择文件类型:可选值有
|
|
55
55
|
- `image`:图片类型(默认)
|
|
@@ -76,7 +76,7 @@
|
|
|
76
76
|
</script>
|
|
77
77
|
```
|
|
78
78
|
|
|
79
|
-
|
|
79
|
+
## 限制上传数量
|
|
80
80
|
|
|
81
81
|
- `maxCount`属性可以设置最大上传数量,超出数量后,无法继续选择文件
|
|
82
82
|
|
|
@@ -98,7 +98,7 @@
|
|
|
98
98
|
</script>
|
|
99
99
|
```
|
|
100
100
|
|
|
101
|
-
|
|
101
|
+
## 限制文件大小
|
|
102
102
|
|
|
103
103
|
- `maxSize`属性可以设置可上传文件的大小,超出大小无法选择
|
|
104
104
|
|
|
@@ -108,7 +108,7 @@
|
|
|
108
108
|
</template>
|
|
109
109
|
```
|
|
110
110
|
|
|
111
|
-
|
|
111
|
+
## 自定义上传样式
|
|
112
112
|
|
|
113
113
|
- 默认插槽可自定义上传按钮样式
|
|
114
114
|
|
|
@@ -120,7 +120,7 @@
|
|
|
120
120
|
</template>
|
|
121
121
|
```
|
|
122
122
|
|
|
123
|
-
|
|
123
|
+
## 自定义预览图层
|
|
124
124
|
|
|
125
125
|
- 具名插槽`preview-cover`可自定义每一份文件的预览图层样式
|
|
126
126
|
|
|
@@ -146,7 +146,7 @@
|
|
|
146
146
|
</style>
|
|
147
147
|
```
|
|
148
148
|
|
|
149
|
-
|
|
149
|
+
## 读取文件前置处理
|
|
150
150
|
|
|
151
151
|
- 事件`beforeRead`在文件选择前触发,参数如下:
|
|
152
152
|
- 第一个参数为正在读取的`fileList`
|
|
@@ -175,7 +175,7 @@
|
|
|
175
175
|
</script>
|
|
176
176
|
```
|
|
177
177
|
|
|
178
|
-
|
|
178
|
+
## 删除前置处理
|
|
179
179
|
|
|
180
180
|
- 事件`beforeDelete`在文件选择前触发,参数如下:
|
|
181
181
|
- 第一个参数为正在删除的`index`
|
|
@@ -214,7 +214,7 @@
|
|
|
214
214
|
</script>
|
|
215
215
|
```
|
|
216
216
|
|
|
217
|
-
|
|
217
|
+
## 媒体预览插槽
|
|
218
218
|
|
|
219
219
|
- 事件`previewChange`监听媒体预览区域切换,参数为当前预览的索引或者`null`;
|
|
220
220
|
- 插槽`media-preview`可自定义媒体预览区域底部内容
|
|
@@ -244,18 +244,7 @@
|
|
|
244
244
|
|
|
245
245
|
---$
|
|
246
246
|
|
|
247
|
-
### API
|
|
248
|
-
|
|
249
247
|
<!-- props -->
|
|
250
248
|
|
|
251
|
-
#### 组件插槽(Slots)
|
|
252
|
-
|
|
253
|
-
| 插槽名 | 说明 | 插槽参数 | 支持版本 |
|
|
254
|
-
| ------- | ------------ | -------- | -------- |
|
|
255
|
-
| default | 上传按钮 | - | - |
|
|
256
|
-
| preview-cover | 每一份文件的预览图层样式 | 当前文件 | - |
|
|
257
|
-
| media-preview | 图片放大预览(媒体预览组件带默认插槽) | - | - |
|
|
258
|
-
|
|
259
|
-
|
|
260
249
|
---$
|
|
261
250
|
{{xuyajun}}
|
|
@@ -169,7 +169,6 @@
|
|
|
169
169
|
{
|
|
170
170
|
"name": "[event]beforeRead",
|
|
171
171
|
"description": "文件读取前触发",
|
|
172
|
-
"type": "(fileList:Array<UploadFileType>,suspend:()=>void,next()=>void,stop:()=>void)=>void",
|
|
173
172
|
"params": [
|
|
174
173
|
{
|
|
175
174
|
"name": "fileList",
|
|
@@ -192,7 +191,6 @@
|
|
|
192
191
|
{
|
|
193
192
|
"name": "[event]read",
|
|
194
193
|
"description": "文件读完成触发",
|
|
195
|
-
"type": "(fileList:Array<UploadFileType>)=>void",
|
|
196
194
|
"params": [
|
|
197
195
|
{
|
|
198
196
|
"name": "fileList",
|
|
@@ -203,7 +201,6 @@
|
|
|
203
201
|
{
|
|
204
202
|
"name": "[event]oversize",
|
|
205
203
|
"description": "文件大小超出限制触发",
|
|
206
|
-
"type": "(file,fileList:Array<UploadFileType>)=>void",
|
|
207
204
|
"params": [
|
|
208
205
|
{
|
|
209
206
|
"name": "file",
|
|
@@ -218,7 +215,6 @@
|
|
|
218
215
|
{
|
|
219
216
|
"name": "[event]beforeDelete",
|
|
220
217
|
"description": "文件删除前触发",
|
|
221
|
-
"type": "(index:number,suspend:()=>void,next()=>void,stop:()=>void)=>void",
|
|
222
218
|
"params": [
|
|
223
219
|
{
|
|
224
220
|
"name": "index",
|
|
@@ -241,7 +237,6 @@
|
|
|
241
237
|
{
|
|
242
238
|
"name": "[event]delete",
|
|
243
239
|
"description": "文件删除后触发",
|
|
244
|
-
"type": "(index:number,fileList:Array<UploadFileType>)=>void",
|
|
245
240
|
"params": [
|
|
246
241
|
{
|
|
247
242
|
"name": "index",
|
|
@@ -256,28 +251,60 @@
|
|
|
256
251
|
{
|
|
257
252
|
"name": "[event]open-preview",
|
|
258
253
|
"description": "打开预览时触发",
|
|
259
|
-
"
|
|
254
|
+
"params": [
|
|
255
|
+
{
|
|
256
|
+
"name": "data",
|
|
257
|
+
"description": "()=>void"
|
|
258
|
+
}
|
|
259
|
+
]
|
|
260
260
|
},
|
|
261
261
|
{
|
|
262
262
|
"name": "[event]preview-change",
|
|
263
263
|
"description": "预览图片变化触发",
|
|
264
|
-
"
|
|
264
|
+
"params": [
|
|
265
|
+
{
|
|
266
|
+
"name": "data",
|
|
267
|
+
"description": "(index:number | null)=>void"
|
|
268
|
+
}
|
|
269
|
+
]
|
|
265
270
|
},
|
|
266
271
|
{
|
|
267
272
|
"name": "[event]close-preview",
|
|
268
273
|
"description": "关闭预览时触发",
|
|
269
|
-
"
|
|
274
|
+
"params": [
|
|
275
|
+
{
|
|
276
|
+
"name": "data",
|
|
277
|
+
"description": "()=>void"
|
|
278
|
+
}
|
|
279
|
+
]
|
|
270
280
|
},
|
|
271
281
|
{
|
|
272
282
|
"name": "[event]click-item",
|
|
273
283
|
"description": "点击文件触发",
|
|
274
|
-
"type": "(index:number)=>void",
|
|
275
284
|
"params": [
|
|
276
285
|
{
|
|
277
286
|
"name": "index",
|
|
278
287
|
"description": "文件下标"
|
|
279
288
|
}
|
|
280
289
|
]
|
|
290
|
+
},
|
|
291
|
+
{
|
|
292
|
+
"name": "[slot]default",
|
|
293
|
+
"description": "上传按钮"
|
|
294
|
+
},
|
|
295
|
+
{
|
|
296
|
+
"name": "[slot]preview-cover",
|
|
297
|
+
"description": "每一份文件的预览图层样式",
|
|
298
|
+
"params": [
|
|
299
|
+
{
|
|
300
|
+
"name": "file",
|
|
301
|
+
"description": "当前文件"
|
|
302
|
+
}
|
|
303
|
+
]
|
|
304
|
+
},
|
|
305
|
+
{
|
|
306
|
+
"name": "[slot]media-preview",
|
|
307
|
+
"description": "图片放大预览(媒体预览组件带默认插槽)"
|
|
281
308
|
}
|
|
282
309
|
]
|
|
283
310
|
}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
## API
|
|
2
|
+
|
|
3
|
+
### Props
|
|
2
4
|
| 属性名 | 说明 | 类型 | 默认值 | 可选值 | 支持版本 |
|
|
3
5
|
| ----- | ----- | --- | ------- | ------ | -------- |
|
|
4
6
|
| `avatar` | 头像 | `String` | `` | - | - |
|
|
@@ -17,10 +19,18 @@
|
|
|
17
19
|
| `loginBtnBg` | 登录按钮背景色 | `String` | `主题色` | - | - |
|
|
18
20
|
|
|
19
21
|
|
|
20
|
-
|
|
22
|
+
### Events
|
|
21
23
|
| 事件名 | 说明 | 事件参数 | 支持版本 |
|
|
22
24
|
| ----- | ----- | ------- | -------- |
|
|
23
|
-
| `userClick` | 用户区域点击 |
|
|
25
|
+
| `userClick` | 用户区域点击 | `data`:() => void | - |
|
|
24
26
|
| `dataClick` | 数据点击 | `index`:当前点击的数据排序 | - |
|
|
25
|
-
| `codeClick` | 功能码区域点击 |
|
|
26
|
-
| `loginBtnClick` | 登录按钮点击 |
|
|
27
|
+
| `codeClick` | 功能码区域点击 | `data`:() => void | - |
|
|
28
|
+
| `loginBtnClick` | 登录按钮点击 | `data`:() => void | - |
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
### Slots
|
|
32
|
+
| 插槽名 | 说明 | 参数 | 支持版本 |
|
|
33
|
+
| ----- | ----- | --- | -------- |
|
|
34
|
+
| `desc` | 用户描述 | - | - |
|
|
35
|
+
|
|
36
|
+
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
## 代码演示
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
## 基本使用
|
|
10
10
|
|
|
11
11
|
- 通过 `avatar`设置头像,默认为``
|
|
12
12
|
- 通过 `nickname`设置昵称,默认为``
|
|
@@ -128,7 +128,7 @@
|
|
|
128
128
|
</style>
|
|
129
129
|
```
|
|
130
130
|
|
|
131
|
-
|
|
131
|
+
## 用户信息隐藏
|
|
132
132
|
|
|
133
133
|
- 通过 `showUserInfo`设置是否展示用户相关,默认为`true`
|
|
134
134
|
|
|
@@ -188,7 +188,7 @@
|
|
|
188
188
|
</style>
|
|
189
189
|
```
|
|
190
190
|
|
|
191
|
-
|
|
191
|
+
## 核销码隐藏
|
|
192
192
|
|
|
193
193
|
- 通过 `showCode`设置核销码隐藏,默认为`true`
|
|
194
194
|
|
|
@@ -276,7 +276,7 @@
|
|
|
276
276
|
</style>
|
|
277
277
|
```
|
|
278
278
|
|
|
279
|
-
|
|
279
|
+
## 用户信息和核销码隐藏
|
|
280
280
|
|
|
281
281
|
```html
|
|
282
282
|
<script lang="ts" setup>
|
|
@@ -334,7 +334,7 @@
|
|
|
334
334
|
</style>
|
|
335
335
|
```
|
|
336
336
|
|
|
337
|
-
|
|
337
|
+
## 未登录状态
|
|
338
338
|
|
|
339
339
|
- 通过 `loginStatus`设置登录状态,`0`:未登录,`1`:登录,默认为`1`
|
|
340
340
|
- 通过 `loginSrc`设置未登录头像,默认为``
|
|
@@ -399,15 +399,7 @@
|
|
|
399
399
|
|
|
400
400
|
---$
|
|
401
401
|
|
|
402
|
-
### API
|
|
403
|
-
|
|
404
402
|
<!-- props -->
|
|
405
403
|
|
|
406
|
-
#### Slots
|
|
407
|
-
|
|
408
|
-
| 插槽名 | 说明 | 插槽参数 | 支持版本 |
|
|
409
|
-
| ------ | -------- | -------- | -------- |
|
|
410
|
-
| `desc` | 用户描述 | - | - |
|
|
411
|
-
|
|
412
404
|
---$
|
|
413
405
|
{{qinpengfei}}
|
|
@@ -101,12 +101,16 @@
|
|
|
101
101
|
{
|
|
102
102
|
"name": "[event]userClick",
|
|
103
103
|
"description": "用户区域点击",
|
|
104
|
-
"
|
|
104
|
+
"params": [
|
|
105
|
+
{
|
|
106
|
+
"name": "data",
|
|
107
|
+
"description": "() => void"
|
|
108
|
+
}
|
|
109
|
+
]
|
|
105
110
|
},
|
|
106
111
|
{
|
|
107
112
|
"name": "[event]dataClick",
|
|
108
113
|
"description": "数据点击",
|
|
109
|
-
"type": "(index : string | number) => void",
|
|
110
114
|
"params": [
|
|
111
115
|
{
|
|
112
116
|
"name": "index",
|
|
@@ -117,12 +121,26 @@
|
|
|
117
121
|
{
|
|
118
122
|
"name": "[event]codeClick",
|
|
119
123
|
"description": "功能码区域点击",
|
|
120
|
-
"
|
|
124
|
+
"params": [
|
|
125
|
+
{
|
|
126
|
+
"name": "data",
|
|
127
|
+
"description": "() => void"
|
|
128
|
+
}
|
|
129
|
+
]
|
|
121
130
|
},
|
|
122
131
|
{
|
|
123
132
|
"name": "[event]loginBtnClick",
|
|
124
133
|
"description": "登录按钮点击",
|
|
125
|
-
"
|
|
134
|
+
"params": [
|
|
135
|
+
{
|
|
136
|
+
"name": "data",
|
|
137
|
+
"description": "() => void"
|
|
138
|
+
}
|
|
139
|
+
]
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
"name": "[slot]desc",
|
|
143
|
+
"description": "用户描述"
|
|
126
144
|
}
|
|
127
145
|
]
|
|
128
146
|
}
|
|
@@ -4,9 +4,9 @@
|
|
|
4
4
|
|
|
5
5
|
---$
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
## 代码演示
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
## 基础使用
|
|
10
10
|
|
|
11
11
|
默认视频宽度会根据父容器的宽度撑满
|
|
12
12
|
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
</template>
|
|
17
17
|
```
|
|
18
18
|
|
|
19
|
-
|
|
19
|
+
## 可选择清晰度
|
|
20
20
|
|
|
21
21
|
配置`resolution`后会在全屏时显示清晰度选择选项,数据结构如下
|
|
22
22
|
|
|
@@ -35,15 +35,11 @@
|
|
|
35
35
|
|
|
36
36
|
---$
|
|
37
37
|
|
|
38
|
-
### API
|
|
39
|
-
|
|
40
|
-
#### 组件属性(Props)
|
|
41
|
-
|
|
42
38
|
<!-- props -->
|
|
43
39
|
|
|
44
40
|
其他属性可参考原生[video](https://zh.uniapp.dcloud.io/component/video.html)
|
|
45
41
|
|
|
46
|
-
|
|
42
|
+
## 组件事件(Events)
|
|
47
43
|
|
|
48
44
|
事件可参考原生[video](https://zh.uniapp.dcloud.io/component/video.html)
|
|
49
45
|
|