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,9 +4,9 @@
|
|
|
4
4
|
|
|
5
5
|
---$
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
## 代码演示
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
## 基础用法
|
|
10
10
|
|
|
11
11
|
- 属性`series`: 接收图表数据
|
|
12
12
|
- 属性`categories`: 接收图表数据集
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
</script>
|
|
34
34
|
```
|
|
35
35
|
|
|
36
|
-
|
|
36
|
+
## 堆叠图
|
|
37
37
|
|
|
38
38
|
- 可以通过属性`extra` 额外配置进行设置
|
|
39
39
|
|
|
@@ -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
|
| `content` | 条形码内容(仅支持数字和字母) | `string` | - | - | - |
|
|
@@ -8,7 +10,9 @@
|
|
|
8
10
|
| `foreground` | 前景色(条形码画笔颜色) | `string` | - | - | - |
|
|
9
11
|
|
|
10
12
|
|
|
11
|
-
|
|
13
|
+
### Events
|
|
12
14
|
| 事件名 | 说明 | 事件参数 | 支持版本 |
|
|
13
15
|
| ----- | ----- | ------- | -------- |
|
|
14
16
|
| `loadImage` | 加载完成后返回条形码对应的图片数据 | `src`:图片数据 | - |
|
|
17
|
+
|
|
18
|
+
|
|
@@ -4,9 +4,9 @@
|
|
|
4
4
|
|
|
5
5
|
---$
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
## 代码演示
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
## 基础使用
|
|
10
10
|
|
|
11
11
|
```html
|
|
12
12
|
<template>
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
</template>
|
|
15
15
|
```
|
|
16
16
|
|
|
17
|
-
|
|
17
|
+
## 自定义颜色
|
|
18
18
|
|
|
19
19
|
```html
|
|
20
20
|
<template>
|
|
@@ -24,8 +24,6 @@
|
|
|
24
24
|
|
|
25
25
|
---$
|
|
26
26
|
|
|
27
|
-
### API
|
|
28
|
-
|
|
29
27
|
<!-- props -->
|
|
30
28
|
|
|
31
29
|
---$
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
## API
|
|
2
|
+
|
|
3
|
+
### Props
|
|
2
4
|
| 属性名 | 说明 | 类型 | 默认值 | 可选值 | 支持版本 |
|
|
3
5
|
| ----- | ----- | --- | ------- | ------ | -------- |
|
|
4
6
|
| `mode` | 尺寸 | `number` | `200` | `100`:小<br/>`200`:中<br/>`300`:大<br/>`400`:超大 | - |
|
|
@@ -15,18 +17,26 @@
|
|
|
15
17
|
| `rootStyle` | 按钮样式属性 | `object` | - | - | - |
|
|
16
18
|
|
|
17
19
|
|
|
18
|
-
|
|
20
|
+
### Events
|
|
19
21
|
| 事件名 | 说明 | 事件参数 | 支持版本 |
|
|
20
22
|
| ----- | ----- | ------- | -------- |
|
|
21
|
-
| `click` | 非禁止并且非加载中,才能点击 |
|
|
22
|
-
| `getuserinfo` | 微信小程序:用户点击该按钮时,会返回获取到的用户信息,从返回参数的 detail 中获取到的值同 wx.getUserInfo。支付宝小程序:当 open-type 为 getAuthorize 且 scope 为 userInfo 时有效。当授权成功时触发。 |
|
|
23
|
-
| `contact` | 微信小程序:客服消息回调,open-type="contact"时有效。 |
|
|
24
|
-
| `getphonenumber` | 微信小程序:手机号快速验证回调,open-type=getPhoneNumber时有效。Tips:在触发 bindgetphonenumber 回调后应立即隐藏手机号按钮组件,或置为 disabled 状态,避免用户重复授权手机号产生额外费用。支付宝小程序:当 open-type 为 getAuthorize 且 scope 为 phoneNumber 时有效。当授权成功时触发。 |
|
|
25
|
-
| `getrealtimephonenumber` | 微信小程序:手机号实时验证回调,open-type=getRealtimePhoneNumber 时有效。Tips:在触发 bindgetrealtimephonenumber 回调后应立即隐藏手机号按钮组件,或置为 disabled 状态,避免用户重复授权手机号产生额外费用。 |
|
|
26
|
-
| `agreeprivacyauthorization` | 微信小程序:用户同意隐私协议事件回调,open-type=agreePrivacyAuthorization时有效 (Tips: 如果使用 onNeedPrivacyAuthorization 接口,需要在 bindagreeprivacyauthorization 触发后再调用 resolve({ event: "agree", buttonId })) |
|
|
27
|
-
| `error` | 微信小程序:当使用开放能力时,发生错误的回调,open-type=launchApp时有效 支付宝小程序:当 open-type 为 getAuthorize 时有效。当授权失败时触发。event.detail = {type, errorMessage},此时 type 的值为 getAuthorize。 |
|
|
28
|
-
| `launchapp` | 微信小程序:打开 APP 成功的回调,open-type=launchApp时有效 |
|
|
29
|
-
| `opensetting` | 微信小程序:在打开授权设置页后回调,open-type=openSetting时有效 |
|
|
30
|
-
| `chooseavatar` | 微信小程序:获取用户头像回调,open-type=chooseAvatar时有效。返回 e.detail.avatarUrl 为头像临时文件链接。 |
|
|
31
|
-
| `getAuthorize` | 支付宝小程序:当 open-type 为 getAuthorize 时有效。当授权成功时触发。 |
|
|
32
|
-
| `followLifestyle` | 支付宝小程序:当 open-type 为 lifestyle 时有效。当点击按钮时触发。event.detail = { followStatus },folllowStatus 合法值有 1、2、3,其中 1 表示已关注。2 表示用户不允许关注。3 表示发生未知错误;。 |
|
|
23
|
+
| `click` | 非禁止并且非加载中,才能点击 | `data`:() => void | - |
|
|
24
|
+
| `getuserinfo` | 微信小程序:用户点击该按钮时,会返回获取到的用户信息,从返回参数的 detail 中获取到的值同 wx.getUserInfo。支付宝小程序:当 open-type 为 getAuthorize 且 scope 为 userInfo 时有效。当授权成功时触发。 | `data`:() => void | - |
|
|
25
|
+
| `contact` | 微信小程序:客服消息回调,open-type="contact"时有效。 | `data`:() => void | - |
|
|
26
|
+
| `getphonenumber` | 微信小程序:手机号快速验证回调,open-type=getPhoneNumber时有效。Tips:在触发 bindgetphonenumber 回调后应立即隐藏手机号按钮组件,或置为 disabled 状态,避免用户重复授权手机号产生额外费用。支付宝小程序:当 open-type 为 getAuthorize 且 scope 为 phoneNumber 时有效。当授权成功时触发。 | `data`:() => void | - |
|
|
27
|
+
| `getrealtimephonenumber` | 微信小程序:手机号实时验证回调,open-type=getRealtimePhoneNumber 时有效。Tips:在触发 bindgetrealtimephonenumber 回调后应立即隐藏手机号按钮组件,或置为 disabled 状态,避免用户重复授权手机号产生额外费用。 | `data`:() => void | - |
|
|
28
|
+
| `agreeprivacyauthorization` | 微信小程序:用户同意隐私协议事件回调,open-type=agreePrivacyAuthorization时有效 (Tips: 如果使用 onNeedPrivacyAuthorization 接口,需要在 bindagreeprivacyauthorization 触发后再调用 resolve({ event: "agree", buttonId })) | `data`:() => void | - |
|
|
29
|
+
| `error` | 微信小程序:当使用开放能力时,发生错误的回调,open-type=launchApp时有效 支付宝小程序:当 open-type 为 getAuthorize 时有效。当授权失败时触发。event.detail = {type, errorMessage},此时 type 的值为 getAuthorize。 | `data`:() => void | - |
|
|
30
|
+
| `launchapp` | 微信小程序:打开 APP 成功的回调,open-type=launchApp时有效 | `data`:() => void | - |
|
|
31
|
+
| `opensetting` | 微信小程序:在打开授权设置页后回调,open-type=openSetting时有效 | `data`:() => void | - |
|
|
32
|
+
| `chooseavatar` | 微信小程序:获取用户头像回调,open-type=chooseAvatar时有效。返回 e.detail.avatarUrl 为头像临时文件链接。 | `data`:() => void | - |
|
|
33
|
+
| `getAuthorize` | 支付宝小程序:当 open-type 为 getAuthorize 时有效。当授权成功时触发。 | `data`:() => void | - |
|
|
34
|
+
| `followLifestyle` | 支付宝小程序:当 open-type 为 lifestyle 时有效。当点击按钮时触发。event.detail = { followStatus },folllowStatus 合法值有 1、2、3,其中 1 表示已关注。2 表示用户不允许关注。3 表示发生未知错误;。 | `data`:() => void | - |
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
### Slots
|
|
38
|
+
| 插槽名 | 说明 | 参数 | 支持版本 |
|
|
39
|
+
| ----- | ----- | --- | -------- |
|
|
40
|
+
| `default` | 默认插槽 | - | - |
|
|
41
|
+
|
|
42
|
+
|
|
@@ -4,9 +4,9 @@
|
|
|
4
4
|
|
|
5
5
|
---$
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
## 代码演示
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
## 按钮大小
|
|
10
10
|
|
|
11
11
|
通过`mode`设置按钮的大小,默认值是`200`
|
|
12
12
|
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
</template>
|
|
20
20
|
```
|
|
21
21
|
|
|
22
|
-
|
|
22
|
+
## 文本颜色
|
|
23
23
|
|
|
24
24
|
通过`color`设置字体颜色
|
|
25
25
|
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
</template>
|
|
30
30
|
```
|
|
31
31
|
|
|
32
|
-
|
|
32
|
+
## 背景
|
|
33
33
|
|
|
34
34
|
通过`background`设置背景,支持纯颜色、背景图、渐变色
|
|
35
35
|
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
</template>
|
|
42
42
|
```
|
|
43
43
|
|
|
44
|
-
|
|
44
|
+
## 边框颜色
|
|
45
45
|
|
|
46
46
|
通过`borderColor`设置边框颜色,默认值是`#ffffff`
|
|
47
47
|
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
</template>
|
|
52
52
|
```
|
|
53
53
|
|
|
54
|
-
|
|
54
|
+
## 宽度
|
|
55
55
|
|
|
56
56
|
通过`width`设置宽度,默认值是`auto`
|
|
57
57
|
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
</template>
|
|
67
67
|
```
|
|
68
68
|
|
|
69
|
-
|
|
69
|
+
## 圆角按钮
|
|
70
70
|
|
|
71
71
|
通过`round`设置按钮是否为圆角,默认值是`true`
|
|
72
72
|
|
|
@@ -77,7 +77,7 @@
|
|
|
77
77
|
</template>
|
|
78
78
|
```
|
|
79
79
|
|
|
80
|
-
|
|
80
|
+
## 禁止按钮
|
|
81
81
|
|
|
82
82
|
通过`disabled`设置按钮是否禁止,默认值是`false`
|
|
83
83
|
|
|
@@ -87,7 +87,7 @@
|
|
|
87
87
|
</template>
|
|
88
88
|
```
|
|
89
89
|
|
|
90
|
-
|
|
90
|
+
## 加载中
|
|
91
91
|
|
|
92
92
|
通过`loading`设置是否加载中,默认值是`false`
|
|
93
93
|
|
|
@@ -99,7 +99,7 @@
|
|
|
99
99
|
</template>
|
|
100
100
|
```
|
|
101
101
|
|
|
102
|
-
|
|
102
|
+
## 插槽
|
|
103
103
|
|
|
104
104
|
```html
|
|
105
105
|
<template>
|
|
@@ -113,7 +113,7 @@
|
|
|
113
113
|
</template>
|
|
114
114
|
```
|
|
115
115
|
|
|
116
|
-
|
|
116
|
+
## 超长文字
|
|
117
117
|
|
|
118
118
|
```html
|
|
119
119
|
<template>
|
|
@@ -123,16 +123,8 @@
|
|
|
123
123
|
|
|
124
124
|
---$
|
|
125
125
|
|
|
126
|
-
### API
|
|
127
|
-
|
|
128
126
|
<!-- props -->
|
|
129
127
|
|
|
130
|
-
#### Slots
|
|
131
|
-
|
|
132
|
-
| 插槽名 | 说明 | 插槽参数 | 支持版本 |
|
|
133
|
-
| --------- | -------- | -------- | -------- |
|
|
134
|
-
| `default` | 按钮内容 | - | - |
|
|
135
|
-
|
|
136
128
|
---$
|
|
137
129
|
{{fuyuwei}}
|
|
138
130
|
|
|
@@ -107,62 +107,126 @@
|
|
|
107
107
|
{
|
|
108
108
|
"name": "[event]click",
|
|
109
109
|
"description": "非禁止并且非加载中,才能点击",
|
|
110
|
-
"
|
|
110
|
+
"params": [
|
|
111
|
+
{
|
|
112
|
+
"name": "data",
|
|
113
|
+
"description": "() => void"
|
|
114
|
+
}
|
|
115
|
+
]
|
|
111
116
|
},
|
|
112
117
|
{
|
|
113
118
|
"name": "[event]getuserinfo",
|
|
114
119
|
"description": "微信小程序:用户点击该按钮时,会返回获取到的用户信息,从返回参数的 detail 中获取到的值同 wx.getUserInfo。支付宝小程序:当 open-type 为 getAuthorize 且 scope 为 userInfo 时有效。当授权成功时触发。",
|
|
115
|
-
"
|
|
120
|
+
"params": [
|
|
121
|
+
{
|
|
122
|
+
"name": "data",
|
|
123
|
+
"description": "() => void"
|
|
124
|
+
}
|
|
125
|
+
]
|
|
116
126
|
},
|
|
117
127
|
{
|
|
118
128
|
"name": "[event]contact",
|
|
119
129
|
"description": "微信小程序:客服消息回调,open-type=\"contact\"时有效。",
|
|
120
|
-
"
|
|
130
|
+
"params": [
|
|
131
|
+
{
|
|
132
|
+
"name": "data",
|
|
133
|
+
"description": "() => void"
|
|
134
|
+
}
|
|
135
|
+
]
|
|
121
136
|
},
|
|
122
137
|
{
|
|
123
138
|
"name": "[event]getphonenumber",
|
|
124
139
|
"description": "微信小程序:手机号快速验证回调,open-type=getPhoneNumber时有效。Tips:在触发 bindgetphonenumber 回调后应立即隐藏手机号按钮组件,或置为 disabled 状态,避免用户重复授权手机号产生额外费用。支付宝小程序:当 open-type 为 getAuthorize 且 scope 为 phoneNumber 时有效。当授权成功时触发。",
|
|
125
|
-
"
|
|
140
|
+
"params": [
|
|
141
|
+
{
|
|
142
|
+
"name": "data",
|
|
143
|
+
"description": "() => void"
|
|
144
|
+
}
|
|
145
|
+
]
|
|
126
146
|
},
|
|
127
147
|
{
|
|
128
148
|
"name": "[event]getrealtimephonenumber",
|
|
129
149
|
"description": "微信小程序:手机号实时验证回调,open-type=getRealtimePhoneNumber 时有效。Tips:在触发 bindgetrealtimephonenumber 回调后应立即隐藏手机号按钮组件,或置为 disabled 状态,避免用户重复授权手机号产生额外费用。",
|
|
130
|
-
"
|
|
150
|
+
"params": [
|
|
151
|
+
{
|
|
152
|
+
"name": "data",
|
|
153
|
+
"description": "() => void"
|
|
154
|
+
}
|
|
155
|
+
]
|
|
131
156
|
},
|
|
132
157
|
{
|
|
133
158
|
"name": "[event]agreeprivacyauthorization",
|
|
134
159
|
"description": "微信小程序:用户同意隐私协议事件回调,open-type=agreePrivacyAuthorization时有效 (Tips: 如果使用 onNeedPrivacyAuthorization 接口,需要在 bindagreeprivacyauthorization 触发后再调用 resolve({ event: \"agree\", buttonId }))",
|
|
135
|
-
"
|
|
160
|
+
"params": [
|
|
161
|
+
{
|
|
162
|
+
"name": "data",
|
|
163
|
+
"description": "() => void"
|
|
164
|
+
}
|
|
165
|
+
]
|
|
136
166
|
},
|
|
137
167
|
{
|
|
138
168
|
"name": "[event]error",
|
|
139
169
|
"description": "微信小程序:当使用开放能力时,发生错误的回调,open-type=launchApp时有效 支付宝小程序:当 open-type 为 getAuthorize 时有效。当授权失败时触发。event.detail = {type, errorMessage},此时 type 的值为 getAuthorize。",
|
|
140
|
-
"
|
|
170
|
+
"params": [
|
|
171
|
+
{
|
|
172
|
+
"name": "data",
|
|
173
|
+
"description": "() => void"
|
|
174
|
+
}
|
|
175
|
+
]
|
|
141
176
|
},
|
|
142
177
|
{
|
|
143
178
|
"name": "[event]launchapp",
|
|
144
179
|
"description": "微信小程序:打开 APP 成功的回调,open-type=launchApp时有效",
|
|
145
|
-
"
|
|
180
|
+
"params": [
|
|
181
|
+
{
|
|
182
|
+
"name": "data",
|
|
183
|
+
"description": "() => void"
|
|
184
|
+
}
|
|
185
|
+
]
|
|
146
186
|
},
|
|
147
187
|
{
|
|
148
188
|
"name": "[event]opensetting",
|
|
149
189
|
"description": "微信小程序:在打开授权设置页后回调,open-type=openSetting时有效",
|
|
150
|
-
"
|
|
190
|
+
"params": [
|
|
191
|
+
{
|
|
192
|
+
"name": "data",
|
|
193
|
+
"description": "() => void"
|
|
194
|
+
}
|
|
195
|
+
]
|
|
151
196
|
},
|
|
152
197
|
{
|
|
153
198
|
"name": "[event]chooseavatar",
|
|
154
199
|
"description": "微信小程序:获取用户头像回调,open-type=chooseAvatar时有效。返回 e.detail.avatarUrl 为头像临时文件链接。",
|
|
155
|
-
"
|
|
200
|
+
"params": [
|
|
201
|
+
{
|
|
202
|
+
"name": "data",
|
|
203
|
+
"description": "() => void"
|
|
204
|
+
}
|
|
205
|
+
]
|
|
156
206
|
},
|
|
157
207
|
{
|
|
158
208
|
"name": "[event]getAuthorize",
|
|
159
209
|
"description": "支付宝小程序:当 open-type 为 getAuthorize 时有效。当授权成功时触发。",
|
|
160
|
-
"
|
|
210
|
+
"params": [
|
|
211
|
+
{
|
|
212
|
+
"name": "data",
|
|
213
|
+
"description": "() => void"
|
|
214
|
+
}
|
|
215
|
+
]
|
|
161
216
|
},
|
|
162
217
|
{
|
|
163
218
|
"name": "[event]followLifestyle",
|
|
164
219
|
"description": "支付宝小程序:当 open-type 为 lifestyle 时有效。当点击按钮时触发。event.detail = { followStatus },folllowStatus 合法值有 1、2、3,其中 1 表示已关注。2 表示用户不允许关注。3 表示发生未知错误;。",
|
|
165
|
-
"
|
|
220
|
+
"params": [
|
|
221
|
+
{
|
|
222
|
+
"name": "data",
|
|
223
|
+
"description": "() => void"
|
|
224
|
+
}
|
|
225
|
+
]
|
|
226
|
+
},
|
|
227
|
+
{
|
|
228
|
+
"name": "[slot]default",
|
|
229
|
+
"description": "默认插槽"
|
|
166
230
|
}
|
|
167
231
|
]
|
|
168
232
|
}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
## API
|
|
2
|
+
|
|
3
|
+
### Props
|
|
2
4
|
| 属性名 | 说明 | 类型 | 默认值 | 可选值 | 支持版本 |
|
|
3
5
|
| ----- | ----- | --- | ------- | ------ | -------- |
|
|
4
6
|
| `title` | 尺寸 | `string` | `日期选择` | - | - |
|
|
@@ -30,9 +32,17 @@
|
|
|
30
32
|
| `showScrollbar` | 是否显示滚动条 | `boolean` | `true` | - | `1.22.27` |
|
|
31
33
|
|
|
32
34
|
|
|
33
|
-
|
|
35
|
+
### Events
|
|
34
36
|
| 事件名 | 说明 | 事件参数 | 支持版本 |
|
|
35
37
|
| ----- | ----- | ------- | -------- |
|
|
36
38
|
| `select` | 选择日期时触发 | `days`:选中的日期列表<br/>`day`:当前选中的日期 | - |
|
|
37
39
|
| `confirm` | 点击确定按钮时触发 | `days`:当前选中的日期列表 | - |
|
|
38
40
|
| `view-month` | 页面展示月份发生变化时触发 | `month`:当前页面上显示的月份 | - |
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
### Methods
|
|
44
|
+
| 方法名 | 说明 | 参数 | 返回值 | 支持版本 |
|
|
45
|
+
| ----- | ----- | --- | ------ | -------- |
|
|
46
|
+
| `showMonth` | 设置默认展示的月份 | - | - | - |
|
|
47
|
+
|
|
48
|
+
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
---$
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
## 基础用法
|
|
8
8
|
|
|
9
9
|
- 属性`height`用于设置日历的高度,单位为`rpx`,默认`100%`
|
|
10
10
|
- 属性`showTitle`用于设置是否显示日历的标题,默认`true`
|
|
@@ -26,9 +26,9 @@
|
|
|
26
26
|
</template>
|
|
27
27
|
```
|
|
28
28
|
|
|
29
|
-
|
|
29
|
+
## 结合弹窗使用
|
|
30
30
|
|
|
31
|
-
|
|
31
|
+
## 基础使用
|
|
32
32
|
|
|
33
33
|
```html
|
|
34
34
|
<script setup lang="ts">
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
</template>
|
|
54
54
|
```
|
|
55
55
|
|
|
56
|
-
|
|
56
|
+
## 多个日期
|
|
57
57
|
|
|
58
58
|
- 属性`mode`用于设置日历的模式,可选值`single`、`multiple`、`range`,默认`single`
|
|
59
59
|
- 设置为`multiple`可以选择多个日期
|
|
@@ -81,7 +81,7 @@
|
|
|
81
81
|
</template>
|
|
82
82
|
```
|
|
83
83
|
|
|
84
|
-
|
|
84
|
+
## 日期范围
|
|
85
85
|
|
|
86
86
|
- 属性`mode`用于设置日历的模式,可选值`single`、`multiple`、`range`,默认`single`
|
|
87
87
|
- 设置为`range`可以选择日期范围
|
|
@@ -109,7 +109,7 @@
|
|
|
109
109
|
</template>
|
|
110
110
|
```
|
|
111
111
|
|
|
112
|
-
|
|
112
|
+
## 自定义主题色
|
|
113
113
|
|
|
114
114
|
- 属性`color`可以设置日历的主题色,包括周末日期颜色、日期选中颜色、日期范围选中颜色、确定按钮颜色
|
|
115
115
|
|
|
@@ -136,7 +136,7 @@
|
|
|
136
136
|
</template>
|
|
137
137
|
```
|
|
138
138
|
|
|
139
|
-
|
|
139
|
+
## 自定义文案
|
|
140
140
|
|
|
141
141
|
- 属性`title`可以设置标题文案
|
|
142
142
|
- 属性`startText`可以设置开始日期的文案,`mode`值为`range`时生效
|
|
@@ -165,7 +165,7 @@
|
|
|
165
165
|
</template>
|
|
166
166
|
```
|
|
167
167
|
|
|
168
|
-
|
|
168
|
+
## 日期最大范围
|
|
169
169
|
|
|
170
170
|
- 属性`minDate`可以设置日期的最小可选范围
|
|
171
171
|
- 属性`maxDate`可以设置日期的最大可选范围
|
|
@@ -195,7 +195,7 @@
|
|
|
195
195
|
</template>
|
|
196
196
|
```
|
|
197
197
|
|
|
198
|
-
|
|
198
|
+
## 多选数量限制
|
|
199
199
|
|
|
200
200
|
- 属性`maxCount`用于设置多选模式下最多可选的日期数量
|
|
201
201
|
|
|
@@ -222,7 +222,7 @@
|
|
|
222
222
|
</template>
|
|
223
223
|
```
|
|
224
224
|
|
|
225
|
-
|
|
225
|
+
## 多选数量限制
|
|
226
226
|
|
|
227
227
|
- 属性`maxRange`用于设置范围模式下最多可选的日期数量
|
|
228
228
|
- 属性`showRangePrompt`用于设置范围模式下是否显示超出数量时的提示文案
|
|
@@ -251,7 +251,7 @@
|
|
|
251
251
|
</template>
|
|
252
252
|
```
|
|
253
253
|
|
|
254
|
-
|
|
254
|
+
## 默认选择日期
|
|
255
255
|
|
|
256
256
|
- 属性`list`用于设置默认选择的日期
|
|
257
257
|
|
|
@@ -278,7 +278,7 @@
|
|
|
278
278
|
</template>
|
|
279
279
|
```
|
|
280
280
|
|
|
281
|
-
|
|
281
|
+
## 默认展示月份
|
|
282
282
|
|
|
283
283
|
- 属性`defaultMonth`用于设置默认展示的月份,因为弹窗中的日历不在文档流,无法设置滚动距离,所以需要在弹窗动画结束之后手动设置默认展示的月份
|
|
284
284
|
|
|
@@ -312,7 +312,7 @@
|
|
|
312
312
|
</template>
|
|
313
313
|
```
|
|
314
314
|
|
|
315
|
-
|
|
315
|
+
## 隐藏确定按钮
|
|
316
316
|
|
|
317
317
|
- 属性`showConfirm`用于设置是否显示确定按钮
|
|
318
318
|
- 事件`select`用于监听选择日期的事件
|
|
@@ -340,7 +340,7 @@
|
|
|
340
340
|
</template>
|
|
341
341
|
```
|
|
342
342
|
|
|
343
|
-
|
|
343
|
+
## 只读
|
|
344
344
|
|
|
345
345
|
- 属性`readonly`用于设置是否只读
|
|
346
346
|
|
|
@@ -367,7 +367,7 @@
|
|
|
367
367
|
</template>
|
|
368
368
|
```
|
|
369
369
|
|
|
370
|
-
|
|
370
|
+
## 隐藏背景月份
|
|
371
371
|
|
|
372
372
|
- 属性`showMark`用于设置是否显示背景月份
|
|
373
373
|
|
|
@@ -394,7 +394,7 @@
|
|
|
394
394
|
</template>
|
|
395
395
|
```
|
|
396
396
|
|
|
397
|
-
|
|
397
|
+
## 自定义组件
|
|
398
398
|
|
|
399
399
|
- 属性`weekendColor`用于设置周末日期颜色
|
|
400
400
|
- 属性`monthCount`用于设置渲染的月数
|
|
@@ -433,15 +433,7 @@
|
|
|
433
433
|
|
|
434
434
|
---$
|
|
435
435
|
|
|
436
|
-
### API
|
|
437
|
-
|
|
438
436
|
<!-- props -->
|
|
439
437
|
|
|
440
|
-
#### Methods
|
|
441
|
-
|
|
442
|
-
| 方法名 | 说明 | 参数 | 支持版本 |
|
|
443
|
-
| --------- | ------------------ | --------------------------- | -------- |
|
|
444
|
-
| showMonth | 设置默认展示的月份 | 要展示的年月(YYYY-MM格式) | - |
|
|
445
|
-
|
|
446
438
|
---$
|
|
447
439
|
{{xuyajun}}
|
|
@@ -182,7 +182,6 @@
|
|
|
182
182
|
{
|
|
183
183
|
"name": "[event]select",
|
|
184
184
|
"description": "选择日期时触发",
|
|
185
|
-
"type": "(days:(number|string)[],day:number|string) => void",
|
|
186
185
|
"params": [
|
|
187
186
|
{
|
|
188
187
|
"name": "days",
|
|
@@ -197,7 +196,6 @@
|
|
|
197
196
|
{
|
|
198
197
|
"name": "[event]confirm",
|
|
199
198
|
"description": "点击确定按钮时触发",
|
|
200
|
-
"type": "(days:(number|string)[]) => void",
|
|
201
199
|
"params": [
|
|
202
200
|
{
|
|
203
201
|
"name": "days",
|
|
@@ -208,13 +206,16 @@
|
|
|
208
206
|
{
|
|
209
207
|
"name": "[event]view-month",
|
|
210
208
|
"description": "页面展示月份发生变化时触发",
|
|
211
|
-
"type": "(month:string) => void",
|
|
212
209
|
"params": [
|
|
213
210
|
{
|
|
214
211
|
"name": "month",
|
|
215
212
|
"description": "当前页面上显示的月份"
|
|
216
213
|
}
|
|
217
214
|
]
|
|
215
|
+
},
|
|
216
|
+
{
|
|
217
|
+
"name": "[method]showMonth",
|
|
218
|
+
"description": "设置默认展示的月份"
|
|
218
219
|
}
|
|
219
220
|
]
|
|
220
221
|
}
|
|
@@ -1,11 +1,15 @@
|
|
|
1
|
-
|
|
1
|
+
## API
|
|
2
|
+
|
|
3
|
+
### Props
|
|
2
4
|
| 属性名 | 说明 | 类型 | 默认值 | 可选值 | 支持版本 |
|
|
3
5
|
| ----- | ----- | --- | ------- | ------ | -------- |
|
|
4
6
|
| `value` | 当前值,支持v-model:value双向绑定 | `string / number` | `` | - | - |
|
|
5
7
|
| `data` | 菜单数据列表 | `CagegoryItem[]` | `[]` | - | - |
|
|
6
8
|
|
|
7
9
|
|
|
8
|
-
|
|
10
|
+
### Events
|
|
9
11
|
| 事件名 | 说明 | 事件参数 | 支持版本 |
|
|
10
12
|
| ----- | ----- | ------- | -------- |
|
|
11
13
|
| `change` | 分类变化时触发 | `item`:变化后的分类数据 | - |
|
|
14
|
+
|
|
15
|
+
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
---$
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
## 基础用法
|
|
8
8
|
|
|
9
9
|
- 分类数据需按照下方`script`中的格式传入
|
|
10
10
|
- 分类需要传入`title`和`value`
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
</template>
|
|
29
29
|
```
|
|
30
30
|
|
|
31
|
-
|
|
31
|
+
## 插槽模式
|
|
32
32
|
|
|
33
33
|
```html
|
|
34
34
|
<script lang="ts" setup>
|
|
@@ -58,8 +58,6 @@
|
|
|
58
58
|
|
|
59
59
|
---$
|
|
60
60
|
|
|
61
|
-
### API
|
|
62
|
-
|
|
63
61
|
<!-- props -->
|
|
64
62
|
|
|
65
63
|
---$
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
## API
|
|
2
|
+
|
|
3
|
+
### Props
|
|
2
4
|
| 属性名 | 说明 | 类型 | 默认值 | 可选值 | 支持版本 |
|
|
3
5
|
| ----- | ----- | --- | ------- | ------ | -------- |
|
|
4
6
|
| `v-model` | 当前值 | `boolean` | `false` | - | - |
|
|
@@ -18,8 +20,10 @@
|
|
|
18
20
|
| `columnGap` | 复选框和文本间距,单位rpx | `number / string` | `16` | - | - |
|
|
19
21
|
|
|
20
22
|
|
|
21
|
-
|
|
23
|
+
### Events
|
|
22
24
|
| 事件名 | 说明 | 事件参数 | 支持版本 |
|
|
23
25
|
| ----- | ----- | ------- | -------- |
|
|
24
26
|
| `click` | 点击复选框时触发的事件 | `value`:当前复选框的绑定值<br/>`suspend`:等待<br/>`next`:继续<br/>`stop`:停止 | - |
|
|
25
27
|
| `change` | 当绑定值变化时触发的事件 | `value`:当前复选框的绑定值 | - |
|
|
28
|
+
|
|
29
|
+
|