- 修复 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)
127 lines
4.7 KiB
JavaScript
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
|
|
}
|
|
}
|
|
}
|