@zscreate/zhxy-app-component 1.0.305 → 1.0.306

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.
@@ -496,6 +496,7 @@
496
496
  <view class="form-input" placeholder-class="form-input-placeholder">
497
497
  {{ dataModelShow ? dataModelShow : widget.options.placeholder }}
498
498
  </view>
499
+ <uni-icons style="margin-left: auto; height: 60rpx; line-height: 60rpx;margin-right: 28rpx;" @click.native.stop="handleClear" v-if="!widget.options.disabled && dataModelShow" type="clear" color="#e1e1e1" size="14"></uni-icons>
499
500
  </view>
500
501
  </view>
501
502
 
@@ -880,6 +881,11 @@ export default {
880
881
  uni.$off(this.widget.model);
881
882
  },
882
883
  methods: {
884
+ cityChecked(type) {
885
+ if(type === false) {
886
+ this.dataModel = []
887
+ }
888
+ },
883
889
  clearValidate() {
884
890
  this.showFalse = false
885
891
  },
@@ -1,6 +1,9 @@
1
1
  <template>
2
2
  <view style="width: 100%">
3
- <view class="pick-name" @click="handleclick">{{title ? title : placeholder}}</view>
3
+ <view style="display: flex;justify-content: space-between;">
4
+ <view class="pick-name" @click="handleclick">{{title ? title : placeholder}}</view>
5
+ <uni-icons style="margin-left: auto; margin-right: 20rpx;margin-top: 8rpx;" @click.native.stop="handleClear" v-if="!disabled && title" type="clear" color="#e1e1e1" size="14"></uni-icons>
6
+ </view>
4
7
  <!-- <uni-icons type="arrowdown" color="#D7d7d7" size="20" v-if="title =='' " @click="handleclick"></uni-icons> -->
5
8
  <!-- <input type="text" placeholder="请选择" v-if="title =='' " @click="handleclick" /> -->
6
9
  <uni-popup ref="popup" type="bottom">
@@ -96,6 +99,11 @@
96
99
  }
97
100
  },
98
101
  methods: {
102
+ handleClear() {
103
+ this.title = ''
104
+ this.city = []
105
+ this.$emit('change', false);
106
+ },
99
107
  bindChange: function(e) {
100
108
  const val = e.detail.value
101
109
  if (val[0] != this.indexList[0]) {
@@ -38,8 +38,8 @@
38
38
  </u-radio-group>
39
39
  </view>
40
40
  </u-td>
41
- <u-td style="flex: 1"><view>{{ user.realname }}</view></u-td>
42
- <u-td style="flex: 1; word-break: break-all; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;"><view>{{ user.departName }}</view></u-td>
41
+ <u-td style="flex: 1"><view>{{ user.realname ? user.realname : '/' }}</view></u-td>
42
+ <u-td style="flex: 1; word-break: break-all; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;"><view>{{ user.departName ? user.departName : '/' }}</view></u-td>
43
43
  </u-tr>
44
44
  </u-table>
45
45
  </view>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zscreate/zhxy-app-component",
3
- "version": "1.0.305",
3
+ "version": "1.0.306",
4
4
  "private": false,
5
5
  "description": "zhxy-app-component",
6
6
  "main": "index.js",