- 修复 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)
91 lines
2.9 KiB
JavaScript
91 lines
2.9 KiB
JavaScript
import '@/common/uview-init.js'
|
|
export default {
|
|
props: {
|
|
// 鏄惁灞曠ずmodal
|
|
show: {
|
|
type: Boolean,
|
|
default: uni.$u.props.modal.show
|
|
},
|
|
// 鏍囬
|
|
title: {
|
|
type: [String],
|
|
default: uni.$u.props.modal.title
|
|
},
|
|
// 寮圭獥鍐呭
|
|
content: {
|
|
type: String,
|
|
default: uni.$u.props.modal.content
|
|
},
|
|
// 纭鏂囨
|
|
confirmText: {
|
|
type: String,
|
|
default: uni.$u.props.modal.confirmText
|
|
},
|
|
// 鍙栨秷鏂囨
|
|
cancelText: {
|
|
type: String,
|
|
default: uni.$u.props.modal.cancelText
|
|
},
|
|
// 鏄惁鏄剧ず纭鎸夐挳
|
|
showConfirmButton: {
|
|
type: Boolean,
|
|
default: uni.$u.props.modal.showConfirmButton
|
|
},
|
|
// 鏄惁鏄剧ず鍙栨秷鎸夐挳
|
|
showCancelButton: {
|
|
type: Boolean,
|
|
default: uni.$u.props.modal.showCancelButton
|
|
},
|
|
// 纭鎸夐挳棰滆壊
|
|
confirmColor: {
|
|
type: String,
|
|
default: uni.$u.props.modal.confirmColor
|
|
},
|
|
// 鍙栨秷鏂囧瓧棰滆壊
|
|
cancelColor: {
|
|
type: String,
|
|
default: uni.$u.props.modal.cancelColor
|
|
},
|
|
// 瀵硅皟纭鍜屽彇娑堢殑浣嶇疆
|
|
buttonReverse: {
|
|
type: Boolean,
|
|
default: uni.$u.props.modal.buttonReverse
|
|
},
|
|
// 鏄惁寮€鍚缉鏀炬晥鏋?
|
|
zoom: {
|
|
type: Boolean,
|
|
default: uni.$u.props.modal.zoom
|
|
},
|
|
// 鏄惁寮傛鍏抽棴锛屽彧瀵圭‘瀹氭寜閽湁鏁?
|
|
asyncClose: {
|
|
type: Boolean,
|
|
default: uni.$u.props.modal.asyncClose
|
|
},
|
|
// 鏄惁鍏佽鐐瑰嚮閬僵鍏抽棴modal
|
|
closeOnClickOverlay: {
|
|
type: Boolean,
|
|
default: uni.$u.props.modal.closeOnClickOverlay
|
|
},
|
|
// 缁欎竴涓礋鐨刴argin-top锛屽線涓婂亸绉伙紝閬垮厤鍜岄敭鐩橀噸鍚堢殑鎯呭喌
|
|
negativeTop: {
|
|
type: [String, Number],
|
|
default: uni.$u.props.modal.negativeTop
|
|
},
|
|
// modal瀹藉害锛屼笉鏀寔鐧惧垎姣旓紝鍙互鏁板€硷紝px锛宺px鍗曚綅
|
|
width: {
|
|
type: [String, Number],
|
|
default: uni.$u.props.modal.width
|
|
},
|
|
// 纭鎸夐挳鐨勬牱寮忥紝circle-鍦嗗舰锛宻quare-鏂瑰舰锛屽璁剧疆锛屽皢涓嶄細鏄剧ず鍙栨秷鎸夐挳
|
|
confirmButtonShape: {
|
|
type: String,
|
|
default: uni.$u.props.modal.confirmButtonShape
|
|
},
|
|
// 寮圭獥鍔ㄧ敾杩囧害鏃堕棿
|
|
duration:{
|
|
type:String | Number,
|
|
default: uni.$u.props.modal.duration
|
|
}
|
|
}
|
|
}
|