@shijiu/jsview-vue-samples 1.9.887 → 1.9.915
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/AnimPicture/App.vue +10 -10
- package/Basic/App.vue +1 -1
- package/Basic/components/FontStyle.css +4 -4
- package/Basic/components/anim/AnimKeyframeBasic.vue +1 -1
- package/Basic/components/anim/AnimKeyframeComposite.vue +2 -2
- package/Basic/components/anim/AnimTransition.vue +4 -4
- package/Basic/components/div/DivClip.vue +0 -39
- package/Basic/components/div/DivCssScoped.vue +1 -1
- package/Basic/components/div/DivLayout.vue +1 -1
- package/Basic/components/div/DivRadius.vue +4 -4
- package/Basic/components/img/ImageGroup.vue +2 -2
- package/Basic/components/img/ImgLayout.vue +78 -14
- package/Basic/components/text/TextDirection.vue +9 -9
- package/Basic/components/text/TextEmoji.vue +7 -2
- package/Basic/components/text/TextFontStyle.vue +4 -4
- package/Basic/components/text/TextGroup1.vue +1 -1
- package/Basic/components/text/TextGroup2.vue +2 -2
- package/BasicFocusControl/App.vue +2 -2
- package/BasicFocusControl/components/BaseBlock.vue +2 -2
- package/BasicFocusControl/components/MainArea.vue +2 -2
- package/BasicFocusControl/components/SideBar.vue +2 -2
- package/Collision/App.vue +16 -16
- package/ColorSpace/App.vue +11 -11
- package/CssPreprocessor/App.vue +70 -0
- package/CssPreprocessor/Less/App.vue +32 -0
- package/CssPreprocessor/Less/PanelData.js +51 -0
- package/CssPreprocessor/Less/components/less-group1/LessComments.vue +34 -0
- package/CssPreprocessor/Less/components/less-group1/LessConditionals.vue +32 -0
- package/CssPreprocessor/Less/components/less-group1/LessOperations.vue +24 -0
- package/CssPreprocessor/Less/components/less-group1/LessVariables.vue +48 -0
- package/CssPreprocessor/Less/components/less-group2/LessIteration.vue +32 -0
- package/CssPreprocessor/Less/components/less-group2/LessMethods.vue +27 -0
- package/CssPreprocessor/Less/components/less-group3/LessExtends.vue +32 -0
- package/CssPreprocessor/Less/components/less-group3/LessNesting.vue +63 -0
- package/CssPreprocessor/Less/components/less-group4/LessKeyframes.vue +40 -0
- package/CssPreprocessor/Less/components/less-group4/LessMaps.vue +33 -0
- package/CssPreprocessor/Less/components/less-group4/LessMixins.vue +33 -0
- package/CssPreprocessor/Less/components/less-group5/LessImporting.vue +34 -0
- package/CssPreprocessor/Less/components/less-group5/TextSettings.less +4 -0
- package/CssPreprocessor/Scss/App.vue +32 -0
- package/CssPreprocessor/Scss/PanelData.js +51 -0
- package/CssPreprocessor/Scss/components/scss-group1/ScssComments.vue +34 -0
- package/CssPreprocessor/Scss/components/scss-group1/ScssConditionals.vue +36 -0
- package/CssPreprocessor/Scss/components/scss-group1/ScssOperations.vue +30 -0
- package/CssPreprocessor/Scss/components/scss-group1/ScssVariables.vue +48 -0
- package/CssPreprocessor/Scss/components/scss-group2/ScssIteration.vue +36 -0
- package/CssPreprocessor/Scss/components/scss-group2/ScssMethods.vue +84 -0
- package/CssPreprocessor/Scss/components/scss-group3/ScssExtends.vue +34 -0
- package/CssPreprocessor/Scss/components/scss-group3/ScssNesting.vue +75 -0
- package/CssPreprocessor/Scss/components/scss-group4/ScssKeyframes.vue +40 -0
- package/CssPreprocessor/Scss/components/scss-group4/ScssMaps.vue +35 -0
- package/CssPreprocessor/Scss/components/scss-group4/ScssMixins.vue +33 -0
- package/CssPreprocessor/Scss/components/scss-group5/ScssImporting.vue +34 -0
- package/CssPreprocessor/Scss/components/scss-group5/TextSettings.scss +4 -0
- package/CssPreprocessor/Stylus/App.vue +32 -0
- package/CssPreprocessor/Stylus/PanelData.js +51 -0
- package/CssPreprocessor/Stylus/components/stylus-group1/StylusComments.vue +34 -0
- package/CssPreprocessor/Stylus/components/stylus-group1/StylusConditionals.vue +36 -0
- package/CssPreprocessor/Stylus/components/stylus-group1/StylusOperations.vue +30 -0
- package/CssPreprocessor/Stylus/components/stylus-group1/StylusVariables.vue +47 -0
- package/CssPreprocessor/Stylus/components/stylus-group2/StylusIteration.vue +34 -0
- package/CssPreprocessor/Stylus/components/stylus-group2/StylusMethods.vue +78 -0
- package/CssPreprocessor/Stylus/components/stylus-group3/StylusExtends.vue +34 -0
- package/CssPreprocessor/Stylus/components/stylus-group3/StylusNesting.vue +63 -0
- package/CssPreprocessor/Stylus/components/stylus-group4/StylusKeyframes.vue +40 -0
- package/CssPreprocessor/Stylus/components/stylus-group4/StylusMaps.vue +33 -0
- package/CssPreprocessor/Stylus/components/stylus-group4/StylusMixins.vue +33 -0
- package/CssPreprocessor/Stylus/components/stylus-group5/StylusImporting.vue +34 -0
- package/CssPreprocessor/Stylus/components/stylus-group5/TextSettings.styl +4 -0
- package/CssPreprocessor/utils/ContentBlock.vue +43 -0
- package/CssPreprocessor/utils/ContentList.vue +34 -0
- package/CssPreprocessor/utils/FontStyle.css +19 -0
- package/CssPreprocessor/utils/Panel.vue +49 -0
- package/CssPreprocessor/utils/TitleBar.vue +29 -0
- package/DemoHomepage/App.vue +46 -11
- package/DemoHomepage/components/Dialog.vue +15 -15
- package/DemoHomepage/router.js +20 -12
- package/DemoHomepage/views/Homepage.vue +90 -102
- package/DivMetroPerformance/App.vue +150 -0
- package/DivMetroPerformance/Item.vue +58 -0
- package/DivMetroPerformance/assets/bg.jpg +0 -0
- package/DivMetroPerformance/assets/coupon_content.png +0 -0
- package/DivMetroPerformance/assets/coupon_left.png +0 -0
- package/DivMetroPerformance/assets/coupon_mid.png +0 -0
- package/DivMetroPerformance/assets/coupon_right.png +0 -0
- package/DivMetroPerformance/assets/focus_border.png +0 -0
- package/DivMetroPerformance/assets/holder_logo.png +0 -0
- package/DivMetroPerformance/assets/jrbm.png +0 -0
- package/DivMetroPerformance/assets/line_left.png +0 -0
- package/DivMetroPerformance/assets/line_mid.png +0 -0
- package/DivMetroPerformance/assets/line_right.png +0 -0
- package/DivMetroPerformance/assets/loading.png +0 -0
- package/DivMetroPerformance/assets/logo.png +0 -0
- package/DivMetroPerformance/assets/mcjx.png +0 -0
- package/DivMetroPerformance/assets/tao.png +0 -0
- package/DivMetroPerformance/assets/tmall.png +0 -0
- package/DivMetroPerformance/border.png +0 -0
- package/DivMetroPerformance/components/ContentItem.vue +385 -0
- package/DivMetroPerformance/components/MyTab.vue +129 -0
- package/DivMetroPerformance/data.js +124 -0
- package/DivMetroPerformance/utils/GridItem.vue +28 -0
- package/DivMetroPerformance/utils/GridPlate.vue +85 -0
- package/FilterDemo/AnimatePic.vue +3 -3
- package/FilterDemo/App.vue +3 -3
- package/FlipCard/App.vue +2 -2
- package/FlipCard/FlipCard.vue +2 -2
- package/GridDemo/Item.vue +13 -13
- package/HashHistory/App.vue +0 -1
- package/HashHistory/components/Item.vue +2 -2
- package/HashHistory/views/MainPage.vue +1 -1
- package/HashHistory/views/SubPage.vue +2 -2
- package/ImpactStop/App.vue +9 -11
- package/Input/InputPanel.vue +2 -4
- package/LongImage/App.vue +2 -2
- package/LongImage/Button.vue +1 -1
- package/LongImage/ButtonItem.vue +1 -1
- package/LongText/App.vue +3 -3
- package/LongText/Button.vue +1 -1
- package/LongText/ButtonItem.vue +1 -1
- package/LongText/LongTextScroll.vue +4 -4
- package/Marquee/longText.js +0 -2
- package/MaskClip/App.vue +4 -4
- package/MediaDemo/App.vue +127 -0
- package/MediaDemo/assets/audio-poster.png +0 -0
- package/MediaDemo/components/Button.vue +69 -0
- package/MediaDemo/components/Controllor.vue +279 -0
- package/MediaDemo/components/StatusBar.vue +100 -0
- package/MediaDemo/components/frames/AudioFrame.vue +39 -0
- package/MediaDemo/components/frames/AudioPoster.vue +48 -0
- package/MediaDemo/components/frames/MediaFrame.vue +153 -0
- package/MediaDemo/components/frames/VideoFrame.vue +39 -0
- package/MetroWidgetDemos/Advanced/ButtonItem.vue +4 -4
- package/MetroWidgetDemos/Advanced/widgets/Item.vue +5 -5
- package/MetroWidgetDemos/Advanced/widgets/WidgetItem.vue +2 -2
- package/MetroWidgetDemos/Advanced/widgets/Widgets.vue +57 -56
- package/MetroWidgetDemos/Item.vue +4 -5
- package/MetroWidgetDemos/PerformanceTest/App.vue +3 -3
- package/MetroWidgetDemos/PerformanceTest/components/ContentItem.vue +26 -26
- package/MetroWidgetDemos/PerformanceTest/components/MyTab.vue +15 -15
- package/MetroWidgetDemos/PingPong/AppPage.vue +2 -2
- package/MetroWidgetDemos/PingPong/TabItem.vue +2 -2
- package/MetroWidgetDemos/PingPong/ViewSwiper.vue +9 -9
- package/MetroWidgetDemos/Simple/RelativeTemplate.vue +2 -2
- package/MetroWidgetDemos/WidgetItem.vue +2 -2
- package/NinePatchDemo/App.vue +3 -3
- package/NinePatchDemo/Item.vue +5 -5
- package/Preload/App.vue +5 -5
- package/Preload/Item.vue +1 -1
- package/QrcodeDemo/App.vue +3 -3
- package/ScaleDownNeon/App.vue +9 -9
- package/SoundPool/App.vue +6 -9
- package/SprayView/App.vue +22 -22
- package/SpriteImage/App.vue +4 -4
- package/Swiper/App.vue +2 -8
- package/TextBox/App.vue +1 -2
- package/TextBox/RenderCenter.vue +16 -16
- package/TextBox/RenderLeft.vue +16 -16
- package/TextBox/RenderOneLine.vue +12 -12
- package/TextBox/RenderRight.vue +16 -16
- package/TextShadowDemo/App.vue +4 -4
- package/TextureAnimation/App.vue +1 -17
- package/TextureAnimation/App2.vue +3 -3
- package/TextureSize/App.vue +8 -8
- package/ThrowMoveDemo/AccelerateDemo.vue +4 -4
- package/ThrowMoveDemo/LRParabolicDemo.vue +4 -4
- package/ThrowMoveDemo/TargetDemo.vue +4 -4
- package/ThrowMoveDemo/UDParabolicDemo.vue +4 -4
- package/TouchSample/App.vue +2 -2
- package/TouchSample/Item.vue +2 -2
- package/TouchSample/MetroWidgetHorizontal.vue +3 -3
- package/TouchSample/MetroWidgetVertical.vue +3 -3
- package/TouchSample/TouchContainerHorizontal.vue +2 -2
- package/TouchSample/TouchContainerVertical.vue +2 -2
- package/TransitPage/App.vue +1 -1
- package/VideoDemo/App.vue +4 -4
- package/VideoDemo/components/Button.vue +1 -1
- package/VideoDemo/components/Controllor.vue +2 -2
- package/VideoDemo/components/VideoFrame.vue +1 -1
- package/VisibleSensorDemo/App.vue +7 -7
- package/assets/bmpDemo.bmp +0 -0
- package/assets/jpegDemo.jpeg +0 -0
- package/assets/pngDemo.png +0 -0
- package/assets/pngNoAlphaDemo.png +0 -0
- package/assets/webpDemo.webp +0 -0
- package/package.json +6 -1
|
@@ -16,9 +16,9 @@ export default {
|
|
|
16
16
|
top: -50,
|
|
17
17
|
width: 400,
|
|
18
18
|
height: 50,
|
|
19
|
-
fontSize:
|
|
19
|
+
fontSize: 20,
|
|
20
20
|
textAlign: 'left',
|
|
21
|
-
lineHeight:
|
|
21
|
+
lineHeight: 50,
|
|
22
22
|
backgroundColor: '#00ff00',
|
|
23
23
|
}"
|
|
24
24
|
>
|
|
@@ -32,9 +32,9 @@ export default {
|
|
|
32
32
|
width: 400,
|
|
33
33
|
height: 80,
|
|
34
34
|
backgroundColor: 'rgba(255,255,0,0.5)',
|
|
35
|
-
fontSize:
|
|
35
|
+
fontSize: 30,
|
|
36
36
|
textAlign: 'left',
|
|
37
|
-
lineHeight:
|
|
37
|
+
lineHeight: 80,
|
|
38
38
|
}"
|
|
39
39
|
>
|
|
40
40
|
{{ text }}
|
|
@@ -45,9 +45,9 @@ export default {
|
|
|
45
45
|
top: -50,
|
|
46
46
|
width: 400,
|
|
47
47
|
height: 50,
|
|
48
|
-
fontSize:
|
|
48
|
+
fontSize: 20,
|
|
49
49
|
textAlign: 'left',
|
|
50
|
-
lineHeight:
|
|
50
|
+
lineHeight: 50,
|
|
51
51
|
backgroundColor: '#00ff00',
|
|
52
52
|
}"
|
|
53
53
|
>
|
|
@@ -61,9 +61,9 @@ export default {
|
|
|
61
61
|
width: 400,
|
|
62
62
|
height: 80,
|
|
63
63
|
backgroundColor: 'rgba(255,255,0,0.5)',
|
|
64
|
-
fontSize:
|
|
64
|
+
fontSize: 30,
|
|
65
65
|
textAlign: 'center',
|
|
66
|
-
lineHeight:
|
|
66
|
+
lineHeight: 80,
|
|
67
67
|
}"
|
|
68
68
|
>
|
|
69
69
|
{{ text }}
|
|
@@ -74,9 +74,9 @@ export default {
|
|
|
74
74
|
top: -50,
|
|
75
75
|
width: 400,
|
|
76
76
|
height: 50,
|
|
77
|
-
fontSize:
|
|
77
|
+
fontSize: 20,
|
|
78
78
|
textAlign: 'left',
|
|
79
|
-
lineHeight:
|
|
79
|
+
lineHeight: 50,
|
|
80
80
|
backgroundColor: '#00ff00',
|
|
81
81
|
}"
|
|
82
82
|
>
|
|
@@ -90,9 +90,9 @@ export default {
|
|
|
90
90
|
width: 400,
|
|
91
91
|
height: 80,
|
|
92
92
|
backgroundColor: 'rgba(255,255,0,0.5)',
|
|
93
|
-
fontSize:
|
|
93
|
+
fontSize: 30,
|
|
94
94
|
textAlign: 'right',
|
|
95
|
-
lineHeight:
|
|
95
|
+
lineHeight: 80,
|
|
96
96
|
}"
|
|
97
97
|
>
|
|
98
98
|
{{ text }}
|
package/TextBox/RenderRight.vue
CHANGED
|
@@ -16,9 +16,9 @@ export default {
|
|
|
16
16
|
top: -50,
|
|
17
17
|
width: 400,
|
|
18
18
|
height: 50,
|
|
19
|
-
fontSize:
|
|
19
|
+
fontSize: 20,
|
|
20
20
|
textAlign: 'left',
|
|
21
|
-
lineHeight:
|
|
21
|
+
lineHeight: 50,
|
|
22
22
|
backgroundColor: '#00ff00',
|
|
23
23
|
}"
|
|
24
24
|
>
|
|
@@ -32,9 +32,9 @@ export default {
|
|
|
32
32
|
width: 400,
|
|
33
33
|
height: 300,
|
|
34
34
|
backgroundColor: 'rgba(255,255,0,0.5)',
|
|
35
|
-
fontSize:
|
|
35
|
+
fontSize: 30,
|
|
36
36
|
textAlign: 'right',
|
|
37
|
-
lineHeight:
|
|
37
|
+
lineHeight: 40,
|
|
38
38
|
}"
|
|
39
39
|
>
|
|
40
40
|
{{ `[TR]${text}` }}
|
|
@@ -45,9 +45,9 @@ export default {
|
|
|
45
45
|
top: -50,
|
|
46
46
|
width: 400,
|
|
47
47
|
height: 50,
|
|
48
|
-
fontSize:
|
|
48
|
+
fontSize: 20,
|
|
49
49
|
textAlign: 'left',
|
|
50
|
-
lineHeight:
|
|
50
|
+
lineHeight: 50,
|
|
51
51
|
backgroundColor: '#00ff00',
|
|
52
52
|
}"
|
|
53
53
|
>
|
|
@@ -61,9 +61,9 @@ export default {
|
|
|
61
61
|
width: 400,
|
|
62
62
|
height: 300,
|
|
63
63
|
backgroundColor: 'rgba(255,255,0,0.5)',
|
|
64
|
-
fontSize:
|
|
64
|
+
fontSize: 30,
|
|
65
65
|
textAlign: 'right',
|
|
66
|
-
lineHeight:
|
|
66
|
+
lineHeight: 40,
|
|
67
67
|
}"
|
|
68
68
|
>
|
|
69
69
|
{{ `[MR]${text}` }}
|
|
@@ -74,9 +74,9 @@ export default {
|
|
|
74
74
|
top: -50,
|
|
75
75
|
width: 400,
|
|
76
76
|
height: 50,
|
|
77
|
-
fontSize:
|
|
77
|
+
fontSize: 20,
|
|
78
78
|
textAlign: 'left',
|
|
79
|
-
lineHeight:
|
|
79
|
+
lineHeight: 50,
|
|
80
80
|
backgroundColor: '#00ff00',
|
|
81
81
|
}"
|
|
82
82
|
>
|
|
@@ -90,9 +90,9 @@ export default {
|
|
|
90
90
|
width: 400,
|
|
91
91
|
height: 300,
|
|
92
92
|
backgroundColor: 'rgba(255,255,0,0.5)',
|
|
93
|
-
fontSize:
|
|
93
|
+
fontSize: 30,
|
|
94
94
|
textAlign: 'right',
|
|
95
|
-
lineHeight:
|
|
95
|
+
lineHeight: 40,
|
|
96
96
|
}"
|
|
97
97
|
>
|
|
98
98
|
{{ `[BR]${text}` }}
|
|
@@ -104,9 +104,9 @@ export default {
|
|
|
104
104
|
top: -50,
|
|
105
105
|
width: 500,
|
|
106
106
|
height: 50,
|
|
107
|
-
fontSize:
|
|
107
|
+
fontSize: 20,
|
|
108
108
|
textAlign: 'left',
|
|
109
|
-
lineHeight:
|
|
109
|
+
lineHeight: 50,
|
|
110
110
|
backgroundColor: '#00ff00',
|
|
111
111
|
}"
|
|
112
112
|
>
|
|
@@ -120,9 +120,9 @@ export default {
|
|
|
120
120
|
width: 500,
|
|
121
121
|
height: 300,
|
|
122
122
|
backgroundColor: 'rgba(255,255,0,0.5)',
|
|
123
|
-
fontSize:
|
|
123
|
+
fontSize: 30,
|
|
124
124
|
textAlign: 'right',
|
|
125
|
-
lineHeight:
|
|
125
|
+
lineHeight: 80,
|
|
126
126
|
}"
|
|
127
127
|
>
|
|
128
128
|
{{ `[BR]${text}` }}
|
package/TextShadowDemo/App.vue
CHANGED
|
@@ -62,9 +62,9 @@ export default {
|
|
|
62
62
|
:style="{
|
|
63
63
|
width: 320,
|
|
64
64
|
height: 50,
|
|
65
|
-
fontSize:
|
|
65
|
+
fontSize: 25,
|
|
66
66
|
textAlign: 'center',
|
|
67
|
-
lineHeight:
|
|
67
|
+
lineHeight: 50,
|
|
68
68
|
backgroundColor: item.id % 2 == 0 ? '#00ff00' : '#0000ff',
|
|
69
69
|
}"
|
|
70
70
|
>
|
|
@@ -78,9 +78,9 @@ export default {
|
|
|
78
78
|
height: 70,
|
|
79
79
|
textShadow: item.textShadow,
|
|
80
80
|
backgroundColor: item.id % 2 == 0 ? '#ffffee' : '#ffff10',
|
|
81
|
-
fontSize:
|
|
81
|
+
fontSize: 35,
|
|
82
82
|
textAlign: 'center',
|
|
83
|
-
lineHeight:
|
|
83
|
+
lineHeight: 40,
|
|
84
84
|
}"
|
|
85
85
|
>
|
|
86
86
|
文字阴影
|
package/TextureAnimation/App.vue
CHANGED
|
@@ -27,7 +27,7 @@ export default {
|
|
|
27
27
|
return {
|
|
28
28
|
styleShell,
|
|
29
29
|
img,
|
|
30
|
-
borderRadius:
|
|
30
|
+
borderRadius: 40,
|
|
31
31
|
repeat: -1,
|
|
32
32
|
duration: 3000,
|
|
33
33
|
translateAnim,
|
|
@@ -94,7 +94,6 @@ export default {
|
|
|
94
94
|
}"
|
|
95
95
|
/>
|
|
96
96
|
<jsv-texture-anim
|
|
97
|
-
ref="textureAnim1"
|
|
98
97
|
:src="img"
|
|
99
98
|
:width="300"
|
|
100
99
|
:height="150"
|
|
@@ -132,7 +131,6 @@ export default {
|
|
|
132
131
|
}"
|
|
133
132
|
/>
|
|
134
133
|
<jsv-texture-anim
|
|
135
|
-
ref="textureAnim1"
|
|
136
134
|
:src="img"
|
|
137
135
|
:width="300"
|
|
138
136
|
:height="150"
|
|
@@ -168,7 +166,6 @@ export default {
|
|
|
168
166
|
}"
|
|
169
167
|
/>
|
|
170
168
|
<jsv-texture-anim
|
|
171
|
-
ref="textureAnim1"
|
|
172
169
|
:src="img"
|
|
173
170
|
:width="300"
|
|
174
171
|
:height="150"
|
|
@@ -204,15 +201,11 @@ export default {
|
|
|
204
201
|
}"
|
|
205
202
|
/>
|
|
206
203
|
<jsv-texture-anim
|
|
207
|
-
ref="textureAnim1"
|
|
208
204
|
:src="img"
|
|
209
205
|
:width="300"
|
|
210
206
|
:height="150"
|
|
211
|
-
:duration="duration"
|
|
212
207
|
:transform="translateTransform"
|
|
213
208
|
:borderRadius="borderRadius"
|
|
214
|
-
:repeat="repeat"
|
|
215
|
-
:autoStart="true"
|
|
216
209
|
></jsv-texture-anim>
|
|
217
210
|
<div
|
|
218
211
|
:style="{
|
|
@@ -238,15 +231,11 @@ export default {
|
|
|
238
231
|
}"
|
|
239
232
|
/>
|
|
240
233
|
<jsv-texture-anim
|
|
241
|
-
ref="textureAnim1"
|
|
242
234
|
:src="img"
|
|
243
235
|
:width="300"
|
|
244
236
|
:height="150"
|
|
245
|
-
:duration="duration"
|
|
246
237
|
:transform="rotateTransform"
|
|
247
238
|
:borderRadius="borderRadius"
|
|
248
|
-
:repeat="repeat"
|
|
249
|
-
:autoStart="true"
|
|
250
239
|
></jsv-texture-anim>
|
|
251
240
|
<div
|
|
252
241
|
:style="{
|
|
@@ -272,15 +261,11 @@ export default {
|
|
|
272
261
|
}"
|
|
273
262
|
/>
|
|
274
263
|
<jsv-texture-anim
|
|
275
|
-
ref="textureAnim1"
|
|
276
264
|
:src="img"
|
|
277
265
|
:width="300"
|
|
278
266
|
:height="150"
|
|
279
|
-
:duration="duration"
|
|
280
267
|
:transform="scaleTransform"
|
|
281
268
|
:borderRadius="borderRadius"
|
|
282
|
-
:repeat="repeat"
|
|
283
|
-
:autoStart="true"
|
|
284
269
|
></jsv-texture-anim>
|
|
285
270
|
<div
|
|
286
271
|
:style="{
|
|
@@ -306,7 +291,6 @@ export default {
|
|
|
306
291
|
}"
|
|
307
292
|
/>
|
|
308
293
|
<jsv-texture-anim
|
|
309
|
-
ref="textureAnim1"
|
|
310
294
|
:src="swipLight"
|
|
311
295
|
:animation="swipAnim"
|
|
312
296
|
:width="300"
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<script setup>
|
|
2
|
-
import { ref,
|
|
2
|
+
import { ref, reactive } from "vue";
|
|
3
3
|
import { useRouter } from "vue-router";
|
|
4
4
|
import {
|
|
5
5
|
jJsvRuntimeBridge,
|
|
@@ -65,8 +65,8 @@ const onKeyDown = (ev) => {
|
|
|
65
65
|
<div
|
|
66
66
|
:style="{
|
|
67
67
|
textAlign: 'center',
|
|
68
|
-
fontSize:
|
|
69
|
-
lineHeight:
|
|
68
|
+
fontSize: 30,
|
|
69
|
+
lineHeight: 50,
|
|
70
70
|
color: '#ffffff',
|
|
71
71
|
left: 140,
|
|
72
72
|
top: 20,
|
package/TextureSize/App.vue
CHANGED
|
@@ -42,7 +42,7 @@ const onKeyDown = (ev) => {
|
|
|
42
42
|
<img
|
|
43
43
|
alt=""
|
|
44
44
|
class="graphSize top250"
|
|
45
|
-
|
|
45
|
+
data-jsv-img-scaledown-tex
|
|
46
46
|
:src="bmpDemo"
|
|
47
47
|
/>
|
|
48
48
|
<div class="underFont">
|
|
@@ -55,7 +55,7 @@ const onKeyDown = (ev) => {
|
|
|
55
55
|
<img
|
|
56
56
|
alt=""
|
|
57
57
|
class="graphSize top250"
|
|
58
|
-
|
|
58
|
+
data-jsv-img-scaledown-tex
|
|
59
59
|
:src="jpegDemo"
|
|
60
60
|
/>
|
|
61
61
|
<div class="underFont">
|
|
@@ -67,9 +67,9 @@ const onKeyDown = (ev) => {
|
|
|
67
67
|
<img alt="" class="graphSize top0" :src="pngDemo" />
|
|
68
68
|
<img
|
|
69
69
|
alt=""
|
|
70
|
-
:src="pngDemo"
|
|
71
70
|
class="graphSize top250"
|
|
72
|
-
|
|
71
|
+
data-jsv-img-scaledown-tex
|
|
72
|
+
:src="pngDemo"
|
|
73
73
|
/>
|
|
74
74
|
<div class="underFont">
|
|
75
75
|
{{ `png有透明图片\n指定尺寸有明显锯齿` }}
|
|
@@ -82,7 +82,7 @@ const onKeyDown = (ev) => {
|
|
|
82
82
|
alt=""
|
|
83
83
|
:src="pngNoAlphaDemo"
|
|
84
84
|
class="graphSize top250"
|
|
85
|
-
|
|
85
|
+
data-jsv-img-scaledown-tex
|
|
86
86
|
/>
|
|
87
87
|
<div class="underFont">
|
|
88
88
|
{{ `png无透明图片` }}
|
|
@@ -107,7 +107,7 @@ const onKeyDown = (ev) => {
|
|
|
107
107
|
width: 210;
|
|
108
108
|
height: 200;
|
|
109
109
|
color: #ffffff;
|
|
110
|
-
font-size:
|
|
110
|
+
font-size: 30;
|
|
111
111
|
}
|
|
112
112
|
.top0 {
|
|
113
113
|
top: 0;
|
|
@@ -119,7 +119,7 @@ const onKeyDown = (ev) => {
|
|
|
119
119
|
left: 0;
|
|
120
120
|
width: 200;
|
|
121
121
|
height: 200;
|
|
122
|
-
border-radius:
|
|
122
|
+
border-radius: 15 15 15 15;
|
|
123
123
|
}
|
|
124
124
|
.underFont {
|
|
125
125
|
left: 0;
|
|
@@ -127,6 +127,6 @@ const onKeyDown = (ev) => {
|
|
|
127
127
|
width: 200;
|
|
128
128
|
height: 200;
|
|
129
129
|
color: #ffffff;
|
|
130
|
-
font-size:
|
|
130
|
+
font-size: 20;
|
|
131
131
|
}
|
|
132
132
|
</style>
|
|
@@ -95,9 +95,9 @@ export default {
|
|
|
95
95
|
|
|
96
96
|
<style scoped>
|
|
97
97
|
.font {
|
|
98
|
-
font-size:
|
|
98
|
+
font-size: 32;
|
|
99
99
|
color: #73665c;
|
|
100
|
-
line-height:
|
|
100
|
+
line-height: 40;
|
|
101
101
|
overflow: hidden;
|
|
102
102
|
white-space: nowrap;
|
|
103
103
|
text-overflow: ellipsis;
|
|
@@ -105,9 +105,9 @@ export default {
|
|
|
105
105
|
}
|
|
106
106
|
|
|
107
107
|
.detail-font {
|
|
108
|
-
font-size:
|
|
108
|
+
font-size: 32;
|
|
109
109
|
color: #f7f7eb;
|
|
110
|
-
line-height:
|
|
110
|
+
line-height: 30;
|
|
111
111
|
overflow: hidden;
|
|
112
112
|
white-space: nowrap;
|
|
113
113
|
text-overflow: ellipsis;
|
|
@@ -80,9 +80,9 @@ function onKeyDown(ev) {
|
|
|
80
80
|
|
|
81
81
|
<style scoped>
|
|
82
82
|
.font {
|
|
83
|
-
font-size:
|
|
83
|
+
font-size: 32;
|
|
84
84
|
color: #73665c;
|
|
85
|
-
line-height:
|
|
85
|
+
line-height: 40;
|
|
86
86
|
overflow: hidden;
|
|
87
87
|
white-space: nowrap;
|
|
88
88
|
text-overflow: ellipsis;
|
|
@@ -90,9 +90,9 @@ function onKeyDown(ev) {
|
|
|
90
90
|
}
|
|
91
91
|
|
|
92
92
|
.detail-font {
|
|
93
|
-
font-size:
|
|
93
|
+
font-size: 32;
|
|
94
94
|
color: #f7f7eb;
|
|
95
|
-
line-height:
|
|
95
|
+
line-height: 30;
|
|
96
96
|
overflow: hidden;
|
|
97
97
|
white-space: nowrap;
|
|
98
98
|
text-overflow: ellipsis;
|
|
@@ -95,9 +95,9 @@ export default {
|
|
|
95
95
|
|
|
96
96
|
<style scoped>
|
|
97
97
|
.font {
|
|
98
|
-
font-size:
|
|
98
|
+
font-size: 32;
|
|
99
99
|
color: #73665c;
|
|
100
|
-
line-height:
|
|
100
|
+
line-height: 40;
|
|
101
101
|
overflow: hidden;
|
|
102
102
|
white-space: nowrap;
|
|
103
103
|
text-overflow: ellipsis;
|
|
@@ -105,9 +105,9 @@ export default {
|
|
|
105
105
|
}
|
|
106
106
|
|
|
107
107
|
.detail-font {
|
|
108
|
-
font-size:
|
|
108
|
+
font-size: 32;
|
|
109
109
|
color: #f7f7eb;
|
|
110
|
-
line-height:
|
|
110
|
+
line-height: 30;
|
|
111
111
|
overflow: hidden;
|
|
112
112
|
white-space: nowrap;
|
|
113
113
|
text-overflow: ellipsis;
|
|
@@ -100,9 +100,9 @@ export default {
|
|
|
100
100
|
|
|
101
101
|
<style scoped>
|
|
102
102
|
.font {
|
|
103
|
-
font-size:
|
|
103
|
+
font-size: 32;
|
|
104
104
|
color: #73665c;
|
|
105
|
-
line-height:
|
|
105
|
+
line-height: 40;
|
|
106
106
|
overflow: hidden;
|
|
107
107
|
white-space: nowrap;
|
|
108
108
|
text-overflow: ellipsis;
|
|
@@ -110,9 +110,9 @@ export default {
|
|
|
110
110
|
}
|
|
111
111
|
|
|
112
112
|
.detail-font {
|
|
113
|
-
font-size:
|
|
113
|
+
font-size: 32;
|
|
114
114
|
color: #f7f7eb;
|
|
115
|
-
line-height:
|
|
115
|
+
line-height: 30;
|
|
116
116
|
overflow: hidden;
|
|
117
117
|
white-space: nowrap;
|
|
118
118
|
text-overflow: ellipsis;
|
package/TouchSample/App.vue
CHANGED
|
@@ -101,7 +101,7 @@ export default {
|
|
|
101
101
|
height: 50,
|
|
102
102
|
backgroundColor: '#ff0000',
|
|
103
103
|
fontSize: 18,
|
|
104
|
-
lineHeight:
|
|
104
|
+
lineHeight: 50,
|
|
105
105
|
}"
|
|
106
106
|
:onClick="
|
|
107
107
|
() => {
|
|
@@ -120,7 +120,7 @@ export default {
|
|
|
120
120
|
width: 400,
|
|
121
121
|
height: 50,
|
|
122
122
|
fontSize: 30,
|
|
123
|
-
lineHeight:
|
|
123
|
+
lineHeight: 50,
|
|
124
124
|
color: '#f0ef29',
|
|
125
125
|
}"
|
|
126
126
|
>
|
package/TouchSample/Item.vue
CHANGED
|
@@ -92,12 +92,12 @@ export default {
|
|
|
92
92
|
.focus {
|
|
93
93
|
transform: scale3d(1, 1, 1);
|
|
94
94
|
transition: transform 0.25s linear;
|
|
95
|
-
font-size:
|
|
95
|
+
font-size: 30;
|
|
96
96
|
}
|
|
97
97
|
|
|
98
98
|
.blur {
|
|
99
99
|
transform: scale3d(1, 1, 1);
|
|
100
100
|
transition: transform 0.25s linear;
|
|
101
|
-
font-size:
|
|
101
|
+
font-size: 30;
|
|
102
102
|
}
|
|
103
103
|
</style>
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
import Item from "./Item.vue";
|
|
11
11
|
|
|
12
12
|
import { metroWidgetH, measures } from "./data.js";
|
|
13
|
-
import { ref
|
|
13
|
+
import { ref } from "vue";
|
|
14
14
|
|
|
15
15
|
export default {
|
|
16
16
|
components: {
|
|
@@ -58,7 +58,7 @@ export default {
|
|
|
58
58
|
width: 200,
|
|
59
59
|
height: 40,
|
|
60
60
|
fontSize: 25,
|
|
61
|
-
lineHeight:
|
|
61
|
+
lineHeight: 40,
|
|
62
62
|
color: '#fff753',
|
|
63
63
|
}"
|
|
64
64
|
>
|
|
@@ -98,7 +98,7 @@ export default {
|
|
|
98
98
|
width: 200,
|
|
99
99
|
height: 40,
|
|
100
100
|
fontSize: 25,
|
|
101
|
-
lineHeight:
|
|
101
|
+
lineHeight: 40,
|
|
102
102
|
color: '#fff753',
|
|
103
103
|
}"
|
|
104
104
|
>
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
import Item from "./Item.vue";
|
|
11
11
|
|
|
12
12
|
import { metroWidgetV, measures } from "./data.js";
|
|
13
|
-
import { ref
|
|
13
|
+
import { ref } from "vue";
|
|
14
14
|
|
|
15
15
|
export default {
|
|
16
16
|
components: {
|
|
@@ -58,7 +58,7 @@ export default {
|
|
|
58
58
|
width: 200,
|
|
59
59
|
height: 40,
|
|
60
60
|
fontSize: 25,
|
|
61
|
-
lineHeight:
|
|
61
|
+
lineHeight: 40,
|
|
62
62
|
color: '#fff753',
|
|
63
63
|
}"
|
|
64
64
|
>
|
|
@@ -98,7 +98,7 @@ export default {
|
|
|
98
98
|
width: 200,
|
|
99
99
|
height: 40,
|
|
100
100
|
fontSize: 25,
|
|
101
|
-
lineHeight:
|
|
101
|
+
lineHeight: 40,
|
|
102
102
|
color: '#fff753',
|
|
103
103
|
}"
|
|
104
104
|
>
|
|
@@ -56,7 +56,7 @@ export default {
|
|
|
56
56
|
width: 400,
|
|
57
57
|
height: 30,
|
|
58
58
|
fontSize: 18,
|
|
59
|
-
lineHeight:
|
|
59
|
+
lineHeight: 30,
|
|
60
60
|
color: '#f0ef29',
|
|
61
61
|
}"
|
|
62
62
|
>
|
|
@@ -110,7 +110,7 @@ export default {
|
|
|
110
110
|
width: 400,
|
|
111
111
|
height: 40,
|
|
112
112
|
fontSize: 18,
|
|
113
|
-
lineHeight:
|
|
113
|
+
lineHeight: 40,
|
|
114
114
|
color: '#f0ef29',
|
|
115
115
|
}"
|
|
116
116
|
>
|
|
@@ -56,7 +56,7 @@ export default {
|
|
|
56
56
|
width: 400,
|
|
57
57
|
height: 40,
|
|
58
58
|
fontSize: 25,
|
|
59
|
-
lineHeight:
|
|
59
|
+
lineHeight: 40,
|
|
60
60
|
color: '#f0ef29',
|
|
61
61
|
}"
|
|
62
62
|
>
|
|
@@ -110,7 +110,7 @@ export default {
|
|
|
110
110
|
width: 400,
|
|
111
111
|
height: 40,
|
|
112
112
|
fontSize: 25,
|
|
113
|
-
lineHeight:
|
|
113
|
+
lineHeight: 40,
|
|
114
114
|
color: '#f0ef29',
|
|
115
115
|
}"
|
|
116
116
|
>
|
package/TransitPage/App.vue
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import DemoApp from "../DemoHomepage/App.vue";
|
|
3
3
|
import ActivityApp from "../MetroWidgetDemos/PerformanceTest/App.vue"; // TODO
|
|
4
4
|
import { jJsvRuntimeBridge } from "jsview";
|
|
5
|
-
import { ref,
|
|
5
|
+
import { ref, onMounted } from "vue";
|
|
6
6
|
|
|
7
7
|
const getShowMode = () => {
|
|
8
8
|
let showMode = 0;
|
package/VideoDemo/App.vue
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<script setup>
|
|
2
|
-
import { provide, reactive, ref, shallowRef,
|
|
2
|
+
import { provide, reactive, ref, shallowRef, watch } from "vue";
|
|
3
3
|
import Controllor from "./components/Controllor.vue";
|
|
4
4
|
import VideoFrame from "./components/VideoFrame.vue";
|
|
5
5
|
|
|
@@ -78,8 +78,8 @@ watch(useTexture, () => {
|
|
|
78
78
|
<style scoped>
|
|
79
79
|
.caption {
|
|
80
80
|
text-align: left;
|
|
81
|
-
font-size:
|
|
82
|
-
line-height:
|
|
81
|
+
font-size: 24;
|
|
82
|
+
line-height: 30;
|
|
83
83
|
color: #ffffff;
|
|
84
84
|
left: 10;
|
|
85
85
|
top: 10;
|
|
@@ -90,7 +90,7 @@ watch(useTexture, () => {
|
|
|
90
90
|
|
|
91
91
|
.text {
|
|
92
92
|
color: #ff0000;
|
|
93
|
-
font-size:
|
|
93
|
+
font-size: 24;
|
|
94
94
|
top: 550;
|
|
95
95
|
width: 60;
|
|
96
96
|
height: 40;
|
|
@@ -145,7 +145,7 @@ const onKeyDown = (ev) => {
|
|
|
145
145
|
}
|
|
146
146
|
if (changeFocusTo >= 0) {
|
|
147
147
|
ev.ownerNode
|
|
148
|
-
.findBlockByName("
|
|
148
|
+
.findBlockByName("video-" + (changeFocusTo + 10).toString())
|
|
149
149
|
.requestFocus();
|
|
150
150
|
focusedItemIndex = changeFocusTo;
|
|
151
151
|
return true;
|
|
@@ -173,7 +173,7 @@ enableAnimation.value = false;
|
|
|
173
173
|
|
|
174
174
|
<template>
|
|
175
175
|
<div :style="style" :key="useTexture" :set="(leftOffset = 0)">
|
|
176
|
-
<jsv-focus-block
|
|
176
|
+
<jsv-focus-block :onKeyDown="onKeyDown">
|
|
177
177
|
<Button
|
|
178
178
|
v-for="(item, index) in getButtonData()"
|
|
179
179
|
:key="index"
|
|
@@ -104,7 +104,7 @@ onMounted(() => {
|
|
|
104
104
|
objectFit: objectFit,
|
|
105
105
|
animation:
|
|
106
106
|
useTexture && enableAnimation ? 'offscreenAnim 3s infinite' : null,
|
|
107
|
-
borderRadius: '
|
|
107
|
+
borderRadius: '80 80 160 240',
|
|
108
108
|
}"
|
|
109
109
|
:onCanPlay="onEvent"
|
|
110
110
|
:onCanPlayThrough="onEvent"
|