Kawokas
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
18 additions and
1 deletions
-
types/test/options-test.ts
-
types/vnode.d.ts
|
|
@ -482,3 +482,20 @@ Vue.component('functional-component-v-model', { |
|
|
|
|
|
|
|
|
|
|
|
Vue.component('async-es-module-component', () => import('./es-module')) |
|
|
|
|
|
|
|
Vue.component('directive-expression-optional-string', { |
|
|
|
render(createElement) { |
|
|
|
return createElement("div", { |
|
|
|
directives: [ |
|
|
|
{ |
|
|
|
name: 'has-expression', |
|
|
|
value: 2, |
|
|
|
expression: '1 + 1', |
|
|
|
}, { |
|
|
|
name: 'no-expression', |
|
|
|
value: 'foo', |
|
|
|
}, |
|
|
|
], |
|
|
|
}) |
|
|
|
} |
|
|
|
}); |
|
|
|
|
|
@ -69,7 +69,7 @@ export interface VNodeDirective { |
|
|
|
name: string; |
|
|
|
value?: any; |
|
|
|
oldValue?: any; |
|
|
|
expression?: any; |
|
|
|
expression?: string; |
|
|
|
arg?: string; |
|
|
|
oldArg?: string; |
|
|
|
modifiers?: { [key: string]: boolean }; |
|
|
|