Commit 8c35ef43 authored by 张媛's avatar 张媛

工程目录修改

parent 49b59131
......@@ -4,7 +4,7 @@ import "codemirror/lib/codemirror.js";
import 'codemirror/mode/javascript/javascript';
import 'codemirror/mode/css/css';
import 'codemirror/theme/dracula.css';
import 'codemirror/theme/dracula.css';
import "codemirror/addon/fold/foldcode.js";
import "codemirror/addon/fold/foldgutter.js";
......
import React from 'react';
import { CarouselCom } from '../canvasCom/carouselCom/carouselCom';
import { CodeCom } from "../canvasCom/carouselCom/codeCom"
import { CarouselCom } from './carouselCom';
import { CodeCom } from "./codeCom"
import {
Title,
Subtitle,
......@@ -8,7 +8,7 @@ import {
ArgsTable,
PRIMARY_STORY,
} from '@storybook/addon-docs';
import { clearStage } from '../common/createStage';
import { clearStage } from '../../common/createStage';
import {Story, Meta} from '@storybook/react/types-6-0';
class carouselItem extends window.FYGE.Container {
......
import React from 'react';
import { CarouselComponent } from "./carouseComponent";
import { CarouselComponent } from "../../sourceCode/canvas/carouseComponent";
import { useEffect } from 'react';
import {createStage,isExistStage} from "../../common/createStage"
interface TestProps {
......
......@@ -12,7 +12,7 @@ const CodePanel =(args:Props) => {
<div className = "code">
<CodeMirror value={args.code}
options = {{
mode:"javascript",
mode:{name: "javascript", json: true},
theme:"dracula",
lineNumbers: true,
lineWrapping: false,
......
import React from 'react';
import { GoldCoinCom } from '../canvasCom/goldCoinCom/GoldCoinCom';
import { CodeCom } from '../canvasCom/goldCoinCom/codeCom';
import { GoldCoinCom } from './GoldCoinCom';
import { CodeCom } from './codeCom';
import {
Title,
Subtitle,
......@@ -8,7 +8,7 @@ import {
ArgsTable,
PRIMARY_STORY,
} from '@storybook/addon-docs';
import { clearStage } from '../common/createStage';
import { clearStage } from '../../common/createStage';
export default {
......
import React from 'react';
import {GoldCoinAni} from "./goldCoinAni";
import {GoldCoinAni} from "../../sourceCode/canvas/goldCoinAni";
import {createStage,isExistStage} from "../../common/createStage"
import { useEffect } from 'react';
interface TestProps {
......
import React from 'react';
import {PolygonAxiosSystem} from "./polygonAxiosSystem";
import {PolygonAxiosSystem} from "../../sourceCode/canvas/polygonAxiosSystem";
import {createStage,isExistStage} from "../../common/createStage";
import { useEffect } from 'react';
interface TestProps {
......
import React from 'react';
import { PolygonSystemCom } from '../canvasCom/polygonSystemCom/PolygonSystemCom';
import {CodeCom} from "../canvasCom/polygonSystemCom/codeCom"
import { PolygonSystemCom } from './PolygonSystemCom';
import {CodeCom} from "./codeCom"
import {
Title,
Subtitle,
......@@ -8,7 +8,7 @@ import {
ArgsTable,
PRIMARY_STORY,
} from '@storybook/addon-docs';
import { clearStage } from '../common/createStage';
import { clearStage } from '../../common/createStage';
export default {
component: PolygonSystemCom,
......
import React from 'react';
import {RichText} from "./RichText";
import {RichText} from "../../sourceCode/canvas/RichText";
import {createStage,isExistStage} from "../../common/createStage";
import { useEffect } from 'react';
interface TestProps {
......
import React from 'react';
import { RichTextCom } from '../canvasCom/richTextCom/RichTextCom';
import { CodeCom } from '../canvasCom/richTextCom/codeCom';
import { RichTextCom } from './RichTextCom';
import { CodeCom } from './codeCom';
import {
Title,
Subtitle,
......@@ -8,7 +8,7 @@ import {
ArgsTable,
PRIMARY_STORY,
} from '@storybook/addon-docs';
import { clearStage } from '../common/createStage';
import { clearStage } from '../../common/createStage';
export default {
component: RichTextCom,
title: 'Canvas组件/丰富文本',
......
......@@ -11,7 +11,7 @@ export default {
component: TotalCom,
title: '组件概览',
parameters:{
layout:"left"
layout:"fullscreen"
}
};
......
......@@ -23,4 +23,6 @@ span{
cursor: pointer;
}
}
*{color: #ffffff;}
\ No newline at end of file
h2{
color: #ffffff;
}
\ No newline at end of file
import React from 'react';
import { Danma } from "../reactCom/danma/danma";
import DanmaItem from '../reactCom/danma/danmaItem';
import { Danma } from "../../sourceCode/react/danma/danma";
import DanmaItem from '../../sourceCode/react/danma/danmaItem';
import {
Title,
Subtitle,
......@@ -8,8 +8,8 @@ import {
ArgsTable,
PRIMARY_STORY,
} from '@storybook/addon-docs';
import { CodeCom } from '../reactCom/danma/codeCom';
import { clearStage } from '../common/createStage';
import { CodeCom } from './codeCom';
import { clearStage } from '../../common/createStage';
export default {
component: Danma,
title: 'React组件/弹幕',
......
import React from 'react';
import "./danma.less";
import DanmaCtrl from './danmaCtrl';
import {clearStage} from "../../common/createStage"
import {clearStage} from "../../../common/createStage"
export const Danma = (data) => {
clearStage();
const Danma = DanmaCtrl(data.DanmaItem, data.danmaData, data.speed, data.width, data.height)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment