diff --git a/src/swiper/defaultProps.tsx b/src/swiper/defaultProps.tsx new file mode 100644 index 00000000..3ec019f4 --- /dev/null +++ b/src/swiper/defaultProps.tsx @@ -0,0 +1,18 @@ +/** + * 该文件为脚本自动生成文件,请勿随意修改。如需修改请联系 PMC + * */ + +import { TdSwiperProps } from './type'; + +export const swiperDefaultProps: TdSwiperProps = { + animation: 'slide', + autoplay: true, + current: 0, + direction: 'horizontal', + duration: 300, + interval: 5000, + loop: true, + nextMargin: 0, + previousMargin: 0, + type: 'default', +}; diff --git a/src/swiper/index.tsx b/src/swiper/index.tsx new file mode 100644 index 00000000..9567b276 --- /dev/null +++ b/src/swiper/index.tsx @@ -0,0 +1,8 @@ +import './style/index'; +import _Swiper from './Swiper'; + +export type { SwiperProps } from './Swiper'; +export * from './type'; + +export const Swiper = _Swiper; +export default Swiper;