spz-model-viewer
Displays a 3D model.
Layouts
跳转到“Layouts”Usage
跳转到“Usage”<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>
Attributes
跳转到“Attributes”src
跳转到“src”required
A string of the URL or local path. Specifies a 3D modal resource.
poster
跳转到“poster”required
A string of the URL or local path. Specifies a poster image.
user-control
跳转到“user-control”If this attribute is present, automatically enter the 3D modal viewer. Its default values is true
.
prevent
跳转到“prevent”Add this attribute if the 3D model is in exit mode.
Actions
跳转到“Actions”enter
跳转到“enter”To enter the 3D modal viewer.
<button type="button" @tap="modal-viewer.enter">Enter 3D Modal</button>