@shijiu/jsview-vue-samples 1.9.888 → 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
@@ -8,7 +8,7 @@
8
8
  <script>
9
9
  import AppPage from "./AppPage.vue";
10
10
  import { getKeyFramesGroup } from "jsview";
11
- import { reactive, ref, shallowRef } from "vue";
11
+ import { reactive, ref } from "vue";
12
12
 
13
13
  export default {
14
14
  components: {
@@ -121,34 +121,34 @@ export default {
121
121
  $_appSwiper_initAnimation() {
122
122
  let leftSlideOutDefine = `@keyframes app-swiper-left-slide-out {
123
123
  from {
124
- transform: translate3d(0px, 0px, 0px);
124
+ transform: translate3d(0, 0, 0);
125
125
  }
126
126
  to {
127
- transform: translate3d(${-this.layout.width}px, 0px, 0px);
127
+ transform: translate3d(${-this.layout.width}, 0, 0);
128
128
  }
129
129
  }`;
130
130
  let leftSlideInDefine = `@keyframes app-swiper-left-slide-in {
131
131
  from {
132
- transform: translate3d(${this.layout.width}px, 0px, 0px);
132
+ transform: translate3d(${this.layout.width}, 0, 0);
133
133
  }
134
134
  to {
135
- transform: translate3d(0px, 0px, 0px);
135
+ transform: translate3d(0, 0, 0);
136
136
  }
137
137
  }`;
138
138
  let rightSlideOutDefine = `@keyframes app-swiper-right-slide-out {
139
139
  from {
140
- transform: translate3d(0px, 0px, 0px);
140
+ transform: translate3d(0, 0, 0);
141
141
  }
142
142
  to {
143
- transform: translate3d(${this.layout.width}px, 0px, 0px);
143
+ transform: translate3d(${this.layout.width}, 0, 0);
144
144
  }
145
145
  }`;
146
146
  let rightSlideInDefine = `@keyframes app-swiper-right-slide-in {
147
147
  from {
148
- transform: translate3d(${-this.layout.width}px, 0px, 0px);
148
+ transform: translate3d(${-this.layout.width}, 0, 0);
149
149
  }
150
150
  to {
151
- transform: translate3d(0px, 0px, 0px);
151
+ transform: translate3d(0, 0, 0);
152
152
  }
153
153
  }`;
154
154
  this.styleShell.insertRule(leftSlideOutDefine);
@@ -7,13 +7,13 @@
7
7
  -->
8
8
  <script setup>
9
9
  import { MetroWidget, WholePageSlide, HORIZONTAL, EdgeDirection } from "jsview";
10
- import { ref, shallowRef } from "vue";
10
+ import { ref } from "vue";
11
11
  import { useFocusHub } from "jsview";
12
12
  import { simpleData } from "../data";
13
13
  import Item from "../Item.vue";
14
14
 
15
15
  const focusHub = useFocusHub();
16
- const mwRef = shallowRef(null);
16
+ const mwRef = ref(null);
17
17
 
18
18
  const wholePageSlide = new WholePageSlide();
19
19
  let innerData = simpleData.concat();
@@ -1,7 +1,7 @@
1
1
 
2
2
  <script setup>
3
3
  import { HORIZONTAL, MetroWidget, useFocusHub } from "jsview";
4
- import { ref, shallowRef } from "vue";
4
+ import { ref } from "vue";
5
5
  import Item from "./Item.vue";
6
6
 
7
7
  const props = defineProps({
@@ -11,7 +11,7 @@ const props = defineProps({
11
11
  onAction: Object,
12
12
  });
13
13
  const focusHub = useFocusHub();
14
- const mwRef = shallowRef(null);
14
+ const mwRef = ref(null);
15
15
 
16
16
  const measures = (item) => {
17
17
  return item;
@@ -7,7 +7,7 @@ import {
7
7
  } from "jsview";
8
8
  import Item from "./Item.vue";
9
9
  import borderImageUrl from "./assets/border.png";
10
- import { ref, shallowRef, onMounted } from "vue";
10
+ import { ref, onMounted } from "vue";
11
11
  import { useRouter, useRoute } from "vue-router";
12
12
 
13
13
  const router = useRouter();
@@ -77,7 +77,7 @@ const _onKeyDown = (ev) => {
77
77
  return false;
78
78
  };
79
79
 
80
- const myFocusWidget = shallowRef(null);
80
+ const myFocusWidget = ref(null);
81
81
 
82
82
  onMounted(() => {
83
83
  myFocusWidget.value.getFocusBlockRef().requestFocus();
@@ -137,7 +137,7 @@ onMounted(() => {
137
137
  :centerWidth="25"
138
138
  :borderOutset="14"
139
139
  :imageDspWidth="81"
140
- :animTime="0.2"
140
+ :animTime=0.2
141
141
  ></jsv-nine-patch>
142
142
  </div>
143
143
  </jsv-focus-block>
@@ -1,5 +1,5 @@
1
1
  <script setup>
2
- import { ref, shallowRef, computed } from "vue";
2
+ import { ref, computed } from "vue";
3
3
 
4
4
  const props = defineProps({
5
5
  data: Object,
@@ -40,7 +40,7 @@ const onBlur = () => {
40
40
  };
41
41
 
42
42
  const onClicked = () => {
43
- onsole.log(`item ${props.query.id} clicked`);
43
+ console.log(`item ${props.query.id} clicked`);
44
44
  };
45
45
 
46
46
  props.onAction.register("onFocus", onFocus);
@@ -58,12 +58,12 @@ props.onAction.register("onClick", onClicked);
58
58
  .focus {
59
59
  transform: scale3d(1.05, 1.05, 1);
60
60
  transition: transform 0.25s linear;
61
- font-size: 30px;
61
+ font-size: 30;
62
62
  }
63
63
 
64
64
  .blur {
65
65
  transform: scale3d(1, 1, 1);
66
66
  transition: transform 0.25s linear;
67
- font-size: 30px;
67
+ font-size: 30;
68
68
  }
69
- </style>
69
+ </style>
package/Preload/App.vue CHANGED
@@ -11,7 +11,7 @@ import awesome from "./images/awesomeface.png";
11
11
  import cat from "./images/cat.jpg";
12
12
  import { data } from "./data.js";
13
13
  import Item from "./Item.vue";
14
- import { ref, shallowRef } from "vue";
14
+ import { ref } from "vue";
15
15
  import { useRouter } from "vue-router";
16
16
 
17
17
  const name = "/preload";
@@ -81,8 +81,8 @@ downloadInfo = [
81
81
  <div
82
82
  :style="{
83
83
  textAlign: 'center',
84
- fontSize: '30px',
85
- lineHeight: '50px',
84
+ fontSize: 30,
85
+ lineHeight: 50,
86
86
  color: '#ffffff',
87
87
  left: 100,
88
88
  top: 20,
@@ -118,7 +118,7 @@ downloadInfo = [
118
118
  top: 350,
119
119
  width: 800,
120
120
  height: 800,
121
- fontSize: '30px',
121
+ fontSize: 30,
122
122
  color: '#000000',
123
123
  }"
124
124
  >
@@ -132,4 +132,4 @@ downloadInfo = [
132
132
  :onPreloading="_onPreloading"
133
133
  />
134
134
  </jsv-focus-block>
135
- </template>
135
+ </template>
package/Preload/Item.vue CHANGED
@@ -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
  data: Object,
5
5
  query: Object,
@@ -1,6 +1,6 @@
1
1
  <script setup>
2
2
  import { JsvQrcode } from "jsview";
3
- import { ref, shallowRef } from "vue";
3
+ import { ref } from "vue";
4
4
  import { useRouter } from "vue-router";
5
5
 
6
6
  const router = useRouter();
@@ -37,8 +37,8 @@ const onKeyDown = (ev) => {
37
37
  <div
38
38
  :style="{
39
39
  textAlign: 'left',
40
- fontSize: '30px',
41
- lineHeight: '50px',
40
+ fontSize: 30,
41
+ lineHeight: 50,
42
42
  color: '#ffffff',
43
43
  left: 200 + 420,
44
44
  top: 100,
@@ -1,8 +1,8 @@
1
1
  <!--
2
2
  * @Author: ChenChanghua
3
3
  * @Date: 2022-10-24 13:19:41
4
- * @LastEditors: ChenChanghua
5
- * @LastEditTime: 2022-10-24 13:50:18
4
+ * @LastEditors: Please set LastEditors
5
+ * @LastEditTime: 2023-02-13 11:20:12
6
6
  * @Description: file content
7
7
  -->
8
8
  <script setup>
@@ -34,7 +34,7 @@ const style1 = {
34
34
  top: 0,
35
35
  width: 250,
36
36
  height: 250,
37
- borderRadius: "15px",
37
+ borderRadius: 15,
38
38
  };
39
39
 
40
40
  const style2 = {
@@ -42,7 +42,7 @@ const style2 = {
42
42
  top: 260,
43
43
  width: 250,
44
44
  height: 250,
45
- borderRadius: "15px",
45
+ borderRadius: 15,
46
46
  };
47
47
  </script>
48
48
  <template>
@@ -60,22 +60,22 @@ const style2 = {
60
60
 
61
61
  <div :style="{ left: 120, top: 0 }">
62
62
  <img alt="" :style="style1" :src="test4" />
63
- <img alt="" :style="style2" jsvImgScaledownTex :src="test4" />
63
+ <img alt="" :style="style2" data-jsv-img-scaledown-tex :src="test4" />
64
64
  </div>
65
65
 
66
66
  <div :style="{ left: 380, top: 0 }">
67
67
  <img alt="" :style="style1" :src="test1" />
68
- <img alt="" :style="style2" jsvImgScaledownTex :src="test1" />
68
+ <img alt="" :style="style2" data-jsv-img-scaledown-tex :src="test1" />
69
69
  </div>
70
70
 
71
71
  <div :style="{ left: 640, top: 0 }">
72
72
  <img alt="" :style="style1" :src="test2" />
73
- <img alt="" :style="style2" jsvImgScaledownTex :src="test2" />
73
+ <img alt="" :style="style2" data-jsv-img-scaledown-tex :src="test2" />
74
74
  </div>
75
75
 
76
76
  <div :style="{ left: 900, top: 0 }">
77
77
  <img alt="" :style="style1" :src="test3" />
78
- <img alt="" :style="style2" jsvImgScaledownTex :src="test3" />
78
+ <img alt="" :style="style2" data-jsv-img-scaledown-tex :src="test3" />
79
79
  </div>
80
80
  </div>
81
81
  </div>
@@ -96,7 +96,7 @@ const style2 = {
96
96
  width: 100;
97
97
  height: 200;
98
98
  color: #ffffff;
99
- font-size: 25px;
99
+ font-size: 25;
100
100
  }
101
101
  .top0 {
102
102
  top: 0;
package/SoundPool/App.vue CHANGED
@@ -1,16 +1,14 @@
1
1
  <!--
2
2
  * @Author: ChenChanghua
3
3
  * @Date: 2022-01-25 09:56:46
4
- * @LastEditors: ChenChanghua
5
- * @LastEditTime: 2022-07-08 18:09:10
6
- * @Description: file content
4
+ * @LastEditors: Please set LastEditors
7
5
  -->
8
6
  <script setup>
9
7
  import coin from "./coin.mp3";
10
8
  import lose from "./lose.mp3";
11
9
  import bgmusic from "./bgmusic.mp3";
12
10
  import { JsvSoundPool, jJsvRuntimeBridge } from "jsview";
13
- import { onMounted, onBeforeUnmount, shallowRef } from "vue";
11
+ import { onMounted, onBeforeUnmount, shallowRef, toRaw } from "vue";
14
12
  import { useRouter } from "vue-router";
15
13
 
16
14
  const router = useRouter();
@@ -47,13 +45,12 @@ const _onKeyDown = (ev) => {
47
45
  }
48
46
  break;
49
47
  case 13:
50
- bgm.value?.play();
48
+ toRaw(bgm.value)?.play();
51
49
  break;
52
50
  }
53
51
  return true;
54
52
  };
55
53
  soundPool.request(`url(${coin})`, null, 1, (state, audioController) => {
56
- console.log("cchtest load succeed", audioController);
57
54
  if (state === 0) {
58
55
  coinController1 = audioController;
59
56
  }
@@ -101,8 +98,8 @@ onBeforeUnmount(() => {
101
98
  <div
102
99
  :style="{
103
100
  textAlign: 'center',
104
- fontSize: '30px',
105
- lineHeight: '50px',
101
+ fontSize: 30,
102
+ lineHeight: 50,
106
103
  color: '#ffffff',
107
104
  left: 100,
108
105
  top: 20,
@@ -131,4 +128,4 @@ onBeforeUnmount(() => {
131
128
  <jsv-audiotrack ref="bgm" :src="bgmusic" loop="loop" />
132
129
  </div>
133
130
  </jsv-focus-block>
134
- </template>
131
+ </template>
package/SprayView/App.vue CHANGED
@@ -172,9 +172,9 @@ export default {
172
172
  top: 20,
173
173
  width: 500,
174
174
  height: 100,
175
- lineHeight: '100px',
175
+ lineHeight: 100,
176
176
  textAlign: 'center',
177
- fontSize: '50px',
177
+ fontSize: 50,
178
178
  color: '#FFFFFF',
179
179
  }"
180
180
  >
@@ -194,13 +194,13 @@ export default {
194
194
  transform: translate3d(0, 0, 0);
195
195
  }
196
196
  25% {
197
- transform: translate3d(100px, 0, 0);
197
+ transform: translate3d(100, 0, 0);
198
198
  }
199
199
  50% {
200
200
  transform: translate3d(0, 0, 0);
201
201
  }
202
202
  75% {
203
- transform: translate3d(100px, 0, 0);
203
+ transform: translate3d(100, 0, 0);
204
204
  }
205
205
  100% {
206
206
  transform: translate3d(0, 0, 0);
@@ -221,52 +221,52 @@ export default {
221
221
  transform: translate3d(0, 0, 0);
222
222
  }
223
223
  25% {
224
- transform: translate3d(500px, 0, 0);
224
+ transform: translate3d(500, 0, 0);
225
225
  }
226
226
  50% {
227
- transform: translate3d(500px, 100px, 0);
227
+ transform: translate3d(500, 100, 0);
228
228
  }
229
229
  75% {
230
- transform: translate3d(0, 100px, 0);
230
+ transform: translate3d(0, 100, 0);
231
231
  }
232
232
  100% {
233
233
  transform: translate3d(0, 0, 0);
234
234
  }
235
235
  }
236
236
  .root {
237
- width: 1280px;
238
- height: 720;
237
+ width: 1920;
238
+ height: 1080;
239
239
  background-color: #334c4c;
240
240
  }
241
241
 
242
242
  .spray-ok {
243
- width: 100px;
244
- height: 100px;
243
+ width: 100;
244
+ height: 100;
245
245
  background-color: #00ff00;
246
246
  }
247
247
  .spray-rotate {
248
- width: 10px;
249
- height: 100px;
248
+ width: 10;
249
+ height: 100;
250
250
  background-color: #00ff00;
251
251
  animation: rotate 3s linear infinite;
252
252
  }
253
253
  .spray-move {
254
- width: 100px;
255
- height: 100px;
254
+ width: 100;
255
+ height: 100;
256
256
  background-color: #00ff00;
257
257
  animation: move-back-force 10s linear infinite;
258
258
  }
259
259
  .spray-cycle {
260
- width: 40px;
261
- height: 40px;
260
+ width: 40;
261
+ height: 40;
262
262
  animation: cycle 3s linear infinite;
263
263
  }
264
264
  .describe {
265
- left: 0px;
266
- top: 140px;
267
- width: 250px;
268
- height: 200px;
265
+ left: 0;
266
+ top: 140;
267
+ width: 250;
268
+ height: 200;
269
269
  color: #ffffff;
270
- font-size: 20px;
270
+ font-size: 20;
271
271
  }
272
272
  </style>
@@ -114,8 +114,8 @@ export default {
114
114
  <div
115
115
  :style="{
116
116
  textAlign: 'center',
117
- fontSize: '30px',
118
- lineHeight: '50px',
117
+ fontSize: 30,
118
+ lineHeight: 50,
119
119
  color: '#ffffff',
120
120
  left: 200,
121
121
  top: 100,
@@ -148,8 +148,8 @@ export default {
148
148
  <div
149
149
  :style="{
150
150
  textAlign: 'center',
151
- fontSize: '30px',
152
- lineHeight: '50px',
151
+ fontSize: 30,
152
+ lineHeight: 50,
153
153
  color: '#ffffff',
154
154
  left: 700,
155
155
  top: 100,
package/Swiper/App.vue CHANGED
@@ -3,13 +3,7 @@
3
3
  * @Date: 2023-02-10 14:45:39
4
4
  * @Description: file content
5
5
  -->
6
- <!--
7
- * @Author: ChenChanghua
8
- * @Date: 2022-01-19 09:57:00
9
- * @LastEditors: Please set LastEditors
10
- * @LastEditTime: 2023-02-10 15:42:05
11
- * @Description: file content
12
- -->
6
+
13
7
  <script setup>
14
8
  import { JsvSwiper } from "jsview";
15
9
  import { useRouter } from "vue-router";
@@ -67,7 +61,7 @@ const onKeyDown = (ev) => {
67
61
  }"
68
62
  :autoplayInterval="1000"
69
63
  :onChange="onChange"
70
- :reverseSwipe="true"
64
+ :reverseSwipe="false"
71
65
  ref="swiper"
72
66
  >
73
67
  <template #itemView="{ dataIndex }">
package/TextBox/App.vue CHANGED
@@ -22,7 +22,7 @@ import RenderLeft from "./RenderLeft.vue";
22
22
  import RenderRight from "./RenderRight.vue";
23
23
  import RenderCenter from "./RenderCenter.vue";
24
24
  import RenderOneLine from "./RenderOneLine.vue";
25
- import { ref, shallowRef } from "vue";
25
+ import { ref } from "vue";
26
26
  import { useRouter } from "vue-router";
27
27
 
28
28
  const router = useRouter();
@@ -80,7 +80,6 @@ const onBlur = () => {
80
80
  onBlur: onBlur,
81
81
  }"
82
82
  >
83
- <div :style="{width:1280, height:720, backgroundColor:'#000000'}"/>
84
83
  <div :style="{ top: offsetY, left: offsetX }">
85
84
  <RenderLeft :text="text" :moveCount="moveCount" />
86
85
  <RenderRight :text="text" />
@@ -17,9 +17,9 @@ export default {
17
17
  top: -50,
18
18
  width: 400,
19
19
  height: 50,
20
- fontSize: '20px',
20
+ fontSize: 20,
21
21
  textAlign: 'left',
22
- lineHeight: '50px',
22
+ lineHeight: 50,
23
23
  backgroundColor: '#00ff00',
24
24
  }"
25
25
  >
@@ -33,9 +33,9 @@ export default {
33
33
  width: 400,
34
34
  height: 300,
35
35
  backgroundColor: 'rgba(255,255,0,0.5)',
36
- fontSize: '30px',
36
+ fontSize: 30,
37
37
  textAlign: 'center',
38
- lineHeight: '40px',
38
+ lineHeight: 40,
39
39
  }"
40
40
  >
41
41
  {{ `[TC]${text}` }}
@@ -46,9 +46,9 @@ export default {
46
46
  top: -50,
47
47
  width: 400,
48
48
  height: 50,
49
- fontSize: '20px',
49
+ fontSize: 20,
50
50
  textAlign: 'left',
51
- lineHeight: '50px',
51
+ lineHeight: 50,
52
52
  backgroundColor: '#00ff00',
53
53
  }"
54
54
  >
@@ -62,9 +62,9 @@ export default {
62
62
  width: 400,
63
63
  height: 300,
64
64
  backgroundColor: 'rgba(255,255,0,0.5)',
65
- fontSize: '30px',
65
+ fontSize: 30,
66
66
  textAlign: 'center',
67
- lineHeight: '40px',
67
+ lineHeight: 40,
68
68
  }"
69
69
  :enableLatex="true"
70
70
  >
@@ -76,9 +76,9 @@ export default {
76
76
  top: -50,
77
77
  width: 400,
78
78
  height: 50,
79
- fontSize: '20px',
79
+ fontSize: 20,
80
80
  textAlign: 'left',
81
- lineHeight: '50px',
81
+ lineHeight: 50,
82
82
  backgroundColor: '#00ff00',
83
83
  }"
84
84
  >
@@ -92,9 +92,9 @@ export default {
92
92
  width: 400,
93
93
  height: 300,
94
94
  backgroundColor: 'rgba(255,255,0,0.5)',
95
- fontSize: '30px',
95
+ fontSize: 30,
96
96
  textAlign: 'center',
97
- lineHeight: '40px',
97
+ lineHeight: 40,
98
98
  }"
99
99
  >
100
100
  {{ `[BC]${text}` }}
@@ -106,9 +106,9 @@ export default {
106
106
  top: -50,
107
107
  width: 500,
108
108
  height: 50,
109
- fontSize: '20px',
109
+ fontSize: 20,
110
110
  textAlign: 'left',
111
- lineHeight: '50px',
111
+ lineHeight: 50,
112
112
  backgroundColor: '#00ff00',
113
113
  }"
114
114
  >
@@ -122,9 +122,9 @@ export default {
122
122
  width: 500,
123
123
  height: 300,
124
124
  backgroundColor: 'rgba(255,255,0,0.5)',
125
- fontSize: '30px',
125
+ fontSize: 30,
126
126
  textAlign: 'center',
127
- lineHeight: '80px',
127
+ lineHeight: 80,
128
128
  }"
129
129
  >
130
130
  {{ `[MC]${text}` }}
@@ -17,9 +17,9 @@ export default {
17
17
  top: -50,
18
18
  width: 400,
19
19
  height: 50,
20
- fontSize: '20px',
20
+ fontSize: 20,
21
21
  textAlign: 'left',
22
- lineHeight: '50px',
22
+ lineHeight: 50,
23
23
  backgroundColor: '#00ff00',
24
24
  }"
25
25
  >
@@ -33,9 +33,9 @@ export default {
33
33
  width: 400,
34
34
  height: 300,
35
35
  backgroundColor: 'rgba(255,255,0,0.5)',
36
- fontSize: '30px',
36
+ fontSize: 30,
37
37
  textAlign: 'left',
38
- lineHeight: '40px',
38
+ lineHeight: 40,
39
39
  }"
40
40
  >
41
41
  {{ `测试文字变化能引起刷新: [${moveCount}]\n[TL]${text}` }}
@@ -46,9 +46,9 @@ export default {
46
46
  top: -50,
47
47
  width: 400,
48
48
  height: 50,
49
- fontSize: '20px',
49
+ fontSize: 20,
50
50
  textAlign: 'left',
51
- lineHeight: '50px',
51
+ lineHeight: 50,
52
52
  backgroundColor: '#00ff00',
53
53
  }"
54
54
  >
@@ -62,9 +62,9 @@ export default {
62
62
  width: 400,
63
63
  height: 300,
64
64
  backgroundColor: 'rgba(255,255,0,0.5)',
65
- fontSize: '30px',
65
+ fontSize: 30,
66
66
  textAlign: 'left',
67
- lineHeight: '40px',
67
+ lineHeight: 40,
68
68
  }"
69
69
  >
70
70
  {{ `[ML]${text}` }}
@@ -75,9 +75,9 @@ export default {
75
75
  top: -50,
76
76
  width: 400,
77
77
  height: 50,
78
- fontSize: '20px',
78
+ fontSize: 20,
79
79
  textAlign: 'left',
80
- lineHeight: '50px',
80
+ lineHeight: 50,
81
81
  backgroundColor: '#00ff00',
82
82
  }"
83
83
  >
@@ -91,9 +91,9 @@ export default {
91
91
  width: 400,
92
92
  height: 300,
93
93
  backgroundColor: 'rgba(255,255,0,0.5)',
94
- fontSize: '30px',
94
+ fontSize: 30,
95
95
  textAlign: 'left',
96
- lineHeight: '40px',
96
+ lineHeight: 40,
97
97
  }"
98
98
  >
99
99
  {{ `[BL]${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: 'left',
125
- lineHeight: '80px',
125
+ lineHeight: 80,
126
126
  }"
127
127
  className="test"
128
128
  >