@yorkjs/hive-ui 2.3.8 → 2.3.9
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 +1 -1
- package/src/components/Alert/index.tsx +2 -1
- package/src/components/Cell/index.tsx +3 -3
- package/src/components/RichTextEditor/index.tsx +6 -3
- package/src/components/Table/index.tsx +2 -1
- package/src/components/Tag/index.tsx +3 -1
- package/src/item/ProductItem/index.tsx +1 -1
package/package.json
CHANGED
|
@@ -8,7 +8,8 @@ import Icon from '../Icon'
|
|
|
8
8
|
|
|
9
9
|
import styles from './index.module.styl'
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
type AlertType = 'success' | 'error' | 'primary' | 'warning'
|
|
12
|
+
export { AlertType }
|
|
12
13
|
|
|
13
14
|
export interface AlertProps {
|
|
14
15
|
message: React.ReactNode
|
|
@@ -6,9 +6,9 @@ import CellValue from './CellValue'
|
|
|
6
6
|
import CellArrow from './CellArrow'
|
|
7
7
|
import CellDescription from './CellDescription'
|
|
8
8
|
|
|
9
|
-
export
|
|
10
|
-
export
|
|
11
|
-
export
|
|
9
|
+
export { CellProps } from './Cell'
|
|
10
|
+
export { CellCardProps } from './CellCard'
|
|
11
|
+
export { CellTitleProps } from './CellTitle'
|
|
12
12
|
|
|
13
13
|
export { setCellConfig } from './config'
|
|
14
14
|
|
|
@@ -8,9 +8,11 @@ import Icon from '../Icon'
|
|
|
8
8
|
import styles from './index.module.styl'
|
|
9
9
|
|
|
10
10
|
/** 文本对齐方式 */
|
|
11
|
-
|
|
11
|
+
type RichTextAlign = 'left' | 'center' | 'right'
|
|
12
|
+
export { RichTextAlign }
|
|
12
13
|
|
|
13
|
-
|
|
14
|
+
type RichTextBlockType = 'text' | 'image'
|
|
15
|
+
export { RichTextBlockType }
|
|
14
16
|
|
|
15
17
|
interface RichTextBlockBase {
|
|
16
18
|
/** 可选唯一标识 ,便于后续排序等扩展;未传时用下标 */
|
|
@@ -34,7 +36,8 @@ export interface RichTextImageBlock extends RichTextBlockBase {
|
|
|
34
36
|
url: string
|
|
35
37
|
}
|
|
36
38
|
|
|
37
|
-
|
|
39
|
+
type RichTextBlock = RichTextTextBlock | RichTextImageBlock
|
|
40
|
+
export { RichTextBlock }
|
|
38
41
|
|
|
39
42
|
export interface RichTextEditorProps {
|
|
40
43
|
/** 块列表(受控) */
|
|
@@ -21,7 +21,8 @@ export interface TableColumn<T extends object> {
|
|
|
21
21
|
render?: (value: T[keyof T], record: T, index: number) => React.ReactNode
|
|
22
22
|
}
|
|
23
23
|
|
|
24
|
-
|
|
24
|
+
type TableTextAlign = 'left' | 'center' | 'right'
|
|
25
|
+
export { TableTextAlign }
|
|
25
26
|
|
|
26
27
|
export interface TableProps<T extends object> {
|
|
27
28
|
/** 列配置 */
|
|
@@ -6,7 +6,7 @@ import { formatClassNames } from '../../util/function'
|
|
|
6
6
|
|
|
7
7
|
import styles from './index.module.styl'
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
type TagType = 'default'
|
|
10
10
|
| 'success'
|
|
11
11
|
| 'info'
|
|
12
12
|
| 'error'
|
|
@@ -18,6 +18,8 @@ export type TagType = 'default'
|
|
|
18
18
|
| 'light-error'
|
|
19
19
|
| 'light-warning'
|
|
20
20
|
|
|
21
|
+
export { TagType }
|
|
22
|
+
|
|
21
23
|
interface TagProps {
|
|
22
24
|
type?: TagType
|
|
23
25
|
text?: string | React.ReactNode
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import ProductItemMain from './ProductItem'
|
|
2
2
|
import { setProductItemConfig } from './config'
|
|
3
3
|
|
|
4
|
-
export
|
|
4
|
+
export { IProductCardLabels, IProductCardProps } from './ProductItem'
|
|
5
5
|
|
|
6
6
|
export { setProductItemConfig }
|
|
7
7
|
|