Skip to content

Commit bd4c9fb

Browse files
committed
chore: 适配抖音
1 parent 1f9a6a4 commit bd4c9fb

62 files changed

Lines changed: 240 additions & 233 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

packages/mpx-cube-ui/lib/common/mixins/confirm-button-group.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ export default getMixin({
2424
*/
2525
confirmBtn: {
2626
type: Object,
27-
optionalTypes: [String],
2827
value: {
2928
...defConfirmBtn
3029
}
@@ -34,7 +33,6 @@ export default getMixin({
3433
*/
3534
cancelBtn: {
3635
type: Object,
37-
optionalTypes: [String],
3836
value: {
3937
...defCancelBtn
4038
}

packages/mpx-cube-ui/lib/common/mixins/form/checkbox-group.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ export default getMixin({
66
* @ali true
77
* @wx true
88
* @web true
9+
* @tt true
910
*/
1011
options: {
1112
type: Array,
@@ -17,6 +18,7 @@ export default getMixin({
1718
* @ali true
1819
* @wx true
1920
* @web true
21+
* @tt true
2022
*/
2123
values: {
2224
type: Array,
@@ -28,6 +30,7 @@ export default getMixin({
2830
* @ali true
2931
* @wx true
3032
* @web true
33+
* @tt true
3134
*/
3235
shape: {
3336
type: String,
@@ -38,6 +41,7 @@ export default getMixin({
3841
* @ali true
3942
* @wx true
4043
* @web true
44+
* @tt true
4145
*/
4246
inline: {
4347
type: Boolean,
@@ -48,6 +52,7 @@ export default getMixin({
4852
* @ali true
4953
* @wx true
5054
* @web true
55+
* @tt true
5156
*/
5257
colNum: {
5358
type: Number,

packages/mpx-cube-ui/lib/common/mixins/form/form-item.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ export default getMixin({
77
* @ali true
88
* @wx true
99
* @web true
10+
* @tt true
1011
*/
1112
option: {
1213
type: Object,
@@ -24,10 +25,10 @@ export default getMixin({
2425
* @ali true
2526
* @wx true
2627
* @web true
28+
* @tt true
2729
*/
2830
value: {
2931
type: String,
30-
optionalTypes: [Number],
3132
value: ''
3233
}
3334
}

packages/mpx-cube-ui/lib/common/mixins/form/radio-group.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ export default getMixin({
66
* @ali true
77
* @wx true
88
* @web true
9+
* @tt true
910
*/
1011
options: {
1112
type: Array,
@@ -16,17 +17,18 @@ export default getMixin({
1617
* @ali true
1718
* @wx true
1819
* @web true
20+
* @tt true
1921
*/
2022
value: {
2123
type: String,
22-
optionalTypes: [Number],
2324
value: ''
2425
},
2526
/**
2627
* @description 是否行内展示
2728
* @ali true
2829
* @wx true
2930
* @web true
31+
* @tt true
3032
*/
3133
inline: {
3234
type: Boolean,
@@ -37,6 +39,7 @@ export default getMixin({
3739
* @ali true
3840
* @wx true
3941
* @web true
42+
* @tt true
4043
*/
4144
colNum: {
4245
type: Number,

packages/mpx-cube-ui/lib/common/mixins/picker-modal/picker-modal-base.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ export default getMixin({
88
* @wx true
99
* @ali true
1010
* @web true
11+
* @tt true
1112
*/
1213
content: {
1314
type: String,
@@ -18,6 +19,7 @@ export default getMixin({
1819
* @wx true
1920
* @ali true
2021
* @web true
22+
* @tt true
2123
*/
2224
layout: {
2325
type: String,
@@ -28,6 +30,7 @@ export default getMixin({
2830
* @wx true
2931
* @ali true
3032
* @web true
33+
* @tt true
3134
*/
3235
noBuiltInBtns: {
3336
type: Boolean,
@@ -38,6 +41,7 @@ export default getMixin({
3841
* @wx true
3942
* @ali true
4043
* @web true
44+
* @tt true
4145
*/
4246
maskClosable: {
4347
type: Boolean,

packages/mpx-cube-ui/lib/components/button/button.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ createComponent({
149149
*/
150150
iconSize: {
151151
type: Number,
152-
optionalTypes: [String]
152+
value: 0
153153
}
154154
},
155155
computed: {

packages/mpx-cube-ui/lib/components/button/index.mpx

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,27 @@
11
<template>
22
<button
3-
hover-class@wx|ali|web|android="none"
3+
hover-class@wx|ali|web|android|tt="none"
44
wx:class="{{ btnClass }}"
55
wx:style="{{ styleConfig.btn }}"
6-
lang@wx="{{ lang }}"
7-
session-from@wx="{{ sessionFrom }}"
8-
send-message-title@wx="{{ sendMessageTitle }}"
9-
send-message-path@wx="{{ sendMessagePath }}"
10-
send-message-img@wx="{{ sendMessageImg }}"
11-
show-message-card@wx="{{ showMessageCard }}"
12-
form-type@wx|ali="{{ formType }}"
13-
app-parameter@wx|ali="{{ appParameter }}"
14-
open-type@wx|ali="{{ !disabled ? openType : '' }}"
6+
lang@wx|tt="{{ lang }}"
7+
session-from@wx|tt="{{ sessionFrom }}"
8+
send-message-title@wx|tt="{{ sendMessageTitle }}"
9+
send-message-path@wx|tt="{{ sendMessagePath }}"
10+
send-message-img@wx|tt="{{ sendMessageImg }}"
11+
show-message-card@wx|tt="{{ showMessageCard }}"
12+
form-type@wx|ali|tt="{{ formType }}"
13+
app-parameter@wx|ali|tt="{{ appParameter }}"
14+
open-type@wx|ali|tt="{{ !disabled ? openType : '' }}"
1515
scope@ali="{{ scope }}"
1616
public-id@ali="{{ publicId }}"
1717
bind:tap="onClick"
18-
bind:contact@wx="onContact"
19-
bind:opensetting@wx="onOpenSetting"
20-
bind:launchapp@wx="onLaunchApp"
21-
bind:chooseavatar@wx="onChooseAvatar"
22-
bind:getuserinfo@wx|ali="onGetUserInfo"
23-
bind:getphonenumber@wx|ali="onGetPhoneNumber"
24-
bind:error@wx|ali="onError"
18+
bind:contact@wx|tt="onContact"
19+
bind:opensetting@wx|tt="onOpenSetting"
20+
bind:launchapp@wx|tt="onLaunchApp"
21+
bind:chooseavatar@wx|tt="onChooseAvatar"
22+
bind:getuserinfo@wx|ali|tt="onGetUserInfo"
23+
bind:getphonenumber@wx|ali|tt="onGetPhoneNumber"
24+
bind:error@wx|ali|tt="onError"
2525
bind:getAuthorize@ali="onGetAuthorize"
2626
bind:followLifestyle@ali="onFollowLifestyle"
2727
>

packages/mpx-cube-ui/lib/components/cascade-picker-modal/cascade-picker-modal.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ createComponent({
99
* @wx true
1010
* @ali true
1111
* @web true
12+
* @tt true
1213
*/
1314
async: {
1415
type: Boolean,

packages/mpx-cube-ui/lib/components/cascade-picker-popup/cascade-picker-popup.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ createComponent({
99
* @wx true
1010
* @ali true
1111
* @web true
12+
* @tt true
1213
*/
1314
async: {
1415
type: Boolean,

packages/mpx-cube-ui/lib/components/checkbox-single/checkbox-single.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ createComponent({
99
* @ali true
1010
* @wx true
1111
* @web true
12+
* @tt true
1213
*/
1314
value: {
1415
type: Boolean,
@@ -20,6 +21,7 @@ createComponent({
2021
* @ali true
2122
* @wx true
2223
* @web true
24+
* @tt true
2325
*/
2426
shape: {
2527
type: String,

0 commit comments

Comments
 (0)