@kayak-sj/design 1.0.1 → 1.0.2
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/assets/{components-CgiuwHwW.css → components-DK7g2-zP.css} +1 -1
- package/dist/assets/icon-base-2-CcPa4bmO.png +0 -0
- package/dist/assets/icon-base-pYrXWQZO.png +0 -0
- package/dist/assets/icon-notice-2-JVyxpYo9.png +0 -0
- package/dist/assets/icon-notice-DNvEYor3.png +0 -0
- package/dist/assets/icon-price-2-DMmEoFbh.png +0 -0
- package/dist/assets/icon-price-4iIa0b5D.png +0 -0
- package/dist/assets/icon-restrict-2-BjWtoOXX.png +0 -0
- package/dist/assets/icon-restrict-BWJ7LA9s.png +0 -0
- package/dist/assets/icon-setup-2-BO6uKRX4.png +0 -0
- package/dist/assets/icon-setup-DXpIP63L.png +0 -0
- package/dist/chunks/{components-Cj9QZ2w0.js → components-CYgOyNT1.js} +418 -405
- package/dist/components/index.d.ts +0 -1
- package/dist/components/index.js +1 -1
- package/dist/components/k-button/KButton.d.ts +0 -1
- package/dist/components/k-card/KCard.d.ts +0 -1
- package/dist/components/k-card/index.d.ts +0 -1
- package/dist/components/k-dialog/KDialog.d.ts +0 -1
- package/dist/components/k-dialog/KDialogHeader.d.ts +0 -1
- package/dist/components/k-dialog/index.d.ts +0 -1
- package/dist/components/k-dialog/types.d.ts +0 -1
- package/dist/components/k-echarts/KEcharts.d.ts +0 -1
- package/dist/components/k-echarts/composables/useKEcharts.d.ts +0 -1
- package/dist/components/k-echarts/constants/echartEvents.d.ts +0 -1
- package/dist/components/k-echarts/index.d.ts +0 -1
- package/dist/components/k-echarts/map/registerMaps.d.ts +0 -1
- package/dist/components/k-echarts/themes/customed.d.ts +0 -1
- package/dist/components/k-echarts/themes/registerThemes.d.ts +0 -1
- package/dist/components/k-echarts/types.d.ts +0 -1
- package/dist/components/k-echarts/utils/buildChartOptions.d.ts +0 -1
- package/dist/components/k-echarts/utils/createToggleFeature.d.ts +0 -1
- package/dist/components/k-editor/KEditor.d.ts +0 -1
- package/dist/components/k-editor/composables/useEditorImageUpload.d.ts +0 -1
- package/dist/components/k-editor/composables/useKEditor.d.ts +0 -1
- package/dist/components/k-editor/composables/useKEditorConfig.d.ts +0 -1
- package/dist/components/k-editor/index.d.ts +0 -1
- package/dist/components/k-editor/types.d.ts +0 -1
- package/dist/components/k-editor/utils/editorValue.d.ts +0 -1
- package/dist/components/k-editor/utils/registerPreviewMenu.d.ts +0 -1
- package/dist/components/k-editor/utils/sanitizePasteHtml.d.ts +0 -1
- package/dist/components/k-form/KForm.d.ts +0 -1
- package/dist/components/k-form/KFormField.d.ts +0 -1
- package/dist/components/k-form/composables/useFormSchema.d.ts +0 -1
- package/dist/components/k-form/composables/useKFormFields.d.ts +0 -1
- package/dist/components/k-form/composables/useKFormModel.d.ts +0 -1
- package/dist/components/k-form/composables/useKFormTemplateRef.d.ts +0 -1
- package/dist/components/k-form/constants.d.ts +0 -1
- package/dist/components/k-form/formComponent/Cascader.d.ts +0 -1
- package/dist/components/k-form/formComponent/CheckBox.d.ts +0 -1
- package/dist/components/k-form/formComponent/Complex.d.ts +0 -1
- package/dist/components/k-form/formComponent/DatePicker.d.ts +0 -1
- package/dist/components/k-form/formComponent/Editor.d.ts +0 -1
- package/dist/components/k-form/formComponent/Fallback.d.ts +0 -1
- package/dist/components/k-form/formComponent/Input.d.ts +0 -1
- package/dist/components/k-form/formComponent/InputMixInput.d.ts +0 -1
- package/dist/components/k-form/formComponent/InputMixSelect.d.ts +0 -1
- package/dist/components/k-form/formComponent/InputNumber.d.ts +0 -1
- package/dist/components/k-form/formComponent/Radio.d.ts +0 -1
- package/dist/components/k-form/formComponent/RadioInput.d.ts +0 -1
- package/dist/components/k-form/formComponent/ScrollSelect.d.ts +0 -1
- package/dist/components/k-form/formComponent/Select.d.ts +0 -1
- package/dist/components/k-form/formComponent/SelectMultiple.d.ts +0 -1
- package/dist/components/k-form/formComponent/Tag.d.ts +0 -1
- package/dist/components/k-form/formComponent/Text.d.ts +0 -1
- package/dist/components/k-form/formComponent/TimePicker.d.ts +0 -1
- package/dist/components/k-form/formComponent/TreeSelect.d.ts +0 -1
- package/dist/components/k-form/formComponent/Upload.d.ts +0 -1
- package/dist/components/k-form/formComponent/componentRegistry.d.ts +0 -1
- package/dist/components/k-form/formComponent/index.d.ts +0 -1
- package/dist/components/k-form/formComponent/types.d.ts +0 -1
- package/dist/components/k-form/index.d.ts +0 -1
- package/dist/components/k-form/types.d.ts +0 -1
- package/dist/components/k-form/utils/fieldValue.d.ts +0 -1
- package/dist/components/k-form/utils/formRules.d.ts +0 -1
- package/dist/components/k-form/utils/resolveFormFieldComponent.d.ts +0 -1
- package/dist/components/k-handle-page/KHandlePage.d.ts +0 -1
- package/dist/components/k-handle-page/index.d.ts +0 -1
- package/dist/components/k-handle-page/useHandlePageInit.d.ts +0 -1
- package/dist/components/k-icon/KIcon.d.ts +0 -1
- package/dist/components/k-icon/index.d.ts +0 -1
- package/dist/components/k-icon/resolveLucideIcon.d.ts +0 -1
- package/dist/components/k-link-button/KLinkButton.d.ts +0 -1
- package/dist/components/k-link-button/index.d.ts +0 -1
- package/dist/components/k-link-button/types.d.ts +0 -1
- package/dist/components/k-long-page/KLongPage.d.ts +0 -1
- package/dist/components/k-long-page/KLongPagePanel.d.ts +0 -1
- package/dist/components/k-long-page/composables/useLongPageNavDrag.d.ts +0 -1
- package/dist/components/k-long-page/index.d.ts +0 -1
- package/dist/components/k-long-page/navConfigs.d.ts +0 -1
- package/dist/components/k-long-page/types.d.ts +0 -1
- package/dist/components/k-pagination/KPagination.d.ts +0 -1
- package/dist/components/k-pagination/index.d.ts +0 -1
- package/dist/components/k-panel/KPanel.d.ts +0 -1
- package/dist/components/k-panel/index.d.ts +0 -1
- package/dist/components/k-panel-query/KPanelQuery.d.ts +0 -1
- package/dist/components/k-panel-query/KPanelQueryActions.d.ts +0 -1
- package/dist/components/k-panel-query/KPanelQueryForm.d.ts +0 -1
- package/dist/components/k-panel-query/KPanelQueryItem.d.ts +0 -1
- package/dist/components/k-panel-query/index.d.ts +0 -1
- package/dist/components/k-panel-query/types.d.ts +0 -1
- package/dist/components/k-table/KTable.d.ts +1 -1
- package/dist/components/k-table/KTableColumn.d.ts +0 -1
- package/dist/components/k-table/KTableColumnSelector.d.ts +0 -1
- package/dist/components/k-table/KTableToolbar.d.ts +0 -1
- package/dist/components/k-table/composables/useColumnDisplay.d.ts +0 -1
- package/dist/components/k-table/composables/useKTable.d.ts +18 -2
- package/dist/components/k-table/composables/useKTableCrossPageSelection.d.ts +0 -1
- package/dist/components/k-table/composables/useKTableTemplateRef.d.ts +0 -1
- package/dist/components/k-table/composables/useTableColumns.d.ts +0 -1
- package/dist/components/k-table/composables/useTableData.d.ts +2 -3
- package/dist/components/k-table/composables/useTablePagination.d.ts +0 -1
- package/dist/components/k-table/composables/useTableRadio.d.ts +0 -1
- package/dist/components/k-table/composables/useTableRowSort.d.ts +0 -1
- package/dist/components/k-table/composables/useTableTreeLoad.d.ts +0 -1
- package/dist/components/k-table/dictOptions.d.ts +0 -1
- package/dist/components/k-table/index.d.ts +1 -2
- package/dist/components/k-table/kTableProps.d.ts +2 -3
- package/dist/components/k-table/report/convertDownloadCol.d.ts +0 -1
- package/dist/components/k-table/report/exportKTableReport.d.ts +0 -1
- package/dist/components/k-table/report/index.d.ts +0 -1
- package/dist/components/k-table/report/mergeQueryConfig.d.ts +0 -1
- package/dist/components/k-table/report/pickExportColumns.d.ts +0 -1
- package/dist/components/k-table/report/types.d.ts +0 -1
- package/dist/components/k-table/report/useExportKTableReport.d.ts +0 -1
- package/dist/components/k-table/types.d.ts +2 -3
- package/dist/components/k-table/utils/columnIdentity.d.ts +0 -1
- package/dist/components/k-table/utils/formatCellValue.d.ts +0 -1
- package/dist/components/k-table/utils/rowKey.d.ts +0 -1
- package/dist/components/k-upload/KUpload.d.ts +0 -1
- package/dist/components/k-upload/components/ImageCutter.d.ts +0 -1
- package/dist/components/k-upload/components/UploadFileItem.d.ts +0 -1
- package/dist/components/k-upload/components/UploadInlineActions.d.ts +0 -1
- package/dist/components/k-upload/components/UploadMediaDialog.d.ts +0 -1
- package/dist/components/k-upload/components/UploadTipArea.d.ts +0 -1
- package/dist/components/k-upload/composables/useImagePreview.d.ts +0 -1
- package/dist/components/k-upload/composables/useMediaPreview.d.ts +0 -1
- package/dist/components/k-upload/composables/useUploadFileList.d.ts +0 -1
- package/dist/components/k-upload/composables/useUploadRequest.d.ts +0 -1
- package/dist/components/k-upload/composables/useUploadValidation.d.ts +0 -1
- package/dist/components/k-upload/resolveUploadAction.d.ts +0 -1
- package/dist/components/k-upload/types.d.ts +0 -1
- package/dist/components/k-upload/utils/uploadFileValue.d.ts +0 -1
- package/dist/config/uploadConfig.d.ts +0 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.js +1 -1
- package/dist/theme/index.d.ts +0 -1
- package/dist/utils/createStubComponent.d.ts +0 -1
- package/dist/utils/validators.d.ts +0 -1
- package/package.json +1 -1
- package/dist/components/index.d.ts.map +0 -1
- package/dist/components/k-button/KButton.d.ts.map +0 -1
- package/dist/components/k-card/KCard.d.ts.map +0 -1
- package/dist/components/k-card/index.d.ts.map +0 -1
- package/dist/components/k-dialog/KDialog.d.ts.map +0 -1
- package/dist/components/k-dialog/KDialogHeader.d.ts.map +0 -1
- package/dist/components/k-dialog/index.d.ts.map +0 -1
- package/dist/components/k-dialog/types.d.ts.map +0 -1
- package/dist/components/k-echarts/KEcharts.d.ts.map +0 -1
- package/dist/components/k-echarts/composables/useKEcharts.d.ts.map +0 -1
- package/dist/components/k-echarts/constants/echartEvents.d.ts.map +0 -1
- package/dist/components/k-echarts/index.d.ts.map +0 -1
- package/dist/components/k-echarts/map/registerMaps.d.ts.map +0 -1
- package/dist/components/k-echarts/themes/customed.d.ts.map +0 -1
- package/dist/components/k-echarts/themes/registerThemes.d.ts.map +0 -1
- package/dist/components/k-echarts/types.d.ts.map +0 -1
- package/dist/components/k-echarts/utils/buildChartOptions.d.ts.map +0 -1
- package/dist/components/k-echarts/utils/createToggleFeature.d.ts.map +0 -1
- package/dist/components/k-editor/KEditor.d.ts.map +0 -1
- package/dist/components/k-editor/composables/useEditorImageUpload.d.ts.map +0 -1
- package/dist/components/k-editor/composables/useKEditor.d.ts.map +0 -1
- package/dist/components/k-editor/composables/useKEditorConfig.d.ts.map +0 -1
- package/dist/components/k-editor/index.d.ts.map +0 -1
- package/dist/components/k-editor/types.d.ts.map +0 -1
- package/dist/components/k-editor/utils/editorValue.d.ts.map +0 -1
- package/dist/components/k-editor/utils/registerPreviewMenu.d.ts.map +0 -1
- package/dist/components/k-editor/utils/sanitizePasteHtml.d.ts.map +0 -1
- package/dist/components/k-form/KForm.d.ts.map +0 -1
- package/dist/components/k-form/KFormField.d.ts.map +0 -1
- package/dist/components/k-form/composables/useFormSchema.d.ts.map +0 -1
- package/dist/components/k-form/composables/useKFormFields.d.ts.map +0 -1
- package/dist/components/k-form/composables/useKFormModel.d.ts.map +0 -1
- package/dist/components/k-form/composables/useKFormTemplateRef.d.ts.map +0 -1
- package/dist/components/k-form/constants.d.ts.map +0 -1
- package/dist/components/k-form/formComponent/Cascader.d.ts.map +0 -1
- package/dist/components/k-form/formComponent/CheckBox.d.ts.map +0 -1
- package/dist/components/k-form/formComponent/Complex.d.ts.map +0 -1
- package/dist/components/k-form/formComponent/DatePicker.d.ts.map +0 -1
- package/dist/components/k-form/formComponent/Editor.d.ts.map +0 -1
- package/dist/components/k-form/formComponent/Fallback.d.ts.map +0 -1
- package/dist/components/k-form/formComponent/Input.d.ts.map +0 -1
- package/dist/components/k-form/formComponent/InputMixInput.d.ts.map +0 -1
- package/dist/components/k-form/formComponent/InputMixSelect.d.ts.map +0 -1
- package/dist/components/k-form/formComponent/InputNumber.d.ts.map +0 -1
- package/dist/components/k-form/formComponent/Radio.d.ts.map +0 -1
- package/dist/components/k-form/formComponent/RadioInput.d.ts.map +0 -1
- package/dist/components/k-form/formComponent/ScrollSelect.d.ts.map +0 -1
- package/dist/components/k-form/formComponent/Select.d.ts.map +0 -1
- package/dist/components/k-form/formComponent/SelectMultiple.d.ts.map +0 -1
- package/dist/components/k-form/formComponent/Tag.d.ts.map +0 -1
- package/dist/components/k-form/formComponent/Text.d.ts.map +0 -1
- package/dist/components/k-form/formComponent/TimePicker.d.ts.map +0 -1
- package/dist/components/k-form/formComponent/TreeSelect.d.ts.map +0 -1
- package/dist/components/k-form/formComponent/Upload.d.ts.map +0 -1
- package/dist/components/k-form/formComponent/componentRegistry.d.ts.map +0 -1
- package/dist/components/k-form/formComponent/index.d.ts.map +0 -1
- package/dist/components/k-form/formComponent/types.d.ts.map +0 -1
- package/dist/components/k-form/index.d.ts.map +0 -1
- package/dist/components/k-form/types.d.ts.map +0 -1
- package/dist/components/k-form/utils/fieldValue.d.ts.map +0 -1
- package/dist/components/k-form/utils/formRules.d.ts.map +0 -1
- package/dist/components/k-form/utils/resolveFormFieldComponent.d.ts.map +0 -1
- package/dist/components/k-handle-page/KHandlePage.d.ts.map +0 -1
- package/dist/components/k-handle-page/index.d.ts.map +0 -1
- package/dist/components/k-handle-page/useHandlePageInit.d.ts.map +0 -1
- package/dist/components/k-icon/KIcon.d.ts.map +0 -1
- package/dist/components/k-icon/index.d.ts.map +0 -1
- package/dist/components/k-icon/resolveLucideIcon.d.ts.map +0 -1
- package/dist/components/k-link-button/KLinkButton.d.ts.map +0 -1
- package/dist/components/k-link-button/index.d.ts.map +0 -1
- package/dist/components/k-link-button/types.d.ts.map +0 -1
- package/dist/components/k-long-page/KLongPage.d.ts.map +0 -1
- package/dist/components/k-long-page/KLongPagePanel.d.ts.map +0 -1
- package/dist/components/k-long-page/composables/useLongPageNavDrag.d.ts.map +0 -1
- package/dist/components/k-long-page/index.d.ts.map +0 -1
- package/dist/components/k-long-page/navConfigs.d.ts.map +0 -1
- package/dist/components/k-long-page/types.d.ts.map +0 -1
- package/dist/components/k-pagination/KPagination.d.ts.map +0 -1
- package/dist/components/k-pagination/index.d.ts.map +0 -1
- package/dist/components/k-panel/KPanel.d.ts.map +0 -1
- package/dist/components/k-panel/index.d.ts.map +0 -1
- package/dist/components/k-panel-query/KPanelQuery.d.ts.map +0 -1
- package/dist/components/k-panel-query/KPanelQueryActions.d.ts.map +0 -1
- package/dist/components/k-panel-query/KPanelQueryForm.d.ts.map +0 -1
- package/dist/components/k-panel-query/KPanelQueryItem.d.ts.map +0 -1
- package/dist/components/k-panel-query/index.d.ts.map +0 -1
- package/dist/components/k-panel-query/types.d.ts.map +0 -1
- package/dist/components/k-table/KTable.d.ts.map +0 -1
- package/dist/components/k-table/KTableColumn.d.ts.map +0 -1
- package/dist/components/k-table/KTableColumnSelector.d.ts.map +0 -1
- package/dist/components/k-table/KTableToolbar.d.ts.map +0 -1
- package/dist/components/k-table/composables/useColumnDisplay.d.ts.map +0 -1
- package/dist/components/k-table/composables/useKTable.d.ts.map +0 -1
- package/dist/components/k-table/composables/useKTableCrossPageSelection.d.ts.map +0 -1
- package/dist/components/k-table/composables/useKTableTemplateRef.d.ts.map +0 -1
- package/dist/components/k-table/composables/useTableColumns.d.ts.map +0 -1
- package/dist/components/k-table/composables/useTableData.d.ts.map +0 -1
- package/dist/components/k-table/composables/useTablePagination.d.ts.map +0 -1
- package/dist/components/k-table/composables/useTableRadio.d.ts.map +0 -1
- package/dist/components/k-table/composables/useTableRowSort.d.ts.map +0 -1
- package/dist/components/k-table/composables/useTableTreeLoad.d.ts.map +0 -1
- package/dist/components/k-table/dictOptions.d.ts.map +0 -1
- package/dist/components/k-table/index.d.ts.map +0 -1
- package/dist/components/k-table/kTableProps.d.ts.map +0 -1
- package/dist/components/k-table/report/convertDownloadCol.d.ts.map +0 -1
- package/dist/components/k-table/report/exportKTableReport.d.ts.map +0 -1
- package/dist/components/k-table/report/index.d.ts.map +0 -1
- package/dist/components/k-table/report/mergeQueryConfig.d.ts.map +0 -1
- package/dist/components/k-table/report/pickExportColumns.d.ts.map +0 -1
- package/dist/components/k-table/report/types.d.ts.map +0 -1
- package/dist/components/k-table/report/useExportKTableReport.d.ts.map +0 -1
- package/dist/components/k-table/types.d.ts.map +0 -1
- package/dist/components/k-table/utils/columnIdentity.d.ts.map +0 -1
- package/dist/components/k-table/utils/formatCellValue.d.ts.map +0 -1
- package/dist/components/k-table/utils/rowKey.d.ts.map +0 -1
- package/dist/components/k-upload/KUpload.d.ts.map +0 -1
- package/dist/components/k-upload/components/ImageCutter.d.ts.map +0 -1
- package/dist/components/k-upload/components/UploadFileItem.d.ts.map +0 -1
- package/dist/components/k-upload/components/UploadInlineActions.d.ts.map +0 -1
- package/dist/components/k-upload/components/UploadMediaDialog.d.ts.map +0 -1
- package/dist/components/k-upload/components/UploadTipArea.d.ts.map +0 -1
- package/dist/components/k-upload/composables/useImagePreview.d.ts.map +0 -1
- package/dist/components/k-upload/composables/useMediaPreview.d.ts.map +0 -1
- package/dist/components/k-upload/composables/useUploadFileList.d.ts.map +0 -1
- package/dist/components/k-upload/composables/useUploadRequest.d.ts.map +0 -1
- package/dist/components/k-upload/composables/useUploadValidation.d.ts.map +0 -1
- package/dist/components/k-upload/resolveUploadAction.d.ts.map +0 -1
- package/dist/components/k-upload/types.d.ts.map +0 -1
- package/dist/components/k-upload/utils/uploadFileValue.d.ts.map +0 -1
- package/dist/config/uploadConfig.d.ts.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/theme/index.d.ts.map +0 -1
- package/dist/utils/createStubComponent.d.ts.map +0 -1
- package/dist/utils/validators.d.ts.map +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as e } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
2
2
|
import { a as t, d as n, i as r, l as i, n as a, r as o, u as s } from "./editorValue-DSKvW8ty.js";
|
|
3
|
-
import { Fragment as c, Transition as l, computed as u, createBlock as d, createCommentVNode as f, createElementBlock as p, createElementVNode as m, createSlots as h, createTextVNode as g, createVNode as _, defineAsyncComponent as v, defineComponent as y, guardReactiveProps as b, h as x, inject as S, isRef as ee, mergeDefaults as C, mergeModels as w, mergeProps as T, nextTick as E, normalizeClass as D, normalizeProps as
|
|
3
|
+
import { Fragment as c, Transition as l, computed as u, createBlock as d, createCommentVNode as f, createElementBlock as p, createElementVNode as m, createSlots as h, createTextVNode as g, createVNode as _, defineAsyncComponent as v, defineComponent as y, guardReactiveProps as b, h as x, inject as S, isRef as ee, mergeDefaults as C, mergeModels as w, mergeProps as T, nextTick as E, normalizeClass as D, normalizeProps as te, normalizeStyle as O, onBeforeUnmount as k, onMounted as A, openBlock as j, provide as ne, reactive as M, ref as N, renderList as P, renderSlot as F, resolveComponent as re, resolveDirective as ie, resolveDynamicComponent as ae, shallowRef as oe, toDisplayString as I, toRef as L, toValue as R, unref as z, useAttrs as B, useModel as se, useSlots as V, useTemplateRef as H, vShow as ce, watch as U, withCtx as W, withDirectives as le, withModifiers as ue } from "vue";
|
|
4
4
|
import { ElButton as de, ElCard as fe, ElCascader as pe, ElCheckbox as me, ElCheckboxGroup as he, ElCollapse as ge, ElCollapseItem as _e, ElDatePicker as ve, ElDialog as ye, ElDivider as G, ElForm as be, ElFormItem as xe, ElIcon as Se, ElImageViewer as Ce, ElInput as we, ElInputNumber as Te, ElMessage as Ee, ElOption as De, ElPagination as Oe, ElPopover as ke, ElProgress as Ae, ElRadio as je, ElRadioButton as Me, ElRadioGroup as Ne, ElSelect as Pe, ElTable as Fe, ElTableColumn as K, ElTag as Ie, ElTimePicker as Le, ElTooltip as Re, ElTreeSelect as ze, ElUpload as Be } from "element-plus";
|
|
5
5
|
import q from "dayjs";
|
|
6
6
|
import { cloneDeep as J } from "lodash-es";
|
|
@@ -8,7 +8,7 @@ import { useDebounceFn as Ve, useEventListener as He, useLocalStorage as Ue } fr
|
|
|
8
8
|
import { Delete as We, Download as Ge, Loading as Ke, Plus as qe, VideoPlay as Je, ZoomIn as Ye } from "@element-plus/icons-vue";
|
|
9
9
|
import * as Xe from "lucide-vue-next";
|
|
10
10
|
import Ze from "sortablejs";
|
|
11
|
-
import '../assets/components-
|
|
11
|
+
import '../assets/components-DK7g2-zP.css';//#region \0rolldown/runtime.js
|
|
12
12
|
var Qe = Object.defineProperty, $e = (e, t) => {
|
|
13
13
|
let n = {};
|
|
14
14
|
for (var r in e) Qe(n, r, {
|
|
@@ -64,7 +64,7 @@ var Y = /* @__PURE__ */ y({
|
|
|
64
64
|
name: "KButton",
|
|
65
65
|
__name: "KButton",
|
|
66
66
|
setup(e) {
|
|
67
|
-
return (e, t) => (j(), d(
|
|
67
|
+
return (e, t) => (j(), d(z(de), te(b(e.$attrs)), {
|
|
68
68
|
default: W(() => [F(e.$slots, "default")]),
|
|
69
69
|
_: 3
|
|
70
70
|
}, 16));
|
|
@@ -93,14 +93,14 @@ var Y = /* @__PURE__ */ y({
|
|
|
93
93
|
},
|
|
94
94
|
setup(e) {
|
|
95
95
|
return (t, n) => (j(), p("div", nt, [
|
|
96
|
-
e.icon || t.$slots.icon ? (j(), p("div", rt, [F(t.$slots, "icon", {}, () => [(j(), d(
|
|
96
|
+
e.icon || t.$slots.icon ? (j(), p("div", rt, [F(t.$slots, "icon", {}, () => [(j(), d(ae(e.icon), {
|
|
97
97
|
class: "k-dialog-header__icon",
|
|
98
98
|
size: e.iconSize,
|
|
99
99
|
"stroke-width": 2.2
|
|
100
100
|
}, null, 8, ["size"]))])])) : f("", !0),
|
|
101
101
|
m("div", it, [
|
|
102
|
-
e.title || t.$slots.title ? (j(), p("p", at, [F(t.$slots, "title", {}, () => [g(
|
|
103
|
-
e.description || t.$slots.description ? (j(), p("p", ot, [F(t.$slots, "description", {}, () => [g(
|
|
102
|
+
e.title || t.$slots.title ? (j(), p("p", at, [F(t.$slots, "title", {}, () => [g(I(e.title), 1)])])) : f("", !0),
|
|
103
|
+
e.description || t.$slots.description ? (j(), p("p", ot, [F(t.$slots, "description", {}, () => [g(I(e.description), 1)])])) : f("", !0),
|
|
104
104
|
F(t.$slots, "default")
|
|
105
105
|
]),
|
|
106
106
|
t.$slots.extra ? (j(), p("div", st, [F(t.$slots, "extra")])) : f("", !0)
|
|
@@ -152,7 +152,7 @@ var Y = /* @__PURE__ */ y({
|
|
|
152
152
|
"closed"
|
|
153
153
|
], ["update:visible"]),
|
|
154
154
|
setup(e, { emit: t }) {
|
|
155
|
-
let n = se(e, "visible"), r = e, i = t, a =
|
|
155
|
+
let n = se(e, "visible"), r = e, i = t, a = B(), o = V(), s = u(() => r.variant === "hero"), c = u(() => s.value ? void 0 : r.title), l = u(() => [
|
|
156
156
|
"k-dialog",
|
|
157
157
|
s.value ? "k-dialog--hero" : void 0,
|
|
158
158
|
a.class
|
|
@@ -175,7 +175,7 @@ var Y = /* @__PURE__ */ y({
|
|
|
175
175
|
function ee() {
|
|
176
176
|
i("confirm");
|
|
177
177
|
}
|
|
178
|
-
return (t, r) => (j(), d(
|
|
178
|
+
return (t, r) => (j(), d(z(ye), T({
|
|
179
179
|
modelValue: n.value,
|
|
180
180
|
"onUpdate:modelValue": r[0] ||= (e) => n.value = e,
|
|
181
181
|
class: l.value,
|
|
@@ -189,7 +189,7 @@ var Y = /* @__PURE__ */ y({
|
|
|
189
189
|
title: e.title,
|
|
190
190
|
description: e.description,
|
|
191
191
|
icon: e.icon
|
|
192
|
-
}, h({ _: 2 }, [
|
|
192
|
+
}, h({ _: 2 }, [z(o).icon ? {
|
|
193
193
|
name: "icon",
|
|
194
194
|
fn: W(() => [F(t.$slots, "icon")]),
|
|
195
195
|
key: "0"
|
|
@@ -199,17 +199,17 @@ var Y = /* @__PURE__ */ y({
|
|
|
199
199
|
"icon"
|
|
200
200
|
])])]),
|
|
201
201
|
key: "0"
|
|
202
|
-
} : void 0,
|
|
202
|
+
} : void 0, z(o).footer ? {
|
|
203
203
|
name: "footer",
|
|
204
204
|
fn: W(() => [F(t.$slots, "footer")]),
|
|
205
205
|
key: "1"
|
|
206
|
-
} : !
|
|
206
|
+
} : !z(o).footer && (e.showConfirm !== !1 || e.showCancel !== !1) ? {
|
|
207
207
|
name: "footer",
|
|
208
208
|
fn: W(() => [e.showCancel === !1 ? f("", !0) : (j(), d(Y, {
|
|
209
209
|
key: 0,
|
|
210
210
|
onClick: S
|
|
211
211
|
}, {
|
|
212
|
-
default: W(() => [g(
|
|
212
|
+
default: W(() => [g(I(y.value), 1)]),
|
|
213
213
|
_: 1
|
|
214
214
|
})), e.showConfirm === !1 ? f("", !0) : (j(), d(Y, {
|
|
215
215
|
key: 1,
|
|
@@ -217,7 +217,7 @@ var Y = /* @__PURE__ */ y({
|
|
|
217
217
|
loading: e.confirmLoading,
|
|
218
218
|
onClick: ee
|
|
219
219
|
}, {
|
|
220
|
-
default: W(() => [g(
|
|
220
|
+
default: W(() => [g(I(v.value), 1)]),
|
|
221
221
|
_: 1
|
|
222
222
|
}, 8, ["loading"]))]),
|
|
223
223
|
key: "2"
|
|
@@ -624,7 +624,7 @@ var zt = {
|
|
|
624
624
|
emits: ["update:modelValue"],
|
|
625
625
|
setup(e, { emit: t }) {
|
|
626
626
|
let n = e, r = t, i = u(() => Ft(n.modelValue)), a = u(() => n.cascaderProps ?? n.props), o = u(() => Rt(n.options, n.modelValue, a.value, n.separator ?? " / "));
|
|
627
|
-
return (t, n) => e.readonly ? (j(), p("span", zt,
|
|
627
|
+
return (t, n) => e.readonly ? (j(), p("span", zt, I(o.value), 1)) : (j(), d(z(pe), {
|
|
628
628
|
key: 1,
|
|
629
629
|
"model-value": i.value,
|
|
630
630
|
options: e.options ?? [],
|
|
@@ -684,7 +684,7 @@ var zt = {
|
|
|
684
684
|
function b(e) {
|
|
685
685
|
o.value = e, v(e), a("update:modelValue", e);
|
|
686
686
|
}
|
|
687
|
-
return (t, i) => (j(), p("div", Vt, [e.readonly ? (j(), p("span", Ht,
|
|
687
|
+
return (t, i) => (j(), p("div", Vt, [e.readonly ? (j(), p("span", Ht, I(h.value), 1)) : (j(), p(c, { key: 1 }, [e.showSelectAll ? (j(), d(z(me), {
|
|
688
688
|
key: 0,
|
|
689
689
|
modelValue: s.value,
|
|
690
690
|
"onUpdate:modelValue": i[0] ||= (e) => s.value = e,
|
|
@@ -698,22 +698,22 @@ var zt = {
|
|
|
698
698
|
"modelValue",
|
|
699
699
|
"indeterminate",
|
|
700
700
|
"disabled"
|
|
701
|
-
])) : f("", !0), _(
|
|
701
|
+
])) : f("", !0), _(z(he), {
|
|
702
702
|
"model-value": o.value,
|
|
703
703
|
disabled: e.disabled,
|
|
704
704
|
"onUpdate:modelValue": b
|
|
705
705
|
}, {
|
|
706
|
-
default: W(() => [(j(!0), p(c, null, P(e.options, (e) => (j(), d(
|
|
706
|
+
default: W(() => [(j(!0), p(c, null, P(e.options, (e) => (j(), d(z(Re), {
|
|
707
707
|
key: String(e.value),
|
|
708
708
|
content: n(e),
|
|
709
709
|
disabled: r(e),
|
|
710
710
|
placement: "top-start"
|
|
711
711
|
}, {
|
|
712
|
-
default: W(() => [_(
|
|
713
|
-
value:
|
|
712
|
+
default: W(() => [_(z(me), {
|
|
713
|
+
value: z(Z)(e.value),
|
|
714
714
|
disabled: e.disabled
|
|
715
715
|
}, {
|
|
716
|
-
default: W(() => [g(
|
|
716
|
+
default: W(() => [g(I(e.label), 1)]),
|
|
717
717
|
_: 2
|
|
718
718
|
}, 1032, ["value", "disabled"])]),
|
|
719
719
|
_: 2
|
|
@@ -826,7 +826,7 @@ var zt = {
|
|
|
826
826
|
class: "k-form-date-picker__text",
|
|
827
827
|
innerHTML: e.prepend
|
|
828
828
|
}, null, 8, Wt)) : f("", !0),
|
|
829
|
-
e.readonly ? (j(), p("span", Gt,
|
|
829
|
+
e.readonly ? (j(), p("span", Gt, I(m.value), 1)) : (j(), d(z(ve), {
|
|
830
830
|
key: 1,
|
|
831
831
|
"model-value": o.value,
|
|
832
832
|
type: s.value,
|
|
@@ -865,7 +865,7 @@ var zt = {
|
|
|
865
865
|
},
|
|
866
866
|
setup(e) {
|
|
867
867
|
let t = e, n = u(() => `[${t.componentType ?? "Unknown"}] 待迁移`), r = u(() => Ot(t.modelValue));
|
|
868
|
-
return (e, t) => (j(), d(
|
|
868
|
+
return (e, t) => (j(), d(z(we), {
|
|
869
869
|
"model-value": r.value,
|
|
870
870
|
disabled: "",
|
|
871
871
|
placeholder: n.value
|
|
@@ -924,8 +924,8 @@ var zt = {
|
|
|
924
924
|
key: 0,
|
|
925
925
|
class: D(["k-form-input__side k-form-input__side--left", e.leftClass]),
|
|
926
926
|
onClick: n[0] ||= (...t) => e.leftClick && e.leftClick(...t)
|
|
927
|
-
},
|
|
928
|
-
e.readonly ? (j(), p("div", Xt,
|
|
927
|
+
}, I(e.leftText), 3)) : f("", !0),
|
|
928
|
+
e.readonly ? (j(), p("div", Xt, I(c.value), 1)) : (j(), d(z(we), T({ key: 2 }, t.$attrs, {
|
|
929
929
|
"model-value": i.value,
|
|
930
930
|
autocomplete: "off",
|
|
931
931
|
clearable: s.value,
|
|
@@ -936,11 +936,11 @@ var zt = {
|
|
|
936
936
|
"onUpdate:modelValue": l
|
|
937
937
|
}), h({ _: 2 }, [e.prepend ? {
|
|
938
938
|
name: "prepend",
|
|
939
|
-
fn: W(() => [g(
|
|
939
|
+
fn: W(() => [g(I(e.prepend), 1)]),
|
|
940
940
|
key: "0"
|
|
941
941
|
} : void 0, e.append ? {
|
|
942
942
|
name: "append",
|
|
943
|
-
fn: W(() => [g(
|
|
943
|
+
fn: W(() => [g(I(e.append), 1)]),
|
|
944
944
|
key: "1"
|
|
945
945
|
} : void 0]), 1040, [
|
|
946
946
|
"model-value",
|
|
@@ -954,7 +954,7 @@ var zt = {
|
|
|
954
954
|
key: 3,
|
|
955
955
|
class: D(["k-form-input__side k-form-input__side--right", e.rightClass]),
|
|
956
956
|
onClick: n[1] ||= (...t) => e.rightClick && e.rightClick(...t)
|
|
957
|
-
},
|
|
957
|
+
}, I(e.rightText), 3)) : f("", !0)
|
|
958
958
|
], 8, Yt));
|
|
959
959
|
}
|
|
960
960
|
}), Qt = ["innerHTML"], $t = ["innerHTML"], en = ["innerHTML"], tn = /*#__PURE__*/ e(/* @__PURE__ */ y({
|
|
@@ -1017,7 +1017,7 @@ var zt = {
|
|
|
1017
1017
|
}, null, 8, Qt)) : f("", !0),
|
|
1018
1018
|
m("div", {
|
|
1019
1019
|
class: D(["k-form-input-mix-input__control", { "k-form-input-mix-input__control--affix": c.value }]),
|
|
1020
|
-
style:
|
|
1020
|
+
style: O(e.readonly ? void 0 : d.value)
|
|
1021
1021
|
}, [_(Zt, T({
|
|
1022
1022
|
clearable: e.clearable,
|
|
1023
1023
|
"model-value": i.value[0],
|
|
@@ -1038,7 +1038,7 @@ var zt = {
|
|
|
1038
1038
|
}, null, 8, $t)) : f("", !0),
|
|
1039
1039
|
m("div", {
|
|
1040
1040
|
class: D(["k-form-input-mix-input__control", { "k-form-input-mix-input__control--affix": l.value }]),
|
|
1041
|
-
style:
|
|
1041
|
+
style: O(e.readonly ? void 0 : h.value)
|
|
1042
1042
|
}, [_(Zt, T({
|
|
1043
1043
|
"model-value": i.value[1],
|
|
1044
1044
|
clearable: e.clearable,
|
|
@@ -1103,7 +1103,7 @@ var zt = {
|
|
|
1103
1103
|
function l(e) {
|
|
1104
1104
|
r("update:modelValue", e);
|
|
1105
1105
|
}
|
|
1106
|
-
return (t, n) => (j(), p("div", T({ class: ["k-form-select", { "k-form-select--readonly": e.readonly }] }, t.$attrs), [e.readonly ? (j(), p("span", nn,
|
|
1106
|
+
return (t, n) => (j(), p("div", T({ class: ["k-form-select", { "k-form-select--readonly": e.readonly }] }, t.$attrs), [e.readonly ? (j(), p("span", nn, I(s.value), 1)) : (j(), d(z(Pe), {
|
|
1107
1107
|
key: 1,
|
|
1108
1108
|
"model-value": e.multiple ? a.value : i.value,
|
|
1109
1109
|
placeholder: e.placeholder,
|
|
@@ -1113,7 +1113,7 @@ var zt = {
|
|
|
1113
1113
|
disabled: e.disabled,
|
|
1114
1114
|
"onUpdate:modelValue": l
|
|
1115
1115
|
}, {
|
|
1116
|
-
default: W(() => [(j(!0), p(c, null, P(o.value, (e) => (j(), d(
|
|
1116
|
+
default: W(() => [(j(!0), p(c, null, P(o.value, (e) => (j(), d(z(De), {
|
|
1117
1117
|
key: e.key,
|
|
1118
1118
|
label: e.label,
|
|
1119
1119
|
value: e.value,
|
|
@@ -1209,7 +1209,7 @@ var zt = {
|
|
|
1209
1209
|
};
|
|
1210
1210
|
}
|
|
1211
1211
|
let ee = u(() => y(r.inputProps)), C = u(() => y(r.selectProps)), w = u(() => x(r.selectWidth, "150px", r.selectProps)), E = u(() => x(r.inputWidth, "140px", r.inputProps));
|
|
1212
|
-
function
|
|
1212
|
+
function te(e) {
|
|
1213
1213
|
let { dict: t, options: r = [] } = e;
|
|
1214
1214
|
return t && n?.getGroupOptions ? n.getGroupOptions(t) : r.map((e) => ({
|
|
1215
1215
|
label: String(e.label ?? ""),
|
|
@@ -1217,7 +1217,7 @@ var zt = {
|
|
|
1217
1217
|
disabled: e.disabled
|
|
1218
1218
|
}));
|
|
1219
1219
|
}
|
|
1220
|
-
let
|
|
1220
|
+
let k = u(() => te(r.selectProps));
|
|
1221
1221
|
function A() {
|
|
1222
1222
|
let e = a.value[l.value], t = a.value[d.value];
|
|
1223
1223
|
if (r.integrityCheck) {
|
|
@@ -1236,14 +1236,14 @@ var zt = {
|
|
|
1236
1236
|
deep: !0
|
|
1237
1237
|
}), (t, n) => (j(), p("div", { class: D(["k-form-input-mix-select", { "k-form-input-mix-select--readonly": e.readonly }]) }, [m("div", {
|
|
1238
1238
|
class: "k-form-input-mix-select__row",
|
|
1239
|
-
style:
|
|
1239
|
+
style: O(b.value)
|
|
1240
1240
|
}, [
|
|
1241
|
-
e.leftText ? (j(), p("div", an,
|
|
1241
|
+
e.leftText ? (j(), p("div", an, I(e.leftText), 1)) : f("", !0),
|
|
1242
1242
|
e.inputBefore ? (j(), p(c, { key: 1 }, [
|
|
1243
1243
|
e.inputHide ? f("", !0) : (j(), p("div", {
|
|
1244
1244
|
key: 0,
|
|
1245
1245
|
class: D(["k-form-input-mix-select__control", { "k-form-input-mix-select__control--affix": ee.value }]),
|
|
1246
|
-
style:
|
|
1246
|
+
style: O(E.value)
|
|
1247
1247
|
}, [_(Zt, T({
|
|
1248
1248
|
"model-value": o.value,
|
|
1249
1249
|
readonly: e.readonly,
|
|
@@ -1255,15 +1255,15 @@ var zt = {
|
|
|
1255
1255
|
"disabled",
|
|
1256
1256
|
"placeholder"
|
|
1257
1257
|
])], 6)),
|
|
1258
|
-
e.centerText ? (j(), p("div", on,
|
|
1258
|
+
e.centerText ? (j(), p("div", on, I(e.centerText), 1)) : f("", !0),
|
|
1259
1259
|
m("div", {
|
|
1260
1260
|
class: D(["k-form-input-mix-select__control", { "k-form-input-mix-select__control--affix": C.value }]),
|
|
1261
|
-
style:
|
|
1261
|
+
style: O(w.value)
|
|
1262
1262
|
}, [_(rn, T({
|
|
1263
1263
|
"model-value": s.value,
|
|
1264
1264
|
readonly: e.readonly,
|
|
1265
1265
|
disabled: e.disabled,
|
|
1266
|
-
options:
|
|
1266
|
+
options: k.value,
|
|
1267
1267
|
placeholder: e.selectPlaceholder
|
|
1268
1268
|
}, g.value, { "onUpdate:modelValue": n[1] ||= (e) => ne(e, d.value) }), null, 16, [
|
|
1269
1269
|
"model-value",
|
|
@@ -1275,12 +1275,12 @@ var zt = {
|
|
|
1275
1275
|
], 64)) : (j(), p(c, { key: 2 }, [
|
|
1276
1276
|
m("div", {
|
|
1277
1277
|
class: D(["k-form-input-mix-select__control", { "k-form-input-mix-select__control--affix": C.value }]),
|
|
1278
|
-
style:
|
|
1278
|
+
style: O(w.value)
|
|
1279
1279
|
}, [_(rn, T({
|
|
1280
1280
|
"model-value": s.value,
|
|
1281
1281
|
readonly: e.readonly,
|
|
1282
1282
|
disabled: e.disabled,
|
|
1283
|
-
options:
|
|
1283
|
+
options: k.value,
|
|
1284
1284
|
placeholder: e.selectPlaceholder
|
|
1285
1285
|
}, g.value, { "onUpdate:modelValue": n[2] ||= (e) => ne(e, d.value) }), null, 16, [
|
|
1286
1286
|
"model-value",
|
|
@@ -1289,11 +1289,11 @@ var zt = {
|
|
|
1289
1289
|
"options",
|
|
1290
1290
|
"placeholder"
|
|
1291
1291
|
])], 6),
|
|
1292
|
-
e.centerText ? (j(), p("div", sn,
|
|
1292
|
+
e.centerText ? (j(), p("div", sn, I(e.centerText), 1)) : f("", !0),
|
|
1293
1293
|
e.inputHide ? f("", !0) : (j(), p("div", {
|
|
1294
1294
|
key: 1,
|
|
1295
1295
|
class: D(["k-form-input-mix-select__control", { "k-form-input-mix-select__control--affix": ee.value }]),
|
|
1296
|
-
style:
|
|
1296
|
+
style: O(E.value)
|
|
1297
1297
|
}, [_(Zt, T({
|
|
1298
1298
|
"model-value": o.value,
|
|
1299
1299
|
readonly: e.readonly,
|
|
@@ -1306,7 +1306,7 @@ var zt = {
|
|
|
1306
1306
|
"placeholder"
|
|
1307
1307
|
])], 6))
|
|
1308
1308
|
], 64)),
|
|
1309
|
-
e.rightText && !e.inputHide ? (j(), p("div", cn,
|
|
1309
|
+
e.rightText && !e.inputHide ? (j(), p("div", cn, I(e.rightText), 1)) : f("", !0)
|
|
1310
1310
|
], 4)], 2));
|
|
1311
1311
|
}
|
|
1312
1312
|
}), [["__scopeId", "data-v-1f46ef39"]]), un = { class: "k-form-input-number" }, dn = {
|
|
@@ -1348,8 +1348,8 @@ var zt = {
|
|
|
1348
1348
|
r("update:modelValue", e);
|
|
1349
1349
|
}
|
|
1350
1350
|
return (t, n) => (j(), p("div", un, [
|
|
1351
|
-
e.leftText ? (j(), p("div", dn,
|
|
1352
|
-
e.readonly ? (j(), p("span", fn,
|
|
1351
|
+
e.leftText ? (j(), p("div", dn, I(e.leftText), 1)) : f("", !0),
|
|
1352
|
+
e.readonly ? (j(), p("span", fn, I(z(Q)(i.value)), 1)) : (j(), d(z(Te), {
|
|
1353
1353
|
key: 2,
|
|
1354
1354
|
"model-value": i.value,
|
|
1355
1355
|
min: e.min,
|
|
@@ -1362,7 +1362,7 @@ var zt = {
|
|
|
1362
1362
|
"max",
|
|
1363
1363
|
"disabled"
|
|
1364
1364
|
])),
|
|
1365
|
-
e.rightText ? (j(), p("div", pn,
|
|
1365
|
+
e.rightText ? (j(), p("div", pn, I(e.rightText), 1)) : f("", !0)
|
|
1366
1366
|
]));
|
|
1367
1367
|
}
|
|
1368
1368
|
}), [["__scopeId", "data-v-acdc4199"]]), hn = { class: "k-form-radio" }, gn = {
|
|
@@ -1384,25 +1384,25 @@ var zt = {
|
|
|
1384
1384
|
function o(e) {
|
|
1385
1385
|
r("update:modelValue", e);
|
|
1386
1386
|
}
|
|
1387
|
-
return (t, n) => (j(), p("div", hn, [e.readonly ? (j(), p("span", gn,
|
|
1387
|
+
return (t, n) => (j(), p("div", hn, [e.readonly ? (j(), p("span", gn, I(a.value), 1)) : (j(), d(z(Ne), {
|
|
1388
1388
|
key: 1,
|
|
1389
1389
|
"model-value": i.value,
|
|
1390
1390
|
disabled: e.disabled,
|
|
1391
1391
|
"onUpdate:modelValue": o
|
|
1392
1392
|
}, {
|
|
1393
|
-
default: W(() => [(j(!0), p(c, null, P(e.options, (t) => (j(), p(c, { key: String(t.value) }, [e.type === "button" ? (j(), d(
|
|
1393
|
+
default: W(() => [(j(!0), p(c, null, P(e.options, (t) => (j(), p(c, { key: String(t.value) }, [e.type === "button" ? (j(), d(z(Me), {
|
|
1394
1394
|
key: 0,
|
|
1395
|
-
value:
|
|
1395
|
+
value: z(Z)(t.value),
|
|
1396
1396
|
disabled: t.disabled
|
|
1397
1397
|
}, {
|
|
1398
|
-
default: W(() => [g(
|
|
1398
|
+
default: W(() => [g(I(t.label), 1)]),
|
|
1399
1399
|
_: 2
|
|
1400
|
-
}, 1032, ["value", "disabled"])) : (j(), d(
|
|
1400
|
+
}, 1032, ["value", "disabled"])) : (j(), d(z(je), {
|
|
1401
1401
|
key: 1,
|
|
1402
|
-
value:
|
|
1402
|
+
value: z(Z)(t.value),
|
|
1403
1403
|
disabled: t.disabled
|
|
1404
1404
|
}, {
|
|
1405
|
-
default: W(() => [g(
|
|
1405
|
+
default: W(() => [g(I(t.label), 1)]),
|
|
1406
1406
|
_: 2
|
|
1407
1407
|
}, 1032, ["value", "disabled"]))], 64))), 128))]),
|
|
1408
1408
|
_: 1
|
|
@@ -1499,8 +1499,8 @@ var zt = {
|
|
|
1499
1499
|
"disabled"
|
|
1500
1500
|
]),
|
|
1501
1501
|
!e.readonly && o.value ? (j(), p(c, { key: 0 }, [
|
|
1502
|
-
e.leftText ? (j(), p("label", vn,
|
|
1503
|
-
e.type === "inputNumber" ? (j(), d(
|
|
1502
|
+
e.leftText ? (j(), p("label", vn, I(e.leftText), 1)) : f("", !0),
|
|
1503
|
+
e.type === "inputNumber" ? (j(), d(z(Te), T({
|
|
1504
1504
|
key: 1,
|
|
1505
1505
|
"model-value": h.value,
|
|
1506
1506
|
class: "k-form-radio-input__input",
|
|
@@ -1510,7 +1510,7 @@ var zt = {
|
|
|
1510
1510
|
"model-value",
|
|
1511
1511
|
"placeholder",
|
|
1512
1512
|
"disabled"
|
|
1513
|
-
])) : (j(), d(
|
|
1513
|
+
])) : (j(), d(z(we), T({
|
|
1514
1514
|
key: 2,
|
|
1515
1515
|
modelValue: a.value,
|
|
1516
1516
|
"onUpdate:modelValue": n[1] ||= (e) => a.value = e,
|
|
@@ -1522,12 +1522,12 @@ var zt = {
|
|
|
1522
1522
|
"placeholder",
|
|
1523
1523
|
"disabled"
|
|
1524
1524
|
])),
|
|
1525
|
-
e.rightText ? (j(), p("label", yn,
|
|
1525
|
+
e.rightText ? (j(), p("label", yn, I(e.rightText), 1)) : f("", !0)
|
|
1526
1526
|
], 64)) : f("", !0),
|
|
1527
1527
|
e.readonly && o.value ? (j(), p("div", bn, [
|
|
1528
|
-
e.leftText ? (j(), p("label", xn,
|
|
1529
|
-
g(" " +
|
|
1530
|
-
e.rightText ? (j(), p("label", Sn,
|
|
1528
|
+
e.leftText ? (j(), p("label", xn, I(e.leftText), 1)) : f("", !0),
|
|
1529
|
+
g(" " + I(a.value) + " ", 1),
|
|
1530
|
+
e.rightText ? (j(), p("label", Sn, I(e.rightText), 1)) : f("", !0)
|
|
1531
1531
|
])) : f("", !0)
|
|
1532
1532
|
], 2));
|
|
1533
1533
|
}
|
|
@@ -1626,7 +1626,7 @@ var zt = {
|
|
|
1626
1626
|
let e = Z(m.value), t = i.value.find((t) => t.value === e);
|
|
1627
1627
|
return t ? String(t.label ?? t.name ?? t.value) : Q(e);
|
|
1628
1628
|
});
|
|
1629
|
-
return h(), (t, n) => e.readonly ? (j(), p("span", wn,
|
|
1629
|
+
return h(), (t, n) => e.readonly ? (j(), p("span", wn, I(S.value), 1)) : (j(), d(z(Pe), {
|
|
1630
1630
|
key: 1,
|
|
1631
1631
|
"model-value": m.value,
|
|
1632
1632
|
remote: "",
|
|
@@ -1641,7 +1641,7 @@ var zt = {
|
|
|
1641
1641
|
onVisibleChange: b,
|
|
1642
1642
|
"onUpdate:modelValue": x
|
|
1643
1643
|
}, {
|
|
1644
|
-
default: W(() => [(j(!0), p(c, null, P(i.value, (e, t) => le((j(), d(
|
|
1644
|
+
default: W(() => [(j(!0), p(c, null, P(i.value, (e, t) => le((j(), d(z(De), {
|
|
1645
1645
|
key: `${e.value}-${t}`,
|
|
1646
1646
|
label: String(e.label ?? ""),
|
|
1647
1647
|
value: e.value
|
|
@@ -1704,7 +1704,7 @@ var zt = {
|
|
|
1704
1704
|
function h(e) {
|
|
1705
1705
|
f(e, m), m = [...i.value];
|
|
1706
1706
|
}
|
|
1707
|
-
return (t, n) => e.readonly ? (j(), p("span", En,
|
|
1707
|
+
return (t, n) => e.readonly ? (j(), p("span", En, I(l.value), 1)) : (j(), d(z(Pe), {
|
|
1708
1708
|
key: 1,
|
|
1709
1709
|
"model-value": i.value,
|
|
1710
1710
|
multiple: "",
|
|
@@ -1715,7 +1715,7 @@ var zt = {
|
|
|
1715
1715
|
class: "k-form-select-multiple",
|
|
1716
1716
|
"onUpdate:modelValue": h
|
|
1717
1717
|
}, {
|
|
1718
|
-
default: W(() => [(j(!0), p(c, null, P(o.value, (e) => (j(), d(
|
|
1718
|
+
default: W(() => [(j(!0), p(c, null, P(o.value, (e) => (j(), d(z(De), {
|
|
1719
1719
|
key: e.key,
|
|
1720
1720
|
label: e.label,
|
|
1721
1721
|
value: e.value,
|
|
@@ -1799,7 +1799,7 @@ var zt = {
|
|
|
1799
1799
|
let t = ["k-form-tag__item"];
|
|
1800
1800
|
return n.disabled && t.push("is-disabled"), n.readonly && t.push("is-readonly"), i.value.includes(e) && t.push("is-active"), t.join(" ");
|
|
1801
1801
|
}
|
|
1802
|
-
return (e, t) => (j(), p("div", kn, [(j(!0), p(c, null, P(o.value, (e) => (j(), d(
|
|
1802
|
+
return (e, t) => (j(), p("div", kn, [(j(!0), p(c, null, P(o.value, (e) => (j(), d(z(Ie), {
|
|
1803
1803
|
key: e.value || "__all__",
|
|
1804
1804
|
class: D(["k-form-tag__item", m(e.value)]),
|
|
1805
1805
|
type: "info",
|
|
@@ -1807,7 +1807,7 @@ var zt = {
|
|
|
1807
1807
|
"disable-transitions": !0,
|
|
1808
1808
|
onClick: (t) => f(e.value)
|
|
1809
1809
|
}, {
|
|
1810
|
-
default: W(() => [g(
|
|
1810
|
+
default: W(() => [g(I(e.label), 1)]),
|
|
1811
1811
|
_: 2
|
|
1812
1812
|
}, 1032, ["class", "onClick"]))), 128))]));
|
|
1813
1813
|
}
|
|
@@ -1822,7 +1822,7 @@ var zt = {
|
|
|
1822
1822
|
},
|
|
1823
1823
|
setup(e) {
|
|
1824
1824
|
let t = e, n = u(() => Ot(t.modelValue));
|
|
1825
|
-
return (e, t) => (j(), p("div", jn, [m("p", null,
|
|
1825
|
+
return (e, t) => (j(), p("div", jn, [m("p", null, I(n.value), 1)]));
|
|
1826
1826
|
}
|
|
1827
1827
|
}), [["__scopeId", "data-v-9dc35114"]]), Nn = { class: "k-form-time-picker" }, Pn = ["innerHTML"], Fn = {
|
|
1828
1828
|
key: 1,
|
|
@@ -1894,8 +1894,8 @@ var zt = {
|
|
|
1894
1894
|
class: "k-form-time-picker__text",
|
|
1895
1895
|
innerHTML: e.prepend
|
|
1896
1896
|
}, null, 8, Pn)) : f("", !0),
|
|
1897
|
-
e.leftText ? (j(), p("span", Fn,
|
|
1898
|
-
e.readonly ? (j(), p("span", In,
|
|
1897
|
+
e.leftText ? (j(), p("span", Fn, I(e.leftText), 1)) : f("", !0),
|
|
1898
|
+
e.readonly ? (j(), p("span", In, I(c.value), 1)) : (j(), d(z(Le), {
|
|
1899
1899
|
key: 3,
|
|
1900
1900
|
"model-value": i.value,
|
|
1901
1901
|
"is-range": o.value,
|
|
@@ -1924,7 +1924,7 @@ var zt = {
|
|
|
1924
1924
|
"disabled-minutes",
|
|
1925
1925
|
"disabled-seconds"
|
|
1926
1926
|
])),
|
|
1927
|
-
e.rightText ? (j(), p("span", Ln,
|
|
1927
|
+
e.rightText ? (j(), p("span", Ln, I(e.rightText), 1)) : f("", !0),
|
|
1928
1928
|
e.append ? (j(), p("span", {
|
|
1929
1929
|
key: 5,
|
|
1930
1930
|
class: "k-form-time-picker__text",
|
|
@@ -1961,7 +1961,7 @@ var zt = {
|
|
|
1961
1961
|
emits: ["update:modelValue"],
|
|
1962
1962
|
setup(e, { emit: t }) {
|
|
1963
1963
|
let n = e, r = t, i = u(() => Z(n.modelValue)), a = u(() => It(n.data)), o = u(() => Lt(a.value, i.value) ?? Q(i.value));
|
|
1964
|
-
return (t, n) => (j(), p("div", Bn, [e.readonly ? (j(), p("div", Vn,
|
|
1964
|
+
return (t, n) => (j(), p("div", Bn, [e.readonly ? (j(), p("div", Vn, I(o.value), 1)) : (j(), d(z(ze), {
|
|
1965
1965
|
key: 1,
|
|
1966
1966
|
"model-value": i.value,
|
|
1967
1967
|
data: a.value,
|
|
@@ -2003,8 +2003,8 @@ var zt = {
|
|
|
2003
2003
|
type: "button",
|
|
2004
2004
|
class: "k-upload__media-play",
|
|
2005
2005
|
onClick: n[0] ||= (t) => r("play", e.file)
|
|
2006
|
-
}, [_(
|
|
2007
|
-
default: W(() => [_(
|
|
2006
|
+
}, [_(z(Se), null, {
|
|
2007
|
+
default: W(() => [_(z(Je))]),
|
|
2008
2008
|
_: 1
|
|
2009
2009
|
})])) : (j(), p(c, { key: 1 }, [F(t.$slots, "preview", { file: e.file }, () => [m("img", {
|
|
2010
2010
|
class: "el-upload-list__item-thumbnail",
|
|
@@ -2014,27 +2014,27 @@ var zt = {
|
|
|
2014
2014
|
m("span", {
|
|
2015
2015
|
class: "el-upload-list__item-preview",
|
|
2016
2016
|
onClick: n[1] ||= (t) => r("zoom", e.file)
|
|
2017
|
-
}, [_(
|
|
2018
|
-
default: W(() => [_(
|
|
2017
|
+
}, [_(z(Se), null, {
|
|
2018
|
+
default: W(() => [_(z(Ye))]),
|
|
2019
2019
|
_: 1
|
|
2020
2020
|
})]),
|
|
2021
2021
|
e.disabled ? f("", !0) : (j(), p("span", {
|
|
2022
2022
|
key: 0,
|
|
2023
2023
|
class: "el-upload-list__item-download",
|
|
2024
2024
|
onClick: n[2] ||= (t) => r("download", e.file)
|
|
2025
|
-
}, [_(
|
|
2026
|
-
default: W(() => [_(
|
|
2025
|
+
}, [_(z(Se), null, {
|
|
2026
|
+
default: W(() => [_(z(Ge))]),
|
|
2027
2027
|
_: 1
|
|
2028
2028
|
})])),
|
|
2029
2029
|
e.disabled ? f("", !0) : (j(), p("span", {
|
|
2030
2030
|
key: 1,
|
|
2031
2031
|
class: "el-upload-list__item-delete",
|
|
2032
2032
|
onClick: n[3] ||= (t) => r("remove", e.file)
|
|
2033
|
-
}, [_(
|
|
2034
|
-
default: W(() => [_(
|
|
2033
|
+
}, [_(z(Se), null, {
|
|
2034
|
+
default: W(() => [_(z(We))]),
|
|
2035
2035
|
_: 1
|
|
2036
2036
|
})]))
|
|
2037
|
-
])], 64)), a.value ? (j(), d(
|
|
2037
|
+
])], 64)), a.value ? (j(), d(z(Ae), {
|
|
2038
2038
|
key: 2,
|
|
2039
2039
|
class: "k-upload__file-progress",
|
|
2040
2040
|
type: e.listType === "picture-card" || e.listType === "lottie" ? "circle" : "line",
|
|
@@ -2065,10 +2065,10 @@ var zt = {
|
|
|
2065
2065
|
type: "button",
|
|
2066
2066
|
class: "k-upload__download",
|
|
2067
2067
|
onClick: r[0] ||= ue((e) => n("downloadTemplate"), ["stop"])
|
|
2068
|
-
}, [_(
|
|
2069
|
-
default: W(() => [_(
|
|
2068
|
+
}, [_(z(Se), { class: "k-upload__download-icon" }, {
|
|
2069
|
+
default: W(() => [_(z(Ge))]),
|
|
2070
2070
|
_: 1
|
|
2071
|
-
}), m("span", null,
|
|
2071
|
+
}), m("span", null, I(e.templateBtnText), 1)])) : f("", !0), e.tipType === "tooltip" && e.tipText ? (j(), d(z(Re), {
|
|
2072
2072
|
key: 1,
|
|
2073
2073
|
placement: "top",
|
|
2074
2074
|
content: e.tipText
|
|
@@ -2131,7 +2131,7 @@ var zt = {
|
|
|
2131
2131
|
key: 0,
|
|
2132
2132
|
class: "el-upload__tip",
|
|
2133
2133
|
innerHTML: e.tipText
|
|
2134
|
-
}, null, 8, er)) : f("", !0), e.percentage > 0 ? (j(), d(
|
|
2134
|
+
}, null, 8, er)) : f("", !0), e.percentage > 0 ? (j(), d(z(Ae), {
|
|
2135
2135
|
key: 1,
|
|
2136
2136
|
class: "k-upload__progress",
|
|
2137
2137
|
percentage: e.percentage,
|
|
@@ -2376,14 +2376,14 @@ var fr = {
|
|
|
2376
2376
|
}
|
|
2377
2377
|
x.value = e;
|
|
2378
2378
|
}
|
|
2379
|
-
let w = u(() => o.accept ? o.accept.toLowerCase() : i[o.listType] ?? ""), { fileList:
|
|
2379
|
+
let w = u(() => o.accept ? o.accept.toLowerCase() : i[o.listType] ?? ""), { fileList: O, elFileList: k, removeByUid: A, upsert: ne, findByUid: M } = ar({
|
|
2380
2380
|
getModelValue: () => o.modelValue,
|
|
2381
2381
|
onUpdate: (e) => c("update:modelValue", e),
|
|
2382
2382
|
getLimit: () => o.limit
|
|
2383
2383
|
}), P = lr({
|
|
2384
2384
|
getAccept: () => w.value,
|
|
2385
2385
|
getMaxSize: () => o.maxSize
|
|
2386
|
-
}), re = cr({ getTemplateCode: () => o.templateCode }), { visible: ie, urlList:
|
|
2386
|
+
}), re = cr({ getTemplateCode: () => o.templateCode }), { visible: ie, urlList: ae, initialIndex: oe, open: L, close: R } = nr(), { visible: B, url: se, type: V, open: ce } = rr(), le = u(() => ur(o.listType, o.action)), ue = u(() => {
|
|
2387
2387
|
switch (o.listType) {
|
|
2388
2388
|
case "picture": return "picture";
|
|
2389
2389
|
case "picture-card":
|
|
@@ -2401,7 +2401,7 @@ var fr = {
|
|
|
2401
2401
|
"lottie",
|
|
2402
2402
|
"video",
|
|
2403
2403
|
"audio"
|
|
2404
|
-
].includes(o.listType)), pe = u(() => o.listType === "picture-card" || o.listType === "lottie"), me = u(() => !pe.value), he = u(() => !o.openCutter && o.autoUpload), ge = u(() => o.limit === 1 ? void 0 : o.limit), _e = u(() => !!(o.limit && o.limit !== 1 &&
|
|
2404
|
+
].includes(o.listType)), pe = u(() => o.listType === "picture-card" || o.listType === "lottie"), me = u(() => !pe.value), he = u(() => !o.openCutter && o.autoUpload), ge = u(() => o.limit === 1 ? void 0 : o.limit), _e = u(() => !!(o.limit && o.limit !== 1 && O.value.length >= o.limit)), ve = u(() => !o.disabled), ye = u(() => !pe.value && !o.disabled), G = u(() => o.disabled ? "" : o.fileTips || (w.value ? `支持上传 ${w.value} 后缀文件,且不超过${o.maxSize}M` : "")), be = u(() => {
|
|
2405
2405
|
let e = ["k-upload", `k-upload--${o.listType}`];
|
|
2406
2406
|
return o.disabled && e.push("k-upload_detail"), _e.value && e.push("k-upload--limit"), e.join(" ");
|
|
2407
2407
|
});
|
|
@@ -2432,7 +2432,7 @@ var fr = {
|
|
|
2432
2432
|
A(e.uid), t && c("remove", t);
|
|
2433
2433
|
}, Ae = (e) => {
|
|
2434
2434
|
let t = M(e.uid);
|
|
2435
|
-
t && (c("preview", t), !(de.value &&
|
|
2435
|
+
t && (c("preview", t), !(de.value && L(t, O.value)) && ze(t));
|
|
2436
2436
|
}, je = (e) => {
|
|
2437
2437
|
o.listType === "picture2" && (S.value = Math.round(e.percent ?? 0));
|
|
2438
2438
|
}, Me = (e) => {
|
|
@@ -2453,7 +2453,7 @@ var fr = {
|
|
|
2453
2453
|
};
|
|
2454
2454
|
function Pe(e) {
|
|
2455
2455
|
let t = M(e.uid);
|
|
2456
|
-
t &&
|
|
2456
|
+
t && L(t, O.value);
|
|
2457
2457
|
}
|
|
2458
2458
|
function Fe(e) {
|
|
2459
2459
|
let t = M(e.uid);
|
|
@@ -2495,19 +2495,19 @@ var fr = {
|
|
|
2495
2495
|
clearFiles: () => l.value?.clearFiles(),
|
|
2496
2496
|
uploadRef: l
|
|
2497
2497
|
}), (t, n) => (j(), p("div", { class: D(["k-upload-wrap", be.value]) }, [
|
|
2498
|
-
_(
|
|
2498
|
+
_(z(Be), T({
|
|
2499
2499
|
ref_key: "uploadRef",
|
|
2500
2500
|
ref: l
|
|
2501
2501
|
}, t.$attrs, {
|
|
2502
2502
|
class: "k-upload__inner",
|
|
2503
|
-
"file-list":
|
|
2503
|
+
"file-list": z(k),
|
|
2504
2504
|
action: le.value,
|
|
2505
2505
|
"list-type": ue.value,
|
|
2506
2506
|
accept: w.value,
|
|
2507
2507
|
limit: ge.value,
|
|
2508
2508
|
disabled: e.disabled,
|
|
2509
2509
|
"auto-upload": he.value,
|
|
2510
|
-
"http-request":
|
|
2510
|
+
"http-request": z(re).httpRequest,
|
|
2511
2511
|
"before-upload": Te,
|
|
2512
2512
|
"on-success": De,
|
|
2513
2513
|
"on-error": Oe,
|
|
@@ -2548,7 +2548,7 @@ var fr = {
|
|
|
2548
2548
|
type: "primary",
|
|
2549
2549
|
disabled: _e.value
|
|
2550
2550
|
}, {
|
|
2551
|
-
default: W(() => [g(
|
|
2551
|
+
default: W(() => [g(I(e.btnText), 1)]),
|
|
2552
2552
|
_: 1
|
|
2553
2553
|
}, 8, ["disabled"])], !0),
|
|
2554
2554
|
_(Jn, {
|
|
@@ -2564,8 +2564,8 @@ var fr = {
|
|
|
2564
2564
|
"tip-text"
|
|
2565
2565
|
]),
|
|
2566
2566
|
F(t.$slots, "buttonAfter", {}, void 0, !0)
|
|
2567
|
-
])) : F(t.$slots, "content", {}, () => [m("div", pr, [_(
|
|
2568
|
-
default: W(() => [_(
|
|
2567
|
+
])) : F(t.$slots, "content", {}, () => [m("div", pr, [_(z(Se), { class: "k-upload__plus" }, {
|
|
2568
|
+
default: W(() => [_(z(qe))]),
|
|
2569
2569
|
_: 1
|
|
2570
2570
|
}), e.tipType === "text" && G.value ? (j(), p("span", {
|
|
2571
2571
|
key: 0,
|
|
@@ -2585,7 +2585,7 @@ var fr = {
|
|
|
2585
2585
|
onPlay: Ie
|
|
2586
2586
|
}, h({ _: 2 }, [t.$slots.preview ? {
|
|
2587
2587
|
name: "preview",
|
|
2588
|
-
fn: W((e) => [F(t.$slots, "preview",
|
|
2588
|
+
fn: W((e) => [F(t.$slots, "preview", te(b(e)), void 0, !0)]),
|
|
2589
2589
|
key: "0"
|
|
2590
2590
|
} : void 0]), 1032, [
|
|
2591
2591
|
"file",
|
|
@@ -2603,28 +2603,28 @@ var fr = {
|
|
|
2603
2603
|
"auto-upload",
|
|
2604
2604
|
"http-request"
|
|
2605
2605
|
]),
|
|
2606
|
-
e.openCutter ? (j(), d(
|
|
2606
|
+
e.openCutter ? (j(), d(z(r), {
|
|
2607
2607
|
key: 0,
|
|
2608
2608
|
ref_key: "cutterRef",
|
|
2609
2609
|
ref: y,
|
|
2610
2610
|
option: e.cutterOption,
|
|
2611
2611
|
onCut: Le
|
|
2612
2612
|
}, null, 8, ["option"])) : f("", !0),
|
|
2613
|
-
|
|
2613
|
+
z(ie) ? (j(), d(z(Ce), {
|
|
2614
2614
|
key: 1,
|
|
2615
|
-
"url-list":
|
|
2616
|
-
"initial-index":
|
|
2617
|
-
onClose:
|
|
2615
|
+
"url-list": z(ae),
|
|
2616
|
+
"initial-index": z(oe),
|
|
2617
|
+
onClose: z(R)
|
|
2618
2618
|
}, null, 8, [
|
|
2619
2619
|
"url-list",
|
|
2620
2620
|
"initial-index",
|
|
2621
2621
|
"onClose"
|
|
2622
2622
|
])) : f("", !0),
|
|
2623
2623
|
_(Qn, {
|
|
2624
|
-
visible: B
|
|
2625
|
-
"onUpdate:visible": n[0] ||= (e) => ee(
|
|
2626
|
-
url:
|
|
2627
|
-
type:
|
|
2624
|
+
visible: z(B),
|
|
2625
|
+
"onUpdate:visible": n[0] ||= (e) => ee(B) ? B.value = e : null,
|
|
2626
|
+
url: z(se),
|
|
2627
|
+
type: z(V)
|
|
2628
2628
|
}, null, 8, [
|
|
2629
2629
|
"visible",
|
|
2630
2630
|
"url",
|
|
@@ -2762,7 +2762,7 @@ var Sr = /* @__PURE__ */ y({
|
|
|
2762
2762
|
function c(e) {
|
|
2763
2763
|
r("update:modelValue", e);
|
|
2764
2764
|
}
|
|
2765
|
-
return (t, n) => (j(), d(
|
|
2765
|
+
return (t, n) => (j(), d(ae(i.value), T({
|
|
2766
2766
|
"model-value": e.modelValue,
|
|
2767
2767
|
options: s.value,
|
|
2768
2768
|
readonly: e.readonly,
|
|
@@ -2808,7 +2808,7 @@ var Sr = /* @__PURE__ */ y({
|
|
|
2808
2808
|
},
|
|
2809
2809
|
emits: ["update:modelValue", "change"],
|
|
2810
2810
|
setup(e, { expose: t, emit: n }) {
|
|
2811
|
-
let r = V(), i = e, a = n, o =
|
|
2811
|
+
let r = V(), i = e, a = n, o = B(), s = N(), l = N({});
|
|
2812
2812
|
ne(Tt, l);
|
|
2813
2813
|
function f(e) {
|
|
2814
2814
|
if (e == null || e === "") return;
|
|
@@ -2841,30 +2841,30 @@ var Sr = /* @__PURE__ */ y({
|
|
|
2841
2841
|
"k-form--query-layout": i.autoLayout,
|
|
2842
2842
|
"k-form--grid-layout": !i.autoLayout && !i.inline
|
|
2843
2843
|
})), ee = u(() => ({ "--k-form-cols": String(i.colLength) })), C = u(() => i.modelValue !== void 0), w = wt({
|
|
2844
|
-
formConfigs:
|
|
2845
|
-
data:
|
|
2846
|
-
modelValue:
|
|
2844
|
+
formConfigs: L(i, "formConfigs"),
|
|
2845
|
+
data: L(i, "data"),
|
|
2846
|
+
modelValue: L(i, "modelValue"),
|
|
2847
2847
|
controlled: C,
|
|
2848
2848
|
onChange: (e) => {
|
|
2849
2849
|
a("change", e), C.value && a("update:modelValue", e);
|
|
2850
2850
|
}
|
|
2851
2851
|
});
|
|
2852
|
-
function
|
|
2852
|
+
function te() {
|
|
2853
2853
|
let e = {};
|
|
2854
2854
|
i.formConfigs.forEach((t) => {
|
|
2855
2855
|
y(t) && (e[`kitDate-${t.id}`] = f(w.formModel[t.id]));
|
|
2856
2856
|
}), l.value = e;
|
|
2857
2857
|
}
|
|
2858
|
-
let { normalizedConfigs:
|
|
2859
|
-
formConfigs:
|
|
2858
|
+
let { normalizedConfigs: k, getFieldOptions: A, resolveItemRules: M, itemStyle: re, itemDisplay: ie, isItemReadonly: ae, isItemDisabled: oe } = vt({
|
|
2859
|
+
formConfigs: L(i, "formConfigs"),
|
|
2860
2860
|
layout: b,
|
|
2861
|
-
formReadonly:
|
|
2861
|
+
formReadonly: L(i, "readonly")
|
|
2862
2862
|
});
|
|
2863
|
-
U(() => i.formConfigs, () =>
|
|
2863
|
+
U(() => i.formConfigs, () => te(), {
|
|
2864
2864
|
immediate: !0,
|
|
2865
2865
|
deep: !0
|
|
2866
|
-
}), U(() => w.formModel, () =>
|
|
2867
|
-
function
|
|
2866
|
+
}), U(() => w.formModel, () => te(), { deep: !0 });
|
|
2867
|
+
function R(e) {
|
|
2868
2868
|
let t = ie(e);
|
|
2869
2869
|
return {
|
|
2870
2870
|
...re(e),
|
|
@@ -2936,35 +2936,35 @@ var Sr = /* @__PURE__ */ y({
|
|
|
2936
2936
|
resetFieldsValue: ge,
|
|
2937
2937
|
getFormRef: ve,
|
|
2938
2938
|
clearValidate: _e
|
|
2939
|
-
}), (e, t) => (j(), d(
|
|
2939
|
+
}), (e, t) => (j(), d(z(be), T({
|
|
2940
2940
|
ref_key: "formRef",
|
|
2941
2941
|
ref: s,
|
|
2942
2942
|
class: ["k-form", S.value],
|
|
2943
2943
|
style: ee.value,
|
|
2944
|
-
model:
|
|
2944
|
+
model: z(w).formModel
|
|
2945
2945
|
}, se.value, { onSubmit: t[0] ||= ue(() => {}, ["prevent"]) }), {
|
|
2946
|
-
default: W(() => [(j(!0), p(c, null, P(
|
|
2946
|
+
default: W(() => [(j(!0), p(c, null, P(z(k), (n) => (j(), d(z(xe), {
|
|
2947
2947
|
key: n.id,
|
|
2948
2948
|
"data-label": n.label || "",
|
|
2949
2949
|
"data-field-id": n.id,
|
|
2950
2950
|
label: n.label ? `${n.label}:` : void 0,
|
|
2951
2951
|
prop: n.id,
|
|
2952
|
-
rules:
|
|
2952
|
+
rules: z(M)(n),
|
|
2953
2953
|
class: D(["k-form__item", [n.class, {
|
|
2954
|
-
"k-form__item--readonly":
|
|
2955
|
-
"k-form__item--disabled":
|
|
2954
|
+
"k-form__item--readonly": z(ae)(n),
|
|
2955
|
+
"k-form__item--disabled": z(oe)(n),
|
|
2956
2956
|
"k-form__item--full-row": n.newLineStart,
|
|
2957
|
-
"k-form__item--choice":
|
|
2957
|
+
"k-form__item--choice": z(yr)(n.component) && (n.component === "Radio" || n.component === "Checkbox" || n.component === "Tag")
|
|
2958
2958
|
}]]),
|
|
2959
|
-
style:
|
|
2959
|
+
style: O(R(n))
|
|
2960
2960
|
}, h({
|
|
2961
|
-
default: W(() => [!n.slot || !
|
|
2961
|
+
default: W(() => [!n.slot || !z(r)[n.id] ? (j(), d(Sr, {
|
|
2962
2962
|
key: 0,
|
|
2963
2963
|
item: n,
|
|
2964
|
-
"model-value":
|
|
2965
|
-
options:
|
|
2966
|
-
readonly:
|
|
2967
|
-
disabled:
|
|
2964
|
+
"model-value": z(w).formModel[n.id],
|
|
2965
|
+
options: z(A)(n),
|
|
2966
|
+
readonly: z(ae)(n),
|
|
2967
|
+
disabled: z(oe)(n),
|
|
2968
2968
|
"onUpdate:modelValue": (e) => H(n, e)
|
|
2969
2969
|
}, null, 8, [
|
|
2970
2970
|
"item",
|
|
@@ -2975,13 +2975,13 @@ var Sr = /* @__PURE__ */ y({
|
|
|
2975
2975
|
"onUpdate:modelValue"
|
|
2976
2976
|
])) : F(e.$slots, n.id, {
|
|
2977
2977
|
item: n,
|
|
2978
|
-
value:
|
|
2978
|
+
value: z(w).formModel[n.id],
|
|
2979
2979
|
updateValue: (e) => H(n, e)
|
|
2980
2980
|
}, void 0, void 0, 1)]),
|
|
2981
2981
|
_: 2
|
|
2982
2982
|
}, [n.toolTip ? {
|
|
2983
2983
|
name: "label",
|
|
2984
|
-
fn: W(() => [_(
|
|
2984
|
+
fn: W(() => [_(z(Re), {
|
|
2985
2985
|
effect: "dark",
|
|
2986
2986
|
placement: "bottom",
|
|
2987
2987
|
"popper-class": "k-form__tooltip"
|
|
@@ -2992,7 +2992,7 @@ var Sr = /* @__PURE__ */ y({
|
|
|
2992
2992
|
"aria-hidden": "true"
|
|
2993
2993
|
}, "i", -1)]),
|
|
2994
2994
|
_: 2
|
|
2995
|
-
}, 1024), g(" " +
|
|
2995
|
+
}, 1024), g(" " + I(n.label ? `${n.label}:` : ""), 1)]),
|
|
2996
2996
|
key: "0"
|
|
2997
2997
|
} : void 0]), 1032, [
|
|
2998
2998
|
"data-label",
|
|
@@ -3086,23 +3086,23 @@ var Er = { class: "k-handle-page" }, Dr = {
|
|
|
3086
3086
|
return (t, n) => (j(), p("div", Er, [
|
|
3087
3087
|
b.value ? (j(), p("header", Dr, [F(t.$slots, "header")])) : f("", !0),
|
|
3088
3088
|
m("div", Or, [_(l, { name: "k-handle-page-loading" }, {
|
|
3089
|
-
default: W(() => [e.loading ? (j(), p("div", kr, [m("div", Ar, [_(
|
|
3089
|
+
default: W(() => [e.loading ? (j(), p("div", kr, [m("div", Ar, [_(z(Se), {
|
|
3090
3090
|
class: "k-handle-page__loading-icon is-loading",
|
|
3091
3091
|
size: 32
|
|
3092
3092
|
}, {
|
|
3093
|
-
default: W(() => [_(
|
|
3093
|
+
default: W(() => [_(z(Ke))]),
|
|
3094
3094
|
_: 1
|
|
3095
3095
|
}), n[1] ||= m("span", { class: "k-handle-page__loading-text" }, "加载中...", -1)])])) : f("", !0)]),
|
|
3096
3096
|
_: 1
|
|
3097
3097
|
}), m("div", {
|
|
3098
3098
|
class: D(["k-handle-page__content", { "k-handle-page__content--loading": e.loading }]),
|
|
3099
|
-
style:
|
|
3099
|
+
style: O(o.value)
|
|
3100
3100
|
}, [F(t.$slots, "default")], 6)]),
|
|
3101
3101
|
e.showFooter ? (j(), p("footer", jr, [F(t.$slots, "footer", {}, () => [h.value ? (j(), d(Y, {
|
|
3102
3102
|
key: 0,
|
|
3103
3103
|
onClick: n[0] ||= (e) => r("cancel")
|
|
3104
3104
|
}, {
|
|
3105
|
-
default: W(() => [g(
|
|
3105
|
+
default: W(() => [g(I(s.value), 1)]),
|
|
3106
3106
|
_: 1
|
|
3107
3107
|
})) : f("", !0), v.value ? (j(), d(Y, {
|
|
3108
3108
|
key: 1,
|
|
@@ -3110,7 +3110,7 @@ var Er = { class: "k-handle-page" }, Dr = {
|
|
|
3110
3110
|
loading: y.value,
|
|
3111
3111
|
onClick: x
|
|
3112
3112
|
}, {
|
|
3113
|
-
default: W(() => [g(
|
|
3113
|
+
default: W(() => [g(I(c.value), 1)]),
|
|
3114
3114
|
_: 1
|
|
3115
3115
|
}, 8, ["loading"])) : f("", !0)])])) : f("", !0)
|
|
3116
3116
|
]));
|
|
@@ -3121,7 +3121,7 @@ var Er = { class: "k-handle-page" }, Dr = {
|
|
|
3121
3121
|
function Nr(e, t) {
|
|
3122
3122
|
let n = N(!1);
|
|
3123
3123
|
async function r() {
|
|
3124
|
-
(
|
|
3124
|
+
(R(t?.skipLoading) ?? !1) || (n.value = !0);
|
|
3125
3125
|
try {
|
|
3126
3126
|
await e();
|
|
3127
3127
|
} finally {
|
|
@@ -3170,7 +3170,7 @@ var Vr = /*#__PURE__*/ e(/* @__PURE__ */ y({
|
|
|
3170
3170
|
},
|
|
3171
3171
|
setup(e) {
|
|
3172
3172
|
let t = e, n = u(() => Lr(t.name));
|
|
3173
|
-
return (t, r) => n.value ? (j(), d(
|
|
3173
|
+
return (t, r) => n.value ? (j(), d(ae(n.value), {
|
|
3174
3174
|
key: 0,
|
|
3175
3175
|
class: "k-icon",
|
|
3176
3176
|
size: e.size,
|
|
@@ -3215,8 +3215,8 @@ var Vr = /*#__PURE__*/ e(/* @__PURE__ */ y({
|
|
|
3215
3215
|
}
|
|
3216
3216
|
return (t, n) => (j(), p("div", {
|
|
3217
3217
|
class: "k-link-button",
|
|
3218
|
-
style:
|
|
3219
|
-
}, [(j(!0), p(c, null, P(i.value, (e, n) => (j(), d(
|
|
3218
|
+
style: O({ justifyContent: e.align })
|
|
3219
|
+
}, [(j(!0), p(c, null, P(i.value, (e, n) => (j(), d(z(Re), {
|
|
3220
3220
|
key: `${e.label}-${n}`,
|
|
3221
3221
|
content: e.tooltip,
|
|
3222
3222
|
placement: "top",
|
|
@@ -3225,7 +3225,7 @@ var Vr = /*#__PURE__*/ e(/* @__PURE__ */ y({
|
|
|
3225
3225
|
default: W(() => [m("div", Hr, [n > 0 ? (j(), p("span", Ur)) : f("", !0), m("a", {
|
|
3226
3226
|
class: D(["k-link-button__btn", [o(e), { "k-link-button__btn--readonly": a(e) }]]),
|
|
3227
3227
|
onClick: ue((t) => s(e, n), ["prevent"])
|
|
3228
|
-
}, [l(e) ? F(t.$slots, h(e), { item: e }, () => [g(
|
|
3228
|
+
}, [l(e) ? F(t.$slots, h(e), { item: e }, () => [g(I(e.label), 1)], void 0, 0) : (j(), p(c, { key: 1 }, [g(I(e.label), 1)], 64))], 10, Wr)])]),
|
|
3229
3229
|
_: 2
|
|
3230
3230
|
}, 1032, ["content", "disabled"]))), 128))], 4));
|
|
3231
3231
|
}
|
|
@@ -3249,7 +3249,7 @@ var Vr = /*#__PURE__*/ e(/* @__PURE__ */ y({
|
|
|
3249
3249
|
] }
|
|
3250
3250
|
},
|
|
3251
3251
|
setup(e) {
|
|
3252
|
-
return (t, n) => (j(), d(
|
|
3252
|
+
return (t, n) => (j(), d(z(Oe), T(t.$attrs, {
|
|
3253
3253
|
layout: e.layout,
|
|
3254
3254
|
"page-size": e.pageSize,
|
|
3255
3255
|
"page-sizes": e.pageSizes
|
|
@@ -3270,7 +3270,7 @@ var Vr = /*#__PURE__*/ e(/* @__PURE__ */ y({
|
|
|
3270
3270
|
return (t, n) => (j(), p("div", {
|
|
3271
3271
|
id: e.panelId || void 0,
|
|
3272
3272
|
class: "k-long-page-panel"
|
|
3273
|
-
}, [m("div", Jr,
|
|
3273
|
+
}, [m("div", Jr, I(e.title), 1), m("div", Yr, [F(t.$slots, "default", {}, void 0, !0)])], 8, qr));
|
|
3274
3274
|
}
|
|
3275
3275
|
}), [["__scopeId", "data-v-9d6e7832"]]), Zr = 4;
|
|
3276
3276
|
function Qr(e) {
|
|
@@ -3295,26 +3295,26 @@ function Qr(e) {
|
|
|
3295
3295
|
function u() {
|
|
3296
3296
|
return i ? (i = !1, !0) : !1;
|
|
3297
3297
|
}
|
|
3298
|
-
return
|
|
3298
|
+
return k(s), {
|
|
3299
3299
|
onPointerDown: l,
|
|
3300
3300
|
consumeClickIfDragged: u
|
|
3301
3301
|
};
|
|
3302
3302
|
}
|
|
3303
3303
|
//#endregion
|
|
3304
|
-
//#region src/components/k-long-page/
|
|
3305
|
-
var $r = {
|
|
3306
|
-
base: [
|
|
3307
|
-
price: [
|
|
3308
|
-
notice: [
|
|
3309
|
-
setup: [
|
|
3310
|
-
restrict: [
|
|
3304
|
+
//#region src/components/k-long-page/icons/icon-base.png?no-inline
|
|
3305
|
+
var $r = "" + new URL("../assets/icon-base-pYrXWQZO.png", import.meta.url).href, ei = "" + new URL("../assets/icon-base-2-CcPa4bmO.png", import.meta.url).href, ti = "" + new URL("../assets/icon-notice-DNvEYor3.png", import.meta.url).href, ni = "" + new URL("../assets/icon-notice-2-JVyxpYo9.png", import.meta.url).href, ri = "" + new URL("../assets/icon-price-4iIa0b5D.png", import.meta.url).href, ii = "" + new URL("../assets/icon-price-2-DMmEoFbh.png", import.meta.url).href, ai = "" + new URL("../assets/icon-restrict-BWJ7LA9s.png", import.meta.url).href, oi = "" + new URL("../assets/icon-restrict-2-BjWtoOXX.png", import.meta.url).href, si = "" + new URL("../assets/icon-setup-DXpIP63L.png", import.meta.url).href, ci = "" + new URL("../assets/icon-setup-2-BO6uKRX4.png", import.meta.url).href, li = {
|
|
3306
|
+
base: [$r, ei],
|
|
3307
|
+
price: [ri, ii],
|
|
3308
|
+
notice: [ti, ni],
|
|
3309
|
+
setup: [si, ci],
|
|
3310
|
+
restrict: [ai, oi]
|
|
3311
3311
|
};
|
|
3312
|
-
function
|
|
3313
|
-
return
|
|
3312
|
+
function ui(e) {
|
|
3313
|
+
return li[e] ?? li.base;
|
|
3314
3314
|
}
|
|
3315
3315
|
//#endregion
|
|
3316
3316
|
//#region src/components/k-long-page/KLongPage.vue?vue&type=script&setup=true&lang.ts
|
|
3317
|
-
var
|
|
3317
|
+
var di = ["onClick"], fi = ["src", "alt"], pi = ["src", "alt"], mi = /*#__PURE__*/ e(/* @__PURE__ */ y({
|
|
3318
3318
|
name: "KLongPage",
|
|
3319
3319
|
__name: "KLongPage",
|
|
3320
3320
|
props: { panels: { default: () => [{
|
|
@@ -3324,7 +3324,7 @@ var ti = ["onClick"], ni = ["src", "alt"], ri = ["src", "alt"], ii = /*#__PURE__
|
|
|
3324
3324
|
setup(e) {
|
|
3325
3325
|
let t = H("rootRef"), n = H("navRef"), { onPointerDown: r, consumeClickIfDragged: i } = Qr(n);
|
|
3326
3326
|
function a(e) {
|
|
3327
|
-
return
|
|
3327
|
+
return ui(e);
|
|
3328
3328
|
}
|
|
3329
3329
|
async function o(e) {
|
|
3330
3330
|
if (i()) return;
|
|
@@ -3351,7 +3351,7 @@ var ti = ["onClick"], ni = ["src", "alt"], ri = ["src", "alt"], ii = /*#__PURE__
|
|
|
3351
3351
|
ref_key: "navRef",
|
|
3352
3352
|
ref: n,
|
|
3353
3353
|
class: "k-long-page__nav",
|
|
3354
|
-
onPointerdown: s[0] ||= (...e) =>
|
|
3354
|
+
onPointerdown: s[0] ||= (...e) => z(r) && z(r)(...e)
|
|
3355
3355
|
}, [(j(!0), p(c, null, P(e.panels, (e) => (j(), p("div", {
|
|
3356
3356
|
key: e.name,
|
|
3357
3357
|
class: "k-long-page__nav-item",
|
|
@@ -3366,7 +3366,7 @@ var ti = ["onClick"], ni = ["src", "alt"], ri = ["src", "alt"], ii = /*#__PURE__
|
|
|
3366
3366
|
width: "28",
|
|
3367
3367
|
height: "28",
|
|
3368
3368
|
draggable: "false"
|
|
3369
|
-
}, null, 8,
|
|
3369
|
+
}, null, 8, fi),
|
|
3370
3370
|
m("img", {
|
|
3371
3371
|
class: "k-long-page__nav-item-icon k-long-page__nav-item-icon--active",
|
|
3372
3372
|
src: a(e.name)[1],
|
|
@@ -3374,15 +3374,15 @@ var ti = ["onClick"], ni = ["src", "alt"], ri = ["src", "alt"], ii = /*#__PURE__
|
|
|
3374
3374
|
width: "28",
|
|
3375
3375
|
height: "28",
|
|
3376
3376
|
draggable: "false"
|
|
3377
|
-
}, null, 8,
|
|
3378
|
-
m("span", null,
|
|
3379
|
-
], 8,
|
|
3377
|
+
}, null, 8, pi),
|
|
3378
|
+
m("span", null, I(e.label), 1)
|
|
3379
|
+
], 8, di))), 128))], 544)], 512));
|
|
3380
3380
|
}
|
|
3381
|
-
}), [["__scopeId", "data-v-ac934c5d"]]),
|
|
3381
|
+
}), [["__scopeId", "data-v-ac934c5d"]]), hi = /* @__PURE__ */ y({
|
|
3382
3382
|
name: "KCard",
|
|
3383
3383
|
__name: "KCard",
|
|
3384
3384
|
setup(e) {
|
|
3385
|
-
return (e, t) => (j(), d(
|
|
3385
|
+
return (e, t) => (j(), d(z(fe), te(b(e.$attrs)), h({
|
|
3386
3386
|
default: W(() => [F(e.$slots, "default")]),
|
|
3387
3387
|
_: 2
|
|
3388
3388
|
}, [e.$slots.header ? {
|
|
@@ -3395,10 +3395,10 @@ var ti = ["onClick"], ni = ["src", "alt"], ri = ["src", "alt"], ii = /*#__PURE__
|
|
|
3395
3395
|
key: "1"
|
|
3396
3396
|
} : void 0]), 1040));
|
|
3397
3397
|
}
|
|
3398
|
-
}),
|
|
3398
|
+
}), gi = {
|
|
3399
3399
|
key: 0,
|
|
3400
3400
|
class: "panel-head"
|
|
3401
|
-
},
|
|
3401
|
+
}, _i = { class: "panel-head_left" }, vi = { class: "panel-content" }, yi = /* @__PURE__ */ y({
|
|
3402
3402
|
name: "KPanel",
|
|
3403
3403
|
__name: "KPanel",
|
|
3404
3404
|
props: {
|
|
@@ -3421,12 +3421,12 @@ var ti = ["onClick"], ni = ["src", "alt"], ri = ["src", "alt"], ii = /*#__PURE__
|
|
|
3421
3421
|
panel: !0,
|
|
3422
3422
|
"panel-hover": t.hover
|
|
3423
3423
|
}));
|
|
3424
|
-
return (t, i) => (j(), p("div", { class: D(r.value) }, [e.isFold ? (j(), d(
|
|
3424
|
+
return (t, i) => (j(), p("div", { class: D(r.value) }, [e.isFold ? (j(), d(z(ge), {
|
|
3425
3425
|
key: 0,
|
|
3426
3426
|
modelValue: n.value,
|
|
3427
3427
|
"onUpdate:modelValue": i[0] ||= (e) => n.value = e
|
|
3428
3428
|
}, {
|
|
3429
|
-
default: W(() => [_(
|
|
3429
|
+
default: W(() => [_(z(_e), {
|
|
3430
3430
|
name: "content",
|
|
3431
3431
|
title: e.title
|
|
3432
3432
|
}, {
|
|
@@ -3434,12 +3434,12 @@ var ti = ["onClick"], ni = ["src", "alt"], ri = ["src", "alt"], ii = /*#__PURE__
|
|
|
3434
3434
|
_: 3
|
|
3435
3435
|
}, 8, ["title"])]),
|
|
3436
3436
|
_: 3
|
|
3437
|
-
}, 8, ["modelValue"])) : (j(), p(c, { key: 1 }, [e.title || t.$slots.title ? (j(), p("div",
|
|
3437
|
+
}, 8, ["modelValue"])) : (j(), p(c, { key: 1 }, [e.title || t.$slots.title ? (j(), p("div", gi, [m("div", _i, [F(t.$slots, "title", {}, () => [g(I(e.title), 1)])])])) : f("", !0), m("div", vi, [F(t.$slots, "default")])], 64))], 2));
|
|
3438
3438
|
}
|
|
3439
|
-
}),
|
|
3439
|
+
}), bi = {
|
|
3440
3440
|
key: 0,
|
|
3441
3441
|
class: "k-panel-query__footer"
|
|
3442
|
-
},
|
|
3442
|
+
}, xi = /* @__PURE__ */ y({
|
|
3443
3443
|
name: "KPanelQueryActions",
|
|
3444
3444
|
__name: "KPanelQueryActions",
|
|
3445
3445
|
props: { footer: {
|
|
@@ -3449,7 +3449,7 @@ var ti = ["onClick"], ni = ["src", "alt"], ri = ["src", "alt"], ii = /*#__PURE__
|
|
|
3449
3449
|
emits: ["query", "reset"],
|
|
3450
3450
|
setup(e, { emit: t }) {
|
|
3451
3451
|
let n = t;
|
|
3452
|
-
return (t, r) => e.footer ? (j(), p("div",
|
|
3452
|
+
return (t, r) => e.footer ? (j(), p("div", bi, [_(Y, {
|
|
3453
3453
|
type: "primary",
|
|
3454
3454
|
onClick: r[0] ||= (e) => n("query")
|
|
3455
3455
|
}, {
|
|
@@ -3475,7 +3475,7 @@ var ti = ["onClick"], ni = ["src", "alt"], ri = ["src", "alt"], ii = /*#__PURE__
|
|
|
3475
3475
|
_: 1
|
|
3476
3476
|
})], 64));
|
|
3477
3477
|
}
|
|
3478
|
-
}),
|
|
3478
|
+
}), Si = /* @__PURE__ */ y({
|
|
3479
3479
|
name: "KPanelQueryForm",
|
|
3480
3480
|
__name: "KPanelQueryForm",
|
|
3481
3481
|
props: {
|
|
@@ -3503,7 +3503,7 @@ var ti = ["onClick"], ni = ["src", "alt"], ri = ["src", "alt"], ii = /*#__PURE__
|
|
|
3503
3503
|
getParams: () => n.value?.getParams() ?? {},
|
|
3504
3504
|
resetForm: () => n.value?.resetForm(),
|
|
3505
3505
|
getFormRef: () => n.value?.getFormRef()
|
|
3506
|
-
}), (t, r) => (j(), d(
|
|
3506
|
+
}), (t, r) => (j(), d(z(wr), {
|
|
3507
3507
|
ref_key: "formRef",
|
|
3508
3508
|
ref: n,
|
|
3509
3509
|
class: "k-panel-query-form",
|
|
@@ -3524,13 +3524,13 @@ var ti = ["onClick"], ni = ["src", "alt"], ri = ["src", "alt"], ii = /*#__PURE__
|
|
|
3524
3524
|
"hide-label"
|
|
3525
3525
|
]));
|
|
3526
3526
|
}
|
|
3527
|
-
}),
|
|
3527
|
+
}), Ci = { class: "k-items k-form" }, wi = { class: "k-items_ul" }, Ti = {
|
|
3528
3528
|
key: 0,
|
|
3529
3529
|
class: "k-item_label"
|
|
3530
|
-
},
|
|
3530
|
+
}, Ei = { class: "k-item_input" }, Di = {
|
|
3531
3531
|
key: 0,
|
|
3532
3532
|
class: "k-item k-panel-query__item-actions"
|
|
3533
|
-
},
|
|
3533
|
+
}, Oi = /* @__PURE__ */ y({
|
|
3534
3534
|
name: "KPanelQueryItem",
|
|
3535
3535
|
__name: "KPanelQueryItem",
|
|
3536
3536
|
props: { formConfigs: {} },
|
|
@@ -3541,10 +3541,10 @@ var ti = ["onClick"], ni = ["src", "alt"], ri = ["src", "alt"], ii = /*#__PURE__
|
|
|
3541
3541
|
autoLayout: !1,
|
|
3542
3542
|
hideLabel: !1
|
|
3543
3543
|
})), a = wt({
|
|
3544
|
-
formConfigs:
|
|
3544
|
+
formConfigs: L(n, "formConfigs"),
|
|
3545
3545
|
controlled: u(() => !1)
|
|
3546
3546
|
}), { normalizedConfigs: o, getFieldOptions: s } = vt({
|
|
3547
|
-
formConfigs:
|
|
3547
|
+
formConfigs: L(n, "formConfigs"),
|
|
3548
3548
|
layout: i
|
|
3549
3549
|
});
|
|
3550
3550
|
function l(e, t) {
|
|
@@ -3564,22 +3564,22 @@ var ti = ["onClick"], ni = ["src", "alt"], ri = ["src", "alt"], ii = /*#__PURE__
|
|
|
3564
3564
|
getParams: h,
|
|
3565
3565
|
resetForm: g,
|
|
3566
3566
|
getFormRef: () => void 0
|
|
3567
|
-
}), (e, t) => (j(), p("div",
|
|
3567
|
+
}), (e, t) => (j(), p("div", Ci, [m("ul", wi, [(j(!0), p(c, null, P(z(o), (e) => (j(), p("li", {
|
|
3568
3568
|
key: e.id,
|
|
3569
3569
|
class: D(["k-item", { "k-item_flex": !!e.label }])
|
|
3570
|
-
}, [e.label ? (j(), p("label",
|
|
3570
|
+
}, [e.label ? (j(), p("label", Ti, I(e.label), 1)) : f("", !0), m("div", Ei, [_(Sr, {
|
|
3571
3571
|
item: e,
|
|
3572
|
-
"model-value":
|
|
3573
|
-
options:
|
|
3572
|
+
"model-value": z(a).formModel[e.id],
|
|
3573
|
+
options: z(s)(e),
|
|
3574
3574
|
"onUpdate:modelValue": (t) => l(e, t)
|
|
3575
3575
|
}, null, 8, [
|
|
3576
3576
|
"item",
|
|
3577
3577
|
"model-value",
|
|
3578
3578
|
"options",
|
|
3579
3579
|
"onUpdate:modelValue"
|
|
3580
|
-
])])], 2))), 128)),
|
|
3580
|
+
])])], 2))), 128)), z(r).button ? (j(), p("li", Di, [F(e.$slots, "button")])) : f("", !0)])]));
|
|
3581
3581
|
}
|
|
3582
|
-
}),
|
|
3582
|
+
}), ki = /* @__PURE__ */ y({
|
|
3583
3583
|
name: "KPanelQuery",
|
|
3584
3584
|
__name: "KPanelQuery",
|
|
3585
3585
|
props: {
|
|
@@ -3667,28 +3667,28 @@ var ti = ["onClick"], ni = ["src", "alt"], ri = ["src", "alt"], ii = /*#__PURE__
|
|
|
3667
3667
|
}), (t, n) => (j(), p("div", { class: D(["k-panel-query", {
|
|
3668
3668
|
"k-panel-query__form": e.model === "form" && !e.showPanel,
|
|
3669
3669
|
"k-panel-query__item": m.value
|
|
3670
|
-
}]) }, [e.showPanel ? (j(), d(
|
|
3670
|
+
}]) }, [e.showPanel ? (j(), d(z(yi), {
|
|
3671
3671
|
key: 1,
|
|
3672
3672
|
title: e.title,
|
|
3673
3673
|
"is-fold": e.isFold,
|
|
3674
3674
|
unfold: e.unfold,
|
|
3675
3675
|
hover: e.hover
|
|
3676
3676
|
}, {
|
|
3677
|
-
default: W(() => [l.value ? (j(), p(c, { key: 0 }, [m.value ? (j(), d(
|
|
3677
|
+
default: W(() => [l.value ? (j(), p(c, { key: 0 }, [m.value ? (j(), d(Oi, T({
|
|
3678
3678
|
key: 0,
|
|
3679
3679
|
ref_key: "formRef",
|
|
3680
3680
|
ref: a
|
|
3681
3681
|
}, l.value), h({ _: 2 }, [e.hideButton ? void 0 : {
|
|
3682
3682
|
name: "button",
|
|
3683
|
-
fn: W(() => [_(
|
|
3683
|
+
fn: W(() => [_(xi, {
|
|
3684
3684
|
onQuery: g,
|
|
3685
3685
|
onReset: v
|
|
3686
3686
|
})]),
|
|
3687
3687
|
key: "0"
|
|
3688
|
-
}]), 1040)) : (j(), p(c, { key: 1 }, [_(
|
|
3688
|
+
}]), 1040)) : (j(), p(c, { key: 1 }, [_(Si, T({
|
|
3689
3689
|
ref_key: "formRef",
|
|
3690
3690
|
ref: a
|
|
3691
|
-
}, l.value, { "hide-label": e.hideLabel }), null, 16, ["hide-label"]), e.hideButton ? f("", !0) : (j(), d(
|
|
3691
|
+
}, l.value, { "hide-label": e.hideLabel }), null, 16, ["hide-label"]), e.hideButton ? f("", !0) : (j(), d(xi, {
|
|
3692
3692
|
key: 0,
|
|
3693
3693
|
footer: "",
|
|
3694
3694
|
onQuery: g,
|
|
@@ -3700,21 +3700,21 @@ var ti = ["onClick"], ni = ["src", "alt"], ri = ["src", "alt"], ii = /*#__PURE__
|
|
|
3700
3700
|
"is-fold",
|
|
3701
3701
|
"unfold",
|
|
3702
3702
|
"hover"
|
|
3703
|
-
])) : (j(), p(c, { key: 0 }, [l.value ? (j(), p(c, { key: 0 }, [m.value ? (j(), d(
|
|
3703
|
+
])) : (j(), p(c, { key: 0 }, [l.value ? (j(), p(c, { key: 0 }, [m.value ? (j(), d(Oi, T({
|
|
3704
3704
|
key: 0,
|
|
3705
3705
|
ref_key: "formRef",
|
|
3706
3706
|
ref: a
|
|
3707
3707
|
}, l.value), h({ _: 2 }, [e.hideButton ? void 0 : {
|
|
3708
3708
|
name: "button",
|
|
3709
|
-
fn: W(() => [_(
|
|
3709
|
+
fn: W(() => [_(xi, {
|
|
3710
3710
|
onQuery: g,
|
|
3711
3711
|
onReset: v
|
|
3712
3712
|
})]),
|
|
3713
3713
|
key: "0"
|
|
3714
|
-
}]), 1040)) : (j(), p(c, { key: 1 }, [_(
|
|
3714
|
+
}]), 1040)) : (j(), p(c, { key: 1 }, [_(Si, T({
|
|
3715
3715
|
ref_key: "formRef",
|
|
3716
3716
|
ref: a
|
|
3717
|
-
}, l.value, { "hide-label": e.hideLabel }), null, 16, ["hide-label"]), e.hideButton ? f("", !0) : (j(), d(
|
|
3717
|
+
}, l.value, { "hide-label": e.hideLabel }), null, 16, ["hide-label"]), e.hideButton ? f("", !0) : (j(), d(xi, {
|
|
3718
3718
|
key: 0,
|
|
3719
3719
|
footer: "",
|
|
3720
3720
|
onQuery: g,
|
|
@@ -3724,43 +3724,43 @@ var ti = ["onClick"], ni = ["src", "alt"], ri = ["src", "alt"], ii = /*#__PURE__
|
|
|
3724
3724
|
});
|
|
3725
3725
|
//#endregion
|
|
3726
3726
|
//#region src/components/k-table/utils/rowKey.ts
|
|
3727
|
-
function
|
|
3727
|
+
function Ai(e, t) {
|
|
3728
3728
|
return e[t];
|
|
3729
3729
|
}
|
|
3730
|
-
function
|
|
3731
|
-
let n =
|
|
3730
|
+
function ji(e, t) {
|
|
3731
|
+
let n = Ai(e, t);
|
|
3732
3732
|
return typeof n == "string" || typeof n == "number" || typeof n == "boolean" ? n : n == null ? "" : String(n);
|
|
3733
3733
|
}
|
|
3734
3734
|
//#endregion
|
|
3735
3735
|
//#region src/components/k-table/utils/formatCellValue.ts
|
|
3736
|
-
function
|
|
3736
|
+
function Mi(e) {
|
|
3737
3737
|
return e === "" || e == null;
|
|
3738
3738
|
}
|
|
3739
|
-
function
|
|
3739
|
+
function Ni(e) {
|
|
3740
3740
|
let t = Number(e);
|
|
3741
3741
|
return Number.isNaN(t) ? String(e ?? "") : t.toLocaleString("en-US");
|
|
3742
3742
|
}
|
|
3743
|
-
function
|
|
3743
|
+
function Pi(e) {
|
|
3744
3744
|
return e.replace(/(\d{3})\d{4}(\d{4})/, "$1****$2");
|
|
3745
3745
|
}
|
|
3746
|
-
function
|
|
3747
|
-
if (
|
|
3746
|
+
function Fi(e, t) {
|
|
3747
|
+
if (Mi(t)) return "";
|
|
3748
3748
|
let n = String(t);
|
|
3749
3749
|
switch (e) {
|
|
3750
3750
|
case "date": return q(n).format("YYYY-MM-DD");
|
|
3751
3751
|
case "datetime": return q(n).format("YYYY-MM-DD HH:mm:ss");
|
|
3752
|
-
case "amount": return
|
|
3753
|
-
case "phone": return
|
|
3752
|
+
case "amount": return Ni(t);
|
|
3753
|
+
case "phone": return Pi(n);
|
|
3754
3754
|
default: return n;
|
|
3755
3755
|
}
|
|
3756
3756
|
}
|
|
3757
|
-
function
|
|
3758
|
-
let a = e.prop ?
|
|
3759
|
-
return e.formatter ? e.formatter(t, e, a, n) : e.dict && i !== void 0 ? i :
|
|
3757
|
+
function Ii(e, t, n, r, i) {
|
|
3758
|
+
let a = e.prop ? Ai(t, e.prop) : void 0;
|
|
3759
|
+
return e.formatter ? e.formatter(t, e, a, n) : e.dict && i !== void 0 ? i : Mi(a) ? r : e.showType ? Fi(e.showType, a) : String(a);
|
|
3760
3760
|
}
|
|
3761
3761
|
//#endregion
|
|
3762
3762
|
//#region src/components/k-table/composables/useTableColumns.ts
|
|
3763
|
-
var
|
|
3763
|
+
var Li = [
|
|
3764
3764
|
"prop",
|
|
3765
3765
|
"label",
|
|
3766
3766
|
"width",
|
|
@@ -3783,7 +3783,7 @@ var Di = [
|
|
|
3783
3783
|
"filterMethod",
|
|
3784
3784
|
"filteredValue"
|
|
3785
3785
|
];
|
|
3786
|
-
function
|
|
3786
|
+
function Ri(e, t = !1) {
|
|
3787
3787
|
let n = e.some((e) => e.type === "selection"), r = e;
|
|
3788
3788
|
return t && !n && (r = [{
|
|
3789
3789
|
type: "selection",
|
|
@@ -3794,24 +3794,24 @@ function Oi(e, t = !1) {
|
|
|
3794
3794
|
type: "operates"
|
|
3795
3795
|
} : e);
|
|
3796
3796
|
}
|
|
3797
|
-
function
|
|
3797
|
+
function zi(e) {
|
|
3798
3798
|
let t = {
|
|
3799
3799
|
minWidth: e.minWidth ?? "110",
|
|
3800
3800
|
align: e.align ?? "center",
|
|
3801
3801
|
headerAlign: e.headerAlign ?? "center"
|
|
3802
3802
|
};
|
|
3803
|
-
for (let n of
|
|
3803
|
+
for (let n of Li) e[n] !== void 0 && (t[n] = e[n]);
|
|
3804
3804
|
return e.type === "index" && !t.label && (t.label = "序号"), e.type === "expand" && (t.width = e.width ?? 50, delete t.minWidth), e.type !== "selection" && e.type !== "index" && e.type !== "operates" && e.type !== "radio" && e.type !== "expand" && (t.showOverflowTooltip = e.showOverflowTooltip ?? !0), t;
|
|
3805
3805
|
}
|
|
3806
|
-
function
|
|
3806
|
+
function Bi(e = "--") {
|
|
3807
3807
|
let t = S(dt, null);
|
|
3808
3808
|
function n(n, r, i) {
|
|
3809
|
-
let a = n.prop ?
|
|
3810
|
-
return
|
|
3809
|
+
let a = n.prop ? Ai(r, n.prop) : void 0;
|
|
3810
|
+
return Ii(n, r, i, e, n.dict && t && !Vi(a) ? t.getLabel(n.dict, a) : void 0);
|
|
3811
3811
|
}
|
|
3812
3812
|
return { getCellDisplayValue: n };
|
|
3813
3813
|
}
|
|
3814
|
-
function
|
|
3814
|
+
function Vi(e) {
|
|
3815
3815
|
return e === "" || e == null;
|
|
3816
3816
|
}
|
|
3817
3817
|
//#endregion
|
|
@@ -3821,7 +3821,7 @@ function $(e, t = 0) {
|
|
|
3821
3821
|
}
|
|
3822
3822
|
//#endregion
|
|
3823
3823
|
//#region src/components/k-table/KTableColumn.vue
|
|
3824
|
-
var
|
|
3824
|
+
var Hi = /*#__PURE__*/ e(/* @__PURE__ */ y({
|
|
3825
3825
|
name: "KTableColumn",
|
|
3826
3826
|
__name: "KTableColumn",
|
|
3827
3827
|
props: {
|
|
@@ -3845,11 +3845,11 @@ var Mi = /*#__PURE__*/ e(/* @__PURE__ */ y({
|
|
|
3845
3845
|
},
|
|
3846
3846
|
emits: ["operate-click", "radio-select"],
|
|
3847
3847
|
setup(e, { emit: t }) {
|
|
3848
|
-
let n = e, r = t, i = V(), { getCellDisplayValue: a } =
|
|
3848
|
+
let n = e, r = t, i = V(), { getCellDisplayValue: a } = Bi(n.nullValueFormat);
|
|
3849
3849
|
function o(e) {
|
|
3850
3850
|
return e ?? "";
|
|
3851
3851
|
}
|
|
3852
|
-
let s = u(() =>
|
|
3852
|
+
let s = u(() => zi(n.column)), l = (e) => n.indexOffset + e + 1, f = u(() => {
|
|
3853
3853
|
let e = n.column.prop;
|
|
3854
3854
|
return !!(e && i[o(e)]);
|
|
3855
3855
|
}), v = u(() => n.column.type === "operates" ? i.operates ? !0 : !!(n.column.prop && i[o(n.column.prop)]) : !1);
|
|
@@ -3860,21 +3860,21 @@ var Mi = /*#__PURE__*/ e(/* @__PURE__ */ y({
|
|
|
3860
3860
|
return typeof e.slot == "string" ? e.slot : "default";
|
|
3861
3861
|
}
|
|
3862
3862
|
function x(e) {
|
|
3863
|
-
return
|
|
3863
|
+
return ji(e, n.rowKey);
|
|
3864
3864
|
}
|
|
3865
3865
|
return (t, n) => {
|
|
3866
3866
|
let u = re("KTableColumn", !0);
|
|
3867
|
-
return e.column.type === "selection" ? (j(), d(
|
|
3868
|
-
key: `${
|
|
3867
|
+
return e.column.type === "selection" ? (j(), d(z(K), T({
|
|
3868
|
+
key: `${z($)(e.column, e.columnIndex)}:selection`,
|
|
3869
3869
|
type: "selection"
|
|
3870
|
-
}, s.value), null, 16)) : e.column.type === "index" ? (j(), d(
|
|
3870
|
+
}, s.value), null, 16)) : e.column.type === "index" ? (j(), d(z(K), T({ key: `${z($)(e.column, e.columnIndex)}:index` }, s.value), {
|
|
3871
3871
|
default: W(({ $index: e }) => [F(t.$slots, "index", {
|
|
3872
3872
|
index: e,
|
|
3873
3873
|
displayIndex: l(e)
|
|
3874
|
-
}, () => [g(
|
|
3874
|
+
}, () => [g(I(l(e)), 1)], !0)]),
|
|
3875
3875
|
_: 3
|
|
3876
|
-
}, 16)) : e.column.type === "radio" ? (j(), d(
|
|
3877
|
-
default: W(({ row: t }) => [_(
|
|
3876
|
+
}, 16)) : e.column.type === "radio" ? (j(), d(z(K), T({ key: `${z($)(e.column, e.columnIndex)}:radio` }, s.value), {
|
|
3877
|
+
default: W(({ row: t }) => [_(z(je), {
|
|
3878
3878
|
class: "k-table-column__radio",
|
|
3879
3879
|
"model-value": e.radioSelected,
|
|
3880
3880
|
label: x(t),
|
|
@@ -3885,12 +3885,12 @@ var Mi = /*#__PURE__*/ e(/* @__PURE__ */ y({
|
|
|
3885
3885
|
"onUpdate:modelValue"
|
|
3886
3886
|
])]),
|
|
3887
3887
|
_: 1
|
|
3888
|
-
}, 16)) : e.column.type === "operates" ? (j(), d(
|
|
3889
|
-
default: W(({ row: n, column: r, $index: a }) => [v.value ? F(t.$slots,
|
|
3888
|
+
}, 16)) : e.column.type === "operates" ? (j(), d(z(K), T({ key: `${z($)(e.column, e.columnIndex)}:operates` }, s.value), {
|
|
3889
|
+
default: W(({ row: n, column: r, $index: a }) => [v.value ? F(t.$slots, z(i).operates ? "operates" : o(e.column.prop), {
|
|
3890
3890
|
row: n,
|
|
3891
3891
|
column: r,
|
|
3892
3892
|
index: a
|
|
3893
|
-
}, void 0, !0, 0) : (j(), d(
|
|
3893
|
+
}, void 0, !0, 0) : (j(), d(z(Gr), {
|
|
3894
3894
|
key: 1,
|
|
3895
3895
|
data: e.column.operates ?? [],
|
|
3896
3896
|
disabled: e.disabled,
|
|
@@ -3903,15 +3903,15 @@ var Mi = /*#__PURE__*/ e(/* @__PURE__ */ y({
|
|
|
3903
3903
|
column: r,
|
|
3904
3904
|
index: a,
|
|
3905
3905
|
item: i
|
|
3906
|
-
}, () => [g(
|
|
3906
|
+
}, () => [g(I(i.label), 1)], !0)])
|
|
3907
3907
|
}))]), 1032, [
|
|
3908
3908
|
"data",
|
|
3909
3909
|
"disabled",
|
|
3910
3910
|
"onClick"
|
|
3911
3911
|
]))]),
|
|
3912
3912
|
_: 3
|
|
3913
|
-
}, 16)) : e.column.type === "expand" ? (j(), d(
|
|
3914
|
-
key: `${
|
|
3913
|
+
}, 16)) : e.column.type === "expand" ? (j(), d(z(K), T({
|
|
3914
|
+
key: `${z($)(e.column, e.columnIndex)}:expand`,
|
|
3915
3915
|
type: "expand"
|
|
3916
3916
|
}, s.value), {
|
|
3917
3917
|
default: W(({ row: e, column: n, $index: r }) => [F(t.$slots, "expand", {
|
|
@@ -3920,9 +3920,9 @@ var Mi = /*#__PURE__*/ e(/* @__PURE__ */ y({
|
|
|
3920
3920
|
index: r
|
|
3921
3921
|
}, void 0, !0)]),
|
|
3922
3922
|
_: 3
|
|
3923
|
-
}, 16)) : e.column.children?.length ? (j(), d(
|
|
3923
|
+
}, 16)) : e.column.children?.length ? (j(), d(z(K), T({ key: `${z($)(e.column, e.columnIndex)}:group` }, s.value), {
|
|
3924
3924
|
default: W(() => [(j(!0), p(c, null, P(e.column.children, (i, a) => (j(), d(u, {
|
|
3925
|
-
key:
|
|
3925
|
+
key: z($)(i, a),
|
|
3926
3926
|
column: i,
|
|
3927
3927
|
"column-index": a,
|
|
3928
3928
|
"index-offset": e.indexOffset,
|
|
@@ -3945,16 +3945,16 @@ var Mi = /*#__PURE__*/ e(/* @__PURE__ */ y({
|
|
|
3945
3945
|
"radio-selected"
|
|
3946
3946
|
]))), 128))]),
|
|
3947
3947
|
_: 3
|
|
3948
|
-
}, 16)) : (j(), d(
|
|
3948
|
+
}, 16)) : (j(), d(z(K), T({ key: `${z($)(e.column, e.columnIndex)}:default` }, s.value), h({
|
|
3949
3949
|
default: W(({ row: n, column: r, $index: i }) => [f.value ? F(t.$slots, o(e.column.prop), {
|
|
3950
3950
|
row: n,
|
|
3951
3951
|
column: r,
|
|
3952
3952
|
index: i
|
|
3953
|
-
}, void 0, !0, 0) : (j(), p(c, { key: 1 }, [g(
|
|
3953
|
+
}, void 0, !0, 0) : (j(), p(c, { key: 1 }, [g(I(z(a)(e.column, n, i)), 1)], 64))]),
|
|
3954
3954
|
_: 2
|
|
3955
3955
|
}, [e.column.toolTip ? {
|
|
3956
3956
|
name: "header",
|
|
3957
|
-
fn: W(() => [m("span", null,
|
|
3957
|
+
fn: W(() => [m("span", null, I(e.column.label), 1), _(z(Re), {
|
|
3958
3958
|
content: e.column.toolTip,
|
|
3959
3959
|
placement: "top"
|
|
3960
3960
|
}, {
|
|
@@ -3965,7 +3965,7 @@ var Mi = /*#__PURE__*/ e(/* @__PURE__ */ y({
|
|
|
3965
3965
|
} : void 0]), 1040));
|
|
3966
3966
|
};
|
|
3967
3967
|
}
|
|
3968
|
-
}), [["__scopeId", "data-v-578909bc"]]),
|
|
3968
|
+
}), [["__scopeId", "data-v-578909bc"]]), Ui = { class: "k-table-column-selector" }, Wi = { class: "k-table-column-selector__header" }, Gi = { class: "k-table-column-selector__content" }, Ki = /*#__PURE__*/ e(/* @__PURE__ */ y({
|
|
3969
3969
|
name: "KTableColumnSelector",
|
|
3970
3970
|
__name: "KTableColumnSelector",
|
|
3971
3971
|
props: { items: {} },
|
|
@@ -3978,7 +3978,7 @@ var Mi = /*#__PURE__*/ e(/* @__PURE__ */ y({
|
|
|
3978
3978
|
function a() {
|
|
3979
3979
|
n("reset");
|
|
3980
3980
|
}
|
|
3981
|
-
return (t, n) => (j(), d(
|
|
3981
|
+
return (t, n) => (j(), d(z(ke), {
|
|
3982
3982
|
visible: r.value,
|
|
3983
3983
|
"onUpdate:visible": n[0] ||= (e) => r.value = e,
|
|
3984
3984
|
placement: "bottom-end",
|
|
@@ -3991,8 +3991,8 @@ var Mi = /*#__PURE__*/ e(/* @__PURE__ */ y({
|
|
|
3991
3991
|
class: "k-table-column-selector__trigger",
|
|
3992
3992
|
"aria-label": "列展示设置"
|
|
3993
3993
|
}, [m("span", { class: "k-table-column-selector__icon" })], -1)]]),
|
|
3994
|
-
default: W(() => [m("div",
|
|
3995
|
-
m("div",
|
|
3994
|
+
default: W(() => [m("div", Ui, [
|
|
3995
|
+
m("div", Wi, [n[3] ||= m("span", null, "列展示", -1), _(z(de), {
|
|
3996
3996
|
type: "primary",
|
|
3997
3997
|
link: "",
|
|
3998
3998
|
onClick: a
|
|
@@ -4000,14 +4000,14 @@ var Mi = /*#__PURE__*/ e(/* @__PURE__ */ y({
|
|
|
4000
4000
|
default: W(() => [...n[2] ||= [g("恢复默认", -1)]]),
|
|
4001
4001
|
_: 1
|
|
4002
4002
|
})]),
|
|
4003
|
-
_(
|
|
4004
|
-
m("div",
|
|
4003
|
+
_(z(G), { class: "k-table-column-selector__divider" }),
|
|
4004
|
+
m("div", Gi, [(j(!0), p(c, null, P(e.items, (e) => (j(), d(z(me), {
|
|
4005
4005
|
key: e.key,
|
|
4006
4006
|
"model-value": e.checked,
|
|
4007
4007
|
disabled: e.disabled,
|
|
4008
4008
|
onChange: (t) => i(e.key, !!t)
|
|
4009
4009
|
}, {
|
|
4010
|
-
default: W(() => [g(
|
|
4010
|
+
default: W(() => [g(I(e.label), 1)]),
|
|
4011
4011
|
_: 2
|
|
4012
4012
|
}, 1032, [
|
|
4013
4013
|
"model-value",
|
|
@@ -4018,25 +4018,25 @@ var Mi = /*#__PURE__*/ e(/* @__PURE__ */ y({
|
|
|
4018
4018
|
_: 1
|
|
4019
4019
|
}, 8, ["visible"]));
|
|
4020
4020
|
}
|
|
4021
|
-
}), [["__scopeId", "data-v-e0b3cf31"]]),
|
|
4021
|
+
}), [["__scopeId", "data-v-e0b3cf31"]]), qi = {
|
|
4022
4022
|
key: 0,
|
|
4023
4023
|
class: "k-table-toolbar k-table-header"
|
|
4024
|
-
},
|
|
4024
|
+
}, Ji = {
|
|
4025
4025
|
key: 0,
|
|
4026
4026
|
class: "k-table-toolbar__main"
|
|
4027
|
-
},
|
|
4027
|
+
}, Yi = {
|
|
4028
4028
|
key: 1,
|
|
4029
4029
|
class: "k-table-toolbar__header"
|
|
4030
|
-
},
|
|
4030
|
+
}, Xi = {
|
|
4031
4031
|
key: 2,
|
|
4032
4032
|
class: "k-table-toolbar__extra"
|
|
4033
|
-
},
|
|
4033
|
+
}, Zi = {
|
|
4034
4034
|
key: 1,
|
|
4035
4035
|
class: "k-table-toolbar__divider"
|
|
4036
|
-
},
|
|
4036
|
+
}, Qi = {
|
|
4037
4037
|
key: 2,
|
|
4038
4038
|
class: "k-table-toolbar__selection"
|
|
4039
|
-
},
|
|
4039
|
+
}, $i = /*#__PURE__*/ e(/* @__PURE__ */ y({
|
|
4040
4040
|
name: "KTableToolbar",
|
|
4041
4041
|
__name: "KTableToolbar",
|
|
4042
4042
|
props: {
|
|
@@ -4053,40 +4053,40 @@ var Mi = /*#__PURE__*/ e(/* @__PURE__ */ y({
|
|
|
4053
4053
|
emits: ["add"],
|
|
4054
4054
|
setup(e, { emit: t }) {
|
|
4055
4055
|
let n = e, r = t, i = V(), a = u(() => !!(n.addButton || i.header || i.extra)), o = u(() => !!(n.addButton && n.selectionShow));
|
|
4056
|
-
return (t, n) => a.value || e.selectionShow ? (j(), p("div",
|
|
4057
|
-
a.value ? (j(), p("div",
|
|
4056
|
+
return (t, n) => a.value || e.selectionShow ? (j(), p("div", qi, [
|
|
4057
|
+
a.value ? (j(), p("div", Ji, [
|
|
4058
4058
|
e.addButton ? (j(), d(Y, {
|
|
4059
4059
|
key: 0,
|
|
4060
4060
|
type: "primary",
|
|
4061
|
-
icon:
|
|
4061
|
+
icon: z(qe),
|
|
4062
4062
|
onClick: n[0] ||= (e) => r("add")
|
|
4063
4063
|
}, {
|
|
4064
|
-
default: W(() => [g(
|
|
4064
|
+
default: W(() => [g(I(e.addButton === !0 ? "新建" : e.addButton), 1)]),
|
|
4065
4065
|
_: 1
|
|
4066
4066
|
}, 8, ["icon"])) : f("", !0),
|
|
4067
|
-
|
|
4068
|
-
|
|
4067
|
+
z(i).header ? (j(), p("div", Yi, [F(t.$slots, "header", {}, void 0, !0)])) : f("", !0),
|
|
4068
|
+
z(i).extra ? (j(), p("div", Xi, [F(t.$slots, "extra", {}, void 0, !0)])) : f("", !0)
|
|
4069
4069
|
])) : f("", !0),
|
|
4070
|
-
o.value ? (j(), p("div",
|
|
4071
|
-
e.selectionShow ? (j(), p("div",
|
|
4070
|
+
o.value ? (j(), p("div", Zi)) : f("", !0),
|
|
4071
|
+
e.selectionShow ? (j(), p("div", Qi, "已选择" + I(e.selectedCount) + "条数据", 1)) : f("", !0)
|
|
4072
4072
|
])) : f("", !0);
|
|
4073
4073
|
}
|
|
4074
|
-
}), [["__scopeId", "data-v-bff19ed1"]]),
|
|
4075
|
-
function
|
|
4074
|
+
}), [["__scopeId", "data-v-bff19ed1"]]), ea = "kayak_table_column_display";
|
|
4075
|
+
function ta(e) {
|
|
4076
4076
|
return e.type === "selection" || e.type === "index" || e.type === "radio" || e.type === "expand" || e.required === !0;
|
|
4077
4077
|
}
|
|
4078
|
-
function
|
|
4078
|
+
function na(e) {
|
|
4079
4079
|
return !(e.type === "radio" || e.type === "expand" || e.children?.length);
|
|
4080
4080
|
}
|
|
4081
|
-
function
|
|
4082
|
-
let t = N({}), n = N(""), r = Ue(
|
|
4081
|
+
function ra(e) {
|
|
4082
|
+
let t = N({}), n = N(""), r = Ue(ea, {}), i = u(() => !!R(e.enableColumnCache)), a = u(() => R(e.columns).filter((e) => na(e)));
|
|
4083
4083
|
function o() {
|
|
4084
|
-
return
|
|
4084
|
+
return R(e.tableKey) || n.value;
|
|
4085
4085
|
}
|
|
4086
4086
|
function s() {
|
|
4087
4087
|
let t = {};
|
|
4088
|
-
return
|
|
4089
|
-
|
|
4088
|
+
return R(e.columns).forEach((e, n) => {
|
|
4089
|
+
na(e) && (t[$(e, n)] = !0);
|
|
4090
4090
|
}), t;
|
|
4091
4091
|
}
|
|
4092
4092
|
function c() {
|
|
@@ -4110,11 +4110,11 @@ function qi(e) {
|
|
|
4110
4110
|
delete t[e], r.value = t;
|
|
4111
4111
|
}
|
|
4112
4112
|
function f(t, n) {
|
|
4113
|
-
let r =
|
|
4113
|
+
let r = R(e.columns), i = r.findIndex((e) => e === t || e.prop && e.prop === t.prop && e.type === t.type);
|
|
4114
4114
|
return i >= 0 ? $(r[i], i) : $(t, n);
|
|
4115
4115
|
}
|
|
4116
4116
|
function p() {
|
|
4117
|
-
n.value =
|
|
4117
|
+
n.value = R(e.tableKey) || `table_${Math.random().toString(36).slice(2, 11)}`;
|
|
4118
4118
|
let r = c();
|
|
4119
4119
|
t.value = r ? J(r) : s();
|
|
4120
4120
|
}
|
|
@@ -4134,9 +4134,9 @@ function qi(e) {
|
|
|
4134
4134
|
d(), t.value = s(), e.onDisplayChange?.(t.value), m();
|
|
4135
4135
|
}
|
|
4136
4136
|
let v = u(() => {
|
|
4137
|
-
let n =
|
|
4137
|
+
let n = R(e.renderColumns);
|
|
4138
4138
|
return i.value ? n.filter((e, n) => {
|
|
4139
|
-
if (
|
|
4139
|
+
if (ta(e)) return !0;
|
|
4140
4140
|
let r = f(e, n);
|
|
4141
4141
|
return t.value[r] !== !1;
|
|
4142
4142
|
}) : n;
|
|
@@ -4147,10 +4147,10 @@ function qi(e) {
|
|
|
4147
4147
|
key: r,
|
|
4148
4148
|
label: e.label || "未命名列",
|
|
4149
4149
|
checked: t.value[r] !== !1,
|
|
4150
|
-
disabled:
|
|
4150
|
+
disabled: ta(e)
|
|
4151
4151
|
};
|
|
4152
4152
|
}));
|
|
4153
|
-
return U(() =>
|
|
4153
|
+
return U(() => R(e.columns), () => {
|
|
4154
4154
|
let e = s();
|
|
4155
4155
|
Object.keys(e).forEach((e) => {
|
|
4156
4156
|
t.value[e] === void 0 && (t.value[e] = !0);
|
|
@@ -4169,19 +4169,19 @@ function qi(e) {
|
|
|
4169
4169
|
}
|
|
4170
4170
|
//#endregion
|
|
4171
4171
|
//#region src/components/k-table/composables/useTableData.ts
|
|
4172
|
-
function
|
|
4172
|
+
function ia(e) {
|
|
4173
4173
|
let t = N([]), n = N(e.initialLoading ?? !1), r = N(!1), i = N(!1);
|
|
4174
4174
|
function a() {
|
|
4175
4175
|
return {
|
|
4176
4176
|
...ft,
|
|
4177
|
-
...
|
|
4177
|
+
...R(e.responseConfig)
|
|
4178
4178
|
};
|
|
4179
4179
|
}
|
|
4180
4180
|
function o() {
|
|
4181
4181
|
let t = a(), { currentPage: n, pageSize: r } = e.pagination.state.value;
|
|
4182
4182
|
return {
|
|
4183
|
-
...
|
|
4184
|
-
...
|
|
4183
|
+
...R(e.params) ?? {},
|
|
4184
|
+
...R(e.queryParams) ?? {},
|
|
4185
4185
|
[t.page]: String(n),
|
|
4186
4186
|
[t.limit]: String(r)
|
|
4187
4187
|
};
|
|
@@ -4213,8 +4213,8 @@ function Ji(e) {
|
|
|
4213
4213
|
}
|
|
4214
4214
|
//#endregion
|
|
4215
4215
|
//#region src/components/k-table/composables/useTablePagination.ts
|
|
4216
|
-
function
|
|
4217
|
-
let t =
|
|
4216
|
+
function aa(e) {
|
|
4217
|
+
let t = R(e.pagination), n = N({
|
|
4218
4218
|
total: t?.total ?? pt.total,
|
|
4219
4219
|
currentPage: t?.currentPage ?? pt.currentPage,
|
|
4220
4220
|
pageSize: t?.pageSize ?? pt.pageSize,
|
|
@@ -4228,7 +4228,7 @@ function Yi(e) {
|
|
|
4228
4228
|
layout: n.value.layout
|
|
4229
4229
|
})), i = u(() => (n.value.currentPage - 1) * n.value.pageSize);
|
|
4230
4230
|
U(() => {
|
|
4231
|
-
let t =
|
|
4231
|
+
let t = R(e.pagination);
|
|
4232
4232
|
return [
|
|
4233
4233
|
t?.total,
|
|
4234
4234
|
t?.currentPage,
|
|
@@ -4262,16 +4262,16 @@ function Yi(e) {
|
|
|
4262
4262
|
}
|
|
4263
4263
|
//#endregion
|
|
4264
4264
|
//#region src/components/k-table/composables/useTableRadio.ts
|
|
4265
|
-
function
|
|
4266
|
-
let t = N(""), n = u(() =>
|
|
4265
|
+
function oa(e) {
|
|
4266
|
+
let t = N(""), n = u(() => R(e.columns).some((e) => e.type === "radio"));
|
|
4267
4267
|
function r(n) {
|
|
4268
|
-
return t.value = n ?
|
|
4268
|
+
return t.value = n ? ji(n, R(e.rowKey)) : "", n;
|
|
4269
4269
|
}
|
|
4270
4270
|
function i() {
|
|
4271
4271
|
t.value = "";
|
|
4272
4272
|
}
|
|
4273
4273
|
function a(n) {
|
|
4274
|
-
t.value =
|
|
4274
|
+
t.value = ji(n, R(e.rowKey));
|
|
4275
4275
|
}
|
|
4276
4276
|
function o() {
|
|
4277
4277
|
return t.value;
|
|
@@ -4287,16 +4287,16 @@ function Xi(e) {
|
|
|
4287
4287
|
}
|
|
4288
4288
|
//#endregion
|
|
4289
4289
|
//#region src/components/k-table/composables/useTableRowSort.ts
|
|
4290
|
-
function
|
|
4290
|
+
function sa(e) {
|
|
4291
4291
|
let t = null;
|
|
4292
4292
|
function n() {
|
|
4293
4293
|
t?.destroy(), t = null;
|
|
4294
4294
|
}
|
|
4295
4295
|
function r() {
|
|
4296
|
-
if (n(), !
|
|
4296
|
+
if (n(), !R(e.enabled)) return;
|
|
4297
4297
|
let r = e.tableRef.value?.$el?.querySelector(".el-table__body-wrapper tbody");
|
|
4298
4298
|
r && (t = Ze.create(r, {
|
|
4299
|
-
disabled:
|
|
4299
|
+
disabled: R(e.disabled),
|
|
4300
4300
|
animation: 300,
|
|
4301
4301
|
handle: ".sort-handle",
|
|
4302
4302
|
filter: ".ignore-elements",
|
|
@@ -4305,25 +4305,25 @@ function Zi(e) {
|
|
|
4305
4305
|
}));
|
|
4306
4306
|
}
|
|
4307
4307
|
return U(() => [
|
|
4308
|
-
|
|
4309
|
-
|
|
4308
|
+
R(e.enabled),
|
|
4309
|
+
R(e.rebindKey),
|
|
4310
4310
|
e.tableRef.value
|
|
4311
4311
|
], () => {
|
|
4312
4312
|
E(r);
|
|
4313
|
-
}, { flush: "post" }), U(() =>
|
|
4313
|
+
}, { flush: "post" }), U(() => R(e.disabled), (e) => {
|
|
4314
4314
|
t && t.option("disabled", e);
|
|
4315
|
-
}),
|
|
4315
|
+
}), k(n), {
|
|
4316
4316
|
initSortable: () => E(r),
|
|
4317
4317
|
destroySortable: n
|
|
4318
4318
|
};
|
|
4319
4319
|
}
|
|
4320
4320
|
//#endregion
|
|
4321
4321
|
//#region src/components/k-table/composables/useTableTreeLoad.ts
|
|
4322
|
-
function
|
|
4322
|
+
function ca(e) {
|
|
4323
4323
|
let t = /* @__PURE__ */ new Map();
|
|
4324
4324
|
function n(n) {
|
|
4325
4325
|
return (r, i, a) => {
|
|
4326
|
-
let o =
|
|
4326
|
+
let o = ji(r, R(e.rowKey));
|
|
4327
4327
|
o != null && t.set(o, {
|
|
4328
4328
|
row: r,
|
|
4329
4329
|
treeNode: i,
|
|
@@ -4332,7 +4332,7 @@ function Qi(e) {
|
|
|
4332
4332
|
};
|
|
4333
4333
|
}
|
|
4334
4334
|
function r(n) {
|
|
4335
|
-
let r =
|
|
4335
|
+
let r = R(e.load), i = t.get(n);
|
|
4336
4336
|
if (!i || !r) return;
|
|
4337
4337
|
let a = e.tableRef.value?.store?.states?.lazyTreeNodeMap;
|
|
4338
4338
|
a && n != null && (a[String(n)] = []), r(i.row, i.treeNode, i.resolve);
|
|
@@ -4348,33 +4348,33 @@ function Qi(e) {
|
|
|
4348
4348
|
}
|
|
4349
4349
|
//#endregion
|
|
4350
4350
|
//#region src/components/k-table/composables/useKTable.ts
|
|
4351
|
-
function
|
|
4351
|
+
function la(e) {
|
|
4352
4352
|
let { props: t, emit: n, attrs: r, slots: i, tableRef: a, queryRef: o } = e, s = N({}), c = N(0), l = u(() => !!t.action), d = u(() => !!t.query?.form?.formConfigs?.length), f = u(() => !!i.header);
|
|
4353
4353
|
function p(e) {
|
|
4354
4354
|
let n = { ...e };
|
|
4355
4355
|
s.value = t.convertParams ? t.convertParams(n) : n;
|
|
4356
4356
|
}
|
|
4357
4357
|
let m = u(() => {
|
|
4358
|
-
let e =
|
|
4358
|
+
let e = Ri(t.columns, t.selectionShow);
|
|
4359
4359
|
return t.disabled && (e = e.filter((e) => e.type !== "operates" && e.prop !== "operates")), e;
|
|
4360
|
-
}), h =
|
|
4360
|
+
}), h = ra({
|
|
4361
4361
|
columns: () => t.columns,
|
|
4362
4362
|
renderColumns: m,
|
|
4363
4363
|
enableColumnCache: () => t.enableColumnCache,
|
|
4364
4364
|
tableKey: () => t.tableKey,
|
|
4365
4365
|
onDisplayChange: (e) => n("column-display-change", e),
|
|
4366
4366
|
onLayout: () => a.value?.doLayout()
|
|
4367
|
-
}), g =
|
|
4367
|
+
}), g = oa({
|
|
4368
4368
|
columns: () => t.columns,
|
|
4369
4369
|
rowKey: () => t.rowKey
|
|
4370
|
-
}), _ =
|
|
4370
|
+
}), _ = ca({
|
|
4371
4371
|
tableRef: a,
|
|
4372
4372
|
rowKey: () => t.rowKey,
|
|
4373
4373
|
load: () => t.load
|
|
4374
|
-
}), v =
|
|
4374
|
+
}), v = aa({
|
|
4375
4375
|
pagination: () => t.pagination,
|
|
4376
4376
|
hasAction: l
|
|
4377
|
-
}), y =
|
|
4377
|
+
}), y = ia({
|
|
4378
4378
|
action: t.action,
|
|
4379
4379
|
params: () => t.params,
|
|
4380
4380
|
queryParams: s,
|
|
@@ -4393,9 +4393,12 @@ function $i(e) {
|
|
|
4393
4393
|
maxHeight: t.maxHeight,
|
|
4394
4394
|
...e
|
|
4395
4395
|
};
|
|
4396
|
-
return t.load && (n.load = _.wrapLoad(t.load)), g.hasRadioColumn.value && n.highlightCurrentRow === void 0 && (n.highlightCurrentRow = r["highlight-current-row"] !== !1), n
|
|
4396
|
+
return t.load && (n.load = _.wrapLoad(t.load)), g.hasRadioColumn.value && n.highlightCurrentRow === void 0 && (n.highlightCurrentRow = r["highlight-current-row"] !== !1), typeof document < "u" && document.documentElement.classList.contains("kayak-micro-embed") && (n.tooltipOptions = {
|
|
4397
|
+
...n.tooltipOptions ?? n["tooltip-options"] ?? {},
|
|
4398
|
+
strategy: "absolute"
|
|
4399
|
+
}), n;
|
|
4397
4400
|
});
|
|
4398
|
-
|
|
4401
|
+
sa({
|
|
4399
4402
|
enabled: () => t.sort,
|
|
4400
4403
|
disabled: () => t.disabled,
|
|
4401
4404
|
tableRef: a,
|
|
@@ -4416,42 +4419,45 @@ function $i(e) {
|
|
|
4416
4419
|
function D(e) {
|
|
4417
4420
|
c.value = e.length, n("selection-change", e);
|
|
4418
4421
|
}
|
|
4422
|
+
function te(e) {
|
|
4423
|
+
n("sort-change", e);
|
|
4424
|
+
}
|
|
4419
4425
|
function O() {
|
|
4420
4426
|
a.value?.setCurrentRow();
|
|
4421
4427
|
}
|
|
4422
4428
|
function k(e) {
|
|
4423
4429
|
p(e), v.resetPage(), t.clearCurrentRowOnQuery && O(), n("query", s.value), E();
|
|
4424
4430
|
}
|
|
4425
|
-
function
|
|
4431
|
+
function j() {
|
|
4426
4432
|
n("reset"), t.selectionShow && R(), t.clearCurrentRowOnReset && O();
|
|
4427
4433
|
}
|
|
4428
|
-
function
|
|
4434
|
+
function ne(e) {
|
|
4429
4435
|
v.setCurrentPage(e), n("page-change", e), E();
|
|
4430
4436
|
}
|
|
4431
|
-
function
|
|
4437
|
+
function M(e) {
|
|
4432
4438
|
v.setPageSize(e), n("size-change", e), E();
|
|
4433
4439
|
}
|
|
4434
|
-
function
|
|
4440
|
+
function P() {
|
|
4435
4441
|
n("add");
|
|
4436
4442
|
}
|
|
4437
|
-
function
|
|
4443
|
+
function F(e, t, r) {
|
|
4438
4444
|
n("operate-click", e, t, r);
|
|
4439
4445
|
}
|
|
4440
|
-
function
|
|
4446
|
+
function re(e) {
|
|
4441
4447
|
if (!g.hasRadioColumn.value) return;
|
|
4442
4448
|
let t = g.selectRow(e);
|
|
4443
4449
|
t && n("radio-change", t, g.radioSelected.value);
|
|
4444
4450
|
}
|
|
4445
|
-
function
|
|
4446
|
-
|
|
4451
|
+
function ie(e) {
|
|
4452
|
+
re(e);
|
|
4447
4453
|
}
|
|
4448
|
-
function
|
|
4454
|
+
function ae(e, t) {
|
|
4449
4455
|
h.setColumnVisibleByKey(e, t);
|
|
4450
4456
|
}
|
|
4451
|
-
function
|
|
4457
|
+
function oe() {
|
|
4452
4458
|
return a.value;
|
|
4453
4459
|
}
|
|
4454
|
-
function
|
|
4460
|
+
function I() {
|
|
4455
4461
|
return o.value;
|
|
4456
4462
|
}
|
|
4457
4463
|
function L() {
|
|
@@ -4466,16 +4472,16 @@ function $i(e) {
|
|
|
4466
4472
|
async function B(e = !1) {
|
|
4467
4473
|
l.value && await y.refresh(e);
|
|
4468
4474
|
}
|
|
4469
|
-
function
|
|
4475
|
+
function se() {
|
|
4470
4476
|
g.clearRadioSelection(), a.value?.setCurrentRow();
|
|
4471
4477
|
}
|
|
4472
|
-
function
|
|
4478
|
+
function V(e) {
|
|
4473
4479
|
g.setRadioSelection(e);
|
|
4474
4480
|
}
|
|
4475
|
-
function
|
|
4481
|
+
function H() {
|
|
4476
4482
|
return g.getRadioSelection();
|
|
4477
4483
|
}
|
|
4478
|
-
function
|
|
4484
|
+
function ce(e) {
|
|
4479
4485
|
_.refreshTree(e);
|
|
4480
4486
|
}
|
|
4481
4487
|
return {
|
|
@@ -4493,29 +4499,30 @@ function $i(e) {
|
|
|
4493
4499
|
radioSelected: g.radioSelected,
|
|
4494
4500
|
getColumnIdentity: $,
|
|
4495
4501
|
handleSelectionChange: D,
|
|
4502
|
+
handleSortChange: te,
|
|
4496
4503
|
handleQuery: k,
|
|
4497
|
-
handleQueryReset:
|
|
4498
|
-
handlePageChange:
|
|
4499
|
-
handleSizeChange:
|
|
4500
|
-
handleAdd:
|
|
4501
|
-
handleOperateClick:
|
|
4502
|
-
handleRowClick:
|
|
4503
|
-
handleRadioChange:
|
|
4504
|
-
handleColumnVisibleChange:
|
|
4504
|
+
handleQueryReset: j,
|
|
4505
|
+
handlePageChange: ne,
|
|
4506
|
+
handleSizeChange: M,
|
|
4507
|
+
handleAdd: P,
|
|
4508
|
+
handleOperateClick: F,
|
|
4509
|
+
handleRowClick: ie,
|
|
4510
|
+
handleRadioChange: re,
|
|
4511
|
+
handleColumnVisibleChange: ae,
|
|
4505
4512
|
resetColumnDisplay: h.resetColumnDisplay,
|
|
4506
|
-
getTableRef:
|
|
4507
|
-
getQueryRef:
|
|
4513
|
+
getTableRef: oe,
|
|
4514
|
+
getQueryRef: I,
|
|
4508
4515
|
getSelection: L,
|
|
4509
4516
|
clearSelection: R,
|
|
4510
4517
|
toggleRowSelection: z,
|
|
4511
4518
|
refresh: B,
|
|
4512
|
-
clearRadioSelection:
|
|
4513
|
-
setRadioSelection:
|
|
4514
|
-
getRadioSelection:
|
|
4515
|
-
refreshTree:
|
|
4519
|
+
clearRadioSelection: se,
|
|
4520
|
+
setRadioSelection: V,
|
|
4521
|
+
getRadioSelection: H,
|
|
4522
|
+
refreshTree: ce
|
|
4516
4523
|
};
|
|
4517
4524
|
}
|
|
4518
|
-
var
|
|
4525
|
+
var ua = {
|
|
4519
4526
|
hidePagination: !1,
|
|
4520
4527
|
initTable: !0,
|
|
4521
4528
|
nullValueFormat: "--",
|
|
@@ -4529,10 +4536,10 @@ var ea = {
|
|
|
4529
4536
|
sort: !1,
|
|
4530
4537
|
data: () => [],
|
|
4531
4538
|
sortFilter: () => []
|
|
4532
|
-
},
|
|
4539
|
+
}, da = { class: "k-table__box" }, fa = { class: "k-table" }, pa = {
|
|
4533
4540
|
key: 0,
|
|
4534
4541
|
class: "k-table__loading-empty"
|
|
4535
|
-
},
|
|
4542
|
+
}, ma = { class: "k-table-footer" }, ha = /*@__PURE__*/ y({
|
|
4536
4543
|
name: "KTable",
|
|
4537
4544
|
inheritAttrs: !0,
|
|
4538
4545
|
__name: "KTable",
|
|
@@ -4562,7 +4569,7 @@ var ea = {
|
|
|
4562
4569
|
sortFilter: {},
|
|
4563
4570
|
load: { type: Function }
|
|
4564
4571
|
}, {
|
|
4565
|
-
...
|
|
4572
|
+
...ua,
|
|
4566
4573
|
data: () => []
|
|
4567
4574
|
}),
|
|
4568
4575
|
emits: [
|
|
@@ -4576,13 +4583,14 @@ var ea = {
|
|
|
4576
4583
|
"operate-click",
|
|
4577
4584
|
"column-display-change",
|
|
4578
4585
|
"radio-change",
|
|
4579
|
-
"sort-end"
|
|
4586
|
+
"sort-end",
|
|
4587
|
+
"sort-change"
|
|
4580
4588
|
],
|
|
4581
4589
|
setup(e, { expose: t, emit: n }) {
|
|
4582
|
-
let r = e, i = n, a = V(), o = N(), s = N(), l = M(
|
|
4590
|
+
let r = e, i = n, a = V(), o = N(), s = N(), l = M(la({
|
|
4583
4591
|
props: r,
|
|
4584
4592
|
emit: i,
|
|
4585
|
-
attrs:
|
|
4593
|
+
attrs: B(),
|
|
4586
4594
|
slots: a,
|
|
4587
4595
|
tableRef: o,
|
|
4588
4596
|
queryRef: s
|
|
@@ -4608,7 +4616,7 @@ var ea = {
|
|
|
4608
4616
|
refreshTree: l.refreshTree
|
|
4609
4617
|
}), (t, n) => {
|
|
4610
4618
|
let r = ie("loading");
|
|
4611
|
-
return j(), p("div",
|
|
4619
|
+
return j(), p("div", da, [l.showQuery ? (j(), d(z(ki), T({
|
|
4612
4620
|
key: 0,
|
|
4613
4621
|
ref_key: "queryRef",
|
|
4614
4622
|
ref: s,
|
|
@@ -4616,8 +4624,8 @@ var ea = {
|
|
|
4616
4624
|
}, e.query, {
|
|
4617
4625
|
onQuery: l.handleQuery,
|
|
4618
4626
|
onReset: l.handleQueryReset
|
|
4619
|
-
}), null, 16, ["onQuery", "onReset"])) : f("", !0), m("div",
|
|
4620
|
-
l.showToolbar ? (j(), d(
|
|
4627
|
+
}), null, 16, ["onQuery", "onReset"])) : f("", !0), m("div", fa, [
|
|
4628
|
+
l.showToolbar ? (j(), d($i, {
|
|
4621
4629
|
key: 0,
|
|
4622
4630
|
"add-button": e.addButton,
|
|
4623
4631
|
"selection-show": e.selectionShow,
|
|
@@ -4629,7 +4637,7 @@ var ea = {
|
|
|
4629
4637
|
key: "0"
|
|
4630
4638
|
} : void 0, e.enableColumnCache ? {
|
|
4631
4639
|
name: "extra",
|
|
4632
|
-
fn: W(() => [_(
|
|
4640
|
+
fn: W(() => [_(Ki, {
|
|
4633
4641
|
items: l.columnSelectorItems,
|
|
4634
4642
|
onChange: l.handleColumnVisibleChange,
|
|
4635
4643
|
onReset: l.resetColumnDisplay
|
|
@@ -4645,16 +4653,17 @@ var ea = {
|
|
|
4645
4653
|
"selected-count",
|
|
4646
4654
|
"onAdd"
|
|
4647
4655
|
])) : f("", !0),
|
|
4648
|
-
le((j(), d(
|
|
4656
|
+
le((j(), d(z(Fe), T({
|
|
4649
4657
|
ref_key: "tableRef",
|
|
4650
4658
|
ref: o,
|
|
4651
4659
|
class: "k-table__main"
|
|
4652
4660
|
}, l.tableProps, {
|
|
4653
4661
|
onSelectionChange: l.handleSelectionChange,
|
|
4662
|
+
onSortChange: l.handleSortChange,
|
|
4654
4663
|
onRowClick: l.handleRowClick
|
|
4655
4664
|
}), {
|
|
4656
|
-
empty: W(() => [l.showLoadingEmpty ? le((j(), p("span",
|
|
4657
|
-
default: W(() => [e.sort ? (j(), d(
|
|
4665
|
+
empty: W(() => [l.showLoadingEmpty ? le((j(), p("span", pa, null, 512)), [[r, l.showLoadingEmpty]]) : F(t.$slots, "empty", {}, () => [g(I(t.$attrs.emptyText ?? t.$attrs["empty-text"] ?? "暂无数据"), 1)], !0, 1)]),
|
|
4666
|
+
default: W(() => [e.sort ? (j(), d(z(K), {
|
|
4658
4667
|
key: 0,
|
|
4659
4668
|
label: "拖拽排序",
|
|
4660
4669
|
align: "center",
|
|
@@ -4669,7 +4678,7 @@ var ea = {
|
|
|
4669
4678
|
"aria-hidden": "true"
|
|
4670
4679
|
}, "⋮⋮", 2)], !0)]),
|
|
4671
4680
|
_: 3
|
|
4672
|
-
})) : f("", !0), (j(!0), p(c, null, P(l.renderColumns, (n, r) => (j(), d(
|
|
4681
|
+
})) : f("", !0), (j(!0), p(c, null, P(l.renderColumns, (n, r) => (j(), d(Hi, {
|
|
4673
4682
|
key: l.getColumnIdentity(n, r),
|
|
4674
4683
|
column: n,
|
|
4675
4684
|
"column-index": r,
|
|
@@ -4695,8 +4704,12 @@ var ea = {
|
|
|
4695
4704
|
"onRadioSelect"
|
|
4696
4705
|
]))), 128))]),
|
|
4697
4706
|
_: 3
|
|
4698
|
-
}, 16, [
|
|
4699
|
-
|
|
4707
|
+
}, 16, [
|
|
4708
|
+
"onSelectionChange",
|
|
4709
|
+
"onSortChange",
|
|
4710
|
+
"onRowClick"
|
|
4711
|
+
])), [[r, l.tableLoading]]),
|
|
4712
|
+
m("div", ma, [e.hidePagination ? f("", !0) : (j(), d(z(Kr), T({
|
|
4700
4713
|
key: 0,
|
|
4701
4714
|
class: "pagination"
|
|
4702
4715
|
}, l.paginationBind, {
|
|
@@ -4706,10 +4719,10 @@ var ea = {
|
|
|
4706
4719
|
])]);
|
|
4707
4720
|
};
|
|
4708
4721
|
}
|
|
4709
|
-
}),
|
|
4722
|
+
}), ga = /*#__PURE__*/ e(ha, [["__scopeId", "data-v-ccb6f7c6"]]);
|
|
4710
4723
|
//#endregion
|
|
4711
4724
|
//#region src/components/k-table/dictOptions.ts
|
|
4712
|
-
function
|
|
4725
|
+
function _a(e) {
|
|
4713
4726
|
return e.map((e) => ({
|
|
4714
4727
|
value: String(e.item_key ?? ""),
|
|
4715
4728
|
label: String(e.item_value ?? e.item_key ?? "")
|
|
@@ -4717,18 +4730,18 @@ function sa(e) {
|
|
|
4717
4730
|
}
|
|
4718
4731
|
//#endregion
|
|
4719
4732
|
//#region src/components/k-table/composables/useKTableTemplateRef.ts
|
|
4720
|
-
function
|
|
4733
|
+
function va(e) {
|
|
4721
4734
|
return H(e);
|
|
4722
4735
|
}
|
|
4723
4736
|
//#endregion
|
|
4724
4737
|
//#region src/components/k-table/composables/useKTableCrossPageSelection.ts
|
|
4725
|
-
function
|
|
4726
|
-
let t =
|
|
4738
|
+
function ya(e) {
|
|
4739
|
+
let t = oe([]), n = oe([]), r = oe(!1), i = va(e.tableRefKey ?? "tableRef");
|
|
4727
4740
|
function a() {
|
|
4728
|
-
return e.tableRef == null ? i.value :
|
|
4741
|
+
return e.tableRef == null ? i.value : R(e.tableRef);
|
|
4729
4742
|
}
|
|
4730
4743
|
function o(t) {
|
|
4731
|
-
return String(
|
|
4744
|
+
return String(ji(t, R(e.rowKey)));
|
|
4732
4745
|
}
|
|
4733
4746
|
function s(e) {
|
|
4734
4747
|
t.value = [...e];
|
|
@@ -4742,7 +4755,7 @@ function la(e) {
|
|
|
4742
4755
|
function u(i) {
|
|
4743
4756
|
n.value = i;
|
|
4744
4757
|
let s = new Set(t.value.map(o));
|
|
4745
|
-
if (
|
|
4758
|
+
if (R(e.mode) === "single") {
|
|
4746
4759
|
let e = i.find((e) => s.has(o(e)));
|
|
4747
4760
|
e && a()?.setRadioSelection(e);
|
|
4748
4761
|
return;
|
|
@@ -4776,7 +4789,7 @@ function la(e) {
|
|
|
4776
4789
|
}
|
|
4777
4790
|
//#endregion
|
|
4778
4791
|
//#region src/components/k-table/report/convertDownloadCol.ts
|
|
4779
|
-
function
|
|
4792
|
+
function ba(e) {
|
|
4780
4793
|
return e.filter((e) => e.type !== "expand").map((e) => ({
|
|
4781
4794
|
sTitle: e.label ?? "",
|
|
4782
4795
|
mDataProp: e.prop ?? "",
|
|
@@ -4786,29 +4799,29 @@ function ua(e) {
|
|
|
4786
4799
|
}
|
|
4787
4800
|
//#endregion
|
|
4788
4801
|
//#region src/components/k-table/report/pickExportColumns.ts
|
|
4789
|
-
function
|
|
4802
|
+
function xa(e, t) {
|
|
4790
4803
|
let n = e;
|
|
4791
4804
|
return t?.excludeLast && (n = n.slice(0, -1)), t?.excludeOperates && (n = n.filter((e) => e.type !== "operates" && e.prop !== "operates")), n.filter((e) => e.type !== "expand" && e.type !== "index" && e.type !== "selection" && e.type !== "radio");
|
|
4792
4805
|
}
|
|
4793
4806
|
//#endregion
|
|
4794
4807
|
//#region src/components/k-table/report/exportKTableReport.ts
|
|
4795
|
-
function
|
|
4796
|
-
let t = e.tableRef.value?.getQueryRef()?.getParams() ?? {}, n = e.convertParams ? e.convertParams(t) : t, r =
|
|
4808
|
+
function Sa(e) {
|
|
4809
|
+
let t = e.tableRef.value?.getQueryRef()?.getParams() ?? {}, n = e.convertParams ? e.convertParams(t) : t, r = xa(e.columns, e);
|
|
4797
4810
|
return e.exportApi({
|
|
4798
|
-
globColumnlist:
|
|
4811
|
+
globColumnlist: ba(r),
|
|
4799
4812
|
jsondata: n
|
|
4800
4813
|
});
|
|
4801
4814
|
}
|
|
4802
|
-
function
|
|
4803
|
-
let t =
|
|
4815
|
+
function Ca(e) {
|
|
4816
|
+
let t = xa(e.columns, e);
|
|
4804
4817
|
return e.exportApi({
|
|
4805
|
-
globColumnlist:
|
|
4818
|
+
globColumnlist: ba(t),
|
|
4806
4819
|
jsondata: e.jsondata
|
|
4807
4820
|
});
|
|
4808
4821
|
}
|
|
4809
4822
|
//#endregion
|
|
4810
4823
|
//#region src/components/k-table/report/mergeQueryConfig.ts
|
|
4811
|
-
function
|
|
4824
|
+
function wa(e, t) {
|
|
4812
4825
|
return e.map((e) => {
|
|
4813
4826
|
let n = t[e.id];
|
|
4814
4827
|
return n ? {
|
|
@@ -4820,37 +4833,37 @@ function ma(e, t) {
|
|
|
4820
4833
|
} : e;
|
|
4821
4834
|
});
|
|
4822
4835
|
}
|
|
4823
|
-
function
|
|
4836
|
+
function Ta(e, t) {
|
|
4824
4837
|
let n = e.form;
|
|
4825
4838
|
return n ? {
|
|
4826
4839
|
...e,
|
|
4827
4840
|
form: {
|
|
4828
4841
|
...n,
|
|
4829
|
-
formConfigs:
|
|
4842
|
+
formConfigs: wa(n.formConfigs ?? [], t)
|
|
4830
4843
|
}
|
|
4831
4844
|
} : e;
|
|
4832
4845
|
}
|
|
4833
|
-
function
|
|
4846
|
+
function Ea(e, t) {
|
|
4834
4847
|
return e.query ? {
|
|
4835
4848
|
...e,
|
|
4836
|
-
query:
|
|
4849
|
+
query: Ta(e.query, t)
|
|
4837
4850
|
} : e;
|
|
4838
4851
|
}
|
|
4839
4852
|
//#endregion
|
|
4840
4853
|
//#region src/components/k-table/report/useExportKTableReport.ts
|
|
4841
|
-
function
|
|
4854
|
+
function Da(e) {
|
|
4842
4855
|
let t = N(!1);
|
|
4843
4856
|
async function n() {
|
|
4844
4857
|
if (!t.value) {
|
|
4845
4858
|
t.value = !0;
|
|
4846
4859
|
try {
|
|
4847
|
-
await
|
|
4860
|
+
await Sa({
|
|
4848
4861
|
tableRef: e.tableRef,
|
|
4849
|
-
columns:
|
|
4862
|
+
columns: R(e.columns),
|
|
4850
4863
|
exportApi: e.exportApi,
|
|
4851
4864
|
convertParams: e.convertParams,
|
|
4852
|
-
excludeOperates:
|
|
4853
|
-
excludeLast:
|
|
4865
|
+
excludeOperates: R(e.excludeOperates),
|
|
4866
|
+
excludeLast: R(e.excludeLast)
|
|
4854
4867
|
});
|
|
4855
4868
|
} finally {
|
|
4856
4869
|
t.value = !1;
|
|
@@ -4864,7 +4877,7 @@ function _a(e) {
|
|
|
4864
4877
|
}
|
|
4865
4878
|
//#endregion
|
|
4866
4879
|
//#region src/components/k-upload/utils/uploadFileValue.ts
|
|
4867
|
-
function
|
|
4880
|
+
function Oa(e, t, n = {}) {
|
|
4868
4881
|
let r = `${dr(n.listType ?? "text")}${e}`;
|
|
4869
4882
|
return [{
|
|
4870
4883
|
uid: e,
|
|
@@ -4875,10 +4888,10 @@ function va(e, t, n = {}) {
|
|
|
4875
4888
|
url: r
|
|
4876
4889
|
}];
|
|
4877
4890
|
}
|
|
4878
|
-
function
|
|
4879
|
-
return Array.isArray(e) ? e : typeof e != "string" || !e ? [] :
|
|
4891
|
+
function ka(e, t = {}) {
|
|
4892
|
+
return Array.isArray(e) ? e : typeof e != "string" || !e ? [] : Oa(e, t.fileName ?? e, { listType: t.listType });
|
|
4880
4893
|
}
|
|
4881
|
-
function
|
|
4894
|
+
function Aa(e, t = {}) {
|
|
4882
4895
|
if (typeof e == "string") return e ? {
|
|
4883
4896
|
resource_id: e,
|
|
4884
4897
|
file_name: t.fileName
|
|
@@ -4892,8 +4905,8 @@ function ba(e, t = {}) {
|
|
|
4892
4905
|
imp_count: n.imp_count
|
|
4893
4906
|
};
|
|
4894
4907
|
}
|
|
4895
|
-
function
|
|
4896
|
-
let n =
|
|
4908
|
+
function ja(e, t = {}) {
|
|
4909
|
+
let n = Aa(e, t);
|
|
4897
4910
|
return {
|
|
4898
4911
|
resource_id: n?.resource_id ?? "",
|
|
4899
4912
|
file_name: n?.file_name ?? t.fileName ?? "",
|
|
@@ -4901,20 +4914,20 @@ function xa(e, t = {}) {
|
|
|
4901
4914
|
imp_count: n?.imp_count
|
|
4902
4915
|
};
|
|
4903
4916
|
}
|
|
4904
|
-
function
|
|
4917
|
+
function Ma(e) {
|
|
4905
4918
|
return !!(e.resource_id || e.imp_id);
|
|
4906
4919
|
}
|
|
4907
4920
|
//#endregion
|
|
4908
4921
|
//#region src/components/index.ts
|
|
4909
|
-
var
|
|
4922
|
+
var Na = /* @__PURE__ */ $e({
|
|
4910
4923
|
DICT_KEY: () => dt,
|
|
4911
|
-
KAffix: () =>
|
|
4912
|
-
KBreadcrumb: () =>
|
|
4924
|
+
KAffix: () => Pa,
|
|
4925
|
+
KBreadcrumb: () => Fa,
|
|
4913
4926
|
KButton: () => Y,
|
|
4914
|
-
KCard: () =>
|
|
4915
|
-
KCascader: () =>
|
|
4927
|
+
KCard: () => hi,
|
|
4928
|
+
KCascader: () => Ia,
|
|
4916
4929
|
KCheckbox: () => Ut,
|
|
4917
|
-
KColorPicker: () =>
|
|
4930
|
+
KColorPicker: () => La,
|
|
4918
4931
|
KDatePicker: () => qt,
|
|
4919
4932
|
KDialog: () => ut,
|
|
4920
4933
|
KDialogHeader: () => ct,
|
|
@@ -4923,40 +4936,40 @@ var Ca = /* @__PURE__ */ $e({
|
|
|
4923
4936
|
KIcon: () => Vr,
|
|
4924
4937
|
KInput: () => Zt,
|
|
4925
4938
|
KLinkButton: () => Gr,
|
|
4926
|
-
KLongPage: () =>
|
|
4939
|
+
KLongPage: () => mi,
|
|
4927
4940
|
KPagination: () => Kr,
|
|
4928
|
-
KPanel: () =>
|
|
4929
|
-
KPanelQuery: () =>
|
|
4941
|
+
KPanel: () => yi,
|
|
4942
|
+
KPanelQuery: () => ki,
|
|
4930
4943
|
KRadio: () => _n,
|
|
4931
4944
|
KSelect: () => rn,
|
|
4932
|
-
KTable: () =>
|
|
4945
|
+
KTable: () => ga,
|
|
4933
4946
|
KTimePicker: () => zn,
|
|
4934
4947
|
KUpload: () => hr,
|
|
4935
4948
|
countEditorHtmlWords: () => a,
|
|
4936
4949
|
countEditorWords: () => o,
|
|
4937
|
-
createUploadFileItem: () =>
|
|
4938
|
-
exportKTableReport: () =>
|
|
4939
|
-
exportKTableReportData: () =>
|
|
4950
|
+
createUploadFileItem: () => Oa,
|
|
4951
|
+
exportKTableReport: () => Sa,
|
|
4952
|
+
exportKTableReportData: () => Ca,
|
|
4940
4953
|
getAllLucideKebabNames: () => Br,
|
|
4941
4954
|
getEditorHtml: () => r,
|
|
4942
4955
|
getEditorWordCount: () => t,
|
|
4943
4956
|
getUploadConfig: () => s,
|
|
4944
|
-
hasUploadSubmitFields: () =>
|
|
4945
|
-
mapGroupDictToOptions: () =>
|
|
4957
|
+
hasUploadSubmitFields: () => Ma,
|
|
4958
|
+
mapGroupDictToOptions: () => _a,
|
|
4946
4959
|
pascalToKebab: () => Ir,
|
|
4947
4960
|
registerFormComponents: () => vr,
|
|
4948
4961
|
resolveLucideIcon: () => Lr,
|
|
4949
4962
|
toKEditorValue: () => i,
|
|
4950
4963
|
toLucidePascalName: () => Fr,
|
|
4951
|
-
toUploadFiles: () =>
|
|
4952
|
-
toUploadSubmitFields: () =>
|
|
4964
|
+
toUploadFiles: () => ka,
|
|
4965
|
+
toUploadSubmitFields: () => ja,
|
|
4953
4966
|
updateUploadConfig: () => n,
|
|
4954
|
-
useExportKTableReport: () =>
|
|
4967
|
+
useExportKTableReport: () => Da,
|
|
4955
4968
|
useHandlePageInit: () => Nr,
|
|
4956
4969
|
useKFormTemplateRef: () => Tr,
|
|
4957
|
-
useKTableCrossPageSelection: () =>
|
|
4958
|
-
useKTableTemplateRef: () =>
|
|
4959
|
-
withQueryFieldOptions: () =>
|
|
4960
|
-
}),
|
|
4970
|
+
useKTableCrossPageSelection: () => ya,
|
|
4971
|
+
useKTableTemplateRef: () => va,
|
|
4972
|
+
withQueryFieldOptions: () => Ea
|
|
4973
|
+
}), Pa = et("KAffix"), Fa = et("KBreadcrumb"), Ia = et("KCascader"), La = et("KColorPicker");
|
|
4961
4974
|
//#endregion
|
|
4962
|
-
export { Mr as A, Ut as B, Gr as C, Lr as D, Ir as E, zn as F, ut as H, _n as I, rn as L, wr as M, vr as N, Fr as O, hr as P, Zt as R, Kr as S, Br as T, ct as U, dt as V, Y as W,
|
|
4975
|
+
export { Mr as A, Ut as B, Gr as C, Lr as D, Ir as E, zn as F, ut as H, _n as I, rn as L, wr as M, vr as N, Fr as O, hr as P, Zt as R, Kr as S, Br as T, ct as U, dt as V, Y as W, ga as _, Na as a, hi as b, ka as c, Ea as d, Sa as f, _a as g, va as h, La as i, Tr as j, Nr as k, ja as l, ya as m, Fa as n, Oa as o, Ca as p, Ia as r, Ma as s, Pa as t, Da as u, ki as v, Vr as w, mi as x, yi as y, qt as z };
|