@jiaozhiye/qm-design-react 1.4.0-beta.2 → 1.4.0-beta.21
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/_utils/types.d.ts +7 -1
- package/lib/_utils/util.d.ts +0 -1
- package/lib/anchor/src/anchor-nav.d.ts +1 -1
- package/lib/anchor/src/anchor.d.ts +3 -1
- package/lib/anchor/style/index.less +61 -21
- package/lib/antd/compact.less +11 -0
- package/lib/antd/index.less +11 -1
- package/lib/button/src/button.d.ts +6 -5
- package/lib/collapse/src/collapse.d.ts +1 -0
- package/lib/countup/style/index.less +22 -22
- package/lib/divider/style/index.less +54 -54
- package/lib/drawer/style/index.less +2 -2
- package/lib/form/src/context.d.ts +4 -1
- package/lib/form/src/form-cascader.d.ts +1 -1
- package/lib/form/src/form-checkbox-group.d.ts +1 -1
- package/lib/form/src/form-multiple-tree-table-helper.d.ts +2 -2
- package/lib/form/src/form-radio.d.ts +1 -1
- package/lib/form/src/form-select.d.ts +1 -1
- package/lib/form/src/form-tree-select.d.ts +1 -1
- package/lib/form/src/form.d.ts +14 -14
- package/lib/form/src/types.d.ts +25 -15
- package/lib/form/src/utils.d.ts +7 -3
- package/lib/form/style/index.less +19 -8
- package/lib/hooks/useDebounce.d.ts +3 -0
- package/lib/index.esm.js +2 -2
- package/lib/index.full.js +1 -1
- package/lib/index.js +2 -2
- package/lib/locale/index.js +5 -5
- package/lib/locale/lang/en.d.ts +4 -0
- package/lib/locale/lang/en.js +6 -2
- package/lib/locale/lang/zh-cn.d.ts +4 -0
- package/lib/locale/lang/zh-cn.js +6 -2
- package/lib/modal/style/index.less +2 -2
- package/lib/print/src/LodopFuncs.d.ts +1 -1
- package/lib/print/src/preview.d.ts +1 -1
- package/lib/print/src/print.d.ts +1 -1
- package/lib/print/style/index.less +175 -175
- package/lib/range-table-helper/style/index.less +5 -1
- package/lib/search-helper/style/index.less +1 -1
- package/lib/search-tree/src/search-tree.d.ts +6 -0
- package/lib/search-tree/style/index.less +14 -1
- package/lib/spin/style/index.less +3 -5
- package/lib/split/style/index.less +1 -1
- package/lib/style/compact.css +645 -685
- package/lib/style/compact.less +4 -3
- package/lib/style/compact.min.css +1 -1
- package/lib/style/index.css +109 -58
- package/lib/style/index.less +36 -36
- package/lib/style/index.min.css +1 -1
- package/lib/style/mixins/reset.less +1 -2
- package/lib/style/themes/compact.less +3 -280
- package/lib/style/themes/default.less +2 -1
- package/lib/table/src/context/index.d.ts +3 -3
- package/lib/table/src/edit/InputNumber.d.ts +2 -0
- package/lib/table/src/hooks/useImperativeMethod.d.ts +2 -1
- package/lib/table/src/hooks/useTableCore.d.ts +1 -0
- package/lib/table/src/hooks/useTableEffect.d.ts +3 -0
- package/lib/table/src/hooks/useTableLayout.d.ts +2 -2
- package/lib/table/src/table/props.d.ts +15 -9
- package/lib/table/src/table/types.d.ts +28 -10
- package/lib/table/src/utils/index.d.ts +3 -2
- package/lib/table/style/clipboard.less +1 -0
- package/lib/table/style/export.less +1 -1
- package/lib/table/style/fast-search.less +3 -2
- package/lib/table/style/size.less +1 -0
- package/lib/table/style/table.less +374 -374
- package/lib/tabs/src/tab-pane.d.ts +1 -0
- package/lib/tabs/src/tabs.d.ts +6 -1
- package/lib/tree-helper/style/index.less +1 -1
- package/lib/tree-table-helper/style/index.less +1 -1
- package/lib/upload-file/src/upload-file.d.ts +4 -9
- package/package.json +6 -7
- package/lib/form/src/form-item-layout.d.ts +0 -3
package/lib/locale/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* @Author: 焦质晔
|
|
3
|
-
* @Date: 2021-02-08 16:48:18
|
|
4
|
-
* @Last Modified by: 焦质晔
|
|
5
|
-
* @Last Modified time: 2021-08-14 13:42:21
|
|
1
|
+
/*
|
|
2
|
+
* @Author: 焦质晔
|
|
3
|
+
* @Date: 2021-02-08 16:48:18
|
|
4
|
+
* @Last Modified by: 焦质晔
|
|
5
|
+
* @Last Modified time: 2021-08-14 13:42:21
|
|
6
6
|
*/
|
|
7
7
|
import dayjs from 'dayjs';
|
|
8
8
|
import defaultLang from './lang/zh-cn';
|
package/lib/locale/lang/en.d.ts
CHANGED
|
@@ -36,6 +36,7 @@ declare const _default: {
|
|
|
36
36
|
timePlaceholder: string;
|
|
37
37
|
weekPlaceholder: string;
|
|
38
38
|
monthPlaceholder: string;
|
|
39
|
+
quarterPlaceholder: string;
|
|
39
40
|
yearPlaceholder: string;
|
|
40
41
|
daterangePlaceholder: string[];
|
|
41
42
|
timerangePlaceholder: string[];
|
|
@@ -45,6 +46,7 @@ declare const _default: {
|
|
|
45
46
|
dateRangePickers: string[];
|
|
46
47
|
citySelectType: string[];
|
|
47
48
|
regionSelectLabel: string[];
|
|
49
|
+
validatePrompt: string;
|
|
48
50
|
};
|
|
49
51
|
clipboard: {
|
|
50
52
|
success: string;
|
|
@@ -171,6 +173,7 @@ declare const _default: {
|
|
|
171
173
|
eqPlaceholder: string;
|
|
172
174
|
neqPlaceholder: string;
|
|
173
175
|
text: string;
|
|
176
|
+
nullValue: string;
|
|
174
177
|
};
|
|
175
178
|
screen: {
|
|
176
179
|
full: string;
|
|
@@ -206,6 +209,7 @@ declare const _default: {
|
|
|
206
209
|
clipboard: {
|
|
207
210
|
text: string;
|
|
208
211
|
textNoSpace: string;
|
|
212
|
+
success: string;
|
|
209
213
|
settingTitle: string;
|
|
210
214
|
rowIndex: string;
|
|
211
215
|
colIndex: string;
|
package/lib/locale/lang/en.js
CHANGED
|
@@ -42,6 +42,7 @@ export default {
|
|
|
42
42
|
timePlaceholder: 'Select time',
|
|
43
43
|
weekPlaceholder: 'Select week',
|
|
44
44
|
monthPlaceholder: 'Select month',
|
|
45
|
+
quarterPlaceholder: 'Select quarter',
|
|
45
46
|
yearPlaceholder: 'Select year',
|
|
46
47
|
daterangePlaceholder: ['Start date', 'End date'],
|
|
47
48
|
timerangePlaceholder: ['Start time', 'End time'],
|
|
@@ -50,7 +51,8 @@ export default {
|
|
|
50
51
|
datePickers: ['Today', 'Yesterday', 'A Week Ago', 'A Month Ago'],
|
|
51
52
|
dateRangePickers: ['Nearly A Week', 'Nearly A Month', 'Nearly Three Months', 'Nearly Six Months'],
|
|
52
53
|
citySelectType: ['Province', 'City'],
|
|
53
|
-
regionSelectLabel: ['Province', 'City', 'Region', 'Street']
|
|
54
|
+
regionSelectLabel: ['Province', 'City', 'Region', 'Street'],
|
|
55
|
+
validatePrompt: 'Form validation tips'
|
|
54
56
|
},
|
|
55
57
|
clipboard: {
|
|
56
58
|
success: 'Copy successful',
|
|
@@ -176,7 +178,8 @@ export default {
|
|
|
176
178
|
ltPlaceholder: 'is lesser than',
|
|
177
179
|
eqPlaceholder: 'is equal to',
|
|
178
180
|
neqPlaceholder: 'is not equal to',
|
|
179
|
-
text: 'Filter'
|
|
181
|
+
text: 'Filter',
|
|
182
|
+
nullValue: 'Null Value'
|
|
180
183
|
},
|
|
181
184
|
screen: {
|
|
182
185
|
full: 'Full Screen',
|
|
@@ -212,6 +215,7 @@ export default {
|
|
|
212
215
|
clipboard: {
|
|
213
216
|
text: 'Paste',
|
|
214
217
|
textNoSpace: 'Paste',
|
|
218
|
+
success: 'Successfully paste {total} records',
|
|
215
219
|
settingTitle: 'Paste setting',
|
|
216
220
|
rowIndex: 'Start row index',
|
|
217
221
|
colIndex: 'Start col index',
|
|
@@ -36,6 +36,7 @@ declare const _default: {
|
|
|
36
36
|
timePlaceholder: string;
|
|
37
37
|
weekPlaceholder: string;
|
|
38
38
|
monthPlaceholder: string;
|
|
39
|
+
quarterPlaceholder: string;
|
|
39
40
|
yearPlaceholder: string;
|
|
40
41
|
daterangePlaceholder: string[];
|
|
41
42
|
timerangePlaceholder: string[];
|
|
@@ -45,6 +46,7 @@ declare const _default: {
|
|
|
45
46
|
dateRangePickers: string[];
|
|
46
47
|
citySelectType: string[];
|
|
47
48
|
regionSelectLabel: string[];
|
|
49
|
+
validatePrompt: string;
|
|
48
50
|
};
|
|
49
51
|
clipboard: {
|
|
50
52
|
success: string;
|
|
@@ -171,6 +173,7 @@ declare const _default: {
|
|
|
171
173
|
eqPlaceholder: string;
|
|
172
174
|
neqPlaceholder: string;
|
|
173
175
|
text: string;
|
|
176
|
+
nullValue: string;
|
|
174
177
|
};
|
|
175
178
|
screen: {
|
|
176
179
|
full: string;
|
|
@@ -206,6 +209,7 @@ declare const _default: {
|
|
|
206
209
|
clipboard: {
|
|
207
210
|
text: string;
|
|
208
211
|
textNoSpace: string;
|
|
212
|
+
success: string;
|
|
209
213
|
settingTitle: string;
|
|
210
214
|
rowIndex: string;
|
|
211
215
|
colIndex: string;
|
package/lib/locale/lang/zh-cn.js
CHANGED
|
@@ -42,6 +42,7 @@ export default {
|
|
|
42
42
|
timePlaceholder: '选择时间',
|
|
43
43
|
weekPlaceholder: '选择周',
|
|
44
44
|
monthPlaceholder: '选择月',
|
|
45
|
+
quarterPlaceholder: '选择季度',
|
|
45
46
|
yearPlaceholder: '选择年',
|
|
46
47
|
daterangePlaceholder: ['开始日期', '结束日期'],
|
|
47
48
|
timerangePlaceholder: ['开始时间', '结束时间'],
|
|
@@ -50,7 +51,8 @@ export default {
|
|
|
50
51
|
datePickers: ['今天', '昨天', '一周前', '一个月前'],
|
|
51
52
|
dateRangePickers: ['最近一周', '最近一个月', '最近三个月', '最近六个月'],
|
|
52
53
|
citySelectType: ['按省份', '按城市'],
|
|
53
|
-
regionSelectLabel: ['省', '市', '区', '街道']
|
|
54
|
+
regionSelectLabel: ['省', '市', '区', '街道'],
|
|
55
|
+
validatePrompt: '表单校验提示'
|
|
54
56
|
},
|
|
55
57
|
clipboard: {
|
|
56
58
|
success: '复制成功',
|
|
@@ -176,7 +178,8 @@ export default {
|
|
|
176
178
|
ltPlaceholder: '小于',
|
|
177
179
|
eqPlaceholder: '等于',
|
|
178
180
|
neqPlaceholder: '不等于',
|
|
179
|
-
text: '筛选'
|
|
181
|
+
text: '筛选',
|
|
182
|
+
nullValue: '空值'
|
|
180
183
|
},
|
|
181
184
|
screen: {
|
|
182
185
|
full: '全屏',
|
|
@@ -212,6 +215,7 @@ export default {
|
|
|
212
215
|
clipboard: {
|
|
213
216
|
text: '粘 贴',
|
|
214
217
|
textNoSpace: '粘贴',
|
|
218
|
+
success: '成功粘贴 {total} 条记录',
|
|
215
219
|
settingTitle: '粘贴设置',
|
|
216
220
|
rowIndex: '粘贴起始行',
|
|
217
221
|
colIndex: '粘贴起始列',
|
|
@@ -77,7 +77,7 @@
|
|
|
77
77
|
.ant-modal-close {
|
|
78
78
|
top: 5px;
|
|
79
79
|
}
|
|
80
|
-
|
|
80
|
+
.@{qm-prefix}-modal-spin {
|
|
81
81
|
top: 48px;
|
|
82
82
|
}
|
|
83
83
|
}
|
|
@@ -88,7 +88,7 @@
|
|
|
88
88
|
.ant-modal-close {
|
|
89
89
|
top: 1px;
|
|
90
90
|
}
|
|
91
|
-
|
|
91
|
+
.@{qm-prefix}-modal-spin {
|
|
92
92
|
top: 40px;
|
|
93
93
|
}
|
|
94
94
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export function getLodop(oOBJECT: any, oEMBED: any
|
|
1
|
+
export function getLodop(oOBJECT: any, oEMBED: any): any;
|
package/lib/print/src/print.d.ts
CHANGED
|
@@ -1,175 +1,175 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* @Author: 焦质晔
|
|
3
|
-
* @Date: 2021-07-23 19:05:57
|
|
4
|
-
* @Last Modified by: 焦质晔
|
|
5
|
-
* @Last Modified time: 2022-03-01 14:06:41
|
|
6
|
-
*/
|
|
7
|
-
@import '../../style/common';
|
|
8
|
-
|
|
9
|
-
@prefix-print-preview: ~'@{qm-prefix}-print-preview';
|
|
10
|
-
@prefix-print-container: ~'@{qm-prefix}-print-container';
|
|
11
|
-
|
|
12
|
-
.@{prefix-print-preview} {
|
|
13
|
-
.reset-
|
|
14
|
-
margin: -@--padding-md;
|
|
15
|
-
height: calc(100% + 20px);
|
|
16
|
-
min-height: calc(80vh - 48px);
|
|
17
|
-
.outer {
|
|
18
|
-
display: flex;
|
|
19
|
-
flex-direction: column;
|
|
20
|
-
height: 100%;
|
|
21
|
-
min-height: inherit;
|
|
22
|
-
.header,
|
|
23
|
-
.footer {
|
|
24
|
-
padding: 2px 10px;
|
|
25
|
-
background-color: @--background-color;
|
|
26
|
-
display: flex;
|
|
27
|
-
align-items: center;
|
|
28
|
-
& > span {
|
|
29
|
-
display: flex;
|
|
30
|
-
align-items: center;
|
|
31
|
-
}
|
|
32
|
-
& > span + span {
|
|
33
|
-
margin-left: 10px;
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
.main {
|
|
37
|
-
flex: 1;
|
|
38
|
-
position: relative;
|
|
39
|
-
}
|
|
40
|
-
.header {
|
|
41
|
-
border-bottom: 1px solid @--border-color-base;
|
|
42
|
-
.text-btn {
|
|
43
|
-
padding-left: 0;
|
|
44
|
-
padding-right: 0;
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
.footer {
|
|
48
|
-
border-top: 1px solid @--border-color-base;
|
|
49
|
-
.ant-slider {
|
|
50
|
-
width: 150px;
|
|
51
|
-
}
|
|
52
|
-
.scale-text {
|
|
53
|
-
width: 40px;
|
|
54
|
-
font-style: normal;
|
|
55
|
-
margin-left: 10px;
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
// size
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
.@{prefix-print-container} {
|
|
63
|
-
position: absolute;
|
|
64
|
-
left: 0;
|
|
65
|
-
top: 0;
|
|
66
|
-
width: 100%;
|
|
67
|
-
height: 100%;
|
|
68
|
-
background-color: #dadce0;
|
|
69
|
-
&.no-visible {
|
|
70
|
-
opacity: 0;
|
|
71
|
-
height: 0 !important;
|
|
72
|
-
overflow: hidden;
|
|
73
|
-
z-index: -1;
|
|
74
|
-
}
|
|
75
|
-
.spin {
|
|
76
|
-
height: 100%;
|
|
77
|
-
.ant-spin-container {
|
|
78
|
-
height: 100%;
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
.preview {
|
|
82
|
-
position: relative;
|
|
83
|
-
height: 100%;
|
|
84
|
-
overflow-x: auto;
|
|
85
|
-
overflow-y: auto;
|
|
86
|
-
.origin-template {
|
|
87
|
-
position: absolute;
|
|
88
|
-
left: 50%;
|
|
89
|
-
top: 0;
|
|
90
|
-
height: 0;
|
|
91
|
-
z-index: -1;
|
|
92
|
-
overflow: hidden;
|
|
93
|
-
visibility: hidden;
|
|
94
|
-
}
|
|
95
|
-
.workspace {
|
|
96
|
-
margin: 0 auto;
|
|
97
|
-
background-color: #fff;
|
|
98
|
-
transform-origin: left top;
|
|
99
|
-
box-sizing: content-box;
|
|
100
|
-
}
|
|
101
|
-
/* 打印模板公共样式 */
|
|
102
|
-
table {
|
|
103
|
-
width: 100%;
|
|
104
|
-
border-spacing: 0;
|
|
105
|
-
border-collapse: collapse;
|
|
106
|
-
table-layout: fixed;
|
|
107
|
-
}
|
|
108
|
-
table tr td {
|
|
109
|
-
padding: 2px;
|
|
110
|
-
word-wrap: break-word;
|
|
111
|
-
}
|
|
112
|
-
.fs12 {
|
|
113
|
-
font-size: 12px;
|
|
114
|
-
}
|
|
115
|
-
.fs13 {
|
|
116
|
-
font-size: 13px;
|
|
117
|
-
}
|
|
118
|
-
.fs14 {
|
|
119
|
-
font-size: 14px;
|
|
120
|
-
}
|
|
121
|
-
.fw500 {
|
|
122
|
-
font-weight: 500;
|
|
123
|
-
}
|
|
124
|
-
.fw700 {
|
|
125
|
-
font-weight: 700;
|
|
126
|
-
}
|
|
127
|
-
.fl {
|
|
128
|
-
float: left;
|
|
129
|
-
}
|
|
130
|
-
.fr {
|
|
131
|
-
float: right;
|
|
132
|
-
}
|
|
133
|
-
.tc {
|
|
134
|
-
text-align: center;
|
|
135
|
-
}
|
|
136
|
-
.tr {
|
|
137
|
-
text-align: right;
|
|
138
|
-
}
|
|
139
|
-
.bor {
|
|
140
|
-
border: 1px solid #000;
|
|
141
|
-
}
|
|
142
|
-
.bor-t {
|
|
143
|
-
border-top: 1px solid #000;
|
|
144
|
-
}
|
|
145
|
-
.bor-b {
|
|
146
|
-
border-bottom: 1px solid #000;
|
|
147
|
-
}
|
|
148
|
-
.bor-l {
|
|
149
|
-
border-left: 1px solid #000;
|
|
150
|
-
}
|
|
151
|
-
.bor-r {
|
|
152
|
-
border-right: 1px solid #000;
|
|
153
|
-
}
|
|
154
|
-
.no-bor {
|
|
155
|
-
border: none !important;
|
|
156
|
-
}
|
|
157
|
-
/* 打印模板公共样式 END */
|
|
158
|
-
}
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
/* IE11 hack */
|
|
162
|
-
@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
|
|
163
|
-
.@{prefix-print-preview} {
|
|
164
|
-
.outer {
|
|
165
|
-
height: 0;
|
|
166
|
-
}
|
|
167
|
-
}
|
|
168
|
-
.is-fullscreen {
|
|
169
|
-
.@{prefix-print-preview} {
|
|
170
|
-
.outer {
|
|
171
|
-
height: 100%;
|
|
172
|
-
}
|
|
173
|
-
}
|
|
174
|
-
}
|
|
175
|
-
}
|
|
1
|
+
/*
|
|
2
|
+
* @Author: 焦质晔
|
|
3
|
+
* @Date: 2021-07-23 19:05:57
|
|
4
|
+
* @Last Modified by: 焦质晔
|
|
5
|
+
* @Last Modified time: 2022-03-01 14:06:41
|
|
6
|
+
*/
|
|
7
|
+
@import '../../style/common';
|
|
8
|
+
|
|
9
|
+
@prefix-print-preview: ~'@{qm-prefix}-print-preview';
|
|
10
|
+
@prefix-print-container: ~'@{qm-prefix}-print-container';
|
|
11
|
+
|
|
12
|
+
.@{prefix-print-preview} {
|
|
13
|
+
.reset-container();
|
|
14
|
+
margin: -@--padding-md;
|
|
15
|
+
height: calc(100% + 20px);
|
|
16
|
+
min-height: calc(80vh - 48px);
|
|
17
|
+
.outer {
|
|
18
|
+
display: flex;
|
|
19
|
+
flex-direction: column;
|
|
20
|
+
height: 100%;
|
|
21
|
+
min-height: inherit;
|
|
22
|
+
.header,
|
|
23
|
+
.footer {
|
|
24
|
+
padding: 2px 10px;
|
|
25
|
+
background-color: @--background-color;
|
|
26
|
+
display: flex;
|
|
27
|
+
align-items: center;
|
|
28
|
+
& > span {
|
|
29
|
+
display: flex;
|
|
30
|
+
align-items: center;
|
|
31
|
+
}
|
|
32
|
+
& > span + span {
|
|
33
|
+
margin-left: 10px;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
.main {
|
|
37
|
+
flex: 1;
|
|
38
|
+
position: relative;
|
|
39
|
+
}
|
|
40
|
+
.header {
|
|
41
|
+
border-bottom: 1px solid @--border-color-base;
|
|
42
|
+
.text-btn {
|
|
43
|
+
padding-left: 0;
|
|
44
|
+
padding-right: 0;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
.footer {
|
|
48
|
+
border-top: 1px solid @--border-color-base;
|
|
49
|
+
.ant-slider {
|
|
50
|
+
width: 150px;
|
|
51
|
+
}
|
|
52
|
+
.scale-text {
|
|
53
|
+
width: 40px;
|
|
54
|
+
font-style: normal;
|
|
55
|
+
margin-left: 10px;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
// size
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.@{prefix-print-container} {
|
|
63
|
+
position: absolute;
|
|
64
|
+
left: 0;
|
|
65
|
+
top: 0;
|
|
66
|
+
width: 100%;
|
|
67
|
+
height: 100%;
|
|
68
|
+
background-color: #dadce0;
|
|
69
|
+
&.no-visible {
|
|
70
|
+
opacity: 0;
|
|
71
|
+
height: 0 !important;
|
|
72
|
+
overflow: hidden;
|
|
73
|
+
z-index: -1;
|
|
74
|
+
}
|
|
75
|
+
.spin {
|
|
76
|
+
height: 100%;
|
|
77
|
+
.ant-spin-container {
|
|
78
|
+
height: 100%;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
.preview {
|
|
82
|
+
position: relative;
|
|
83
|
+
height: 100%;
|
|
84
|
+
overflow-x: auto;
|
|
85
|
+
overflow-y: auto;
|
|
86
|
+
.origin-template {
|
|
87
|
+
position: absolute;
|
|
88
|
+
left: 50%;
|
|
89
|
+
top: 0;
|
|
90
|
+
height: 0;
|
|
91
|
+
z-index: -1;
|
|
92
|
+
overflow: hidden;
|
|
93
|
+
visibility: hidden;
|
|
94
|
+
}
|
|
95
|
+
.workspace {
|
|
96
|
+
margin: 0 auto;
|
|
97
|
+
background-color: #fff;
|
|
98
|
+
transform-origin: left top;
|
|
99
|
+
box-sizing: content-box;
|
|
100
|
+
}
|
|
101
|
+
/* 打印模板公共样式 */
|
|
102
|
+
table {
|
|
103
|
+
width: 100%;
|
|
104
|
+
border-spacing: 0;
|
|
105
|
+
border-collapse: collapse;
|
|
106
|
+
table-layout: fixed;
|
|
107
|
+
}
|
|
108
|
+
table tr td {
|
|
109
|
+
padding: 2px;
|
|
110
|
+
word-wrap: break-word;
|
|
111
|
+
}
|
|
112
|
+
.fs12 {
|
|
113
|
+
font-size: 12px;
|
|
114
|
+
}
|
|
115
|
+
.fs13 {
|
|
116
|
+
font-size: 13px;
|
|
117
|
+
}
|
|
118
|
+
.fs14 {
|
|
119
|
+
font-size: 14px;
|
|
120
|
+
}
|
|
121
|
+
.fw500 {
|
|
122
|
+
font-weight: 500;
|
|
123
|
+
}
|
|
124
|
+
.fw700 {
|
|
125
|
+
font-weight: 700;
|
|
126
|
+
}
|
|
127
|
+
.fl {
|
|
128
|
+
float: left;
|
|
129
|
+
}
|
|
130
|
+
.fr {
|
|
131
|
+
float: right;
|
|
132
|
+
}
|
|
133
|
+
.tc {
|
|
134
|
+
text-align: center;
|
|
135
|
+
}
|
|
136
|
+
.tr {
|
|
137
|
+
text-align: right;
|
|
138
|
+
}
|
|
139
|
+
.bor {
|
|
140
|
+
border: 1px solid #000;
|
|
141
|
+
}
|
|
142
|
+
.bor-t {
|
|
143
|
+
border-top: 1px solid #000;
|
|
144
|
+
}
|
|
145
|
+
.bor-b {
|
|
146
|
+
border-bottom: 1px solid #000;
|
|
147
|
+
}
|
|
148
|
+
.bor-l {
|
|
149
|
+
border-left: 1px solid #000;
|
|
150
|
+
}
|
|
151
|
+
.bor-r {
|
|
152
|
+
border-right: 1px solid #000;
|
|
153
|
+
}
|
|
154
|
+
.no-bor {
|
|
155
|
+
border: none !important;
|
|
156
|
+
}
|
|
157
|
+
/* 打印模板公共样式 END */
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
/* IE11 hack */
|
|
162
|
+
@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
|
|
163
|
+
.@{prefix-print-preview} {
|
|
164
|
+
.outer {
|
|
165
|
+
height: 0;
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
.is-fullscreen {
|
|
169
|
+
.@{prefix-print-preview} {
|
|
170
|
+
.outer {
|
|
171
|
+
height: 100%;
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
}
|
|
@@ -15,9 +15,12 @@ declare type IProps = TreeProps & {
|
|
|
15
15
|
children?: string;
|
|
16
16
|
};
|
|
17
17
|
value?: React.Key[];
|
|
18
|
+
placeholder?: string;
|
|
18
19
|
asyncLoad?: boolean;
|
|
19
20
|
checkStrictly?: boolean;
|
|
20
21
|
checkStrategy?: ICheckStrategy;
|
|
22
|
+
showSearchBar?: boolean;
|
|
23
|
+
showCollapse?: boolean;
|
|
21
24
|
onSelectChange?: (records: IRecord[] | IRecord) => void;
|
|
22
25
|
onCheckChange?: (records: IRecord[] | IRecord) => void;
|
|
23
26
|
onDragChange?: (info: any, data: IRecord) => void;
|
|
@@ -41,9 +44,12 @@ declare const SearchTree: React.ForwardRefExoticComponent<TreeProps<import("rc-t
|
|
|
41
44
|
children?: string | undefined;
|
|
42
45
|
} | undefined;
|
|
43
46
|
value?: React.Key[] | undefined;
|
|
47
|
+
placeholder?: string | undefined;
|
|
44
48
|
asyncLoad?: boolean | undefined;
|
|
45
49
|
checkStrictly?: boolean | undefined;
|
|
46
50
|
checkStrategy?: ICheckStrategy | undefined;
|
|
51
|
+
showSearchBar?: boolean | undefined;
|
|
52
|
+
showCollapse?: boolean | undefined;
|
|
47
53
|
onSelectChange?: ((records: IRecord[] | IRecord) => void) | undefined;
|
|
48
54
|
onCheckChange?: ((records: IRecord[] | IRecord) => void) | undefined;
|
|
49
55
|
onDragChange?: ((info: any, data: IRecord) => void) | undefined;
|
|
@@ -9,8 +9,21 @@
|
|
|
9
9
|
@prefix-search-tree: ~'@{qm-prefix}-search-tree';
|
|
10
10
|
|
|
11
11
|
.@{prefix-search-tree} {
|
|
12
|
-
.reset-
|
|
12
|
+
.reset-container();
|
|
13
13
|
height: 100%;
|
|
14
|
+
.topper {
|
|
15
|
+
display: flex;
|
|
16
|
+
justify-content: space-between;
|
|
17
|
+
align-items: center;
|
|
18
|
+
.ant-input-search {
|
|
19
|
+
flex: 1 0;
|
|
20
|
+
margin-bottom: 8px;
|
|
21
|
+
}
|
|
22
|
+
.trigger {
|
|
23
|
+
margin-left: 8px;
|
|
24
|
+
margin-bottom: 8px;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
14
27
|
.ant-tree {
|
|
15
28
|
.filter-node {
|
|
16
29
|
& > span:last-of-type {
|