- 修复 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)
86 lines
2.8 KiB
JavaScript
86 lines
2.8 KiB
JavaScript
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-鏂瑰舰
|
|
shape: {
|
|
type: String,
|
|
default: uni.$u.props.image.shape
|
|
},
|
|
// 鍦嗚锛屽崟浣嶄换鎰?
|
|
radius: {
|
|
type: [String, Number],
|
|
default: uni.$u.props.image.radius
|
|
},
|
|
// 鏄惁鎳掑姞杞斤紝寰俊灏忕▼搴忋€丄pp銆佺櫨搴﹀皬绋嬪簭銆佸瓧鑺傝烦鍔ㄥ皬绋嬪簭
|
|
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
|
|
showLoading: {
|
|
type: Boolean,
|
|
default: uni.$u.props.image.showLoading
|
|
},
|
|
// 鏄惁鏄剧ず鍔犺浇閿欒鐨勫浘鏍囨垨鑰呰嚜瀹氫箟鐨剆lot
|
|
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
|
|
duration: {
|
|
type: [String, Number],
|
|
default: uni.$u.props.image.duration
|
|
},
|
|
// 鑳屾櫙棰滆壊锛岀敤浜庢繁鑹查〉闈㈠姞杞藉浘鐗囨椂锛屼负浜嗗拰鑳屾櫙鑹茶瀺鍚?
|
|
bgColor: {
|
|
type: String,
|
|
default: uni.$u.props.image.bgColor
|
|
}
|
|
}
|
|
}
|