gxd-uni-library-editx 1.0.24 → 1.0.27
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/package.json
CHANGED
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<view class="skeleton-card-item">
|
|
3
|
+
<view class="item-left">
|
|
4
|
+
<view class="cha_kan"></view>
|
|
5
|
+
</view>
|
|
6
|
+
<view class="item-right">
|
|
7
|
+
<view class="item_info">
|
|
8
|
+
<view class="_title"></view>
|
|
9
|
+
<view class="identify"></view>
|
|
10
|
+
<view class="remain"></view>
|
|
11
|
+
</view>
|
|
12
|
+
<view class="btn"> </view>
|
|
13
|
+
</view>
|
|
14
|
+
</view>
|
|
15
|
+
</template>
|
|
16
|
+
|
|
17
|
+
<style lang="less" scoped>
|
|
18
|
+
.skeleton-card-item {
|
|
19
|
+
display: flex;
|
|
20
|
+
align-items: center;
|
|
21
|
+
justify-content: flex-start;
|
|
22
|
+
border: unit(2, rpx) solid #eeeeee;
|
|
23
|
+
border-radius: unit(20, rpx);
|
|
24
|
+
margin-bottom: unit(30, rpx);
|
|
25
|
+
background: #fff;
|
|
26
|
+
.item-left {
|
|
27
|
+
width: unit(140, rpx);
|
|
28
|
+
display: flex;
|
|
29
|
+
flex-direction: column;
|
|
30
|
+
align-items: center;
|
|
31
|
+
justify-content: center;
|
|
32
|
+
.cha_kan{
|
|
33
|
+
.skeleton-item(60rpx, 60rpx);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
.item-right {
|
|
37
|
+
display: flex;
|
|
38
|
+
flex: 1;
|
|
39
|
+
flex-direction: row;
|
|
40
|
+
justify-content: space-between;
|
|
41
|
+
align-items: center;
|
|
42
|
+
padding: unit(24, rpx);
|
|
43
|
+
border-left: 1px solid #eeeeee;
|
|
44
|
+
.item_info {
|
|
45
|
+
display: flex;
|
|
46
|
+
flex-direction: column;
|
|
47
|
+
justify-content: space-between;
|
|
48
|
+
flex: 1;
|
|
49
|
+
padding-right: 50rpx;
|
|
50
|
+
|
|
51
|
+
._title{
|
|
52
|
+
.skeleton-item(auto, 24rpx);
|
|
53
|
+
}
|
|
54
|
+
.identify{
|
|
55
|
+
.skeleton-item(auto, 84rpx);
|
|
56
|
+
margin-top: unit(24, rpx);
|
|
57
|
+
}
|
|
58
|
+
.remain{
|
|
59
|
+
.skeleton-item(auto, 24rpx);
|
|
60
|
+
margin-top: unit(24, rpx);
|
|
61
|
+
}
|
|
62
|
+
.other{
|
|
63
|
+
.skeleton-item(auto, 24rpx);
|
|
64
|
+
margin-top: unit(8, rpx);
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
.btn{
|
|
68
|
+
.skeleton-item(110rpx, 104rpx, 8rpx);
|
|
69
|
+
padding: 0 unit(16, rpx);
|
|
70
|
+
margin-left: unit(10, rpx);
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
</style>
|
package/xd.less
CHANGED
|
@@ -94,6 +94,15 @@
|
|
|
94
94
|
@xd-star-hover:'';//已废弃
|
|
95
95
|
@xd-coins-unit: '';//已废弃
|
|
96
96
|
|
|
97
|
+
@xd-skeleton-color: #F2F2F2;
|
|
98
|
+
|
|
99
|
+
.skeleton-item(@width: 100%, @height: 40rpx, @radius: 20rpx, @bgColor: @xd-skeleton-color){
|
|
100
|
+
width: @width;
|
|
101
|
+
height: @height;
|
|
102
|
+
border-radius: @radius;
|
|
103
|
+
background-color: @bgColor;
|
|
104
|
+
}
|
|
105
|
+
|
|
97
106
|
|
|
98
107
|
/**
|
|
99
108
|
* @desc 一行显示省略号
|