@zscreate/zhxy-app-component 1.0.117 → 1.0.119

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,3 +1,4 @@
1
+ @placeholder_color: #ccc;
1
2
  /deep/ .evan-form-show {
2
3
  .form-item {
3
4
  margin-bottom: 0;
@@ -247,7 +248,7 @@
247
248
 
248
249
  .form-input-placeholder {
249
250
  font-size: 26rpx;
250
- color: #666 !important;
251
+ color: @placeholder_color !important;
251
252
  }
252
253
 
253
254
  .uni-label-pointer {
@@ -322,7 +323,7 @@
322
323
  }
323
324
 
324
325
  .uni-input-placeholder, .uni-textarea-placeholder {
325
- color: #666 !important;
326
+ color: @placeholder_color !important;
326
327
  }
327
328
 
328
329
  }
@@ -127,7 +127,7 @@
127
127
  if (!ext.includes(that.name.split('.').pop())) {
128
128
  that.uploadIng = false
129
129
  return uni.showToast({
130
- title: `不支持该文件`,
130
+ title: `不允许上传的文件类型!`,
131
131
  icon: 'none'
132
132
  })
133
133
  }
@@ -7,7 +7,7 @@
7
7
  :upload-text="widget.options.placeholder"
8
8
  width="150" height="150" :multiple="false" :max-count="maxCount" :disabled="disabled"
9
9
  @on-remove="onRemove" @on-oversize="onOversize" @on-success="onSuccess"
10
- :show-progress="showProgress">
10
+ :show-progress="showProgress" :max-size="maxSize">
11
11
 
12
12
  <template name="addbtn">
13
13
  <view class="u-list-item u-add-wrap" hover-class="u-add-wrap__hover" hover-stay-time="150" @click.stop="handleClick">
@@ -47,6 +47,7 @@ export default {
47
47
  percent: 0,
48
48
  upimg: '',
49
49
  maxCount: 8,
50
+ maxSize: undefined,
50
51
  disabled: false,
51
52
  show: true,
52
53
  fileList: [],
@@ -87,7 +88,7 @@ export default {
87
88
 
88
89
  if (!ext.includes(event.name.split('.').pop())) {
89
90
  return uni.showToast({
90
- title: `不支持该文件`,
91
+ title: `不允许上传的文件类型!`,
91
92
  icon: 'none'
92
93
  })
93
94
  }
@@ -172,6 +173,7 @@ export default {
172
173
  })
173
174
  },
174
175
  onOversize() {
176
+ debugger
175
177
  uni.showToast({
176
178
  title: `文件超出${this.maxSize/1024}KB!`,
177
179
  icon: 'none',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zscreate/zhxy-app-component",
3
- "version": "1.0.117",
3
+ "version": "1.0.119",
4
4
  "private": false,
5
5
  "description": "zhxy-app-component",
6
6
  "main": "index.js",
File without changes