- 修复 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)
80 lines
2.5 KiB
JavaScript
80 lines
2.5 KiB
JavaScript
import '@/common/uview-init.js'
|
|
export default {
|
|
props: {
|
|
// 澶村儚鍥剧墖璺緞(涓嶈兘涓虹浉瀵硅矾寰?
|
|
src: {
|
|
type: String,
|
|
default: uni.$u.props.avatar.src
|
|
},
|
|
// 澶村儚褰㈢姸锛宑ircle-鍦嗗舰锛宻quare-鏂瑰舰
|
|
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灏忕▼搴忔湁鏁?
|
|
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涔嬮棿
|
|
colorIndex: {
|
|
type: [String, Number],
|
|
// 鏍¢獙鍙傛暟瑙勫垯锛岀储寮曞湪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
|
|
}
|
|
}
|
|
}
|