@gm-pc/react 1.24.9-beta.15 → 1.24.9-beta.17

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.24.9-beta.15",
3
+ "version": "1.24.9-beta.17",
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.24.9-beta.15",
27
+ "@gm-pc/locales": "^1.24.9-beta.17",
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": "f14d1b143c889ae2e2bc447893bd88e47af14b77"
51
+ "gitHead": "76381f56c5eb4da86769117254d5fa58863e9351"
52
52
  }
@@ -1,4 +1,5 @@
1
1
  import React, { useState, useEffect, FC, KeyboardEvent, useRef } from 'react'
2
+ import { getLocale } from '@gm-pc/locales'
2
3
  import { InputNumber } from '../input_number'
3
4
  import { Flex } from '../flex'
4
5
  import { PaginationProps } from './types'
@@ -70,7 +71,7 @@ const Right: FC<PaginationProps> = ({ paging, onChange }) => {
70
71
  onKeyDown={handleKeyDown}
71
72
  style={{ width: '40px' }}
72
73
  />
73
- <div className='gm-pagination-right-total-page'>{`/${all}页`}</div>
74
+ <div className='gm-pagination-right-total-page'>{`/${all}${getLocale('页')}`}</div>
74
75
  </Flex>
75
76
  )
76
77
  }
@@ -30,8 +30,8 @@ function getCurrentFromType(type: string): CurrencyListOptions | undefined {
30
30
  return currencyList.find((value) => value.type === type)
31
31
  }
32
32
 
33
- const symbol = Storage.get(symbolKey) ?? '¥'
34
- const unit = Storage.get(unitKey) ?? '元'
33
+ let symbol = Storage.get(symbolKey) ?? '¥'
34
+ let unit = Storage.get(unitKey) ?? '元'
35
35
 
36
36
  class Price extends Component<PriceProps> {
37
37
  /**
@@ -52,6 +52,7 @@ class Price extends Component<PriceProps> {
52
52
  return
53
53
  }
54
54
  Storage.set(symbolKey, _symbol)
55
+ symbol = _symbol
55
56
  eventBus.dispatch('REACT_GM_UPDATE_PRICE')
56
57
  }
57
58
 
@@ -68,6 +69,7 @@ class Price extends Component<PriceProps> {
68
69
  return
69
70
  }
70
71
  Storage.set(unitKey, _unit)
72
+ unit = _unit
71
73
  }
72
74
 
73
75
  static getUnit(type = ''): string {