Skip to content

Commit

Permalink
feat(component): add h5 component error tips
Browse files Browse the repository at this point in the history
  • Loading branch information
ZakaryCode committed Dec 7, 2021
1 parent 75d3de6 commit 16c2ed1
Show file tree
Hide file tree
Showing 15 changed files with 221 additions and 0 deletions.
17 changes: 17 additions & 0 deletions packages/taro-components/src/components/ad-custom/ad-custom.tsx
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 />
)
}
}
17 changes: 17 additions & 0 deletions packages/taro-components/src/components/ad/ad.tsx
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 />
)
}
}
17 changes: 17 additions & 0 deletions packages/taro-components/src/components/editor/editor.tsx
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 />
)
}
}
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 />
)
}
}
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 />
)
}
}
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 />
)
}
}
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 />
)
}
}
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 />
)
}
}
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 />
)
}
}
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 packages/taro-components/src/components/page-meta/page-meta.tsx
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 />
)
}
}
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 packages/taro-components/src/components/voip-room/voip-room.tsx
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.

0 comments on commit 16c2ed1

Please sign in to comment.