File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -18,11 +18,8 @@ import { globalAttrs, globalProps } from './install'
1818
1919export type Mode = 'tree' | 'text' | 'table'
2020
21- type ModalValueProp = typeof isVue3 extends true ? 'modelValue' : 'value'
22- type UpdateModalValue = typeof isVue3 extends true ? 'update:modelValue' : 'input'
23-
24- const modelValueProp : ModalValueProp = ( isVue3 ? 'modelValue' : 'value' ) as any
25- const updateModelValue : UpdateModalValue = ( isVue3 ? 'update:modelValue' : 'input' ) as any
21+ const modelValueProp : any = isVue3 ? 'modelValue' : 'value'
22+ const updateModelValue : any = isVue3 ? 'update:modelValue' : 'input'
2623
2724const boolAttributes = [
2825 'mainMenuBar' ,
@@ -38,7 +35,7 @@ export default defineComponent({
3835 name,
3936 inheritAttrs : true ,
4037 props : {
41- [ modelValueProp ] : { } ,
38+ [ modelValueProp as any ] : { } ,
4239 mode : {
4340 type : String as PropType < Mode > ,
4441 } ,
You can’t perform that action at this time.
0 commit comments