el-plus 0.0.51 → 0.0.53
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.md +12 -0
- package/dist/index.css +1 -1
- package/dist/index.full.js +107 -54
- package/dist/index.full.min.js +1 -1
- package/dist/index.full.min.js.map +1 -1
- package/dist/index.full.min.mjs +1 -1
- package/dist/index.full.min.mjs.map +1 -1
- package/dist/index.full.mjs +107 -55
- package/es/components/attachment/src/attachment.d.ts +4 -3
- package/es/components/attachment/src/attachment.mjs +1 -2
- package/es/components/attachment/src/attachment.mjs.map +1 -1
- package/es/components/attachment/src/attachment.vue2.mjs +2 -2
- package/es/components/attachment/src/attachment.vue2.mjs.map +1 -1
- package/es/components/attachment/src/use-attachment.mjs +2 -0
- package/es/components/attachment/src/use-attachment.mjs.map +1 -1
- package/es/components/header/index.d.ts +90 -0
- package/es/components/header/src/header.d.ts +9 -0
- package/es/components/header/src/header.mjs +10 -0
- package/es/components/header/src/header.mjs.map +1 -1
- package/es/components/header/src/header.vue.d.ts +38 -0
- package/es/components/header/src/header.vue2.mjs +4 -3
- package/es/components/header/src/header.vue2.mjs.map +1 -1
- package/es/hooks/dialog/use-confirm-dialog.d.ts +12 -0
- package/es/hooks/dialog/use-confirm-dialog.mjs +47 -0
- package/es/hooks/dialog/use-confirm-dialog.mjs.map +1 -0
- package/es/hooks/dialog/use-dialog.d.ts +2 -0
- package/es/hooks/dialog/use-dialog.mjs +28 -32
- package/es/hooks/dialog/use-dialog.mjs.map +1 -1
- package/es/hooks/dialog/use-form-dialog.d.ts +1 -0
- package/es/hooks/dialog/use-form-dialog.mjs +4 -3
- package/es/hooks/dialog/use-form-dialog.mjs.map +1 -1
- package/es/hooks/index.d.ts +1 -0
- package/es/hooks/index.mjs +1 -0
- package/es/hooks/index.mjs.map +1 -1
- package/es/index.mjs +1 -0
- package/es/index.mjs.map +1 -1
- package/es/package.json.mjs +1 -1
- package/lib/components/attachment/src/attachment.d.ts +4 -3
- package/lib/components/attachment/src/attachment.js +1 -2
- package/lib/components/attachment/src/attachment.js.map +1 -1
- package/lib/components/attachment/src/attachment.vue2.js +2 -2
- package/lib/components/attachment/src/attachment.vue2.js.map +1 -1
- package/lib/components/attachment/src/use-attachment.js +2 -0
- package/lib/components/attachment/src/use-attachment.js.map +1 -1
- package/lib/components/header/index.d.ts +90 -0
- package/lib/components/header/src/header.d.ts +9 -0
- package/lib/components/header/src/header.js +10 -0
- package/lib/components/header/src/header.js.map +1 -1
- package/lib/components/header/src/header.vue.d.ts +38 -0
- package/lib/components/header/src/header.vue2.js +3 -2
- package/lib/components/header/src/header.vue2.js.map +1 -1
- package/lib/hooks/dialog/use-confirm-dialog.d.ts +12 -0
- package/lib/hooks/dialog/use-confirm-dialog.js +49 -0
- package/lib/hooks/dialog/use-confirm-dialog.js.map +1 -0
- package/lib/hooks/dialog/use-dialog.d.ts +2 -0
- package/lib/hooks/dialog/use-dialog.js +27 -31
- package/lib/hooks/dialog/use-dialog.js.map +1 -1
- package/lib/hooks/dialog/use-form-dialog.d.ts +1 -0
- package/lib/hooks/dialog/use-form-dialog.js +4 -3
- package/lib/hooks/dialog/use-form-dialog.js.map +1 -1
- package/lib/hooks/index.d.ts +1 -0
- package/lib/hooks/index.js +2 -0
- package/lib/hooks/index.js.map +1 -1
- package/lib/index.js +2 -0
- package/lib/index.js.map +1 -1
- package/lib/package.json.js +1 -1
- package/package.json +1 -1
- package/theme-chalk/dialog.css +1 -1
- package/theme-chalk/index.css +1 -1
- package/theme-chalk/src/dialog.scss +7 -0
package/CHANGELOG.md
CHANGED
package/dist/index.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.fade-enter-active,.fade-leave-active{transition:opacity .3s ease}.fade-enter-from,.fade-leave-to{opacity:0}body{-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}.ep-form{position:relative}.ep-form__fold{bottom:23px;color:#367ef5;cursor:pointer;font-size:14px;position:absolute;right:0;text-align:center;width:70px}.ep-form__fold:hover{text-decoration:underline}.ep-form.is-fold{padding-right:70px}.ep-form .el-form-item--small{margin-bottom:18px}.ep-form .el-form-item--small .el-form-item__label{display:block;height:32px;line-height:32px;overflow:hidden;padding-left:18px;padding-right:6px;text-overflow:ellipsis;white-space:nowrap}.ep-form .el-form-item--small .el-form-item__content{font-size:13px;line-height:32px}.ep-form .el-form-item--small .el-form-item__content .el-input{font-size:13px;height:32px}.ep-form .el-form-item--small .el-form-item__content .el-textarea__inner{font-size:13px!important}.ep-form .el-form-item--small .el-form-item__content .el-select__wrapper{font-size:13px;line-height:32px;min-height:32px}.ep-form .el-form-item--small .el-form-item__content .el-date-editor .el-range-input{font-size:13px}.ep-table__action-buttons{white-space:nowrap}.ep-table .table-column-link .el-form-item{display:inline-block}.ep-table .table-column-link .el-form-item .el-form-item__label{display:none}.ep-table .el-table{font-size:13px}.ep-table .el-table .el-table__cell .is-edit{cursor:pointer}.ep-table .el-table .el-table__cell .is-edit:hover{color:#409eff}.ep-table .el-table .el-table__cell .is-edit .el-icon{vertical-align:-2px}.ep-table .el-table .cell{line-height:30px}.ep-table .el-table thead tr th{height:42px}.ep-table .el-table td,.ep-table .el-table th{padding:3px 0}.ep-table .el-form-item__error{position:unset;text-align:left}.ep-table .el-form-item{margin-bottom:0}.ep-table .el-form-item .el-form-item__label{padding:0}.ep-table .el-pagination{margin-top:12px;--el-pagination-font-size:13px}.ep-table .el-pagination .el-select{--el-select-font-size:13px}.ep-table .el-pagination .el-select .el-select__wrapper{font-size:13px}.ep-button{height:auto;padding:9px 15px}.ep-button.el-button--text{padding:0}.ep-button.el-button+.el-button{margin-left:10px}.ep-search-list-page #middle{overflow:hidden}.ep-search-list-page__middle-left{float:left}.ep-search-list-page__middle-left>.el-button{margin:16px 0}.ep-search-list-page__middle-right{float:right}.ep-search-list-page__middle-right .el-button{margin:16px 0}.ep-title__header{line-height:50px;overflow:hidden}.ep-title__title{float:left;font-size:15px;font-weight:500}.ep-title__toggle{color:#409eff;cursor:pointer;display:inline-block;font-size:14px;font-weight:400;margin-left:10px;white-space:nowrap}.ep-title__toggle .el-icon{transition:transform .3s;vertical-align:-2px}.ep-title.is-expanded .ep-title__toggle .el-icon{transform:rotate(-180deg)}.ep-title__buttons{float:right}.ep-title__content{overflow:hidden;transition:max-height .3s ease-in-out}.ep-header{display:flex;margin-bottom:10px}.ep-header .el-page-header .el-page-header__left{margin-right:-10px;margin-top:4px}.ep-template-promise{position:relative;z-index:8888888888888888}.ep-dialog{padding:20px 25px 40px}.ep-dialog .el-dialog__headerbtn{height:56px}.ep-dialog .el-dialog__headerbtn .el-dialog__close{transform:scale(1.3)}.ep-dialog .el-dialog__header{text-align:center}.ep-dialog .el-dialog__header .el-dialog__title{color:#505050;font-size:16px;font-weight:600;line-height:24px;margin:4px}.ep-dialog .el-dialog__body{padding:25px 0 0}.ep-dialog__footer{padding:14px 0 0}.ep-dialog__footer button{font-size:12px}.ep-choose-dialog__selected-count{color:#409eff;float:left;font-size:16px;line-height:32px}.ep-custom-column__dialog .el-dialog__body{text-align:center}.ep-custom-column__dialog .el-transfer{display:inline-block}.ep-custom-column__dialog .el-transfer-panel__footer{border-bottom:0;height:0}.ep-custom-column__dialog .el-transfer-panel{overflow:visible}.ep-custom-column__operate{position:absolute;right:-100%;top:50%;transform:translate(calc(25% - 52px),32px)}.ep-link{font-size:13px}.ep-uni-vue{background:#fff}.ep-uni-vue__skeleton .el-skeleton__item{margin-top:10px}.ep-attachment__dialog--normal{background:none;position:static!important}.ep-attachment__dialog--normal .el-overlay-dialog{position:static}.ep-attachment__dialog--normal .el-overlay-dialog .el-dialog{margin:0;padding:0;width:auto!important}.ep-attachment__dialog--normal .el-overlay-dialog .el-dialog .el-dialog__header{display:none}.ep-attachment__dialog--normal .el-overlay-dialog .el-dialog .el-dialog__body{padding:0}.ep-attachment__handler{height:auto;padding:9px 15px}.ep-attachment__handler.el-button--text{padding:0}
|
|
1
|
+
.fade-enter-active,.fade-leave-active{transition:opacity .3s ease}.fade-enter-from,.fade-leave-to{opacity:0}body{-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}.ep-form{position:relative}.ep-form__fold{bottom:23px;color:#367ef5;cursor:pointer;font-size:14px;position:absolute;right:0;text-align:center;width:70px}.ep-form__fold:hover{text-decoration:underline}.ep-form.is-fold{padding-right:70px}.ep-form .el-form-item--small{margin-bottom:18px}.ep-form .el-form-item--small .el-form-item__label{display:block;height:32px;line-height:32px;overflow:hidden;padding-left:18px;padding-right:6px;text-overflow:ellipsis;white-space:nowrap}.ep-form .el-form-item--small .el-form-item__content{font-size:13px;line-height:32px}.ep-form .el-form-item--small .el-form-item__content .el-input{font-size:13px;height:32px}.ep-form .el-form-item--small .el-form-item__content .el-textarea__inner{font-size:13px!important}.ep-form .el-form-item--small .el-form-item__content .el-select__wrapper{font-size:13px;line-height:32px;min-height:32px}.ep-form .el-form-item--small .el-form-item__content .el-date-editor .el-range-input{font-size:13px}.ep-table__action-buttons{white-space:nowrap}.ep-table .table-column-link .el-form-item{display:inline-block}.ep-table .table-column-link .el-form-item .el-form-item__label{display:none}.ep-table .el-table{font-size:13px}.ep-table .el-table .el-table__cell .is-edit{cursor:pointer}.ep-table .el-table .el-table__cell .is-edit:hover{color:#409eff}.ep-table .el-table .el-table__cell .is-edit .el-icon{vertical-align:-2px}.ep-table .el-table .cell{line-height:30px}.ep-table .el-table thead tr th{height:42px}.ep-table .el-table td,.ep-table .el-table th{padding:3px 0}.ep-table .el-form-item__error{position:unset;text-align:left}.ep-table .el-form-item{margin-bottom:0}.ep-table .el-form-item .el-form-item__label{padding:0}.ep-table .el-pagination{margin-top:12px;--el-pagination-font-size:13px}.ep-table .el-pagination .el-select{--el-select-font-size:13px}.ep-table .el-pagination .el-select .el-select__wrapper{font-size:13px}.ep-button{height:auto;padding:9px 15px}.ep-button.el-button--text{padding:0}.ep-button.el-button+.el-button{margin-left:10px}.ep-search-list-page #middle{overflow:hidden}.ep-search-list-page__middle-left{float:left}.ep-search-list-page__middle-left>.el-button{margin:16px 0}.ep-search-list-page__middle-right{float:right}.ep-search-list-page__middle-right .el-button{margin:16px 0}.ep-title__header{line-height:50px;overflow:hidden}.ep-title__title{float:left;font-size:15px;font-weight:500}.ep-title__toggle{color:#409eff;cursor:pointer;display:inline-block;font-size:14px;font-weight:400;margin-left:10px;white-space:nowrap}.ep-title__toggle .el-icon{transition:transform .3s;vertical-align:-2px}.ep-title.is-expanded .ep-title__toggle .el-icon{transform:rotate(-180deg)}.ep-title__buttons{float:right}.ep-title__content{overflow:hidden;transition:max-height .3s ease-in-out}.ep-header{display:flex;margin-bottom:10px}.ep-header .el-page-header .el-page-header__left{margin-right:-10px;margin-top:4px}.ep-template-promise{position:relative;z-index:8888888888888888}.ep-dialog{padding:20px 25px 40px}.ep-dialog .el-dialog__headerbtn{height:56px}.ep-dialog .el-dialog__headerbtn .el-dialog__close{transform:scale(1.3)}.ep-dialog .el-dialog__header{text-align:center}.ep-dialog .el-dialog__header .el-dialog__title{color:#505050;font-size:16px;font-weight:600;line-height:24px;margin:4px}.ep-dialog .el-dialog__body{padding:25px 0 0}.ep-dialog__footer{padding:14px 0 0}.ep-dialog__footer button{font-size:12px}.ep-choose-dialog__selected-count{color:#409eff;float:left;font-size:16px;line-height:32px}.ep-confirm-dialog{padding-bottom:20px}.ep-confirm-dialog .ep-dialog__footer{padding-top:0}.ep-custom-column__dialog .el-dialog__body{text-align:center}.ep-custom-column__dialog .el-transfer{display:inline-block}.ep-custom-column__dialog .el-transfer-panel__footer{border-bottom:0;height:0}.ep-custom-column__dialog .el-transfer-panel{overflow:visible}.ep-custom-column__operate{position:absolute;right:-100%;top:50%;transform:translate(calc(25% - 52px),32px)}.ep-link{font-size:13px}.ep-uni-vue{background:#fff}.ep-uni-vue__skeleton .el-skeleton__item{margin-top:10px}.ep-attachment__dialog--normal{background:none;position:static!important}.ep-attachment__dialog--normal .el-overlay-dialog{position:static}.ep-attachment__dialog--normal .el-overlay-dialog .el-dialog{margin:0;padding:0;width:auto!important}.ep-attachment__dialog--normal .el-overlay-dialog .el-dialog .el-dialog__header{display:none}.ep-attachment__dialog--normal .el-overlay-dialog .el-dialog .el-dialog__body{padding:0}.ep-attachment__handler{height:auto;padding:9px 15px}.ep-attachment__handler.el-button--text{padding:0}
|
package/dist/index.full.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! ElPlus v0.0.
|
|
1
|
+
/*! ElPlus v0.0.53 */
|
|
2
2
|
|
|
3
3
|
(function (global, factory) {
|
|
4
4
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('vue'), require('element-plus'), require('@vue/shared'), require('axios'), require('js-cookie'), require('defu'), require('qs'), require('element-plus/es/components/table/src/table/defaults'), require('@element-plus/icons-vue'), require('mitt'), require('lodash-unified'), require('@vueuse/core'), require('vue-router'), require('js-base64'), require('vue2'), require('vue-router3')) :
|
|
@@ -719,7 +719,7 @@
|
|
|
719
719
|
}
|
|
720
720
|
}
|
|
721
721
|
|
|
722
|
-
const bem$
|
|
722
|
+
const bem$5 = createNameSpace("button");
|
|
723
723
|
var Buttons = /* @__PURE__ */ vue.defineComponent({
|
|
724
724
|
name: "EpButtons",
|
|
725
725
|
directives: {
|
|
@@ -771,7 +771,7 @@
|
|
|
771
771
|
return () => vue.createVNode(vue.Fragment, null, [customList.value.map((item) => {
|
|
772
772
|
const permissionArr = item.permission?.split(":") || [];
|
|
773
773
|
return vue.withDirectives(vue.createVNode(vue.resolveComponent("el-button"), vue.mergeProps({
|
|
774
|
-
"class": [bem$
|
|
774
|
+
"class": [bem$5.b(), prepareClassNames()],
|
|
775
775
|
"style": prepareStyles(),
|
|
776
776
|
"key": item.prop || item.name
|
|
777
777
|
}, {
|
|
@@ -1032,7 +1032,7 @@
|
|
|
1032
1032
|
};
|
|
1033
1033
|
const expandFormItemPropsKeys = Object.keys(expandFormItemProps);
|
|
1034
1034
|
|
|
1035
|
-
const bem$
|
|
1035
|
+
const bem$4 = createNameSpace("form-item");
|
|
1036
1036
|
var EpFormItem = /* @__PURE__ */ vue.defineComponent({
|
|
1037
1037
|
name: "EpFormItem",
|
|
1038
1038
|
inheritAttrs: false,
|
|
@@ -1054,7 +1054,7 @@
|
|
|
1054
1054
|
} = props;
|
|
1055
1055
|
return () => {
|
|
1056
1056
|
return vue.createVNode(elementPlus.ElFormItem, vue.mergeProps({
|
|
1057
|
-
"class": [bem$
|
|
1057
|
+
"class": [bem$4.b(), prepareClassNames()],
|
|
1058
1058
|
"style": prepareStyles()
|
|
1059
1059
|
}, {
|
|
1060
1060
|
...prepareProps(formItemProps2, [...expandFormItemPropsKeys]),
|
|
@@ -1328,7 +1328,7 @@
|
|
|
1328
1328
|
|
|
1329
1329
|
const EpInput = withInstall(_sfc_main$a);
|
|
1330
1330
|
|
|
1331
|
-
function _isSlot
|
|
1331
|
+
function _isSlot(s) {
|
|
1332
1332
|
return typeof s === "function" || Object.prototype.toString.call(s) === "[object Object]" && !vue.isVNode(s);
|
|
1333
1333
|
}
|
|
1334
1334
|
const useTemplatePromise = (options = {}) => {
|
|
@@ -1402,7 +1402,7 @@
|
|
|
1402
1402
|
});
|
|
1403
1403
|
if (transition) return () => {
|
|
1404
1404
|
let _slot;
|
|
1405
|
-
return vue.createVNode(vue.Transition, transition, _isSlot
|
|
1405
|
+
return vue.createVNode(vue.Transition, transition, _isSlot(_slot = renderList()) ? _slot : {
|
|
1406
1406
|
default: () => [_slot]
|
|
1407
1407
|
});
|
|
1408
1408
|
};
|
|
@@ -1412,10 +1412,7 @@
|
|
|
1412
1412
|
return vue.markRaw(component);
|
|
1413
1413
|
};
|
|
1414
1414
|
|
|
1415
|
-
|
|
1416
|
-
return typeof s === "function" || Object.prototype.toString.call(s) === "[object Object]" && !vue.isVNode(s);
|
|
1417
|
-
}
|
|
1418
|
-
const bem$2 = createNameSpace("dialog");
|
|
1415
|
+
const bem$3 = createNameSpace("dialog");
|
|
1419
1416
|
const useDialog = (options = {}) => {
|
|
1420
1417
|
const {
|
|
1421
1418
|
t
|
|
@@ -1426,7 +1423,9 @@
|
|
|
1426
1423
|
render,
|
|
1427
1424
|
destroyOnClose,
|
|
1428
1425
|
onConfirm,
|
|
1426
|
+
confirmText,
|
|
1429
1427
|
onCancel,
|
|
1428
|
+
cancelText,
|
|
1430
1429
|
showFooter = true,
|
|
1431
1430
|
...dialogProps
|
|
1432
1431
|
} = options;
|
|
@@ -1446,38 +1445,35 @@
|
|
|
1446
1445
|
};
|
|
1447
1446
|
const slots = {};
|
|
1448
1447
|
if (showFooter) {
|
|
1449
|
-
slots.footer = () => {
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
} else {
|
|
1459
|
-
reject("cancel");
|
|
1460
|
-
}
|
|
1448
|
+
slots.footer = () => vue.createVNode("div", {
|
|
1449
|
+
"class": bem$3.e("footer")
|
|
1450
|
+
}, [scopedSlots.footerPrepend?.(promiseOptions), vue.createVNode(elementPlus.ElButton, {
|
|
1451
|
+
"size": "default",
|
|
1452
|
+
"onClick": () => {
|
|
1453
|
+
if (onCancel) {
|
|
1454
|
+
onCancel(reject);
|
|
1455
|
+
} else {
|
|
1456
|
+
reject("cancel");
|
|
1461
1457
|
}
|
|
1462
|
-
}
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
}
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
};
|
|
1458
|
+
}
|
|
1459
|
+
}, {
|
|
1460
|
+
default: () => [cancelText || t("ep.dialog.cancel")]
|
|
1461
|
+
}), scopedSlots.footerInner?.(promiseOptions), vue.createVNode(elementPlus.ElButton, {
|
|
1462
|
+
"type": "primary",
|
|
1463
|
+
"onClick": async () => {
|
|
1464
|
+
if (onConfirm) {
|
|
1465
|
+
onConfirm(resolve);
|
|
1466
|
+
} else {
|
|
1467
|
+
resolve("confirm");
|
|
1468
|
+
}
|
|
1469
|
+
},
|
|
1470
|
+
"loading": isResolving
|
|
1471
|
+
}, {
|
|
1472
|
+
default: () => [confirmText || t("ep.dialog.confirm")]
|
|
1473
|
+
}), scopedSlots.footerAppend?.(promiseOptions)]);
|
|
1478
1474
|
}
|
|
1479
1475
|
return vue.createVNode(elementPlus.ElDialog, vue.mergeProps({
|
|
1480
|
-
"class": bem$
|
|
1476
|
+
"class": bem$3.b(),
|
|
1481
1477
|
"modelValue": true
|
|
1482
1478
|
}, {
|
|
1483
1479
|
closeOnClickModal: false,
|
|
@@ -1970,11 +1966,12 @@
|
|
|
1970
1966
|
const tableEmits = [...elementPlus.ElTable.emits, "single-selection-change"];
|
|
1971
1967
|
const tableEmitsKeys = tableEmits;
|
|
1972
1968
|
|
|
1973
|
-
const bem$
|
|
1969
|
+
const bem$2 = createNameSpace("form-dialog");
|
|
1974
1970
|
const useFormDialog = (options = {}) => {
|
|
1975
1971
|
const {
|
|
1976
1972
|
dialogProps,
|
|
1977
1973
|
title,
|
|
1974
|
+
width = "80%",
|
|
1978
1975
|
...formProps
|
|
1979
1976
|
} = options;
|
|
1980
1977
|
const formRef = vue.ref();
|
|
@@ -1987,10 +1984,10 @@
|
|
|
1987
1984
|
}
|
|
1988
1985
|
};
|
|
1989
1986
|
return useDialog({
|
|
1990
|
-
class: bem$
|
|
1991
|
-
width
|
|
1987
|
+
class: bem$2.b(),
|
|
1988
|
+
width,
|
|
1992
1989
|
title,
|
|
1993
|
-
render: (
|
|
1990
|
+
render: () => {
|
|
1994
1991
|
return vue.createVNode(EpForm, vue.mergeProps({
|
|
1995
1992
|
"ref": formRef,
|
|
1996
1993
|
"modelValue": formData,
|
|
@@ -2003,7 +2000,7 @@
|
|
|
2003
2000
|
},
|
|
2004
2001
|
onConfirm: async (resolve) => {
|
|
2005
2002
|
await formRef.value.validate();
|
|
2006
|
-
resolve(JSON.parse(JSON.stringify(formData)));
|
|
2003
|
+
resolve(isUseComFormData ? JSON.parse(JSON.stringify(formData)) : formData);
|
|
2007
2004
|
resetForm();
|
|
2008
2005
|
},
|
|
2009
2006
|
onCancel: async (resolve) => {
|
|
@@ -3207,6 +3204,16 @@
|
|
|
3207
3204
|
isShowAttachmentButton: {
|
|
3208
3205
|
type: Boolean,
|
|
3209
3206
|
default: false
|
|
3207
|
+
},
|
|
3208
|
+
// 附件列表
|
|
3209
|
+
fileList: {
|
|
3210
|
+
type: Array,
|
|
3211
|
+
default: () => []
|
|
3212
|
+
},
|
|
3213
|
+
attachmentProps: {
|
|
3214
|
+
type: Object,
|
|
3215
|
+
default: () => {
|
|
3216
|
+
}
|
|
3210
3217
|
}
|
|
3211
3218
|
};
|
|
3212
3219
|
const headerEmits = {};
|
|
@@ -3371,7 +3378,7 @@
|
|
|
3371
3378
|
},
|
|
3372
3379
|
// 页面模式
|
|
3373
3380
|
mode: {
|
|
3374
|
-
|
|
3381
|
+
type: String
|
|
3375
3382
|
},
|
|
3376
3383
|
// 展示模式
|
|
3377
3384
|
openType: {
|
|
@@ -3627,6 +3634,8 @@
|
|
|
3627
3634
|
const onConfirm = async (resolve) => {
|
|
3628
3635
|
await tableRef.value?.validate();
|
|
3629
3636
|
resolve(data.value);
|
|
3637
|
+
toBeConfirmData = [];
|
|
3638
|
+
toBeDeleteData = {};
|
|
3630
3639
|
};
|
|
3631
3640
|
const onCancel = (resolve) => {
|
|
3632
3641
|
if (toBeConfirmData.length) {
|
|
@@ -3704,7 +3713,7 @@
|
|
|
3704
3713
|
return (_ctx, _cache) => {
|
|
3705
3714
|
const _component_EpButtons = vue.resolveComponent("EpButtons");
|
|
3706
3715
|
return vue.openBlock(), vue.createElementBlock(vue.Fragment, null, [
|
|
3707
|
-
|
|
3716
|
+
props.isShowOpenDialogButton ? (vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElButton), {
|
|
3708
3717
|
key: 0,
|
|
3709
3718
|
type: "primary",
|
|
3710
3719
|
plain: "",
|
|
@@ -3720,7 +3729,7 @@
|
|
|
3720
3729
|
vue.createVNode(vue.unref(AttachmentDialog), null, {
|
|
3721
3730
|
default: vue.withCtx(() => [
|
|
3722
3731
|
vue.createElementVNode("div", { style: { "margin-bottom": "10px", "text-align": "right" } }, [
|
|
3723
|
-
|
|
3732
|
+
props.openType === "dialog" ? (vue.openBlock(), vue.createBlock(_component_EpButtons, {
|
|
3724
3733
|
key: 0,
|
|
3725
3734
|
type: "primary",
|
|
3726
3735
|
list: [
|
|
@@ -3779,10 +3788,11 @@
|
|
|
3779
3788
|
_: 1
|
|
3780
3789
|
}, 8, ["onBack"])) : vue.createCommentVNode("", true),
|
|
3781
3790
|
vue.createVNode(vue.unref(EpButtons), { list: vue.unref(buttons) }, null, 8, ["list"]),
|
|
3782
|
-
props.isShowAttachmentButton ? (vue.openBlock(), vue.createBlock(vue.unref(EpAttachment), {
|
|
3791
|
+
props.isShowAttachmentButton ? (vue.openBlock(), vue.createBlock(vue.unref(EpAttachment), vue.mergeProps({
|
|
3783
3792
|
key: 1,
|
|
3793
|
+
"model-value": props.fileList,
|
|
3784
3794
|
"is-show-open-dialog-button": ""
|
|
3785
|
-
})) : vue.createCommentVNode("", true)
|
|
3795
|
+
}, props.attachmentProps), null, 16, ["model-value"])) : vue.createCommentVNode("", true)
|
|
3786
3796
|
], 6);
|
|
3787
3797
|
};
|
|
3788
3798
|
}
|
|
@@ -4167,7 +4177,7 @@
|
|
|
4167
4177
|
EpUniVue
|
|
4168
4178
|
];
|
|
4169
4179
|
|
|
4170
|
-
var version = "0.0.
|
|
4180
|
+
var version = "0.0.53";
|
|
4171
4181
|
|
|
4172
4182
|
var globalProperties = {
|
|
4173
4183
|
install(app) {
|
|
@@ -4180,7 +4190,7 @@
|
|
|
4180
4190
|
globalProperties: globalProperties
|
|
4181
4191
|
});
|
|
4182
4192
|
|
|
4183
|
-
const bem = createNameSpace("choose-dialog");
|
|
4193
|
+
const bem$1 = createNameSpace("choose-dialog");
|
|
4184
4194
|
const useChooseDialog = (options = {}) => {
|
|
4185
4195
|
const {
|
|
4186
4196
|
t
|
|
@@ -4197,7 +4207,7 @@
|
|
|
4197
4207
|
if (!showSingleSelectionCol) {
|
|
4198
4208
|
scopedSlots.footerPrepend = () => {
|
|
4199
4209
|
return vue.createVNode("span", {
|
|
4200
|
-
"class": bem.e("selected-count")
|
|
4210
|
+
"class": bem$1.e("selected-count")
|
|
4201
4211
|
}, [t("ep.chooseDialog.selected"), selections.value.length, t("ep.chooseDialog.unit")]);
|
|
4202
4212
|
};
|
|
4203
4213
|
}
|
|
@@ -4207,7 +4217,7 @@
|
|
|
4207
4217
|
};
|
|
4208
4218
|
let searchListPageRef;
|
|
4209
4219
|
return useDialog({
|
|
4210
|
-
class: bem.b(),
|
|
4220
|
+
class: bem$1.b(),
|
|
4211
4221
|
width: "80%",
|
|
4212
4222
|
showFooter: !showSingleSelectionCol,
|
|
4213
4223
|
scopedSlots,
|
|
@@ -4254,6 +4264,48 @@
|
|
|
4254
4264
|
});
|
|
4255
4265
|
};
|
|
4256
4266
|
|
|
4267
|
+
const bem = createNameSpace("confirm-dialog");
|
|
4268
|
+
const useConfirmDialog = (options = {}) => {
|
|
4269
|
+
const {
|
|
4270
|
+
dialogProps = {},
|
|
4271
|
+
width = "50%",
|
|
4272
|
+
title,
|
|
4273
|
+
/** TextareaProps */
|
|
4274
|
+
rows = 5,
|
|
4275
|
+
maxlength = 500,
|
|
4276
|
+
minlength,
|
|
4277
|
+
showWordLimit = true,
|
|
4278
|
+
/** TextareaFormItemProps */
|
|
4279
|
+
rules,
|
|
4280
|
+
required = true,
|
|
4281
|
+
placeholder
|
|
4282
|
+
} = options;
|
|
4283
|
+
const formItemList = [{
|
|
4284
|
+
rules,
|
|
4285
|
+
prop: "value",
|
|
4286
|
+
label: " ",
|
|
4287
|
+
required,
|
|
4288
|
+
props: {
|
|
4289
|
+
placeholder,
|
|
4290
|
+
type: "textarea",
|
|
4291
|
+
rows,
|
|
4292
|
+
maxlength,
|
|
4293
|
+
minlength,
|
|
4294
|
+
showWordLimit
|
|
4295
|
+
}
|
|
4296
|
+
}];
|
|
4297
|
+
return useFormDialog({
|
|
4298
|
+
title,
|
|
4299
|
+
width,
|
|
4300
|
+
formItemList,
|
|
4301
|
+
dialogProps: {
|
|
4302
|
+
...dialogProps,
|
|
4303
|
+
class: bem.b(),
|
|
4304
|
+
destroyOnClose: true
|
|
4305
|
+
}
|
|
4306
|
+
});
|
|
4307
|
+
};
|
|
4308
|
+
|
|
4257
4309
|
const INSTALLED_KEY = /* @__PURE__ */ Symbol("INSTALLED_KEY");
|
|
4258
4310
|
const install = (app, options) => {
|
|
4259
4311
|
if (app[INSTALLED_KEY]) return;
|
|
@@ -4315,6 +4367,7 @@
|
|
|
4315
4367
|
exports.titleProps = titleProps;
|
|
4316
4368
|
exports.uniVueProps = uniVueProps;
|
|
4317
4369
|
exports.useChooseDialog = useChooseDialog;
|
|
4370
|
+
exports.useConfirmDialog = useConfirmDialog;
|
|
4318
4371
|
exports.useDialog = useDialog;
|
|
4319
4372
|
exports.useFormDialog = useFormDialog;
|
|
4320
4373
|
exports.useLocale = useLocale;
|