We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3ea62ba commit b9ca4e2Copy full SHA for b9ca4e2
light/src/CronEditor.vue
@@ -23,6 +23,7 @@
23
:cols="cols[f.id] || 1"
24
:selection="f.text.value"
25
multiple
26
+ clearable
27
></custom-select>
28
</div>
29
<span>{{ f.suffix.value }}</span>
light/src/components/CustomSelect.vue
@@ -2,6 +2,8 @@
2
<div class="vcron-select-container">
3
<span class="vcron-select-input" @click="toggleMenu">
4
{{ selection ?? selectedStr }}
5
+
6
+ <span v-if="clearable && !isEmpty" @click="clear">✕</span>
7
</span>
8
9
<div class="vcron-select-list" v-if="menu">
@@ -35,6 +37,10 @@ export default {
35
37
selection: {
36
38
type: String,
39
},
40
+ clearable: {
41
+ type: Boolean,
42
+ default: false,
43
+ },
44
45
emits: ['update:model-value'],
46
setup(props, { emit }) {
0 commit comments