vue2-client 1.16.23 → 1.16.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": "vue2-client",
3
- "version": "1.16.23",
3
+ "version": "1.16.24",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve --no-eslint",
@@ -9,6 +9,7 @@
9
9
  :disabled="disabled"
10
10
  :allowClear="allowClear"
11
11
  :format="format"
12
+ :showTime="showTime"
12
13
  @change="handleDateChange"
13
14
  />
14
15
  </div>
@@ -18,6 +19,7 @@
18
19
  :format="format"
19
20
  :disabled="disabled"
20
21
  :allowClear="allowClear"
22
+ :showTime="showTime"
21
23
  @change="handleDateChange"
22
24
  />
23
25
  </div>
@@ -56,7 +58,7 @@ export default {
56
58
  },
57
59
  format: {
58
60
  type: String,
59
- default: 'YYYY/MM/DD'
61
+ default: 'YYYY-MM-DD'
60
62
  }
61
63
  },
62
64
  data () {
@@ -65,6 +67,12 @@ export default {
65
67
  type: 'range'
66
68
  }
67
69
  },
70
+ computed: {
71
+ showTime () {
72
+ // 根据format判断是否需要显示时间选择器
73
+ return this.format && (this.format.includes('HH:mm') || this.format.includes('hh:mm'))
74
+ }
75
+ },
68
76
  watch: {
69
77
  value: {
70
78
  handler (newVal) {