sadais-piui 1.2.7-beta52 → 1.2.7-beta53

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.
@@ -1,10 +1,10 @@
1
1
  <!--
2
2
  * @Author: zhangzhenfei
3
3
  * @Date: 2021-08-13 11:31:57
4
- * @LastEditTime: 2022-11-09 09:37:45
4
+ * @LastEditTime: 2022-11-19 09:44:33
5
5
  * @LastEditors: zhangzhenfei
6
6
  * @Description: 图片上传组件
7
- * @FilePath: \piui-awesome\src\piui\components\pi-upload-img\index.vue
7
+ * @FilePath: /dt-weitibao-console/Users/feilin/workspace/piui/piui-awesome/src/piui/components/pi-upload-img/index.vue
8
8
  -->
9
9
 
10
10
  <template>
@@ -16,7 +16,7 @@
16
16
  class="pi-rela pi-flex-column-center"
17
17
  @tap="handlePreviewImage(img)"
18
18
  >
19
- <view class="close" @tap.stop="handleDelete(index)">
19
+ <view v-if="!disabled" class="close" @tap.stop="handleDelete(index)">
20
20
  <pi-icon name="roundclosefill" color="#8e8e8e" size="36" />
21
21
  </view>
22
22
  <image
@@ -27,7 +27,7 @@
27
27
  />
28
28
  </view>
29
29
  <!-- 上传框 -->
30
- <view v-if="getUploadMaxCount">
30
+ <view v-if="getUploadMaxCount && !disabled">
31
31
  <view :style="[getUploadBtnStyle]" class="pi-flex-column-center" @tap="handleChooseImage">
32
32
  <slot name="uploadBtn">
33
33
  <!-- 添加按钮 -->
@@ -315,7 +315,7 @@ export default {
315
315
  if (this.val === null || this.val === undefined) {
316
316
  return []
317
317
  }
318
- return this.isValString ? (this.val ? [this.val] : []) : this.val.filter((img) => img)
318
+ return this.isValString ? (this.val ? [this.val] : []) : this.val.filter(img => img)
319
319
  },
320
320
  getItemStyle() {
321
321
  const style = {
@@ -382,7 +382,7 @@ export default {
382
382
  current = this.val
383
383
  urls = [this.val]
384
384
  } else {
385
- urls = this.imgField ? this.val.map((img) => img[this.imgField]) : this.val
385
+ urls = this.imgField ? this.val.map(img => img[this.imgField]) : this.val
386
386
  current = this.imgField ? img[this.imgField] : img
387
387
  }
388
388
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sadais-piui",
3
- "version": "1.2.7beta52",
3
+ "version": "1.2.7beta53",
4
4
  "description": "piui组件库",
5
5
  "main": "index.js",
6
6
  "scripts": {