|
|
|
|
@@ -5,14 +5,14 @@ exports[`compiler: transform v-model input w/ dynamic v-bind 1`] = `
|
|
|
|
|
|
|
|
|
|
return function render(_ctx, _cache) {
|
|
|
|
|
with (this) {
|
|
|
|
|
const { vModelDynamic: _vModelDynamic, mergeProps: _mergeProps, createVNode: _createVNode, withDirectives: _withDirectives, createBlock: _createBlock, openBlock: _openBlock } = _Vue
|
|
|
|
|
const { vModelDynamic: _vModelDynamic, mergeProps: _mergeProps, createVNode: _createVNode, withDirectives: _withDirectives, openBlock: _openBlock, createBlock: _createBlock } = _Vue
|
|
|
|
|
|
|
|
|
|
return (_openBlock(), _withDirectives(_createBlock(\\"input\\", _mergeProps(obj, {
|
|
|
|
|
return _withDirectives((_openBlock(), _createBlock(\\"input\\", _mergeProps(obj, {
|
|
|
|
|
modelValue: model,
|
|
|
|
|
\\"onUpdate:modelValue\\": $event => (model = $event)
|
|
|
|
|
}), null, 16 /* FULL_PROPS */, [\\"modelValue\\", \\"onUpdate:modelValue\\"]), [
|
|
|
|
|
}), null, 16 /* FULL_PROPS */, [\\"modelValue\\", \\"onUpdate:modelValue\\"])), [
|
|
|
|
|
[_vModelDynamic, model]
|
|
|
|
|
]))
|
|
|
|
|
])
|
|
|
|
|
}
|
|
|
|
|
}"
|
|
|
|
|
`;
|
|
|
|
|
@@ -22,17 +22,17 @@ exports[`compiler: transform v-model input w/ dynamic v-bind 2`] = `
|
|
|
|
|
|
|
|
|
|
return function render(_ctx, _cache) {
|
|
|
|
|
with (this) {
|
|
|
|
|
const { vModelDynamic: _vModelDynamic, createVNode: _createVNode, withDirectives: _withDirectives, resolveDirective: _resolveDirective, createBlock: _createBlock, openBlock: _openBlock } = _Vue
|
|
|
|
|
const { vModelDynamic: _vModelDynamic, resolveDirective: _resolveDirective, createVNode: _createVNode, withDirectives: _withDirectives, openBlock: _openBlock, createBlock: _createBlock } = _Vue
|
|
|
|
|
|
|
|
|
|
const _directive_bind = _resolveDirective(\\"bind\\")
|
|
|
|
|
|
|
|
|
|
return (_openBlock(), _withDirectives(_createBlock(\\"input\\", {
|
|
|
|
|
return _withDirectives((_openBlock(), _createBlock(\\"input\\", {
|
|
|
|
|
modelValue: model,
|
|
|
|
|
\\"onUpdate:modelValue\\": $event => (model = $event)
|
|
|
|
|
}, null, 8 /* PROPS */, [\\"modelValue\\", \\"onUpdate:modelValue\\"]), [
|
|
|
|
|
}, null, 8 /* PROPS */, [\\"modelValue\\", \\"onUpdate:modelValue\\"])), [
|
|
|
|
|
[_directive_bind, val, key],
|
|
|
|
|
[_vModelDynamic, model]
|
|
|
|
|
]))
|
|
|
|
|
])
|
|
|
|
|
}
|
|
|
|
|
}"
|
|
|
|
|
`;
|
|
|
|
|
@@ -42,19 +42,19 @@ exports[`compiler: transform v-model modifiers .lazy 1`] = `
|
|
|
|
|
|
|
|
|
|
return function render(_ctx, _cache) {
|
|
|
|
|
with (this) {
|
|
|
|
|
const { vModelText: _vModelText, createVNode: _createVNode, withDirectives: _withDirectives, createBlock: _createBlock, openBlock: _openBlock } = _Vue
|
|
|
|
|
const { vModelText: _vModelText, createVNode: _createVNode, withDirectives: _withDirectives, openBlock: _openBlock, createBlock: _createBlock } = _Vue
|
|
|
|
|
|
|
|
|
|
return (_openBlock(), _withDirectives(_createBlock(\\"input\\", {
|
|
|
|
|
return _withDirectives((_openBlock(), _createBlock(\\"input\\", {
|
|
|
|
|
modelValue: model,
|
|
|
|
|
\\"onUpdate:modelValue\\": $event => (model = $event)
|
|
|
|
|
}, null, 8 /* PROPS */, [\\"modelValue\\", \\"onUpdate:modelValue\\"]), [
|
|
|
|
|
}, null, 8 /* PROPS */, [\\"modelValue\\", \\"onUpdate:modelValue\\"])), [
|
|
|
|
|
[
|
|
|
|
|
_vModelText,
|
|
|
|
|
model,
|
|
|
|
|
void 0,
|
|
|
|
|
{ lazy: true }
|
|
|
|
|
]
|
|
|
|
|
]))
|
|
|
|
|
])
|
|
|
|
|
}
|
|
|
|
|
}"
|
|
|
|
|
`;
|
|
|
|
|
@@ -64,19 +64,19 @@ exports[`compiler: transform v-model modifiers .number 1`] = `
|
|
|
|
|
|
|
|
|
|
return function render(_ctx, _cache) {
|
|
|
|
|
with (this) {
|
|
|
|
|
const { vModelText: _vModelText, createVNode: _createVNode, withDirectives: _withDirectives, createBlock: _createBlock, openBlock: _openBlock } = _Vue
|
|
|
|
|
const { vModelText: _vModelText, createVNode: _createVNode, withDirectives: _withDirectives, openBlock: _openBlock, createBlock: _createBlock } = _Vue
|
|
|
|
|
|
|
|
|
|
return (_openBlock(), _withDirectives(_createBlock(\\"input\\", {
|
|
|
|
|
return _withDirectives((_openBlock(), _createBlock(\\"input\\", {
|
|
|
|
|
modelValue: model,
|
|
|
|
|
\\"onUpdate:modelValue\\": $event => (model = $event)
|
|
|
|
|
}, null, 8 /* PROPS */, [\\"modelValue\\", \\"onUpdate:modelValue\\"]), [
|
|
|
|
|
}, null, 8 /* PROPS */, [\\"modelValue\\", \\"onUpdate:modelValue\\"])), [
|
|
|
|
|
[
|
|
|
|
|
_vModelText,
|
|
|
|
|
model,
|
|
|
|
|
void 0,
|
|
|
|
|
{ number: true }
|
|
|
|
|
]
|
|
|
|
|
]))
|
|
|
|
|
])
|
|
|
|
|
}
|
|
|
|
|
}"
|
|
|
|
|
`;
|
|
|
|
|
@@ -86,19 +86,19 @@ exports[`compiler: transform v-model modifiers .trim 1`] = `
|
|
|
|
|
|
|
|
|
|
return function render(_ctx, _cache) {
|
|
|
|
|
with (this) {
|
|
|
|
|
const { vModelText: _vModelText, createVNode: _createVNode, withDirectives: _withDirectives, createBlock: _createBlock, openBlock: _openBlock } = _Vue
|
|
|
|
|
const { vModelText: _vModelText, createVNode: _createVNode, withDirectives: _withDirectives, openBlock: _openBlock, createBlock: _createBlock } = _Vue
|
|
|
|
|
|
|
|
|
|
return (_openBlock(), _withDirectives(_createBlock(\\"input\\", {
|
|
|
|
|
return _withDirectives((_openBlock(), _createBlock(\\"input\\", {
|
|
|
|
|
modelValue: model,
|
|
|
|
|
\\"onUpdate:modelValue\\": $event => (model = $event)
|
|
|
|
|
}, null, 8 /* PROPS */, [\\"modelValue\\", \\"onUpdate:modelValue\\"]), [
|
|
|
|
|
}, null, 8 /* PROPS */, [\\"modelValue\\", \\"onUpdate:modelValue\\"])), [
|
|
|
|
|
[
|
|
|
|
|
_vModelText,
|
|
|
|
|
model,
|
|
|
|
|
void 0,
|
|
|
|
|
{ trim: true }
|
|
|
|
|
]
|
|
|
|
|
]))
|
|
|
|
|
])
|
|
|
|
|
}
|
|
|
|
|
}"
|
|
|
|
|
`;
|
|
|
|
|
@@ -108,14 +108,14 @@ exports[`compiler: transform v-model simple expression 1`] = `
|
|
|
|
|
|
|
|
|
|
return function render(_ctx, _cache) {
|
|
|
|
|
with (this) {
|
|
|
|
|
const { vModelText: _vModelText, createVNode: _createVNode, withDirectives: _withDirectives, createBlock: _createBlock, openBlock: _openBlock } = _Vue
|
|
|
|
|
const { vModelText: _vModelText, createVNode: _createVNode, withDirectives: _withDirectives, openBlock: _openBlock, createBlock: _createBlock } = _Vue
|
|
|
|
|
|
|
|
|
|
return (_openBlock(), _withDirectives(_createBlock(\\"input\\", {
|
|
|
|
|
return _withDirectives((_openBlock(), _createBlock(\\"input\\", {
|
|
|
|
|
modelValue: model,
|
|
|
|
|
\\"onUpdate:modelValue\\": $event => (model = $event)
|
|
|
|
|
}, null, 8 /* PROPS */, [\\"modelValue\\", \\"onUpdate:modelValue\\"]), [
|
|
|
|
|
}, null, 8 /* PROPS */, [\\"modelValue\\", \\"onUpdate:modelValue\\"])), [
|
|
|
|
|
[_vModelText, model]
|
|
|
|
|
]))
|
|
|
|
|
])
|
|
|
|
|
}
|
|
|
|
|
}"
|
|
|
|
|
`;
|
|
|
|
|
@@ -125,15 +125,15 @@ exports[`compiler: transform v-model simple expression for input (checkbox) 1`]
|
|
|
|
|
|
|
|
|
|
return function render(_ctx, _cache) {
|
|
|
|
|
with (this) {
|
|
|
|
|
const { vModelCheckbox: _vModelCheckbox, createVNode: _createVNode, withDirectives: _withDirectives, createBlock: _createBlock, openBlock: _openBlock } = _Vue
|
|
|
|
|
const { vModelCheckbox: _vModelCheckbox, createVNode: _createVNode, withDirectives: _withDirectives, openBlock: _openBlock, createBlock: _createBlock } = _Vue
|
|
|
|
|
|
|
|
|
|
return (_openBlock(), _withDirectives(_createBlock(\\"input\\", {
|
|
|
|
|
return _withDirectives((_openBlock(), _createBlock(\\"input\\", {
|
|
|
|
|
type: \\"checkbox\\",
|
|
|
|
|
modelValue: model,
|
|
|
|
|
\\"onUpdate:modelValue\\": $event => (model = $event)
|
|
|
|
|
}, null, 8 /* PROPS */, [\\"modelValue\\", \\"onUpdate:modelValue\\"]), [
|
|
|
|
|
}, null, 8 /* PROPS */, [\\"modelValue\\", \\"onUpdate:modelValue\\"])), [
|
|
|
|
|
[_vModelCheckbox, model]
|
|
|
|
|
]))
|
|
|
|
|
])
|
|
|
|
|
}
|
|
|
|
|
}"
|
|
|
|
|
`;
|
|
|
|
|
@@ -143,17 +143,17 @@ exports[`compiler: transform v-model simple expression for input (dynamic type)
|
|
|
|
|
|
|
|
|
|
return function render(_ctx, _cache) {
|
|
|
|
|
with (this) {
|
|
|
|
|
const { vModelDynamic: _vModelDynamic, createVNode: _createVNode, withDirectives: _withDirectives, resolveDirective: _resolveDirective, createBlock: _createBlock, openBlock: _openBlock } = _Vue
|
|
|
|
|
const { vModelDynamic: _vModelDynamic, resolveDirective: _resolveDirective, createVNode: _createVNode, withDirectives: _withDirectives, openBlock: _openBlock, createBlock: _createBlock } = _Vue
|
|
|
|
|
|
|
|
|
|
const _directive_bind = _resolveDirective(\\"bind\\")
|
|
|
|
|
|
|
|
|
|
return (_openBlock(), _withDirectives(_createBlock(\\"input\\", {
|
|
|
|
|
return _withDirectives((_openBlock(), _createBlock(\\"input\\", {
|
|
|
|
|
modelValue: model,
|
|
|
|
|
\\"onUpdate:modelValue\\": $event => (model = $event)
|
|
|
|
|
}, null, 8 /* PROPS */, [\\"modelValue\\", \\"onUpdate:modelValue\\"]), [
|
|
|
|
|
}, null, 8 /* PROPS */, [\\"modelValue\\", \\"onUpdate:modelValue\\"])), [
|
|
|
|
|
[_directive_bind, foo, \\"type\\"],
|
|
|
|
|
[_vModelDynamic, model]
|
|
|
|
|
]))
|
|
|
|
|
])
|
|
|
|
|
}
|
|
|
|
|
}"
|
|
|
|
|
`;
|
|
|
|
|
@@ -163,15 +163,15 @@ exports[`compiler: transform v-model simple expression for input (radio) 1`] = `
|
|
|
|
|
|
|
|
|
|
return function render(_ctx, _cache) {
|
|
|
|
|
with (this) {
|
|
|
|
|
const { vModelRadio: _vModelRadio, createVNode: _createVNode, withDirectives: _withDirectives, createBlock: _createBlock, openBlock: _openBlock } = _Vue
|
|
|
|
|
const { vModelRadio: _vModelRadio, createVNode: _createVNode, withDirectives: _withDirectives, openBlock: _openBlock, createBlock: _createBlock } = _Vue
|
|
|
|
|
|
|
|
|
|
return (_openBlock(), _withDirectives(_createBlock(\\"input\\", {
|
|
|
|
|
return _withDirectives((_openBlock(), _createBlock(\\"input\\", {
|
|
|
|
|
type: \\"radio\\",
|
|
|
|
|
modelValue: model,
|
|
|
|
|
\\"onUpdate:modelValue\\": $event => (model = $event)
|
|
|
|
|
}, null, 8 /* PROPS */, [\\"modelValue\\", \\"onUpdate:modelValue\\"]), [
|
|
|
|
|
}, null, 8 /* PROPS */, [\\"modelValue\\", \\"onUpdate:modelValue\\"])), [
|
|
|
|
|
[_vModelRadio, model]
|
|
|
|
|
]))
|
|
|
|
|
])
|
|
|
|
|
}
|
|
|
|
|
}"
|
|
|
|
|
`;
|
|
|
|
|
@@ -181,15 +181,15 @@ exports[`compiler: transform v-model simple expression for input (text) 1`] = `
|
|
|
|
|
|
|
|
|
|
return function render(_ctx, _cache) {
|
|
|
|
|
with (this) {
|
|
|
|
|
const { vModelText: _vModelText, createVNode: _createVNode, withDirectives: _withDirectives, createBlock: _createBlock, openBlock: _openBlock } = _Vue
|
|
|
|
|
const { vModelText: _vModelText, createVNode: _createVNode, withDirectives: _withDirectives, openBlock: _openBlock, createBlock: _createBlock } = _Vue
|
|
|
|
|
|
|
|
|
|
return (_openBlock(), _withDirectives(_createBlock(\\"input\\", {
|
|
|
|
|
return _withDirectives((_openBlock(), _createBlock(\\"input\\", {
|
|
|
|
|
type: \\"text\\",
|
|
|
|
|
modelValue: model,
|
|
|
|
|
\\"onUpdate:modelValue\\": $event => (model = $event)
|
|
|
|
|
}, null, 8 /* PROPS */, [\\"modelValue\\", \\"onUpdate:modelValue\\"]), [
|
|
|
|
|
}, null, 8 /* PROPS */, [\\"modelValue\\", \\"onUpdate:modelValue\\"])), [
|
|
|
|
|
[_vModelText, model]
|
|
|
|
|
]))
|
|
|
|
|
])
|
|
|
|
|
}
|
|
|
|
|
}"
|
|
|
|
|
`;
|
|
|
|
|
@@ -199,14 +199,14 @@ exports[`compiler: transform v-model simple expression for select 1`] = `
|
|
|
|
|
|
|
|
|
|
return function render(_ctx, _cache) {
|
|
|
|
|
with (this) {
|
|
|
|
|
const { vModelSelect: _vModelSelect, createVNode: _createVNode, withDirectives: _withDirectives, createBlock: _createBlock, openBlock: _openBlock } = _Vue
|
|
|
|
|
const { vModelSelect: _vModelSelect, createVNode: _createVNode, withDirectives: _withDirectives, openBlock: _openBlock, createBlock: _createBlock } = _Vue
|
|
|
|
|
|
|
|
|
|
return (_openBlock(), _withDirectives(_createBlock(\\"select\\", {
|
|
|
|
|
return _withDirectives((_openBlock(), _createBlock(\\"select\\", {
|
|
|
|
|
modelValue: model,
|
|
|
|
|
\\"onUpdate:modelValue\\": $event => (model = $event)
|
|
|
|
|
}, null, 8 /* PROPS */, [\\"modelValue\\", \\"onUpdate:modelValue\\"]), [
|
|
|
|
|
}, null, 8 /* PROPS */, [\\"modelValue\\", \\"onUpdate:modelValue\\"])), [
|
|
|
|
|
[_vModelSelect, model]
|
|
|
|
|
]))
|
|
|
|
|
])
|
|
|
|
|
}
|
|
|
|
|
}"
|
|
|
|
|
`;
|
|
|
|
|
@@ -216,14 +216,14 @@ exports[`compiler: transform v-model simple expression for textarea 1`] = `
|
|
|
|
|
|
|
|
|
|
return function render(_ctx, _cache) {
|
|
|
|
|
with (this) {
|
|
|
|
|
const { vModelText: _vModelText, createVNode: _createVNode, withDirectives: _withDirectives, createBlock: _createBlock, openBlock: _openBlock } = _Vue
|
|
|
|
|
const { vModelText: _vModelText, createVNode: _createVNode, withDirectives: _withDirectives, openBlock: _openBlock, createBlock: _createBlock } = _Vue
|
|
|
|
|
|
|
|
|
|
return (_openBlock(), _withDirectives(_createBlock(\\"textarea\\", {
|
|
|
|
|
return _withDirectives((_openBlock(), _createBlock(\\"textarea\\", {
|
|
|
|
|
modelValue: model,
|
|
|
|
|
\\"onUpdate:modelValue\\": $event => (model = $event)
|
|
|
|
|
}, null, 8 /* PROPS */, [\\"modelValue\\", \\"onUpdate:modelValue\\"]), [
|
|
|
|
|
}, null, 8 /* PROPS */, [\\"modelValue\\", \\"onUpdate:modelValue\\"])), [
|
|
|
|
|
[_vModelText, model]
|
|
|
|
|
]))
|
|
|
|
|
])
|
|
|
|
|
}
|
|
|
|
|
}"
|
|
|
|
|
`;
|
|
|
|
|
|