This repository was archived by the owner on Jan 9, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 7 files changed +31
-25
lines changed
PropControls/BooleanSwitch Expand file tree Collapse file tree 7 files changed +31
-25
lines changed Original file line number Diff line number Diff line change 7
7
},
8
8
"license" : " MIT" ,
9
9
"dependencies" : {
10
+ "@vueuse/core" : " ^5.2.0" ,
10
11
"gitart-vue-dialog" : " 0.0.15" ,
11
12
"vue" : " 3.2.0-beta.7"
12
13
},
Original file line number Diff line number Diff line change 17
17
18
18
<script lang="ts">
19
19
import { ref , defineComponent } from ' vue'
20
- import { GDialog } from ' plugin '
20
+ import { useVModel } from ' @vueuse/core '
21
21
22
- import { useModelWrapper } from ' @/composables/modelWrapper '
22
+ import { GDialog } from ' plugin '
23
23
24
24
import BooleanSwitch from ' @/components/PropControls/BooleanSwitch/BooleanSwitch.vue'
25
25
@@ -39,7 +39,7 @@ export default defineComponent({
39
39
40
40
setup(props , { emit }) {
41
41
const depressed = ref (false )
42
- const value = useModelWrapper (props , emit )
42
+ const value = useVModel (props , ' modelValue ' , emit )
43
43
44
44
return {
45
45
depressed ,
Original file line number Diff line number Diff line change 32
32
33
33
<script lang="ts">
34
34
import { defineComponent } from ' vue'
35
+ import { useVModel } from ' @vueuse/core'
35
36
import { GDialog } from ' plugin'
36
37
37
- import { useModelWrapper } from ' @/composables/modelWrapper'
38
-
39
38
import DialogToolbar from ' @/components/Dialog/DialogToolbar.vue'
40
39
41
40
export default defineComponent ({
@@ -55,7 +54,7 @@ export default defineComponent({
55
54
emits: [' update:modelValue' ],
56
55
57
56
setup(props , { emit }) {
58
- const value = useModelWrapper (props , emit )
57
+ const value = useVModel (props , ' modelValue ' , emit )
59
58
60
59
const onClose = () => {
61
60
value .value = false
Original file line number Diff line number Diff line change 24
24
25
25
<script lang="ts">
26
26
import { defineComponent } from ' vue'
27
- import { GDialog } from ' plugin '
27
+ import { useVModel } from ' @vueuse/core '
28
28
29
- import { useModelWrapper } from ' @/composables/modelWrapper '
29
+ import { GDialog } from ' plugin '
30
30
31
31
import DialogToolbar from ' @/components/Dialog/DialogToolbar.vue'
32
32
@@ -47,7 +47,7 @@ export default defineComponent({
47
47
emits: [' update:modelValue' ],
48
48
49
49
setup(props , { emit }) {
50
- const value = useModelWrapper (props , emit )
50
+ const value = useVModel (props , ' modelValue ' , emit )
51
51
52
52
const onClose = () => {
53
53
value .value = false
Original file line number Diff line number Diff line change 15
15
16
16
<script lang="ts">
17
17
import { defineComponent } from ' vue'
18
- import { useModelWrapper } from ' @/composables/modelWrapper '
18
+ import { useVModel } from ' @vueuse/core '
19
19
20
20
import Radio from ' @/components/UI/Radio/Radio.vue'
21
21
import RadioGroup from ' @/components/UI/RadioGroup/RadioGroup.vue'
@@ -40,7 +40,7 @@ export default defineComponent({
40
40
},
41
41
42
42
setup(props , { emit }) {
43
- const value = useModelWrapper (props , emit )
43
+ const value = useVModel (props , ' modelValue ' , emit )
44
44
45
45
return {
46
46
value ,
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 261
261
resolved "https://registry.yarnpkg.com/@vue/shared/-/shared-3.2.0-beta.5.tgz#c2752bac51476bfd9c6050f4a5e97c28eb66f27a"
262
262
integrity sha512-DprP8v3vg/nnfl4b93hJ+ujojiFAMwXbng8N9NpNDSuFMZG0zFO3Tqh3X1JQgaE7jUgYoQzR2TTGCKNb/4+QGA==
263
263
264
+ " @vueuse/core@^5.2.0 " :
265
+ version "5.2.0"
266
+ resolved "https://registry.yarnpkg.com/@vueuse/core/-/core-5.2.0.tgz#c2c0b89d9506fdfca41cd3056e38478226bc5e31"
267
+ integrity sha512-IS2QnVZ4lTlRUtgPHJ4ttTatXGWRZuvj/GJDVp8FRlUjzKXD0YjZtx0280FCg7y3YejXV2QGhY+/YrXybMjpPw==
268
+ dependencies :
269
+ " @vueuse/shared" " 5.2.0"
270
+ vue-demi "*"
271
+
272
+
273
+ version "5.2.0"
274
+ resolved "https://registry.yarnpkg.com/@vueuse/shared/-/shared-5.2.0.tgz#894921cf5e5fc7f9afa7d7870800b0c9cd265e0c"
275
+ integrity sha512-PD2PBaEcdl+pXXeKjhU+LZqQuA9xX/6mtVGIYG29xsjH7W3IjU164nwCAfDe2Lsy8rMaYmVqVSB6PHtiZZyDSg==
276
+ dependencies :
277
+ vue-demi "*"
278
+
264
279
265
280
version "1.2.7"
266
281
resolved "https://registry.yarnpkg.com/@windicss/config/-/config-1.2.7.tgz#c70bde7de272574f7a33eb9a1d7f80bdbffe48ba"
@@ -1166,6 +1181,11 @@ vscode-vue-languageservice@^0.26.6:
1166
1181
vscode-pug-languageservice "^0.26.10"
1167
1182
vscode-typescript-languageservice "^0.26.10"
1168
1183
1184
+ vue-demi@* :
1185
+ version "0.11.2"
1186
+ resolved "https://registry.yarnpkg.com/vue-demi/-/vue-demi-0.11.2.tgz#faa06da53887c493a695b997f4fcb4784a667990"
1187
+ integrity sha512-J+X8Au6BhQdcej6LY4O986634hZLu55L0ewU2j8my7WIKlu8cK0dqmdUxqVHHMd/cMrKKZ9SywB/id6aLhwCtA==
1188
+
1169
1189
vue-tsc@^0.2.2 :
1170
1190
version "0.2.2"
1171
1191
resolved "https://registry.yarnpkg.com/vue-tsc/-/vue-tsc-0.2.2.tgz#e7fd5e5c789beb31840ad26082cfc8bb6356e733"
You can’t perform that action at this time.
0 commit comments