forked from p96170835/amis
优化获取值
This commit is contained in:
parent
52ac48a0a1
commit
1977926697
|
@ -54,14 +54,7 @@ export class Carousel extends React.Component<CarouselProps, CarouselState> {
|
|||
|
||||
state = {
|
||||
current: 0,
|
||||
options:
|
||||
this.props.value
|
||||
? this.props.value
|
||||
: this.props.options
|
||||
? this.props.options
|
||||
: resolveVariable(this.props.name, this.props.data)
|
||||
? resolveVariable(this.props.name, this.props.data)
|
||||
: [],
|
||||
options: this.props.value || this.props.options || resolveVariable(this.props.name, this.props.data) || [],
|
||||
showArrows: false,
|
||||
nextAnimation: ''
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue