n20-common-lib 2.6.10 → 2.6.11

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": "n20-common-lib",
3
- "version": "2.6.10",
3
+ "version": "2.6.11",
4
4
  "private": false,
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -115,10 +115,10 @@ export default {
115
115
  },
116
116
  set(value) {
117
117
  if (value) {
118
- // this.$emit('input', { startDate: value[0], endDate: value[1], typeDate: this.type })
118
+ this.$emit('input', { startDate: value[0], endDate: value[1], typeDate: this.type })
119
119
  this.$emit('change', { startDate: value[0], endDate: value[1], typeDate: this.type })
120
120
  } else {
121
- // this.$emit('input', { startDate: '', endDate: '', typeDate: this.type })
121
+ this.$emit('input', { startDate: '', endDate: '', typeDate: this.type })
122
122
  this.$emit('change', { startDate: '', endDate: '', typeDate: this.type })
123
123
  }
124
124
  }
@@ -146,14 +146,14 @@ export default {
146
146
  typeDate: this.value.typeDate
147
147
  } // 选择的范围
148
148
 
149
- // this.$emit('input', weekTime)
149
+ this.$emit('input', weekTime)
150
150
  this.$emit('change', weekTime)
151
151
  } else {
152
- // this.$emit('input', {
153
- // startDate: '',
154
- // endDate: '',
155
- // typeDate: this.value.typeDate
156
- // })
152
+ this.$emit('input', {
153
+ startDate: '',
154
+ endDate: '',
155
+ typeDate: this.value.typeDate
156
+ })
157
157
  this.$emit('change', {
158
158
  startDate: '',
159
159
  endDate: '',
@@ -177,7 +177,7 @@ export default {
177
177
  endDate: dayjs(value).endOf('month').format('YYYY-MM-DD'),
178
178
  typeDate: this.value.typeDate
179
179
  }
180
- // this.$emit('input', IMonth)
180
+ this.$emit('input', IMonth)
181
181
  this.$emit('change', IMonth)
182
182
  } else {
183
183
  let IMonth = {
@@ -185,7 +185,7 @@ export default {
185
185
  endDate: '',
186
186
  typeDate: this.value.typeDate
187
187
  }
188
- // this.$emit('input', IMonth)
188
+ this.$emit('input', IMonth)
189
189
  this.$emit('change', IMonth)
190
190
  }
191
191
  }
@@ -195,7 +195,7 @@ export default {
195
195
  return this.value
196
196
  },
197
197
  set(value) {
198
- // this.$emit('input', Object.assign(value, { typeDate: this.type }))
198
+ this.$emit('input', Object.assign(value, { typeDate: this.type }))
199
199
  this.$emit('change', Object.assign(value, { typeDate: this.type }))
200
200
  }
201
201
  },
@@ -214,7 +214,7 @@ export default {
214
214
  endDate: dayjs(value).endOf('year').format('YYYY-MM-DD'),
215
215
  typeDate: this.value.typeDate
216
216
  }
217
- // this.$emit('input', iYear)
217
+ this.$emit('input', iYear)
218
218
  this.$emit('change', iYear)
219
219
  } else {
220
220
  let iYear = {
@@ -222,7 +222,7 @@ export default {
222
222
  endDate: '',
223
223
  typeDate: this.value.typeDate
224
224
  }
225
- // this.$emit('input', iYear)
225
+ this.$emit('input', iYear)
226
226
  this.$emit('change', iYear)
227
227
  }
228
228
  }