- 修复 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)
112 lines
3.6 KiB
JavaScript
112 lines
3.6 KiB
JavaScript
import '@/common/uview-init.js'
|
|
export default {
|
|
props: {
|
|
// 鏍囬
|
|
title: {
|
|
type: [String, Number],
|
|
default: uni.$u.props.cell.title
|
|
},
|
|
// 鏍囬涓嬫柟鐨勬弿杩颁俊鎭?
|
|
label: {
|
|
type: [String, Number],
|
|
default: uni.$u.props.cell.label
|
|
},
|
|
// 鍙充晶鐨勫唴瀹?
|
|
value: {
|
|
type: [String, Number],
|
|
default: uni.$u.props.cell.value
|
|
},
|
|
// 宸︿晶鍥炬爣鍚嶇О锛屾垨鑰呭浘鐗囬摼鎺?鏈湴鏂囦欢寤鸿浣跨敤缁濆鍦板潃)
|
|
icon: {
|
|
type: String,
|
|
default: uni.$u.props.cell.icon
|
|
},
|
|
// 鏄惁绂佺敤cell
|
|
disabled: {
|
|
type: Boolean,
|
|
default: uni.$u.props.cell.disabled
|
|
},
|
|
// 鏄惁鏄剧ず涓嬭竟妗?
|
|
border: {
|
|
type: Boolean,
|
|
default: uni.$u.props.cell.border
|
|
},
|
|
// 鍐呭鏄惁鍨傜洿灞呬腑(涓昏鏄拡瀵瑰彸渚х殑value閮ㄥ垎)
|
|
center: {
|
|
type: Boolean,
|
|
default: uni.$u.props.cell.center
|
|
},
|
|
// 鐐瑰嚮鍚庤烦杞殑URL鍦板潃
|
|
url: {
|
|
type: String,
|
|
default: uni.$u.props.cell.url
|
|
},
|
|
// 閾炬帴璺宠浆鐨勬柟寮忥紝鍐呴儴浣跨敤鐨勬槸uView灏佽鐨剅oute鏂规硶锛屽彲鑳戒細杩涜鎷︽埅鎿嶄綔
|
|
linkType: {
|
|
type: String,
|
|
default: uni.$u.props.cell.linkType
|
|
},
|
|
// 鏄惁寮€鍚偣鍑诲弽棣?琛ㄧ幇涓虹偣鍑绘椂鍔犱笂鐏拌壊鑳屾櫙)
|
|
clickable: {
|
|
type: Boolean,
|
|
default: uni.$u.props.cell.clickable
|
|
},
|
|
// 鏄惁灞曠ず鍙充晶绠ご骞跺紑鍚偣鍑诲弽棣?
|
|
isLink: {
|
|
type: Boolean,
|
|
default: uni.$u.props.cell.isLink
|
|
},
|
|
// 鏄惁鏄剧ず琛ㄥ崟鐘舵€佷笅鐨勫繀濉槦鍙?姝ょ粍浠跺彲鑳戒細鍐呭祵鍏nput缁勪欢)
|
|
required: {
|
|
type: Boolean,
|
|
default: uni.$u.props.cell.required
|
|
},
|
|
// 鍙充晶鐨勫浘鏍囩澶?
|
|
rightIcon: {
|
|
type: String,
|
|
default: uni.$u.props.cell.rightIcon
|
|
},
|
|
// 鍙充晶绠ご鐨勬柟鍚戯紝鍙€夊€间负锛歭eft锛寀p锛宒own
|
|
arrowDirection: {
|
|
type: String,
|
|
default: uni.$u.props.cell.arrowDirection
|
|
},
|
|
// 宸︿晶鍥炬爣鏍峰紡
|
|
iconStyle: {
|
|
type: [Object, String],
|
|
default: () => {
|
|
return uni.$u.props.cell.iconStyle
|
|
}
|
|
},
|
|
// 鍙充晶绠ご鍥炬爣鐨勬牱寮?
|
|
rightIconStyle: {
|
|
type: [Object, String],
|
|
default: () => {
|
|
return uni.$u.props.cell.rightIconStyle
|
|
}
|
|
},
|
|
// 鏍囬鐨勬牱寮?
|
|
titleStyle: {
|
|
type: [Object, String],
|
|
default: () => {
|
|
return uni.$u.props.cell.titleStyle
|
|
}
|
|
},
|
|
// 鍗曚綅鍏冪殑澶у皬锛屽彲閫夊€间负large
|
|
size: {
|
|
type: String,
|
|
default: uni.$u.props.cell.size
|
|
},
|
|
// 鐐瑰嚮cell鏄惁闃绘浜嬩欢浼犳挱
|
|
stop: {
|
|
type: Boolean,
|
|
default: uni.$u.props.cell.stop
|
|
},
|
|
// 鏍囪瘑绗︼紝cell琚偣鍑绘椂杩斿洖
|
|
name: {
|
|
type: [Number, String],
|
|
default: uni.$u.props.cell.name
|
|
}
|
|
}
|
|
}
|