doway-coms 1.4.22 → 1.4.24

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "doway-coms",
3
- "version": "1.4.22",
3
+ "version": "1.4.24",
4
4
  "description": "doway组件库",
5
5
  "author": "dowaysoft",
6
6
  "main": "packages/index.js",
@@ -1227,6 +1227,11 @@ export default {
1227
1227
  visible: true,
1228
1228
  };
1229
1229
 
1230
+ if(XEUtils.has(originCol,'showOverflow')){
1231
+ colInfo['showOverflow'] = originCol.showOverflow
1232
+ }
1233
+
1234
+
1230
1235
  let customSlot = {
1231
1236
  default: "default",
1232
1237
  };
@@ -66,6 +66,13 @@
66
66
  <div v-if="displayType === 'second'" style="width:20px">
67
67
  <span>秒</span>
68
68
  </div>
69
+ <input
70
+ @input="secondTotalChange"
71
+ v-if="displayType === 'second'"
72
+ type="number"
73
+ class="input-second-class"
74
+ v-model="secondTotalValue"
75
+ />
69
76
  </div>
70
77
  <div class="d-error-msg">
71
78
  {{ v.errors[0] }}
@@ -98,6 +105,7 @@ export default {
98
105
  hourValue: 0,
99
106
  minuteValue: 0,
100
107
  secondValue: 0,
108
+ secondTotalValue: 0,
101
109
  testValue: 0,
102
110
  filterValue: '',
103
111
  isInputChanged: false,
@@ -116,6 +124,7 @@ export default {
116
124
  currentValue: {
117
125
  // 动态计算currentValue的值
118
126
  get: function() {
127
+ console.debug('get value')
119
128
  //分钟计算成小时
120
129
  let tempValue = this.value
121
130
  if (this.valueType === 'hour') {
@@ -143,6 +152,7 @@ export default {
143
152
  //设置秒数
144
153
  this.secondValue = tempValue
145
154
  }
155
+ this.secondTotalValue = this.value
146
156
 
147
157
  return this.value // 将props中的value赋值给currentValue
148
158
  },
@@ -243,6 +253,10 @@ export default {
243
253
  this.setCurrentValue()
244
254
  this.$emit('change')
245
255
  },
256
+ secondTotalChange() {
257
+ this.currentValue = XEUtils.toNumber(this.secondTotalValue)
258
+ this.$emit('change')
259
+ },
246
260
  setCurrentValue() {
247
261
  if (this.valueType === 'hour') {
248
262
  this.currentValue =
@@ -275,6 +289,13 @@ export default {
275
289
  outline: none;
276
290
  width: 25px;
277
291
  }
292
+ .input-second-class {
293
+ border-top: none;
294
+ border-right: none;
295
+ border-left: none;
296
+ outline: none;
297
+ width: 100px;
298
+ }
278
299
  input[type="number"] {
279
300
  &::-webkit-outer-spin-button,
280
301
  &::-webkit-inner-spin-button {