br-dionysus 1.15.4 → 1.16.1

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/index.css CHANGED
@@ -1 +1 @@
1
- @charset "UTF-8";[data-v-aa54745e]:root{--br-dionysus-primary-color: #646CFFFF;--br-dionysus-primary-bg-color: #979fff}.u-icon-box[data-v-aa54745e]{display:none}.g-box[data-v-aa54745e]{position:relative;overflow:hidden;padding-left:16px;padding-right:16px;width:100%;background-color:#fff;box-sizing:border-box}.g-box .u-page-btn[data-v-aa54745e]{position:absolute;bottom:0;height:33px;border:0;box-sizing:border-box;background-color:#fff;opacity:.6;cursor:pointer}.g-box .s-previous-btn[data-v-aa54745e]{left:0}.g-box .s-next-btn[data-v-aa54745e]{right:0;transform:rotate(180deg)}.g-dionysus-box[data-v-aa54745e]{overflow:hidden;width:100%}.g-tab-page-box[data-v-aa54745e]{display:flex;color:#4a4a4a;white-space:nowrap;box-sizing:border-box;box-shadow:2px 0 8px #1d23290d;transform:translate(0);transition:.2s}.g-tab-page-box .u-li[data-v-aa54745e]{display:inline-block;position:relative;height:33px;font-size:14px;box-sizing:border-box;cursor:pointer}.g-tab-page-box .u-li .u-gp[data-v-aa54745e]{display:flex;position:relative;z-index:1;padding:6px 8px;height:100%;align-items:center;background-color:#fff;border-radius:6px 6px 0 0;box-sizing:border-box}.g-tab-page-box .u-li .u-gp[data-v-aa54745e]:after{position:absolute;bottom:0;right:0;z-index:1;content:"";width:12px;height:12px;border-radius:6px 6px 0;pointer-events:none}.g-tab-page-box .u-li .u-gp[data-v-aa54745e]:before{position:absolute;bottom:0;left:0;z-index:1;content:"";width:12px;height:12px;border-radius:6px 6px 6px 0;pointer-events:none}.g-tab-page-box .u-li[data-v-aa54745e]:after{position:absolute;bottom:0;right:0;z-index:2;content:"";width:12px;height:12px;border-radius:6px;pointer-events:none}.g-tab-page-box .u-li[data-v-aa54745e]:before{position:absolute;bottom:0;left:0;z-index:2;content:"";width:12px;height:12px;border-radius:6px;pointer-events:none}.g-tab-page-box .u-li[data-hover=true] .u-gp[data-v-aa54745e],.g-tab-page-box .u-li[data-hover=true] .u-gp[data-v-aa54745e]:after,.g-tab-page-box .u-li[data-hover=true] .u-gp[data-v-aa54745e]:before,.g-tab-page-box .u-li[data-hover=true][data-active=false][data-v-aa54745e]:after,.g-tab-page-box .u-li[data-hover=true][data-active=false][data-v-aa54745e]:before{background-color:#dfe1e5}.g-tab-page-box .u-li[data-hover-before=true] .u-gp[data-v-aa54745e]:after{background-color:#dfe1e5}.g-tab-page-box .u-li[data-hover-before=true][data-v-aa54745e]:after{background-color:#fff}.g-tab-page-box .u-li[data-hover-after=true] .u-gp[data-v-aa54745e]:before{background-color:#dfe1e5}.g-tab-page-box .u-li[data-hover-after=true][data-v-aa54745e]:before{background-color:#fff}.g-tab-page-box .u-li[data-active-before=true] .u-gp[data-v-aa54745e]:after{background-color:var(--br-dionysus-primary-bg-color)}.g-tab-page-box .u-li[data-active-before=true][data-v-aa54745e]:after{background-color:#fff}.g-tab-page-box .u-li[data-active-after=true] .u-gp[data-v-aa54745e]:before{background-color:var(--br-dionysus-primary-bg-color)}.g-tab-page-box .u-li[data-active-after=true][data-v-aa54745e]:before{background-color:#fff}.g-tab-page-box .u-li[data-active=true][data-v-aa54745e]{color:var(--br-dionysus-primary-color)}.g-tab-page-box .u-li[data-active=true] .u-gp[data-v-aa54745e],.g-tab-page-box .u-li[data-active=true] .u-gp[data-v-aa54745e]:before,.g-tab-page-box .u-li[data-active=true] .u-gp[data-v-aa54745e]:after,.g-tab-page-box .u-li[data-active=true][data-v-aa54745e]:after,.g-tab-page-box .u-li[data-active=true][data-v-aa54745e]:before{background-color:var(--br-dionysus-primary-bg-color)}.g-tab-page-box .u-li .u-icon[data-v-aa54745e]{margin-right:8px;pointer-events:none}.g-tab-page-box .u-li .u-sn[data-v-aa54745e]{pointer-events:none}.g-tab-page-box .u-li .u-btn[data-v-aa54745e]{position:relative;margin-left:4px;width:14px;height:14px;font-size:14px;border-radius:50%}.g-tab-page-box .u-li .u-btn[data-v-aa54745e]:after{position:absolute;top:0;left:0;z-index:1;width:100%;height:100%;content:"";border-radius:50%}.g-tab-page-box .u-li .u-btn[data-v-aa54745e]:hover{color:#fff;background-color:#9ca3af}.g-tab-page-box .u-li[data-active=true] .u-btn[data-v-aa54745e]:hover{color:#fff;background-color:var(--br-dionysus-primary-color)}.g-tab-page-box .s-icon[data-v-aa54745e]{display:block;position:relative;width:14px;height:14px}.g-tab-page-box .s-icon[data-v-aa54745e]:after{position:absolute;top:50%;left:50%;content:"";width:1px;height:10px;background-color:#303133;transform:translate(-50%,-50%) rotate(45deg)}.g-tab-page-box .s-icon[data-v-aa54745e]:before{position:absolute;top:50%;left:50%;content:"";width:1px;height:10px;background-color:#303133;transform:translate(-50%,-50%) rotate(-45deg)}.g-tab-page-box .u-li[data-active=true] .s-icon[data-v-aa54745e]:after,.g-tab-page-box .u-li[data-active=true] .s-icon[data-v-aa54745e]:before{background-color:var(--br-dionysus-primary-color)}.g-tab-page-box .u-li .u-btn:hover .s-icon[data-v-aa54745e]:after,.g-tab-page-box .u-li .u-btn:hover .s-icon[data-v-aa54745e]:before{background-color:#fff}.g-tab-page-box .u-li[data-active=true] .u-btn:hover .s-icon[data-v-aa54745e]:after,.g-tab-page-box .u-li[data-active=true] .u-btn:hover .s-icon[data-v-aa54745e]:before{background-color:#fff}.g-tab-page-box .u-li[data-active=false][data-hover=false][data-active-before=false][data-hover-before=false] .u-sn[data-v-aa54745e]:after{position:absolute;top:50%;right:0;z-index:2;content:"";width:1px;height:50%;transform:translateY(-50%);background-color:#4a4a4a}.g-tab-page-box .u-li:nth-last-of-type(1)[data-active=false][data-hover=false] .u-sn[data-v-aa54745e]:after{background-color:#0000!important}.g-m-input-number-box[data-v-22693103]{position:relative;width:100%}.g-m-input-number-box .m-input-number[data-v-22693103]{width:100%}.g-m-input-number-box .u-text[data-thousandth-place=true][data-v-22693103]{display:inline-block;position:absolute;top:0;left:0;margin-bottom:0;padding-left:15px;padding-right:15px;width:100%;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Helvetica Neue,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol;font-feature-settings:normal;font-stretch:100%;font-weight:400;text-indent:0;color:#606266;text-align:left;letter-spacing:normal;word-spacing:0;background-color:#0000;border-radius:4px;border:1px solid rgba(0,0,0,0);box-sizing:border-box;cursor:text;pointer-events:none}.g-m-input-number-box .u-text[data-thousandth-place=true][data-v-22693103]:hover{border-color:#c0c4cc}.g-m-input-number-box .u-text[data-thousandth-place=true][data-size=mini][data-v-22693103]{font-size:12px;height:28px;line-height:28px}.g-m-input-number-box .u-text[data-thousandth-place=true][data-disabled=true][data-v-22693103]{color:#00000040}.g-m-input-number-box .u-text[data-thousandth-place=true][data-focus=true][data-v-22693103]{color:#0000}.g-m-input-number-box[data-is-table-mini=true] .u-text[data-size=mini][data-v-22693103]{height:24px;font-size:14px;line-height:24px}.g-m-input-number-box[data-no-spacing] .u-text[data-v-22693103]{padding-left:0}.g-m-input-number-box .m-input-number .el-input__inner{text-align:left}.g-m-input-number-box .m-input-number[data-thousandth-place=true] .el-input__inner{color:#0000}.g-m-input-number-box .m-input-number[data-focus=true] .el-input__inner{color:#606266}.g-m-input-number-box .m-input-number[no-border=true] .el-input__inner{border:0}.g-m-input-number-box[data-is-table-mini=true] .m-input-number .el-input__inner{height:24px;font-size:14px;line-height:24px}.g-m-input-number-box[data-no-spacing=true] .m-input-number .el-input__inner{padding-left:0}.g-inline-box[data-v-f9332ace]{margin-bottom:14px;padding-top:10px;border:1px solid var(--el-border-color-lighter);border-radius:4px}.m-inline-btn[data-v-f9332ace]{padding:0 14px 10px}.m-inline[data-v-f9332ace]{display:flex;position:relative;width:100%}.m-inline-btn+.m-inline[data-show-inline-btn=true][data-v-f9332ace]{padding-top:10px}.m-inline-btn+.m-inline[data-show-inline-btn=true][data-v-f9332ace]:before{position:absolute;top:0;left:50%;content:"";width:calc(100% - 28px);height:1px;background-color:var(--el-border-color-lighter);transform:translate(-50%)}.m-inline[data-is-config-mode=false] [data-class=checkbox][data-v-f9332ace]{display:none}.u-btn-gp[data-v-f9332ace]{display:flex;padding-bottom:10px;padding-left:14px;padding-right:14px;align-items:center;box-sizing:border-box}.u-check-box-group[data-v-f9332ace]{display:none;flex:1}.u-row[data-v-f9332ace]{display:flex;overflow:hidden;max-height:34px;flex:1}.u-row[data-unfold=true][data-v-f9332ace]{max-height:none!important}.u-row>[data-class=checkbox][data-v-f9332ace]{display:none}.u-btn-unfold[data-v-f9332ace]{margin-left:8px;width:12px;height:24px;line-height:24px;text-align:center;color:var(--el-text-color-regular);transform:rotate(90deg);cursor:pointer}.u-btn-unfold[data-unfold=true][data-v-f9332ace]{transform:rotate(270deg)}[data-class=checkbox][data-v-f9332ace]{padding-left:5px;height:auto}.g-inline-box .m-inline[dataCover] [data-box]{display:grid;grid-template-columns:repeat(auto-fit,minmax(var(--m-inline-min-width),1fr))}.g-inline-box .m-inline[dataCover] [data-box] [data-item]{padding-bottom:10px;min-width:var(--m-inline-min-width);max-width:var(--m-inline-max-width)}.g-inline-box .m-inline[dataCover] .el-form-item{margin-bottom:0;width:100%}.g-inline-box .m-inline[dataCover] .el-form-item .el-input,.g-inline-box .m-inline[dataCover] .el-form-item .el-cascader,.g-inline-box .m-inline[dataCover] .el-form{width:100%}.g-inline-box .m-inline[dataCover] .el-form .u-it-gp{display:flex}.g-inline-box .m-inline[dataCover] .u-row[data-single-line=true] .el-form{display:flex;justify-content:flex-start}.g-inline-box .m-inline[data-is-config-mode=false] [data-show=false]{display:none}.g-inline-box [data-switch=true]{box-shadow:inset 0 -5px 10px var(--el-color-primary-light-8)}.g-skin-config-box[data-v-ed73ef95]{display:flex}.g-skin-config-box .u-tt[data-v-ed73ef95]{padding:0 24px;line-height:50px;box-shadow:0 1px 2px #00152914}.g-skin-config-box .u-box[data-v-ed73ef95]{display:flex;overflow-y:auto;padding:20px 24px;height:calc(100% - 50px);flex-direction:column}.g-skin-config-box .u-box .u-box-tt[data-v-ed73ef95]{margin:34px 0}.g-skin-config-box .u-box .u-group[data-v-ed73ef95]{display:flex;margin-bottom:12px;justify-content:space-between;align-items:center;color:var(--m-fc-body)}.g-skin-config-box .u-box .u-gulp[data-v-ed73ef95]{display:flex;margin:0 -10px;padding-bottom:12px;flex-direction:column;flex-wrap:wrap;flex:1}.g-skin-config-box .u-box .u-list[data-v-ed73ef95]{display:flex;flex-wrap:wrap}.g-skin-config-box .u-box .u-list .u-li[data-v-ed73ef95]{display:flex;margin-bottom:10px;width:12.5%;justify-content:center}.g-skin-config-box .u-box .u-list .u-li .u-color[data-v-ed73ef95]{display:flex;width:20px;height:20px;color:#fff;align-items:center;justify-content:center;cursor:pointer}.g-skin-config-box .u-pc[data-v-ed73ef95]{display:flex;margin-top:10px;width:100%;flex:1;justify-content:center}.u-btn[data-v-ed73ef95]{display:flex;font-size:18px;color:var(--el-color-primary);cursor:pointer}.u-btn svg path[data-v-ed73ef95]{stroke:var(--el-color-primary);fill:var(--el-color-primary)}.u-sc-slt[data-v-ed73ef95],.u-it[data-v-ed73ef95]{width:106px}.g-skin-config-box .el-drawer__body{padding:0}.g-skin-config-box .el-switch{height:auto}.g-skin-config-box .u-pc{display:flex;justify-content:center}.g-skin-config-box .u-pc .el-color-picker{width:100%}.g-skin-config-box .u-pc .el-color-picker .el-color-picker__trigger{width:100%;height:34px}.g-skin-config-box .u-tabs .el-tabs__item{padding:0 10px}.br-m-table-box[data-v-15fb6dd8]{position:relative}.el-table__empty-text img[data-v-15fb6dd8]{width:15%}.br-m-table-box[data-is-expand=true] .el-table__expand-column{border:0}.br-m-table-box[data-is-expand=true] .el-table__expand-column .cell{display:none}.u-icon[data-v-f9b5767e]{display:inline-block;position:relative;width:14px;height:14px;background-size:100% 100%;transform:translateY(2px);cursor:pointer}.u-filter-group[data-v-f9b5767e]{display:inline-block;position:relative}.u-set[data-v-f9b5767e]{padding:2.5px 0;float:right}.u-my-table-column-gp[data-v-f9b5767e]{display:inline}.u-my-table-column-icon[data-v-f9b5767e]{float:left;padding:4px;cursor:pointer;transition:.3s;font-size:14px}.u-my-table-column-icon[data-active=true][data-v-f9b5767e]{transform:rotate(90deg)}.m-filter-box[data-is-open=true]{opacity:1;pointer-events:auto}.m-filter-box[data-is-open=false]{opacity:0;pointer-events:none}.m-filter-box .u-filter-mask{position:fixed;top:0;left:0;width:100%;height:100%}.m-filter-box .u-it-gp{padding:10px;border-bottom:1px solid var(--el-border-color-lighter)}.m-filter-box .u-list-box{overflow:hidden;position:fixed;top:0;left:0;max-width:50%;background:var(--el-bg-color-overlay);border:1px solid var(--el-border-color-light);border-radius:var(--el-popper-border-radius, 4px);box-shadow:var(--el-box-shadow-light)}.m-filter-box .u-list-box .u-checkbox-group{overflow-y:auto;display:block;padding:10px;max-height:280px}.m-filter-box .u-list-box label.el-checkbox{display:flex;align-items:center;margin-right:5px;margin-bottom:12px;margin-left:5px;height:unset}.m-filter-box .u-list-box label.el-checkbox:last-child{margin-bottom:0}.m-filter-box .u-list-box .u-btn-gp{border-top:1px solid var(--el-border-color-lighter);padding:8px}.m-filter-box .u-list-box button.is-disabled{color:var(--el-disabled-text-color);cursor:not-allowed}.m-filter-box .u-list-box button{background:0 0;border:none;color:var(--el-text-color-regular);cursor:pointer;font-size:var(--el-font-size-small);padding:0 3px}.filter-i{background-color:var(--el-color-primary)}.vab[data-v-28040f41]{vertical-align:baseline}.g-m-table-column-set-box[data-v-28040f41]{display:flex;position:relative}.g-m-table-column-set-box[data-fold=true][data-v-28040f41]{overflow:hidden;width:10px;transition:width .3s}.g-m-table-column-set-box[data-fold=true][data-v-28040f41]:hover{width:36px}.g-m-table-column-set-box[data-visible=true][data-v-28040f41]{overflow:visible;width:auto!important}.m-panel-box[data-v-28040f41]{display:none;overflow-y:auto;padding:6px 4px;position:absolute;top:30px;right:0;z-index:7;min-width:214px;max-height:300px;background-color:#fff;border-radius:8px;border:1px solid var(--el-border-color-lighter);box-shadow:2px 0 8px #1d23290d;box-sizing:border-box}.m-panel-box[data-active=true][data-v-28040f41]{display:block}.m-panel-box .u-list .u-li[data-v-28040f41]{display:flex;align-items:center;padding:4px}.m-panel-box .u-list .u-li .u-icon[data-v-28040f41]{margin-right:8px;font-size:12px;color:var(--el-color-primary);cursor:move}.m-panel-box .u-tt[data-v-28040f41],.m-panel-box .u-tc[data-v-28040f41]{display:flex;padding-top:10px}.m-panel-box .u-tt .u-p[data-v-28040f41],.m-panel-box .u-tc .u-p[data-v-28040f41]{display:block;padding-left:4px;width:50px;align-self:auto;white-space:nowrap;line-height:24px;font-weight:700}.m-panel-box .u-tc[data-v-28040f41]{padding-top:0}.m-panel-box .u-tc .u-p[data-v-28040f41]{line-height:40px}.m-panel-box .s-link[data-v-28040f41]{text-align:right;justify-content:end}.m-panel-box .u-divider[data-v-28040f41]{margin-top:10px;margin-bottom:0}.m-masked[data-v-28040f41],.g-m-table-column-set-teleport[data-v-28040f41]{position:fixed;top:0;left:0;z-index:6;width:100%;height:100%}.u-group[data-v-cdf5c8db]{display:flex;align-items:center}.u-group .u-checkbox[data-v-cdf5c8db]{padding-right:4px;pointer-events:none;margin-right:0}.u-checkbox[data-v-9fd0a41e]{height:var(--el-checkbox-height, 20px)}.g-select-table-box{width:100%}.u-img{width:80px}.m-select-table .el-table{--el-table-header-bg-color: var(--m-list-el-table-header-bg-color, #f5f5f5)}.m-select-table .el-select-dropdown__empty{padding:0}.m-select-table .el-select-dropdown__empty .head-box{display:flex;align-items:center;justify-content:end;padding-bottom:6px}.m-select-table .el-select-dropdown__empty .btn-box{text-align:right;margin-left:5px}.m-select-table .m-table-select{padding:6px;overflow-y:auto}.m-select-table .m-page{padding:4px}.br-u-dialog-resize{position:absolute;width:5px;height:5px;cursor:nwse-resize}.br-u-dialog-resize.br-u-lu{left:0;top:0}.br-u-dialog-resize.br-u-ld{left:0;bottom:0}.br-u-dialog-resize.br-u-ru{right:0;top:0}.br-u-dialog-resize.br-u-rd{right:-5px;bottom:-5px;width:10px;height:10px;border-top:1px solid var(--el-color-primary);transform:rotate(-45deg)}.br-u-body{display:flex}.br-u-body .br-u-body-entity{flex:1;width:100%}.g-select-table-box[data-v-bb9b01dd]{position:relative;line-height:normal}.g-select-table-box .u-input-gp[data-v-bb9b01dd]{position:relative}.g-select-table-box .u-input-gp:hover .el-icon-circle-close[data-v-bb9b01dd]{display:block}.g-select-table-box .el-icon-circle-close[data-v-bb9b01dd]{display:none;position:absolute;top:50%;right:10px;font-size:14px;color:#c0c4cc;transform:translateY(-50%);cursor:pointer}.g-select-table-box .el-icon-circle-close[data-v-bb9b01dd]:hover{color:#a4a7ad}.g-select-table-box .s-table[data-v-bb9b01dd]{width:100%}.btn-box[data-v-bb9b01dd]{text-align:right;padding-bottom:6px}.m-page[data-v-bb9b01dd]{padding-top:4px}.g-select-table-box .u-input-gp .el-input{display:flex}.g-select-table-box .el-table{--el-table-header-bg-color: var(--m-list-el-table-header-bg-color, #f5f5f5)}.br-m-table-v2-box[data-v-c8c149c4]{position:relative}.br-m-table-v2-box .br-m-table-config-set[data-v-c8c149c4]{position:absolute;top:0;right:0;z-index:4}.br-m-table-v2-box[data-size=small] .br-m-table-config-set[data-v-c8c149c4]{top:3px}.br-m-table-v2-box[data-size=default] .br-m-table-config-set[data-v-c8c149c4]{top:13px}.br-m-table-v2-box[data-size=large] .br-m-table-config-set[data-v-c8c149c4]{top:20px}.el-table-v2__empty img[data-v-c8c149c4]{width:8%}.br-m-table-v2-box[data-size=small] .el-table-v2{font-size:12px}.br-m-table-v2-box[data-border=true] .el-table-v2{border:1px solid var(--el-table-border-color)}.br-m-table-v2-box[data-border=true] .el-table-v2 .el-table-v2__header-cell,.br-m-table-v2-box[data-border=true] .el-table-v2 .el-table-v2__row-cell{border-right:var(--el-table-border)}.br-m-table-v2-box[data-border=true] .el-table-v2 .el-table-v2__header-cell:nth-last-of-type(1),.br-m-table-v2-box[data-border=true] .el-table-v2 .el-table-v2__row-cell:nth-last-of-type(1){border-right:0}.br-m-table-v2-box[data-size=small] .el-table-v2__cell-text{line-height:30px}.br-m-table-v2-box[data-size=default] .el-table-v2__cell-text{line-height:50px}.br-m-table-v2-box[data-size=large] .el-table-v2__cell-text{line-height:65px}.br-m-table-v2-box .el-table-v2__empty{display:flex;align-items:center;justify-content:center}
1
+ @charset "UTF-8";[data-v-aa54745e]:root{--br-dionysus-primary-color: #646CFFFF;--br-dionysus-primary-bg-color: #979fff}.u-icon-box[data-v-aa54745e]{display:none}.g-box[data-v-aa54745e]{position:relative;overflow:hidden;padding-left:16px;padding-right:16px;width:100%;background-color:#fff;box-sizing:border-box}.g-box .u-page-btn[data-v-aa54745e]{position:absolute;bottom:0;height:33px;border:0;box-sizing:border-box;background-color:#fff;opacity:.6;cursor:pointer}.g-box .s-previous-btn[data-v-aa54745e]{left:0}.g-box .s-next-btn[data-v-aa54745e]{right:0;transform:rotate(180deg)}.g-dionysus-box[data-v-aa54745e]{overflow:hidden;width:100%}.g-tab-page-box[data-v-aa54745e]{display:flex;color:#4a4a4a;white-space:nowrap;box-sizing:border-box;box-shadow:2px 0 8px #1d23290d;transform:translate(0);transition:.2s}.g-tab-page-box .u-li[data-v-aa54745e]{display:inline-block;position:relative;height:33px;font-size:14px;box-sizing:border-box;cursor:pointer}.g-tab-page-box .u-li .u-gp[data-v-aa54745e]{display:flex;position:relative;z-index:1;padding:6px 8px;height:100%;align-items:center;background-color:#fff;border-radius:6px 6px 0 0;box-sizing:border-box}.g-tab-page-box .u-li .u-gp[data-v-aa54745e]:after{position:absolute;bottom:0;right:0;z-index:1;content:"";width:12px;height:12px;border-radius:6px 6px 0;pointer-events:none}.g-tab-page-box .u-li .u-gp[data-v-aa54745e]:before{position:absolute;bottom:0;left:0;z-index:1;content:"";width:12px;height:12px;border-radius:6px 6px 6px 0;pointer-events:none}.g-tab-page-box .u-li[data-v-aa54745e]:after{position:absolute;bottom:0;right:0;z-index:2;content:"";width:12px;height:12px;border-radius:6px;pointer-events:none}.g-tab-page-box .u-li[data-v-aa54745e]:before{position:absolute;bottom:0;left:0;z-index:2;content:"";width:12px;height:12px;border-radius:6px;pointer-events:none}.g-tab-page-box .u-li[data-hover=true] .u-gp[data-v-aa54745e],.g-tab-page-box .u-li[data-hover=true] .u-gp[data-v-aa54745e]:after,.g-tab-page-box .u-li[data-hover=true] .u-gp[data-v-aa54745e]:before,.g-tab-page-box .u-li[data-hover=true][data-active=false][data-v-aa54745e]:after,.g-tab-page-box .u-li[data-hover=true][data-active=false][data-v-aa54745e]:before{background-color:#dfe1e5}.g-tab-page-box .u-li[data-hover-before=true] .u-gp[data-v-aa54745e]:after{background-color:#dfe1e5}.g-tab-page-box .u-li[data-hover-before=true][data-v-aa54745e]:after{background-color:#fff}.g-tab-page-box .u-li[data-hover-after=true] .u-gp[data-v-aa54745e]:before{background-color:#dfe1e5}.g-tab-page-box .u-li[data-hover-after=true][data-v-aa54745e]:before{background-color:#fff}.g-tab-page-box .u-li[data-active-before=true] .u-gp[data-v-aa54745e]:after{background-color:var(--br-dionysus-primary-bg-color)}.g-tab-page-box .u-li[data-active-before=true][data-v-aa54745e]:after{background-color:#fff}.g-tab-page-box .u-li[data-active-after=true] .u-gp[data-v-aa54745e]:before{background-color:var(--br-dionysus-primary-bg-color)}.g-tab-page-box .u-li[data-active-after=true][data-v-aa54745e]:before{background-color:#fff}.g-tab-page-box .u-li[data-active=true][data-v-aa54745e]{color:var(--br-dionysus-primary-color)}.g-tab-page-box .u-li[data-active=true] .u-gp[data-v-aa54745e],.g-tab-page-box .u-li[data-active=true] .u-gp[data-v-aa54745e]:before,.g-tab-page-box .u-li[data-active=true] .u-gp[data-v-aa54745e]:after,.g-tab-page-box .u-li[data-active=true][data-v-aa54745e]:after,.g-tab-page-box .u-li[data-active=true][data-v-aa54745e]:before{background-color:var(--br-dionysus-primary-bg-color)}.g-tab-page-box .u-li .u-icon[data-v-aa54745e]{margin-right:8px;pointer-events:none}.g-tab-page-box .u-li .u-sn[data-v-aa54745e]{pointer-events:none}.g-tab-page-box .u-li .u-btn[data-v-aa54745e]{position:relative;margin-left:4px;width:14px;height:14px;font-size:14px;border-radius:50%}.g-tab-page-box .u-li .u-btn[data-v-aa54745e]:after{position:absolute;top:0;left:0;z-index:1;width:100%;height:100%;content:"";border-radius:50%}.g-tab-page-box .u-li .u-btn[data-v-aa54745e]:hover{color:#fff;background-color:#9ca3af}.g-tab-page-box .u-li[data-active=true] .u-btn[data-v-aa54745e]:hover{color:#fff;background-color:var(--br-dionysus-primary-color)}.g-tab-page-box .s-icon[data-v-aa54745e]{display:block;position:relative;width:14px;height:14px}.g-tab-page-box .s-icon[data-v-aa54745e]:after{position:absolute;top:50%;left:50%;content:"";width:1px;height:10px;background-color:#303133;transform:translate(-50%,-50%) rotate(45deg)}.g-tab-page-box .s-icon[data-v-aa54745e]:before{position:absolute;top:50%;left:50%;content:"";width:1px;height:10px;background-color:#303133;transform:translate(-50%,-50%) rotate(-45deg)}.g-tab-page-box .u-li[data-active=true] .s-icon[data-v-aa54745e]:after,.g-tab-page-box .u-li[data-active=true] .s-icon[data-v-aa54745e]:before{background-color:var(--br-dionysus-primary-color)}.g-tab-page-box .u-li .u-btn:hover .s-icon[data-v-aa54745e]:after,.g-tab-page-box .u-li .u-btn:hover .s-icon[data-v-aa54745e]:before{background-color:#fff}.g-tab-page-box .u-li[data-active=true] .u-btn:hover .s-icon[data-v-aa54745e]:after,.g-tab-page-box .u-li[data-active=true] .u-btn:hover .s-icon[data-v-aa54745e]:before{background-color:#fff}.g-tab-page-box .u-li[data-active=false][data-hover=false][data-active-before=false][data-hover-before=false] .u-sn[data-v-aa54745e]:after{position:absolute;top:50%;right:0;z-index:2;content:"";width:1px;height:50%;transform:translateY(-50%);background-color:#4a4a4a}.g-tab-page-box .u-li:nth-last-of-type(1)[data-active=false][data-hover=false] .u-sn[data-v-aa54745e]:after{background-color:#0000!important}.g-m-input-number-box[data-v-22693103]{position:relative;width:100%}.g-m-input-number-box .m-input-number[data-v-22693103]{width:100%}.g-m-input-number-box .u-text[data-thousandth-place=true][data-v-22693103]{display:inline-block;position:absolute;top:0;left:0;margin-bottom:0;padding-left:15px;padding-right:15px;width:100%;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Helvetica Neue,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol;font-feature-settings:normal;font-stretch:100%;font-weight:400;text-indent:0;color:#606266;text-align:left;letter-spacing:normal;word-spacing:0;background-color:#0000;border-radius:4px;border:1px solid rgba(0,0,0,0);box-sizing:border-box;cursor:text;pointer-events:none}.g-m-input-number-box .u-text[data-thousandth-place=true][data-v-22693103]:hover{border-color:#c0c4cc}.g-m-input-number-box .u-text[data-thousandth-place=true][data-size=mini][data-v-22693103]{font-size:12px;height:28px;line-height:28px}.g-m-input-number-box .u-text[data-thousandth-place=true][data-disabled=true][data-v-22693103]{color:#00000040}.g-m-input-number-box .u-text[data-thousandth-place=true][data-focus=true][data-v-22693103]{color:#0000}.g-m-input-number-box[data-is-table-mini=true] .u-text[data-size=mini][data-v-22693103]{height:24px;font-size:14px;line-height:24px}.g-m-input-number-box[data-no-spacing] .u-text[data-v-22693103]{padding-left:0}.g-m-input-number-box .m-input-number .el-input__inner{text-align:left}.g-m-input-number-box .m-input-number[data-thousandth-place=true] .el-input__inner{color:#0000}.g-m-input-number-box .m-input-number[data-focus=true] .el-input__inner{color:#606266}.g-m-input-number-box .m-input-number[no-border=true] .el-input__inner{border:0}.g-m-input-number-box[data-is-table-mini=true] .m-input-number .el-input__inner{height:24px;font-size:14px;line-height:24px}.g-m-input-number-box[data-no-spacing=true] .m-input-number .el-input__inner{padding-left:0}.g-inline-box[data-v-f9332ace]{margin-bottom:14px;padding-top:10px;border:1px solid var(--el-border-color-lighter);border-radius:4px}.m-inline-btn[data-v-f9332ace]{padding:0 14px 10px}.m-inline[data-v-f9332ace]{display:flex;position:relative;width:100%}.m-inline-btn+.m-inline[data-show-inline-btn=true][data-v-f9332ace]{padding-top:10px}.m-inline-btn+.m-inline[data-show-inline-btn=true][data-v-f9332ace]:before{position:absolute;top:0;left:50%;content:"";width:calc(100% - 28px);height:1px;background-color:var(--el-border-color-lighter);transform:translate(-50%)}.m-inline[data-is-config-mode=false] [data-class=checkbox][data-v-f9332ace]{display:none}.u-btn-gp[data-v-f9332ace]{display:flex;padding-bottom:10px;padding-left:14px;padding-right:14px;align-items:center;box-sizing:border-box}.u-check-box-group[data-v-f9332ace]{display:none;flex:1}.u-row[data-v-f9332ace]{display:flex;overflow:hidden;max-height:34px;flex:1}.u-row[data-unfold=true][data-v-f9332ace]{max-height:none!important}.u-row>[data-class=checkbox][data-v-f9332ace]{display:none}.u-btn-unfold[data-v-f9332ace]{margin-left:8px;width:12px;height:24px;line-height:24px;text-align:center;color:var(--el-text-color-regular);transform:rotate(90deg);cursor:pointer}.u-btn-unfold[data-unfold=true][data-v-f9332ace]{transform:rotate(270deg)}[data-class=checkbox][data-v-f9332ace]{padding-left:5px;height:auto}.g-inline-box .m-inline[dataCover] [data-box]{display:grid;grid-template-columns:repeat(auto-fit,minmax(var(--m-inline-min-width),1fr))}.g-inline-box .m-inline[dataCover] [data-box] [data-item]{padding-bottom:10px;min-width:var(--m-inline-min-width);max-width:var(--m-inline-max-width)}.g-inline-box .m-inline[dataCover] .el-form-item{margin-bottom:0;width:100%}.g-inline-box .m-inline[dataCover] .el-form-item .el-input,.g-inline-box .m-inline[dataCover] .el-form-item .el-cascader,.g-inline-box .m-inline[dataCover] .el-form{width:100%}.g-inline-box .m-inline[dataCover] .el-form .u-it-gp{display:flex}.g-inline-box .m-inline[dataCover] .u-row[data-single-line=true] .el-form{display:flex;justify-content:flex-start}.g-inline-box .m-inline[data-is-config-mode=false] [data-show=false]{display:none}.g-inline-box [data-switch=true]{box-shadow:inset 0 -5px 10px var(--el-color-primary-light-8)}.g-skin-config-box[data-v-ed73ef95]{display:flex}.g-skin-config-box .u-tt[data-v-ed73ef95]{padding:0 24px;line-height:50px;box-shadow:0 1px 2px #00152914}.g-skin-config-box .u-box[data-v-ed73ef95]{display:flex;overflow-y:auto;padding:20px 24px;height:calc(100% - 50px);flex-direction:column}.g-skin-config-box .u-box .u-box-tt[data-v-ed73ef95]{margin:34px 0}.g-skin-config-box .u-box .u-group[data-v-ed73ef95]{display:flex;margin-bottom:12px;justify-content:space-between;align-items:center;color:var(--m-fc-body)}.g-skin-config-box .u-box .u-gulp[data-v-ed73ef95]{display:flex;margin:0 -10px;padding-bottom:12px;flex-direction:column;flex-wrap:wrap;flex:1}.g-skin-config-box .u-box .u-list[data-v-ed73ef95]{display:flex;flex-wrap:wrap}.g-skin-config-box .u-box .u-list .u-li[data-v-ed73ef95]{display:flex;margin-bottom:10px;width:12.5%;justify-content:center}.g-skin-config-box .u-box .u-list .u-li .u-color[data-v-ed73ef95]{display:flex;width:20px;height:20px;color:#fff;align-items:center;justify-content:center;cursor:pointer}.g-skin-config-box .u-pc[data-v-ed73ef95]{display:flex;margin-top:10px;width:100%;flex:1;justify-content:center}.u-btn[data-v-ed73ef95]{display:flex;font-size:18px;color:var(--el-color-primary);cursor:pointer}.u-btn svg path[data-v-ed73ef95]{stroke:var(--el-color-primary);fill:var(--el-color-primary)}.u-sc-slt[data-v-ed73ef95],.u-it[data-v-ed73ef95]{width:106px}.g-skin-config-box .el-drawer__body{padding:0}.g-skin-config-box .el-switch{height:auto}.g-skin-config-box .u-pc{display:flex;justify-content:center}.g-skin-config-box .u-pc .el-color-picker{width:100%}.g-skin-config-box .u-pc .el-color-picker .el-color-picker__trigger{width:100%;height:34px}.g-skin-config-box .u-tabs .el-tabs__item{padding:0 10px}.br-m-table-box[data-v-96082e2a]{position:relative}.el-table__empty-text img[data-v-96082e2a]{width:15%}.br-m-table-box[data-is-expand=true] .el-table__expand-column{border:0}.br-m-table-box[data-is-expand=true] .el-table__expand-column .cell{display:none}.br-u-dialog-resize{position:absolute;width:5px;height:5px;cursor:nwse-resize}.br-u-dialog-resize.br-u-lu{left:0;top:0}.br-u-dialog-resize.br-u-ld{left:0;bottom:0}.br-u-dialog-resize.br-u-ru{right:0;top:0}.br-u-dialog-resize.br-u-rd{right:-5px;bottom:-5px;width:10px;height:10px;border-top:1px solid var(--el-color-primary);transform:rotate(-45deg)}.br-u-body{display:flex}.br-u-body .br-u-body-entity{flex:1;width:100%}.u-icon[data-v-f9b5767e]{display:inline-block;position:relative;width:14px;height:14px;background-size:100% 100%;transform:translateY(2px);cursor:pointer}.u-filter-group[data-v-f9b5767e]{display:inline-block;position:relative}.u-set[data-v-f9b5767e]{padding:2.5px 0;float:right}.u-my-table-column-gp[data-v-f9b5767e]{display:inline}.u-my-table-column-icon[data-v-f9b5767e]{float:left;padding:4px;cursor:pointer;transition:.3s;font-size:14px}.u-my-table-column-icon[data-active=true][data-v-f9b5767e]{transform:rotate(90deg)}.m-filter-box[data-is-open=true]{opacity:1;pointer-events:auto}.m-filter-box[data-is-open=false]{opacity:0;pointer-events:none}.m-filter-box .u-filter-mask{position:fixed;top:0;left:0;width:100%;height:100%}.m-filter-box .u-it-gp{padding:10px;border-bottom:1px solid var(--el-border-color-lighter)}.m-filter-box .u-list-box{overflow:hidden;position:fixed;top:0;left:0;max-width:50%;background:var(--el-bg-color-overlay);border:1px solid var(--el-border-color-light);border-radius:var(--el-popper-border-radius, 4px);box-shadow:var(--el-box-shadow-light)}.m-filter-box .u-list-box .u-checkbox-group{overflow-y:auto;display:block;padding:10px;max-height:280px}.m-filter-box .u-list-box label.el-checkbox{display:flex;align-items:center;margin-right:5px;margin-bottom:12px;margin-left:5px;height:unset}.m-filter-box .u-list-box label.el-checkbox:last-child{margin-bottom:0}.m-filter-box .u-list-box .u-btn-gp{border-top:1px solid var(--el-border-color-lighter);padding:8px}.m-filter-box .u-list-box button.is-disabled{color:var(--el-disabled-text-color);cursor:not-allowed}.m-filter-box .u-list-box button{background:0 0;border:none;color:var(--el-text-color-regular);cursor:pointer;font-size:var(--el-font-size-small);padding:0 3px}.filter-i{background-color:var(--el-color-primary)}.vab[data-v-28040f41]{vertical-align:baseline}.g-m-table-column-set-box[data-v-28040f41]{display:flex;position:relative}.g-m-table-column-set-box[data-fold=true][data-v-28040f41]{overflow:hidden;width:10px;transition:width .3s}.g-m-table-column-set-box[data-fold=true][data-v-28040f41]:hover{width:36px}.g-m-table-column-set-box[data-visible=true][data-v-28040f41]{overflow:visible;width:auto!important}.m-panel-box[data-v-28040f41]{display:none;overflow-y:auto;padding:6px 4px;position:absolute;top:30px;right:0;z-index:7;min-width:214px;max-height:300px;background-color:#fff;border-radius:8px;border:1px solid var(--el-border-color-lighter);box-shadow:2px 0 8px #1d23290d;box-sizing:border-box}.m-panel-box[data-active=true][data-v-28040f41]{display:block}.m-panel-box .u-list .u-li[data-v-28040f41]{display:flex;align-items:center;padding:4px}.m-panel-box .u-list .u-li .u-icon[data-v-28040f41]{margin-right:8px;font-size:12px;color:var(--el-color-primary);cursor:move}.m-panel-box .u-tt[data-v-28040f41],.m-panel-box .u-tc[data-v-28040f41]{display:flex;padding-top:10px}.m-panel-box .u-tt .u-p[data-v-28040f41],.m-panel-box .u-tc .u-p[data-v-28040f41]{display:block;padding-left:4px;width:50px;align-self:auto;white-space:nowrap;line-height:24px;font-weight:700}.m-panel-box .u-tc[data-v-28040f41]{padding-top:0}.m-panel-box .u-tc .u-p[data-v-28040f41]{line-height:40px}.m-panel-box .s-link[data-v-28040f41]{text-align:right;justify-content:end}.m-panel-box .u-divider[data-v-28040f41]{margin-top:10px;margin-bottom:0}.m-masked[data-v-28040f41],.g-m-table-column-set-teleport[data-v-28040f41]{position:fixed;top:0;left:0;z-index:6;width:100%;height:100%}.u-group[data-v-cdf5c8db]{display:flex;align-items:center}.u-group .u-checkbox[data-v-cdf5c8db]{padding-right:4px;pointer-events:none;margin-right:0}.u-checkbox[data-v-9fd0a41e]{height:var(--el-checkbox-height, 20px)}.g-select-table-box{width:100%}.u-img{width:80px}.m-select-table .el-table{--el-table-header-bg-color: var(--m-list-el-table-header-bg-color, #f5f5f5)}.m-select-table .el-select-dropdown__empty{padding:0}.m-select-table .el-select-dropdown__empty .head-box{display:flex;align-items:center;justify-content:end;padding-bottom:6px}.m-select-table .el-select-dropdown__empty .btn-box{text-align:right;margin-left:5px}.m-select-table .m-table-select{padding:6px;overflow-y:auto}.m-select-table .m-page{padding:4px}.g-select-table-box[data-v-bb9b01dd]{position:relative;line-height:normal}.g-select-table-box .u-input-gp[data-v-bb9b01dd]{position:relative}.g-select-table-box .u-input-gp:hover .el-icon-circle-close[data-v-bb9b01dd]{display:block}.g-select-table-box .el-icon-circle-close[data-v-bb9b01dd]{display:none;position:absolute;top:50%;right:10px;font-size:14px;color:#c0c4cc;transform:translateY(-50%);cursor:pointer}.g-select-table-box .el-icon-circle-close[data-v-bb9b01dd]:hover{color:#a4a7ad}.g-select-table-box .s-table[data-v-bb9b01dd]{width:100%}.btn-box[data-v-bb9b01dd]{text-align:right;padding-bottom:6px}.m-page[data-v-bb9b01dd]{padding-top:4px}.g-select-table-box .u-input-gp .el-input{display:flex}.g-select-table-box .el-table{--el-table-header-bg-color: var(--m-list-el-table-header-bg-color, #f5f5f5)}.br-m-table-v2-box[data-v-c8c149c4]{position:relative}.br-m-table-v2-box .br-m-table-config-set[data-v-c8c149c4]{position:absolute;top:0;right:0;z-index:4}.br-m-table-v2-box[data-size=small] .br-m-table-config-set[data-v-c8c149c4]{top:3px}.br-m-table-v2-box[data-size=default] .br-m-table-config-set[data-v-c8c149c4]{top:13px}.br-m-table-v2-box[data-size=large] .br-m-table-config-set[data-v-c8c149c4]{top:20px}.el-table-v2__empty img[data-v-c8c149c4]{width:8%}.br-m-table-v2-box[data-size=small] .el-table-v2{font-size:12px}.br-m-table-v2-box[data-border=true] .el-table-v2{border:1px solid var(--el-table-border-color)}.br-m-table-v2-box[data-border=true] .el-table-v2 .el-table-v2__header-cell,.br-m-table-v2-box[data-border=true] .el-table-v2 .el-table-v2__row-cell{border-right:var(--el-table-border)}.br-m-table-v2-box[data-border=true] .el-table-v2 .el-table-v2__header-cell:nth-last-of-type(1),.br-m-table-v2-box[data-border=true] .el-table-v2 .el-table-v2__row-cell:nth-last-of-type(1){border-right:0}.br-m-table-v2-box[data-size=small] .el-table-v2__cell-text{line-height:30px}.br-m-table-v2-box[data-size=default] .el-table-v2__cell-text{line-height:50px}.br-m-table-v2-box[data-size=large] .el-table-v2__cell-text{line-height:65px}.br-m-table-v2-box .el-table-v2__empty{display:flex;align-items:center;justify-content:center}
@@ -19,12 +19,8 @@ export interface TableConfigItem {
19
19
  fixed: 'left' | 'right' | boolean;
20
20
  }
21
21
  /** 表格配置 */
22
- export interface TableConfig {
23
- [propName: string]: TableConfigItem;
24
- }
25
- export interface FilterValue {
26
- [key: string]: Array<string | number>;
27
- }
22
+ export type TableConfig = Record<string, TableConfigItem>;
23
+ export type FilterValue = Record<string, Array<string | number>>;
28
24
  export interface UseTableConfigReturn {
29
25
  tableTitle: Ref<TableTitle[]>;
30
26
  tableConfig: Ref<TableConfig>;
@@ -17,7 +17,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
17
17
  /** 自定义远程搜索 */
18
18
  remoteMethod?: Function | undefined;
19
19
  options: Option[];
20
- tableTitle: TableTitle[];
20
+ tableTitle: TableTitle<any>[];
21
21
  /** 是否多选 */
22
22
  multiple?: boolean | undefined;
23
23
  /** 定义默认的 label 和value */
@@ -90,7 +90,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
90
90
  /** 自定义远程搜索 */
91
91
  remoteMethod?: Function | undefined;
92
92
  options: Option[];
93
- tableTitle: TableTitle[];
93
+ tableTitle: TableTitle<any>[];
94
94
  /** 是否多选 */
95
95
  multiple?: boolean | undefined;
96
96
  /** 定义默认的 label 和value */
@@ -150,10 +150,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
150
150
  multiple: boolean;
151
151
  total: number | null;
152
152
  filterMethod: Function | null;
153
- tableTitle: TableTitle[];
153
+ tableTitle: TableTitle<any>[];
154
154
  border: boolean;
155
- options: Option[];
156
155
  filterable: boolean;
156
+ options: Option[];
157
157
  remote: boolean;
158
158
  remoteMethod: Function;
159
159
  keywords: Option;
@@ -1,4 +1,6 @@
1
1
  import { Plugin } from 'vue';
2
2
  import MTable from './src/MTable.vue';
3
+ import MBatchEdit from './src/MBatchEdit.vue';
3
4
  export declare const MTablePlugin: Plugin;
4
- export { MTable };
5
+ export declare const MBatchEditPlugin: Plugin;
6
+ export { MTable, MBatchEdit };
@@ -0,0 +1,58 @@
1
+ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
2
+ /** 选中列 */
3
+ selectionCell?: string | undefined;
4
+ /** 组件大小 */
5
+ size?: "" | "small" | "large" | undefined;
6
+ /** 表格数据 */
7
+ tableData?: Record<string, any>[] | undefined;
8
+ /** 表格列配置 */
9
+ tableTitle?: TableTitle<any>[] | undefined;
10
+ }>, {
11
+ selectionCell: string;
12
+ size: string;
13
+ tableData: () => never[];
14
+ tableTitle: () => never[];
15
+ }>, {
16
+ open: (key?: string) => void;
17
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
18
+ "update:tableData": (data: Record<string, any>[]) => void;
19
+ }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
20
+ /** 选中列 */
21
+ selectionCell?: string | undefined;
22
+ /** 组件大小 */
23
+ size?: "" | "small" | "large" | undefined;
24
+ /** 表格数据 */
25
+ tableData?: Record<string, any>[] | undefined;
26
+ /** 表格列配置 */
27
+ tableTitle?: TableTitle<any>[] | undefined;
28
+ }>, {
29
+ selectionCell: string;
30
+ size: string;
31
+ tableData: () => never[];
32
+ tableTitle: () => never[];
33
+ }>>> & {
34
+ "onUpdate:tableData"?: ((data: Record<string, any>[]) => any) | undefined;
35
+ }, {
36
+ size: 'small' | 'large' | '';
37
+ tableTitle: TableTitle[];
38
+ tableData: Record<string, any>[];
39
+ selectionCell: string;
40
+ }, {}>;
41
+ export default _default;
42
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
43
+ type __VLS_TypePropsToRuntimeProps<T> = {
44
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
45
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
46
+ } : {
47
+ type: import('vue').PropType<T[K]>;
48
+ required: true;
49
+ };
50
+ };
51
+ type __VLS_WithDefaults<P, D> = {
52
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
53
+ default: D[K];
54
+ }> : P[K];
55
+ };
56
+ type __VLS_Prettify<T> = {
57
+ [K in keyof T]: T[K];
58
+ } & {};
@@ -18,6 +18,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
18
18
  rowKey?: string | Function | undefined;
