We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
PageFragmentContainer.vue const fragment = computed(() => app?.dsl?.items?.find((page) => page.id === props.config.pageFragmentId);
这行代码里,由于props.config.pageFragmentId属性不是MComponent指定的属性值,而是一个[key: string]: any; 所以当pageFragmentId改变后,fragment值无法响应
我临时调用了一下name属性,暂时解决问题了: const fragment = computed(() => { console.log(props.config.name); return app?.dsl?.items?.find((page) => page.id === props.config.pageFragmentId); });
The text was updated successfully, but these errors were encountered:
但这样每次都要给name指定一个新值。。。。
Sorry, something went wrong.
是通过props.config.pageFragmentId = xxx 直接赋值的方式改变pageFragmentId 吗?
建议使用page-fragement-select表单组件试试 { name: 'pageFragmentId', text: '页面片ID', type: 'page-fragment-select', },
可以参考:#568
khuntoriia
No branches or pull requests
PageFragmentContainer.vue
const fragment = computed(() => app?.dsl?.items?.find((page) => page.id === props.config.pageFragmentId);
这行代码里,由于props.config.pageFragmentId属性不是MComponent指定的属性值,而是一个[key: string]: any;
所以当pageFragmentId改变后,fragment值无法响应
我临时调用了一下name属性,暂时解决问题了:
const fragment = computed(() => {
console.log(props.config.name);
return app?.dsl?.items?.find((page) => page.id === props.config.pageFragmentId);
});
The text was updated successfully, but these errors were encountered: