12345678910111213141516171819202122232425262728293031323334 |
- import { defineProps } from '../../libs/util/props';
- export default defineProps('code', {
- // 倒计时总秒数
- seconds: {
- type: [String, Number],
- default: 60
- },
- // 尚未开始时提示
- startText: {
- type: String,
- default: () => uni.$u.$t('uCode.startText')
- },
- // 正在倒计时中的提示
- changeText: {
- type: String,
- default: () => uni.$u.$t('uCode.changeText')
- },
- // 倒计时结束时的提示
- endText: {
- type: String,
- default: () => uni.$u.$t('uCode.endText')
- },
- // 是否在H5刷新或各端返回再进入时继续倒计时
- keepRunning: {
- type: Boolean,
- default: false
- },
- // 为了区分多个页面,或者一个页面多个倒计时组件本地存储的继续倒计时变了
- uniqueKey: {
- type: String,
- default: ''
- }
- })
|