|
|
|
|
@@ -5,9 +5,9 @@ exports[`compiler: transform v-model errors should allow usage on custom element
|
|
|
|
|
|
|
|
|
|
return function render(_ctx, _cache) {
|
|
|
|
|
with (_ctx) {
|
|
|
|
|
const { vModelText: _vModelText, withDirectives: _withDirectives, openBlock: _openBlock, createBlock: _createBlock } = _Vue
|
|
|
|
|
const { vModelText: _vModelText, withDirectives: _withDirectives, openBlock: _openBlock, createElementBlock: _createElementBlock } = _Vue
|
|
|
|
|
|
|
|
|
|
return _withDirectives((_openBlock(), _createBlock(\\"my-input\\", {
|
|
|
|
|
return _withDirectives((_openBlock(), _createElementBlock(\\"my-input\\", {
|
|
|
|
|
\\"onUpdate:modelValue\\": $event => (model = $event)
|
|
|
|
|
}, null, 8 /* PROPS */, [\\"onUpdate:modelValue\\"])), [
|
|
|
|
|
[_vModelText, model]
|
|
|
|
|
@@ -21,9 +21,9 @@ exports[`compiler: transform v-model input w/ dynamic v-bind 1`] = `
|
|
|
|
|
|
|
|
|
|
return function render(_ctx, _cache) {
|
|
|
|
|
with (_ctx) {
|
|
|
|
|
const { vModelDynamic: _vModelDynamic, mergeProps: _mergeProps, withDirectives: _withDirectives, openBlock: _openBlock, createBlock: _createBlock } = _Vue
|
|
|
|
|
const { vModelDynamic: _vModelDynamic, mergeProps: _mergeProps, withDirectives: _withDirectives, openBlock: _openBlock, createElementBlock: _createElementBlock } = _Vue
|
|
|
|
|
|
|
|
|
|
return _withDirectives((_openBlock(), _createBlock(\\"input\\", _mergeProps(obj, {
|
|
|
|
|
return _withDirectives((_openBlock(), _createElementBlock(\\"input\\", _mergeProps(obj, {
|
|
|
|
|
\\"onUpdate:modelValue\\": $event => (model = $event)
|
|
|
|
|
}), null, 16 /* FULL_PROPS */, [\\"onUpdate:modelValue\\"])), [
|
|
|
|
|
[_vModelDynamic, model]
|
|
|
|
|
@@ -37,11 +37,11 @@ exports[`compiler: transform v-model input w/ dynamic v-bind 2`] = `
|
|
|
|
|
|
|
|
|
|
return function render(_ctx, _cache) {
|
|
|
|
|
with (_ctx) {
|
|
|
|
|
const { vModelDynamic: _vModelDynamic, resolveDirective: _resolveDirective, withDirectives: _withDirectives, openBlock: _openBlock, createBlock: _createBlock } = _Vue
|
|
|
|
|
const { vModelDynamic: _vModelDynamic, resolveDirective: _resolveDirective, withDirectives: _withDirectives, openBlock: _openBlock, createElementBlock: _createElementBlock } = _Vue
|
|
|
|
|
|
|
|
|
|
const _directive_bind = _resolveDirective(\\"bind\\")
|
|
|
|
|
|
|
|
|
|
return _withDirectives((_openBlock(), _createBlock(\\"input\\", {
|
|
|
|
|
return _withDirectives((_openBlock(), _createElementBlock(\\"input\\", {
|
|
|
|
|
\\"onUpdate:modelValue\\": $event => (model = $event)
|
|
|
|
|
}, null, 8 /* PROPS */, [\\"onUpdate:modelValue\\"])), [
|
|
|
|
|
[_directive_bind, val, key],
|
|
|
|
|
@@ -56,9 +56,9 @@ exports[`compiler: transform v-model modifiers .lazy 1`] = `
|
|
|
|
|
|
|
|
|
|
return function render(_ctx, _cache) {
|
|
|
|
|
with (_ctx) {
|
|
|
|
|
const { vModelText: _vModelText, withDirectives: _withDirectives, openBlock: _openBlock, createBlock: _createBlock } = _Vue
|
|
|
|
|
const { vModelText: _vModelText, withDirectives: _withDirectives, openBlock: _openBlock, createElementBlock: _createElementBlock } = _Vue
|
|
|
|
|
|
|
|
|
|
return _withDirectives((_openBlock(), _createBlock(\\"input\\", {
|
|
|
|
|
return _withDirectives((_openBlock(), _createElementBlock(\\"input\\", {
|
|
|
|
|
\\"onUpdate:modelValue\\": $event => (model = $event)
|
|
|
|
|
}, null, 8 /* PROPS */, [\\"onUpdate:modelValue\\"])), [
|
|
|
|
|
[
|
|
|
|
|
@@ -77,9 +77,9 @@ exports[`compiler: transform v-model modifiers .number 1`] = `
|
|
|
|
|
|
|
|
|
|
return function render(_ctx, _cache) {
|
|
|
|
|
with (_ctx) {
|
|
|
|
|
const { vModelText: _vModelText, withDirectives: _withDirectives, openBlock: _openBlock, createBlock: _createBlock } = _Vue
|
|
|
|
|
const { vModelText: _vModelText, withDirectives: _withDirectives, openBlock: _openBlock, createElementBlock: _createElementBlock } = _Vue
|
|
|
|
|
|
|
|
|
|
return _withDirectives((_openBlock(), _createBlock(\\"input\\", {
|
|
|
|
|
return _withDirectives((_openBlock(), _createElementBlock(\\"input\\", {
|
|
|
|
|
\\"onUpdate:modelValue\\": $event => (model = $event)
|
|
|
|
|
}, null, 8 /* PROPS */, [\\"onUpdate:modelValue\\"])), [
|
|
|
|
|
[
|
|
|
|
|
@@ -98,9 +98,9 @@ exports[`compiler: transform v-model modifiers .trim 1`] = `
|
|
|
|
|
|
|
|
|
|
return function render(_ctx, _cache) {
|
|
|
|
|
with (_ctx) {
|
|
|
|
|
const { vModelText: _vModelText, withDirectives: _withDirectives, openBlock: _openBlock, createBlock: _createBlock } = _Vue
|
|
|
|
|
const { vModelText: _vModelText, withDirectives: _withDirectives, openBlock: _openBlock, createElementBlock: _createElementBlock } = _Vue
|
|
|
|
|
|
|
|
|
|
return _withDirectives((_openBlock(), _createBlock(\\"input\\", {
|
|
|
|
|
return _withDirectives((_openBlock(), _createElementBlock(\\"input\\", {
|
|
|
|
|
\\"onUpdate:modelValue\\": $event => (model = $event)
|
|
|
|
|
}, null, 8 /* PROPS */, [\\"onUpdate:modelValue\\"])), [
|
|
|
|
|
[
|
|
|
|
|
@@ -119,9 +119,9 @@ exports[`compiler: transform v-model simple expression 1`] = `
|
|
|
|
|
|
|
|
|
|
return function render(_ctx, _cache) {
|
|
|
|
|
with (_ctx) {
|
|
|
|
|
const { vModelText: _vModelText, withDirectives: _withDirectives, openBlock: _openBlock, createBlock: _createBlock } = _Vue
|
|
|
|
|
const { vModelText: _vModelText, withDirectives: _withDirectives, openBlock: _openBlock, createElementBlock: _createElementBlock } = _Vue
|
|
|
|
|
|
|
|
|
|
return _withDirectives((_openBlock(), _createBlock(\\"input\\", {
|
|
|
|
|
return _withDirectives((_openBlock(), _createElementBlock(\\"input\\", {
|
|
|
|
|
\\"onUpdate:modelValue\\": $event => (model = $event)
|
|
|
|
|
}, null, 8 /* PROPS */, [\\"onUpdate:modelValue\\"])), [
|
|
|
|
|
[_vModelText, model]
|
|
|
|
|
@@ -135,9 +135,9 @@ exports[`compiler: transform v-model simple expression for input (checkbox) 1`]
|
|
|
|
|
|
|
|
|
|
return function render(_ctx, _cache) {
|
|
|
|
|
with (_ctx) {
|
|
|
|
|
const { vModelCheckbox: _vModelCheckbox, withDirectives: _withDirectives, openBlock: _openBlock, createBlock: _createBlock } = _Vue
|
|
|
|
|
const { vModelCheckbox: _vModelCheckbox, withDirectives: _withDirectives, openBlock: _openBlock, createElementBlock: _createElementBlock } = _Vue
|
|
|
|
|
|
|
|
|
|
return _withDirectives((_openBlock(), _createBlock(\\"input\\", {
|
|
|
|
|
return _withDirectives((_openBlock(), _createElementBlock(\\"input\\", {
|
|
|
|
|
type: \\"checkbox\\",
|
|
|
|
|
\\"onUpdate:modelValue\\": $event => (model = $event)
|
|
|
|
|
}, null, 8 /* PROPS */, [\\"onUpdate:modelValue\\"])), [
|
|
|
|
|
@@ -152,11 +152,11 @@ exports[`compiler: transform v-model simple expression for input (dynamic type)
|
|
|
|
|
|
|
|
|
|
return function render(_ctx, _cache) {
|
|
|
|
|
with (_ctx) {
|
|
|
|
|
const { vModelDynamic: _vModelDynamic, resolveDirective: _resolveDirective, withDirectives: _withDirectives, openBlock: _openBlock, createBlock: _createBlock } = _Vue
|
|
|
|
|
const { vModelDynamic: _vModelDynamic, resolveDirective: _resolveDirective, withDirectives: _withDirectives, openBlock: _openBlock, createElementBlock: _createElementBlock } = _Vue
|
|
|
|
|
|
|
|
|
|
const _directive_bind = _resolveDirective(\\"bind\\")
|
|
|
|
|
|
|
|
|
|
return _withDirectives((_openBlock(), _createBlock(\\"input\\", {
|
|
|
|
|
return _withDirectives((_openBlock(), _createElementBlock(\\"input\\", {
|
|
|
|
|
\\"onUpdate:modelValue\\": $event => (model = $event)
|
|
|
|
|
}, null, 8 /* PROPS */, [\\"onUpdate:modelValue\\"])), [
|
|
|
|
|
[_directive_bind, foo, \\"type\\"],
|
|
|
|
|
@@ -171,9 +171,9 @@ exports[`compiler: transform v-model simple expression for input (radio) 1`] = `
|
|
|
|
|
|
|
|
|
|
return function render(_ctx, _cache) {
|
|
|
|
|
with (_ctx) {
|
|
|
|
|
const { vModelRadio: _vModelRadio, withDirectives: _withDirectives, openBlock: _openBlock, createBlock: _createBlock } = _Vue
|
|
|
|
|
const { vModelRadio: _vModelRadio, withDirectives: _withDirectives, openBlock: _openBlock, createElementBlock: _createElementBlock } = _Vue
|
|
|
|
|
|
|
|
|
|
return _withDirectives((_openBlock(), _createBlock(\\"input\\", {
|
|
|
|
|
return _withDirectives((_openBlock(), _createElementBlock(\\"input\\", {
|
|
|
|
|
type: \\"radio\\",
|
|
|
|
|
\\"onUpdate:modelValue\\": $event => (model = $event)
|
|
|
|
|
}, null, 8 /* PROPS */, [\\"onUpdate:modelValue\\"])), [
|
|
|
|
|
@@ -188,9 +188,9 @@ exports[`compiler: transform v-model simple expression for input (text) 1`] = `
|
|
|
|
|
|
|
|
|
|
return function render(_ctx, _cache) {
|
|
|
|
|
with (_ctx) {
|
|
|
|
|
const { vModelText: _vModelText, withDirectives: _withDirectives, openBlock: _openBlock, createBlock: _createBlock } = _Vue
|
|
|
|
|
const { vModelText: _vModelText, withDirectives: _withDirectives, openBlock: _openBlock, createElementBlock: _createElementBlock } = _Vue
|
|
|
|
|
|
|
|
|
|
return _withDirectives((_openBlock(), _createBlock(\\"input\\", {
|
|
|
|
|
return _withDirectives((_openBlock(), _createElementBlock(\\"input\\", {
|
|
|
|
|
type: \\"text\\",
|
|
|
|
|
\\"onUpdate:modelValue\\": $event => (model = $event)
|
|
|
|
|
}, null, 8 /* PROPS */, [\\"onUpdate:modelValue\\"])), [
|
|
|
|
|
@@ -205,9 +205,9 @@ exports[`compiler: transform v-model simple expression for select 1`] = `
|
|
|
|
|
|
|
|
|
|
return function render(_ctx, _cache) {
|
|
|
|
|
with (_ctx) {
|
|
|
|
|
const { vModelSelect: _vModelSelect, withDirectives: _withDirectives, openBlock: _openBlock, createBlock: _createBlock } = _Vue
|
|
|
|
|
const { vModelSelect: _vModelSelect, withDirectives: _withDirectives, openBlock: _openBlock, createElementBlock: _createElementBlock } = _Vue
|
|
|
|
|
|
|
|
|
|
return _withDirectives((_openBlock(), _createBlock(\\"select\\", {
|
|
|
|
|
return _withDirectives((_openBlock(), _createElementBlock(\\"select\\", {
|
|
|
|
|
\\"onUpdate:modelValue\\": $event => (model = $event)
|
|
|
|
|
}, null, 8 /* PROPS */, [\\"onUpdate:modelValue\\"])), [
|
|
|
|
|
[_vModelSelect, model]
|
|
|
|
|
@@ -221,9 +221,9 @@ exports[`compiler: transform v-model simple expression for textarea 1`] = `
|
|
|
|
|
|
|
|
|
|
return function render(_ctx, _cache) {
|
|
|
|
|
with (_ctx) {
|
|
|
|
|
const { vModelText: _vModelText, withDirectives: _withDirectives, openBlock: _openBlock, createBlock: _createBlock } = _Vue
|
|
|
|
|
const { vModelText: _vModelText, withDirectives: _withDirectives, openBlock: _openBlock, createElementBlock: _createElementBlock } = _Vue
|
|
|
|
|
|
|
|
|
|
return _withDirectives((_openBlock(), _createBlock(\\"textarea\\", {
|
|
|
|
|
return _withDirectives((_openBlock(), _createElementBlock(\\"textarea\\", {
|
|
|
|
|
\\"onUpdate:modelValue\\": $event => (model = $event)
|
|
|
|
|
}, null, 8 /* PROPS */, [\\"onUpdate:modelValue\\"])), [
|
|
|
|
|
[_vModelText, model]
|
|
|
|
|
|