-
-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
0.5.0 refSugar take2 #26
Comments
It looks normal, I don't know which part is except the problem import New from './components/new';
import Old from './components/old'; //
// let readersNumber = $ref(0);
//
// const add = () => {
// readersNumber += 1;
// }
const __sfc_main = {};
__sfc_main.setup = (__props, __ctx) => {
return {};
};
__sfc_main.components = Object.assign({
New,
Old
}, __sfc_main.components);
export default __sfc_main; __sfc_main.props = {
prop: {
type: String,
default: 'defaultProp'
}
};
__sfc_main.setup = (__props, __ctx) => {
const props = __props; //
// let message = $ref('新的方式编写组件');
//
// const click = () => {
// console.log('新的方式编写组件事件')
// }
return {};
};
export default __sfc_main; |
Can you share a minimal reproduction? Thanks. |
Here is a recent reproducible example https://github.com/JaxXu/sugartake2try run script You just need to change the version to I have a comment in App.vue, in |
Thank you for bringing refSugar take2 support
I'm having some problems after upgrading to 0.5.0
Only after upgrading the version I get this error
After using
refTransform: true
and the$ref
syntax, I get this errorchrome console
terminal
source
index.js
Vue SFC
Webpack Config
The text was updated successfully, but these errors were encountered: