spz-model-viewer

Displays a 3D model.
<spz-model-viewer
  id="modal-viewer"
  layout="fixed"
  width="500"
  height="500"
  src="https://model3d.staticdj.com/d17da5bc68537fcc881bcd3830d034681665481814931.glb"
  poster="https://img.staticdj.com/e986c6af0165839c50193078af8902e01665481814767.png"
></spz-model-viewer>

required

A string of the URL or local path. Specifies a 3D modal resource.

required

A string of the URL or local path. Specifies a poster image.

If this attribute is present, automatically enter the 3D modal viewer. Its default values is true.

Add this attribute if the 3D model is in exit mode.

To enter the 3D modal viewer.

<button type="button" @tap="modal-viewer.enter">Enter 3D Modal</button>
本页目录