@kayak-sj/design 1.0.0 → 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-DK7g2-zP.css +1 -0
- 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/{components/k-form/formComponent/Editor.vue_vue_type_script_setup_true_lang.js → chunks/Editor-CNxCYFmc.js} +4 -3
- package/dist/chunks/ImageCutter-B4uKMA_8.js +41 -0
- package/dist/chunks/KEditor-C882CuWG.js +331 -0
- package/dist/{_virtual/_plugin-vue_export-helper.js → chunks/_plugin-vue_export-helper-B3ysoDQm.js} +1 -1
- package/dist/chunks/components-CYgOyNT1.js +4975 -0
- package/dist/chunks/editorValue-DSKvW8ty.js +65 -0
- package/dist/components/index.d.ts +0 -1
- package/dist/components/index.js +3 -91
- 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 +6 -7
- 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 +2 -3
- 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/index.js +479 -2
- 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 +4 -5
- 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/index.js +3 -3
- 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 +3 -4
- 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 +1 -2
- 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 +2 -3
- 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 +1 -2
- package/dist/components/k-form/formComponent/TreeSelect.d.ts +1 -2
- 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 +1 -2
- 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 +2 -2
- 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 +5 -6
- 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 +212 -41
- 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 +3 -3
- package/dist/_virtual/_rolldown/runtime.js +0 -11
- package/dist/components/index.d.ts.map +0 -1
- package/dist/components/k-button/KButton.d.ts.map +0 -1
- package/dist/components/k-button/KButton.js +0 -5
- package/dist/components/k-button/KButton.vue_vue_type_script_setup_true_lang.js +0 -15
- package/dist/components/k-card/KCard.d.ts.map +0 -1
- package/dist/components/k-card/KCard.js +0 -5
- package/dist/components/k-card/KCard.vue_vue_type_script_setup_true_lang.js +0 -23
- 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/KDialog.js +0 -5
- package/dist/components/k-dialog/KDialog.vue_vue_type_script_setup_true_lang.js +0 -129
- package/dist/components/k-dialog/KDialogHeader.d.ts.map +0 -1
- package/dist/components/k-dialog/KDialogHeader.js +0 -5
- package/dist/components/k-dialog/KDialogHeader.vue_vue_type_script_setup_true_lang.js +0 -42
- 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/KEcharts.js +0 -7
- package/dist/components/k-echarts/KEcharts.vue_vue_type_script_setup_true_lang.js +0 -45
- package/dist/components/k-echarts/composables/useKEcharts.d.ts.map +0 -1
- package/dist/components/k-echarts/composables/useKEcharts.js +0 -117
- package/dist/components/k-echarts/constants/echartEvents.d.ts.map +0 -1
- package/dist/components/k-echarts/constants/echartEvents.js +0 -4
- 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/customed.js +0 -285
- package/dist/components/k-echarts/themes/registerThemes.d.ts.map +0 -1
- package/dist/components/k-echarts/themes/registerThemes.js +0 -7
- 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/buildChartOptions.js +0 -23
- package/dist/components/k-echarts/utils/createToggleFeature.d.ts.map +0 -1
- package/dist/components/k-echarts/utils/createToggleFeature.js +0 -12
- package/dist/components/k-editor/KEditor.d.ts.map +0 -1
- package/dist/components/k-editor/KEditor.js +0 -7
- package/dist/components/k-editor/KEditor.vue_vue_type_script_setup_true_lang.js +0 -96
- package/dist/components/k-editor/composables/useEditorImageUpload.d.ts.map +0 -1
- package/dist/components/k-editor/composables/useEditorImageUpload.js +0 -60
- package/dist/components/k-editor/composables/useKEditor.d.ts.map +0 -1
- package/dist/components/k-editor/composables/useKEditor.js +0 -98
- package/dist/components/k-editor/composables/useKEditorConfig.d.ts.map +0 -1
- package/dist/components/k-editor/composables/useKEditorConfig.js +0 -46
- 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/editorValue.js +0 -37
- package/dist/components/k-editor/utils/registerPreviewMenu.d.ts.map +0 -1
- package/dist/components/k-editor/utils/registerPreviewMenu.js +0 -38
- package/dist/components/k-editor/utils/sanitizePasteHtml.d.ts.map +0 -1
- package/dist/components/k-editor/utils/sanitizePasteHtml.js +0 -8
- package/dist/components/k-form/KForm.d.ts.map +0 -1
- package/dist/components/k-form/KForm.js +0 -5
- package/dist/components/k-form/KForm.vue_vue_type_script_setup_true_lang.js +0 -248
- package/dist/components/k-form/KFormField.d.ts.map +0 -1
- package/dist/components/k-form/KFormField.js +0 -5
- package/dist/components/k-form/KFormField.vue_vue_type_script_setup_true_lang.js +0 -50
- package/dist/components/k-form/composables/useFormSchema.d.ts.map +0 -1
- package/dist/components/k-form/composables/useFormSchema.js +0 -36
- package/dist/components/k-form/composables/useKFormFields.d.ts.map +0 -1
- package/dist/components/k-form/composables/useKFormFields.js +0 -50
- package/dist/components/k-form/composables/useKFormModel.d.ts.map +0 -1
- package/dist/components/k-form/composables/useKFormModel.js +0 -194
- package/dist/components/k-form/composables/useKFormTemplateRef.d.ts.map +0 -1
- package/dist/components/k-form/composables/useKFormTemplateRef.js +0 -7
- package/dist/components/k-form/constants.d.ts.map +0 -1
- package/dist/components/k-form/constants.js +0 -4
- package/dist/components/k-form/formComponent/Cascader.d.ts.map +0 -1
- package/dist/components/k-form/formComponent/Cascader.js +0 -7
- package/dist/components/k-form/formComponent/Cascader.vue_vue_type_script_setup_true_lang.js +0 -45
- package/dist/components/k-form/formComponent/Cascader.vue_vue_type_style_index_0_scoped_ed0da536_lang.css +0 -1
- package/dist/components/k-form/formComponent/CheckBox.d.ts.map +0 -1
- package/dist/components/k-form/formComponent/CheckBox.js +0 -7
- package/dist/components/k-form/formComponent/CheckBox.vue_vue_type_script_setup_true_lang.js +0 -86
- package/dist/components/k-form/formComponent/CheckBox.vue_vue_type_style_index_0_scoped_fca64c11_lang.css +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/DatePicker.js +0 -7
- package/dist/components/k-form/formComponent/DatePicker.vue_vue_type_script_setup_true_lang.js +0 -144
- package/dist/components/k-form/formComponent/DatePicker.vue_vue_type_style_index_0_scoped_578e2613_lang.css +0 -1
- package/dist/components/k-form/formComponent/Editor.d.ts.map +0 -1
- package/dist/components/k-form/formComponent/Editor.js +0 -5
- package/dist/components/k-form/formComponent/Fallback.d.ts.map +0 -1
- package/dist/components/k-form/formComponent/Fallback.js +0 -5
- package/dist/components/k-form/formComponent/Fallback.vue_vue_type_script_setup_true_lang.js +0 -22
- package/dist/components/k-form/formComponent/Input.d.ts.map +0 -1
- package/dist/components/k-form/formComponent/Input.js +0 -5
- package/dist/components/k-form/formComponent/Input.vue_vue_type_script_setup_true_lang.js +0 -93
- package/dist/components/k-form/formComponent/InputMixInput.d.ts.map +0 -1
- package/dist/components/k-form/formComponent/InputMixInput.js +0 -7
- package/dist/components/k-form/formComponent/InputMixInput.vue_vue_type_script_setup_true_lang.js +0 -108
- package/dist/components/k-form/formComponent/InputMixInput.vue_vue_type_style_index_0_scoped_6fdf6265_lang.css +0 -1
- package/dist/components/k-form/formComponent/InputMixSelect.d.ts.map +0 -1
- package/dist/components/k-form/formComponent/InputMixSelect.js +0 -7
- package/dist/components/k-form/formComponent/InputMixSelect.vue_vue_type_script_setup_true_lang.js +0 -185
- package/dist/components/k-form/formComponent/InputMixSelect.vue_vue_type_style_index_0_scoped_1f46ef39_lang.css +0 -1
- package/dist/components/k-form/formComponent/InputNumber.d.ts.map +0 -1
- package/dist/components/k-form/formComponent/InputNumber.js +0 -7
- package/dist/components/k-form/formComponent/InputNumber.vue_vue_type_script_setup_true_lang.js +0 -63
- package/dist/components/k-form/formComponent/InputNumber.vue_vue_type_style_index_0_scoped_acdc4199_lang.css +0 -1
- package/dist/components/k-form/formComponent/Radio.d.ts.map +0 -1
- package/dist/components/k-form/formComponent/Radio.js +0 -7
- package/dist/components/k-form/formComponent/Radio.vue_vue_type_script_setup_true_lang.js +0 -50
- package/dist/components/k-form/formComponent/Radio.vue_vue_type_style_index_0_scoped_e0ff32b0_lang.css +0 -1
- package/dist/components/k-form/formComponent/RadioInput.d.ts.map +0 -1
- package/dist/components/k-form/formComponent/RadioInput.js +0 -7
- package/dist/components/k-form/formComponent/RadioInput.vue_vue_type_script_setup_true_lang.js +0 -130
- package/dist/components/k-form/formComponent/RadioInput.vue_vue_type_style_index_0_scoped_1543c319_lang.css +0 -1
- package/dist/components/k-form/formComponent/ScrollSelect.d.ts.map +0 -1
- package/dist/components/k-form/formComponent/ScrollSelect.js +0 -7
- package/dist/components/k-form/formComponent/ScrollSelect.vue_vue_type_script_setup_true_lang.js +0 -132
- package/dist/components/k-form/formComponent/ScrollSelect.vue_vue_type_style_index_0_scoped_dc0bba37_lang.css +0 -1
- package/dist/components/k-form/formComponent/Select.d.ts.map +0 -1
- package/dist/components/k-form/formComponent/Select.js +0 -7
- package/dist/components/k-form/formComponent/Select.vue_vue_type_script_setup_true_lang.js +0 -81
- package/dist/components/k-form/formComponent/Select.vue_vue_type_style_index_0_scoped_20fc23b7_lang.css +0 -1
- package/dist/components/k-form/formComponent/SelectMultiple.d.ts.map +0 -1
- package/dist/components/k-form/formComponent/SelectMultiple.js +0 -7
- package/dist/components/k-form/formComponent/SelectMultiple.vue_vue_type_script_setup_true_lang.js +0 -84
- package/dist/components/k-form/formComponent/SelectMultiple.vue_vue_type_style_index_0_scoped_e6ca06e1_lang.css +0 -1
- package/dist/components/k-form/formComponent/Tag.d.ts.map +0 -1
- package/dist/components/k-form/formComponent/Tag.js +0 -7
- package/dist/components/k-form/formComponent/Tag.vue_vue_type_script_setup_true_lang.js +0 -86
- package/dist/components/k-form/formComponent/Tag.vue_vue_type_style_index_0_scoped_9961a98a_lang.css +0 -1
- package/dist/components/k-form/formComponent/Text.d.ts.map +0 -1
- package/dist/components/k-form/formComponent/Text.js +0 -7
- package/dist/components/k-form/formComponent/Text.vue_vue_type_script_setup_true_lang.js +0 -19
- package/dist/components/k-form/formComponent/Text.vue_vue_type_style_index_0_scoped_9dc35114_lang.css +0 -1
- package/dist/components/k-form/formComponent/TimePicker.d.ts.map +0 -1
- package/dist/components/k-form/formComponent/TimePicker.js +0 -7
- package/dist/components/k-form/formComponent/TimePicker.vue_vue_type_script_setup_true_lang.js +0 -116
- package/dist/components/k-form/formComponent/TimePicker.vue_vue_type_style_index_0_scoped_8680ec2d_lang.css +0 -1
- package/dist/components/k-form/formComponent/TreeSelect.d.ts.map +0 -1
- package/dist/components/k-form/formComponent/TreeSelect.js +0 -5
- package/dist/components/k-form/formComponent/TreeSelect.vue_vue_type_script_setup_true_lang.js +0 -57
- package/dist/components/k-form/formComponent/Upload.d.ts.map +0 -1
- package/dist/components/k-form/formComponent/Upload.js +0 -5
- package/dist/components/k-form/formComponent/Upload.vue_vue_type_script_setup_true_lang.js +0 -64
- package/dist/components/k-form/formComponent/componentRegistry.d.ts.map +0 -1
- package/dist/components/k-form/formComponent/componentRegistry.js +0 -49
- 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/fieldValue.js +0 -83
- package/dist/components/k-form/utils/formRules.d.ts.map +0 -1
- package/dist/components/k-form/utils/formRules.js +0 -44
- package/dist/components/k-form/utils/resolveFormFieldComponent.d.ts.map +0 -1
- package/dist/components/k-form/utils/resolveFormFieldComponent.js +0 -13
- package/dist/components/k-handle-page/KHandlePage.d.ts.map +0 -1
- package/dist/components/k-handle-page/KHandlePage.js +0 -5
- package/dist/components/k-handle-page/KHandlePage.vue_vue_type_script_setup_true_lang.js +0 -105
- 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-handle-page/useHandlePageInit.js +0 -21
- package/dist/components/k-icon/KIcon.d.ts.map +0 -1
- package/dist/components/k-icon/KIcon.js +0 -7
- package/dist/components/k-icon/KIcon.vue_vue_type_script_setup_true_lang.js +0 -23
- package/dist/components/k-icon/KIcon.vue_vue_type_style_index_0_scoped_6fd081ab_lang.css +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-icon/resolveLucideIcon.js +0 -26
- package/dist/components/k-link-button/KLinkButton.d.ts.map +0 -1
- package/dist/components/k-link-button/KLinkButton.js +0 -5
- package/dist/components/k-link-button/KLinkButton.vue_vue_type_script_setup_true_lang.js +0 -58
- 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/KLongPage.js +0 -7
- package/dist/components/k-long-page/KLongPage.vue_vue_type_script_setup_true_lang.js +0 -72
- package/dist/components/k-long-page/KLongPage.vue_vue_type_style_index_0_scoped_ac934c5d_lang.css +0 -1
- package/dist/components/k-long-page/KLongPagePanel.d.ts.map +0 -1
- package/dist/components/k-long-page/KLongPagePanel.js +0 -7
- package/dist/components/k-long-page/KLongPagePanel.vue_vue_type_script_setup_true_lang.js +0 -18
- package/dist/components/k-long-page/KLongPagePanel.vue_vue_type_style_index_0_scoped_9d6e7832_lang.css +0 -1
- package/dist/components/k-long-page/composables/useLongPageNavDrag.d.ts.map +0 -1
- package/dist/components/k-long-page/composables/useLongPageNavDrag.js +0 -32
- package/dist/components/k-long-page/icons/icon-base-2.js +0 -4
- package/dist/components/k-long-page/icons/icon-base.js +0 -4
- package/dist/components/k-long-page/icons/icon-notice-2.js +0 -4
- package/dist/components/k-long-page/icons/icon-notice.js +0 -4
- package/dist/components/k-long-page/icons/icon-price-2.js +0 -4
- package/dist/components/k-long-page/icons/icon-price.js +0 -4
- package/dist/components/k-long-page/icons/icon-restrict-2.js +0 -4
- package/dist/components/k-long-page/icons/icon-restrict.js +0 -4
- package/dist/components/k-long-page/icons/icon-setup-2.js +0 -4
- package/dist/components/k-long-page/icons/icon-setup.js +0 -4
- 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/navConfigs.js +0 -23
- 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/KPagination.js +0 -5
- package/dist/components/k-pagination/KPagination.vue_vue_type_script_setup_true_lang.js +0 -36
- 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/KPanel.js +0 -5
- package/dist/components/k-panel/KPanel.vue_vue_type_script_setup_true_lang.js +0 -47
- 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/KPanelQuery.js +0 -5
- package/dist/components/k-panel-query/KPanelQuery.vue_vue_type_script_setup_true_lang.js +0 -151
- package/dist/components/k-panel-query/KPanelQueryActions.d.ts.map +0 -1
- package/dist/components/k-panel-query/KPanelQueryActions.js +0 -5
- package/dist/components/k-panel-query/KPanelQueryActions.vue_vue_type_script_setup_true_lang.js +0 -45
- package/dist/components/k-panel-query/KPanelQueryForm.d.ts.map +0 -1
- package/dist/components/k-panel-query/KPanelQueryForm.js +0 -5
- package/dist/components/k-panel-query/KPanelQueryForm.vue_vue_type_script_setup_true_lang.js +0 -55
- package/dist/components/k-panel-query/KPanelQueryItem.d.ts.map +0 -1
- package/dist/components/k-panel-query/KPanelQueryItem.js +0 -5
- package/dist/components/k-panel-query/KPanelQueryItem.vue_vue_type_script_setup_true_lang.js +0 -63
- 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/KTable.js +0 -7
- package/dist/components/k-table/KTable.vue_vue_type_script_setup_true_lang.js +0 -190
- package/dist/components/k-table/KTable.vue_vue_type_style_index_0_scoped_9ecd6487_lang.css +0 -1
- package/dist/components/k-table/KTableColumn.d.ts.map +0 -1
- package/dist/components/k-table/KTableColumn.js +0 -7
- package/dist/components/k-table/KTableColumn.vue_vue_type_script_setup_true_lang.js +0 -154
- package/dist/components/k-table/KTableColumn.vue_vue_type_style_index_0_scoped_578909bc_lang.css +0 -1
- package/dist/components/k-table/KTableColumnSelector.d.ts.map +0 -1
- package/dist/components/k-table/KTableColumnSelector.js +0 -7
- package/dist/components/k-table/KTableColumnSelector.vue_vue_type_script_setup_true_lang.js +0 -59
- package/dist/components/k-table/KTableColumnSelector.vue_vue_type_style_index_0_scoped_e0b3cf31_lang.css +0 -1
- package/dist/components/k-table/KTableToolbar.d.ts.map +0 -1
- package/dist/components/k-table/KTableToolbar.js +0 -7
- package/dist/components/k-table/KTableToolbar.vue_vue_type_script_setup_true_lang.js +0 -60
- package/dist/components/k-table/KTableToolbar.vue_vue_type_style_index_0_scoped_bff19ed1_lang.css +0 -1
- package/dist/components/k-table/composables/useColumnDisplay.d.ts.map +0 -1
- package/dist/components/k-table/composables/useColumnDisplay.js +0 -103
- package/dist/components/k-table/composables/useKTable.d.ts.map +0 -1
- package/dist/components/k-table/composables/useKTable.js +0 -179
- package/dist/components/k-table/composables/useKTableCrossPageSelection.d.ts.map +0 -1
- package/dist/components/k-table/composables/useKTableCrossPageSelection.js +0 -58
- package/dist/components/k-table/composables/useKTableTemplateRef.d.ts.map +0 -1
- package/dist/components/k-table/composables/useKTableTemplateRef.js +0 -7
- package/dist/components/k-table/composables/useTableColumns.d.ts.map +0 -1
- package/dist/components/k-table/composables/useTableColumns.js +0 -61
- package/dist/components/k-table/composables/useTableData.d.ts.map +0 -1
- package/dist/components/k-table/composables/useTableData.js +0 -47
- package/dist/components/k-table/composables/useTablePagination.d.ts.map +0 -1
- package/dist/components/k-table/composables/useTablePagination.js +0 -52
- package/dist/components/k-table/composables/useTableRadio.d.ts.map +0 -1
- package/dist/components/k-table/composables/useTableRadio.js +0 -28
- package/dist/components/k-table/composables/useTableRowSort.d.ts.map +0 -1
- package/dist/components/k-table/composables/useTableRowSort.js +0 -35
- package/dist/components/k-table/composables/useTableTreeLoad.d.ts.map +0 -1
- package/dist/components/k-table/composables/useTableTreeLoad.js +0 -32
- package/dist/components/k-table/dictOptions.d.ts.map +0 -1
- package/dist/components/k-table/dictOptions.js +0 -9
- 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/kTableProps.js +0 -17
- package/dist/components/k-table/report/convertDownloadCol.d.ts.map +0 -1
- package/dist/components/k-table/report/convertDownloadCol.js +0 -11
- package/dist/components/k-table/report/exportKTableReport.d.ts.map +0 -1
- package/dist/components/k-table/report/exportKTableReport.js +0 -19
- 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/mergeQueryConfig.js +0 -31
- package/dist/components/k-table/report/pickExportColumns.d.ts.map +0 -1
- package/dist/components/k-table/report/pickExportColumns.js +0 -7
- 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/report/useExportKTableReport.js +0 -29
- package/dist/components/k-table/types.d.ts.map +0 -1
- package/dist/components/k-table/types.js +0 -20
- package/dist/components/k-table/utils/columnIdentity.d.ts.map +0 -1
- package/dist/components/k-table/utils/columnIdentity.js +0 -6
- package/dist/components/k-table/utils/formatCellValue.d.ts.map +0 -1
- package/dist/components/k-table/utils/formatCellValue.js +0 -30
- package/dist/components/k-table/utils/rowKey.d.ts.map +0 -1
- package/dist/components/k-table/utils/rowKey.js +0 -10
- package/dist/components/k-upload/KUpload.d.ts.map +0 -1
- package/dist/components/k-upload/KUpload.js +0 -7
- package/dist/components/k-upload/KUpload.vue_vue_type_script_setup_true_lang.js +0 -355
- package/dist/components/k-upload/KUpload.vue_vue_type_style_index_0_scoped_6050c2c6_lang.css +0 -1
- package/dist/components/k-upload/components/ImageCutter.d.ts.map +0 -1
- package/dist/components/k-upload/components/ImageCutter.js +0 -7
- package/dist/components/k-upload/components/ImageCutter.vue_vue_type_script_setup_true_lang.js +0 -40
- package/dist/components/k-upload/components/UploadFileItem.d.ts.map +0 -1
- package/dist/components/k-upload/components/UploadFileItem.js +0 -7
- package/dist/components/k-upload/components/UploadFileItem.vue_vue_type_script_setup_true_lang.js +0 -73
- package/dist/components/k-upload/components/UploadFileItem.vue_vue_type_style_index_0_scoped_01959ada_lang.css +0 -1
- package/dist/components/k-upload/components/UploadInlineActions.d.ts.map +0 -1
- package/dist/components/k-upload/components/UploadInlineActions.js +0 -7
- package/dist/components/k-upload/components/UploadInlineActions.vue_vue_type_script_setup_true_lang.js +0 -39
- package/dist/components/k-upload/components/UploadInlineActions.vue_vue_type_style_index_0_scoped_55d9c320_lang.css +0 -1
- package/dist/components/k-upload/components/UploadMediaDialog.d.ts.map +0 -1
- package/dist/components/k-upload/components/UploadMediaDialog.js +0 -7
- package/dist/components/k-upload/components/UploadMediaDialog.vue_vue_type_script_setup_true_lang.js +0 -44
- package/dist/components/k-upload/components/UploadMediaDialog.vue_vue_type_style_index_0_scoped_b9720661_lang.css +0 -1
- package/dist/components/k-upload/components/UploadTipArea.d.ts.map +0 -1
- package/dist/components/k-upload/components/UploadTipArea.js +0 -7
- package/dist/components/k-upload/components/UploadTipArea.vue_vue_type_script_setup_true_lang.js +0 -26
- package/dist/components/k-upload/components/UploadTipArea.vue_vue_type_style_index_0_scoped_f2b7df65_lang.css +0 -1
- package/dist/components/k-upload/composables/useImagePreview.d.ts.map +0 -1
- package/dist/components/k-upload/composables/useImagePreview.js +0 -23
- package/dist/components/k-upload/composables/useMediaPreview.d.ts.map +0 -1
- package/dist/components/k-upload/composables/useMediaPreview.js +0 -20
- package/dist/components/k-upload/composables/useUploadFileList.d.ts.map +0 -1
- package/dist/components/k-upload/composables/useUploadFileList.js +0 -46
- package/dist/components/k-upload/composables/useUploadRequest.d.ts.map +0 -1
- package/dist/components/k-upload/composables/useUploadRequest.js +0 -43
- package/dist/components/k-upload/composables/useUploadValidation.d.ts.map +0 -1
- package/dist/components/k-upload/composables/useUploadValidation.js +0 -22
- package/dist/components/k-upload/resolveUploadAction.d.ts.map +0 -1
- package/dist/components/k-upload/resolveUploadAction.js +0 -13
- 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/components/k-upload/utils/uploadFileValue.js +0 -44
- package/dist/config/uploadConfig.d.ts.map +0 -1
- package/dist/config/uploadConfig.js +0 -29
- package/dist/index.d.ts.map +0 -1
- package/dist/theme/index.d.ts.map +0 -1
- package/dist/theme/index.js +0 -22
- package/dist/utils/createStubComponent.d.ts.map +0 -1
- package/dist/utils/createStubComponent.js +0 -43
- package/dist/utils/validators.d.ts.map +0 -1
- package/dist/utils/validators.js +0 -152
- /package/dist/{components/k-upload/components/ImageCutter.vue_vue_type_style_index_0_scoped_900b5e3b_lang.css → assets/ImageCutter-B771uShK.css} +0 -0
- /package/dist/{components/k-editor/KEditor.vue_vue_type_style_index_0_scoped_b9ef08e0_lang.css → assets/KEditor-LzsE5URl.css} +0 -0
- /package/dist/{components/k-echarts/KEcharts.vue_vue_type_style_index_0_scoped_d6da558a_lang.css → assets/index-DMxcQQBQ.css} +0 -0
|
@@ -1,190 +0,0 @@
|
|
|
1
|
-
import e from "../k-pagination/KPagination.js";
|
|
2
|
-
import t from "../k-panel-query/KPanelQuery.js";
|
|
3
|
-
import n from "./KTableColumn.js";
|
|
4
|
-
import r from "./KTableColumnSelector.js";
|
|
5
|
-
import i from "./KTableToolbar.js";
|
|
6
|
-
import { useKTable as a } from "./composables/useKTable.js";
|
|
7
|
-
import { K_TABLE_WITH_DEFAULTS as o } from "./kTableProps.js";
|
|
8
|
-
import { Fragment as s, computed as c, createBlock as l, createCommentVNode as u, createElementBlock as d, createElementVNode as f, createSlots as p, createTextVNode as m, createVNode as h, defineComponent as g, mergeDefaults as _, mergeProps as v, normalizeClass as y, openBlock as b, reactive as x, ref as S, renderList as C, renderSlot as w, resolveDirective as T, toDisplayString as E, unref as D, useAttrs as O, useSlots as k, withCtx as A, withDirectives as j } from "vue";
|
|
9
|
-
import { ElTable as M, ElTableColumn as N } from "element-plus";
|
|
10
|
-
//#region src/components/k-table/KTable.vue?vue&type=script&setup=true&lang.ts
|
|
11
|
-
var P = { class: "k-table__box" }, F = { class: "k-table" }, I = {
|
|
12
|
-
key: 0,
|
|
13
|
-
class: "k-table__loading-empty"
|
|
14
|
-
}, L = { class: "k-table-footer" }, R = /*@__PURE__*/ g({
|
|
15
|
-
name: "KTable",
|
|
16
|
-
inheritAttrs: !0,
|
|
17
|
-
__name: "KTable",
|
|
18
|
-
props: /*@__PURE__*/ _({
|
|
19
|
-
columns: {},
|
|
20
|
-
data: {},
|
|
21
|
-
action: { type: Function },
|
|
22
|
-
params: {},
|
|
23
|
-
responseConfig: {},
|
|
24
|
-
pagination: {},
|
|
25
|
-
hidePagination: { type: Boolean },
|
|
26
|
-
initTable: { type: Boolean },
|
|
27
|
-
loading: { type: Boolean },
|
|
28
|
-
nullValueFormat: {},
|
|
29
|
-
selectionShow: { type: Boolean },
|
|
30
|
-
rowKey: {},
|
|
31
|
-
maxHeight: {},
|
|
32
|
-
query: {},
|
|
33
|
-
convertParams: { type: Function },
|
|
34
|
-
addButton: { type: [Boolean, String] },
|
|
35
|
-
disabled: { type: Boolean },
|
|
36
|
-
clearCurrentRowOnQuery: { type: Boolean },
|
|
37
|
-
clearCurrentRowOnReset: { type: Boolean },
|
|
38
|
-
enableColumnCache: { type: Boolean },
|
|
39
|
-
tableKey: {},
|
|
40
|
-
sort: { type: Boolean },
|
|
41
|
-
sortFilter: {},
|
|
42
|
-
load: { type: Function }
|
|
43
|
-
}, {
|
|
44
|
-
...o,
|
|
45
|
-
data: () => []
|
|
46
|
-
}),
|
|
47
|
-
emits: [
|
|
48
|
-
"selection-change",
|
|
49
|
-
"page-change",
|
|
50
|
-
"size-change",
|
|
51
|
-
"data-loaded",
|
|
52
|
-
"query",
|
|
53
|
-
"reset",
|
|
54
|
-
"add",
|
|
55
|
-
"operate-click",
|
|
56
|
-
"column-display-change",
|
|
57
|
-
"radio-change",
|
|
58
|
-
"sort-end"
|
|
59
|
-
],
|
|
60
|
-
setup(o, { expose: g, emit: _ }) {
|
|
61
|
-
let R = o, z = _, B = k(), V = S(), H = S(), U = x(a({
|
|
62
|
-
props: R,
|
|
63
|
-
emit: z,
|
|
64
|
-
attrs: O(),
|
|
65
|
-
slots: B,
|
|
66
|
-
tableRef: V,
|
|
67
|
-
queryRef: H
|
|
68
|
-
})), W = c(() => {
|
|
69
|
-
let e = /* @__PURE__ */ new Set();
|
|
70
|
-
B.operates && e.add("operates"), B.index && e.add("index"), B.expand && e.add("expand");
|
|
71
|
-
for (let t of U.renderColumns) {
|
|
72
|
-
t.type === "expand" && e.add("expand"), t.prop && B[t.prop] && e.add(t.prop);
|
|
73
|
-
for (let n of t.operates ?? []) typeof n.slot == "string" && B[n.slot] && e.add(n.slot);
|
|
74
|
-
}
|
|
75
|
-
return [...e];
|
|
76
|
-
});
|
|
77
|
-
return g({
|
|
78
|
-
getTableRef: U.getTableRef,
|
|
79
|
-
getQueryRef: U.getQueryRef,
|
|
80
|
-
getSelection: U.getSelection,
|
|
81
|
-
clearSelection: U.clearSelection,
|
|
82
|
-
toggleRowSelection: U.toggleRowSelection,
|
|
83
|
-
refresh: U.refresh,
|
|
84
|
-
clearRadioSelection: U.clearRadioSelection,
|
|
85
|
-
setRadioSelection: U.setRadioSelection,
|
|
86
|
-
getRadioSelection: U.getRadioSelection,
|
|
87
|
-
refreshTree: U.refreshTree
|
|
88
|
-
}), (a, c) => {
|
|
89
|
-
let g = T("loading");
|
|
90
|
-
return b(), d("div", P, [U.showQuery ? (b(), l(D(t), v({
|
|
91
|
-
key: 0,
|
|
92
|
-
ref_key: "queryRef",
|
|
93
|
-
ref: H,
|
|
94
|
-
class: "k-table-query"
|
|
95
|
-
}, o.query, {
|
|
96
|
-
onQuery: U.handleQuery,
|
|
97
|
-
onReset: U.handleQueryReset
|
|
98
|
-
}), null, 16, ["onQuery", "onReset"])) : u("", !0), f("div", F, [
|
|
99
|
-
U.showToolbar ? (b(), l(i, {
|
|
100
|
-
key: 0,
|
|
101
|
-
"add-button": o.addButton,
|
|
102
|
-
"selection-show": o.selectionShow,
|
|
103
|
-
"selected-count": U.selectedCount,
|
|
104
|
-
onAdd: U.handleAdd
|
|
105
|
-
}, p({ _: 2 }, [U.hasHeaderSlot ? {
|
|
106
|
-
name: "header",
|
|
107
|
-
fn: A(() => [w(a.$slots, "header", {}, void 0, !0)]),
|
|
108
|
-
key: "0"
|
|
109
|
-
} : void 0, o.enableColumnCache ? {
|
|
110
|
-
name: "extra",
|
|
111
|
-
fn: A(() => [h(r, {
|
|
112
|
-
items: U.columnSelectorItems,
|
|
113
|
-
onChange: U.handleColumnVisibleChange,
|
|
114
|
-
onReset: U.resetColumnDisplay
|
|
115
|
-
}, null, 8, [
|
|
116
|
-
"items",
|
|
117
|
-
"onChange",
|
|
118
|
-
"onReset"
|
|
119
|
-
])]),
|
|
120
|
-
key: "1"
|
|
121
|
-
} : void 0]), 1032, [
|
|
122
|
-
"add-button",
|
|
123
|
-
"selection-show",
|
|
124
|
-
"selected-count",
|
|
125
|
-
"onAdd"
|
|
126
|
-
])) : u("", !0),
|
|
127
|
-
j((b(), l(D(M), v({
|
|
128
|
-
ref_key: "tableRef",
|
|
129
|
-
ref: V,
|
|
130
|
-
class: "k-table__main"
|
|
131
|
-
}, U.tableProps, {
|
|
132
|
-
onSelectionChange: U.handleSelectionChange,
|
|
133
|
-
onRowClick: U.handleRowClick
|
|
134
|
-
}), {
|
|
135
|
-
empty: A(() => [U.showLoadingEmpty ? j((b(), d("span", I, null, 512)), [[g, U.showLoadingEmpty]]) : w(a.$slots, "empty", {}, () => [m(E(a.$attrs.emptyText ?? a.$attrs["empty-text"] ?? "暂无数据"), 1)], !0, 1)]),
|
|
136
|
-
default: A(() => [o.sort ? (b(), l(D(N), {
|
|
137
|
-
key: 0,
|
|
138
|
-
label: "拖拽排序",
|
|
139
|
-
align: "center",
|
|
140
|
-
width: "100"
|
|
141
|
-
}, {
|
|
142
|
-
default: A(({ row: e, column: t, $index: n }) => [w(a.$slots, "sort", {
|
|
143
|
-
row: e,
|
|
144
|
-
column: t,
|
|
145
|
-
index: n
|
|
146
|
-
}, () => [f("span", {
|
|
147
|
-
class: y(o.sortFilter.includes(n) ? "ignore-elements" : "sort-handle k-table__sort-handle"),
|
|
148
|
-
"aria-hidden": "true"
|
|
149
|
-
}, "⋮⋮", 2)], !0)]),
|
|
150
|
-
_: 3
|
|
151
|
-
})) : u("", !0), (b(!0), d(s, null, C(U.renderColumns, (e, t) => (b(), l(n, {
|
|
152
|
-
key: U.getColumnIdentity(e, t),
|
|
153
|
-
column: e,
|
|
154
|
-
"column-index": t,
|
|
155
|
-
"index-offset": U.indexOffset,
|
|
156
|
-
"null-value-format": o.nullValueFormat,
|
|
157
|
-
disabled: o.disabled,
|
|
158
|
-
"row-key": o.rowKey,
|
|
159
|
-
"radio-selected": U.radioSelected,
|
|
160
|
-
onOperateClick: U.handleOperateClick,
|
|
161
|
-
onRadioSelect: U.handleRadioChange
|
|
162
|
-
}, p({ _: 2 }, [C(W.value, (e) => ({
|
|
163
|
-
name: e,
|
|
164
|
-
fn: A((t) => [w(a.$slots, e, v({ ref_for: !0 }, t ?? {}), void 0, !0)])
|
|
165
|
-
}))]), 1032, [
|
|
166
|
-
"column",
|
|
167
|
-
"column-index",
|
|
168
|
-
"index-offset",
|
|
169
|
-
"null-value-format",
|
|
170
|
-
"disabled",
|
|
171
|
-
"row-key",
|
|
172
|
-
"radio-selected",
|
|
173
|
-
"onOperateClick",
|
|
174
|
-
"onRadioSelect"
|
|
175
|
-
]))), 128))]),
|
|
176
|
-
_: 3
|
|
177
|
-
}, 16, ["onSelectionChange", "onRowClick"])), [[g, U.tableLoading]]),
|
|
178
|
-
f("div", L, [o.hidePagination ? u("", !0) : (b(), l(D(e), v({
|
|
179
|
-
key: 0,
|
|
180
|
-
class: "pagination"
|
|
181
|
-
}, U.paginationBind, {
|
|
182
|
-
onCurrentChange: U.handlePageChange,
|
|
183
|
-
onSizeChange: U.handleSizeChange
|
|
184
|
-
}), null, 16, ["onCurrentChange", "onSizeChange"])), w(a.$slots, "footer", {}, void 0, !0)])
|
|
185
|
-
])]);
|
|
186
|
-
};
|
|
187
|
-
}
|
|
188
|
-
});
|
|
189
|
-
//#endregion
|
|
190
|
-
export { R as default };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.k-table__sort-handle[data-v-9ecd6487]{cursor:grab;color:var(--el-text-color-secondary);letter-spacing:-2px;-webkit-user-select:none;user-select:none;display:inline-block}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"KTableColumn.vue.d.ts","sourceRoot":"","sources":["../../../src/components/k-table/KTableColumn.vue"],"names":[],"mappings":"AAmOA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAA;AAE7D,OAAO,KAAK,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AAIxD,QAAA,MAAM,YAAY,GAAK,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EACjD,aAAa,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,EAC9D,YAAY,mBAAmB,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC,EAC3G,gBAAgB,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC,EAClE;WA8eO,OAAO,KAAK,EAAE,WAAW,GAAG,mBAAmB,CAAC;QA1epD,aAAa;gBACL,YAAY,CAAC,CAAC,CAAC;QACvB,uCAAuC;sBACzB,MAAM;QACpB,iDAAiD;sBACnC,MAAM;QACpB,cAAc;0BACI,MAAM;QACxB,0BAA0B;mBACf,OAAO;QAClB,qCAAqC;iBAC5B,MAAM;QACf,iBAAiB;wBACD,MAAM,GAAG,MAAM,GAAG,OAAO;;;;KA6d8C,CAAC,GAAG,CAAC,OAAO,UAAU,SAAS;QAAE,oBAAoB,EAAE,MAAM,CAAC,CAAA;KAAE,GAAG,CAAC,GAAG,EAAE,CAAC;YAC5J,CAAC,OAAO,EAAE,EAAE,KAAK,IAAI;WACtB,GAAG;;;EAIP,KACQ,OAAO,KAAK,EAAE,KAAK,GAAG;IAAE,KAAK,CAAC,EAAE,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAA;CAAI,CAAC;wBACpE,OAAO,YAAY;AAAxC,wBAAyC;AACzC,KAAK,mBAAmB,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,GAAG,GAAG;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG;KAAG,CAAC,IAAI,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,CAAC,GAAG,EAAE,CAAC"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import e from "../../_virtual/_plugin-vue_export-helper.js";
|
|
2
|
-
import t from "./KTableColumn.vue_vue_type_script_setup_true_lang.js";
|
|
3
|
-
import './KTableColumn.vue_vue_type_style_index_0_scoped_578909bc_lang.css';/* empty css */
|
|
4
|
-
//#region src/components/k-table/KTableColumn.vue
|
|
5
|
-
var n = /*#__PURE__*/ e(t, [["__scopeId", "data-v-578909bc"]]);
|
|
6
|
-
//#endregion
|
|
7
|
-
export { n as default };
|
|
@@ -1,154 +0,0 @@
|
|
|
1
|
-
import e from "../k-link-button/KLinkButton.js";
|
|
2
|
-
import { getRowKeyValue as t } from "./utils/rowKey.js";
|
|
3
|
-
import { convertColumnBind as n, useCellValue as r } from "./composables/useTableColumns.js";
|
|
4
|
-
import { getColumnIdentity as i } from "./utils/columnIdentity.js";
|
|
5
|
-
import { Fragment as a, computed as o, createBlock as s, createElementBlock as c, createElementVNode as l, createSlots as u, createTextVNode as d, createVNode as f, defineComponent as p, mergeProps as m, openBlock as h, renderList as g, renderSlot as _, resolveComponent as v, toDisplayString as y, unref as b, useSlots as x, withCtx as S } from "vue";
|
|
6
|
-
import { ElRadio as C, ElTableColumn as w, ElTooltip as T } from "element-plus";
|
|
7
|
-
//#region src/components/k-table/KTableColumn.vue?vue&type=script&setup=true&lang.ts
|
|
8
|
-
var E = /*@__PURE__*/ p({
|
|
9
|
-
name: "KTableColumn",
|
|
10
|
-
__name: "KTableColumn",
|
|
11
|
-
props: {
|
|
12
|
-
column: {},
|
|
13
|
-
columnIndex: { default: 0 },
|
|
14
|
-
indexOffset: { default: 0 },
|
|
15
|
-
nullValueFormat: { default: "--" },
|
|
16
|
-
disabled: {
|
|
17
|
-
type: Boolean,
|
|
18
|
-
default: !1
|
|
19
|
-
},
|
|
20
|
-
rowKey: { default: "id" },
|
|
21
|
-
radioSelected: {
|
|
22
|
-
type: [
|
|
23
|
-
String,
|
|
24
|
-
Number,
|
|
25
|
-
Boolean
|
|
26
|
-
],
|
|
27
|
-
default: ""
|
|
28
|
-
}
|
|
29
|
-
},
|
|
30
|
-
emits: ["operate-click", "radio-select"],
|
|
31
|
-
setup(p, { emit: E }) {
|
|
32
|
-
let D = p, O = E, k = x(), { getCellDisplayValue: A } = r(D.nullValueFormat);
|
|
33
|
-
function j(e) {
|
|
34
|
-
return e ?? "";
|
|
35
|
-
}
|
|
36
|
-
let M = o(() => n(D.column)), N = (e) => D.indexOffset + e + 1, P = o(() => {
|
|
37
|
-
let e = D.column.prop;
|
|
38
|
-
return !!(e && k[j(e)]);
|
|
39
|
-
}), F = o(() => D.column.type === "operates" ? k.operates ? !0 : !!(D.column.prop && k[j(D.column.prop)]) : !1);
|
|
40
|
-
function I(e, t, n) {
|
|
41
|
-
O("operate-click", e, n, t), e.onClick?.(n, t);
|
|
42
|
-
}
|
|
43
|
-
function L(e) {
|
|
44
|
-
return typeof e.slot == "string" ? e.slot : "default";
|
|
45
|
-
}
|
|
46
|
-
function R(e) {
|
|
47
|
-
return t(e, D.rowKey);
|
|
48
|
-
}
|
|
49
|
-
return (t, n) => {
|
|
50
|
-
let r = v("KTableColumn", !0);
|
|
51
|
-
return p.column.type === "selection" ? (h(), s(b(w), m({
|
|
52
|
-
key: `${b(i)(p.column, p.columnIndex)}:selection`,
|
|
53
|
-
type: "selection"
|
|
54
|
-
}, M.value), null, 16)) : p.column.type === "index" ? (h(), s(b(w), m({ key: `${b(i)(p.column, p.columnIndex)}:index` }, M.value), {
|
|
55
|
-
default: S(({ $index: e }) => [_(t.$slots, "index", {
|
|
56
|
-
index: e,
|
|
57
|
-
displayIndex: N(e)
|
|
58
|
-
}, () => [d(y(N(e)), 1)], !0)]),
|
|
59
|
-
_: 3
|
|
60
|
-
}, 16)) : p.column.type === "radio" ? (h(), s(b(w), m({ key: `${b(i)(p.column, p.columnIndex)}:radio` }, M.value), {
|
|
61
|
-
default: S(({ row: e }) => [f(b(C), {
|
|
62
|
-
class: "k-table-column__radio",
|
|
63
|
-
"model-value": p.radioSelected,
|
|
64
|
-
label: R(e),
|
|
65
|
-
"onUpdate:modelValue": (t) => O("radio-select", e)
|
|
66
|
-
}, null, 8, [
|
|
67
|
-
"model-value",
|
|
68
|
-
"label",
|
|
69
|
-
"onUpdate:modelValue"
|
|
70
|
-
])]),
|
|
71
|
-
_: 1
|
|
72
|
-
}, 16)) : p.column.type === "operates" ? (h(), s(b(w), m({ key: `${b(i)(p.column, p.columnIndex)}:operates` }, M.value), {
|
|
73
|
-
default: S(({ row: n, column: r, $index: i }) => [F.value ? _(t.$slots, b(k).operates ? "operates" : j(p.column.prop), {
|
|
74
|
-
row: n,
|
|
75
|
-
column: r,
|
|
76
|
-
index: i
|
|
77
|
-
}, void 0, !0, 0) : (h(), s(b(e), {
|
|
78
|
-
key: 1,
|
|
79
|
-
data: p.column.operates ?? [],
|
|
80
|
-
disabled: p.disabled,
|
|
81
|
-
"table-mode": "",
|
|
82
|
-
onClick: (e, t) => I(e, t, n)
|
|
83
|
-
}, u({ _: 2 }, [g(p.column.operates ?? [], (e) => ({
|
|
84
|
-
name: L(e),
|
|
85
|
-
fn: S(({ item: a }) => [_(t.$slots, L(e), {
|
|
86
|
-
row: n,
|
|
87
|
-
column: r,
|
|
88
|
-
index: i,
|
|
89
|
-
item: a
|
|
90
|
-
}, () => [d(y(a.label), 1)], !0)])
|
|
91
|
-
}))]), 1032, [
|
|
92
|
-
"data",
|
|
93
|
-
"disabled",
|
|
94
|
-
"onClick"
|
|
95
|
-
]))]),
|
|
96
|
-
_: 3
|
|
97
|
-
}, 16)) : p.column.type === "expand" ? (h(), s(b(w), m({
|
|
98
|
-
key: `${b(i)(p.column, p.columnIndex)}:expand`,
|
|
99
|
-
type: "expand"
|
|
100
|
-
}, M.value), {
|
|
101
|
-
default: S(({ row: e, column: n, $index: r }) => [_(t.$slots, "expand", {
|
|
102
|
-
row: e,
|
|
103
|
-
column: n,
|
|
104
|
-
index: r
|
|
105
|
-
}, void 0, !0)]),
|
|
106
|
-
_: 3
|
|
107
|
-
}, 16)) : p.column.children?.length ? (h(), s(b(w), m({ key: `${b(i)(p.column, p.columnIndex)}:group` }, M.value), {
|
|
108
|
-
default: S(() => [(h(!0), c(a, null, g(p.column.children, (e, a) => (h(), s(r, {
|
|
109
|
-
key: b(i)(e, a),
|
|
110
|
-
column: e,
|
|
111
|
-
"column-index": a,
|
|
112
|
-
"index-offset": p.indexOffset,
|
|
113
|
-
"null-value-format": p.nullValueFormat,
|
|
114
|
-
disabled: p.disabled,
|
|
115
|
-
"row-key": p.rowKey,
|
|
116
|
-
"radio-selected": p.radioSelected,
|
|
117
|
-
onOperateClick: n[0] ||= (e, t, n) => O("operate-click", e, t, n),
|
|
118
|
-
onRadioSelect: n[1] ||= (e) => O("radio-select", e)
|
|
119
|
-
}, u({ _: 2 }, [g(t.$slots, (e, n) => ({
|
|
120
|
-
name: n,
|
|
121
|
-
fn: S((e) => [_(t.$slots, n, m({ ref_for: !0 }, e ?? {}), void 0, !0)])
|
|
122
|
-
}))]), 1032, [
|
|
123
|
-
"column",
|
|
124
|
-
"column-index",
|
|
125
|
-
"index-offset",
|
|
126
|
-
"null-value-format",
|
|
127
|
-
"disabled",
|
|
128
|
-
"row-key",
|
|
129
|
-
"radio-selected"
|
|
130
|
-
]))), 128))]),
|
|
131
|
-
_: 3
|
|
132
|
-
}, 16)) : (h(), s(b(w), m({ key: `${b(i)(p.column, p.columnIndex)}:default` }, M.value), u({
|
|
133
|
-
default: S(({ row: e, column: n, $index: r }) => [P.value ? _(t.$slots, j(p.column.prop), {
|
|
134
|
-
row: e,
|
|
135
|
-
column: n,
|
|
136
|
-
index: r
|
|
137
|
-
}, void 0, !0, 0) : (h(), c(a, { key: 1 }, [d(y(b(A)(p.column, e, r)), 1)], 64))]),
|
|
138
|
-
_: 2
|
|
139
|
-
}, [p.column.toolTip ? {
|
|
140
|
-
name: "header",
|
|
141
|
-
fn: S(() => [l("span", null, y(p.column.label), 1), f(b(T), {
|
|
142
|
-
content: p.column.toolTip,
|
|
143
|
-
placement: "top"
|
|
144
|
-
}, {
|
|
145
|
-
default: S(() => [...n[2] ||= [l("span", { class: "k-table-column__tip" }, "i", -1)]]),
|
|
146
|
-
_: 1
|
|
147
|
-
}, 8, ["content"])]),
|
|
148
|
-
key: "0"
|
|
149
|
-
} : void 0]), 1040));
|
|
150
|
-
};
|
|
151
|
-
}
|
|
152
|
-
});
|
|
153
|
-
//#endregion
|
|
154
|
-
export { E as default };
|
package/dist/components/k-table/KTableColumn.vue_vue_type_style_index_0_scoped_578909bc_lang.css
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.k-table-column__radio[data-v-578909bc] .el-radio__label{display:none}.k-table-column__tip[data-v-578909bc]{cursor:help;vertical-align:middle;border:1px solid;border-radius:50%;justify-content:center;align-items:center;width:14px;height:14px;margin-left:4px;font-size:10px;line-height:1;display:inline-flex}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"KTableColumnSelector.vue.d.ts","sourceRoot":"","sources":["../../../src/components/k-table/KTableColumnSelector.vue"],"names":[],"mappings":"AA+HA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAE3C,QAAA,MAAM,YAAY,GAAK,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EACjD,aAAa,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,EAC9D,YAAY,mBAAmB,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC,EAC3G,gBAAgB,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC,EAClE;WAyLO,OAAO,KAAK,EAAE,WAAW,GAAG,mBAAmB,CAAC;QArLtD,WAAW;eACJ,KAAK,CAAC;YACX,MAAM,EAAE,YAAY,CAAC,CAAC,CAAC,CAAA;YACvB,GAAG,EAAE,MAAM,CAAA;YACX,KAAK,EAAE,MAAM,CAAA;YACb,OAAO,EAAE,OAAO,CAAA;YAChB,QAAQ,EAAE,OAAO,CAAA;SAClB,CAAC;;;;KA8KuF,CAAC,GAAG,CAAC,OAAO,UAAU,SAAS;QAAE,oBAAoB,EAAE,MAAM,CAAC,CAAA;KAAE,GAAG,CAAC,GAAG,EAAE,CAAC;YAC5J,CAAC,OAAO,EAAE,EAAE,KAAK,IAAI;WACtB,GAAG;WACH,EAAE;;EAGN,KACQ,OAAO,KAAK,EAAE,KAAK,GAAG;IAAE,KAAK,CAAC,EAAE,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAA;CAAI,CAAC;wBACpE,OAAO,YAAY;AAAxC,wBAAyC;AACzC,KAAK,mBAAmB,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,GAAG,GAAG;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG;KAAG,CAAC,IAAI,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,CAAC,GAAG,EAAE,CAAC"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import e from "../../_virtual/_plugin-vue_export-helper.js";
|
|
2
|
-
import t from "./KTableColumnSelector.vue_vue_type_script_setup_true_lang.js";
|
|
3
|
-
import './KTableColumnSelector.vue_vue_type_style_index_0_scoped_e0b3cf31_lang.css';/* empty css */
|
|
4
|
-
//#region src/components/k-table/KTableColumnSelector.vue
|
|
5
|
-
var n = /*#__PURE__*/ e(t, [["__scopeId", "data-v-e0b3cf31"]]);
|
|
6
|
-
//#endregion
|
|
7
|
-
export { n as default };
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import { Fragment as e, createBlock as t, createElementBlock as n, createElementVNode as r, createTextVNode as i, createVNode as a, defineComponent as o, openBlock as s, ref as c, renderList as l, toDisplayString as u, unref as d, withCtx as f } from "vue";
|
|
2
|
-
import { ElButton as p, ElCheckbox as m, ElDivider as h, ElPopover as g } from "element-plus";
|
|
3
|
-
//#region src/components/k-table/KTableColumnSelector.vue?vue&type=script&setup=true&lang.ts
|
|
4
|
-
var _ = { class: "k-table-column-selector" }, v = { class: "k-table-column-selector__header" }, y = { class: "k-table-column-selector__content" }, b = /*@__PURE__*/ o({
|
|
5
|
-
name: "KTableColumnSelector",
|
|
6
|
-
__name: "KTableColumnSelector",
|
|
7
|
-
props: { items: {} },
|
|
8
|
-
emits: ["change", "reset"],
|
|
9
|
-
setup(o, { emit: b }) {
|
|
10
|
-
let x = b, S = c(!1);
|
|
11
|
-
function C(e, t) {
|
|
12
|
-
x("change", e, t);
|
|
13
|
-
}
|
|
14
|
-
function w() {
|
|
15
|
-
x("reset");
|
|
16
|
-
}
|
|
17
|
-
return (c, b) => (s(), t(d(g), {
|
|
18
|
-
visible: S.value,
|
|
19
|
-
"onUpdate:visible": b[0] ||= (e) => S.value = e,
|
|
20
|
-
placement: "bottom-end",
|
|
21
|
-
width: 300,
|
|
22
|
-
trigger: "click",
|
|
23
|
-
"popper-class": "k-table-column-selector__popover"
|
|
24
|
-
}, {
|
|
25
|
-
reference: f(() => [...b[1] ||= [r("button", {
|
|
26
|
-
type: "button",
|
|
27
|
-
class: "k-table-column-selector__trigger",
|
|
28
|
-
"aria-label": "列展示设置"
|
|
29
|
-
}, [r("span", { class: "k-table-column-selector__icon" })], -1)]]),
|
|
30
|
-
default: f(() => [r("div", _, [
|
|
31
|
-
r("div", v, [b[3] ||= r("span", null, "列展示", -1), a(d(p), {
|
|
32
|
-
type: "primary",
|
|
33
|
-
link: "",
|
|
34
|
-
onClick: w
|
|
35
|
-
}, {
|
|
36
|
-
default: f(() => [...b[2] ||= [i("恢复默认", -1)]]),
|
|
37
|
-
_: 1
|
|
38
|
-
})]),
|
|
39
|
-
a(d(h), { class: "k-table-column-selector__divider" }),
|
|
40
|
-
r("div", y, [(s(!0), n(e, null, l(o.items, (e) => (s(), t(d(m), {
|
|
41
|
-
key: e.key,
|
|
42
|
-
"model-value": e.checked,
|
|
43
|
-
disabled: e.disabled,
|
|
44
|
-
onChange: (t) => C(e.key, !!t)
|
|
45
|
-
}, {
|
|
46
|
-
default: f(() => [i(u(e.label), 1)]),
|
|
47
|
-
_: 2
|
|
48
|
-
}, 1032, [
|
|
49
|
-
"model-value",
|
|
50
|
-
"disabled",
|
|
51
|
-
"onChange"
|
|
52
|
-
]))), 128))])
|
|
53
|
-
])]),
|
|
54
|
-
_: 1
|
|
55
|
-
}, 8, ["visible"]));
|
|
56
|
-
}
|
|
57
|
-
});
|
|
58
|
-
//#endregion
|
|
59
|
-
export { b as default };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.k-table-column-selector__trigger[data-v-e0b3cf31]{cursor:pointer;background:0 0;border:none;justify-content:center;align-items:center;width:28px;height:28px;padding:0;display:inline-flex}.k-table-column-selector__icon[data-v-e0b3cf31]{width:18px;height:18px;color:var(--el-text-color-regular);background:linear-gradient(currentColor,currentColor) 0 2px/100% 2px no-repeat,linear-gradient(currentColor,currentColor) 0 8px/100% 2px no-repeat,linear-gradient(currentColor,currentColor) 0 14px/70% 2px no-repeat;display:inline-block}.k-table-column-selector__header[data-v-e0b3cf31]{justify-content:space-between;align-items:center;height:40px;padding:0 10px;font-size:16px;font-weight:500;display:flex}.k-table-column-selector__divider[data-v-e0b3cf31]{margin:4px 0 12px}.k-table-column-selector__content[data-v-e0b3cf31]{flex-direction:column;gap:10px;max-height:300px;padding:0 10px 10px;display:flex;overflow-y:auto}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"KTableToolbar.vue.d.ts","sourceRoot":"","sources":["../../../src/components/k-table/KTableToolbar.vue"],"names":[],"mappings":"AA0GA,KAAK,WAAW,GAAG;IACf,qBAAqB;IACrB,SAAS,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,KAAK,CAAA;IACpC,eAAe;IACf,aAAa,CAAC,EAAE,OAAO,CAAA;IACvB,aAAa;IACb,aAAa,CAAC,EAAE,MAAM,CAAA;CACvB,CAAC;AAoIJ,QAAA,IAAI,OAAO,IAAU,EAAE,QAAQ,IAAY,CAAE;AAC7C,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,GAC3C;IAAE,KAAK,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,CAAC;AAK9C,QAAA,MAAM,UAAU;;;;;eAjJA,OAAO,GAAG,MAAM,GAAG,KAAK;mBAEpB,OAAO;mBAEP,MAAM;6EAiJxB,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AAWzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import e from "../../_virtual/_plugin-vue_export-helper.js";
|
|
2
|
-
import t from "./KTableToolbar.vue_vue_type_script_setup_true_lang.js";
|
|
3
|
-
import './KTableToolbar.vue_vue_type_style_index_0_scoped_bff19ed1_lang.css';/* empty css */
|
|
4
|
-
//#region src/components/k-table/KTableToolbar.vue
|
|
5
|
-
var n = /*#__PURE__*/ e(t, [["__scopeId", "data-v-bff19ed1"]]);
|
|
6
|
-
//#endregion
|
|
7
|
-
export { n as default };
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
import e from "../k-button/KButton.js";
|
|
2
|
-
import { computed as t, createBlock as n, createCommentVNode as r, createElementBlock as i, createTextVNode as a, defineComponent as o, openBlock as s, renderSlot as c, toDisplayString as l, unref as u, useSlots as d, withCtx as f } from "vue";
|
|
3
|
-
import { Plus as p } from "@element-plus/icons-vue";
|
|
4
|
-
//#region src/components/k-table/KTableToolbar.vue?vue&type=script&setup=true&lang.ts
|
|
5
|
-
var m = {
|
|
6
|
-
key: 0,
|
|
7
|
-
class: "k-table-toolbar k-table-header"
|
|
8
|
-
}, h = {
|
|
9
|
-
key: 0,
|
|
10
|
-
class: "k-table-toolbar__main"
|
|
11
|
-
}, g = {
|
|
12
|
-
key: 1,
|
|
13
|
-
class: "k-table-toolbar__header"
|
|
14
|
-
}, _ = {
|
|
15
|
-
key: 2,
|
|
16
|
-
class: "k-table-toolbar__extra"
|
|
17
|
-
}, v = {
|
|
18
|
-
key: 1,
|
|
19
|
-
class: "k-table-toolbar__divider"
|
|
20
|
-
}, y = {
|
|
21
|
-
key: 2,
|
|
22
|
-
class: "k-table-toolbar__selection"
|
|
23
|
-
}, b = /*@__PURE__*/ o({
|
|
24
|
-
name: "KTableToolbar",
|
|
25
|
-
__name: "KTableToolbar",
|
|
26
|
-
props: {
|
|
27
|
-
addButton: {
|
|
28
|
-
type: [Boolean, String],
|
|
29
|
-
default: !1
|
|
30
|
-
},
|
|
31
|
-
selectionShow: {
|
|
32
|
-
type: Boolean,
|
|
33
|
-
default: !1
|
|
34
|
-
},
|
|
35
|
-
selectedCount: { default: 0 }
|
|
36
|
-
},
|
|
37
|
-
emits: ["add"],
|
|
38
|
-
setup(o, { emit: b }) {
|
|
39
|
-
let x = o, S = b, C = d(), w = t(() => !!(x.addButton || C.header || C.extra)), T = t(() => !!(x.addButton && x.selectionShow));
|
|
40
|
-
return (t, d) => w.value || o.selectionShow ? (s(), i("div", m, [
|
|
41
|
-
w.value ? (s(), i("div", h, [
|
|
42
|
-
o.addButton ? (s(), n(e, {
|
|
43
|
-
key: 0,
|
|
44
|
-
type: "primary",
|
|
45
|
-
icon: u(p),
|
|
46
|
-
onClick: d[0] ||= (e) => S("add")
|
|
47
|
-
}, {
|
|
48
|
-
default: f(() => [a(l(o.addButton === !0 ? "新建" : o.addButton), 1)]),
|
|
49
|
-
_: 1
|
|
50
|
-
}, 8, ["icon"])) : r("", !0),
|
|
51
|
-
u(C).header ? (s(), i("div", g, [c(t.$slots, "header", {}, void 0, !0)])) : r("", !0),
|
|
52
|
-
u(C).extra ? (s(), i("div", _, [c(t.$slots, "extra", {}, void 0, !0)])) : r("", !0)
|
|
53
|
-
])) : r("", !0),
|
|
54
|
-
T.value ? (s(), i("div", v)) : r("", !0),
|
|
55
|
-
o.selectionShow ? (s(), i("div", y, "已选择" + l(o.selectedCount) + "条数据", 1)) : r("", !0)
|
|
56
|
-
])) : r("", !0);
|
|
57
|
-
}
|
|
58
|
-
});
|
|
59
|
-
//#endregion
|
|
60
|
-
export { b as default };
|
package/dist/components/k-table/KTableToolbar.vue_vue_type_style_index_0_scoped_bff19ed1_lang.css
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.k-table-toolbar__main[data-v-bff19ed1]{align-items:center;min-height:30px;margin-bottom:4px;display:flex;position:relative}.k-table-toolbar__header[data-v-bff19ed1]{flex:1}.k-table-toolbar__extra[data-v-bff19ed1]{margin-left:auto}.k-table-toolbar__divider[data-v-bff19ed1]{background:var(--el-border-color-lighter);height:1px;margin:15px 0}.k-table-toolbar__selection[data-v-bff19ed1]{white-space:nowrap;margin-top:5px;font-size:12px}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useColumnDisplay.d.ts","sourceRoot":"","sources":["../../../../src/components/k-table/composables/useColumnDisplay.ts"],"names":[],"mappings":"AASA,OAAO,EAAsD,KAAK,gBAAgB,EAAE,MAAM,KAAK,CAAA;AAE/F,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAA;AAG5C,uDAAuD;AACvD,eAAO,MAAM,wBAAwB,+BAA+B,CAAA;AAEpE,MAAM,WAAW,uBAAuB,CAAC,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IAClE,oCAAoC;IACpC,OAAO,EAAE,gBAAgB,CAAC,YAAY,CAAC,CAAC,CAAC,EAAE,CAAC,CAAA;IAC5C,4BAA4B;IAC5B,aAAa,EAAE,gBAAgB,CAAC,YAAY,CAAC,CAAC,CAAC,EAAE,CAAC,CAAA;IAClD,+BAA+B;IAC/B,iBAAiB,EAAE,gBAAgB,CAAC,OAAO,CAAC,CAAA;IAC5C,wBAAwB;IACxB,QAAQ,EAAE,gBAAgB,CAAC,MAAM,GAAG,SAAS,CAAC,CAAA;IAC9C,cAAc;IACd,eAAe,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAAK,IAAI,CAAA;IAC5D,iBAAiB;IACjB,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAA;CACtB;AAoBD;;;;;;GAMG;AACH,wBAAgB,gBAAgB,CAAC,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,OAAO,EAAE,uBAAuB,CAAC,CAAC,CAAC;;;;;;;;;;;+BA0F7D,YAAY,CAAC,CAAC,CAAC,eAAe,MAAM,WAAW,OAAO;iCAXpD,MAAM,WAAW,OAAO;;EAgF7D"}
|
|
@@ -1,103 +0,0 @@
|
|
|
1
|
-
import { getColumnIdentity as e } from "../utils/columnIdentity.js";
|
|
2
|
-
import { computed as t, nextTick as n, onMounted as r, ref as i, toValue as a, watch as o } from "vue";
|
|
3
|
-
import { cloneDeep as s } from "lodash-es";
|
|
4
|
-
import { useLocalStorage as c } from "@vueuse/core";
|
|
5
|
-
//#region src/components/k-table/composables/useColumnDisplay.ts
|
|
6
|
-
var l = "kayak_table_column_display";
|
|
7
|
-
function u(e) {
|
|
8
|
-
return e.type === "selection" || e.type === "index" || e.type === "radio" || e.type === "expand" || e.required === !0;
|
|
9
|
-
}
|
|
10
|
-
function d(e) {
|
|
11
|
-
return !(e.type === "radio" || e.type === "expand" || e.children?.length);
|
|
12
|
-
}
|
|
13
|
-
function f(f) {
|
|
14
|
-
let p = i({}), m = i(""), h = c(l, {}), g = t(() => !!a(f.enableColumnCache)), _ = t(() => a(f.columns).filter((e) => d(e)));
|
|
15
|
-
function v() {
|
|
16
|
-
return a(f.tableKey) || m.value;
|
|
17
|
-
}
|
|
18
|
-
function y() {
|
|
19
|
-
let t = {};
|
|
20
|
-
return a(f.columns).forEach((n, r) => {
|
|
21
|
-
d(n) && (t[e(n, r)] = !0);
|
|
22
|
-
}), t;
|
|
23
|
-
}
|
|
24
|
-
function b() {
|
|
25
|
-
if (!g.value) return null;
|
|
26
|
-
let e = v();
|
|
27
|
-
return e ? h.value[e] ?? null : null;
|
|
28
|
-
}
|
|
29
|
-
function x() {
|
|
30
|
-
if (!g.value) return;
|
|
31
|
-
let e = v();
|
|
32
|
-
e && (h.value = {
|
|
33
|
-
...h.value,
|
|
34
|
-
[e]: p.value
|
|
35
|
-
});
|
|
36
|
-
}
|
|
37
|
-
function S() {
|
|
38
|
-
if (!g.value) return;
|
|
39
|
-
let e = v();
|
|
40
|
-
if (!e) return;
|
|
41
|
-
let t = { ...h.value };
|
|
42
|
-
delete t[e], h.value = t;
|
|
43
|
-
}
|
|
44
|
-
function C(t, n) {
|
|
45
|
-
let r = a(f.columns), i = r.findIndex((e) => e === t || e.prop && e.prop === t.prop && e.type === t.type);
|
|
46
|
-
return i >= 0 ? e(r[i], i) : e(t, n);
|
|
47
|
-
}
|
|
48
|
-
function w() {
|
|
49
|
-
m.value = a(f.tableKey) || `table_${Math.random().toString(36).slice(2, 11)}`;
|
|
50
|
-
let e = b();
|
|
51
|
-
p.value = e ? s(e) : y();
|
|
52
|
-
}
|
|
53
|
-
function T() {
|
|
54
|
-
n(() => f.onLayout?.());
|
|
55
|
-
}
|
|
56
|
-
function E(e, t) {
|
|
57
|
-
p.value = {
|
|
58
|
-
...p.value,
|
|
59
|
-
[e]: t
|
|
60
|
-
}, x(), f.onDisplayChange?.(p.value), T();
|
|
61
|
-
}
|
|
62
|
-
function D(e, t, n) {
|
|
63
|
-
E(C(e, t), n);
|
|
64
|
-
}
|
|
65
|
-
function O() {
|
|
66
|
-
S(), p.value = y(), f.onDisplayChange?.(p.value), T();
|
|
67
|
-
}
|
|
68
|
-
let k = t(() => {
|
|
69
|
-
let e = a(f.renderColumns);
|
|
70
|
-
return g.value ? e.filter((e, t) => {
|
|
71
|
-
if (u(e)) return !0;
|
|
72
|
-
let n = C(e, t);
|
|
73
|
-
return p.value[n] !== !1;
|
|
74
|
-
}) : e;
|
|
75
|
-
}), A = t(() => _.value.map((t, n) => {
|
|
76
|
-
let r = e(t, n);
|
|
77
|
-
return {
|
|
78
|
-
column: t,
|
|
79
|
-
key: r,
|
|
80
|
-
label: t.label || "未命名列",
|
|
81
|
-
checked: p.value[r] !== !1,
|
|
82
|
-
disabled: u(t)
|
|
83
|
-
};
|
|
84
|
-
}));
|
|
85
|
-
return o(() => a(f.columns), () => {
|
|
86
|
-
let e = y();
|
|
87
|
-
Object.keys(e).forEach((e) => {
|
|
88
|
-
p.value[e] === void 0 && (p.value[e] = !0);
|
|
89
|
-
});
|
|
90
|
-
}, { deep: !0 }), r(() => {
|
|
91
|
-
w();
|
|
92
|
-
}), {
|
|
93
|
-
columnDisplay: p,
|
|
94
|
-
displayableColumns: _,
|
|
95
|
-
visibleColumns: k,
|
|
96
|
-
selectorItems: A,
|
|
97
|
-
setColumnVisible: D,
|
|
98
|
-
setColumnVisibleByKey: E,
|
|
99
|
-
resetColumnDisplay: O
|
|
100
|
-
};
|
|
101
|
-
}
|
|
102
|
-
//#endregion
|
|
103
|
-
export { l as TABLE_COLUMN_DISPLAY_KEY, f as useColumnDisplay };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useKTable.d.ts","sourceRoot":"","sources":["../../../../src/components/k-table/composables/useKTable.ts"],"names":[],"mappings":"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"}
|