|
1 | 1 | // Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
|
2 | 2 |
|
3 | 3 | exports[`compiler: vModel transform > modifiers > .lazy 1`] = `
|
4 |
| -"import { vModelText as _vModelText, withDirectives as _withDirectives, on as _on, template as _template } from 'vue/vapor'; |
| 4 | +"import { vModelText as _vModelText, withDirectives as _withDirectives, delegate as _delegate, template as _template } from 'vue/vapor'; |
5 | 5 | const t0 = _template("<input>")
|
6 | 6 |
|
7 | 7 | export function render(_ctx) {
|
8 | 8 | const n0 = t0()
|
9 | 9 | _withDirectives(n0, [[_vModelText, () => _ctx.model, void 0, { lazy: true }]])
|
10 |
| - _on(n0, "update:modelValue", () => $event => (_ctx.model = $event)) |
| 10 | + _delegate(n0, "update:modelValue", () => $event => (_ctx.model = $event)) |
11 | 11 | return n0
|
12 | 12 | }"
|
13 | 13 | `;
|
14 | 14 |
|
15 | 15 | exports[`compiler: vModel transform > modifiers > .number 1`] = `
|
16 |
| -"import { vModelText as _vModelText, withDirectives as _withDirectives, on as _on, template as _template } from 'vue/vapor'; |
| 16 | +"import { vModelText as _vModelText, withDirectives as _withDirectives, delegate as _delegate, template as _template } from 'vue/vapor'; |
17 | 17 | const t0 = _template("<input>")
|
18 | 18 |
|
19 | 19 | export function render(_ctx) {
|
20 | 20 | const n0 = t0()
|
21 | 21 | _withDirectives(n0, [[_vModelText, () => _ctx.model, void 0, { number: true }]])
|
22 |
| - _on(n0, "update:modelValue", () => $event => (_ctx.model = $event)) |
| 22 | + _delegate(n0, "update:modelValue", () => $event => (_ctx.model = $event)) |
23 | 23 | return n0
|
24 | 24 | }"
|
25 | 25 | `;
|
26 | 26 |
|
27 | 27 | exports[`compiler: vModel transform > modifiers > .trim 1`] = `
|
28 |
| -"import { vModelText as _vModelText, withDirectives as _withDirectives, on as _on, template as _template } from 'vue/vapor'; |
| 28 | +"import { vModelText as _vModelText, withDirectives as _withDirectives, delegate as _delegate, template as _template } from 'vue/vapor'; |
29 | 29 | const t0 = _template("<input>")
|
30 | 30 |
|
31 | 31 | export function render(_ctx) {
|
32 | 32 | const n0 = t0()
|
33 | 33 | _withDirectives(n0, [[_vModelText, () => _ctx.model, void 0, { trim: true }]])
|
34 |
| - _on(n0, "update:modelValue", () => $event => (_ctx.model = $event)) |
| 34 | + _delegate(n0, "update:modelValue", () => $event => (_ctx.model = $event)) |
35 | 35 | return n0
|
36 | 36 | }"
|
37 | 37 | `;
|
38 | 38 |
|
39 | 39 | exports[`compiler: vModel transform > should support input (checkbox) 1`] = `
|
40 |
| -"import { vModelCheckbox as _vModelCheckbox, withDirectives as _withDirectives, on as _on, template as _template } from 'vue/vapor'; |
| 40 | +"import { vModelCheckbox as _vModelCheckbox, withDirectives as _withDirectives, delegate as _delegate, template as _template } from 'vue/vapor'; |
41 | 41 | const t0 = _template("<input type=\\"checkbox\\">")
|
42 | 42 |
|
43 | 43 | export function render(_ctx) {
|
44 | 44 | const n0 = t0()
|
45 | 45 | _withDirectives(n0, [[_vModelCheckbox, () => _ctx.model]])
|
46 |
| - _on(n0, "update:modelValue", () => $event => (_ctx.model = $event)) |
| 46 | + _delegate(n0, "update:modelValue", () => $event => (_ctx.model = $event)) |
47 | 47 | return n0
|
48 | 48 | }"
|
49 | 49 | `;
|
50 | 50 |
|
51 | 51 | exports[`compiler: vModel transform > should support input (dynamic type) 1`] = `
|
52 |
| -"import { vModelDynamic as _vModelDynamic, withDirectives as _withDirectives, on as _on, template as _template } from 'vue/vapor'; |
| 52 | +"import { vModelDynamic as _vModelDynamic, withDirectives as _withDirectives, delegate as _delegate, template as _template } from 'vue/vapor'; |
53 | 53 | const t0 = _template("<input>")
|
54 | 54 |
|
55 | 55 | export function render(_ctx) {
|
56 | 56 | const n0 = t0()
|
57 | 57 | _withDirectives(n0, [[_vModelDynamic, () => _ctx.model]])
|
58 |
| - _on(n0, "update:modelValue", () => $event => (_ctx.model = $event)) |
| 58 | + _delegate(n0, "update:modelValue", () => $event => (_ctx.model = $event)) |
59 | 59 | return n0
|
60 | 60 | }"
|
61 | 61 | `;
|
62 | 62 |
|
63 | 63 | exports[`compiler: vModel transform > should support input (radio) 1`] = `
|
64 |
| -"import { vModelRadio as _vModelRadio, withDirectives as _withDirectives, on as _on, template as _template } from 'vue/vapor'; |
| 64 | +"import { vModelRadio as _vModelRadio, withDirectives as _withDirectives, delegate as _delegate, template as _template } from 'vue/vapor'; |
65 | 65 | const t0 = _template("<input type=\\"radio\\">")
|
66 | 66 |
|
67 | 67 | export function render(_ctx) {
|
68 | 68 | const n0 = t0()
|
69 | 69 | _withDirectives(n0, [[_vModelRadio, () => _ctx.model]])
|
70 |
| - _on(n0, "update:modelValue", () => $event => (_ctx.model = $event)) |
| 70 | + _delegate(n0, "update:modelValue", () => $event => (_ctx.model = $event)) |
71 | 71 | return n0
|
72 | 72 | }"
|
73 | 73 | `;
|
74 | 74 |
|
75 | 75 | exports[`compiler: vModel transform > should support input (text) 1`] = `
|
76 |
| -"import { vModelText as _vModelText, withDirectives as _withDirectives, on as _on, template as _template } from 'vue/vapor'; |
| 76 | +"import { vModelText as _vModelText, withDirectives as _withDirectives, delegate as _delegate, template as _template } from 'vue/vapor'; |
77 | 77 | const t0 = _template("<input type=\\"text\\">")
|
78 | 78 |
|
79 | 79 | export function render(_ctx) {
|
80 | 80 | const n0 = t0()
|
81 | 81 | _withDirectives(n0, [[_vModelText, () => _ctx.model]])
|
82 |
| - _on(n0, "update:modelValue", () => $event => (_ctx.model = $event)) |
| 82 | + _delegate(n0, "update:modelValue", () => $event => (_ctx.model = $event)) |
83 | 83 | return n0
|
84 | 84 | }"
|
85 | 85 | `;
|
86 | 86 |
|
87 | 87 | exports[`compiler: vModel transform > should support select 1`] = `
|
88 |
| -"import { vModelSelect as _vModelSelect, withDirectives as _withDirectives, on as _on, template as _template } from 'vue/vapor'; |
| 88 | +"import { vModelSelect as _vModelSelect, withDirectives as _withDirectives, delegate as _delegate, template as _template } from 'vue/vapor'; |
89 | 89 | const t0 = _template("<select></select>")
|
90 | 90 |
|
91 | 91 | export function render(_ctx) {
|
92 | 92 | const n0 = t0()
|
93 | 93 | _withDirectives(n0, [[_vModelSelect, () => _ctx.model]])
|
94 |
| - _on(n0, "update:modelValue", () => $event => (_ctx.model = $event)) |
| 94 | + _delegate(n0, "update:modelValue", () => $event => (_ctx.model = $event)) |
95 | 95 | return n0
|
96 | 96 | }"
|
97 | 97 | `;
|
98 | 98 |
|
99 | 99 | exports[`compiler: vModel transform > should support simple expression 1`] = `
|
100 |
| -"import { vModelText as _vModelText, withDirectives as _withDirectives, on as _on, template as _template } from 'vue/vapor'; |
| 100 | +"import { vModelText as _vModelText, withDirectives as _withDirectives, delegate as _delegate, template as _template } from 'vue/vapor'; |
101 | 101 | const t0 = _template("<input>")
|
102 | 102 |
|
103 | 103 | export function render(_ctx) {
|
104 | 104 | const n0 = t0()
|
105 | 105 | _withDirectives(n0, [[_vModelText, () => _ctx.model]])
|
106 |
| - _on(n0, "update:modelValue", () => $event => (_ctx.model = $event)) |
| 106 | + _delegate(n0, "update:modelValue", () => $event => (_ctx.model = $event)) |
107 | 107 | return n0
|
108 | 108 | }"
|
109 | 109 | `;
|
110 | 110 |
|
111 | 111 | exports[`compiler: vModel transform > should support textarea 1`] = `
|
112 |
| -"import { vModelText as _vModelText, withDirectives as _withDirectives, on as _on, template as _template } from 'vue/vapor'; |
| 112 | +"import { vModelText as _vModelText, withDirectives as _withDirectives, delegate as _delegate, template as _template } from 'vue/vapor'; |
113 | 113 | const t0 = _template("<textarea></textarea>")
|
114 | 114 |
|
115 | 115 | export function render(_ctx) {
|
116 | 116 | const n0 = t0()
|
117 | 117 | _withDirectives(n0, [[_vModelText, () => _ctx.model]])
|
118 |
| - _on(n0, "update:modelValue", () => $event => (_ctx.model = $event)) |
| 118 | + _delegate(n0, "update:modelValue", () => $event => (_ctx.model = $event)) |
119 | 119 | return n0
|
120 | 120 | }"
|
121 | 121 | `;
|
122 | 122 |
|
123 | 123 | exports[`compiler: vModel transform > should support w/ dynamic v-bind 1`] = `
|
124 |
| -"import { vModelDynamic as _vModelDynamic, withDirectives as _withDirectives, on as _on, renderEffect as _renderEffect, setDynamicProps as _setDynamicProps, template as _template } from 'vue/vapor'; |
| 124 | +"import { vModelDynamic as _vModelDynamic, withDirectives as _withDirectives, delegate as _delegate, renderEffect as _renderEffect, setDynamicProps as _setDynamicProps, template as _template } from 'vue/vapor'; |
125 | 125 | const t0 = _template("<input>")
|
126 | 126 |
|
127 | 127 | export function render(_ctx) {
|
128 | 128 | const n0 = t0()
|
129 | 129 | _withDirectives(n0, [[_vModelDynamic, () => _ctx.model]])
|
130 |
| - _on(n0, "update:modelValue", () => $event => (_ctx.model = $event)) |
| 130 | + _delegate(n0, "update:modelValue", () => $event => (_ctx.model = $event)) |
131 | 131 | _renderEffect(() => _setDynamicProps(n0, _ctx.obj))
|
132 | 132 | return n0
|
133 | 133 | }"
|
134 | 134 | `;
|
135 | 135 |
|
136 | 136 | exports[`compiler: vModel transform > should support w/ dynamic v-bind 2`] = `
|
137 |
| -"import { vModelDynamic as _vModelDynamic, withDirectives as _withDirectives, on as _on, template as _template } from 'vue/vapor'; |
| 137 | +"import { vModelDynamic as _vModelDynamic, withDirectives as _withDirectives, delegate as _delegate, template as _template } from 'vue/vapor'; |
138 | 138 | const t0 = _template("<input>")
|
139 | 139 |
|
140 | 140 | export function render(_ctx) {
|
141 | 141 | const n0 = t0()
|
142 | 142 | _withDirectives(n0, [[_vModelDynamic, () => _ctx.model]])
|
143 |
| - _on(n0, "update:modelValue", () => $event => (_ctx.model = $event)) |
| 143 | + _delegate(n0, "update:modelValue", () => $event => (_ctx.model = $event)) |
144 | 144 | return n0
|
145 | 145 | }"
|
146 | 146 | `;
|
0 commit comments