tntd 2.8.45 → 2.8.46
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/es/alert/alert.js +153 -0
- package/es/alert/alert.js.map +1 -0
- package/es/alert/alert.less +128 -0
- package/es/cascader/cascader.js +84 -0
- package/es/cascader/cascader.js.map +1 -0
- package/es/cascader/cascader.less +16 -0
- package/es/checkbox/check.png +0 -0
- package/es/checkbox/checkbox.js +100 -0
- package/es/checkbox/checkbox.js.map +1 -0
- package/es/checkbox/checkbox.less +69 -0
- package/es/date-picker/DatePicker.js +163 -0
- package/es/date-picker/DatePicker.js.map +1 -0
- package/es/date-picker/index.less +294 -0
- package/es/input-number/inputNumber.js +89 -0
- package/es/input-number/inputNumber.js.map +1 -0
- package/es/input-number/inputNumber.less +12 -0
- package/es/modal/index.less +36 -0
- package/es/modal/modal.js +5 -3
- package/es/modal/modal.js.map +1 -1
- package/es/modal/modal.less +16 -0
- package/es/popconfirm/index.less +32 -0
- package/es/popconfirm/popconfirm.js +96 -0
- package/es/popconfirm/popconfirm.js.map +1 -0
- package/es/popover/index.less +57 -0
- package/es/popover/popover.js +90 -0
- package/es/popover/popover.js.map +1 -0
- package/es/progress/progress.js +185 -0
- package/es/progress/progress.js.map +1 -0
- package/es/progress/progress.less +82 -0
- package/es/query-form/Field/Composition/FieldPopover.js +466 -0
- package/es/query-form/Field/Composition/FieldPopover.js.map +1 -0
- package/es/query-form/Field/Composition/FieldPopover.less +41 -0
- package/es/query-form/Field/Composition/Select.js +260 -0
- package/es/query-form/Field/Composition/Select.js.map +1 -0
- package/es/query-form/Field/Composition/SelectInput.js +112 -0
- package/es/query-form/Field/Composition/SelectInput.js.map +1 -0
- package/es/query-form/Field/Composition/ValueTag.js +241 -0
- package/es/query-form/Field/Composition/ValueTag.js.map +1 -0
- package/es/query-form/Field/Composition/index.js +448 -0
- package/es/query-form/Field/Composition/index.js.map +1 -0
- package/es/query-form/Field/Composition/index.less +167 -0
- package/es/query-form/Field/Composition/utils.js +173 -0
- package/es/query-form/Field/Composition/utils.js.map +1 -0
- package/es/query-form-backup/Field/Composition/FieldPopover.less +35 -0
- package/es/query-form-backup/Field/Composition/index.less +114 -0
- package/es/query-form-backup/index.less +90 -0
- package/es/query-form-v2/index.less +133 -0
- package/es/radio/radio.js +110 -0
- package/es/radio/radio.js.map +1 -0
- package/es/radio/radio.less +43 -0
- package/es/spin/spin.js +79 -0
- package/es/spin/spin.js.map +1 -0
- package/es/spin/spin.less +9 -0
- package/es/steps/assets/background_left.svg +12 -0
- package/es/steps/assets/background_right.svg +12 -0
- package/es/steps/assets/horizontal_line.svg +3 -0
- package/es/steps/assets/vertical_line.svg +3 -0
- package/es/steps/stepStyle/icon.less +51 -0
- package/es/steps/stepStyle/progress-dot.less +10 -0
- package/es/steps/stepStyle/variables.less +8 -0
- package/es/steps/stepStyle/vertical.less +41 -0
- package/es/switch/index.less +45 -0
- package/es/tabs/tabs.less +125 -0
- package/es/time-picker/TimePicker.js +90 -0
- package/es/time-picker/TimePicker.js.map +1 -0
- package/es/time-picker/index.less +38 -0
- package/es/tntd-action/Action.js +219 -0
- package/es/tntd-action/Action.js.map +1 -0
- package/es/tntd-action/index.less +61 -0
- package/es/tntd-select/index.less +7 -0
- package/lib/alert/alert.d.ts +12 -0
- package/lib/alert/alert.d.ts.map +1 -0
- package/lib/alert/alert.js +153 -0
- package/lib/alert/alert.js.map +1 -0
- package/lib/alert/alert.less +128 -0
- package/lib/cascader/cascader.d.ts +10 -0
- package/lib/cascader/cascader.d.ts.map +1 -0
- package/lib/cascader/cascader.js +84 -0
- package/lib/cascader/cascader.js.map +1 -0
- package/lib/cascader/cascader.less +16 -0
- package/lib/checkbox/check.png +0 -0
- package/lib/checkbox/checkbox.d.ts +16 -0
- package/lib/checkbox/checkbox.d.ts.map +1 -0
- package/lib/checkbox/checkbox.js +100 -0
- package/lib/checkbox/checkbox.js.map +1 -0
- package/lib/checkbox/checkbox.less +69 -0
- package/lib/date-picker/DatePicker.d.ts +21 -0
- package/lib/date-picker/DatePicker.d.ts.map +1 -0
- package/lib/date-picker/DatePicker.js +163 -0
- package/lib/date-picker/DatePicker.js.map +1 -0
- package/lib/date-picker/index.less +294 -0
- package/lib/input-number/inputNumber.d.ts +10 -0
- package/lib/input-number/inputNumber.d.ts.map +1 -0
- package/lib/input-number/inputNumber.js +89 -0
- package/lib/input-number/inputNumber.js.map +1 -0
- package/lib/input-number/inputNumber.less +12 -0
- package/lib/modal/index.less +36 -0
- package/lib/modal/modal.d.ts +1 -0
- package/lib/modal/modal.d.ts.map +1 -1
- package/lib/modal/modal.js +5 -3
- package/lib/modal/modal.js.map +1 -1
- package/lib/modal/modal.less +16 -0
- package/lib/popconfirm/index.less +32 -0
- package/lib/popconfirm/popconfirm.d.ts +8 -0
- package/lib/popconfirm/popconfirm.d.ts.map +1 -0
- package/lib/popconfirm/popconfirm.js +96 -0
- package/lib/popconfirm/popconfirm.js.map +1 -0
- package/lib/popover/index.less +57 -0
- package/lib/popover/popover.d.ts +14 -0
- package/lib/popover/popover.d.ts.map +1 -0
- package/lib/popover/popover.js +90 -0
- package/lib/popover/popover.js.map +1 -0
- package/lib/progress/progress.d.ts +12 -0
- package/lib/progress/progress.d.ts.map +1 -0
- package/lib/progress/progress.js +185 -0
- package/lib/progress/progress.js.map +1 -0
- package/lib/progress/progress.less +82 -0
- package/lib/query-form/Field/Composition/FieldPopover.d.ts +19 -0
- package/lib/query-form/Field/Composition/FieldPopover.d.ts.map +1 -0
- package/lib/query-form/Field/Composition/FieldPopover.js +466 -0
- package/lib/query-form/Field/Composition/FieldPopover.js.map +1 -0
- package/lib/query-form/Field/Composition/FieldPopover.less +41 -0
- package/lib/query-form/Field/Composition/Select.d.ts +4 -0
- package/lib/query-form/Field/Composition/Select.d.ts.map +1 -0
- package/lib/query-form/Field/Composition/Select.js +260 -0
- package/lib/query-form/Field/Composition/Select.js.map +1 -0
- package/lib/query-form/Field/Composition/SelectInput.d.ts +3 -0
- package/lib/query-form/Field/Composition/SelectInput.d.ts.map +1 -0
- package/lib/query-form/Field/Composition/SelectInput.js +112 -0
- package/lib/query-form/Field/Composition/SelectInput.js.map +1 -0
- package/lib/query-form/Field/Composition/ValueTag.d.ts +13 -0
- package/lib/query-form/Field/Composition/ValueTag.d.ts.map +1 -0
- package/lib/query-form/Field/Composition/ValueTag.js +241 -0
- package/lib/query-form/Field/Composition/ValueTag.js.map +1 -0
- package/lib/query-form/Field/Composition/index.d.ts +15 -0
- package/lib/query-form/Field/Composition/index.d.ts.map +1 -0
- package/lib/query-form/Field/Composition/index.js +448 -0
- package/lib/query-form/Field/Composition/index.js.map +1 -0
- package/lib/query-form/Field/Composition/index.less +167 -0
- package/lib/query-form/Field/Composition/utils.d.ts +21 -0
- package/lib/query-form/Field/Composition/utils.d.ts.map +1 -0
- package/lib/query-form/Field/Composition/utils.js +173 -0
- package/lib/query-form/Field/Composition/utils.js.map +1 -0
- package/lib/query-form-backup/Field/Composition/FieldPopover.less +35 -0
- package/lib/query-form-backup/Field/Composition/index.less +114 -0
- package/lib/query-form-backup/index.less +90 -0
- package/lib/query-form-v2/index.less +133 -0
- package/lib/radio/radio.d.ts +17 -0
- package/lib/radio/radio.d.ts.map +1 -0
- package/lib/radio/radio.js +110 -0
- package/lib/radio/radio.js.map +1 -0
- package/lib/radio/radio.less +43 -0
- package/lib/spin/spin.d.ts +9 -0
- package/lib/spin/spin.d.ts.map +1 -0
- package/lib/spin/spin.js +79 -0
- package/lib/spin/spin.js.map +1 -0
- package/lib/spin/spin.less +9 -0
- package/lib/steps/assets/background_left.svg +12 -0
- package/lib/steps/assets/background_right.svg +12 -0
- package/lib/steps/assets/horizontal_line.svg +3 -0
- package/lib/steps/assets/vertical_line.svg +3 -0
- package/lib/steps/stepStyle/icon.less +51 -0
- package/lib/steps/stepStyle/progress-dot.less +10 -0
- package/lib/steps/stepStyle/variables.less +8 -0
- package/lib/steps/stepStyle/vertical.less +41 -0
- package/lib/switch/index.less +45 -0
- package/lib/tabs/tabs.less +125 -0
- package/lib/time-picker/TimePicker.d.ts +9 -0
- package/lib/time-picker/TimePicker.d.ts.map +1 -0
- package/lib/time-picker/TimePicker.js +90 -0
- package/lib/time-picker/TimePicker.js.map +1 -0
- package/lib/time-picker/index.less +38 -0
- package/lib/tntd-action/Action.d.ts +6 -0
- package/lib/tntd-action/Action.d.ts.map +1 -0
- package/lib/tntd-action/Action.js +219 -0
- package/lib/tntd-action/Action.js.map +1 -0
- package/lib/tntd-action/index.less +61 -0
- package/lib/tntd-select/index.less +7 -0
- package/package.json +2 -2
- package/es/array-input/utils.js +0 -414
- package/es/array-input/utils.js.map +0 -1
- package/lib/array-input/utils.d.ts +0 -2
- package/lib/array-input/utils.d.ts.map +0 -1
- package/lib/array-input/utils.js +0 -414
- package/lib/array-input/utils.js.map +0 -1
|
@@ -0,0 +1,294 @@
|
|
|
1
|
+
@import '../style/themes/index';
|
|
2
|
+
|
|
3
|
+
@datepicker-prefix-cls: ~'@{ant-prefix}-date-picker';
|
|
4
|
+
@calendar-prefix-cls: ~'@{ant-prefix}-calendar';
|
|
5
|
+
@calendar-timepicker-prefix-cls: ~'@{ant-prefix}-calendar-time-picker';
|
|
6
|
+
|
|
7
|
+
.@{calendar-prefix-cls}-picker-container{
|
|
8
|
+
.@{calendar-prefix-cls}{
|
|
9
|
+
// margin-top: 42px;
|
|
10
|
+
.@{calendar-prefix-cls}-input-wrap{
|
|
11
|
+
// display: none;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
.@{calendar-prefix-cls}-range{
|
|
15
|
+
// margin-top: 42px;
|
|
16
|
+
.@{calendar-prefix-cls}-input-wrap,.@{calendar-prefix-cls}-range-middle{
|
|
17
|
+
// display: none;
|
|
18
|
+
}
|
|
19
|
+
.@{calendar-prefix-cls}-decade-panel,.@{calendar-prefix-cls}-year-panel,.@{calendar-prefix-cls}-month-panel{
|
|
20
|
+
// top: 0
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
.@{calendar-prefix-cls}-month-calendar,.@{calendar-prefix-cls}-week-number{
|
|
24
|
+
// margin-top: 42px;
|
|
25
|
+
}
|
|
26
|
+
//.@{calendar-prefix-cls}-today .@{calendar-prefix-cls}-date{
|
|
27
|
+
// background-color: @white;
|
|
28
|
+
//}
|
|
29
|
+
.@{calendar-prefix-cls}:not(.@{calendar-prefix-cls}-range){
|
|
30
|
+
.@{calendar-prefix-cls}-selected-date .@{calendar-prefix-cls}-date{
|
|
31
|
+
background-color: @blue-6;
|
|
32
|
+
color: @white;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
}
|
|
37
|
+
//Picker
|
|
38
|
+
.@{calendar-prefix-cls}-picker{
|
|
39
|
+
input,.@{calendar-prefix-cls}-picker-input{
|
|
40
|
+
border-color: @border-color-secondary;
|
|
41
|
+
color: @text-color;
|
|
42
|
+
&:focus{
|
|
43
|
+
border-color: @blue-5;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
&:has(input:not([value=''])),&:hover {
|
|
47
|
+
.@{calendar-prefix-cls}-picker-icon{
|
|
48
|
+
color: @text-color-secondary;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
&:has(input[disabled]){
|
|
52
|
+
.@{calendar-prefix-cls}-picker-icon{
|
|
53
|
+
color: @disabled-color;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
.@{calendar-prefix-cls}-picker-icon{
|
|
57
|
+
width: auto;
|
|
58
|
+
height: @font-size-lg;
|
|
59
|
+
font-size: @font-size-lg;
|
|
60
|
+
}
|
|
61
|
+
.@{calendar-prefix-cls}-picker-clear{
|
|
62
|
+
color: tint(@bg-color-spotilight, 50%);
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
.@{datepicker-prefix-cls}{
|
|
66
|
+
&-fill{
|
|
67
|
+
.@{calendar-prefix-cls}-picker{
|
|
68
|
+
&-input {
|
|
69
|
+
&.@{ant-prefix}-input {
|
|
70
|
+
background-color: @fill-color-quaternary;
|
|
71
|
+
border-color: @fill-color-quaternary;
|
|
72
|
+
&-disabled {
|
|
73
|
+
border: none;
|
|
74
|
+
pointer-events: none;
|
|
75
|
+
background: @disabled-bg;
|
|
76
|
+
}
|
|
77
|
+
&:focus{
|
|
78
|
+
background-color: @white;
|
|
79
|
+
border-color: @blue-5;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
&:not([value='']):hover {
|
|
83
|
+
background-color: @white;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
//Calender
|
|
91
|
+
.@{calendar-prefix-cls}{
|
|
92
|
+
&-footer {
|
|
93
|
+
&-extra {
|
|
94
|
+
.@{ant-prefix}-tag{
|
|
95
|
+
color: @text-color;
|
|
96
|
+
border: none;
|
|
97
|
+
background-color: @white;
|
|
98
|
+
&:hover{
|
|
99
|
+
color: @blue-6;
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
thead tr{
|
|
106
|
+
border-bottom: none;
|
|
107
|
+
}
|
|
108
|
+
table th{
|
|
109
|
+
background-color: @white;
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
//RangePicker
|
|
114
|
+
.@{calendar-prefix-cls}-range{
|
|
115
|
+
.@{calendar-prefix-cls}-in-range-cell,
|
|
116
|
+
.@{calendar-prefix-cls}-selected-start-date,
|
|
117
|
+
.@{calendar-prefix-cls}-selected-end-date {
|
|
118
|
+
position: relative;
|
|
119
|
+
border-radius: 0;
|
|
120
|
+
> div {
|
|
121
|
+
position: relative;
|
|
122
|
+
z-index: 1;
|
|
123
|
+
}
|
|
124
|
+
&::before {
|
|
125
|
+
position: absolute;
|
|
126
|
+
top: 3px;
|
|
127
|
+
right: 0;
|
|
128
|
+
bottom: 3px;
|
|
129
|
+
left: 0;
|
|
130
|
+
display: block;
|
|
131
|
+
background: @item-active-bg;
|
|
132
|
+
border: 0;
|
|
133
|
+
border-radius: 0;
|
|
134
|
+
content: '';
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
.@{calendar-prefix-cls}-selected-start-date{
|
|
138
|
+
&::before{
|
|
139
|
+
border-radius: @border-radius-base 0 0 @border-radius-base;
|
|
140
|
+
}
|
|
141
|
+
&::after {
|
|
142
|
+
position: absolute;
|
|
143
|
+
bottom: -2px;
|
|
144
|
+
left: 16px;
|
|
145
|
+
display: block;
|
|
146
|
+
background: @blue-6;
|
|
147
|
+
border: 0;
|
|
148
|
+
border-radius: 50%;
|
|
149
|
+
width: 4px;
|
|
150
|
+
height: 4px;
|
|
151
|
+
content: '';
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
//ant-calendar-last-day-of-month
|
|
155
|
+
//ant-calendar-last-month-cell ant-calendar-last-day-of-month
|
|
156
|
+
.@{calendar-prefix-cls}-selected-end-date{
|
|
157
|
+
&::before{
|
|
158
|
+
border-radius: 0 @border-radius-base @border-radius-base 0;
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
.@{calendar-prefix-cls}-selected-start-date.@{calendar-prefix-cls}-selected-end-date{
|
|
162
|
+
&::before{
|
|
163
|
+
border-radius: @border-radius-base @border-radius-base @border-radius-base @border-radius-base;
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
tr .@{calendar-prefix-cls}-in-range-cell:first-child{
|
|
167
|
+
&::before{
|
|
168
|
+
border-radius: @border-radius-base 0 0 @border-radius-base;
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
tr .@{calendar-prefix-cls}-selected-end-date:first-child,
|
|
172
|
+
tr .@{calendar-prefix-cls}-selected-start-date:last-child{
|
|
173
|
+
&::before{
|
|
174
|
+
border-radius: @border-radius-base @border-radius-base @border-radius-base @border-radius-base;
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
tr .@{calendar-prefix-cls}-in-range-cell:last-child{
|
|
178
|
+
&::before{
|
|
179
|
+
border-radius: 0 @border-radius-base @border-radius-base 0;
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
.@{calendar-prefix-cls}-cell{
|
|
183
|
+
height: 38px;
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
//MonthPanel
|
|
188
|
+
.@{calendar-prefix-cls}-month-panel-month {
|
|
189
|
+
border-radius: @border-radius-base;
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
//WeekPicker
|
|
193
|
+
.@{calendar-prefix-cls}-week-number {
|
|
194
|
+
&-cell {
|
|
195
|
+
opacity: 1;
|
|
196
|
+
font-weight: normal;
|
|
197
|
+
color: @text-color-tertiary !important;
|
|
198
|
+
}
|
|
199
|
+
.@{calendar-prefix-cls}-body tr {
|
|
200
|
+
cursor: pointer;
|
|
201
|
+
transition: all 0.3s;
|
|
202
|
+
background: @white;
|
|
203
|
+
.@{calendar-prefix-cls}-date{
|
|
204
|
+
width: auto;
|
|
205
|
+
border-radius: 0;
|
|
206
|
+
font-weight: 500;
|
|
207
|
+
}
|
|
208
|
+
&:hover {
|
|
209
|
+
background: @white;
|
|
210
|
+
td:nth-child(2){
|
|
211
|
+
.@{calendar-prefix-cls}-date{
|
|
212
|
+
border-radius: @border-radius-base 0 0 @border-radius-base;
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
td:last-child{
|
|
216
|
+
.@{calendar-prefix-cls}-date{
|
|
217
|
+
border-radius: 0 @border-radius-base @border-radius-base 0;
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
.@{calendar-prefix-cls}-cell{
|
|
221
|
+
&::before{
|
|
222
|
+
top: 8px;
|
|
223
|
+
bottom: 8px;
|
|
224
|
+
}
|
|
225
|
+
.@{calendar-prefix-cls}-date{
|
|
226
|
+
background: @background-color-base;
|
|
227
|
+
&:hover{
|
|
228
|
+
background: @background-color-base;
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
.@{calendar-prefix-cls}-selected-day{
|
|
232
|
+
background: @background-color-base;
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
.@{calendar-prefix-cls}-week-number-cell{
|
|
236
|
+
background: @white;
|
|
237
|
+
}
|
|
238
|
+
}
|
|
239
|
+
.@{calendar-prefix-cls}-selected-day .@{calendar-prefix-cls}-date,
|
|
240
|
+
.@{calendar-prefix-cls}-selected-day:hover .@{calendar-prefix-cls}-date {
|
|
241
|
+
color: @text-color;
|
|
242
|
+
background: transparent;
|
|
243
|
+
}
|
|
244
|
+
&.@{calendar-prefix-cls}-active-week {
|
|
245
|
+
background: transparent;
|
|
246
|
+
td:nth-child(2){
|
|
247
|
+
.@{calendar-prefix-cls}-selected-day,.@{calendar-prefix-cls}-date{
|
|
248
|
+
border-radius: @border-radius-base 0 0 @border-radius-base;
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
td:last-child{
|
|
252
|
+
.@{calendar-prefix-cls}-selected-day,.@{calendar-prefix-cls}-date{
|
|
253
|
+
border-radius: 0 @border-radius-base @border-radius-base 0;
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
|
+
.@{calendar-prefix-cls}-cell{
|
|
257
|
+
font-weight: bold;
|
|
258
|
+
//background: @primary-color;
|
|
259
|
+
.@{calendar-prefix-cls}-date{
|
|
260
|
+
color: @text-color-inverse;
|
|
261
|
+
background: @primary-color;
|
|
262
|
+
&:hover{
|
|
263
|
+
color: @text-color-inverse;
|
|
264
|
+
background: @primary-color;
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
.@{calendar-prefix-cls}-selected-day{
|
|
268
|
+
background: @primary-color;
|
|
269
|
+
}
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
.@{calendar-prefix-cls}-today .@{calendar-prefix-cls}-date{
|
|
273
|
+
//color: @text-color;
|
|
274
|
+
//font-weight: normal;
|
|
275
|
+
border-color: transparent;
|
|
276
|
+
}
|
|
277
|
+
}
|
|
278
|
+
.@{calendar-prefix-cls}-cell{
|
|
279
|
+
height: 38px;
|
|
280
|
+
position: relative;
|
|
281
|
+
&::before {
|
|
282
|
+
position: absolute;
|
|
283
|
+
top: 3px;
|
|
284
|
+
right: 0;
|
|
285
|
+
bottom: 3px;
|
|
286
|
+
left: 0;
|
|
287
|
+
display: block;
|
|
288
|
+
border: 0;
|
|
289
|
+
border-radius: 0;
|
|
290
|
+
content: '';
|
|
291
|
+
}
|
|
292
|
+
}
|
|
293
|
+
}
|
|
294
|
+
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { default as AntdInputNumber } from 'antd/lib/input-number';
|
|
3
|
+
import type { InputNumberProps as AntdInputNumberProps } from 'antd/lib/input-number';
|
|
4
|
+
export * from 'antd/lib/input-number';
|
|
5
|
+
export declare type InputNumberProps = AntdInputNumberProps & {
|
|
6
|
+
readonly?: boolean;
|
|
7
|
+
};
|
|
8
|
+
declare const _default: React.ForwardRefExoticComponent<Pick<AntdInputNumberProps & React.RefAttributes<AntdInputNumber>, "key" | keyof AntdInputNumberProps> & React.RefAttributes<unknown>>;
|
|
9
|
+
export default _default;
|
|
10
|
+
//# sourceMappingURL=inputNumber.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"inputNumber.d.ts","sourceRoot":"","sources":["../../src/input-number/inputNumber.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAA;AAEzC,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,sBAAsB,CAAA;AACjE,OAAO,KAAK,EAAE,gBAAgB,IAAI,oBAAoB,EAAE,MAAM,sBAAsB,CAAA;AAKpF,cAAc,sBAAsB,CAAA;AAIpC,oBAAY,gBAAgB,GAAG,oBAAoB,GAAG;IACpD,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB,CAAA;;AAuBD,wBAA0E"}
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
function _typeof(o) {
|
|
4
|
+
"@babel/helpers - typeof";
|
|
5
|
+
|
|
6
|
+
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
|
|
7
|
+
return typeof o;
|
|
8
|
+
} : function (o) {
|
|
9
|
+
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
|
10
|
+
}, _typeof(o);
|
|
11
|
+
}
|
|
12
|
+
Object.defineProperty(exports, "__esModule", {
|
|
13
|
+
value: true
|
|
14
|
+
});
|
|
15
|
+
var _exportNames = {};
|
|
16
|
+
exports["default"] = void 0;
|
|
17
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
18
|
+
var _configProvider = require("../config-provider");
|
|
19
|
+
var _inputNumber = _interopRequireWildcard(require("antd/lib/input-number"));
|
|
20
|
+
Object.keys(_inputNumber).forEach(function (key) {
|
|
21
|
+
if (key === "default" || key === "__esModule") return;
|
|
22
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
23
|
+
if (key in exports && exports[key] === _inputNumber[key]) return;
|
|
24
|
+
Object.defineProperty(exports, key, {
|
|
25
|
+
enumerable: true,
|
|
26
|
+
get: function get() {
|
|
27
|
+
return _inputNumber[key];
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
});
|
|
31
|
+
var _connect = require("../connect");
|
|
32
|
+
var _previewText = _interopRequireDefault(require("../preview-text"));
|
|
33
|
+
var _classnames = _interopRequireDefault(require("classnames"));
|
|
34
|
+
var _prevLocale = require("../prev-locale");
|
|
35
|
+
function _interopRequireDefault(obj) {
|
|
36
|
+
return obj && obj.__esModule ? obj : {
|
|
37
|
+
"default": obj
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
function _getRequireWildcardCache(e) {
|
|
41
|
+
if ("function" != typeof WeakMap) return null;
|
|
42
|
+
var r = new WeakMap(),
|
|
43
|
+
t = new WeakMap();
|
|
44
|
+
return (_getRequireWildcardCache = function _getRequireWildcardCache(e) {
|
|
45
|
+
return e ? t : r;
|
|
46
|
+
})(e);
|
|
47
|
+
}
|
|
48
|
+
function _interopRequireWildcard(e, r) {
|
|
49
|
+
if (!r && e && e.__esModule) return e;
|
|
50
|
+
if (null === e || "object" != _typeof(e) && "function" != typeof e) return {
|
|
51
|
+
"default": e
|
|
52
|
+
};
|
|
53
|
+
var t = _getRequireWildcardCache(r);
|
|
54
|
+
if (t && t.has(e)) return t.get(e);
|
|
55
|
+
var n = {
|
|
56
|
+
__proto__: null
|
|
57
|
+
},
|
|
58
|
+
a = Object.defineProperty && Object.getOwnPropertyDescriptor;
|
|
59
|
+
for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) {
|
|
60
|
+
var i = a ? Object.getOwnPropertyDescriptor(e, u) : null;
|
|
61
|
+
i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u];
|
|
62
|
+
}
|
|
63
|
+
return n["default"] = e, t && t.set(e, n), n;
|
|
64
|
+
}
|
|
65
|
+
var __rest = void 0 && (void 0).__rest || function (s, e) {
|
|
66
|
+
var t = {};
|
|
67
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
68
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
69
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
70
|
+
}
|
|
71
|
+
return t;
|
|
72
|
+
};
|
|
73
|
+
var defaultPlaceholder = (0, _prevLocale.getText)('enter', (0, _prevLocale.getLanguage)());
|
|
74
|
+
var tntPrefixCls = 'tnt-input-number';
|
|
75
|
+
var TntInputNumber = (0, _react.forwardRef)(function (_a, ref) {
|
|
76
|
+
var className = _a.className,
|
|
77
|
+
_a$placeholder = _a.placeholder,
|
|
78
|
+
placeholder = _a$placeholder === void 0 ? defaultPlaceholder : _a$placeholder,
|
|
79
|
+
props = __rest(_a, ["className", "placeholder"]);
|
|
80
|
+
return _react["default"].createElement(_configProvider.ConfigConsumer, null, function () {
|
|
81
|
+
return _react["default"].createElement(_inputNumber["default"], Object.assign({
|
|
82
|
+
placeholder: placeholder
|
|
83
|
+
}, props, {
|
|
84
|
+
ref: ref,
|
|
85
|
+
className: (0, _classnames["default"])(className, tntPrefixCls)
|
|
86
|
+
}));
|
|
87
|
+
});
|
|
88
|
+
});
|
|
89
|
+
var _default = exports["default"] = (0, _connect.connectReadonlyComponent)(TntInputNumber, _previewText["default"].Input);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"inputNumber.js","sourceRoot":"","sources":["../../src/input-number/inputNumber.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+CAAyC;AACzC,wDAAmD;AACnD,wEAAiE;AAEjE,wCAAqD;AACrD,mEAAyC;AACzC,4DAAmC;AACnC,gDAAqD;AACrD,uDAAoC;AAEpC,MAAM,kBAAkB,GAAG,IAAA,qBAAO,EAAC,OAAO,EAAE,IAAA,yBAAW,GAAE,CAAC,CAAA;AAM1D,MAAM,YAAY,GAAG,kBAAkB,CAAA;AAEvC,MAAM,cAAc,GAAG,IAAA,kBAAU,EAC/B,CAAC,EAAyD,EAAE,GAAG,EAAE,EAAE;QAAlE,EAAE,SAAS,EAAE,WAAW,GAAG,kBAAkB,OAAY,EAAP,KAAK,cAAvD,4BAAyD,CAAF;IACtD,OAAO,CACL,8BAAC,gCAAc,QACZ,GAAG,EAAE;QACJ,OAAO,CACL,8BAAC,sBAAe,kBACd,WAAW,EAAE,WAAW,IACpB,KAAK,IACT,GAAG,EAAE,GAAG,EACR,SAAS,EAAE,IAAA,oBAAU,EAAC,SAAS,EAAE,YAAY,CAAC,IAC9C,CACH,CAAA;IACH,CAAC,CACc,CAClB,CAAA;AACH,CAAC,CACF,CAAA;AAED,kBAAe,IAAA,kCAAwB,EAAC,cAAc,EAAE,sBAAW,CAAC,KAAK,CAAC,CAAA","sourcesContent":["import React, { forwardRef } from 'react'\nimport { ConfigConsumer } from '../config-provider'\nimport { default as AntdInputNumber } from 'antd/lib/input-number'\nimport type { InputNumberProps as AntdInputNumberProps } from 'antd/lib/input-number'\nimport { connectReadonlyComponent } from '../connect'\nimport PreviewText from '../preview-text'\nimport classNames from 'classnames'\nimport { getLanguage, getText } from '../prev-locale'\nexport * from 'antd/lib/input-number'\n\nconst defaultPlaceholder = getText('enter', getLanguage())\n\nexport type InputNumberProps = AntdInputNumberProps & {\n readonly?: boolean\n}\n\nconst tntPrefixCls = 'tnt-input-number'\n\nconst TntInputNumber = forwardRef<AntdInputNumber, AntdInputNumberProps>(\n ({ className, placeholder = defaultPlaceholder, ...props }, ref) => {\n return (\n <ConfigConsumer>\n {() => {\n return (\n <AntdInputNumber\n placeholder={placeholder}\n {...props}\n ref={ref}\n className={classNames(className, tntPrefixCls)}\n />\n )\n }}\n </ConfigConsumer>\n )\n }\n)\n\nexport default connectReadonlyComponent(TntInputNumber, PreviewText.Input)\n"]}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
@modal-prefix-cls: ~'@{ant-prefix}-modal';
|
|
2
|
+
@confirm-prefix-cls: ~'@{ant-prefix}-modal-confirm';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
.@{modal-prefix-cls}{
|
|
6
|
+
&-header{
|
|
7
|
+
font-size: @font-size-lg;
|
|
8
|
+
font-weight: 500;
|
|
9
|
+
}
|
|
10
|
+
&-close-x{
|
|
11
|
+
font-size: 20px;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
&-title{
|
|
15
|
+
line-height: @line-height-lg;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.@{confirm-prefix-cls}{
|
|
20
|
+
&-body{
|
|
21
|
+
.anticon {
|
|
22
|
+
font-size: 22px !important;
|
|
23
|
+
margin-top: 1px;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
&-body &-content{
|
|
28
|
+
margin-top: @margin-xs;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.@{confirm-prefix-cls}-btns {
|
|
32
|
+
button {
|
|
33
|
+
border-radius: @border-radius-base;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
package/lib/modal/modal.d.ts
CHANGED
|
@@ -6,6 +6,7 @@ export { ActionButtonProps, ModalProps } from 'antd/lib/modal';
|
|
|
6
6
|
export interface CurModalProps extends AntdModalProps {
|
|
7
7
|
upperCaseIgnore?: [];
|
|
8
8
|
unUpperConverted?: boolean;
|
|
9
|
+
innerScroll?: boolean;
|
|
9
10
|
}
|
|
10
11
|
interface ModalComponent extends React.ForwardRefExoticComponent<CurModalProps & React.RefAttributes<AntdModal>> {
|
|
11
12
|
info: typeof AntdModal.info;
|
package/lib/modal/modal.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"modal.d.ts","sourceRoot":"","sources":["../../src/modal/modal.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAqB,MAAM,OAAO,CAAA;AACzC,OAAO,KAAK,EAAE,UAAU,IAAI,cAAc,EAAE,MAAM,eAAe,CAAA;AAGjE,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,eAAe,CAAA;AAGpD,cAAc,eAAe,CAAA;AAC7B,OAAO,EAAE,iBAAiB,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AAE7D,MAAM,WAAW,aAAc,SAAQ,cAAc;IACnD,eAAe,CAAC,EAAE,EAAE,CAAA;IACpB,gBAAgB,CAAC,EAAE,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"modal.d.ts","sourceRoot":"","sources":["../../src/modal/modal.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAqB,MAAM,OAAO,CAAA;AACzC,OAAO,KAAK,EAAE,UAAU,IAAI,cAAc,EAAE,MAAM,eAAe,CAAA;AAGjE,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,eAAe,CAAA;AAGpD,cAAc,eAAe,CAAA;AAC7B,OAAO,EAAE,iBAAiB,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AAE7D,MAAM,WAAW,aAAc,SAAQ,cAAc;IACnD,eAAe,CAAC,EAAE,EAAE,CAAA;IACpB,gBAAgB,CAAC,EAAE,OAAO,CAAA;IAC1B,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AAED,UAAU,cACR,SAAQ,KAAK,CAAC,yBAAyB,CAAC,aAAa,GAAG,KAAK,CAAC,aAAa,CAAC,SAAS,CAAC,CAAC;IACvF,IAAI,EAAE,OAAO,SAAS,CAAC,IAAI,CAAA;IAC3B,OAAO,EAAE,OAAO,SAAS,CAAC,OAAO,CAAA;IACjC,KAAK,EAAE,OAAO,SAAS,CAAC,KAAK,CAAA;IAC7B,OAAO,EAAE,OAAO,SAAS,CAAC,OAAO,CAAA;IACjC,IAAI,EAAE,OAAO,SAAS,CAAC,IAAI,CAAA;IAC3B,OAAO,EAAE,OAAO,SAAS,CAAC,OAAO,CAAA;IACjC,UAAU,EAAE,OAAO,SAAS,CAAC,UAAU,CAAA;CACxC;AAED,eAAO,MAAM,KAAK,gBAiBC,CAAA"}
|
package/lib/modal/modal.js
CHANGED
|
@@ -75,7 +75,7 @@ var __rest = void 0 && (void 0).__rest || function (s, e) {
|
|
|
75
75
|
* @Author: 周泽飞 zefei.zhou@tongdun.net
|
|
76
76
|
* @Date: 2023-03-08 17:45:01
|
|
77
77
|
* @LastEditors: 郑泳健
|
|
78
|
-
* @LastEditTime:
|
|
78
|
+
* @LastEditTime: 2025-06-23 17:27:08
|
|
79
79
|
* @FilePath: /tntd/packages/tntd/src/modal/modal.tsx
|
|
80
80
|
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
|
81
81
|
*/
|
|
@@ -85,11 +85,13 @@ var Modal = exports.Modal = (0, _react.forwardRef)(function (_a, ref) {
|
|
|
85
85
|
className = _a.className,
|
|
86
86
|
upperCaseIgnore = _a.upperCaseIgnore,
|
|
87
87
|
unUpperConverted = _a.unUpperConverted,
|
|
88
|
-
|
|
88
|
+
_a$innerScroll = _a.innerScroll,
|
|
89
|
+
innerScroll = _a$innerScroll === void 0 ? true : _a$innerScroll,
|
|
90
|
+
rest = __rest(_a, ["title", "className", "upperCaseIgnore", "unUpperConverted", "innerScroll"]);
|
|
89
91
|
return _react["default"].createElement(_configProvider.ConfigConsumer, null, function (_ref) {
|
|
90
92
|
var getPrefixCls = _ref.getPrefixCls;
|
|
91
93
|
return _react["default"].createElement(_modal["default"], Object.assign({
|
|
92
|
-
className: (0, _classnames["default"])('tntd-modal', className)
|
|
94
|
+
className: (0, _classnames["default"])('tntd-modal', innerScroll && 'modal-inner-scroll', className)
|
|
93
95
|
}, rest, {
|
|
94
96
|
title: !unUpperConverted ? (0, _utils.doUpperTitle)(title, upperCaseIgnore) : title,
|
|
95
97
|
ref: ref
|
package/lib/modal/modal.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"modal.js","sourceRoot":"","sources":["../../src/modal/modal.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;GAOG;AACH,+CAAyC;AAEzC,4DAAmC;AACnC,wDAAmD;AACnD,0DAAoD;AACpD,mDAAyC;AACzC,oCAAuC;AACvC,gDAA6B;AAC7B,uCAA6D;
|
|
1
|
+
{"version":3,"file":"modal.js","sourceRoot":"","sources":["../../src/modal/modal.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;GAOG;AACH,+CAAyC;AAEzC,4DAAmC;AACnC,wDAAmD;AACnD,0DAAoD;AACpD,mDAAyC;AACzC,oCAAuC;AACvC,gDAA6B;AAC7B,uCAA6D;AAmBhD,QAAA,KAAK,GAAG,IAAA,kBAAU,EAC7B,CAAC,EAAoF,EAAE,GAAG,EAAE,EAAE;QAA7F,EAAE,KAAK,EAAE,SAAS,EAAE,eAAe,EAAE,gBAAgB,EAAE,WAAW,GAAG,IAAI,OAAW,EAAN,IAAI,cAAlF,4EAAoF,CAAF;IACjF,OAAO,CACL,8BAAC,gCAAc,QACZ,CAAC,EAAE,YAAY,EAAE,EAAE,EAAE;QACpB,OAAO,CACL,8BAAC,eAAS,kBACR,SAAS,EAAE,IAAA,oBAAU,EAAC,YAAY,EAAE,WAAW,IAAI,oBAAoB,EAAE,SAAS,CAAC,IAC/E,IAAI,IACR,KAAK,EAAE,CAAC,gBAAgB,CAAC,CAAC,CAAC,IAAA,oBAAY,EAAC,KAAK,EAAE,eAAe,CAAC,CAAC,CAAC,CAAC,KAAK,EACvE,GAAG,EAAE,GAAG,IACR,CACH,CAAA;IACH,CAAC,CACc,CAClB,CAAA;AACH,CAAC,CACgB,CAAA;AAEnB,aAAK,CAAC,IAAI,GAAG,CAAC,KAAK,EAAE,EAAE;IACrB,OAAO,eAAS,CAAC,IAAI,iBACnB,IAAI,EAAE,8BAAC,cAAI,IAAC,IAAI,EAAC,aAAa,EAAC,KAAK,EAAC,QAAQ,GAAG,IAC7C,KAAK,EACR,CAAA;AACJ,CAAC,CAAA;AAED,aAAK,CAAC,OAAO,GAAG,CAAC,KAAK,EAAE,EAAE;IACxB,OAAO,eAAS,CAAC,OAAO,iBACtB,IAAI,EAAE,8BAAC,cAAI,IAAC,IAAI,EAAC,cAAc,EAAC,KAAK,EAAC,QAAQ,GAAG,IAC9C,KAAK,EACR,CAAA;AACJ,CAAC,CAAA;AAED,aAAK,CAAC,KAAK,GAAG,CAAC,KAAK,EAAE,EAAE;IACtB,OAAO,eAAS,CAAC,KAAK,iBACpB,IAAI,EAAE,8BAAC,cAAI,IAAC,IAAI,EAAC,cAAc,EAAC,KAAK,EAAC,QAAQ,GAAG,IAC9C,KAAK,EACR,CAAA;AACJ,CAAC,CAAA;AAED,aAAK,CAAC,OAAO,GAAG,CAAC,KAAK,EAAE,EAAE;IACxB,OAAO,eAAS,CAAC,OAAO,iBACtB,IAAI,EAAE,8BAAC,cAAI,IAAC,IAAI,EAAC,oBAAoB,EAAC,KAAK,EAAC,QAAQ,GAAG,IACpD,KAAK,EACR,CAAA;AACJ,CAAC,CAAA;AAED,aAAK,CAAC,IAAI,GAAG,CAAC,KAAK,EAAE,EAAE;IACrB,OAAO,eAAS,CAAC,IAAI,iBACnB,IAAI,EAAE,8BAAC,cAAI,IAAC,IAAI,EAAC,oBAAoB,EAAC,KAAK,EAAC,QAAQ,GAAG,IACpD,KAAK,EACR,CAAA;AACJ,CAAC,CAAA;AAED,aAAK,CAAC,OAAO,GAAG,CAAC,KAAK,EAAE,EAAE;IACxB,OAAO,eAAS,CAAC,OAAO,iBACtB,IAAI,EAAE,8BAAC,cAAI,IAAC,IAAI,EAAC,iBAAiB,EAAC,KAAK,EAAC,QAAQ,GAAG,IACjD,KAAK,EACR,CAAA;AACJ,CAAC,CAAA;AAED,aAAK,CAAC,UAAU,GAAG,eAAS,CAAC,UAAU,CAAA","sourcesContent":["/*\n * @Author: 周泽飞 zefei.zhou@tongdun.net\n * @Date: 2023-03-08 17:45:01\n * @LastEditors: 郑泳健\n * @LastEditTime: 2025-06-23 17:27:08\n * @FilePath: /tntd/packages/tntd/src/modal/modal.tsx\n * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE\n */\nimport React, { forwardRef } from 'react'\nimport type { ModalProps as AntdModalProps } from 'antd/lib/modal'\nimport classNames from 'classnames'\nimport { ConfigConsumer } from '../config-provider'\nimport { default as AntdModal } from 'antd/lib/modal'\nimport { default as Icon } from '../icon'\nimport { doUpperTitle } from '../utils'\nexport * from 'antd/lib/modal'\nexport { ActionButtonProps, ModalProps } from 'antd/lib/modal'\n\nexport interface CurModalProps extends AntdModalProps {\n upperCaseIgnore?: []\n unUpperConverted?: boolean\n innerScroll?: boolean;\n}\n\ninterface ModalComponent\n extends React.ForwardRefExoticComponent<CurModalProps & React.RefAttributes<AntdModal>> {\n info: typeof AntdModal.info\n success: typeof AntdModal.success\n error: typeof AntdModal.error\n warning: typeof AntdModal.warning\n warn: typeof AntdModal.warn\n confirm: typeof AntdModal.confirm\n destroyAll: typeof AntdModal.destroyAll\n}\n\nexport const Modal = forwardRef<AntdModal, CurModalProps>(\n ({ title, className, upperCaseIgnore, unUpperConverted, innerScroll = true, ...rest }, ref) => {\n return (\n <ConfigConsumer>\n {({ getPrefixCls }) => {\n return (\n <AntdModal\n className={classNames('tntd-modal', innerScroll && 'modal-inner-scroll', className)}\n {...rest}\n title={!unUpperConverted ? doUpperTitle(title, upperCaseIgnore) : title}\n ref={ref}\n />\n )\n }}\n </ConfigConsumer>\n )\n }\n) as ModalComponent\n\nModal.info = (props) => {\n return AntdModal.info({\n icon: <Icon type=\"info-circle\" theme=\"filled\" />,\n ...props,\n })\n}\n\nModal.success = (props) => {\n return AntdModal.success({\n icon: <Icon type=\"check-circle\" theme=\"filled\" />,\n ...props,\n })\n}\n\nModal.error = (props) => {\n return AntdModal.error({\n icon: <Icon type=\"close-circle\" theme=\"filled\" />,\n ...props,\n })\n}\n\nModal.warning = (props) => {\n return AntdModal.warning({\n icon: <Icon type=\"exclamation-circle\" theme=\"filled\" />,\n ...props,\n })\n}\n\nModal.warn = (props) => {\n return AntdModal.warn({\n icon: <Icon type=\"exclamation-circle\" theme=\"filled\" />,\n ...props,\n })\n}\n\nModal.confirm = (props) => {\n return AntdModal.confirm({\n icon: <Icon type=\"question-circle\" theme=\"filled\" />,\n ...props,\n })\n}\n\nModal.destroyAll = AntdModal.destroyAll\n"]}
|
package/lib/modal/modal.less
CHANGED
|
@@ -16,3 +16,19 @@
|
|
|
16
16
|
.@{modal-prefix-cls}-confirm-body-wrapper{
|
|
17
17
|
margin-top: @margin-xxs;
|
|
18
18
|
}
|
|
19
|
+
|
|
20
|
+
.modal-inner-scroll{
|
|
21
|
+
max-height: calc(100vh - 200px);
|
|
22
|
+
padding-bottom: 0;
|
|
23
|
+
overflow: hidden;
|
|
24
|
+
|
|
25
|
+
.ant-modal-body{
|
|
26
|
+
max-height: calc(100vh - 200px - 56px);
|
|
27
|
+
display: flex;
|
|
28
|
+
flex-flow: column;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.ant-modal-footer{
|
|
32
|
+
padding: 16px 24px 8px;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
@popover-prefix-cls: ~'@{ant-prefix}-popover';
|
|
2
|
+
|
|
3
|
+
.@{popover-prefix-cls} {
|
|
4
|
+
&-inner-content {
|
|
5
|
+
padding: @padding-base;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
&-message {
|
|
9
|
+
padding: 0 0 @padding-xs;
|
|
10
|
+
|
|
11
|
+
&>.anticon {
|
|
12
|
+
font-size: @font-size-lg;
|
|
13
|
+
top: 7px;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
&-message-title {
|
|
18
|
+
padding-top: @padding-xxs;
|
|
19
|
+
padding-bottom: @padding-xxs;
|
|
20
|
+
line-height: @line-height-base;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
&-buttons {
|
|
24
|
+
margin-bottom: 0;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.@{popover-prefix-cls}-arrow-hidden {
|
|
29
|
+
.@{popover-prefix-cls}-arrow {
|
|
30
|
+
display: none;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { PopconfirmProps } from 'antd/lib/popconfirm';
|
|
3
|
+
export * from 'antd/lib/popconfirm';
|
|
4
|
+
declare const Popconfirm: React.FC<PopconfirmProps & {
|
|
5
|
+
hiddenArrow?: boolean;
|
|
6
|
+
}>;
|
|
7
|
+
export default Popconfirm;
|
|
8
|
+
//# sourceMappingURL=popconfirm.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"popconfirm.d.ts","sourceRoot":"","sources":["../../src/popconfirm/popconfirm.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAA;AAMzD,cAAc,oBAAoB,CAAA;AAElC,QAAA,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,GAAG;IAAE,WAAW,CAAC,EAAE,OAAO,CAAA;CAAE,CAqCrE,CAAA;AAED,eAAe,UAAU,CAAA"}
|