@kayak-sj/design 1.0.55 → 1.0.57

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.
@@ -1 +1 @@
1
- .k-form-cascader__readonly[data-v-ed0da536]{color:var(--k-color-text-regular);font-size:var(--k-form-control-font-size)}.k-form-checkbox[data-v-fca64c11] .el-checkbox.is-bordered+.el-checkbox.is-bordered{margin-left:0}.k-form-checkbox__readonly[data-v-fca64c11]{color:var(--k-color-text-regular);font-size:var(--k-form-control-font-size)}.k-form-date-picker[data-v-4885818d]{align-items:center;gap:8px;width:100%;max-width:100%;display:flex}.k-form-date-picker[data-v-4885818d] .el-date-editor{width:100%}.k-form-date-picker--datetimerange[data-v-4885818d]{width:fit-content;max-width:100%;display:inline-flex}.k-form-date-picker--datetimerange[data-v-4885818d] .el-date-editor.el-date-editor--datetimerange{flex:none;max-width:100%;width:fit-content!important;min-width:unset!important}.k-form-date-picker--datetimerange[data-v-4885818d] .el-date-editor--datetimerange .el-input__wrapper{padding-left:6px;padding-right:4px}.k-form-date-picker--datetimerange[data-v-4885818d] .el-date-editor--datetimerange .el-range-input{width:150px;min-width:0;max-width:150px;font-size:var(--k-form-control-font-size);flex:0 0 150px}.k-form-date-picker--datetimerange[data-v-4885818d] .el-date-editor--datetimerange .el-range-separator{font-size:var(--k-form-control-font-size);flex-shrink:0;padding:0 1px}.k-form-date-picker--datetimerange[data-v-4885818d] .el-date-editor--datetimerange .el-range__icon{margin-right:-4px}.k-form-date-picker--datetimerange[data-v-4885818d] .el-date-editor--datetimerange .el-range__close-icon{margin-left:-4px}.k-form-date-picker__text[data-v-4885818d]{color:var(--k-color-text-regular);font-size:var(--k-form-control-font-size);white-space:nowrap;flex-shrink:0}.k-form-date-picker__readonly[data-v-4885818d]{color:var(--k-color-text-regular);font-size:var(--k-form-control-font-size);word-break:break-all}.k-form-input-mix-input[data-v-6fdf6265]{vertical-align:top;flex-wrap:wrap;align-items:center;gap:8px;width:auto;max-width:100%;display:inline-flex}.k-form-input-mix-input__control[data-v-6fdf6265]{flex:none;max-width:100%}.k-form-input-mix-input__control[data-v-6fdf6265] .k-form-input{width:100%!important;max-width:none!important}.k-form-input-mix-input__control[data-v-6fdf6265] .el-input{width:100%}.k-form-input-mix-input__control--affix[data-v-6fdf6265] .k-form-input{width:auto!important}.k-form-input-mix-input__control--affix[data-v-6fdf6265] .el-input-group{vertical-align:middle;width:max-content;max-width:100%;display:inline-flex}.k-form-input-mix-input__control--affix[data-v-6fdf6265] .el-input-group .el-input__wrapper{width:var(--k-mix-input-field-width,120px);min-width:var(--k-mix-input-field-width,120px);flex:auto}.k-form-input-mix-input__control--affix[data-v-6fdf6265] .el-input-group__prepend,.k-form-input-mix-input__control--affix[data-v-6fdf6265] .el-input-group__append{white-space:nowrap;flex:none}.k-form-input-mix-input__text[data-v-6fdf6265]{color:var(--k-color-text-regular);font-size:var(--k-form-control-font-size);white-space:nowrap;flex:none}.k-form-input-mix-input--readonly .k-form-input-mix-input__control[data-v-6fdf6265]{width:auto;min-width:0}.k-form-select[data-v-20fc23b7],.k-form-select [data-v-20fc23b7] .el-select{width:100%}.k-form-select__readonly[data-v-20fc23b7]{color:var(--k-color-text-regular);font-size:var(--k-form-control-font-size)}.k-form-input-mix-select[data-v-1f46ef39]{vertical-align:top;width:auto;max-width:100%;display:inline-flex}.k-form-input-mix-select__row[data-v-1f46ef39]{flex-wrap:wrap;align-items:center;width:auto;max-width:100%;display:inline-flex}.k-form-input-mix-select__text[data-v-1f46ef39]{color:var(--k-color-text-regular);font-size:var(--k-form-control-font-size,12px);white-space:nowrap;flex-shrink:0;line-height:1.4}.k-form-input-mix-select__control[data-v-1f46ef39]{flex:none;max-width:100%}.k-form-input-mix-select__control[data-v-1f46ef39] .k-form-input,.k-form-input-mix-select__control[data-v-1f46ef39] .k-form-select{min-width:0;width:100%!important;max-width:none!important}.k-form-input-mix-select__control[data-v-1f46ef39] .el-input,.k-form-input-mix-select__control[data-v-1f46ef39] .el-select{width:100%}.k-form-input-mix-select__control--affix[data-v-1f46ef39] .k-form-input,.k-form-input-mix-select__control--affix[data-v-1f46ef39] .k-form-select{width:auto!important}.k-form-input-mix-select__control--affix[data-v-1f46ef39] .el-input-group{vertical-align:middle;width:max-content;max-width:100%;display:inline-flex}.k-form-input-mix-select__control--affix[data-v-1f46ef39] .el-input-group .el-input__wrapper{width:var(--k-mix-select-field-width,140px);min-width:var(--k-mix-select-field-width,140px);flex:auto}.k-form-input-mix-select__control--affix[data-v-1f46ef39] .el-input-group__prepend,.k-form-input-mix-select__control--affix[data-v-1f46ef39] .el-input-group__append{white-space:nowrap;flex:none}.k-form-input-mix-select--readonly .k-form-input-mix-select__control[data-v-1f46ef39]{width:auto;min-width:0}.k-form-input-number[data-v-acdc4199]{align-items:center;display:flex}.k-form-input-number__side[data-v-acdc4199]{color:var(--k-color-text-regular);white-space:nowrap;font-size:12px}.k-form-input-number__side--left[data-v-acdc4199]{margin-right:5px}.k-form-input-number__side--right[data-v-acdc4199]{margin-left:5px}.k-form-input-number__readonly[data-v-acdc4199]{color:var(--k-color-text-regular);font-size:var(--k-form-control-font-size)}.k-form-radio[data-v-e0ff32b0] .el-radio.is-bordered,.k-form-radio[data-v-e0ff32b0] .el-radio-button{margin-left:0}.k-form-radio__readonly[data-v-e0ff32b0]{color:var(--k-color-text-regular);font-size:var(--k-form-control-font-size)}.k-form-radio-input[data-v-1543c319]{white-space:nowrap;flex-flow:row;align-items:center;max-width:100%;display:inline-flex}.k-form-radio-input__radio[data-v-1543c319]{flex:none}.k-form-radio-input__radio[data-v-1543c319] .el-radio-group{white-space:nowrap;flex-wrap:nowrap;display:inline-flex}.k-form-radio-input__input[data-v-1543c319]{flex:none;width:150px;min-width:150px;max-width:200px;margin-left:10px}.k-form-radio-input__label[data-v-1543c319]{color:var(--k-color-text-regular);flex:none;margin-left:5px;font-size:12px;font-weight:500;line-height:1}.k-form-radio-input__readonly[data-v-1543c319]{color:var(--k-color-text-regular);font-size:var(--k-form-control-font-size);margin-left:6px}.k-form-scroll-select[data-v-dc0bba37]{width:100%;max-width:300px}.k-form-scroll-select__readonly[data-v-dc0bba37]{color:var(--k-color-text-regular);font-size:var(--k-form-control-font-size)}.k-form-select-multiple[data-v-e6ca06e1]{width:100%}.k-form-select-multiple__readonly[data-v-e6ca06e1]{color:var(--k-color-text-regular);font-size:var(--k-form-control-font-size)}.k-form-tag[data-v-9961a98a]{flex-wrap:wrap;gap:8px;display:flex}.k-form-tag__item[data-v-9961a98a]{cursor:pointer}.k-form-tag__item.is-active[data-v-9961a98a]{color:var(--el-color-primary);border-color:var(--el-color-primary)}.k-form-tag__item.is-disabled[data-v-9961a98a]{cursor:not-allowed;opacity:.65}.k-form-tag__item.is-readonly[data-v-9961a98a]{cursor:default}.k-form-text p[data-v-9dc35114]{color:var(--k-color-text-regular);line-height:1.5;font-size:var(--k-form-control-font-size);word-break:break-all;margin:0}.k-form-time-picker[data-v-8680ec2d]{align-items:center;gap:8px;width:100%;max-width:100%;display:flex}.k-form-time-picker[data-v-8680ec2d] .el-date-editor{width:100%}.k-form-time-picker__text[data-v-8680ec2d],.k-form-time-picker__side[data-v-8680ec2d]{color:var(--k-color-text-regular);font-size:var(--k-form-control-font-size);white-space:nowrap;flex-shrink:0}.k-form-time-picker__side--left[data-v-8680ec2d]{margin-right:2px}.k-form-time-picker__side--right[data-v-8680ec2d]{margin-left:2px}.k-form-time-picker__readonly[data-v-8680ec2d]{color:var(--k-color-text-regular);font-size:var(--k-form-control-font-size);word-break:break-all}.k-upload__file-item[data-v-01959ada]{width:100%;height:100%;position:relative}.k-upload__media-play[data-v-01959ada]{border:1px dashed var(--el-border-color);border-radius:var(--el-border-radius-base);background:var(--el-fill-color-light);width:100%;min-width:80px;height:100%;min-height:80px;color:var(--el-color-primary);cursor:pointer;justify-content:center;align-items:center;font-size:22px;display:inline-flex}.k-upload__file-progress[data-v-01959ada]{z-index:1;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:auto!important;margin:0!important}.k-upload__file-progress[data-v-01959ada] .el-progress-circle{display:block}.k-upload__inline-actions[data-v-aee31b8d]{align-items:center;gap:8px;display:inline-flex}.k-upload__inline-tip[data-v-aee31b8d]{color:var(--el-text-color-secondary);font-size:var(--k-font-size-base,12px);white-space:normal;line-height:1.5}.k-upload__download[data-v-aee31b8d]{height:32px;color:var(--el-color-primary);white-space:nowrap;cursor:pointer;background:0 0;border:0;align-items:center;gap:4px;padding:0 4px;font-size:13px;line-height:1;transition:color .2s,opacity .2s;display:inline-flex}.k-upload__download[data-v-aee31b8d]:hover{color:var(--el-color-primary-light-3)}.k-upload__download[data-v-aee31b8d]:focus-visible{outline:2px solid var(--el-color-primary-light-5);outline-offset:2px;border-radius:4px}.k-upload__download-icon[data-v-aee31b8d]{font-size:14px}.k-upload__tip-icon[data-v-aee31b8d]{border:1px solid var(--el-text-color-secondary);width:16px;height:16px;color:var(--el-text-color-secondary);cursor:help;border-radius:50%;justify-content:center;align-items:center;font-size:12px;font-style:normal;display:inline-flex}.k-upload__media-wrap[data-v-b9720661]{justify-content:center;align-items:center;display:flex}.k-upload__media[data-v-b9720661]{max-width:100%;height:auto}.k-upload__plus[data-v-57e36a64]{color:var(--el-text-color-secondary);font-size:28px}.k-upload__trigger-row[data-v-57e36a64]{flex-wrap:wrap;align-items:center;gap:8px;display:inline-flex}.k-upload--limit[data-v-57e36a64] .el-upload,.k-upload_detail[data-v-57e36a64] .el-upload{display:none}
1
+ .k-form-cascader__readonly[data-v-ed0da536]{color:var(--k-color-text-regular);font-size:var(--k-form-control-font-size)}.k-form-checkbox[data-v-fca64c11] .el-checkbox.is-bordered+.el-checkbox.is-bordered{margin-left:0}.k-form-checkbox__readonly[data-v-fca64c11]{color:var(--k-color-text-regular);font-size:var(--k-form-control-font-size)}.k-form-date-picker[data-v-4885818d]{align-items:center;gap:8px;width:100%;max-width:100%;display:flex}.k-form-date-picker[data-v-4885818d] .el-date-editor{width:100%}.k-form-date-picker--datetimerange[data-v-4885818d]{width:fit-content;max-width:100%;display:inline-flex}.k-form-date-picker--datetimerange[data-v-4885818d] .el-date-editor.el-date-editor--datetimerange{flex:none;max-width:100%;width:fit-content!important;min-width:unset!important}.k-form-date-picker--datetimerange[data-v-4885818d] .el-date-editor--datetimerange .el-input__wrapper{padding-left:6px;padding-right:4px}.k-form-date-picker--datetimerange[data-v-4885818d] .el-date-editor--datetimerange .el-range-input{width:150px;min-width:0;max-width:150px;font-size:var(--k-form-control-font-size);flex:0 0 150px}.k-form-date-picker--datetimerange[data-v-4885818d] .el-date-editor--datetimerange .el-range-separator{font-size:var(--k-form-control-font-size);flex-shrink:0;padding:0 1px}.k-form-date-picker--datetimerange[data-v-4885818d] .el-date-editor--datetimerange .el-range__icon{margin-right:-4px}.k-form-date-picker--datetimerange[data-v-4885818d] .el-date-editor--datetimerange .el-range__close-icon{margin-left:-4px}.k-form-date-picker__text[data-v-4885818d]{color:var(--k-color-text-regular);font-size:var(--k-form-control-font-size);white-space:nowrap;flex-shrink:0}.k-form-date-picker__readonly[data-v-4885818d]{color:var(--k-color-text-regular);font-size:var(--k-form-control-font-size);word-break:break-all}.k-form-input-mix-input[data-v-6fdf6265]{vertical-align:top;flex-wrap:wrap;align-items:center;gap:8px;width:auto;max-width:100%;display:inline-flex}.k-form-input-mix-input__control[data-v-6fdf6265]{flex:none;max-width:100%}.k-form-input-mix-input__control[data-v-6fdf6265] .k-form-input{width:100%!important;max-width:none!important}.k-form-input-mix-input__control[data-v-6fdf6265] .el-input{width:100%}.k-form-input-mix-input__control--affix[data-v-6fdf6265] .k-form-input{width:auto!important}.k-form-input-mix-input__control--affix[data-v-6fdf6265] .el-input-group{vertical-align:middle;width:max-content;max-width:100%;display:inline-flex}.k-form-input-mix-input__control--affix[data-v-6fdf6265] .el-input-group .el-input__wrapper{width:var(--k-mix-input-field-width,120px);min-width:var(--k-mix-input-field-width,120px);flex:auto}.k-form-input-mix-input__control--affix[data-v-6fdf6265] .el-input-group__prepend,.k-form-input-mix-input__control--affix[data-v-6fdf6265] .el-input-group__append{white-space:nowrap;flex:none}.k-form-input-mix-input__text[data-v-6fdf6265]{color:var(--k-color-text-regular);font-size:var(--k-form-control-font-size);white-space:nowrap;flex:none}.k-form-input-mix-input--readonly .k-form-input-mix-input__control[data-v-6fdf6265]{width:auto;min-width:0}.k-form-select[data-v-20fc23b7],.k-form-select [data-v-20fc23b7] .el-select{width:100%}.k-form-select__readonly[data-v-20fc23b7]{color:var(--k-color-text-regular);font-size:var(--k-form-control-font-size)}.k-form-input-mix-select[data-v-1f46ef39]{vertical-align:top;width:auto;max-width:100%;display:inline-flex}.k-form-input-mix-select__row[data-v-1f46ef39]{flex-wrap:wrap;align-items:center;width:auto;max-width:100%;display:inline-flex}.k-form-input-mix-select__text[data-v-1f46ef39]{color:var(--k-color-text-regular);font-size:var(--k-form-control-font-size,12px);white-space:nowrap;flex-shrink:0;line-height:1.4}.k-form-input-mix-select__control[data-v-1f46ef39]{flex:none;max-width:100%}.k-form-input-mix-select__control[data-v-1f46ef39] .k-form-input,.k-form-input-mix-select__control[data-v-1f46ef39] .k-form-select{min-width:0;width:100%!important;max-width:none!important}.k-form-input-mix-select__control[data-v-1f46ef39] .el-input,.k-form-input-mix-select__control[data-v-1f46ef39] .el-select{width:100%}.k-form-input-mix-select__control--affix[data-v-1f46ef39] .k-form-input,.k-form-input-mix-select__control--affix[data-v-1f46ef39] .k-form-select{width:auto!important}.k-form-input-mix-select__control--affix[data-v-1f46ef39] .el-input-group{vertical-align:middle;width:max-content;max-width:100%;display:inline-flex}.k-form-input-mix-select__control--affix[data-v-1f46ef39] .el-input-group .el-input__wrapper{width:var(--k-mix-select-field-width,140px);min-width:var(--k-mix-select-field-width,140px);flex:auto}.k-form-input-mix-select__control--affix[data-v-1f46ef39] .el-input-group__prepend,.k-form-input-mix-select__control--affix[data-v-1f46ef39] .el-input-group__append{white-space:nowrap;flex:none}.k-form-input-mix-select--readonly .k-form-input-mix-select__control[data-v-1f46ef39]{width:auto;min-width:0}.k-form-input-number[data-v-acdc4199]{align-items:center;display:flex}.k-form-input-number__side[data-v-acdc4199]{color:var(--k-color-text-regular);white-space:nowrap;font-size:12px}.k-form-input-number__side--left[data-v-acdc4199]{margin-right:5px}.k-form-input-number__side--right[data-v-acdc4199]{margin-left:5px}.k-form-input-number__readonly[data-v-acdc4199]{color:var(--k-color-text-regular);font-size:var(--k-form-control-font-size)}.k-form-radio[data-v-e0ff32b0] .el-radio.is-bordered,.k-form-radio[data-v-e0ff32b0] .el-radio-button{margin-left:0}.k-form-radio__readonly[data-v-e0ff32b0]{color:var(--k-color-text-regular);font-size:var(--k-form-control-font-size)}.k-form-radio-input[data-v-1543c319]{white-space:nowrap;flex-flow:row;align-items:center;max-width:100%;display:inline-flex}.k-form-radio-input__radio[data-v-1543c319]{flex:none}.k-form-radio-input__radio[data-v-1543c319] .el-radio-group{white-space:nowrap;flex-wrap:nowrap;display:inline-flex}.k-form-radio-input__input[data-v-1543c319]{flex:none;width:150px;min-width:150px;max-width:200px;margin-left:10px}.k-form-radio-input__label[data-v-1543c319]{color:var(--k-color-text-regular);flex:none;margin-left:5px;font-size:12px;font-weight:500;line-height:1}.k-form-radio-input__readonly[data-v-1543c319]{color:var(--k-color-text-regular);font-size:var(--k-form-control-font-size);margin-left:6px}.k-form-scroll-select[data-v-dc0bba37]{width:100%;max-width:300px}.k-form-scroll-select__readonly[data-v-dc0bba37]{color:var(--k-color-text-regular);font-size:var(--k-form-control-font-size)}.k-form-select-multiple[data-v-e6ca06e1]{width:100%}.k-form-select-multiple__readonly[data-v-e6ca06e1]{color:var(--k-color-text-regular);font-size:var(--k-form-control-font-size)}.k-form-tag[data-v-9961a98a]{flex-wrap:wrap;gap:8px;display:flex}.k-form-tag__item[data-v-9961a98a]{cursor:pointer}.k-form-tag__item.is-active[data-v-9961a98a]{color:var(--el-color-primary);border-color:var(--el-color-primary)}.k-form-tag__item.is-disabled[data-v-9961a98a]{cursor:not-allowed;opacity:.65}.k-form-tag__item.is-readonly[data-v-9961a98a]{cursor:default}.k-form-text p[data-v-9dc35114]{color:var(--k-color-text-regular);line-height:1.5;font-size:var(--k-form-control-font-size);word-break:break-all;margin:0}.k-form-time-picker[data-v-8680ec2d]{align-items:center;gap:8px;width:100%;max-width:100%;display:flex}.k-form-time-picker[data-v-8680ec2d] .el-date-editor{width:100%}.k-form-time-picker__text[data-v-8680ec2d],.k-form-time-picker__side[data-v-8680ec2d]{color:var(--k-color-text-regular);font-size:var(--k-form-control-font-size);white-space:nowrap;flex-shrink:0}.k-form-time-picker__side--left[data-v-8680ec2d]{margin-right:2px}.k-form-time-picker__side--right[data-v-8680ec2d]{margin-left:2px}.k-form-time-picker__readonly[data-v-8680ec2d]{color:var(--k-color-text-regular);font-size:var(--k-form-control-font-size);word-break:break-all}.k-upload__file-item[data-v-01959ada]{width:100%;height:100%;position:relative}.k-upload__media-play[data-v-01959ada]{border:1px dashed var(--el-border-color);border-radius:var(--el-border-radius-base);background:var(--el-fill-color-light);width:100%;min-width:80px;height:100%;min-height:80px;color:var(--el-color-primary);cursor:pointer;justify-content:center;align-items:center;font-size:22px;display:inline-flex}.k-upload__file-progress[data-v-01959ada]{z-index:1;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:auto!important;margin:0!important}.k-upload__file-progress[data-v-01959ada] .el-progress-circle{display:block}.k-upload__inline-actions[data-v-aee31b8d]{align-items:center;gap:8px;display:inline-flex}.k-upload__inline-tip[data-v-aee31b8d]{color:var(--el-text-color-secondary);font-size:var(--k-font-size-base,12px);white-space:normal;line-height:1.5}.k-upload__download[data-v-aee31b8d]{height:32px;color:var(--el-color-primary);white-space:nowrap;cursor:pointer;background:0 0;border:0;align-items:center;gap:4px;padding:0 4px;font-size:13px;line-height:1;transition:color .2s,opacity .2s;display:inline-flex}.k-upload__download[data-v-aee31b8d]:hover{color:var(--el-color-primary-light-3)}.k-upload__download[data-v-aee31b8d]:focus-visible{outline:2px solid var(--el-color-primary-light-5);outline-offset:2px;border-radius:4px}.k-upload__download-icon[data-v-aee31b8d]{font-size:14px}.k-upload__tip-icon[data-v-aee31b8d]{border:1px solid var(--el-text-color-secondary);width:16px;height:16px;color:var(--el-text-color-secondary);cursor:help;border-radius:50%;justify-content:center;align-items:center;font-size:12px;font-style:normal;display:inline-flex}.k-upload__media-wrap[data-v-b9720661]{justify-content:center;align-items:center;display:flex}.k-upload__media[data-v-b9720661]{max-width:100%;height:auto}.k-upload__plus[data-v-69cd76c2]{color:var(--el-text-color-secondary);font-size:28px}.k-upload__trigger-row[data-v-69cd76c2]{flex-wrap:wrap;align-items:center;gap:8px;display:inline-flex}.k-upload--limit[data-v-69cd76c2] .el-upload,.k-upload_detail[data-v-69cd76c2] .el-upload{display:none}
@@ -1,4 +1,4 @@
1
- import { n as e } from "./componentRegistry-6at2AsFD.js";
1
+ import { n as e } from "./componentRegistry-D5JgphAl.js";
2
2
  import { t } from "./_plugin-vue_export-helper-B3ysoDQm.js";
