next-element-vue 0.3.8 → 0.4.0
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 +1 -1
- package/dist/index.js +218 -96
- package/dist/index.min.js +3 -3
- package/dist/index.umd.js +217 -95
- package/dist/index.umd.min.js +3 -3
- package/dist/packages/components/crud-table-virtualized/src/index.test.d.ts +2 -2
- package/dist/packages/components/dialog/index.d.ts +18 -0
- package/dist/packages/components/dialog/src/index.d.ts +19 -0
- package/dist/packages/components/form/src/widgets/tree-cascader.d.ts +49 -0
- package/package.json +1 -1
package/dist/index.css
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
.next-tabs{align-items:center;box-shadow:0 2px 6px rgba(0,0,0,.06);display:flex;height:var(--next-layout-nav-height,45px);justify-content:space-between;position:relative;width:100%;z-index:11}.next-tabs .el-scrollbar__view,.next-tabs>.el-scrollbar{height:100%;width:100%}.next-tabs .el-scrollbar__view .next-tabs-list,.next-tabs>.el-scrollbar .next-tabs-list{box-sizing:border-box;display:flex;font-size:12px;height:100%;padding:10px 15px 0;white-space:nowrap}.next-tabs .el-scrollbar__view .next-tabs-list .active,.next-tabs .el-scrollbar__view .next-tabs-list li.is-active,.next-tabs .el-scrollbar__view .next-tabs-list li.tab-item:hover,.next-tabs>.el-scrollbar .el-scrollbar__view .next-tabs-list li.is-active,.next-tabs>.el-scrollbar .next-tabs-list .active,.next-tabs>.el-scrollbar .next-tabs-list li.is-active,.next-tabs>.el-scrollbar .next-tabs-list li.tab-item:hover{background-color:var(--el-color-primary-light-9);color:var(--el-color-primary);-webkit-mask:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAANoAAAAkBAMAAAAdqzmBAAAAMFBMVEVHcEwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAlTPQ5AAAAD3RSTlMAr3DvEM8wgCBA379gj5//tJBPAAAAnUlEQVRIx2NgAAM27fj/tAO/xBsYkIHyf9qCT8iWMf6nNQhAsk2f5rYheY7Dnua2/U+A28ZEe8v+F9Ax2v7/F4DbxkUH2wzgtvHTwbYPo7aN2jZq26hto7aN2jZq25Cy7Qvctnw62PYNbls9HWz7S8/G6//PsI6H4396gAUQy1je08W2jxDbpv6nD4gB2uWp+J9eYPsEhv/0BPS1DQBvoBLVZ3BppgAAAABJRU5ErkJggg==);-webkit-mask-repeat:no-repeat;-webkit-mask-size:100% 100%;padding:0 25px!important}.next-tabs .el-scrollbar__view .next-tabs-list li.tab-item,.next-tabs>.el-scrollbar .next-tabs-list li.tab-item{align-items:center;color:var(--el-text-color-primary);cursor:pointer;display:flex;font-size:var(--el-font-size-base);font-weight:400;height:calc(var(--next-layout-nav-height, 45px) - 10px);justify-content:center;margin-right:-10px;padding:0 20px;transition-duration:.3s;transition-property:width,padding;transition-timing-function:cubic-bezier(.645,.045,.355,1);-webkit-user-select:none;-moz-user-select:none;user-select:none}.next-tabs .el-scrollbar__view .next-tabs-list li.tab-item:hover,.next-tabs>.el-scrollbar .next-tabs-list li.tab-item:hover{background-color:var(--el-color-primary-light-9)}.next-tabs .el-scrollbar__view .next-tabs-list li.tab-item:hover .tab-close,.next-tabs>.el-scrollbar .next-tabs-list li.tab-item:hover .tab-close{transform:scale(1);width:14px}.next-tabs .el-scrollbar__view .next-tabs-list li.tab-item:hover .tab-icon,.next-tabs>.el-scrollbar .next-tabs-list li.tab-item:hover .tab-icon{color:var(--el-color-primary)}.next-tabs .el-scrollbar__view .next-tabs-list li.tab-item .el-icon svg,.next-tabs>.el-scrollbar .next-tabs-list li.tab-item .el-icon svg{height:unset;width:unset}.next-tabs .el-scrollbar__view .next-tabs-list li.tab-item .tab-icon,.next-tabs>.el-scrollbar .next-tabs-list li.tab-item .tab-icon{color:var(--el-text-color-primary);font-size:16px;margin-right:5px}.next-tabs .el-scrollbar__view .next-tabs-list li.tab-item .tab-close,.next-tabs>.el-scrollbar .next-tabs-list li.tab-item .tab-close{border-radius:50%;display:inline-block;font-size:12px;height:14px;line-height:15px;margin-left:10px;text-align:center;transform:scale(0);transition:all .3s cubic-bezier(.645,.045,.355,1);vertical-align:middle;width:0}.next-tabs .el-scrollbar__view .next-tabs-list li.tab-item .tab-close:hover,.next-tabs>.el-scrollbar .next-tabs-list li.tab-item .tab-close:hover{background-color:var(--el-color-primary-light-3);color:var(--el-color-white)}.next-tabs .el-scrollbar__view .next-tabs-list li.is-active,.next-tabs .el-scrollbar__view .next-tabs-list li.is-active .tab-icon,.next-tabs>.el-scrollbar .next-tabs-list li.is-active,.next-tabs>.el-scrollbar .next-tabs-list li.is-active .tab-icon{color:var(--el-color-primary)}.next-tabs .el-scrollbar__view .next-tabs-list li.is-active:hover,.next-tabs>.el-scrollbar .next-tabs-list li.is-active:hover{background-color:var(--el-color-primary-light-9)!important;color:var(--el-color-primary)}.next-tabs .next-tabs-tab-more{cursor:pointer;display:inline-block;padding:0 20px;transition:transform .3s ease-out}.next-tabs .next-tabs-tab-more:focus{outline:none}.next-tabs .next-tabs-tab-more__box{display:block;height:8px;position:relative;width:14px}.next-tabs .next-tabs-tab-more__box:before{background:#9a9a9a;content:"";height:6px;left:0;position:absolute;top:2px;transition:transform .3s ease-out .3s;width:6px}.next-tabs .next-tabs-tab-more__box:after{background:#9a9a9a;content:"";height:6px;left:8px;position:absolute;top:2px;width:6px}.next-tabs .next-tabs-tab-more[aria-expanded=true]{color:var(--el-color-primary);transform:rotate(90deg)}.next-tabs .next-tabs-tab-more[aria-expanded=true] .next-tabs-tab-more__top:before{background:var(--el-color-primary);transform:rotate(45deg)}.next-tabs .next-tabs-tab-more[aria-expanded=true] .next-tabs-tab-more__bottom:after,.next-tabs .next-tabs-tab-more[aria-expanded=true] .next-tabs-tab-more__bottom:before,.next-tabs .next-tabs-tab-more[aria-expanded=true] .next-tabs-tab-more__top:after{background:var(--el-color-primary)}
|
|
6
6
|
.next-container{box-sizing:border-box;height:100%;width:100%}.next-container .next-container-card,.next-container>.el-scrollbar__wrap>.el-scrollbar__view{box-sizing:border-box;height:100%;padding:var(--next-container-padding,20px)}.next-container .next-container-card{background-color:var(--next-main-bg-color,#fff);border-radius:12px;box-shadow:0 0 27px rgba(0,0,0,.05);transition:all .3s}
|
|
7
7
|
.next-dialog{border-radius:6px;padding:unset;transition:all .3s ease-out}.next-dialog .el-dialog__header{align-items:center;background-color:var(--el-color-primary-light-9);border-bottom:1px solid var(--el-color-primary-light-8);border-radius:6px 6px 0 0;display:flex;justify-content:space-between;margin-right:unset;padding:var(--el-dialog-padding-primary)}.next-dialog .el-dialog__header .el-dialog__title{color:#303133;font-size:16px;font-weight:400}.next-dialog .el-dialog__header .next-dialog-header{align-items:center;display:flex;justify-content:space-between;width:100%}.next-dialog .el-dialog__header .next-dialog__header-right{align-items:center;display:flex;height:var(--el-dialog-font-line-height)}.next-dialog .el-dialog__header .next-dialog__header-right .icon-fullscreen{font-size:18px;margin-top:2px}.next-dialog .el-dialog__header .next-dialog__header-right .el-icon{color:#909399;cursor:pointer}.next-dialog .el-dialog__header .next-dialog__header-right .el-icon:hover{color:var(--el-color-primary)}.next-dialog .el-dialog__header .next-dialog__header-right .icon-close{align-items:center;display:flex;margin-left:10px}.next-dialog .el-dialog__header .next-dialog__header-right .icon-close .el-icon{transition:all .3s}.next-dialog .el-dialog__header .next-dialog__header-right .icon-close:hover .el-icon{transform:rotate(90deg)}.next-dialog .el-dialog__body{min-height:60px;padding:10px 20px}.next-dialog .el-dialog__footer{padding:unset}.next-dialog .next-dialog-footer__zoom{bottom:-10px;cursor:se-resize;height:20px;position:absolute;right:-10px;width:20px}.next-dialog.is-fullscreen{border-radius:3px;overflow-y:hidden}.next-dialog.is-fullscreen .el-dialog__body{box-sizing:border-box;height:calc(100% - 55px);overflow-y:auto}.next-dialog.is-fullscreen .el-dialog__body::-webkit-scrollbar{background-color:#f5f5f5;height:6px;width:6px}.next-dialog.is-fullscreen .el-dialog__body::-webkit-scrollbar-thumb{background-color:#ccc;border-radius:3px}.next-dialog.is-fullscreen .el-dialog__body::-webkit-scrollbar-thumb:hover{background-color:#aaa}.next-dialog.is-fullscreen .el-dialog__body::-webkit-scrollbar-thumb:inactive{background-color:#eee}
|
|
8
|
-
.next-form .next-form__input-table .el-input__wrapper,.next-form .next-form__input-table .next-form__input-table--placeholder,.next-form .next-form__input-table .next-form__input-table--value,.text-ellipsis{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.next-form{padding:10px 0}.next-form .el-form-item .el-form-item__label{align-items:center;text-align:right;width:var(--form-label-width)}.next-form .el-form-item .el-form-item__label .next-form__item-label{box-sizing:border-box;max-width:100%;width:auto}.next-form .el-form-item .el-form-item__content>.el-checkbox-group,.next-form .el-form-item .el-form-item__content>.el-input,.next-form .el-form-item .el-form-item__content>.el-select{width:100%}.next-form .next-form__number-range{align-items:center;display:flex;justify-content:space-evenly;width:100%}.next-form .next-form__number-range .el-input-number{flex:1 1 auto}.next-form .next-form__number-range .el-input-number .el-input-number__decrease,.next-form .next-form__number-range .el-input-number .el-input-number__increase{width:24px}.next-form .next-form__number-range .el-input-number .el-input__wrapper{padding-left:26px;padding-right:26px}.next-form .next-form__number-range .next-form__number-range--division{color:#606266;font-size:12px;padding:0 10px}.next-form .next-form__input-table{height:calc(var(--el-input-height, 32px))}.next-form .next-form__input-table .el-input__wrapper{border-bottom-right-radius:0;border-top-right-radius:0;justify-content:flex-start}.next-form .next-form__input-table .el-input__wrapper:hover{box-shadow:0 0 0 1px var(--el-input-focus-border-color) inset}.next-form .next-form__input-table .next-form__input-table--value{align-items:center;color:var(--el-input-text-color,var(--el-text-color-regular));display:flex;width:100%}.next-form .next-form__input-table .next-form__input-table--value>.el-tag{margin-right:6px}.next-form .next-form__input-table .next-form__input-table--value>.el-tag:last-child{margin-right:unset}.next-form .next-form__input-table .next-form__input-table--placeholder{color:var(--el-text-color-placeholder)}.next-form .next-form__input-table .next-form__input-table--append{border-bottom-left-radius:0;border-top-left-radius:0}.next-form .next-form__input-table.is-disabled,.next-form .next-form__input-table.is-disabled .el-input__wrapper{cursor:not-allowed}.next-form .next-form__input-table.is-disabled .el-input__wrapper:hover{box-shadow:none}.next-form .next-form__preview-image{margin-right:6px}.next-form .next-form__preview-image:last-child{margin-right:unset}.next-form .next-form__footer{padding:10px 0;text-align:center}.next-form__input-table--content{height:500px}.next-form__input-table--content .el-radio-group{height:100%;width:100%}.next-form__input-table--content .el-radio-group .el-radio .el-radio__label{display:none}.next-form__input-table--content .el-radio-group .next-crud-table .el-input__wrapper{box-shadow:0 0 0 1px var(--el-input-border-color,var(--el-border-color)) inset}.next-form__tooltip-tags>.el-tag{margin:0 3px}.next-form__input-table--footer{bottom:-10px;padding:0 0 10px;position:sticky;text-align:right}.next-dialog.is-fullscreen .el-dialog__body .next-form__input-table--content{height:calc(100% - 50px)}
|
|
8
|
+
.next-form .next-form__input-table .el-input__wrapper,.next-form .next-form__input-table .next-form__input-table--placeholder,.next-form .next-form__input-table .next-form__input-table--value,.text-ellipsis{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.next-form{padding:10px 0}.next-form .el-form-item .el-form-item__label{align-items:center;text-align:right;width:var(--form-label-width)}.next-form .el-form-item .el-form-item__label .next-form__item-label{box-sizing:border-box;max-width:100%;width:auto}.next-form .el-form-item .el-form-item__content>.el-cascader,.next-form .el-form-item .el-form-item__content>.el-checkbox-group,.next-form .el-form-item .el-form-item__content>.el-input,.next-form .el-form-item .el-form-item__content>.el-select{width:100%}.next-form .next-form__number-range{align-items:center;display:flex;justify-content:space-evenly;width:100%}.next-form .next-form__number-range .el-input-number{flex:1 1 auto}.next-form .next-form__number-range .el-input-number .el-input-number__decrease,.next-form .next-form__number-range .el-input-number .el-input-number__increase{width:24px}.next-form .next-form__number-range .el-input-number .el-input__wrapper{padding-left:26px;padding-right:26px}.next-form .next-form__number-range .next-form__number-range--division{color:#606266;font-size:12px;padding:0 10px}.next-form .next-form__input-table{height:calc(var(--el-input-height, 32px))}.next-form .next-form__input-table .el-input__wrapper{border-bottom-right-radius:0;border-top-right-radius:0;justify-content:flex-start}.next-form .next-form__input-table .el-input__wrapper:hover{box-shadow:0 0 0 1px var(--el-input-focus-border-color) inset}.next-form .next-form__input-table .next-form__input-table--value{align-items:center;color:var(--el-input-text-color,var(--el-text-color-regular));display:flex;width:100%}.next-form .next-form__input-table .next-form__input-table--value>.el-tag{margin-right:6px}.next-form .next-form__input-table .next-form__input-table--value>.el-tag:last-child{margin-right:unset}.next-form .next-form__input-table .next-form__input-table--placeholder{color:var(--el-text-color-placeholder)}.next-form .next-form__input-table .next-form__input-table--append{border-bottom-left-radius:0;border-top-left-radius:0}.next-form .next-form__input-table.is-disabled,.next-form .next-form__input-table.is-disabled .el-input__wrapper{cursor:not-allowed}.next-form .next-form__input-table.is-disabled .el-input__wrapper:hover{box-shadow:none}.next-form .next-form__preview-image{margin-right:6px}.next-form .next-form__preview-image:last-child{margin-right:unset}.next-form .next-form__footer{padding:10px 0;text-align:center}.next-form__input-table--content{height:500px}.next-form__input-table--content .el-radio-group{height:100%;width:100%}.next-form__input-table--content .el-radio-group .el-radio .el-radio__label{display:none}.next-form__input-table--content .el-radio-group .next-crud-table .el-input__wrapper{box-shadow:0 0 0 1px var(--el-input-border-color,var(--el-border-color)) inset}.next-form__tooltip-tags>.el-tag{margin:0 3px}.next-form__input-table--footer{bottom:-10px;padding:0 0 10px;position:sticky;text-align:right}.next-dialog.is-fullscreen .el-dialog__body .next-form__input-table--content{height:calc(100% - 50px)}
|
|
9
9
|
.next-crud-table-header-search-expandBtn>span,.text-ellipsis{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.next-crud-table{height:100%;transition:all .3s;width:inherit}.next-crud-table-header-search-item .el-form-item{box-sizing:border-box;margin-bottom:18px;margin-right:10px;width:100%}.next-crud-table-header-search-item .el-form-item .el-date-editor--datetimerange,.next-crud-table-header-search-item .el-form-item .el-input,.next-crud-table-header-search-item .el-form-item .el-select{width:100%}.next-crud-table-header-search-item .el-form-item .el-date-editor--datetimerange .el-range-separator,.next-crud-table-header-search-item .el-form-item .el-input .el-range-separator,.next-crud-table-header-search-item .el-form-item .el-select .el-range-separator{font-size:12px}.next-crud-table-header-search-item input::-webkit-inner-spin-button,.next-crud-table-header-search-item input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.next-crud-table-header-search-item input[type=number]{-moz-appearance:textfield}.next-crud-table-header-search-item-number-range{align-items:center;display:flex;justify-content:space-evenly;width:100%}.next-crud-table-header-search-item-number-range .el-input-number{flex:1 1 auto}.next-crud-table-header-search-item-number-range .el-input-number .el-input-number__decrease,.next-crud-table-header-search-item-number-range .el-input-number .el-input-number__increase{width:24px}.next-crud-table-header-search-item-number-range .el-input-number .el-input__wrapper{padding-left:26px;padding-right:26px}.next-crud-table-header-search-item-number-range .number-range-division{color:#606266;font-size:12px;padding:0 10px}.next-crud-table-header-search-btns .el-form-item__content{flex-wrap:nowrap}.next-crud-table-header-search-expandBtn .el-icon{transform:rotate(90deg)}.next-crud-table-header-search-expandBtn>span{display:inline-block;max-width:70px}.next-crud-table-header-menu{align-items:center;display:flex;justify-content:space-between;padding-bottom:10px}.next-crud-table-content{flex:1 1}.next-crud-table-content .el-table{transition:all .3s}.next-crud-table-content .operations-btn.el-button span{margin-left:unset}.next-crud-table-content .el-table__header-wrapper .el-table__header thead tr th{background-color:var(--el-color-primary-light-8)}.next-crud-table-content .el-table__header-wrapper .el-table__header thead tr th .cell{align-items:center;display:flex;white-space:nowrap}.next-crud-table-content .el-table__header-wrapper .el-table__header thead tr th.is-center .cell{justify-content:center}.next-crud-table-content .el-table__body-wrapper .el-table__body tr.el-table__row td.el-table__cell em.cell-unit{color:#909399;font-size:12px;padding-left:2px}.next-crud-table-content .el-table__body-wrapper .el-table__body tr.hover-row td.el-table__cell{background-color:var(--el-color-primary-light-9)}.next-crud-table-content .el-scrollbar__bar.is-horizontal{height:8px}.next-crud-table-content .el-table-fixed-column--right .el-button+.el-button.is-text{margin-left:unset}.next-crud-table-content .el-empty{padding:unset}.next-crud-table-content .el-empty .el-empty__description{margin-top:unset}.next-crud-table-footer .el-pagination{display:flex;justify-content:center;padding:10px 0}.next-crud-table-setting-drawer .el-drawer__header{border-bottom:1px solid #dcdfe6;margin-bottom:0;padding-bottom:22px}.next-crud-table-setting-drawer .el-drawer__body{padding:0}.next-crud-table-setting-drawer__container{padding:10px 20px}
|
|
10
10
|
.text-ellipsis{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.next-crud-table-virtualized{height:100%;transition:all .3s;width:inherit}
|
|
11
11
|
.next-spin-loading{position:relative}.next-spin-loading-mask{-webkit-backdrop-filter:blur(1px);backdrop-filter:blur(1px);height:100%;inset-inline-start:0;left:0;position:absolute;top:0;transition:opacity .3s;width:100%;z-index:4}.next-spin-loading-mask-dot{animation:antRotate 1.2s linear infinite;inset-inline-start:50%;position:absolute;top:50%;transform:rotate(45deg)}.next-spin-loading-mask__text{color:var(--el-color-primary);font-size:14px;left:0;padding-top:15px;position:absolute;text-align:center;text-shadow:0 1px 2px #fff;top:50%;width:100%}.next-spin-loading-mask__dot-item{animation:antSpinMove 1s linear infinite alternate;background-color:var(--el-color-primary);border-radius:100%;display:block;height:12px;opacity:.3;position:absolute;transform:scale(.75);transform-origin:50% 50%;width:12px}.next-spin-loading-mask__dot-item:first-child{inset-inline-start:0;top:0}.next-spin-loading-mask__dot-item:nth-child(2){animation-delay:.4s;inset-inline-end:0;top:0}.next-spin-loading-mask__dot-item:nth-child(3){animation-delay:.8s;bottom:0;inset-inline-end:0}.next-spin-loading-mask__dot-item:nth-child(4){animation-delay:1.2s;bottom:0;inset-inline-start:0}@keyframes antRotate{to{transform:rotate(405deg)}}@keyframes antSpinMove{to{opacity:1}}
|
package/dist/index.js
CHANGED
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
/**
|
|
3
3
|
* 作 者:huangteng
|
|
4
4
|
* 邮 箱:htengweb@163.com
|
|
5
|
-
* 当前版本:0.
|
|
6
|
-
* 发布日期:2024-
|
|
5
|
+
* 当前版本:0.4.0 v
|
|
6
|
+
* 发布日期:2024-11-13
|
|
7
7
|
* 地 址:https://www.npmjs.com/package/next-element-vue
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
import { getCurrentInstance, inject, ref, computed, unref, isRef, defineComponent, createVNode, Fragment, openBlock, createElementBlock, createElementVNode, reactive, createTextVNode, resolveComponent, Teleport, isVNode, onUnmounted, provide, watch, markRaw, watchEffect, h, onMounted, toRaw, render, nextTick, toRef } from "vue";
|
|
11
11
|
|
|
12
|
-
import { localeContextKey as localeContextKey$1, ElMessage, ElTooltip, ElScrollbar, ElDivider, ElColorPicker, ElSwitch, ElDropdown, ElIcon, ElDropdownMenu, ElDropdownItem, ElDrawer, ElMenuItem, ElSubMenu, ElMenu, ElContainer, ElCol, ElFormItem, ElInput, ElSelect, ElOption, ElDatePicker, ElInputNumber, ElForm, ElRow, ElButton, ElTable, ElTableColumn, ElCheckbox, ElMessageBox, ElPagination, ElDialog, ElTag, ElRadioGroup, ElRadio, ElUpload, ElImageViewer, ElImage, ElTreeSelect, ElTimeSelect, ElCheckboxGroup, ElEmpty, ElPopover, ElPopconfirm } from "element-plus";
|
|
12
|
+
import { localeContextKey as localeContextKey$1, ElMessage, ElTooltip, ElScrollbar, ElDivider, ElColorPicker, ElSwitch, ElDropdown, ElIcon, ElDropdownMenu, ElDropdownItem, ElDrawer, ElMenuItem, ElSubMenu, ElMenu, ElContainer, ElCol, ElFormItem, ElInput, ElSelect, ElOption, ElDatePicker, ElInputNumber, ElForm, ElRow, ElButton, ElTable, ElTableColumn, ElCheckbox, ElMessageBox, ElPagination, ElDialog, ElTag, ElRadioGroup, ElRadio, ElUpload, ElImageViewer, ElImage, ElTreeSelect, ElCascader, ElTimeSelect, ElCheckboxGroup, ElEmpty, ElPopover, ElPopconfirm } from "element-plus";
|
|
13
13
|
|
|
14
14
|
import { useDateFormat, useNow, useFullscreen } from "@vueuse/core";
|
|
15
15
|
|
|
@@ -1977,15 +1977,18 @@ var Header$3 = defineComponent({
|
|
|
1977
1977
|
return isHeaderBarColorGradual ? {
|
|
1978
1978
|
background: `linear-gradient(to bottom , ${color}, ${getLightColor$3(color, .5)})`
|
|
1979
1979
|
} : "";
|
|
1980
|
-
}));
|
|
1981
|
-
return
|
|
1980
|
+
})), __slots_header_tools = {};
|
|
1981
|
+
return slots[slots_config_headerToolsPrefix] && (__slots_header_tools[slots_config_headerToolsPrefix] = () => slots[slots_config_headerToolsPrefix]()),
|
|
1982
|
+
slots[slots_config_headerToolsSuffix] && (__slots_header_tools[slots_config_headerToolsSuffix] = () => slots[slots_config_headerToolsSuffix]()),
|
|
1983
|
+
createVNode("header", {
|
|
1982
1984
|
class: _ns.b("header"),
|
|
1983
1985
|
style: headerStyle.value
|
|
1984
1986
|
}, [ createVNode(LogoView, null, null), createVNode("div", {
|
|
1985
1987
|
class: _ns.bf("header", "right")
|
|
1986
|
-
}, [ createVNode(HeaderTools, null, {
|
|
1987
|
-
default: () => [
|
|
1988
|
-
}) ]) ]);
|
|
1988
|
+
}, [ createVNode(HeaderTools, null, (s = __slots_header_tools, "function" == typeof s || "[object Object]" === Object.prototype.toString.call(s) && !isVNode(s) ? __slots_header_tools : {
|
|
1989
|
+
default: () => [ __slots_header_tools ]
|
|
1990
|
+
})) ]) ]);
|
|
1991
|
+
var s;
|
|
1989
1992
|
}
|
|
1990
1993
|
});
|
|
1991
1994
|
|
|
@@ -2824,21 +2827,29 @@ var defaults = defineComponent({
|
|
|
2824
2827
|
render() {
|
|
2825
2828
|
const slots = this.$slots, _config = inject("options", {}), _emit = inject("__emit__", {});
|
|
2826
2829
|
slots.menu;
|
|
2830
|
+
const __slots_header_tools = {};
|
|
2831
|
+
slots[slots_config_headerToolsPrefix] && (__slots_header_tools[slots_config_headerToolsPrefix] = () => slots[slots_config_headerToolsPrefix]()),
|
|
2832
|
+
slots[slots_config_headerToolsSuffix] && (__slots_header_tools[slots_config_headerToolsSuffix] = () => slots[slots_config_headerToolsSuffix]());
|
|
2827
2833
|
const isTabs = ref(!!slots.tabs);
|
|
2828
2834
|
return void 0 === slots.tabs && _config.showTabs && (isTabs.value = !0), createVNode(ElContainer, {
|
|
2829
2835
|
class: ns$j.b()
|
|
2830
2836
|
}, {
|
|
2831
|
-
default: () =>
|
|
2832
|
-
|
|
2833
|
-
|
|
2834
|
-
|
|
2835
|
-
|
|
2836
|
-
|
|
2837
|
-
|
|
2838
|
-
|
|
2839
|
-
|
|
2840
|
-
|
|
2841
|
-
|
|
2837
|
+
default: () => {
|
|
2838
|
+
return [ createVNode(Sidebar$2, null, null), createVNode("div", {
|
|
2839
|
+
class: [ ns$j.b("content") ]
|
|
2840
|
+
}, [ createVNode(Header$3, null, (s = __slots_header_tools, "function" == typeof s || "[object Object]" === Object.prototype.toString.call(s) && !isVNode(s) ? __slots_header_tools : {
|
|
2841
|
+
default: () => [ __slots_header_tools ]
|
|
2842
|
+
})), _config.showTabs ? slots.tabs ? slots.tabs?.() : createVNode(NextTabs, {
|
|
2843
|
+
tabs: _config.tabs,
|
|
2844
|
+
activeTab: _config.activeTab,
|
|
2845
|
+
onChange: (...arg) => _emit("tabsChange", ...arg),
|
|
2846
|
+
onSelect: (...arg) => _emit("tabsSelect", ...arg),
|
|
2847
|
+
onClose: (...arg) => _emit("tabsClose", ...arg)
|
|
2848
|
+
}, null) : null, createVNode("main", {
|
|
2849
|
+
class: [ ns$j.bf("main"), ns$j.is("layout-tabs", isTabs.value) ]
|
|
2850
|
+
}, [ slots.default?.() ]) ]) ];
|
|
2851
|
+
var s;
|
|
2852
|
+
}
|
|
2842
2853
|
});
|
|
2843
2854
|
}
|
|
2844
2855
|
});
|
|
@@ -2852,21 +2863,26 @@ var Header$2 = defineComponent({
|
|
|
2852
2863
|
return isHeaderBarColorGradual ? {
|
|
2853
2864
|
background: `linear-gradient(to bottom , ${color}, ${getLightColor$2(color, .5)})`
|
|
2854
2865
|
} : "";
|
|
2855
|
-
}));
|
|
2856
|
-
|
|
2857
|
-
|
|
2858
|
-
|
|
2859
|
-
|
|
2860
|
-
|
|
2861
|
-
|
|
2862
|
-
|
|
2863
|
-
|
|
2864
|
-
|
|
2865
|
-
|
|
2866
|
-
|
|
2867
|
-
|
|
2868
|
-
|
|
2869
|
-
|
|
2866
|
+
})), __slots_header_tools = {};
|
|
2867
|
+
slots[slots_config_headerToolsPrefix] && (__slots_header_tools[slots_config_headerToolsPrefix] = () => slots[slots_config_headerToolsPrefix]()),
|
|
2868
|
+
slots[slots_config_headerToolsSuffix] && (__slots_header_tools[slots_config_headerToolsSuffix] = () => slots[slots_config_headerToolsSuffix]());
|
|
2869
|
+
return () => {
|
|
2870
|
+
return createVNode(Fragment, null, [ createVNode("header", {
|
|
2871
|
+
class: _ns.b("header"),
|
|
2872
|
+
style: headerStyle.value
|
|
2873
|
+
}, [ createVNode(LogoView, null, null), createVNode("div", {
|
|
2874
|
+
class: _ns.bf("header", "menu")
|
|
2875
|
+
}, [ slots[slots_config_headerMenu] ? slots[slots_config_headerMenu]() : createVNode(NextMenu, {
|
|
2876
|
+
menuTree: _config.menuTree,
|
|
2877
|
+
router: _config.menuRouter,
|
|
2878
|
+
mode: _config.menuMode
|
|
2879
|
+
}, null) ]), createVNode("div", {
|
|
2880
|
+
class: _ns.bf("header", "right")
|
|
2881
|
+
}, [ createVNode(HeaderTools, null, (s = __slots_header_tools, "function" == typeof s || "[object Object]" === Object.prototype.toString.call(s) && !isVNode(s) ? __slots_header_tools : {
|
|
2882
|
+
default: () => [ __slots_header_tools ]
|
|
2883
|
+
})) ]) ]) ]);
|
|
2884
|
+
var s;
|
|
2885
|
+
};
|
|
2870
2886
|
}
|
|
2871
2887
|
});
|
|
2872
2888
|
|
|
@@ -2906,17 +2922,22 @@ var Header$1 = defineComponent({
|
|
|
2906
2922
|
return isHeaderBarColorGradual ? {
|
|
2907
2923
|
background: `linear-gradient(to bottom , ${color}, ${getLightColor$1(color, .5)})`
|
|
2908
2924
|
} : "";
|
|
2909
|
-
}));
|
|
2910
|
-
|
|
2911
|
-
|
|
2912
|
-
|
|
2913
|
-
|
|
2914
|
-
|
|
2915
|
-
|
|
2916
|
-
|
|
2917
|
-
|
|
2918
|
-
|
|
2919
|
-
|
|
2925
|
+
})), __slots_header_tools = {};
|
|
2926
|
+
slots[slots_config_headerToolsPrefix] && (__slots_header_tools[slots_config_headerToolsPrefix] = () => slots[slots_config_headerToolsPrefix]()),
|
|
2927
|
+
slots[slots_config_headerToolsSuffix] && (__slots_header_tools[slots_config_headerToolsSuffix] = () => slots[slots_config_headerToolsSuffix]());
|
|
2928
|
+
return () => {
|
|
2929
|
+
return createVNode(Fragment, null, [ createVNode("header", {
|
|
2930
|
+
class: _ns.b("header"),
|
|
2931
|
+
style: headerStyle.value
|
|
2932
|
+
}, [ createVNode(LogoView, null, null), createVNode("div", {
|
|
2933
|
+
class: _ns.bf("header", "menu")
|
|
2934
|
+
}, null), createVNode("div", {
|
|
2935
|
+
class: _ns.bf("header", "right")
|
|
2936
|
+
}, [ createVNode(HeaderTools, null, (s = __slots_header_tools, "function" == typeof s || "[object Object]" === Object.prototype.toString.call(s) && !isVNode(s) ? __slots_header_tools : {
|
|
2937
|
+
default: () => [ __slots_header_tools ]
|
|
2938
|
+
})) ]) ]) ]);
|
|
2939
|
+
var s;
|
|
2940
|
+
};
|
|
2920
2941
|
}
|
|
2921
2942
|
}), Sidebar$1 = defineComponent({
|
|
2922
2943
|
setup: () => ({
|
|
@@ -2976,17 +2997,22 @@ var Header = defineComponent({
|
|
|
2976
2997
|
return isHeaderBarColorGradual ? {
|
|
2977
2998
|
background: `linear-gradient(to bottom , ${color}, ${getLightColor(color, .5)})`
|
|
2978
2999
|
} : "";
|
|
2979
|
-
}));
|
|
2980
|
-
|
|
2981
|
-
|
|
2982
|
-
|
|
2983
|
-
|
|
2984
|
-
|
|
2985
|
-
|
|
2986
|
-
|
|
2987
|
-
|
|
2988
|
-
|
|
2989
|
-
|
|
3000
|
+
})), __slots_header_tools = {};
|
|
3001
|
+
slots[slots_config_headerToolsPrefix] && (__slots_header_tools[slots_config_headerToolsPrefix] = () => slots[slots_config_headerToolsPrefix]()),
|
|
3002
|
+
slots[slots_config_headerToolsSuffix] && (__slots_header_tools[slots_config_headerToolsSuffix] = () => slots[slots_config_headerToolsSuffix]());
|
|
3003
|
+
return () => {
|
|
3004
|
+
return createVNode(Fragment, null, [ createVNode("header", {
|
|
3005
|
+
class: _ns.b("header"),
|
|
3006
|
+
style: headerStyle.value
|
|
3007
|
+
}, [ createVNode(LogoView, null, null), createVNode("div", {
|
|
3008
|
+
class: _ns.bf("header", "menu")
|
|
3009
|
+
}, [ slots[slots_config_headerMenu]?.() ]), createVNode("div", {
|
|
3010
|
+
class: _ns.bf("header", "right")
|
|
3011
|
+
}, [ createVNode(HeaderTools, null, (s = __slots_header_tools, "function" == typeof s || "[object Object]" === Object.prototype.toString.call(s) && !isVNode(s) ? __slots_header_tools : {
|
|
3012
|
+
default: () => [ __slots_header_tools ]
|
|
3013
|
+
})) ]) ]) ]);
|
|
3014
|
+
var s;
|
|
3015
|
+
};
|
|
2990
3016
|
}
|
|
2991
3017
|
}), Sidebar = defineComponent({
|
|
2992
3018
|
setup: () => ({
|
|
@@ -3015,8 +3041,14 @@ var classic = defineComponent({
|
|
|
3015
3041
|
render() {
|
|
3016
3042
|
const slots = this.$slots, _config = inject("options", {}), _emit = inject("__emit__", {});
|
|
3017
3043
|
slots.menu;
|
|
3044
|
+
const __slots_header_tools = {};
|
|
3045
|
+
slots[slots_config_headerToolsPrefix] && (__slots_header_tools[slots_config_headerToolsPrefix] = () => slots[slots_config_headerToolsPrefix]()),
|
|
3046
|
+
slots[slots_config_headerToolsSuffix] && (__slots_header_tools[slots_config_headerToolsSuffix] = () => slots[slots_config_headerToolsSuffix]());
|
|
3018
3047
|
const isTabs = ref(!!slots.tabs);
|
|
3019
|
-
return void 0 === slots.tabs && _config.showTabs && (isTabs.value = !0), createVNode(Fragment, null, [ createVNode(Header, null,
|
|
3048
|
+
return void 0 === slots.tabs && _config.showTabs && (isTabs.value = !0), createVNode(Fragment, null, [ createVNode(Header, null, (s = __slots_header_tools,
|
|
3049
|
+
"function" == typeof s || "[object Object]" === Object.prototype.toString.call(s) && !isVNode(s) ? __slots_header_tools : {
|
|
3050
|
+
default: () => [ __slots_header_tools ]
|
|
3051
|
+
})), createVNode("div", {
|
|
3020
3052
|
class: [ ns$g.b("content"), ns$g.is("layout-tabs", isTabs.value) ]
|
|
3021
3053
|
}, [ createVNode(Sidebar, null, null), createVNode("div", {
|
|
3022
3054
|
class: ns$g.b("container")
|
|
@@ -3029,6 +3061,7 @@ var classic = defineComponent({
|
|
|
3029
3061
|
}, null) : null, createVNode("main", {
|
|
3030
3062
|
class: [ ns$g.b("main") ]
|
|
3031
3063
|
}, [ slots.default?.() ]) ]) ]) ]);
|
|
3064
|
+
var s;
|
|
3032
3065
|
}
|
|
3033
3066
|
});
|
|
3034
3067
|
|
|
@@ -3963,9 +3996,15 @@ const TableColumnDynamic = defineComponent({
|
|
|
3963
3996
|
columnSlots.value.forEach((slotName => {
|
|
3964
3997
|
column_slots[slotName] = (...arg) => slots[slotName] && slots[slotName](...arg);
|
|
3965
3998
|
}));
|
|
3966
|
-
const _options = inject("options", {}), options = isRef(_options) ? unref(_options) : _options, columnOption = props.columnOption, _dicKey = valueExist(columnOption.dicKey, "value"), _formatterColumnValue = (value, dicData) => {
|
|
3999
|
+
const _options = inject("options", {}), options = isRef(_options) ? unref(_options) : _options, columnOption = props.columnOption, _dicKey = valueExist(columnOption.dicKey, "value"), _dicLabel = valueExist(columnOption.dicLabel, columnOption.treeSelectProps?.label, "label"), _separator = valueExist(columnOption.treeSelectProps?.separator, ","), _formatterColumnValue = (value, dicData) => {
|
|
4000
|
+
if (Array.isArray(value)) {
|
|
4001
|
+
const temp = [];
|
|
4002
|
+
return value.forEach((val => {
|
|
4003
|
+
temp.push(_formatterColumnValue(val, dicData));
|
|
4004
|
+
})), temp.join(_separator);
|
|
4005
|
+
}
|
|
3967
4006
|
const item = dicData.find((o => o[_dicKey] == value));
|
|
3968
|
-
return item ? item
|
|
4007
|
+
return item ? item[_dicLabel] : value;
|
|
3969
4008
|
}, renderCustomItem = (row, $index) => {
|
|
3970
4009
|
if (columnOption.children?.length > 0) return createVNode(Fragment, null, [ columnOption.children.map((column => {
|
|
3971
4010
|
return createVNode(TableColumnDynamic, {
|
|
@@ -4161,6 +4200,14 @@ const ns$b = useNamespace("dialog");
|
|
|
4161
4200
|
var NextDialog$1 = defineComponent({
|
|
4162
4201
|
name: "NextDialog",
|
|
4163
4202
|
props: {
|
|
4203
|
+
className: {
|
|
4204
|
+
type: String,
|
|
4205
|
+
default: ""
|
|
4206
|
+
},
|
|
4207
|
+
style: {
|
|
4208
|
+
type: Object,
|
|
4209
|
+
default: () => ({})
|
|
4210
|
+
},
|
|
4164
4211
|
modelValue: {
|
|
4165
4212
|
type: Boolean,
|
|
4166
4213
|
default: !1
|
|
@@ -4226,7 +4273,8 @@ var NextDialog$1 = defineComponent({
|
|
|
4226
4273
|
return () => createVNode(Fragment, null, [ createVNode(ElDialog, {
|
|
4227
4274
|
modelValue: visible.value,
|
|
4228
4275
|
"onUpdate:modelValue": $event => visible.value = $event,
|
|
4229
|
-
class: ns$b.b(),
|
|
4276
|
+
class: [ ns$b.b(), props.className ],
|
|
4277
|
+
style: props.style,
|
|
4230
4278
|
title: props.title,
|
|
4231
4279
|
appendToBody: props.appendToBody,
|
|
4232
4280
|
"destroy-on-close": !0,
|
|
@@ -4750,6 +4798,60 @@ var UploadImage = defineComponent({
|
|
|
4750
4798
|
onClear: onClearValue
|
|
4751
4799
|
}, null) ]);
|
|
4752
4800
|
}
|
|
4801
|
+
}), NestTreeCascader = defineComponent({
|
|
4802
|
+
name: "NextTreeCascader",
|
|
4803
|
+
props: {
|
|
4804
|
+
modelValue: {
|
|
4805
|
+
type: [ Number, String, Boolean, Object, Array ],
|
|
4806
|
+
default: ""
|
|
4807
|
+
},
|
|
4808
|
+
column: {
|
|
4809
|
+
type: Object,
|
|
4810
|
+
default: () => ({})
|
|
4811
|
+
},
|
|
4812
|
+
disabled: {
|
|
4813
|
+
type: Boolean,
|
|
4814
|
+
default: !1
|
|
4815
|
+
},
|
|
4816
|
+
formParams: {
|
|
4817
|
+
type: Object,
|
|
4818
|
+
default: () => ({})
|
|
4819
|
+
}
|
|
4820
|
+
},
|
|
4821
|
+
emits: [ "change", "clear", "expand-change", "visible-change", "remove-tag", "blur", "focus" ],
|
|
4822
|
+
setup(props, {emit: emit, expose: expose}) {
|
|
4823
|
+
const {t: t} = useLocale(), _modelValue = ref(props.modelValue);
|
|
4824
|
+
watch((() => props.modelValue), (val => {
|
|
4825
|
+
_modelValue.value = val;
|
|
4826
|
+
}));
|
|
4827
|
+
const _column = props.column, placeholder = _column.placeholder || t("next.form.select") + _column.label, _defaultProps = {
|
|
4828
|
+
label: "label",
|
|
4829
|
+
children: "children"
|
|
4830
|
+
}, onChange = val => {
|
|
4831
|
+
const nodes = treeSelectRef.value.getCheckedNodes().map((item => item.data));
|
|
4832
|
+
props.formParams[_column.prop] = val, _modelValue.value = val, emit("change", val, nodes);
|
|
4833
|
+
}, treeSelectRef = ref(), getInstance = () => treeSelectRef.value;
|
|
4834
|
+
_column.loadInstance && _column.loadInstance(getInstance()), expose({
|
|
4835
|
+
getInstance: getInstance,
|
|
4836
|
+
onClearValue: () => {
|
|
4837
|
+
props.formParams[_column.prop] = "", _modelValue.value = "";
|
|
4838
|
+
}
|
|
4839
|
+
});
|
|
4840
|
+
return () => createVNode(Fragment, null, [ createVNode(ElCascader, {
|
|
4841
|
+
ref: treeSelectRef,
|
|
4842
|
+
modelValue: _modelValue.value,
|
|
4843
|
+
"onUpdate:modelValue": $event => _modelValue.value = $event,
|
|
4844
|
+
placeholder: placeholder,
|
|
4845
|
+
options: valueExist(_column.dicData, []),
|
|
4846
|
+
props: valueExist(_column.treeSelectProps, _defaultProps),
|
|
4847
|
+
disabled: valueExist(props.disabled, !1),
|
|
4848
|
+
clearable: valueExist(_column.clearable, !0),
|
|
4849
|
+
filterable: valueExist(_column.filterable, !1),
|
|
4850
|
+
"collapse-tags": !0,
|
|
4851
|
+
"collapse-tags-tooltip": !0,
|
|
4852
|
+
onChange: onChange
|
|
4853
|
+
}, null) ]);
|
|
4854
|
+
}
|
|
4753
4855
|
});
|
|
4754
4856
|
|
|
4755
4857
|
function _isSlot$2(s) {
|
|
@@ -4868,9 +4970,9 @@ var Element$7 = defineComponent({
|
|
|
4868
4970
|
return createVNode(ElInput, {
|
|
4869
4971
|
modelValue: formParams[col.prop],
|
|
4870
4972
|
"onUpdate:modelValue": $event => formParams[col.prop] = $event,
|
|
4871
|
-
clearable: !0,
|
|
4973
|
+
clearable: valueExist(col.clearable, !0),
|
|
4872
4974
|
readonly: valueExist(col.readonly, !1),
|
|
4873
|
-
disabled: col.disabled,
|
|
4975
|
+
disabled: valueExist(col.disabled, !1),
|
|
4874
4976
|
placeholder: placeholder,
|
|
4875
4977
|
onChange: event => col.onChange?.(event, col, formParams, formColumns)
|
|
4876
4978
|
}, {
|
|
@@ -4886,7 +4988,7 @@ var Element$7 = defineComponent({
|
|
|
4886
4988
|
modelValue: formParams[col.prop],
|
|
4887
4989
|
"onUpdate:modelValue": $event => formParams[col.prop] = $event,
|
|
4888
4990
|
type: "password",
|
|
4889
|
-
clearable: !0,
|
|
4991
|
+
clearable: valueExist(col.clearable, !0),
|
|
4890
4992
|
"show-password": !0,
|
|
4891
4993
|
readonly: valueExist(col.readonly, !1),
|
|
4892
4994
|
disabled: col.disabled,
|
|
@@ -4904,7 +5006,7 @@ var Element$7 = defineComponent({
|
|
|
4904
5006
|
return createVNode(ElInput, {
|
|
4905
5007
|
modelValue: formParams[col.prop],
|
|
4906
5008
|
"onUpdate:modelValue": $event => formParams[col.prop] = $event,
|
|
4907
|
-
clearable: !0,
|
|
5009
|
+
clearable: valueExist(col.clearable, !0),
|
|
4908
5010
|
readonly: valueExist(col.readonly, !1),
|
|
4909
5011
|
disabled: col.disabled,
|
|
4910
5012
|
placeholder: placeholder,
|
|
@@ -4925,7 +5027,7 @@ var Element$7 = defineComponent({
|
|
|
4925
5027
|
return createVNode(ElInput, {
|
|
4926
5028
|
modelValue: formParams[col.prop],
|
|
4927
5029
|
"onUpdate:modelValue": $event => formParams[col.prop] = $event,
|
|
4928
|
-
clearable: !0,
|
|
5030
|
+
clearable: valueExist(col.clearable, !0),
|
|
4929
5031
|
readonly: valueExist(col.readonly, !1),
|
|
4930
5032
|
disabled: col.disabled,
|
|
4931
5033
|
placeholder: placeholder,
|
|
@@ -4949,7 +5051,7 @@ var Element$7 = defineComponent({
|
|
|
4949
5051
|
modelValue: formParams[col.prop],
|
|
4950
5052
|
"onUpdate:modelValue": $event => formParams[col.prop] = $event,
|
|
4951
5053
|
type: "textarea",
|
|
4952
|
-
clearable: !0,
|
|
5054
|
+
clearable: valueExist(col.clearable, !0),
|
|
4953
5055
|
readonly: valueExist(col.readonly, !1),
|
|
4954
5056
|
disabled: col.disabled,
|
|
4955
5057
|
placeholder: placeholder,
|
|
@@ -4967,8 +5069,9 @@ var Element$7 = defineComponent({
|
|
|
4967
5069
|
modelValue: formParams[col.prop],
|
|
4968
5070
|
"onUpdate:modelValue": $event => formParams[col.prop] = $event,
|
|
4969
5071
|
placeholder: placeholder,
|
|
4970
|
-
clearable: !0,
|
|
4971
|
-
disabled: col.disabled,
|
|
5072
|
+
clearable: valueExist(col.clearable, !0),
|
|
5073
|
+
disabled: valueExist(col.disabled, !1),
|
|
5074
|
+
readonly: valueExist(col.readonly, !1),
|
|
4972
5075
|
multiple: valueExist(col.multiple, !1),
|
|
4973
5076
|
"collapse-tags-tooltip": !0,
|
|
4974
5077
|
onChange: event => col.onChange?.(event, col, formParams, formColumns)
|
|
@@ -4989,8 +5092,10 @@ var Element$7 = defineComponent({
|
|
|
4989
5092
|
start: "00:00",
|
|
4990
5093
|
step: "00:30",
|
|
4991
5094
|
end: "23:59",
|
|
4992
|
-
|
|
4993
|
-
|
|
5095
|
+
clearable: valueExist(col.clearable, !0),
|
|
5096
|
+
editable: valueExist(col.editable, !1),
|
|
5097
|
+
disabled: valueExist(col.disabled, !1),
|
|
5098
|
+
readonly: valueExist(col.readonly, !1),
|
|
4994
5099
|
placeholder: placeholder,
|
|
4995
5100
|
onChange: event => col.onChange?.(event, col, formParams, formColumns)
|
|
4996
5101
|
}, {
|
|
@@ -5001,7 +5106,8 @@ var Element$7 = defineComponent({
|
|
|
5001
5106
|
if ("radio" === col.type) return createVNode(ElRadioGroup, {
|
|
5002
5107
|
modelValue: formParams[col.prop],
|
|
5003
5108
|
"onUpdate:modelValue": $event => formParams[col.prop] = $event,
|
|
5004
|
-
disabled: col.disabled,
|
|
5109
|
+
disabled: valueExist(col.disabled, !1),
|
|
5110
|
+
readonly: valueExist(col.readonly, !1),
|
|
5005
5111
|
onChange: event => col.onChange?.(event, col, formParams, formColumns)
|
|
5006
5112
|
}, {
|
|
5007
5113
|
default: () => [ col.dicData && col.dicData.map((item => createVNode(ElRadio, {
|
|
@@ -5016,7 +5122,8 @@ var Element$7 = defineComponent({
|
|
|
5016
5122
|
createVNode(ElCheckboxGroup, {
|
|
5017
5123
|
modelValue: formParams[col.prop],
|
|
5018
5124
|
"onUpdate:modelValue": $event => formParams[col.prop] = $event,
|
|
5019
|
-
disabled: col.disabled,
|
|
5125
|
+
disabled: valueExist(col.disabled, !1),
|
|
5126
|
+
readonly: valueExist(col.readonly, !1),
|
|
5020
5127
|
onChange: event => col.onChange?.(event, col, formParams, formColumns)
|
|
5021
5128
|
}, {
|
|
5022
5129
|
default: () => [ col.dicData && col.dicData.map((item => createVNode(ElCheckbox, {
|
|
@@ -5036,10 +5143,11 @@ var Element$7 = defineComponent({
|
|
|
5036
5143
|
type: "date",
|
|
5037
5144
|
valueFormat: col.format || "YYYY-MM-DD",
|
|
5038
5145
|
format: col.format || "YYYY-MM-DD",
|
|
5039
|
-
clearable: !0,
|
|
5146
|
+
clearable: valueExist(col.clearable, !0),
|
|
5040
5147
|
disabledDate: col.disabledDate || _defaultDisabledDate,
|
|
5041
|
-
|
|
5042
|
-
|
|
5148
|
+
editable: valueExist(col.editable, !1),
|
|
5149
|
+
disabled: valueExist(col.disabled, !1),
|
|
5150
|
+
readonly: valueExist(col.readonly, !1)
|
|
5043
5151
|
}, null);
|
|
5044
5152
|
}
|
|
5045
5153
|
if ("datetime" === col.type) {
|
|
@@ -5051,10 +5159,11 @@ var Element$7 = defineComponent({
|
|
|
5051
5159
|
type: "datetime",
|
|
5052
5160
|
valueFormat: col.format || "YYYY-MM-DD HH:mm:ss",
|
|
5053
5161
|
format: col.format || "YYYY-MM-DD HH:mm:ss",
|
|
5054
|
-
clearable: !0,
|
|
5162
|
+
clearable: valueExist(col.clearable, !0),
|
|
5055
5163
|
disabledDate: col.disabledDate || _defaultDisabledDate,
|
|
5056
|
-
|
|
5057
|
-
|
|
5164
|
+
editable: valueExist(col.editable, !1),
|
|
5165
|
+
disabled: valueExist(col.disabled, !1),
|
|
5166
|
+
readonly: valueExist(col.readonly, !1)
|
|
5058
5167
|
}, null);
|
|
5059
5168
|
}
|
|
5060
5169
|
if ("datetimerange" === col.type) {
|
|
@@ -5066,13 +5175,14 @@ var Element$7 = defineComponent({
|
|
|
5066
5175
|
type: "datetimerange",
|
|
5067
5176
|
valueFormat: col.format || "YYYY-MM-DD HH:mm:ss",
|
|
5068
5177
|
format: col.format || "YYYY-MM-DD HH:mm:ss",
|
|
5069
|
-
clearable: !0,
|
|
5070
5178
|
"range-separator": t("next.date.rangeSeparator"),
|
|
5071
5179
|
"start-placeholder": t("next.date.startPlaceholder"),
|
|
5072
5180
|
"end-placeholder": t("next.date.endPlaceholder"),
|
|
5073
5181
|
disabledDate: col.disabledDate || _defaultDisabledDate,
|
|
5074
|
-
|
|
5075
|
-
editable: col.editable,
|
|
5182
|
+
clearable: valueExist(col.clearable, !0),
|
|
5183
|
+
editable: valueExist(col.editable, !1),
|
|
5184
|
+
disabled: valueExist(col.disabled, !1),
|
|
5185
|
+
readonly: valueExist(col.readonly, !1),
|
|
5076
5186
|
shortcuts: col.shortcuts || _defaultShortcuts
|
|
5077
5187
|
}, null);
|
|
5078
5188
|
}
|
|
@@ -5090,7 +5200,7 @@ var Element$7 = defineComponent({
|
|
|
5090
5200
|
"onUpdate:modelValue": $event => formParams[col.prop] = $event,
|
|
5091
5201
|
formParams: formParams,
|
|
5092
5202
|
column: col,
|
|
5093
|
-
disabled: col.disabled,
|
|
5203
|
+
disabled: valueExist(col.disabled, !1),
|
|
5094
5204
|
onSelect: rows => ((rows, col) => {
|
|
5095
5205
|
rows && (col.tableSelectRows = rows);
|
|
5096
5206
|
const {value: value} = col.tableSelectProps || {};
|
|
@@ -5099,17 +5209,25 @@ var Element$7 = defineComponent({
|
|
|
5099
5209
|
}, null) : "uploadImage" === col.type ? createVNode(UploadImage, {
|
|
5100
5210
|
modelValue: formParams[col.prop],
|
|
5101
5211
|
"onUpdate:modelValue": $event => formParams[col.prop] = $event,
|
|
5102
|
-
disabled: col.disabled,
|
|
5103
|
-
multiple: col.multiple,
|
|
5212
|
+
disabled: valueExist(col.disabled, !1),
|
|
5213
|
+
multiple: valueExist(col.multiple, !1),
|
|
5104
5214
|
limit: col.limit,
|
|
5105
5215
|
onChange: (...arg) => col.onChange?.(...arg, col, formParams, formColumns),
|
|
5106
5216
|
onExceed: (...arg) => col.onExceed?.(...arg, col, formParams, formColumns)
|
|
5107
5217
|
}, null) : "treeSelect" === col.type ? createVNode(treeSelect, {
|
|
5108
5218
|
modelValue: formParams[col.prop],
|
|
5109
5219
|
"onUpdate:modelValue": $event => formParams[col.prop] = $event,
|
|
5110
|
-
disabled: col.disabled,
|
|
5220
|
+
disabled: valueExist(col.disabled, !1),
|
|
5111
5221
|
column: col,
|
|
5112
|
-
formParams: formParams
|
|
5222
|
+
formParams: formParams,
|
|
5223
|
+
onChange: (...arg) => col.onChange?.(...arg, col, formParams, formColumns)
|
|
5224
|
+
}, null) : "cascader" === col.type ? createVNode(NestTreeCascader, {
|
|
5225
|
+
modelValue: formParams[col.prop],
|
|
5226
|
+
"onUpdate:modelValue": $event => formParams[col.prop] = $event,
|
|
5227
|
+
disabled: valueExist(col.disabled, !1),
|
|
5228
|
+
column: col,
|
|
5229
|
+
formParams: formParams,
|
|
5230
|
+
onChange: (...arg) => col.onChange?.(...arg, col, formParams, formColumns)
|
|
5113
5231
|
}, null) : void 0;
|
|
5114
5232
|
};
|
|
5115
5233
|
expose({
|
|
@@ -5284,7 +5402,7 @@ var Element$6 = defineComponent({
|
|
|
5284
5402
|
append: valueExist(col.formAppend, col.append, null),
|
|
5285
5403
|
hide: valueExist(col.formHide, col.hide, !1),
|
|
5286
5404
|
disabled: valueExist(col.formDisabled, col.disabled, !1),
|
|
5287
|
-
clearable: valueExist(col.formClearable, col.clearable, !
|
|
5405
|
+
clearable: valueExist(col.formClearable, col.clearable, !0),
|
|
5288
5406
|
readonly: valueExist(col.formReadonly, col.readonly, !1),
|
|
5289
5407
|
tip: valueExist(col.formTip, col.tip, null),
|
|
5290
5408
|
rules: valueExist(col.formRules, col.rules, null),
|
|
@@ -7378,6 +7496,10 @@ class EditPolygonPath {
|
|
|
7378
7496
|
onEditPolygon(callback) {
|
|
7379
7497
|
this.editPolygonObserver = callback;
|
|
7380
7498
|
}
|
|
7499
|
+
getTransformPoint(x, y) {
|
|
7500
|
+
const transformMatrix = this.ctx.getTransform(), scaleX = parseFloat(transformMatrix.a.toFixed(1)), scaleY = parseFloat(transformMatrix.d.toFixed(1)), translateX = Math.ceil(transformMatrix.e), translateY = Math.ceil(transformMatrix.f);
|
|
7501
|
+
return [ Math.floor((x - translateX) / scaleX), Math.floor((y - translateY) / scaleY) ];
|
|
7502
|
+
}
|
|
7381
7503
|
drawPolygonPath(vertexes, mouseX, mouseY) {
|
|
7382
7504
|
const ctx = this.ctx;
|
|
7383
7505
|
if (!vertexes.length) return;
|
|
@@ -7409,11 +7531,11 @@ class EditPolygonPath {
|
|
|
7409
7531
|
this.drawPolygonEdgeCentre(vertexes));
|
|
7410
7532
|
}
|
|
7411
7533
|
pointInVertexes(x, y) {
|
|
7412
|
-
const vertexes = this.vertexes;
|
|
7534
|
+
const [_x, _y] = this.getTransformPoint(x, y), vertexes = this.vertexes;
|
|
7413
7535
|
let aimIndex = null;
|
|
7414
7536
|
for (let i = 0; i < vertexes.length; i++) {
|
|
7415
7537
|
const [vertex_x, vertex_y] = vertexes[i];
|
|
7416
|
-
if (isPointInCircle(
|
|
7538
|
+
if (isPointInCircle(_x, _y, vertex_x, vertex_y, this.vertexRadius)) {
|
|
7417
7539
|
this.canvas.style.cursor = "pointer", aimIndex = i;
|
|
7418
7540
|
break;
|
|
7419
7541
|
}
|
|
@@ -7422,11 +7544,11 @@ class EditPolygonPath {
|
|
|
7422
7544
|
return aimIndex;
|
|
7423
7545
|
}
|
|
7424
7546
|
pointInEdgeCentre(x, y) {
|
|
7425
|
-
const vertexes = this.vertexes;
|
|
7547
|
+
const [_x, _y] = this.getTransformPoint(x, y), vertexes = this.vertexes;
|
|
7426
7548
|
let aimIndex = null;
|
|
7427
7549
|
for (let i = 0; i < vertexes.length; i++) {
|
|
7428
7550
|
const start = vertexes[i % vertexes.length], end = vertexes[(i + 1) % vertexes.length], vertex_x = start[0] + (end[0] - start[0]) / 2, vertex_y = start[1] + (end[1] - start[1]) / 2;
|
|
7429
|
-
if (isPointInCircle(
|
|
7551
|
+
if (isPointInCircle(_x, _y, vertex_x, vertex_y, this.edgeCentreRadius)) {
|
|
7430
7552
|
this.canvas.style.cursor = "pointer", aimIndex = i;
|
|
7431
7553
|
break;
|
|
7432
7554
|
}
|
|
@@ -7435,9 +7557,9 @@ class EditPolygonPath {
|
|
|
7435
7557
|
return aimIndex;
|
|
7436
7558
|
}
|
|
7437
7559
|
pointInVertexesOrEdgeCentre(x, y) {
|
|
7438
|
-
const vertexes = this.vertexes;
|
|
7560
|
+
const [_x, _y] = this.getTransformPoint(x, y), vertexes = this.vertexes;
|
|
7439
7561
|
for (let i = 0; i < vertexes.length; i++) {
|
|
7440
|
-
const [vertex_x, vertex_y] = vertexes[i], isInVertex = isPointInCircle(
|
|
7562
|
+
const [vertex_x, vertex_y] = vertexes[i], isInVertex = isPointInCircle(_x, _y, vertex_x, vertex_y, this.vertexRadius), start = vertexes[i % vertexes.length], end = vertexes[(i + 1) % vertexes.length], edge_center_x = start[0] + (end[0] - start[0]) / 2, edge_center_y = start[1] + (end[1] - start[1]) / 2, isInEdgeCenter = isPointInCircle(_x, _y, edge_center_x, edge_center_y, this.edgeCentreRadius);
|
|
7441
7563
|
if (isInVertex || isInEdgeCenter) {
|
|
7442
7564
|
this.canvas.style.cursor = "pointer";
|
|
7443
7565
|
break;
|
|
@@ -7578,7 +7700,7 @@ class CreateDrawCanvas {
|
|
|
7578
7700
|
this.ctx.clearRect(0, 0, this.canvasWidth, this.canvasHeight), this.ctx.drawImage(this.image, 0, 0, this.canvasWidth, this.canvasHeight),
|
|
7579
7701
|
this.ctx.save();
|
|
7580
7702
|
const shapes = this.labels.shapes;
|
|
7581
|
-
this.drawPolygons(shapes), this.ctx.restore();
|
|
7703
|
+
shapes?.length && this.drawPolygons(shapes), this.ctx.restore();
|
|
7582
7704
|
};
|
|
7583
7705
|
render=() => {
|
|
7584
7706
|
this.canvas.width = this.canvasWidth, this.scaleOffset.value && (this.ctx.translate(this.scaleOffset.value.x, this.scaleOffset.value.y),
|
|
@@ -8147,7 +8269,7 @@ const zoomDialog = app => {
|
|
|
8147
8269
|
}));
|
|
8148
8270
|
}
|
|
8149
8271
|
});
|
|
8150
|
-
}, version = "0.
|
|
8272
|
+
}, version = "0.4.0", install = function(app) {
|
|
8151
8273
|
Object.keys(components).forEach((key => {
|
|
8152
8274
|
const component = components[key];
|
|
8153
8275
|
app.component(component.name, component);
|
|
@@ -8157,7 +8279,7 @@ const zoomDialog = app => {
|
|
|
8157
8279
|
};
|
|
8158
8280
|
|
|
8159
8281
|
var index = {
|
|
8160
|
-
version: "0.
|
|
8282
|
+
version: "0.4.0",
|
|
8161
8283
|
install: install
|
|
8162
8284
|
};
|
|
8163
8285
|
|