Commit 1ca2909 1 parent 1c5c76a commit 1ca2909 Copy full SHA for 1ca2909
File tree 1 file changed +46
-0
lines changed
1 file changed +46
-0
lines changed Original file line number Diff line number Diff line change @@ -11,3 +11,49 @@ onHide(() => {
11
11
console .log (' App Hide' )
12
12
})
13
13
</script >
14
+
15
+ <style lang="scss">
16
+ /* stylelint-disable selector-type-no-unknown */
17
+ view ,
18
+ navigator,
19
+ input ,
20
+ scroll-view {
21
+ box-sizing : border-box ;
22
+ }
23
+
24
+ button ::after {
25
+ border : none ;
26
+ }
27
+
28
+ swiper,
29
+ scroll-view {
30
+ flex : 1 ;
31
+ height : 100% ;
32
+ overflow : hidden ;
33
+ }
34
+
35
+ image {
36
+ width : 100% ;
37
+ height : 100% ;
38
+ vertical-align : middle ;
39
+ }
40
+
41
+ // 单行省略使用 unocss: text-ellipsis
42
+ // 两行省略
43
+ .ellipsis-2 {
44
+ display : -webkit-box ;
45
+ overflow : hidden ;
46
+ text-overflow : ellipsis ;
47
+ -webkit-line-clamp : 2 ;
48
+ -webkit-box-orient : vertical ;
49
+ }
50
+
51
+ // 三行省略
52
+ .ellipsis-3 {
53
+ display : -webkit-box ;
54
+ overflow : hidden ;
55
+ text-overflow : ellipsis ;
56
+ -webkit-line-clamp : 3 ;
57
+ -webkit-box-orient : vertical ;
58
+ }
59
+ </style >
You can’t perform that action at this time.
0 commit comments