fix: 修复 uView 组件文件编码乱码
- 85 个 uView props.js 的中文注释由 GBK 乱码还原为 UTF-8 并去除 BOM - uview-ui/index.js 修复 2 行注释乱码 - 各文件头部 uview-init 兜底 import 保留,功能改动不变
This commit is contained in:
@@ -1,76 +1,76 @@
|
||||
import '@/common/uview-init.js'
|
||||
import '@/common/uview-init.js'
|
||||
export default {
|
||||
props: {
|
||||
// 澶村儚鍥剧墖璺緞(涓嶈兘涓虹浉瀵硅矾寰?
|
||||
// 头像图片路径(不能为相对路径)
|
||||
src: {
|
||||
type: String,
|
||||
default: uni.$u.props.avatar.src
|
||||
},
|
||||
// 澶村儚褰㈢姸锛宑ircle-鍦嗗舰锛宻quare-鏂瑰舰
|
||||
// 头像形状,circle-圆形,square-方形
|
||||
shape: {
|
||||
type: String,
|
||||
default: uni.$u.props.avatar.shape
|
||||
},
|
||||
// 澶村儚灏哄
|
||||
// 头像尺寸
|
||||
size: {
|
||||
type: [String, Number],
|
||||
default: uni.$u.props.avatar.size
|
||||
},
|
||||
// 瑁佸壀妯″紡
|
||||
// 裁剪模式
|
||||
mode: {
|
||||
type: String,
|
||||
default: uni.$u.props.avatar.mode
|
||||
},
|
||||
// 鏄剧ず鐨勬枃瀛?
|
||||
// 显示的文字
|
||||
text: {
|
||||
type: String,
|
||||
default: uni.$u.props.avatar.text
|
||||
},
|
||||
// 鑳屾櫙鑹?
|
||||
// 背景色
|
||||
bgColor: {
|
||||
type: String,
|
||||
default: uni.$u.props.avatar.bgColor
|
||||
},
|
||||
// 鏂囧瓧棰滆壊
|
||||
// 文字颜色
|
||||
color: {
|
||||
type: String,
|
||||
default: uni.$u.props.avatar.color
|
||||
},
|
||||
// 鏂囧瓧澶у皬
|
||||
// 文字大小
|
||||
fontSize: {
|
||||
type: [String, Number],
|
||||
default: uni.$u.props.avatar.fontSize
|
||||
},
|
||||
// 鏄剧ず鐨勫浘鏍?
|
||||
// 显示的图标
|
||||
icon: {
|
||||
type: String,
|
||||
default: uni.$u.props.avatar.icon
|
||||
},
|
||||
// 鏄剧ず灏忕▼搴忓ご鍍忥紝鍙鐧惧害锛屽井淇★紝QQ灏忕▼搴忔湁鏁?
|
||||
// 显示小程序头像,只对百度,微信,QQ小程序有效
|
||||
mpAvatar: {
|
||||
type: Boolean,
|
||||
default: uni.$u.props.avatar.mpAvatar
|
||||
},
|
||||
// 鏄惁浣跨敤闅忔満鑳屾櫙鑹?
|
||||
// 是否使用随机背景色
|
||||
randomBgColor: {
|
||||
type: Boolean,
|
||||
default: uni.$u.props.avatar.randomBgColor
|
||||
},
|
||||
// 鍔犺浇澶辫触鐨勯粯璁ゅご鍍?缁勪欢鏈夊唴缃粯璁ゅ浘鐗?
|
||||
// 加载失败的默认头像(组件有内置默认图片)
|
||||
defaultUrl: {
|
||||
type: String,
|
||||
default: uni.$u.props.avatar.defaultUrl
|
||||
},
|
||||
// 濡傛灉閰嶇疆浜唕andomBgColor涓簍rue锛屼笖閰嶇疆浜嗘鍊硷紝鍒欎粠榛樿鐨勮儗鏅壊鏁扮粍涓彇鍑哄搴旂储寮曠殑棰滆壊鍊硷紝鍙栧€?-19涔嬮棿
|
||||
// 如果配置了randomBgColor为true,且配置了此值,则从默认的背景色数组中取出对应索引的颜色值,取值0-19之间
|
||||
colorIndex: {
|
||||
type: [String, Number],
|
||||
// 鏍¢獙鍙傛暟瑙勫垯锛岀储寮曞湪0-19涔嬮棿
|
||||
// 校验参数规则,索引在0-19之间
|
||||
validator(n) {
|
||||
return uni.$u.test.range(n, [0, 19]) || n === ''
|
||||
},
|
||||
default: uni.$u.props.avatar.colorIndex
|
||||
},
|
||||
// 缁勪欢鏍囪瘑绗?
|
||||
// 组件标识符
|
||||
name: {
|
||||
type: String,
|
||||
default: uni.$u.props.avatar.name
|
||||
|
||||
Reference in New Issue
Block a user