@jiaozhiye/qm-design-react 1.7.8 → 1.7.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.
@@ -3,6 +3,12 @@ import type { IFormItem } from './types';
3
3
  type IProps = {
4
4
  option: IFormItem;
5
5
  };
6
+ type ICheckboxProps<T = string | number> = IProps & {
7
+ value?: T;
8
+ onChange?: (value: T) => void;
9
+ onValuesChange: (value: T, text: string) => void;
10
+ };
11
+ export declare const VCheckbox: React.FC<ICheckboxProps>;
6
12
  declare class FormCheckbox extends Component<IProps> {
7
13
  static contextType: React.Context<import("./context").IFormContext | undefined>;
8
14
  render(): React.JSX.Element;
@@ -157,7 +157,7 @@ declare class QmForm extends Component<IProps, IState> {
157
157
  UPLOAD_FILE(option: IFormItem): JSXElement;
158
158
  UPLOAD_IMG(option: IFormItem): JSXElement;
159
159
  TINYMCE(option: IFormItem): JSXElement;
160
- renderFormLabel(label: IFormItem | string): string | React.JSX.Element;
160
+ renderFormLabel(label: IFormItem | string): string | React.JSX.Element | null;
161
161
  renderFormItemExtra(option: IFormItem['extra'] & {
162
162
  fieldName: string;
163
163
  }): React.JSX.Element;
@@ -15,13 +15,20 @@
15
15
  .ant-form-item-label {
16
16
  & > label[title=''] {
17
17
  width: 100%;
18
+ display: inline-flex;
19
+ justify-content: right;
18
20
  .ant-select {
21
+ flex: auto;
22
+ width: 0;
19
23
  text-align: left;
20
24
  }
21
25
  }
22
26
  &-wrap {
23
27
  line-height: 1.075;
24
28
  }
29
+ &-left > label[title=''] {
30
+ justify-content: left;
31
+ }
25
32
  }
26
33
  // placeholder
27
34
  input::placeholder {