19
19
  /** 表格配置key */
20
20
  tableConfigKey?: string | undefined;
21
+ /** 显示单元格选中状态 */
22
+ showSelectionCellStatus?: boolean | undefined;
23
+ /** 选中列(必须showSelection为true) */
24
+ selectionCell?: string | undefined;
21
25
  }>, {
22
26
  size: string;
23
27
  sole: string;
@@ -28,6 +32,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
28
32
  expandRowKeys: () => never[];
29
33
  rowKey: string;
30
34
  tableConfigKey: string;
35
+ showSelectionCellStatus: boolean;
36
+ selectionCell: string;
31
37
  }>, {
32
38
  clearSelection: () => any;
33
39
  getSelectionRows: () => any;
@@ -59,6 +65,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
59
65
  }[]) => void;
60
66
  "update:tableConfig": (tableConfig: TableConfig) => void;
61
67
  privateExpandChange: (row: any, expandedRows: any[]) => void;
68
+ "update:selectionCell": (args_0: string) => void;
62
69
  }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
63
70
  size?: "" | "small" | "large" | undefined;
64
71
  sole?: string | undefined;
@@ -75,6 +82,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
75
82
  rowKey?: string | Function | undefined;
76
83
  /** 表格配置key */
77
84
  tableConfigKey?: string | undefined;
85
+ /** 显示单元格选中状态 */
86
+ showSelectionCellStatus?: boolean | undefined;
87
+ /** 选中列(必须showSelection为true) */
88
+ selectionCell?: string | undefined;
78
89
  }>, {
79
90
  size: string;
80
91
  sole: string;
@@ -85,6 +96,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
85
96
  expandRowKeys: () => never[];
86
97
  rowKey: string;
87
98
  tableConfigKey: string;
99
+ showSelectionCellStatus: boolean;
100
+ selectionCell: string;
88
101
  }>>> & {
89
102
  onPasteData?: ((data: {
90
103
  /** 粘贴行的行数据 */
@@ -102,6 +115,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
102
115
  }[]) => any) | undefined;
103
116
  "onUpdate:tableConfig"?: ((tableConfig: TableConfig) => any) | undefined;
104
117
  onPrivateExpandChange?: ((row: any, expandedRows: any[]) => any) | undefined;
118
+ "onUpdate:selectionCell"?: ((args_0: string) => any) | undefined;
105
119
  }, {
106
120
  size: "" | "small" | "large";
107
121
  data: Record<string, any>[];
@@ -112,6 +126,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
112
126
  expandProp: string;
113
127
  expandRowKeys: any[];
114
128
  rowKey: string | Function;
129
+ showSelectionCellStatus: boolean;
130
+ selectionCell: string;
115
131
  }, {}>, {
116
132
  default?(_: {}): any;
117
133
  append?(_: {}): any;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "br-dionysus",
3
- "version": "1.15.4",
3
+ "version": "1.16.1",
4
4
  "scripts": {
5
5
  "dev": "vite --config vite.config.ts",
6
6
  "build:doc": "vue-tsc --noEmit && vite build --config ./build/doc.config.ts && node script/copyDir.js",
@@ -23,7 +23,7 @@
23
23
  >
24
24
  <template
25
25
  #default="scope"
26
- v-if="['tag'].includes(item.prop || '')"
26
+ v-if="['tag'].includes(String() || '')"
27
27
  >
28
28
  <template v-if="item.prop === 'tag'">
29
29
  <el-tag
@@ -27,17 +27,13 @@ export interface TableConfigItem {
27
27
  }
28
28
 
29
29
  /** 表格配置 */
30
- export interface TableConfig {
31
- [propName: string]: TableConfigItem
32
- }
30
+ export type TableConfig = Record<string, TableConfigItem>
33
31
 
34
32
  interface Column {
35
33
  property: string
36
34
  }
37
35
 
38
- export interface FilterValue {
39
- [key: string]: Array<string | number>
40
- }
36
+ export type FilterValue = Record<string, Array<string | number>>
41
37
 
42
38
  export interface UseTableConfigReturn {
43
39
  tableTitle: Ref<TableTitle[]>;
@@ -2,22 +2,22 @@
2
2
  <div class="g-box g-select-table-box">
3
3
  <ElSelect
4
4
  ref="selectRef"
5
- v-bind="selectAttr"
6
5
  popperClass="m-select-table"
7
6
  :multiple="isElSelectMultiple"
8
7
  :disabled="props.disabled"
9
8
  :placeholder="props.placeholder"
10
- @visibleChange="visibleChange"
11
9
  :size="props.size"
12
10
  :valueKey="props.keywords.value"
13
11
  :remoteMethod="remoteMethodHandle"
14
12
  :filterMethod="props.remote ? null : filterMethodHandle"
15
- v-model="selectModelValue"
16
- @removeTag="removeTag"
17
- @clear="clear"
18
13
  :filterable="props.filterable"
19
14
  :remote="props.remote"
20
15
  :remoteShowSuffix="props.remote"
16
+ v-bind="selectAttr"
17
+ v-model="selectModelValue"
18
+ @visibleChange="visibleChange"
19
+ @removeTag="removeTag"
20
+ @clear="clear"
21
21
  @click="focus"
22
22
  @blur="changeBlur"
23
23
  @change="change"
@@ -102,6 +102,36 @@
102
102
  </div>
103
103
  </template>
104
104
  </ElSelect>
105
+
106
+ <!--<ElInput-->
107
+ <!-- class="u-input"-->
108
+ <!-- :multiple="isElSelectMultiple"-->
109
+ <!-- :disabled="props.disabled"-->
110
+ <!-- :placeholder="props.placeholder"-->
111
+ <!-- :size="props.size"-->
112
+ <!-- :valueKey="props.keywords.value"-->
113
+ <!-- :remoteMethod="remoteMethodHandle"-->
114
+ <!-- :filterMethod="props.remote ? null : filterMethodHandle"-->
115
+ <!-- :filterable="props.filterable"-->
116
+ <!-- :remote="props.remote"-->
117
+ <!-- :remoteShowSuffix="props.remote"-->
118
+ <!-- v-bind="selectAttr"-->
119
+ <!-- v-model="selectModelValue"-->
120
+ <!-- @visibleChange="visibleChange"-->
121
+ <!-- @removeTag="removeTag"-->
122
+ <!-- @clear="clear"-->
123
+ <!-- @click="focus"-->
124
+ <!-- @blur="changeBlur"-->
125
+ <!-- @change="change"-->
126
+ <!--&gt;</ElInput>-->
127
+
128
+ <!--<Teleport to="body">-->
129
+ <!-- <div-->
130
+ <!-- class="m-table-box"-->
131
+ <!-- v-show="showPanel"-->
132
+ <!-- :style="{ ...mTableBoxStyle, ...boxStyle }"-->
133
+ <!-- ></div>-->
134
+ <!--</Teleport>-->
105
135
  </div>
106
136
  </template>
107
137
 
@@ -357,7 +387,6 @@ const removeTag = (tag: any) => {
357
387
  emit('removeTag', tag)
358
388
  }
359
389
  const change = (value: string | number | Array<string | number>) => {
360
- console.log('value', value)
361
390
  if (props.multiple && Array.isArray(value) && Array.isArray(modelValue.value)) {
362
391
  const removeValue = modelValue.value
363
392
  .filter(item => !(value as Array<string | number>).includes(item))
@@ -13,14 +13,16 @@ import demo from './demo.vue'
13
13
 
14
14
  ### 2) Attributes
15
15
 
16
- | 参数 | 说明 | 类型 | 可选值 | 默认值 |
17
- |----------------|-----------------------------|-----------------------|-----|-----------------------------------------------------|
18
- | data | 表格的数据 | Record<string, any>[] | - | [ ] |
19
- | sole | 行的唯一值 | String , number | - | key |
20
- | filtersValue | 表格内容筛选(当为null时,不显示筛选图标) | Function \| null | - | null |
21
- | expandProp | 展开图标列(如使用这个属性则必须存在rowKey属性) | string | - | '' |
22
- | tableConfigKey | 表格配置key | string | - | '' |
23
- | 其余参数 | 参考el官网的table | any | - | https://element-plus.org/zh-CN/component/table.html |
16
+ | 参数 | 说明 | 类型 | 可选值 | 默认值 |
17
+ |-------------------------|-----------------------------|-----------------------|-----|-----------------------------------------------------|
18
+ | data | 表格的数据 | Record<string, any>[] | - | [ ] |
19
+ | sole | 行的唯一值 | String , number | - | key |
20
+ | filtersValue | 表格内容筛选(当为null时,不显示筛选图标) | Function \| null | - | null |
21
+ | expandProp | 展开图标列(如使用这个属性则必须存在rowKey属性) | string | - | '' |
22
+ | tableConfigKey | 表格配置key | string | - | '' |
23
+ | showSelectionCellStatus | 显示单元格选中状态 | boolean | - | false |
24
+ | selectionCell | 选中列(必须showSelection为true) | string | - | '' |
25
+ | 其余参数 | 参考el官网的table | any | - | https://element-plus.org/zh-CN/component/table.html |
24
26
 
25
27
  ## 要求
26
28
 
@@ -30,12 +32,13 @@ sole 必须传递在表格数据内为唯一的值 如id key 等不会发生重
30
32
 
31
33
  ### 3) Events
32
34
 
33
- | 方法名 | 说明 | 回调参数 |
34
- |---------------------|--------------------------------------|-----------------------------------------------------|
35
- | pasteData | 表格粘贴方法 | 共有2个参数,依次为粘贴动作的数据PasteAction ,表格原始数据tableData |
36
- | update:tableConfig | 表格配置更新 | \[tableConfig: TableConfig] |
37
- | privateExpandChange | expandProp模式下 当用户对某一行展开或者关闭的时候会触发该事件 | [row: any, expandedRows: any[]] |
38
- | 其余方法 | 参考el官网的table | https://element-plus.org/zh-CN/component/table.html |
35
+ | 方法名 | 说明 | 回调参数 |
36
+ |----------------------|--------------------------------------|-----------------------------------------------------|
37
+ | pasteData | 表格粘贴方法 | 共有2个参数,依次为粘贴动作的数据PasteAction ,表格原始数据tableData |
38
+ | update:tableConfig | 表格配置更新 | \[tableConfig: TableConfig] |
39
+ | privateExpandChange | expandProp模式下 当用户对某一行展开或者关闭的时候会触发该事件 | [row: any, expandedRows: any[]] |
40
+ | update:selectionCell | 选中单元格更新 | \[string] |
41
+ | 其余方法 | 参考el官网的table | https://element-plus.org/zh-CN/component/table.html |
39
42
 
40
43
  ### 4) PasteAction
41
44
 
@@ -46,3 +49,19 @@ sole 必须传递在表格数据内为唯一的值 如id key 等不会发生重
46
49
  | arr | 返回粘贴时候处理之后的 数组信息 | Array |
47
50
  | rowIndex | 根据sole的值 去data内查找 当前操作的 粘贴行在data内的序号 | number |
48
51
 
52
+ ### 5) MBatchEdit(批量编辑组件)
53
+
54
+ #### 1) Attributes
55
+
56
+ | 参数 | 说明 | 类型 | 可选值 | 默认值 |
57
+ |---------------|-------|-----------------------|--------------------------|-----|
58
+ | selectionCell | 选中列 | string | - | '' |
59
+ | size | 组件大小 | string | 'small' \| 'large' \| '' | '' |
60
+ | tableData | 表格数据 | Record<string, any>[] | - | [] |
61
+ | tableTitle | 表格列配置 | TableTitle[] | - | [] |
62
+
63
+ #### 2) Events
64
+
65
+ | 方法名 | 说明 | 回调参数 |
66
+ |------------------|--------|---------------------------------|
67
+ | update:tableData | 表格数据更新 | \[data: Record<string, any>[]] |
@@ -28,6 +28,7 @@
28
28
  showOverflowTooltip
29
29
  ></MTableColumn>
30
30
  </MTable>
31
+
31
32
  <h3>展开列</h3>
32
33
  <p @click="zzzz">{{ tableConfig }}</p>
33
34
  <MTable
@@ -85,6 +86,7 @@
85
86
  >
86
87
  </MTableColumn>
87
88
  </MTable>
89
+
88
90
  <h3>树状表格</h3>
89
91
  <MTable
90
92
  :data="tableData"
@@ -113,6 +115,38 @@
113
115
  >
114
116
  </MTableColumn>
115
117
  </MTable>
118
+
119
+ <h3>批改</h3>
120
+ <MBatchEdit
121
+ ref="mBatchEditRef"
122
+ size="small"
123
+ v-model:tableData="tableData1"
124
+ :selectionCell="selectionCell"
125
+ :tableTitle="tableTitle"
126
+ ></MBatchEdit>
127
+ <MTable
128
+ :data="tableData1"
129
+ border
130
+ scrollbarAlwaysOn
131
+ showSelectionCellStatus
132
+ v-model:selectionCell="selectionCell"
133
+ >
134
+ <MTableColumn
135
+ v-for="item in tableTitle"
136
+ :key="item.prop"
137
+ :prop="item.prop"
138
+ :label="item.label"
139
+ :align="item.align"
140
+ :minWidth="item.minWidth"
141
+ :className="item.className"
142
+ :filters="item.filters"
143
+ :headerAlign="item.headerAlign"
144
+ :fixed="item.fixed"
145
+ v-model:filtersValue="filtersValue"
146
+ showOverflowTooltip
147
+ ></MTableColumn>
148
+ </MTable>
149
+ <p>选中的单元格:{{ selectionCell }}</p>
116
150
  </div>
117
151
  </template>
118
152
 
@@ -120,34 +154,40 @@
120
154
  import { ref } from 'vue'
121
155
  import { useTableConfig } from './../../index'
122
156
  import { MTableColumn } from './../../MTableColumn'
157
+ import MBatchEdit from './../src/MBatchEdit.vue'
123
158
 
124
159
  const privateExpandChange = (row: any, expandedRows: any[]) => {
125
160
  console.log('row', row)
126
161
  console.log('expandedRows', expandedRows)
127
162
  }
128
163
 
129
- // const test = (data: any) => {
130
- // console.log('data', data)
131
- // }
132
-
133
164
  const tableData = ref<any[]>([])
134
165
  const { tableTitle, headerDragend, tableConfig, filtersValue } = useTableConfig('MTableDemo', [{
135
166
  label: '序号',
136
167
  prop: 'sn',
137
168
  minWidth: 200,
138
- fixed: 'left'
169
+ fixed: 'left',
170
+ isBatchEdit: false
139
171
  }, {
140
172
  label: '时间',
141
173
  prop: 'date',
142
- minWidth: 200
174
+ minWidth: 200,
175
+ isBatchEdit: true
143
176
  }, {
144
177
  label: '地址',
145
178
  prop: 'address',
146
- minWidth: 200
179
+ minWidth: 200,
180
+ isBatchEdit: true
147
181
  }, {
148
182
  label: '名称',
149
183
  prop: 'name',
150
- minWidth: 200
184
+ minWidth: 200,
185
+ isBatchEdit: true
186
+ }, {
187
+ label: '数量',
188
+ prop: 'qty',
189
+ minWidth: 200,
190
+ isBatchEdit: true
151
191
  }], tableData)
152
192
 
153
193
  // const childTableTitle: TableTitle[] = [{
@@ -244,7 +284,8 @@ tableData1.value = [{
244
284
  name: 'Tom1',
245
285
  address: 'No. 189, Grove St, Los Angeles',
246
286
  tag: 'Home',
247
- pid: 0
287
+ pid: 0,
288
+ qty: 10
248
289
  }, {
249
290
  id: 2,
250
291
  sn: 2,
@@ -252,7 +293,8 @@ tableData1.value = [{
252
293
  name: 'Tom2',
253
294
  address: 'No. 189, Grove St, Los Angeles',
254
295
  tag: 'Office',
255
- pid: 0
296
+ pid: 0,
297
+ qty: 101
256
298
  }, {
257
299
  id: 3,
258
300
  sn: 3,
@@ -260,7 +302,8 @@ tableData1.value = [{
260
302
  name: 'Tom3',
261
303
  address: 'No. 189, Grove St, Los Angeles',
262
304
  tag: 'Home',
263
- pid: 0
305
+ pid: 0,
306
+ qty: 102
264
307
  }, {
265
308
  id: 4,
266
309
  sn: 4,
@@ -268,7 +311,8 @@ tableData1.value = [{
268
311
  name: 'Tom4',
269
312
  address: 'No. 189, Grove St, Los Angeles',
270
313
  tag: 'Office',
271
- pid: 0
314
+ pid: 0,
315
+ qty: 103
272
316
  }, {
273
317
  id: 5,
274
318
  sn: 5,
@@ -276,7 +320,8 @@ tableData1.value = [{
276
320
  name: 'Tom4',
277
321
  address: 'No. 189, Grove St, Los Angeles',
278
322
  tag: 'Office',
279
- pid: 0
323
+ pid: 0,
324
+ qty: 104
280
325
  }, {
281
326
  id: 6,
282
327
  sn: 6,
@@ -284,7 +329,8 @@ tableData1.value = [{
284
329
  name: 'Tom4',
285
330
  address: 'No. 189, Grove St, Los Angeles',
286
331
  tag: 'Office',
287
- pid: 0
332
+ pid: 0,
333
+ qty: 105
288
334
  }]
289
335
 
290
336
  // 选中项
@@ -293,6 +339,12 @@ const handleSelectionChange = (val: any[]) => {
293
339
  multipleSelection.value = val.map(item => item.sn)
294
340
  tableData1.value[0].name = tableData1.value[0].name + 'd'
295
341
  }
342
+
343
+ /**
344
+ * 批量修改
345
+ * */
346
+ const selectionCell = ref<string>('')
347
+ const mBatchEditRef = ref<InstanceType<typeof MBatchEdit> | null>(null)
296
348
  </script>
297
349
 
298
350
  <style lang="scss" scoped>
@@ -1,5 +1,6 @@
1
1
  import { App, Plugin } from 'vue'
2
2
  import MTable from './src/MTable.vue'
3
+ import MBatchEdit from './src/MBatchEdit.vue'
3
4
 
4
5
  export const MTablePlugin: Plugin = {
5
6
  install (app: App) {
@@ -7,4 +8,10 @@ export const MTablePlugin: Plugin = {
7
8
  }
8
9
  }
9
10
 
10
- export { MTable }
11
+ export const MBatchEditPlugin: Plugin = {
12
+ install (app: App) {
13
+ app.component('MTable', MBatchEdit)
14
+ }
15
+ }
16
+
17
+ export { MTable, MBatchEdit }