@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.
Files changed (185) hide show
  1. package/AnimPicture/App.vue +10 -10
  2. package/Basic/App.vue +1 -1
  3. package/Basic/components/FontStyle.css +4 -4
  4. package/Basic/components/anim/AnimKeyframeBasic.vue +1 -1
  5. package/Basic/components/anim/AnimKeyframeComposite.vue +2 -2
  6. package/Basic/components/anim/AnimTransition.vue +4 -4
  7. package/Basic/components/div/DivClip.vue +0 -39
  8. package/Basic/components/div/DivCssScoped.vue +1 -1
  9. package/Basic/components/div/DivLayout.vue +1 -1
  10. package/Basic/components/div/DivRadius.vue +4 -4
  11. package/Basic/components/img/ImageGroup.vue +2 -2
  12. package/Basic/components/img/ImgLayout.vue +78 -14
  13. package/Basic/components/text/TextDirection.vue +9 -9
  14. package/Basic/components/text/TextEmoji.vue +7 -2
  15. package/Basic/components/text/TextFontStyle.vue +4 -4
  16. package/Basic/components/text/TextGroup1.vue +1 -1
  17. package/Basic/components/text/TextGroup2.vue +2 -2
  18. package/BasicFocusControl/App.vue +2 -2
  19. package/BasicFocusControl/components/BaseBlock.vue +2 -2
  20. package/BasicFocusControl/components/MainArea.vue +2 -2
  21. package/BasicFocusControl/components/SideBar.vue +2 -2
  22. package/Collision/App.vue +16 -16
  23. package/ColorSpace/App.vue +11 -11
  24. package/CssPreprocessor/App.vue +70 -0
  25. package/CssPreprocessor/Less/App.vue +32 -0
  26. package/CssPreprocessor/Less/PanelData.js +51 -0
  27. package/CssPreprocessor/Less/components/less-group1/LessComments.vue +34 -0
  28. package/CssPreprocessor/Less/components/less-group1/LessConditionals.vue +32 -0
  29. package/CssPreprocessor/Less/components/less-group1/LessOperations.vue +24 -0
  30. package/CssPreprocessor/Less/components/less-group1/LessVariables.vue +48 -0
  31. package/CssPreprocessor/Less/components/less-group2/LessIteration.vue +32 -0
  32. package/CssPreprocessor/Less/components/less-group2/LessMethods.vue +27 -0
  33. package/CssPreprocessor/Less/components/less-group3/LessExtends.vue +32 -0
  34. package/CssPreprocessor/Less/components/less-group3/LessNesting.vue +63 -0
  35. package/CssPreprocessor/Less/components/less-group4/LessKeyframes.vue +40 -0
  36. package/CssPreprocessor/Less/components/less-group4/LessMaps.vue +33 -0
  37. package/CssPreprocessor/Less/components/less-group4/LessMixins.vue +33 -0
  38. package/CssPreprocessor/Less/components/less-group5/LessImporting.vue +34 -0
  39. package/CssPreprocessor/Less/components/less-group5/TextSettings.less +4 -0
  40. package/CssPreprocessor/Scss/App.vue +32 -0
  41. package/CssPreprocessor/Scss/PanelData.js +51 -0
  42. package/CssPreprocessor/Scss/components/scss-group1/ScssComments.vue +34 -0
  43. package/CssPreprocessor/Scss/components/scss-group1/ScssConditionals.vue +36 -0
  44. package/CssPreprocessor/Scss/components/scss-group1/ScssOperations.vue +30 -0
  45. package/CssPreprocessor/Scss/components/scss-group1/ScssVariables.vue +48 -0
  46. package/CssPreprocessor/Scss/components/scss-group2/ScssIteration.vue +36 -0
  47. package/CssPreprocessor/Scss/components/scss-group2/ScssMethods.vue +84 -0
  48. package/CssPreprocessor/Scss/components/scss-group3/ScssExtends.vue +34 -0
  49. package/CssPreprocessor/Scss/components/scss-group3/ScssNesting.vue +75 -0
  50. package/CssPreprocessor/Scss/components/scss-group4/ScssKeyframes.vue +40 -0
  51. package/CssPreprocessor/Scss/components/scss-group4/ScssMaps.vue +35 -0
  52. package/CssPreprocessor/Scss/components/scss-group4/ScssMixins.vue +33 -0
  53. package/CssPreprocessor/Scss/components/scss-group5/ScssImporting.vue +34 -0
  54. package/CssPreprocessor/Scss/components/scss-group5/TextSettings.scss +4 -0
  55. package/CssPreprocessor/Stylus/App.vue +32 -0
  56. package/CssPreprocessor/Stylus/PanelData.js +51 -0
  57. package/CssPreprocessor/Stylus/components/stylus-group1/StylusComments.vue +34 -0
  58. package/CssPreprocessor/Stylus/components/stylus-group1/StylusConditionals.vue +36 -0
  59. package/CssPreprocessor/Stylus/components/stylus-group1/StylusOperations.vue +30 -0
  60. package/CssPreprocessor/Stylus/components/stylus-group1/StylusVariables.vue +47 -0
  61. package/CssPreprocessor/Stylus/components/stylus-group2/StylusIteration.vue +34 -0
  62. package/CssPreprocessor/Stylus/components/stylus-group2/StylusMethods.vue +78 -0
  63. package/CssPreprocessor/Stylus/components/stylus-group3/StylusExtends.vue +34 -0
  64. package/CssPreprocessor/Stylus/components/stylus-group3/StylusNesting.vue +63 -0
  65. package/CssPreprocessor/Stylus/components/stylus-group4/StylusKeyframes.vue +40 -0
  66. package/CssPreprocessor/Stylus/components/stylus-group4/StylusMaps.vue +33 -0
  67. package/CssPreprocessor/Stylus/components/stylus-group4/StylusMixins.vue +33 -0
  68. package/CssPreprocessor/Stylus/components/stylus-group5/StylusImporting.vue +34 -0
  69. package/CssPreprocessor/Stylus/components/stylus-group5/TextSettings.styl +4 -0
  70. package/CssPreprocessor/utils/ContentBlock.vue +43 -0
  71. package/CssPreprocessor/utils/ContentList.vue +34 -0
  72. package/CssPreprocessor/utils/FontStyle.css +19 -0
  73. package/CssPreprocessor/utils/Panel.vue +49 -0
  74. package/CssPreprocessor/utils/TitleBar.vue +29 -0
  75. package/DemoHomepage/App.vue +46 -11
  76. package/DemoHomepage/components/Dialog.vue +15 -15
  77. package/DemoHomepage/router.js +20 -12
  78. package/DemoHomepage/views/Homepage.vue +90 -102
  79. package/DivMetroPerformance/App.vue +150 -0
  80. package/DivMetroPerformance/Item.vue +58 -0
  81. package/DivMetroPerformance/assets/bg.jpg +0 -0
  82. package/DivMetroPerformance/assets/coupon_content.png +0 -0
  83. package/DivMetroPerformance/assets/coupon_left.png +0 -0
  84. package/DivMetroPerformance/assets/coupon_mid.png +0 -0
  85. package/DivMetroPerformance/assets/coupon_right.png +0 -0
  86. package/DivMetroPerformance/assets/focus_border.png +0 -0
  87. package/DivMetroPerformance/assets/holder_logo.png +0 -0
  88. package/DivMetroPerformance/assets/jrbm.png +0 -0
  89. package/DivMetroPerformance/assets/line_left.png +0 -0
  90. package/DivMetroPerformance/assets/line_mid.png +0 -0
  91. package/DivMetroPerformance/assets/line_right.png +0 -0
  92. package/DivMetroPerformance/assets/loading.png +0 -0
  93. package/DivMetroPerformance/assets/logo.png +0 -0
  94. package/DivMetroPerformance/assets/mcjx.png +0 -0
  95. package/DivMetroPerformance/assets/tao.png +0 -0
  96. package/DivMetroPerformance/assets/tmall.png +0 -0
  97. package/DivMetroPerformance/border.png +0 -0
  98. package/DivMetroPerformance/components/ContentItem.vue +385 -0
  99. package/DivMetroPerformance/components/MyTab.vue +129 -0
  100. package/DivMetroPerformance/data.js +124 -0
  101. package/DivMetroPerformance/utils/GridItem.vue +28 -0
  102. package/DivMetroPerformance/utils/GridPlate.vue +85 -0
  103. package/FilterDemo/AnimatePic.vue +3 -3
  104. package/FilterDemo/App.vue +3 -3
  105. package/FlipCard/App.vue +2 -2
  106. package/FlipCard/FlipCard.vue +2 -2
  107. package/GridDemo/Item.vue +13 -13
  108. package/HashHistory/App.vue +0 -1
  109. package/HashHistory/components/Item.vue +2 -2
  110. package/HashHistory/views/MainPage.vue +1 -1
  111. package/HashHistory/views/SubPage.vue +2 -2
  112. package/ImpactStop/App.vue +9 -11
  113. package/Input/InputPanel.vue +2 -4
  114. package/LongImage/App.vue +2 -2
  115. package/LongImage/Button.vue +1 -1
  116. package/LongImage/ButtonItem.vue +1 -1
  117. package/LongText/App.vue +3 -3
  118. package/LongText/Button.vue +1 -1
  119. package/LongText/ButtonItem.vue +1 -1
  120. package/LongText/LongTextScroll.vue +4 -4
  121. package/Marquee/longText.js +0 -2
  122. package/MaskClip/App.vue +4 -4
  123. package/MediaDemo/App.vue +127 -0
  124. package/MediaDemo/assets/audio-poster.png +0 -0
  125. package/MediaDemo/components/Button.vue +69 -0
  126. package/MediaDemo/components/Controllor.vue +279 -0
  127. package/MediaDemo/components/StatusBar.vue +100 -0
  128. package/MediaDemo/components/frames/AudioFrame.vue +39 -0
  129. package/MediaDemo/components/frames/AudioPoster.vue +48 -0
  130. package/MediaDemo/components/frames/MediaFrame.vue +153 -0
  131. package/MediaDemo/components/frames/VideoFrame.vue +39 -0
  132. package/MetroWidgetDemos/Advanced/ButtonItem.vue +4 -4
  133. package/MetroWidgetDemos/Advanced/widgets/Item.vue +5 -5
  134. package/MetroWidgetDemos/Advanced/widgets/WidgetItem.vue +2 -2
  135. package/MetroWidgetDemos/Advanced/widgets/Widgets.vue +57 -56
  136. package/MetroWidgetDemos/Item.vue +4 -5
  137. package/MetroWidgetDemos/PerformanceTest/App.vue +3 -3
  138. package/MetroWidgetDemos/PerformanceTest/components/ContentItem.vue +26 -26
  139. package/MetroWidgetDemos/PerformanceTest/components/MyTab.vue +15 -15
  140. package/MetroWidgetDemos/PingPong/AppPage.vue +2 -2
  141. package/MetroWidgetDemos/PingPong/TabItem.vue +2 -2
  142. package/MetroWidgetDemos/PingPong/ViewSwiper.vue +9 -9
  143. package/MetroWidgetDemos/Simple/RelativeTemplate.vue +2 -2
  144. package/MetroWidgetDemos/WidgetItem.vue +2 -2
  145. package/NinePatchDemo/App.vue +3 -3
  146. package/NinePatchDemo/Item.vue +5 -5
  147. package/Preload/App.vue +5 -5
  148. package/Preload/Item.vue +1 -1
  149. package/QrcodeDemo/App.vue +3 -3
  150. package/ScaleDownNeon/App.vue +9 -9
  151. package/SoundPool/App.vue +6 -9
  152. package/SprayView/App.vue +22 -22
  153. package/SpriteImage/App.vue +4 -4
  154. package/Swiper/App.vue +2 -8
  155. package/TextBox/App.vue +1 -2
  156. package/TextBox/RenderCenter.vue +16 -16
  157. package/TextBox/RenderLeft.vue +16 -16
  158. package/TextBox/RenderOneLine.vue +12 -12
  159. package/TextBox/RenderRight.vue +16 -16
  160. package/TextShadowDemo/App.vue +4 -4
  161. package/TextureAnimation/App.vue +1 -17
  162. package/TextureAnimation/App2.vue +3 -3
  163. package/TextureSize/App.vue +8 -8
  164. package/ThrowMoveDemo/AccelerateDemo.vue +4 -4
  165. package/ThrowMoveDemo/LRParabolicDemo.vue +4 -4
  166. package/ThrowMoveDemo/TargetDemo.vue +4 -4
  167. package/ThrowMoveDemo/UDParabolicDemo.vue +4 -4
  168. package/TouchSample/App.vue +2 -2
  169. package/TouchSample/Item.vue +2 -2
  170. package/TouchSample/MetroWidgetHorizontal.vue +3 -3
  171. package/TouchSample/MetroWidgetVertical.vue +3 -3
  172. package/TouchSample/TouchContainerHorizontal.vue +2 -2
  173. package/TouchSample/TouchContainerVertical.vue +2 -2
  174. package/TransitPage/App.vue +1 -1
  175. package/VideoDemo/App.vue +4 -4
  176. package/VideoDemo/components/Button.vue +1 -1
  177. package/VideoDemo/components/Controllor.vue +2 -2
  178. package/VideoDemo/components/VideoFrame.vue +1 -1
  179. package/VisibleSensorDemo/App.vue +7 -7
  180. package/assets/bmpDemo.bmp +0 -0
  181. package/assets/jpegDemo.jpeg +0 -0
  182. package/assets/pngDemo.png +0 -0
  183. package/assets/pngNoAlphaDemo.png +0 -0
  184. package/assets/webpDemo.webp +0 -0
  185. 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: '20px',
