@jiaozhiye/qm-design-react 1.0.0-beta.4 → 1.0.0-beta.8
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 +3 -1
- package/lib/form/src/types.d.ts +1 -3
- package/lib/form/style/index.less +16 -1
- package/lib/index.esm.js +1 -1
- package/lib/index.full.js +1 -1
- package/lib/index.js +2 -2
- package/lib/style/index.css +1 -1
- package/lib/table/style/body.less +4 -0
- package/package.json +3 -2
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 = {
|
|
@@ -111,6 +111,7 @@ declare class QmForm extends Component<IProps, IState> {
|
|
|
111
111
|
type: any;
|
|
112
112
|
fieldName: any;
|
|
113
113
|
}): boolean;
|
|
114
|
+
getFormAuth(): Promise<void>;
|
|
114
115
|
INPUT(option: IFormItem): JSXElement;
|
|
115
116
|
RANGE_INPUT(option: IFormItem): JSXElement;
|
|
116
117
|
INPUT_NUMBER(option: IFormItem): JSXElement;
|
|
@@ -146,6 +147,7 @@ declare class QmForm extends Component<IProps, IState> {
|
|
|
146
147
|
createFormLayout(): (JSX.Element | null)[];
|
|
147
148
|
createSearchButtonLayout(lastCols?: number): JSX.Element | null;
|
|
148
149
|
createFormButtonLayout(): JSX.Element | null;
|
|
150
|
+
createFieldsDefine: () => JSX.Element;
|
|
149
151
|
setExpandHandle: (collapse: boolean) => void;
|
|
150
152
|
valuesChangeHandle: (changedValues: IFormData, allValues: IFormData) => void;
|
|
151
153
|
fieldsChangeHandle: (changedFields: IFieldData[], allFields: IFieldData[]) => void;
|
package/lib/form/src/types.d.ts
CHANGED
|
@@ -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;
|
|
@@ -79,6 +83,10 @@
|
|
|
79
83
|
&--lg {
|
|
80
84
|
}
|
|
81
85
|
&--sm {
|
|
86
|
+
.ant-form-item-label > label,
|
|
87
|
+
.ant-form-item-label .ant-form-item-tooltip {
|
|
88
|
+
font-size: @--font-size-sm;
|
|
89
|
+
}
|
|
82
90
|
}
|
|
83
91
|
}
|
|
84
92
|
|
|
@@ -236,10 +244,17 @@
|
|
|
236
244
|
line-height: 1.75;
|
|
237
245
|
.text-overflow-cut();
|
|
238
246
|
.handle {
|
|
239
|
-
|
|
247
|
+
padding: 2px;
|
|
248
|
+
color: @--text-color-secondary;
|
|
240
249
|
cursor: s-resize;
|
|
250
|
+
transform: scale(0.9);
|
|
241
251
|
}
|
|
242
252
|
}
|
|
243
253
|
}
|
|
244
254
|
}
|
|
255
|
+
&--lg {
|
|
256
|
+
}
|
|
257
|
+
&--sm {
|
|
258
|
+
font-size: @--font-size-sm;
|
|
259
|
+
}
|
|
245
260
|
}
|