index.wxml 679 B

1234567891011121314151617181920
  1. <xr-demo-viewer
  2. title="ShadowNode案例"
  3. intro="可以使用xml中的xr-shadow节点,来动态在其下添加节点,以及用代码加载资源"
  4. code="{{xmlCode}}"
  5. js="{{jsCode}}"
  6. >
  7. <xr-basic-shadow
  8. disable-scroll
  9. id="main-frame"
  10. width="{{renderWidth}}"
  11. height="{{renderHeight}}"
  12. style="width:{{width}}px;height:{{height}}px;top:{{top}}px;left:{{left}}px;display:block;"
  13. meshCount="{{meshCount}}"
  14. />
  15. <view class="button-wrap">
  16. <button class="change-button" bindtap="handleIncMeshCount">增加一个模型</button>
  17. <button class="change-button" bindtap="handleDecMeshCount">减少一个模型</button>
  18. </view>
  19. </xr-demo-viewer>