@stencil/vue-output-target
Advanced tools
Comparing version 0.8.4 to 0.8.5
{ | ||
"name": "@stencil/vue-output-target", | ||
"version": "0.8.4", | ||
"version": "0.8.5", | ||
"description": "Vue output target for @stencil/core components.", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.cjs.js", |
@@ -0,1 +1,3 @@ | ||
// @ts-nocheck | ||
// It's easier and safer for Volar to disable typechecking and let the return type inference do its job. | ||
import { VNode, defineComponent, getCurrentInstance, h, inject, ref, Ref } from 'vue'; | ||
@@ -75,3 +77,3 @@ | ||
const Container = defineComponent<Props & InputProps<VModelType>>((props: any, { attrs, slots, emit }) => { | ||
const Container = defineComponent<Props & InputProps<VModelType>>((props, { attrs, slots, emit }) => { | ||
let modelPropValue = props[modelProp]; | ||
@@ -188,15 +190,17 @@ const containerRef = ref<HTMLElement>(); | ||
Container.name = name; | ||
if (typeof Container !== 'function') { | ||
Container.name = name; | ||
Container.props = { | ||
[ROUTER_LINK_VALUE]: DEFAULT_EMPTY_PROP, | ||
}; | ||
Container.props = { | ||
[ROUTER_LINK_VALUE]: DEFAULT_EMPTY_PROP, | ||
}; | ||
componentProps.forEach((componentProp) => { | ||
Container.props[componentProp] = DEFAULT_EMPTY_PROP; | ||
}); | ||
componentProps.forEach((componentProp) => { | ||
Container.props[componentProp] = DEFAULT_EMPTY_PROP; | ||
}); | ||
if (modelProp) { | ||
Container.props[MODEL_VALUE] = DEFAULT_EMPTY_PROP; | ||
Container.emits = [UPDATE_VALUE_EVENT, externalModelUpdateEvent]; | ||
if (modelProp) { | ||
Container.props[MODEL_VALUE] = DEFAULT_EMPTY_PROP; | ||
Container.emits = [UPDATE_VALUE_EVENT, externalModelUpdateEvent]; | ||
} | ||
} | ||
@@ -203,0 +207,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
55193
998