Skip to content

Commit

Permalink
feat(tt): 支持 awesome-user-card (NervJS#14936)
Browse files Browse the repository at this point in the history
* feat: tt 支持 awesome-user-card

* chore: 结尾空格

* test: update snapshot

* Update bytedance.spec.ts.snap

* Update mini-platform.spec.ts.snap

---------

Co-authored-by: Zakary <zakarycode@gmail.com>
  • Loading branch information
ChelesteWang and ZakaryCode authored Dec 29, 2023
1 parent 67d6891 commit 922b1b7
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,14 @@ require("./taro");
"default-avatar": _empty,
"use-empty-value": _false,
bindError: _empty
},
AwemeUserCard: {
"aweme-id": _empty,
width: "504",
height: "144",
fixed: _false,
"left-right-padding": _empty,
bindError: _empty
}
};
var hostConfig = {
Expand Down
1 change: 1 addition & 0 deletions packages/taro-tt/src/components-react.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ export const ConsumeCard = 'consume-card'
export const AwemeData = 'aweme-data'
export const RateButton = 'rate-button'
export const OpenData = 'open-data'
export const AwemeUserCard = 'aweme-user-card'
8 changes: 8 additions & 0 deletions packages/taro-tt/src/components.ts
Original file line number Diff line number Diff line change
Expand Up @@ -160,5 +160,13 @@ export const components = {
'default-avatar': _empty,
'use-empty-value': _false,
bindError: _empty
},
AwemeUserCard: {
'aweme-id': _empty,
width: '504',
height: '144',
fixed: _false,
'left-right-padding': _empty,
bindError: _empty
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -1987,6 +1987,14 @@ require("./runtime");
"default-avatar": _empty,
"use-empty-value": _false,
bindError: _empty
},
AwemeUserCard: {
"aweme-id": _empty,
width: "504",
height: "144",
fixed: _false,
"left-right-padding": _empty,
bindError: _empty
}
};
var hostConfig = {
Expand Down
2 changes: 1 addition & 1 deletion packages/taro/types/api/media/image.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,7 @@ declare module '../../index' {
* type: 'image',
* success: function (res) {
* // tempFilePath可以作为img标签的src属性显示图片
* const tempFilePaths = res.tempFilePaths
* const tempFilePaths = res.tempFiles
* }
* })
* ```
Expand Down

0 comments on commit 922b1b7

Please sign in to comment.