Skip to content

Commit 2f3dc0a

Browse files
committed
refactor: simplify setup
1 parent b20f5fb commit 2f3dc0a

File tree

2 files changed

+2
-9
lines changed

2 files changed

+2
-9
lines changed

ant/src/components/cron-ant.vue

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -87,10 +87,7 @@ export default defineComponent({
8787
props: cronAntProps(),
8888
emits: ['update:model-value', 'error'],
8989
setup(props, ctx) {
90-
const cron = setupCron(props, () => props.modelValue, ctx)
91-
return {
92-
...cron,
93-
}
90+
return setupCron(props, () => props.modelValue, ctx)
9491
},
9592
})
9693
</script>

light/src/components/cron-light.vue

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -56,11 +56,7 @@ export default defineComponent({
5656
emits: ['update:model-value', 'error'],
5757
props: cronLightProps(),
5858
setup(props, ctx) {
59-
const cron = setupCron(props, () => props.modelValue, ctx)
60-
61-
return {
62-
...cron,
63-
}
59+
return setupCron(props, () => props.modelValue, ctx)
6460
},
6561
})
6662
</script>

0 commit comments

Comments
 (0)