@hi-ui/time-picker 4.0.14 → 4.0.15

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/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # @hi-ui/time-picker
2
2
 
3
+ ## 4.0.15
4
+
5
+ ### Patch Changes
6
+
7
+ - [#2841](https://github.com/XiaoMi/hiui/pull/2841) [`494ebd982`](https://github.com/XiaoMi/hiui/commit/494ebd982d50a1bc57697effd8365adfa2d37132) Thanks [@zyprepare](https://github.com/zyprepare)! - fix: 修复设置空字符串无效问题
8
+
9
+ - Updated dependencies [[`3afbf239e`](https://github.com/XiaoMi/hiui/commit/3afbf239e816ede48d6a85cbd99b6b099b8c8eb3)]:
10
+ - @hi-ui/env@4.0.7
11
+
3
12
  ## 4.0.14
4
13
 
5
14
  ### Patch Changes
@@ -45,7 +45,7 @@ var getValueMatchString = function getValueMatchString(value, format) {
45
45
  if (format === void 0) {
46
46
  format = 'HH:mm:ss';
47
47
  }
48
- if (!value) {
48
+ if (value === undefined || value === null) {
49
49
  return undefined;
50
50
  }
51
51
  var result = Array.isArray(value) ? value : [value];
@@ -32,7 +32,7 @@ var getValueMatchString = function getValueMatchString(value, format) {
32
32
  if (format === void 0) {
33
33
  format = 'HH:mm:ss';
34
34
  }
35
- if (!value) {
35
+ if (value === undefined || value === null) {
36
36
  return undefined;
37
37
  }
38
38
  var result = Array.isArray(value) ? value : [value];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hi-ui/time-picker",
3
- "version": "4.0.14",
3
+ "version": "4.0.15",
4
4
  "description": "A sub-package for @hi-ui/hiui.",
5
5
  "keywords": [],
6
6
  "author": "HiUI <mi-hiui@xiaomi.com>",
@@ -46,7 +46,7 @@
46
46
  "dependencies": {
47
47
  "@hi-ui/button": "^4.0.10",
48
48
  "@hi-ui/classname": "^4.0.5",
49
- "@hi-ui/env": "^4.0.5",
49
+ "@hi-ui/env": "^4.0.7",
50
50
  "@hi-ui/icons": "^4.0.19",
51
51
  "@hi-ui/popper": "^4.1.5",
52
52
  "@hi-ui/use-uncontrolled-state": "^4.0.4",