-
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.
- Loading branch information
yushijie1
committed
Nov 21, 2024
1 parent
def9cd8
commit 21ad34d
Showing
61 changed files
with
1,191 additions
and
46 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
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
14 changes: 10 additions & 4 deletions
14
...ugin_compile_mode/tests/__swc_snapshots__/src/tests/attributes.rs/should_handle_events.js
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,8 +1,14 @@ | ||
const TARO_TEMPLATES_f0t0 = '<template name="tmpl_0_f0t0"><view><view bindtap="eh" data-sid="{{i.cn[0].sid}}" id="{{i.cn[0].sid}}"></view><view bindanimationstart="eh" data-sid="{{i.cn[1].sid}}" id="{{i.cn[1].uid}}"></view><image bindload="eh" data-sid="{{i.cn[2].sid}}" id="myImg"></image></view></template>'; | ||
const TARO_TEMPLATES_f0t0 = '<template name="tmpl_0_f0t0"><view><view bindtap="eh" data-sid="{{i.cn[0].sid}}" id="{{i.cn[0].sid}}"></view><view bindanimationstart="eh" data-sid="{{i.cn[1].sid}}" id="{{i.cn[1].uid}}"></view><image bindload="eh" data-sid="{{i.cn[2].sid}}" id="myImg"></image><view bindscroll="eh" data-sid="{{i.cn[3].sid}}" id="{{i.cn[3].sid}}" native-view="view" worklet:ongesture="onGesture" worklet:onscrollupdate="onScrollUpdate" worklet:should-response-on-move="shouldResponseOnMoveCallBack"></view></view></template>'; | ||
function Index() { | ||
return <View compileMode="f0t0"> | ||
|
||
<View onClick={handleViewClick}></View> | ||
<View onAnimationStart={() => {}} id={myId}></View> | ||
<Image onLoad={() => {}} /> | ||
</View> | ||
|
||
<View onAnimationStart={()=>{}} id={myId}></View> | ||
|
||
<Image onLoad={()=>{}}/> | ||
|
||
<View onScroll={()=>{}}></View> | ||
|
||
</View>; | ||
} |
10 changes: 10 additions & 0 deletions
10
packages/taro-components/src/components/double-tap-gesture-handler/readme.md
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,10 @@ | ||
# taro-double-tap-gesture-handler-core | ||
|
||
|
||
|
||
<!-- Auto Generated Below --> | ||
|
||
|
||
---------------------------------------------- | ||
|
||
*Built with [StencilJS](https://stenciljs.com/)* |
18 changes: 18 additions & 0 deletions
18
packages/taro-components/src/components/double-tap-gesture-handler/script.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,18 @@ | ||
import { Component, ComponentInterface, h, Host } from '@stencil/core' | ||
|
||
import { notSupport } from '../../utils' | ||
|
||
@Component({ | ||
tag: 'taro-double-tap-gesture-handler-core' | ||
}) | ||
export class DoubleTapGestureHandler implements ComponentInterface { | ||
componentDidLoad () { | ||
notSupport('DoubleTapGestureHandler', this) | ||
} | ||
|
||
render () { | ||
return ( | ||
<Host /> | ||
) | ||
} | ||
} |
10 changes: 10 additions & 0 deletions
10
packages/taro-components/src/components/force-press-gesture-handler/readme.md
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,10 @@ | ||
# taro-force-press-gesture-handler-core | ||
|
||
|
||
|
||
<!-- Auto Generated Below --> | ||
|
||
|
||
---------------------------------------------- | ||
|
||
*Built with [StencilJS](https://stenciljs.com/)* |
18 changes: 18 additions & 0 deletions
18
packages/taro-components/src/components/force-press-gesture-handler/script.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,18 @@ | ||
import { Component, ComponentInterface, h, Host } from '@stencil/core' | ||
|
||
import { notSupport } from '../../utils' | ||
|
||
@Component({ | ||
tag: 'taro-force-press-gesture-handler-core' | ||
}) | ||
export class ForcePressGestureHandler implements ComponentInterface { | ||
componentDidLoad () { | ||
notSupport('ForcePressGestureHandler', this) | ||
} | ||
|
||
render () { | ||
return ( | ||
<Host /> | ||
) | ||
} | ||
} |
10 changes: 10 additions & 0 deletions
10
packages/taro-components/src/components/horizontal-drag-gesture-handler/readme.md
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,10 @@ | ||
# taro-horizontal-drag-gesture-handler-core | ||
|
||
|
||
|
||
<!-- Auto Generated Below --> | ||
|
||
|
||
---------------------------------------------- | ||
|
||
*Built with [StencilJS](https://stenciljs.com/)* |
18 changes: 18 additions & 0 deletions
18
packages/taro-components/src/components/horizontal-drag-gesture-handler/script.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,18 @@ | ||
import { Component, ComponentInterface, h, Host } from '@stencil/core' | ||
|
||
import { notSupport } from '../../utils' | ||
|
||
@Component({ | ||
tag: 'taro-horizontal-drag-gesture-handler-core' | ||
}) | ||
export class HorizontalDragGestureHandler implements ComponentInterface { | ||
componentDidLoad () { | ||
notSupport('HorizontalDragGestureHandler', this) | ||
} | ||
|
||
render () { | ||
return ( | ||
<Host /> | ||
) | ||
} | ||
} |
10 changes: 10 additions & 0 deletions
10
packages/taro-components/src/components/long-press-gesture-handler/readme.md
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,10 @@ | ||
# taro-long-press-gesture-handler-core | ||
|
||
|
||
|
||
<!-- Auto Generated Below --> | ||
|
||
|
||
---------------------------------------------- | ||
|
||
*Built with [StencilJS](https://stenciljs.com/)* |
18 changes: 18 additions & 0 deletions
18
packages/taro-components/src/components/long-press-gesture-handler/script.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,18 @@ | ||
import { Component, ComponentInterface, h, Host } from '@stencil/core' | ||
|
||
import { notSupport } from '../../utils' | ||
|
||
@Component({ | ||
tag: 'taro-long-press-gesture-handler-core' | ||
}) | ||
export class LongPressGestureHandler implements ComponentInterface { | ||
componentDidLoad () { | ||
notSupport('LongPressGestureHandler', this) | ||
} | ||
|
||
render () { | ||
return ( | ||
<Host /> | ||
) | ||
} | ||
} |
10 changes: 10 additions & 0 deletions
10
packages/taro-components/src/components/pan-gesture-handler/readme.md
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,10 @@ | ||
# taro-pan-gesture-handler-core | ||
|
||
|
||
|
||
<!-- Auto Generated Below --> | ||
|
||
|
||
---------------------------------------------- | ||
|
||
*Built with [StencilJS](https://stenciljs.com/)* |
18 changes: 18 additions & 0 deletions
18
packages/taro-components/src/components/pan-gesture-handler/script.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,18 @@ | ||
import { Component, ComponentInterface, h, Host } from '@stencil/core' | ||
|
||
import { notSupport } from '../../utils' | ||
|
||
@Component({ | ||
tag: 'taro-pan-gesture-handler-core' | ||
}) | ||
export class PanGestureHandler implements ComponentInterface { | ||
componentDidLoad () { | ||
notSupport('PanGestureHandler', this) | ||
} | ||
|
||
render () { | ||
return ( | ||
<Host /> | ||
) | ||
} | ||
} |
10 changes: 10 additions & 0 deletions
10
packages/taro-components/src/components/scale-gesture-handler/readme.md
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,10 @@ | ||
# taro-scale-gesture-handler-core | ||
|
||
|
||
|
||
<!-- Auto Generated Below --> | ||
|
||
|
||
---------------------------------------------- | ||
|
||
*Built with [StencilJS](https://stenciljs.com/)* |
18 changes: 18 additions & 0 deletions
18
packages/taro-components/src/components/scale-gesture-handler/script.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,18 @@ | ||
import { Component, ComponentInterface, h, Host } from '@stencil/core' | ||
|
||
import { notSupport } from '../../utils' | ||
|
||
@Component({ | ||
tag: 'taro-scale-gesture-handler-core' | ||
}) | ||
export class ScaleGestureHandler implements ComponentInterface { | ||
componentDidLoad () { | ||
notSupport('ScaleGestureHandler', this) | ||
} | ||
|
||
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,10 @@ | ||
# taro-script-core | ||
|
||
|
||
|
||
<!-- Auto Generated Below --> | ||
|
||
|
||
---------------------------------------------- | ||
|
||
*Built with [StencilJS](https://stenciljs.com/)* |
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,18 @@ | ||
import { Component, ComponentInterface, h, Host } from '@stencil/core' | ||
|
||
import { notSupport } from '../../utils' | ||
|
||
@Component({ | ||
tag: 'taro-script-core' | ||
}) | ||
export class Script implements ComponentInterface { | ||
componentDidLoad () { | ||
notSupport('Script', this) | ||
} | ||
|
||
render () { | ||
return ( | ||
<Host /> | ||
) | ||
} | ||
} |
10 changes: 10 additions & 0 deletions
10
packages/taro-components/src/components/tap-gesture-handler/readme.md
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,10 @@ | ||
# taro-tap-gesture-handler-core | ||
|
||
|
||
|
||
<!-- Auto Generated Below --> | ||
|
||
|
||
---------------------------------------------- | ||
|
||
*Built with [StencilJS](https://stenciljs.com/)* |
18 changes: 18 additions & 0 deletions
18
packages/taro-components/src/components/tap-gesture-handler/script.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,18 @@ | ||
import { Component, ComponentInterface, h, Host } from '@stencil/core' | ||
|
||
import { notSupport } from '../../utils' | ||
|
||
@Component({ | ||
tag: 'taro-tap-gesture-handler-core' | ||
}) | ||
export class TapGestureHandler implements ComponentInterface { | ||
componentDidLoad () { | ||
notSupport('TapGestureHandler', this) | ||
} | ||
|
||
render () { | ||
return ( | ||
<Host /> | ||
) | ||
} | ||
} |
10 changes: 10 additions & 0 deletions
10
packages/taro-components/src/components/vertical-drag-gesture-handler/readme.md
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,10 @@ | ||
# taro-vertical-drag-gesture-handler-core | ||
|
||
|
||
|
||
<!-- Auto Generated Below --> | ||
|
||
|
||
---------------------------------------------- | ||
|
||
*Built with [StencilJS](https://stenciljs.com/)* |
18 changes: 18 additions & 0 deletions
18
packages/taro-components/src/components/vertical-drag-gesture-handler/script.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,18 @@ | ||
import { Component, ComponentInterface, h, Host } from '@stencil/core' | ||
|
||
import { notSupport } from '../../utils' | ||
|
||
@Component({ | ||
tag: 'taro-vertical-drag-gesture-handler-core' | ||
}) | ||
export class VerticalDragGestureHandler implements ComponentInterface { | ||
componentDidLoad () { | ||
notSupport('VerticalDragGestureHandler', this) | ||
} | ||
|
||
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
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
Oops, something went wrong.