@gm-pc/react 1.12.0 → 1.12.1

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": "@gm-pc/react",
3
- "version": "1.12.0",
3
+ "version": "1.12.1",
4
4
  "description": "观麦前端基础组件库",
5
5
  "author": "liyatang <liyatang@qq.com>",
6
6
  "homepage": "https://github.com/gmfe/gm-pc#readme",
@@ -24,7 +24,7 @@
24
24
  "dependencies": {
25
25
  "@gm-common/hooks": "^2.10.0",
26
26
  "@gm-common/tool": "^2.10.0",
27
- "@gm-pc/locales": "^1.12.0",
27
+ "@gm-pc/locales": "^1.12.1",
28
28
  "big.js": "^6.0.1",
29
29
  "classnames": "^2.2.5",
30
30
  "lodash": "^4.17.19",
@@ -48,5 +48,5 @@
48
48
  "react-router-dom": "^5.2.0",
49
49
  "react-window": "^1.8.5"
50
50
  },
51
- "gitHead": "e9f2e0b300a3ee5354e8078781e6a9db34c19adb"
51
+ "gitHead": "9d0ca9956bfdeee6bb4775ab56e8c15d5b4f5e94"
52
52
  }
@@ -101,6 +101,7 @@ class Price extends Component<PriceProps> {
101
101
  keepZero: boolean,
102
102
  isFenUnit: boolean
103
103
  ): string => {
104
+ if (isNaN(value)) return ''
104
105
  const divRatio = isFenUnit ? 100 : 1
105
106
  const result = Big(Math.abs(value)).div(divRatio).toFixed(precision)
106
107
  return keepZero ? result : `${parseFloat(result)}`
@@ -34,6 +34,8 @@ const vbrowser = new VBrowser({
34
34
  onError?: (error: { code: number; message: string }) => void
35
35
  /** 打开窗口如果没有传入标题,则使用此方法取标题 */
36
36
  autoTitle?: (path: string) => string
37
+ /** 不以子窗口形式展示的页面名单(视觉上), 这些页面会子窗口形式打开,但是视觉上会隐藏子窗口标签栏,且在离开页面时自动close掉,以达到子页面不在vbrowser中的视觉效果 */
38
+ ignoredPath?: Array<string | RegExp>
37
39
  })
38
40
  ```
39
41
 
@@ -43,7 +45,7 @@ vbrowser 暴露了以下属性和方法,详细信息见类型声明/代码提
43
45
 
44
46
  - `props`
45
47
 
46
- 实例化传入的参数,可以更改;
48
+ 实例化传入的参数;
47
49
 
48
50
  - `windows`
49
51
 
@@ -65,10 +67,6 @@ vbrowser 暴露了以下属性和方法,详细信息见类型声明/代码提
65
67
 
66
68
  `ui`是否已挂载;
67
69
 
68
- - `ignoredPath`
69
-
70
- 不以子窗口形式展示的页面名单(视觉上), 这些页面会子窗口形式打开,但是视觉上会隐藏子窗口标签栏,且在离开页面时自动 close 掉,以达到子页面不在 vbrowser 中的视觉效果
71
-
72
70
  方法
73
71
 
74
72
  - `open`