3
3
  import { Fragment as n, createBlock as r, createElementBlock as i, defineComponent as a, mergeProps as o, normalizeClass as s, openBlock as c, ref as l, renderList as u, resolveDynamicComponent as d, unref as f, watch as p } from "vue";
4
4
  import { cloneDeep as m, isEqual as h } from "lodash-es";
@@ -1,14 +1,14 @@
1
1
  import { t as e } from "./_plugin-vue_export-helper-B3ysoDQm.js";
2
2
  import { u as t } from "./editorValue-DSKvW8ty.js";
3
3
  import { Fragment as n, computed as r, createBlock as i, createCommentVNode as a, createElementBlock as o, createElementVNode as s, createSlots as c, createTextVNode as l, createVNode as u, defineAsyncComponent as d, defineComponent as f, guardReactiveProps as p, inject as m, isRef as h, mergeModels as g, mergeProps as _, nextTick as v, normalizeClass as y, normalizeProps as b, normalizeStyle as x, openBlock as S, ref as C, renderList as w, renderSlot as T, resolveDynamicComponent as E, toDisplayString as D, unref as O, useAttrs as k, useModel as A, useSlots as j, useTemplateRef as ee, vShow as te, watch as M, withCtx as N, withDirectives as ne, withModifiers as P } from "vue";
