@shijiu/jsview-vue 1.9.727 → 1.9.747
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/index.d.ts +4 -1
- package/index.js +4 -1
- package/package.json +5 -16
- package/samples/AnimPicture/App.vue +0 -207
- 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 +0 -134
- 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 +0 -38
- package/samples/Basic/components/FontStyle.css +0 -16
- package/samples/Basic/components/anim/AnimGroup.vue +0 -66
- package/samples/Basic/components/anim/AnimKeyframeBasic.vue +0 -119
- package/samples/Basic/components/anim/AnimKeyframeComposite.vue +0 -52
- package/samples/Basic/components/anim/AnimTransition.vue +0 -157
- package/samples/Basic/components/div/DivBackground.vue +0 -44
- package/samples/Basic/components/div/DivClip.vue +0 -159
- package/samples/Basic/components/div/DivCssScoped.vue +0 -20
- package/samples/Basic/components/div/DivCssVar.vue +0 -53
- package/samples/Basic/components/div/DivGroup1.vue +0 -47
- package/samples/Basic/components/div/DivGroup2.vue +0 -65
- package/samples/Basic/components/div/DivLayout.vue +0 -70
- package/samples/Basic/components/div/DivRadius.vue +0 -65
- package/samples/Basic/components/div/DivTransform.vue +0 -32
- package/samples/Basic/components/img/ImageGroup.vue +0 -31
- package/samples/Basic/components/img/ImgLayout.vue +0 -41
- package/samples/Basic/components/panel/Panel1.vue +0 -55
- package/samples/Basic/components/panel/Panel2.vue +0 -31
- package/samples/Basic/components/panel/TitleBar.vue +0 -29
- package/samples/Basic/components/text/TextAlign.vue +0 -66
- package/samples/Basic/components/text/TextEmoji.vue +0 -26
- package/samples/Basic/components/text/TextFontStyle.vue +0 -89
- package/samples/Basic/components/text/TextGroup1.vue +0 -49
- package/samples/Basic/components/text/TextGroup2.vue +0 -28
- package/samples/Basic/components/text/TextOverflow.vue +0 -110
- package/samples/BasicFocusControl/App.vue +0 -104
- package/samples/BasicFocusControl/components/BaseBlock.vue +0 -50
- package/samples/BasicFocusControl/components/MainArea.vue +0 -83
- package/samples/BasicFocusControl/components/MainAreaLeftBlock.vue +0 -17
- package/samples/BasicFocusControl/components/MainAreaRightBlock.vue +0 -27
- package/samples/BasicFocusControl/components/SideBar.vue +0 -58
- package/samples/BasicFocusControl/components/SideBarBlock.vue +0 -27
- package/samples/Collision/App.vue +0 -452
- package/samples/ColorSpace/App.vue +0 -126
- package/samples/DemoHomepage/App.vue +0 -27
- package/samples/DemoHomepage/components/BodyFrame.vue +0 -95
- package/samples/DemoHomepage/components/Dialog.vue +0 -94
- package/samples/DemoHomepage/components/Item.vue +0 -77
- package/samples/DemoHomepage/components/TabFrame.vue +0 -85
- package/samples/DemoHomepage/router.js +0 -196
- package/samples/DemoHomepage/views/Homepage.vue +0 -195
- package/samples/FilterDemo/AnimatePic.vue +0 -58
- package/samples/FilterDemo/App.vue +0 -159
- package/samples/FilterDemo/VideoLayer.vue +0 -62
- package/samples/FlipCard/App.vue +0 -71
- package/samples/FlipCard/FlipCard.vue +0 -118
- package/samples/FlipCard/assets/blue_egg.png +0 -0
- package/samples/FlipCard/assets/red_egg.png +0 -0
- package/samples/FlipCard/data.js +0 -13
- package/samples/GridDemo/App.vue +0 -215
- package/samples/GridDemo/ButtonBlock.vue +0 -112
- package/samples/GridDemo/FocusItem.vue +0 -37
- package/samples/GridDemo/Item.vue +0 -93
- package/samples/HashHistory/App.vue +0 -115
- package/samples/HashHistory/components/HorizontalButtonList.vue +0 -91
- package/samples/HashHistory/components/Item.vue +0 -60
- package/samples/HashHistory/router.js +0 -41
- package/samples/HashHistory/views/MainPage.vue +0 -57
- package/samples/HashHistory/views/SubPage.vue +0 -66
- package/samples/ImpactStop/App.vue +0 -435
- package/samples/Input/App.vue +0 -164
- package/samples/Input/FullKeyboard.vue +0 -87
- package/samples/Input/InputPanel.vue +0 -131
- package/samples/Input/KeyboardItem.vue +0 -58
- package/samples/LongImage/App.vue +0 -80
- package/samples/LongImage/Button.vue +0 -58
- package/samples/LongImage/ButtonItem.vue +0 -44
- package/samples/LongImage/LongImageScroll.vue +0 -92
- package/samples/LongImage/Scroll.vue +0 -14
- package/samples/LongImage/assets/1280x7200.jpg +0 -0
- package/samples/LongText/App.vue +0 -96
- package/samples/LongText/Button.vue +0 -51
- package/samples/LongText/ButtonItem.vue +0 -44
- package/samples/LongText/LongTextScroll.vue +0 -192
- package/samples/LongText/Scroll.vue +0 -14
- package/samples/Marquee/App.vue +0 -247
- package/samples/Marquee/longText.js +0 -14
- package/samples/MaskClip/App.vue +0 -122
- package/samples/MaskClip/images/mask-025/config.json +0 -29
- package/samples/MaskClip/images/mask-025/res/1.png +0 -0
- package/samples/MaskClip/images/mask-025/res/2.png +0 -0
- package/samples/MaskClip/images/mask-025/res/3.png +0 -0
- package/samples/MaskClip/images/mask-025/res/4.png +0 -0
- package/samples/MaskClip/images/mask-025/res/icon.png +0 -0
- package/samples/MaskClip/images/mask-025/res/stroke.png +0 -0
- package/samples/MaskClip/images/php.jpg +0 -0
- package/samples/MetroWidgetDemos/Advanced/App.vue +0 -46
- package/samples/MetroWidgetDemos/Advanced/ButtonItem.vue +0 -90
- package/samples/MetroWidgetDemos/Advanced/Buttons.vue +0 -70
- package/samples/MetroWidgetDemos/Advanced/Mixed.vue +0 -77
- package/samples/MetroWidgetDemos/Advanced/widgets/Item.vue +0 -83
- package/samples/MetroWidgetDemos/Advanced/widgets/WidgetItem.vue +0 -89
- package/samples/MetroWidgetDemos/Advanced/widgets/Widgets.vue +0 -116
- package/samples/MetroWidgetDemos/Advanced/widgets/focus1.png +0 -0
- package/samples/MetroWidgetDemos/Item.vue +0 -85
- package/samples/MetroWidgetDemos/PerformanceTest/App.vue +0 -210
- package/samples/MetroWidgetDemos/PerformanceTest/Item.vue +0 -90
- package/samples/MetroWidgetDemos/PerformanceTest/assets/bg.jpg +0 -0
- package/samples/MetroWidgetDemos/PerformanceTest/assets/coupon_content.png +0 -0
- package/samples/MetroWidgetDemos/PerformanceTest/assets/coupon_left.png +0 -0
- package/samples/MetroWidgetDemos/PerformanceTest/assets/coupon_mid.png +0 -0
- package/samples/MetroWidgetDemos/PerformanceTest/assets/coupon_right.png +0 -0
- package/samples/MetroWidgetDemos/PerformanceTest/assets/focus_border.png +0 -0
- package/samples/MetroWidgetDemos/PerformanceTest/assets/holder_logo.png +0 -0
- package/samples/MetroWidgetDemos/PerformanceTest/assets/jrbm.png +0 -0
- package/samples/MetroWidgetDemos/PerformanceTest/assets/line_left.png +0 -0
- package/samples/MetroWidgetDemos/PerformanceTest/assets/line_mid.png +0 -0
- package/samples/MetroWidgetDemos/PerformanceTest/assets/line_right.png +0 -0
- package/samples/MetroWidgetDemos/PerformanceTest/assets/loading.png +0 -0
- package/samples/MetroWidgetDemos/PerformanceTest/assets/logo.png +0 -0
- package/samples/MetroWidgetDemos/PerformanceTest/assets/mcjx.png +0 -0
- package/samples/MetroWidgetDemos/PerformanceTest/assets/tao.png +0 -0
- package/samples/MetroWidgetDemos/PerformanceTest/assets/tmall.png +0 -0
- package/samples/MetroWidgetDemos/PerformanceTest/border.png +0 -0
- package/samples/MetroWidgetDemos/PerformanceTest/components/ContentItem.vue +0 -386
- package/samples/MetroWidgetDemos/PerformanceTest/components/MyTab.vue +0 -129
- package/samples/MetroWidgetDemos/PerformanceTest/data.js +0 -45
- package/samples/MetroWidgetDemos/PingPong/App.vue +0 -135
- package/samples/MetroWidgetDemos/PingPong/AppPage.vue +0 -73
- package/samples/MetroWidgetDemos/PingPong/AppTab.vue +0 -62
- package/samples/MetroWidgetDemos/PingPong/TabItem.vue +0 -84
- package/samples/MetroWidgetDemos/PingPong/ViewSwiper.vue +0 -214
- package/samples/MetroWidgetDemos/Simple/AbsoluteTemplate.vue +0 -75
- package/samples/MetroWidgetDemos/Simple/App.vue +0 -45
- package/samples/MetroWidgetDemos/Simple/RelativeTemplate.vue +0 -111
- package/samples/MetroWidgetDemos/WidgetItem.vue +0 -89
- package/samples/MetroWidgetDemos/data.js +0 -205
- package/samples/NinePatchDemo/App.vue +0 -145
- package/samples/NinePatchDemo/Item.vue +0 -69
- package/samples/NinePatchDemo/assets/border.png +0 -0
- package/samples/Preload/App.vue +0 -135
- package/samples/Preload/Item.vue +0 -32
- package/samples/Preload/data.js +0 -23
- 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/QrcodeDemo/App.vue +0 -68
- package/samples/ScaleDownNeon/App.vue +0 -107
- package/samples/SoundPool/App.vue +0 -134
- package/samples/SoundPool/bgmusic.mp3 +0 -0
- package/samples/SoundPool/coin.mp3 +0 -0
- package/samples/SoundPool/jump.mp3 +0 -0
- package/samples/SoundPool/lose.mp3 +0 -0
- package/samples/SoundPool/run.mp3 +0 -0
- package/samples/SprayView/App.vue +0 -272
- package/samples/SprayView/assets/snow.png +0 -0
- package/samples/SpriteImage/App.vue +0 -173
- package/samples/SpriteImage/images/cat_run.png +0 -0
- package/samples/SpriteImage/images/egg_break.json +0 -116
- package/samples/SpriteImage/images/egg_break.png +0 -0
- package/samples/SpriteImage/images/sprite.png +0 -0
- package/samples/TextBox/App.vue +0 -91
- package/samples/TextBox/RenderCenter.vue +0 -133
- package/samples/TextBox/RenderLeft.vue +0 -138
- package/samples/TextBox/RenderOneLine.vue +0 -101
- package/samples/TextBox/RenderRight.vue +0 -131
- package/samples/TextShadowDemo/App.vue +0 -91
- package/samples/TextureAnimation/App.vue +0 -336
- package/samples/TextureAnimation/App2.vue +0 -111
- package/samples/TextureAnimation/assets/blackWhiteGrid.png +0 -0
- package/samples/TextureAnimation/assets/light.png +0 -0
- package/samples/TextureAnimation/assets/light2.png +0 -0
- package/samples/TextureAnimation/assets/mask.png +0 -0
- package/samples/TextureAnimation/assets/php.jpg +0 -0
- package/samples/TextureAnimation/assets/php2.png +0 -0
- package/samples/TextureAnimation/assets/swipLight.png +0 -0
- package/samples/TextureSize/App.vue +0 -132
- 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 +0 -116
- package/samples/ThrowMoveDemo/App.vue +0 -114
- package/samples/ThrowMoveDemo/LRParabolicDemo.vue +0 -115
- package/samples/ThrowMoveDemo/TargetDemo.vue +0 -116
- package/samples/ThrowMoveDemo/UDParabolicDemo.vue +0 -121
- package/samples/TouchSample/App.vue +0 -136
- package/samples/TouchSample/Item.vue +0 -103
- package/samples/TouchSample/MetroWidgetHorizontal.vue +0 -144
- package/samples/TouchSample/MetroWidgetVertical.vue +0 -144
- package/samples/TouchSample/TouchContainerHorizontal.vue +0 -160
- package/samples/TouchSample/TouchContainerVertical.vue +0 -160
- package/samples/TouchSample/data.js +0 -81
- package/samples/TransitPage/App.vue +0 -29
- package/samples/VideoDemo/App.vue +0 -121
- package/samples/VideoDemo/components/Button.vue +0 -58
- package/samples/VideoDemo/components/Controllor.vue +0 -197
- package/samples/VideoDemo/components/VideoFrame.vue +0 -140
- package/samples/VisibleSensorDemo/App.vue +0 -234
- package/samples/assets/bmpDemo.bmp +0 -0
- package/samples/assets/jpegDemo.jpeg +0 -0
- package/samples/assets/pngDemo.png +0 -0
- package/samples/assets/pngNoAlphaDemo.png +0 -0
- package/samples/assets/webpDemo.webp +0 -0
- package/tsconfig.json +0 -47
- package/utils/index.d.ts +0 -3
- package/utils/index.js +0 -10
|
@@ -1,101 +0,0 @@
|
|
|
1
|
-
<script>
|
|
2
|
-
import { JsvTextBox } from "jsview";
|
|
3
|
-
export default {
|
|
4
|
-
props: {
|
|
5
|
-
text: String,
|
|
6
|
-
},
|
|
7
|
-
components: { JsvTextBox },
|
|
8
|
-
};
|
|
9
|
-
</script>
|
|
10
|
-
|
|
11
|
-
<template>
|
|
12
|
-
<div :style="{ top: 750 + 300 + 50 }">
|
|
13
|
-
<div
|
|
14
|
-
:style="{
|
|
15
|
-
left: 0,
|
|
16
|
-
top: -50,
|
|
17
|
-
width: 400,
|
|
18
|
-
height: 50,
|
|
19
|
-
fontSize: '20px',
|
|
20
|
-
textAlign: 'left',
|
|
21
|
-
lineHeight: '50px',
|
|
22
|
-
backgroundColor: '#00ff00',
|
|
23
|
-
}"
|
|
24
|
-
>
|
|
25
|
-
整体垂直向上对齐、文字水平居左显示
|
|
26
|
-
</div>
|
|
27
|
-
<JsvTextBox
|
|
28
|
-
:verticalAlign="'top'"
|
|
29
|
-
:style="{
|
|
30
|
-
left: 0,
|
|
31
|
-
top: 0,
|
|
32
|
-
width: 400,
|
|
33
|
-
height: 80,
|
|
34
|
-
backgroundColor: 'rgba(255,255,0,0.5)',
|
|
35
|
-
fontSize: '30px',
|
|
36
|
-
textAlign: 'left',
|
|
37
|
-
lineHeight: '80px',
|
|
38
|
-
}"
|
|
39
|
-
>
|
|
40
|
-
{{ text }}
|
|
41
|
-
</JsvTextBox>
|
|
42
|
-
<div
|
|
43
|
-
:style="{
|
|
44
|
-
left: 410,
|
|
45
|
-
top: -50,
|
|
46
|
-
width: 400,
|
|
47
|
-
height: 50,
|
|
48
|
-
fontSize: '20px',
|
|
49
|
-
textAlign: 'left',
|
|
50
|
-
lineHeight: '50px',
|
|
51
|
-
backgroundColor: '#00ff00',
|
|
52
|
-
}"
|
|
53
|
-
>
|
|
54
|
-
整体垂直居中对齐、文字水平居中显示
|
|
55
|
-
</div>
|
|
56
|
-
<JsvTextBox
|
|
57
|
-
:verticalAlign="'middle'"
|
|
58
|
-
:style="{
|
|
59
|
-
left: 410,
|
|
60
|
-
top: 0,
|
|
61
|
-
width: 400,
|
|
62
|
-
height: 80,
|
|
63
|
-
backgroundColor: 'rgba(255,255,0,0.5)',
|
|
64
|
-
fontSize: '30px',
|
|
65
|
-
textAlign: 'center',
|
|
66
|
-
lineHeight: '80px',
|
|
67
|
-
}"
|
|
68
|
-
>
|
|
69
|
-
{{ text }}
|
|
70
|
-
</JsvTextBox>
|
|
71
|
-
<div
|
|
72
|
-
:style="{
|
|
73
|
-
left: 820,
|
|
74
|
-
top: -50,
|
|
75
|
-
width: 400,
|
|
76
|
-
height: 50,
|
|
77
|
-
fontSize: '20px',
|
|
78
|
-
textAlign: 'left',
|
|
79
|
-
lineHeight: '50px',
|
|
80
|
-
backgroundColor: '#00ff00',
|
|
81
|
-
}"
|
|
82
|
-
>
|
|
83
|
-
整体垂直向下对齐、文字水平居右显示
|
|
84
|
-
</div>
|
|
85
|
-
<JsvTextBox
|
|
86
|
-
:verticalAlign="'bottom'"
|
|
87
|
-
:style="{
|
|
88
|
-
left: 820,
|
|
89
|
-
top: 0,
|
|
90
|
-
width: 400,
|
|
91
|
-
height: 80,
|
|
92
|
-
backgroundColor: 'rgba(255,255,0,0.5)',
|
|
93
|
-
fontSize: '30px',
|
|
94
|
-
textAlign: 'right',
|
|
95
|
-
lineHeight: '80px',
|
|
96
|
-
}"
|
|
97
|
-
>
|
|
98
|
-
{{ text }}
|
|
99
|
-
</JsvTextBox>
|
|
100
|
-
</div>
|
|
101
|
-
</template>
|
|
@@ -1,131 +0,0 @@
|
|
|
1
|
-
<script>
|
|
2
|
-
import { JsvTextBox } from "jsview";
|
|
3
|
-
export default {
|
|
4
|
-
props: {
|
|
5
|
-
text: String,
|
|
6
|
-
},
|
|
7
|
-
components: { JsvTextBox },
|
|
8
|
-
};
|
|
9
|
-
</script>
|
|
10
|
-
|
|
11
|
-
<template>
|
|
12
|
-
<div :style="{ top: 750 }">
|
|
13
|
-
<div
|
|
14
|
-
:style="{
|
|
15
|
-
left: 0,
|
|
16
|
-
top: -50,
|
|
17
|
-
width: 400,
|
|
18
|
-
height: 50,
|
|
19
|
-
fontSize: '20px',
|
|
20
|
-
textAlign: 'left',
|
|
21
|
-
lineHeight: '50px',
|
|
22
|
-
backgroundColor: '#00ff00',
|
|
23
|
-
}"
|
|
24
|
-
>
|
|
25
|
-
整体垂直向上对齐、文字水平居右显示
|
|
26
|
-
</div>
|
|
27
|
-
<JsvTextBox
|
|
28
|
-
:verticalAlign="'top'"
|
|
29
|
-
:style="{
|
|
30
|
-
left: 0,
|
|
31
|
-
top: 0,
|
|
32
|
-
width: 400,
|
|
33
|
-
height: 300,
|
|
34
|
-
backgroundColor: 'rgba(255,255,0,0.5)',
|
|
35
|
-
fontSize: '30px',
|
|
36
|
-
textAlign: 'right',
|
|
37
|
-
lineHeight: '40px',
|
|
38
|
-
}"
|
|
39
|
-
>
|
|
40
|
-
{{ `[TR]${text}` }}
|
|
41
|
-
</JsvTextBox>
|
|
42
|
-
<div
|
|
43
|
-
:style="{
|
|
44
|
-
left: 410,
|
|
45
|
-
top: -50,
|
|
46
|
-
width: 400,
|
|
47
|
-
height: 50,
|
|
48
|
-
fontSize: '20px',
|
|
49
|
-
textAlign: 'left',
|
|
50
|
-
lineHeight: '50px',
|
|
51
|
-
backgroundColor: '#00ff00',
|
|
52
|
-
}"
|
|
53
|
-
>
|
|
54
|
-
整体垂直居中对齐、文字水平居右显示
|
|
55
|
-
</div>
|
|
56
|
-
<JsvTextBox
|
|
57
|
-
:verticalAlign="'middle'"
|
|
58
|
-
:style="{
|
|
59
|
-
left: 410,
|
|
60
|
-
top: 0,
|
|
61
|
-
width: 400,
|
|
62
|
-
height: 300,
|
|
63
|
-
backgroundColor: 'rgba(255,255,0,0.5)',
|
|
64
|
-
fontSize: '30px',
|
|
65
|
-
textAlign: 'right',
|
|
66
|
-
lineHeight: '40px',
|
|
67
|
-
}"
|
|
68
|
-
>
|
|
69
|
-
{{ `[MR]${text}` }}
|
|
70
|
-
</JsvTextBox>
|
|
71
|
-
<div
|
|
72
|
-
:style="{
|
|
73
|
-
left: 820,
|
|
74
|
-
top: -50,
|
|
75
|
-
width: 400,
|
|
76
|
-
height: 50,
|
|
77
|
-
fontSize: '20px',
|
|
78
|
-
textAlign: 'left',
|
|
79
|
-
lineHeight: '50px',
|
|
80
|
-
backgroundColor: '#00ff00',
|
|
81
|
-
}"
|
|
82
|
-
>
|
|
83
|
-
整体垂直向下对齐、文字水平居右显示
|
|
84
|
-
</div>
|
|
85
|
-
<JsvTextBox
|
|
86
|
-
:verticalAlign="'bottom'"
|
|
87
|
-
:style="{
|
|
88
|
-
left: 820,
|
|
89
|
-
top: 0,
|
|
90
|
-
width: 400,
|
|
91
|
-
height: 300,
|
|
92
|
-
backgroundColor: 'rgba(255,255,0,0.5)',
|
|
93
|
-
fontSize: '30px',
|
|
94
|
-
textAlign: 'right',
|
|
95
|
-
lineHeight: '40px',
|
|
96
|
-
}"
|
|
97
|
-
>
|
|
98
|
-
{{ `[BR]${text}` }}
|
|
99
|
-
</JsvTextBox>
|
|
100
|
-
|
|
101
|
-
<div
|
|
102
|
-
:style="{
|
|
103
|
-
left: 1240,
|
|
104
|
-
top: -50,
|
|
105
|
-
width: 500,
|
|
106
|
-
height: 50,
|
|
107
|
-
fontSize: '20px',
|
|
108
|
-
textAlign: 'left',
|
|
109
|
-
lineHeight: '50px',
|
|
110
|
-
backgroundColor: '#00ff00',
|
|
111
|
-
}"
|
|
112
|
-
>
|
|
113
|
-
整体垂直向下对齐、文字水平居右显示、行高80px
|
|
114
|
-
</div>
|
|
115
|
-
<JsvTextBox
|
|
116
|
-
:verticalAlign="'bottom'"
|
|
117
|
-
:style="{
|
|
118
|
-
left: 1240,
|
|
119
|
-
top: 0,
|
|
120
|
-
width: 500,
|
|
121
|
-
height: 300,
|
|
122
|
-
backgroundColor: 'rgba(255,255,0,0.5)',
|
|
123
|
-
fontSize: '30px',
|
|
124
|
-
textAlign: 'right',
|
|
125
|
-
lineHeight: '80px',
|
|
126
|
-
}"
|
|
127
|
-
>
|
|
128
|
-
{{ `[BR]${text}` }}
|
|
129
|
-
</JsvTextBox>
|
|
130
|
-
</div>
|
|
131
|
-
</template>
|
|
@@ -1,91 +0,0 @@
|
|
|
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";
|
|
6
|
-
|
|
7
|
-
export default {
|
|
8
|
-
components: {
|
|
9
|
-
JsvTextBox,
|
|
10
|
-
},
|
|
11
|
-
data() {
|
|
12
|
-
return {
|
|
13
|
-
TextData: [
|
|
14
|
-
{
|
|
15
|
-
id: 0,
|
|
16
|
-
title: "偏移x,y为0(文字发光)",
|
|
17
|
-
textShadow: "0 0 3 #00FF00",
|
|
18
|
-
},
|
|
19
|
-
{
|
|
20
|
-
id: 1,
|
|
21
|
-
title: "blur为0(不显示阴影)",
|
|
22
|
-
textShadow: "2 2 0 #00FF00",
|
|
23
|
-
},
|
|
24
|
-
{
|
|
25
|
-
id: 2,
|
|
26
|
-
title: "rgba格式颜色(半透明红)",
|
|
27
|
-
textShadow: "4 4 3 rgba(255,0,0,0.5)",
|
|
28
|
-
},
|
|
29
|
-
{
|
|
30
|
-
id: 3,
|
|
31
|
-
title: "#格式颜色(蓝色)",
|
|
32
|
-
textShadow: "4 4 0.5 #0000EF",
|
|
33
|
-
},
|
|
34
|
-
],
|
|
35
|
-
};
|
|
36
|
-
},
|
|
37
|
-
methods: {
|
|
38
|
-
onKeyDown(ev) {
|
|
39
|
-
if (ev.keyCode == 8 || ev.keyCode == 27 || ev.keyCode == 10000) {
|
|
40
|
-
this.$router?.go(-1); // 有router时,是从DemoHomepage进入,回退
|
|
41
|
-
}
|
|
42
|
-
return true;
|
|
43
|
-
},
|
|
44
|
-
},
|
|
45
|
-
};
|
|
46
|
-
</script>
|
|
47
|
-
|
|
48
|
-
<template>
|
|
49
|
-
<jsv-focus-block
|
|
50
|
-
autoFocus
|
|
51
|
-
:onAction="{
|
|
52
|
-
onKeyDown: onKeyDown,
|
|
53
|
-
}"
|
|
54
|
-
>
|
|
55
|
-
<div
|
|
56
|
-
v-for="item in TextData"
|
|
57
|
-
:key="item.id"
|
|
58
|
-
:style="{ left: 320 * item.id }"
|
|
59
|
-
>
|
|
60
|
-
<div>
|
|
61
|
-
<div
|
|
62
|
-
:style="{
|
|
63
|
-
width: 320,
|
|
64
|
-
height: 50,
|
|
65
|
-
fontSize: '25px',
|
|
66
|
-
textAlign: 'center',
|
|
67
|
-
lineHeight: '50px',
|
|
68
|
-
backgroundColor: item.id % 2 == 0 ? '#00ff00' : '#0000ff',
|
|
69
|
-
}"
|
|
70
|
-
>
|
|
71
|
-
{{ item.title }}
|
|
72
|
-
</div>
|
|
73
|
-
<JsvTextBox
|
|
74
|
-
:verticalAlign="'middle'"
|
|
75
|
-
:style="{
|
|
76
|
-
top: 50,
|
|
77
|
-
width: 320,
|
|
78
|
-
height: 70,
|
|
79
|
-
textShadow: item.textShadow,
|
|
80
|
-
backgroundColor: item.id % 2 == 0 ? '#ffffee' : '#ffff10',
|
|
81
|
-
fontSize: '35px',
|
|
82
|
-
textAlign: 'center',
|
|
83
|
-
lineHeight: '40px',
|
|
84
|
-
}"
|
|
85
|
-
>
|
|
86
|
-
文字阴影
|
|
87
|
-
</JsvTextBox>
|
|
88
|
-
</div>
|
|
89
|
-
</div>
|
|
90
|
-
</jsv-focus-block>
|
|
91
|
-
</template>
|
|
@@ -1,336 +0,0 @@
|
|
|
1
|
-
<script>
|
|
2
|
-
import {
|
|
3
|
-
jJsvRuntimeBridge,
|
|
4
|
-
getKeyFramesGroup,
|
|
5
|
-
JsvTextureAnim,
|
|
6
|
-
} from "jsview";
|
|
7
|
-
import img from "./assets/php2.png";
|
|
8
|
-
import swipLight from "./assets/swipLight.png";
|
|
9
|
-
|
|
10
|
-
export default {
|
|
11
|
-
components: {
|
|
12
|
-
JsvTextureAnim,
|
|
13
|
-
},
|
|
14
|
-
setup() {
|
|
15
|
-
let styleShell = getKeyFramesGroup();
|
|
16
|
-
|
|
17
|
-
const translateAnim =
|
|
18
|
-
"{from {transform: translate3d(-100%, -50%, 0);} to {transform: translate3d(100%, 50%, 0);}}";
|
|
19
|
-
const rotateAnim =
|
|
20
|
-
"{from {transform: rotate3d(1,-1,1,0);} to {transform: rotate3d(1,-1,1,360deg);}}";
|
|
21
|
-
const scaleAnim =
|
|
22
|
-
"{from {transform: scale3d(0.5, 0.5, 1);} to {transform: scale3d(1.5, 1.5, 1);}}";
|
|
23
|
-
|
|
24
|
-
const swipAnim =
|
|
25
|
-
"{from {transform: translate3d(-100%, 0, 0);} to {transform: translate3d(100%, 0, 0);}}";
|
|
26
|
-
|
|
27
|
-
return {
|
|
28
|
-
styleShell,
|
|
29
|
-
img,
|
|
30
|
-
borderRadius: "40px",
|
|
31
|
-
repeat: -1,
|
|
32
|
-
duration: 3000,
|
|
33
|
-
translateAnim,
|
|
34
|
-
rotateAnim,
|
|
35
|
-
scaleAnim,
|
|
36
|
-
swipAnim,
|
|
37
|
-
translateTransform: "translate3d(50%, 50%, 0)",
|
|
38
|
-
rotateTransform: "rotate3d(1,1,1, 30deg)",
|
|
39
|
-
scaleTransform: "scale3d(0.5, 1.5, 1.0)",
|
|
40
|
-
swipLight,
|
|
41
|
-
};
|
|
42
|
-
},
|
|
43
|
-
methods: {
|
|
44
|
-
onKeyDown(ev) {
|
|
45
|
-
// 8:Backspace, 27:Escape, 10000:盒子返回键
|
|
46
|
-
if (ev.keyCode == 8 || ev.keyCode == 27 || ev.keyCode == 10000) {
|
|
47
|
-
this.$router?.go(-1); // 有router时,是从DemoHomepage进入,回退
|
|
48
|
-
}
|
|
49
|
-
return true;
|
|
50
|
-
},
|
|
51
|
-
},
|
|
52
|
-
created() {
|
|
53
|
-
this.styleShell.insertRule(
|
|
54
|
-
"@keyframes texture-anim-translate " + this.translateAnim
|
|
55
|
-
);
|
|
56
|
-
this.styleShell.insertRule(
|
|
57
|
-
"@keyframes texture-anim-rotate " + this.rotateAnim
|
|
58
|
-
);
|
|
59
|
-
this.styleShell.insertRule(
|
|
60
|
-
"@keyframes texture-anim-scale " + this.scaleAnim
|
|
61
|
-
);
|
|
62
|
-
},
|
|
63
|
-
mounted() {
|
|
64
|
-
jJsvRuntimeBridge.notifyPageLoaded();
|
|
65
|
-
},
|
|
66
|
-
beforeUnmount() {
|
|
67
|
-
this.styleShell.removeRule("texture-anim-translate");
|
|
68
|
-
this.styleShell.removeRule("texture-anim-rotate");
|
|
69
|
-
this.styleShell.removeRule("texture-anim-scale");
|
|
70
|
-
},
|
|
71
|
-
};
|
|
72
|
-
</script>
|
|
73
|
-
<template>
|
|
74
|
-
<jsv-focus-block
|
|
75
|
-
autoFocus
|
|
76
|
-
:onKeyDown="onKeyDown"
|
|
77
|
-
:style="{
|
|
78
|
-
width: 1920,
|
|
79
|
-
height: 1080,
|
|
80
|
-
backgroundColor: '#007788',
|
|
81
|
-
}"
|
|
82
|
-
>
|
|
83
|
-
<div
|
|
84
|
-
:style="{
|
|
85
|
-
left: 100,
|
|
86
|
-
top: 20,
|
|
87
|
-
}"
|
|
88
|
-
>
|
|
89
|
-
<div
|
|
90
|
-
:style="{
|
|
91
|
-
width: 300,
|
|
92
|
-
height: 150,
|
|
93
|
-
backgroundColor: 'rgba(0,255,0,0.5)',
|
|
94
|
-
}"
|
|
95
|
-
/>
|
|
96
|
-
<jsv-texture-anim
|
|
97
|
-
ref="textureAnim1"
|
|
98
|
-
:src="img"
|
|
99
|
-
:width="300"
|
|
100
|
-
:height="150"
|
|
101
|
-
:animation="translateAnim"
|
|
102
|
-
:duration="duration"
|
|
103
|
-
:transform="null"
|
|
104
|
-
:borderRadius="borderRadius"
|
|
105
|
-
:repeat="repeat"
|
|
106
|
-
:autoStart="true"
|
|
107
|
-
></jsv-texture-anim>
|
|
108
|
-
<div
|
|
109
|
-
:style="{
|
|
110
|
-
width: 300,
|
|
111
|
-
height: 150,
|
|
112
|
-
backgroundColor: 'rgba(255,0,0,0.5)',
|
|
113
|
-
transform: null,
|
|
114
|
-
animation: `texture-anim-translate ${
|
|
115
|
-
duration / 1000
|
|
116
|
-
}s linear infinite`,
|
|
117
|
-
}"
|
|
118
|
-
/>
|
|
119
|
-
</div>
|
|
120
|
-
|
|
121
|
-
<div
|
|
122
|
-
:style="{
|
|
123
|
-
left: 100,
|
|
124
|
-
top: 230,
|
|
125
|
-
}"
|
|
126
|
-
>
|
|
127
|
-
<div
|
|
128
|
-
:style="{
|
|
129
|
-
width: 300,
|
|
130
|
-
height: 150,
|
|
131
|
-
backgroundColor: 'rgba(0,255,0,0.5)',
|
|
132
|
-
}"
|
|
133
|
-
/>
|
|
134
|
-
<jsv-texture-anim
|
|
135
|
-
ref="textureAnim1"
|
|
136
|
-
:src="img"
|
|
137
|
-
:width="300"
|
|
138
|
-
:height="150"
|
|
139
|
-
:animation="rotateAnim"
|
|
140
|
-
:duration="duration"
|
|
141
|
-
:transform="null"
|
|
142
|
-
:borderRadius="borderRadius"
|
|
143
|
-
:repeat="repeat"
|
|
144
|
-
:autoStart="true"
|
|
145
|
-
></jsv-texture-anim>
|
|
146
|
-
<div
|
|
147
|
-
:style="{
|
|
148
|
-
width: 300,
|
|
149
|
-
height: 150,
|
|
150
|
-
backgroundColor: 'rgba(255,0,0,0.5)',
|
|
151
|
-
transform: null,
|
|
152
|
-
animation: `texture-anim-rotate ${duration / 1000}s linear infinite`,
|
|
153
|
-
}"
|
|
154
|
-
/>
|
|
155
|
-
</div>
|
|
156
|
-
|
|
157
|
-
<div
|
|
158
|
-
:style="{
|
|
159
|
-
left: 100,
|
|
160
|
-
top: 460,
|
|
161
|
-
}"
|
|
162
|
-
>
|
|
163
|
-
<div
|
|
164
|
-
:style="{
|
|
165
|
-
width: 300,
|
|
166
|
-
height: 150,
|
|
167
|
-
backgroundColor: 'rgba(0,255,0,0.5)',
|
|
168
|
-
}"
|
|
169
|
-
/>
|
|
170
|
-
<jsv-texture-anim
|
|
171
|
-
ref="textureAnim1"
|
|
172
|
-
:src="img"
|
|
173
|
-
:width="300"
|
|
174
|
-
:height="150"
|
|
175
|
-
:animation="scaleAnim"
|
|
176
|
-
:duration="duration"
|
|
177
|
-
:transform="null"
|
|
178
|
-
:borderRadius="borderRadius"
|
|
179
|
-
:repeat="repeat"
|
|
180
|
-
:autoStart="true"
|
|
181
|
-
></jsv-texture-anim>
|
|
182
|
-
<div
|
|
183
|
-
:style="{
|
|
184
|
-
width: 300,
|
|
185
|
-
height: 150,
|
|
186
|
-
backgroundColor: 'rgba(255,0,0,0.5)',
|
|
187
|
-
transform: null,
|
|
188
|
-
animation: `texture-anim-scale ${duration / 1000}s linear infinite`,
|
|
189
|
-
}"
|
|
190
|
-
/>
|
|
191
|
-
</div>
|
|
192
|
-
<!-- transform sample -->
|
|
193
|
-
<div
|
|
194
|
-
:style="{
|
|
195
|
-
left: 500,
|
|
196
|
-
top: 20,
|
|
197
|
-
}"
|
|
198
|
-
>
|
|
199
|
-
<div
|
|
200
|
-
:style="{
|
|
201
|
-
width: 300,
|
|
202
|
-
height: 150,
|
|
203
|
-
backgroundColor: 'rgba(0,255,0,0.5)',
|
|
204
|
-
}"
|
|
205
|
-
/>
|
|
206
|
-
<jsv-texture-anim
|
|
207
|
-
ref="textureAnim1"
|
|
208
|
-
:src="img"
|
|
209
|
-
:width="300"
|
|
210
|
-
:height="150"
|
|
211
|
-
:duration="duration"
|
|
212
|
-
:transform="translateTransform"
|
|
213
|
-
:borderRadius="borderRadius"
|
|
214
|
-
:repeat="repeat"
|
|
215
|
-
:autoStart="true"
|
|
216
|
-
></jsv-texture-anim>
|
|
217
|
-
<div
|
|
218
|
-
:style="{
|
|
219
|
-
width: 300,
|
|
220
|
-
height: 150,
|
|
221
|
-
backgroundColor: 'rgba(255,0,0,0.5)',
|
|
222
|
-
transform: translateTransform,
|
|
223
|
-
}"
|
|
224
|
-
/>
|
|
225
|
-
</div>
|
|
226
|
-
|
|
227
|
-
<div
|
|
228
|
-
:style="{
|
|
229
|
-
left: 500,
|
|
230
|
-
top: 230,
|
|
231
|
-
}"
|
|
232
|
-
>
|
|
233
|
-
<div
|
|
234
|
-
:style="{
|
|
235
|
-
width: 300,
|
|
236
|
-
height: 150,
|
|
237
|
-
backgroundColor: 'rgba(0,255,0,0.5)',
|
|
238
|
-
}"
|
|
239
|
-
/>
|
|
240
|
-
<jsv-texture-anim
|
|
241
|
-
ref="textureAnim1"
|
|
242
|
-
:src="img"
|
|
243
|
-
:width="300"
|
|
244
|
-
:height="150"
|
|
245
|
-
:duration="duration"
|
|
246
|
-
:transform="rotateTransform"
|
|
247
|
-
:borderRadius="borderRadius"
|
|
248
|
-
:repeat="repeat"
|
|
249
|
-
:autoStart="true"
|
|
250
|
-
></jsv-texture-anim>
|
|
251
|
-
<div
|
|
252
|
-
:style="{
|
|
253
|
-
width: 300,
|
|
254
|
-
height: 150,
|
|
255
|
-
backgroundColor: 'rgba(255,0,0,0.5)',
|
|
256
|
-
transform: rotateTransform,
|
|
257
|
-
}"
|
|
258
|
-
/>
|
|
259
|
-
</div>
|
|
260
|
-
|
|
261
|
-
<div
|
|
262
|
-
:style="{
|
|
263
|
-
left: 500,
|
|
264
|
-
top: 460,
|
|
265
|
-
}"
|
|
266
|
-
>
|
|
267
|
-
<div
|
|
268
|
-
:style="{
|
|
269
|
-
width: 300,
|
|
270
|
-
height: 150,
|
|
271
|
-
backgroundColor: 'rgba(0,255,0,0.5)',
|
|
272
|
-
}"
|
|
273
|
-
/>
|
|
274
|
-
<jsv-texture-anim
|
|
275
|
-
ref="textureAnim1"
|
|
276
|
-
:src="img"
|
|
277
|
-
:width="300"
|
|
278
|
-
:height="150"
|
|
279
|
-
:duration="duration"
|
|
280
|
-
:transform="scaleTransform"
|
|
281
|
-
:borderRadius="borderRadius"
|
|
282
|
-
:repeat="repeat"
|
|
283
|
-
:autoStart="true"
|
|
284
|
-
></jsv-texture-anim>
|
|
285
|
-
<div
|
|
286
|
-
:style="{
|
|
287
|
-
width: 300,
|
|
288
|
-
height: 150,
|
|
289
|
-
backgroundColor: 'rgba(255,0,0,0.5)',
|
|
290
|
-
transform: scaleTransform,
|
|
291
|
-
}"
|
|
292
|
-
/>
|
|
293
|
-
</div>
|
|
294
|
-
<!-- swip light -->
|
|
295
|
-
<div
|
|
296
|
-
:style="{
|
|
297
|
-
left: 850,
|
|
298
|
-
top: 460,
|
|
299
|
-
}"
|
|
300
|
-
>
|
|
301
|
-
<div
|
|
302
|
-
:style="{
|
|
303
|
-
width: 300,
|
|
304
|
-
height: 150,
|
|
305
|
-
backgroundColor: 'rgba(0,255,0,0.5)',
|
|
306
|
-
}"
|
|
307
|
-
/>
|
|
308
|
-
<jsv-texture-anim
|
|
309
|
-
ref="textureAnim1"
|
|
310
|
-
:src="swipLight"
|
|
311
|
-
:animation="swipAnim"
|
|
312
|
-
:width="300"
|
|
313
|
-
:height="150"
|
|
314
|
-
:duration="duration"
|
|
315
|
-
transform="scale3d(0.5, 1, 1) rotate3d(0,0,1, 30deg)"
|
|
316
|
-
:borderRadius="borderRadius"
|
|
317
|
-
:repeat="repeat"
|
|
318
|
-
:autoStart="true"
|
|
319
|
-
></jsv-texture-anim>
|
|
320
|
-
</div>
|
|
321
|
-
|
|
322
|
-
<!-- 说明文字 -->
|
|
323
|
-
<div
|
|
324
|
-
:style="{
|
|
325
|
-
left: 100,
|
|
326
|
-
top: 620,
|
|
327
|
-
width: 1920,
|
|
328
|
-
height: 200,
|
|
329
|
-
fontSize: 30,
|
|
330
|
-
color: '#000000',
|
|
331
|
-
}"
|
|
332
|
-
>
|
|
333
|
-
{{ "1. 注意圆角\n2. 红色半透明的view为标准, 图片的动画需要与其一致" }}
|
|
334
|
-
</div>
|
|
335
|
-
</jsv-focus-block>
|
|
336
|
-
</template>
|