@jiaozhiye/qm-design-react 1.8.6 → 1.8.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.
@@ -1,38 +1,38 @@
1
- /*
2
- * @Author: 焦质晔
3
- * @Date: 2020-03-18 10:26:46
4
- * @Last Modified by: 焦质晔
5
- * @Last Modified time: 2022-11-26 21:03:04
6
- */
7
- .@{prefix-table}-toolbox {
8
- display: inline-block;
9
- padding: 5px 3px;
10
- line-height: 1;
11
- cursor: pointer;
12
- transition: all 0.3s ease;
13
- .icon {
14
- font-size: 1.05em;
15
- }
16
- &[class$='-open'],
17
- &:hover {
18
- color: @v-primary-color;
19
- }
20
- }
21
-
22
- .top-toolbox__popper {
23
- .ant-dropdown-menu {
24
- &-title-content {
25
- display: flex;
26
- & > span {
27
- flex: 1 0;
28
- }
29
- }
30
- }
31
- &[class*='--sm'] {
32
- .ant-dropdown-menu {
33
- &-item {
34
- padding: 2px 8px;
35
- }
36
- }
37
- }
38
- }
1
+ /*
2
+ * @Author: 焦质晔
3
+ * @Date: 2020-03-18 10:26:46
4
+ * @Last Modified by: 焦质晔
5
+ * @Last Modified time: 2022-11-26 21:03:04
6
+ */
7
+ .@{prefix-table}-toolbox {
8
+ display: inline-block;
9
+ padding: 5px 3px;
10
+ line-height: 1;
11
+ cursor: pointer;
12
+ transition: all 0.3s ease;
13
+ .icon {
14
+ font-size: 1.05em;
15
+ }
16
+ &[class$='-open'],
17
+ &:hover {
18
+ color: @v-primary-color;
19
+ }
20
+ }
21
+
22
+ .top-toolbox__popper {
23
+ .ant-dropdown-menu {
24
+ &-title-content {
25
+ display: flex;
26
+ & > span {
27
+ flex: 1 0;
28
+ }
29
+ }
30
+ }
31
+ &[class*='--sm'] {
32
+ .ant-dropdown-menu {
33
+ &-item {
34
+ padding: 2px 8px;
35
+ }
36
+ }
37
+ }
38
+ }
@@ -12,14 +12,14 @@ export interface PlacementsConfig {
12
12
  visibleFirst?: boolean;
13
13
  }
14
14
  export declare const MAX_VERTICAL_CONTENT_RADIUS = 8;
15
- export declare function getArrowOffset(options: {
15
+ export declare function getArrowOffsetToken(options: {
16
16
  contentRadius: number;
17
17
  limitVerticalRadius?: boolean;
18
18
  }): {
19
- dropdownArrowOffset: number;
20
- dropdownArrowOffsetVertical: number;
19
+ arrowOffsetHorizontal: number;
20
+ arrowOffsetVertical: number;
21
21
  };
22
- export declare function getOverflowOptions(placement: string, arrowOffset: ReturnType<typeof getArrowOffset>, arrowWidth: number, autoAdjustOverflow?: boolean | AdjustOverflow): {
22
+ export declare function getOverflowOptions(placement: string, arrowOffset: ReturnType<typeof getArrowOffsetToken>, arrowWidth: number, autoAdjustOverflow?: boolean | AdjustOverflow): {
23
23
  adjustX?: number | boolean | undefined;
24
24
  adjustY?: number | boolean | undefined;
25
25
  shiftX?: number | boolean | undefined;
@@ -5,6 +5,7 @@ type IProps = {
5
5
  quality?: number;
6
6
  fileTypes?: string[];
7
7
  fileSize?: number;
8
+ className?: string;
8
9
  beforeCrop?: (file: any, fileList: any[]) => Promise<boolean>;
9
10
  };
10
11
  type IState = {
@@ -14,6 +14,7 @@ type IProps = UploadProps & {
14
14
  fileTypes?: string[];
15
15
  fileSize?: number;
16
16
  openCropper?: boolean;
17
+ popupClassName?: string;
17
18
  readOnly?: boolean;
18
19
  beforeCrop?: (file: UploadFile, fileList: UploadFile[]) => Promise<boolean>;
19
20
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jiaozhiye/qm-design-react",
3
- "version": "1.8.6",
3
+ "version": "1.8.8",
4
4
  "description": "A Component Library for React",
5
5
  "keywords": [
6
6
  "React",