@para-ui/core 1.1.26 → 2.0.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/AutoBox/index.d.ts +1 -0
- package/AutoBox/index.js +3 -4
- package/AutoTips/index.d.ts +1 -0
- package/AutoTips/index.js +3 -4
- package/Breadcrumbs/index.d.ts +1 -0
- package/Breadcrumbs/index.js +3 -4
- package/Button/SplitButton.d.ts +42 -0
- package/Button/index.d.ts +28 -7
- package/Button/index.js +3 -5
- package/ButtonGroup/index.d.ts +13 -18
- package/ButtonGroup/index.js +3 -5
- package/Cascader/index.d.ts +52 -0
- package/Cascader/index.js +28 -0
- package/Checkbox/index.d.ts +23 -7
- package/Checkbox/index.js +3 -4
- package/CheckboxGroup/index.d.ts +5 -2
- package/CheckboxGroup/index.js +3 -4
- package/ComboSelect/WithTabsCombo/index.d.ts +3 -2
- package/ComboSelect/WithTabsCombo/interface.d.ts +6 -1
- package/ComboSelect/index.d.ts +8 -7
- package/ComboSelect/index.js +8 -3
- package/ComboSelect/interface.d.ts +3 -0
- package/ComboSelect/utils.d.ts +4 -0
- package/Container/index.js +1 -1
- package/DatePicker/index.js +3 -3
- package/Desktop/index.js +1 -1
- package/Drawer/index.d.ts +10 -4
- package/Drawer/index.js +20 -1
- package/Drawer/interface.d.ts +63 -0
- package/Form/index.js +3 -5
- package/FormItem/compoments/formFile/index.d.ts +1 -0
- package/FormItem/index.d.ts +46 -45
- package/FormItem/index.js +3 -5
- package/FunctionModal/index.js +3 -3
- package/IconList/index.js +3 -3
- package/InputLang/index.d.ts +3 -0
- package/InputLang/index.js +3 -5
- package/InputNumber/index.d.ts +13 -31
- package/InputNumber/index.js +3 -5
- package/Menu/footerExpansion.d.ts +4 -4
- package/Menu/index.d.ts +5 -4
- package/Menu/index.js +3 -5
- package/Menu/interface.d.ts +12 -125
- package/Menu/logo.d.ts +4 -4
- package/Menu/verticalMenuList.d.ts +4 -4
- package/Message/index.d.ts +8 -0
- package/Message/index.js +3 -3
- package/Modal/Confirm/index.d.ts +3 -4
- package/Modal/index.d.ts +9 -11
- package/Modal/index.js +3 -5
- package/MultiBox/index.d.ts +3 -0
- package/MultiBox/index.js +3 -5
- package/{Menu/horizontalMeunList.d.ts → PageHeader/horizontalMeun.d.ts} +2 -2
- package/{Menu → PageHeader}/horizontalMeunRight.d.ts +4 -4
- package/PageHeader/index.d.ts +10 -0
- package/PageHeader/index.js +14 -0
- package/PageHeader/interface.d.ts +163 -0
- package/Pagination/index.d.ts +6 -0
- package/Pagination/index.js +8 -5
- package/ParauiProvider/index.js +3 -3
- package/PopConfirm/index.d.ts +6 -5
- package/PopConfirm/index.js +3 -5
- package/Popover/index.js +3 -3
- package/Radio/index.d.ts +24 -10
- package/Radio/index.js +3 -4
- package/RadioGroup/index.d.ts +8 -4
- package/RadioGroup/index.js +3 -4
- package/Search/index.d.ts +3 -0
- package/Search/index.js +3 -5
- package/Select/index.d.ts +5 -4
- package/Select/index.js +3 -5
- package/SingleBox/index.d.ts +6 -1
- package/SingleBox/index.js +3 -5
- package/Slider/index.d.ts +13 -2
- package/Slider/index.js +15 -1
- package/Slider/interface.d.ts +100 -0
- package/Stepper/index.d.ts +1 -0
- package/Stepper/index.js +3 -4
- package/Styles/index.scss +3 -8
- package/Styles/normalize.scss +348 -0
- package/Styles/theme.scss +48 -0
- package/Switch/index.d.ts +52 -10
- package/Switch/index.js +3 -4
- package/Table/index.d.ts +1 -0
- package/Table/index.js +8 -5
- package/Table/tableBodyInterface.d.ts +1 -1
- package/Tabs/index.d.ts +9 -9
- package/Tabs/index.js +3 -4
- package/TextField/index.d.ts +4 -5
- package/TextField/index.js +3 -5
- package/TimePicker/index.js +3 -3
- package/Timeline/index.d.ts +8 -7
- package/Timeline/index.js +3 -4
- package/ToggleButton/ToggleButtonGroup.d.ts +44 -0
- package/ToggleButton/index.d.ts +44 -0
- package/ToggleButton/index.js +14 -0
- package/{ToolTip → Tooltip}/index.d.ts +4 -3
- package/Tooltip/index.js +15 -0
- package/Transfer/index.d.ts +17 -0
- package/Transfer/index.js +14 -0
- package/Tree/OperateBar/index.d.ts +11 -2
- package/Tree/index.d.ts +1 -0
- package/Tree/index.js +3 -3
- package/Tree/interface.d.ts +12 -10
- package/Tree/utils/closestPolyfill.d.ts +0 -0
- package/Upload/Dragger/index.d.ts +10 -0
- package/Upload/ErroTip/index.d.ts +13 -0
- package/Upload/ImageUpload/index.d.ts +3 -5
- package/Upload/UploadList/index.d.ts +1 -0
- package/Upload/index.d.ts +11 -9
- package/Upload/index.js +3 -5
- package/Upload/interface.d.ts +22 -14
- package/index.d.ts +5 -1
- package/index.js +16 -3
- package/package.json +8 -2
- package/Breadcrumbs/theme.d.ts +0 -42
- package/Button/theme.d.ts +0 -216
- package/ButtonGroup/SplitButton.d.ts +0 -17
- package/Checkbox/iconMapping.d.ts +0 -2
- package/ComboSelect/styles.d.ts +0 -6
- package/Menu/horizontalMenu.d.ts +0 -9
- package/Menu/verticalFooter.d.ts +0 -9
- package/Menu/verticalMenu.d.ts +0 -9
- package/ParauiProvider/theme/paraTheme.d.ts +0 -3
- package/ParauiProvider/theme/styleConfig.d.ts +0 -74
- package/Radio/iconMapping.d.ts +0 -2
- package/Stepper/theme.d.ts +0 -56
- package/Tabs/theme.d.ts +0 -53
- package/ToolTip/index.js +0 -16
package/FormItem/index.d.ts
CHANGED
|
@@ -1,21 +1,22 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
2
|
import { ItemTypeProps } from './itemType';
|
|
3
3
|
import { validateFunctionType } from './validateFunction';
|
|
4
|
+
import './index.scss';
|
|
4
5
|
/**
|
|
5
|
-
* 表单操作项的其他配置
|
|
6
|
-
*/
|
|
6
|
+
* 表单操作项的其他配置
|
|
7
|
+
*/
|
|
7
8
|
interface inputProps {
|
|
8
9
|
[name: string]: any;
|
|
9
10
|
}
|
|
10
11
|
/**
|
|
11
|
-
* 校验规则
|
|
12
|
-
* 一条校验规则对应一个错误提示
|
|
13
|
-
*/
|
|
12
|
+
* 校验规则
|
|
13
|
+
* 一条校验规则对应一个错误提示
|
|
14
|
+
*/
|
|
14
15
|
export interface ruleType {
|
|
15
16
|
/**
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
17
|
+
* 校验方法
|
|
18
|
+
* @return {boolean | string}, 子定义校验方法时 返回 false 或 字符串 均为校验失败 true为校验通过
|
|
19
|
+
*/
|
|
19
20
|
validate?: {
|
|
20
21
|
'required'?: boolean | validateFunctionType;
|
|
21
22
|
'maxlength'?: number | validateFunctionType;
|
|
@@ -28,77 +29,77 @@ export interface ruleType {
|
|
|
28
29
|
};
|
|
29
30
|
}
|
|
30
31
|
/**
|
|
31
|
-
* form 表单组件属性
|
|
32
|
-
* @typedef {Object} FormItemProps
|
|
33
|
-
*/
|
|
32
|
+
* form 表单组件属性
|
|
33
|
+
* @typedef {Object} FormItemProps
|
|
34
|
+
*/
|
|
34
35
|
export interface FormItemProps {
|
|
35
36
|
/**
|
|
36
|
-
|
|
37
|
-
|
|
37
|
+
* 表单项形态,默认 horizontal
|
|
38
|
+
*/
|
|
38
39
|
type?: 'vertical' | 'horizontal';
|
|
39
40
|
/**
|
|
40
|
-
|
|
41
|
-
|
|
41
|
+
* 输入框类型
|
|
42
|
+
*/
|
|
42
43
|
InputType?: 'checkGroup' | 'select' | 'radioGroup' | 'textarea' | 'default' | 'switch' | 'file' | FC<ItemTypeProps>;
|
|
43
44
|
/**
|
|
44
|
-
|
|
45
|
-
|
|
45
|
+
* 输入框其他属性配置
|
|
46
|
+
*/
|
|
46
47
|
inputProps?: inputProps;
|
|
47
48
|
/**
|
|
48
|
-
|
|
49
|
-
|
|
49
|
+
* 文字宽度, 只对 type === vertical,状态下生效
|
|
50
|
+
*/
|
|
50
51
|
labelWidth?: number;
|
|
51
52
|
/**
|
|
52
|
-
|
|
53
|
-
|
|
53
|
+
* 是否禁用
|
|
54
|
+
*/
|
|
54
55
|
disabled?: boolean;
|
|
55
56
|
/**
|
|
56
|
-
|
|
57
|
-
|
|
57
|
+
* 值改变传出
|
|
58
|
+
*/
|
|
58
59
|
change?: (value: any) => void;
|
|
59
60
|
/**
|
|
60
|
-
|
|
61
|
-
|
|
61
|
+
* 不显示 该选项
|
|
62
|
+
*/
|
|
62
63
|
hide?: boolean;
|
|
63
64
|
/**
|
|
64
|
-
|
|
65
|
-
|
|
65
|
+
* 提示。会有label上出现个图标提示
|
|
66
|
+
*/
|
|
66
67
|
tips?: string;
|
|
67
68
|
/**
|
|
68
|
-
|
|
69
|
-
|
|
69
|
+
* 文字描述
|
|
70
|
+
*/
|
|
70
71
|
label?: string;
|
|
71
72
|
/**
|
|
72
|
-
|
|
73
|
-
|
|
73
|
+
* name,一般对应后台属性,需要唯一性
|
|
74
|
+
*/
|
|
74
75
|
name: string;
|
|
75
76
|
/**
|
|
76
|
-
|
|
77
|
-
|
|
77
|
+
* 校验规则
|
|
78
|
+
*/
|
|
78
79
|
rules?: ruleType;
|
|
79
80
|
/**
|
|
80
|
-
|
|
81
|
-
|
|
81
|
+
* 设置值的方法
|
|
82
|
+
*/
|
|
82
83
|
setValue?: Function;
|
|
83
84
|
/**
|
|
84
|
-
|
|
85
|
-
|
|
85
|
+
* 报错信息
|
|
86
|
+
*/
|
|
86
87
|
errorMessage?: string;
|
|
87
88
|
/**
|
|
88
|
-
|
|
89
|
-
|
|
89
|
+
* 回填数据
|
|
90
|
+
*/
|
|
90
91
|
backData?: {
|
|
91
92
|
[name: string]: any;
|
|
92
93
|
};
|
|
93
94
|
/**
|
|
94
|
-
|
|
95
|
-
|
|
95
|
+
* 其他配置
|
|
96
|
+
*/
|
|
96
97
|
[name: string]: any;
|
|
97
98
|
}
|
|
98
99
|
/**
|
|
99
|
-
* form 表单单行组件
|
|
100
|
-
* @author zhanzl
|
|
101
|
-
* @description 用于根据配置自动生成表单
|
|
102
|
-
*/
|
|
100
|
+
* form 表单单行组件
|
|
101
|
+
* @author zhanzl
|
|
102
|
+
* @description 用于根据配置自动生成表单
|
|
103
|
+
*/
|
|
103
104
|
declare const FormItem: FC<FormItemProps>;
|
|
104
105
|
export default FormItem;
|