@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.
- 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
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
<script>
|
|
9
9
|
import AppPage from "./AppPage.vue";
|
|
10
10
|
import { getKeyFramesGroup } from "jsview";
|
|
11
|
-
import { reactive, ref
|
|
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(
|
|
124
|
+
transform: translate3d(0, 0, 0);
|
|
125
125
|
}
|
|
126
126
|
to {
|
|
127
|
-
transform: translate3d(${-this.layout.width}
|
|
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}
|
|
132
|
+
transform: translate3d(${this.layout.width}, 0, 0);
|
|
133
133
|
}
|
|
134
134
|
to {
|
|
135
|
-
transform: translate3d(
|
|
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(
|
|
140
|
+
transform: translate3d(0, 0, 0);
|
|
141
141
|
}
|
|
142
142
|
to {
|
|
143
|
-
transform: translate3d(${this.layout.width}
|
|
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}
|
|
148
|
+
transform: translate3d(${-this.layout.width}, 0, 0);
|
|
149
149
|
}
|
|
150
150
|
to {
|
|
151
|
-
transform: translate3d(
|
|
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
|
|
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 =
|
|
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
|
|
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 =
|
|
14
|
+
const mwRef = ref(null);
|
|
15
15
|
|
|
16
16
|
const measures = (item) => {
|
|
17
17
|
return item;
|
package/NinePatchDemo/App.vue
CHANGED
|
@@ -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,
|
|
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 =
|
|
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=
|
|
140
|
+
:animTime=0.2
|
|
141
141
|
></jsv-nine-patch>
|
|
142
142
|
</div>
|
|
143
143
|
</jsv-focus-block>
|
package/NinePatchDemo/Item.vue
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<script setup>
|
|
2
|
-
import { ref,
|
|
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
|
-
|
|
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:
|
|
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:
|
|
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
|
|
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:
|
|
85
|
-
lineHeight:
|
|
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:
|
|
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
package/QrcodeDemo/App.vue
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<script setup>
|
|
2
2
|
import { JsvQrcode } from "jsview";
|
|
3
|
-
import { ref
|
|
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:
|
|
41
|
-
lineHeight:
|
|
40
|
+
fontSize: 30,
|
|
41
|
+
lineHeight: 50,
|
|
42
42
|
color: '#ffffff',
|
|
43
43
|
left: 200 + 420,
|
|
44
44
|
top: 100,
|
package/ScaleDownNeon/App.vue
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
<!--
|
|
2
2
|
* @Author: ChenChanghua
|
|
3
3
|
* @Date: 2022-10-24 13:19:41
|
|
4
|
-
* @LastEditors:
|
|
5
|
-
* @LastEditTime:
|
|
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:
|
|
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:
|
|
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"
|
|
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"
|
|
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"
|
|
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"
|
|
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:
|
|
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:
|
|
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:
|
|
105
|
-
lineHeight:
|
|
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:
|
|
175
|
+
lineHeight: 100,
|
|
176
176
|
textAlign: 'center',
|
|
177
|
-
fontSize:
|
|
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(
|
|
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(
|
|
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(
|
|
224
|
+
transform: translate3d(500, 0, 0);
|
|
225
225
|
}
|
|
226
226
|
50% {
|
|
227
|
-
transform: translate3d(
|
|
227
|
+
transform: translate3d(500, 100, 0);
|
|
228
228
|
}
|
|
229
229
|
75% {
|
|
230
|
-
transform: translate3d(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:
|
|
238
|
-
height:
|
|
237
|
+
width: 1920;
|
|
238
|
+
height: 1080;
|
|
239
239
|
background-color: #334c4c;
|
|
240
240
|
}
|
|
241
241
|
|
|
242
242
|
.spray-ok {
|
|
243
|
-
width:
|
|
244
|
-
height:
|
|
243
|
+
width: 100;
|
|
244
|
+
height: 100;
|
|
245
245
|
background-color: #00ff00;
|
|
246
246
|
}
|
|
247
247
|
.spray-rotate {
|
|
248
|
-
width:
|
|
249
|
-
height:
|
|
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:
|
|
255
|
-
height:
|
|
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:
|
|
261
|
-
height:
|
|
260
|
+
width: 40;
|
|
261
|
+
height: 40;
|
|
262
262
|
animation: cycle 3s linear infinite;
|
|
263
263
|
}
|
|
264
264
|
.describe {
|
|
265
|
-
left:
|
|
266
|
-
top:
|
|
267
|
-
width:
|
|
268
|
-
height:
|
|
265
|
+
left: 0;
|
|
266
|
+
top: 140;
|
|
267
|
+
width: 250;
|
|
268
|
+
height: 200;
|
|
269
269
|
color: #ffffff;
|
|
270
|
-
font-size:
|
|
270
|
+
font-size: 20;
|
|
271
271
|
}
|
|
272
272
|
</style>
|
package/SpriteImage/App.vue
CHANGED
|
@@ -114,8 +114,8 @@ export default {
|
|
|
114
114
|
<div
|
|
115
115
|
:style="{
|
|
116
116
|
textAlign: 'center',
|
|
117
|
-
fontSize:
|
|
118
|
-
lineHeight:
|
|
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:
|
|
152
|
-
lineHeight:
|
|
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="
|
|
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
|
|
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" />
|
package/TextBox/RenderCenter.vue
CHANGED
|
@@ -17,9 +17,9 @@ export default {
|
|
|
17
17
|
top: -50,
|
|
18
18
|
width: 400,
|
|
19
19
|
height: 50,
|
|
20
|
-
fontSize:
|
|
20
|
+
fontSize: 20,
|
|
21
21
|
textAlign: 'left',
|
|
22
|
-
lineHeight:
|
|
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:
|
|
36
|
+
fontSize: 30,
|
|
37
37
|
textAlign: 'center',
|
|
38
|
-
lineHeight:
|
|
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:
|
|
49
|
+
fontSize: 20,
|
|
50
50
|
textAlign: 'left',
|
|
51
|
-
lineHeight:
|
|
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:
|
|
65
|
+
fontSize: 30,
|
|
66
66
|
textAlign: 'center',
|
|
67
|
-
lineHeight:
|
|
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:
|
|
79
|
+
fontSize: 20,
|
|
80
80
|
textAlign: 'left',
|
|
81
|
-
lineHeight:
|
|
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:
|
|
95
|
+
fontSize: 30,
|
|
96
96
|
textAlign: 'center',
|
|
97
|
-
lineHeight:
|
|
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:
|
|
109
|
+
fontSize: 20,
|
|
110
110
|
textAlign: 'left',
|
|
111
|
-
lineHeight:
|
|
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:
|
|
125
|
+
fontSize: 30,
|
|
126
126
|
textAlign: 'center',
|
|
127
|
-
lineHeight:
|
|
127
|
+
lineHeight: 80,
|
|
128
128
|
}"
|
|
129
129
|
>
|
|
130
130
|
{{ `[MC]${text}` }}
|
package/TextBox/RenderLeft.vue
CHANGED
|
@@ -17,9 +17,9 @@ export default {
|
|
|
17
17
|
top: -50,
|
|
18
18
|
width: 400,
|
|
19
19
|
height: 50,
|
|
20
|
-
fontSize:
|
|
20
|
+
fontSize: 20,
|
|
21
21
|
textAlign: 'left',
|
|
22
|
-
lineHeight:
|
|
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:
|
|
36
|
+
fontSize: 30,
|
|
37
37
|
textAlign: 'left',
|
|
38
|
-
lineHeight:
|
|
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:
|
|
49
|
+
fontSize: 20,
|
|
50
50
|
textAlign: 'left',
|
|
51
|
-
lineHeight:
|
|
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:
|
|
65
|
+
fontSize: 30,
|
|
66
66
|
textAlign: 'left',
|
|
67
|
-
lineHeight:
|
|
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:
|
|
78
|
+
fontSize: 20,
|
|
79
79
|
textAlign: 'left',
|
|
80
|
-
lineHeight:
|
|
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:
|
|
94
|
+
fontSize: 30,
|
|
95
95
|
textAlign: 'left',
|
|
96
|
-
lineHeight:
|
|
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:
|
|
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: 'left',
|
|
125
|
-
lineHeight:
|
|
125
|
+
lineHeight: 80,
|
|
126
126
|
}"
|
|
127
127
|
className="test"
|
|
128
128
|
>
|