File tree Expand file tree Collapse file tree 3 files changed +30
-23
lines changed Expand file tree Collapse file tree 3 files changed +30
-23
lines changed Original file line number Diff line number Diff line change 4
4
<v-card >
5
5
<v-card-text >
6
6
<v-text-field label =" " :model-value =" value" @update:model-value =" nextValue = $event" @blur =" value=nextValue" ></v-text-field >
7
- <VueCronEditor v-model =" value" />
7
+ <VueCronEditor v-model =" value" :chipProps = " { color: 'primary' } " />
8
8
</v-card-text >
9
9
</v-card >
10
10
</v-container >
Original file line number Diff line number Diff line change 5
5
<v-row align =" baseline" dense >
6
6
<v-col v-if =" period.prefix" class =" flex-grow-0" >{{period.prefix}}</v-col >
7
7
<v-col cols =" auto" >
8
- <custom-select v-bind =" period.attrs" :items =" period.items" v-on =" period.events" item-value =" id" :density =" density" :variant =" variant" ></custom-select >
8
+ <custom-select
9
+ v-bind =" period.attrs"
10
+ :items =" period.items"
11
+ v-on =" period.events"
12
+ item-value =" id"
13
+ :chip-props =" chipProps" />
9
14
</v-col >
10
15
<v-col v-if =" period.suffix" class =" flex-grow-0" >{{period.suffix}}</v-col >
11
16
12
17
<template v-for =" f in fields " :key =" f .id " >
13
18
<v-col v-if =" f.prefix" class =" flex-grow-0" >{{f.prefix}}</v-col >
14
19
<v-col cols =" auto" >
15
- <custom-select v-bind =" f.attrs" v-on =" f.events" :selection =" f.selectedStr" :cols =" cols(f.id)" :items =" f.items" multiple :density =" density" :variant =" variant" :close-on-content-click =" false" clearable >
16
- </custom-select >
20
+ <custom-select
21
+ v-bind =" f.attrs"
22
+ v-on =" f.events"
23
+ :selection =" f.selectedStr"
24
+ :cols =" cols(f.id)"
25
+ :items =" f.items"
26
+ multiple
27
+ :chip-props =" chipProps"
28
+ :menu-props =" { closeOnContentClick: false }"
29
+ clearable />
17
30
</v-col >
18
31
<v-col v-if =" f.suffix" class =" flex-grow-0" >{{f.suffix}}</v-col >
19
32
</template >
@@ -33,13 +46,11 @@ export default {
33
46
CustomSelect
34
47
},
35
48
props: {
36
- variant: {
37
- type: String ,
38
- default: ' elevated'
39
- },
40
- density: {
41
- type: String ,
42
- default: ' default'
49
+ chipProps: {
50
+ type: Object ,
51
+ default () {
52
+ return {}
53
+ }
43
54
},
44
55
cols: {
45
56
type: Function ,
Original file line number Diff line number Diff line change 1
1
<template >
2
- <v-chip v-if =" true" :density = " density " :variant = " variant " >
2
+ <v-chip v-if =" true" v-bind = " chipProps " >
3
3
4
4
<template #append v-if =" clearable " >
5
5
<v-icon v-if =" selectedItems.length > 0" size =" small" icon =" mdi-close" @click.stop =" clear()" >
8
8
9
9
{{selection ? selection : selectedStr}}
10
10
11
- <v-menu activator =" parent" :close-on-content-click = " closeOnContentClick " >
11
+ <v-menu activator =" parent" v-bind = " menuProps " >
12
12
<v-list class =" pa-0 ma-0" >
13
13
<v-row v-for =" (itemRow, index) in itemRows" :key =" index" no-gutters >
14
14
<v-col v-for =" (item, index) in itemRow" :key =" index" >
@@ -60,22 +60,18 @@ export default {
60
60
type: String ,
61
61
default: ' unset'
62
62
},
63
- variant : {
64
- type: String ,
65
- default: ' elevated '
63
+ menuProps : {
64
+ type: Object ,
65
+ default : () => {}
66
66
},
67
- density : {
68
- type: String ,
69
- default: ' default '
67
+ chipProps : {
68
+ type: Object ,
69
+ default : () => {}
70
70
},
71
71
selection: {
72
72
type: String ,
73
73
default: ' '
74
74
},
75
- closeOnContentClick: {
76
- type: Boolean ,
77
- default: true
78
- },
79
75
clearable: {
80
76
type: Boolean ,
81
77
default: false
You can’t perform that action at this time.
0 commit comments