@jiaozhiye/qm-design-react 1.12.13 → 1.12.15
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/config-provider/src/config-provider.d.ts +2 -0
- package/lib/form/src/types.d.ts +1 -0
- package/lib/form/src/utils.d.ts +0 -1
- package/lib/form/style/index.less +16 -14
- package/lib/index.d.ts +4 -0
- package/lib/index.esm.js +1 -1
- package/lib/index.full.js +1 -1
- package/lib/index.js +1 -1
- package/lib/locale/index.d.ts +0 -1
- package/lib/locale/index.js +0 -1
- package/lib/locale/lang/en.d.ts +5 -0
- package/lib/locale/lang/en.js +5 -0
- package/lib/locale/lang/zh-cn.d.ts +5 -0
- package/lib/locale/lang/zh-cn.js +5 -0
- package/lib/pivot-grid/style/grid-layout.less +9 -3
- package/lib/style/index.css +69 -19
- package/lib/style/index.less +1 -0
- package/lib/style/index.min.css +1 -1
- package/lib/style/mixins/reset.less +9 -0
- package/lib/table/src/context/index.d.ts +9 -2
- package/lib/table/src/hooks/useImperativeMethod.d.ts +1 -0
- package/lib/table/src/hooks/useTableCore.d.ts +10 -2
- package/lib/table/src/hooks/useTableState.d.ts +8 -2
- package/lib/table/src/table/props.d.ts +2 -2
- package/lib/table/src/table/types.d.ts +5 -4
- package/lib/table/style/header.less +1 -1
- package/lib/translate/index.d.ts +3 -0
- package/lib/translate/src/translate.d.ts +16 -0
- package/lib/translate/src/use-tooltip.d.ts +9 -0
- package/lib/translate/src/use-translation.d.ts +12 -0
- package/lib/translate/style/index.less +32 -0
- package/package.json +1 -1
package/lib/form/src/types.d.ts
CHANGED
package/lib/form/src/utils.d.ts
CHANGED
|
@@ -19,7 +19,6 @@ export declare const formatNumber: (value: string | number) => string;
|
|
|
19
19
|
export declare const parserNumber: (value: string) => string;
|
|
20
20
|
export declare const secretFormat: (value: string | number | undefined, type: string) => string;
|
|
21
21
|
export declare const isValidLabel: (label: any) => boolean;
|
|
22
|
-
export declare const getTitleFromNode: (vNode: React.ReactNode) => string;
|
|
23
22
|
export declare const createShConfig: (data: any, fieldName: string, createFetch: IFetchFnMaker, multiple?: boolean) => {
|
|
24
23
|
name?: string | undefined;
|
|
25
24
|
getServerConfig?: import("./types").IFetchFn | undefined;
|
|
@@ -13,21 +13,14 @@
|
|
|
13
13
|
.ant-form-item {
|
|
14
14
|
margin-bottom: @--margin-md + 2px;
|
|
15
15
|
.ant-form-item-label {
|
|
16
|
-
& > label
|
|
16
|
+
& > label:has(.ant-select) {
|
|
17
17
|
width: 100%;
|
|
18
|
-
display: inline-flex;
|
|
19
|
-
justify-content: right;
|
|
20
18
|
.ant-select {
|
|
21
|
-
flex: auto;
|
|
22
|
-
width: 0;
|
|
23
19
|
text-align: left;
|
|
24
20
|
}
|
|
25
21
|
}
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
}
|
|
29
|
-
&-left > label[title=''] {
|
|
30
|
-
justify-content: left;
|
|
22
|
+
& > label.ant-form-item-required:not(.ant-form-item-required-mark-optional)::before {
|
|
23
|
+
margin: 0 2px;
|
|
31
24
|
}
|
|
32
25
|
}
|
|
33
26
|
// placeholder
|
|
@@ -91,8 +84,6 @@
|
|
|
91
84
|
height: 100%;
|
|
92
85
|
display: flex;
|
|
93
86
|
align-items: center;
|
|
94
|
-
}
|
|
95
|
-
.extra-overflow-cut {
|
|
96
87
|
.text-overflow-cut();
|
|
97
88
|
}
|
|
98
89
|
// select
|
|
@@ -159,11 +150,22 @@
|
|
|
159
150
|
.ant-form-vertical .ant-form-item {
|
|
160
151
|
.ant-form-item-label {
|
|
161
152
|
padding-bottom: 4px;
|
|
162
|
-
label
|
|
163
|
-
|
|
153
|
+
& > label:has(.ant-select) {
|
|
154
|
+
width: 50%;
|
|
164
155
|
}
|
|
165
156
|
}
|
|
166
157
|
}
|
|
158
|
+
&__label-wrap .ant-form-item {
|
|
159
|
+
.ant-form-item-label > label .text {
|
|
160
|
+
line-height: 1.075;
|
|
161
|
+
.text-ellipsis-2();
|
|
162
|
+
}
|
|
163
|
+
.extra-text {
|
|
164
|
+
line-height: 1.075;
|
|
165
|
+
white-space: normal;
|
|
166
|
+
.text-ellipsis-2();
|
|
167
|
+
}
|
|
168
|
+
}
|
|
167
169
|
// ------ size ------
|
|
168
170
|
// 40 32 24
|
|
169
171
|
&--lg {
|
package/lib/index.d.ts
CHANGED
|
@@ -74,6 +74,8 @@ export type { ColorPickerProps as QmColorPickerProps } from './color-picker';
|
|
|
74
74
|
export { default as QmColorPicker } from './color-picker';
|
|
75
75
|
export type { PortalProps as QmPortalProps } from './portal';
|
|
76
76
|
export { default as QmPortal } from './portal';
|
|
77
|
+
export type { TranslateProps as QmTranslateProps } from './translate';
|
|
78
|
+
export { default as QmTranslate } from './translate';
|
|
77
79
|
export type { ConfigProviderProps as DcpConfigProviderProps } from './config-provider';
|
|
78
80
|
export { default as DcpConfigProvider } from './config-provider';
|
|
79
81
|
export type { ButtonProps as DcpButtonProps } from './button';
|
|
@@ -150,6 +152,8 @@ export type { ColorPickerProps as DcpColorPickerProps } from './color-picker';
|
|
|
150
152
|
export { default as DcpColorPicker } from './color-picker';
|
|
151
153
|
export type { PortalProps as DcpPortalProps } from './portal';
|
|
152
154
|
export { default as DcpPortal } from './portal';
|
|
155
|
+
export type { TranslateProps as DcpTranslateProps } from './translate';
|
|
156
|
+
export { default as DcpTranslate } from './translate';
|
|
153
157
|
export { default as pinyin } from './pinyin';
|
|
154
158
|
export { default as version } from './version';
|
|
155
159
|
export * from './antd';
|