imeik-bizui 1.6.8 → 1.6.9

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.
@@ -150,7 +150,7 @@ export default {
150
150
  /**
151
151
  * 格式化后的值
152
152
  */
153
- formatedValue() {
153
+ newFormatedValue() {
154
154
  if (Array.isArray(this.diffValue)) {
155
155
  return this.diffValue.map((item) => moment(item).format(this.momentFormat)).join('~')
156
156
  } else {
@@ -161,7 +161,7 @@ export default {
161
161
  }
162
162
  }
163
163
  },
164
- newFormatedValue() {
164
+ formatedValue() {
165
165
  if (Array.isArray(this.myValue)) {
166
166
  return this.myValue.map((item) => moment(item).format(this.momentFormat)).join('~')
167
167
  } else {
@@ -225,10 +225,7 @@ export default {
225
225
  timeFormat(val) {
226
226
  if (this.isRange) {
227
227
  if (Array.isArray(val) && val.length === 2) {
228
- return [
229
- moment(val[0]).format(this.momentFormat),
230
- moment(val[1]).format(this.momentFormat)
231
- ]
228
+ return [moment(val[0]).format(this.momentFormat), moment(val[1]).format(this.momentFormat)]
232
229
  } else {
233
230
  return []
234
231
  }