@zscreate/zhxy-app-component 1.0.198 → 1.0.202

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.
@@ -183,7 +183,7 @@
183
183
  /> -->
184
184
 
185
185
  <view class="evan-form-item-container__main--body">
186
- <uni-datetime-picker @change="dateChange" @click.native="isClickByUser = true" :type="widget.options.type"
186
+ <uni-datetime-picker ref="datetime_picker" @change="dateChange" @click.native="isClickByUser = true" :type="widget.options.type"
187
187
  :format="widget.options.format" :clearIcon="!widget.options.disabled && widget.options.clearable"
188
188
  v-model="dataModel" @maskClick="maskClick" :border="false" :disabled="widget.options.disabled">
189
189
  <view class="option-font-size">
@@ -1287,7 +1287,7 @@ export default {
1287
1287
  value = dateStr + ''
1288
1288
  }
1289
1289
  this.dataModel = value
1290
- } else {
1290
+ } else if(this.widget.type === 'number') {
1291
1291
  const { max, min } = this.widget.options
1292
1292
  if (max && value > max) {
1293
1293
  this.dataModel = max
@@ -1297,6 +1297,7 @@ export default {
1297
1297
  this.dataModel = min
1298
1298
  return
1299
1299
  }
1300
+ } else {
1300
1301
  this.dataModel = value
1301
1302
  }
1302
1303
  }
@@ -1709,14 +1710,22 @@ export default {
1709
1710
  if (this.widget.options.type === 'range' && !Array.isArray(v)) {
1710
1711
  this.dataModel = v =[]
1711
1712
  }
1713
+ if (this.widget.options.type !== 'range' && typeof v !== 'string') {
1714
+ v = undefined
1715
+ }
1712
1716
  const concatData = [].concat(v)
1717
+ concatData.forEach((item, idx) => {
1718
+ if (typeof item !== 'string') concatData[idx] = undefined
1719
+ })
1720
+
1713
1721
  if (v && concatData.length > 0 && !concatData.every(item => !this.disabledDate(item))) {
1714
1722
  this.$refs.uToast.show({
1715
1723
  title: "超出允许选择范围",
1716
1724
  duration: 2000,
1717
1725
  });
1718
- this.dataModel = undefined
1719
- v = undefined
1726
+ this.dataModel = ''
1727
+ v = ''
1728
+ this.$refs.datetime_picker.initPicker(v)
1720
1729
  }
1721
1730
 
1722
1731
  }
@@ -50,6 +50,9 @@ export default {
50
50
  .show{
51
51
  width: 100vw;
52
52
  height: 100vh;
53
+ // #ifdef MP-WEIXIN
54
+ padding-top: 40px;
55
+ // #endif
53
56
  position: fixed;
54
57
  left: 0;
55
58
  right: 0;
@@ -30,7 +30,7 @@
30
30
  </u-tr>
31
31
  <u-tr v-for="user in roleUserList" :key="user.id">
32
32
  <u-td width="50px" >
33
- <view style="width: 33px;">
33
+ <view style="min-width: 33px;">
34
34
  <u-checkbox v-model="user.checked" @change="handleCheck" :name="user.id" >
35
35
  </u-checkbox>
36
36
  </view>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zscreate/zhxy-app-component",
3
- "version": "1.0.198",
3
+ "version": "1.0.202",
4
4
  "private": false,
5
5
  "description": "zhxy-app-component",
6
6
  "main": "index.js",