@wanghonggan/uv-ui
Version:
uv-ui 破釜沉舟之兼容vue3+2、nvue、app、h5、小程序等多端基于uni-app和uView2.x的生态框架,支持单独导入,开箱即用,利剑出击。
27 lines (26 loc) • 539 B
JavaScript
import { getPropsByKey } from "../../libs/config/config";
export default {
props: {
// 倒计时时长,单位ms
time: {
type: [String, Number],
default: 0
},
// 时间格式,DD-日,HH-时,mm-分,ss-秒,SSS-毫秒
format: {
type: String,
default: 'HH:mm:ss'
},
// 是否自动开始倒计时
autoStart: {
type: Boolean,
default: true
},
// 是否展示毫秒倒计时
millisecond: {
type: Boolean,
default: false
},
...getPropsByKey('countDown')
}
}