Skip to content

Commit 2b67682

Browse files
zhc5253499657insummer
authored andcommitted
fix:变更image-picker组件isPreview属性名为preview (#634)
1 parent a792063 commit 2b67682

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

dist/image-picker/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ Component({
4646
value: false
4747
},
4848
// 是否可以预览
49-
isPreview: {
49+
preview: {
5050
type: Boolean,
5151
value: true
5252
},
@@ -124,7 +124,7 @@ Component({
124124
all: urls // 需要预览的图片http链接列表
125125
};
126126
let option = {};
127-
if (this.data.isPreview === true) {
127+
if (this.data.preview === true) {
128128
wx.previewImage({
129129
current: tempFilePath, // 当前显示图片的http链接
130130
urls: previewImageList // 需要预览的图片http链接列表

examples/dist/image-picker/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ Component({
4646
value: false
4747
},
4848
// 是否可以预览
49-
isPreview: {
49+
preview: {
5050
type: Boolean,
5151
value: true
5252
},
@@ -124,7 +124,7 @@ Component({
124124
all: urls // 需要预览的图片http链接列表
125125
};
126126
let option = {};
127-
if (this.data.isPreview === true) {
127+
if (this.data.preview === true) {
128128
wx.previewImage({
129129
current: tempFilePath, // 当前显示图片的http链接
130130
urls: previewImageList // 需要预览的图片http链接列表

src/image-picker/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ Component({
4646
value: false
4747
},
4848
// 是否可以预览
49-
isPreview: {
49+
preview: {
5050
type: Boolean,
5151
value: true
5252
},
@@ -124,7 +124,7 @@ Component({
124124
all: urls // 需要预览的图片http链接列表
125125
};
126126
let option = {};
127-
if (this.data.isPreview === true) {
127+
if (this.data.preview === true) {
128128
wx.previewImage({
129129
current: tempFilePath, // 当前显示图片的http链接
130130
urls: previewImageList // 需要预览的图片http链接列表

0 commit comments

Comments
 (0)