xydata-tools-uniapp 1.0.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.
- package/README.md +60 -0
- package/dist/assets/defaultAddPicBg.png +0 -0
- package/dist/assets/file-icon/document.png +0 -0
- package/dist/assets/file-icon/image.png +0 -0
- package/dist/assets/file-icon/ms-excel.png +0 -0
- package/dist/assets/file-icon/ms-powerpoint.png +0 -0
- package/dist/assets/file-icon/ms-word.png +0 -0
- package/dist/assets/file-icon/pdf.png +0 -0
- package/dist/assets/file-icon/video.png +0 -0
- package/dist/assets/file-icon/zip.png +0 -0
- package/dist/assets/loading.png +0 -0
- package/dist/assets/uploadVideoBg.png +0 -0
- package/dist/assets/videoPlay.png +0 -0
- package/dist/components/uni-app/file-picker/file-picker.vue +633 -0
- package/dist/components/uni-app/file-picker/styles.scss +196 -0
- package/dist/components/uni-app/media-picker/media-picker.vue +1645 -0
- package/dist/components/uni-app/media-picker/shmily-drag-media.vue +924 -0
- package/dist/components/uni-app/media-picker/styles.scss +531 -0
- package/dist/components/uni-app/watermark/index.js +633 -0
- package/dist/index.d.ts +452 -0
- package/dist/index.js +9 -0
- package/dist/shims-vue.d.ts +8 -0
- package/dist/types/components/uni-app/watermark/index.d.ts +2 -0
- package/dist/types/utils/watermark-shared.d.ts +42 -0
- package/dist/utils/watermark-shared.js +346 -0
- package/package.json +42 -0
|
@@ -0,0 +1,196 @@
|
|
|
1
|
+
.file-picker-wrapper {
|
|
2
|
+
width: 100%;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
@keyframes rotate {
|
|
6
|
+
0% {
|
|
7
|
+
transform: rotate(0deg);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
100% {
|
|
11
|
+
transform: rotate(360deg);
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.file-picker-box {
|
|
16
|
+
.upload-view {
|
|
17
|
+
padding: 8rpx 0;
|
|
18
|
+
|
|
19
|
+
.file-item {
|
|
20
|
+
display: flex;
|
|
21
|
+
align-items: center;
|
|
22
|
+
justify-content: space-between;
|
|
23
|
+
padding: 16rpx 20rpx;
|
|
24
|
+
margin-top: 12rpx;
|
|
25
|
+
background-color: #fff;
|
|
26
|
+
border-radius: 8rpx;
|
|
27
|
+
border: 2rpx solid #e5e5e5;
|
|
28
|
+
transition: all 0.3s;
|
|
29
|
+
|
|
30
|
+
&:active {
|
|
31
|
+
background-color: #f5f5f5;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.file-info {
|
|
35
|
+
flex: 1;
|
|
36
|
+
display: flex;
|
|
37
|
+
align-items: center;
|
|
38
|
+
min-width: 0;
|
|
39
|
+
|
|
40
|
+
.file-icon {
|
|
41
|
+
width: 56rpx;
|
|
42
|
+
height: 56rpx;
|
|
43
|
+
margin-right: 16rpx;
|
|
44
|
+
flex-shrink: 0;
|
|
45
|
+
|
|
46
|
+
.icon-image {
|
|
47
|
+
width: 100%;
|
|
48
|
+
height: 100%;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.loading-icon {
|
|
52
|
+
width: 100%;
|
|
53
|
+
height: 100%;
|
|
54
|
+
animation: rotate 2s linear infinite;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.file-content {
|
|
59
|
+
flex: 1;
|
|
60
|
+
min-width: 0;
|
|
61
|
+
|
|
62
|
+
.file-name {
|
|
63
|
+
display: block;
|
|
64
|
+
font-size: 28rpx;
|
|
65
|
+
color: #333;
|
|
66
|
+
overflow: hidden;
|
|
67
|
+
text-overflow: ellipsis;
|
|
68
|
+
white-space: nowrap;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.file-actions {
|
|
74
|
+
margin-left: 16rpx;
|
|
75
|
+
position: relative;
|
|
76
|
+
width: 40rpx;
|
|
77
|
+
height: 40rpx;
|
|
78
|
+
border-radius: 50%;
|
|
79
|
+
background-color: rgba(0, 0, 0, 0.6);
|
|
80
|
+
|
|
81
|
+
.delete-btn {
|
|
82
|
+
color: #fff;
|
|
83
|
+
font-size: 32rpx;
|
|
84
|
+
line-height: 1;
|
|
85
|
+
font-weight: 300;
|
|
86
|
+
position: absolute;
|
|
87
|
+
top: 50%;
|
|
88
|
+
left: 50%;
|
|
89
|
+
transform: translate(-50%, -50%);
|
|
90
|
+
padding-bottom: 2px;
|
|
91
|
+
&:active {
|
|
92
|
+
opacity: 0.8;
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.progress-bar {
|
|
98
|
+
position: absolute;
|
|
99
|
+
bottom: 0;
|
|
100
|
+
left: 0;
|
|
101
|
+
right: 0;
|
|
102
|
+
height: 8rpx;
|
|
103
|
+
background-color: #e6f7ff;
|
|
104
|
+
border-radius: 0 0 12rpx 12rpx;
|
|
105
|
+
overflow: hidden;
|
|
106
|
+
|
|
107
|
+
.progress-bar-inner {
|
|
108
|
+
height: 100%;
|
|
109
|
+
background-color: #1890ff;
|
|
110
|
+
transition: width 0.3s;
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
&.uploading-item {
|
|
115
|
+
border-color: #1890ff;
|
|
116
|
+
background-color: rgba(24, 144, 255, 0.05);
|
|
117
|
+
position: relative;
|
|
118
|
+
padding-bottom: 24rpx;
|
|
119
|
+
|
|
120
|
+
.file-name {
|
|
121
|
+
color: #1890ff;
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
.upload-btn {
|
|
127
|
+
width: 100%;
|
|
128
|
+
height: 80rpx;
|
|
129
|
+
background-color: #fff;
|
|
130
|
+
color: #1890ff;
|
|
131
|
+
border: 2rpx solid #1890ff;
|
|
132
|
+
border-radius: 12rpx;
|
|
133
|
+
font-size: 28rpx;
|
|
134
|
+
transition: all 0.3s;
|
|
135
|
+
|
|
136
|
+
&:active {
|
|
137
|
+
opacity: 0.8;
|
|
138
|
+
background-color: #ecf5ff;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
&::after {
|
|
142
|
+
border: none;
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
.file-readonly {
|
|
149
|
+
.file-item {
|
|
150
|
+
display: flex;
|
|
151
|
+
align-items: center;
|
|
152
|
+
padding: 16rpx 20rpx;
|
|
153
|
+
margin-bottom: 12rpx;
|
|
154
|
+
background-color: #fff;
|
|
155
|
+
border-radius: 8rpx;
|
|
156
|
+
border: 2rpx solid #e5e5e5;
|
|
157
|
+
transition: all 0.3s;
|
|
158
|
+
|
|
159
|
+
&:active {
|
|
160
|
+
background-color: #f5f5f5;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
.file-info {
|
|
164
|
+
flex: 1;
|
|
165
|
+
display: flex;
|
|
166
|
+
align-items: center;
|
|
167
|
+
min-width: 0;
|
|
168
|
+
|
|
169
|
+
.file-icon {
|
|
170
|
+
width: 56rpx;
|
|
171
|
+
height: 56rpx;
|
|
172
|
+
margin-right: 16rpx;
|
|
173
|
+
flex-shrink: 0;
|
|
174
|
+
|
|
175
|
+
.icon-image {
|
|
176
|
+
width: 100%;
|
|
177
|
+
height: 100%;
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
.file-content {
|
|
182
|
+
flex: 1;
|
|
183
|
+
min-width: 0;
|
|
184
|
+
|
|
185
|
+
.file-name {
|
|
186
|
+
display: block;
|
|
187
|
+
font-size: 28rpx;
|
|
188
|
+
color: #333;
|
|
189
|
+
overflow: hidden;
|
|
190
|
+
text-overflow: ellipsis;
|
|
191
|
+
white-space: nowrap;
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
}
|