File tree Expand file tree Collapse file tree 1 file changed +17
-10
lines changed
packages/app-frontend/src/features/plugin Expand file tree Collapse file tree 1 file changed +17
-10
lines changed Original file line number Diff line number Diff line change @@ -34,7 +34,9 @@ export default defineComponent({
34
34
})
35
35
36
36
function onLabelClick () {
37
- // @TODO
37
+ if (props .schema .type === ' boolean' ) {
38
+ model .value = ! model .value
39
+ }
38
40
}
39
41
40
42
return {
@@ -46,11 +48,11 @@ export default defineComponent({
46
48
</script >
47
49
48
50
<template >
49
- <div class = " flex items-start px-6 py-2 hover:bg-green-50 dark:hover:bg-green-900 " >
50
- < div
51
- class = " flex-1 select-none text-sm py-1.5 "
52
- @click = " onLabelClick() "
53
- >
51
+ <div
52
+ class = " flex items-start px-6 py-2 hover:bg-green-50 dark:hover:bg-green-900 "
53
+ @click = " onLabelClick() "
54
+ >
55
+ < div class = " flex-1 select-none text-sm py-1.5 " >
54
56
<div >{{ schema.label }}</div >
55
57
<div
56
58
v-if =" schema.description"
@@ -60,11 +62,16 @@ export default defineComponent({
60
62
</div >
61
63
</div >
62
64
<div class =" w-1/2" >
63
- <VueSwitch
65
+ <div
64
66
v-if =" schema.type === 'boolean'"
65
- v-model =" model"
66
- class =" my-2 w-full extend-left"
67
- />
67
+ class =" my-2 w-full h-[max-content]"
68
+ @click.stop
69
+ >
70
+ <VueSwitch
71
+ v-model =" model"
72
+ class =" w-full extend-left"
73
+ />
74
+ </div >
68
75
69
76
<template v-else-if =" schema .type === ' choice' " >
70
77
<VueGroup
You can’t perform that action at this time.
0 commit comments