4
- import { ElButton as F, ElCascader as re, ElCheckbox as ie, ElCheckboxGroup as I, ElDatePicker as ae, ElDialog as L, ElIcon as R, ElImageViewer as oe, ElInput as z, ElInputNumber as B, ElMessage as V, ElOption as H, ElProgress as se, ElRadio as ce, ElRadioButton as le, ElRadioGroup as ue, ElSelect as U, ElTag as de, ElTimePicker as fe, ElTooltip as pe, ElTreeSelect as me, ElUpload as he } from "element-plus";
5
- import W from "dayjs";
6
- import { cloneDeep as G } from "lodash-es";
7
- import { useDebounceFn as ge, useEventListener as K } from "@vueuse/core";
8
- import { Delete as _e, Download as ve, Plus as ye, VideoPlay as be, ZoomIn as xe } from "@element-plus/icons-vue";
9
- import '../assets/componentRegistry-phw1HTVy.css';//#endregion
4
+ import { ElButton as F, ElCascader as re, ElCheckbox as ie, ElCheckboxGroup as I, ElDatePicker as ae, ElDialog as L, ElIcon as R, ElImageViewer as oe, ElInput as z, ElInputNumber as B, ElMessage as V, ElOption as se, ElProgress as ce, ElRadio as le, ElRadioButton as ue, ElRadioGroup as de, ElSelect as H, ElTag as fe, ElTimePicker as pe, ElTooltip as me, ElTreeSelect as he, ElUpload as ge } from "element-plus";
5
+ import U from "dayjs";
6
+ import { cloneDeep as W } from "lodash-es";
7
+ import { useDebounceFn as _e, useEventListener as G } from "@vueuse/core";
8
+ import { Delete as ve, Download as ye, Plus as be, VideoPlay as xe, ZoomIn as Se } from "@element-plus/icons-vue";
9
+ import '../assets/componentRegistry-CdMmVVcX.css';//#endregion
10
10
  //#region src/components/k-button/KButton.vue
11
- var q = /* @__PURE__ */ f({
11
+ var K = /* @__PURE__ */ f({
12
12
  name: "KButton",
13
13
  __name: "KButton",
14
14
  setup(e) {
@@ -17,20 +17,20 @@ var q = /* @__PURE__ */ f({
17
17
  _: 3
18
18
  }, 16));
19
19
  }
20
- }), Se = { class: "k-dialog-header" }, Ce = {
20
+ }), Ce = { class: "k-dialog-header" }, we = {
21
21
  key: 0,
22
22
  class: "k-dialog-header__badge",
23
23
  "aria-hidden": "true"
24
- }, J = { class: "k-dialog-header__text" }, we = {
24
+ }, q = { class: "k-dialog-header__text" }, Te = {
25
25
  key: 0,
26
26
  class: "k-dialog-header__title"
27
- }, Te = {
27
+ }, Ee = {
28
28
  key: 1,
29
29
  class: "k-dialog-header__desc"
30
- }, Ee = {
30
+ }, De = {
31
31
  key: 1,
32
32
  class: "k-dialog-header__extra"
33
- }, De = /* @__PURE__ */ f({
33
+ }, Oe = /* @__PURE__ */ f({
34
34
  name: "KDialogHeader",
35
35
  __name: "KDialogHeader",
36
36
  props: {
@@ -40,21 +40,21 @@ var q = /* @__PURE__ */ f({
40
40
  iconSize: { default: 22 }
41
41
  },
42
42
  setup(e) {
43
- return (t, n) => (S(), o("div", Se, [
44
- e.icon || t.$slots.icon ? (S(), o("div", Ce, [T(t.$slots, "icon", {}, () => [(S(), i(E(e.icon), {
43
+ return (t, n) => (S(), o("div", Ce, [
44
+ e.icon || t.$slots.icon ? (S(), o("div", we, [T(t.$slots, "icon", {}, () => [(S(), i(E(e.icon), {
45
45
  class: "k-dialog-header__icon",
46
46
  size: e.iconSize,
47
47
  "stroke-width": 2.2
48
48
  }, null, 8, ["size"]))])])) : a("", !0),
49
- s("div", J, [
50
- e.title || t.$slots.title ? (S(), o("p", we, [T(t.$slots, "title", {}, () => [l(D(e.title), 1)])])) : a("", !0),
51
- e.description || t.$slots.description ? (S(), o("p", Te, [T(t.$slots, "description", {}, () => [l(D(e.description), 1)])])) : a("", !0),
49
+ s("div", q, [
50
+ e.title || t.$slots.title ? (S(), o("p", Te, [T(t.$slots, "title", {}, () => [l(D(e.title), 1)])])) : a("", !0),
51
+ e.description || t.$slots.description ? (S(), o("p", Ee, [T(t.$slots, "description", {}, () => [l(D(e.description), 1)])])) : a("", !0),
52
52
  T(t.$slots, "default")
53
53
  ]),
54
- t.$slots.extra ? (S(), o("div", Ee, [T(t.$slots, "extra")])) : a("", !0)
54
+ t.$slots.extra ? (S(), o("div", De, [T(t.$slots, "extra")])) : a("", !0)
55
55
  ]));
56
56
  }
57
- }), Oe = { class: "k-dialog__body" }, ke = /* @__PURE__ */ f({
57
+ }), ke = { class: "k-dialog__body" }, Ae = /* @__PURE__ */ f({
58
58
  name: "KDialog",
59
59
  inheritAttrs: !1,
60
60
  __name: "KDialog",
@@ -129,11 +129,11 @@ var q = /* @__PURE__ */ f({
129
129
  class: g.value,
130
130
  title: h.value
131
131
  }, v.value, { onClosed: r[1] ||= (e) => d("closed") }), c({
132
- default: N(() => [s("div", Oe, [T(t.$slots, "default")])]),
132
+ default: N(() => [s("div", ke, [T(t.$slots, "default")])]),
133
133
  _: 2
134
134
  }, [x.value ? {
135
135
  name: "header",
136
- fn: N(() => [T(t.$slots, "header", {}, () => [u(De, {
136
+ fn: N(() => [T(t.$slots, "header", {}, () => [u(Oe, {
137
137
  title: e.title,
138
138
  description: e.description,
139
139
  icon: e.icon
@@ -153,13 +153,13 @@ var q = /* @__PURE__ */ f({
153
153
  key: "1"
154
154
  } : !O(p).footer && (e.showConfirm !== !1 || e.showCancel !== !1) ? {
155
155
  name: "footer",
156
- fn: N(() => [e.showCancel === !1 ? a("", !0) : (S(), i(q, {
156
+ fn: N(() => [e.showCancel === !1 ? a("", !0) : (S(), i(K, {
157
157
  key: 0,
158
158
  onClick: w
159
159
  }, {
160
160
  default: N(() => [l(D(b.value), 1)]),
161
161
  _: 1
162
- })), e.showConfirm === !1 ? a("", !0) : (S(), i(q, {
162
+ })), e.showConfirm === !1 ? a("", !0) : (S(), i(K, {
163
163
  key: 1,
164
164
  type: "primary",
165
165
  loading: e.confirmLoading,
@@ -175,12 +175,12 @@ var q = /* @__PURE__ */ f({
175
175
  "title"
176
176
  ]));
177
177
  }
178
- }), Ae = Symbol("kayak-dict"), je = {
178
+ }), je = Symbol("kayak-dict"), Me = {
179
179
  list: "rows",
180
180
  page: "page_no",
181
181
  limit: "page_size",
182
182
  total: "total"
183
- }, Me = {
183
+ }, Ne = {
184
184
  total: 0,
185
185
  currentPage: 1,
186
186
  pageSize: 10,
@@ -191,7 +191,7 @@ var q = /* @__PURE__ */ f({
191
191
  100
192
192
  ],
193
193
  layout: "total, sizes, prev, pager, next, jumper"
194
- }, Ne = Symbol("k-form-date-picker-values"), Pe = [
194
+ }, Pe = Symbol("k-form-date-picker-values"), Fe = [
195
195
  "year",
196
196
  "month",
197
197
  "date",
@@ -203,44 +203,44 @@ var q = /* @__PURE__ */ f({
203
203
  "monthrange",
204
204
  "yearrange"
205
205
  ];
206
- function Fe(e) {
206
+ function Ie(e) {
207
207
  return typeof e == "string" || typeof e == "number" ? e : String(e);
208
208
  }
209
- function Y(e) {
209
+ function J(e) {
210
210
  if (e != null) return typeof e == "string" || typeof e == "number" || typeof e == "boolean" ? e : String(e);
211
211
  }
212
- function Ie(e) {
212
+ function Le(e) {
213
213
  return e == null ? "" : String(e);
214
214
  }
215
- function X(e) {
215
+ function Y(e) {
216
216
  return Array.isArray(e) ? e.filter((e) => typeof e == "string" || typeof e == "number") : [];
217
217
  }
218
- function Le(e) {
218
+ function Re(e) {
219
219
  if (typeof e == "number" && !Number.isNaN(e)) return e;
220
220
  if (e == null || e === "") return;
221
221
  let t = Number(e);
222
222
  return Number.isNaN(t) ? void 0 : t;
223
223
  }
224
- function Re(e) {
225
- if (e != null) return e instanceof Date || typeof e == "string" || Array.isArray(e) && e.length === 2 && (e.every((e) => e instanceof Date) || e.every((e) => typeof e == "string")) ? e : String(e);
226
- }
227
224
  function ze(e) {
228
- return e && Pe.includes(e) ? e : "date";
225
+ if (e != null) return e instanceof Date || typeof e == "string" || Array.isArray(e) && e.length === 2 && (e.every((e) => e instanceof Date) || e.every((e) => typeof e == "string")) ? e : String(e);
229
226
  }
230
227
  function Be(e) {
231
- if (e != null && e !== "") return e instanceof Date || typeof e == "string" || Array.isArray(e) && e.length === 2 && (e.every((e) => e instanceof Date) || e.every((e) => typeof e == "string")) ? e : String(e);
228
+ return e && Fe.includes(e) ? e : "date";
232
229
  }
233
230
  function Ve(e) {
234
- return e === "timerange" ? "timerange" : "time";
231
+ if (e != null && e !== "") return e instanceof Date || typeof e == "string" || Array.isArray(e) && e.length === 2 && (e.every((e) => e instanceof Date) || e.every((e) => typeof e == "string")) ? e : String(e);
235
232
  }
236
233
  function He(e) {
234
+ return e === "timerange" ? "timerange" : "time";
235
+ }
236
+ function X(e) {
237
237
  return e == null || typeof e == "string" || typeof e == "number" ? e : Array.isArray(e) ? e.filter((e) => typeof e == "string" || typeof e == "number") : typeof e == "object" ? e : String(e);
238
238
  }
239
239
  function Ue(e) {
240
240
  return Array.isArray(e) ? e : [];
241
241
  }
242
242
  function We(e, t) {
243
- let n = Y(t);
243
+ let n = J(t);
244
244
  if (n !== void 0) for (let t of e) {
245
245
  let e = t.value ?? t.id;
246
246
  if (e != null && String(e) === String(n)) {
@@ -255,7 +255,7 @@ function We(e, t) {
255
255
  }
256
256
  }
257
257
  function Ge(e, t, n, r = " / ") {
258
- let i = He(t);
258
+ let i = X(t);
259
259
  if (i == null || i === "") return Z(t);
260
260
  let a = n?.value ?? "value", o = n?.label ?? "label", s = n?.children ?? "children", c = Array.isArray(i) ? i : [i], l = [], u = Array.isArray(e) ? e : [];
261
261
  for (let e of c) {
@@ -292,7 +292,7 @@ var Ke = {
292
292
  },
293
293
  emits: ["update:modelValue"],
294
294
  setup(e, { emit: t }) {
295
- let n = e, a = t, s = r(() => He(n.modelValue)), c = r(() => n.cascaderProps ?? n.props), l = r(() => Ge(n.options, n.modelValue, c.value, n.separator ?? " / "));
295
+ let n = e, a = t, s = r(() => X(n.modelValue)), c = r(() => n.cascaderProps ?? n.props), l = r(() => Ge(n.options, n.modelValue, c.value, n.separator ?? " / "));
296
296
  return (t, n) => e.readonly ? (S(), o("span", Ke, D(l.value), 1)) : (S(), i(O(re), {
297
297
  key: 1,
298
298
  "model-value": s.value,
@@ -340,7 +340,7 @@ var Ke = {
340
340
  return e.length ? e.join(", ") : "--";
341
341
  });
342
342
  M(() => d.modelValue, (e) => {
343
- p.value = X(e), v(p.value);
343
+ p.value = Y(e), v(p.value);
344
344
  }, { immediate: !0 });
345
345
  function v(e) {
346
346
  let t = g.value.length, n = e.length;
@@ -372,14 +372,14 @@ var Ke = {
372
372
  disabled: e.disabled,
373
373
  "onUpdate:modelValue": b
374
374
  }, {
375
- default: N(() => [(S(!0), o(n, null, w(e.options, (e) => (S(), i(O(pe), {
375
+ default: N(() => [(S(!0), o(n, null, w(e.options, (e) => (S(), i(O(me), {
376
376
  key: String(e.value),
377
377
  content: s(e),
378
378
  disabled: c(e),
379
379
  placement: "top-start"
380
380
  }, {
381
381
  default: N(() => [u(O(ie), {
382
- value: O(Y)(e.value),
382
+ value: O(J)(e.value),
383
383
  disabled: e.disabled
384
384
  }, {
385
385
  default: N(() => [l(D(e.label), 1)]),
@@ -438,15 +438,15 @@ var Ke = {
438
438
  },
439
439
  emits: ["update:modelValue"],
440
440
  setup(e, { emit: t }) {
441
- let n = e, s = t, c = m(Ne, null), l = r(() => n.datePickerValues ?? c?.value ?? {}), u = r(() => Re(n.modelValue)), d = r(() => ze(n.type)), f = r(() => d.value === "datetimerange" ? "k-form-date-picker--datetimerange" : ""), p = (e, t) => W(e instanceof Date ? e : String(e)).format(t), h = r(() => {
441
+ let n = e, s = t, c = m(Pe, null), l = r(() => n.datePickerValues ?? c?.value ?? {}), u = r(() => ze(n.modelValue)), d = r(() => Be(n.type)), f = r(() => d.value === "datetimerange" ? "k-form-date-picker--datetimerange" : ""), p = (e, t) => U(e instanceof Date ? e : String(e)).format(t), h = r(() => {
442
442
  if (!n.modelValue) return Z(n.modelValue);
443
443
  let e = d.value.includes("datetime") ? "YYYY-MM-DD HH:mm:ss" : "YYYY-MM-DD";
444
444
  if (Array.isArray(n.modelValue)) return n.modelValue.map((t) => p(t, e)).join(" - ");
445
- let t = W(n.modelValue instanceof Date ? n.modelValue : String(n.modelValue));
445
+ let t = U(n.modelValue instanceof Date ? n.modelValue : String(n.modelValue));
446
446
  return t.isValid() ? t.format(e) : Z(n.modelValue);
447
447
  }), g = r(() => {
448
448
  if (!n.limitTime) return;
449
- let e = W().hour();
449
+ let e = U().hour();
450
450
  return () => Array.from({ length: 24 }, (e, t) => t).filter((t) => t < e);
451
451
  });
452
452
  function _(e) {
@@ -468,7 +468,7 @@ var Ke = {
468
468
  let t = l.value[`kitDate-${e.id}`];
469
469
  if (!t) return null;
470
470
  if (t instanceof Date) return _(t);
471
- let n = W(t);
471
+ let n = U(t);
472
472
  return n.isValid() ? _(n.toDate()) : null;
473
473
  }
474
474
  return null;
@@ -536,7 +536,7 @@ var Ke = {
536
536
  componentType: {}
537
537
  },
538
538
  setup(e) {
539
- let t = e, n = r(() => `[${t.componentType ?? "Unknown"}] 待迁移`), a = r(() => Ie(t.modelValue));
539
+ let t = e, n = r(() => `[${t.componentType ?? "Unknown"}] 待迁移`), a = r(() => Le(t.modelValue));
540
540
  return (e, t) => (S(), i(O(z), {
541
541
  "model-value": a.value,
542
542
  disabled: "",
@@ -581,7 +581,7 @@ var Ke = {
581
581
  },
582
582
  emits: ["update:modelValue"],
583
583
  setup(e, { emit: t }) {
584
- let n = e, s = t, u = r(() => Ie(n.modelValue)), d = r(() => n.maxlength ?? n.maxLength), f = r(() => n.type === "textarea"), p = r(() => n.clearable && !f.value), m = r(() => {
584
+ let n = e, s = t, u = r(() => Le(n.modelValue)), d = r(() => n.maxlength ?? n.maxLength), f = r(() => n.type === "textarea"), p = r(() => n.clearable && !f.value), m = r(() => {
585
585
  let e = Z(u.value);
586
586
  return e === "--" ? e : `${n.prepend || ""}${e}${n.append || ""}`;
587
587
  });
@@ -759,9 +759,9 @@ var Ke = {
759
759
  },
760
760
  emits: ["update:modelValue"],
761
761
  setup(e, { emit: t }) {
762
- let a = e, s = t, c = r(() => Y(a.modelValue)), l = r(() => X(a.modelValue)), u = r(() => (a.options ?? []).map((e) => ({
762
+ let a = e, s = t, c = r(() => J(a.modelValue)), l = r(() => Y(a.modelValue)), u = r(() => (a.options ?? []).map((e) => ({
763
763
  label: e.label,
764
- value: Fe(e.value),
764
+ value: Ie(e.value),
765
765
  disabled: e.disabled,
766
766
  key: String(e.value)
767
767
  }))), d = r(() => {
@@ -775,7 +775,7 @@ var Ke = {
775
775
  function f(e) {
776
776
  s("update:modelValue", e);
777
777
  }
778
- return (t, r) => (S(), o("div", _({ class: ["k-form-select", { "k-form-select--readonly": e.readonly }] }, t.$attrs), [e.readonly ? (S(), o("span", ct, D(d.value), 1)) : (S(), i(O(U), {
778
+ return (t, r) => (S(), o("div", _({ class: ["k-form-select", { "k-form-select--readonly": e.readonly }] }, t.$attrs), [e.readonly ? (S(), o("span", ct, D(d.value), 1)) : (S(), i(O(H), {
779
779
  key: 1,
780
780
  "model-value": e.multiple ? l.value : c.value,
781
781
  placeholder: e.placeholder,
@@ -785,7 +785,7 @@ var Ke = {
785
785
  disabled: e.disabled,
786
786
  "onUpdate:modelValue": f
787
787
  }, {
788
- default: N(() => [(S(!0), o(n, null, w(u.value, (e) => (S(), i(O(H), {
788
+ default: N(() => [(S(!0), o(n, null, w(u.value, (e) => (S(), i(O(se), {
789
789
  key: e.key,
790
790
  label: e.label,
791
791
  value: e.value,
@@ -853,11 +853,11 @@ var Ke = {
853
853
  },
854
854
  emits: ["update:modelValue"],
855
855
  setup(e, { emit: t }) {
856
- let i = m(Ae, null), c = e, l = t, d = C({}), f = C(""), p = C(""), h = r(() => c.inputProps.id ?? "input"), g = r(() => c.selectProps.id ?? "select"), v = r(() => {
857
- let e = G(c.inputProps);
856
+ let i = m(je, null), c = e, l = t, d = C({}), f = C(""), p = C(""), h = r(() => c.inputProps.id ?? "input"), g = r(() => c.selectProps.id ?? "select"), v = r(() => {
857
+ let e = W(c.inputProps);
858
858
  return delete e.id, e;
859
859
  }), b = r(() => {
860
- let e = G(c.selectProps);
860
+ let e = W(c.selectProps);
861
861
  return delete e.id, e;
862
862
  });
863
863
  function w(e, t) {
@@ -902,7 +902,7 @@ var Ke = {
902
902
  d.value[t] = e, f.value = String(d.value[h.value] ?? ""), p.value = d.value[g.value], ne();
903
903
  }
904
904
  return M(() => c.modelValue, (e) => {
905
- e && typeof e == "object" && !Array.isArray(e) && (d.value = G(e), f.value = String(d.value[h.value] ?? ""), p.value = d.value[g.value]);
905
+ e && typeof e == "object" && !Array.isArray(e) && (d.value = W(e), f.value = String(d.value[h.value] ?? ""), p.value = d.value[g.value]);
906
906
  }, {
907
907
  immediate: !0,
908
908
  deep: !0
@@ -1006,7 +1006,7 @@ var Ke = {
1006
1006
  },
1007
1007
  emits: ["update:modelValue"],
1008
1008
  setup(e, { emit: t }) {
1009
- let n = e, s = t, c = r(() => Le(n.modelValue));
1009
+ let n = e, s = t, c = r(() => Re(n.modelValue));
1010
1010
  function l(e) {
1011
1011
  if (e === void 0) {
1012
1012
  s("update:modelValue", n.min ?? 0);
@@ -1052,26 +1052,26 @@ var Ke = {
1052
1052
  },
1053
1053
  emits: ["update:modelValue"],
1054
1054
  setup(e, { emit: t }) {
1055
- let a = e, s = t, c = r(() => Y(a.modelValue)), u = r(() => (a.options ?? []).find((e) => e.value === c.value)?.label ?? Z(c.value));
1055
+ let a = e, s = t, c = r(() => J(a.modelValue)), u = r(() => (a.options ?? []).find((e) => e.value === c.value)?.label ?? Z(c.value));
1056
1056
  function d(e) {
1057
1057
  s("update:modelValue", e);
1058
1058
  }
1059
- return (t, r) => (S(), o("div", bt, [e.readonly ? (S(), o("span", xt, D(u.value), 1)) : (S(), i(O(ue), {
1059
+ return (t, r) => (S(), o("div", bt, [e.readonly ? (S(), o("span", xt, D(u.value), 1)) : (S(), i(O(de), {
1060
1060
  key: 1,
1061
1061
  "model-value": c.value,
1062
1062
  disabled: e.disabled,
1063
1063
  "onUpdate:modelValue": d
1064
1064
  }, {
1065
- default: N(() => [(S(!0), o(n, null, w(e.options, (t) => (S(), o(n, { key: String(t.value) }, [e.type === "button" ? (S(), i(O(le), {
1065
+ default: N(() => [(S(!0), o(n, null, w(e.options, (t) => (S(), o(n, { key: String(t.value) }, [e.type === "button" ? (S(), i(O(ue), {
1066
1066
  key: 0,
1067
- value: O(Y)(t.value),
1067
+ value: O(J)(t.value),
1068
1068
  disabled: t.disabled
1069
1069
  }, {
1070
1070
  default: N(() => [l(D(t.label), 1)]),
1071
1071
  _: 2
1072
- }, 1032, ["value", "disabled"])) : (S(), i(O(ce), {
1072
+ }, 1032, ["value", "disabled"])) : (S(), i(O(le), {
1073
1073
  key: 1,
1074
- value: O(Y)(t.value),
1074
+ value: O(J)(t.value),
1075
1075
  disabled: t.disabled
1076
1076
  }, {
1077
1077
  default: N(() => [l(D(t.label), 1)]),
@@ -1239,7 +1239,7 @@ var Ke = {
1239
1239
  setup(e, { emit: t }) {
1240
1240
  let a = e, s = t, c = C([]), l = C(!1), u = C(!1), d = C(1), f = C(""), p = C(null), m = C(a.multiple ? [] : "");
1241
1241
  M(() => a.modelValue, (e) => {
1242
- m.value = a.multiple ? X(e) : Y(e);
1242
+ m.value = a.multiple ? Y(e) : J(e);
1243
1243
  }, { immediate: !0 }), M(() => a.defaultSelectedStr, (e) => {
1244
1244
  e?.length && (c.value = [...c.value, ...e]);
1245
1245
  }, {
@@ -1264,9 +1264,9 @@ var Ke = {
1264
1264
  }
1265
1265
  }
1266
1266
  }
1267
- let g = ge((e) => {
1267
+ let g = _e((e) => {
1268
1268
  c.value = [], d.value = 1, u.value = !1, f.value = e, h();
1269
- }, 500), _ = ge(() => {
1269
+ }, 500), _ = _e(() => {
1270
1270
  d.value += 1, h();
1271
1271
  }, 300);
1272
1272
  function y(e) {
@@ -1277,7 +1277,7 @@ var Ke = {
1277
1277
  let { scrollHeight: e, scrollTop: t, clientHeight: n } = p.value;
1278
1278
  e - t > n + 2 || _();
1279
1279
  }
1280
- K(p, "scroll", b);
1280
+ G(p, "scroll", b);
1281
1281
  function x(e) {
1282
1282
  if (!e) {
1283
1283
  p.value = null;
@@ -1292,13 +1292,13 @@ var Ke = {
1292
1292
  }
1293
1293
  let E = r(() => {
1294
1294
  if (a.multiple) {
1295
- let e = X(m.value), t = c.value.filter((t) => e.includes(t.value)).map((e) => String(e.label ?? e.name ?? e.value));
1295
+ let e = Y(m.value), t = c.value.filter((t) => e.includes(t.value)).map((e) => String(e.label ?? e.name ?? e.value));
1296
1296
  return t.length ? t.join(", ") : Z(e);
1297
1297
  }
1298
- let e = Y(m.value), t = c.value.find((t) => t.value === e);
1298
+ let e = J(m.value), t = c.value.find((t) => t.value === e);
1299
1299
  return t ? String(t.label ?? t.name ?? t.value) : Z(e);
1300
1300
  });
1301
- return h(), (t, r) => e.readonly ? (S(), o("span", kt, D(E.value), 1)) : (S(), i(O(U), {
1301
+ return h(), (t, r) => e.readonly ? (S(), o("span", kt, D(E.value), 1)) : (S(), i(O(H), {
1302
1302
  key: 1,
1303
1303
  "model-value": m.value,
1304
1304
  remote: "",
@@ -1313,7 +1313,7 @@ var Ke = {
1313
1313
  onVisibleChange: x,
1314
1314
  "onUpdate:modelValue": T
1315
1315
  }, {
1316
- default: N(() => [(S(!0), o(n, null, w(c.value, (e, t) => ne((S(), i(O(H), {
1316
+ default: N(() => [(S(!0), o(n, null, w(c.value, (e, t) => ne((S(), i(O(se), {
1317
1317
  key: `${e.value}-${t}`,
1318
1318
  label: String(e.label ?? ""),
1319
1319
  value: e.value
@@ -1354,7 +1354,7 @@ var Ke = {
1354
1354
  }, ...e];
1355
1355
  }), u = r(() => l.value.map((e) => ({
1356
1356
  label: e.label,
1357
- value: Fe(e.value),
1357
+ value: Ie(e.value),
1358
1358
  disabled: e.disabled,
1359
1359
  key: String(e.value)
1360
1360
  }))), d = r(() => u.value.map((e) => e.value)), f = r(() => {
@@ -1362,7 +1362,7 @@ var Ke = {
1362
1362
  return e.length ? e.join(", ") : Z(c.value);
1363
1363
  });
1364
1364
  M(() => a.modelValue, (e) => {
1365
- c.value = X(e);
1365
+ c.value = Y(e);
1366
1366
  }, { immediate: !0 });
1367
1367
  function p(e, t) {
1368
1368
  if (!a.showAllItem) {
@@ -1376,7 +1376,7 @@ var Ke = {
1376
1376
  function h(e) {
1377
1377
  p(e, m), m = [...c.value];
1378
1378
  }
1379
- return (t, r) => e.readonly ? (S(), o("span", jt, D(f.value), 1)) : (S(), i(O(U), {
1379
+ return (t, r) => e.readonly ? (S(), o("span", jt, D(f.value), 1)) : (S(), i(O(H), {
1380
1380
  key: 1,
1381
1381
  "model-value": c.value,
1382
1382
  multiple: "",
@@ -1387,7 +1387,7 @@ var Ke = {
1387
1387
  class: "k-form-select-multiple",
1388
1388
  "onUpdate:modelValue": h
1389
1389
  }, {
1390
- default: N(() => [(S(!0), o(n, null, w(u.value, (e) => (S(), i(O(H), {
1390
+ default: N(() => [(S(!0), o(n, null, w(u.value, (e) => (S(), i(O(se), {
1391
1391
  key: e.key,
1392
1392
  label: e.label,
1393
1393
  value: e.value,
@@ -1451,7 +1451,7 @@ var Ke = {
1451
1451
  c.value = e.map(String);
1452
1452
  return;
1453
1453
  }
1454
- let t = Y(e);
1454
+ let t = J(e);
1455
1455
  c.value = t ? [String(t)] : [];
1456
1456
  }
1457
1457
  M(() => a.modelValue, f, { immediate: !0 });
@@ -1471,7 +1471,7 @@ var Ke = {
1471
1471
  let t = ["k-form-tag__item"];
1472
1472
  return a.disabled && t.push("is-disabled"), a.readonly && t.push("is-readonly"), c.value.includes(e) && t.push("is-active"), t.join(" ");
1473
1473
  }
1474
- return (e, t) => (S(), o("div", Nt, [(S(!0), o(n, null, w(d.value, (e) => (S(), i(O(de), {
1474
+ return (e, t) => (S(), o("div", Nt, [(S(!0), o(n, null, w(d.value, (e) => (S(), i(O(fe), {
1475
1475
  key: e.value || "__all__",
1476
1476
  class: y(["k-form-tag__item", h(e.value)]),
1477
1477
  type: "info",
@@ -1493,7 +1493,7 @@ var Ke = {
1493
1493
  disabled: { type: Boolean }
1494
1494
  },
1495
1495
  setup(e) {
1496
- let t = e, n = r(() => Ie(t.modelValue));
1496
+ let t = e, n = r(() => Le(t.modelValue));
1497
1497
  return (e, t) => (S(), o("div", Ft, [s("p", null, D(n.value), 1)]));
1498
1498
  }
1499
1499
  }), [["__scopeId", "data-v-9dc35114"]]), Lt = { class: "k-form-time-picker" }, Rt = ["innerHTML"], zt = {
@@ -1535,8 +1535,8 @@ var Ke = {
1535
1535
  },
1536
1536
  emits: ["update:modelValue"],
1537
1537
  setup(e, { emit: t }) {
1538
- let n = e, s = t, c = r(() => Be(n.modelValue)), l = r(() => Ve(n.type)), u = r(() => l.value === "timerange"), d = (e, t) => {
1539
- let n = W(e instanceof Date ? e : String(e));
1538
+ let n = e, s = t, c = r(() => Ve(n.modelValue)), l = r(() => He(n.type)), u = r(() => l.value === "timerange"), d = (e, t) => {
1539
+ let n = U(e instanceof Date ? e : String(e));
1540
1540
  return n.isValid() ? n.format(t) : Z(e);
1541
1541
  }, f = r(() => {
1542
1542
  if (!n.modelValue) return Z(n.modelValue);
@@ -1544,16 +1544,16 @@ var Ke = {
1544
1544
  return Array.isArray(n.modelValue) ? n.modelValue.map((t) => d(t, e)).join(" - ") : d(n.modelValue, e);
1545
1545
  }), p = r(() => {
1546
1546
  if (!n.limitTime) return;
1547
- let e = W().hour();
1547
+ let e = U().hour();
1548
1548
  return () => Array.from({ length: 24 }, (e, t) => t).filter((t) => t < e);
1549
1549
  }), m = r(() => {
1550
1550
  if (n.limitTime) return (e) => {
1551
- let t = W();
1551
+ let t = U();
1552
1552
  return e > t.hour() ? [] : e < t.hour() ? Array.from({ length: 60 }, (e, t) => t) : Array.from({ length: 60 }, (e, t) => t).filter((e) => e < t.minute());
1553
1553
  };
1554
1554
  }), h = r(() => {
1555
1555
  if (n.limitTime) return (e, t) => {
1556
- let n = W();
1556
+ let n = U();
1557
1557
  return e > n.hour() || e === n.hour() && t > n.minute() ? [] : e < n.hour() || e === n.hour() && t < n.minute() ? Array.from({ length: 60 }, (e, t) => t) : Array.from({ length: 60 }, (e, t) => t).filter((e) => e < n.second());
1558
1558
  };
1559
1559
  });
@@ -1567,7 +1567,7 @@ var Ke = {
1567
1567
  innerHTML: e.prepend
1568
1568
  }, null, 8, Rt)) : a("", !0),
1569
1569
  e.leftText ? (S(), o("span", zt, D(e.leftText), 1)) : a("", !0),
1570
- e.readonly ? (S(), o("span", Bt, D(f.value), 1)) : (S(), i(O(fe), {
1570
+ e.readonly ? (S(), o("span", Bt, D(f.value), 1)) : (S(), i(O(pe), {
1571
1571
  key: 3,
1572
1572
  "model-value": c.value,
1573
1573
  "is-range": u.value,
@@ -1632,8 +1632,8 @@ var Ke = {
1632
1632
  },
1633
1633
  emits: ["update:modelValue"],
1634
1634
  setup(e, { emit: t }) {
1635
- let n = e, a = t, s = r(() => Y(n.modelValue)), c = r(() => Ue(n.data)), l = r(() => We(c.value, s.value) ?? Z(s.value));
1636
- return (t, n) => (S(), o("div", Wt, [e.readonly ? (S(), o("div", Gt, D(l.value), 1)) : (S(), i(O(me), {
1635
+ let n = e, a = t, s = r(() => J(n.modelValue)), c = r(() => Ue(n.data)), l = r(() => We(c.value, s.value) ?? Z(s.value));
1636
+ return (t, n) => (S(), o("div", Wt, [e.readonly ? (S(), o("div", Gt, D(l.value), 1)) : (S(), i(O(he), {
1637
1637
  key: 1,
1638
1638
  "model-value": s.value,
1639
1639
  data: c.value,
@@ -1676,7 +1676,7 @@ var Ke = {
1676
1676
  class: "k-upload__media-play",
1677
1677
  onClick: r[0] ||= (t) => l("play", e.file)
1678
1678
  }, [u(O(R), null, {
1679
- default: N(() => [u(O(be))]),
1679
+ default: N(() => [u(O(xe))]),
1680
1680
  _: 1
1681
1681
  })])) : (S(), o(n, { key: 1 }, [T(t.$slots, "preview", { file: e.file }, () => [s("img", {
1682
1682
  class: "el-upload-list__item-thumbnail",
@@ -1687,7 +1687,7 @@ var Ke = {
1687
1687
  class: "el-upload-list__item-preview",
1688
1688
  onClick: r[1] ||= (t) => l("zoom", e.file)
1689
1689
  }, [u(O(R), null, {
1690
- default: N(() => [u(O(xe))]),
1690
+ default: N(() => [u(O(Se))]),
1691
1691
  _: 1
1692
1692
  })]),
1693
1693
  e.disabled ? a("", !0) : (S(), o("span", {
@@ -1695,7 +1695,7 @@ var Ke = {
1695
1695
  class: "el-upload-list__item-download",
1696
1696
  onClick: r[2] ||= (t) => l("download", e.file)
1697
1697
  }, [u(O(R), null, {
1698
- default: N(() => [u(O(ve))]),
1698
+ default: N(() => [u(O(ye))]),
1699
1699
  _: 1
1700
1700
  })])),
1701
1701
  e.disabled ? a("", !0) : (S(), o("span", {
@@ -1703,10 +1703,10 @@ var Ke = {
1703
1703
  class: "el-upload-list__item-delete",
1704
1704
  onClick: r[3] ||= (t) => l("remove", e.file)
1705
1705
  }, [u(O(R), null, {
1706
- default: N(() => [u(O(_e))]),
1706
+ default: N(() => [u(O(ve))]),
1707
1707
  _: 1
1708
1708
  })]))
1709
- ])], 64)), f.value ? (S(), i(O(se), {
1709
+ ])], 64)), f.value ? (S(), i(O(ce), {
1710
1710
  key: 2,
1711
1711
  class: "k-upload__file-progress",
1712
1712
  type: e.listType === "picture-card" || e.listType === "lottie" ? "circle" : "line",
@@ -1739,7 +1739,7 @@ var Ke = {
1739
1739
  class: "k-upload__download",
1740
1740
  onClick: r[0] ||= P((e) => n("downloadTemplate"), ["stop"])
1741
1741
  }, [u(O(R), { class: "k-upload__download-icon" }, {
1742
- default: N(() => [u(O(ve))]),
1742
+ default: N(() => [u(O(ye))]),
1743
1743
  _: 1
1744
1744
  }), s("span", null, D(e.templateBtnText), 1)])) : a("", !0),
1745
1745
  e.tipType === "text" && e.tipText ? (S(), o("span", {
@@ -1747,7 +1747,7 @@ var Ke = {
1747
1747
  class: "k-upload__inline-tip",
1748
1748
  innerHTML: e.tipText
1749
1749
  }, null, 8, Qt)) : a("", !0),
1750
- e.tipType === "tooltip" && e.tipText ? (S(), i(O(pe), {
1750
+ e.tipType === "tooltip" && e.tipText ? (S(), i(O(me), {
1751
1751
  key: 2,
1752
1752
  placement: "top",
1753
1753
  content: e.tipText
@@ -1776,7 +1776,7 @@ var Ke = {
1776
1776
  emits: ["update:visible"],
1777
1777
  setup(e) {
1778
1778
  let t = A(e, "visible");
1779
- return (n, r) => (S(), i(ke, {
1779
+ return (n, r) => (S(), i(Ae, {
1780
1780
  visible: t.value,
1781
1781
  "onUpdate:visible": r[0] ||= (e) => t.value = e,
1782
1782
  "show-confirm": !1,
@@ -2007,7 +2007,16 @@ var vn = {
2007
2007
  type: Boolean,
2008
2008
  default: !1
2009
2009
  },
2010
- cutterOption: { default: () => ({}) }
2010
+ cutterOption: { default: () => ({}) },
2011
+ beforeUpload: {},
2012
+ beforeRemove: {},
2013
+ onChange: {},
2014
+ onSuccess: {},
2015
+ onError: {},
2016
+ onRemove: {},
2017
+ onPreview: {},
2018
+ onProgress: {},
2019
+ onExceed: {}
2011
2020
  },
2012
2021
  emits: [
2013
2022
  "update:modelValue",
@@ -2016,7 +2025,8 @@ var vn = {
2016
2025
  "remove",
2017
2026
  "preview",
2018
2027
  "change",
2019
- "exceed"
2028
+ "exceed",
2029
+ "progress"
2020
2030
  ],
2021
2031
  setup(e, { expose: n, emit: f }) {
2022
2032
  let m = d(() => import("./ImageCutter-B4uKMA_8.js")), g = {
@@ -2060,27 +2070,27 @@ var vn = {
2060
2070
  }), z = hn({
2061
2071
  getAccept: () => F.value,
2062
2072
  getMaxSize: () => w.maxSize
2063
- }), B = mn({ getTemplateCode: () => w.templateCode }), { visible: H, urlList: se, initialIndex: ce, open: le, close: ue } = cn(), { visible: U, url: de, type: fe, open: pe } = ln(), me = r(() => gn(P.value, w.action)), W = r(() => {
2073
+ }), B = mn({ getTemplateCode: () => w.templateCode }), { visible: se, urlList: ce, initialIndex: le, open: ue, close: de } = cn(), { visible: H, url: fe, type: pe, open: me } = ln(), he = r(() => gn(P.value, w.action)), U = r(() => {
2064
2074
  switch (P.value) {
2065
2075
  case "picture": return "picture";
2066
2076
  case "picture-card":
2067
2077
  case "lottie": return "picture-card";
2068
2078
  default: return "text";
2069
2079
  }
2070
- }), G = r(() => [
2080
+ }), W = r(() => [
2071
2081
  "picture",
2072
2082
  "picture-card",
2073
2083
  "lottie"
2074
- ].includes(P.value)), ge = r(() => [
2084
+ ].includes(P.value)), _e = r(() => [
2075
2085
  "picture-card",
2076
2086
  "lottie",
2077
2087
  "video",
2078
2088
  "audio"
2079
- ].includes(P.value)), K = r(() => P.value === "picture-card" || P.value === "lottie"), _e = r(() => !K.value), ve = r(() => !w.openCutter && w.autoUpload), be = r(() => w.limit === 1 ? void 0 : w.limit), xe = r(() => !!(w.limit && w.limit !== 1 && re.value.length >= w.limit)), Se = r(() => !w.disabled), Ce = r(() => !(K.value || w.disabled || P.value === "picture" && w.tipType === "text")), J = r(() => w.disabled ? "" : w.fileTips || (F.value ? `支持上传 ${F.value} 后缀文件,且不超过${w.maxSize}M` : "")), we = r(() => J.value && (w.tipType === "tooltip" || w.tipType === "text" && P.value === "picture") ? J.value : ""), Te = r(() => {
2089
+ ].includes(P.value)), G = r(() => P.value === "picture-card" || P.value === "lottie"), ve = r(() => !G.value), ye = r(() => !w.openCutter && w.autoUpload), xe = r(() => w.limit === 1 ? void 0 : w.limit), Se = r(() => !!(w.limit && w.limit !== 1 && re.value.length >= w.limit)), Ce = r(() => !w.disabled), we = r(() => !(G.value || w.disabled || P.value === "picture" && w.tipType === "text")), q = r(() => w.disabled ? "" : w.fileTips || (F.value ? `支持上传 ${F.value} 后缀文件,且不超过${w.maxSize}M` : "")), Te = r(() => q.value && (w.tipType === "tooltip" || w.tipType === "text" && P.value === "picture") ? q.value : ""), Ee = r(() => {
2080
2090
  let e = ["k-upload", `k-upload--${P.value}`];
2081
- return w.disabled && e.push("k-upload_detail"), xe.value && e.push("k-upload--limit"), e.join(" ");
2091
+ return w.disabled && e.push("k-upload_detail"), Se.value && e.push("k-upload--limit"), e.join(" ");
2082
2092
  });
2083
- function Ee(e, t, n) {
2093
+ function De(e, t, n) {
2084
2094
  let r = e ?? {}, i = String(r.resource_id ?? ""), a = String(r.file_name ?? n), o = _n(P.value);
2085
2095
  return {
2086
2096
  ...r,
@@ -2093,23 +2103,24 @@ var vn = {
2093
2103
  status: "success"
2094
2104
  };
2095
2105
  }
2096
- function De(e, t, n) {
2097
- let r = Ee(e, t, n);
2106
+ function Oe(e, t, n) {
2107
+ let r = De(e, t, n);
2098
2108
  ae(r), w.showSuccMessage && V.success("文件上传成功!"), E("success", e, r);
2099
2109
  }
2100
- let Oe = (e) => z.validate(e), ke = (e, t) => {
2101
- De(e ?? {}, t.uid, t.name);
2102
- }, Ae = (e, t) => {
2103
- V.error(x(e, "文件上传失败!")), I(t.uid), E("error", e, t);
2104
- }, je = (e) => {
2110
+ let ke = async (e) => z.validate(e) ? !w.beforeUpload || w.beforeUpload(e) : !1, Ae = async (e, t) => !w.beforeRemove || await w.beforeRemove(e, t) !== !1, je = (e, t, n) => {
2111
+ Oe(e ?? {}, t.uid, t.name), w.onSuccess?.(e, t, n);
2112
+ }, Me = (e, t, n) => {
2113
+ V.error(x(e, "文件上传失败!")), I(t.uid), E("error", e, t), w.onError?.(e, t, n);
2114
+ }, Ne = (e, t) => {
2105
2115
  if (typeof e.uid == "number" && z.consumeRejected(e.uid)) return;
2116
+ let n = L(e.uid);
2117
+ I(e.uid), n && E("remove", n), w.onRemove?.(e, t);
2118
+ }, Pe = (e) => {
2119
+ w.onPreview?.(e);
2106
2120
  let t = L(e.uid);
2107
- I(e.uid), t && E("remove", t);
2108
- }, Me = (e) => {
2109
- let t = L(e.uid);
2110
- t && (E("preview", t), !(G.value && le(t, re.value)) && ze(t));
2111
- }, Ne = (e) => {
2112
- if (E("change", e), !(!w.openCutter || e.status !== "ready" || !e.raw)) {
2121
+ t && (E("preview", t), !(W.value && ue(t, re.value)) && He(t));
2122
+ }, Fe = (e, t) => {
2123
+ if (E("change", e), w.onChange?.(e, t), !(!w.openCutter || e.status !== "ready" || !e.raw)) {
2113
2124
  if (z.validate(e.raw) === !1) {
2114
2125
  I(e.uid);
2115
2126
  return;
@@ -2121,99 +2132,103 @@ var vn = {
2121
2132
  });
2122
2133
  });
2123
2134
  }
2124
- }, Pe = (e, t) => {
2125
- E("exceed", e, t);
2135
+ }, Ie = (e, t, n) => {
2136
+ E("progress", e, t), w.onProgress?.(e, t, n);
2137
+ }, J = (e, t) => {
2138
+ E("exceed", e, t), w.onExceed?.(e, t);
2126
2139
  };
2127
- function Fe(e) {
2140
+ function Le(e) {
2128
2141
  let t = L(e.uid);
2129
- t && le(t, re.value);
2142
+ t && ue(t, re.value);
2130
2143
  }
2131
2144
  function Y(e) {
2132
2145
  let t = L(e.uid);
2133
- t && ze(t);
2146
+ t && He(t);
2134
2147
  }
2135
- function Ie(e) {
2148
+ function Re(e) {
2136
2149
  let t = L(e.uid);
2137
- I(e.uid), t && E("remove", t);
2150
+ I(e.uid), t && E("remove", t), w.onRemove?.(e, ie.value);
2138
2151
  }
2139
- function X(e) {
2152
+ function ze(e) {
2140
2153
  let t = L(e.uid);
2141
- t && pe(t, P.value === "audio" ? "audio" : "video");
2154
+ t && me(t, P.value === "audio" ? "audio" : "video");
2142
2155
  }
2143
- async function Le(e) {
2156
+ async function Be(e) {
2144
2157
  try {
2145
2158
  let t = gn("picture", w.action);
2146
- De(await B.uploadFile(e, t), -Date.now(), e.name);
2159
+ Oe(await B.uploadFile(e, t), -Date.now(), e.name);
2147
2160
  } catch (e) {
2148
2161
  V.error(x(e, "图片上传失败!"));
2149
2162
  }
2150
2163
  }
2151
- function Re(e, t) {
2164
+ function Ve(e, t) {
2152
2165
  let n = document.createElement("a");
2153
2166
  n.href = e, n.download = t, n.click();
2154
2167
  }
2155
- function ze(e) {
2156
- e.resource_id && Re(`${_n(P.value)}${e.resource_id}`, e.name || String(e.resource_id));
2168
+ function He(e) {
2169
+ e.resource_id && Ve(`${_n(P.value)}${e.resource_id}`, e.name || String(e.resource_id));
2157
2170
  }
2158
- function Be() {
2171
+ function X() {
2159
2172
  let e = t(), n = e.templateCodeRelation[w.templateCode];
2160
2173
  if (!n) {
2161
2174
  V.warning("模板未配置");
2162
2175
  return;
2163
2176
  }
2164
- Re(`${w.templateDownloadUrl || (w.templateDomain === "base" ? e.baseTemplateDownloadBaseUrl : e.templateDownloadBaseUrl) || e.urls.BASE_URL}${n}`, n);
2177
+ Ve(`${w.templateDownloadUrl || (w.templateDomain === "base" ? e.baseTemplateDownloadBaseUrl : e.templateDownloadBaseUrl) || e.urls.BASE_URL}${n}`, n);
2165
2178
  }
2166
2179
  return n({
2167
2180
  submit: () => k.value?.submit(),
2168
2181
  clearFiles: () => k.value?.clearFiles(),
2169
2182
  uploadRef: k
2170
- }), (t, n) => (S(), o("div", { class: y(["k-upload-wrap", Te.value]) }, [
2171
- u(O(he), _({
2183
+ }), (t, n) => (S(), o("div", { class: y(["k-upload-wrap", Ee.value]) }, [
2184
+ u(O(ge), _({
2172
2185
  ref_key: "uploadRef",
2173
2186
  ref: k
2174
2187
  }, t.$attrs, {
2175
2188
  class: "k-upload__inner",
2176
2189
  "file-list": O(ie),
2177
- action: me.value,
2178
- "list-type": W.value,
2190
+ action: he.value,
2191
+ "list-type": U.value,
2179
2192
  accept: F.value,
2180
- limit: be.value,
2193
+ limit: xe.value,
2181
2194
  disabled: e.disabled,
2182
- "auto-upload": ve.value,
2195
+ "auto-upload": ye.value,
2183
2196
  "http-request": O(B).httpRequest,
2184
- "before-upload": Oe,
2185
- "on-success": ke,
2186
- "on-error": Ae,
2187
- "on-remove": je,
2188
- "on-preview": Me,
2189
- "on-change": Ne,
2190
- "on-exceed": Pe
2197
+ "before-upload": ke,
2198
+ "before-remove": Ae,
2199
+ "on-success": je,
2200
+ "on-error": Me,
2201
+ "on-remove": Ne,
2202
+ "on-preview": Pe,
2203
+ "on-change": Fe,
2204
+ "on-progress": Ie,
2205
+ "on-exceed": J
2191
2206
  }), c({
2192
- tip: N(() => [T(t.$slots, "tip", {}, () => [K.value && (e.templateCode || e.tipType === "tooltip" && J.value) ? (S(), i($t, {
2207
+ tip: N(() => [T(t.$slots, "tip", {}, () => [G.value && (e.templateCode || e.tipType === "tooltip" && q.value) ? (S(), i($t, {
2193
2208
  key: 0,
2194
2209
  "template-code": e.templateCode,
2195
2210
  "template-btn-text": e.templateBtnText,
2196
2211
  "tip-type": e.tipType,
2197
- "tip-text": J.value,
2198
- onDownloadTemplate: Be
2212
+ "tip-text": q.value,
2213
+ onDownloadTemplate: X
2199
2214
  }, null, 8, [
2200
2215
  "template-code",
2201
2216
  "template-btn-text",
2202
2217
  "tip-type",
2203
2218
  "tip-text"
2204
- ])) : a("", !0), Ce.value ? (S(), i(sn, {
2219
+ ])) : a("", !0), we.value ? (S(), i(sn, {
2205
2220
  key: 1,
2206
2221
  "tip-type": e.tipType,
2207
- "tip-text": J.value
2222
+ "tip-text": q.value
2208
2223
  }, null, 8, ["tip-type", "tip-text"])) : a("", !0)], !0)]),
2209
2224
  _: 2
2210
- }, [Se.value ? {
2225
+ }, [Ce.value ? {
2211
2226
  name: "default",
2212
- fn: N(() => [_e.value ? (S(), o("div", vn, [
2227
+ fn: N(() => [ve.value ? (S(), o("div", vn, [
2213
2228
  T(t.$slots, "buttonBefore", {}, void 0, !0),
2214
- T(t.$slots, "content", {}, () => [u(q, {
2229
+ T(t.$slots, "content", {}, () => [u(K, {
2215
2230
  type: "primary",
2216
- disabled: xe.value
2231
+ disabled: Se.value
2217
2232
  }, {
2218
2233
  default: N(() => [l(D(e.btnText), 1)]),
2219
2234
  _: 1
@@ -2222,8 +2237,8 @@ var vn = {
2222
2237
  "template-code": e.templateCode,
2223
2238
  "template-btn-text": e.templateBtnText,
2224
2239
  "tip-type": e.tipType,
2225
- "tip-text": we.value,
2226
- onDownloadTemplate: Be
2240
+ "tip-text": Te.value,
2241
+ onDownloadTemplate: X
2227
2242
  }, null, 8, [
2228
2243
  "template-code",
2229
2244
  "template-btn-text",
@@ -2232,24 +2247,24 @@ var vn = {
2232
2247
  ]),
2233
2248
  T(t.$slots, "buttonAfter", {}, void 0, !0)
2234
2249
  ])) : T(t.$slots, "content", {}, () => [s("div", yn, [u(O(R), { class: "k-upload__plus" }, {
2235
- default: N(() => [u(O(ye))]),
2250
+ default: N(() => [u(O(be))]),
2236
2251
  _: 1
2237
- }), e.tipType === "text" && J.value ? (S(), o("span", {
2252
+ }), e.tipType === "text" && q.value ? (S(), o("span", {
2238
2253
  key: 0,
2239
2254
  class: "picture-card-tips",
2240
- innerHTML: J.value
2255
+ innerHTML: q.value
2241
2256
  }, null, 8, bn)) : a("", !0)])], !0, 1)]),
2242
2257
  key: "0"
2243
- } : void 0, ge.value ? {
2258
+ } : void 0, _e.value ? {
2244
2259
  name: "file",
2245
2260
  fn: N(({ file: n }) => [T(t.$slots, "file", { file: n }, () => [u(Xt, {
2246
2261
  file: n,
2247
2262
  "list-type": P.value,
2248
2263
  disabled: e.disabled,
2249
- onZoom: Fe,
2264
+ onZoom: Le,
2250
2265
  onDownload: Y,
2251
- onRemove: Ie,
2252
- onPlay: X
2266
+ onRemove: Re,
2267
+ onPlay: ze
2253
2268
  }, c({ _: 2 }, [t.$slots.preview ? {
2254
2269
  name: "preview",
2255
2270
  fn: N((e) => [T(t.$slots, "preview", b(p(e)), void 0, !0)]),
@@ -2275,24 +2290,24 @@ var vn = {
2275
2290
  ref_key: "cutterRef",
2276
2291
  ref: A,
2277
2292
  option: e.cutterOption,
2278
- onCut: Le
2293
+ onCut: Be
2279
2294
  }, null, 8, ["option"])) : a("", !0),
2280
- O(H) ? (S(), i(O(oe), {
2295
+ O(se) ? (S(), i(O(oe), {
2281
2296
  key: 1,
2282
- "url-list": O(se),
2283
- "initial-index": O(ce),
2297
+ "url-list": O(ce),
2298
+ "initial-index": O(le),
2284
2299
  teleported: "",
2285
- onClose: O(ue)
2300
+ onClose: O(de)
2286
2301
  }, null, 8, [
2287
2302
  "url-list",
2288
2303
  "initial-index",
2289
2304
  "onClose"
2290
2305
  ])) : a("", !0),
2291
2306
  u(rn, {
2292
- visible: O(U),
2293
- "onUpdate:visible": n[0] ||= (e) => h(U) ? U.value = e : null,
2294
- url: O(de),
2295
- type: O(fe)
2307
+ visible: O(H),
2308
+ "onUpdate:visible": n[0] ||= (e) => h(H) ? H.value = e : null,
2309
+ url: O(fe),
2310
+ type: O(pe)
2296
2311
  }, null, 8, [
2297
2312
  "visible",
2298
2313
  "url",
@@ -2300,7 +2315,7 @@ var vn = {
2300
2315
  ])
2301
2316
  ], 2));
2302
2317
  }
2303
- }), [["__scopeId", "data-v-57e36a64"]]), Sn = /* @__PURE__ */ f({
2318
+ }), [["__scopeId", "data-v-69cd76c2"]]), Sn = /* @__PURE__ */ f({
2304
2319
  name: "KFormUpload",
2305
2320
  inheritAttrs: !1,
2306
2321
  __name: "Upload",
@@ -2373,7 +2388,7 @@ var vn = {
2373
2388
  InputMixInput: st,
2374
2389
  InputMixSelect: mt,
2375
2390
  RadioInput: Ot,
2376
- Complex: d(() => import("./Complex-CyaAEB_v.js")),
2391
+ Complex: d(() => import("./Complex-L-vj_4ya.js")),
2377
2392
  ScrollSelect: At,
2378
2393
  Upload: Sn,
2379
2394
  Tag: Pt,
@@ -2387,4 +2402,4 @@ function En(e) {
2387
2402
  Object.assign(wn, e);
2388
2403
  }
2389
2404
  //#endregion
2390
- export { q as _, Ut as a, Q as c, Ne as d, Me as f, De as g, ke as h, _n as i, et as l, Ae as m, Tn as n, St as o, je as p, xn as r, lt as s, En as t, Xe as u };
2405
+ export { K as _, Ut as a, Q as c, Pe as d, Ne as f, Oe as g, Ae as h, _n as i, et as l, je as m, Tn as n, St as o, Me as p, xn as r, lt as s, En as t, Xe as u };
@@ -52,4 +52,5 @@ export declare const KColorPicker: import('vue').DefineComponent<{}, () => impor
52
52
  }>, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
53
53
  export { updateUploadConfig, getUploadConfig } from '../config/uploadConfig';
54
54
  export type { KUploadFileItem, UploadConfig } from '../config/uploadConfig';
55
+ export type { KUploadBeforeRemove, KUploadBeforeUpload, KUploadCutterOption, KUploadListType, KUploadOnChange, KUploadOnError, KUploadOnExceed, KUploadOnPreview, KUploadOnProgress, KUploadOnRemove, KUploadOnSuccess, KUploadProps, KUploadTipType } from './k-upload/types';
55
56
  export { createUploadFileItem, hasUploadSubmitFields, toUploadFiles, toUploadSubmitFields, type CreateUploadFileItemOptions, type ToUploadFilesOptions, type ToUploadSubmitFieldsOptions, type UploadSubmitFields } from './k-upload/utils/uploadFileValue';
@@ -1,4 +1,4 @@
1
- import { UploadFile, UploadInstance, UploadUserFile } from 'element-plus';
1
+ import { UploadFile, UploadInstance, UploadProgressEvent, UploadUserFile } from 'element-plus';
2
2
  import { KUploadFileItem } from '../../config/uploadConfig';
3
3
  import { KUploadListType, KUploadProps } from './types';
4
4
  declare var __VLS_10: {}, __VLS_12: {}, __VLS_27: {}, __VLS_29: {}, __VLS_43: {
@@ -26,6 +26,7 @@ declare const __VLS_base: import('vue').DefineComponent<KUploadProps, {
26
26
  clearFiles: () => void | undefined;
27
27
  uploadRef: import('vue').Ref<UploadInstance | undefined, UploadInstance | undefined>;
28
28
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
29
+ progress: (evt: UploadProgressEvent, file: UploadFile) => any;
29
30
  change: (file: UploadFile) => any;
30
31
  error: (error: Error, file: UploadFile) => any;
31
32
  success: (response: Record<string, unknown>, file: KUploadFileItem) => any;
@@ -34,6 +35,7 @@ declare const __VLS_base: import('vue').DefineComponent<KUploadProps, {
34
35
  preview: (file: KUploadFileItem) => any;
35
36
  exceed: (files: File[], uploadFiles: UploadUserFile[]) => any;
36
37
  }, string, import('vue').PublicProps, Readonly<KUploadProps> & Readonly<{
38
+ onProgress?: ((evt: UploadProgressEvent, file: UploadFile) => any) | undefined;
37
39
  onChange?: ((file: UploadFile) => any) | undefined;
38
40
  onError?: ((error: Error, file: UploadFile) => any) | undefined;
39
41
  onSuccess?: ((response: Record<string, unknown>, file: KUploadFileItem) => any) | undefined;
@@ -1,44 +1,242 @@
1
+ import { UploadFile, UploadFiles, UploadProgressEvent, UploadRawFile, UploadUserFile } from 'element-plus';
1
2
  import { KUploadFileItem } from '../../config/uploadConfig';
2
3
  /** KUpload 支持的列表展示类型(对齐 legacy listType) */
3
4
  export type KUploadListType = 'text' | 'picture' | 'picture-card' | 'video' | 'audio' | 'lottie' | 'file';
4
5
  /** 提示展示形式 */
5
6
  export type KUploadTipType = 'tooltip' | 'text';
7
+ /**
8
+ * 上传前钩子(对齐 ElUpload `before-upload`)。
9
+ *
10
+ * @param rawFile - 用户选中的原始文件
11
+ * @returns `false` 拦截上传;返回 `File`/`Blob` 则替换实际上传文件(常用于压缩);其余视为放行
12
+ */
13
+ export type KUploadBeforeUpload = (rawFile: UploadRawFile) => boolean | void | File | Blob | Promise<boolean | void | File | Blob>;
14
+ /**
15
+ * 删除前钩子(对齐 ElUpload `before-remove`)。
16
+ *
17
+ * @param uploadFile - 即将删除的文件项
18
+ * @param uploadFiles - 当前文件列表
19
+ * @returns `false` 取消删除;`true` 或 void 继续删除
20
+ */
21
+ export type KUploadBeforeRemove = (uploadFile: UploadFile, uploadFiles: UploadFiles) => boolean | void | Promise<boolean | void>;
22
+ /**
23
+ * 文件状态变化钩子(对齐 ElUpload `on-change`)。
24
+ * 组件同时会 `emit('change', uploadFile)`。
25
+ *
26
+ * @param uploadFile - 变化的文件项
27
+ * @param uploadFiles - 当前文件列表
28
+ */
29
+ export type KUploadOnChange = (uploadFile: UploadFile, uploadFiles: UploadUserFile[]) => void;
30
+ /**
31
+ * 上传成功钩子(对齐 ElUpload `on-success`)。
32
+ * 组件同时会 `emit('success', response, item)`(`item` 为规范化后的 {@link KUploadFileItem})。
33
+ *
34
+ * @param response - 上传接口原始响应
35
+ * @param uploadFile - Element Plus 文件项
36
+ * @param uploadFiles - 当前文件列表
37
+ */
38
+ export type KUploadOnSuccess = (response: unknown, uploadFile: UploadFile, uploadFiles: UploadUserFile[]) => void;
39
+ /**
40
+ * 上传失败钩子(对齐 ElUpload `on-error`)。
41
+ * 组件同时会 `emit('error', error, uploadFile)`。
42
+ *
43
+ * @param error - 错误对象
44
+ * @param uploadFile - 失败的文件项
45
+ * @param uploadFiles - 当前文件列表
46
+ */
47
+ export type KUploadOnError = (error: Error, uploadFile: UploadFile, uploadFiles: UploadUserFile[]) => void;
48
+ /**
49
+ * 删除完成钩子(对齐 ElUpload `on-remove`)。
50
+ * 组件同时会 `emit('remove', item)`(仅业务列表中存在的项)。
51
+ *
52
+ * @param uploadFile - 被删除的文件项
53
+ * @param uploadFiles - 删除后的文件列表
54
+ */
55
+ export type KUploadOnRemove = (uploadFile: UploadFile, uploadFiles: UploadUserFile[]) => void;
56
+ /**
57
+ * 点击已上传文件钩子(对齐 ElUpload `on-preview`)。
58
+ * 组件同时会 `emit('preview', item)`,并默认预览图片或下载。
59
+ *
60
+ * @param uploadFile - 被点击的文件项
61
+ */
62
+ export type KUploadOnPreview = (uploadFile: UploadFile) => void;
63
+ /**
64
+ * 超出数量限制钩子(对齐 ElUpload `on-exceed`)。
65
+ * 组件同时会 `emit('exceed', files, uploadFiles)`。
66
+ *
67
+ * @param files - 本次选中的超出文件
68
+ * @param uploadFiles - 当前已有文件列表
69
+ */
70
+ export type KUploadOnExceed = (files: File[], uploadFiles: UploadUserFile[]) => void;
71
+ /**
72
+ * 上传进度钩子(对齐 ElUpload `on-progress`)。
73
+ * 组件同时会 `emit('progress', ...)`,模板侧优先用 `@progress`。
74
+ *
75
+ * @param evt - 进度事件(含 `percent`)
76
+ * @param uploadFile - 当前上传中的文件
77
+ * @param uploadFiles - 当前文件列表
78
+ */
79
+ export type KUploadOnProgress = (evt: UploadProgressEvent, uploadFile: UploadFile, uploadFiles: UploadUserFile[]) => void;
6
80
  /** 图片裁剪配置(透传 vue-img-cutter,仅列出常用项) */
7
81
  export interface KUploadCutterOption {
8
- /** 裁剪宽度 */
82
+ /** 裁剪框宽度(px) */
9
83
  cutWidth?: number;
10
- /** 裁剪高度 */
84
+ /** 裁剪框高度(px) */
11
85
  cutHeight?: number;
12
- /** 是否可调整裁剪框大小 */
86
+ /** 是否允许拖拽调整裁剪框大小 */
13
87
  sizeChange?: boolean;
14
- /** 弹窗标题 */
88
+ /** 裁剪弹窗标题 */
15
89
  modalTitle?: string;
16
90
  /** 其余 vue-img-cutter 属性 */
17
91
  [key: string]: unknown;
18
92
  }
93
+ /**
94
+ * KUpload 组件 props。
95
+ *
96
+ * 生命周期钩子分两类:
97
+ * - **可拦截**:`beforeUpload` / `beforeRemove`(可返回 false 或替换文件)
98
+ * - **仅通知**:`onChange` / `onSuccess` / `onError` / `onRemove` / `onPreview` / `onProgress` / `onExceed`
99
+ * (与同名 `emit` 并行触发,便于 KForm `componentProps` 传入回调)
100
+ */
19
101
  export interface KUploadProps {
102
+ /**
103
+ * 已上传文件列表(受控)。
104
+ * @default []
105
+ */
20
106
  modelValue?: KUploadFileItem[];
107
+ /**
108
+ * 列表展示类型。
109
+ * @default 'picture'
110
+ */
21
111
  listType?: KUploadListType;
112
+ /**
113
+ * 自定义上传地址;空则按 `listType` 走全局 UploadConfig 默认图床/文件地址。
114
+ * @default ''
115
+ */
22
116
  action?: string;
117
+ /**
118
+ * 允许的文件后缀,逗号分隔(如 `.png,.jpg`);空则按 `listType` 使用内置字典。
119
+ * @default ''
120
+ */
23
121
  accept?: string;
122
+ /**
123
+ * 最大上传数量;`1` 时允许替换(不向 ElUpload 传 limit)。
124
+ */
24
125
  limit?: number;
126
+ /**
127
+ * 单文件大小上限(MB)。
128
+ * @default 2
129
+ */
25
130
  maxSize?: number;
131
+ /**
132
+ * 是否禁用(禁用时隐藏触发器,仅展示已上传列表)。
133
+ * @default false
134
+ */
26
135
  disabled?: boolean;
136
+ /**
137
+ * 上传按钮文案(非 picture-card / lottie 触发器)。
138
+ * @default '点击上传'
139
+ */
27
140
  btnText?: string;
141
+ /**
142
+ * 模板编码,用于模板下载与上传附加字段 `type_code`。
143
+ * @default ''
144
+ */
28
145
  templateCode?: string;
29
- /** 模板下载域:`app` 业务应用(默认),`base` cms-base */
146
+ /**
147
+ * 模板下载域:`app` 业务应用(默认),`base` cms-base。
148
+ * @default 'app'
149
+ */
30
150
  templateDomain?: 'base' | 'app';
151
+ /**
152
+ * 模板下载根路径;空则读全局 UploadConfig。
153
+ * @default ''
154
+ */
31
155
  templateDownloadUrl?: string;
156
+ /**
157
+ * 模板下载按钮文案。
158
+ * @default '模版下载'
159
+ */
32
160
  templateBtnText?: string;
161
+ /**
162
+ * 提示展示形式:`text` 下方文案,`tooltip` 问号气泡。
163
+ * @default 'text'
164
+ */
33
165
  tipType?: KUploadTipType;
166
+ /**
167
+ * 自定义提示文案;空则按 accept/maxSize 自动生成。
168
+ * @default ''
169
+ */
34
170
  fileTips?: string;
171
+ /**
172
+ * 上传成功后是否弹出成功 Toast。
173
+ * @default true
174
+ */
35
175
  showSuccMessage?: boolean;
176
+ /**
177
+ * 是否选完即传;开启 `openCutter` 时强制为 false。
178
+ * @default true
179
+ */
36
180
  autoUpload?: boolean;
37
- /** 开启图片前置裁剪(自动关闭 autoUpload) */
181
+ /**
182
+ * 开启图片前置裁剪(自动关闭 `autoUpload`)。
183
+ * @default false
184
+ */
38
185
  openCutter?: boolean;
186
+ /**
187
+ * 裁剪弹窗配置(透传 vue-img-cutter)。
188
+ * @default {}
189
+ */
39
190
  cutterOption?: KUploadCutterOption;
191
+ /**
192
+ * 上传前钩子:内置后缀/大小校验通过后调用。
193
+ * 返回 `File`/`Blob` 可替换上传文件(如 compressorjs 压缩结果)。
194
+ * @see {@link KUploadBeforeUpload}
195
+ */
196
+ beforeUpload?: KUploadBeforeUpload;
197
+ /**
198
+ * 删除前钩子:返回 `false` 可取消删除。
199
+ * @see {@link KUploadBeforeRemove}
200
+ */
201
+ beforeRemove?: KUploadBeforeRemove;
202
+ /**
203
+ * 文件状态变化(ready / uploading / success / fail)。
204
+ * @see {@link KUploadOnChange}
205
+ */
206
+ onChange?: KUploadOnChange;
207
+ /**
208
+ * 上传成功(在写入 `modelValue`、成功 Toast 之后)。
209
+ * @see {@link KUploadOnSuccess}
210
+ */
211
+ onSuccess?: KUploadOnSuccess;
212
+ /**
213
+ * 上传失败(在错误 Toast、从列表移除之后)。
214
+ * @see {@link KUploadOnError}
215
+ */
216
+ onError?: KUploadOnError;
217
+ /**
218
+ * 删除完成(校验拦截产生的伪删除不会触发)。
219
+ * @see {@link KUploadOnRemove}
220
+ */
221
+ onRemove?: KUploadOnRemove;
222
+ /**
223
+ * 点击已上传文件(在默认预览/下载之前触发,可用于覆盖默认行为时先感知)。
224
+ * @see {@link KUploadOnPreview}
225
+ */
226
+ onPreview?: KUploadOnPreview;
227
+ /**
228
+ * 上传进度。
229
+ * @see {@link KUploadOnProgress}
230
+ */
231
+ onProgress?: KUploadOnProgress;
232
+ /**
233
+ * 选中文件数超出 `limit`。
234
+ * @see {@link KUploadOnExceed}
235
+ */
236
+ onExceed?: KUploadOnExceed;
40
237
  }
41
238
  /** #file / #preview 等作用域插槽参数 */
42
239
  export interface KUploadFileSlotProps {
240
+ /** 当前文件项 */
43
241
  file: KUploadFileItem;
44
242
  }
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { _ as e, a as t, c as n, d as r, f as i, g as a, h as o, i as s, l as c, m as l, n as u, o as d, p as f, r as p, s as m, t as h, u as g } from "./chunks/componentRegistry-6at2AsFD.js";
1
+ import { _ as e, a as t, c as n, d as r, f as i, g as a, h as o, i as s, l as c, m as l, n as u, o as d, p as f, r as p, s as m, t as h, u as g } from "./chunks/componentRegistry-D5JgphAl.js";
2
2
  import { t as _ } from "./chunks/_plugin-vue_export-helper-B3ysoDQm.js";
3
3
  import { a as v, d as y, i as ee, l as te, n as b, r as ne, u as re } from "./chunks/editorValue-DSKvW8ty.js";
4
4
  import { Fragment as x, Transition as S, computed as C, createBlock as w, createCommentVNode as T, createElementBlock as E, createElementVNode as D, createSlots as O, createTextVNode as k, createVNode as A, defineComponent as j, guardReactiveProps as ie, h as M, inject as ae, mergeDefaults as oe, mergeProps as N, nextTick as P, normalizeClass as F, normalizeProps as I, normalizeStyle as se, onBeforeUnmount as ce, onMounted as le, openBlock as L, provide as ue, reactive as de, ref as R, renderList as z, renderSlot as B, resolveComponent as fe, resolveDirective as pe, resolveDynamicComponent as me, shallowRef as he, toDisplayString as V, toRef as H, toValue as U, unref as W, useAttrs as ge, useSlots as G, useTemplateRef as _e, watch as K, withCtx as q, withDirectives as ve, withModifiers as ye } from "vue";
@@ -463,7 +463,9 @@ var it = /* @__PURE__ */ j({
463
463
  "k-form--grid-layout": !a.autoLayout && !a.inline
464
464
  })), g = C(() => ({
465
465
  "--k-form-cols": String(a.colLength),
466
- "--k-form-label-width": m.value
466
+ "--k-form-label-width": m.value,
467
+ "--k-form-grid-min-col": "calc(var(--k-form-label-width) + var(--k-form-control-max-width))",
468
+ "--k-form-min-width": "calc(var(--k-form-grid-min-col) + var(--k-form-padding-x) * 2)"
467
469
  })), _ = C(() => a.modelValue !== void 0), v = et({
468
470
  formConfigs: H(a, "formConfigs"),
469
471
  data: H(a, "data"),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kayak-sj/design",
3
- "version": "1.0.55",
3
+ "version": "1.0.57",
4
4
  "type": "module",
5
5
  "description": "PC 组件库(Vue3 + Element Plus,对应旧 @kayak/kayak-design-vue2)",
6
6
  "license": "ISC",