@stencil/vue-output-target
Advanced tools
Comparing version 0.0.1-dev.11698435275.1a07f4ea to 0.0.1-dev.11698435964.1950e76d
{ | ||
"name": "@stencil/vue-output-target", | ||
"version": "0.0.1-dev.11698435275.1a07f4ea", | ||
"version": "0.0.1-dev.11698435964.1950e76d", | ||
"description": "Vue output target for @stencil/core components.", | ||
@@ -55,3 +55,3 @@ "main": "dist/index.cjs.js", | ||
}, | ||
"gitHead": "a07f4eaa0a2a18ce4a1484a12dab22d2a53f44f5", | ||
"gitHead": "950e76d536f12e84f9e31bf371ec2c8c223a205f", | ||
"volta": { | ||
@@ -58,0 +58,0 @@ "extends": "../../package.json" |
@@ -78,2 +78,13 @@ // @ts-nocheck | ||
const classes = new Set(getComponentClasses(attrs.class)); | ||
/** | ||
* This directive is responsible for updating any reactive | ||
* reference associated with v-model on the component. | ||
* This code must be run inside of the "created" callback. | ||
* Since the following listener callbacks as well as any potential | ||
* event callback defined in the developer's app are set on | ||
* the same element, we need to make sure the following callbacks | ||
* are set first so they fire first. If the developer's callback fires first | ||
* then the reactive reference will not have been updated yet. | ||
*/ | ||
const vModelDirective = { | ||
@@ -134,3 +145,2 @@ created(el: HTMLElement) { | ||
onClick: handleClick, | ||
onVnodeBeforeMount: modelUpdateEvent ? onVnodeBeforeMount : undefined, | ||
}; | ||
@@ -171,2 +181,6 @@ | ||
/** | ||
* vModelDirective is only needed on components that support v-model. | ||
* As a result, we conditionally call withDirectives with v-model components. | ||
*/ | ||
const node = h(name, propsToAdd, slots.default && slots.default()); | ||
@@ -173,0 +187,0 @@ return modelProp === undefined ? node : withDirectives(node, [vModelDirective]); |
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
54270
987