@jiaozhiye/qm-design-react 1.10.6 → 1.10.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.
@@ -18,10 +18,7 @@ function template(str, option) {
18
18
  return option[key];
19
19
  });
20
20
  }
21
- export const t = function () {
22
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
23
- args[_key] = arguments[_key];
24
- }
21
+ export const t = (...args) => {
25
22
  if (i18nHandler) return i18nHandler(...args);
26
23
  const [path, option] = args;
27
24
  let value;
@@ -4,6 +4,7 @@ declare const _default: {
4
4
  button: {
5
5
  confirmPrompt: string;
6
6
  confirmTitle: string;
7
+ shortcutKey: string;
7
8
  };
8
9
  divider: {
9
10
  collect: string;
@@ -66,6 +67,7 @@ declare const _default: {
66
67
  downError: string;
67
68
  text: string;
68
69
  remove: string;
70
+ batchDownload: string;
69
71
  };
70
72
  uploadCropper: {
71
73
  dragableText: string;
@@ -1,15 +1,16 @@
1
- /*
2
- * @Author: 焦质晔
3
- * @Date: 2021-06-19 08:46:00
4
- * @Last Modified by: 焦质晔
5
- * @Last Modified time: 2024-07-26 10:21:48
1
+ /*
2
+ * @Author: 焦质晔
3
+ * @Date: 2021-06-19 08:46:00
4
+ * @Last Modified by: 焦质晔
5
+ * @Last Modified time: 2024-07-26 10:21:48
6
6
  */
7
7
  export default {
8
8
  name: 'en',
9
9
  qm: {
10
10
  button: {
11
11
  confirmPrompt: 'Prompt',
12
- confirmTitle: 'Are you sure you want to delete it?'
12
+ confirmTitle: 'Are you sure you want to delete it?',
13
+ shortcutKey: 'Shortcut Key'
13
14
  },
14
15
  divider: {
15
16
  collect: 'Collapse',
@@ -71,7 +72,8 @@ export default {
71
72
  uploadError: 'Failed to upload files!',
72
73
  downError: 'File download failed!',
73
74
  text: 'click and upload',
74
- remove: 'Delete files'
75
+ remove: 'Delete files',
76
+ batchDownload: 'Batch download'
75
77
  },
76
78
  uploadCropper: {
77
79
  dragableText: 'Drop or click',
@@ -4,6 +4,7 @@ declare const _default: {
4
4
  button: {
5
5
  confirmPrompt: string;
6
6
  confirmTitle: string;
7
+ shortcutKey: string;
7
8
  };
8
9
  divider: {
9
10
  collect: string;
@@ -66,6 +67,7 @@ declare const _default: {
66
67
  downError: string;
67
68
  text: string;
68
69
  remove: string;
70
+ batchDownload: string;
69
71
  };
70
72
  uploadCropper: {
71
73
  dragableText: string;
@@ -1,15 +1,16 @@
1
- /*
2
- * @Author: 焦质晔
3
- * @Date: 2021-06-19 08:45:54
4
- * @Last Modified by: 焦质晔
5
- * @Last Modified time: 2024-07-26 09:00:17
1
+ /*
2
+ * @Author: 焦质晔
3
+ * @Date: 2021-06-19 08:45:54
4
+ * @Last Modified by: 焦质晔
5
+ * @Last Modified time: 2024-07-26 09:00:17
6
6
  */
7
7
  export default {
8
8
  name: 'zh-cn',
9
9
  qm: {
10
10
  button: {
11
11
  confirmPrompt: '提示',
12
- confirmTitle: '确认执行删除吗?'
12
+ confirmTitle: '确认执行删除吗?',
13
+ shortcutKey: '快捷键'
13
14
  },
14
15
  divider: {
15
16
  collect: '收起',
@@ -71,7 +72,8 @@ export default {
71
72
  uploadError: '文件上传失败!',
72
73
  downError: '文件下载失败!',
73
74
  text: '点击上传',
74
- remove: '删除文件'
75
+ remove: '删除文件',
76
+ batchDownload: '批量下载'
75
77
  },
76
78
  uploadCropper: {
77
79
  dragableText: '拖放或点击',
@@ -16,6 +16,7 @@ type IProps = TreeProps<IRecord> & {
16
16
  };
17
17
  value?: React.Key[];
18
18
  placeholder?: string;
19
+ autoFocus?: boolean;
19
20
  asyncLoad?: boolean;
20
21
  checkStrictly?: boolean;
21
22
  checkStrategy?: ICheckStrategy;
@@ -47,6 +48,7 @@ declare const SearchTree: React.ForwardRefExoticComponent<TreeProps<IRecord<any>
47
48
  } | undefined;
48
49
  value?: React.Key[] | undefined;
49
50
  placeholder?: string | undefined;
51
+ autoFocus?: boolean | undefined;
50
52
  asyncLoad?: boolean | undefined;
51
53
  checkStrictly?: boolean | undefined;
52
54
  checkStrategy?: ICheckStrategy | undefined;
@@ -1,14 +1,9 @@
1
- import React, { Component } from 'react';
2
- import ConfigContext from '../../config-provider/context';
1
+ import React from 'react';
3
2
  import type { ComponentSize } from '../../_utils/types';
4
3
  import type { SpaceProps as AntSpaceProps } from '../../antd';
5
4
  type IProps = Omit<AntSpaceProps, 'size'> & {
6
5
  size?: ComponentSize | number;
7
6
  };
8
7
  export type SpaceProps = IProps;
9
- declare class QmSpace extends Component<IProps> {
10
- static contextType: React.Context<import("../../config-provider/context").IConfig>;
11
- context: React.ContextType<typeof ConfigContext>;
12
- render(): React.JSX.Element;
13
- }
8
+ declare const QmSpace: React.FC<IProps>;
14
9
  export default QmSpace;
@@ -1,14 +1,8 @@
1
- import React, { Component } from 'react';
1
+ import React from 'react';
2
2
  import type { SpinProps as AntSpinProps } from '../../antd';
3
3
  type IProps = AntSpinProps & {
4
4
  fullHeight?: boolean;
5
5
  };
6
6
  export type SpinProps = IProps;
7
- declare class QmSpin extends Component<IProps> {
8
- static defaultProps: {
9
- tip: string;
10
- fullHeight: boolean;
11
- };
12
- render(): React.JSX.Element;
13
- }
7
+ declare const QmSpin: React.FC<IProps>;
14
8
  export default QmSpin;
@@ -1,16 +1,18 @@
1
- /*
2
- * @Author: 焦质晔
3
- * @Date: 2021-07-23 19:05:57
4
- * @Last Modified by: 焦质晔
5
- * @Last Modified time: 2021-07-31 22:38:07
6
- */
7
- @import '../../style/common';
8
-
9
- @prefix-spin: ~'@{qm-prefix}-spin';
10
-
11
- .@{prefix-spin}-full-height {
12
- height: 100%;
13
- .ant-spin-container {
14
- height: 100%;
15
- }
16
- }
1
+ /*
2
+ * @Author: 焦质晔
3
+ * @Date: 2021-07-23 19:05:57
4
+ * @Last Modified by: 焦质晔
5
+ * @Last Modified time: 2021-07-31 22:38:07
6
+ */
7
+ @import '../../style/common';
8
+
9
+ @prefix-spin: ~'@{qm-prefix}-spin';
10
+
11
+ .@{prefix-spin} {
12
+ &-fullHeight {
13
+ height: 100%;
14
+ .ant-spin-container {
15
+ height: 100%;
16
+ }
17
+ }
18
+ }
@@ -27469,10 +27469,10 @@ table {
27469
27469
  * @Last Modified by: 焦质晔
27470
27470
  * @Last Modified time: 2021-07-31 22:38:07
27471
27471
  */
27472
- .qm-spin-full-height {
27472
+ .qm-spin-fullHeight {
27473
27473
  height: 100%;
27474
27474
  }
27475
- .qm-spin-full-height .ant-spin-container {
27475
+ .qm-spin-fullHeight .ant-spin-container {
27476
27476
  height: 100%;
27477
27477
  }
27478
27478
  /*
@@ -28150,9 +28150,13 @@ table {
28150
28150
  .qm-tinymce .tox-fullscreen {
28151
28151
  width: 100% !important;
28152
28152
  }
28153
+ .qm-tinymce .tox-promotion,
28153
28154
  .qm-tinymce .tox-statusbar__branding {
28154
28155
  display: none;
28155
28156
  }
28157
+ .qm-tinymce .tox-statusbar__help-text {
28158
+ opacity: 0;
28159
+ }
28156
28160
  /*
28157
28161
  * @Author: 焦质晔
28158
28162
  * @Date: 2021-07-23 19:05:57
@@ -28453,6 +28457,9 @@ table {
28453
28457
  * @Last Modified by: 焦质晔
28454
28458
  * @Last Modified time: 2023-10-18 09:35:59
28455
28459
  */
28460
+ .qm-upload-file .ant-upload-select:has(.inner:empty) {
28461
+ display: none;
28462
+ }
28456
28463
  .qm-upload-file .ant-upload-list .ant-upload-list-text-container {
28457
28464
  max-width: 100%;
28458
28465
  }
@@ -28488,15 +28495,18 @@ table {
28488
28495
  .qm-upload-img .ant-upload-select > span {
28489
28496
  flex-direction: column;
28490
28497
  }
28491
- .qm-upload-img .ant-upload-select > span .ant-upload-drag-icon {
28498
+ .qm-upload-img .ant-upload-select:has(.inner:empty) {
28499
+ display: none;
28500
+ }
28501
+ .qm-upload-img .ant-upload-select .ant-upload-drag-icon {
28492
28502
  font-size: 24px;
28493
28503
  line-height: 0;
28494
28504
  color: #40a9ff;
28495
28505
  }
28496
- .qm-upload-img .ant-upload-select > span .ant-upload-text {
28506
+ .qm-upload-img .ant-upload-select .ant-upload-text {
28497
28507
  font-size: 13px;
28498
28508
  }
28499
- .qm-upload-img .ant-upload-select > span .ant-upload-button {
28509
+ .qm-upload-img .ant-upload-select .ant-upload-button {
28500
28510
  display: inline-block;
28501
28511
  text-align: center;
28502
28512
  text-transform: none;
@@ -28508,11 +28518,14 @@ table {
28508
28518
  transition: all 0.3s ease;
28509
28519
  cursor: inherit;
28510
28520
  }
28511
- .qm-upload-img .ant-upload-select > span .ant-upload-button:focus {
28521
+ .qm-upload-img .ant-upload-select .ant-upload-button:focus {
28512
28522
  box-shadow: 0 0 2px 0 #40a9ff;
28513
28523
  background-color: #e6f7ff;
28514
28524
  }
28515
- .qm-upload-img .ant-upload-select > span .ant-upload-button.disabled {
28525
+ .qm-upload-img .ant-upload-select .ant-upload-button.disabled {
28526
+ pointer-events: none;
28527
+ }
28528
+ .qm-upload-img .ant-upload-select[class*='disabled'] .ant-upload-button {
28516
28529
  pointer-events: none;
28517
28530
  }
28518
28531
  .qm-upload-img .upload-item {