File tree Expand file tree Collapse file tree 2 files changed +11
-6
lines changed Expand file tree Collapse file tree 2 files changed +11
-6
lines changed Original file line number Diff line number Diff line change @@ -116,10 +116,8 @@ export function Field(props: FieldProps) {
116
116
value : event . detail . value ,
117
117
} )
118
118
setInnerValue ( event . detail || '' )
119
- nextTick ( ( ) => {
120
- onInput ?.( event )
121
- onChange ?.( event )
122
- } )
119
+ onInput ?.( event )
120
+ onChange ?.( event )
123
121
}
124
122
125
123
const setShowClear = function ( value : any ) {
Original file line number Diff line number Diff line change 1
1
/* eslint-disable */
2
- import react from 'react'
2
+ import react , { useEffect } from 'react'
3
3
import { View } from '@tarojs/components'
4
4
import { Cell , Transition } from '@antmjs/vantui'
5
5
@@ -15,7 +15,14 @@ const animations = [
15
15
'slide-right' ,
16
16
]
17
17
export default function Demo ( ) {
18
- const [ show , setShow ] = react . useState ( '' )
18
+ const [ show , setShow ] = react . useState ( 'fade-right' )
19
+
20
+ useEffect ( ( ) => {
21
+ setTimeout ( ( ) => {
22
+ setShow ( '' )
23
+ } , 4000 )
24
+ } , [ ] )
25
+
19
26
const animationAction = ( ss ) => {
20
27
setShow ( ss )
21
28
setTimeout ( ( ) => {
You can’t perform that action at this time.
0 commit comments