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

工程目录修改

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