Artifact Content
Artifact 0e7c7347f0fa572bfc0e65ba6f720cb1ebe5f17b28c9273e1bb62cc8cbdd042a:
- File public/riot-3.13.2/test/tag/if-test.tag — part of check-in [12a9bb700d] at 2021-08-11 18:56:04 on branch trunk — Import from git Added a changelog (user: dev size: 404)
<if-child> <h3>Child tag</h3> </if-child> <if-test> <p>before</p> <p if={ flag }>COND</p> <p>after</p> <p each={ num, i in nums} if={ parent && num == parent.flag }>{ num }</p> <p> <if-child show={ flag } /> </p> // this.flag = true var self = this this.nums = [1, 2, 3] setTimeout(function() { if (this.isMounted) self.update({ flag: true }) }, 300) </if-test>