From e180ca28b5e2d25ee03bb9c98419344415e2a89c Mon Sep 17 00:00:00 2001 From: Anatoly Date: Sun, 30 Jan 2022 13:21:12 +0300 Subject: [PATCH] Single screen prop --- README.md | 22 +++++++++++----------- bundle/vue-three-d-mockup.esm.js | 11 ++++------- src/Demo.vue | 4 ++-- src/Mockup.vue | 11 ++++------- 4 files changed, 21 insertions(+), 27 deletions(-) diff --git a/README.md b/README.md index b782c2f..fd8ea32 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ $ npm install github:anatolykopyl/vue-three-d-mockup ```html ``` @@ -42,19 +42,19 @@ export default { ``` -### props: - -- `screenImg`: path to image that will be displayed on the phones screen -- `video`: the video element displayed on the phones screen. When using this option there are caveats, watch below -- `lightClr`: color of the light -- `phoneClr`: color of the phone -- `rotation`: object with x, y and z rotation values +| Prop | Type | Required | Default | Description | +|------------|--------------------|----------|--------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------| +| `screen` | String \| Element | `true` | none | Path an image that will be displayed on the phones screen or the `