Commit 2be9f418 authored by 张媛's avatar 张媛

工程目录修改

parent 8c35ef43
...@@ -30,6 +30,7 @@ export const CarouselCom = (pros:TestProps)=>{ ...@@ -30,6 +30,7 @@ export const CarouselCom = (pros:TestProps)=>{
window.stage.removeAllChildren(); window.stage.removeAllChildren();
const {carouselItem,itemWidth,itemHeight,vertical,num,k} = pros const {carouselItem,itemWidth,itemHeight,vertical,num,k} = pros
const carouseCom = new CarouselComponent(carouselItem, itemWidth, itemHeight,vertical, num, k); const carouseCom = new CarouselComponent(carouselItem, itemWidth, itemHeight,vertical, num, k);
//@ts-ignore
carouseCom.position.set(pros.x,pros.y) carouseCom.position.set(pros.x,pros.y)
window.stage.addChild(carouseCom); window.stage.addChild(carouseCom);
carouseCom.updateData(pros.data); carouseCom.updateData(pros.data);
......
...@@ -15,6 +15,7 @@ export const RichTextCom = (args:TestProps)=>{ ...@@ -15,6 +15,7 @@ export const RichTextCom = (args:TestProps)=>{
isExistStage(()=>{ isExistStage(()=>{
window.stage.removeAllChildren(); window.stage.removeAllChildren();
const richText = new RichText(); const richText = new RichText();
//@ts-ignore
richText.position.set(args.x,args.y) richText.position.set(args.x,args.y)
richText.text = args.textArr; richText.text = args.textArr;
window.stage.addChild(richText); window.stage.addChild(richText);
......
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