@jiaozhiye/qm-design-react 1.0.0-beta.3 → 1.0.0-beta.7
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/lib/form/src/form.d.ts +2 -1
- package/lib/form/style/index.less +19 -2
- package/lib/index.esm.js +1 -1
- package/lib/index.full.js +1 -1
- package/lib/index.js +1 -1
- package/lib/style/index.css +1 -1
- package/lib/table/style/body.less +4 -0
- package/package.json +4 -3
package/lib/form/src/form.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import React, { Component } from 'react';
|
|
3
3
|
import { IFieldData } from './types';
|
|
4
4
|
import type { IFormProps, IFormData, IFormItem, IExtraData, IViewData, IExpandData } from './types';
|
|
5
|
-
import { JSXElement, ValueOf } from '../../_utils/types';
|
|
5
|
+
import type { JSXElement, ValueOf } from '../../_utils/types';
|
|
6
6
|
import type { FormProps } from '../../antd';
|
|
7
7
|
declare type IProps = FormProps & IFormProps;
|
|
8
8
|
declare type IState = {
|
|
@@ -146,6 +146,7 @@ declare class QmForm extends Component<IProps, IState> {
|
|
|
146
146
|
createFormLayout(): (JSX.Element | null)[];
|
|
147
147
|
createSearchButtonLayout(lastCols?: number): JSX.Element | null;
|
|
148
148
|
createFormButtonLayout(): JSX.Element | null;
|
|
149
|
+
createFieldsDefine: () => JSX.Element;
|
|
149
150
|
setExpandHandle: (collapse: boolean) => void;
|
|
150
151
|
valuesChangeHandle: (changedValues: IFormData, allValues: IFormData) => void;
|
|
151
152
|
fieldsChangeHandle: (changedFields: IFieldData[], allFields: IFieldData[]) => void;
|
|
@@ -30,6 +30,10 @@
|
|
|
30
30
|
font-size: @--font-size-sm;
|
|
31
31
|
line-height: 1;
|
|
32
32
|
}
|
|
33
|
+
// search
|
|
34
|
+
.ant-input-search > .ant-input-group > .ant-input-group-addon {
|
|
35
|
+
line-height: 1;
|
|
36
|
+
}
|
|
33
37
|
// textarea
|
|
34
38
|
.ant-input-textarea-show-count {
|
|
35
39
|
position: relative;
|
|
@@ -47,7 +51,9 @@
|
|
|
47
51
|
transform: scale(1.2);
|
|
48
52
|
}
|
|
49
53
|
.extra-text {
|
|
50
|
-
|
|
54
|
+
height: 100%;
|
|
55
|
+
display: flex;
|
|
56
|
+
align-items: center;
|
|
51
57
|
}
|
|
52
58
|
.extra-overflow-cut {
|
|
53
59
|
.text-overflow-cut();
|
|
@@ -77,6 +83,10 @@
|
|
|
77
83
|
&--lg {
|
|
78
84
|
}
|
|
79
85
|
&--sm {
|
|
86
|
+
.ant-form-item-label > label,
|
|
87
|
+
.ant-form-item-label .ant-form-item-tooltip {
|
|
88
|
+
font-size: @--font-size-sm;
|
|
89
|
+
}
|
|
80
90
|
}
|
|
81
91
|
}
|
|
82
92
|
|
|
@@ -234,10 +244,17 @@
|
|
|
234
244
|
line-height: 1.75;
|
|
235
245
|
.text-overflow-cut();
|
|
236
246
|
.handle {
|
|
237
|
-
|
|
247
|
+
padding: 2px;
|
|
248
|
+
color: @--text-color-secondary;
|
|
238
249
|
cursor: s-resize;
|
|
250
|
+
transform: scale(0.9);
|
|
239
251
|
}
|
|
240
252
|
}
|
|
241
253
|
}
|
|
242
254
|
}
|
|
255
|
+
&--lg {
|
|
256
|
+
}
|
|
257
|
+
&--sm {
|
|
258
|
+
font-size: @--font-size-sm;
|
|
259
|
+
}
|
|
243
260
|
}
|