@xtdev/xt-miniprogram-ui 1.2.85 → 1.2.86

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.
@@ -230,6 +230,10 @@ Component({
230
230
  console.log('onStartTakePhoto', e);
231
231
  const _this = this;
232
232
  const { customUpload, uploadApi, max, sourceType, fileList, fileType, tempFileList, version } = this.properties;
233
+ if (customUpload) {
234
+ _this.triggerEvent('upload', {});
235
+ return;
236
+ }
233
237
  if (version === 'v2') {
234
238
  _this.properties.getWatermarkData().then(watermarkData => {
235
239
  _this.setData({
@@ -239,10 +243,6 @@ Component({
239
243
  })
240
244
  return false;
241
245
  }
242
- if (customUpload) {
243
- _this.triggerEvent('upload', {});
244
- return;
245
- }
246
246
  if (!uploadApi || !uploadApi.url) {
247
247
  wx.showToast({
248
248
  title: '请传入上传接口',
@@ -19,6 +19,7 @@
19
19
  .file_box {
20
20
  display: flex;
21
21
  flex-wrap: wrap;
22
+ gap: 12rpx 0;
22
23
  }
23
24
 
24
25
  .file_item {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xtdev/xt-miniprogram-ui",
3
- "version": "1.2.85",
3
+ "version": "1.2.86",
4
4
  "description": "",
5
5
  "miniprogram": "libs",
6
6
  "publishConfig": {