feat(reactivity-transform): $$() escape for destructured prop bindings
This commit is contained in:
@@ -1,5 +1,25 @@
|
||||
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
||||
|
||||
exports[`sfc props transform $$() escape 1`] = `
|
||||
"import { toRef as _toRef } from 'vue'
|
||||
|
||||
export default {
|
||||
props: ['foo'],
|
||||
setup(__props) {
|
||||
const __props_bar = _toRef(__props, 'bar')
|
||||
const __props_foo = _toRef(__props, 'foo')
|
||||
|
||||
|
||||
console.log((__props_foo))
|
||||
console.log((__props_bar))
|
||||
({ foo: __props_foo, baz: __props_bar })
|
||||
|
||||
return () => {}
|
||||
}
|
||||
|
||||
}"
|
||||
`;
|
||||
|
||||
exports[`sfc props transform aliasing 1`] = `
|
||||
"import { toDisplayString as _toDisplayString } from \\"vue\\"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user