perf: add truthProp util (#8522)
* perf: add TruthyProp util * chore: rename * chore: upd
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import { watch, computed, defineComponent } from 'vue';
|
||||
|
||||
// Utils
|
||||
import { createNamespace } from '../utils';
|
||||
import { truthProp, createNamespace } from '../utils';
|
||||
import { parseFormat } from './utils';
|
||||
|
||||
// Composables
|
||||
@@ -14,6 +14,7 @@ export default defineComponent({
|
||||
name,
|
||||
|
||||
props: {
|
||||
autoStart: truthProp,
|
||||
millisecond: Boolean,
|
||||
time: {
|
||||
type: [Number, String],
|
||||
@@ -23,10 +24,6 @@ export default defineComponent({
|
||||
type: String,
|
||||
default: 'HH:mm:ss',
|
||||
},
|
||||
autoStart: {
|
||||
type: Boolean,
|
||||
default: true,
|
||||
},
|
||||
},
|
||||
|
||||
emits: ['change', 'finish'],
|
||||
|
||||
Reference in New Issue
Block a user