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,56 +1,57 @@
|
||||
import '@/common/uview-init.js'
|
||||
export default {
|
||||
props: {
|
||||
// 开始的数值,默认从0增长到某一个数
|
||||
// 寮€濮嬬殑鏁板€硷紝榛樿浠?澧為暱鍒版煇涓€涓暟
|
||||
startVal: {
|
||||
type: [String, Number],
|
||||
default: uni.$u.props.countTo.startVal
|
||||
},
|
||||
// 要滚动的目标数值,必须
|
||||
// 瑕佹粴鍔ㄧ殑鐩爣鏁板€硷紝蹇呴』
|
||||
endVal: {
|
||||
type: [String, Number],
|
||||
default: uni.$u.props.countTo.endVal
|
||||
},
|
||||
// 滚动到目标数值的动画持续时间,单位为毫秒(ms)
|
||||
// 婊氬姩鍒扮洰鏍囨暟鍊肩殑鍔ㄧ敾鎸佺画鏃堕棿锛屽崟浣嶄负姣锛坢s锛?
|
||||
duration: {
|
||||
type: [String, Number],
|
||||
default: uni.$u.props.countTo.duration
|
||||
},
|
||||
// 设置数值后是否自动开始滚动
|
||||
// 璁剧疆鏁板€煎悗鏄惁鑷姩寮€濮嬫粴鍔?
|
||||
autoplay: {
|
||||
type: Boolean,
|
||||
default: uni.$u.props.countTo.autoplay
|
||||
},
|
||||
// 要显示的小数位数
|
||||
// 瑕佹樉绀虹殑灏忔暟浣嶆暟
|
||||
decimals: {
|
||||
type: [String, Number],
|
||||
default: uni.$u.props.countTo.decimals
|
||||
},
|
||||
// 是否在即将到达目标数值的时候,使用缓慢滚动的效果
|
||||
// 鏄惁鍦ㄥ嵆灏嗗埌杈剧洰鏍囨暟鍊肩殑鏃跺€欙紝浣跨敤缂撴參婊氬姩鐨勬晥鏋?
|
||||
useEasing: {
|
||||
type: Boolean,
|
||||
default: uni.$u.props.countTo.useEasing
|
||||
},
|
||||
// 十进制分割
|
||||
// 鍗佽繘鍒跺垎鍓?
|
||||
decimal: {
|
||||
type: [String, Number],
|
||||
default: uni.$u.props.countTo.decimal
|
||||
},
|
||||
// 字体颜色
|
||||
// 瀛椾綋棰滆壊
|
||||
color: {
|
||||
type: String,
|
||||
default: uni.$u.props.countTo.color
|
||||
},
|
||||
// 字体大小
|
||||
// 瀛椾綋澶у皬
|
||||
fontSize: {
|
||||
type: [String, Number],
|
||||
default: uni.$u.props.countTo.fontSize
|
||||
},
|
||||
// 是否加粗字体
|
||||
// 鏄惁鍔犵矖瀛椾綋
|
||||
bold: {
|
||||
type: Boolean,
|
||||
default: uni.$u.props.countTo.bold
|
||||
},
|
||||
// 千位分隔符,类似金额的分割(¥23,321.05中的",")
|
||||
// 鍗冧綅鍒嗛殧绗︼紝绫讳技閲戦鐨勫垎鍓?锟?3,321.05涓殑",")
|
||||
separator: {
|
||||
type: String,
|
||||
default: uni.$u.props.countTo.separator
|
||||
|
||||
Reference in New Issue
Block a user