fix: 修复 uView 组件文件编码乱码

- 85 个 uView props.js 的中文注释由 GBK 乱码还原为 UTF-8 并去除 BOM
- uview-ui/index.js 修复 2 行注释乱码
- 各文件头部 uview-init 兜底 import 保留,功能改动不变
This commit is contained in:
2026-09-08 15:44:20 +08:00
parent 99c139d6ce
commit ffd214eeba
86 changed files with 1020 additions and 1020 deletions
@@ -1,82 +1,82 @@
import '@/common/uview-init.js'
import '@/common/uview-init.js'
export default {
props: {
// 鍥剧墖鍦板潃
// 图片地址
src: {
type: String,
default: uni.$u.props.image.src
},
// 瑁佸壀妯″紡
// 裁剪模式
mode: {
type: String,
default: uni.$u.props.image.mode
},
// 瀹藉害锛屽崟浣嶄换鎰?
// 宽度,单位任意
width: {
type: [String, Number],
default: uni.$u.props.image.width
},
// 楂樺害锛屽崟浣嶄换鎰?
// 高度,单位任意
height: {
type: [String, Number],
default: uni.$u.props.image.height
},
// 鍥剧墖褰㈢姸锛宑ircle-鍦嗗舰锛宻quare-鏂瑰舰
// 图片形状,circle-圆形,square-方形
shape: {
type: String,
default: uni.$u.props.image.shape
},
// 鍦嗚锛屽崟浣嶄换鎰?
// 圆角,单位任意
radius: {
type: [String, Number],
default: uni.$u.props.image.radius
},
// 鏄惁鎳掑姞杞斤紝寰俊灏忕▼搴忋€丄pp銆佺櫨搴﹀皬绋嬪簭銆佸瓧鑺傝烦鍔ㄥ皬绋嬪簭
// 是否懒加载,微信小程序、App、百度小程序、字节跳动小程序
lazyLoad: {
type: Boolean,
default: uni.$u.props.image.lazyLoad
},
// 寮€鍚暱鎸夊浘鐗囨樉绀鸿瘑鍒井淇″皬绋嬪簭鐮佽彍鍗?
// 开启长按图片显示识别微信小程序码菜单
showMenuByLongpress: {
type: Boolean,
default: uni.$u.props.image.showMenuByLongpress
},
// 鍔犺浇涓殑鍥炬爣锛屾垨鑰呭皬鍥剧墖
// 加载中的图标,或者小图片
loadingIcon: {
type: String,
default: uni.$u.props.image.loadingIcon
},
// 鍔犺浇澶辫触鐨勫浘鏍囷紝鎴栬€呭皬鍥剧墖
// 加载失败的图标,或者小图片
errorIcon: {
type: String,
default: uni.$u.props.image.errorIcon
},
// 鏄惁鏄剧ず鍔犺浇涓殑鍥炬爣鎴栬€呰嚜瀹氫箟鐨剆lot
// 是否显示加载中的图标或者自定义的slot
showLoading: {
type: Boolean,
default: uni.$u.props.image.showLoading
},
// 鏄惁鏄剧ず鍔犺浇閿欒鐨勫浘鏍囨垨鑰呰嚜瀹氫箟鐨剆lot
// 是否显示加载错误的图标或者自定义的slot
showError: {
type: Boolean,
default: uni.$u.props.image.showError
},
// 鏄惁闇€瑕佹贰鍏ユ晥鏋?
// 是否需要淡入效果
fade: {
type: Boolean,
default: uni.$u.props.image.fade
},
// 鍙敮鎸佺綉缁滆祫婧愶紝鍙寰俊灏忕▼搴忔湁鏁?
// 只支持网络资源,只对微信小程序有效
webp: {
type: Boolean,
default: uni.$u.props.image.webp
},
// 杩囨浮鏃堕棿锛屽崟浣峬s
// 过渡时间,单位ms
duration: {
type: [String, Number],
default: uni.$u.props.image.duration
},
// 鑳屾櫙棰滆壊锛岀敤浜庢繁鑹查〉闈㈠姞杞藉浘鐗囨椂锛屼负浜嗗拰鑳屾櫙鑹茶瀺鍚?
// 背景颜色,用于深色页面加载图片时,为了和背景色融合
bgColor: {
type: String,
default: uni.$u.props.image.bgColor