fix: 修复 uView 组件文件编码乱码
- 85 个 uView props.js 的中文注释由 GBK 乱码还原为 UTF-8 并去除 BOM - uview-ui/index.js 修复 2 行注释乱码 - 各文件头部 uview-init 兜底 import 保留,功能改动不变
This commit is contained in:
@@ -1,123 +1,123 @@
|
||||
import '@/common/uview-init.js'
|
||||
import '@/common/uview-init.js'
|
||||
export default {
|
||||
props: {
|
||||
// 鍒楄〃鏁扮粍锛屽厓绱犲彲涓哄瓧绗︿覆锛屽涓哄璞″彲閫氳繃keyName鎸囧畾鐩爣灞炴€у悕
|
||||
// 列表数组,元素可为字符串,如为对象可通过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杩涜瀹氫綅
|
||||
// 指示器样式,可通过bottom,left,right进行定位
|
||||
indicatorStyle: {
|
||||
type: [String, Object],
|
||||
default: uni.$u.props.swiper.indicatorStyle
|
||||
},
|
||||
// 鎸囩ず鍣ㄦā寮忥紝line-绾垮瀷锛宒ot-鐐瑰瀷
|
||||
// 指示器模式,line-线型,dot-点型
|
||||
indicatorMode: {
|
||||
type: String,
|
||||
default: uni.$u.props.swiper.indicatorMode
|
||||
},
|
||||
// 鏄惁鑷姩鍒囨崲
|
||||
// 是否自动切换
|
||||
autoplay: {
|
||||
type: Boolean,
|
||||
default: uni.$u.props.swiper.autoplay
|
||||
},
|
||||
// 褰撳墠鎵€鍦ㄦ粦鍧楃殑 index
|
||||
// 当前所在滑块的 index
|
||||
current: {
|
||||
type: [String, Number],
|
||||
default: uni.$u.props.swiper.current
|
||||
},
|
||||
// 褰撳墠鎵€鍦ㄦ粦鍧楃殑 item-id 锛屼笉鑳戒笌 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鍜屾敮浠樺疂涓嶆敮鎸?
|
||||
// 前边距,可用于露出前一项的一小部分,nvue和支付宝不支持
|
||||
previousMargin: {
|
||||
type: [String, Number],
|
||||
default: uni.$u.props.swiper.previousMargin
|
||||
},
|
||||
// 鍚庤竟璺濓紝鍙敤浜庨湶鍑哄悗涓€椤圭殑涓€灏忛儴鍒嗭紝nvue鍜屾敮浠樺疂涓嶆敮鎸?
|
||||
// 后边距,可用于露出后一项的一小部分,nvue和支付宝不支持
|
||||
nextMargin: {
|
||||
type: [String, Number],
|
||||
default: uni.$u.props.swiper.nextMargin
|
||||
},
|
||||
// 褰撳紑鍚椂锛屼細鏍规嵁婊戝姩閫熷害锛岃繛缁粦鍔ㄥ灞忥紝鏀粯瀹濅笉鏀寔
|
||||
// 当开启时,会根据滑动速度,连续滑动多屏,支付宝不支持
|
||||
acceleration: {
|
||||
type: Boolean,
|
||||
default: uni.$u.props.swiper.acceleration
|
||||
},
|
||||
// 鍚屾椂鏄剧ず鐨勬粦鍧楁暟閲忥紝nvue銆佹敮浠樺疂灏忕▼搴忎笉鏀寔
|
||||
// 同时显示的滑块数量,nvue、支付宝小程序不支持
|
||||
displayMultipleItems: {
|
||||
type: Number,
|
||||
default: uni.$u.props.swiper.displayMultipleItems
|
||||
},
|
||||
// 鎸囧畾swiper鍒囨崲缂撳姩鍔ㄧ敾绫诲瀷锛屾湁鏁堝€硷細default銆乴inear銆乪aseInCubic銆乪aseOutCubic銆乪aseInOutCubic
|
||||
// 鍙寰俊灏忕▼搴忔湁鏁?
|
||||
// 指定swiper切换缓动动画类型,有效值:default、linear、easeInCubic、easeOutCubic、easeInOutCubic
|
||||
// 只对微信小程序有效
|
||||
easingFunction: {
|
||||
type: String,
|
||||
default: uni.$u.props.swiper.easingFunction
|
||||
},
|
||||
// list鏁扮粍涓寚瀹氬璞$殑鐩爣灞炴€у悕
|
||||
// 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灞炴€?
|
||||
// 是否显示标题,要求数组对象中有title属性
|
||||
showTitle: {
|
||||
type: Boolean,
|
||||
default: uni.$u.props.swiper.showTitle
|
||||
|
||||
Reference in New Issue
Block a user