@nutui/nutui-react-taro 3.0.19-cpp.14 → 3.0.19-cpp.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/dist/cjs/packages/configprovider/types.d.ts +1 -1
- package/dist/cjs/packages/dialog/dialog.js +33 -5
- package/dist/cjs/packages/dialog/style/dialog.scss +47 -0
- package/dist/cjs/packages/dialog/style/style.css +41 -0
- package/dist/cjs/packages/dialog/style/style.harmony.css +41 -0
- package/dist/cjs/packages/dialog/style-jmapp/dialog.scss +47 -0
- package/dist/cjs/packages/dialog/style-jmapp/style.css +41 -0
- package/dist/cjs/packages/dialog/style-jrkf/dialog.scss +47 -0
- package/dist/cjs/packages/dialog/style-jrkf/style.css +41 -0
- package/dist/cjs/packages/formitem/style/formitem.scss +1 -1
- package/dist/cjs/packages/formitem/style-jmapp/formitem.scss +1 -1
- package/dist/cjs/packages/formitem/style-jrkf/formitem.scss +1 -1
- package/dist/cjs/packages/menuitem/style/menuitem.scss +1 -1
- package/dist/cjs/packages/menuitem/style-jmapp/menuitem.scss +1 -1
- package/dist/cjs/packages/menuitem/style-jrkf/menuitem.scss +1 -1
- package/dist/cjs/packages/notify/style/notify.scss +1 -1
- package/dist/cjs/packages/notify/style-jmapp/notify.scss +1 -1
- package/dist/cjs/packages/notify/style-jrkf/notify.scss +1 -1
- package/dist/cjs/packages/popover/style/popover.scss +1 -1
- package/dist/cjs/packages/popover/style-jmapp/popover.scss +1 -1
- package/dist/cjs/packages/popover/style-jrkf/popover.scss +1 -1
- package/dist/cjs/packages/swipe/swipe.js +0 -2
- package/dist/cjs/types/spec/dialog/base.d.ts +2 -0
- package/dist/es/packages/configprovider/types.d.ts +1 -1
- package/dist/es/packages/dialog/dialog.js +33 -5
- package/dist/es/packages/dialog/style/dialog.scss +47 -0
- package/dist/es/packages/dialog/style/style.css +41 -0
- package/dist/es/packages/dialog/style/style.harmony.css +41 -0
- package/dist/es/packages/dialog/style-jmapp/dialog.scss +47 -0
- package/dist/es/packages/dialog/style-jmapp/style.css +41 -0
- package/dist/es/packages/dialog/style-jrkf/dialog.scss +47 -0
- package/dist/es/packages/dialog/style-jrkf/style.css +41 -0
- package/dist/es/packages/formitem/style/formitem.scss +1 -1
- package/dist/es/packages/formitem/style-jmapp/formitem.scss +1 -1
- package/dist/es/packages/formitem/style-jrkf/formitem.scss +1 -1
- package/dist/es/packages/menuitem/style/menuitem.scss +1 -1
- package/dist/es/packages/menuitem/style-jmapp/menuitem.scss +1 -1
- package/dist/es/packages/menuitem/style-jrkf/menuitem.scss +1 -1
- package/dist/es/packages/notify/style/notify.scss +1 -1
- package/dist/es/packages/notify/style-jmapp/notify.scss +1 -1
- package/dist/es/packages/notify/style-jrkf/notify.scss +1 -1
- package/dist/es/packages/popover/style/popover.scss +1 -1
- package/dist/es/packages/popover/style-jmapp/popover.scss +1 -1
- package/dist/es/packages/popover/style-jrkf/popover.scss +1 -1
- package/dist/es/packages/swipe/swipe.js +0 -2
- package/dist/es/types/spec/dialog/base.d.ts +2 -0
- package/dist/nutui.react.umd.js +33 -5
- package/dist/style-jmapp.css +1 -1
- package/dist/style-jmapp.scss +33 -33
- package/dist/style-jrkf.css +1 -1
- package/dist/style-jrkf.scss +30 -30
- package/dist/style.css +1 -1
- package/dist/style.scss +29 -29
- package/dist/styles/variables-jmapp.scss +9 -0
- package/dist/styles/variables-jrkf.scss +9 -0
- package/dist/styles/variables.scss +9 -0
- package/package.json +1 -1
|
@@ -121,6 +121,7 @@
|
|
|
121
121
|
display: flex;
|
|
122
122
|
justify-content: center;
|
|
123
123
|
margin-top: $dialog-vertical-footer-ok-margin-top;
|
|
124
|
+
background: transparent;
|
|
124
125
|
}
|
|
125
126
|
}
|
|
126
127
|
|
|
@@ -140,12 +141,36 @@
|
|
|
140
141
|
}
|
|
141
142
|
}
|
|
142
143
|
|
|
144
|
+
&-ok-container{
|
|
145
|
+
position: relative;
|
|
146
|
+
display: flex;
|
|
147
|
+
align-items: center;
|
|
148
|
+
width: 100%;
|
|
149
|
+
justify-content: space-around;
|
|
150
|
+
|
|
151
|
+
.nut-dialog-footer-ok-badge{
|
|
152
|
+
position: absolute;
|
|
153
|
+
right: 0;
|
|
154
|
+
top: $dialog-footer-badge-top;
|
|
155
|
+
display: flex;
|
|
156
|
+
align-items: center;
|
|
157
|
+
height: $dialog-footer-badge-height;
|
|
158
|
+
padding: $dialog-footer-badge-padding;
|
|
159
|
+
background: $dialog-footer-badge-bg-ok;
|
|
160
|
+
border-radius: $dialog-footer-badge-border-radius;
|
|
161
|
+
font-size: $dialog-footer-badge-fontsize;
|
|
162
|
+
color: $dialog-footer-badge-color-ok;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
}
|
|
166
|
+
|
|
143
167
|
&-ok {
|
|
144
168
|
max-width: $dialog-footer-ok-max-width;
|
|
145
169
|
font-weight: $font-weight-medium;
|
|
146
170
|
.nut-button-children {
|
|
147
171
|
font-weight: $font-weight-medium;
|
|
148
172
|
}
|
|
173
|
+
|
|
149
174
|
}
|
|
150
175
|
|
|
151
176
|
&-block {
|
|
@@ -153,6 +178,28 @@
|
|
|
153
178
|
min-width: 100%;
|
|
154
179
|
}
|
|
155
180
|
}
|
|
181
|
+
|
|
182
|
+
&-cancel-container{
|
|
183
|
+
position: relative;
|
|
184
|
+
display: flex;
|
|
185
|
+
align-items: center;
|
|
186
|
+
width: 100%;
|
|
187
|
+
justify-content: space-around;
|
|
188
|
+
|
|
189
|
+
.nut-dialog-footer-cancel-badge{
|
|
190
|
+
position: absolute;
|
|
191
|
+
right: $dialog-footer-cancel-margin-right;
|
|
192
|
+
top: $dialog-footer-badge-top;
|
|
193
|
+
display: flex;
|
|
194
|
+
align-items: center;
|
|
195
|
+
height: $dialog-footer-badge-height;
|
|
196
|
+
padding: $dialog-footer-badge-padding;
|
|
197
|
+
background: $dialog-footer-badge-bg-cancel;
|
|
198
|
+
border-radius: $dialog-footer-badge-border-radius;
|
|
199
|
+
font-size: $dialog-footer-badge-fontsize;
|
|
200
|
+
color: $dialog-footer-badge-color-cancel;
|
|
201
|
+
}
|
|
202
|
+
}
|
|
156
203
|
}
|
|
157
204
|
}
|
|
158
205
|
|
|
@@ -115,6 +115,7 @@
|
|
|
115
115
|
display: flex;
|
|
116
116
|
justify-content: center;
|
|
117
117
|
margin-top: var(--nutui-dialog-vertical-footer-ok-margin-top, 5px);
|
|
118
|
+
background: transparent;
|
|
118
119
|
}
|
|
119
120
|
.nut-dialog-footer .nut-button {
|
|
120
121
|
min-width: var(--nutui-dialog-footer-button-min-width, 117px);
|
|
@@ -130,6 +131,26 @@
|
|
|
130
131
|
.nut-dialog-footer-cancel.nut-dialog-footer-cancel .nut-button-children {
|
|
131
132
|
color: var(--nutui-button-default-color, var(--nutui-color-text));
|
|
132
133
|
}
|
|
134
|
+
.nut-dialog-footer-ok-container {
|
|
135
|
+
position: relative;
|
|
136
|
+
display: flex;
|
|
137
|
+
align-items: center;
|
|
138
|
+
width: 100%;
|
|
139
|
+
justify-content: space-around;
|
|
140
|
+
}
|
|
141
|
+
.nut-dialog-footer-ok-container .nut-dialog-footer-ok-badge {
|
|
142
|
+
position: absolute;
|
|
143
|
+
right: 0;
|
|
144
|
+
top: var(--nutui-dialog-footer-badge-top, -8px);
|
|
145
|
+
display: flex;
|
|
146
|
+
align-items: center;
|
|
147
|
+
height: var(--nutui-dialog-footer-badge-height, 14px);
|
|
148
|
+
padding: var(--nutui-dialog-footer-badge-padding, 0 3px);
|
|
149
|
+
background: var(--nutui-dialog-footer-badge-bg-ok, var(--nutui-color-danger-light));
|
|
150
|
+
border-radius: var(--nutui-dialog-footer-badge-border-radius, 2px 2px 0px 2px);
|
|
151
|
+
font-size: var(--nutui-dialog-footer-badge-fontsize, 10px);
|
|
152
|
+
color: var(--nutui-dialog-footer-badge-color-ok, var(--nutui-color-primary));
|
|
153
|
+
}
|
|
133
154
|
.nut-dialog-footer-ok {
|
|
134
155
|
max-width: var(--nutui-dialog-footer-ok-max-width, 128px);
|
|
135
156
|
font-weight: var(--nutui-font-weight-medium, 500);
|
|
@@ -140,6 +161,26 @@
|
|
|
140
161
|
.nut-dialog-footer-block.nut-button {
|
|
141
162
|
min-width: 100%;
|
|
142
163
|
}
|
|
164
|
+
.nut-dialog-footer-cancel-container {
|
|
165
|
+
position: relative;
|
|
166
|
+
display: flex;
|
|
167
|
+
align-items: center;
|
|
168
|
+
width: 100%;
|
|
169
|
+
justify-content: space-around;
|
|
170
|
+
}
|
|
171
|
+
.nut-dialog-footer-cancel-container .nut-dialog-footer-cancel-badge {
|
|
172
|
+
position: absolute;
|
|
173
|
+
right: var(--nutui-dialog-footer-cancel-margin-right, 12px);
|
|
174
|
+
top: var(--nutui-dialog-footer-badge-top, -8px);
|
|
175
|
+
display: flex;
|
|
176
|
+
align-items: center;
|
|
177
|
+
height: var(--nutui-dialog-footer-badge-height, 14px);
|
|
178
|
+
padding: var(--nutui-dialog-footer-badge-padding, 0 3px);
|
|
179
|
+
background: var(--nutui-dialog-footer-badge-bg-cancel, var(--nutui-color-danger-light));
|
|
180
|
+
border-radius: var(--nutui-dialog-footer-badge-border-radius, 2px 2px 0px 2px);
|
|
181
|
+
font-size: var(--nutui-dialog-footer-badge-fontsize, 10px);
|
|
182
|
+
color: var(--nutui-dialog-footer-badge-color-cancel, var(--nutui-color-primary));
|
|
183
|
+
}
|
|
143
184
|
|
|
144
185
|
[dir=rtl] .nut-dialog-outer,
|
|
145
186
|
.nut-rtl .nut-dialog-outer {
|
|
@@ -121,6 +121,7 @@
|
|
|
121
121
|
display: flex;
|
|
122
122
|
justify-content: center;
|
|
123
123
|
margin-top: $dialog-vertical-footer-ok-margin-top;
|
|
124
|
+
background: transparent;
|
|
124
125
|
}
|
|
125
126
|
}
|
|
126
127
|
|
|
@@ -140,12 +141,36 @@
|
|
|
140
141
|
}
|
|
141
142
|
}
|
|
142
143
|
|
|
144
|
+
&-ok-container{
|
|
145
|
+
position: relative;
|
|
146
|
+
display: flex;
|
|
147
|
+
align-items: center;
|
|
148
|
+
width: 100%;
|
|
149
|
+
justify-content: space-around;
|
|
150
|
+
|
|
151
|
+
.nut-dialog-footer-ok-badge{
|
|
152
|
+
position: absolute;
|
|
153
|
+
right: 0;
|
|
154
|
+
top: $dialog-footer-badge-top;
|
|
155
|
+
display: flex;
|
|
156
|
+
align-items: center;
|
|
157
|
+
height: $dialog-footer-badge-height;
|
|
158
|
+
padding: $dialog-footer-badge-padding;
|
|
159
|
+
background: $dialog-footer-badge-bg-ok;
|
|
160
|
+
border-radius: $dialog-footer-badge-border-radius;
|
|
161
|
+
font-size: $dialog-footer-badge-fontsize;
|
|
162
|
+
color: $dialog-footer-badge-color-ok;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
}
|
|
166
|
+
|
|
143
167
|
&-ok {
|
|
144
168
|
max-width: $dialog-footer-ok-max-width;
|
|
145
169
|
font-weight: $font-weight-medium;
|
|
146
170
|
.nut-button-children {
|
|
147
171
|
font-weight: $font-weight-medium;
|
|
148
172
|
}
|
|
173
|
+
|
|
149
174
|
}
|
|
150
175
|
|
|
151
176
|
&-block {
|
|
@@ -153,6 +178,28 @@
|
|
|
153
178
|
min-width: 100%;
|
|
154
179
|
}
|
|
155
180
|
}
|
|
181
|
+
|
|
182
|
+
&-cancel-container{
|
|
183
|
+
position: relative;
|
|
184
|
+
display: flex;
|
|
185
|
+
align-items: center;
|
|
186
|
+
width: 100%;
|
|
187
|
+
justify-content: space-around;
|
|
188
|
+
|
|
189
|
+
.nut-dialog-footer-cancel-badge{
|
|
190
|
+
position: absolute;
|
|
191
|
+
right: $dialog-footer-cancel-margin-right;
|
|
192
|
+
top: $dialog-footer-badge-top;
|
|
193
|
+
display: flex;
|
|
194
|
+
align-items: center;
|
|
195
|
+
height: $dialog-footer-badge-height;
|
|
196
|
+
padding: $dialog-footer-badge-padding;
|
|
197
|
+
background: $dialog-footer-badge-bg-cancel;
|
|
198
|
+
border-radius: $dialog-footer-badge-border-radius;
|
|
199
|
+
font-size: $dialog-footer-badge-fontsize;
|
|
200
|
+
color: $dialog-footer-badge-color-cancel;
|
|
201
|
+
}
|
|
202
|
+
}
|
|
156
203
|
}
|
|
157
204
|
}
|
|
158
205
|
|
|
@@ -115,6 +115,7 @@
|
|
|
115
115
|
display: flex;
|
|
116
116
|
justify-content: center;
|
|
117
117
|
margin-top: var(--nutui-dialog-vertical-footer-ok-margin-top, 5px);
|
|
118
|
+
background: transparent;
|
|
118
119
|
}
|
|
119
120
|
.nut-dialog-footer .nut-button {
|
|
120
121
|
min-width: var(--nutui-dialog-footer-button-min-width, 117px);
|
|
@@ -130,6 +131,26 @@
|
|
|
130
131
|
.nut-dialog-footer-cancel.nut-dialog-footer-cancel .nut-button-children {
|
|
131
132
|
color: var(--nutui-button-default-color, var(--nutui-color-text));
|
|
132
133
|
}
|
|
134
|
+
.nut-dialog-footer-ok-container {
|
|
135
|
+
position: relative;
|
|
136
|
+
display: flex;
|
|
137
|
+
align-items: center;
|
|
138
|
+
width: 100%;
|
|
139
|
+
justify-content: space-around;
|
|
140
|
+
}
|
|
141
|
+
.nut-dialog-footer-ok-container .nut-dialog-footer-ok-badge {
|
|
142
|
+
position: absolute;
|
|
143
|
+
right: 0;
|
|
144
|
+
top: var(--nutui-dialog-footer-badge-top, -8px);
|
|
145
|
+
display: flex;
|
|
146
|
+
align-items: center;
|
|
147
|
+
height: var(--nutui-dialog-footer-badge-height, 14px);
|
|
148
|
+
padding: var(--nutui-dialog-footer-badge-padding, 0 3px);
|
|
149
|
+
background: var(--nutui-dialog-footer-badge-bg-ok, var(--nutui-color-danger-light));
|
|
150
|
+
border-radius: var(--nutui-dialog-footer-badge-border-radius, 2px 2px 0px 2px);
|
|
151
|
+
font-size: var(--nutui-dialog-footer-badge-fontsize, 10px);
|
|
152
|
+
color: var(--nutui-dialog-footer-badge-color-ok, var(--nutui-color-primary, #ff6666));
|
|
153
|
+
}
|
|
133
154
|
.nut-dialog-footer-ok {
|
|
134
155
|
max-width: var(--nutui-dialog-footer-ok-max-width, 128px);
|
|
135
156
|
font-weight: var(--nutui-font-weight-medium, 500);
|
|
@@ -140,6 +161,26 @@
|
|
|
140
161
|
.nut-dialog-footer-block.nut-button {
|
|
141
162
|
min-width: 100%;
|
|
142
163
|
}
|
|
164
|
+
.nut-dialog-footer-cancel-container {
|
|
165
|
+
position: relative;
|
|
166
|
+
display: flex;
|
|
167
|
+
align-items: center;
|
|
168
|
+
width: 100%;
|
|
169
|
+
justify-content: space-around;
|
|
170
|
+
}
|
|
171
|
+
.nut-dialog-footer-cancel-container .nut-dialog-footer-cancel-badge {
|
|
172
|
+
position: absolute;
|
|
173
|
+
right: var(--nutui-dialog-footer-cancel-margin-right, 12px);
|
|
174
|
+
top: var(--nutui-dialog-footer-badge-top, -8px);
|
|
175
|
+
display: flex;
|
|
176
|
+
align-items: center;
|
|
177
|
+
height: var(--nutui-dialog-footer-badge-height, 14px);
|
|
178
|
+
padding: var(--nutui-dialog-footer-badge-padding, 0 3px);
|
|
179
|
+
background: var(--nutui-dialog-footer-badge-bg-cancel, var(--nutui-color-danger-light));
|
|
180
|
+
border-radius: var(--nutui-dialog-footer-badge-border-radius, 2px 2px 0px 2px);
|
|
181
|
+
font-size: var(--nutui-dialog-footer-badge-fontsize, 10px);
|
|
182
|
+
color: var(--nutui-dialog-footer-badge-color-cancel, var(--nutui-color-primary, #ff6666));
|
|
183
|
+
}
|
|
143
184
|
|
|
144
185
|
[dir=rtl] .nut-dialog-outer,
|
|
145
186
|
.nut-rtl .nut-dialog-outer {
|
|
@@ -261,8 +261,6 @@ export var Swipe = /*#__PURE__*/ forwardRef(function(props, instanceRef) {
|
|
|
261
261
|
}
|
|
262
262
|
close();
|
|
263
263
|
};
|
|
264
|
-
// start 关掉动效
|
|
265
|
-
// end 打开
|
|
266
264
|
document.addEventListener('touchstart', handler);
|
|
267
265
|
return function() {
|
|
268
266
|
document.removeEventListener('touchstart', handler);
|
package/dist/nutui.react.umd.js
CHANGED
|
@@ -15116,6 +15116,8 @@
|
|
|
15116
15116
|
content: "",
|
|
15117
15117
|
header: "",
|
|
15118
15118
|
footer: "",
|
|
15119
|
+
cancelBadge: "",
|
|
15120
|
+
confirmBadge: "",
|
|
15119
15121
|
confirmText: "",
|
|
15120
15122
|
cancelText: "",
|
|
15121
15123
|
hideConfirmButton: false,
|
|
@@ -15145,7 +15147,7 @@
|
|
|
15145
15147
|
}
|
|
15146
15148
|
});
|
|
15147
15149
|
var BaseDialog = function(props) {
|
|
15148
|
-
var _useParams = useParams(mergeProps(defaultProps$H, props)), _useParams_params = _useParams.params, id = _useParams_params.id, closeOnOverlayClick = _useParams_params.closeOnOverlayClick, confirmText = _useParams_params.confirmText, cancelText = _useParams_params.cancelText, children = _useParams_params.children, className = _useParams_params.className, closeIconPosition = _useParams_params.closeIconPosition, closeIcon = _useParams_params.closeIcon, content2 = _useParams_params.content, disableConfirmButton = _useParams_params.disableConfirmButton, footer = _useParams_params.footer, footerDirection = _useParams_params.footerDirection, header = _useParams_params.header, hideConfirmButton = _useParams_params.hideConfirmButton, hideCancelButton = _useParams_params.hideCancelButton, lockScroll = _useParams_params.lockScroll, overlay = _useParams_params.overlay, overlayStyle = _useParams_params.overlayStyle, overlayClassName = _useParams_params.overlayClassName, style = _useParams_params.style, title = _useParams_params.title, visible = _useParams_params.visible, zIndex = _useParams_params.zIndex, beforeCancel = _useParams_params.beforeCancel, beforeClose = _useParams_params.beforeClose, onClose = _useParams_params.onClose, onCancel = _useParams_params.onCancel, onConfirm = _useParams_params.onConfirm, onOverlayClick = _useParams_params.onOverlayClick, setParams = _useParams.setParams;
|
|
15150
|
+
var _useParams = useParams(mergeProps(defaultProps$H, props)), _useParams_params = _useParams.params, id = _useParams_params.id, closeOnOverlayClick = _useParams_params.closeOnOverlayClick, confirmText = _useParams_params.confirmText, cancelText = _useParams_params.cancelText, children = _useParams_params.children, className = _useParams_params.className, closeIconPosition = _useParams_params.closeIconPosition, closeIcon = _useParams_params.closeIcon, content2 = _useParams_params.content, disableConfirmButton = _useParams_params.disableConfirmButton, footer = _useParams_params.footer, footerDirection = _useParams_params.footerDirection, header = _useParams_params.header, cancelBadge = _useParams_params.cancelBadge, confirmBadge = _useParams_params.confirmBadge, hideConfirmButton = _useParams_params.hideConfirmButton, hideCancelButton = _useParams_params.hideCancelButton, lockScroll = _useParams_params.lockScroll, overlay = _useParams_params.overlay, overlayStyle = _useParams_params.overlayStyle, overlayClassName = _useParams_params.overlayClassName, style = _useParams_params.style, title = _useParams_params.title, visible = _useParams_params.visible, zIndex = _useParams_params.zIndex, beforeCancel = _useParams_params.beforeCancel, beforeClose = _useParams_params.beforeClose, onClose = _useParams_params.onClose, onCancel = _useParams_params.onCancel, onConfirm = _useParams_params.onConfirm, onOverlayClick = _useParams_params.onOverlayClick, setParams = _useParams.setParams;
|
|
15149
15151
|
var classPrefix2 = "nut-dialog";
|
|
15150
15152
|
var locale = useConfig().locale;
|
|
15151
15153
|
var _useState = _sliced_to_array(React.useState(false), 2), loading = _useState[0], setLoading = _useState[1];
|
|
@@ -15215,17 +15217,43 @@
|
|
|
15215
15217
|
}, cancelText || locale.cancel);
|
|
15216
15218
|
};
|
|
15217
15219
|
var renderCancel = function() {
|
|
15218
|
-
return !hideCancelButton && /* @__PURE__ */ React.createElement(
|
|
15220
|
+
return !hideCancelButton && /* @__PURE__ */ React.createElement(React.Fragment, null, cancelBadge ? /* @__PURE__ */ React.createElement(components.View, {
|
|
15221
|
+
className: "".concat(classPrefix2, "-footer-cancel-container")
|
|
15222
|
+
}, /* @__PURE__ */ React.createElement(Button, {
|
|
15219
15223
|
type: "default",
|
|
15220
15224
|
size: "large",
|
|
15221
15225
|
className: "".concat(classPrefix2, "-footer-cancel ").concat(btnClass),
|
|
15222
15226
|
onClick: function(e) {
|
|
15223
15227
|
return handleCancel(e);
|
|
15224
15228
|
}
|
|
15225
|
-
}, cancelText || locale.cancel)
|
|
15229
|
+
}, cancelText || locale.cancel), cancelBadge ? /* @__PURE__ */ React.createElement(components.View, {
|
|
15230
|
+
className: "".concat(classPrefix2, "-footer-cancel-badge")
|
|
15231
|
+
}, cancelBadge) : null) : /* @__PURE__ */ React.createElement(Button, {
|
|
15232
|
+
type: "default",
|
|
15233
|
+
size: "large",
|
|
15234
|
+
className: "".concat(classPrefix2, "-footer-cancel ").concat(btnClass),
|
|
15235
|
+
onClick: function(e) {
|
|
15236
|
+
return handleCancel(e);
|
|
15237
|
+
}
|
|
15238
|
+
}, cancelText || locale.cancel));
|
|
15226
15239
|
};
|
|
15227
15240
|
var renderConfirm = function() {
|
|
15228
|
-
return !hideConfirmButton && /* @__PURE__ */ React.createElement(
|
|
15241
|
+
return !hideConfirmButton && /* @__PURE__ */ React.createElement(React.Fragment, null, confirmBadge ? /* @__PURE__ */ React.createElement(components.View, {
|
|
15242
|
+
className: "".concat(classPrefix2, "-footer-ok-container")
|
|
15243
|
+
}, /* @__PURE__ */ React.createElement(Button, {
|
|
15244
|
+
type: "primary",
|
|
15245
|
+
size: "large",
|
|
15246
|
+
className: classNames("".concat(classPrefix2, "-footer-ok ").concat(btnClass), {
|
|
15247
|
+
disabled: disableConfirmButton
|
|
15248
|
+
}),
|
|
15249
|
+
disabled: disableConfirmButton,
|
|
15250
|
+
onClick: function(e) {
|
|
15251
|
+
return handleOk(e);
|
|
15252
|
+
},
|
|
15253
|
+
loading
|
|
15254
|
+
}, confirmText || locale.confirm), confirmBadge ? /* @__PURE__ */ React.createElement(components.View, {
|
|
15255
|
+
className: "".concat(classPrefix2, "-footer-ok-badge")
|
|
15256
|
+
}, confirmBadge) : null) : /* @__PURE__ */ React.createElement(Button, {
|
|
15229
15257
|
type: "primary",
|
|
15230
15258
|
size: "large",
|
|
15231
15259
|
className: classNames("".concat(classPrefix2, "-footer-ok ").concat(btnClass), {
|
|
@@ -15236,7 +15264,7 @@
|
|
|
15236
15264
|
return handleOk(e);
|
|
15237
15265
|
},
|
|
15238
15266
|
loading
|
|
15239
|
-
}, confirmText || locale.confirm);
|
|
15267
|
+
}, confirmText || locale.confirm));
|
|
15240
15268
|
};
|
|
15241
15269
|
return footer || /* @__PURE__ */ React.createElement(React.Fragment, null, footerDirection === "vertical" ? /* @__PURE__ */ React.createElement(React.Fragment, null, renderConfirm(), renderCancelOfVertical()) : /* @__PURE__ */ React.createElement(React.Fragment, null, renderCancel(), renderConfirm()));
|
|
15242
15270
|
};
|