el-plus 0.0.82 → 0.0.84
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 +201 -49
- package/dist/index.full.min.js +4 -4
- package/dist/index.full.min.js.map +1 -1
- package/dist/index.full.min.mjs +4 -4
- package/dist/index.full.min.mjs.map +1 -1
- package/dist/index.full.mjs +200 -51
- package/es/components/attachment/src/attachment.vue2.mjs +12 -2
- package/es/components/attachment/src/attachment.vue2.mjs.map +1 -1
- package/es/components/footer-info/index.d.ts +66 -0
- package/es/components/footer-info/index.mjs +8 -0
- package/es/components/footer-info/index.mjs.map +1 -0
- package/es/components/footer-info/src/footer-info.d.ts +28 -0
- package/es/components/footer-info/src/footer-info.mjs +43 -0
- package/es/components/footer-info/src/footer-info.mjs.map +1 -0
- package/es/components/footer-info/src/footer-info.vue.d.ts +34 -0
- package/es/components/footer-info/src/footer-info.vue.mjs +6 -0
- package/es/components/footer-info/src/footer-info.vue.mjs.map +1 -0
- package/es/components/footer-info/src/footer-info.vue2.mjs +65 -0
- package/es/components/footer-info/src/footer-info.vue2.mjs.map +1 -0
- package/es/components/footer-info/style/css.d.ts +2 -0
- package/es/components/footer-info/style/css.mjs +5 -0
- package/es/components/footer-info/style/css.mjs.map +1 -0
- package/es/components/footer-info/style/index.d.ts +2 -0
- package/es/components/footer-info/style/index.mjs +5 -0
- package/es/components/footer-info/style/index.mjs.map +1 -0
- package/es/components/form/index.d.ts +3 -0
- package/es/components/form/src/form-item-vue.mjs +1 -1
- package/es/components/form/src/form-item-vue.mjs.map +1 -1
- package/es/components/form/src/form.vue.d.ts +1 -0
- package/es/components/form/src/form.vue2.mjs +14 -3
- package/es/components/form/src/form.vue2.mjs.map +1 -1
- package/es/components/form/src/hooks/use-form-item.d.ts +1 -1
- package/es/components/form/src/hooks/use-form-item.mjs +7 -2
- package/es/components/form/src/hooks/use-form-item.mjs.map +1 -1
- package/es/components/form/src/hooks/use-form.d.ts +2 -0
- package/es/components/form/src/hooks/use-form.mjs +16 -2
- package/es/components/form/src/hooks/use-form.mjs.map +1 -1
- package/es/components/index.d.ts +1 -0
- package/es/components/index.mjs +2 -0
- package/es/components/index.mjs.map +1 -1
- package/es/components/search-list-page/index.d.ts +18 -6
- package/es/components/search-list-page/src/search-list-page.vue.d.ts +6 -2
- package/es/components/search-list-page/src/use-search-list-page.d.ts +6 -2
- package/es/components/table/index.d.ts +3 -0
- package/es/components/table/src/table.vue.d.ts +1 -0
- package/es/components/table/src/table.vue2.mjs +2 -0
- package/es/components/table/src/table.vue2.mjs.map +1 -1
- package/es/components/table/src/use-table.d.ts +1 -0
- package/es/components/table/src/use-table.mjs +4 -0
- package/es/components/table/src/use-table.mjs.map +1 -1
- package/es/components.mjs +3 -1
- package/es/components.mjs.map +1 -1
- package/es/hooks/dialog/use-dialog.d.ts +1 -0
- package/es/hooks/dialog/use-dialog.mjs +3 -0
- package/es/hooks/dialog/use-dialog.mjs.map +1 -1
- package/es/hooks/use-template-promise.d.ts +1 -0
- package/es/hooks/use-template-promise.mjs +1 -1
- package/es/hooks/use-template-promise.mjs.map +1 -1
- package/es/index.mjs +2 -0
- package/es/index.mjs.map +1 -1
- package/es/package.json.mjs +1 -1
- package/lib/components/attachment/src/attachment.vue2.js +12 -2
- package/lib/components/attachment/src/attachment.vue2.js.map +1 -1
- package/lib/components/footer-info/index.d.ts +66 -0
- package/lib/components/footer-info/index.js +15 -0
- package/lib/components/footer-info/index.js.map +1 -0
- package/lib/components/footer-info/src/footer-info.d.ts +28 -0
- package/lib/components/footer-info/src/footer-info.js +46 -0
- package/lib/components/footer-info/src/footer-info.js.map +1 -0
- package/lib/components/footer-info/src/footer-info.vue.d.ts +34 -0
- package/lib/components/footer-info/src/footer-info.vue.js +10 -0
- package/lib/components/footer-info/src/footer-info.vue.js.map +1 -0
- package/lib/components/footer-info/src/footer-info.vue2.js +69 -0
- package/lib/components/footer-info/src/footer-info.vue2.js.map +1 -0
- package/lib/components/footer-info/style/css.d.ts +2 -0
- package/lib/components/footer-info/style/css.js +7 -0
- package/lib/components/footer-info/style/css.js.map +1 -0
- package/lib/components/footer-info/style/index.d.ts +2 -0
- package/lib/components/footer-info/style/index.js +7 -0
- package/lib/components/footer-info/style/index.js.map +1 -0
- package/lib/components/form/index.d.ts +3 -0
- package/lib/components/form/src/form-item-vue.js +1 -1
- package/lib/components/form/src/form-item-vue.js.map +1 -1
- package/lib/components/form/src/form.vue.d.ts +1 -0
- package/lib/components/form/src/form.vue2.js +14 -3
- package/lib/components/form/src/form.vue2.js.map +1 -1
- package/lib/components/form/src/hooks/use-form-item.d.ts +1 -1
- package/lib/components/form/src/hooks/use-form-item.js +7 -2
- package/lib/components/form/src/hooks/use-form-item.js.map +1 -1
- package/lib/components/form/src/hooks/use-form.d.ts +2 -0
- package/lib/components/form/src/hooks/use-form.js +15 -1
- package/lib/components/form/src/hooks/use-form.js.map +1 -1
- package/lib/components/index.d.ts +1 -0
- package/lib/components/index.js +5 -0
- package/lib/components/index.js.map +1 -1
- package/lib/components/search-list-page/index.d.ts +18 -6
- package/lib/components/search-list-page/src/search-list-page.vue.d.ts +6 -2
- package/lib/components/search-list-page/src/use-search-list-page.d.ts +6 -2
- package/lib/components/table/index.d.ts +3 -0
- package/lib/components/table/src/table.vue.d.ts +1 -0
- package/lib/components/table/src/table.vue2.js +2 -0
- package/lib/components/table/src/table.vue2.js.map +1 -1
- package/lib/components/table/src/use-table.d.ts +1 -0
- package/lib/components/table/src/use-table.js +4 -0
- package/lib/components/table/src/use-table.js.map +1 -1
- package/lib/components.js +3 -1
- package/lib/components.js.map +1 -1
- package/lib/hooks/dialog/use-dialog.d.ts +1 -0
- package/lib/hooks/dialog/use-dialog.js +3 -0
- package/lib/hooks/dialog/use-dialog.js.map +1 -1
- package/lib/hooks/use-template-promise.d.ts +1 -0
- package/lib/hooks/use-template-promise.js +1 -1
- package/lib/hooks/use-template-promise.js.map +1 -1
- package/lib/index.js +11 -6
- package/lib/index.js.map +1 -1
- package/lib/package.json.js +1 -1
- package/package.json +1 -1
- package/theme-chalk/attachment.css +1 -1
- package/theme-chalk/footer-info.css +1 -0
- package/theme-chalk/header.css +1 -1
- package/theme-chalk/index.css +1 -1
- package/theme-chalk/src/attachment.scss +3 -0
- package/theme-chalk/src/footer-info.scss +18 -0
- package/theme-chalk/src/header.scss +1 -1
- package/theme-chalk/src/index.scss +1 -0
- package/theme-chalk/src/table.scss +1 -0
- package/theme-chalk/src/title.scss +41 -43
- package/theme-chalk/table.css +1 -1
- package/theme-chalk/title.css +1 -1
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.is-hide-label .el-form-item__label{display:none}.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 .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 .el-table__cell.is-center .el-link{margin:0 auto;text-align:center}.ep-table .el-table .cell{line-height:30px}.ep-table .el-table thead tr th{height:42px}.ep-table .el-table thead tr th .cell{line-height:20px}.ep-table .el-table thead tr th .el-checkbox__inner{height:14px;width:14px}.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:32px;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;
|
|
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.is-hide-label .el-form-item__label{display:none}.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{width:100%}.ep-table__action-buttons{white-space:nowrap}.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 .el-table__cell.is-center .el-link{margin:0 auto;text-align:center}.ep-table .el-table .cell{line-height:30px}.ep-table .el-table thead tr th{height:42px}.ep-table .el-table thead tr th .cell{line-height:20px}.ep-table .el-table thead tr th .el-checkbox__inner{height:14px;width:14px}.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:32px;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{width:100%}.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;flex-wrap:wrap}.ep-header>.el-button{margin-bottom:10px}.ep-header .el-page-header .el-page-header__left{margin-right:-10px;margin-top:4px}.ep-header .el-page-header .el-page-header__title{white-space:nowrap}.ep-template-promise{position:relative;z-index:8888888888888888}.ep-dialog{padding:20px 25px 30px}.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 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__dialog .el-transfer__buttons button{width:100px}.ep-custom-column__dialog .el-transfer__buttons button span{font-size:13px}.ep-custom-column__operate{position:absolute;right:-100%;top:50%;transform:translate(calc(25% - 12px),32px)}.ep-custom-column__operate button{width:100px}.ep-custom-column__operate button span{font-size:13px}.no-cn__operate{transform:translate(calc(25% - 520px),32px)}.ep-link{font-size:13px}.ep-uni-vue{background:#fff}.ep-uni-vue__skeleton .el-skeleton__item{margin-top:10px}.ep-attachment__promise{width:100%}.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:32px;padding:9px 15px}.ep-attachment__handler.el-button--text{padding:0}.ep-footer-info{color:#999;display:flex;font-size:12px;line-height:20px;margin-top:16px;padding-bottom:20px;width:100%}.ep-footer-info__item{margin-right:20px}
|
package/dist/index.full.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! ElPlus v0.0.
|
|
1
|
+
/*! ElPlus v0.0.84 */
|
|
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'), require('dayjs')) :
|
|
@@ -813,16 +813,30 @@
|
|
|
813
813
|
const clearValidate = (props2) => {
|
|
814
814
|
return elFormRef.value.clearValidate(props2);
|
|
815
815
|
};
|
|
816
|
+
const formItemRenderRefs = vue.reactive(/* @__PURE__ */ new Map());
|
|
817
|
+
vue.onBeforeUpdate(() => {
|
|
818
|
+
formItemRenderRefs.clear();
|
|
819
|
+
});
|
|
820
|
+
const getFormItemRenderRef = (refName) => {
|
|
821
|
+
return formItemRenderRefs.get(refName);
|
|
822
|
+
};
|
|
823
|
+
const registerFormItemRenderRef = (refName, ref2) => {
|
|
824
|
+
if (refName && ref2) {
|
|
825
|
+
formItemRenderRefs.set(refName, ref2);
|
|
826
|
+
}
|
|
827
|
+
};
|
|
816
828
|
return {
|
|
817
829
|
filterFormItemList,
|
|
818
830
|
elFormRef,
|
|
819
831
|
validate,
|
|
820
832
|
resetFields,
|
|
821
|
-
clearValidate
|
|
833
|
+
clearValidate,
|
|
834
|
+
getFormItemRenderRef,
|
|
835
|
+
registerFormItemRenderRef
|
|
822
836
|
};
|
|
823
837
|
};
|
|
824
838
|
|
|
825
|
-
const useFormItemSlots = (props) => {
|
|
839
|
+
const useFormItemSlots = (props, emit) => {
|
|
826
840
|
const attrs = vue.useAttrs();
|
|
827
841
|
const {
|
|
828
842
|
render,
|
|
@@ -863,7 +877,12 @@
|
|
|
863
877
|
disabled,
|
|
864
878
|
clearable: true,
|
|
865
879
|
...renderProps,
|
|
866
|
-
...events
|
|
880
|
+
...events,
|
|
881
|
+
ref: (el) => {
|
|
882
|
+
if (el) {
|
|
883
|
+
emit("registerFormItemRenderRef", el);
|
|
884
|
+
}
|
|
885
|
+
}
|
|
867
886
|
}, renderScopedSlots) : formData[prop];
|
|
868
887
|
},
|
|
869
888
|
label: () => {
|
|
@@ -973,7 +992,7 @@
|
|
|
973
992
|
const attrs = vue.useAttrs();
|
|
974
993
|
const {
|
|
975
994
|
scopedSlots
|
|
976
|
-
} = useFormItemSlots(props);
|
|
995
|
+
} = useFormItemSlots(props, emit);
|
|
977
996
|
const {
|
|
978
997
|
rules
|
|
979
998
|
} = useFormItemRules(props);
|
|
@@ -995,7 +1014,7 @@
|
|
|
995
1014
|
}
|
|
996
1015
|
});
|
|
997
1016
|
|
|
998
|
-
var _sfc_main$
|
|
1017
|
+
var _sfc_main$c = /* @__PURE__ */ vue.defineComponent({
|
|
999
1018
|
...{
|
|
1000
1019
|
name: "EpForm",
|
|
1001
1020
|
inheritAttrs: false
|
|
@@ -1023,7 +1042,15 @@
|
|
|
1023
1042
|
};
|
|
1024
1043
|
});
|
|
1025
1044
|
const formData = vue.useModel(__props, "modelValue");
|
|
1026
|
-
const {
|
|
1045
|
+
const {
|
|
1046
|
+
filterFormItemList,
|
|
1047
|
+
elFormRef,
|
|
1048
|
+
validate,
|
|
1049
|
+
resetFields,
|
|
1050
|
+
clearValidate,
|
|
1051
|
+
getFormItemRenderRef,
|
|
1052
|
+
registerFormItemRenderRef
|
|
1053
|
+
} = useForm$1(props);
|
|
1027
1054
|
const { open, toggleStatus, isShowFoldBtn, isShowFormItem } = useCollapse(
|
|
1028
1055
|
{
|
|
1029
1056
|
filterFormItemList,
|
|
@@ -1036,7 +1063,8 @@
|
|
|
1036
1063
|
elFormRef,
|
|
1037
1064
|
validate,
|
|
1038
1065
|
resetFields,
|
|
1039
|
-
clearValidate
|
|
1066
|
+
clearValidate,
|
|
1067
|
+
getFormItemRenderRef
|
|
1040
1068
|
});
|
|
1041
1069
|
return (_ctx, _cache) => {
|
|
1042
1070
|
return vue.openBlock(), vue.createElementBlock("div", {
|
|
@@ -1069,7 +1097,9 @@
|
|
|
1069
1097
|
vue.createVNode(vue.unref(EpFormItem), vue.mergeProps({
|
|
1070
1098
|
"form-data": formData.value,
|
|
1071
1099
|
"form-label-width": _ctx.labelWidth
|
|
1072
|
-
}, { ref_for: true }, item
|
|
1100
|
+
}, { ref_for: true }, item, {
|
|
1101
|
+
onRegisterFormItemRenderRef: (ref2) => vue.unref(registerFormItemRenderRef)(item.props?.ref, ref2)
|
|
1102
|
+
}), null, 16, ["form-data", "form-label-width", "onRegisterFormItemRenderRef"])
|
|
1073
1103
|
]),
|
|
1074
1104
|
_: 2
|
|
1075
1105
|
}, 1032, ["class", "span"])), [
|
|
@@ -1093,7 +1123,7 @@
|
|
|
1093
1123
|
}
|
|
1094
1124
|
});
|
|
1095
1125
|
|
|
1096
|
-
const EpForm = withInstall(_sfc_main$
|
|
1126
|
+
const EpForm = withInstall(_sfc_main$c);
|
|
1097
1127
|
|
|
1098
1128
|
const { t: t$2 } = useLocale();
|
|
1099
1129
|
const inputProps = {
|
|
@@ -1122,7 +1152,7 @@
|
|
|
1122
1152
|
};
|
|
1123
1153
|
const inputEmitsKeys = Object.keys(inputEmits);
|
|
1124
1154
|
|
|
1125
|
-
var _sfc_main$
|
|
1155
|
+
var _sfc_main$b = /* @__PURE__ */ vue.defineComponent({
|
|
1126
1156
|
...{
|
|
1127
1157
|
name: "EpInput",
|
|
1128
1158
|
inheritAttrs: false
|
|
@@ -1256,7 +1286,7 @@
|
|
|
1256
1286
|
}
|
|
1257
1287
|
});
|
|
1258
1288
|
|
|
1259
|
-
const EpInput = withInstall(_sfc_main$
|
|
1289
|
+
const EpInput = withInstall(_sfc_main$b);
|
|
1260
1290
|
|
|
1261
1291
|
function _isSlot(s) {
|
|
1262
1292
|
return typeof s === "function" || Object.prototype.toString.call(s) === "[object Object]" && !vue.isVNode(s);
|
|
@@ -1327,7 +1357,7 @@
|
|
|
1327
1357
|
const renderList = () => instances.value.map((props) => {
|
|
1328
1358
|
return vue.withDirectives(vue.h("div", {
|
|
1329
1359
|
// key: props.key,
|
|
1330
|
-
class:
|
|
1360
|
+
class: `ep-template-promise is-init ${options.class || ""}`
|
|
1331
1361
|
}, render ? render(props, ctx) : slots.default?.(props)), [[vue.vShow, props.isVisible]]);
|
|
1332
1362
|
});
|
|
1333
1363
|
if (transition) return () => {
|
|
@@ -1359,10 +1389,12 @@
|
|
|
1359
1389
|
onBeforeCancel,
|
|
1360
1390
|
cancelText,
|
|
1361
1391
|
showFooter = true,
|
|
1392
|
+
templatePromiseClass,
|
|
1362
1393
|
...dialogProps
|
|
1363
1394
|
} = options;
|
|
1364
1395
|
const Dialog = useTemplatePromise({
|
|
1365
1396
|
destroy: destroyOnClose,
|
|
1397
|
+
class: templatePromiseClass,
|
|
1366
1398
|
render: (promiseOptions, ctx) => {
|
|
1367
1399
|
for (const key in scopedSlots) {
|
|
1368
1400
|
scopedSlots[key] = scopedSlots[key].bind(null, promiseOptions);
|
|
@@ -1396,6 +1428,7 @@
|
|
|
1396
1428
|
}), scopedSlots.footerInner?.(promiseOptions), vue.createVNode(elementPlus.ElButton, {
|
|
1397
1429
|
"type": "primary",
|
|
1398
1430
|
"onClick": async () => {
|
|
1431
|
+
console.log(111);
|
|
1399
1432
|
if (onBeforeConfirm) {
|
|
1400
1433
|
await onBeforeConfirm(resolve);
|
|
1401
1434
|
}
|
|
@@ -1605,7 +1638,7 @@
|
|
|
1605
1638
|
}
|
|
1606
1639
|
};
|
|
1607
1640
|
|
|
1608
|
-
var _sfc_main$
|
|
1641
|
+
var _sfc_main$a = /* @__PURE__ */ vue.defineComponent({
|
|
1609
1642
|
...{
|
|
1610
1643
|
name: "EpCustomColumn",
|
|
1611
1644
|
inheritAttrs: false
|
|
@@ -1827,7 +1860,7 @@
|
|
|
1827
1860
|
}
|
|
1828
1861
|
});
|
|
1829
1862
|
|
|
1830
|
-
const EpCustomColumn = withInstall(_sfc_main$
|
|
1863
|
+
const EpCustomColumn = withInstall(_sfc_main$a);
|
|
1831
1864
|
|
|
1832
1865
|
const inheritTableProps = {
|
|
1833
1866
|
...elTableProps,
|
|
@@ -2101,6 +2134,9 @@
|
|
|
2101
2134
|
const clearValidate = (props2) => {
|
|
2102
2135
|
return elFormRef.value.clearValidate(props2);
|
|
2103
2136
|
};
|
|
2137
|
+
const getSelectionRows = () => {
|
|
2138
|
+
return elTableRef.value.getSelectionRows();
|
|
2139
|
+
};
|
|
2104
2140
|
const formatActionButtons = (list, scope) => {
|
|
2105
2141
|
return list.map((item) => {
|
|
2106
2142
|
if (item.onClick) {
|
|
@@ -2122,6 +2158,7 @@
|
|
|
2122
2158
|
clearSelection,
|
|
2123
2159
|
resetFields,
|
|
2124
2160
|
clearValidate,
|
|
2161
|
+
getSelectionRows,
|
|
2125
2162
|
elFormRef,
|
|
2126
2163
|
elTableRef,
|
|
2127
2164
|
formatActionButtons,
|
|
@@ -2338,7 +2375,7 @@
|
|
|
2338
2375
|
};
|
|
2339
2376
|
};
|
|
2340
2377
|
|
|
2341
|
-
var _sfc_main$
|
|
2378
|
+
var _sfc_main$9 = /* @__PURE__ */ vue.defineComponent({
|
|
2342
2379
|
...{
|
|
2343
2380
|
name: "EpTable",
|
|
2344
2381
|
inheritAttrs: false
|
|
@@ -2377,6 +2414,7 @@
|
|
|
2377
2414
|
resetFields,
|
|
2378
2415
|
clearValidate,
|
|
2379
2416
|
clearSelection,
|
|
2417
|
+
getSelectionRows,
|
|
2380
2418
|
loading,
|
|
2381
2419
|
search,
|
|
2382
2420
|
elFormRef,
|
|
@@ -2398,6 +2436,7 @@
|
|
|
2398
2436
|
resetFields,
|
|
2399
2437
|
clearValidate,
|
|
2400
2438
|
clearSelection,
|
|
2439
|
+
getSelectionRows,
|
|
2401
2440
|
search,
|
|
2402
2441
|
openCustomColumnDialog: () => {
|
|
2403
2442
|
customColumnRef.value?.open();
|
|
@@ -2528,7 +2567,7 @@
|
|
|
2528
2567
|
}
|
|
2529
2568
|
});
|
|
2530
2569
|
|
|
2531
|
-
const EpTable = withInstall(_sfc_main$
|
|
2570
|
+
const EpTable = withInstall(_sfc_main$9);
|
|
2532
2571
|
|
|
2533
2572
|
const searchListPageProps = {
|
|
2534
2573
|
...apiProps,
|
|
@@ -2794,7 +2833,7 @@
|
|
|
2794
2833
|
};
|
|
2795
2834
|
};
|
|
2796
2835
|
|
|
2797
|
-
var _sfc_main$
|
|
2836
|
+
var _sfc_main$8 = /* @__PURE__ */ vue.defineComponent({
|
|
2798
2837
|
...{ name: "EpSearchListPage" },
|
|
2799
2838
|
__name: "search-list-page",
|
|
2800
2839
|
props: searchListPageProps,
|
|
@@ -2847,7 +2886,7 @@
|
|
|
2847
2886
|
}
|
|
2848
2887
|
});
|
|
2849
2888
|
|
|
2850
|
-
const EpSearchListPage = withInstall(_sfc_main$
|
|
2889
|
+
const EpSearchListPage = withInstall(_sfc_main$8);
|
|
2851
2890
|
|
|
2852
2891
|
const inheritSelectProps = {
|
|
2853
2892
|
...elementPlus.selectProps,
|
|
@@ -2975,7 +3014,7 @@
|
|
|
2975
3014
|
};
|
|
2976
3015
|
}
|
|
2977
3016
|
|
|
2978
|
-
var _sfc_main$
|
|
3017
|
+
var _sfc_main$7 = /* @__PURE__ */ vue.defineComponent({
|
|
2979
3018
|
...{
|
|
2980
3019
|
name: "EpSelect",
|
|
2981
3020
|
inheritAttrs: false
|
|
@@ -3063,7 +3102,7 @@
|
|
|
3063
3102
|
}
|
|
3064
3103
|
});
|
|
3065
3104
|
|
|
3066
|
-
const EpSelect = withInstall(_sfc_main$
|
|
3105
|
+
const EpSelect = withInstall(_sfc_main$7);
|
|
3067
3106
|
|
|
3068
3107
|
const titleProps = {
|
|
3069
3108
|
// 右侧按钮
|
|
@@ -3122,7 +3161,7 @@
|
|
|
3122
3161
|
};
|
|
3123
3162
|
};
|
|
3124
3163
|
|
|
3125
|
-
var _sfc_main$
|
|
3164
|
+
var _sfc_main$6 = /* @__PURE__ */ vue.defineComponent({
|
|
3126
3165
|
...{
|
|
3127
3166
|
name: "EpTitle",
|
|
3128
3167
|
inheritAttrs: false
|
|
@@ -3186,7 +3225,7 @@
|
|
|
3186
3225
|
}
|
|
3187
3226
|
});
|
|
3188
3227
|
|
|
3189
|
-
const EpTitle = withInstall(_sfc_main$
|
|
3228
|
+
const EpTitle = withInstall(_sfc_main$6);
|
|
3190
3229
|
|
|
3191
3230
|
const headerProps = {
|
|
3192
3231
|
// 页面模式
|
|
@@ -3703,7 +3742,7 @@
|
|
|
3703
3742
|
};
|
|
3704
3743
|
};
|
|
3705
3744
|
|
|
3706
|
-
var _sfc_main$
|
|
3745
|
+
var _sfc_main$5 = /* @__PURE__ */ vue.defineComponent({
|
|
3707
3746
|
...{
|
|
3708
3747
|
name: "EpAttachment",
|
|
3709
3748
|
inheritAttrs: false
|
|
@@ -3719,11 +3758,20 @@
|
|
|
3719
3758
|
const bem = createNameSpace("attachment");
|
|
3720
3759
|
const props = __props;
|
|
3721
3760
|
const modelValue = vue.useModel(__props, "modelValue");
|
|
3722
|
-
const {
|
|
3761
|
+
const {
|
|
3762
|
+
columns,
|
|
3763
|
+
actionButtons,
|
|
3764
|
+
addAttachment,
|
|
3765
|
+
isNormalOpen,
|
|
3766
|
+
permission,
|
|
3767
|
+
onConfirm,
|
|
3768
|
+
onCancel,
|
|
3769
|
+
mode
|
|
3770
|
+
} = useAttachment(props, {
|
|
3723
3771
|
data: modelValue
|
|
3724
3772
|
});
|
|
3725
3773
|
const AttachmentDialog = useDialog({
|
|
3726
|
-
width: 850,
|
|
3774
|
+
width: isNormalOpen ? "" : 850,
|
|
3727
3775
|
center: true,
|
|
3728
3776
|
title: isNormalOpen ? "" : t("ep.attachment.manageAttachment"),
|
|
3729
3777
|
modal: !isNormalOpen,
|
|
@@ -3734,6 +3782,7 @@
|
|
|
3734
3782
|
"dialog",
|
|
3735
3783
|
props.openType === "normal" ? props.openType : ""
|
|
3736
3784
|
),
|
|
3785
|
+
templatePromiseClass: bem.e("promise"),
|
|
3737
3786
|
onConfirm: async (resolve) => {
|
|
3738
3787
|
onConfirm(resolve);
|
|
3739
3788
|
},
|
|
@@ -3800,9 +3849,9 @@
|
|
|
3800
3849
|
}
|
|
3801
3850
|
});
|
|
3802
3851
|
|
|
3803
|
-
const EpAttachment = withInstall(_sfc_main$
|
|
3852
|
+
const EpAttachment = withInstall(_sfc_main$5);
|
|
3804
3853
|
|
|
3805
|
-
var _sfc_main$
|
|
3854
|
+
var _sfc_main$4 = /* @__PURE__ */ vue.defineComponent({
|
|
3806
3855
|
...{
|
|
3807
3856
|
name: "EpHeader",
|
|
3808
3857
|
inheritAttrs: false
|
|
@@ -3840,7 +3889,7 @@
|
|
|
3840
3889
|
}
|
|
3841
3890
|
});
|
|
3842
3891
|
|
|
3843
|
-
const EpHeader = withInstall(_sfc_main$
|
|
3892
|
+
const EpHeader = withInstall(_sfc_main$4);
|
|
3844
3893
|
|
|
3845
3894
|
const { t } = useLocale();
|
|
3846
3895
|
const datePickerRangeProps = {
|
|
@@ -3910,7 +3959,7 @@
|
|
|
3910
3959
|
};
|
|
3911
3960
|
const datePickerRangeEmits = {};
|
|
3912
3961
|
|
|
3913
|
-
var _sfc_main$
|
|
3962
|
+
var _sfc_main$3 = /* @__PURE__ */ vue.defineComponent({
|
|
3914
3963
|
...{
|
|
3915
3964
|
name: "EpDatePickerRange",
|
|
3916
3965
|
inheritAttrs: false
|
|
@@ -3966,7 +4015,7 @@
|
|
|
3966
4015
|
}
|
|
3967
4016
|
});
|
|
3968
4017
|
|
|
3969
|
-
const EpDatePickerRange = withInstall(_sfc_main$
|
|
4018
|
+
const EpDatePickerRange = withInstall(_sfc_main$3);
|
|
3970
4019
|
|
|
3971
4020
|
const linkProps = {
|
|
3972
4021
|
...elementPlus.linkProps,
|
|
@@ -3983,7 +4032,7 @@
|
|
|
3983
4032
|
}
|
|
3984
4033
|
};
|
|
3985
4034
|
|
|
3986
|
-
var _sfc_main$
|
|
4035
|
+
var _sfc_main$2 = /* @__PURE__ */ vue.defineComponent({
|
|
3987
4036
|
...{
|
|
3988
4037
|
name: "EpLink",
|
|
3989
4038
|
inheritAttrs: false
|
|
@@ -4028,7 +4077,7 @@
|
|
|
4028
4077
|
}
|
|
4029
4078
|
});
|
|
4030
4079
|
|
|
4031
|
-
const EpLink = withInstall(_sfc_main$
|
|
4080
|
+
const EpLink = withInstall(_sfc_main$2);
|
|
4032
4081
|
|
|
4033
4082
|
const componentType = ["bpm", "address"];
|
|
4034
4083
|
const uniVueProps = {
|
|
@@ -4252,7 +4301,7 @@
|
|
|
4252
4301
|
};
|
|
4253
4302
|
};
|
|
4254
4303
|
|
|
4255
|
-
var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
4304
|
+
var _sfc_main$1 = /* @__PURE__ */ vue.defineComponent({
|
|
4256
4305
|
...{
|
|
4257
4306
|
name: "EpUniVue",
|
|
4258
4307
|
inheritAttrs: false
|
|
@@ -4285,7 +4334,118 @@
|
|
|
4285
4334
|
}
|
|
4286
4335
|
});
|
|
4287
4336
|
|
|
4288
|
-
const EpUniVue = withInstall(_sfc_main);
|
|
4337
|
+
const EpUniVue = withInstall(_sfc_main$1);
|
|
4338
|
+
|
|
4339
|
+
const getUnifyTime = function(date, format) {
|
|
4340
|
+
if (!date) return date === 0 ? null : date;
|
|
4341
|
+
if (format === "date") {
|
|
4342
|
+
format = "YYYY-MM-DD";
|
|
4343
|
+
} else if (format === "time") {
|
|
4344
|
+
format = "YYYY-MM-DD HH:mm:ss";
|
|
4345
|
+
}
|
|
4346
|
+
if (format === "s") return dayjs(date).startOf("day").valueOf();
|
|
4347
|
+
if (format === "e") return dayjs(date).endOf("day").valueOf();
|
|
4348
|
+
return format ? dayjs(date).format(format) : dayjs(date).valueOf();
|
|
4349
|
+
};
|
|
4350
|
+
|
|
4351
|
+
const defaultFields = [
|
|
4352
|
+
{
|
|
4353
|
+
name: "\u5236\u5355\u4EBA",
|
|
4354
|
+
prop: "creator",
|
|
4355
|
+
formatter: (value, modelValue) => `${modelValue.creator}/${modelValue.creatorName}`
|
|
4356
|
+
},
|
|
4357
|
+
{
|
|
4358
|
+
name: "\u521B\u5EFA\u65F6\u95F4",
|
|
4359
|
+
prop: "createTime",
|
|
4360
|
+
// 如果有createTimestamp,用createTimestamp格式化
|
|
4361
|
+
formatter: (value, modelValue) => modelValue.createTimestamp ? getUnifyTime(modelValue.createTimestamp, "time") : value
|
|
4362
|
+
},
|
|
4363
|
+
{
|
|
4364
|
+
name: "\u6700\u65B0\u4FEE\u6539\u4EBA",
|
|
4365
|
+
prop: "editor",
|
|
4366
|
+
formatter: (value, modelValue) => `${modelValue.editor}/${modelValue.editorName}`
|
|
4367
|
+
},
|
|
4368
|
+
{
|
|
4369
|
+
name: "\u6700\u65B0\u4FEE\u6539\u65F6\u95F4",
|
|
4370
|
+
prop: "editTime",
|
|
4371
|
+
// 如果有editTimestamp,用editTimestamp格式化
|
|
4372
|
+
formatter: (value, modelValue) => modelValue.editTimestamp ? getUnifyTime(modelValue.editTimestamp, "time") : value
|
|
4373
|
+
}
|
|
4374
|
+
];
|
|
4375
|
+
const footerInfoProps = {
|
|
4376
|
+
modelValue: {
|
|
4377
|
+
type: Object,
|
|
4378
|
+
default: () => ({})
|
|
4379
|
+
},
|
|
4380
|
+
list: {
|
|
4381
|
+
type: Array,
|
|
4382
|
+
default: () => defaultFields
|
|
4383
|
+
},
|
|
4384
|
+
fieldMap: {
|
|
4385
|
+
type: Object,
|
|
4386
|
+
default: () => ({})
|
|
4387
|
+
}
|
|
4388
|
+
};
|
|
4389
|
+
|
|
4390
|
+
var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
4391
|
+
...{
|
|
4392
|
+
name: "EpFooterInfo",
|
|
4393
|
+
inheritAttrs: false
|
|
4394
|
+
},
|
|
4395
|
+
__name: "footer-info",
|
|
4396
|
+
props: footerInfoProps,
|
|
4397
|
+
setup(__props) {
|
|
4398
|
+
const bem = createNameSpace("footer-info");
|
|
4399
|
+
const props = __props;
|
|
4400
|
+
const getFieldName = (field) => {
|
|
4401
|
+
const fieldMapValue = props.fieldMap[field.prop];
|
|
4402
|
+
if (fieldMapValue && typeof fieldMapValue === "object" && "name" in fieldMapValue) {
|
|
4403
|
+
return fieldMapValue.name || field.name;
|
|
4404
|
+
}
|
|
4405
|
+
return field.name;
|
|
4406
|
+
};
|
|
4407
|
+
const getFieldValue = (field) => {
|
|
4408
|
+
const fieldMapValue = props.fieldMap[field.prop];
|
|
4409
|
+
if (fieldMapValue) {
|
|
4410
|
+
if (typeof fieldMapValue === "function") {
|
|
4411
|
+
return fieldMapValue(props.modelValue[field.prop], props.modelValue);
|
|
4412
|
+
}
|
|
4413
|
+
if (typeof fieldMapValue === "object" && "formatter" in fieldMapValue) {
|
|
4414
|
+
return fieldMapValue.formatter(
|
|
4415
|
+
props.modelValue[field.prop],
|
|
4416
|
+
props.modelValue
|
|
4417
|
+
);
|
|
4418
|
+
}
|
|
4419
|
+
}
|
|
4420
|
+
if (field.formatter) {
|
|
4421
|
+
return field.formatter(props.modelValue[field.prop], props.modelValue);
|
|
4422
|
+
}
|
|
4423
|
+
return props.modelValue[field.prop] || "";
|
|
4424
|
+
};
|
|
4425
|
+
return (_ctx, _cache) => {
|
|
4426
|
+
return vue.openBlock(), vue.createElementBlock("div", {
|
|
4427
|
+
class: vue.normalizeClass([vue.unref(bem).b(), vue.unref(prepareClassNames)()]),
|
|
4428
|
+
style: vue.normalizeStyle({ ...vue.unref(prepareStyles)() })
|
|
4429
|
+
}, [
|
|
4430
|
+
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.list, (field, index) => {
|
|
4431
|
+
return vue.openBlock(), vue.createElementBlock("div", {
|
|
4432
|
+
key: index,
|
|
4433
|
+
class: vue.normalizeClass(vue.unref(bem).e("item"))
|
|
4434
|
+
}, [
|
|
4435
|
+
vue.createElementVNode("span", {
|
|
4436
|
+
class: vue.normalizeClass(vue.unref(bem).e("label"))
|
|
4437
|
+
}, vue.toDisplayString(getFieldName(field)), 3),
|
|
4438
|
+
vue.createElementVNode("span", {
|
|
4439
|
+
class: vue.normalizeClass(vue.unref(bem).e("value"))
|
|
4440
|
+
}, vue.toDisplayString(getFieldValue(field)), 3)
|
|
4441
|
+
], 2);
|
|
4442
|
+
}), 128))
|
|
4443
|
+
], 6);
|
|
4444
|
+
};
|
|
4445
|
+
}
|
|
4446
|
+
});
|
|
4447
|
+
|
|
4448
|
+
const EpFooterInfo = withInstall(_sfc_main);
|
|
4289
4449
|
|
|
4290
4450
|
var components = [
|
|
4291
4451
|
EpButtons,
|
|
@@ -4300,10 +4460,11 @@
|
|
|
4300
4460
|
EpCustomColumn,
|
|
4301
4461
|
EpLink,
|
|
4302
4462
|
EpAttachment,
|
|
4303
|
-
EpUniVue
|
|
4463
|
+
EpUniVue,
|
|
4464
|
+
EpFooterInfo
|
|
4304
4465
|
];
|
|
4305
4466
|
|
|
4306
|
-
var version = "0.0.
|
|
4467
|
+
var version = "0.0.84";
|
|
4307
4468
|
|
|
4308
4469
|
var globalProperties = {
|
|
4309
4470
|
install(app) {
|
|
@@ -4433,18 +4594,6 @@
|
|
|
4433
4594
|
});
|
|
4434
4595
|
};
|
|
4435
4596
|
|
|
4436
|
-
const getUnifyTime = function(date, format) {
|
|
4437
|
-
if (!date) return date === 0 ? null : date;
|
|
4438
|
-
if (format === "date") {
|
|
4439
|
-
format = "YYYY-MM-DD";
|
|
4440
|
-
} else if (format === "time") {
|
|
4441
|
-
format = "YYYY-MM-DD HH:mm:ss";
|
|
4442
|
-
}
|
|
4443
|
-
if (format === "s") return dayjs(date).startOf("day").valueOf();
|
|
4444
|
-
if (format === "e") return dayjs(date).endOf("day").valueOf();
|
|
4445
|
-
return format ? dayjs(date).format(format) : dayjs(date).valueOf();
|
|
4446
|
-
};
|
|
4447
|
-
|
|
4448
4597
|
const useUtils = () => {
|
|
4449
4598
|
return {
|
|
4450
4599
|
getUnifyTime,
|
|
@@ -4472,6 +4621,7 @@
|
|
|
4472
4621
|
exports.EpButtons = EpButtons;
|
|
4473
4622
|
exports.EpCustomColumn = EpCustomColumn;
|
|
4474
4623
|
exports.EpDatePickerRange = EpDatePickerRange;
|
|
4624
|
+
exports.EpFooterInfo = EpFooterInfo;
|
|
4475
4625
|
exports.EpForm = EpForm;
|
|
4476
4626
|
exports.EpFormItem = EpFormItem;
|
|
4477
4627
|
exports.EpHeader = EpHeader;
|
|
@@ -4490,10 +4640,12 @@
|
|
|
4490
4640
|
exports.datePickerRangeEmits = datePickerRangeEmits;
|
|
4491
4641
|
exports.datePickerRangeProps = datePickerRangeProps;
|
|
4492
4642
|
exports.default = plugin;
|
|
4643
|
+
exports.defaultFields = defaultFields;
|
|
4493
4644
|
exports.expandFormItemPropsKeys = expandFormItemPropsKeys;
|
|
4494
4645
|
exports.expandFormPropsKeys = expandFormPropsKeys;
|
|
4495
4646
|
exports.expandSelectPropsKeys = expandSelectPropsKeys;
|
|
4496
4647
|
exports.expandTablePropsKeys = expandTablePropsKeys;
|
|
4648
|
+
exports.footerInfoProps = footerInfoProps;
|
|
4497
4649
|
exports.formEmits = formEmits;
|
|
4498
4650
|
exports.formEmitsKeys = formEmitsKeys;
|
|
4499
4651
|
exports.formItemProps = formItemProps;
|