-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: 增加小程序行业 SDK 组件定义(商品收藏按钮、SKU 按钮、店铺关注卡片)
- Loading branch information
lixiajun
committed
Nov 15, 2023
1 parent
b1cb1c2
commit 077221a
Showing
9 changed files
with
129 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 3 additions & 0 deletions
3
...mona-manager-plugins/mona-service-targets/mona-service-target-mini/src/config/industry.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
export const industryComponents = { | ||
'coupon-card': 'ext://industry/coupon-card', | ||
'product-follow-button': 'ext://industry/product-follow-button', | ||
'sku-button': 'ext://industry/sku-button', | ||
'shop-follow-card': 'ext://industry/shop-follow-card', | ||
}; |
23 changes: 23 additions & 0 deletions
23
...gets/mona-service-target-mini/src/target/mini/baseComponents/ProductFollowButton/alias.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import { bubbleEventsAlias, hoverPropAlias, basePropAlias, propAliasMap } from '../prop'; | ||
import { ProductFollowButtonAlias as Alias } from '../type'; | ||
|
||
const alias: Alias = { | ||
...basePropAlias, | ||
...hoverPropAlias, | ||
...bubbleEventsAlias, | ||
shopId: propAliasMap.shopId, | ||
productId: propAliasMap.productId, | ||
disabled: propAliasMap.disabled, | ||
noStyle: propAliasMap.noStyle, | ||
size: propAliasMap.size, | ||
disabledClassName: propAliasMap.disabledClassName, | ||
followedClassName: propAliasMap.followedClassName, | ||
followedText: propAliasMap.followedText, | ||
unfollowedClassName: propAliasMap.unfollowedClassName, | ||
unfollowedText: propAliasMap.unfollowedText, | ||
onFollowed: propAliasMap['bind:followed'], | ||
onUnfollowed: propAliasMap['bind:unfollowed'], | ||
onError: propAliasMap.onError, | ||
}; | ||
|
||
export default alias; |
14 changes: 14 additions & 0 deletions
14
...e-targets/mona-service-target-mini/src/target/mini/baseComponents/ShopFollowCard/alias.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import { bubbleEventsAlias, hoverPropAlias, basePropAlias, propAliasMap } from '../prop'; | ||
import { ShopFollowCardAlias as Alias } from '../type'; | ||
|
||
const alias: Alias = { | ||
...basePropAlias, | ||
...hoverPropAlias, | ||
...bubbleEventsAlias, | ||
shopId: propAliasMap.shopId, | ||
onFollowed: propAliasMap['bind:followed'], | ||
onUnfollowed: propAliasMap['bind:unfollowed'], | ||
onError: propAliasMap.onError, | ||
}; | ||
|
||
export default alias; |
21 changes: 21 additions & 0 deletions
21
...ervice-targets/mona-service-target-mini/src/target/mini/baseComponents/SkuButton/alias.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import { bubbleEventsAlias, hoverPropAlias, basePropAlias, propAliasMap } from '../prop'; | ||
import { SkuButtonAlias as Alias } from '../type'; | ||
|
||
const alias: Alias = { | ||
...basePropAlias, | ||
...hoverPropAlias, | ||
...bubbleEventsAlias, | ||
shopId: propAliasMap.shopId, | ||
productId: propAliasMap.productId, | ||
actionType: propAliasMap.actionType, | ||
disabled: propAliasMap.disabled, | ||
noStyle: propAliasMap.noStyle, | ||
size: propAliasMap.size, | ||
type: propAliasMap.type, | ||
disabledClassName: propAliasMap.disabledClassName, | ||
text: propAliasMap.text, | ||
onSuccess: propAliasMap['bind:success'], | ||
onError: propAliasMap.onError, | ||
}; | ||
|
||
export default alias; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters