el-plus 0.0.83 → 0.0.85
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 +147 -40
- 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 +145 -41
- package/docs/api-examples.md +49 -0
- package/docs/components/attachment.md +111 -0
- package/docs/components/buttons.md +108 -0
- package/docs/components/custom-column.md +70 -0
- package/docs/components/date-picker-range.md +61 -0
- package/docs/components/dialog.md +104 -0
- package/docs/components/footer-info.md +101 -0
- package/docs/components/form.md +178 -0
- package/docs/components/header.md +80 -0
- package/docs/components/index.md +23 -0
- package/docs/components/input.md +87 -0
- package/docs/components/link.md +63 -0
- package/docs/components/search-list-page.md +84 -0
- package/docs/components/select.md +163 -0
- package/docs/components/table.md +133 -0
- package/docs/components/title.md +70 -0
- package/docs/components/use-choose-dialog.md +115 -0
- package/docs/components/use-confirm-dialog.md +87 -0
- package/docs/components/use-form-dialog.md +87 -0
- package/docs/guide/markdown-examples.md +85 -0
- package/docs/index.md +25 -0
- package/docs/pages/detail.md +84 -0
- package/docs/pages/list.md +75 -0
- package/es/cli/src/commands/gen-docs.d.ts +2 -0
- package/es/cli/src/commands/install.d.ts +13 -0
- package/es/cli/src/commands/parse.d.ts +2 -0
- package/es/cli/src/index.d.ts +2 -0
- package/es/cli/src/parser/modao.d.ts +33 -0
- package/es/components/buttons/index.d.ts +45 -45
- package/es/components/buttons/src/buttons-vue.d.ts +16 -16
- package/es/components/buttons/src/buttons.d.ts +1 -1
- package/es/components/date-picker-range/index.d.ts +3 -3
- package/es/components/date-picker-range/src/date-picker-range.vue.d.ts +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/src/form-item-vue.mjs +6 -2
- package/es/components/form/src/form-item-vue.mjs.map +1 -1
- package/es/components/header/src/header.d.ts +1 -1
- package/es/components/header/src/header.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/input/index.d.ts +3 -3
- package/es/components/input/src/input.vue.d.ts +1 -1
- package/es/components/link/index.d.ts +6 -6
- package/es/components/link/src/link.d.ts +1 -1
- package/es/components/link/src/link.vue.d.ts +3 -3
- package/es/components/search-list-page/index.d.ts +12 -12
- package/es/components/search-list-page/src/search-list-page.vue.d.ts +4 -4
- package/es/components/search-list-page/src/use-search-list-page.d.ts +4 -4
- package/es/components.mjs +3 -1
- package/es/components.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/cli/src/commands/gen-docs.d.ts +2 -0
- package/lib/cli/src/commands/install.d.ts +13 -0
- package/lib/cli/src/commands/parse.d.ts +2 -0
- package/lib/cli/src/index.d.ts +2 -0
- package/lib/cli/src/parser/modao.d.ts +33 -0
- package/lib/components/buttons/index.d.ts +45 -45
- package/lib/components/buttons/src/buttons-vue.d.ts +16 -16
- package/lib/components/buttons/src/buttons.d.ts +1 -1
- package/lib/components/date-picker-range/index.d.ts +3 -3
- package/lib/components/date-picker-range/src/date-picker-range.vue.d.ts +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/src/form-item-vue.js +5 -1
- package/lib/components/form/src/form-item-vue.js.map +1 -1
- package/lib/components/header/src/header.d.ts +1 -1
- package/lib/components/header/src/header.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/input/index.d.ts +3 -3
- package/lib/components/input/src/input.vue.d.ts +1 -1
- package/lib/components/link/index.d.ts +6 -6
- package/lib/components/link/src/link.d.ts +1 -1
- package/lib/components/link/src/link.vue.d.ts +3 -3
- package/lib/components/search-list-page/index.d.ts +12 -12
- package/lib/components/search-list-page/src/search-list-page.vue.d.ts +4 -4
- package/lib/components/search-list-page/src/use-search-list-page.d.ts +4 -4
- package/lib/components.js +3 -1
- package/lib/components.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 +2 -1
- package/theme-chalk/footer-info.css +1 -0
- package/theme-chalk/index.css +1 -1
- package/theme-chalk/src/footer-info.scss +18 -0
- package/theme-chalk/src/index.scss +1 -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.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}
|
|
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.85 */
|
|
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')) :
|
|
@@ -1001,9 +1001,13 @@
|
|
|
1001
1001
|
disabled,
|
|
1002
1002
|
...formItemProps2
|
|
1003
1003
|
} = props;
|
|
1004
|
+
const isShowLabel = vue.computed(() => {
|
|
1005
|
+
if (!props.label) return false;
|
|
1006
|
+
return props.isShowLabel;
|
|
1007
|
+
});
|
|
1004
1008
|
return () => {
|
|
1005
1009
|
return vue.createVNode(elementPlus.ElFormItem, vue.mergeProps({
|
|
1006
|
-
"class": [bem$4.b(), bem$4.is("hide-label", !
|
|
1010
|
+
"class": [bem$4.b(), bem$4.is("hide-label", !isShowLabel.value), prepareClassNames()],
|
|
1007
1011
|
"style": prepareStyles()
|
|
1008
1012
|
}, {
|
|
1009
1013
|
...prepareProps(formItemProps2, [...expandFormItemPropsKeys]),
|
|
@@ -1014,7 +1018,7 @@
|
|
|
1014
1018
|
}
|
|
1015
1019
|
});
|
|
1016
1020
|
|
|
1017
|
-
var _sfc_main$
|
|
1021
|
+
var _sfc_main$c = /* @__PURE__ */ vue.defineComponent({
|
|
1018
1022
|
...{
|
|
1019
1023
|
name: "EpForm",
|
|
1020
1024
|
inheritAttrs: false
|
|
@@ -1123,7 +1127,7 @@
|
|
|
1123
1127
|
}
|
|
1124
1128
|
});
|
|
1125
1129
|
|
|
1126
|
-
const EpForm = withInstall(_sfc_main$
|
|
1130
|
+
const EpForm = withInstall(_sfc_main$c);
|
|
1127
1131
|
|
|
1128
1132
|
const { t: t$2 } = useLocale();
|
|
1129
1133
|
const inputProps = {
|
|
@@ -1152,7 +1156,7 @@
|
|
|
1152
1156
|
};
|
|
1153
1157
|
const inputEmitsKeys = Object.keys(inputEmits);
|
|
1154
1158
|
|
|
1155
|
-
var _sfc_main$
|
|
1159
|
+
var _sfc_main$b = /* @__PURE__ */ vue.defineComponent({
|
|
1156
1160
|
...{
|
|
1157
1161
|
name: "EpInput",
|
|
1158
1162
|
inheritAttrs: false
|
|
@@ -1286,7 +1290,7 @@
|
|
|
1286
1290
|
}
|
|
1287
1291
|
});
|
|
1288
1292
|
|
|
1289
|
-
const EpInput = withInstall(_sfc_main$
|
|
1293
|
+
const EpInput = withInstall(_sfc_main$b);
|
|
1290
1294
|
|
|
1291
1295
|
function _isSlot(s) {
|
|
1292
1296
|
return typeof s === "function" || Object.prototype.toString.call(s) === "[object Object]" && !vue.isVNode(s);
|
|
@@ -1638,7 +1642,7 @@
|
|
|
1638
1642
|
}
|
|
1639
1643
|
};
|
|
1640
1644
|
|
|
1641
|
-
var _sfc_main$
|
|
1645
|
+
var _sfc_main$a = /* @__PURE__ */ vue.defineComponent({
|
|
1642
1646
|
...{
|
|
1643
1647
|
name: "EpCustomColumn",
|
|
1644
1648
|
inheritAttrs: false
|
|
@@ -1860,7 +1864,7 @@
|
|
|
1860
1864
|
}
|
|
1861
1865
|
});
|
|
1862
1866
|
|
|
1863
|
-
const EpCustomColumn = withInstall(_sfc_main$
|
|
1867
|
+
const EpCustomColumn = withInstall(_sfc_main$a);
|
|
1864
1868
|
|
|
1865
1869
|
const inheritTableProps = {
|
|
1866
1870
|
...elTableProps,
|
|
@@ -2375,7 +2379,7 @@
|
|
|
2375
2379
|
};
|
|
2376
2380
|
};
|
|
2377
2381
|
|
|
2378
|
-
var _sfc_main$
|
|
2382
|
+
var _sfc_main$9 = /* @__PURE__ */ vue.defineComponent({
|
|
2379
2383
|
...{
|
|
2380
2384
|
name: "EpTable",
|
|
2381
2385
|
inheritAttrs: false
|
|
@@ -2567,7 +2571,7 @@
|
|
|
2567
2571
|
}
|
|
2568
2572
|
});
|
|
2569
2573
|
|
|
2570
|
-
const EpTable = withInstall(_sfc_main$
|
|
2574
|
+
const EpTable = withInstall(_sfc_main$9);
|
|
2571
2575
|
|
|
2572
2576
|
const searchListPageProps = {
|
|
2573
2577
|
...apiProps,
|
|
@@ -2833,7 +2837,7 @@
|
|
|
2833
2837
|
};
|
|
2834
2838
|
};
|
|
2835
2839
|
|
|
2836
|
-
var _sfc_main$
|
|
2840
|
+
var _sfc_main$8 = /* @__PURE__ */ vue.defineComponent({
|
|
2837
2841
|
...{ name: "EpSearchListPage" },
|
|
2838
2842
|
__name: "search-list-page",
|
|
2839
2843
|
props: searchListPageProps,
|
|
@@ -2886,7 +2890,7 @@
|
|
|
2886
2890
|
}
|
|
2887
2891
|
});
|
|
2888
2892
|
|
|
2889
|
-
const EpSearchListPage = withInstall(_sfc_main$
|
|
2893
|
+
const EpSearchListPage = withInstall(_sfc_main$8);
|
|
2890
2894
|
|
|
2891
2895
|
const inheritSelectProps = {
|
|
2892
2896
|
...elementPlus.selectProps,
|
|
@@ -3014,7 +3018,7 @@
|
|
|
3014
3018
|
};
|
|
3015
3019
|
}
|
|
3016
3020
|
|
|
3017
|
-
var _sfc_main$
|
|
3021
|
+
var _sfc_main$7 = /* @__PURE__ */ vue.defineComponent({
|
|
3018
3022
|
...{
|
|
3019
3023
|
name: "EpSelect",
|
|
3020
3024
|
inheritAttrs: false
|
|
@@ -3102,7 +3106,7 @@
|
|
|
3102
3106
|
}
|
|
3103
3107
|
});
|
|
3104
3108
|
|
|
3105
|
-
const EpSelect = withInstall(_sfc_main$
|
|
3109
|
+
const EpSelect = withInstall(_sfc_main$7);
|
|
3106
3110
|
|
|
3107
3111
|
const titleProps = {
|
|
3108
3112
|
// 右侧按钮
|
|
@@ -3161,7 +3165,7 @@
|
|
|
3161
3165
|
};
|
|
3162
3166
|
};
|
|
3163
3167
|
|
|
3164
|
-
var _sfc_main$
|
|
3168
|
+
var _sfc_main$6 = /* @__PURE__ */ vue.defineComponent({
|
|
3165
3169
|
...{
|
|
3166
3170
|
name: "EpTitle",
|
|
3167
3171
|
inheritAttrs: false
|
|
@@ -3225,7 +3229,7 @@
|
|
|
3225
3229
|
}
|
|
3226
3230
|
});
|
|
3227
3231
|
|
|
3228
|
-
const EpTitle = withInstall(_sfc_main$
|
|
3232
|
+
const EpTitle = withInstall(_sfc_main$6);
|
|
3229
3233
|
|
|
3230
3234
|
const headerProps = {
|
|
3231
3235
|
// 页面模式
|
|
@@ -3742,7 +3746,7 @@
|
|
|
3742
3746
|
};
|
|
3743
3747
|
};
|
|
3744
3748
|
|
|
3745
|
-
var _sfc_main$
|
|
3749
|
+
var _sfc_main$5 = /* @__PURE__ */ vue.defineComponent({
|
|
3746
3750
|
...{
|
|
3747
3751
|
name: "EpAttachment",
|
|
3748
3752
|
inheritAttrs: false
|
|
@@ -3849,9 +3853,9 @@
|
|
|
3849
3853
|
}
|
|
3850
3854
|
});
|
|
3851
3855
|
|
|
3852
|
-
const EpAttachment = withInstall(_sfc_main$
|
|
3856
|
+
const EpAttachment = withInstall(_sfc_main$5);
|
|
3853
3857
|
|
|
3854
|
-
var _sfc_main$
|
|
3858
|
+
var _sfc_main$4 = /* @__PURE__ */ vue.defineComponent({
|
|
3855
3859
|
...{
|
|
3856
3860
|
name: "EpHeader",
|
|
3857
3861
|
inheritAttrs: false
|
|
@@ -3889,7 +3893,7 @@
|
|
|
3889
3893
|
}
|
|
3890
3894
|
});
|
|
3891
3895
|
|
|
3892
|
-
const EpHeader = withInstall(_sfc_main$
|
|
3896
|
+
const EpHeader = withInstall(_sfc_main$4);
|
|
3893
3897
|
|
|
3894
3898
|
const { t } = useLocale();
|
|
3895
3899
|
const datePickerRangeProps = {
|
|
@@ -3959,7 +3963,7 @@
|
|
|
3959
3963
|
};
|
|
3960
3964
|
const datePickerRangeEmits = {};
|
|
3961
3965
|
|
|
3962
|
-
var _sfc_main$
|
|
3966
|
+
var _sfc_main$3 = /* @__PURE__ */ vue.defineComponent({
|
|
3963
3967
|
...{
|
|
3964
3968
|
name: "EpDatePickerRange",
|
|
3965
3969
|
inheritAttrs: false
|
|
@@ -4015,7 +4019,7 @@
|
|
|
4015
4019
|
}
|
|
4016
4020
|
});
|
|
4017
4021
|
|
|
4018
|
-
const EpDatePickerRange = withInstall(_sfc_main$
|
|
4022
|
+
const EpDatePickerRange = withInstall(_sfc_main$3);
|
|
4019
4023
|
|
|
4020
4024
|
const linkProps = {
|
|
4021
4025
|
...elementPlus.linkProps,
|
|
@@ -4032,7 +4036,7 @@
|
|
|
4032
4036
|
}
|
|
4033
4037
|
};
|
|
4034
4038
|
|
|
4035
|
-
var _sfc_main$
|
|
4039
|
+
var _sfc_main$2 = /* @__PURE__ */ vue.defineComponent({
|
|
4036
4040
|
...{
|
|
4037
4041
|
name: "EpLink",
|
|
4038
4042
|
inheritAttrs: false
|
|
@@ -4077,7 +4081,7 @@
|
|
|
4077
4081
|
}
|
|
4078
4082
|
});
|
|
4079
4083
|
|
|
4080
|
-
const EpLink = withInstall(_sfc_main$
|
|
4084
|
+
const EpLink = withInstall(_sfc_main$2);
|
|
4081
4085
|
|
|
4082
4086
|
const componentType = ["bpm", "address"];
|
|
4083
4087
|
const uniVueProps = {
|
|
@@ -4301,7 +4305,7 @@
|
|
|
4301
4305
|
};
|
|
4302
4306
|
};
|
|
4303
4307
|
|
|
4304
|
-
var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
4308
|
+
var _sfc_main$1 = /* @__PURE__ */ vue.defineComponent({
|
|
4305
4309
|
...{
|
|
4306
4310
|
name: "EpUniVue",
|
|
4307
4311
|
inheritAttrs: false
|
|
@@ -4334,7 +4338,118 @@
|
|
|
4334
4338
|
}
|
|
4335
4339
|
});
|
|
4336
4340
|
|
|
4337
|
-
const EpUniVue = withInstall(_sfc_main);
|
|
4341
|
+
const EpUniVue = withInstall(_sfc_main$1);
|
|
4342
|
+
|
|
4343
|
+
const getUnifyTime = function(date, format) {
|
|
4344
|
+
if (!date) return date === 0 ? null : date;
|
|
4345
|
+
if (format === "date") {
|
|
4346
|
+
format = "YYYY-MM-DD";
|
|
4347
|
+
} else if (format === "time") {
|
|
4348
|
+
format = "YYYY-MM-DD HH:mm:ss";
|
|
4349
|
+
}
|
|
4350
|
+
if (format === "s") return dayjs(date).startOf("day").valueOf();
|
|
4351
|
+
if (format === "e") return dayjs(date).endOf("day").valueOf();
|
|
4352
|
+
return format ? dayjs(date).format(format) : dayjs(date).valueOf();
|
|
4353
|
+
};
|
|
4354
|
+
|
|
4355
|
+
const defaultFields = [
|
|
4356
|
+
{
|
|
4357
|
+
name: "\u5236\u5355\u4EBA",
|
|
4358
|
+
prop: "creator",
|
|
4359
|
+
formatter: (value, modelValue) => `${modelValue.creator}/${modelValue.creatorName}`
|
|
4360
|
+
},
|
|
4361
|
+
{
|
|
4362
|
+
name: "\u521B\u5EFA\u65F6\u95F4",
|
|
4363
|
+
prop: "createTime",
|
|
4364
|
+
// 如果有createTimestamp,用createTimestamp格式化
|
|
4365
|
+
formatter: (value, modelValue) => modelValue.createTimestamp ? getUnifyTime(modelValue.createTimestamp, "time") : value
|
|
4366
|
+
},
|
|
4367
|
+
{
|
|
4368
|
+
name: "\u6700\u65B0\u4FEE\u6539\u4EBA",
|
|
4369
|
+
prop: "editor",
|
|
4370
|
+
formatter: (value, modelValue) => `${modelValue.editor}/${modelValue.editorName}`
|
|
4371
|
+
},
|
|
4372
|
+
{
|
|
4373
|
+
name: "\u6700\u65B0\u4FEE\u6539\u65F6\u95F4",
|
|
4374
|
+
prop: "editTime",
|
|
4375
|
+
// 如果有editTimestamp,用editTimestamp格式化
|
|
4376
|
+
formatter: (value, modelValue) => modelValue.editTimestamp ? getUnifyTime(modelValue.editTimestamp, "time") : value
|
|
4377
|
+
}
|
|
4378
|
+
];
|
|
4379
|
+
const footerInfoProps = {
|
|
4380
|
+
modelValue: {
|
|
4381
|
+
type: Object,
|
|
4382
|
+
default: () => ({})
|
|
4383
|
+
},
|
|
4384
|
+
list: {
|
|
4385
|
+
type: Array,
|
|
4386
|
+
default: () => defaultFields
|
|
4387
|
+
},
|
|
4388
|
+
fieldMap: {
|
|
4389
|
+
type: Object,
|
|
4390
|
+
default: () => ({})
|
|
4391
|
+
}
|
|
4392
|
+
};
|
|
4393
|
+
|
|
4394
|
+
var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
4395
|
+
...{
|
|
4396
|
+
name: "EpFooterInfo",
|
|
4397
|
+
inheritAttrs: false
|
|
4398
|
+
},
|
|
4399
|
+
__name: "footer-info",
|
|
4400
|
+
props: footerInfoProps,
|
|
4401
|
+
setup(__props) {
|
|
4402
|
+
const bem = createNameSpace("footer-info");
|
|
4403
|
+
const props = __props;
|
|
4404
|
+
const getFieldName = (field) => {
|
|
4405
|
+
const fieldMapValue = props.fieldMap[field.prop];
|
|
4406
|
+
if (fieldMapValue && typeof fieldMapValue === "object" && "name" in fieldMapValue) {
|
|
4407
|
+
return fieldMapValue.name || field.name;
|
|
4408
|
+
}
|
|
4409
|
+
return field.name;
|
|
4410
|
+
};
|
|
4411
|
+
const getFieldValue = (field) => {
|
|
4412
|
+
const fieldMapValue = props.fieldMap[field.prop];
|
|
4413
|
+
if (fieldMapValue) {
|
|
4414
|
+
if (typeof fieldMapValue === "function") {
|
|
4415
|
+
return fieldMapValue(props.modelValue[field.prop], props.modelValue);
|
|
4416
|
+
}
|
|
4417
|
+
if (typeof fieldMapValue === "object" && "formatter" in fieldMapValue) {
|
|
4418
|
+
return fieldMapValue.formatter(
|
|
4419
|
+
props.modelValue[field.prop],
|
|
4420
|
+
props.modelValue
|
|
4421
|
+
);
|
|
4422
|
+
}
|
|
4423
|
+
}
|
|
4424
|
+
if (field.formatter) {
|
|
4425
|
+
return field.formatter(props.modelValue[field.prop], props.modelValue);
|
|
4426
|
+
}
|
|
4427
|
+
return props.modelValue[field.prop] || "";
|
|
4428
|
+
};
|
|
4429
|
+
return (_ctx, _cache) => {
|
|
4430
|
+
return vue.openBlock(), vue.createElementBlock("div", {
|
|
4431
|
+
class: vue.normalizeClass([vue.unref(bem).b(), vue.unref(prepareClassNames)()]),
|
|
4432
|
+
style: vue.normalizeStyle({ ...vue.unref(prepareStyles)() })
|
|
4433
|
+
}, [
|
|
4434
|
+
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.list, (field, index) => {
|
|
4435
|
+
return vue.openBlock(), vue.createElementBlock("div", {
|
|
4436
|
+
key: index,
|
|
4437
|
+
class: vue.normalizeClass(vue.unref(bem).e("item"))
|
|
4438
|
+
}, [
|
|
4439
|
+
vue.createElementVNode("span", {
|
|
4440
|
+
class: vue.normalizeClass(vue.unref(bem).e("label"))
|
|
4441
|
+
}, vue.toDisplayString(getFieldName(field)), 3),
|
|
4442
|
+
vue.createElementVNode("span", {
|
|
4443
|
+
class: vue.normalizeClass(vue.unref(bem).e("value"))
|
|
4444
|
+
}, vue.toDisplayString(getFieldValue(field)), 3)
|
|
4445
|
+
], 2);
|
|
4446
|
+
}), 128))
|
|
4447
|
+
], 6);
|
|
4448
|
+
};
|
|
4449
|
+
}
|
|
4450
|
+
});
|
|
4451
|
+
|
|
4452
|
+
const EpFooterInfo = withInstall(_sfc_main);
|
|
4338
4453
|
|
|
4339
4454
|
var components = [
|
|
4340
4455
|
EpButtons,
|
|
@@ -4349,10 +4464,11 @@
|
|
|
4349
4464
|
EpCustomColumn,
|
|
4350
4465
|
EpLink,
|
|
4351
4466
|
EpAttachment,
|
|
4352
|
-
EpUniVue
|
|
4467
|
+
EpUniVue,
|
|
4468
|
+
EpFooterInfo
|
|
4353
4469
|
];
|
|
4354
4470
|
|
|
4355
|
-
var version = "0.0.
|
|
4471
|
+
var version = "0.0.85";
|
|
4356
4472
|
|
|
4357
4473
|
var globalProperties = {
|
|
4358
4474
|
install(app) {
|
|
@@ -4482,18 +4598,6 @@
|
|
|
4482
4598
|
});
|
|
4483
4599
|
};
|
|
4484
4600
|
|
|
4485
|
-
const getUnifyTime = function(date, format) {
|
|
4486
|
-
if (!date) return date === 0 ? null : date;
|
|
4487
|
-
if (format === "date") {
|
|
4488
|
-
format = "YYYY-MM-DD";
|
|
4489
|
-
} else if (format === "time") {
|
|
4490
|
-
format = "YYYY-MM-DD HH:mm:ss";
|
|
4491
|
-
}
|
|
4492
|
-
if (format === "s") return dayjs(date).startOf("day").valueOf();
|
|
4493
|
-
if (format === "e") return dayjs(date).endOf("day").valueOf();
|
|
4494
|
-
return format ? dayjs(date).format(format) : dayjs(date).valueOf();
|
|
4495
|
-
};
|
|
4496
|
-
|
|
4497
4601
|
const useUtils = () => {
|
|
4498
4602
|
return {
|
|
4499
4603
|
getUnifyTime,
|
|
@@ -4521,6 +4625,7 @@
|
|
|
4521
4625
|
exports.EpButtons = EpButtons;
|
|
4522
4626
|
exports.EpCustomColumn = EpCustomColumn;
|
|
4523
4627
|
exports.EpDatePickerRange = EpDatePickerRange;
|
|
4628
|
+
exports.EpFooterInfo = EpFooterInfo;
|
|
4524
4629
|
exports.EpForm = EpForm;
|
|
4525
4630
|
exports.EpFormItem = EpFormItem;
|
|
4526
4631
|
exports.EpHeader = EpHeader;
|
|
@@ -4539,10 +4644,12 @@
|
|
|
4539
4644
|
exports.datePickerRangeEmits = datePickerRangeEmits;
|
|
4540
4645
|
exports.datePickerRangeProps = datePickerRangeProps;
|
|
4541
4646
|
exports.default = plugin;
|
|
4647
|
+
exports.defaultFields = defaultFields;
|
|
4542
4648
|
exports.expandFormItemPropsKeys = expandFormItemPropsKeys;
|
|
4543
4649
|
exports.expandFormPropsKeys = expandFormPropsKeys;
|
|
4544
4650
|
exports.expandSelectPropsKeys = expandSelectPropsKeys;
|
|
4545
4651
|
exports.expandTablePropsKeys = expandTablePropsKeys;
|
|
4652
|
+
exports.footerInfoProps = footerInfoProps;
|
|
4546
4653
|
exports.formEmits = formEmits;
|
|
4547
4654
|
exports.formEmitsKeys = formEmitsKeys;
|
|
4548
4655
|
exports.formItemProps = formItemProps;
|