@shijiu/jsview-vue 0.0.1-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/docs/IMPORT_CHANGE_LOG.txt +3 -0
- package/docs/git_commit.md +15 -0
- package/docs/test_version_up.txt +1 -0
- package/dom/bin/jsview-dom-1.0.313.tgz +0 -0
- package/dom/browser-root-style.css +21 -0
- package/dom/jsv-browser-debug-dom.js +8 -0
- package/dom/jsv-dom.js +6 -0
- package/dom/jsv-forge-define.js +6 -0
- package/dom/target_core_revision.js +14 -0
- package/load/header_script_loader.js +134 -0
- package/load/jsview-main.js +42 -0
- package/load/jsview.config.default.js +37 -0
- package/load/jsview.default.config.js +37 -0
- package/load/loader.js +172 -0
- package/load/loader_webkit.js +40 -0
- package/package.json +27 -0
- package/patch/node_modules/@babel/preset-env/lib/available-plugins.js +219 -0
- package/patch/node_modules/@vue/cli-plugin-typescript/index.js +100 -0
- package/patch/node_modules/@vue/cli-service/lib/commands/serve.js +395 -0
- package/patch/node_modules/@vue/cli-service/lib/config/app.js +272 -0
- package/patch/node_modules/@vue/cli-service/lib/config/assets.js +70 -0
- package/patch/node_modules/@vue/cli-service/lib/config/base.js +212 -0
- package/patch/node_modules/@vue/compiler-sfc/dist/compiler-sfc.cjs.js +2566 -0
- package/patch/node_modules/@vue/compiler-sfc/dist/jsview-css-to-js.js +274 -0
- package/patch/node_modules/@vue/runtime-dom/dist/runtime-dom.esm-bundler.js +1596 -0
- package/patch/node_modules/postcss-js/objectifier.js +90 -0
- package/patch/node_modules/vue-loader/dist/resolveScript.js +70 -0
- package/patch/package-lock.json +30051 -0
- package/samples/AdvanceMetroWidget/App.vue +123 -0
- package/samples/AdvanceMetroWidget/Frame.vue +101 -0
- package/samples/AdvanceMetroWidget/Item.vue +58 -0
- package/samples/AdvanceMetroWidget/data.js +137 -0
- package/samples/AnimPicture/App.vue +224 -0
- package/samples/AnimPicture/assets/animated_webp.webp +0 -0
- package/samples/AnimPicture/assets/ball_3.webp +0 -0
- package/samples/AnimPicture/assets/girl_run.gif +0 -0
- package/samples/AnimPicture/assets/quan.webp +0 -0
- package/samples/Basic/App.vue +129 -0
- package/samples/Basic/assets/border.png +0 -0
- package/samples/Basic/assets/border2.png +0 -0
- package/samples/Basic/assets/icon.png +0 -0
- package/samples/Basic/assets/test.jpg +0 -0
- package/samples/Basic/components/ContentBlock.vue +36 -0
- package/samples/Basic/components/FontStyle.css +10 -0
- package/samples/Basic/components/TitleBar.vue +29 -0
- package/samples/Basic/components/anim/AnimGroup.vue +68 -0
- package/samples/Basic/components/anim/AnimKeyframeBasic.vue +102 -0
- package/samples/Basic/components/anim/AnimKeyframeComposite.vue +53 -0
- package/samples/Basic/components/anim/AnimTransition.vue +116 -0
- package/samples/Basic/components/div/DivBackground.vue +15 -0
- package/samples/Basic/components/div/DivClip.vue +81 -0
- package/samples/Basic/components/div/DivCssScoped.vue +27 -0
- package/samples/Basic/components/div/DivCssVar.vue +50 -0
- package/samples/Basic/components/div/DivGroup1.vue +33 -0
- package/samples/Basic/components/div/DivGroup2.vue +41 -0
- package/samples/Basic/components/div/DivLayout.vue +12 -0
- package/samples/Basic/components/div/DivRadius.vue +47 -0
- package/samples/Basic/components/text/TextAlign.vue +48 -0
- package/samples/Basic/components/text/TextFontStyle.vue +58 -0
- package/samples/Basic/components/text/TextGroup.vue +32 -0
- package/samples/Basic/components/text/TextOverflow.vue +78 -0
- package/samples/BasicFocusControl/App.vue +125 -0
- package/samples/BasicFocusControl/components/BaseBlock.vue +51 -0
- package/samples/BasicFocusControl/components/MainArea.vue +98 -0
- package/samples/BasicFocusControl/components/MainAreaLeftBlock.vue +21 -0
- package/samples/BasicFocusControl/components/MainAreaRightBlock.vue +30 -0
- package/samples/BasicFocusControl/components/SideBar.vue +73 -0
- package/samples/BasicFocusControl/components/SideBarBlock.vue +30 -0
- package/samples/ClassNameDemo/App.vue +119 -0
- package/samples/ClassNameDemo/assets/bg.jpg +0 -0
- package/samples/ClassNameDemo/assets/coupon_content.png +0 -0
- package/samples/ClassNameDemo/assets/coupon_left.png +0 -0
- package/samples/ClassNameDemo/assets/coupon_mid.png +0 -0
- package/samples/ClassNameDemo/assets/coupon_right.png +0 -0
- package/samples/ClassNameDemo/assets/focus_border.png +0 -0
- package/samples/ClassNameDemo/assets/holder_logo.png +0 -0
- package/samples/ClassNameDemo/assets/jrbm.png +0 -0
- package/samples/ClassNameDemo/assets/line_left.png +0 -0
- package/samples/ClassNameDemo/assets/line_mid.png +0 -0
- package/samples/ClassNameDemo/assets/line_right.png +0 -0
- package/samples/ClassNameDemo/assets/loading.png +0 -0
- package/samples/ClassNameDemo/assets/logo.png +0 -0
- package/samples/ClassNameDemo/assets/mcjx.png +0 -0
- package/samples/ClassNameDemo/assets/tao.png +0 -0
- package/samples/ClassNameDemo/assets/tmall.png +0 -0
- package/samples/ClassNameDemo/components/ContentItem.vue +253 -0
- package/samples/ClassNameDemo/components/LoadingView.vue +43 -0
- package/samples/ClassNameDemo/components/TitleView.vue +24 -0
- package/samples/ClassNameDemo/data.js +24 -0
- package/samples/ColorSpace/App.vue +135 -0
- package/samples/ColorSpace/bmpDemo.bmp +0 -0
- package/samples/ColorSpace/jpegDemo.jpeg +0 -0
- package/samples/ColorSpace/pngDemo.png +0 -0
- package/samples/ColorSpace/pngNoAlphaDemo.png +0 -0
- package/samples/DemoHomepage/App.vue +31 -0
- package/samples/DemoHomepage/components/BodyFrame.vue +82 -0
- package/samples/DemoHomepage/components/Dialog.vue +94 -0
- package/samples/DemoHomepage/components/Item.vue +77 -0
- package/samples/DemoHomepage/components/TabFrame.vue +86 -0
- package/samples/DemoHomepage/router.js +132 -0
- package/samples/DemoHomepage/views/Homepage.vue +186 -0
- package/samples/FlipCard/App.vue +80 -0
- package/samples/FlipCard/FlipCard.vue +124 -0
- package/samples/FlipCard/assets/blue_egg.png +0 -0
- package/samples/FlipCard/assets/red_egg.png +0 -0
- package/samples/FlipCard/data.js +13 -0
- package/samples/FlowMultiWidget/App.vue +91 -0
- package/samples/FlowMultiWidget/assets/nine_patch_focus.png +0 -0
- package/samples/FlowMultiWidget/components/Block.vue +107 -0
- package/samples/FlowMultiWidget/components/FlowPage.vue +60 -0
- package/samples/FlowMultiWidget/components/Item.vue +103 -0
- package/samples/FlowMultiWidget/components/MenuItem.vue +72 -0
- package/samples/FlowMultiWidget/components/MyMenu.vue +90 -0
- package/samples/FlowMultiWidget/data.js +446 -0
- package/samples/HashHistory/App.vue +124 -0
- package/samples/HashHistory/components/HorizontalButtonList.vue +114 -0
- package/samples/HashHistory/components/Item.vue +74 -0
- package/samples/HashHistory/router.js +30 -0
- package/samples/HashHistory/views/BasePage.vue +19 -0
- package/samples/HashHistory/views/MainPage.vue +68 -0
- package/samples/HashHistory/views/SubPage.vue +79 -0
- package/samples/HashHistory/views/SubPageFirst.vue +10 -0
- package/samples/HashHistory/views/SubPageSecond.vue +10 -0
- package/samples/LongImage/App.vue +96 -0
- package/samples/LongImage/Button.vue +153 -0
- package/samples/LongImage/LongImageScroll.vue +127 -0
- package/samples/LongImage/Scroll.vue +16 -0
- package/samples/LongImage/assets/1280x7200.jpg +0 -0
- package/samples/LongText/App.vue +111 -0
- package/samples/LongText/Button.vue +153 -0
- package/samples/LongText/LongTextScroll.vue +225 -0
- package/samples/LongText/Scroll.vue +16 -0
- package/samples/Preload/App.vue +146 -0
- package/samples/Preload/data.js +23 -0
- package/samples/Preload/images/awesomeface.png +0 -0
- package/samples/Preload/images/cat.jpg +0 -0
- package/samples/Preload/images/rank.png +0 -0
- package/samples/Preload/images/rank_focus.png +0 -0
- package/samples/Preload/images/rule.png +0 -0
- package/samples/Preload/images/rule_focus.png +0 -0
- package/samples/Preload/images/start.png +0 -0
- package/samples/Preload/images/start_focus.png +0 -0
- package/samples/Preload/preloadItem.vue +22 -0
- package/samples/QrcodeDemo/App.vue +73 -0
- package/samples/SimpleWidgetDemo/App.vue +204 -0
- package/samples/SimpleWidgetDemo/Item.vue +83 -0
- package/samples/SimpleWidgetDemo/assets/bg.jpg +0 -0
- package/samples/SimpleWidgetDemo/assets/coupon_content.png +0 -0
- package/samples/SimpleWidgetDemo/assets/coupon_left.png +0 -0
- package/samples/SimpleWidgetDemo/assets/coupon_mid.png +0 -0
- package/samples/SimpleWidgetDemo/assets/coupon_right.png +0 -0
- package/samples/SimpleWidgetDemo/assets/focus_border.png +0 -0
- package/samples/SimpleWidgetDemo/assets/holder_logo.png +0 -0
- package/samples/SimpleWidgetDemo/assets/jrbm.png +0 -0
- package/samples/SimpleWidgetDemo/assets/line_left.png +0 -0
- package/samples/SimpleWidgetDemo/assets/line_mid.png +0 -0
- package/samples/SimpleWidgetDemo/assets/line_right.png +0 -0
- package/samples/SimpleWidgetDemo/assets/loading.png +0 -0
- package/samples/SimpleWidgetDemo/assets/logo.png +0 -0
- package/samples/SimpleWidgetDemo/assets/mcjx.png +0 -0
- package/samples/SimpleWidgetDemo/assets/tao.png +0 -0
- package/samples/SimpleWidgetDemo/assets/tmall.png +0 -0
- package/samples/SimpleWidgetDemo/border.png +0 -0
- package/samples/SimpleWidgetDemo/components/ContentItem.vue +412 -0
- package/samples/SimpleWidgetDemo/components/MyTab.vue +117 -0
- package/samples/SimpleWidgetDemo/data.js +110 -0
- package/samples/SprayView/App.vue +270 -0
- package/samples/SprayView/assets/snow.png +0 -0
- package/samples/SpriteImage/App.vue +174 -0
- package/samples/SpriteImage/images/cat_run.png +0 -0
- package/samples/SpriteImage/images/egg_break.json +116 -0
- package/samples/SpriteImage/images/egg_break.png +0 -0
- package/samples/SpriteImage/images/sprite.png +0 -0
- package/samples/TextBox/App.vue +179 -0
- package/samples/TextBox/RenderCenter.vue +109 -0
- package/samples/TextBox/RenderLeft.vue +109 -0
- package/samples/TextBox/RenderOneLine.vue +120 -0
- package/samples/TextBox/RenderRight.vue +107 -0
- package/samples/TextShadowDemo/App.vue +98 -0
- package/samples/TextureSize/App.vue +142 -0
- package/samples/TextureSize/bmpDemo.bmp +0 -0
- package/samples/TextureSize/jpegDemo.jpeg +0 -0
- package/samples/TextureSize/jpgDemo.jpg +0 -0
- package/samples/TextureSize/pngDemo.png +0 -0
- package/samples/TextureSize/pngNoAlphaDemo.png +0 -0
- package/samples/ThrowMoveDemo/AccelerateDemo.vue +118 -0
- package/samples/ThrowMoveDemo/App.vue +114 -0
- package/samples/ThrowMoveDemo/LRParabolicDemo.vue +116 -0
- package/samples/ThrowMoveDemo/TargetDemo.vue +117 -0
- package/samples/ThrowMoveDemo/UDParabolicDemo.vue +122 -0
- package/samples/TransitPage/App.vue +41 -0
- package/samples/VideoDemo/App.vue +137 -0
- package/samples/VideoDemo/components/Button.vue +69 -0
- package/samples/VideoDemo/components/Controllor.vue +195 -0
- package/samples/VideoDemo/components/VideoFrame.vue +152 -0
- package/scripts/git-commit-empty.js +21 -0
- package/scripts/install-local-packages.js +121 -0
- package/scripts/make-js.sh +181 -0
- package/scripts/post-build.js +132 -0
- package/scripts/post-install.js +127 -0
- package/scripts/pre-pack.js +2 -0
- package/scripts/run-android.js +64 -0
- package/utils/JsViewEngineWidget/bin/shijiu-jsview-vue-widget-1.0.1.tgz +0 -0
- package/utils/JsViewEngineWidget/index.d.ts +32 -0
- package/utils/JsViewEngineWidget/index.js +6 -0
- package/utils/JsViewVueTools/DebugContentShellJBridge.js +16 -0
- package/utils/JsViewVueTools/DebugTool.js +21 -0
- package/utils/JsViewVueTools/DefaultKeyMap.js +12 -0
- package/utils/JsViewVueTools/JsvDynamicCssStyle.js +73 -0
- package/utils/JsViewVueTools/JsvDynamicKeyFrames.js +128 -0
- package/utils/JsViewVueTools/JsvHashHistory.js +112 -0
- package/utils/JsViewVueTools/JsvRuntimeBridge.js +417 -0
- package/utils/JsViewVueTools/JsvStyleClass.js +290 -0
- package/utils/JsViewVueWidget/BrowserDebugWidget/BrowserPreload.vue +80 -0
- package/utils/JsViewVueWidget/BrowserDebugWidget/BrowserQrcode.vue +148 -0
- package/utils/JsViewVueWidget/BrowserDebugWidget/BrowserSpray.vue +55 -0
- package/utils/JsViewVueWidget/BrowserDebugWidget/JsvApic/ApicDataBase.js +29 -0
- package/utils/JsViewVueWidget/BrowserDebugWidget/JsvApic/BrowserApic.vue +124 -0
- package/utils/JsViewVueWidget/BrowserDebugWidget/JsvApic/GifData.js +83 -0
- package/utils/JsViewVueWidget/BrowserDebugWidget/JsvApic/LoopToolBase.js +25 -0
- package/utils/JsViewVueWidget/BrowserDebugWidget/JsvApic/NormalLoopTool.js +61 -0
- package/utils/JsViewVueWidget/BrowserDebugWidget/JsvApic/PartLoopTool.js +119 -0
- package/utils/JsViewVueWidget/BrowserDebugWidget/JsvApic/Viewer.js +106 -0
- package/utils/JsViewVueWidget/BrowserDebugWidget/JsvApic/WebpData.js +141 -0
- package/utils/JsViewVueWidget/BrowserDebugWidget/WidgetLoader.js +20 -0
- package/utils/JsViewVueWidget/BrowserDebugWidget/WidgetWrapper.js +11 -0
- package/utils/JsViewVueWidget/JsvActorMove/ActorControlBase.js +204 -0
- package/utils/JsViewVueWidget/JsvActorMove/JsvActorMove.vue +64 -0
- package/utils/JsViewVueWidget/JsvActorMove/JsvActorMoveControl.js +427 -0
- package/utils/JsViewVueWidget/JsvActorMove/index.js +12 -0
- package/utils/JsViewVueWidget/JsvApic/JsvApic.vue +179 -0
- package/utils/JsViewVueWidget/JsvApic/index.js +17 -0
- package/utils/JsViewVueWidget/JsvMarquee.vue +197 -0
- package/utils/JsViewVueWidget/JsvNativeSharedDiv.vue +92 -0
- package/utils/JsViewVueWidget/JsvNinePatch.vue +76 -0
- package/utils/JsViewVueWidget/JsvPreload/JsvPreload.vue +351 -0
- package/utils/JsViewVueWidget/JsvPreload/index.js +21 -0
- package/utils/JsViewVueWidget/JsvQrcode/JsvQrcode.vue +140 -0
- package/utils/JsViewVueWidget/JsvQrcode/index.js +18 -0
- package/utils/JsViewVueWidget/JsvSpray/JsvSpray.vue +140 -0
- package/utils/JsViewVueWidget/JsvSpray/index.js +15 -0
- package/utils/JsViewVueWidget/JsvSpriteAnim/JsvSpriteAnim.vue +448 -0
- package/utils/JsViewVueWidget/JsvSpriteAnim/SpriteController.js +57 -0
- package/utils/JsViewVueWidget/JsvSpriteAnim/index.js +6 -0
- package/utils/JsViewVueWidget/JsvSwiper/Indicator.vue +35 -0
- package/utils/JsViewVueWidget/JsvSwiper/JsvSwiper.vue +495 -0
- package/utils/JsViewVueWidget/JsvSwiper/index.js +10 -0
- package/utils/JsViewVueWidget/JsvSwiper3D/Indicator.vue +35 -0
- package/utils/JsViewVueWidget/JsvSwiper3D/JsvSwiper.vue +404 -0
- package/utils/JsViewVueWidget/JsvSwiper3D/index.js +10 -0
- package/utils/JsViewVueWidget/JsvTextBox.vue +111 -0
- package/utils/JsViewVueWidget/JsvVideo.vue +36 -0
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
<!--
|
|
2
|
+
* 当TextData数据中有blur为0(不显示阴影)时,为了测试会报“StyleFormatCheck.js?058c:447 textShadow: blur shadow above 0(now=2 2 0 #00FF00)”错误
|
|
3
|
+
-->
|
|
4
|
+
<script>
|
|
5
|
+
import JsvTextBox from "jsview/utils/JsViewVueWidget/JsvTextBox.vue";
|
|
6
|
+
import { JsvTextStyleClass } from "jsview/utils/JsViewVueTools/JsvStyleClass";
|
|
7
|
+
|
|
8
|
+
export default {
|
|
9
|
+
components: {
|
|
10
|
+
JsvTextBox,
|
|
11
|
+
},
|
|
12
|
+
data() {
|
|
13
|
+
return {
|
|
14
|
+
TextData: [
|
|
15
|
+
{
|
|
16
|
+
id: 0,
|
|
17
|
+
title: "偏移x,y为0(文字发光)",
|
|
18
|
+
textShadow: "0 0 3 #00FF00",
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
id: 1,
|
|
22
|
+
title: "blur为0(不显示阴影)",
|
|
23
|
+
textShadow: "2 2 0 #00FF00",
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
id: 2,
|
|
27
|
+
title: "rgba格式颜色(半透明红)",
|
|
28
|
+
textShadow: "4 4 3 rgba(255,0,0,0.5)",
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
id: 3,
|
|
32
|
+
title: "#格式颜色(蓝色)",
|
|
33
|
+
textShadow: "4 4 0.5 #0000EF",
|
|
34
|
+
},
|
|
35
|
+
],
|
|
36
|
+
font_style: new JsvTextStyleClass({
|
|
37
|
+
fontSize: "35px",
|
|
38
|
+
textAlign: "center",
|
|
39
|
+
lineHeight: "40px",
|
|
40
|
+
}),
|
|
41
|
+
};
|
|
42
|
+
},
|
|
43
|
+
methods: {
|
|
44
|
+
onKeyDown(ev) {
|
|
45
|
+
if (ev.keyCode == 8 || ev.keyCode == 27 || ev.keyCode == 10000) {
|
|
46
|
+
this.$router?.go(-1); // 有router时,是从DemoHomepage进入,回退
|
|
47
|
+
}
|
|
48
|
+
return true;
|
|
49
|
+
},
|
|
50
|
+
},
|
|
51
|
+
};
|
|
52
|
+
</script>
|
|
53
|
+
|
|
54
|
+
<template>
|
|
55
|
+
<jsv-focus-block
|
|
56
|
+
autoFocus
|
|
57
|
+
:onAction="{
|
|
58
|
+
onKeyDown: onKeyDown,
|
|
59
|
+
}"
|
|
60
|
+
>
|
|
61
|
+
<div
|
|
62
|
+
v-for="item in TextData"
|
|
63
|
+
:key="item.id"
|
|
64
|
+
:style="{ left: 320 * item.id }"
|
|
65
|
+
>
|
|
66
|
+
<div>
|
|
67
|
+
<div
|
|
68
|
+
:style="{
|
|
69
|
+
width: 320,
|
|
70
|
+
height: 50,
|
|
71
|
+
fontSize: '25px',
|
|
72
|
+
textAlign: 'center',
|
|
73
|
+
lineHeight: '50px',
|
|
74
|
+
backgroundColor: item.id % 2 == 0 ? '#00ff00' : '#0000ff',
|
|
75
|
+
}"
|
|
76
|
+
>
|
|
77
|
+
{{ item.title }}
|
|
78
|
+
</div>
|
|
79
|
+
<JsvTextBox
|
|
80
|
+
:verticalAlign="'middle'"
|
|
81
|
+
:styleToken="'Fixed'"
|
|
82
|
+
:stylesList="[
|
|
83
|
+
font_style,
|
|
84
|
+
{
|
|
85
|
+
top: 50,
|
|
86
|
+
width: 320,
|
|
87
|
+
height: 70,
|
|
88
|
+
textShadow: item.textShadow,
|
|
89
|
+
backgroundColor: item.id % 2 == 0 ? '#ffffee' : '#ffff10',
|
|
90
|
+
},
|
|
91
|
+
]"
|
|
92
|
+
>
|
|
93
|
+
文字阴影
|
|
94
|
+
</JsvTextBox>
|
|
95
|
+
</div>
|
|
96
|
+
</div>
|
|
97
|
+
</jsv-focus-block>
|
|
98
|
+
</template>
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
<script>
|
|
2
|
+
import { Vue } from "vue-class-component";
|
|
3
|
+
import jpegDemo from "./jpegDemo.jpeg";
|
|
4
|
+
import pngDemo from "./pngDemo.png";
|
|
5
|
+
import pngNoAlphaDemo from "./pngNoAlphaDemo.png";
|
|
6
|
+
import bmpDemo from "./bmpDemo.bmp";
|
|
7
|
+
|
|
8
|
+
class App extends Vue {
|
|
9
|
+
constructor(props) {
|
|
10
|
+
super(props);
|
|
11
|
+
|
|
12
|
+
this.jpegDemo = jpegDemo;
|
|
13
|
+
this.pngDemo = pngDemo;
|
|
14
|
+
this.pngNoAlphaDemo = pngNoAlphaDemo;
|
|
15
|
+
this.bmpDemo = bmpDemo;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
onKeyDown(ev) {
|
|
19
|
+
// 8:Backspace, 27:Escape, 10000:盒子返回键
|
|
20
|
+
if (ev.keyCode == 8 || ev.keyCode == 27 || ev.keyCode == 10000) {
|
|
21
|
+
if (window.JsView) {
|
|
22
|
+
window.JsView.setGlobalConfig({
|
|
23
|
+
texCache: -1,
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
this.$router?.go(-1); // 有router时,回退
|
|
28
|
+
return true;
|
|
29
|
+
}
|
|
30
|
+
return false;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
export default App;
|
|
34
|
+
</script>
|
|
35
|
+
<template>
|
|
36
|
+
<jsv-focus-block autoFocus :onKeyDown="onKeyDown">
|
|
37
|
+
<div class="allBgc">
|
|
38
|
+
<div class="block">
|
|
39
|
+
<div :style="{ left: 0, top: 0 }">
|
|
40
|
+
<div class="leftFont top0">
|
|
41
|
+
{{ `原图加载\n内存占用由图片尺寸决定` }}
|
|
42
|
+
</div>
|
|
43
|
+
<div class="leftFont top250">
|
|
44
|
+
{{
|
|
45
|
+
`指定尺寸加载\n内存占用由给定尺寸决定,图片质量下降,但更省内存`
|
|
46
|
+
}}
|
|
47
|
+
</div>
|
|
48
|
+
</div>
|
|
49
|
+
|
|
50
|
+
<div :style="{ left: 220, top: 0 }">
|
|
51
|
+
<img alt="" class="graphSize top0" :src="bmpDemo" />
|
|
52
|
+
<img
|
|
53
|
+
alt=""
|
|
54
|
+
class="graphSize top250"
|
|
55
|
+
jsvImgScaledownTex
|
|
56
|
+
:src="bmpDemo"
|
|
57
|
+
/>
|
|
58
|
+
<div class="underFont">
|
|
59
|
+
{{ `bmp图片\n指定尺寸噪点明显更大` }}
|
|
60
|
+
</div>
|
|
61
|
+
</div>
|
|
62
|
+
|
|
63
|
+
<div :style="{ left: 440, top: 0 }">
|
|
64
|
+
<img alt="" class="graphSize top0" :src="jpegDemo" />
|
|
65
|
+
<img
|
|
66
|
+
alt=""
|
|
67
|
+
class="graphSize top250"
|
|
68
|
+
jsvImgScaledownTex
|
|
69
|
+
:src="jpegDemo"
|
|
70
|
+
/>
|
|
71
|
+
<div class="underFont">
|
|
72
|
+
{{ "jpg/jpeg图片" }}
|
|
73
|
+
</div>
|
|
74
|
+
</div>
|
|
75
|
+
|
|
76
|
+
<div :style="{ left: 660, top: 0 }">
|
|
77
|
+
<img alt="" class="graphSize top0" :src="pngDemo" />
|
|
78
|
+
<img
|
|
79
|
+
alt=""
|
|
80
|
+
class="graphSize top250"
|
|
81
|
+
jsvImgScaledownTex
|
|
82
|
+
:src="pngDemo"
|
|
83
|
+
/>
|
|
84
|
+
<div class="underFont">
|
|
85
|
+
{{ `png有透明图片\n指定尺寸有明显锯齿` }}
|
|
86
|
+
</div>
|
|
87
|
+
</div>
|
|
88
|
+
|
|
89
|
+
<div :style="{ left: 880, top: 0 }">
|
|
90
|
+
<img alt="" class="graphSize top0" :src="pngNoAlphaDemo" />
|
|
91
|
+
<img
|
|
92
|
+
alt=""
|
|
93
|
+
class="graphSize top250"
|
|
94
|
+
jsvImgScaledownTex
|
|
95
|
+
:src="pngNoAlphaDemo"
|
|
96
|
+
/>
|
|
97
|
+
<div class="underFont">
|
|
98
|
+
{{ `png无透明图片` }}
|
|
99
|
+
</div>
|
|
100
|
+
</div>
|
|
101
|
+
</div>
|
|
102
|
+
</div>
|
|
103
|
+
</jsv-focus-block>
|
|
104
|
+
</template>
|
|
105
|
+
<style scoped>
|
|
106
|
+
.allBgc {
|
|
107
|
+
width: 1920;
|
|
108
|
+
height: 1080;
|
|
109
|
+
background-color: #334c4c;
|
|
110
|
+
}
|
|
111
|
+
.block {
|
|
112
|
+
left: 20;
|
|
113
|
+
top: 50;
|
|
114
|
+
}
|
|
115
|
+
.leftFont {
|
|
116
|
+
left: 0;
|
|
117
|
+
width: 210;
|
|
118
|
+
height: 200;
|
|
119
|
+
color: #ffffff;
|
|
120
|
+
font-size: 30px;
|
|
121
|
+
}
|
|
122
|
+
.top0 {
|
|
123
|
+
top: 0;
|
|
124
|
+
}
|
|
125
|
+
.top250 {
|
|
126
|
+
top: 250;
|
|
127
|
+
}
|
|
128
|
+
.graphSize {
|
|
129
|
+
left: 0;
|
|
130
|
+
width: 200;
|
|
131
|
+
height: 200;
|
|
132
|
+
border-radius: 15px 15px 15px 15px;
|
|
133
|
+
}
|
|
134
|
+
.underFont {
|
|
135
|
+
left: 0;
|
|
136
|
+
top: 500;
|
|
137
|
+
width: 200;
|
|
138
|
+
height: 200;
|
|
139
|
+
color: #ffffff;
|
|
140
|
+
font-size: 20px;
|
|
141
|
+
}
|
|
142
|
+
</style>
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
<!--
|
|
2
|
+
* @Author: ChenChanghua
|
|
3
|
+
* @Date: 2021-10-20 18:27:25
|
|
4
|
+
* @LastEditors: ChenChanghua
|
|
5
|
+
* @LastEditTime: 2021-10-21 14:51:53
|
|
6
|
+
* @Description: file content
|
|
7
|
+
-->
|
|
8
|
+
<script>
|
|
9
|
+
import JsvActorMove, {
|
|
10
|
+
JsvActorMoveControl,
|
|
11
|
+
} from "jsview/utils/JsViewVueWidget/JsvActorMove";
|
|
12
|
+
export default {
|
|
13
|
+
components: {
|
|
14
|
+
JsvActorMove,
|
|
15
|
+
},
|
|
16
|
+
props: {
|
|
17
|
+
name: String,
|
|
18
|
+
},
|
|
19
|
+
data() {
|
|
20
|
+
return {
|
|
21
|
+
direction: 1,
|
|
22
|
+
};
|
|
23
|
+
},
|
|
24
|
+
computed: {
|
|
25
|
+
directionDetail() {
|
|
26
|
+
return this.direction > 0 ? "上" : "下";
|
|
27
|
+
},
|
|
28
|
+
},
|
|
29
|
+
setup() {
|
|
30
|
+
let throwControl = new JsvActorMoveControl(); // 抛物运动体控制器
|
|
31
|
+
let moveControl = new JsvActorMoveControl(); // 平移运动体控制器
|
|
32
|
+
|
|
33
|
+
return {
|
|
34
|
+
throwControl,
|
|
35
|
+
moveControl,
|
|
36
|
+
};
|
|
37
|
+
},
|
|
38
|
+
methods: {
|
|
39
|
+
onKeyDown(ev) {
|
|
40
|
+
if (ev.keyCode === 13) {
|
|
41
|
+
let preDirection = this.direction;
|
|
42
|
+
this.direction = -this.direction;
|
|
43
|
+
this.throwControl.throwAlongY(
|
|
44
|
+
0,
|
|
45
|
+
750 * preDirection,
|
|
46
|
+
{
|
|
47
|
+
type: "catch",
|
|
48
|
+
position: 200 * preDirection,
|
|
49
|
+
direction: preDirection,
|
|
50
|
+
},
|
|
51
|
+
(x, y) => {
|
|
52
|
+
console.log(`Throw end with x=${x} y=${y}`);
|
|
53
|
+
}
|
|
54
|
+
);
|
|
55
|
+
return true;
|
|
56
|
+
}
|
|
57
|
+
return false;
|
|
58
|
+
},
|
|
59
|
+
},
|
|
60
|
+
};
|
|
61
|
+
</script>
|
|
62
|
+
|
|
63
|
+
<template>
|
|
64
|
+
<jsv-focus-block
|
|
65
|
+
ref="focusNode"
|
|
66
|
+
:name="name"
|
|
67
|
+
autoFocus
|
|
68
|
+
:onAction="{
|
|
69
|
+
onKeyDown: onKeyDown,
|
|
70
|
+
}"
|
|
71
|
+
>
|
|
72
|
+
<div
|
|
73
|
+
key="sample1"
|
|
74
|
+
class="detail-font"
|
|
75
|
+
:style="{ top: 150, left: 425, width: 430, height: 40 }"
|
|
76
|
+
>
|
|
77
|
+
{{ `向${directionDetail}加速` }}
|
|
78
|
+
</div>
|
|
79
|
+
<div
|
|
80
|
+
key="DirectText"
|
|
81
|
+
class="font"
|
|
82
|
+
:style="{ top: 250, left: 425, width: 430, height: 40 }"
|
|
83
|
+
>
|
|
84
|
+
{{ `当前方向:${directionDetail}` }}
|
|
85
|
+
</div>
|
|
86
|
+
<div :style="{ top: 590, left: 625 }">
|
|
87
|
+
<jsv-actor-move key="move" :control="moveControl">
|
|
88
|
+
<jsv-actor-move key="throw" :control="throwControl">
|
|
89
|
+
<div
|
|
90
|
+
:style="{ backgroundColor: '#FF0000', width: 30, height: 30 }"
|
|
91
|
+
></div>
|
|
92
|
+
</jsv-actor-move>
|
|
93
|
+
</jsv-actor-move>
|
|
94
|
+
</div>
|
|
95
|
+
</jsv-focus-block>
|
|
96
|
+
</template>
|
|
97
|
+
|
|
98
|
+
<style scoped>
|
|
99
|
+
.font {
|
|
100
|
+
font-size: 32px;
|
|
101
|
+
color: #73665c;
|
|
102
|
+
line-height: 40px;
|
|
103
|
+
overflow: hidden;
|
|
104
|
+
white-space: nowrap;
|
|
105
|
+
text-overflow: ellipsis;
|
|
106
|
+
text-align: center;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.detail-font {
|
|
110
|
+
font-size: 32px;
|
|
111
|
+
color: #f7f7eb;
|
|
112
|
+
line-height: 30px;
|
|
113
|
+
overflow: hidden;
|
|
114
|
+
white-space: nowrap;
|
|
115
|
+
text-overflow: ellipsis;
|
|
116
|
+
text-align: center;
|
|
117
|
+
}
|
|
118
|
+
</style>
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
<!--
|
|
2
|
+
* @Author: ChenChanghua
|
|
3
|
+
* @Date: 2021-10-20 18:27:08
|
|
4
|
+
* @LastEditors: ChenChanghua
|
|
5
|
+
* @LastEditTime: 2021-10-25 09:38:21
|
|
6
|
+
* @Description: file content
|
|
7
|
+
-->
|
|
8
|
+
<script>
|
|
9
|
+
import LRParabolicDemo from "./LRParabolicDemo.vue";
|
|
10
|
+
import UDParabolicDemo from "./UDParabolicDemo.vue";
|
|
11
|
+
import TargetDemo from "./TargetDemo.vue";
|
|
12
|
+
import AccelerateDemo from "./AccelerateDemo.vue";
|
|
13
|
+
|
|
14
|
+
export default {
|
|
15
|
+
components: {
|
|
16
|
+
LRParabolicDemo,
|
|
17
|
+
UDParabolicDemo,
|
|
18
|
+
TargetDemo,
|
|
19
|
+
AccelerateDemo,
|
|
20
|
+
},
|
|
21
|
+
data() {
|
|
22
|
+
return {
|
|
23
|
+
demoIndex: 0,
|
|
24
|
+
};
|
|
25
|
+
},
|
|
26
|
+
methods: {
|
|
27
|
+
onKeyDown(ev) {
|
|
28
|
+
if (ev.keyCode == 8 || ev.keyCode == 27 || ev.keyCode == 10000) {
|
|
29
|
+
this.$router?.go(-1); // 有router时,是从DemoHomepage进入,回退
|
|
30
|
+
return true;
|
|
31
|
+
}
|
|
32
|
+
if (ev.keyCode === 37) {
|
|
33
|
+
this.demoIndex = this.demoIndex - 1 < 0 ? 3 : this.demoIndex - 1;
|
|
34
|
+
} else if (ev.keyCode === 39) {
|
|
35
|
+
this.demoIndex = this.demoIndex - +1 > 3 ? 0 : this.demoIndex + 1;
|
|
36
|
+
}
|
|
37
|
+
return true;
|
|
38
|
+
},
|
|
39
|
+
},
|
|
40
|
+
};
|
|
41
|
+
</script>
|
|
42
|
+
|
|
43
|
+
<template>
|
|
44
|
+
<div
|
|
45
|
+
:style="{
|
|
46
|
+
width: 1920,
|
|
47
|
+
height: 1080,
|
|
48
|
+
backgroundColor: '#000000',
|
|
49
|
+
}"
|
|
50
|
+
>
|
|
51
|
+
<div
|
|
52
|
+
key="leftWall"
|
|
53
|
+
:style="{
|
|
54
|
+
top: 0,
|
|
55
|
+
left: 425,
|
|
56
|
+
width: 5,
|
|
57
|
+
height: 620,
|
|
58
|
+
backgroundColor: '#F0F000',
|
|
59
|
+
}"
|
|
60
|
+
/>
|
|
61
|
+
<div
|
|
62
|
+
key="rightWall"
|
|
63
|
+
:style="{
|
|
64
|
+
top: 0,
|
|
65
|
+
left: 850,
|
|
66
|
+
width: 5,
|
|
67
|
+
height: 620,
|
|
68
|
+
backgroundColor: '#F0F000',
|
|
69
|
+
}"
|
|
70
|
+
/>
|
|
71
|
+
<div
|
|
72
|
+
key="bottomWall"
|
|
73
|
+
:style="{
|
|
74
|
+
top: 620,
|
|
75
|
+
left: 425,
|
|
76
|
+
width: 430,
|
|
77
|
+
height: 5,
|
|
78
|
+
backgroundColor: '#F0F000',
|
|
79
|
+
}"
|
|
80
|
+
/>
|
|
81
|
+
<div
|
|
82
|
+
key="GuidText1"
|
|
83
|
+
className="{CssStyles.FontStyle.getName()}"
|
|
84
|
+
:style="{ top: 625, left: (1280 - 430) / 2, width: 430, height: 40 }"
|
|
85
|
+
>
|
|
86
|
+
{`按OK键进行跳跃和转向`}
|
|
87
|
+
</div>
|
|
88
|
+
<div
|
|
89
|
+
key="GuidText2"
|
|
90
|
+
className="{CssStyles.FontStyle.getName()}"
|
|
91
|
+
:style="{ top: 625 + 40, left: (1280 - 430) / 2, width: 430, height: 40 }"
|
|
92
|
+
>
|
|
93
|
+
{`左右键切换不同模式的Demo`}
|
|
94
|
+
</div>
|
|
95
|
+
<jsv-focus-block
|
|
96
|
+
autoFocus
|
|
97
|
+
ref="focusNode"
|
|
98
|
+
:onAction="{
|
|
99
|
+
onKeyDown: onKeyDown,
|
|
100
|
+
}"
|
|
101
|
+
>
|
|
102
|
+
<LRParabolicDemo
|
|
103
|
+
v-if="demoIndex === 0"
|
|
104
|
+
name="/actorMove"
|
|
105
|
+
></LRParabolicDemo>
|
|
106
|
+
<UDParabolicDemo v-if="demoIndex === 1" name="/udDemo"></UDParabolicDemo>
|
|
107
|
+
<TargetDemo v-if="demoIndex === 2" name="/targetDemo"></TargetDemo>
|
|
108
|
+
<AccelerateDemo
|
|
109
|
+
v-if="demoIndex === 3"
|
|
110
|
+
name="/accelerateDemo"
|
|
111
|
+
></AccelerateDemo>
|
|
112
|
+
</jsv-focus-block>
|
|
113
|
+
</div>
|
|
114
|
+
</template>
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
<!--
|
|
2
|
+
* @Author: ChenChanghua
|
|
3
|
+
* @Date: 2021-10-20 18:27:25
|
|
4
|
+
* @LastEditors: ChenChanghua
|
|
5
|
+
* @LastEditTime: 2021-10-21 14:01:59
|
|
6
|
+
* @Description: file content
|
|
7
|
+
-->
|
|
8
|
+
<script>
|
|
9
|
+
import JsvActorMove, {
|
|
10
|
+
JsvActorMoveControl,
|
|
11
|
+
} from "jsview/utils/JsViewVueWidget/JsvActorMove";
|
|
12
|
+
export default {
|
|
13
|
+
components: {
|
|
14
|
+
JsvActorMove,
|
|
15
|
+
},
|
|
16
|
+
props: {
|
|
17
|
+
name: String,
|
|
18
|
+
},
|
|
19
|
+
data() {
|
|
20
|
+
return {
|
|
21
|
+
direction: 1,
|
|
22
|
+
};
|
|
23
|
+
},
|
|
24
|
+
setup() {
|
|
25
|
+
let throwControl = new JsvActorMoveControl(); // 抛物运动体控制器
|
|
26
|
+
let moveControl = new JsvActorMoveControl(); // 平移运动体控制器
|
|
27
|
+
|
|
28
|
+
return {
|
|
29
|
+
throwControl,
|
|
30
|
+
moveControl,
|
|
31
|
+
};
|
|
32
|
+
},
|
|
33
|
+
methods: {
|
|
34
|
+
onKeyDown(ev) {
|
|
35
|
+
switch (ev.keyCode) {
|
|
36
|
+
case 13:
|
|
37
|
+
this.direction = -this.direction;
|
|
38
|
+
|
|
39
|
+
this.moveControl.moveToX(195 * this.direction, 250, (x, y) => {
|
|
40
|
+
console.log(`Move end with x=${x} y=${y}`);
|
|
41
|
+
});
|
|
42
|
+
this.throwControl.throwAlongY(
|
|
43
|
+
-500,
|
|
44
|
+
750,
|
|
45
|
+
{ type: "catch", position: 0, direction: 1 },
|
|
46
|
+
(x, y) => {
|
|
47
|
+
console.log(`Throw end with x=${x} y=${y}`);
|
|
48
|
+
},
|
|
49
|
+
() => {
|
|
50
|
+
console.log("Get to the pole...");
|
|
51
|
+
}
|
|
52
|
+
);
|
|
53
|
+
return true;
|
|
54
|
+
}
|
|
55
|
+
return false;
|
|
56
|
+
},
|
|
57
|
+
},
|
|
58
|
+
};
|
|
59
|
+
</script>
|
|
60
|
+
|
|
61
|
+
<template>
|
|
62
|
+
<jsv-focus-block
|
|
63
|
+
ref="focusNode"
|
|
64
|
+
:name="name"
|
|
65
|
+
autoFocus
|
|
66
|
+
:onAction="{
|
|
67
|
+
onKeyDown: onKeyDown,
|
|
68
|
+
}"
|
|
69
|
+
>
|
|
70
|
+
<div
|
|
71
|
+
key="sample1"
|
|
72
|
+
class="detail-font"
|
|
73
|
+
:style="{ top: 150, left: 425, width: 430, height: 40 }"
|
|
74
|
+
>
|
|
75
|
+
抛物线运动
|
|
76
|
+
</div>
|
|
77
|
+
<div
|
|
78
|
+
key="DirectText"
|
|
79
|
+
class="font"
|
|
80
|
+
:style="{ top: 250, left: 425, width: 430, height: 40 }"
|
|
81
|
+
>
|
|
82
|
+
{{ `当前方向:${direction > 0 ? "右" : "左"}` }}
|
|
83
|
+
</div>
|
|
84
|
+
<div :style="{ top: 590, left: 625 }">
|
|
85
|
+
<jsv-actor-move key="move" :control="moveControl">
|
|
86
|
+
<jsv-actor-move key="throw" :control="throwControl">
|
|
87
|
+
<div
|
|
88
|
+
:style="{ backgroundColor: '#00FF00', width: 30, height: 30 }"
|
|
89
|
+
></div>
|
|
90
|
+
</jsv-actor-move>
|
|
91
|
+
</jsv-actor-move>
|
|
92
|
+
</div>
|
|
93
|
+
</jsv-focus-block>
|
|
94
|
+
</template>
|
|
95
|
+
|
|
96
|
+
<style scoped>
|
|
97
|
+
.font {
|
|
98
|
+
font-size: 32px;
|
|
99
|
+
color: #73665c;
|
|
100
|
+
line-height: 40px;
|
|
101
|
+
overflow: hidden;
|
|
102
|
+
white-space: nowrap;
|
|
103
|
+
text-overflow: ellipsis;
|
|
104
|
+
text-align: center;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
.detail-font {
|
|
108
|
+
font-size: 32px;
|
|
109
|
+
color: #f7f7eb;
|
|
110
|
+
line-height: 30px;
|
|
111
|
+
overflow: hidden;
|
|
112
|
+
white-space: nowrap;
|
|
113
|
+
text-overflow: ellipsis;
|
|
114
|
+
text-align: center;
|
|
115
|
+
}
|
|
116
|
+
</style>
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
<!--
|
|
2
|
+
* @Author: ChenChanghua
|
|
3
|
+
* @Date: 2021-10-20 18:27:25
|
|
4
|
+
* @LastEditors: ChenChanghua
|
|
5
|
+
* @LastEditTime: 2021-10-21 14:40:47
|
|
6
|
+
* @Description: file content
|
|
7
|
+
-->
|
|
8
|
+
<script>
|
|
9
|
+
import JsvActorMove, {
|
|
10
|
+
JsvActorMoveControl,
|
|
11
|
+
} from "jsview/utils/JsViewVueWidget/JsvActorMove";
|
|
12
|
+
export default {
|
|
13
|
+
components: {
|
|
14
|
+
JsvActorMove,
|
|
15
|
+
},
|
|
16
|
+
props: {
|
|
17
|
+
name: String,
|
|
18
|
+
},
|
|
19
|
+
data() {
|
|
20
|
+
return {
|
|
21
|
+
direction: 1,
|
|
22
|
+
};
|
|
23
|
+
},
|
|
24
|
+
setup() {
|
|
25
|
+
let throwControl = new JsvActorMoveControl(); // 抛物运动体控制器
|
|
26
|
+
let moveControl = new JsvActorMoveControl(); // 平移运动体控制器
|
|
27
|
+
|
|
28
|
+
return {
|
|
29
|
+
throwControl,
|
|
30
|
+
moveControl,
|
|
31
|
+
};
|
|
32
|
+
},
|
|
33
|
+
methods: {
|
|
34
|
+
onKeyDown(ev) {
|
|
35
|
+
if (ev.keyCode === 13) {
|
|
36
|
+
let preDirection = this.direction;
|
|
37
|
+
this.direction = -this.direction;
|
|
38
|
+
this.moveControl.moveToX(195 * this.direction, 250, (x, y) => {
|
|
39
|
+
console.log(`Move end with x=${x} y=${y}`);
|
|
40
|
+
});
|
|
41
|
+
const position = (-100 * preDirection) / 2;
|
|
42
|
+
this.throwControl.throwAlongY(
|
|
43
|
+
-500 * preDirection,
|
|
44
|
+
750 * preDirection,
|
|
45
|
+
{
|
|
46
|
+
type: "catch",
|
|
47
|
+
position,
|
|
48
|
+
direction: -1 * preDirection,
|
|
49
|
+
},
|
|
50
|
+
(x, y) => {
|
|
51
|
+
console.log(`Throw end with x=${x} y=${y}`);
|
|
52
|
+
}
|
|
53
|
+
);
|
|
54
|
+
return true;
|
|
55
|
+
}
|
|
56
|
+
return false;
|
|
57
|
+
},
|
|
58
|
+
},
|
|
59
|
+
};
|
|
60
|
+
</script>
|
|
61
|
+
|
|
62
|
+
<template>
|
|
63
|
+
<jsv-focus-block
|
|
64
|
+
ref="focusNode"
|
|
65
|
+
:name="name"
|
|
66
|
+
autoFocus
|
|
67
|
+
:onAction="{
|
|
68
|
+
onKeyDown: onKeyDown,
|
|
69
|
+
}"
|
|
70
|
+
>
|
|
71
|
+
<div
|
|
72
|
+
key="sample1"
|
|
73
|
+
class="detail-font"
|
|
74
|
+
:style="{ top: 150, left: 425, width: 430, height: 40 }"
|
|
75
|
+
>
|
|
76
|
+
拐点前触碰目标点
|
|
77
|
+
</div>
|
|
78
|
+
<div
|
|
79
|
+
key="DirectText"
|
|
80
|
+
class="font"
|
|
81
|
+
:style="{ top: 250, left: 425, width: 430, height: 40 }"
|
|
82
|
+
>
|
|
83
|
+
{{ `当前方向:${direction > 0 ? "右" : "左"}` }}
|
|
84
|
+
</div>
|
|
85
|
+
<div :style="{ top: 590, left: 625 }">
|
|
86
|
+
<jsv-actor-move key="move" :control="moveControl">
|
|
87
|
+
<jsv-actor-move key="throw" :control="throwControl">
|
|
88
|
+
<div
|
|
89
|
+
:style="{ backgroundColor: '#0916ff', width: 30, height: 30 }"
|
|
90
|
+
></div>
|
|
91
|
+
</jsv-actor-move>
|
|
92
|
+
</jsv-actor-move>
|
|
93
|
+
</div>
|
|
94
|
+
</jsv-focus-block>
|
|
95
|
+
</template>
|
|
96
|
+
|
|
97
|
+
<style scoped>
|
|
98
|
+
.font {
|
|
99
|
+
font-size: 32px;
|
|
100
|
+
color: #73665c;
|
|
101
|
+
line-height: 40px;
|
|
102
|
+
overflow: hidden;
|
|
103
|
+
white-space: nowrap;
|
|
104
|
+
text-overflow: ellipsis;
|
|
105
|
+
text-align: center;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
.detail-font {
|
|
109
|
+
font-size: 32px;
|
|
110
|
+
color: #f7f7eb;
|
|
111
|
+
line-height: 30px;
|
|
112
|
+
overflow: hidden;
|
|
113
|
+
white-space: nowrap;
|
|
114
|
+
text-overflow: ellipsis;
|
|
115
|
+
text-align: center;
|
|
116
|
+
}
|
|
117
|
+
</style>
|