|
|
@@ -1084,6 +1084,29 @@ return (_ctx, _cache) => {
|
|
|
}"
|
|
|
`;
|
|
|
|
|
|
+exports[`SFC compile <script setup> > inlineTemplate mode > v-model w/ newlines codegen 1`] = `
|
|
|
+"import { unref as _unref, isRef as _isRef, vModelText as _vModelText, withDirectives as _withDirectives, openBlock as _openBlock, createElementBlock as _createElementBlock } from "vue"
|
|
|
+
|
|
|
+
|
|
|
+export default {
|
|
|
+ setup(__props) {
|
|
|
+
|
|
|
+ const count = ref(0)
|
|
|
+
|
|
|
+return (_ctx, _cache) => {
|
|
|
+ return _withDirectives((_openBlock(), _createElementBlock("input", {
|
|
|
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = $event => (_isRef(count) ? (count).value = $event : null))
|
|
|
+ }, null, 512 /* NEED_PATCH */)), [
|
|
|
+ [_vModelText,
|
|
|
+ _unref(count)
|
|
|
+ ]
|
|
|
+ ])
|
|
|
+}
|
|
|
+}
|
|
|
+
|
|
|
+}"
|
|
|
+`;
|
|
|
+
|
|
|
exports[`SFC compile <script setup> > inlineTemplate mode > with defineExpose() 1`] = `
|
|
|
"
|
|
|
export default {
|