@shijiu/jsview-vue-samples 2.3.151-test.0 → 3.0.0-test.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (228) hide show
  1. package/ABImageAlt/App.vue +114 -0
  2. package/ABImageAlt/Item.vue +133 -0
  3. package/{MetroWidgetDemos/SkeletonDiagram/assets/imageList.json → ABImageAlt/assets/imageList.js} +9 -1
  4. package/ABImageAlt/data.js +17 -0
  5. package/AI_Check_Rules.txt +5 -0
  6. package/AnimPicture/App.vue +20 -10
  7. package/ApicSwitch/App.vue +90 -0
  8. package/ApicSwitch/TabItem.vue +65 -0
  9. package/ApicSwitch/WebpShow.vue +24 -0
  10. package/ApicSwitch/data.js +50 -0
  11. package/Basic/AI_skills_update.md +1 -0
  12. package/Basic/components/div/ColorFormatTest.vue +93 -0
  13. package/Basic/components/div/DivRadius.vue +97 -15
  14. package/Basic/components/div/DivTag3Group.vue +30 -0
  15. package/Basic/components/img/ImageType.vue +65 -0
  16. package/Basic/components/panel/Panel2.vue +13 -1
  17. package/Basic/components/text/TextAlign.vue +7 -1
  18. package/BlobLoadTest/App.vue +201 -0
  19. package/BreakLinesApi/App.vue +82 -0
  20. package/CanvasDrawChart/App.vue +11 -0
  21. package/CanvasDrawChart/Graph1.vue +104 -0
  22. package/CanvasDrawChart/Graph2.vue +115 -0
  23. package/CssPreprocessor/Scss/PanelData.js +1 -1
  24. package/CssPreprocessor/Scss/components/scss-group4/ScssMaps.vue +4 -3
  25. package/CssPreprocessor/Scss/components/scss-group5/ScssImporting.vue +2 -2
  26. package/DemoForOperator/Bounce/FreeMoveBuilder.js +1 -1
  27. package/DemoForOperator/Firework1/App.vue +12 -1
  28. package/DemoForOperator/Firework1/Fireworks.vue +18 -0
  29. package/DemoForOperator/FlipPage/FlipPage/FlipPage.vue +1 -0
  30. package/DemoForOperator/Focus/Alpha/Item.vue +1 -0
  31. package/DemoForOperator/Focus/Light/Item.vue +1 -0
  32. package/DemoForOperator/Focus/Normal/Item.vue +1 -0
  33. package/DemoForOperator/FrameShadow/FrameShadow.vue +1 -1
  34. package/DemoForOperator/Genie/App.vue +20 -6
  35. package/DemoForOperator/Genie/App2.vue +61 -0
  36. package/DemoForOperator/Genie/geniePakcer/GenieImage.vue +298 -0
  37. package/DemoForOperator/Genie/geniePakcer/GenieSlot.vue +292 -0
  38. package/DemoForOperator/Genie/geniePakcer/GenieTools.ts +463 -0
  39. package/DemoForOperator/Jigsaw/JigsawFull.vue +12 -7
  40. package/DemoForOperator/Jigsaw/JigsawSingle.vue +13 -7
  41. package/DemoForOperator/LongChatBox/App.vue +13 -13
  42. package/DemoForOperator/LongChatBox/Bubble.vue +78 -66
  43. package/DemoForOperator/LongChatBox/LongChat.vue +68 -36
  44. package/DemoForOperator/LongChatBox/testData.js +7 -44
  45. package/DemoForOperator/Sound/Bounce/FreeMoveBuilder.js +1 -1
  46. package/DemoForOperator/routeList.js +8 -2
  47. package/DemoHomepage/App.vue +74 -1
  48. package/DemoHomepage/components/BodyFrame.vue +1 -0
  49. package/DemoHomepage/components/TabFrame.vue +1 -1
  50. package/DemoHomepage/router.js +723 -160
  51. package/DemoHomepage/views/Homepage.vue +60 -2
  52. package/DemoHomepage/watchTest.vue +50 -0
  53. package/FilterDemo/AnimatePic.vue +63 -17
  54. package/FilterDemo/App.vue +3 -3
  55. package/FlexCellDemo/AI_skills_update.md +4 -0
  56. package/FlexCellDemo/TestFrame1.vue +12 -2
  57. package/FlexCellDemo/TestFrame2.vue +10 -1
  58. package/FlexCellDemo/TestFrame3.vue +114 -59
  59. package/FpsLimit/App.vue +102 -0
  60. package/FreeMoveChildAttract/App.vue +18 -8
  61. package/FreeMoveLink/App.vue +49 -20
  62. package/Hover/App.vue +144 -0
  63. package/HttpRequestSSE/SSEReader.js +200 -0
  64. package/ImpactStop/App.vue +2 -2
  65. package/Input/FullKeyboard.vue +3 -3
  66. package/Input/InputPanel.vue +63 -3
  67. package/JsvLine/App.vue +53 -38
  68. package/LatexDemo/App.vue +3 -1
  69. package/LatexFormula/App.vue +196 -0
  70. package/LongImage/App.vue +1 -1
  71. package/LongImage/LongImageScroll.vue +100 -47
  72. package/LongImage/Scroll.vue +28 -9
  73. package/LongText/LongTextScroll.vue +1 -0
  74. package/Markdown/App.vue +36 -0
  75. package/Markdown/Bubble.vue +109 -0
  76. package/Markdown/LongChat.vue +206 -0
  77. package/Markdown/Markdown/Markdown.vue +156 -0
  78. package/Markdown/Markdown/index.ts +1 -0
  79. package/Markdown/Markdown/marked/LICENSE.md +45 -0
  80. package/Markdown/Markdown/marked/index.ts +2 -0
  81. package/Markdown/Markdown/marked/marked.d.ts +756 -0
  82. package/Markdown/Markdown/marked/marked.js +71 -0
  83. package/Markdown/Markdown/parser.ts +1365 -0
  84. package/Markdown/data.js +581 -0
  85. package/MetroWidgetDemos/AI_skills_update.md +2 -0
  86. package/MetroWidgetDemos/ListExpand/ChildItem.vue +130 -0
  87. package/MetroWidgetDemos/ListExpand/ExpandItem.vue +375 -0
  88. package/MetroWidgetDemos/ListExpand/ExpandItem1.vue +403 -0
  89. package/MetroWidgetDemos/ListExpand/assets/arrow-down.png +0 -0
  90. package/MetroWidgetDemos/ListExpand/assets/up-arrow.png +0 -0
  91. package/MetroWidgetDemos/ListExpand/components/WidgetListHandler.vue +150 -0
  92. package/MetroWidgetDemos/ListExpand/index.vue +88 -0
  93. package/MetroWidgetDemos/ListExpand/list.js +2421 -0
  94. package/MetroWidgetDemos/RefreshDemo/App.vue +14 -1
  95. package/MetroWidgetDemos/RenderAccelerate/App.vue +142 -0
  96. package/MetroWidgetDemos/RenderAccelerate/AppPage.vue +78 -0
  97. package/MetroWidgetDemos/RenderAccelerate/AppTab.vue +62 -0
  98. package/MetroWidgetDemos/RenderAccelerate/ContentItem.vue +409 -0
  99. package/MetroWidgetDemos/RenderAccelerate/Item.vue +67 -0
  100. package/MetroWidgetDemos/RenderAccelerate/TabItem.vue +100 -0
  101. package/MetroWidgetDemos/RenderAccelerate/ViewSwiper.vue +215 -0
  102. package/MetroWidgetDemos/RenderAccelerate/WidgetItem.vue +107 -0
  103. package/MetroWidgetDemos/SkeletonDiagram/App.vue +35 -8
  104. package/MetroWidgetDemos/SkeletonDiagram/Item.vue +11 -2
  105. package/MetroWidgetDemos/SkeletonDiagram/assets/imageList.js +245 -0
  106. package/MetroWidgetDemos/SkeletonDiagram/data.js +3 -3
  107. package/MetroWidgetDemos/SpatialNav/App.vue +177 -0
  108. package/MetroWidgetDemos/SpatialNav/Buttons.vue +83 -0
  109. package/MetroWidgetDemos/SpatialNav/CustomFocus.vue +57 -0
  110. package/MetroWidgetDemos/{TripleWidget → SpatialNav}/Item.vue +1 -8
  111. package/MetroWidgetDemos/{TripleWidget/WidgetItem.vue → SpatialNav/SimpleFloor.vue} +14 -45
  112. package/MetroWidgetDemos/SpatialNav/StepMw.vue +113 -0
  113. package/MetroWidgetDemos/SpatialNav/TabContent/TabContent.vue +185 -0
  114. package/MetroWidgetDemos/SpatialNav/TripleSection/TripleSection.vue +69 -0
  115. package/MetroWidgetDemos/SpatialNav/TripleSection/WidgetItem.vue +100 -0
  116. package/MetroWidgetDemos/SpatialNav/TvSection/List.vue +75 -0
  117. package/MetroWidgetDemos/SpatialNav/TvSection/TvSection.vue +91 -0
  118. package/MetroWidgetDemos/basic2/App.vue +407 -0
  119. package/MetroWidgetDemos/basic2/Item.vue +68 -0
  120. package/MetroWidgetDemos/direction/App.vue +22 -0
  121. package/MetroWidgetDemos/gazeFocusDiff/App.vue +126 -0
  122. package/MetroWidgetDemos/gazeFocusDiff/Item.vue +87 -0
  123. package/MetroWidgetDemos/minimalUsage/App.vue +66 -0
  124. package/MetroWidgetDemos/minimalUsage/Item.vue +54 -0
  125. package/MetroWidgetDemos/ninePatchFocusPage/App.vue +22 -7
  126. package/MetroWidgetDemos/ninePatchFocusPage/Item.vue +7 -5
  127. package/MetroWidgetDemos/ninePatchFocusPage/focusConstants.js +2 -0
  128. package/MetroWidgetDemos/routeList.js +203 -12
  129. package/MetroWidgetDemos/slideSetting/App.vue +288 -99
  130. package/MetroWidgetDemos/zIndex/App.vue +117 -0
  131. package/MetroWidgetDemos/zIndex/Item.vue +61 -0
  132. package/NinePatchTester/App.vue +24 -31
  133. package/PreDecode/App.vue +140 -0
  134. package/ReactiveTest/App.vue +115 -0
  135. package/ReactiveTest/Item.vue +92 -0
  136. package/ReactiveTest/assets/imageList.js +245 -0
  137. package/ReactiveTest/component/TestSmartDiv.vue +50 -0
  138. package/ReactiveTest/component/TestSmartDivSrcList.vue +74 -0
  139. package/ReactiveTest/component/TestSmartImage.vue +46 -0
  140. package/ReactiveTest/component/TestSmartImageSrcList.vue +90 -0
  141. package/ReactiveTest/component/TestSmartImageStyle.vue +41 -0
  142. package/ReactiveTest/data.js +49 -0
  143. package/ScreenToBlob/App.vue +250 -0
  144. package/SecTorTest/App.vue +9 -3
  145. package/SpringFestival/SpringFestivalScene/FreeMoveBuilder.js +3 -3
  146. package/SyncDecode/App.vue +137 -0
  147. package/TextSizeLimit/App.vue +211 -0
  148. package/TransitPage/App.vue +2 -0
  149. package/assets/logo.png +0 -0
  150. package/package.json +5 -5
  151. package/DemoForOperator/Genie/geniePakcer/Genie.vue +0 -741
  152. package/DemoForOperator/LongChatBox/TextManager.ts +0 -147
  153. package/DemoForOperator/LongChatBox/VirtualList.vue +0 -298
  154. package/DemoForOperator/LongChatBox/utile.js +0 -331
  155. package/DivMetroPerformance/App.vue +0 -157
  156. package/DivMetroPerformance/Item.vue +0 -58
  157. package/DivMetroPerformance/assets/bg.jpg +0 -0
  158. package/DivMetroPerformance/assets/coupon_content.png +0 -0
  159. package/DivMetroPerformance/assets/coupon_left.png +0 -0
  160. package/DivMetroPerformance/assets/coupon_mid.png +0 -0
  161. package/DivMetroPerformance/assets/coupon_right.png +0 -0
  162. package/DivMetroPerformance/assets/focus_border.png +0 -0
  163. package/DivMetroPerformance/assets/holder_logo.png +0 -0
  164. package/DivMetroPerformance/assets/jrbm.png +0 -0
  165. package/DivMetroPerformance/assets/line_left.png +0 -0
  166. package/DivMetroPerformance/assets/line_mid.png +0 -0
  167. package/DivMetroPerformance/assets/line_right.png +0 -0
  168. package/DivMetroPerformance/assets/loading.png +0 -0
  169. package/DivMetroPerformance/assets/logo.png +0 -0
  170. package/DivMetroPerformance/assets/mcjx.png +0 -0
  171. package/DivMetroPerformance/assets/tao.png +0 -0
  172. package/DivMetroPerformance/assets/tmall.png +0 -0
  173. package/DivMetroPerformance/border.png +0 -0
  174. package/DivMetroPerformance/components/ContentItem.vue +0 -384
  175. package/DivMetroPerformance/components/MyTab.vue +0 -129
  176. package/DivMetroPerformance/data.js +0 -124
  177. package/DivMetroPerformance/utils/GridItem.vue +0 -28
  178. package/DivMetroPerformance/utils/GridPlate.vue +0 -85
  179. package/MediaDemo/App.vue +0 -127
  180. package/MediaDemo/assets/audio-poster.png +0 -0
  181. package/MediaDemo/components/Button.vue +0 -69
  182. package/MediaDemo/components/Controllor.vue +0 -286
  183. package/MediaDemo/components/StatusBar.vue +0 -100
  184. package/MediaDemo/components/frames/AudioFrame.vue +0 -39
  185. package/MediaDemo/components/frames/AudioPoster.vue +0 -48
  186. package/MediaDemo/components/frames/MediaFrame.vue +0 -153
  187. package/MediaDemo/components/frames/VideoFrame.vue +0 -39
  188. package/MetroWidgetDemos/TripleWidget/App.vue +0 -87
  189. package/MetroWidgetDemos/TripleWidget/SWidgetItem.vue +0 -99
  190. package/Parkour/App.vue +0 -13
  191. package/Parkour/Common/Context.js +0 -21
  192. package/Parkour/Common/MatchmanInfo.js +0 -62
  193. package/Parkour/Common/Random.js +0 -61
  194. package/Parkour/Common/Sound.js +0 -50
  195. package/Parkour/appConfig/HOW_TO_CONFIG.md +0 -20
  196. package/Parkour/appConfig/app.config.mjs +0 -5
  197. package/Parkour/appConfig/app_sign_private_key_sample.crt +0 -28
  198. package/Parkour/appConfig/app_sign_public_key_sample.pem +0 -9
  199. package/Parkour/appConfig/jsview.config.mjs +0 -39
  200. package/Parkour/assets/Bgimages/bg1.png +0 -0
  201. package/Parkour/assets/Bgimages/bg2.png +0 -0
  202. package/Parkour/assets/Bgimages/bg3.png +0 -0
  203. package/Parkour/assets/Bgimages/bg4.png +0 -0
  204. package/Parkour/assets/Bgimages/bg5.png +0 -0
  205. package/Parkour/assets/audio/jump.mp3 +0 -0
  206. package/Parkour/assets/audio/lose.mp3 +0 -0
  207. package/Parkour/assets/role_skin1/fail.json +0 -44
  208. package/Parkour/assets/role_skin1/fail.png +0 -0
  209. package/Parkour/assets/role_skin1/jump_down.json +0 -20
  210. package/Parkour/assets/role_skin1/jump_down.png +0 -0
  211. package/Parkour/assets/role_skin1/jump_up.json +0 -44
  212. package/Parkour/assets/role_skin1/jump_up.png +0 -0
  213. package/Parkour/assets/role_skin1/roll.json +0 -44
  214. package/Parkour/assets/role_skin1/roll.png +0 -0
  215. package/Parkour/assets/role_skin1/run.json +0 -52
  216. package/Parkour/assets/role_skin1/run.png +0 -0
  217. package/Parkour/components/Backdrop.vue +0 -61
  218. package/Parkour/components/GameSence.vue +0 -602
  219. package/Parkour/components/Matchman.vue +0 -85
  220. package/ThrowMoveDemo/AccelerateDemo.vue +0 -85
  221. package/ThrowMoveDemo/App.vue +0 -104
  222. package/ThrowMoveDemo/LRParabolicDemo.vue +0 -101
  223. package/ThrowMoveDemo/TargetDemo.vue +0 -87
  224. package/ThrowMoveDemo/UDParabolicDemo.vue +0 -92
  225. /package/{AnimPicture/assets → assets}/animated_webp.webp +0 -0
  226. /package/{AnimPicture/assets → assets}/ball_3.webp +0 -0
  227. /package/{AnimPicture/assets → assets}/girl_run.gif +0 -0
  228. /package/{AnimPicture/assets → assets}/quan.webp +0 -0
