From 5e467bea062ed257e029797d5f0cad6767338016 Mon Sep 17 00:00:00 2001 From: pipipi-pikachu Date: Wed, 10 Mar 2021 22:10:48 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E6=B7=BB=E5=8A=A0mock=E6=95=B0?= =?UTF-8?q?=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/mocks/index.ts | 68 ++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 66 insertions(+), 2 deletions(-) diff --git a/src/mocks/index.ts b/src/mocks/index.ts index d3e54e70..1637d919 100644 --- a/src/mocks/index.ts +++ b/src/mocks/index.ts @@ -3,6 +3,70 @@ import { Slide } from '@/types/slides' export const slides: Slide[] = [ { id: 'test123456', - elements: [], - }, + elements: [ + { + type: 'shape', + id: '4cbRxp', + left: 0, + top: 200, + width: 546, + height: 362.5, + viewBox: 200, + path: 'M 0 0 L 0 200 L 200 200 Z', + fill: '#d14424', + fixedRatio: false, + opacity: 0.7, + }, + { + type: 'shape', + id: 'ookHrf', + left: 0, + top: 0, + width: 300, + height: 320, + viewBox: 200, + path: 'M 0 0 L 0 200 L 200 200 Z', + fill: '#d14424', + fixedRatio: false, + flip: { + x: 180, + y: 0, + }, + }, + { + type: 'text', + id: 'idn7Mx', + left: 355, + top: 65.25, + width: 585, + height: 188, + content: '

PPTIST

', + }, + { + type: 'text', + id: '7stmVP', + left: 355, + top: 253.25, + width: 585, + height: 56, + content: '

基于 Vue 3.x + TypeScript 的在线演示文稿应用

', + }, + { + type: 'line', + id: 'FnpZs4', + left: 361, + top: 238, + start: [0, 0], + end: [549, 0], + points: ['', ''], + color: '#d14424', + style: 'solid', + width: 2, + }, + ], + background: { + type: 'solid', + color: '#ffffff', + }, + } ] \ No newline at end of file