19
+ fontSize: 20,
20
20
  textAlign: 'left',
21
- lineHeight: '50px',
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: '30px',
35
+ fontSize: 30,
36
36
  textAlign: 'left',
37
- lineHeight: '80px',
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: '20px',
48
+ fontSize: 20,
49
49
  textAlign: 'left',
50
- lineHeight: '50px',
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: '30px',
64
+ fontSize: 30,
65
65
  textAlign: 'center',
66
- lineHeight: '80px',
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: '20px',
77
+ fontSize: 20,
78
78
  textAlign: 'left',
79
- lineHeight: '50px',
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: '30px',
93
+ fontSize: 30,
94
94
  textAlign: 'right',
95
- lineHeight: '80px',
95
+ lineHeight: 80,
96
96
  }"
97
97
  >
98
98
  {{ text }}
@@ -16,9 +16,9 @@ export default {
16
16
  top: -50,
17
17
  width: 400,
18
18
  height: 50,
19
- fontSize: '20px',
19
+ fontSize: 20,
20
20
  textAlign: 'left',
21
- lineHeight: '50px',
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: '30px',
35
+ fontSize: 30,
36
36
  textAlign: 'right',
37
- lineHeight: '40px',
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: '20px',
48
+ fontSize: 20,
49
49
  textAlign: 'left',
50
- lineHeight: '50px',
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: '30px',
64
+ fontSize: 30,
65
65
  textAlign: 'right',
66
- lineHeight: '40px',
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: '20px',
77
+ fontSize: 20,
78
78
  textAlign: 'left',
79
- lineHeight: '50px',
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: '30px',
93
+ fontSize: 30,
94
94
  textAlign: 'right',
95
- lineHeight: '40px',
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: '20px',
107
+ fontSize: 20,
108
108
  textAlign: 'left',
109
- lineHeight: '50px',
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: '30px',
123
+ fontSize: 30,
124
124
  textAlign: 'right',
125
- lineHeight: '80px',
125
+ lineHeight: 80,
126
126
  }"
