mali-applet-ui 0.2.73 → 0.2.75

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.
@@ -3,19 +3,13 @@
3
3
  <template #header>
4
4
  <view class="ml-picker-drawer-header">
5
5
  <view class="ml-picker-drawer-title">
6
- <ml-row>
7
- <ml-col shrink @click="cancelEvent">
8
- <view class="ml-picker-drawer-close-btn">
9
- <ml-icon name="close" />
10
- </view>
11
- </ml-col>
12
- <ml-col align="center">{{ title }}</ml-col>
13
- <ml-col shrink>
14
- <view class="ml-picker-drawer-confirm-btn">
15
- <ml-button type="text" @click="confirmEvent">确定</ml-button>
16
- </view>
17
- </ml-col>
18
- </ml-row>
6
+ <view class="ml-picker-drawer-close-btn" @click="cancelEvent">
7
+ <ml-icon name="close" />
8
+ </view>
9
+ <view class="ml-picker-drawer-title-content">{{ title }}</view>
10
+ <view class="ml-picker-drawer-confirm-btn">
11
+ <ml-button type="text" status="primary" @click="confirmEvent">确定</ml-button>
12
+ </view>
19
13
  </view>
20
14
  <view class="ml-picker-drawer-top">
21
15
  <slot name="top"></slot>
@@ -87,18 +81,32 @@ export default {
87
81
  display: block;
88
82
  width: 100%;
89
83
  .ml-picker-drawer-title {
84
+ display: flex;
85
+ flex-direction: row;
90
86
  height: 80rpx;
91
87
  line-height: 80rpx;
88
+ overflow: hidden;
92
89
  }
93
90
  .ml-picker-drawer-close-btn {
91
+ flex-shrink: 0;
94
92
  width: 80rpx;
95
93
  text-align: center;
94
+ padding-right: 20rpx;
95
+ font-size: 28rpx;
96
96
  // #ifdef H5
97
97
  cursor: pointer;
98
98
  // #endif
99
99
  }
100
+ .ml-picker-drawer-title-content {
101
+ flex-grow: 1;
102
+ text-align: center;
103
+ overflow: hidden;
104
+ white-space: nowrap;
105
+ text-overflow: ellipsis;
106
+ }
100
107
  .ml-picker-drawer-confirm-btn {
101
- padding-left: 20rpx;
108
+ flex-shrink: 0;
109
+ padding-left: 30rpx;
102
110
  }
103
111
  }
104
112
  </style>
@@ -4,7 +4,7 @@
4
4
  <view v-if="mediatype === 'image'" class="ml-upload-image-list">
5
5
  <view class="ml-upload-image-item" v-for="(item, index) in fileList" :key="index">
6
6
  <image class="ml-upload-image-img" mode="aspectFit" :src="getUrl(item)" @click="previewImageEvent(item, index)"></image>
7
- <view class="ml-upload-image-del-btn" @click="removeEvent(item)">
7
+ <view v-if="!isFromReadonly" class="ml-upload-image-del-btn" @click="removeEvent(item)">
8
8
  <ml-icon name="close" />
9
9
  </view>
10
10
  </view>
@@ -39,7 +39,7 @@
39
39
  <ml-button status="primary" type="text" @click="downloadEvent(item)">下载</ml-button>
40
40
  </view>
41
41
  </view>
42
- <view class="ml-upload-file-right">
42
+ <view v-if="!isFromReadonly" class="ml-upload-file-right">
43
43
  <view class="ml-upload-file-del-btn" @click="removeEvent(item)">
44
44
  <ml-icon name="close" />
45
45
  </view>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mali-applet-ui",
3
- "version": "0.2.73",
3
+ "version": "0.2.75",
4
4
  "description": "码里云小程序组件库",
5
5
  "scripts": {
6
6
  "release": "node script/release.js && npm publish"