fix: Vue2 到 Vue3 迁移兼容修复
- 修复 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)
This commit is contained in:
@@ -1,66 +1,67 @@
|
||||
import '@/common/uview-init.js'
|
||||
export default {
|
||||
props: {
|
||||
// checkbox的名称
|
||||
// checkbox鐨勫悕绉?
|
||||
name: {
|
||||
type: [String, Number, Boolean],
|
||||
default: uni.$u.props.checkbox.name
|
||||
},
|
||||
// 形状,square为方形,circle为圆型
|
||||
// 褰㈢姸锛宻quare涓烘柟褰紝circle涓哄渾鍨?
|
||||
shape: {
|
||||
type: String,
|
||||
default: uni.$u.props.checkbox.shape
|
||||
},
|
||||
// 整体的大小
|
||||
// 鏁翠綋鐨勫ぇ灏?
|
||||
size: {
|
||||
type: [String, Number],
|
||||
default: uni.$u.props.checkbox.size
|
||||
},
|
||||
// 是否默认选中
|
||||
// 鏄惁榛樿閫変腑
|
||||
checked: {
|
||||
type: Boolean,
|
||||
default: uni.$u.props.checkbox.checked
|
||||
},
|
||||
// 是否禁用
|
||||
// 鏄惁绂佺敤
|
||||
disabled: {
|
||||
type: [String, Boolean],
|
||||
default: uni.$u.props.checkbox.disabled
|
||||
},
|
||||
// 选中状态下的颜色,如设置此值,将会覆盖parent的activeColor值
|
||||
// 閫変腑鐘舵€佷笅鐨勯鑹诧紝濡傝缃鍊硷紝灏嗕細瑕嗙洊parent鐨刟ctiveColor鍊?
|
||||
activeColor: {
|
||||
type: String,
|
||||
default: uni.$u.props.checkbox.activeColor
|
||||
},
|
||||
// 未选中的颜色
|
||||
// 鏈€変腑鐨勯鑹?
|
||||
inactiveColor: {
|
||||
type: String,
|
||||
default: uni.$u.props.checkbox.inactiveColor
|
||||
},
|
||||
// 图标的大小,单位px
|
||||
// 鍥炬爣鐨勫ぇ灏忥紝鍗曚綅px
|
||||
iconSize: {
|
||||
type: [String, Number],
|
||||
default: uni.$u.props.checkbox.iconSize
|
||||
},
|
||||
// 图标颜色
|
||||
// 鍥炬爣棰滆壊
|
||||
iconColor: {
|
||||
type: String,
|
||||
default: uni.$u.props.checkbox.iconColor
|
||||
},
|
||||
// label提示文字,因为nvue下,直接slot进来的文字,由于特殊的结构,无法修改样式
|
||||
// label鎻愮ず鏂囧瓧锛屽洜涓簄vue涓嬶紝鐩存帴slot杩涙潵鐨勬枃瀛楋紝鐢变簬鐗规畩鐨勭粨鏋勶紝鏃犳硶淇敼鏍峰紡
|
||||
label: {
|
||||
type: [String, Number],
|
||||
default: uni.$u.props.checkbox.label
|
||||
},
|
||||
// label的字体大小,px单位
|
||||
// label鐨勫瓧浣撳ぇ灏忥紝px鍗曚綅
|
||||
labelSize: {
|
||||
type: [String, Number],
|
||||
default: uni.$u.props.checkbox.labelSize
|
||||
},
|
||||
// label的颜色
|
||||
// label鐨勯鑹?
|
||||
labelColor: {
|
||||
type: String,
|
||||
default: uni.$u.props.checkbox.labelColor
|
||||
},
|
||||
// 是否禁止点击提示语选中复选框
|
||||
// 鏄惁绂佹鐐瑰嚮鎻愮ず璇€変腑澶嶉€夋
|
||||
labelDisabled: {
|
||||
type: [String, Boolean],
|
||||
default: uni.$u.props.checkbox.labelDisabled
|
||||
|
||||
Reference in New Issue
Block a user