Skip to content

Commit 538b8e5

Browse files
committed
docs: Remove invalid prop "cols"
1 parent ef951fe commit 538b8e5

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

docs/src/.vuepress/components/custom-fields.vue

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,13 @@
66
:periods="periods"
77
:fields="fields"
88
@error="error=$event"
9-
:custom-locale="customLocale"
10-
:cols="cols" />
9+
:custom-locale="customLocale" />
1110
</div>
1211
</template>
1312

1413
<script>
1514
16-
import { defaultItems, genItems, pad } from '@vue-js-cron/core'
15+
import { defaultItems, genItems, pad } from '@vue-js-cron/core';
1716
1817
export default {
1918
data () {
@@ -35,13 +34,6 @@ export default {
3534
{ id: 'day', items: items.dayItems },
3635
{ id: 'month', items: items.monthItems }
3736
],
38-
cols (fieldId) {
39-
if (fieldId === 'minute') return 5
40-
else if (fieldId === 'hour') return 4
41-
else if (fieldId === 'day') return 4
42-
else if (fieldId === 'second') return 3
43-
else return 1
44-
},
4537
customLocale: {
4638
'*': {
4739
second: {

0 commit comments

Comments
 (0)