@hsu-react/ui 0.0.1 → 0.0.3
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/README.md +2 -0
- package/es/components/ChainGraph/_components/SearchSelect/index.js +13 -10
- package/es/components/ChainGraph/_components/SearchSelect/index.module.less +8 -2
- package/es/components/ChainGraph/index.module.less +1 -1
- package/es/components/Chat/ChatInput/_components/SendButton/index.module.less +1 -1
- package/es/components/Chat/ChatInput/_components/UploadButton/index.module.less +1 -1
- package/es/components/Chat/ChatInput/index.module.less +2 -2
- package/es/components/Chat/ChatList/_components/Assistant/AssistantItem/index.module.less +1 -1
- package/es/components/Checkbox/CheckboxGroup/index.module.less +16 -16
- package/es/components/Checkbox/index.module.less +13 -13
- package/es/components/CodeMirror/index.module.less +4 -4
- package/es/components/DatePicker/RangePicker/index.module.less +1 -1
- package/es/components/DatePicker/StepPicker/index.module.less +1 -1
- package/es/components/DatePicker/index.module.less +2 -1
- package/es/components/Form/DrawerForm/index.module.less +2 -2
- package/es/components/FormItem/FormInput/FormPasswordStrength/index.js +2 -2
- package/es/components/FormItem/FormInput/FormPasswordStrength/index.module.less +12 -0
- package/es/components/FormItem/FormRadio/index.module.less +9 -9
- package/es/components/FormItem/FormSegmented/index.module.less +2 -2
- package/es/components/FormItem/FormUpload/index.module.less +4 -4
- package/es/components/FormItem/ItemContainer/index.module.less +22 -22
- package/es/components/Icon/index.js +9 -24
- package/es/components/Input/Number/index.module.less +9 -9
- package/es/components/Input/Password/index.module.less +3 -3
- package/es/components/Input/Range/index.module.less +4 -4
- package/es/components/Input/Search/index.module.less +5 -5
- package/es/components/Input/TextArea/index.module.less +5 -5
- package/es/components/Input/index.module.less +7 -4
- package/es/components/Modal/index.module.less +2 -2
- package/es/components/Operate/index.module.less +2 -2
- package/es/components/Panel/IframePanel/index.module.less +1 -1
- package/es/components/Panel/ListPanel/_components/ColumnMgt/index.module.less +1 -1
- package/es/components/Search/index.module.less +2 -2
- package/es/components/Select/AutoCompleteSelect/index.module.less +35 -35
- package/es/components/Select/IconSelect/index.module.less +3 -3
- package/es/components/Select/TreeSelect/index.module.less +17 -17
- package/es/components/Select/_utils/getElementPosition.d.ts +6 -2
- package/es/components/Select/_utils/getElementPosition.js +8 -6
- package/es/components/Select/index.module.less +37 -34
- package/es/components/Slider/index.module.less +5 -4
- package/es/components/Spreadsheet/index.module.less +4 -4
- package/es/components/Switch/index.js +12 -8
- package/es/components/Switch/index.module.less +7 -0
- package/es/components/Table/_components/Pagination/index.module.less +23 -23
- package/es/components/Table/index.module.less +61 -61
- package/es/components/Tree/index.module.less +11 -11
- package/es/components/Upload/index.module.less +3 -3
- package/es/styles/antd-overload.less +1 -1
- package/lib/components/ChainGraph/_components/SearchSelect/index.js +10 -7
- package/lib/components/ChainGraph/_components/SearchSelect/index.module.less +8 -2
- package/lib/components/ChainGraph/index.module.less +1 -1
- package/lib/components/Chat/ChatInput/_components/SendButton/index.module.less +1 -1
- package/lib/components/Chat/ChatInput/_components/UploadButton/index.module.less +1 -1
- package/lib/components/Chat/ChatInput/index.module.less +2 -2
- package/lib/components/Chat/ChatList/_components/Assistant/AssistantItem/index.module.less +1 -1
- package/lib/components/Checkbox/CheckboxGroup/index.module.less +16 -16
- package/lib/components/Checkbox/index.module.less +13 -13
- package/lib/components/CodeMirror/index.module.less +4 -4
- package/lib/components/DatePicker/RangePicker/index.module.less +1 -1
- package/lib/components/DatePicker/StepPicker/index.module.less +1 -1
- package/lib/components/DatePicker/index.module.less +2 -1
- package/lib/components/Form/DrawerForm/index.module.less +2 -2
- package/lib/components/FormItem/FormInput/FormPasswordStrength/index.js +2 -1
- package/lib/components/FormItem/FormInput/FormPasswordStrength/index.module.less +12 -0
- package/lib/components/FormItem/FormRadio/index.module.less +9 -9
- package/lib/components/FormItem/FormSegmented/index.module.less +2 -2
- package/lib/components/FormItem/FormUpload/index.module.less +4 -4
- package/lib/components/FormItem/ItemContainer/index.module.less +22 -22
- package/lib/components/Icon/index.js +9 -27
- package/lib/components/Input/Number/index.module.less +9 -9
- package/lib/components/Input/Password/index.module.less +3 -3
- package/lib/components/Input/Range/index.module.less +4 -4
- package/lib/components/Input/Search/index.module.less +5 -5
- package/lib/components/Input/TextArea/index.module.less +5 -5
- package/lib/components/Input/index.module.less +7 -4
- package/lib/components/Modal/index.module.less +2 -2
- package/lib/components/Operate/index.module.less +2 -2
- package/lib/components/Panel/IframePanel/index.module.less +1 -1
- package/lib/components/Panel/ListPanel/_components/ColumnMgt/index.module.less +1 -1
- package/lib/components/Search/index.module.less +2 -2
- package/lib/components/Select/AutoCompleteSelect/index.module.less +35 -35
- package/lib/components/Select/IconSelect/index.module.less +3 -3
- package/lib/components/Select/TreeSelect/index.module.less +17 -17
- package/lib/components/Select/_utils/getElementPosition.d.ts +6 -2
- package/lib/components/Select/_utils/getElementPosition.js +8 -6
- package/lib/components/Select/index.module.less +37 -34
- package/lib/components/Slider/index.module.less +5 -4
- package/lib/components/Spreadsheet/index.module.less +4 -4
- package/lib/components/Switch/index.js +8 -4
- package/lib/components/Switch/index.module.less +7 -0
- package/lib/components/Table/_components/Pagination/index.module.less +23 -23
- package/lib/components/Table/index.module.less +61 -61
- package/lib/components/Tree/index.module.less +11 -11
- package/lib/components/Upload/index.module.less +3 -3
- package/lib/styles/antd-overload.less +1 -1
- package/package.json +1 -1
- package/src/components/Button/index.md +20 -4
- package/src/components/ChainGraph/_components/SearchSelect/index.module.less +8 -2
- package/src/components/ChainGraph/_components/SearchSelect/index.tsx +18 -16
- package/src/components/ChainGraph/index.md +67 -1
- package/src/components/ChainGraph/index.module.less +1 -1
- package/src/components/Chart/index.md +351 -1
- package/src/components/Chat/ChatInput/_components/SendButton/index.module.less +1 -1
- package/src/components/Chat/ChatInput/_components/UploadButton/index.module.less +1 -1
- package/src/components/Chat/ChatInput/index.module.less +2 -2
- package/src/components/Chat/ChatList/_components/Assistant/AssistantItem/index.module.less +1 -1
- package/src/components/Chat/index.md +140 -1
- package/src/components/Checkbox/CheckboxGroup/index.module.less +16 -16
- package/src/components/Checkbox/index.md +85 -1
- package/src/components/Checkbox/index.module.less +13 -13
- package/src/components/CodeMirror/index.md +41 -1
- package/src/components/CodeMirror/index.module.less +4 -4
- package/src/components/Copy/index.md +1 -1
- package/src/components/DatePicker/RangePicker/index.module.less +1 -1
- package/src/components/DatePicker/StepPicker/index.module.less +1 -1
- package/src/components/DatePicker/index.md +82 -1
- package/src/components/DatePicker/index.module.less +2 -1
- package/src/components/Descriptions/index.md +45 -1
- package/src/components/Editor/index.md +40 -1
- package/src/components/FileCol/index.md +24 -1
- package/src/components/FilePreview/index.md +45 -1
- package/src/components/FlexFill/index.md +46 -1
- package/src/components/Form/DrawerForm/index.module.less +2 -2
- package/src/components/Form/index.md +179 -1
- package/src/components/FormItem/FormInput/FormPasswordStrength/index.module.less +12 -0
- package/src/components/FormItem/FormInput/FormPasswordStrength/index.tsx +2 -2
- package/src/components/FormItem/FormRadio/index.module.less +9 -9
- package/src/components/FormItem/FormSegmented/index.module.less +2 -2
- package/src/components/FormItem/FormUpload/index.module.less +4 -4
- package/src/components/FormItem/ItemContainer/index.module.less +22 -22
- package/src/components/FormItem/index.md +514 -1
- package/src/components/Icon/index.md +24 -4
- package/src/components/Icon/index.tsx +9 -37
- package/src/components/Input/Number/index.module.less +9 -9
- package/src/components/Input/Password/index.module.less +3 -3
- package/src/components/Input/Range/index.module.less +4 -4
- package/src/components/Input/Search/index.module.less +5 -5
- package/src/components/Input/TextArea/index.module.less +5 -5
- package/src/components/Input/index.md +148 -1
- package/src/components/Input/index.module.less +7 -4
- package/src/components/Markdown/index.md +73 -1
- package/src/components/Modal/index.md +43 -1
- package/src/components/Modal/index.module.less +2 -2
- package/src/components/Operate/index.md +43 -1
- package/src/components/Operate/index.module.less +2 -2
- package/src/components/Panel/IframePanel/index.module.less +1 -1
- package/src/components/Panel/ListPanel/_components/ColumnMgt/index.module.less +1 -1
- package/src/components/Panel/index.md +193 -1
- package/src/components/Search/index.md +248 -1
- package/src/components/Search/index.module.less +2 -2
- package/src/components/SecondConf/index.md +39 -1
- package/src/components/Select/AutoCompleteSelect/index.module.less +35 -35
- package/src/components/Select/IconSelect/index.module.less +3 -3
- package/src/components/Select/TreeSelect/index.module.less +17 -17
- package/src/components/Select/_utils/getElementPosition.ts +8 -6
- package/src/components/Select/index.md +47 -1
- package/src/components/Select/index.module.less +37 -34
- package/src/components/Slider/index.md +28 -1
- package/src/components/Slider/index.module.less +5 -4
- package/src/components/Spreadsheet/index.md +42 -1
- package/src/components/Spreadsheet/index.module.less +4 -4
- package/src/components/Switch/index.md +33 -1
- package/src/components/Switch/index.module.less +7 -0
- package/src/components/Switch/index.tsx +14 -11
- package/src/components/TabBar/index.md +70 -1
- package/src/components/Table/_components/Pagination/index.module.less +23 -23
- package/src/components/Table/index.md +60 -1
- package/src/components/Table/index.module.less +61 -61
- package/src/components/Tags/index.md +23 -1
- package/src/components/TextEllipsis/index.md +29 -1
- package/src/components/Tree/index.md +66 -1
- package/src/components/Tree/index.module.less +11 -11
- package/src/components/Upload/index.md +72 -1
- package/src/components/Upload/index.module.less +3 -3
- package/src/styles/antd-overload.less +1 -1
|
@@ -8,10 +8,188 @@ title: Form 表单
|
|
|
8
8
|
|
|
9
9
|
# Form 表单
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
配置驱动的表单集合,通过 `formItems` 描述表单项,提供弹窗表单、抽屉表单、导入表单三种形态及 `useForm`。
|
|
12
12
|
|
|
13
13
|
## 引入
|
|
14
14
|
|
|
15
15
|
```ts
|
|
16
16
|
import { Form } from "@hsu-react/ui";
|
|
17
17
|
```
|
|
18
|
+
|
|
19
|
+
## 弹窗表单
|
|
20
|
+
|
|
21
|
+
`Form` 是一个命名空间对象,常用 `Form.Modal` 渲染弹窗表单,表单项通过 `formItems` 配置。点击下方按钮试试:
|
|
22
|
+
|
|
23
|
+
```tsx
|
|
24
|
+
import React, { useState } from "react";
|
|
25
|
+
import { Form } from "@hsu-react/ui";
|
|
26
|
+
import { Button, message } from "antd";
|
|
27
|
+
|
|
28
|
+
export default () => {
|
|
29
|
+
const [open, setOpen] = useState(false);
|
|
30
|
+
|
|
31
|
+
const formItems = [
|
|
32
|
+
{ type: "INPUT", name: "name", label: "姓名", required: true },
|
|
33
|
+
{
|
|
34
|
+
type: "SELECT",
|
|
35
|
+
name: "role",
|
|
36
|
+
label: "角色",
|
|
37
|
+
componentProps: {
|
|
38
|
+
options: [
|
|
39
|
+
{ label: "管理员", value: "admin" },
|
|
40
|
+
{ label: "访客", value: "guest" },
|
|
41
|
+
],
|
|
42
|
+
},
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
type: "INPUTNUMBER",
|
|
46
|
+
name: "age",
|
|
47
|
+
label: "年龄",
|
|
48
|
+
componentProps: { min: 0, max: 120 },
|
|
49
|
+
},
|
|
50
|
+
{ type: "SWITCH", name: "enabled", label: "启用" },
|
|
51
|
+
];
|
|
52
|
+
|
|
53
|
+
return (
|
|
54
|
+
<>
|
|
55
|
+
<Button type="primary" onClick={() => setOpen(true)}>
|
|
56
|
+
新增用户
|
|
57
|
+
</Button>
|
|
58
|
+
<Form.Modal
|
|
59
|
+
open={open}
|
|
60
|
+
title="新增用户"
|
|
61
|
+
formItems={formItems}
|
|
62
|
+
onOk={(data) => {
|
|
63
|
+
message.success("提交数据:" + JSON.stringify(data));
|
|
64
|
+
setOpen(false);
|
|
65
|
+
}}
|
|
66
|
+
onCancel={() => setOpen(false)}
|
|
67
|
+
/>
|
|
68
|
+
</>
|
|
69
|
+
);
|
|
70
|
+
};
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
## 抽屉表单
|
|
74
|
+
|
|
75
|
+
抽屉形态的表单,用法与 `Form.Modal` 一致,通过 `formItems` 配置表单项,适合内容较多的录入场景。
|
|
76
|
+
|
|
77
|
+
```tsx
|
|
78
|
+
import React, { useState } from "react";
|
|
79
|
+
import { Form } from "@hsu-react/ui";
|
|
80
|
+
import { Button, message } from "antd";
|
|
81
|
+
|
|
82
|
+
export default () => {
|
|
83
|
+
const [open, setOpen] = useState(false);
|
|
84
|
+
|
|
85
|
+
const formItems = [
|
|
86
|
+
{ type: "INPUT", name: "name", label: "姓名", required: true },
|
|
87
|
+
{
|
|
88
|
+
type: "SELECT",
|
|
89
|
+
name: "role",
|
|
90
|
+
label: "角色",
|
|
91
|
+
componentProps: {
|
|
92
|
+
options: [
|
|
93
|
+
{ label: "管理员", value: "admin" },
|
|
94
|
+
{ label: "访客", value: "guest" },
|
|
95
|
+
],
|
|
96
|
+
},
|
|
97
|
+
},
|
|
98
|
+
{ type: "TEXTAREA", name: "remark", label: "备注" },
|
|
99
|
+
];
|
|
100
|
+
|
|
101
|
+
return (
|
|
102
|
+
<>
|
|
103
|
+
<Button type="primary" onClick={() => setOpen(true)}>
|
|
104
|
+
打开抽屉表单
|
|
105
|
+
</Button>
|
|
106
|
+
<Form.Drawer
|
|
107
|
+
open={open}
|
|
108
|
+
title="编辑用户"
|
|
109
|
+
formItems={formItems}
|
|
110
|
+
onClose={() => setOpen(false)}
|
|
111
|
+
buttonGroup={[
|
|
112
|
+
{
|
|
113
|
+
title: "取消",
|
|
114
|
+
onClick: () => setOpen(false),
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
title: "确定",
|
|
118
|
+
type: "primary",
|
|
119
|
+
onClick: () => {
|
|
120
|
+
message.success("已提交");
|
|
121
|
+
setOpen(false);
|
|
122
|
+
},
|
|
123
|
+
},
|
|
124
|
+
]}
|
|
125
|
+
/>
|
|
126
|
+
</>
|
|
127
|
+
);
|
|
128
|
+
};
|
|
129
|
+
```
|
|
130
|
+
|
|
131
|
+
## 导入表单
|
|
132
|
+
|
|
133
|
+
导入表单,弹窗内提供文件上传,可配置上传地址 `uploadAction` 与模板下载地址 `template`。
|
|
134
|
+
|
|
135
|
+
```tsx
|
|
136
|
+
import React, { useState } from "react";
|
|
137
|
+
import { Form } from "@hsu-react/ui";
|
|
138
|
+
import { Button } from "antd";
|
|
139
|
+
|
|
140
|
+
export default () => {
|
|
141
|
+
const [open, setOpen] = useState(false);
|
|
142
|
+
|
|
143
|
+
return (
|
|
144
|
+
<>
|
|
145
|
+
<Button type="primary" onClick={() => setOpen(true)}>
|
|
146
|
+
导入数据
|
|
147
|
+
</Button>
|
|
148
|
+
<Form.Import
|
|
149
|
+
open={open}
|
|
150
|
+
title="导入数据"
|
|
151
|
+
uploadAction="https://example.com/api/upload"
|
|
152
|
+
templateName="导入模板.xlsx"
|
|
153
|
+
onCancel={() => setOpen(false)}
|
|
154
|
+
/>
|
|
155
|
+
</>
|
|
156
|
+
);
|
|
157
|
+
};
|
|
158
|
+
```
|
|
159
|
+
|
|
160
|
+
## API
|
|
161
|
+
|
|
162
|
+
`Form` 是一个对象,包含以下成员:
|
|
163
|
+
|
|
164
|
+
| 成员 | 说明 | 类型 |
|
|
165
|
+
| --- | --- | --- |
|
|
166
|
+
| Form.Modal | 弹窗表单 | `React.FC<ModalFormProps>` |
|
|
167
|
+
| Form.Drawer | 抽屉表单 | `React.FC<DrawerFormProps>` |
|
|
168
|
+
| Form.Import | 导入表单(上传文件) | `React.FC<ImportFormProps>` |
|
|
169
|
+
| Form.useForm | antd `Form.useForm`,创建表单实例 | `typeof AntdForm.useForm` |
|
|
170
|
+
|
|
171
|
+
### Form.Modal(ModalFormProps)
|
|
172
|
+
|
|
173
|
+
在 `Modal`(antd `ModalProps`,`onCancel` / `onOk` 已重写)基础上扩展:
|
|
174
|
+
|
|
175
|
+
| 属性 | 说明 | 类型 | 默认值 |
|
|
176
|
+
| --- | --- | --- | --- |
|
|
177
|
+
| formItems | 表单项配置;传对象时按分组渲染 | `FormItemProps[] \| Record<string, FormItemProps[]>` | `[]` |
|
|
178
|
+
| extraFormItems | 额外的自定义表单项节点 | `ExtraFormItem[]` | - |
|
|
179
|
+
| externalForm | 外部传入的表单实例 | `FormInstance` | - |
|
|
180
|
+
| value | 表单回填值 | `Record<string, unknown>` | - |
|
|
181
|
+
| onOk | 校验通过后的提交回调 | `(data, form: FormInstance) => void` | - |
|
|
182
|
+
| onCancel | 取消回调 | `() => void` | - |
|
|
183
|
+
| hasPermi | 权限码 | `string[]` | - |
|
|
184
|
+
| layout / formItemLayout | 表单 / 表单项布局方向 | `'horizontal' \| 'vertical'` | - |
|
|
185
|
+
| columnNum | 表单列数 | `number` | - |
|
|
186
|
+
| disabled | 是否禁用整个表单 | `boolean` | - |
|
|
187
|
+
| onValuesChange | 表单值变化回调 | `(value, values) => void` | - |
|
|
188
|
+
|
|
189
|
+
### Form.Drawer(DrawerFormProps)
|
|
190
|
+
|
|
191
|
+
在 antd `DrawerProps`(`onClose` 已重写)基础上扩展:`formItems`、`extraFormItems`、`externalForm`、`value`、`hasPermi`、`buttonGroup`(底部按钮组 `ButtonProps[]`)、`onClose`、`reset`。
|
|
192
|
+
|
|
193
|
+
### Form.Import(ImportFormProps)
|
|
194
|
+
|
|
195
|
+
在 `Modal`(`onCancel` / `onOk` 已重写)基础上扩展:`open`、`title`、`onCancel`、`uploadAction`(上传地址)、`template`(模板下载地址)、`templateName`、`hasPermi`、`formClassName`、`formItemClassName`、`uploadProps`。
|
|
@@ -16,7 +16,7 @@ const PasswordStrength: React.FC<InputProps> = (props) => {
|
|
|
16
16
|
const [fraction, setFraction] = useState<number>(0);
|
|
17
17
|
|
|
18
18
|
return (
|
|
19
|
-
|
|
19
|
+
<div className={styles.passwordStrength}>
|
|
20
20
|
<Input.Password
|
|
21
21
|
{...inputConfig}
|
|
22
22
|
placeholder={placeholder ?? "请输入"}
|
|
@@ -38,7 +38,7 @@ const PasswordStrength: React.FC<InputProps> = (props) => {
|
|
|
38
38
|
value={fraction}
|
|
39
39
|
className={styles.strengthBar}
|
|
40
40
|
/>
|
|
41
|
-
|
|
41
|
+
</div>
|
|
42
42
|
);
|
|
43
43
|
};
|
|
44
44
|
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
|
|
19
19
|
&.rect {
|
|
20
20
|
> label {
|
|
21
|
-
> span.ant-radio {
|
|
21
|
+
> span:global(.ant-radio) {
|
|
22
22
|
width: 24px;
|
|
23
23
|
min-width: 24px;
|
|
24
24
|
height: 24px;
|
|
@@ -26,12 +26,12 @@
|
|
|
26
26
|
|
|
27
27
|
border-radius: 2px;
|
|
28
28
|
|
|
29
|
-
input[type="radio"].ant-radio-input {
|
|
29
|
+
input[type="radio"]:global(.ant-radio-input) {
|
|
30
30
|
width: 100%;
|
|
31
31
|
height: 100%;
|
|
32
32
|
}
|
|
33
33
|
|
|
34
|
-
.ant-radio-inner {
|
|
34
|
+
:global(.ant-radio-inner) {
|
|
35
35
|
width: 100%;
|
|
36
36
|
height: 100%;
|
|
37
37
|
|
|
@@ -65,8 +65,8 @@
|
|
|
65
65
|
}
|
|
66
66
|
}
|
|
67
67
|
|
|
68
|
-
|
|
69
|
-
.ant-radio-inner {
|
|
68
|
+
&:global(.ant-radio-checked) {
|
|
69
|
+
:global(.ant-radio-inner) {
|
|
70
70
|
background: rgba(255, 255, 255, 1) !important;
|
|
71
71
|
|
|
72
72
|
&::after {
|
|
@@ -77,8 +77,8 @@
|
|
|
77
77
|
}
|
|
78
78
|
}
|
|
79
79
|
|
|
80
|
-
|
|
81
|
-
.ant-radio-inner {
|
|
80
|
+
&:global(.ant-radio-disabled) {
|
|
81
|
+
:global(.ant-radio-inner) {
|
|
82
82
|
background: rgba(0, 0, 0, 0.04) !important;
|
|
83
83
|
|
|
84
84
|
&::after {
|
|
@@ -86,8 +86,8 @@
|
|
|
86
86
|
}
|
|
87
87
|
}
|
|
88
88
|
|
|
89
|
-
|
|
90
|
-
.ant-radio-inner {
|
|
89
|
+
&:global(.ant-radio-checked) {
|
|
90
|
+
:global(.ant-radio-inner) {
|
|
91
91
|
background: rgba(0, 0, 0, 0.04) !important;
|
|
92
92
|
}
|
|
93
93
|
}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
color: var(--cf-text);
|
|
5
5
|
|
|
6
|
-
.ant-segmented-group {
|
|
6
|
+
:global(.ant-segmented-group) {
|
|
7
7
|
height: 100%;
|
|
8
8
|
|
|
9
9
|
font-family: inherit;
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
font-weight: inherit;
|
|
18
18
|
color: inherit;
|
|
19
19
|
|
|
20
|
-
.ant-segmented-item-label {
|
|
20
|
+
:global(.ant-segmented-item-label) {
|
|
21
21
|
display: flex;
|
|
22
22
|
align-items: center;
|
|
23
23
|
justify-content: center;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
.upload {
|
|
2
2
|
height: 100%;
|
|
3
3
|
|
|
4
|
-
.ant-upload {
|
|
4
|
+
:global(.ant-upload) {
|
|
5
5
|
height: max-content;
|
|
6
6
|
|
|
7
7
|
.upBtn {
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
column-gap: 10px;
|
|
16
16
|
}
|
|
17
17
|
|
|
18
|
-
.ant-upload-disabled {
|
|
18
|
+
:global(.ant-upload-disabled) {
|
|
19
19
|
.singleFile {
|
|
20
20
|
cursor: not-allowed;
|
|
21
21
|
|
|
@@ -97,7 +97,7 @@
|
|
|
97
97
|
}
|
|
98
98
|
}
|
|
99
99
|
|
|
100
|
-
|
|
100
|
+
&:global(.ant-upload-drag) {
|
|
101
101
|
height: 180px;
|
|
102
102
|
|
|
103
103
|
border-radius: 8px;
|
|
@@ -134,7 +134,7 @@
|
|
|
134
134
|
}
|
|
135
135
|
|
|
136
136
|
.FormUpload {
|
|
137
|
-
.ant-form-item-control-input-content {
|
|
137
|
+
:global(.ant-form-item-control-input-content) {
|
|
138
138
|
> span {
|
|
139
139
|
width: 100%;
|
|
140
140
|
}
|
|
@@ -19,15 +19,15 @@
|
|
|
19
19
|
cursor: pointer;
|
|
20
20
|
}
|
|
21
21
|
|
|
22
|
-
.ant-picker {
|
|
22
|
+
:global(.ant-picker) {
|
|
23
23
|
width: 100%;
|
|
24
24
|
}
|
|
25
25
|
|
|
26
|
-
.ant-form-item-row {
|
|
26
|
+
:global(.ant-form-item-row) {
|
|
27
27
|
width: 100%;
|
|
28
28
|
height: 100%;
|
|
29
29
|
|
|
30
|
-
.ant-form-item-control {
|
|
30
|
+
:global(.ant-form-item-control) {
|
|
31
31
|
display: flex;
|
|
32
32
|
flex-direction: column;
|
|
33
33
|
row-gap: 5px;
|
|
@@ -35,11 +35,11 @@
|
|
|
35
35
|
width: var(--input-width) !important;
|
|
36
36
|
max-width: 100%;
|
|
37
37
|
|
|
38
|
-
.ant-form-item-control-input {
|
|
38
|
+
:global(.ant-form-item-control-input) {
|
|
39
39
|
height: var(--input-height);
|
|
40
40
|
min-height: var(--input-min-height);
|
|
41
41
|
|
|
42
|
-
.ant-form-item-control-input-content {
|
|
42
|
+
:global(.ant-form-item-control-input-content) {
|
|
43
43
|
display: flex;
|
|
44
44
|
align-items: center;
|
|
45
45
|
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
}
|
|
55
55
|
}
|
|
56
56
|
|
|
57
|
-
.ant-form-item-label {
|
|
57
|
+
:global(.ant-form-item-label) {
|
|
58
58
|
flex: 0 1 auto !important;
|
|
59
59
|
display: inline-flex;
|
|
60
60
|
align-items: center;
|
|
@@ -156,7 +156,7 @@
|
|
|
156
156
|
cursor: pointer;
|
|
157
157
|
}
|
|
158
158
|
|
|
159
|
-
|
|
159
|
+
&:global(.ant-form-item-no-colon) {
|
|
160
160
|
.label {
|
|
161
161
|
&::after {
|
|
162
162
|
content: none;
|
|
@@ -175,7 +175,7 @@
|
|
|
175
175
|
content: none !important;
|
|
176
176
|
}
|
|
177
177
|
|
|
178
|
-
|
|
178
|
+
&:global(.ant-form-item-required) {
|
|
179
179
|
.label {
|
|
180
180
|
&::before {
|
|
181
181
|
content: "*";
|
|
@@ -212,7 +212,7 @@
|
|
|
212
212
|
}
|
|
213
213
|
|
|
214
214
|
&.after {
|
|
215
|
-
label.ant-form-item-required {
|
|
215
|
+
label:global(.ant-form-item-required) {
|
|
216
216
|
.label {
|
|
217
217
|
&::before {
|
|
218
218
|
content: none !important;
|
|
@@ -241,7 +241,7 @@
|
|
|
241
241
|
}
|
|
242
242
|
|
|
243
243
|
&.hasLabelContent {
|
|
244
|
-
label.ant-form-item-required {
|
|
244
|
+
label:global(.ant-form-item-required) {
|
|
245
245
|
&::after {
|
|
246
246
|
content: none;
|
|
247
247
|
}
|
|
@@ -266,7 +266,7 @@
|
|
|
266
266
|
}
|
|
267
267
|
|
|
268
268
|
&.hideRequired {
|
|
269
|
-
label.ant-form-item-required {
|
|
269
|
+
label:global(.ant-form-item-required) {
|
|
270
270
|
.label {
|
|
271
271
|
&::before {
|
|
272
272
|
content: none !important;
|
|
@@ -281,7 +281,7 @@
|
|
|
281
281
|
}
|
|
282
282
|
|
|
283
283
|
&.after {
|
|
284
|
-
label.ant-form-item-required {
|
|
284
|
+
label:global(.ant-form-item-required) {
|
|
285
285
|
.label {
|
|
286
286
|
&::after {
|
|
287
287
|
content: none !important;
|
|
@@ -292,11 +292,11 @@
|
|
|
292
292
|
}
|
|
293
293
|
|
|
294
294
|
&.horizontal {
|
|
295
|
-
.ant-form-item-row {
|
|
295
|
+
:global(.ant-form-item-row) {
|
|
296
296
|
flex-wrap: nowrap;
|
|
297
297
|
column-gap: 5px;
|
|
298
298
|
|
|
299
|
-
.ant-form-item-control {
|
|
299
|
+
:global(.ant-form-item-control) {
|
|
300
300
|
flex: 1 !important;
|
|
301
301
|
flex-grow: var(--input-horizontal-flex-grow) !important;
|
|
302
302
|
|
|
@@ -305,13 +305,13 @@
|
|
|
305
305
|
}
|
|
306
306
|
|
|
307
307
|
&.start {
|
|
308
|
-
.ant-form-item-control-input-content {
|
|
308
|
+
:global(.ant-form-item-control-input-content) {
|
|
309
309
|
text-align: left;
|
|
310
310
|
}
|
|
311
311
|
}
|
|
312
312
|
|
|
313
313
|
&.between {
|
|
314
|
-
.ant-form-item-control-input-content {
|
|
314
|
+
:global(.ant-form-item-control-input-content) {
|
|
315
315
|
text-align: right;
|
|
316
316
|
}
|
|
317
317
|
}
|
|
@@ -320,13 +320,13 @@
|
|
|
320
320
|
&.vertical {
|
|
321
321
|
--label-height: max-content;
|
|
322
322
|
|
|
323
|
-
.ant-form-item-row {
|
|
323
|
+
:global(.ant-form-item-row) {
|
|
324
324
|
flex-direction: column;
|
|
325
325
|
row-gap: 5px;
|
|
326
326
|
|
|
327
327
|
height: max-content;
|
|
328
328
|
|
|
329
|
-
.ant-form-item-label {
|
|
329
|
+
:global(.ant-form-item-label) {
|
|
330
330
|
text-align: start;
|
|
331
331
|
|
|
332
332
|
width: 100%;
|
|
@@ -353,7 +353,7 @@
|
|
|
353
353
|
}
|
|
354
354
|
}
|
|
355
355
|
|
|
356
|
-
.ant-form-item-control {
|
|
356
|
+
:global(.ant-form-item-control) {
|
|
357
357
|
flex: 0 1 auto !important;
|
|
358
358
|
display: flex;
|
|
359
359
|
flex-direction: column;
|
|
@@ -364,8 +364,8 @@
|
|
|
364
364
|
}
|
|
365
365
|
|
|
366
366
|
&.legacyHasLabelExtra {
|
|
367
|
-
.ant-form-item-row {
|
|
368
|
-
.ant-form-item-label {
|
|
367
|
+
:global(.ant-form-item-row) {
|
|
368
|
+
:global(.ant-form-item-label) {
|
|
369
369
|
label {
|
|
370
370
|
flex-direction: column;
|
|
371
371
|
flex-wrap: nowrap;
|
|
@@ -380,7 +380,7 @@
|
|
|
380
380
|
}
|
|
381
381
|
|
|
382
382
|
&.hideAdditiona {
|
|
383
|
-
.ant-form-item-additional {
|
|
383
|
+
:global(.ant-form-item-additional) {
|
|
384
384
|
display: none;
|
|
385
385
|
}
|
|
386
386
|
}
|