@shijiu/jsview-vue-samples 1.9.887 → 1.9.915
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AnimPicture/App.vue +10 -10
- package/Basic/App.vue +1 -1
- package/Basic/components/FontStyle.css +4 -4
- package/Basic/components/anim/AnimKeyframeBasic.vue +1 -1
- package/Basic/components/anim/AnimKeyframeComposite.vue +2 -2
- package/Basic/components/anim/AnimTransition.vue +4 -4
- package/Basic/components/div/DivClip.vue +0 -39
- package/Basic/components/div/DivCssScoped.vue +1 -1
- package/Basic/components/div/DivLayout.vue +1 -1
- package/Basic/components/div/DivRadius.vue +4 -4
- package/Basic/components/img/ImageGroup.vue +2 -2
- package/Basic/components/img/ImgLayout.vue +78 -14
- package/Basic/components/text/TextDirection.vue +9 -9
- package/Basic/components/text/TextEmoji.vue +7 -2
- package/Basic/components/text/TextFontStyle.vue +4 -4
- package/Basic/components/text/TextGroup1.vue +1 -1
- package/Basic/components/text/TextGroup2.vue +2 -2
- package/BasicFocusControl/App.vue +2 -2
- package/BasicFocusControl/components/BaseBlock.vue +2 -2
- package/BasicFocusControl/components/MainArea.vue +2 -2
- package/BasicFocusControl/components/SideBar.vue +2 -2
- package/Collision/App.vue +16 -16
- package/ColorSpace/App.vue +11 -11
- package/CssPreprocessor/App.vue +70 -0
- package/CssPreprocessor/Less/App.vue +32 -0
- package/CssPreprocessor/Less/PanelData.js +51 -0
- package/CssPreprocessor/Less/components/less-group1/LessComments.vue +34 -0
- package/CssPreprocessor/Less/components/less-group1/LessConditionals.vue +32 -0
- package/CssPreprocessor/Less/components/less-group1/LessOperations.vue +24 -0
- package/CssPreprocessor/Less/components/less-group1/LessVariables.vue +48 -0
- package/CssPreprocessor/Less/components/less-group2/LessIteration.vue +32 -0
- package/CssPreprocessor/Less/components/less-group2/LessMethods.vue +27 -0
- package/CssPreprocessor/Less/components/less-group3/LessExtends.vue +32 -0
- package/CssPreprocessor/Less/components/less-group3/LessNesting.vue +63 -0
- package/CssPreprocessor/Less/components/less-group4/LessKeyframes.vue +40 -0
- package/CssPreprocessor/Less/components/less-group4/LessMaps.vue +33 -0
- package/CssPreprocessor/Less/components/less-group4/LessMixins.vue +33 -0
- package/CssPreprocessor/Less/components/less-group5/LessImporting.vue +34 -0
- package/CssPreprocessor/Less/components/less-group5/TextSettings.less +4 -0
- package/CssPreprocessor/Scss/App.vue +32 -0
- package/CssPreprocessor/Scss/PanelData.js +51 -0
- package/CssPreprocessor/Scss/components/scss-group1/ScssComments.vue +34 -0
- package/CssPreprocessor/Scss/components/scss-group1/ScssConditionals.vue +36 -0
- package/CssPreprocessor/Scss/components/scss-group1/ScssOperations.vue +30 -0
- package/CssPreprocessor/Scss/components/scss-group1/ScssVariables.vue +48 -0
- package/CssPreprocessor/Scss/components/scss-group2/ScssIteration.vue +36 -0
- package/CssPreprocessor/Scss/components/scss-group2/ScssMethods.vue +84 -0
- package/CssPreprocessor/Scss/components/scss-group3/ScssExtends.vue +34 -0
- package/CssPreprocessor/Scss/components/scss-group3/ScssNesting.vue +75 -0
- package/CssPreprocessor/Scss/components/scss-group4/ScssKeyframes.vue +40 -0
- package/CssPreprocessor/Scss/components/scss-group4/ScssMaps.vue +35 -0
- package/CssPreprocessor/Scss/components/scss-group4/ScssMixins.vue +33 -0
- package/CssPreprocessor/Scss/components/scss-group5/ScssImporting.vue +34 -0
- package/CssPreprocessor/Scss/components/scss-group5/TextSettings.scss +4 -0
- package/CssPreprocessor/Stylus/App.vue +32 -0
- package/CssPreprocessor/Stylus/PanelData.js +51 -0
- package/CssPreprocessor/Stylus/components/stylus-group1/StylusComments.vue +34 -0
- package/CssPreprocessor/Stylus/components/stylus-group1/StylusConditionals.vue +36 -0
- package/CssPreprocessor/Stylus/components/stylus-group1/StylusOperations.vue +30 -0
- package/CssPreprocessor/Stylus/components/stylus-group1/StylusVariables.vue +47 -0
- package/CssPreprocessor/Stylus/components/stylus-group2/StylusIteration.vue +34 -0
- package/CssPreprocessor/Stylus/components/stylus-group2/StylusMethods.vue +78 -0
- package/CssPreprocessor/Stylus/components/stylus-group3/StylusExtends.vue +34 -0
- package/CssPreprocessor/Stylus/components/stylus-group3/StylusNesting.vue +63 -0
- package/CssPreprocessor/Stylus/components/stylus-group4/StylusKeyframes.vue +40 -0
- package/CssPreprocessor/Stylus/components/stylus-group4/StylusMaps.vue +33 -0
- package/CssPreprocessor/Stylus/components/stylus-group4/StylusMixins.vue +33 -0
- package/CssPreprocessor/Stylus/components/stylus-group5/StylusImporting.vue +34 -0
- package/CssPreprocessor/Stylus/components/stylus-group5/TextSettings.styl +4 -0
- package/CssPreprocessor/utils/ContentBlock.vue +43 -0
- package/CssPreprocessor/utils/ContentList.vue +34 -0
- package/CssPreprocessor/utils/FontStyle.css +19 -0
- package/CssPreprocessor/utils/Panel.vue +49 -0
- package/CssPreprocessor/utils/TitleBar.vue +29 -0
- package/DemoHomepage/App.vue +46 -11
- package/DemoHomepage/components/Dialog.vue +15 -15
- package/DemoHomepage/router.js +20 -12
- package/DemoHomepage/views/Homepage.vue +90 -102
- package/DivMetroPerformance/App.vue +150 -0
- package/DivMetroPerformance/Item.vue +58 -0
- package/DivMetroPerformance/assets/bg.jpg +0 -0
- package/DivMetroPerformance/assets/coupon_content.png +0 -0
- package/DivMetroPerformance/assets/coupon_left.png +0 -0
- package/DivMetroPerformance/assets/coupon_mid.png +0 -0
- package/DivMetroPerformance/assets/coupon_right.png +0 -0
- package/DivMetroPerformance/assets/focus_border.png +0 -0
- package/DivMetroPerformance/assets/holder_logo.png +0 -0
- package/DivMetroPerformance/assets/jrbm.png +0 -0
- package/DivMetroPerformance/assets/line_left.png +0 -0
- package/DivMetroPerformance/assets/line_mid.png +0 -0
- package/DivMetroPerformance/assets/line_right.png +0 -0
- package/DivMetroPerformance/assets/loading.png +0 -0
- package/DivMetroPerformance/assets/logo.png +0 -0
- package/DivMetroPerformance/assets/mcjx.png +0 -0
- package/DivMetroPerformance/assets/tao.png +0 -0
- package/DivMetroPerformance/assets/tmall.png +0 -0
- package/DivMetroPerformance/border.png +0 -0
- package/DivMetroPerformance/components/ContentItem.vue +385 -0
- package/DivMetroPerformance/components/MyTab.vue +129 -0
- package/DivMetroPerformance/data.js +124 -0
- package/DivMetroPerformance/utils/GridItem.vue +28 -0
- package/DivMetroPerformance/utils/GridPlate.vue +85 -0
- package/FilterDemo/AnimatePic.vue +3 -3
- package/FilterDemo/App.vue +3 -3
- package/FlipCard/App.vue +2 -2
- package/FlipCard/FlipCard.vue +2 -2
- package/GridDemo/Item.vue +13 -13
- package/HashHistory/App.vue +0 -1
- package/HashHistory/components/Item.vue +2 -2
- package/HashHistory/views/MainPage.vue +1 -1
- package/HashHistory/views/SubPage.vue +2 -2
- package/ImpactStop/App.vue +9 -11
- package/Input/InputPanel.vue +2 -4
- package/LongImage/App.vue +2 -2
- package/LongImage/Button.vue +1 -1
- package/LongImage/ButtonItem.vue +1 -1
- package/LongText/App.vue +3 -3
- package/LongText/Button.vue +1 -1
- package/LongText/ButtonItem.vue +1 -1
- package/LongText/LongTextScroll.vue +4 -4
- package/Marquee/longText.js +0 -2
- package/MaskClip/App.vue +4 -4
- package/MediaDemo/App.vue +127 -0
- package/MediaDemo/assets/audio-poster.png +0 -0
- package/MediaDemo/components/Button.vue +69 -0
- package/MediaDemo/components/Controllor.vue +279 -0
- package/MediaDemo/components/StatusBar.vue +100 -0
- package/MediaDemo/components/frames/AudioFrame.vue +39 -0
- package/MediaDemo/components/frames/AudioPoster.vue +48 -0
- package/MediaDemo/components/frames/MediaFrame.vue +153 -0
- package/MediaDemo/components/frames/VideoFrame.vue +39 -0
- package/MetroWidgetDemos/Advanced/ButtonItem.vue +4 -4
- package/MetroWidgetDemos/Advanced/widgets/Item.vue +5 -5
- package/MetroWidgetDemos/Advanced/widgets/WidgetItem.vue +2 -2
- package/MetroWidgetDemos/Advanced/widgets/Widgets.vue +57 -56
- package/MetroWidgetDemos/Item.vue +4 -5
- package/MetroWidgetDemos/PerformanceTest/App.vue +3 -3
- package/MetroWidgetDemos/PerformanceTest/components/ContentItem.vue +26 -26
- package/MetroWidgetDemos/PerformanceTest/components/MyTab.vue +15 -15
- package/MetroWidgetDemos/PingPong/AppPage.vue +2 -2
- package/MetroWidgetDemos/PingPong/TabItem.vue +2 -2
- package/MetroWidgetDemos/PingPong/ViewSwiper.vue +9 -9
- package/MetroWidgetDemos/Simple/RelativeTemplate.vue +2 -2
- package/MetroWidgetDemos/WidgetItem.vue +2 -2
- package/NinePatchDemo/App.vue +3 -3
- package/NinePatchDemo/Item.vue +5 -5
- package/Preload/App.vue +5 -5
- package/Preload/Item.vue +1 -1
- package/QrcodeDemo/App.vue +3 -3
- package/ScaleDownNeon/App.vue +9 -9
- package/SoundPool/App.vue +6 -9
- package/SprayView/App.vue +22 -22
- package/SpriteImage/App.vue +4 -4
- package/Swiper/App.vue +2 -8
- package/TextBox/App.vue +1 -2
- package/TextBox/RenderCenter.vue +16 -16
- package/TextBox/RenderLeft.vue +16 -16
- package/TextBox/RenderOneLine.vue +12 -12
- package/TextBox/RenderRight.vue +16 -16
- package/TextShadowDemo/App.vue +4 -4
- package/TextureAnimation/App.vue +1 -17
- package/TextureAnimation/App2.vue +3 -3
- package/TextureSize/App.vue +8 -8
- package/ThrowMoveDemo/AccelerateDemo.vue +4 -4
- package/ThrowMoveDemo/LRParabolicDemo.vue +4 -4
- package/ThrowMoveDemo/TargetDemo.vue +4 -4
- package/ThrowMoveDemo/UDParabolicDemo.vue +4 -4
- package/TouchSample/App.vue +2 -2
- package/TouchSample/Item.vue +2 -2
- package/TouchSample/MetroWidgetHorizontal.vue +3 -3
- package/TouchSample/MetroWidgetVertical.vue +3 -3
- package/TouchSample/TouchContainerHorizontal.vue +2 -2
- package/TouchSample/TouchContainerVertical.vue +2 -2
- package/TransitPage/App.vue +1 -1
- package/VideoDemo/App.vue +4 -4
- package/VideoDemo/components/Button.vue +1 -1
- package/VideoDemo/components/Controllor.vue +2 -2
- package/VideoDemo/components/VideoFrame.vue +1 -1
- package/VisibleSensorDemo/App.vue +7 -7
- package/assets/bmpDemo.bmp +0 -0
- package/assets/jpegDemo.jpeg +0 -0
- package/assets/pngDemo.png +0 -0
- package/assets/pngNoAlphaDemo.png +0 -0
- package/assets/webpDemo.webp +0 -0
- package/package.json +6 -1
package/AnimPicture/App.vue
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* @Description: file content
|
|
7
7
|
-->
|
|
8
8
|
<script setup>
|
|
9
|
-
import { ref
|
|
9
|
+
import { ref } from "vue";
|
|
10
10
|
import { useRouter, useRoute } from "vue-router";
|
|
11
11
|
import { LoopType, JsvApic } from "jsview";
|
|
12
12
|
import catRun from "./assets/animated_webp.webp";
|
|
@@ -53,10 +53,10 @@ const ballCallback = {
|
|
|
53
53
|
ballPlay.value = false;
|
|
54
54
|
},
|
|
55
55
|
};
|
|
56
|
-
let catRunRef =
|
|
57
|
-
let girlRunRef =
|
|
58
|
-
let quanRef =
|
|
59
|
-
let ballRef =
|
|
56
|
+
let catRunRef = ref(null);
|
|
57
|
+
let girlRunRef = ref(null);
|
|
58
|
+
let quanRef = ref(null);
|
|
59
|
+
let ballRef = ref(null);
|
|
60
60
|
|
|
61
61
|
const onKeyDown = (ev) => {
|
|
62
62
|
if (ev.keyCode == 8 || ev.keyCode == 27 || ev.keyCode == 10000) {
|
|
@@ -187,7 +187,7 @@ const onKeyDown = (ev) => {
|
|
|
187
187
|
width: 1180,
|
|
188
188
|
textAlign: 'center',
|
|
189
189
|
color: '#000000',
|
|
190
|
-
fontSize:
|
|
190
|
+
fontSize: 30,
|
|
191
191
|
}"
|
|
192
192
|
>
|
|
193
193
|
{{ `(按键可进行停止/重播操作)` }}
|
|
@@ -198,10 +198,10 @@ const onKeyDown = (ev) => {
|
|
|
198
198
|
|
|
199
199
|
<style scoped>
|
|
200
200
|
.text {
|
|
201
|
-
font-size:
|
|
202
|
-
height:
|
|
203
|
-
line-height:
|
|
201
|
+
font-size: 25;
|
|
202
|
+
height: 68;
|
|
203
|
+
line-height: 34;
|
|
204
204
|
color: #000000;
|
|
205
205
|
text-align: center;
|
|
206
206
|
}
|
|
207
|
-
</style>
|
|
207
|
+
</style>
|
package/Basic/App.vue
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
* <div style={{width:200, height:200, backgroundColor: 'rgba(255, 255, 0, 1)'}}>
|
|
16
16
|
* 描绘图片时,通过backgroundImage来设置,例如
|
|
17
17
|
* <div style={{width:200, height:200, backgroundColor:`url(${iconImgPath})`}}>
|
|
18
|
-
* 注意,不设置width和height的情况是默认尺寸为
|
|
18
|
+
* 注意,不设置width和height的情况是默认尺寸为0 * 0,不会展示图片
|
|
19
19
|
*
|
|
20
20
|
* Q: 如何对图片进行剪切,只展示图片的局部内容?
|
|
21
21
|
* A: 参照div/DivClip,使用style中的overflow:"hidden"属性进行裁剪,或者使用style中clipPath属性进行裁剪
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
|
|
2
2
|
.title-font {
|
|
3
3
|
font-family: 黑体;
|
|
4
|
-
font-size:
|
|
4
|
+
font-size: 16;
|
|
5
5
|
}
|
|
6
6
|
|
|
7
7
|
.container-font {
|
|
8
8
|
color: #FFFFFF;
|
|
9
9
|
font-family: 黑体;
|
|
10
|
-
font-size:
|
|
10
|
+
font-size: 16;
|
|
11
11
|
}
|
|
12
12
|
|
|
13
13
|
.content-font {
|
|
14
14
|
font-family: 黑体;
|
|
15
|
-
font-size:
|
|
16
|
-
}
|
|
15
|
+
font-size: 12;
|
|
16
|
+
};
|
|
@@ -33,7 +33,7 @@ const itemStyle = {
|
|
|
33
33
|
<style>
|
|
34
34
|
@keyframes AnimComposite1 {
|
|
35
35
|
from {
|
|
36
|
-
transform: translate3d(50%,
|
|
36
|
+
transform: translate3d(50%, 30, 0) scale3d(1.5, 1.5, 1)
|
|
37
37
|
rotate3d(1.5, 1, 1, 90deg) skew(30deg, 45deg);
|
|
38
38
|
}
|
|
39
39
|
to {
|
|
@@ -42,7 +42,7 @@ const itemStyle = {
|
|
|
42
42
|
|
|
43
43
|
@keyframes AnimComposite2 {
|
|
44
44
|
from {
|
|
45
|
-
transform: translate3d(50%,
|
|
45
|
+
transform: translate3d(50%, 30, 0) scale3d(1.5, 1.5, 1)
|
|
46
46
|
rotate3d(1.5, 1, 0, 90deg) skew(30deg, 45deg);
|
|
47
47
|
opacity: 0.1;
|
|
48
48
|
}
|
|
@@ -28,19 +28,19 @@ const changeState = () => {
|
|
|
28
28
|
setTimeout(() => {
|
|
29
29
|
// 状态变更
|
|
30
30
|
state.transform =
|
|
31
|
-
"translate3d(
|
|
31
|
+
"translate3d(80,0,0) scale3d(2,2,1.0) rotate3d(0, 0, 1, 360deg)";
|
|
32
32
|
state.transformOrigin = "center center";
|
|
33
33
|
state.transformScale = "scale3d(0.2,0.2,1.0)";
|
|
34
34
|
state.transformRotate = "rotate3d(0, 0, 1.0, 360deg)";
|
|
35
|
-
state.transformTranslate = "translate3d(
|
|
35
|
+
state.transformTranslate = "translate3d(180,0,0)";
|
|
36
36
|
// 状态变更
|
|
37
37
|
setTimeout(() => {
|
|
38
38
|
state.transform =
|
|
39
|
-
"translate3d(
|
|
39
|
+
"translate3d(30,0,0) scale3d(0.2,0.2,1.0) rotate3d(0, 0, 1, -360deg)";
|
|
40
40
|
state.transformOrigin = "center center";
|
|
41
41
|
state.transformScale = "scale3d(1.2,1.2,1.0)";
|
|
42
42
|
state.transformRotate = "rotate3d(0, 0, 1.0, -360deg)";
|
|
43
|
-
state.transformTranslate = "translate3d(-
|
|
43
|
+
state.transformTranslate = "translate3d(-80,0,0)";
|
|
44
44
|
}, 3000);
|
|
45
45
|
}, 3000);
|
|
46
46
|
};
|
|
@@ -112,45 +112,6 @@ const clipSize = {
|
|
|
112
112
|
</div>
|
|
113
113
|
</div>
|
|
114
114
|
</div>
|
|
115
|
-
|
|
116
|
-
<div
|
|
117
|
-
:style="{
|
|
118
|
-
top: imageSize.height + titleHeight + 4,
|
|
119
|
-
left: imageSize.width + 16,
|
|
120
|
-
}"
|
|
121
|
-
>
|
|
122
|
-
<div class="content-font" :style="{ width: 100, height: titleHeight }">
|
|
123
|
-
ClipPath
|
|
124
|
-
</div>
|
|
125
|
-
<div
|
|
126
|
-
:style="{
|
|
127
|
-
top: titleHeight,
|
|
128
|
-
width: imageSize.width + 4,
|
|
129
|
-
height: imageSize.height + 4,
|
|
130
|
-
backgroundColor: 'rgba(0, 255, 0, 1)',
|
|
131
|
-
}"
|
|
132
|
-
>
|
|
133
|
-
<div
|
|
134
|
-
key="clipArea"
|
|
135
|
-
:style="{
|
|
136
|
-
left: 2,
|
|
137
|
-
top: 2,
|
|
138
|
-
width: imageSize.width,
|
|
139
|
-
height: imageSize.height,
|
|
140
|
-
clipPath:
|
|
141
|
-
'inset(5px 10px 15px 20px)' /* margin of top, right, bottom, left */,
|
|
142
|
-
}"
|
|
143
|
-
>
|
|
144
|
-
<div
|
|
145
|
-
:style="{
|
|
146
|
-
width: imageSize.width,
|
|
147
|
-
height: imageSize.height,
|
|
148
|
-
backgroundImage: `url(${testImgPath})`,
|
|
149
|
-
}"
|
|
150
|
-
/>
|
|
151
|
-
</div>
|
|
152
|
-
</div>
|
|
153
|
-
</div>
|
|
154
115
|
</div>
|
|
155
116
|
</template>
|
|
156
117
|
|
|
@@ -15,7 +15,7 @@ const gap = 5;
|
|
|
15
15
|
width: blockSize.width,
|
|
16
16
|
height: blockSize.height,
|
|
17
17
|
backgroundColor: 'rgba(255, 255, 0, 1)',
|
|
18
|
-
borderRadius:
|
|
18
|
+
borderRadius: 10,
|
|
19
19
|
}"
|
|
20
20
|
>
|
|
21
21
|
各角相同
|
|
@@ -27,7 +27,7 @@ const gap = 5;
|
|
|
27
27
|
width: blockSize.width,
|
|
28
28
|
height: blockSize.height,
|
|
29
29
|
backgroundColor: 'rgba(255, 255, 0, 1)',
|
|
30
|
-
borderRadius: '0
|
|
30
|
+
borderRadius: '0 10 20 30',
|
|
31
31
|
}"
|
|
32
32
|
>
|
|
33
33
|
各角不同
|
|
@@ -39,7 +39,7 @@ const gap = 5;
|
|
|
39
39
|
width: blockSize.width,
|
|
40
40
|
height: blockSize.height,
|
|
41
41
|
backgroundImage: `url(${iconImgPath})`,
|
|
42
|
-
borderRadius:
|
|
42
|
+
borderRadius: 10,
|
|
43
43
|
}"
|
|
44
44
|
>
|
|
45
45
|
各角相同
|
|
@@ -52,7 +52,7 @@ const gap = 5;
|
|
|
52
52
|
width: blockSize.width,
|
|
53
53
|
height: blockSize.height,
|
|
54
54
|
backgroundImage: `url(${iconImgPath})`,
|
|
55
|
-
borderRadius: '0
|
|
55
|
+
borderRadius: '0 10 20 30',
|
|
56
56
|
}"
|
|
57
57
|
>
|
|
58
58
|
各角不同
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div id='item-root'>
|
|
3
|
-
<ContentBlock :class=contentClass :style="{top:itemSides.height*0}" :=contentBlockProps :index=0 title="
|
|
3
|
+
<ContentBlock :class=contentClass :style="{top:itemSides.height*0}" :=contentBlockProps :index=0 title="img标签ObjectFit">
|
|
4
4
|
<ImgLayout/>
|
|
5
5
|
</ContentBlock>
|
|
6
6
|
</div>
|
|
@@ -23,7 +23,7 @@ export default {
|
|
|
23
23
|
contentBlockProps() {
|
|
24
24
|
return {
|
|
25
25
|
colIndex: 0,
|
|
26
|
-
itemSides: this.itemSides
|
|
26
|
+
itemSides:{...this.itemSides, height: this.itemSides.height * 2}
|
|
27
27
|
}
|
|
28
28
|
}
|
|
29
29
|
}
|
|
@@ -1,13 +1,54 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div id='layout-root'>
|
|
3
3
|
<div style="{top: 0}">
|
|
4
|
-
<div
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
4
|
+
<div id="0列0行" :style="{left: coloumWidth * 0, top: tabLineHeight * 0}">
|
|
5
|
+
<div class="content-font titleStyle"> fill(缩放变形)</div>
|
|
6
|
+
<div class="frameStyle">
|
|
7
|
+
<img class="imageStyle" :style="{ objectFit: 'fill' }"
|
|
8
|
+
:src="testImgPath"/>
|
|
9
|
+
</div>
|
|
10
|
+
</div>
|
|
11
|
+
<div id="1列0行" :style="{left: coloumWidth * 1, top: tabLineHeight * 0}">
|
|
12
|
+
<div class="content-font titleStyle">contain</div>
|
|
13
|
+
<div class="frameStyle">
|
|
14
|
+
<img class="imageStyle" :style="{ objectFit: 'contain' }"
|
|
15
|
+
:src="testImgPath"/>
|
|
16
|
+
</div>
|
|
17
|
+
</div>
|
|
18
|
+
<div id="0列1行" :style="{left: coloumWidth * 0, top: tabLineHeight * 1}">
|
|
19
|
+
<div class="content-font titleStyle">none</div>
|
|
20
|
+
<div class="frameStyle">
|
|
21
|
+
<img class="imageStyle" :style="{ objectFit: 'none' }"
|
|
22
|
+
:src="testImgPath"/>
|
|
23
|
+
</div>
|
|
24
|
+
</div>
|
|
25
|
+
<div id="1列1行" :style="{left: coloumWidth * 1, top: tabLineHeight * 1}">
|
|
26
|
+
<div class="content-font titleStyle">scale-down</div>
|
|
27
|
+
<div class="frameStyle">
|
|
28
|
+
<img class="imageStyle" :style="{ objectFit: 'scale-down' }"
|
|
29
|
+
:src="testImgPath"/>
|
|
30
|
+
</div>
|
|
31
|
+
</div>
|
|
32
|
+
<div id="0列2行" :style="{left: coloumWidth * 0, top: tabLineHeight * 2}">
|
|
33
|
+
<div class="content-font titleStyle">cover</div>
|
|
34
|
+
<div class="frameStyle">
|
|
35
|
+
<img class="imageStyle" :style="{ objectFit: 'cover' }"
|
|
36
|
+
:src="testImgPath"/>
|
|
37
|
+
</div>
|
|
38
|
+
</div>
|
|
39
|
+
<div id="1列2行" :style="{left: coloumWidth * 1, top: tabLineHeight * 2}">
|
|
40
|
+
<div class="content-font titleStyle">none(小图)</div>
|
|
41
|
+
<div class="frameStyle">
|
|
42
|
+
<img class="imageStyle" :style="{ objectFit: 'none' }"
|
|
43
|
+
:src="tinyImgPath"/>
|
|
44
|
+
</div>
|
|
45
|
+
</div>
|
|
46
|
+
<div id="0列3行" :style="{left: coloumWidth * 0, top: tabLineHeight * 3}">
|
|
47
|
+
<div class="content-font titleStyle">scale-down(小图)</div>
|
|
48
|
+
<div class="frameStyle">
|
|
49
|
+
<img class="imageStyle" :style="{ objectFit: 'scale-down' }"
|
|
50
|
+
:src="tinyImgPath"/>
|
|
51
|
+
</div>
|
|
11
52
|
</div>
|
|
12
53
|
</div>
|
|
13
54
|
</div>
|
|
@@ -15,21 +56,22 @@
|
|
|
15
56
|
|
|
16
57
|
<script>
|
|
17
58
|
import testImgPath from '../../assets/test.jpg';
|
|
59
|
+
import tinyImgPath from '../../assets/icon.png';
|
|
18
60
|
|
|
19
61
|
export default {
|
|
20
62
|
computed: {
|
|
21
63
|
testImgPath() {
|
|
22
64
|
return testImgPath;
|
|
23
65
|
},
|
|
24
|
-
|
|
25
|
-
return
|
|
66
|
+
tinyImgPath() {
|
|
67
|
+
return tinyImgPath;
|
|
26
68
|
},
|
|
27
|
-
|
|
28
|
-
return
|
|
29
|
-
width: 80,
|
|
30
|
-
height: 64,
|
|
31
|
-
}
|
|
69
|
+
coloumWidth() {
|
|
70
|
+
return 120;
|
|
32
71
|
},
|
|
72
|
+
tabLineHeight() {
|
|
73
|
+
return 76; // imageSize.height + 26
|
|
74
|
+
}
|
|
33
75
|
}
|
|
34
76
|
}
|
|
35
77
|
|
|
@@ -38,4 +80,26 @@ export default {
|
|
|
38
80
|
|
|
39
81
|
<style>
|
|
40
82
|
@import "../FontStyle.css";
|
|
83
|
+
</style>
|
|
84
|
+
|
|
85
|
+
<style scoped>
|
|
86
|
+
.titleStyle {
|
|
87
|
+
width: 100;
|
|
88
|
+
height: 16;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.imageStyle {
|
|
92
|
+
top: 2;
|
|
93
|
+
left: 2;
|
|
94
|
+
width: 100;
|
|
95
|
+
height: 50;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
.frameStyle {
|
|
99
|
+
top: 16; /* titleHeight */
|
|
100
|
+
width: 104; /* imageSize.width+4 */
|
|
101
|
+
height: 54; /* imageSize.height+4 */
|
|
102
|
+
background-color: rgba(0, 255, 0, 1)
|
|
103
|
+
}
|
|
104
|
+
|
|
41
105
|
</style>
|
|
@@ -82,23 +82,23 @@ const rtlText = "شلؤيثبلاهتنمةىخحضقسفعررصءغئا";
|
|
|
82
82
|
@import "../FontStyle.css";
|
|
83
83
|
|
|
84
84
|
.base {
|
|
85
|
-
top:
|
|
86
|
-
width:
|
|
87
|
-
height:
|
|
88
|
-
line-height:
|
|
85
|
+
top: 25;
|
|
86
|
+
width: 180;
|
|
87
|
+
height: 30;
|
|
88
|
+
line-height: 30;
|
|
89
89
|
background-color: rgba(255, 255, 0, 0.5);
|
|
90
90
|
color: #ff0000;
|
|
91
|
-
font-size:
|
|
91
|
+
font-size: 25;
|
|
92
92
|
white-space: nowrap;
|
|
93
93
|
text-overflow: ellipsis;
|
|
94
94
|
overflow: hidden;
|
|
95
95
|
}
|
|
96
96
|
|
|
97
97
|
.explain {
|
|
98
|
-
width:
|
|
99
|
-
height:
|
|
100
|
-
line-height:
|
|
101
|
-
font-size:
|
|
98
|
+
width: 180;
|
|
99
|
+
height: 20;
|
|
100
|
+
line-height: 20;
|
|
101
|
+
font-size: 15;
|
|
102
102
|
color: #000000;
|
|
103
103
|
}
|
|
104
104
|
</style>
|
|
@@ -5,12 +5,17 @@
|
|
|
5
5
|
width: 300,
|
|
6
6
|
height: 100,
|
|
7
7
|
fontSize: 20,
|
|
8
|
+
JsvTextEmoji: 1,
|
|
8
9
|
}"
|
|
9
|
-
jsv_text_emoji="true"
|
|
10
10
|
>
|
|
11
11
|
{{ `style: 😀笑🇨🇳中国\n👨👩👧👦家庭` }}
|
|
12
12
|
</div>
|
|
13
|
-
<div
|
|
13
|
+
<div
|
|
14
|
+
class="emoji"
|
|
15
|
+
:style="{
|
|
16
|
+
JsvTextEmoji: 1,
|
|
17
|
+
}"
|
|
18
|
+
>
|
|
14
19
|
{{ `class: 😀笑🇨🇳中国\n👨👩👧👦家庭` }}
|
|
15
20
|
</div>
|
|
16
21
|
</div>
|
|
@@ -34,8 +34,8 @@ const blockStyle = {
|
|
|
34
34
|
width: blockStyle.width + 30,
|
|
35
35
|
height: 28,
|
|
36
36
|
fontFamily: '黑体',
|
|
37
|
-
fontSize:
|
|
38
|
-
WebkitTextStroke: '
|
|
37
|
+
fontSize: 24,
|
|
38
|
+
WebkitTextStroke: '1 rgba(255,255,0,1.0)',
|
|
39
39
|
}"
|
|
40
40
|
>
|
|
41
41
|
abc描边
|
|
@@ -62,7 +62,7 @@ const blockStyle = {
|
|
|
62
62
|
|
|
63
63
|
<div :style="{ top: 75 }">
|
|
64
64
|
<div class="content-font" :style="{ ...blockStyle }">[其他]</div>
|
|
65
|
-
<div :style="{ top: 25, width: 130, height: 35, fontSize:
|
|
65
|
+
<div :style="{ top: 25, width: 130, height: 35, fontSize: 30 }">
|
|
66
66
|
abc字号
|
|
67
67
|
</div>
|
|
68
68
|
<div
|
|
@@ -73,7 +73,7 @@ const blockStyle = {
|
|
|
73
73
|
height: 35,
|
|
74
74
|
color: 'rgba(255, 0, 0, 1)',
|
|
75
75
|
fontFamily: 'sans-serif',
|
|
76
|
-
fontSize:
|
|
76
|
+
fontSize: 30,
|
|
77
77
|
fontStyle: 'italic',
|
|
78
78
|
fontWeight: 'bold',
|
|
79
79
|
}"
|
|
@@ -38,7 +38,7 @@ const contentBlockProps = {
|
|
|
38
38
|
<ContentBlock
|
|
39
39
|
:class="contentClass"
|
|
40
40
|
:style="{ top: itemSides.height * 2 }"
|
|
41
|
-
:="{ ...contentBlockProps, itemSides: { ...itemSides, height:
|
|
41
|
+
:="{ ...contentBlockProps, itemSides: { ...itemSides, height: 290 } }"
|
|
42
42
|
:index="2"
|
|
43
43
|
title="文字折行"
|
|
44
44
|
>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<script setup>
|
|
2
2
|
import ContentBlock from "../ContentBlock.vue";
|
|
3
3
|
import TextEmoji from "./TextEmoji.vue";
|
|
4
|
-
import TextDirection from "./TextDirection.vue"
|
|
4
|
+
import TextDirection from "./TextDirection.vue"
|
|
5
5
|
|
|
6
6
|
const props = defineProps({
|
|
7
7
|
contentClass: String,
|
|
@@ -20,7 +20,7 @@ const contentBlockProps = {
|
|
|
20
20
|
:style="{ top: itemSides.height * 0 }"
|
|
21
21
|
:="contentBlockProps"
|
|
22
22
|
:index="0"
|
|
23
|
-
title="
|
|
23
|
+
title="文字对齐"
|
|
24
24
|
>
|
|
25
25
|
<TextEmoji />
|
|
26
26
|
</ContentBlock>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<script setup>
|
|
2
|
-
import { ref,
|
|
2
|
+
import { ref, onMounted } from "vue";
|
|
3
3
|
const props = defineProps({
|
|
4
4
|
name: String,
|
|
5
5
|
style: {
|
|
@@ -12,7 +12,7 @@ const props = defineProps({
|
|
|
12
12
|
});
|
|
13
13
|
|
|
14
14
|
const fullName = ref("");
|
|
15
|
-
const blockRef =
|
|
15
|
+
const blockRef = ref(null);
|
|
16
16
|
const hasFocused = ref(false);
|
|
17
17
|
|
|
18
18
|
onMounted(() => {
|
package/Collision/App.vue
CHANGED
|
@@ -7,21 +7,21 @@
|
|
|
7
7
|
-->
|
|
8
8
|
<script setup>
|
|
9
9
|
import { createImpactTracer, createImpactCallback } from "jsview";
|
|
10
|
-
import { ref,
|
|
10
|
+
import { ref, onMounted, onBeforeUnmount } from "vue";
|
|
11
11
|
import { useRouter } from "vue-router";
|
|
12
12
|
|
|
13
13
|
const router = useRouter();
|
|
14
14
|
|
|
15
|
-
const transEle1 =
|
|
16
|
-
transEle2 =
|
|
17
|
-
rotateEle1 =
|
|
18
|
-
rotateEle2 =
|
|
19
|
-
rotateEle3 =
|
|
20
|
-
rotateEle4 =
|
|
21
|
-
scaleEle1 =
|
|
22
|
-
scaleEle2 =
|
|
23
|
-
skewEle1 =
|
|
24
|
-
skewEle2 =
|
|
15
|
+
const transEle1 = ref(null),
|
|
16
|
+
transEle2 = ref(null),
|
|
17
|
+
rotateEle1 = ref(null),
|
|
18
|
+
rotateEle2 = ref(null),
|
|
19
|
+
rotateEle3 = ref(null),
|
|
20
|
+
rotateEle4 = ref(null),
|
|
21
|
+
scaleEle1 = ref(null),
|
|
22
|
+
scaleEle2 = ref(null),
|
|
23
|
+
skewEle1 = ref(null),
|
|
24
|
+
skewEle2 = ref(null);
|
|
25
25
|
|
|
26
26
|
let sensors = [];
|
|
27
27
|
|
|
@@ -164,8 +164,8 @@ onBeforeUnmount(() => {
|
|
|
164
164
|
<div
|
|
165
165
|
:style="{
|
|
166
166
|
textAlign: 'center',
|
|
167
|
-
fontSize:
|
|
168
|
-
lineHeight:
|
|
167
|
+
fontSize: 30,
|
|
168
|
+
lineHeight: 50,
|
|
169
169
|
color: '#ffffff',
|
|
170
170
|
left: 100,
|
|
171
171
|
top: 20,
|
|
@@ -348,7 +348,7 @@ onBeforeUnmount(() => {
|
|
|
348
348
|
transform: translate3d(0, 0, 0) scale3d(0.5, 0.5, 1);
|
|
349
349
|
}
|
|
350
350
|
to {
|
|
351
|
-
transform: translate3d(-
|
|
351
|
+
transform: translate3d(-300, 0, 0) scale3d(1.5, 1.5, 1);
|
|
352
352
|
}
|
|
353
353
|
}
|
|
354
354
|
|
|
@@ -357,7 +357,7 @@ onBeforeUnmount(() => {
|
|
|
357
357
|
transform: translate3d(0, 0, 0) scale3d(0.5, 0.5, 1);
|
|
358
358
|
}
|
|
359
359
|
to {
|
|
360
|
-
transform: translate3d(
|
|
360
|
+
transform: translate3d(300, 0, 0) scale3d(1.5, 1.5, 1);
|
|
361
361
|
}
|
|
362
362
|
}
|
|
363
363
|
|
|
@@ -449,4 +449,4 @@ onBeforeUnmount(() => {
|
|
|
449
449
|
transform-origin: center center;
|
|
450
450
|
}
|
|
451
451
|
}
|
|
452
|
-
</style>
|
|
452
|
+
</style>
|