@@ -1,384 +0,0 @@
1
- <!--
2
- * @Author: ChenChanghua
3
- * @Date: 2021-06-10 14:17:17
4
- * @LastEditors: ChenChanghua
5
- * @LastEditTime: 2021-10-18 14:14:05
6
- * @Description: file content
7
- -->
8
- <script>
9
- import { Options, Vue, setup } from "vue-class-component";
10
- import posterHolder from "../assets/holder_logo.png";
11
- import couponLeft from "../assets/coupon_left.png";
12
- import couponRight from "../assets/coupon_right.png";
13
- import couponMid from "../assets/coupon_mid.png";
14
- import borderLeft from "../assets/line_left.png";
15
- import borderMid from "../assets/line_mid.png";
16
- import borderRight from "../assets/line_right.png";
17
-
18
- @Options({
19
- props: {
20
- data: Object,
21
- },
22
- })
23
- class ContentItem extends Vue {
24
- constructor(props) {
25
- super(props);
26
- // console.log("cchtest2 ContentItem constructor " + new Date().getTime());
27
- this.setup = setup(() => {
28
- return {
29
- posterHolder,
30
- couponLeft,
31
- couponMid,
32
- couponRight,
33
- borderLeft,
34
- borderMid,
35
- borderRight,
36
- };
37
- });
38
- }
39
-
40
- created() {}
41
-
42
- get savePrizeWidth() {
43
- return 10 * this.data.savePrize.length + 26;
44
- }
45
-
46
- get soldTotalWidth() {
47
- let width = 44 + 22; //base width;
48
- if (this.data.soldTotal >= 10000) {
49
- let text = parseInt(this.data.soldTotal / 10000) + "";
50
- width += text.length * 12 + 22;
51
- } else {
52
- width += (this.data.soldTotal + "").length * 12;
53
- }
54
- return width;
55
- }
56
-
57
- get soldTotalText() {
58
- let text = "";
59
- if (this.data.soldTotal >= 10000) {
60
- text = parseInt(this.data.soldTotal / 10000) + "万";
61
- } else {
62
- text = this.data.soldTotal;
63
- }
64
- return text;
65
- }
66
- }
67
-
68
- export default ContentItem;
69
- </script>
70
-
71
- <template>
72
- <div class="frame-background">
73
- <div class="poster-holder">
74
- <div
75
- :style="{
76
- width: 107,
77
- height: 23,
78
- left: 53,
79
- top: 95,
80
- backgroundImage: setup.posterHolder,
81
- }"
82
- />
83
- </div>
84
- <div
85
- class="poster"
86
- :style="{
87
- backgroundImage: `url(${data.pictUrl})`,
88
- }"
89
- />
90
- <div class="title-font title-layout">
91
- {{ data.index + data.name }}
92
- </div>
93
- <div
94
- :style="{
95
- height: 24,
96
- left: 13,
97
- top: 256,
98
- width: savePrizeWidth,
99
- }"
100
- >
101
- <div
102
- :style="{ width: 5, height: 24, backgroundImage: setup.couponLeft }"
103
- />
104
- <div
105
- :style="{
106
- left: 5,
107
- width: savePrizeWidth - 11,
108
- height: 24,
109
- backgroundImage: setup.couponMid,
110
- }"
111
- />
112
- <div
113
- :style="{
114
- left: savePrizeWidth - 6,
115
- width: 5,
116
- height: 24,
117
- backgroundImage: setup.couponRight,
118
- }"
119
- />
120
- <div
121
- class="ticket-text"
122
- :style="{
123
- width: savePrizeWidth,
124
- }"
125
- >
126
- {{ `${data.savePrize}元券` }}
127
- </div>
128
- </div>
129
-
130
- <div
131
- :style="{
132
- top: 256,
133
- left: 27 + savePrizeWidth,
134
- }"
135
- >
136
- <div
137
- :style="{ width: 7, height: 25, backgroundImage: setup.borderLeft }"
138
- />
139
- <div
140
- :style="{
141
- left: 7,
142
- width: soldTotalWidth - 13,
143
- height: 25,
144
- backgroundImage: setup.borderMid,
145
- }"
146
- />
147
- <div
148
- :style="{
149
- left: soldTotalWidth - 7,
150
- width: 7,
151
- height: 25,
152
- backgroundImage: setup.borderRight,
153
- }"
154
- />
155
- <div
156
- class="sold-text"
157
- :style="{
158
- width: soldTotalWidth,
159
- }"
160
- >
161
- {{ `已售${soldTotalText}件` }}
162
- </div>
163
- </div>
164
-
165
- <div
166
- :style="{
167
- height: 24,
168
- left: 13,
169
- top: 270,
170
- width: savePrizeWidth,
171
- }"
172
- >
173
- <div
174
- :style="{ width: 5, height: 24, backgroundImage: setup.couponLeft }"
175
- />
176
- <div
177
- :style="{
178
- left: 5,
179
- width: savePrizeWidth - 11,
180
- height: 24,
181
- backgroundImage: setup.couponMid,
182
- }"
183
- />
184
- <div
185
- :style="{
186
- left: savePrizeWidth - 6,
187
- width: 5,
188
- height: 24,
189
- backgroundImage: setup.couponRight,
190
- }"
191
- />
192
- <div
193
- class="ticket-text"
194
- :style="{
195
- width: savePrizeWidth,
196
- }"
197
- >
198
- {{ `${data.savePrize}元券` }}
199
- </div>
200
- </div>
201
- <div
202
- :style="{
203
- top: 270,
204
- left: 27 + savePrizeWidth,
205
- }"
206
- >
207
- <div
208
- :style="{ width: 7, height: 25, backgroundImage: setup.borderLeft }"
209
- />
210
- <div
211
- :style="{
212
- left: 7,
213
- width: soldTotalWidth - 13,
214
- height: 25,
215
- backgroundImage: setup.borderMid,
216
- }"
217
- />
218
- <div
219
- :style="{
220
- left: soldTotalWidth - 7,
221
- width: 7,
222
- height: 25,
223
- backgroundImage: setup.borderRight,
224
- }"
225
- />
226
- <div
227
- class="sold-text"
228
- :style="{
229
- width: soldTotalWidth,
230
- }"
231
- >
232
- {{ `已售${soldTotalText}件` }}
233
- </div>
234
- </div>
235
-
236
- <div
237
- :style="{
238
- height: 24,
239
- left: 13,
240
- top: 280,
241
- width: savePrizeWidth,
242
- }"
243
- >
244
- <div
245
- :style="{ width: 5, height: 24, backgroundImage: setup.couponLeft }"
246
- />
247
- <div
248
- :style="{
249
- left: 5,
250
- width: savePrizeWidth - 11,
251
- height: 24,
252
- backgroundImage: setup.couponMid,
253
- }"
254
- />
255
- <div
256
- :style="{
257
- left: savePrizeWidth - 6,
258
- width: 5,
259
- height: 24,
260
- backgroundImage: setup.couponRight,
261
- }"
262
- />
263
- <div
264
- class="ticket-text"
265
- :style="{
266
- width: savePrizeWidth,
267
- }"
268
- >
269
- {{ `${data.savePrize}元券` }}
270
- </div>
271
- </div>
272
- <div
273
- :style="{
274
- top: 280,
275
- left: 27 + savePrizeWidth,
276
- }"
277
- >
278
- <div
279
- :style="{ width: 7, height: 25, backgroundImage: setup.borderLeft }"
280
- />
281
- <div
282
- :style="{
283
- left: 7,
284
- width: soldTotalWidth - 13,
285
- height: 25,
286
- backgroundImage: setup.borderMid,
287
- }"
288
- />
289
- <div
290
- :style="{
291
- left: soldTotalWidth - 7,
292
- width: 7,
293
- height: 25,
294
- backgroundImage: setup.borderRight,
295
- }"
296
- />
297
- <div
298
- class="sold-text"
299
- :style="{
300
- width: soldTotalWidth,
301
- }"
302
- >
303
- {{ `已售${soldTotalText}件` }}
304
- </div>
305
- </div>
306
-
307
- <div class="prize-title-font prize-title-layout">券后</div>
308
- <div class="prize-font">
309
- {{ `¥${data.prize - data.savePrize}` }}
310
- </div>
311
- </div>
312
- </template>
313
-
314
- <style scoped>
315
- .frame-background {
316
- width: 213;
317
- height: 337;
318
- border-radius: 10 10 10 10;
319
- background-color: #f7f7f4;
320
- transition: transform 0.2s linear;
321
- }
322
-
323
- .poster-holder {
324
- width: 213;
325
- height: 213;
326
- border-radius: 10 10 0 0;
327
- background-color: #cfcac6;
328
- }
329
- .poster {
330
- width: 213;
331
- height: 213;
332
- border-radius: 7 7 0 0;
333
- }
334
-
335
- .title-font {
336
- font-size: 21;
337
- color: #73665c;
338
- line-height: 29;
339
- white-space: nowrap;
340
- text-overflow: ellipsis;
341
- text-align: center;
342
- }
343
- .title-layout {
344
- top: 221;
345
- left: 13;
346
- width: 193;
347
- height: 29;
348
- }
349
- .ticket-text {
350
- height: 24;
351
- color: #ffffff;
352
- font-size: 16;
353
- text-align: center;
354
- line-height: 24;
355
- }
356
- .sold-text {
357
- height: 25;
358
- color: #ff7a00;
359
- font-size: 20;
360
- text-align: center;
361
- line-height: 25;
362
- }
363
- .prize-title-layout {
364
- width: 35;
365
- height: 24;
366
- top: 296;
367
- left: 13;
368
- }
369
- .prize-title-font {
370
- color: #de2825;
371
- text-align: center;
372
- font-size: 17;
373
- line-height: 24;
374
- }
375
- .prize-font {
376
- top: 289;
377
- left: 53;
378
- width: 158; /*213 - 55*/
379
- height: 37;
380
- line-height: 37;
381
- font-size: 28;
382
- color: #de2825;
383
- }
384
- </style>
@@ -1,129 +0,0 @@
1
- <!--
2
- * @Author: ChenChanghua
3
- * @Date: 2021-09-29 16:13:35
4
- * @LastEditors: ChenChanghua
5
- * @LastEditTime: 2021-09-29 17:07:19
6
- * @Description: file content
7
- -->
8
- <script>
9
- import { ref } from "vue";
10
-
11
- export default {
12
- props: {
13
- name: String,
14
- onEdgeDown: Function,
15
- onItemFocus: Function,
16
- },
17
- setup() {
18
- let activeId = ref(0);
19
- let focused = ref(false);
20
- return {
21
- activeId,
22
- focused,
23
- };
24
- },
25
- computed: {
26
- tab1Class() {
27
- if (this.activeId == 0) {
28
- return this.focused
29
- ? "text-active item-focused"
30
- : "text-active item-normal";
31
- } else {
32
- return "text-normal item-normal";
33
- }
34
- },
35
- tab2Class() {
36
- if (this.activeId == 1) {
37
- return this.focused
38
- ? "text-active item-focused"
39
- : "text-active item-normal";
40
- } else {
41
- return "text-normal item-normal";
42
- }
43
- },
44
- tab3Class() {
45
- if (this.activeId == 2) {
46
- return this.focused
47
- ? "text-active item-focused"
48
- : "text-active item-normal";
49
- } else {
50
- return "text-normal item-normal";
51
- }
52
- },
53
- },
54
- methods: {
55
- onKeyDown(ev) {
56
- switch (ev.keyCode) {
57
- case 37:
58
- this.activeId--;
59
- if (this.activeId < 0) {
60
- this.activeId = 2;
61
- }
62
- this.onItemFocus(this.activeId);
63
- break;
64
- case 39:
65
- this.activeId++;
66
- if (this.activeId > 2) {
67
- this.activeId = 0;
68
- }
69
- this.onItemFocus(this.activeId);
70
- break;
71
- case 40:
72
- this.onEdgeDown();
73
- break;
74
- }
75
- },
76
- onFocus() {
77
- this.focused = true;
78
- },
79
- onBlur() {
80
- this.focused = false;
81
- },
82
- getOnAction() {
83
- return {
84
- onKeyDown: this.onKeyDown,
85
- onFocus: this.onFocus,
86
- onBlur: this.onBlur,
87
- };
88
- },
89
- },
90
- };
91
- </script>
92
-
93
- <template>
94
- <jsv-focus-block :name="name" :onAction="getOnAction()"></jsv-focus-block>
95
- <div :class="tab1Class">Tab1</div>
96
- <div :class="tab2Class" :style="{ left: 220 }">Tab2</div>
97
- <div :class="tab3Class" :style="{ left: 440 }">Tab3</div>
98
- </template>
99
-
100
- <style scoped>
101
- .text-normal {
102
- width: 200;
103
- height: 50;
104
- line-height: 50;
105
- color: #444444;
106
- font-size: 25;
107
- text-align: center;
108
- }
109
-
110
- .text-active {
111
- width: 200;
112
- height: 50;
113
- line-height: 50;
114
- color: #ffffff;
115
- font-size: 25;
116
- text-align: center;
117
- }
118
-
119
- .item-focused {
120
- width: 200;
121
- height: 50;
122
- background-color: #008080;
123
- }
124
- .item-normal {
125
- width: 200;
126
- height: 50;
127
- background-color: #87CECB;
128
- }
129
- </style>
@@ -1,124 +0,0 @@
1
- // const data = [
2
- // {
3
- // blocks: {
4
- // w: 200,
5
- // h: 160
6
- // },
7
- // focusable: true,
8
- // color: "#000022",
9
- // content: 0
10
- // },
11
- // {
12
- // blocks: {
13
- // w: 200,
14
- // h: 160
15
- // },
16
- // focusable: true,
17
- // color: "#003300",
18
- // content: 1
19
- // },
20
- // {
21
- // blocks: {
22
- // w: 200,
23
- // h: 160
24
- // },
25
- // focusable: true,
26
- // color: "#000044",
27
- // content: 2
28
- // },
29
- // {
30
- // blocks: {
31
- // w: 400,
32
- // h: 320
33
- // },
34
- // focusable: true,
35
- // color: "#000055",
36
- // content: 3
37
- // },
38
- // {
39
- // blocks: {
40
- // w: 200,
41
- // h: 160
42
- // },
43
- // focusable: true,
44
- // color: "#000066",
45
- // content: 4
46
- // },
47
- // {
48
- // blocks: {
49
- // w: 200,
50
- // h: 160
51
- // },
52
- // focusable: true,
53
- // color: "#0000CD",
54
- // content: 5
55
- // },
56
- // ];
57
-
58
- // let content = 6;
59
- // for (let i = 0; i < 10; i++) {
60
- // data.push({
61
- // blocks: {
62
- // w: 200,
63
- // h: 320
64
- // },
65
- // focusable: true,
66
- // color: "#000022",
67
- // content: content++
68
- // });
69
- // data.push({
70
- // blocks: {
71
- // w: 200,
72
- // h: 160
73
- // },
74
- // focusable: true,
75
- // color: "#003300",
76
- // content: content++
77
- // });
78
- // }
79
-
80
- let data1 = [];
81
-
82
- // 添加300个模拟数据
83
- for (let i = 0; i < 50; i++) {
84
- data1.push(Object.freeze({
85
- index: i,
86
- name: `商品:骆驼奶粉蛋白质粉,限时抢购,立刻发货,序号:${i}`,
87
- prize: `${Math.floor(Math.random() * 200) +
88
- 200}` /* 测试数据要保证比最高优惠券(300左右)要高 */,
89
- savePrize: `${i}`,
90
- soldTotal: `${Math.floor(Math.random() * 50000)}`,
91
- pictUrl:
92
- "https://cdn.release.qcast.cn/JsViewFrameworkTester/JsViewVueSampleResources/DivMetroPerformance/data/O1CN01Ab4vWz1izGAyRL1Yf_!!0-item_pic.jpg",
93
- }));
94
- }
95
-
96
- let data2 = [];
97
- for (let i = 0; i < 49; i++) {
98
- data2.push(Object.freeze({
99
- index: i,
100
- name: `商品:骆驼奶粉蛋白质粉,限时抢购,立刻发货,序号:${i}`,
101
- prize: `${Math.floor(Math.random() * 200) +
102
- 200}` /* 测试数据要保证比最高优惠券(300左右)要高 */,
103
- savePrize: `${i}`,
104
- soldTotal: `${Math.floor(Math.random() * 50000)}`,
105
- pictUrl:
106
- "https://cdn.release.qcast.cn/JsViewFrameworkTester/JsViewVueSampleResources/DivMetroPerformance/data/O1CN01Ab4vWz1izGAyRL1Yf_!!0-item_pic.jpg",
107
- }));
108
- }
109
-
110
- let data3 = [];
111
- for (let i = 0; i < 48; i++) {
112
- data3.push(Object.freeze({
113
- index: i,
114
- name: `商品:骆驼奶粉蛋白质粉,限时抢购,立刻发货,序号:${i}`,
115
- prize: `${Math.floor(Math.random() * 200) +
116
- 200}` /* 测试数据要保证比最高优惠券(300左右)要高 */,
117
- savePrize: `${i}`,
118
- soldTotal: `${Math.floor(Math.random() * 50000)}`,
119
- pictUrl:
120
- "https://cdn.release.qcast.cn/JsViewFrameworkTester/JsViewVueSampleResources/DivMetroPerformance/data/O1CN01Ab4vWz1izGAyRL1Yf_!!0-item_pic.jpg",
121
- }));
122
- }
123
-
124
- export { data1, data2, data3 };
@@ -1,28 +0,0 @@
1
- <!--
2
- * @Author: ChenChanghua
3
- * @Date: 2022-01-14 18:18:00
4
- * @LastEditors: ChenChanghua
5
- * @LastEditTime: 2022-01-26 17:35:26
6
- * @Description: file content
7
- -->
8
- <script>
9
- export default {
10
- props: ["data", "index"],
11
- created() {},
12
- mounted() {},
13
- };
14
- </script>
15
-
16
- <template>
17
- <div
18
- ref="element"
19
- :style="{
20
- left: data.xPos,
21
- top: data.yPos,
22
- width: data.width,
23
- height: data.height,
24
- }"
25
- >
26
- <slot name="renderItem" :data="data.data"></slot>
27
- </div>
28
- </template>