Files
t/uni_modules/uview-ui/components/u-swiper/props.js
T
root 99c139d6ce fix: Vue2 到 Vue3 迁移兼容修复
- 修复 uni-popup-dialog/uni-data-picker keypress.js 中 $once 在 H5 端报错(改用生命周期钩子清理监听)
- main.js 补 $delete globalProperties polyfill(z-paging 自动高度逻辑依赖)
- App.vue onLaunch 补设备信息初始化,修复 X-Device-Id 恒为 unknown
- 68 处 ::v-deep、/deep/ 旧深度选择器替换为 :deep()(含 login-page.scss)
- zetank-personalpage 组件 .sync 修饰符改为 v-model:xxx(Vue3 已移除 .sync)
- vite.config.js HBuilderX 路径支持 HBUILDERX_HOME 环境变量覆盖
- 根 package.json 清理 image-grid 插件遗留元数据
- 收录此前未提交的 uView Vue3 兜底补丁(common/uview-init.js 及各组件 props.js)
2026-09-06 19:36:36 +08:00

127 lines
4.7 KiB
JavaScript

import '@/common/uview-init.js'
export default {
props: {
// 鍒楄〃鏁扮粍锛屽厓绱犲彲涓哄瓧绗︿覆锛屽涓哄璞″彲閫氳繃keyName鎸囧畾鐩爣灞炴€у悕
list: {
type: Array,
default: uni.$u.props.swiper.list
},
// 鏄惁鏄剧ず闈㈡澘鎸囩ず鍣?
indicator: {
type: Boolean,
default: uni.$u.props.swiper.indicator
},
// 鎸囩ず鍣ㄩ潪婵€娲婚鑹?
indicatorActiveColor: {
type: String,
default: uni.$u.props.swiper.indicatorActiveColor
},
// 鎸囩ず鍣ㄧ殑婵€娲婚鑹?
indicatorInactiveColor: {
type: String,
default: uni.$u.props.swiper.indicatorInactiveColor
},
// 鎸囩ず鍣ㄦ牱寮忥紝鍙€氳繃bottom锛宭eft锛宺ight杩涜瀹氫綅
indicatorStyle: {
type: [String, Object],
default: uni.$u.props.swiper.indicatorStyle
},
// 鎸囩ず鍣ㄦā寮忥紝line-绾垮瀷锛宒ot-鐐瑰瀷
indicatorMode: {
type: String,
default: uni.$u.props.swiper.indicatorMode
},
// 鏄惁鑷姩鍒囨崲
autoplay: {
type: Boolean,
default: uni.$u.props.swiper.autoplay
},
// 褰撳墠鎵€鍦ㄦ粦鍧楃殑 index
current: {
type: [String, Number],
default: uni.$u.props.swiper.current
},
// 褰撳墠鎵€鍦ㄦ粦鍧楃殑 item-id 锛屼笉鑳戒笌 current 琚悓鏃舵寚瀹?
currentItemId: {
type: String,
default: uni.$u.props.swiper.currentItemId
},
// 婊戝潡鑷姩鍒囨崲鏃堕棿闂撮殧
interval: {
type: [String, Number],
default: uni.$u.props.swiper.interval
},
// 婊戝潡鍒囨崲杩囩▼鎵€闇€鏃堕棿
duration: {
type: [String, Number],
default: uni.$u.props.swiper.duration
},
// 鎾斁鍒版湯灏惧悗鏄惁閲嶆柊鍥炲埌寮€澶?
circular: {
type: Boolean,
default: uni.$u.props.swiper.circular
},
// 鍓嶈竟璺濓紝鍙敤浜庨湶鍑哄墠涓€椤圭殑涓€灏忛儴鍒嗭紝nvue鍜屾敮浠樺疂涓嶆敮鎸?
previousMargin: {
type: [String, Number],
default: uni.$u.props.swiper.previousMargin
},
// 鍚庤竟璺濓紝鍙敤浜庨湶鍑哄悗涓€椤圭殑涓€灏忛儴鍒嗭紝nvue鍜屾敮浠樺疂涓嶆敮鎸?
nextMargin: {
type: [String, Number],
default: uni.$u.props.swiper.nextMargin
},
// 褰撳紑鍚椂锛屼細鏍规嵁婊戝姩閫熷害锛岃繛缁粦鍔ㄥ灞忥紝鏀粯瀹濅笉鏀寔
acceleration: {
type: Boolean,
default: uni.$u.props.swiper.acceleration
},
// 鍚屾椂鏄剧ず鐨勬粦鍧楁暟閲忥紝nvue銆佹敮浠樺疂灏忕▼搴忎笉鏀寔
displayMultipleItems: {
type: Number,
default: uni.$u.props.swiper.displayMultipleItems
},
// 鎸囧畾swiper鍒囨崲缂撳姩鍔ㄧ敾绫诲瀷锛屾湁鏁堝€硷細default銆乴inear銆乪aseInCubic銆乪aseOutCubic銆乪aseInOutCubic
// 鍙寰俊灏忕▼搴忔湁鏁?
easingFunction: {
type: String,
default: uni.$u.props.swiper.easingFunction
},
// list鏁扮粍涓寚瀹氬璞$殑鐩爣灞炴€у悕
keyName: {
type: String,
default: uni.$u.props.swiper.keyName
},
// 鍥剧墖鐨勮鍓ā寮?
imgMode: {
type: String,
default: uni.$u.props.swiper.imgMode
},
// 缁勪欢楂樺害
height: {
type: [String, Number],
default: uni.$u.props.swiper.height
},
// 鑳屾櫙棰滆壊
bgColor: {
type: String,
default: uni.$u.props.swiper.bgColor
},
// 缁勪欢鍦嗚锛屾暟鍊兼垨甯﹀崟浣嶇殑瀛楃涓?
radius: {
type: [String, Number],
default: uni.$u.props.swiper.radius
},
// 鏄惁鍔犺浇涓?
loading: {
type: Boolean,
default: uni.$u.props.swiper.loading
},
// 鏄惁鏄剧ず鏍囬锛岃姹傛暟缁勫璞′腑鏈塼itle灞炴€?
showTitle: {
type: Boolean,
default: uni.$u.props.swiper.showTitle
}
}
}