@liuzengwei/element-ui 2.15.5-xn.63 → 2.15.5-xn.65
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/CHANGELOG.en-US.md +7 -0
- package/CHANGELOG.zh-CN.md +7 -0
- package/lib/cascader.js +11 -0
- package/lib/element-ui.common.js +244 -94
- package/lib/index.js +1 -1
- package/lib/message-box.js +232 -93
- package/lib/theme-chalk/area-loading.css +1 -1
- package/lib/theme-chalk/autocomplete.css +1 -1
- package/lib/theme-chalk/backtop.css +1 -1
- package/lib/theme-chalk/badge.css +1 -1
- package/lib/theme-chalk/breadcrumb.css +1 -1
- package/lib/theme-chalk/button.css +1 -1
- package/lib/theme-chalk/calendar.css +1 -1
- package/lib/theme-chalk/cascader-panel.css +1 -1
- package/lib/theme-chalk/cascader.css +1 -1
- package/lib/theme-chalk/checkbox.css +1 -1
- package/lib/theme-chalk/collapse.css +1 -1
- package/lib/theme-chalk/color-picker.css +1 -1
- package/lib/theme-chalk/date-picker.css +1 -1
- package/lib/theme-chalk/dialog.css +1 -1
- package/lib/theme-chalk/dropdown.css +1 -1
- package/lib/theme-chalk/file-preview.css +1 -1
- package/lib/theme-chalk/index.css +1 -1
- package/lib/theme-chalk/input-number.css +1 -1
- package/lib/theme-chalk/input.css +1 -1
- package/lib/theme-chalk/link.css +1 -1
- package/lib/theme-chalk/loading.css +1 -1
- package/lib/theme-chalk/menu.css +1 -1
- package/lib/theme-chalk/message-box.css +1 -1
- package/lib/theme-chalk/option.css +1 -1
- package/lib/theme-chalk/pagination.css +1 -1
- package/lib/theme-chalk/progress.css +1 -1
- package/lib/theme-chalk/radio-button.css +1 -1
- package/lib/theme-chalk/radio.css +1 -1
- package/lib/theme-chalk/reset.css +1 -1
- package/lib/theme-chalk/segmented.css +1 -1
- package/lib/theme-chalk/select-dropdown.css +1 -1
- package/lib/theme-chalk/select.css +1 -1
- package/lib/theme-chalk/selectable-tag.css +1 -1
- package/lib/theme-chalk/slider.css +1 -1
- package/lib/theme-chalk/step.css +1 -1
- package/lib/theme-chalk/switch.css +1 -1
- package/lib/theme-chalk/table-column.css +1 -1
- package/lib/theme-chalk/table.css +1 -1
- package/lib/theme-chalk/tabs.css +1 -1
- package/lib/theme-chalk/tag.css +1 -1
- package/lib/theme-chalk/text.css +1 -1
- package/lib/theme-chalk/time-picker.css +1 -1
- package/lib/theme-chalk/time-select.css +1 -1
- package/lib/theme-chalk/timeline-item.css +1 -1
- package/lib/theme-chalk/transfer.css +1 -1
- package/lib/theme-chalk/tree.css +1 -1
- package/lib/theme-chalk/upload.css +1 -1
- package/package.json +1 -1
- package/packages/cascader/src/cascader.vue +3 -0
- package/packages/message-box/src/main.js +7 -1
- package/packages/message-box/src/main.vue +102 -2
- package/packages/theme-chalk/lib/area-loading.css +1 -1
- package/packages/theme-chalk/lib/autocomplete.css +1 -1
- package/packages/theme-chalk/lib/backtop.css +1 -1
- package/packages/theme-chalk/lib/badge.css +1 -1
- package/packages/theme-chalk/lib/breadcrumb.css +1 -1
- package/packages/theme-chalk/lib/button.css +1 -1
- package/packages/theme-chalk/lib/calendar.css +1 -1
- package/packages/theme-chalk/lib/cascader-panel.css +1 -1
- package/packages/theme-chalk/lib/cascader.css +1 -1
- package/packages/theme-chalk/lib/checkbox.css +1 -1
- package/packages/theme-chalk/lib/collapse.css +1 -1
- package/packages/theme-chalk/lib/color-picker.css +1 -1
- package/packages/theme-chalk/lib/date-picker.css +1 -1
- package/packages/theme-chalk/lib/dialog.css +1 -1
- package/packages/theme-chalk/lib/dropdown.css +1 -1
- package/packages/theme-chalk/lib/file-preview.css +1 -1
- package/packages/theme-chalk/lib/index.css +1 -1
- package/packages/theme-chalk/lib/input-number.css +1 -1
- package/packages/theme-chalk/lib/input.css +1 -1
- package/packages/theme-chalk/lib/link.css +1 -1
- package/packages/theme-chalk/lib/loading.css +1 -1
- package/packages/theme-chalk/lib/menu.css +1 -1
- package/packages/theme-chalk/lib/message-box.css +1 -1
- package/packages/theme-chalk/lib/option.css +1 -1
- package/packages/theme-chalk/lib/pagination.css +1 -1
- package/packages/theme-chalk/lib/progress.css +1 -1
- package/packages/theme-chalk/lib/radio-button.css +1 -1
- package/packages/theme-chalk/lib/radio.css +1 -1
- package/packages/theme-chalk/lib/reset.css +1 -1
- package/packages/theme-chalk/lib/segmented.css +1 -1
- package/packages/theme-chalk/lib/select-dropdown.css +1 -1
- package/packages/theme-chalk/lib/select.css +1 -1
- package/packages/theme-chalk/lib/selectable-tag.css +1 -1
- package/packages/theme-chalk/lib/slider.css +1 -1
- package/packages/theme-chalk/lib/step.css +1 -1
- package/packages/theme-chalk/lib/switch.css +1 -1
- package/packages/theme-chalk/lib/table-column.css +1 -1
- package/packages/theme-chalk/lib/table.css +1 -1
- package/packages/theme-chalk/lib/tabs.css +1 -1
- package/packages/theme-chalk/lib/tag.css +1 -1
- package/packages/theme-chalk/lib/text.css +1 -1
- package/packages/theme-chalk/lib/time-picker.css +1 -1
- package/packages/theme-chalk/lib/time-select.css +1 -1
- package/packages/theme-chalk/lib/timeline-item.css +1 -1
- package/packages/theme-chalk/lib/transfer.css +1 -1
- package/packages/theme-chalk/lib/tree.css +1 -1
- package/packages/theme-chalk/lib/upload.css +1 -1
- package/packages/theme-chalk/src/cascader.scss +6 -0
- package/packages/theme-chalk/src/common/var.scss +1 -1
- package/packages/theme-chalk/src/input-number.scss +2 -0
- package/packages/theme-chalk/src/input.scss +2 -2
- package/packages/theme-chalk/src/message-box.scss +17 -0
- package/packages/theme-chalk/src/select.scss +1 -1
- package/src/index.js +1 -1
- package/types/message-box.d.ts +27 -0
package/CHANGELOG.en-US.md
CHANGED
package/CHANGELOG.zh-CN.md
CHANGED
package/lib/cascader.js
CHANGED
|
@@ -506,6 +506,14 @@ var render = function() {
|
|
|
506
506
|
],
|
|
507
507
|
2
|
|
508
508
|
)
|
|
509
|
+
: _vm._e(),
|
|
510
|
+
_vm.$slots.footer
|
|
511
|
+
? _c(
|
|
512
|
+
"div",
|
|
513
|
+
{ staticClass: "el-cascader__footer" },
|
|
514
|
+
[_vm._t("footer")],
|
|
515
|
+
2
|
|
516
|
+
)
|
|
509
517
|
: _vm._e()
|
|
510
518
|
],
|
|
511
519
|
1
|
|
@@ -695,6 +703,9 @@ var debounce_default = /*#__PURE__*/__webpack_require__.n(debounce_);
|
|
|
695
703
|
//
|
|
696
704
|
//
|
|
697
705
|
//
|
|
706
|
+
//
|
|
707
|
+
//
|
|
708
|
+
//
|
|
698
709
|
|
|
699
710
|
|
|
700
711
|
|
package/lib/element-ui.common.js
CHANGED
|
@@ -22776,89 +22776,109 @@ var mainvue_type_template_id_6b29b012_render = function() {
|
|
|
22776
22776
|
: _vm._e()
|
|
22777
22777
|
])
|
|
22778
22778
|
: _vm._e(),
|
|
22779
|
-
_c(
|
|
22780
|
-
|
|
22781
|
-
|
|
22782
|
-
|
|
22783
|
-
|
|
22784
|
-
|
|
22785
|
-
|
|
22786
|
-
|
|
22787
|
-
|
|
22788
|
-
|
|
22789
|
-
|
|
22790
|
-
|
|
22791
|
-
|
|
22792
|
-
|
|
22793
|
-
|
|
22794
|
-
|
|
22795
|
-
|
|
22796
|
-
|
|
22797
|
-
|
|
22798
|
-
|
|
22799
|
-
|
|
22800
|
-
|
|
22801
|
-
|
|
22802
|
-
|
|
22803
|
-
|
|
22804
|
-
|
|
22805
|
-
|
|
22806
|
-
|
|
22807
|
-
|
|
22808
|
-
|
|
22809
|
-
|
|
22810
|
-
|
|
22811
|
-
|
|
22812
|
-
|
|
22813
|
-
},
|
|
22814
|
-
[
|
|
22815
|
-
_c("el-input", {
|
|
22816
|
-
ref: "input",
|
|
22817
|
-
attrs: {
|
|
22818
|
-
type: _vm.inputType,
|
|
22819
|
-
placeholder: _vm.inputPlaceholder
|
|
22820
|
-
},
|
|
22821
|
-
nativeOn: {
|
|
22822
|
-
keydown: function($event) {
|
|
22823
|
-
if (
|
|
22824
|
-
!("button" in $event) &&
|
|
22825
|
-
_vm._k(
|
|
22826
|
-
$event.keyCode,
|
|
22827
|
-
"enter",
|
|
22828
|
-
13,
|
|
22829
|
-
$event.key,
|
|
22830
|
-
"Enter"
|
|
22831
|
-
)
|
|
22832
|
-
) {
|
|
22833
|
-
return null
|
|
22834
|
-
}
|
|
22835
|
-
return _vm.handleInputEnter($event)
|
|
22779
|
+
_c(
|
|
22780
|
+
"div",
|
|
22781
|
+
{ staticClass: "el-message-box__content" },
|
|
22782
|
+
[
|
|
22783
|
+
_c("div", { staticClass: "el-message-box__container" }, [
|
|
22784
|
+
_vm.icon && !_vm.center && _vm.message !== ""
|
|
22785
|
+
? _c("div", { class: ["el-message-box__status", _vm.icon] })
|
|
22786
|
+
: _vm._e(),
|
|
22787
|
+
_vm.message !== ""
|
|
22788
|
+
? _c(
|
|
22789
|
+
"div",
|
|
22790
|
+
{ staticClass: "el-message-box__message" },
|
|
22791
|
+
[
|
|
22792
|
+
_vm._t("default", [
|
|
22793
|
+
!_vm.dangerouslyUseHTMLString
|
|
22794
|
+
? _c("p", [_vm._v(_vm._s(_vm.message))])
|
|
22795
|
+
: _c("p", {
|
|
22796
|
+
domProps: { innerHTML: _vm._s(_vm.message) }
|
|
22797
|
+
})
|
|
22798
|
+
])
|
|
22799
|
+
],
|
|
22800
|
+
2
|
|
22801
|
+
)
|
|
22802
|
+
: _vm._e()
|
|
22803
|
+
]),
|
|
22804
|
+
_c(
|
|
22805
|
+
"div",
|
|
22806
|
+
{
|
|
22807
|
+
directives: [
|
|
22808
|
+
{
|
|
22809
|
+
name: "show",
|
|
22810
|
+
rawName: "v-show",
|
|
22811
|
+
value: _vm.showInput,
|
|
22812
|
+
expression: "showInput"
|
|
22836
22813
|
}
|
|
22837
|
-
|
|
22838
|
-
|
|
22839
|
-
|
|
22840
|
-
|
|
22841
|
-
|
|
22814
|
+
],
|
|
22815
|
+
staticClass: "el-message-box__input"
|
|
22816
|
+
},
|
|
22817
|
+
[
|
|
22818
|
+
_c("el-input", {
|
|
22819
|
+
ref: "input",
|
|
22820
|
+
attrs: {
|
|
22821
|
+
type: _vm.inputType,
|
|
22822
|
+
placeholder: _vm.inputPlaceholder
|
|
22842
22823
|
},
|
|
22843
|
-
|
|
22844
|
-
|
|
22845
|
-
|
|
22846
|
-
|
|
22847
|
-
|
|
22848
|
-
|
|
22849
|
-
|
|
22850
|
-
|
|
22851
|
-
|
|
22852
|
-
|
|
22853
|
-
|
|
22824
|
+
nativeOn: {
|
|
22825
|
+
keydown: function($event) {
|
|
22826
|
+
if (
|
|
22827
|
+
!("button" in $event) &&
|
|
22828
|
+
_vm._k(
|
|
22829
|
+
$event.keyCode,
|
|
22830
|
+
"enter",
|
|
22831
|
+
13,
|
|
22832
|
+
$event.key,
|
|
22833
|
+
"Enter"
|
|
22834
|
+
)
|
|
22835
|
+
) {
|
|
22836
|
+
return null
|
|
22837
|
+
}
|
|
22838
|
+
return _vm.handleInputEnter($event)
|
|
22839
|
+
}
|
|
22840
|
+
},
|
|
22841
|
+
model: {
|
|
22842
|
+
value: _vm.inputValue,
|
|
22843
|
+
callback: function($$v) {
|
|
22844
|
+
_vm.inputValue = $$v
|
|
22845
|
+
},
|
|
22846
|
+
expression: "inputValue"
|
|
22854
22847
|
}
|
|
22855
|
-
},
|
|
22856
|
-
|
|
22857
|
-
|
|
22858
|
-
|
|
22859
|
-
|
|
22860
|
-
|
|
22861
|
-
|
|
22848
|
+
}),
|
|
22849
|
+
_c(
|
|
22850
|
+
"div",
|
|
22851
|
+
{
|
|
22852
|
+
staticClass: "el-message-box__errormsg",
|
|
22853
|
+
style: {
|
|
22854
|
+
visibility: !!_vm.editorErrorMessage
|
|
22855
|
+
? "visible"
|
|
22856
|
+
: "hidden"
|
|
22857
|
+
}
|
|
22858
|
+
},
|
|
22859
|
+
[_vm._v(_vm._s(_vm.editorErrorMessage))]
|
|
22860
|
+
)
|
|
22861
|
+
],
|
|
22862
|
+
1
|
|
22863
|
+
),
|
|
22864
|
+
_c("transition", { attrs: { name: "el-message-fade" } }, [
|
|
22865
|
+
_vm.showErrorTip
|
|
22866
|
+
? _c(
|
|
22867
|
+
"div",
|
|
22868
|
+
{
|
|
22869
|
+
staticClass: "el-message-box__error-tip",
|
|
22870
|
+
attrs: { role: "alert" }
|
|
22871
|
+
},
|
|
22872
|
+
[
|
|
22873
|
+
_c("i", { staticClass: "el-icon-warning" }),
|
|
22874
|
+
_c("span", [_vm._v(_vm._s(_vm.errorMessage))])
|
|
22875
|
+
]
|
|
22876
|
+
)
|
|
22877
|
+
: _vm._e()
|
|
22878
|
+
])
|
|
22879
|
+
],
|
|
22880
|
+
1
|
|
22881
|
+
),
|
|
22862
22882
|
_c(
|
|
22863
22883
|
"div",
|
|
22864
22884
|
{ staticClass: "el-message-box__btns" },
|
|
@@ -22923,6 +22943,7 @@ var mainvue_type_template_id_6b29b012_render = function() {
|
|
|
22923
22943
|
class: [_vm.confirmButtonClasses],
|
|
22924
22944
|
attrs: {
|
|
22925
22945
|
loading: _vm.confirmButtonLoading,
|
|
22946
|
+
disabled: _vm.confirmButtonLoading,
|
|
22926
22947
|
round: _vm.roundButton,
|
|
22927
22948
|
size: "small"
|
|
22928
22949
|
},
|
|
@@ -22953,7 +22974,9 @@ var mainvue_type_template_id_6b29b012_render = function() {
|
|
|
22953
22974
|
_vm._v(
|
|
22954
22975
|
"\n " +
|
|
22955
22976
|
_vm._s(
|
|
22956
|
-
_vm.
|
|
22977
|
+
(_vm.confirmButtonLoading &&
|
|
22978
|
+
_vm.confirmButtonLoadingText) ||
|
|
22979
|
+
_vm.confirmButtonText ||
|
|
22957
22980
|
_vm.t("el.messagebox.confirm")
|
|
22958
22981
|
) +
|
|
22959
22982
|
"\n "
|
|
@@ -23064,6 +23087,16 @@ var aria_dialog_default = /*#__PURE__*/__webpack_require__.n(aria_dialog_);
|
|
|
23064
23087
|
//
|
|
23065
23088
|
//
|
|
23066
23089
|
//
|
|
23090
|
+
//
|
|
23091
|
+
//
|
|
23092
|
+
//
|
|
23093
|
+
//
|
|
23094
|
+
//
|
|
23095
|
+
//
|
|
23096
|
+
//
|
|
23097
|
+
//
|
|
23098
|
+
//
|
|
23099
|
+
//
|
|
23067
23100
|
|
|
23068
23101
|
|
|
23069
23102
|
|
|
@@ -23174,9 +23207,28 @@ var typeMap = {
|
|
|
23174
23207
|
}
|
|
23175
23208
|
},
|
|
23176
23209
|
handleAction: function handleAction(action) {
|
|
23210
|
+
var _this3 = this;
|
|
23211
|
+
|
|
23177
23212
|
if (this.$type === 'prompt' && action === 'confirm' && !this.validate()) {
|
|
23178
23213
|
return;
|
|
23179
23214
|
}
|
|
23215
|
+
|
|
23216
|
+
// 新增: 执行 beforeConfirm
|
|
23217
|
+
if (action === 'confirm' && typeof this.beforeConfirm === 'function') {
|
|
23218
|
+
this.executeBeforeConfirm().then(function (canContinue) {
|
|
23219
|
+
if (canContinue === false) {
|
|
23220
|
+
return; // 阻止关闭
|
|
23221
|
+
}
|
|
23222
|
+
_this3.proceedWithAction(action);
|
|
23223
|
+
}).catch(function (error) {
|
|
23224
|
+
_this3.handleConfirmError(error);
|
|
23225
|
+
});
|
|
23226
|
+
return;
|
|
23227
|
+
}
|
|
23228
|
+
|
|
23229
|
+
this.proceedWithAction(action);
|
|
23230
|
+
},
|
|
23231
|
+
proceedWithAction: function proceedWithAction(action) {
|
|
23180
23232
|
this.action = action;
|
|
23181
23233
|
if (typeof this.beforeClose === 'function') {
|
|
23182
23234
|
this.close = this.getSafeClose();
|
|
@@ -23223,6 +23275,78 @@ var typeMap = {
|
|
|
23223
23275
|
},
|
|
23224
23276
|
handleClose: function handleClose() {
|
|
23225
23277
|
this.handleAction('close');
|
|
23278
|
+
},
|
|
23279
|
+
|
|
23280
|
+
|
|
23281
|
+
// 新增: 显示错误提示
|
|
23282
|
+
showError: function showError(message) {
|
|
23283
|
+
var _this4 = this;
|
|
23284
|
+
|
|
23285
|
+
this.errorMessage = message;
|
|
23286
|
+
this.showErrorTip = true;
|
|
23287
|
+
if (this.errorMessageDuration) {
|
|
23288
|
+
setTimeout(function () {
|
|
23289
|
+
_this4.clearError();
|
|
23290
|
+
}, this.errorMessageDuration);
|
|
23291
|
+
}
|
|
23292
|
+
},
|
|
23293
|
+
|
|
23294
|
+
|
|
23295
|
+
// 新增: 清除错误提示
|
|
23296
|
+
clearError: function clearError() {
|
|
23297
|
+
this.showErrorTip = false;
|
|
23298
|
+
this.errorMessage = '';
|
|
23299
|
+
},
|
|
23300
|
+
|
|
23301
|
+
|
|
23302
|
+
// 新增: 手动设置确认按钮 loading
|
|
23303
|
+
setConfirmLoading: function setConfirmLoading(loading, text) {
|
|
23304
|
+
this.confirmButtonLoading = loading;
|
|
23305
|
+
if (text !== undefined) {
|
|
23306
|
+
this.confirmButtonText = text;
|
|
23307
|
+
}
|
|
23308
|
+
},
|
|
23309
|
+
|
|
23310
|
+
|
|
23311
|
+
// 新增: 执行 beforeConfirm
|
|
23312
|
+
executeBeforeConfirm: function executeBeforeConfirm() {
|
|
23313
|
+
var _this5 = this;
|
|
23314
|
+
|
|
23315
|
+
this.clearError();
|
|
23316
|
+
this.originalConfirmButtonText = this.confirmButtonText;
|
|
23317
|
+
|
|
23318
|
+
// 开启 loading
|
|
23319
|
+
this.confirmButtonLoading = true;
|
|
23320
|
+
if (this.confirmButtonLoadingText) {
|
|
23321
|
+
this.confirmButtonText = this.confirmButtonLoadingText;
|
|
23322
|
+
}
|
|
23323
|
+
|
|
23324
|
+
return Promise.resolve(this.beforeConfirm(this)).then(function (result) {
|
|
23325
|
+
// 恢复状态
|
|
23326
|
+
_this5.confirmButtonLoading = false;
|
|
23327
|
+
_this5.confirmButtonText = _this5.originalConfirmButtonText;
|
|
23328
|
+
return result;
|
|
23329
|
+
}).catch(function (error) {
|
|
23330
|
+
// 恢复状态
|
|
23331
|
+
_this5.confirmButtonLoading = false;
|
|
23332
|
+
_this5.confirmButtonText = _this5.originalConfirmButtonText;
|
|
23333
|
+
throw error;
|
|
23334
|
+
});
|
|
23335
|
+
},
|
|
23336
|
+
|
|
23337
|
+
|
|
23338
|
+
// 新增: 处理确认错误
|
|
23339
|
+
handleConfirmError: function handleConfirmError(error) {
|
|
23340
|
+
if (this.keepOpenOnError !== false) {
|
|
23341
|
+
// 保持弹框打开
|
|
23342
|
+
if (this.showErrorMessage !== false && error && error.message) {
|
|
23343
|
+
this.showError(error.message);
|
|
23344
|
+
}
|
|
23345
|
+
} else {
|
|
23346
|
+
// 关闭弹框并 reject
|
|
23347
|
+
this.action = 'error';
|
|
23348
|
+
this.doClose();
|
|
23349
|
+
}
|
|
23226
23350
|
}
|
|
23227
23351
|
},
|
|
23228
23352
|
|
|
@@ -23230,24 +23354,24 @@ var typeMap = {
|
|
|
23230
23354
|
inputValue: {
|
|
23231
23355
|
immediate: true,
|
|
23232
23356
|
handler: function handler(val) {
|
|
23233
|
-
var
|
|
23357
|
+
var _this6 = this;
|
|
23234
23358
|
|
|
23235
23359
|
this.$nextTick(function (_) {
|
|
23236
|
-
if (
|
|
23237
|
-
|
|
23360
|
+
if (_this6.$type === 'prompt' && val !== null) {
|
|
23361
|
+
_this6.validate();
|
|
23238
23362
|
}
|
|
23239
23363
|
});
|
|
23240
23364
|
}
|
|
23241
23365
|
},
|
|
23242
23366
|
|
|
23243
23367
|
visible: function visible(val) {
|
|
23244
|
-
var
|
|
23368
|
+
var _this7 = this;
|
|
23245
23369
|
|
|
23246
23370
|
if (val) {
|
|
23247
23371
|
this.uid++;
|
|
23248
23372
|
if (this.$type === 'alert' || this.$type === 'confirm') {
|
|
23249
23373
|
this.$nextTick(function () {
|
|
23250
|
-
|
|
23374
|
+
_this7.$refs.confirm.$el.focus();
|
|
23251
23375
|
});
|
|
23252
23376
|
}
|
|
23253
23377
|
this.focusAfterClosed = document.activeElement;
|
|
@@ -23258,8 +23382,8 @@ var typeMap = {
|
|
|
23258
23382
|
if (this.$type !== 'prompt') return;
|
|
23259
23383
|
if (val) {
|
|
23260
23384
|
setTimeout(function () {
|
|
23261
|
-
if (
|
|
23262
|
-
|
|
23385
|
+
if (_this7.$refs.input && _this7.$refs.input.$el) {
|
|
23386
|
+
_this7.getInputElement().focus();
|
|
23263
23387
|
}
|
|
23264
23388
|
}, 500);
|
|
23265
23389
|
} else {
|
|
@@ -23270,11 +23394,11 @@ var typeMap = {
|
|
|
23270
23394
|
},
|
|
23271
23395
|
|
|
23272
23396
|
mounted: function mounted() {
|
|
23273
|
-
var
|
|
23397
|
+
var _this8 = this;
|
|
23274
23398
|
|
|
23275
23399
|
this.$nextTick(function () {
|
|
23276
|
-
if (
|
|
23277
|
-
window.addEventListener('hashchange',
|
|
23400
|
+
if (_this8.closeOnHashChange) {
|
|
23401
|
+
window.addEventListener('hashchange', _this8.close);
|
|
23278
23402
|
}
|
|
23279
23403
|
});
|
|
23280
23404
|
},
|
|
@@ -23316,7 +23440,16 @@ var typeMap = {
|
|
|
23316
23440
|
dangerouslyUseHTMLString: false,
|
|
23317
23441
|
focusAfterClosed: null,
|
|
23318
23442
|
isOnComposition: false,
|
|
23319
|
-
distinguishCancelAndClose: false
|
|
23443
|
+
distinguishCancelAndClose: false,
|
|
23444
|
+
// 新增: 异步确认相关字段
|
|
23445
|
+
confirmButtonLoadingText: '',
|
|
23446
|
+
originalConfirmButtonText: '',
|
|
23447
|
+
errorMessage: '',
|
|
23448
|
+
showErrorTip: false,
|
|
23449
|
+
beforeConfirm: null,
|
|
23450
|
+
keepOpenOnError: true,
|
|
23451
|
+
showErrorMessage: false,
|
|
23452
|
+
errorMessageDuration: 3000
|
|
23320
23453
|
};
|
|
23321
23454
|
}
|
|
23322
23455
|
});
|
|
@@ -23383,7 +23516,13 @@ var main_defaults = {
|
|
|
23383
23516
|
dangerouslyUseHTMLString: false,
|
|
23384
23517
|
center: false,
|
|
23385
23518
|
roundButton: false,
|
|
23386
|
-
distinguishCancelAndClose: false
|
|
23519
|
+
distinguishCancelAndClose: false,
|
|
23520
|
+
// 新增: 异步确认配置
|
|
23521
|
+
beforeConfirm: null,
|
|
23522
|
+
confirmButtonLoadingText: '',
|
|
23523
|
+
keepOpenOnError: true,
|
|
23524
|
+
showErrorMessage: true,
|
|
23525
|
+
errorMessageDuration: 3000
|
|
23387
23526
|
};
|
|
23388
23527
|
|
|
23389
23528
|
|
|
@@ -34469,6 +34608,14 @@ var cascadervue_type_template_id_032537a6_render = function() {
|
|
|
34469
34608
|
],
|
|
34470
34609
|
2
|
|
34471
34610
|
)
|
|
34611
|
+
: _vm._e(),
|
|
34612
|
+
_vm.$slots.footer
|
|
34613
|
+
? _c(
|
|
34614
|
+
"div",
|
|
34615
|
+
{ staticClass: "el-cascader__footer" },
|
|
34616
|
+
[_vm._t("footer")],
|
|
34617
|
+
2
|
|
34618
|
+
)
|
|
34472
34619
|
: _vm._e()
|
|
34473
34620
|
],
|
|
34474
34621
|
1
|
|
@@ -34607,6 +34754,9 @@ var aria_utils_default = /*#__PURE__*/__webpack_require__.n(aria_utils_);
|
|
|
34607
34754
|
//
|
|
34608
34755
|
//
|
|
34609
34756
|
//
|
|
34757
|
+
//
|
|
34758
|
+
//
|
|
34759
|
+
//
|
|
34610
34760
|
|
|
34611
34761
|
|
|
34612
34762
|
|
|
@@ -53161,7 +53311,7 @@ if (typeof window !== 'undefined' && window.Vue) {
|
|
|
53161
53311
|
}
|
|
53162
53312
|
|
|
53163
53313
|
/* harmony default export */ var src_0 = __webpack_exports__["default"] = ({
|
|
53164
|
-
version: '2.15.5-xn.
|
|
53314
|
+
version: '2.15.5-xn.65',
|
|
53165
53315
|
locale: lib_locale_default.a.use,
|
|
53166
53316
|
i18n: lib_locale_default.a.i18n,
|
|
53167
53317
|
install: src_install,
|