@gm-pc/react 1.11.0-beta.0 → 1.11.1-beta.0

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.11.0-beta.0",
3
+ "version": "1.11.1-beta.0",
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.11.0-beta.0",
27
+ "@gm-pc/locales": "^1.11.1-beta.0",
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": "1a9fc4440a72db62319225a3ceeb27ce5799ecda"
51
+ "gitHead": "6aac986980cb2d9e2f32ac10171846f5b6beea41"
52
52
  }
@@ -119,7 +119,15 @@ class Select<V = any> extends Component<SelectProps<V>, SelectState> {
119
119
  className='gm-border-0'
120
120
  style={{ maxHeight: '250px' }}
121
121
  />
122
- {addonLast}
122
+ {addonLast && (
123
+ <div
124
+ onClick={() => {
125
+ this._popupRef.current!.apiDoSetActive()
126
+ }}
127
+ >
128
+ {addonLast}
129
+ </div>
130
+ )}
123
131
  </>
124
132
  )
125
133
 
@@ -17,7 +17,12 @@ interface SelectProps<V> {
17
17
  className?: string
18
18
  style?: CSSProperties
19
19
  placeholder?: string
20
- /** 在下拉选项最后自定义内容 */
20
+ /**
21
+ * 在下拉选项最后自定义内容
22
+ *
23
+ * 注意:点击自定义内容时,会将浮层关闭。
24
+ * 你可以在自定义内容的事件处理函数中添加 `e.preventDefault()` 来阻止这个行为。
25
+ */
21
26
  addonLast?: ReactNode
22
27
  }
23
28