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
var Block = san.defineComponent({ template: '<template><div class="x-block"><slot/></div></template>' }); var Foo = san.defineComponent({ components: { 'x-block': Block }, template: '' + '<template>' + '<x-block san-if="f">{{foo}}</x-block>' + '<x-block san-else>{{bar}}</x-block>' + '</template>', initData() { return { f: false, foo: 'foo', bar: 'bar' } } }); var foo = new Foo(); foo.attach(document.body);
页面打开之后,如果在控制台里面执行 foo.data.set('bar', '123'),页面应该更新,但是没有。
foo.data.set('bar', '123')
The text was updated successfully, but these errors were encountered:
同时,如果切换到 3.1.0-beta.6 这个版本,就能复现上次群里说的那个 parent is null 的问题了
3.1.0-beta.6
Sorry, something went wrong.
这是两个bug。
9f6f1cf
No branches or pull requests
页面打开之后,如果在控制台里面执行
foo.data.set('bar', '123')
,页面应该更新,但是没有。The text was updated successfully, but these errors were encountered: