@rainbow-oh/yee-c 0.9.1 → 0.9.2

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": "@rainbow-oh/yee-c",
3
- "version": "0.9.1",
3
+ "version": "0.9.2",
4
4
  "description": "yee basic components",
5
5
  "keywords": [
6
6
  "react",
@@ -27,6 +27,7 @@ const InternalBadge: React.FC<BadgeProps> = (baseprops) => {
27
27
  className,
28
28
  styles,
29
29
  classNames,
30
+ title,
30
31
  ...rest
31
32
  } = props;
32
33
 
@@ -43,7 +44,7 @@ const InternalBadge: React.FC<BadgeProps> = (baseprops) => {
43
44
  if (count === null || count === undefined) return null;
44
45
 
45
46
  if (typeof count === 'number') {
46
- supTitle = String(count);
47
+ supTitle = title || String(count);
47
48
 
48
49
  // When count is 0 and showZero is false, return null
49
50
  if (count === 0 && !showZero) return null;
@@ -27,6 +27,10 @@ export interface BadgeProps extends DataAttributeProps {
27
27
  * Child component
28
28
  */
29
29
  children?: React.ReactNode;
30
+ /**
31
+ * Native Title
32
+ */
33
+ title?: string;
30
34
  /**
31
35
  * Number to display or custom content
32
36
  */
@@ -47,10 +47,6 @@ export interface PopconfirmProps extends Omit<
47
47
  * open, controllered
48
48
  * */
49
49
  open?: boolean;
50
- /**
51
- * placement
52
- */
53
- placement?: 'top' | 'bottom' | 'left' | 'right';
54
50
  /**
55
51
  * 设置确认按钮文本
56
52
  * */
@@ -13,6 +13,7 @@ import mergeContextToProps from '../utils/mergeContextToProps';
13
13
  import useSelectKeyboard from './hooks/useSelectKeyboard';
14
14
  import { Option, SelectProps } from './interface';
15
15
  import Options from './options';
16
+ import Omit from '../utils/omit';
16
17
  import './style/index.less';
17
18
 
18
19
  // ---------------------------------------------------------------------------
@@ -229,7 +230,7 @@ const Select = (baseprops: SelectProps) => {
229
230
  onOpenChange={handleOpenChange}
230
231
  >
231
232
  <Selector
232
- {...rest}
233
+ {...Omit(rest, ['forceRender'])}
233
234
  mode={mode}
234
235
  value={searchValue}
235
236
  options={options}
@@ -198,6 +198,7 @@ const TableSelect = (baseprops: TableSelectProps) => {
198
198
 
199
199
  return (
200
200
  <Trigger
201
+ {...rest}
201
202
  trigger="click"
202
203
  popupClassName={`${prefixCls}-popup`}
203
204
  popup={renderPopup()}
@@ -255,7 +255,7 @@ const TreeSelect = <T extends Record<string, unknown> = any>(
255
255
  onOpenChange={handleOpenChange}
256
256
  >
257
257
  <Selector
258
- {...omit(rest, ['showLine'])}
258
+ {...omit(rest, ['showLine', 'forceRender'])}
259
259
  className={`${prefixCls}-selector`}
260
260
  mode={mode}
261
261
  value={searchValue}
package/src/version.ts CHANGED
@@ -4,7 +4,7 @@ declare global {
4
4
  }
5
5
  }
6
6
 
7
- export const version = "0.9.1";
7
+ export const version = "0.9.2";
8
8
 
9
9
  if (typeof window !== 'undefined') {
10
10
  window.__yee_c_version__ = version;