first commit
This commit is contained in:
49
uni_modules/tdesign-uniapp/components/swiper-nav/props.ts
Normal file
49
uni_modules/tdesign-uniapp/components/swiper-nav/props.ts
Normal file
@@ -0,0 +1,49 @@
|
||||
/* eslint-disable */
|
||||
|
||||
/**
|
||||
* 该文件为脚本自动生成文件,请勿随意修改。如需修改请联系 PMC
|
||||
* */
|
||||
|
||||
import type { TdSwiperNavProps } from './type';
|
||||
export default {
|
||||
/** 当前轮播在哪一项(下标) */
|
||||
current: {
|
||||
type: Number,
|
||||
default: 0,
|
||||
},
|
||||
/** 轮播滑动方向,包括横向滑动和纵向滑动两个方向 */
|
||||
direction: {
|
||||
type: String,
|
||||
default: 'horizontal' as TdSwiperNavProps['direction'],
|
||||
validator(val: TdSwiperNavProps['direction']): boolean {
|
||||
if (!val) return true;
|
||||
return ['horizontal', 'vertical'].includes(val);
|
||||
},
|
||||
},
|
||||
/** 小于这个数字不会显示导航器 */
|
||||
minShowNum: {
|
||||
type: Number,
|
||||
default: 2,
|
||||
},
|
||||
/** 页码信息展示位置 */
|
||||
paginationPosition: {
|
||||
type: String,
|
||||
default: 'bottom' as TdSwiperNavProps['paginationPosition'],
|
||||
validator(val: TdSwiperNavProps['paginationPosition']): boolean {
|
||||
if (!val) return true;
|
||||
return ['top-left', 'top', 'top-right', 'bottom-left', 'bottom', 'bottom-right', 'left', 'right'].includes(val);
|
||||
},
|
||||
},
|
||||
/** 是否显示两侧的控制按钮 */
|
||||
showControls: Boolean,
|
||||
/** 总共的项数 */
|
||||
total: {
|
||||
type: Number,
|
||||
default: 0,
|
||||
},
|
||||
/** 导航器类型,点状(dots)、点条状(dots-bar)、分式(fraction)等 */
|
||||
type: {
|
||||
type: String,
|
||||
default: 'dots',
|
||||
},
|
||||
};
|
||||
Reference in New Issue
Block a user