vue3-yuanma/packages/compiler-dom/__tests__/__snapshots__/index.spec.ts.snap

20 lines
794 B
Plaintext
Raw Normal View History

// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`compile should contain standard transforms 1`] = `
"const _Vue = Vue
return function render(_ctx, _cache) {
2020-02-14 07:28:40 +08:00
with (_ctx) {
2020-02-12 07:40:21 +08:00
const { createVNode: _createVNode, Fragment: _Fragment, openBlock: _openBlock, createBlock: _createBlock } = _Vue
return (_openBlock(), _createBlock(_Fragment, null, [
_createVNode(\\"div\\", { textContent: text }, null, 8 /* PROPS */, [\\"textContent\\"]),
_createVNode(\\"div\\", { innerHTML: html }, null, 8 /* PROPS */, [\\"innerHTML\\"]),
_createVNode(\\"div\\", null, \\"test\\"),
_createVNode(\\"div\\", { style: {\\"color\\":\\"red\\"} }, \\"red\\"),
2019-11-16 05:47:55 +08:00
_createVNode(\\"div\\", { style: {color: 'green'} }, null, 4 /* STYLE */)
], 64 /* STABLE_FRAGMENT */))
}
}"
`;