fix(v-model): allow v-model usage on declared custom elements
fix #1699
This commit is contained in:
@@ -28,7 +28,7 @@ export interface ParserOptions {
|
||||
/**
|
||||
* Separate option for end users to extend the native elements list
|
||||
*/
|
||||
isCustomElement?: (tag: string) => boolean
|
||||
isCustomElement?: (tag: string) => boolean | void
|
||||
/**
|
||||
* Get tag namespace
|
||||
*/
|
||||
@@ -83,6 +83,10 @@ export interface TransformOptions {
|
||||
* for them.
|
||||
*/
|
||||
isBuiltInComponent?: (tag: string) => symbol | void
|
||||
/**
|
||||
* Used by some transforms that expects only native elements
|
||||
*/
|
||||
isCustomElement?: (tag: string) => boolean | void
|
||||
/**
|
||||
* Transform expressions like {{ foo }} to `_ctx.foo`.
|
||||
* If this option is false, the generated code will be wrapped in a
|
||||
|
||||
@@ -117,6 +117,7 @@ export function createTransformContext(
|
||||
directiveTransforms = {},
|
||||
transformHoist = null,
|
||||
isBuiltInComponent = NOOP,
|
||||
isCustomElement = NOOP,
|
||||
expressionPlugins = [],
|
||||
scopeId = null,
|
||||
ssr = false,
|
||||
@@ -134,6 +135,7 @@ export function createTransformContext(
|
||||
directiveTransforms,
|
||||
transformHoist,
|
||||
isBuiltInComponent,
|
||||
isCustomElement,
|
||||
expressionPlugins,
|
||||
scopeId,
|
||||
ssr,
|
||||
|
||||
Reference in New Issue
Block a user