-
-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathexperimental_run.log
172 lines (170 loc) · 8.6 KB
/
experimental_run.log
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
[Real File Compile Result]
import { ref } from 'vue';
import { createBlock as _createBlock, createCommentVNode as _createCommentVNode, createElementBlock as _createElementBlock, createElementVNode as _createElementVNode, createTextVNode as _createTextVNode, createVNode as _createVNode, Fragment as _Fragment, isRef as _isRef, normalizeClass as _normalizeClass, normalizeStyle as _normalizeStyle, openBlock as _openBlock, renderList as _renderList, renderSlot as _renderSlot, resolveComponent as _resolveComponent, resolveDirective as _resolveDirective, toDisplayString as _toDisplayString, unref as _unref, useModel as _useModel, vModelText as _vModelText, vShow as _vShow, withCtx as _withCtx, withDirectives as _withDirectives, withModifiers as _withModifiers } from "vue";
export default {
emits: [
'emit-change',
"update:modelValue"
],
props: {
baz: String,
"modelValue": {}
},
setup (__props, { expose: __expose }) {
const foo = '123';
const bar = ref(456);
const inputModel = ref('');
const list = [
1,
2,
3
];
__expose('foo', 'bar');
const modelValue = _useModel(__props, "modelValue");
return (_ctx, _cache)=>{
const _component_abc_def = _resolveComponent("abc-def"), _component_another_element = _resolveComponent("another-element"), _directive_directive = _resolveDirective("directive"), _directive_test_directive = _resolveDirective("test-directive");
return _withDirectives((_openBlock(), _createBlock(_component_abc_def, {
"test-bound": bar.value + _ctx.baz,
disabled: "",
onClick: _withModifiers(()=>{}, [
"prevent"
]),
onHello: _ctx.world,
class: "",
modelValue: _unref(modelValue),
"onUpdate:modelValue": ($event)=>_isRef(modelValue) ? modelValue.value = $event : null,
modelModifiers: {
lazy: true
},
"another-model-value": _unref(modelValue),
"onUpdate:anotherModelValue": ($event)=>_isRef(modelValue) ? modelValue.value = $event : null,
"another-model-valueModifiers": {
trim: true
}
}, {
"test-slot": _withCtx(({ value, another: renamed })=>[
_createTextVNode(" test " + _toDisplayString(value) + " " + _toDisplayString(renamed), 1)
]),
"custom-slot": _withCtx((prop)=>[
_createElementVNode("span", {
class: "span-class"
}, " Span text "),
_createTextVNode(" " + _toDisplayString(prop.nested), 1)
]),
"default": _withCtx(()=>[
_createTextVNode(" The text of the node " + _toDisplayString(_ctx.dynamicValue) + " ", 1),
_renderSlot(_ctx.$slots, "default"),
_renderSlot(_ctx.$slots, "named-slot-1"),
_renderSlot(_ctx.$slots, "named-slot-2", {
prop: _unref(modelValue),
class: "ye"
}, [
_createElementVNode("div", null, " default content ")
]),
_createCommentVNode(" Comment "),
_createVNode(_component_another_element),
_createTextVNode(" yet another text "),
_withDirectives(_createElementVNode("input", {
"onUpdate:modelValue": ($event)=>inputModel.value = $event
}, null, 8, [
"modelValue"
]), [
[
_vModelText,
inputModel.value
],
[
_directive_directive,
baz,
"foo",
{
bar: true,
buzz: true
}
]
]),
_createCommentVNode(" Todo remove space between these elements, otherwise it breaks the invariant in conditional codegen "),
true ? (_openBlock(), _createElementBlock("div", null, "if div")) : false ? (_openBlock(), _createElementBlock("span", null, "else-if span")) : _createCommentVNode("v-if"),
(_openBlock(), _createElementBlock(_Fragment, null, _renderList(list, (i)=>_createElementVNode("span", {
key: i
}, "hey")), 64)),
_withDirectives(_createElementVNode("br"), [
[
_vShow,
false
]
]),
(_openBlock(), _createElementBlock(_Fragment, null, _renderList(3, (i)=>_createVNode(_component_another_element, {
key: i,
textContent: foo + bar.value
})), 64)),
(_openBlock(), _createElementBlock(_Fragment, null, _renderList(list, (([
item1,
item2
], index))=>_createElementVNode(_Fragment, {
key: index
}, [
_createTextVNode(" hey "),
_createElementVNode("span", null, _toDisplayString(item1) + _toDisplayString(index), 1),
_createElementVNode("div", {
class: _normalizeClass([
"both regular and bound",
[
item2,
index
]
])
}, null, 2),
_createElementVNode("div", {
class: "just regular class"
}),
_createElementVNode("div", {
class: _normalizeClass([
_ctx.member.expr,
_ctx.globalIdent,
item2,
index
])
}, null, 2)
])), 64)),
false ? (_openBlock(), _createElementBlock(_Fragment, null, [
_createTextVNode(" this is a v-if template ")
])) : true ? (_openBlock(), _createElementBlock(_Fragment, null, [
_createTextVNode(" another v-else-if template ")
])) : (_openBlock(), _createElementBlock(_Fragment, null, [
_createTextVNode(" else template ")
])),
_createElementVNode("div", {
style: _normalizeStyle([
{
"background-color": "red",
color: "#000",
content: "''",
"grid-template-column": "repeat(1fr, min(auto-fit, 100px))"
},
{
backgroundColor: _ctx.v ? 'yellow' : undefined
}
]),
textContent: foo + bar.value
}, null, 4)
])
}, 8, [
"test-bound",
"modelValue",
"another-model-value"
])), [
[
_directive_test_directive,
foo - bar,
"test-argument",
{
foo: true,
bar: true
}
]
]);
};
}
};
Time took: 711.244µs