@cimom-ui/standard-ui 1.1.8 → 1.1.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/standard-ui.common.js +368 -24
- package/dist/standard-ui.umd.js +368 -24
- package/dist/standard-ui.umd.min.js +2 -2
- package/package.json +1 -1
package/dist/standard-ui.umd.js
CHANGED
|
@@ -3097,7 +3097,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
3097
3097
|
|
|
3098
3098
|
var ___CSS_LOADER_EXPORT___ = _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default()((_node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default()));
|
|
3099
3099
|
// Module
|
|
3100
|
-
___CSS_LOADER_EXPORT___.push([module.id, `body .el-dialog__wrapper{display:flex;align-items:center;justify-content:center}body .el-dialog{border-radius:12px;overflow:hidden;margin:0!important;max-height:90vh;display:flex;flex-direction:column}body .el-dialog.is-fullscreen{max-height:100vh;height:100%;border-radius:0}body .el-dialog__header{background:#fff;border-bottom:1px solid #e8edf4;padding:16px 24px;flex-shrink:0}body .el-dialog__title{font-size:17px;font-weight:600;color:#1f497d}body .el-dialog__body{background:#fff;flex:1;overflow-y:auto}body .el-dialog__footer{background:#fff;border-top:1px solid #e8edf4;padding:12px 24px;flex-shrink:0}body .el-dialog .el-button{padding:7px 15px;font-size:12px;border-radius:3px}body .el-dialog .el-form-item{margin-bottom:3px}body .el-dialog .el-form-item__label{float:none;display:inline-block;text-align:left;padding:0}body .el-dialog .el-form-item__content{margin-left:0!important}.standard-dialog .el-dialog{width:-moz-fit-content;width:fit-content;min-width:300px;max-width:80vw;max-height:80vh;display:flex;flex-direction:column;overflow:hidden}.standard-dialog .el-dialog__footer,.standard-dialog .el-dialog__header{flex-shrink:0}.standard-dialog .el-dialog__body{flex:1;min-height:0;overflow-y:auto;padding:6px 12px!important}`, ""]);
|
|
3100
|
+
___CSS_LOADER_EXPORT___.push([module.id, `body .el-dialog__wrapper{display:flex;align-items:center;justify-content:center}body .el-dialog{border-radius:12px;overflow:hidden;margin:0!important;max-height:90vh;display:flex;flex-direction:column}body .el-dialog.is-fullscreen{max-height:100vh;height:100%;border-radius:0}body .el-dialog__header{background:#fff;border-bottom:1px solid #e8edf4;padding:16px 24px;flex-shrink:0}body .el-dialog__title{font-size:17px;font-weight:600;color:#1f497d}body .el-dialog__body{background:#fff;flex:1;overflow-y:auto}body .el-dialog__footer{background:#fff;border-top:1px solid #e8edf4;padding:12px 24px;flex-shrink:0}body .el-dialog .el-button{padding:7px 15px;font-size:12px;border-radius:3px}body .el-dialog .el-form-item{margin-bottom:3px}body .el-dialog .el-form-item__label{float:none;display:inline-block;text-align:left;padding:0}body .el-dialog .el-form-item__content{margin-left:0!important}.standard-dialog .el-dialog{width:-moz-fit-content;width:fit-content;min-width:300px;max-width:80vw;max-height:80vh;display:flex;flex-direction:column;overflow:hidden}.el-dialog.standard-dialog__panel.is-fullscreen,.standard-dialog .el-dialog.is-fullscreen{width:100%;min-width:0;max-width:none;height:100%;max-height:100vh;border-radius:0}.standard-dialog .el-dialog__footer,.standard-dialog .el-dialog__header{flex-shrink:0}.standard-dialog .el-dialog__wrapper{overflow:hidden}.el-dialog.is-draggable .el-dialog__header,.standard-dialog.is-draggable .el-dialog__header{cursor:move;-webkit-user-select:none;-moz-user-select:none;user-select:none}.el-dialog.is-draggable .el-dialog__headerbtn,.standard-dialog.is-draggable .el-dialog__headerbtn{cursor:pointer}.el-dialog.has-fullscreen-btn .el-dialog__header{padding-right:72px}.el-dialog.has-fullscreen-btn.is-close-hidden .el-dialog__header{padding-right:48px}.standard-dialog__fullscreen{position:absolute;top:20px;right:48px;padding:0;border:none;outline:none;background:transparent;cursor:pointer;font-size:16px;line-height:1;color:#909399}.standard-dialog__fullscreen:focus,.standard-dialog__fullscreen:hover{color:#409eff}.el-dialog.is-close-hidden .standard-dialog__fullscreen{right:20px}.standard-dialog .el-dialog__body{flex:1;min-height:0;overflow-y:auto;padding:6px 12px!important}`, ""]);
|
|
3101
3101
|
// Exports
|
|
3102
3102
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (___CSS_LOADER_EXPORT___);
|
|
3103
3103
|
|
|
@@ -3147,7 +3147,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
3147
3147
|
|
|
3148
3148
|
var ___CSS_LOADER_EXPORT___ = _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default()((_node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default()));
|
|
3149
3149
|
// Module
|
|
3150
|
-
___CSS_LOADER_EXPORT___.push([module.id, `.normal-report-table-panel{flex:1 1 0%;min-width:0;min-height:0;background:#fff;border:1px solid #e8edf4;border-radius:10px;box-shadow:0 6px 18px rgba(31,73,125,.06);height:100%;overflow:hidden;display:flex;flex-direction:column}.normal-report-table-wrap{flex:1;min-height:0;display:flex;flex-direction:column;padding:0 12px}.normal-report-table-wrap .el-table,.normal-report-table-wrap .vxe-table{flex:1;min-height:0}.normal-report-table-actions{flex-shrink:0;display:flex;align-items:center;gap:6px;padding:10px 12px;border-bottom:1px solid #edf1f6;margin-bottom:10px}.normal-report-table-actions .el-button+.el-button{margin-left:0}.normal-report-table-actions-left{flex:1 1 auto;min-width:0;display:flex;align-items:center;gap:6px}.normal-report-table-actions-right{flex-shrink:0;margin-left:auto;display:flex;align-items:center;gap:6px}.standard-toolbar-left,.standard-toolbar-right{display:flex;align-items:center;gap:6px;min-width:0}.standard-toolbar-left .el-button+.el-button,.standard-toolbar-right .el-button+.el-button{margin-left:0}.normal-report-column-setting-entry,.normal-report-column-setting-entry .el-popover__reference-wrapper{display:inline-flex;align-items:center}.normal-report-column-setting{min-width:270px}.normal-report-column-setting-header{padding-bottom:8px;border-bottom:1px solid #ebeef5}.normal-report-column-setting-list{max-height:300px;overflow-y:auto;padding:4px 0}.normal-report-column-setting-item{display:flex;align-items:center;gap:2px;padding:5px 4px;border-radius:4px}.normal-report-column-setting-item .el-checkbox{flex:1;min-width:0;margin-right:0;display:flex;align-items:center}.normal-report-column-setting-item .el-checkbox__input{display:flex;align-items:center;flex-shrink:0}.normal-report-column-setting-item .normal-report-column-setting-item-title{cursor:grab}.normal-report-column-setting-item .normal-report-column-setting-item-title:active{cursor:grabbing}.normal-report-column-setting-item .el-checkbox,.normal-report-column-setting-item .el-checkbox__label{-webkit-user-select:none;-moz-user-select:none;user-select:none}.normal-report-column-setting-item .normal-report-column-setting-item-title .el-checkbox__label{flex-shrink:0;width:var(--normal-report-title-width);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.normal-report-column-setting-item .normal-report-column-setting-item-width{flex-shrink:0;width:92px}.normal-report-column-setting-item .el-button+.el-button{margin-left:0}.normal-report-column-setting-item .is-pinned{color:#409eff}.normal-report-column-setting-item .is-sort-off,.normal-report-column-setting-item .is-sort-off:focus,.normal-report-column-setting-item .is-sort-off:hover{color:#c0c4cc}.normal-report-column-setting-item.drag-over{background:#ecf5ff}.normal-report-column-setting-footer{margin-top:8px;padding-top:8px;border-top:1px solid #ebeef5;text-align:right}.normal-report-table-footer{flex-shrink:0;box-sizing:border-box;min-height:49px;display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:10px;padding:8px 12px;border-top:1px solid #edf1f6}.normal-report-table-footer .normal-report-table-pagination{padding-top:0}.normal-report-table-footer.is-only-pagination{justify-content:flex-end}.normal-report-footer-empty{margin-top:10px}.normal-report-toolbar-empty{margin-bottom:10px}.normal-report-update-time{font-size:13px;color:#909399;flex-shrink:0}.vxe-table--context-menu-wrapper .vxe-context-menu--option-wrapper+.vxe-context-menu--option-wrapper,.vxe-table--context-menu-wrapper .vxe-table--context-menu-group-wrapper+.vxe-table--context-menu-group-wrapper{border-top:1px solid #e8eaec;margin-top:2px;padding-top:2px}.normal-report-table-pagination{flex-shrink:0;padding-top:10px;text-align:right}.normal-report-op-more{margin-left:10px}.normal-report-main-table.vxe-table .vxe-body--row{transition:transform .22s ease,filter .22s ease}.normal-report-main-table.vxe-table .vxe-body--row:hover{transform:translateY(-3px);filter:drop-shadow(0 8px 16px rgba(31,73,125,.22))}.vxe-table--footer-wrapper::-webkit-scrollbar{width:8px!important;height:8px!important}.vxe-table--footer-wrapper::-webkit-scrollbar-track{background-color:#fff!important}.vxe-table--footer-wrapper::-webkit-scrollbar-thumb{background-color:#dddee0!important;border-radius:5px!important;border:1px solid #f1f1f1!important}.vxe-table--footer-wrapper::-webkit-scrollbar-thumb:hover{background-color:#a8a8a8!important}.vxe-table--footer-wrapper::-webkit-scrollbar-thumb:active{background-color:#dddee0!important}.vxe-table--footer-wrapper::-webkit-scrollbar-corner{background-color:#fff!important}.vxe-table--body-wrapper::-webkit-scrollbar{width:8px!important;height:8px!important}.vxe-table--body-wrapper::-webkit-scrollbar-track{background-color:#fff!important}.vxe-table--body-wrapper::-webkit-scrollbar-thumb{background-color:#dddee0!important;border-radius:5px!important;border:1px solid #f1f1f1!important}.vxe-table--body-wrapper::-webkit-scrollbar-thumb:active,.vxe-table--body-wrapper::-webkit-scrollbar-thumb:hover{background-color:#dddee0!important}.vxe-table--body-wrapper::-webkit-scrollbar-corner{background-color:#fff!important}.vxe-table .vxe-header--
|
|
3150
|
+
___CSS_LOADER_EXPORT___.push([module.id, `.normal-report-table-panel{flex:1 1 0%;min-width:0;min-height:0;background:#fff;border:1px solid #e8edf4;border-radius:10px;box-shadow:0 6px 18px rgba(31,73,125,.06);height:100%;overflow:hidden;display:flex;flex-direction:column}.normal-report-table-wrap{flex:1;min-height:0;display:flex;flex-direction:column;padding:0 12px}.normal-report-table-wrap .el-table,.normal-report-table-wrap .vxe-table{flex:1;min-height:0}.normal-report-table-actions{flex-shrink:0;display:flex;align-items:center;gap:6px;padding:10px 12px;border-bottom:1px solid #edf1f6;margin-bottom:10px}.normal-report-table-actions .el-button+.el-button{margin-left:0}.normal-report-table-actions-left{flex:1 1 auto;min-width:0;display:flex;align-items:center;gap:6px}.normal-report-table-actions-right{flex-shrink:0;margin-left:auto;display:flex;align-items:center;gap:6px}.standard-toolbar-left,.standard-toolbar-right{display:flex;align-items:center;gap:6px;min-width:0}.standard-toolbar-left .el-button+.el-button,.standard-toolbar-right .el-button+.el-button{margin-left:0}.normal-report-column-setting-entry,.normal-report-column-setting-entry .el-popover__reference-wrapper{display:inline-flex;align-items:center}.normal-report-column-setting{min-width:270px}.normal-report-column-setting-header{padding-bottom:8px;border-bottom:1px solid #ebeef5}.normal-report-column-setting-list{max-height:300px;overflow-y:auto;padding:4px 0}.normal-report-column-setting-item{display:flex;align-items:center;gap:2px;padding:5px 4px;border-radius:4px}.normal-report-column-setting-item .el-checkbox{flex:1;min-width:0;margin-right:0;display:flex;align-items:center}.normal-report-column-setting-item .el-checkbox__input{display:flex;align-items:center;flex-shrink:0}.normal-report-column-setting-item .normal-report-column-setting-item-title{cursor:grab}.normal-report-column-setting-item .normal-report-column-setting-item-title:active{cursor:grabbing}.normal-report-column-setting-item .el-checkbox,.normal-report-column-setting-item .el-checkbox__label{-webkit-user-select:none;-moz-user-select:none;user-select:none}.normal-report-column-setting-item .normal-report-column-setting-item-title .el-checkbox__label{flex-shrink:0;width:var(--normal-report-title-width);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.normal-report-column-setting-item .normal-report-column-setting-item-width{flex-shrink:0;width:92px}.normal-report-column-setting-item .el-button+.el-button{margin-left:0}.normal-report-column-setting-item .is-pinned{color:#409eff}.normal-report-column-setting-item .is-sort-off,.normal-report-column-setting-item .is-sort-off:focus,.normal-report-column-setting-item .is-sort-off:hover{color:#c0c4cc}.normal-report-column-setting-item.drag-over{background:#ecf5ff}.normal-report-column-setting-footer{margin-top:8px;padding-top:8px;border-top:1px solid #ebeef5;text-align:right}.normal-report-table-footer{flex-shrink:0;box-sizing:border-box;min-height:49px;display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:10px;padding:8px 12px;border-top:1px solid #edf1f6}.normal-report-table-footer .normal-report-table-pagination{padding-top:0}.normal-report-table-footer.is-only-pagination{justify-content:flex-end}.normal-report-footer-empty{margin-top:10px}.normal-report-toolbar-empty{margin-bottom:10px}.normal-report-update-time{font-size:13px;color:#909399;flex-shrink:0}.vxe-table--context-menu-wrapper .vxe-context-menu--option-wrapper+.vxe-context-menu--option-wrapper,.vxe-table--context-menu-wrapper .vxe-table--context-menu-group-wrapper+.vxe-table--context-menu-group-wrapper{border-top:1px solid #e8eaec;margin-top:2px;padding-top:2px}.normal-report-table-pagination{flex-shrink:0;padding-top:10px;text-align:right}.normal-report-op-more{margin-left:10px}.normal-report-main-table.vxe-table .vxe-body--row{transition:transform .22s ease,filter .22s ease}.normal-report-main-table.vxe-table .vxe-body--row:hover{transform:translateY(-3px);filter:drop-shadow(0 8px 16px rgba(31,73,125,.22))}.vxe-table--footer-wrapper::-webkit-scrollbar{width:8px!important;height:8px!important}.vxe-table--footer-wrapper::-webkit-scrollbar-track{background-color:#fff!important}.vxe-table--footer-wrapper::-webkit-scrollbar-thumb{background-color:#dddee0!important;border-radius:5px!important;border:1px solid #f1f1f1!important}.vxe-table--footer-wrapper::-webkit-scrollbar-thumb:hover{background-color:#a8a8a8!important}.vxe-table--footer-wrapper::-webkit-scrollbar-thumb:active{background-color:#dddee0!important}.vxe-table--footer-wrapper::-webkit-scrollbar-corner{background-color:#fff!important}.vxe-table--body-wrapper::-webkit-scrollbar{width:8px!important;height:8px!important}.vxe-table--body-wrapper::-webkit-scrollbar-track{background-color:#fff!important}.vxe-table--body-wrapper::-webkit-scrollbar-thumb{background-color:#dddee0!important;border-radius:5px!important;border:1px solid #f1f1f1!important}.vxe-table--body-wrapper::-webkit-scrollbar-thumb:active,.vxe-table--body-wrapper::-webkit-scrollbar-thumb:hover{background-color:#dddee0!important}.vxe-table--body-wrapper::-webkit-scrollbar-corner{background-color:#fff!important}.vxe-table .vxe-header--row{height:40px!important}.vxe-table .vxe-header--column{padding:0!important;color:#636364!important;font-weight:600!important;font-size:13px!important;background-color:#f5f7fa!important}.vxe-table .vxe-header--column,.vxe-table .vxe-header--column>.vxe-cell{height:40px!important;max-height:40px!important;line-height:40px!important}.vxe-table .vxe-header--column>.vxe-cell{padding-top:0!important;padding-bottom:0!important}.vxe-table .vxe-body--row{height:36px!important}.vxe-table .vxe-body--column>.vxe-cell,.vxe-table .vxe-body--row td.vxe-body--column{height:36px!important;max-height:36px!important;line-height:36px!important;padding-top:0!important;padding-bottom:0!important}.vxe-table .vxe-body--column.col--active>.vxe-cell{overflow:visible!important;line-height:normal!important}.vxe-table .vxe-body--column.col--active .el-input,.vxe-table .vxe-body--column.col--active .el-input__inner,.vxe-table .vxe-body--column.col--active .vxe-default-input,.vxe-table .vxe-body--column.col--active .vxe-default-select,.vxe-table .vxe-body--column.col--active .vxe-default-textarea,.vxe-table .vxe-body--column.col--active .vxe-input{width:100%;height:36px!important;max-height:36px!important;line-height:34px!important;box-sizing:border-box}.vxe-header--column.nr-header-drag-source{opacity:.45}.vxe-header--column.nr-header-drag-target{background-color:rgba(64,158,255,.08);box-shadow:inset 2px 0 0 #409eff}body.nr-header-dragging{-webkit-user-select:none;-moz-user-select:none;user-select:none}body.nr-header-dragging .vxe-header--column{cursor:grab}`, ""]);
|
|
3151
3151
|
// Exports
|
|
3152
3152
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (___CSS_LOADER_EXPORT___);
|
|
3153
3153
|
|
|
@@ -118486,24 +118486,49 @@ var component = normalizeComponent(
|
|
|
118486
118486
|
)
|
|
118487
118487
|
|
|
118488
118488
|
/* harmony default export */ const StandardButton = (component.exports);
|
|
118489
|
-
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/StandardDialog/index.vue?vue&type=template&id=
|
|
118490
|
-
var
|
|
118489
|
+
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/StandardDialog/index.vue?vue&type=template&id=3b8fc166
|
|
118490
|
+
var StandardDialogvue_type_template_id_3b8fc166_render = function render() {
|
|
118491
118491
|
var _vm = this,
|
|
118492
118492
|
_c = _vm._self._c;
|
|
118493
118493
|
return _c('section', {
|
|
118494
|
-
staticClass: "standard-dialog"
|
|
118494
|
+
staticClass: "standard-dialog",
|
|
118495
|
+
"class": {
|
|
118496
|
+
'is-draggable': _vm.canDrag
|
|
118497
|
+
}
|
|
118495
118498
|
}, [_c('el-dialog', _vm._g(_vm._b({
|
|
118499
|
+
ref: "dialog",
|
|
118496
118500
|
attrs: {
|
|
118497
118501
|
"visible": _vm.dialogVisible,
|
|
118498
118502
|
"title": _vm.title,
|
|
118503
|
+
"fullscreen": _vm.fullscreenActive,
|
|
118504
|
+
"custom-class": _vm.dialogCustomClass,
|
|
118499
118505
|
"close-on-click-modal": _vm.closeOnClickModal
|
|
118500
118506
|
},
|
|
118501
118507
|
on: {
|
|
118502
118508
|
"update:visible": function updateVisible($event) {
|
|
118503
118509
|
_vm.dialogVisible = $event;
|
|
118510
|
+
},
|
|
118511
|
+
"opened": _vm.markDraggable
|
|
118512
|
+
}
|
|
118513
|
+
}, 'el-dialog', _vm.$attrs, false), _vm.$listeners), [_c('template', {
|
|
118514
|
+
slot: "title"
|
|
118515
|
+
}, [_c('span', {
|
|
118516
|
+
staticClass: "el-dialog__title"
|
|
118517
|
+
}, [_vm._v(_vm._s(_vm.title))]), _vm.fullscreenButtonVisible ? _c('button', {
|
|
118518
|
+
staticClass: "standard-dialog__fullscreen",
|
|
118519
|
+
attrs: {
|
|
118520
|
+
"type": "button",
|
|
118521
|
+
"aria-label": _vm.fullscreenActive ? '退出全屏' : '全屏'
|
|
118522
|
+
},
|
|
118523
|
+
on: {
|
|
118524
|
+
"click": function click($event) {
|
|
118525
|
+
$event.stopPropagation();
|
|
118526
|
+
return _vm.toggleFullscreen.apply(null, arguments);
|
|
118504
118527
|
}
|
|
118505
118528
|
}
|
|
118506
|
-
},
|
|
118529
|
+
}, [_c('i', {
|
|
118530
|
+
"class": _vm.fullscreenActive ? 'el-icon-c-scale-to-original' : 'el-icon-full-screen'
|
|
118531
|
+
})]) : _vm._e()]), _vm._t("default"), _c('template', {
|
|
118507
118532
|
slot: "footer"
|
|
118508
118533
|
}, [_vm.showCancel ? _c('el-button', {
|
|
118509
118534
|
attrs: {
|
|
@@ -118523,7 +118548,7 @@ var StandardDialogvue_type_template_id_cddded30_render = function render() {
|
|
|
118523
118548
|
}
|
|
118524
118549
|
}, [_vm._v("确定")]) : _vm._e()], 1)], 2)], 1);
|
|
118525
118550
|
};
|
|
118526
|
-
var
|
|
118551
|
+
var StandardDialogvue_type_template_id_3b8fc166_staticRenderFns = [];
|
|
118527
118552
|
|
|
118528
118553
|
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/StandardDialog/index.vue?vue&type=script&lang=js
|
|
118529
118554
|
/* harmony default export */ const StandardDialogvue_type_script_lang_js = ({
|
|
@@ -118563,8 +118588,34 @@ var StandardDialogvue_type_template_id_cddded30_staticRenderFns = [];
|
|
|
118563
118588
|
closeOnClickModal: {
|
|
118564
118589
|
type: Boolean,
|
|
118565
118590
|
"default": false
|
|
118591
|
+
},
|
|
118592
|
+
// 是否允许拖拽标题栏移动弹窗(默认开启,传 false 关闭)
|
|
118593
|
+
draggable: {
|
|
118594
|
+
type: Boolean,
|
|
118595
|
+
"default": true
|
|
118596
|
+
},
|
|
118597
|
+
// 是否显示右上角全屏切换按钮(默认不显示,避免已有弹窗多出一个按钮)
|
|
118598
|
+
showFullscreen: {
|
|
118599
|
+
type: Boolean,
|
|
118600
|
+
"default": false
|
|
118601
|
+
},
|
|
118602
|
+
// 是否默认全屏。为 true 时打开即全屏,且全屏切换按钮固定显示
|
|
118603
|
+
defaultFullscreen: {
|
|
118604
|
+
type: Boolean,
|
|
118605
|
+
"default": false
|
|
118606
|
+
},
|
|
118607
|
+
// 打开时是否全屏。声明为 prop 后不再经 $attrs 透传,由内部状态接管 el-dialog
|
|
118608
|
+
fullscreen: {
|
|
118609
|
+
type: Boolean,
|
|
118610
|
+
"default": false
|
|
118566
118611
|
}
|
|
118567
118612
|
},
|
|
118613
|
+
data: function data() {
|
|
118614
|
+
return {
|
|
118615
|
+
// 本次打开期间的全屏状态。关闭再打开时按 fullscreen / default-fullscreen 重新取值
|
|
118616
|
+
fullscreenActive: false
|
|
118617
|
+
};
|
|
118618
|
+
},
|
|
118568
118619
|
computed: {
|
|
118569
118620
|
// v-model 双向桥接:内部 visible.sync 改动时同步回父组件
|
|
118570
118621
|
dialogVisible: {
|
|
@@ -118574,8 +118625,75 @@ var StandardDialogvue_type_template_id_cddded30_staticRenderFns = [];
|
|
|
118574
118625
|
set: function set(val) {
|
|
118575
118626
|
this.$emit("update:visible", val);
|
|
118576
118627
|
}
|
|
118628
|
+
},
|
|
118629
|
+
// 全屏弹窗铺满视口,拖拽没有意义
|
|
118630
|
+
canDrag: function canDrag() {
|
|
118631
|
+
return this.draggable && !this.fullscreenActive;
|
|
118632
|
+
},
|
|
118633
|
+
// 默认全屏时切换按钮固定显示,不再依赖 show-fullscreen
|
|
118634
|
+
fullscreenButtonVisible: function fullscreenButtonVisible() {
|
|
118635
|
+
return this.showFullscreen || this.defaultFullscreen;
|
|
118636
|
+
},
|
|
118637
|
+
// 打开时的全屏状态:fullscreen 或 default-fullscreen 任一为真即全屏
|
|
118638
|
+
initialFullscreen: function initialFullscreen() {
|
|
118639
|
+
return this.fullscreen || this.defaultFullscreen;
|
|
118640
|
+
},
|
|
118641
|
+
// 未传 show-close 时 Element 默认显示关闭按钮
|
|
118642
|
+
showCloseButton: function showCloseButton() {
|
|
118643
|
+
var attrs = this.$attrs || {};
|
|
118644
|
+
var value = attrs.showClose !== undefined ? attrs.showClose : attrs["show-close"];
|
|
118645
|
+
if (value === undefined) return true;
|
|
118646
|
+
return value !== false && value !== "false";
|
|
118647
|
+
},
|
|
118648
|
+
// 标题栏光标与全屏按钮占位。合并外部 custom-class,避免 v-bind="$attrs" 把外部类名冲掉
|
|
118649
|
+
dialogCustomClass: function dialogCustomClass() {
|
|
118650
|
+
var passed = this.$attrs.customClass || this.$attrs["custom-class"] || "";
|
|
118651
|
+
var classes = [passed, "standard-dialog__panel"];
|
|
118652
|
+
if (this.canDrag) classes.push("is-draggable");
|
|
118653
|
+
if (this.fullscreenButtonVisible) classes.push("has-fullscreen-btn");
|
|
118654
|
+
if (!this.showCloseButton) classes.push("is-close-hidden");
|
|
118655
|
+
return classes.filter(Boolean).join(" ");
|
|
118577
118656
|
}
|
|
118578
118657
|
},
|
|
118658
|
+
watch: {
|
|
118659
|
+
visible: function visible(val) {
|
|
118660
|
+
var _this = this;
|
|
118661
|
+
if (val) {
|
|
118662
|
+
// 每次打开按全屏参数恢复,清掉上次拖拽留下的 fixed 定位
|
|
118663
|
+
this.fullscreenActive = this.initialFullscreen;
|
|
118664
|
+
this.resetDragPosition();
|
|
118665
|
+
this.$nextTick(function () {
|
|
118666
|
+
return _this.markDraggable();
|
|
118667
|
+
});
|
|
118668
|
+
return;
|
|
118669
|
+
}
|
|
118670
|
+
this.stopDrag();
|
|
118671
|
+
},
|
|
118672
|
+
draggable: function draggable() {
|
|
118673
|
+
if (!this.draggable) {
|
|
118674
|
+
this.stopDrag();
|
|
118675
|
+
this.resetDragPosition();
|
|
118676
|
+
}
|
|
118677
|
+
this.markDraggable();
|
|
118678
|
+
}
|
|
118679
|
+
},
|
|
118680
|
+
created: function created() {
|
|
118681
|
+
this._dragging = false;
|
|
118682
|
+
this._dialogEl = null;
|
|
118683
|
+
this.fullscreenActive = this.initialFullscreen;
|
|
118684
|
+
},
|
|
118685
|
+
mounted: function mounted() {
|
|
118686
|
+
var _this2 = this;
|
|
118687
|
+
// 在 document 捕获阶段听按下:不依赖弹层内部 ref,标题栏一渲染就能拖
|
|
118688
|
+
document.addEventListener("mousedown", this.onDocumentMouseDown, true);
|
|
118689
|
+
this.$nextTick(function () {
|
|
118690
|
+
return _this2.markDraggable();
|
|
118691
|
+
});
|
|
118692
|
+
},
|
|
118693
|
+
beforeDestroy: function beforeDestroy() {
|
|
118694
|
+
this.stopDrag();
|
|
118695
|
+
document.removeEventListener("mousedown", this.onDocumentMouseDown, true);
|
|
118696
|
+
},
|
|
118579
118697
|
methods: {
|
|
118580
118698
|
// 取消:通知父组件并自动关闭弹窗
|
|
118581
118699
|
handleCancel: function handleCancel() {
|
|
@@ -118585,6 +118703,150 @@ var StandardDialogvue_type_template_id_cddded30_staticRenderFns = [];
|
|
|
118585
118703
|
// 确定:仅通知父组件(是否关闭由父组件在业务处理完成后控制)
|
|
118586
118704
|
handleConfirm: function handleConfirm() {
|
|
118587
118705
|
this.$emit("confirm");
|
|
118706
|
+
},
|
|
118707
|
+
// 进入全屏前清掉拖拽留下的 left / top / width,退出时恢复居中
|
|
118708
|
+
toggleFullscreen: function toggleFullscreen() {
|
|
118709
|
+
var _this3 = this;
|
|
118710
|
+
this.stopDrag();
|
|
118711
|
+
this.resetDragPosition();
|
|
118712
|
+
this.fullscreenActive = !this.fullscreenActive;
|
|
118713
|
+
this.$emit("update:fullscreen", this.fullscreenActive);
|
|
118714
|
+
this.$nextTick(function () {
|
|
118715
|
+
return _this3.markDraggable();
|
|
118716
|
+
});
|
|
118717
|
+
},
|
|
118718
|
+
// el-dialog 根节点是 wrapper。append-to-body 后节点会离开 section,仍以组件实例上的 $el 为准
|
|
118719
|
+
getWrapperEl: function getWrapperEl() {
|
|
118720
|
+
var dialog = this.$refs.dialog;
|
|
118721
|
+
var candidates = [];
|
|
118722
|
+
if (dialog && dialog.$el) candidates.push(dialog.$el);
|
|
118723
|
+
if (this.$el) candidates.push(this.$el);
|
|
118724
|
+
for (var i = 0; i < candidates.length; i++) {
|
|
118725
|
+
var el = candidates[i];
|
|
118726
|
+
if (!el || el.nodeType !== 1) continue;
|
|
118727
|
+
if (el.classList.contains("el-dialog__wrapper")) return el;
|
|
118728
|
+
if (el.querySelector) {
|
|
118729
|
+
var wrapper = el.querySelector(".el-dialog__wrapper");
|
|
118730
|
+
if (wrapper) return wrapper;
|
|
118731
|
+
}
|
|
118732
|
+
}
|
|
118733
|
+
return null;
|
|
118734
|
+
},
|
|
118735
|
+
getDialogEl: function getDialogEl() {
|
|
118736
|
+
var wrapper = this.getWrapperEl();
|
|
118737
|
+
return wrapper ? wrapper.querySelector(".el-dialog") : null;
|
|
118738
|
+
},
|
|
118739
|
+
markDraggable: function markDraggable() {
|
|
118740
|
+
var dialogEl = this.getDialogEl();
|
|
118741
|
+
if (!dialogEl) return;
|
|
118742
|
+
dialogEl.classList.toggle("is-draggable", this.canDrag);
|
|
118743
|
+
},
|
|
118744
|
+
// 只响应本弹窗标题栏。关闭按钮、标题里的表单控件不进入拖拽
|
|
118745
|
+
onDocumentMouseDown: function onDocumentMouseDown(event) {
|
|
118746
|
+
if (!this.canDrag || !this.visible || this._dragging || event.button !== 0) return;
|
|
118747
|
+
var target = event.target;
|
|
118748
|
+
if (!target || !target.closest) return;
|
|
118749
|
+
if (target.closest(".el-dialog__headerbtn, button, input, textarea, select, a")) return;
|
|
118750
|
+
var header = target.closest(".el-dialog__header");
|
|
118751
|
+
if (!header) return;
|
|
118752
|
+
var dialogEl = header.closest(".el-dialog");
|
|
118753
|
+
var wrapper = this.getWrapperEl();
|
|
118754
|
+
if (!dialogEl || !wrapper || !wrapper.contains(dialogEl)) return;
|
|
118755
|
+
if (dialogEl.classList.contains("is-fullscreen")) return;
|
|
118756
|
+
this.startDrag(event, dialogEl);
|
|
118757
|
+
},
|
|
118758
|
+
// 弹窗默认靠 flex 居中,直接改 transform / margin 会被居中布局吃掉。
|
|
118759
|
+
// 按下时改成 fixed,并用按下后的实际位置回正,避免切换定位时跳动
|
|
118760
|
+
startDrag: function startDrag(event, dialogEl) {
|
|
118761
|
+
var rect = dialogEl.getBoundingClientRect();
|
|
118762
|
+
dialogEl.style.width = rect.width + "px";
|
|
118763
|
+
dialogEl.style.position = "fixed";
|
|
118764
|
+
dialogEl.style.margin = "0";
|
|
118765
|
+
dialogEl.style.transform = "none";
|
|
118766
|
+
dialogEl.style.left = rect.left + "px";
|
|
118767
|
+
dialogEl.style.top = rect.top + "px";
|
|
118768
|
+
var fixedRect = dialogEl.getBoundingClientRect();
|
|
118769
|
+
var left = rect.left + (rect.left - fixedRect.left);
|
|
118770
|
+
var top = rect.top + (rect.top - fixedRect.top);
|
|
118771
|
+
dialogEl.style.left = left + "px";
|
|
118772
|
+
dialogEl.style.top = top + "px";
|
|
118773
|
+
this._dragging = true;
|
|
118774
|
+
this._moved = false;
|
|
118775
|
+
this._dialogEl = dialogEl;
|
|
118776
|
+
this._startX = event.clientX;
|
|
118777
|
+
this._startY = event.clientY;
|
|
118778
|
+
this._originLeft = left;
|
|
118779
|
+
this._originTop = top;
|
|
118780
|
+
this._dialogWidth = rect.width;
|
|
118781
|
+
this._prevUserSelect = document.body.style.userSelect;
|
|
118782
|
+
this._prevCursor = document.body.style.cursor;
|
|
118783
|
+
document.body.style.userSelect = "none";
|
|
118784
|
+
document.body.style.cursor = "move";
|
|
118785
|
+
window.addEventListener("mousemove", this.onDragMove, true);
|
|
118786
|
+
window.addEventListener("mouseup", this.onDragEnd, true);
|
|
118787
|
+
window.addEventListener("blur", this.onDragEnd);
|
|
118788
|
+
event.preventDefault();
|
|
118789
|
+
},
|
|
118790
|
+
onDragMove: function onDragMove(event) {
|
|
118791
|
+
if (!this._dragging || !this._dialogEl) return;
|
|
118792
|
+
var left = this._originLeft + (event.clientX - this._startX);
|
|
118793
|
+
var top = this._originTop + (event.clientY - this._startY);
|
|
118794
|
+
// 至少留出一段标题栏,避免整个弹窗被拖出视口后无法再拖回来
|
|
118795
|
+
var minVisible = 48;
|
|
118796
|
+
var maxLeft = window.innerWidth - minVisible;
|
|
118797
|
+
var minLeft = minVisible - this._dialogWidth;
|
|
118798
|
+
var maxTop = window.innerHeight - minVisible;
|
|
118799
|
+
left = Math.min(maxLeft, Math.max(minLeft, left));
|
|
118800
|
+
top = Math.min(maxTop, Math.max(0, top));
|
|
118801
|
+
left = Math.round(left);
|
|
118802
|
+
top = Math.round(top);
|
|
118803
|
+
this._dialogEl.style.left = left + "px";
|
|
118804
|
+
this._dialogEl.style.top = top + "px";
|
|
118805
|
+
if (left !== Math.round(this._originLeft) || top !== Math.round(this._originTop)) {
|
|
118806
|
+
this._moved = true;
|
|
118807
|
+
}
|
|
118808
|
+
event.preventDefault();
|
|
118809
|
+
},
|
|
118810
|
+
onDragEnd: function onDragEnd(event) {
|
|
118811
|
+
if (!this._dragging) return;
|
|
118812
|
+
var moved = this._moved;
|
|
118813
|
+
var isMouseUp = event && event.type === "mouseup";
|
|
118814
|
+
this.stopDrag();
|
|
118815
|
+
// 拖拽松手后的 click 会冒泡到遮罩,已移动时吃掉这一次,避免误关闭
|
|
118816
|
+
if (moved && isMouseUp) {
|
|
118817
|
+
this.suppressNextClick();
|
|
118818
|
+
}
|
|
118819
|
+
},
|
|
118820
|
+
stopDrag: function stopDrag() {
|
|
118821
|
+
if (!this._dragging) return;
|
|
118822
|
+
this._dragging = false;
|
|
118823
|
+
window.removeEventListener("mousemove", this.onDragMove, true);
|
|
118824
|
+
window.removeEventListener("mouseup", this.onDragEnd, true);
|
|
118825
|
+
window.removeEventListener("blur", this.onDragEnd);
|
|
118826
|
+
document.body.style.userSelect = this._prevUserSelect || "";
|
|
118827
|
+
document.body.style.cursor = this._prevCursor || "";
|
|
118828
|
+
},
|
|
118829
|
+
suppressNextClick: function suppressNextClick() {
|
|
118830
|
+
var _preventClick = function preventClick(event) {
|
|
118831
|
+
event.preventDefault();
|
|
118832
|
+
event.stopPropagation();
|
|
118833
|
+
document.removeEventListener("click", _preventClick, true);
|
|
118834
|
+
};
|
|
118835
|
+
document.addEventListener("click", _preventClick, true);
|
|
118836
|
+
setTimeout(function () {
|
|
118837
|
+
document.removeEventListener("click", _preventClick, true);
|
|
118838
|
+
}, 50);
|
|
118839
|
+
},
|
|
118840
|
+
resetDragPosition: function resetDragPosition() {
|
|
118841
|
+
var dialogEl = this._dialogEl || this.getDialogEl();
|
|
118842
|
+
this._dialogEl = dialogEl;
|
|
118843
|
+
if (!dialogEl) return;
|
|
118844
|
+
dialogEl.style.position = "";
|
|
118845
|
+
dialogEl.style.margin = "";
|
|
118846
|
+
dialogEl.style.left = "";
|
|
118847
|
+
dialogEl.style.top = "";
|
|
118848
|
+
dialogEl.style.width = "";
|
|
118849
|
+
dialogEl.style.transform = "";
|
|
118588
118850
|
}
|
|
118589
118851
|
}
|
|
118590
118852
|
});
|
|
@@ -118605,8 +118867,8 @@ var StandardDialogvue_type_style_index_0_prod_lang_scss_external = __webpack_req
|
|
|
118605
118867
|
|
|
118606
118868
|
var StandardDialog_component = normalizeComponent(
|
|
118607
118869
|
components_StandardDialogvue_type_script_lang_js,
|
|
118608
|
-
|
|
118609
|
-
|
|
118870
|
+
StandardDialogvue_type_template_id_3b8fc166_render,
|
|
118871
|
+
StandardDialogvue_type_template_id_3b8fc166_staticRenderFns,
|
|
118610
118872
|
false,
|
|
118611
118873
|
null,
|
|
118612
118874
|
null,
|
|
@@ -120847,8 +121109,8 @@ var StandardTimePick_component = normalizeComponent(
|
|
|
120847
121109
|
)
|
|
120848
121110
|
|
|
120849
121111
|
/* harmony default export */ const StandardTimePick = (StandardTimePick_component.exports);
|
|
120850
|
-
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/StandardTable/index.vue?vue&type=template&id=
|
|
120851
|
-
var
|
|
121112
|
+
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/StandardTable/index.vue?vue&type=template&id=05e17600
|
|
121113
|
+
var StandardTablevue_type_template_id_05e17600_render = function render() {
|
|
120852
121114
|
var _vm = this,
|
|
120853
121115
|
_c = _vm._self._c;
|
|
120854
121116
|
return _c('section', {
|
|
@@ -121082,6 +121344,9 @@ var StandardTablevue_type_template_id_6731fdd3_render = function render() {
|
|
|
121082
121344
|
"border": "",
|
|
121083
121345
|
"highlight-current-row": "",
|
|
121084
121346
|
"row-config": _vm.rowConfig,
|
|
121347
|
+
"header-cell-config": _vm.headerCellConfig,
|
|
121348
|
+
"cell-config": _vm.cellConfig,
|
|
121349
|
+
"edit-config": _vm.resolvedEditConfig,
|
|
121085
121350
|
"tree-config": _vm.treeConfig,
|
|
121086
121351
|
"column-config": {
|
|
121087
121352
|
resizable: true
|
|
@@ -121098,7 +121363,9 @@ var StandardTablevue_type_template_id_6731fdd3_render = function render() {
|
|
|
121098
121363
|
"checkbox-change": _vm.handleCheckboxChange,
|
|
121099
121364
|
"checkbox-all": _vm.handleCheckboxChange,
|
|
121100
121365
|
"current-change": _vm.handleCurrentRowChange,
|
|
121101
|
-
"toggle-tree-expand": _vm.handleToggleTreeExpand
|
|
121366
|
+
"toggle-tree-expand": _vm.handleToggleTreeExpand,
|
|
121367
|
+
"edit-activated": _vm.onEditActivated,
|
|
121368
|
+
"edit-closed": _vm.onEditClosed
|
|
121102
121369
|
},
|
|
121103
121370
|
nativeOn: {
|
|
121104
121371
|
"mousedown": function mousedown($event) {
|
|
@@ -121130,7 +121397,8 @@ var StandardTablevue_type_template_id_6731fdd3_render = function render() {
|
|
|
121130
121397
|
"sort-by": col.sortBy,
|
|
121131
121398
|
"show-overflow": col.showOverflow,
|
|
121132
121399
|
"resizable": col.resizable,
|
|
121133
|
-
"tree-node": col.treeNode
|
|
121400
|
+
"tree-node": col.treeNode,
|
|
121401
|
+
"edit-render": col.editRender || undefined
|
|
121134
121402
|
},
|
|
121135
121403
|
scopedSlots: _vm._u([{
|
|
121136
121404
|
key: "default",
|
|
@@ -121142,7 +121410,18 @@ var StandardTablevue_type_template_id_6731fdd3_render = function render() {
|
|
|
121142
121410
|
}
|
|
121143
121411
|
})];
|
|
121144
121412
|
}
|
|
121145
|
-
}
|
|
121413
|
+
}, col.hasEditSlot ? {
|
|
121414
|
+
key: "edit",
|
|
121415
|
+
fn: function fn(scope) {
|
|
121416
|
+
return [_c('normal-report-cell', {
|
|
121417
|
+
attrs: {
|
|
121418
|
+
"col": col,
|
|
121419
|
+
"scope": scope,
|
|
121420
|
+
"edit": ""
|
|
121421
|
+
}
|
|
121422
|
+
})];
|
|
121423
|
+
}
|
|
121424
|
+
} : null], null, true)
|
|
121146
121425
|
});
|
|
121147
121426
|
})], 2)], 1), _vm.getFooterVisible() ? _c('div', {
|
|
121148
121427
|
staticClass: "normal-report-table-footer",
|
|
@@ -121165,7 +121444,7 @@ var StandardTablevue_type_template_id_6731fdd3_render = function render() {
|
|
|
121165
121444
|
}
|
|
121166
121445
|
}) : _vm.getFooterEmptyVisible() ? _c('standard-footer-empty') : _vm._e()], 1);
|
|
121167
121446
|
};
|
|
121168
|
-
var
|
|
121447
|
+
var StandardTablevue_type_template_id_05e17600_staticRenderFns = [];
|
|
121169
121448
|
|
|
121170
121449
|
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/StandardTable/ToolbarEmpty.vue?vue&type=script&lang=js
|
|
121171
121450
|
/**
|
|
@@ -121306,15 +121585,20 @@ var NormalReportCell = {
|
|
|
121306
121585
|
"default": function _default() {
|
|
121307
121586
|
return {};
|
|
121308
121587
|
}
|
|
121588
|
+
},
|
|
121589
|
+
edit: {
|
|
121590
|
+
type: Boolean,
|
|
121591
|
+
"default": false
|
|
121309
121592
|
}
|
|
121310
121593
|
},
|
|
121311
121594
|
render: function render(h, ctx) {
|
|
121312
121595
|
var _ctx$props = ctx.props,
|
|
121313
121596
|
col = _ctx$props.col,
|
|
121314
|
-
scope = _ctx$props.scope
|
|
121597
|
+
scope = _ctx$props.scope,
|
|
121598
|
+
edit = _ctx$props.edit;
|
|
121315
121599
|
var parent = ctx.parent;
|
|
121316
121600
|
if (!col || !parent || typeof parent.renderCell !== 'function') return null;
|
|
121317
|
-
var result = parent.renderCell(col, scope);
|
|
121601
|
+
var result = parent.renderCell(col, scope, edit);
|
|
121318
121602
|
if (result == null || result === '') return null;
|
|
121319
121603
|
if (Array.isArray(result)) {
|
|
121320
121604
|
return result.map(function (item) {
|
|
@@ -121423,6 +121707,13 @@ var NormalReportSlotView = {
|
|
|
121423
121707
|
type: Object,
|
|
121424
121708
|
"default": null
|
|
121425
121709
|
},
|
|
121710
|
+
// 单元格编辑配置(vxe-table edit-config):
|
|
121711
|
+
// 不传时,只要有列设置了 editable / edit-render / #edit,自动按点击单元格编辑;
|
|
121712
|
+
// 传 false 关闭编辑;传对象则原样交给 vxe-table(如 { trigger: 'dblclick', mode: 'row' })
|
|
121713
|
+
editConfig: {
|
|
121714
|
+
type: [Object, Boolean],
|
|
121715
|
+
"default": null
|
|
121716
|
+
},
|
|
121426
121717
|
// 表格首列是否显示多选框
|
|
121427
121718
|
showCheckbox: {
|
|
121428
121719
|
type: Boolean,
|
|
@@ -121498,6 +121789,18 @@ var NormalReportSlotView = {
|
|
|
121498
121789
|
// ===== 其它 =====
|
|
121499
121790
|
updateTime: '--',
|
|
121500
121791
|
// 数据更新时间(tableData 变化时自动刷新)
|
|
121792
|
+
// 表头行高 40px、内容行高 36px:交给 vxe-table 计算行高,和样式保持一致
|
|
121793
|
+
headerCellConfig: {
|
|
121794
|
+
height: 40
|
|
121795
|
+
},
|
|
121796
|
+
cellConfig: {
|
|
121797
|
+
height: 36
|
|
121798
|
+
},
|
|
121799
|
+
// 有可编辑列且未传 edit-config 时使用,保持对象引用稳定,避免表格反复重置编辑状态
|
|
121800
|
+
defaultEditConfig: {
|
|
121801
|
+
trigger: 'click',
|
|
121802
|
+
mode: 'cell'
|
|
121803
|
+
},
|
|
121501
121804
|
// ===== 表头右键菜单 / 拖拽换列 =====
|
|
121502
121805
|
headerMenuCtx: null,
|
|
121503
121806
|
// 表头右键菜单当前列上下文 { uid, column }(visibleMethod 中记录)
|
|
@@ -121693,7 +121996,12 @@ var NormalReportSlotView = {
|
|
|
121693
121996
|
// 是否显示排序功能:优先取列设置弹层设置的值,未设置时取列组件声明
|
|
121694
121997
|
sortable: st && st.sortable != null ? st.sortable : !!comp.sortable,
|
|
121695
121998
|
showOverflow: comp.showOverflow,
|
|
121696
|
-
resizable: comp.resizable
|
|
121999
|
+
resizable: comp.resizable,
|
|
122000
|
+
// 编辑:edit-render 优先;editable 默认文本输入;仅有 #edit 插槽时用空配置打开编辑
|
|
122001
|
+
editRender: comp.editRender || (comp.editable ? {
|
|
122002
|
+
name: 'input'
|
|
122003
|
+
} : comp.$scopedSlots && comp.$scopedSlots.edit ? {} : null),
|
|
122004
|
+
hasEditSlot: !!(comp.$scopedSlots && comp.$scopedSlots.edit)
|
|
121697
122005
|
};
|
|
121698
122006
|
}).filter(Boolean);
|
|
121699
122007
|
},
|
|
@@ -121734,6 +122042,8 @@ var NormalReportSlotView = {
|
|
|
121734
122042
|
} : undefined,
|
|
121735
122043
|
showOverflow: c.showOverflow !== false,
|
|
121736
122044
|
resizable: c.resizable !== false,
|
|
122045
|
+
editRender: c.editRender || null,
|
|
122046
|
+
hasEditSlot: !!c.hasEditSlot,
|
|
121737
122047
|
comp: c.comp,
|
|
121738
122048
|
isSeq: isSeq,
|
|
121739
122049
|
isOp: false
|
|
@@ -121770,6 +122080,15 @@ var NormalReportSlotView = {
|
|
|
121770
122080
|
return col.visible;
|
|
121771
122081
|
});
|
|
121772
122082
|
return some && !this.columnAllVisible;
|
|
122083
|
+
},
|
|
122084
|
+
// 未显式传入 edit-config 时,存在可编辑列才打开点击编辑,避免影响普通表格的点击行为
|
|
122085
|
+
resolvedEditConfig: function resolvedEditConfig() {
|
|
122086
|
+
if (this.editConfig === false) return null;
|
|
122087
|
+
if (this.editConfig) return this.editConfig;
|
|
122088
|
+
var editable = this.vxeColumns.some(function (col) {
|
|
122089
|
+
return col.editRender;
|
|
122090
|
+
});
|
|
122091
|
+
return editable ? this.defaultEditConfig : null;
|
|
121773
122092
|
}
|
|
121774
122093
|
},
|
|
121775
122094
|
watch: {
|
|
@@ -121945,7 +122264,7 @@ var NormalReportSlotView = {
|
|
|
121945
122264
|
},
|
|
121946
122265
|
// ===== 单元格渲染 =====
|
|
121947
122266
|
// 渲染单元格内容(统一分发):seq 序号 / 操作列按钮 / 列组件插槽与字段值
|
|
121948
|
-
renderCell: function renderCell(col, scope) {
|
|
122267
|
+
renderCell: function renderCell(col, scope, isEdit) {
|
|
121949
122268
|
// 内置序号列:vxe 插槽参数 seq 即显示序号
|
|
121950
122269
|
if (col.isSeq) {
|
|
121951
122270
|
return String(scope.seq != null ? scope.seq : '');
|
|
@@ -121956,6 +122275,10 @@ var NormalReportSlotView = {
|
|
|
121956
122275
|
}
|
|
121957
122276
|
var comp = col.comp;
|
|
121958
122277
|
if (!comp) return '';
|
|
122278
|
+
// 编辑态优先走列的 #edit 插槽
|
|
122279
|
+
if (isEdit && comp.$scopedSlots && typeof comp.$scopedSlots.edit === 'function') {
|
|
122280
|
+
return comp.$scopedSlots.edit(scope);
|
|
122281
|
+
}
|
|
121959
122282
|
// 作用域插槽 > 普通插槽 > formatter > 原始字段值
|
|
121960
122283
|
if (comp.$scopedSlots && typeof comp.$scopedSlots["default"] === 'function') {
|
|
121961
122284
|
return comp.$scopedSlots["default"](scope);
|
|
@@ -122253,6 +122576,13 @@ var NormalReportSlotView = {
|
|
|
122253
122576
|
return _this14.applyColumnOrder();
|
|
122254
122577
|
});
|
|
122255
122578
|
},
|
|
122579
|
+
// ===== 单元格编辑 =====
|
|
122580
|
+
onEditActivated: function onEditActivated(params, evnt) {
|
|
122581
|
+
this.$emit('edit-activated', params, evnt);
|
|
122582
|
+
},
|
|
122583
|
+
onEditClosed: function onEditClosed(params, evnt) {
|
|
122584
|
+
this.$emit('edit-closed', params, evnt);
|
|
122585
|
+
},
|
|
122256
122586
|
// ===== 表头拖拽换列 =====
|
|
122257
122587
|
// 通过 vxe-table 根元素原生 mousedown(冒泡)捕获表头按下:
|
|
122258
122588
|
// 排除列宽拖拽手柄与内置列(多选框/操作列),
|
|
@@ -122662,8 +122992,8 @@ var StandardTablevue_type_style_index_0_prod_lang_scss_external = __webpack_requ
|
|
|
122662
122992
|
|
|
122663
122993
|
var StandardTable_component = normalizeComponent(
|
|
122664
122994
|
components_StandardTablevue_type_script_lang_js,
|
|
122665
|
-
|
|
122666
|
-
|
|
122995
|
+
StandardTablevue_type_template_id_05e17600_render,
|
|
122996
|
+
StandardTablevue_type_template_id_05e17600_staticRenderFns,
|
|
122667
122997
|
false,
|
|
122668
122998
|
null,
|
|
122669
122999
|
null,
|
|
@@ -122692,6 +123022,9 @@ var StandardTable_component = normalizeComponent(
|
|
|
122692
123022
|
* 自动计算最小列宽(中文 15px/个、英文 10px/个,另加 40px 留白);
|
|
122693
123023
|
* 5. tree-node 属性:为 true 时对应 vxe-table 列渲染树节点展开/收起图标
|
|
122694
123024
|
* (配合 vxe-table tree-config 使用)。
|
|
123025
|
+
* 6. 单元格编辑:editable 开启后点击单元格进入输入;
|
|
123026
|
+
* 也可用 edit-render 指定 vxe 编辑器(input / textarea / select 等),
|
|
123027
|
+
* 或用 #edit 插槽自定义编辑内容。
|
|
122695
123028
|
*/
|
|
122696
123029
|
/* harmony default export */ const Columnvue_type_script_lang_js = ({
|
|
122697
123030
|
name: 'StandardColumn',
|
|
@@ -122758,6 +123091,17 @@ var StandardTable_component = normalizeComponent(
|
|
|
122758
123091
|
formatter: {
|
|
122759
123092
|
type: Function,
|
|
122760
123093
|
"default": null
|
|
123094
|
+
},
|
|
123095
|
+
// 是否可编辑(点击单元格进入文本输入)。未传 edit-render 时按 input 处理
|
|
123096
|
+
editable: {
|
|
123097
|
+
type: Boolean,
|
|
123098
|
+
"default": false
|
|
123099
|
+
},
|
|
123100
|
+
// vxe-table 编辑渲染配置(选填),如 { name: 'input' }、{ name: 'select', options }
|
|
123101
|
+
// 传入后优先于 editable
|
|
123102
|
+
editRender: {
|
|
123103
|
+
type: Object,
|
|
123104
|
+
"default": null
|
|
122761
123105
|
}
|
|
122762
123106
|
},
|
|
122763
123107
|
computed: {
|
|
@@ -123704,15 +124048,15 @@ function index_esm_default() { return index_esm_default.c || (index_esm_default.
|
|
|
123704
124048
|
* ipqc-standard-components 标准组件库统一入口
|
|
123705
124049
|
*
|
|
123706
124050
|
* 安装:
|
|
123707
|
-
* npm i @
|
|
124051
|
+
* npm i @cimom-ui/standard-ui
|
|
123708
124052
|
*
|
|
123709
124053
|
* 用法一(全局注册,推荐):
|
|
123710
|
-
* import StandardComponents from '@
|
|
124054
|
+
* import StandardComponents from '@cimom-ui/standard-ui'
|
|
123711
124055
|
* Vue.use(StandardComponents)
|
|
123712
124056
|
* // 之后所有页面模板可直接使用 <standard-button> / <standard-table> 等标签
|
|
123713
124057
|
*
|
|
123714
124058
|
* 用法二(局部注册):
|
|
123715
|
-
* import StandardComponents from '@
|
|
124059
|
+
* import StandardComponents from '@cimom-ui/standard-ui'
|
|
123716
124060
|
* export default {
|
|
123717
124061
|
* components: {
|
|
123718
124062
|
* 'standard-table': StandardComponents.StandardTable,
|