-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(component): add h5 component error tips
- Loading branch information
1 parent
75d3de6
commit 16c2ed1
Showing
15 changed files
with
221 additions
and
0 deletions.
There are no files selected for viewing
17 changes: 17 additions & 0 deletions
17
packages/taro-components/src/components/ad-custom/ad-custom.tsx
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,17 @@ | ||
// eslint-disable-next-line @typescript-eslint/no-unused-vars | ||
import { Component, h, Host } from '@stencil/core' | ||
|
||
@Component({ | ||
tag: 'taro-ad-custom-core' | ||
}) | ||
export class AdCustom { | ||
componentDidLoad () { | ||
console.error('H5 暂不支持 AdCustom 组件!') | ||
} | ||
|
||
render () { | ||
return ( | ||
<Host /> | ||
) | ||
} | ||
} |
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,17 @@ | ||
// eslint-disable-next-line @typescript-eslint/no-unused-vars | ||
import { Component, h, Host } from '@stencil/core' | ||
|
||
@Component({ | ||
tag: 'taro-ad-core' | ||
}) | ||
export class Ad { | ||
componentDidLoad () { | ||
console.error('H5 暂不支持 Ad 组件!') | ||
} | ||
|
||
render () { | ||
return ( | ||
<Host /> | ||
) | ||
} | ||
} |
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,17 @@ | ||
// eslint-disable-next-line @typescript-eslint/no-unused-vars | ||
import { Component, h, Host } from '@stencil/core' | ||
|
||
@Component({ | ||
tag: 'taro-editor-core' | ||
}) | ||
export class Editor { | ||
componentDidLoad () { | ||
console.error('H5 暂不支持 Editor 组件!') | ||
} | ||
|
||
render () { | ||
return ( | ||
<Host /> | ||
) | ||
} | ||
} |
17 changes: 17 additions & 0 deletions
17
...es/taro-components/src/components/functional-page-navigator/functional-page-navigator.tsx
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,17 @@ | ||
// eslint-disable-next-line @typescript-eslint/no-unused-vars | ||
import { Component, h, Host } from '@stencil/core' | ||
|
||
@Component({ | ||
tag: 'taro-functional-page-navigator-core' | ||
}) | ||
export class FunctionalPageNavigator { | ||
componentDidLoad () { | ||
console.error('H5 暂不支持 FunctionalPageNavigator 组件!') | ||
} | ||
|
||
render () { | ||
return ( | ||
<Host /> | ||
) | ||
} | ||
} |
17 changes: 17 additions & 0 deletions
17
packages/taro-components/src/components/keyboard-accessory/keyboard-accessory.tsx
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,17 @@ | ||
// eslint-disable-next-line @typescript-eslint/no-unused-vars | ||
import { Component, h, Host } from '@stencil/core' | ||
|
||
@Component({ | ||
tag: 'taro-keyboard-accessory-core' | ||
}) | ||
export class KeyboardAccessory { | ||
componentDidLoad () { | ||
console.error('H5 暂不支持 KeyboardAccessory 组件!') | ||
} | ||
|
||
render () { | ||
return ( | ||
<Host /> | ||
) | ||
} | ||
} |
17 changes: 17 additions & 0 deletions
17
packages/taro-components/src/components/live-player/live-player.tsx
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,17 @@ | ||
// eslint-disable-next-line @typescript-eslint/no-unused-vars | ||
import { Component, h, Host } from '@stencil/core' | ||
|
||
@Component({ | ||
tag: 'taro-live-player-core' | ||
}) | ||
export class LivePlayer { | ||
componentDidLoad () { | ||
console.error('H5 暂不支持 LivePlayer 组件!') | ||
} | ||
|
||
render () { | ||
return ( | ||
<Host /> | ||
) | ||
} | ||
} |
17 changes: 17 additions & 0 deletions
17
packages/taro-components/src/components/live-pusher/live-pusher.tsx
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,17 @@ | ||
// eslint-disable-next-line @typescript-eslint/no-unused-vars | ||
import { Component, h, Host } from '@stencil/core' | ||
|
||
@Component({ | ||
tag: 'taro-live-pusher-core' | ||
}) | ||
export class LivePusher { | ||
componentDidLoad () { | ||
console.error('H5 暂不支持 LivePusher 组件!') | ||
} | ||
|
||
render () { | ||
return ( | ||
<Host /> | ||
) | ||
} | ||
} |
17 changes: 17 additions & 0 deletions
17
packages/taro-components/src/components/navigation-bar/navigation-bar.tsx
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,17 @@ | ||
// eslint-disable-next-line @typescript-eslint/no-unused-vars | ||
import { Component, h, Host } from '@stencil/core' | ||
|
||
@Component({ | ||
tag: 'taro-navigation-bar-core' | ||
}) | ||
export class NavigationBar { | ||
componentDidLoad () { | ||
console.error('H5 暂不支持 NavigationBar 组件!') | ||
} | ||
|
||
render () { | ||
return ( | ||
<Host /> | ||
) | ||
} | ||
} |
17 changes: 17 additions & 0 deletions
17
packages/taro-components/src/components/official-account/official-account.tsx
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,17 @@ | ||
// eslint-disable-next-line @typescript-eslint/no-unused-vars | ||
import { Component, h, Host } from '@stencil/core' | ||
|
||
@Component({ | ||
tag: 'taro-official-account-core' | ||
}) | ||
export class OfficialAccount { | ||
componentDidLoad () { | ||
console.error('H5 暂不支持 OfficialAccount 组件!') | ||
} | ||
|
||
render () { | ||
return ( | ||
<Host /> | ||
) | ||
} | ||
} |
17 changes: 17 additions & 0 deletions
17
packages/taro-components/src/components/page-container/page-container.tsx
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,17 @@ | ||
// eslint-disable-next-line @typescript-eslint/no-unused-vars | ||
import { Component, h, Host } from '@stencil/core' | ||
|
||
@Component({ | ||
tag: 'taro-page-container-core' | ||
}) | ||
export class PageContainer { | ||
componentDidLoad () { | ||
console.error('H5 暂不支持 PageContainer 组件!') | ||
} | ||
|
||
render () { | ||
return ( | ||
<Host /> | ||
) | ||
} | ||
} |
17 changes: 17 additions & 0 deletions
17
packages/taro-components/src/components/page-meta/page-meta.tsx
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,17 @@ | ||
// eslint-disable-next-line @typescript-eslint/no-unused-vars | ||
import { Component, h, Host } from '@stencil/core' | ||
|
||
@Component({ | ||
tag: 'taro-page-meta-core' | ||
}) | ||
export class PageMeta { | ||
componentDidLoad () { | ||
console.error('H5 暂不支持 PageMeta 组件!') | ||
} | ||
|
||
render () { | ||
return ( | ||
<Host /> | ||
) | ||
} | ||
} |
File renamed without changes.
17 changes: 17 additions & 0 deletions
17
packages/taro-components/src/components/share-element/share-element.tsx
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,17 @@ | ||
// eslint-disable-next-line @typescript-eslint/no-unused-vars | ||
import { Component, h, Host } from '@stencil/core' | ||
|
||
@Component({ | ||
tag: 'taro-share-element-core' | ||
}) | ||
export class ShareElement { | ||
componentDidLoad () { | ||
console.error('H5 暂不支持 ShareElement 组件!') | ||
} | ||
|
||
render () { | ||
return ( | ||
<Host /> | ||
) | ||
} | ||
} |
17 changes: 17 additions & 0 deletions
17
packages/taro-components/src/components/voip-room/voip-room.tsx
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,17 @@ | ||
// eslint-disable-next-line @typescript-eslint/no-unused-vars | ||
import { Component, h, Host } from '@stencil/core' | ||
|
||
@Component({ | ||
tag: 'taro-voip-room-core' | ||
}) | ||
export class VoipRoom { | ||
componentDidLoad () { | ||
console.error('H5 暂不支持 VoipRoom 组件!') | ||
} | ||
|
||
render () { | ||
return ( | ||
<Host /> | ||
) | ||
} | ||
} |
File renamed without changes.