127
127
  >
128
128
  {{ `[BR]${text}` }}
@@ -62,9 +62,9 @@ export default {
62
62
  :style="{
63
63
  width: 320,
64
64
  height: 50,
65
- fontSize: '25px',
65
+ fontSize: 25,
66
66
  textAlign: 'center',
67
- lineHeight: '50px',
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: '35px',
81
+ fontSize: 35,
82
82
  textAlign: 'center',
83
- lineHeight: '40px',
83
+ lineHeight: 40,
84
84
  }"
85
85
  >
86
86
  文字阴影
@@ -27,7 +27,7 @@ export default {
27
27
  return {
28
28
  styleShell,
29
29
  img,
30
- borderRadius: "40px",
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, shallowRef, reactive } from "vue";
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: '30px',
69
- lineHeight: '50px',
68
+ fontSize: 30,
69
+ lineHeight: 50,
70
70
  color: '#ffffff',
71
71
  left: 140,
72
72
  top: 20,
@@ -42,7 +42,7 @@ const onKeyDown = (ev) => {
42
42
  <img
43
43
  alt=""
44
44
  class="graphSize top250"
45
- jsvImgScaledownTex
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
- jsvImgScaledownTex
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
- jsvImgScaledownTex
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
- jsvImgScaledownTex
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: 30px;
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: 15px 15px 15px 15px;
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: 20px;
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: 32px;
98
+ font-size: 32;
99
99
  color: #73665c;
100
- line-height: 40px;
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: 32px;
108
+ font-size: 32;
109
109
  color: #f7f7eb;
110
- line-height: 30px;
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: 32px;
83
+ font-size: 32;
84
84
  color: #73665c;
85
- line-height: 40px;
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: 32px;
93
+ font-size: 32;
94
94
  color: #f7f7eb;
95
- line-height: 30px;
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: 32px;
98
+ font-size: 32;
99
99
  color: #73665c;
100
- line-height: 40px;
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: 32px;
108
+ font-size: 32;
109
109
  color: #f7f7eb;
110
- line-height: 30px;
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: 32px;
103
+ font-size: 32;
104
104
  color: #73665c;
105
- line-height: 40px;
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: 32px;
113
+ font-size: 32;
114
114
  color: #f7f7eb;
115
- line-height: 30px;
115
+ line-height: 30;
116
116
  overflow: hidden;
117
117
  white-space: nowrap;
118
118
  text-overflow: ellipsis;
@@ -101,7 +101,7 @@ export default {
101
101
  height: 50,
102
102
  backgroundColor: '#ff0000',
103
103
  fontSize: 18,
104
- lineHeight: '50px',
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: '50px',
123
+ lineHeight: 50,
124
124
  color: '#f0ef29',
125
125
  }"
126
126
  >
@@ -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: 30px;
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: 30px;
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, shallowRef } from "vue";
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: '40px',
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: '40px',
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, shallowRef } from "vue";
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: '40px',
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: '40px',
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: '30px',
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: '40px',
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: '40px',
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: '40px',
113
+ lineHeight: 40,
114
114
  color: '#f0ef29',
115
115
  }"
116
116
  >
@@ -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, shallowRef, onMounted } from "vue";
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, watch } from "vue";
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: 24px;
82
- line-height: 30px;
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: 24px;
93
+ font-size: 24;
94
94
  top: 550;
95
95
  width: 60;
96
96
  height: 40;
@@ -1,5 +1,5 @@
1
1
  <script setup>
2
- import { ref, shallowRef } from "vue";
2
+ import { ref } from "vue";
3
3
  const props = defineProps({
4
4
  style: Object,
5
5
  autoFocus: Boolean,
@@ -145,7 +145,7 @@ const onKeyDown = (ev) => {
145
145
  }
146
146
  if (changeFocusTo >= 0) {
147
147
  ev.ownerNode
148
- .findBlockByName("controllor.video-" + (changeFocusTo + 10).toString())
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 namespace="controllor" :onKeyDown="onKeyDown">
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: '80px 80px 160px 240px',
107
+ borderRadius: '80 80 160 240',
108
108
  }"
109
109
  :onCanPlay="onEvent"
110
110
  :onCanPlayThrough="onEvent"