@zscreate/zhxy-app-component 1.0.3 → 1.0.50

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.
@@ -76,7 +76,7 @@
76
76
  {{widget.name}}
77
77
  </view>
78
78
  <view class="evan-form-item-container__main" :style="mContentStyle">
79
- <uni-rate allow-half :min="widget.options.min ? widget.options.min : 0" size="18"
79
+ <uni-rate allowHalf :min="widget.options.min ? widget.options.min : 0" size="18"
80
80
  :max="widget.options.max ? widget.options.max : 1000000" :value="dataModel" @change="changeRate"
81
81
  :disabled="widget.options.disabled">
82
82
  </uni-rate>
@@ -533,6 +533,9 @@
533
533
  }
534
534
  return '请选择'
535
535
  }
536
+ if (widget.type === 'date' && widget.options.format) {
537
+ return moment(dataModel).format(widget.options.format)
538
+ }
536
539
  return dataModel
537
540
  }
538
541
  if (widget.options.placeholder) {
@@ -184,7 +184,13 @@
184
184
  console.log(this.widget, )
185
185
  if (this.disabled || (this.defaultFile.length && this.defaultFile.length >= this.widget.length)) return false;
186
186
  var that = this;
187
- wx.chooseMessageFile({
187
+ //#ifdef H5
188
+ uni.chooseFile
189
+ //#endif
190
+ // #ifdef MP-WEIXIN
191
+ wx.chooseMessageFile
192
+ // #endif
193
+ ({
188
194
  count: 1,
189
195
  type: 'all',
190
196
  success(res) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zscreate/zhxy-app-component",
3
- "version": "1.0.3",
3
+ "version": "1.0.50",
4
4
  "private": false,
5
5
  "description": "zhxy-app-component",
6
6
  "main": "index.js",