@cldemo/ui-kit 1.1.4 → 1.1.6
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/buildLibs/all/index.cjs +6 -6
- package/buildLibs/all/index.css +1 -1
- package/buildLibs/all/index.js +78 -75
- package/buildLibs/mobile/index.cjs +4 -4
- package/buildLibs/mobile/index.css +1 -1
- package/buildLibs/mobile/index.js +82 -79
- package/buildLibs/{utils/Shared/Index.vue_vue_type_script_setup_true_lang-HfnOtuMz.js → modules/shared/Index.vue_vue_type_script_setup_true_lang-4TeN_Yn-.js} +2 -2
- package/buildLibs/modules/shared/{Index.vue_vue_type_script_setup_true_lang-D9sq4n9i.js → Index.vue_vue_type_script_setup_true_lang-B-T2hoSW.js} +1 -1
- package/buildLibs/modules/shared/{Index.vue_vue_type_script_setup_true_lang-CD66oCaI.js → Index.vue_vue_type_script_setup_true_lang-BBjneEVa.js} +5 -5
- package/buildLibs/modules/shared/{Index.vue_vue_type_script_setup_true_lang-gwA_FyLx.js → Index.vue_vue_type_script_setup_true_lang-BIH4-mgs.js} +1 -1
- package/buildLibs/modules/shared/{Index.vue_vue_type_script_setup_true_lang-Bw_jRoEX.js → Index.vue_vue_type_script_setup_true_lang-BVGrVxFC.js} +1 -1
- package/buildLibs/modules/shared/{Index.vue_vue_type_script_setup_true_lang-B2Ste7lk.js → Index.vue_vue_type_script_setup_true_lang-Bi8DPjJz.js} +1 -1
- package/buildLibs/modules/shared/{Index.vue_vue_type_script_setup_true_lang-BrfAVhNV.js → Index.vue_vue_type_script_setup_true_lang-CMfPrFu4.js} +1 -1
- package/buildLibs/modules/shared/{Index.vue_vue_type_script_setup_true_lang-88gNFuK4.js → Index.vue_vue_type_script_setup_true_lang-D4je4ahg.js} +3 -3
- package/buildLibs/modules/shared/{Index.vue_vue_type_script_setup_true_lang-C6Zd584S.js → Index.vue_vue_type_script_setup_true_lang-DC1L_0IK.js} +4 -4
- package/buildLibs/modules/shared/{Index.vue_vue_type_script_setup_true_lang-BR0S3Sfl.js → Index.vue_vue_type_script_setup_true_lang-DM74NqhN.js} +8 -8
- package/buildLibs/modules/shared/{Index.vue_vue_type_script_setup_true_lang-D_73B6av.js → Index.vue_vue_type_script_setup_true_lang-DPcqZPoO.js} +2 -2
- package/buildLibs/modules/shared/{Index.vue_vue_type_script_setup_true_lang-Bj1vSCM8.js → Index.vue_vue_type_script_setup_true_lang-DPxMsZuy.js} +2 -2
- package/buildLibs/modules/shared/{Index.vue_vue_type_script_setup_true_lang-CRlBvcCg.js → Index.vue_vue_type_script_setup_true_lang-D_eRjg8p.js} +2 -2
- package/buildLibs/modules/shared/{Index.vue_vue_type_script_setup_true_lang-G8UXhRvM.js → Index.vue_vue_type_script_setup_true_lang-Df0iiX1E.js} +1 -1
- package/buildLibs/{utils/Shared/Index.vue_vue_type_script_setup_true_lang-VjIva6RM.js → modules/shared/Index.vue_vue_type_script_setup_true_lang-DjcrAnYd.js} +2 -2
- package/buildLibs/modules/shared/{Index.vue_vue_type_script_setup_true_lang-Cyi6TkkK.js → Index.vue_vue_type_script_setup_true_lang-UqloO5cR.js} +1 -1
- package/buildLibs/modules/shared/{Index.vue_vue_type_script_setup_true_lang-6Rsz2dYw.js → Index.vue_vue_type_script_setup_true_lang-ljMopEep.js} +1 -1
- package/buildLibs/modules/shared/{Index.vue_vue_type_script_setup_true_lang-CIA-Kc0M.js → Index.vue_vue_type_script_setup_true_lang-vizZ7Mti.js} +6 -5
- package/buildLibs/{utils/Shared/Index.vue_vue_type_script_setup_true_lang-F9tBnc_7.js → modules/shared/Index.vue_vue_type_script_setup_true_lang-wS3dtCDx.js} +1 -1
- package/buildLibs/modules/shared/{Index.vue_vue_type_script_setup_true_lang-BQXxDHbe.js → Index.vue_vue_type_script_setup_true_lang-x7Q4MNNE.js} +1 -1
- package/buildLibs/modules/shared/{Index.vue_vue_type_script_setup_true_lang-BbD4hLPT.js → Index.vue_vue_type_script_setup_true_lang-xpySjof2.js} +2 -2
- package/buildLibs/modules/shared/{List.vue_vue_type_script_setup_true_lang-Chy0eAps.js → List.vue_vue_type_script_setup_true_lang-F-n2xPeF.js} +1 -1
- package/buildLibs/modules/shared/{One.vue_vue_type_script_setup_true_lang-BR8b8AgK.js → One.vue_vue_type_script_setup_true_lang-BPQ-99F1.js} +1 -1
- package/buildLibs/modules/shared/{One.vue_vue_type_script_setup_true_lang-bPEj13DH.js → One.vue_vue_type_script_setup_true_lang-CnkGjequ.js} +1 -1
- package/buildLibs/modules/shared/{Validate.vue_vue_type_script_setup_true_lang-hn1Tat7L.js → Validate.vue_vue_type_script_setup_true_lang-D-BFbuqJ.js} +1 -1
- package/buildLibs/modules/ui-kit.css +1 -1
- package/buildLibs/styles/Common/Btn-base.css +4 -4
- package/buildLibs/styles/Common/IconFont-base.css +3 -3
- package/buildLibs/styles/Common/Input-base.css +16 -6
- package/buildLibs/styles/Common/Token.css +23 -2
- package/buildLibs/styles/Element/ClBadge.css +23 -5
- package/buildLibs/styles/Element/ClButton.css +1 -1
- package/buildLibs/styles/Element/ClCard.css +1 -1
- package/buildLibs/styles/Element/ClCheckbox.css +4 -4
- package/buildLibs/styles/Element/ClCheckboxOne.css +4 -4
- package/buildLibs/styles/Element/ClClipboard.css +1 -1
- package/buildLibs/styles/Element/ClEllipsis.css +1 -1
- package/buildLibs/styles/Element/ClForm.css +3 -3
- package/buildLibs/styles/Element/ClFormValidate.css +1 -1
- package/buildLibs/styles/Element/ClInputCaptcha.css +3 -3
- package/buildLibs/styles/Element/ClInputNumberStepper.css +11 -11
- package/buildLibs/styles/Element/ClInputTextarea.css +4 -3
- package/buildLibs/styles/Element/ClLoadScreen.css +1 -1
- package/buildLibs/styles/Element/ClModal.css +1 -1
- package/buildLibs/styles/Element/ClProgress.css +2 -2
- package/buildLibs/styles/Element/ClRadio.css +3 -3
- package/buildLibs/styles/Element/ClRadioOne.css +3 -3
- package/buildLibs/styles/Element/ClSlider.css +1 -1
- package/buildLibs/styles/Element/ClSwitchery.css +2 -2
- package/buildLibs/styles/Element/ClTags.css +3 -3
- package/buildLibs/styles/Element/__provide__/LoadScreen.css +1 -1
- package/buildLibs/styles/Mobile/ClBanner.css +1 -1
- package/buildLibs/styles/Mobile/ClCalendarM.css +3 -3
- package/buildLibs/styles/Mobile/ClCell.css +1 -1
- package/buildLibs/styles/Mobile/ClCellSwipe.css +2 -2
- package/buildLibs/styles/Mobile/ClCodeLegendM.css +1 -1
- package/buildLibs/styles/Mobile/ClCropperM.css +3 -3
- package/buildLibs/styles/Mobile/ClGrid.css +1 -1
- package/buildLibs/styles/Mobile/ClInputPin.css +3 -3
- package/buildLibs/styles/Mobile/ClNotifyM.css +4 -4
- package/buildLibs/styles/Mobile/ClNumberKeyboard.css +3 -3
- package/buildLibs/styles/Mobile/ClPicker.css +1 -1
- package/buildLibs/styles/Mobile/ClPickerArea.css +1 -1
- package/buildLibs/styles/Mobile/ClPickerDate.css +1 -1
- package/buildLibs/styles/Mobile/ClPickerTime.css +1 -1
- package/buildLibs/styles/Mobile/ClSharePanel.css +1 -1
- package/buildLibs/styles/Mobile/ClSidebar.css +2 -2
- package/buildLibs/styles/Mobile/ClSignature.css +1 -1
- package/buildLibs/styles/Mobile/ClSteps.css +1 -1
- package/buildLibs/styles/Mobile/ClTabbar.css +23 -5
- package/buildLibs/styles/Mobile/ClToast.css +1 -1
- package/buildLibs/styles/Mobile/__provide__/NotifyM.css +4 -4
- package/buildLibs/styles/Mobile/__provide__/Toast.css +1 -1
- package/buildLibs/styles/Web/ClAnchorNav.css +1 -1
- package/buildLibs/styles/Web/ClCalendar.css +1 -1
- package/buildLibs/styles/Web/ClCodeLegend.css +2 -2
- package/buildLibs/styles/Web/ClColorpicker.css +11 -11
- package/buildLibs/styles/Web/ClCropper.css +1 -1
- package/buildLibs/styles/Web/ClCropperPreview.css +12 -12
- package/buildLibs/styles/Web/ClDatetime.css +28 -27
- package/buildLibs/styles/Web/ClDropdownMenu.css +5 -5
- package/buildLibs/styles/Web/ClDropdownPopup.css +5 -5
- package/buildLibs/styles/Web/ClEchartsLineAxisTag.css +1 -1
- package/buildLibs/styles/Web/ClFileUpload.css +9 -9
- package/buildLibs/styles/Web/ClInputTag.css +44 -24
- package/buildLibs/styles/Web/ClPaginate.css +41 -22
- package/buildLibs/styles/Web/ClPreviewExample.css +3 -3
- package/buildLibs/styles/Web/ClSelect.css +39 -20
- package/buildLibs/styles/Web/ClSelectCascade.css +39 -20
- package/buildLibs/styles/Web/ClSelectTag.css +2 -2
- package/buildLibs/styles/Web/ClSelectTree.css +29 -10
- package/buildLibs/styles/Web/ClSelectmove.css +38 -19
- package/buildLibs/styles/Web/ClTable.css +45 -26
- package/buildLibs/styles/Web/ClTableEdit.css +1 -1
- package/buildLibs/styles/Web/ClXeditable.css +83 -63
- package/buildLibs/styles/Web/__directive__/Tooltip.css +1 -1
- package/buildLibs/styles/Web/__provide__/Alert.css +1 -1
- package/buildLibs/styles/Web/__provide__/Notify.css +3 -3
- package/buildLibs/styles/Web/__provide__/Preview.css +3 -3
- package/buildLibs/utils/Element/ClButton.cjs +1 -1
- package/buildLibs/utils/Element/ClButton.js +1 -1
- package/buildLibs/utils/Element/ClCheckbox.cjs +1 -1
- package/buildLibs/utils/Element/ClCheckbox.js +1 -1
- package/buildLibs/utils/Element/ClCheckboxOne.cjs +1 -1
- package/buildLibs/utils/Element/ClCheckboxOne.js +1 -1
- package/buildLibs/utils/Element/ClClipboard.cjs +1 -1
- package/buildLibs/utils/Element/ClClipboard.js +1 -1
- package/buildLibs/utils/Element/ClCollapse.cjs +1 -1
- package/buildLibs/utils/Element/ClCollapse.js +1 -1
- package/buildLibs/utils/Element/ClDarg.cjs +1 -1
- package/buildLibs/utils/Element/ClDarg.js +48 -46
- package/buildLibs/utils/Element/ClFormValidate.cjs +1 -1
- package/buildLibs/utils/Element/ClFormValidate.js +1 -1
- package/buildLibs/utils/Element/ClIconFont.cjs +1 -1
- package/buildLibs/utils/Element/ClIconFont.js +1 -1
- package/buildLibs/utils/Element/ClInput.cjs +1 -1
- package/buildLibs/utils/Element/ClInput.js +1 -1
- package/buildLibs/utils/Element/ClInputCaptcha.cjs +1 -1
- package/buildLibs/utils/Element/ClInputCaptcha.css +1 -1
- package/buildLibs/utils/Element/ClInputCaptcha.js +1 -1
- package/buildLibs/utils/Element/ClInputNumber.cjs +1 -1
- package/buildLibs/utils/Element/ClInputNumber.js +1 -1
- package/buildLibs/utils/Element/ClInputNumberStepper.cjs +1 -1
- package/buildLibs/utils/Element/ClInputNumberStepper.js +1 -1
- package/buildLibs/utils/Element/ClInputPassword.cjs +1 -1
- package/buildLibs/utils/Element/ClInputPassword.js +2 -2
- package/buildLibs/utils/Element/ClInputPin.css +1 -1
- package/buildLibs/utils/Element/ClInputSearch.cjs +1 -1
- package/buildLibs/utils/Element/ClInputSearch.js +1 -1
- package/buildLibs/utils/Element/ClInputTextarea.cjs +1 -1
- package/buildLibs/utils/Element/ClInputTextarea.js +1 -1
- package/buildLibs/utils/Element/ClModal.cjs +1 -1
- package/buildLibs/utils/Element/ClModal.js +1 -1
- package/buildLibs/utils/Element/ClProgress.css +1 -1
- package/buildLibs/utils/Element/ClRadio.cjs +1 -1
- package/buildLibs/utils/Element/ClRadio.js +1 -1
- package/buildLibs/utils/Element/ClRadioOne.cjs +1 -1
- package/buildLibs/utils/Element/ClRadioOne.js +1 -1
- package/buildLibs/utils/Element/ClSwitchery.css +1 -1
- package/buildLibs/utils/Element/ClTags.cjs +1 -1
- package/buildLibs/utils/Element/ClTags.js +1 -1
- package/buildLibs/utils/Mobile/ClActionSheet.cjs +1 -1
- package/buildLibs/utils/Mobile/ClActionSheet.js +1 -1
- package/buildLibs/utils/Mobile/ClBackTop.cjs +1 -1
- package/buildLibs/utils/Mobile/ClBackTop.js +1 -1
- package/buildLibs/utils/Mobile/ClBanner.cjs +1 -1
- package/buildLibs/utils/Mobile/ClBanner.css +1 -1
- package/buildLibs/utils/Mobile/ClBanner.js +1 -1
- package/buildLibs/utils/Mobile/ClCalendarM.cjs +1 -1
- package/buildLibs/utils/Mobile/ClCalendarM.js +1 -1
- package/buildLibs/utils/Mobile/ClCell.cjs +1 -1
- package/buildLibs/utils/Mobile/ClCell.css +1 -1
- package/buildLibs/utils/Mobile/ClCell.js +1 -1
- package/buildLibs/utils/Mobile/ClCellSwipe.css +1 -1
- package/buildLibs/utils/Mobile/ClCodeLegendM.cjs +1 -1
- package/buildLibs/utils/Mobile/ClCodeLegendM.js +2 -2
- package/buildLibs/utils/Mobile/ClCropperM.cjs +1 -1
- package/buildLibs/utils/Mobile/ClCropperM.js +1 -1
- package/buildLibs/utils/Mobile/ClDropdownMenuMItem.cjs +1 -1
- package/buildLibs/utils/Mobile/ClDropdownMenuMItem.js +1 -1
- package/buildLibs/utils/Mobile/ClGrid.cjs +1 -1
- package/buildLibs/utils/Mobile/ClGrid.css +1 -1
- package/buildLibs/utils/Mobile/ClGrid.js +1 -1
- package/buildLibs/utils/Mobile/ClNavBar.cjs +1 -1
- package/buildLibs/utils/Mobile/ClNavBar.js +1 -1
- package/buildLibs/utils/Mobile/ClNoticeBar.cjs +1 -1
- package/buildLibs/utils/Mobile/ClNoticeBar.js +1 -1
- package/buildLibs/utils/Mobile/ClNotifyM.cjs +1 -1
- package/buildLibs/utils/Mobile/ClNotifyM.js +1 -1
- package/buildLibs/utils/Mobile/ClNumberKeyboard.cjs +1 -1
- package/buildLibs/utils/Mobile/ClNumberKeyboard.css +1 -1
- package/buildLibs/utils/Mobile/ClNumberKeyboard.js +1 -1
- package/buildLibs/utils/Mobile/ClPickerCascader.cjs +1 -1
- package/buildLibs/utils/Mobile/ClPickerCascader.js +1 -1
- package/buildLibs/utils/Mobile/ClPullToRefresh.cjs +1 -1
- package/buildLibs/utils/Mobile/ClPullToRefresh.js +1 -1
- package/buildLibs/utils/Mobile/ClRate.cjs +1 -1
- package/buildLibs/utils/Mobile/ClRate.js +1 -1
- package/buildLibs/utils/Mobile/ClScrollCard.cjs +1 -1
- package/buildLibs/utils/Mobile/ClScrollCard.js +1 -1
- package/buildLibs/utils/Mobile/ClSharePanel.cjs +1 -1
- package/buildLibs/utils/Mobile/ClSharePanel.css +1 -1
- package/buildLibs/utils/Mobile/ClSharePanel.js +1 -1
- package/buildLibs/utils/Mobile/ClSidebar.css +1 -1
- package/buildLibs/utils/Mobile/ClSidebarSelect.cjs +1 -1
- package/buildLibs/utils/Mobile/ClSidebarSelect.js +1 -1
- package/buildLibs/utils/Mobile/ClSignature.css +1 -1
- package/buildLibs/utils/Mobile/ClSteps.cjs +1 -1
- package/buildLibs/utils/Mobile/ClSteps.css +1 -1
- package/buildLibs/utils/Mobile/ClSteps.js +1 -1
- package/buildLibs/utils/Mobile/ClTabbar.cjs +1 -1
- package/buildLibs/utils/Mobile/ClTabbar.js +1 -1
- package/buildLibs/utils/Mobile/ClToast.cjs +1 -1
- package/buildLibs/utils/Mobile/ClToast.js +1 -1
- package/buildLibs/utils/Mobile/__provide__/NotifyM.cjs +1 -1
- package/buildLibs/utils/Mobile/__provide__/NotifyM.js +1 -1
- package/buildLibs/utils/Mobile/__provide__/Toast.cjs +1 -1
- package/buildLibs/utils/Mobile/__provide__/Toast.js +1 -1
- package/buildLibs/utils/Shared/Column.css +1 -1
- package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-nAMiORzN.js → Index.vue_vue_type_script_setup_true_lang-2zp0QTNm.js} +1 -1
- package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-DZF2gj7X.js → Index.vue_vue_type_script_setup_true_lang-4I3wTvhS.js} +4 -4
- package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-CW4fM0by.js → Index.vue_vue_type_script_setup_true_lang-5WPoXMwr.js} +1 -1
- package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-qqnmaRnk.js → Index.vue_vue_type_script_setup_true_lang-98sOHlWj.js} +1 -1
- package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-j7gxlOeM.js → Index.vue_vue_type_script_setup_true_lang-B60Rs_ka.js} +1 -1
- package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-B-Mbqw1Y.js → Index.vue_vue_type_script_setup_true_lang-B6NmuslZ.js} +1 -1
- package/buildLibs/{modules/shared/Index.vue_vue_type_script_setup_true_lang-DY3tZQZe.js → utils/Shared/Index.vue_vue_type_script_setup_true_lang-B8YAhRda.js} +1 -1
- package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-De1eNjwC.js → Index.vue_vue_type_script_setup_true_lang-BGwsPv0S.js} +1 -1
- package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-Eczgr-_r.js → Index.vue_vue_type_script_setup_true_lang-BJ_m7Dj5.js} +1 -1
- package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-CsCn637u.js → Index.vue_vue_type_script_setup_true_lang-BM_FJlr9.js} +1 -1
- package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-D_YbdXMB.js → Index.vue_vue_type_script_setup_true_lang-BUscvdlk.js} +1 -1
- package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-UydTJByU.js → Index.vue_vue_type_script_setup_true_lang-BXz7Y87Q.js} +1 -1
- package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-X8d38eaU.js → Index.vue_vue_type_script_setup_true_lang-BfELTliJ.js} +1 -1
- package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-C2LGy18j.js → Index.vue_vue_type_script_setup_true_lang-Bt0l5FYh.js} +6 -5
- package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-BQSP8SA4.js → Index.vue_vue_type_script_setup_true_lang-BwwnFiXJ.js} +1 -1
- package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-DwBf338f.js → Index.vue_vue_type_script_setup_true_lang-C2zOEwJ1.js} +1 -1
- package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-D6kK-vM7.js → Index.vue_vue_type_script_setup_true_lang-C6Ou-vmn.js} +1 -1
- package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-BWeBT0aj.js → Index.vue_vue_type_script_setup_true_lang-C8euOy7Z.js} +2 -2
- package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-DtAy8lm9.js → Index.vue_vue_type_script_setup_true_lang-CAMYF15G.js} +2 -2
- package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-DXPZYc0c.js → Index.vue_vue_type_script_setup_true_lang-CSqU5Nz6.js} +1 -1
- package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-B0MJO0JM.js → Index.vue_vue_type_script_setup_true_lang-CWwycVzt.js} +3 -3
- package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-2dwwjiTV.js → Index.vue_vue_type_script_setup_true_lang-Cb8fYSc9.js} +5 -5
- package/buildLibs/{modules/shared/Index.vue_vue_type_script_setup_true_lang-CdYh3Pzs.js → utils/Shared/Index.vue_vue_type_script_setup_true_lang-D3Z2BVYR.js} +2 -2
- package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-C67qv3YC.js → Index.vue_vue_type_script_setup_true_lang-DB79nPqn.js} +1 -1
- package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-DZCt32jb.js → Index.vue_vue_type_script_setup_true_lang-DDMwfmi3.js} +2 -2
- package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-Dirpq4z0.js → Index.vue_vue_type_script_setup_true_lang-DPpZ2_Sb.js} +1 -1
- package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-BIO6Me43.js → Index.vue_vue_type_script_setup_true_lang-DUfxwsAA.js} +1 -1
- package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-CBjEJN0Y.js → Index.vue_vue_type_script_setup_true_lang-Dc4eYcq-.js} +1 -1
- package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-O_Nltaue.js → Index.vue_vue_type_script_setup_true_lang-DfAoAIa3.js} +1 -1
- package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-CsUYHAm8.js → Index.vue_vue_type_script_setup_true_lang-Dg5pJiPZ.js} +1 -1
- package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-C_exHzjc.js → Index.vue_vue_type_script_setup_true_lang-DulzCj86.js} +8 -8
- package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-DWkYiuK9.js → Index.vue_vue_type_script_setup_true_lang-DvYX7kuB.js} +1 -1
- package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-CATwJnes.js → Index.vue_vue_type_script_setup_true_lang-LeQz80jL.js} +1 -1
- package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-L4NDsLxm.js → Index.vue_vue_type_script_setup_true_lang-M5y0DMPl.js} +1 -1
- package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-DY4m6Xyj.js → Index.vue_vue_type_script_setup_true_lang-OfqQJV8-.js} +1 -1
- package/buildLibs/{modules/shared/Index.vue_vue_type_script_setup_true_lang-CEBiLDTm.js → utils/Shared/Index.vue_vue_type_script_setup_true_lang-OiTdNs2W.js} +2 -2
- package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-lKDQFZtY.js → Index.vue_vue_type_script_setup_true_lang-S9t4A2yy.js} +1 -1
- package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-2THK822S.js → Index.vue_vue_type_script_setup_true_lang-SW27GX-g.js} +1 -1
- package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-D4a5Iaue.js → Index.vue_vue_type_script_setup_true_lang-VUD3rCg5.js} +1 -1
- package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-DvN-fBNd.js → Index.vue_vue_type_script_setup_true_lang-ZNpokp-x.js} +1 -1
- package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-CYFgnd30.js → Index.vue_vue_type_script_setup_true_lang-kCemr-ml.js} +1 -1
- package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-D__hI9ud.js → Index.vue_vue_type_script_setup_true_lang-sGJNOVn3.js} +1 -1
- package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-oovIcT38.js → Index.vue_vue_type_script_setup_true_lang-vVnnJuup.js} +1 -1
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-xONe0mSK.js +1 -0
- package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-ctptavhp.js → Index.vue_vue_type_script_setup_true_lang-yXhOl-Ln.js} +2 -2
- package/buildLibs/utils/Shared/{Index.vue_vue_type_script_setup_true_lang-BpG7AHvM.js → Index.vue_vue_type_script_setup_true_lang-ywDP-ayG.js} +1 -1
- package/buildLibs/utils/Shared/Index11.css +1 -1
- package/buildLibs/utils/Shared/Index12.css +1 -1
- package/buildLibs/utils/Shared/Index13.css +1 -1
- package/buildLibs/utils/Shared/Index14.css +1 -1
- package/buildLibs/utils/Shared/Index17.css +1 -1
- package/buildLibs/utils/Shared/Index19.css +1 -1
- package/buildLibs/utils/Shared/Index20.css +1 -1
- package/buildLibs/utils/Shared/Index22.css +1 -1
- package/buildLibs/utils/Shared/Index24.css +1 -1
- package/buildLibs/utils/Shared/Index26.css +1 -1
- package/buildLibs/utils/Shared/Index31.css +1 -1
- package/buildLibs/utils/Shared/Index32.css +1 -1
- package/buildLibs/utils/Shared/Index33.css +1 -1
- package/buildLibs/utils/Shared/Index35.css +1 -1
- package/buildLibs/utils/Shared/Index36.css +1 -1
- package/buildLibs/utils/Shared/Index37.css +1 -1
- package/buildLibs/utils/Shared/Index4.css +1 -1
- package/buildLibs/utils/Shared/Index40.css +1 -1
- package/buildLibs/utils/Shared/Index5.css +1 -1
- package/buildLibs/utils/Shared/Index6.css +1 -1
- package/buildLibs/utils/Shared/Index7.css +1 -1
- package/buildLibs/utils/Shared/Index8.css +1 -1
- package/buildLibs/utils/Shared/Input.css +1 -1
- package/buildLibs/utils/Shared/List.css +1 -1
- package/buildLibs/utils/Shared/{List.vue_vue_type_script_setup_true_lang-CFCST05R.js → List.vue_vue_type_script_setup_true_lang-B75tAGde.js} +1 -1
- package/buildLibs/utils/Shared/{List.vue_vue_type_script_setup_true_lang-CRkZfB8a.js → List.vue_vue_type_script_setup_true_lang-NrDV8bOV.js} +1 -1
- package/buildLibs/utils/Shared/Notify.css +1 -1
- package/buildLibs/utils/Shared/{One.vue_vue_type_script_setup_true_lang-cviYcHLZ.js → One.vue_vue_type_script_setup_true_lang-BL5CUHVm.js} +1 -1
- package/buildLibs/utils/Shared/{One.vue_vue_type_script_setup_true_lang-HWXEDCZF.js → One.vue_vue_type_script_setup_true_lang-D3hrzxgT.js} +1 -1
- package/buildLibs/utils/Shared/{One.vue_vue_type_script_setup_true_lang-CGNfuoKE.js → One.vue_vue_type_script_setup_true_lang-DHPYObdu.js} +1 -1
- package/buildLibs/utils/Shared/{One.vue_vue_type_script_setup_true_lang-D9zWNf0s.js → One.vue_vue_type_script_setup_true_lang-DxUlP9yq.js} +1 -1
- package/buildLibs/utils/Shared/Popup.css +1 -1
- package/buildLibs/utils/Shared/{Validate.vue_vue_type_script_setup_true_lang-W46p_d7L.js → Validate.vue_vue_type_script_setup_true_lang-BYSnGTWU.js} +1 -1
- package/buildLibs/utils/Shared/{Validate.vue_vue_type_script_setup_true_lang-Jyse_5LL.js → Validate.vue_vue_type_script_setup_true_lang-DPwcfCQb.js} +1 -1
- package/buildLibs/utils/Shared/btn.css +1 -1
- package/buildLibs/utils/Shared/{index-DgQu20UC.js → index-BjDIq1u8.js} +1 -1
- package/buildLibs/utils/Shared/{index-D-7jSnpf.js → index-CBplKIwJ.js} +2 -2
- package/buildLibs/utils/Shared/index3.css +1 -1
- package/buildLibs/utils/Shared/index42.css +1 -1
- package/buildLibs/utils/Web/ClAnchorNav.cjs +1 -1
- package/buildLibs/utils/Web/ClAnchorNav.js +1 -1
- package/buildLibs/utils/Web/ClCalendar.cjs +1 -1
- package/buildLibs/utils/Web/ClCalendar.css +1 -1
- package/buildLibs/utils/Web/ClCalendar.js +1 -1
- package/buildLibs/utils/Web/ClCalendarM.css +1 -1
- package/buildLibs/utils/Web/ClCodeLegend.cjs +1 -1
- package/buildLibs/utils/Web/ClCodeLegend.css +1 -1
- package/buildLibs/utils/Web/ClCodeLegend.js +1 -1
- package/buildLibs/utils/Web/ClColorPicker.cjs +1 -1
- package/buildLibs/utils/Web/ClColorPicker.css +1 -1
- package/buildLibs/utils/Web/ClColorPicker.js +3 -3
- package/buildLibs/utils/Web/ClCropper.cjs +1 -1
- package/buildLibs/utils/Web/ClCropper.js +1 -1
- package/buildLibs/utils/Web/ClCropperM.css +1 -1
- package/buildLibs/utils/Web/ClCropperPreview.cjs +1 -1
- package/buildLibs/utils/Web/ClCropperPreview.js +4 -4
- package/buildLibs/utils/Web/ClDateTime.cjs +1 -1
- package/buildLibs/utils/Web/ClDateTime.js +1 -1
- package/buildLibs/utils/Web/ClDropdownMenu.cjs +1 -1
- package/buildLibs/utils/Web/ClDropdownMenu.js +1 -1
- package/buildLibs/utils/Web/ClEchartsLineAxisTag.cjs +1 -1
- package/buildLibs/utils/Web/ClEchartsLineAxisTag.js +1 -1
- package/buildLibs/utils/Web/ClFileUpload.cjs +1 -1
- package/buildLibs/utils/Web/ClFileUpload.js +1 -1
- package/buildLibs/utils/Web/ClInputTag.cjs +1 -1
- package/buildLibs/utils/Web/ClInputTag.js +1 -1
- package/buildLibs/utils/Web/ClPaginate.cjs +1 -1
- package/buildLibs/utils/Web/ClPaginate.js +1 -1
- package/buildLibs/utils/Web/ClPreviewExample.cjs +1 -1
- package/buildLibs/utils/Web/ClPreviewExample.js +1 -1
- package/buildLibs/utils/Web/ClSelect.cjs +1 -1
- package/buildLibs/utils/Web/ClSelect.js +1 -1
- package/buildLibs/utils/Web/ClSelectCascade.cjs +1 -1
- package/buildLibs/utils/Web/ClSelectCascade.js +1 -1
- package/buildLibs/utils/Web/ClSelectMove.cjs +1 -1
- package/buildLibs/utils/Web/ClSelectMove.css +1 -1
- package/buildLibs/utils/Web/ClSelectMove.js +4 -4
- package/buildLibs/utils/Web/ClSelectTree.cjs +1 -1
- package/buildLibs/utils/Web/ClSelectTree.css +1 -1
- package/buildLibs/utils/Web/ClSelectTree.js +2 -2
- package/buildLibs/utils/Web/ClSideMenu.cjs +1 -1
- package/buildLibs/utils/Web/ClSideMenu.js +1 -1
- package/buildLibs/utils/Web/ClTable.cjs +1 -1
- package/buildLibs/utils/Web/ClTable.css +1 -1
- package/buildLibs/utils/Web/ClTable.js +4 -4
- package/buildLibs/utils/Web/ClTableEdit.css +1 -1
- package/buildLibs/utils/Web/ClTabs.cjs +1 -1
- package/buildLibs/utils/Web/ClTabs.js +1 -1
- package/buildLibs/utils/Web/ClXEditable.cjs +1 -1
- package/buildLibs/utils/Web/ClXEditable.js +12 -12
- package/buildLibs/utils/Web/__provide__/Alert.cjs +1 -1
- package/buildLibs/utils/Web/__provide__/Alert.js +2 -2
- package/buildLibs/utils/Web/__provide__/Notify.cjs +1 -1
- package/buildLibs/utils/Web/__provide__/Notify.js +1 -1
- package/buildLibs/utils/Web/__provide__/Preview.cjs +1 -1
- package/buildLibs/utils/Web/__provide__/Preview.js +1 -1
- package/buildLibs/web/index.cjs +5 -5
- package/buildLibs/web/index.css +1 -1
- package/buildLibs/web/index.js +77 -74
- package/docs/tokens/design-token.md +25 -4
- package/fonts/iconfont.css +7 -3
- package/fonts/iconfont.ttf +0 -0
- package/fonts/iconfont.woff +0 -0
- package/fonts/iconfont.woff2 +0 -0
- package/package.json +1 -1
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-CFZ5jK-q.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("vue"),Fe=require("@cldemo/ui-kit/common/log"),i=require("@cldemo/ui-kit/common/base"),V=require("@cldemo/ui-kit/common/Element"),it=require("@cldemo/ui-kit/common/Element/Event"),rt=require("../Shared/One.vue_vue_type_script_setup_true_lang-D9zWNf0s.js"),ct=require("../Shared/Index.vue_vue_type_script_setup_true_lang-CFZ5jK-q.js"),dt=require("../Shared/index-q2CbfC2a.js"),Wt=require("../Shared/One.vue_vue_type_script_setup_true_lang-CGNfuoKE.js"),nt=require("../Shared/Index.vue_vue_type_script_setup_true_lang-CZNVHUR1.js"),Pt=require("../Shared/language-BJ4aVgHI.js"),$t=require("../Shared/Ing.vue_vue_type_script_setup_true_lang-DaWKYdkt.js"),Mt=require("../Shared/Index.vue_vue_type_script_setup_true_lang-nAMiORzN.js"),at=require("../Shared/Index.vue_vue_type_script_setup_true_lang-DBrrIpHb.js");;/* empty css */const ut=l=>{if(i.isNonEmptyString(l)){if(l.indexOf("clIcon-")===0){const m=l.substring(7);return i.isNonEmptyString(m)&&/^[a-zA-Z0-9-]+$/.test(m)?{name:m,className:""}:{name:"question-circle",className:""}}return/^clicon/i.test(l)?{name:"question-circle",className:""}:/^[a-zA-Z0-9-]+$/.test(l)?{name:l,className:""}:{name:"",className:l}}return{name:"question-circle",className:""}},At=["aria-sort"],Ht=e.defineComponent({name:"ClTableTh",directives:{cltooltip:dt.tooltipDirectives},__name:"Th",props:{isOrder:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},orderSort:{type:Array,default:()=>[]},isUseScrollX:{type:Boolean,default:!1},thIndex:{type:Number,default:0},thInfo:{type:Object,default:()=>({})},fixedLeftIndex:{type:Number,default:-1},fixedRightIndex:{type:Number,default:-1},isInlineWidth:{type:Boolean,default:!1},widthClassPrefix:{type:String,default:"width-"},widthMinClassPrefix:{type:String,default:"width-min-"}},emits:{onClickOrderBy:(l,m,x)=>!0},setup(l,{emit:m}){const x=l,n=m,I=e.computed(()=>ut(x.thInfo?.tipIcon)),w=e.computed(()=>i.isObject(x.thInfo)&&!i.isEmpty(x.thInfo)?x.thInfo:{}),A=e.computed(()=>!x.isOrder||i.isEmpty(w.value)?!1:i.isEmpty(w.value.sort)?!0:w.value.sort===!0),E=e.computed(()=>A.value&&!x.disabled),S=e.computed(()=>{const g=x.thInfo?.tipMsg;if(!i.isNonEmptyString(g))return;const k=i.removeHTMLTags(g);return i.isNonEmptyString(k)?k:void 0}),s=e.computed(()=>{if(!A.value)return"";const g=i.isEmpty(x.orderSort)?[]:x.orderSort;return g.length>0&&g[0]===x.thIndex?g.length===2?g[1]==="asc"||g[1]==="desc"?g[1]:"none":g.length===1?"desc":"none":"none"}),B=e.computed(()=>{if(s.value==="asc")return"ascending";if(s.value==="desc")return"descending";if(s.value==="none")return"none"}),X=e.computed(()=>{const g={},k=w.value;if(!i.isEmpty(k.width)&&z(k.width)&&(g[`${x.widthClassPrefix}${k.width}`]=!0),!i.isEmpty(k.widthMin)&&z(k.widthMin)&&x.isUseScrollX&&(g[`${x.widthMinClassPrefix}${k.widthMin}`]=!0),(x.fixedLeftIndex>-1||x.fixedRightIndex>-1)&&(g["th-hidden"]=x.fixedLeftIndex>-1&&x.thIndex>x.fixedLeftIndex||x.fixedRightIndex>-1&&x.thIndex<x.fixedRightIndex),A.value){g["th-sort"]=!0,g["sort-none"]=!0,g["th-sort-near"]=k.sortNear===!0;const j=s.value;(j==="asc"||j==="desc")&&(g[`sort-${j}`]=!0,g["sort-none"]=!1)}i.isNonEmptyString(k.tipMsg)&&(g["th-tip"]=!0,g["th-tip-sideAlign"]=k.tipSideAlign===!0),x.disabled&&(g["th-disabled"]=!0),i.isNonEmptyString(k.textAlign)&&i.isExistValue(["left","center","right"],k.textAlign)&&(g[`text-${k.textAlign}`]=!0);let W=g;return W=i.getJsonMerge(W,V.getClassNameJson(k.className)),W=i.getJsonMerge(W,V.getClassNameJson(k.classTh)),W}),Z=e.computed(()=>{const g={};if(!x.isInlineWidth)return g;const k=w.value;return!i.isEmpty(k.width)&&z(k.width)&&(g.width=i.isFinite(Number(k.width))?`${Number(k.width)}px`:`${k.width}`),!i.isEmpty(k.widthMin)&&z(k.widthMin)&&x.isUseScrollX&&(g.minWidth=i.isFinite(Number(k.widthMin))?`${Number(k.widthMin)}px`:`${k.widthMin}`),g}),Y=(g,k)=>{n("onClickOrderBy",g,x.thIndex,k)},z=g=>i.isString(g)||i.getTypeof(g)==="number"&&i.isFinite(g),$=()=>{if(E.value){const g=s.value==="desc"?"asc":"desc";Y(w.value,g)}};return(g,k)=>{const W=e.resolveDirective("cltooltip");return!e.unref(i).isBoolean(l.thInfo?.visible)||l.thInfo.visible?(e.openBlock(),e.createElementBlock("th",{key:0,class:e.normalizeClass(X.value),style:e.normalizeStyle(Z.value),scope:"col","aria-sort":B.value},[e.createElementVNode("span",{class:"th-title",onClick:$},[e.renderSlot(g.$slots,"default")]),e.unref(i).isNonEmptyString(l.thInfo?.tipMsg)?e.withDirectives((e.openBlock(),e.createBlock(ct._sfc_main,{key:0,name:I.value.name,className:I.value.className,class:"th-tip-icon",role:"img","aria-label":S.value},null,8,["name","className","aria-label"])),[[W,{html:l.thInfo.tipMsg,className:"tooltip-modal"}]]):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[],64)),s.value!==""?(e.openBlock(),e.createElementBlock("i",{key:2,class:"tr-sort-icon","aria-hidden":"true",onClick:$})):(e.openBlock(),e.createElementBlock(e.Fragment,{key:3},[],64))],14,At)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[],64))}}}),Ue=e.defineComponent({name:"ClTableTd",directives:{cltooltip:dt.tooltipDirectives},__name:"Td",props:{tdIndex:{type:Number,default:0},tdInfo:{type:Object,default:()=>({})},isOrder:{type:Boolean,default:!1},isUseScrollX:{type:Boolean,default:!1},fixedLeftIndex:{type:Number,default:-1},fixedRightIndex:{type:Number,default:-1},isInlineWidth:{type:Boolean,default:!1},widthClassPrefix:{type:String,default:"width-"},widthMinClassPrefix:{type:String,default:"width-min-"},useType:{type:String,default:"td",validator:l=>["td","total"].indexOf(l)>-1}},setup(l){const m=l,x=e.computed(()=>ut(m.tdInfo?.tipIcon)),n=e.computed(()=>i.isEmpty(m.tdInfo)?{}:m.tdInfo),I=e.computed(()=>{const S=m.tdInfo?.tipMsg;if(!i.isNonEmptyString(S))return;const s=i.removeHTMLTags(S);return i.isNonEmptyString(s)?s:void 0}),w=e.computed(()=>{const S={},s=n.value;!i.isEmpty(s.width)&&E(s.width)&&(S[`${m.widthClassPrefix}${s.width}`]=!0),!i.isEmpty(s.widthMin)&&E(s.widthMin)&&m.isUseScrollX&&(S[`${m.widthMinClassPrefix}${s.widthMin}`]=!0),(m.fixedLeftIndex>-1||m.fixedRightIndex>-1)&&(S["td-hidden"]=m.fixedLeftIndex>-1&&m.tdIndex>m.fixedLeftIndex||m.fixedRightIndex>-1&&m.tdIndex<m.fixedRightIndex),m.isOrder&&(i.isEmpty(s.sort)||s.sort===!0)&&(S["td-sort"]=!0,S["td-sort-near"]=s.sortNear===!0),i.isNonEmptyString(s.tipMsg)&&(S["td-tip"]=!0,S["td-tip-sideAlign"]=s.tipSideAlign===!0),i.isNonEmptyString(s.textAlign)&&i.isExistValue(["left","center","right"],s.textAlign)&&(S[`text-${s.textAlign}`]=!0);let B=S;return B=i.getJsonMerge(B,V.getClassNameJson(s.className)),m.useType==="td"?B=i.getJsonMerge(B,V.getClassNameJson(s.classTd)):m.useType==="total"&&(B=i.getJsonMerge(B,V.getClassNameJson(s.classTotal))),B}),A=e.computed(()=>{const S={};if(!m.isInlineWidth)return S;const s=n.value;return!i.isEmpty(s.width)&&E(s.width)&&(S.width=i.isFinite(Number(s.width))?`${Number(s.width)}px`:`${s.width}`),!i.isEmpty(s.widthMin)&&E(s.widthMin)&&m.isUseScrollX&&(S.minWidth=i.isFinite(Number(s.widthMin))?`${Number(s.widthMin)}px`:`${s.widthMin}`),S}),E=S=>i.isString(S)||i.getTypeof(S)==="number"&&i.isFinite(S);return(S,s)=>{const B=e.resolveDirective("cltooltip");return!e.unref(i).isBoolean(l.tdInfo?.visible)||l.tdInfo.visible?(e.openBlock(),e.createElementBlock("td",{key:0,class:e.normalizeClass(w.value),style:e.normalizeStyle(A.value)},[e.renderSlot(S.$slots,"default"),e.unref(i).isNonEmptyString(l.tdInfo?.tipMsg)?e.withDirectives((e.openBlock(),e.createBlock(ct._sfc_main,{key:0,name:x.value.name,className:x.value.className,class:"td-tip-icon",role:"img","aria-label":I.value},null,8,["name","className","aria-label"])),[[B,{html:l.tdInfo.tipMsg,className:"tooltip-modal"}]]):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[],64))],6)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[],64))}}}),Ft=["aria-hidden"],Dt={key:0},Vt={key:0},De=99999999,Ve=e.defineComponent({name:"ClTableHead",__name:"Head",props:{columns:{type:Array,default:()=>[]},isOrder:{type:Boolean,default:!1},orderSort:{type:Array,default:()=>[]},isShowTotal:{type:Boolean,default:!1},totalInfo:{type:Object,default:()=>({})},keyIndex:String,width:{type:String,default:"none"},minWidth:{type:String,default:"none"},hoverIndex:{type:Number,default:-1},isUseScrollX:{type:Boolean,default:!1},isShowRadio:{type:Boolean,default:!1},isShowCheckbox:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},isShowCheckboxAll:{type:Boolean,default:!0},checkboxAllValue:{type:Boolean,default:!1},fixedType:{type:String,default:"",validator:l=>["","left","right"].indexOf(l)>-1},fixedLeftIndex:{type:Number,default:-1,validator:l=>l>=-1},fixedRightIndex:{type:Number,default:-1,validator:l=>l>=-1},isInlineWidth:{type:Boolean,default:!1},widthClassPrefix:{type:String,default:"width-"},widthMinClassPrefix:{type:String,default:"width-min-"}},emits:{onClickAll:()=>!0,onClickOrderBy:(l,m,x)=>!0,onHoverIn:l=>!0,onHoverOut:()=>!0},setup(l,{expose:m,emit:x}){const n=l,I=x,w=e.useTemplateRef("refElTable"),A=e.computed(()=>({"table-default":!0,"table-base":!0})),E=e.computed(()=>{const h={};return i.isEmpty(n.fixedType)?n.isUseScrollX&&i.isNonEmptyString(n.minWidth)&&n.minWidth!=="none"&&(h.minWidth=n.minWidth):i.isNonEmptyString(n.width)&&n.width!=="none"&&(h.width=n.width),h}),S=h=>h?i.isUndefined(h.title)?i.isUndefined(h.data)?"":h.data:h.title:"",s=(h,v)=>i.isUndefined(h)||!v?"":i.isEmpty(v.format)?h:i.getValueByFormat(h,v.format??"",v.formatExt),B=(h,v)=>!h||!v?"":s(h[v.data],v);e.watch(()=>n.isShowTotal,h=>{!h&&n.hoverIndex===De&&I("onHoverOut")});const X=()=>{I("onClickAll")},Z=(h,v,O)=>{I("onClickOrderBy",h,v,O)},Y=()=>{I("onHoverIn",De)},z=()=>{I("onHoverOut")};return m({getOffsetHeight:()=>w.value?w.value.offsetHeight:0,getRcWidth:()=>{let h=0;if((n.isShowRadio||n.isShowCheckbox)&&w.value){const v=w.value.querySelector(".th-rc");v&&(h=v.clientWidth)}return h},getPaddingLr:()=>{let h=0;if(!w.value)return h;const v=w.value.querySelectorAll("th:not(.th-rc)");for(let O=0;O<v.length;O++){const d=V.getStyle(v[O]),T=parseFloat(d.paddingLeft),q=parseFloat(d.paddingRight),_=i.isFinite(T)?T:0,K=i.isFinite(q)?q:0;h+=_+K}return h},getElTh:()=>w.value?w.value.querySelectorAll("th"):[],getTotalHeight:()=>{let h=0;if(n.isShowTotal&&w.value){const v=w.value.querySelector(".tr-total");v&&(h=v.clientHeight)}return h}}),(h,v)=>(e.openBlock(),e.createElementBlock("table",{class:e.normalizeClass(A.value),style:e.normalizeStyle(E.value),"aria-hidden":!e.unref(i).isEmpty(l.fixedType),ref_key:"refElTable",ref:w},[e.createElementVNode("thead",null,[e.createElementVNode("tr",null,[l.isShowRadio||l.isShowCheckbox?(e.openBlock(),e.createElementBlock("th",{key:0,class:e.normalizeClass({"th-rc":!0,"th-hidden":l.fixedRightIndex>-1}),scope:"col"},[l.isShowCheckbox&&l.isShowCheckboxAll?(e.openBlock(),e.createBlock(rt._sfc_main,{key:0,forId:e.unref(i).isNonEmptyString(l.keyIndex)?`${l.keyIndex}_${l.fixedType}_cb_all`:void 0,value:l.checkboxAllValue,disabled:l.disabled,onOnChange:X},null,8,["forId","value","disabled"])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[],64))],2)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[],64)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.columns,(O,d)=>(e.openBlock(),e.createBlock(Ht,{key:`${l.keyIndex}_${l.fixedType}_head_th_${d}`,thInfo:O,thIndex:d,isOrder:l.isOrder,disabled:l.disabled,orderSort:l.orderSort,isUseScrollX:l.isUseScrollX,fixedLeftIndex:l.fixedLeftIndex,fixedRightIndex:l.fixedRightIndex,isInlineWidth:l.isInlineWidth,widthClassPrefix:l.widthClassPrefix,widthMinClassPrefix:l.widthMinClassPrefix,onOnClickOrderBy:Z},{default:e.withCtx(()=>[e.renderSlot(h.$slots,`th_${O?.data??""}`,{data:O},()=>[e.createElementVNode("span",null,e.toDisplayString(S(O)),1)])]),_:2},1032,["thInfo","thIndex","isOrder","disabled","orderSort","isUseScrollX","fixedLeftIndex","fixedRightIndex","isInlineWidth","widthClassPrefix","widthMinClassPrefix"]))),128))])]),l.isShowTotal?(e.openBlock(),e.createElementBlock("tbody",Dt,[e.createElementVNode("tr",{class:e.normalizeClass({"tr-total":!0,"tr-hover":l.hoverIndex===De}),onMouseenter:Y,onMouseleave:z},[l.isShowRadio||l.isShowCheckbox?(e.openBlock(),e.createElementBlock("td",Vt)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[],64)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.columns,(O,d)=>(e.openBlock(),e.createBlock(Ue,{key:`${l.keyIndex}_${l.fixedType}_body_total_td_${d}`,isOrder:l.isOrder,tdIndex:d,tdInfo:O,isUseScrollX:l.isUseScrollX,fixedLeftIndex:l.fixedLeftIndex,fixedRightIndex:l.fixedRightIndex,isInlineWidth:l.isInlineWidth,widthClassPrefix:l.widthClassPrefix,widthMinClassPrefix:l.widthMinClassPrefix,useType:"total"},{default:e.withCtx(()=>[e.renderSlot(h.$slots,`total_${O?.data??""}`,{data:l.totalInfo},()=>[e.createTextVNode(e.toDisplayString(B(l.totalInfo,O)),1)])]),_:2},1032,["isOrder","tdIndex","tdInfo","isUseScrollX","fixedLeftIndex","fixedRightIndex","isInlineWidth","widthClassPrefix","widthMinClassPrefix"]))),128))],34)])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[],64))],14,Ft))}}),Xt=["id"],Ut=e.defineComponent({name:"ClTableTdChecked",__name:"TdChecked",props:{id:String,value:{type:Boolean,default:!1},className:String,disabled:{type:Boolean,default:!1},isShowRadio:{type:Boolean,default:!1},isShowCheckbox:{type:Boolean,default:!1},keyIndex:String,info:{type:Object,default:()=>({})}},setup(l){const m=l,x=m.id,n=e.computed(()=>S("cb")),I=e.computed(()=>S("rd")),w=e.computed(()=>m.value===!0),A=e.computed(()=>m.disabled===!0||i.isBoolean(m.info?.isDisabled)&&m.info.isDisabled),E=e.computed(()=>{const s={"th-rc":!0};return i.getJsonMerge(s,V.getClassNameJson(m.className))}),S=s=>i.isNonEmptyString(m.keyIndex)?`${m.keyIndex}_${s}`:void 0;return(s,B)=>l.isShowRadio||l.isShowCheckbox?(e.openBlock(),e.createElementBlock("td",{key:0,id:e.unref(x),class:e.normalizeClass(E.value)},[l.isShowCheckbox?(e.openBlock(),e.createBlock(rt._sfc_main,{key:0,forId:n.value,value:w.value,disabled:A.value},null,8,["forId","value","disabled"])):l.isShowRadio?(e.openBlock(),e.createBlock(Wt._sfc_main,{key:1,forId:I.value,name:I.value,value:w.value,disabled:A.value},null,8,["forId","name","value","disabled"])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[],64))],10,Xt)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[],64))}}),zt=["onClick","onMouseenter"],qt=["onMouseenter"],Jt=["colspan"],Yt={key:0,class:"panel-elastic-load",role:"status","aria-live":"polite"},jt={class:"elastic-load-container"},Kt=["data-elastic-id"],Gt=["onMouseenter"],Zt=["colspan"],Qt={class:"panel-elastic-load",role:"status","aria-live":"polite"},_t={class:"elastic-load-container"},el=["onMouseenter"],tl={key:2},ll=["colspan"],il={class:"panel-table-empty",role:"status"},Xe=e.defineComponent({name:"ClTableBody",__name:"Body",props:{columns:{type:Array,default:()=>[]},list:{type:Array,default:()=>[]},disabled:{type:Boolean,default:!1},isOrder:{type:Boolean,default:!1},selectValue:{type:Array,default:()=>[]},keyIndex:String,width:{type:String,default:"none"},minWidth:{type:String,default:"none"},hoverIndex:{type:Number,default:-1},hoverElasticIndex:{type:Number,default:-1},isUseScrollX:{type:Boolean,default:!1},colspanCount:{type:Number,default:1},isRunLoading:{type:Boolean,default:!1},isShowRadio:{type:Boolean,default:!1},isShowCheckbox:{type:Boolean,default:!1},isElastic:{type:Boolean,default:!1},elasticOpen:{type:Array,default:()=>[]},elasticLoading:{type:Array,default:()=>[]},elasticType:{type:String,default:"default",validator:l=>["default","sameDataStructure"].indexOf(l)>-1},elasticData:{type:Object,default:()=>({})},fixedType:{type:String,default:""},fixedLeftIndex:{type:Number,default:-1},fixedRightIndex:{type:Number,default:-1},isInlineWidth:{type:Boolean,default:!1},widthClassPrefix:{type:String,default:"width-"},widthMinClassPrefix:{type:String,default:"width-min-"},trIntervalNum:{type:Number,default:-1},isStriped:{type:Boolean,default:!1},emptyText:String},emits:{onClickTr:(l,m,x)=>!0,onHoverIn:(l,m)=>!0,onHoverOut:()=>!0},setup(l,{expose:m,emit:x}){const n=l,I=x,{optPageLanguage:w,getPageLanguage:A}=Pt.useLanguage();A("common");const E=e.useTemplateRef("refElTable"),S=e.ref(new Set),s=e.computed(()=>new Set((Array.isArray(n.selectValue)?n.selectValue:[]).filter(c=>!i.isUndefined(c)).map(c=>String(c)))),B=e.computed(()=>new Set((Array.isArray(n.elasticLoading)?n.elasticLoading:[]).filter(c=>!i.isUndefined(c)).map(c=>String(c)))),X=e.computed(()=>new Set((Array.isArray(n.elasticOpen)?n.elasticOpen:[]).filter(c=>!i.isUndefined(c)).map(c=>String(c)))),Z=e.computed(()=>{const c=Number(n.colspanCount);return i.isFinite(c)&&c>=1?Math.floor(c):1}),Y=e.computed(()=>({"table-default":!0,"table-base":!0,"table-empty":i.isEmpty(n.list)})),z=e.computed(()=>{const c={};return i.isNonEmptyString(n.fixedType)?i.isNonEmptyString(n.width)&&n.width!=="none"&&(c.width=n.width):n.isUseScrollX&&i.isNonEmptyString(n.minWidth)&&n.minWidth!=="none"&&(c.minWidth=n.minWidth),c}),$=(c,C,y)=>{I("onClickTr",c,C,y)},g=(c,C=-1)=>{I("onHoverIn",c,C)},k=()=>{I("onHoverOut")},W=(c,C)=>i.isEmpty(c)||!C?"":i.isEmpty(C.format)?c:i.getValueByFormat(c,C.format??"",C.formatExt),j=c=>{const C=n.elasticData||{};return Object.prototype.hasOwnProperty.call(C,c)?C[c]:[]},h=c=>!i.isEmpty(c)&&!i.isEmpty(c.id)&&s.value.has(c.id.toString()),v=c=>!i.isEmpty(c)&&!i.isEmpty(c.id)&&B.value.has(c.id.toString());return m({getWidth:()=>E.value?E.value.clientWidth:0,getHeight:()=>E.value?E.value.clientHeight:0,setElasticWidth:()=>{if(!E.value)return;const c=E.value.parentNode;if(!c)return;const C=E.value.querySelectorAll(".panel-elastic-load"),y=c.clientWidth;for(let p=0;p<C.length;p++)C[p].style.width=`${y}px`},setElasticHeight:c=>{if(!E.value)return;const C=E.value.querySelector(`[data-elastic-id="${CSS.escape(c)}"]`);if(C){const y=C.parentNode;if(y){C.style.height="",y.style.height="";const L=`${C.clientHeight}px`;C.style.height=L,y.style.height=L}const p=S.value;p.has(c)||(S.value=new Set(p).add(c))}},removeElasticAbsolute:c=>{if(S.value.has(c)){const C=new Set(S.value);C.delete(c),S.value=C}},clearElasticAbsolute:()=>{S.value.size>0&&(S.value=new Set)},setElasticLoadLeft:c=>{if(!E.value)return;const C=E.value.querySelectorAll(".panel-elastic-load"),y=i.isFinite(c)?Math.max(0,c):0;for(let p=0;p<C.length;p++)C[p].style.left=`${y}px`},setEmptyWidth:()=>{if(!E.value)return;const c=E.value.querySelector(".panel-table-empty");if(c){const C=E.value.parentNode;if(C){const y=C.clientWidth;c.style.width=`${y}px`}}},setEmptyLeft:c=>{const C=E.value?E.value.querySelector(".panel-table-empty"):null;if(C){const y=i.isFinite(c)?Math.max(0,c):0;C.style.left=`${y}px`}}}),(c,C)=>(e.openBlock(),e.createElementBlock("table",{class:e.normalizeClass(Y.value),style:e.normalizeStyle(z.value),ref_key:"refElTable",ref:E},[e.createElementVNode("tbody",null,[e.unref(i).isEmpty(l.list)?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[],64)):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(l.list,(y,p)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:`${l.keyIndex}_${l.fixedType}_body_tr_${p}`},[e.createElementVNode("tr",{class:e.normalizeClass({odd:l.isStriped&&p%2===0,"tr-customInterval-odd":l.isStriped&&l.trIntervalNum>0&&Math.floor(p/l.trIntervalNum)%2===0,"tr-customInterval-even":l.isStriped&&l.trIntervalNum>0&&Math.floor(p/l.trIntervalNum)%2===1,"tr-disabled":e.unref(i).isBoolean(y?.isDisabled)&&y.isDisabled,"tr-selected":h(y),"tr-hover":l.hoverIndex===p}),onClick:L=>$(L,y,p),onMouseenter:L=>g(p),onMouseleave:k},[l.isShowRadio||l.isShowCheckbox?(e.openBlock(),e.createBlock(Ut,{key:0,keyIndex:`${l.keyIndex}_${l.fixedType}_body_tr_${p}`,isShowRadio:l.isShowRadio,isShowCheckbox:l.isShowCheckbox,value:h(y),info:y,disabled:l.disabled},null,8,["keyIndex","isShowRadio","isShowCheckbox","value","info","disabled"])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[],64)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.columns,(L,R)=>(e.openBlock(),e.createBlock(Ue,{key:`${l.keyIndex}_${l.fixedType}_body_tr_${p}_td_${R}`,isOrder:l.isOrder,tdIndex:R,tdInfo:L,isUseScrollX:l.isUseScrollX,fixedLeftIndex:l.fixedLeftIndex,fixedRightIndex:l.fixedRightIndex,isInlineWidth:l.isInlineWidth,widthClassPrefix:l.widthClassPrefix,widthMinClassPrefix:l.widthMinClassPrefix},{default:e.withCtx(()=>[e.renderSlot(c.$slots,`td_${L?.data??""}`,{data:y,trIndex:p},()=>[e.createTextVNode(e.toDisplayString(W(y&&L?y[L.data]:void 0,L)),1)])]),_:2},1032,["isOrder","tdIndex","tdInfo","isUseScrollX","fixedLeftIndex","fixedRightIndex","isInlineWidth","widthClassPrefix","widthMinClassPrefix"]))),128))],42,zt),l.isElastic&&!e.unref(i).isEmpty(y?.id)&&X.value.has(y.id.toString())?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[l.elasticType==="default"?(e.openBlock(),e.createElementBlock("tr",{key:0,class:e.normalizeClass({"tr-elastic":!0,"tr-hover":l.hoverIndex===p}),onMouseenter:L=>g(p),onMouseleave:k},[e.createElementVNode("td",{colspan:Z.value,class:e.normalizeClass({"td-elastic-load":v(y)})},[v(y)?(e.openBlock(),e.createElementBlock("div",Yt,[e.createElementVNode("div",jt,[e.createVNode(nt._sfc_main,{theme:"circleBubble",size:"large"})])])):(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(["elastic-container",{"elastic-container-absolute":S.value.has(y.id.toString())}]),"data-elastic-id":y.id},[e.renderSlot(c.$slots,"tr_elastic_children",{data:y,trIndex:p})],10,Kt))],10,Jt)],42,qt)):l.elasticType==="sameDataStructure"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[v(y)?(e.openBlock(),e.createElementBlock("tr",{key:0,class:e.normalizeClass({"tr-elastic":!0,"tr-hover":l.hoverIndex===p}),onMouseenter:L=>g(p),onMouseleave:k},[e.createElementVNode("td",{colspan:Z.value,class:"td-elastic-load"},[e.createElementVNode("div",Qt,[e.createElementVNode("div",_t,[e.createVNode(nt._sfc_main,{theme:"circleBubble",size:"large"})])])],8,Zt)],42,Gt)):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(j(y.id.toString()),(L,R)=>(e.openBlock(),e.createElementBlock("tr",{key:`${l.keyIndex}_${l.fixedType}_body_tr_${p}_elastic_${R}`,class:e.normalizeClass({"tr-elastic-sameDataStructure":!0,odd:l.isStriped&&R%2===0,"tr-disabled":e.unref(i).isBoolean(L?.isDisabled)&&L.isDisabled,"tr-hover":l.hoverElasticIndex===R&&l.hoverIndex===p}),onMouseenter:H=>g(p,R),onMouseleave:k},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.columns,(H,ae)=>(e.openBlock(),e.createBlock(Ue,{key:`${l.keyIndex}_${l.fixedType}_body_tr_${p}_elastic_${R}_td_${ae}`,isOrder:l.isOrder,tdIndex:ae,tdInfo:H,isUseScrollX:l.isUseScrollX,fixedLeftIndex:l.fixedLeftIndex,fixedRightIndex:l.fixedRightIndex,isInlineWidth:l.isInlineWidth,widthClassPrefix:l.widthClassPrefix,widthMinClassPrefix:l.widthMinClassPrefix},{default:e.withCtx(()=>[e.renderSlot(c.$slots,`td_elastic_${H?.data??""}`,{data:L,trIndex:p,trElasticInx:R},()=>[e.createTextVNode(e.toDisplayString(W(L&&H?L[H.data]:void 0,H)),1)])]),_:2},1032,["isOrder","tdIndex","tdInfo","isUseScrollX","fixedLeftIndex","fixedRightIndex","isInlineWidth","widthClassPrefix","widthMinClassPrefix"]))),128))],42,el))),128))],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[],64))],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[],64))],64))),128)),e.unref(i).isEmpty(l.list)&&!l.isRunLoading&&!e.unref(i).isNonEmptyString(l.fixedType)?(e.openBlock(),e.createElementBlock("tr",tl,[e.createElementVNode("td",{colspan:Z.value,class:"td-empty"},[e.createElementVNode("div",il,e.toDisplayString(e.unref(i).isNonEmptyString(l.emptyText)?l.emptyText:e.unref(w).noResultsText),1)],8,ll)])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:3},[],64))])],6))}});function nl(l){if(!Array.isArray(l))return[];const m=[];return l.forEach(x=>{if(i.isEmpty(x))return;const n=x;!(i.isBoolean(n.isDisabled)?n.isDisabled:!1)&&!i.isEmpty(n.id)&&m.push(String(n.id))}),m}function al(l,m,x=!1){if(!Array.isArray(l)||l.length===0)return[];const n=[];return l.forEach(I=>{const w=String(I);m.includes(w)&&n.push(w)}),x&&n.length>1?[n[0]]:n}function ol(l,m){return m.length>0&&m.length===l.length}function sl(l,m){return l.filter(x=>!m.includes(x))}const rl=["id"],cl={class:"table-wrapper"},dl={key:0,class:"table-fixed-column-left"},ul={key:2,class:"table-fixed-column-right"},fl={key:0,class:"table-scroll-occupy-container"},hl={key:2,class:"table-fixed-column-scrollX"},ml={key:4,class:"table-fixed-head-load"},gl={key:0,class:"table-fixed-column-left"},yl={key:2,class:"table-fixed-column-right"},vl={key:1,class:"table-fixed-column-scrollX"},xl={key:2,class:"table-footer-wrapper"},Sl={key:0,class:"table-load",role:"status","aria-live":"polite"},kl={class:"table-load-wrapper"},ot=15,pl=30,Cl=180,wl=50,st=300,El=e.defineComponent({name:"ClTable",__name:"Index",props:{id:String,className:String,disabled:{type:Boolean,default:!1},columns:{type:Array,default:()=>[]},list:{type:Array,default:()=>[]},totalLength:Number,totalData:{type:Object,default:()=>({})},isServer:{type:Boolean,default:!0},isParamTriggerServer:{type:Boolean,default:!1},isLoading:{type:Boolean,default:!0},loadTheme:{type:String,default:"circleBubble"},loadColor:{type:String,default:"var(--cl-primary, #1088f0)"},isShowInitLoadIng:{type:Boolean,default:!0},isPaginate:{type:Boolean,default:!0},pageOffset:{type:Number,default:0},isPaginateLimit:{type:Boolean,default:!0},paginateLimit:{type:Number,default:10},paginateLimitData:{type:Array,default:()=>[]},isOrder:{type:Boolean,default:!1},orderSort:{type:Array,default:()=>[]},selectValue:{type:[String,Number],default:""},checkedRowType:{type:String,default:"none",validator:l=>["none","radio","checkbox"].indexOf(l)>-1},isShowCheckboxAll:{type:Boolean,default:!0},isScrollX:{type:Boolean,default:!1},isScrollXBottom:{type:Boolean,default:!1},isFixedHead:{type:Boolean,default:!1},scrollY:{type:Number,default:-1},fixedColumnLeftIndex:{type:Number,default:-1},fixedColumnRightIndex:{type:Number,default:-1},isInlineWidth:{type:Boolean,default:!1},widthClassPrefix:{type:String,default:"width-"},widthMinClassPrefix:{type:String,default:"width-min-"},isClickRowLinkage:{type:Boolean,default:!1},isElastic:{type:Boolean,default:!1},isElasticLoad:{type:Boolean,default:!0},rowClickKeyInvalid:{type:String,default:".tr-click-invalid"},rowClickKeyElastic:{type:String,default:".tr-click-elastic"},elasticIconCls:{type:Array,default:()=>[]},elasticType:{type:String,default:"default",validator:l=>["default","sameDataStructure"].indexOf(l)>-1},elasticData:{type:Object,default:()=>({})},trIntervalNum:{type:Number,default:-1},isStriped:{type:Boolean,default:!1},emptyText:String,isHead:{type:Boolean,default:!0}},emits:{onGetData:l=>!0,onClickRow:(l,m,x)=>!0,onClickElastic:(l,m,x,n,I)=>!0,onChangeChecked:(l,m,x)=>!0,onChangeParams:l=>!0},setup(l,{expose:m,emit:x}){const n=l,I=x,w=e.useSlots(),A=t=>{let a=[];if(n.isOrder){const o=i.isEmpty(t)?[]:t;let r=[0,"desc"];const u=i.isEmpty(n.columns)?[]:n.columns;for(let f=0;f<u.length;f+=1){const b=u[f];if(i.isEmpty(b))continue;const M=b.sort===void 0||b.sort===null?!0:b.sort===!0,N=i.isBoolean(b.visible)?b.visible:!0;if(M&&N){r=[f,"desc"];break}}if(o.length===0)a=r;else{const f=u[o[0]];if(i.isEmpty(f))a=r;else{const b=f.sort===void 0||f.sort===null?!0:f.sort===!0,M=i.isBoolean(f.visible)?f.visible:!0,N=Array.isArray(o)?o[0]:void 0,te=Array.isArray(o)&&(o[1]==="asc"||o[1]==="desc")?o[1]:void 0;a=b&&M&&!i.isUndefined(N)?[N,te??"desc"]:r}}}return a},E=()=>{let t=1;return n.paginateLimit>0&&n.pageOffset>=0&&(t=Math.floor(n.pageOffset/n.paginateLimit)+1),t},S=A(n.orderSort),s={dataJson:i.getJsonByList(n.list),changeNewPaginate:{pages:E(),limit:n.paginateLimit},changeNewSort:{orderIndex:S[0],orderBy:S[1]},sortLocalData:[],scrollBody:{left:0},scrollHead:{left:0},resizeEvent:null,timerBody:null,pendingCanceled:!1},B={observerBodyScrollY:null},X=`table-${i.getRandom(5)}`,Z=n.id,Y=e.useTemplateRef("refElHeadWrapper"),z=e.useTemplateRef("refElHeadContainer"),$=e.useTemplateRef("refElHeadMain"),g=e.useTemplateRef("refElHeadTable"),k=e.useTemplateRef("refElHeadFixedScrollX"),W=e.useTemplateRef("refElBodyWrapper"),j=e.useTemplateRef("refElBodyContainer"),h=e.useTemplateRef("refElBodyMain"),v=e.useTemplateRef("refElBodyTable"),O=e.useTemplateRef("refElBodyFixedScrollX"),d=e.reactive({isRunLoading:!1,isCheckedRadio:n.checkedRowType==="radio",isCheckedCheckbox:n.checkedRowType==="checkbox",colspanCount:0,hoverTrIndex:-1,hoverTrElasticIndex:-1,totalHeight:"0"}),T=e.ref([]),q=e.reactive({pages:s.changeNewPaginate.pages,limit:s.changeNewPaginate.limit}),_=e.ref(S),K=e.ref(!1),ce=()=>{const t=n.selectValue;return i.isNonEmptyString(t)?i.split(t):i.isNumber(t)?i.split(t.toString()):[]},U=e.ref(ce()),P=e.reactive({open:[],loading:[]}),c=e.reactive({isShow:!1,minWidth:"auto",posType:"left"}),C=e.ref(!1),y=e.reactive({totalWidth:"0",centerWidth:"0",leftColumnLength:0,leftWidth:"0",rightColumnLength:0,rightWidth:"0"}),p=e.reactive({isShow:!1,width:"auto",height:"auto"}),L=e.reactive({headHeight:0});let R=null,H=null,ae=0;const ve=e.computed(()=>Object.keys(w).filter(t=>t.indexOf("th_")===0)),xe=e.computed(()=>{const t=Object.keys(w).filter(a=>a.indexOf("td_")===0&&a.indexOf("td_elastic_")!==0);return n.isElastic&&t.push("tr_elastic_children"),t}),Se=e.computed(()=>Object.keys(w).filter(t=>t.indexOf("total_")===0)),ke=e.computed(()=>Object.keys(w).filter(t=>t.indexOf("td_elastic_")===0)),pe=e.computed(()=>n.isShowCheckboxAll&&T.value.length>0),oe=e.computed(()=>!i.isEmpty(n.totalData)&&T.value.length>0),ft=e.computed(()=>n.isServer?i.isFinite(n.totalLength)?n.totalLength:0:i.isFinite(n.totalLength)?n.totalLength:n.list?.length||0),J=e.computed(()=>n.isScrollX||n.isScrollXBottom),le=e.computed(()=>n.scrollY>0),F=e.computed(()=>n.isHead&&n.fixedColumnLeftIndex>-1&&J.value),D=e.computed(()=>n.isHead&&n.fixedColumnRightIndex>-1&&J.value&&n.fixedColumnRightIndex>n.fixedColumnLeftIndex+1),ht=e.computed(()=>{const t={"panel-table":!0,"table-disabled":n.disabled};return d.isRunLoading&&(t["table-loading"]=!0),i.osType().isMobile&&(t["table-mob"]=!0),i.getJsonMerge(t,V.getClassNameJson(n.className))}),mt=e.computed(()=>{const t={"table-head-wrapper":!0,"table-scrollY":le.value,"table-scroll-occupy-y":C.value};return p.isShow&&(t["table-fixed-head"]=!0),t}),gt=e.computed(()=>{const t={"table-head-container":!0};return n.isScrollX&&(t["table-scrollX"]=!0),(F.value||D.value)&&(t["table-fixed-column"]=!0,c.isShow?t[`table-scrollX-${c.posType}`]=!0:t["table-scrollX-none"]=!0),t}),yt=e.computed(()=>{const t={"table-body-wrapper":!0,"table-scrollY":le.value,"table-scrollX":n.isScrollX,"table-scrollX-bottom":c.isShow};return t["table-scroll-borderT0"]=c.isShow&&n.isScrollX,(F.value||D.value)&&(t["table-fixed-column"]=!0,c.isShow?t[`table-scrollX-${c.posType}`]=!0:t["table-scrollX-none"]=!0),t}),vt=e.computed(()=>{const t={};if((F.value||D.value)&&le.value){const a=c.isShow?Math.max(0,n.scrollY-ot):n.scrollY;t.maxHeight=`${a}px`}return t}),xt=e.computed(()=>{const t={};return F.value||D.value||le.value&&(t.maxHeight=`${n.scrollY}px`),t}),St=e.computed(()=>{const t={};return d.isRunLoading&&(t.height=`${L.headHeight}px`),t}),kt=t=>{I("onGetData",t)},pt=(t,a,o,r,u)=>{I("onClickElastic",t,a,o,r,u)},Ct=(t,a,o=!1)=>{I("onClickRow",t,a,o)},wt=(t,a,o)=>{I("onChangeChecked",t,a,o)},de=()=>{const t=me();I("onChangeParams",t)},Ce=()=>{e.nextTick(()=>{if($.value){const t=$.value.querySelector("thead");t&&(L.headHeight=t.offsetHeight)}}),d.isRunLoading=!0},ze=()=>{d.isRunLoading=!1},we=()=>{let t=0,a=0;(d.isCheckedRadio||d.isCheckedCheckbox)&&(t=1,g.value&&(a=g.value.getRcWidth())),(i.isEmpty(n.columns)?[]:n.columns).forEach(u=>{(i.isBoolean(u?.visible)?u.visible:!0)&&(t+=1,!i.isEmpty(u)&&!i.isEmpty(u.width)?a+=Number(u.width)||0:!i.isEmpty(u)&&!i.isEmpty(u.widthMin)&&(a+=Number(u.widthMin)||0))});const r=g.value?g.value.getPaddingLr():0;a+=r,d.colspanCount=t,J.value&&(c.minWidth=a>0?`${a}px`:"auto")},Ee=()=>new Promise((t,a)=>{e.nextTick(()=>{try{if(!v.value){t();return}const o=v.value.getWidth();y.totalWidth=`${o}px`;let r=o;if(F.value||D.value){const u=[],f=[];(i.isEmpty(n.columns)?[]:n.columns).forEach((G,re)=>{(i.isBoolean(G?.visible)?G.visible:!0)&&(F.value&&re<=n.fixedColumnLeftIndex&&u.push(G),D.value&&re>=n.fixedColumnRightIndex&&f.push(G))});const M=d.isCheckedRadio||d.isCheckedCheckbox,N=g.value?g.value.getElTh():[],te=N.length;let Q=u.length;const se=f.length;let lt=Q-1;const Rt=te-se;M&&(Q+=1,lt+=1);let Me=0,Ae=0;for(let G=0;G<te;G++){const re=N[G];if(!re)continue;const He=re.clientWidth;G<=lt&&(Me+=He),G>=Rt&&(Ae+=He)}F.value&&(y.leftColumnLength=u.length,y.leftWidth=`${Me}px`,r-=Me),D.value&&(y.rightColumnLength=f.length,y.rightWidth=`${Ae}px`,r-=Ae)}r=Math.max(0,r),y.centerWidth=`${r}px`,e.nextTick(()=>{t()})}catch(o){a(o)}})}),qe=()=>{e.nextTick(()=>{v.value&&v.value.setElasticWidth()})},Et=t=>{(F.value||D.value)&&v.value&&v.value.setElasticHeight(t)},Je=t=>{if(n.isElasticLoad){const a=i.getArrClone(P.loading);a.indexOf(t)===-1&&(a.push(t),P.loading=a)}},Ye=t=>{if(n.isElasticLoad){const a=i.getArrClone(P.loading),o=a.indexOf(t);o>-1&&(a.splice(o,1),P.loading=a,e.nextTick(()=>{Et(t)}))}},be=(t,a,o,r)=>{if(i.isEmpty(t)||i.isEmpty(t.id))return;const u=t.id.toString(),f=i.getArrClone(P.open),b=f.indexOf(u),M=b===-1;M?(f.push(u),Je(u)):(f.splice(b,1),Ye(u),(F.value||D.value)&&v.value&&v.value.removeElasticAbsolute(u)),It(o,M);const N=i.isBoolean(r)?r:!0;P.open=f,N&&pt(u,t,a,M,o),qe()},bt=()=>{const t=[],a=i.isEmpty(n.elasticIconCls)?[]:n.elasticIconCls;if(a.length===2){const o=T.value,r=P.open;o.forEach(u=>{if(!u){t.push(u);return}const f=i.getJsonClone(u);if(!i.isEmpty(f.id)){const b=f.id.toString();f._elasticIconCls=r.indexOf(b)>-1?a[1]:a[0]}t.push(f)})}t.length>0&&(T.value=t)},It=(t,a=!1)=>{if(t){const o=[],r=["elastic-expand","elastic-retract"];a?o.push("elastic-expand"):o.push("elastic-retract");const u=i.isEmpty(n.elasticIconCls)?[]:n.elasticIconCls;u.length===2&&(r.push(u[0]),r.push(u[1]),a?o.push(u[1]):o.push(u[0]));let f=V.getRemoveClass(t.className,r.join(" "));f=V.getAddClass(f,o),t.className=f}},ue=()=>nl(T.value),fe=(t=null)=>{const a=i.isUndefined(t)||t===null?U.value:t;return al(a,ue(),d.isCheckedRadio)},Ie=()=>{if(d.isCheckedCheckbox){const t=ue(),a=fe();K.value=ol(t,a)}},je=()=>{const t=[],a=fe(),o=ue(),r=sl(o,a);if(d.isCheckedCheckbox)a.forEach(u=>{const f=s.dataJson[u.toString()];i.isUndefined(f)||t.push(f)});else if(d.isCheckedRadio&&a.length>0){const u=s.dataJson[a[0]];i.isUndefined(u)||t.push(u)}return{checkedIds:a,unCheckedIds:r,checkedData:t}},Be=()=>{const t=je();wt(t.checkedIds.join(","),t.checkedData,{checkedIds:t.checkedIds,unCheckedIds:t.unCheckedIds})},Ke=t=>{if(i.isEmpty(t)||i.isEmpty(t.id))return;const a=t.id.toString(),o=U.value;let r=[];if(d.isCheckedCheckbox){const u=i.isExistValue(o,a);o.forEach(f=>{f!==a&&r.push(f)}),u||r.push(a),U.value=r,Ie(),Be()}else o.length>0&&o[0]===a||(r=[a],U.value=r,Be())},Te=()=>{if(J.value&&h.value&&v.value){const t=h.value.clientWidth,a=v.value.getWidth();c.isShow=a>t}},Le=()=>{if(le.value&&v.value){const t=v.value.getHeight();let a=t>n.scrollY;if(a||(F.value||D.value?j.value&&(a=t>j.value.clientHeight):h.value&&h.value.offsetHeight>=n.scrollY&&(a=t>h.value.clientHeight)),a&&oe.value&&g.value){const o=g.value.getTotalHeight()-(i.osType().isMobile?2:0);d.totalHeight=`${o}px`}C.value=a}},he=()=>{if((F.value||D.value)&&h.value&&v.value){let t=h.value.scrollLeft;const a=h.value.clientWidth,o=v.value.getWidth();let r="left";t>0&&(a+t>=o?r="right":r="center"),c.posType=r}},Ge=()=>{if(!W.value||!v.value)return;let t=$.value?$.value.scrollLeft:0;const a=W.value.clientWidth,o=v.value.getWidth();a+t>o&&(t=0),P.loading.length>0&&v.value.setElasticLoadLeft(t),T.value.length===0&&v.value.setEmptyLeft(t)},Ne=t=>{ae=t.target.scrollLeft,R===null&&(R=requestAnimationFrame(()=>{R=null;const a=ae;$.value&&($.value.scrollLeft=a),h.value&&(h.value.scrollLeft=a),k.value&&k.value.setScrollLeft(a),O.value&&O.value.setScrollLeft(a),he(),Ge()}))},Ze=t=>{const a=t.target,o=a.scrollLeft;a.scrollWidth-a.clientWidth-o<1&&h.value&&h.value.scrollLeft>o||(o!==s.scrollHead.left&&Ne(t),s.scrollHead.left=o)},Qe=t=>{const a=t.target.scrollLeft;a!==s.scrollBody.left&&Ne(t),s.scrollBody.left=a},Oe=()=>{if(n.isFixedHead&&Y.value&&!d.isRunLoading){let t=!1,a="auto",o="auto";const r=Y.value&&Y.value.parentNode?V.getPositionView(Y.value.parentNode):null;if(r&&r.top<0&&W.value&&z.value&&g.value){const u=W.value.clientHeight;if(r.top>(u-pl)*-1){t=!0;const f=W.value.offsetWidth,b=c.isShow&&n.isScrollX?z.value.offsetHeight:g.value.getOffsetHeight();a=`${f}px`,o=`${b}px`}}p.isShow=t,p.width=a,p.height=o}},Re=()=>{T.value.length===0&&e.nextTick(()=>{v.value&&v.value.setEmptyWidth()})},me=()=>{const t={};if(n.isPaginate){const{pages:a,limit:o}=s.changeNewPaginate;t.pages=a,t.limit=o,t.offset=(t.pages-1)*t.limit}if(n.isOrder){const{orderIndex:a,orderBy:o}=s.changeNewSort;t.orderIndex=a,t.orderBy=o;const r=n.columns[a];i.isUndefined(r)||(t.orderColumns=r.data)}return t},Bt=()=>{n.scrollY>0&&e.nextTick(()=>{if(!h.value)return;const t=h.value.querySelectorAll(".tr-selected");h.value.scrollTop=t&&t.length>0&&t[0].offsetTop>Cl?t[0].offsetTop-wl:0})},_e=(t={})=>{if(d.isCheckedRadio||d.isCheckedCheckbox){const a=ce();U.value=fe(a),Ie(),Bt()}n.isElastic&&((!i.isBoolean(t.isElasticCloseAll)||t.isElasticCloseAll)&&(P.open=[],(F.value||D.value)&&v.value&&v.value.clearElasticAbsolute()),P.loading=[],bt()),d.hoverTrIndex=-1,d.hoverTrElasticIndex=-1,e.nextTick(()=>{n.isPaginate&&(q.pages=s.changeNewPaginate.pages,q.limit=s.changeNewPaginate.limit),n.isOrder&&(_.value=A([s.changeNewSort.orderIndex,s.changeNewSort.orderBy])),ze(),we(),e.nextTick(()=>{Le(),Te(),Ee().then(()=>{he()}).catch(a=>{Fe.warn("ClTable","表格固定列分析失败",a)}),Re(),Oe()})})},et=(t,a)=>{const o=i.isEmpty(n.list)?[]:n.list;let r=[];if(a){if(n.isOrder){const u={},f=[];let b="string";if(!i.isUndefined(t.orderIndex)){const M=t.orderColumns,N=n.columns[t.orderIndex];if(!i.isUndefined(N))if(i.isEmpty(N.sortType))switch(N.format){case"int":case"float2":case"float3":b="number";break;case"date":case"dateTime":case"time":b="date";break;default:b="string"}else b=N.sortType;o.forEach(te=>{if(!te)return;let Q=te[M];Q=i.isUndefined(Q)||Q===null?"":Q;const se=Q.toString();i.isExistJsonKey(u,se)||(u[se]=[],f.push(Q)),u[se].push(i.getJsonClone(te))})}f.length>0&&(t.orderBy==="desc"?i.getArrDesc(f,b):i.getArrAsc(f,b)).forEach(N=>{r.push(...u[N.toString()])})}else r=i.getListClone(n.list);s.sortLocalData=r}else r=s.sortLocalData;if(n.isPaginate){const u=[],f=r.length,b=t.offset;let M=t.offset+t.limit;if(M=f<M?f:M,f&&f>=b&&f>0)for(let N=b;N<M;N+=1)u.push(i.getJsonClone(r[N]));return u}else return r},ee=(t={})=>{const a=me();U.value=[],K.value=!1,Ce(),n.isServer?(s.timerBody&&clearTimeout(s.timerBody),s.timerBody=setTimeout(()=>{s.timerBody=null,kt(a)},st)):(s.timerBody&&clearTimeout(s.timerBody),s.timerBody=setTimeout(()=>{s.timerBody=null;const o=i.isBoolean(t.isChangePage)?!t.isChangePage:!0;T.value=et(a,o),_e()},st))},Tt=()=>{J.value&&($.value&&$.value.addEventListener("scroll",Ze),h.value&&h.value.addEventListener("scroll",Qe))},Lt=()=>{if(le.value){const t=window,a=t.MutationObserver||t.WebKitMutationObserver||t.MozMutationObserver;if(!a)return;B.observerBodyScrollY=new a(()=>{Le()});const o=B.observerBodyScrollY;v.value&&v.value.$el&&o&&o.observe(v.value.$el,{childList:!0,subtree:!0})}},ge=()=>{Te(),Ee().then(()=>{he()}).catch(t=>{Fe.warn("ClTable","表格固定列分析失败",t)}),qe(),Re(),Ge(),e.nextTick(()=>{Oe()})},ye=()=>{H===null&&(H=requestAnimationFrame(()=>{H=null,Oe()}))},Nt=()=>{we(),e.nextTick(()=>{n.isServer?ee():i.isEmpty(n.list)?n.isShowInitLoadIng?Ce():e.nextTick(()=>{Re()}):(ee(),n.isShowInitLoadIng||(d.isRunLoading=!1))})};e.onMounted(()=>{e.nextTick(()=>{Nt(),Tt(),Lt(),s.resizeEvent=new it.Resize({isDelay:!0,callback:()=>{ge()}}),n.isFixedHead&&window.addEventListener("scroll",ye)})}),e.onActivated(()=>{n.isFixedHead&&window.addEventListener("scroll",ye),s.resizeEvent||(s.resizeEvent=new it.Resize({isDelay:!0,callback:()=>{ge()}})),ge(),s.pendingCanceled&&(s.pendingCanceled=!1,ee())}),e.onDeactivated(()=>{window.removeEventListener("scroll",ye),s.timerBody&&(clearTimeout(s.timerBody),s.timerBody=null,d.isRunLoading=!1,s.pendingCanceled=!0),s.resizeEvent&&(s.resizeEvent.destroy(),s.resizeEvent=null),R!==null&&(cancelAnimationFrame(R),R=null),H!==null&&(cancelAnimationFrame(H),H=null)}),e.onBeforeUnmount(()=>{s.timerBody&&(clearTimeout(s.timerBody),s.timerBody=null),B.observerBodyScrollY&&(B.observerBodyScrollY.disconnect(),B.observerBodyScrollY.takeRecords(),B.observerBodyScrollY=null),J.value&&($.value&&$.value.removeEventListener("scroll",Ze),h.value&&h.value.removeEventListener("scroll",Qe)),s.resizeEvent&&s.resizeEvent.destroy(),R!==null&&(cancelAnimationFrame(R),R=null),H!==null&&(cancelAnimationFrame(H),H=null),window.removeEventListener("scroll",ye)}),e.watch(()=>n.list,(t,a)=>{const o=i.isEmpty(t)?[]:t;if(s.timerBody&&(clearTimeout(s.timerBody),s.timerBody=null),s.dataJson=i.getJsonByList(o),n.isServer)T.value=i.getListClone(o);else if(n.isParamTriggerServer)T.value=i.getListClone(o,!0);else{s.changeNewPaginate.pages=1;const u=me();T.value=et(u,!0)}const r={};if(n.isElastic){let u=!1;if(a)if(o.length===a.length){const f=new Set(a.map(b=>b?.id));u=o.some(b=>b&&!f.has(b.id))}else u=!0;u||(r.isElasticCloseAll=!1)}_e(r)},{deep:!0}),e.watch(()=>n.columns,()=>{e.nextTick(()=>{we(),e.nextTick(()=>{Le(),Te(),Ee().then(()=>{he()}).catch(t=>{Fe.warn("ClTable","表格固定列分析失败",t)})})})},{deep:!0}),e.watch(()=>n.selectValue,()=>{const t=ce();U.value=fe(t),Ie()}),e.watch(()=>n.orderSort,(t,a)=>{if(t&&t.length>=2&&!(t[0]===s.changeNewSort.orderIndex&&t[1]===s.changeNewSort.orderBy)){const o=A(n.orderSort);s.changeNewPaginate.pages=1,q.pages=1,s.changeNewSort={orderIndex:o[0],orderBy:o[1]},_.value=o,!n.isServer&&n.isParamTriggerServer?de():ee({isChangePage:!1})}},{deep:!0}),e.watch([()=>n.pageOffset,()=>n.paginateLimit],([t,a],[o,r])=>{const u=E();s.changeNewPaginate.pages=u,s.changeNewPaginate.limit=a,q.pages=u,q.limit=a,!n.isServer&&n.isParamTriggerServer?de():ee({isChangePage:!0})});const We=()=>{if(n.disabled)return;const t=!K.value;let a=[];if(t){const o=ue(),r=U.value,u=[];o.forEach(f=>{i.isExistValue(r,f)||u.push(f)}),a=r.concat(u)}K.value=t,U.value=a,Be()},Pe=(t,a,o)=>{n.disabled||d.isRunLoading||(s.changeNewPaginate.pages=1,q.pages=1,s.changeNewSort.orderIndex=a,s.changeNewSort.orderBy=o,!n.isServer&&n.isParamTriggerServer?de():ee({isChangePage:!1}))},$e=(t,a,o)=>{if(!a||i.isEmpty(a)||i.isBoolean(a.isDisabled)&&a.isDisabled||n.disabled)return;const r=i.isNonEmptyString(n.rowClickKeyInvalid)?V.getParent(t.target,n.rowClickKeyInvalid,t.currentTarget,!1):void 0;if(i.isUndefined(r)){if(n.isElastic){const f=i.isNonEmptyString(n.rowClickKeyElastic)?V.getParent(t.target,n.rowClickKeyElastic,t.currentTarget,!1):void 0;if(i.isUndefined(f))n.isClickRowLinkage&&be(a,o);else{be(a,o,f);return}}let u=!1;if(d.isCheckedRadio||d.isCheckedCheckbox){let f=V.getParent(t.target,".th-rc",t.currentTarget,!1);f===t.currentTarget&&(f=null),i.isUndefined(f)?n.isClickRowLinkage&&Ke(a):(u=!0,Ke(a))}Ct(a,o,u)}},ie=(t,a=-1)=>{d.hoverTrIndex=t,d.hoverTrElasticIndex=a},ne=()=>{d.hoverTrIndex=-1,d.hoverTrElasticIndex=-1},Ot=(t,a)=>{n.disabled||d.isRunLoading||n.isPaginate&&(s.changeNewPaginate.pages=t,s.changeNewPaginate.limit=a,!n.isServer&&n.isParamTriggerServer?de():ee({isChangePage:!0}))},tt=t=>{Ne(t)};return m({getParamInfo:()=>me(),refresh:(t=!0)=>{d.isRunLoading||(t&&(s.changeNewPaginate.pages=1),ee())},getData:()=>{const t=e.toRaw(T.value);return i.getListClone(t)},getDataAll:()=>{if(n.isServer){const t=e.toRaw(T.value);return i.getListClone(t)}return i.getListClone(s.sortLocalData)},getSelectData:()=>{const t=je();return{ids:(t?.checkedIds||[]).join(","),list:t?.checkedData||[]}},loadStart:()=>{Ce()},loadStop:()=>{ze()},loadElasticStart:t=>{i.isUndefined(t)||t===null||Je(t.toString())},loadElasticStop:t=>{i.isUndefined(t)||t===null||Ye(t.toString())},closeElastic:(t,a,o)=>{if(i.isEmpty(t)||i.isEmpty(t.id))return;const r=t.id.toString();if(P.open.indexOf(r)===-1)return;const u=o||(h.value?h.value.querySelector(`[data-elastic-id="${CSS.escape(r)}"]`):null);be(t,a,u,!1)},refreshResize:()=>{ge()}}),(t,a)=>(e.openBlock(),e.createElementBlock("div",{id:e.unref(Z),class:e.normalizeClass(ht.value)},[e.createElementVNode("div",cl,[l.isHead?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("div",{class:e.normalizeClass(mt.value),style:e.normalizeStyle({width:p.width}),ref_key:"refElHeadWrapper",ref:Y},[e.createElementVNode("div",{class:e.normalizeClass(gt.value),ref_key:"refElHeadContainer",ref:z},[e.createElementVNode("div",{class:"table-head-main",ref_key:"refElHeadMain",ref:$},[e.createVNode(Ve,{minWidth:c.minWidth,columns:l.columns,isOrder:l.isOrder,orderSort:_.value,isShowTotal:oe.value,totalInfo:l.totalData,keyIndex:X,hoverIndex:d.hoverTrIndex,isUseScrollX:J.value,isShowRadio:d.isCheckedRadio,isShowCheckbox:d.isCheckedCheckbox,isShowCheckboxAll:pe.value,disabled:l.disabled,checkboxAllValue:K.value,isInlineWidth:l.isInlineWidth,widthClassPrefix:l.widthClassPrefix,widthMinClassPrefix:l.widthMinClassPrefix,onOnClickAll:We,onOnClickOrderBy:Pe,onOnHoverIn:ie,onOnHoverOut:ne,ref_key:"refElHeadTable",ref:g},e.createSlots({_:2},[e.renderList(ve.value,o=>({name:o,fn:e.withCtx(r=>[e.renderSlot(t.$slots,o,{data:r.data})])})),e.renderList(Se.value,o=>({name:o,fn:e.withCtx(r=>[e.renderSlot(t.$slots,o,{data:r.data})])}))]),1032,["minWidth","columns","isOrder","orderSort","isShowTotal","totalInfo","hoverIndex","isUseScrollX","isShowRadio","isShowCheckbox","isShowCheckboxAll","disabled","checkboxAllValue","isInlineWidth","widthClassPrefix","widthMinClassPrefix"])],512),F.value&&y.leftColumnLength>0?(e.openBlock(),e.createElementBlock("div",dl,[e.createElementVNode("div",{class:"table-fixed-column-left-container",style:e.normalizeStyle({width:y.leftWidth})},[e.createVNode(Ve,{fixedType:"left",fixedLeftIndex:l.fixedColumnLeftIndex,width:y.totalWidth,columns:l.columns,isOrder:l.isOrder,orderSort:_.value,isShowTotal:oe.value,totalInfo:l.totalData,keyIndex:X,hoverIndex:d.hoverTrIndex,isUseScrollX:J.value,isShowRadio:d.isCheckedRadio,isShowCheckbox:d.isCheckedCheckbox,isShowCheckboxAll:pe.value,disabled:l.disabled,checkboxAllValue:K.value,isInlineWidth:l.isInlineWidth,widthClassPrefix:l.widthClassPrefix,widthMinClassPrefix:l.widthMinClassPrefix,onOnClickAll:We,onOnClickOrderBy:Pe,onOnHoverIn:ie,onOnHoverOut:ne},e.createSlots({_:2},[e.renderList(ve.value,o=>({name:o,fn:e.withCtx(r=>[e.renderSlot(t.$slots,o,{data:r.data})])})),e.renderList(Se.value,o=>({name:o,fn:e.withCtx(r=>[e.renderSlot(t.$slots,o,{data:r.data})])}))]),1032,["fixedLeftIndex","width","columns","isOrder","orderSort","isShowTotal","totalInfo","hoverIndex","isUseScrollX","isShowRadio","isShowCheckbox","isShowCheckboxAll","disabled","checkboxAllValue","isInlineWidth","widthClassPrefix","widthMinClassPrefix"])],4)])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[],64)),D.value&&y.rightColumnLength>0?(e.openBlock(),e.createElementBlock("div",ul,[e.createElementVNode("div",{class:"table-fixed-column-right-container",style:e.normalizeStyle({width:y.rightWidth})},[e.createVNode(Ve,{fixedType:"right",fixedRightIndex:l.fixedColumnRightIndex,width:y.totalWidth,columns:l.columns,isOrder:l.isOrder,orderSort:_.value,keyIndex:X,hoverIndex:d.hoverTrIndex,isShowTotal:oe.value,totalInfo:l.totalData,isUseScrollX:J.value,isShowRadio:d.isCheckedRadio,isShowCheckbox:d.isCheckedCheckbox,isShowCheckboxAll:pe.value,disabled:l.disabled,checkboxAllValue:K.value,isInlineWidth:l.isInlineWidth,widthClassPrefix:l.widthClassPrefix,widthMinClassPrefix:l.widthMinClassPrefix,onOnClickAll:We,onOnClickOrderBy:Pe,onOnHoverIn:ie,onOnHoverOut:ne},e.createSlots({_:2},[e.renderList(ve.value,o=>({name:o,fn:e.withCtx(r=>[e.renderSlot(t.$slots,o,{data:r.data})])})),e.renderList(Se.value,o=>({name:o,fn:e.withCtx(r=>[e.renderSlot(t.$slots,o,{data:r.data})])}))]),1032,["fixedRightIndex","width","columns","isOrder","orderSort","hoverIndex","isShowTotal","totalInfo","isUseScrollX","isShowRadio","isShowCheckbox","isShowCheckboxAll","disabled","checkboxAllValue","isInlineWidth","widthClassPrefix","widthMinClassPrefix"])],4)])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:3},[],64))],2),C.value?(e.openBlock(),e.createElementBlock("div",fl,[a[0]||(a[0]=e.createElementVNode("div",null,null,-1)),oe.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:"table-scroll-occupy-total",style:e.normalizeStyle({height:d.totalHeight})},null,4)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[],64)),l.isScrollX?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass({"table-scroll-occupy-corner":c.isShow})},null,2)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:3},[],64))])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[],64)),l.isScrollX?e.withDirectives((e.openBlock(),e.createElementBlock("div",hl,[e.createVNode(at._sfc_main,{isShowLeft:F.value,isShowRight:D.value,leftWidth:y.leftWidth,centerWidth:y.centerWidth,rightWidth:y.rightWidth,isShowCorner:C.value,cornerType:"right-top",onOnScrollX:tt,ref_key:"refElHeadFixedScrollX",ref:k},null,8,["isShowLeft","isShowRight","leftWidth","centerWidth","rightWidth","isShowCorner"])],512)),[[e.vShow,c.isShow]]):(e.openBlock(),e.createElementBlock(e.Fragment,{key:3},[],64)),p.isShow&&d.isRunLoading?(e.openBlock(),e.createElementBlock("div",ml)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:5},[],64))],6),p.isShow?(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle({height:p.height,width:p.width})},null,4)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[],64))],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[],64)),e.createElementVNode("div",{class:e.normalizeClass(yt.value),ref_key:"refElBodyWrapper",ref:W},[e.createElementVNode("div",{class:"table-body-container",style:e.normalizeStyle(vt.value),ref_key:"refElBodyContainer",ref:j},[e.createElementVNode("div",{class:e.normalizeClass({"table-body-main":!0,"table-body-empty":T.value.length===0}),style:e.normalizeStyle(xt.value),ref_key:"refElBodyMain",ref:h},[e.createVNode(Xe,{minWidth:c.minWidth,columns:l.columns,list:T.value,disabled:l.disabled,isOrder:l.isOrder,selectValue:U.value,keyIndex:X,hoverIndex:d.hoverTrIndex,hoverElasticIndex:d.hoverTrElasticIndex,isUseScrollX:J.value,colspanCount:d.colspanCount,isRunLoading:d.isRunLoading,isShowRadio:d.isCheckedRadio,isShowCheckbox:d.isCheckedCheckbox,isElastic:l.isElastic,elasticOpen:P.open,elasticLoading:P.loading,elasticType:l.elasticType,elasticData:l.elasticData,trIntervalNum:l.trIntervalNum,isStriped:l.isStriped,emptyText:l.emptyText,isInlineWidth:l.isInlineWidth,widthClassPrefix:l.widthClassPrefix,widthMinClassPrefix:l.widthMinClassPrefix,onOnClickTr:$e,onOnHoverIn:ie,onOnHoverOut:ne,ref_key:"refElBodyTable",ref:v},e.createSlots({_:2},[e.renderList(xe.value,o=>({name:o,fn:e.withCtx(r=>[e.renderSlot(t.$slots,o,{data:r.data,trIndex:r.trIndex})])})),e.renderList(ke.value,o=>({name:o,fn:e.withCtx(r=>[e.renderSlot(t.$slots,o,{data:r.data,trIndex:r.trIndex,trElasticInx:r.trElasticInx})])}))]),1032,["minWidth","columns","list","disabled","isOrder","selectValue","hoverIndex","hoverElasticIndex","isUseScrollX","colspanCount","isRunLoading","isShowRadio","isShowCheckbox","isElastic","elasticOpen","elasticLoading","elasticType","elasticData","trIntervalNum","isStriped","emptyText","isInlineWidth","widthClassPrefix","widthMinClassPrefix"])],6),F.value&&y.leftColumnLength>0?(e.openBlock(),e.createElementBlock("div",gl,[e.createElementVNode("div",{class:"table-fixed-column-left-container",style:e.normalizeStyle({width:y.leftWidth})},[e.createVNode(Xe,{width:y.totalWidth,fixedType:"left",fixedLeftIndex:l.fixedColumnLeftIndex,columns:l.columns,list:T.value,disabled:l.disabled,isOrder:l.isOrder,selectValue:U.value,keyIndex:X,hoverIndex:d.hoverTrIndex,hoverElasticIndex:d.hoverTrElasticIndex,isUseScrollX:J.value,colspanCount:d.colspanCount,isRunLoading:d.isRunLoading,isShowRadio:d.isCheckedRadio,isShowCheckbox:d.isCheckedCheckbox,isElastic:l.isElastic,elasticOpen:P.open,elasticLoading:P.loading,elasticType:l.elasticType,elasticData:l.elasticData,trIntervalNum:l.trIntervalNum,isStriped:l.isStriped,emptyText:l.emptyText,isInlineWidth:l.isInlineWidth,widthClassPrefix:l.widthClassPrefix,widthMinClassPrefix:l.widthMinClassPrefix,onOnClickTr:$e,onOnHoverIn:ie,onOnHoverOut:ne},e.createSlots({_:2},[e.renderList(xe.value,o=>({name:o,fn:e.withCtx(r=>[e.renderSlot(t.$slots,o,{data:r.data,trIndex:r.trIndex})])})),e.renderList(ke.value,o=>({name:o,fn:e.withCtx(r=>[e.renderSlot(t.$slots,o,{data:r.data,trIndex:r.trIndex,trElasticInx:r.trElasticInx})])}))]),1032,["width","fixedLeftIndex","columns","list","disabled","isOrder","selectValue","hoverIndex","hoverElasticIndex","isUseScrollX","colspanCount","isRunLoading","isShowRadio","isShowCheckbox","isElastic","elasticOpen","elasticLoading","elasticType","elasticData","trIntervalNum","isStriped","emptyText","isInlineWidth","widthClassPrefix","widthMinClassPrefix"])],4)])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[],64)),D.value&&y.rightColumnLength>0?(e.openBlock(),e.createElementBlock("div",yl,[e.createElementVNode("div",{class:"table-fixed-column-right-container",style:e.normalizeStyle({width:y.rightWidth})},[e.createVNode(Xe,{width:y.totalWidth,fixedType:"right",fixedRightIndex:l.fixedColumnRightIndex,columns:l.columns,list:T.value,disabled:l.disabled,isOrder:l.isOrder,selectValue:U.value,keyIndex:X,hoverIndex:d.hoverTrIndex,hoverElasticIndex:d.hoverTrElasticIndex,isUseScrollX:J.value,colspanCount:d.colspanCount,isRunLoading:d.isRunLoading,isShowRadio:d.isCheckedRadio,isShowCheckbox:d.isCheckedCheckbox,isElastic:l.isElastic,elasticOpen:P.open,elasticLoading:P.loading,elasticType:l.elasticType,elasticData:l.elasticData,trIntervalNum:l.trIntervalNum,isStriped:l.isStriped,emptyText:l.emptyText,isInlineWidth:l.isInlineWidth,widthClassPrefix:l.widthClassPrefix,widthMinClassPrefix:l.widthMinClassPrefix,onOnClickTr:$e,onOnHoverIn:ie,onOnHoverOut:ne},e.createSlots({_:2},[e.renderList(xe.value,o=>({name:o,fn:e.withCtx(r=>[e.renderSlot(t.$slots,o,{data:r.data,trIndex:r.trIndex})])})),e.renderList(ke.value,o=>({name:o,fn:e.withCtx(r=>[e.renderSlot(t.$slots,o,{data:r.data,trIndex:r.trIndex,trElasticInx:r.trElasticInx})])}))]),1032,["width","fixedRightIndex","columns","list","disabled","isOrder","selectValue","hoverIndex","hoverElasticIndex","isUseScrollX","colspanCount","isRunLoading","isShowRadio","isShowCheckbox","isElastic","elasticOpen","elasticLoading","elasticType","elasticData","trIntervalNum","isStriped","emptyText","isInlineWidth","widthClassPrefix","widthMinClassPrefix"])],4)])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:3},[],64))],4),l.isScrollX&&T.value.length>0&&c.isShow?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[l.isScrollXBottom?(e.openBlock(),e.createElementBlock("div",{key:0,class:"table-fixed-column-scrollX",style:e.normalizeStyle({bottom:le.value?"-1px":"1px"})},[e.createVNode(at._sfc_main,{isShowLeft:F.value,isShowRight:D.value,leftWidth:y.leftWidth,centerWidth:y.centerWidth,rightWidth:y.rightWidth,isShowCorner:C.value,isShowCover:!1,cornerType:"right-bottom",onOnScrollX:tt,ref_key:"refElBodyFixedScrollX",ref:O},null,8,["isShowLeft","isShowRight","leftWidth","centerWidth","rightWidth","isShowCorner"])],4)):(e.openBlock(),e.createElementBlock("div",vl,[e.createElementVNode("div",{style:e.normalizeStyle({height:`${ot}px`})},null,4)]))],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[],64))],2),l.isPaginate&&T.value.length>0?(e.openBlock(),e.createElementBlock("div",xl,[a[1]||(a[1]=e.createElementVNode("div",null,null,-1)),e.createVNode(Mt._sfc_main,{currentPage:q.pages,limitValue:q.limit,limitData:l.paginateLimitData,isShowLimit:l.isPaginateLimit,totalCount:ft.value,disabled:l.disabled||d.isRunLoading,onOnChange:Ot},null,8,["currentPage","limitValue","limitData","isShowLimit","totalCount","disabled"])])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:3},[],64))]),d.isRunLoading?(e.openBlock(),e.createElementBlock("div",Sl,[e.createElementVNode("div",kl,[e.createElementVNode("div",{class:"table-load-head",style:e.normalizeStyle(St.value)},null,4),e.createElementVNode("div",{class:e.normalizeClass({"table-load-body":!0,"table-load-bg-gray":l.isLoading})},[e.createVNode($t._sfc_main,{isLoadIng:l.isLoading,size:"xxl",theme:l.loadTheme,color:l.loadColor||void 0},null,8,["isLoadIng","theme","color"])],2)])])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[],64))],10,rl))}});module.exports=El;
|
|
1
|
+
"use strict";const e=require("vue"),Fe=require("@cldemo/ui-kit/common/log"),i=require("@cldemo/ui-kit/common/base"),V=require("@cldemo/ui-kit/common/Element"),it=require("@cldemo/ui-kit/common/Element/Event"),rt=require("../Shared/One.vue_vue_type_script_setup_true_lang-DxUlP9yq.js"),ct=require("../Shared/Index.vue_vue_type_script_setup_true_lang-xONe0mSK.js"),dt=require("../Shared/index-q2CbfC2a.js"),Wt=require("../Shared/One.vue_vue_type_script_setup_true_lang-DHPYObdu.js"),nt=require("../Shared/Index.vue_vue_type_script_setup_true_lang-CZNVHUR1.js"),Pt=require("../Shared/language-BJ4aVgHI.js"),$t=require("../Shared/Ing.vue_vue_type_script_setup_true_lang-DaWKYdkt.js"),Mt=require("../Shared/Index.vue_vue_type_script_setup_true_lang-2zp0QTNm.js"),at=require("../Shared/Index.vue_vue_type_script_setup_true_lang-DBrrIpHb.js");;/* empty css */const ut=l=>{if(i.isNonEmptyString(l)){if(l.indexOf("clIcon-")===0){const m=l.substring(7);return i.isNonEmptyString(m)&&/^[a-zA-Z0-9-]+$/.test(m)?{name:m,className:""}:{name:"question-circle",className:""}}return/^clicon/i.test(l)?{name:"question-circle",className:""}:/^[a-zA-Z0-9-]+$/.test(l)?{name:l,className:""}:{name:"",className:l}}return{name:"question-circle",className:""}},At=["aria-sort"],Ht=e.defineComponent({name:"ClTableTh",directives:{cltooltip:dt.tooltipDirectives},__name:"Th",props:{isOrder:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},orderSort:{type:Array,default:()=>[]},isUseScrollX:{type:Boolean,default:!1},thIndex:{type:Number,default:0},thInfo:{type:Object,default:()=>({})},fixedLeftIndex:{type:Number,default:-1},fixedRightIndex:{type:Number,default:-1},isInlineWidth:{type:Boolean,default:!1},widthClassPrefix:{type:String,default:"width-"},widthMinClassPrefix:{type:String,default:"width-min-"}},emits:{onClickOrderBy:(l,m,x)=>!0},setup(l,{emit:m}){const x=l,n=m,I=e.computed(()=>ut(x.thInfo?.tipIcon)),w=e.computed(()=>i.isObject(x.thInfo)&&!i.isEmpty(x.thInfo)?x.thInfo:{}),A=e.computed(()=>!x.isOrder||i.isEmpty(w.value)?!1:i.isEmpty(w.value.sort)?!0:w.value.sort===!0),E=e.computed(()=>A.value&&!x.disabled),S=e.computed(()=>{const g=x.thInfo?.tipMsg;if(!i.isNonEmptyString(g))return;const k=i.removeHTMLTags(g);return i.isNonEmptyString(k)?k:void 0}),s=e.computed(()=>{if(!A.value)return"";const g=i.isEmpty(x.orderSort)?[]:x.orderSort;return g.length>0&&g[0]===x.thIndex?g.length===2?g[1]==="asc"||g[1]==="desc"?g[1]:"none":g.length===1?"desc":"none":"none"}),B=e.computed(()=>{if(s.value==="asc")return"ascending";if(s.value==="desc")return"descending";if(s.value==="none")return"none"}),X=e.computed(()=>{const g={},k=w.value;if(!i.isEmpty(k.width)&&z(k.width)&&(g[`${x.widthClassPrefix}${k.width}`]=!0),!i.isEmpty(k.widthMin)&&z(k.widthMin)&&x.isUseScrollX&&(g[`${x.widthMinClassPrefix}${k.widthMin}`]=!0),(x.fixedLeftIndex>-1||x.fixedRightIndex>-1)&&(g["th-hidden"]=x.fixedLeftIndex>-1&&x.thIndex>x.fixedLeftIndex||x.fixedRightIndex>-1&&x.thIndex<x.fixedRightIndex),A.value){g["th-sort"]=!0,g["sort-none"]=!0,g["th-sort-near"]=k.sortNear===!0;const j=s.value;(j==="asc"||j==="desc")&&(g[`sort-${j}`]=!0,g["sort-none"]=!1)}i.isNonEmptyString(k.tipMsg)&&(g["th-tip"]=!0,g["th-tip-sideAlign"]=k.tipSideAlign===!0),x.disabled&&(g["th-disabled"]=!0),i.isNonEmptyString(k.textAlign)&&i.isExistValue(["left","center","right"],k.textAlign)&&(g[`text-${k.textAlign}`]=!0);let W=g;return W=i.getJsonMerge(W,V.getClassNameJson(k.className)),W=i.getJsonMerge(W,V.getClassNameJson(k.classTh)),W}),Z=e.computed(()=>{const g={};if(!x.isInlineWidth)return g;const k=w.value;return!i.isEmpty(k.width)&&z(k.width)&&(g.width=i.isFinite(Number(k.width))?`${Number(k.width)}px`:`${k.width}`),!i.isEmpty(k.widthMin)&&z(k.widthMin)&&x.isUseScrollX&&(g.minWidth=i.isFinite(Number(k.widthMin))?`${Number(k.widthMin)}px`:`${k.widthMin}`),g}),Y=(g,k)=>{n("onClickOrderBy",g,x.thIndex,k)},z=g=>i.isString(g)||i.getTypeof(g)==="number"&&i.isFinite(g),$=()=>{if(E.value){const g=s.value==="desc"?"asc":"desc";Y(w.value,g)}};return(g,k)=>{const W=e.resolveDirective("cltooltip");return!e.unref(i).isBoolean(l.thInfo?.visible)||l.thInfo.visible?(e.openBlock(),e.createElementBlock("th",{key:0,class:e.normalizeClass(X.value),style:e.normalizeStyle(Z.value),scope:"col","aria-sort":B.value},[e.createElementVNode("span",{class:"th-title",onClick:$},[e.renderSlot(g.$slots,"default")]),e.unref(i).isNonEmptyString(l.thInfo?.tipMsg)?e.withDirectives((e.openBlock(),e.createBlock(ct._sfc_main,{key:0,name:I.value.name,className:I.value.className,class:"th-tip-icon",role:"img","aria-label":S.value},null,8,["name","className","aria-label"])),[[W,{html:l.thInfo.tipMsg,className:"tooltip-modal"}]]):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[],64)),s.value!==""?(e.openBlock(),e.createElementBlock("i",{key:2,class:"tr-sort-icon","aria-hidden":"true",onClick:$})):(e.openBlock(),e.createElementBlock(e.Fragment,{key:3},[],64))],14,At)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[],64))}}}),Ue=e.defineComponent({name:"ClTableTd",directives:{cltooltip:dt.tooltipDirectives},__name:"Td",props:{tdIndex:{type:Number,default:0},tdInfo:{type:Object,default:()=>({})},isOrder:{type:Boolean,default:!1},isUseScrollX:{type:Boolean,default:!1},fixedLeftIndex:{type:Number,default:-1},fixedRightIndex:{type:Number,default:-1},isInlineWidth:{type:Boolean,default:!1},widthClassPrefix:{type:String,default:"width-"},widthMinClassPrefix:{type:String,default:"width-min-"},useType:{type:String,default:"td",validator:l=>["td","total"].indexOf(l)>-1}},setup(l){const m=l,x=e.computed(()=>ut(m.tdInfo?.tipIcon)),n=e.computed(()=>i.isEmpty(m.tdInfo)?{}:m.tdInfo),I=e.computed(()=>{const S=m.tdInfo?.tipMsg;if(!i.isNonEmptyString(S))return;const s=i.removeHTMLTags(S);return i.isNonEmptyString(s)?s:void 0}),w=e.computed(()=>{const S={},s=n.value;!i.isEmpty(s.width)&&E(s.width)&&(S[`${m.widthClassPrefix}${s.width}`]=!0),!i.isEmpty(s.widthMin)&&E(s.widthMin)&&m.isUseScrollX&&(S[`${m.widthMinClassPrefix}${s.widthMin}`]=!0),(m.fixedLeftIndex>-1||m.fixedRightIndex>-1)&&(S["td-hidden"]=m.fixedLeftIndex>-1&&m.tdIndex>m.fixedLeftIndex||m.fixedRightIndex>-1&&m.tdIndex<m.fixedRightIndex),m.isOrder&&(i.isEmpty(s.sort)||s.sort===!0)&&(S["td-sort"]=!0,S["td-sort-near"]=s.sortNear===!0),i.isNonEmptyString(s.tipMsg)&&(S["td-tip"]=!0,S["td-tip-sideAlign"]=s.tipSideAlign===!0),i.isNonEmptyString(s.textAlign)&&i.isExistValue(["left","center","right"],s.textAlign)&&(S[`text-${s.textAlign}`]=!0);let B=S;return B=i.getJsonMerge(B,V.getClassNameJson(s.className)),m.useType==="td"?B=i.getJsonMerge(B,V.getClassNameJson(s.classTd)):m.useType==="total"&&(B=i.getJsonMerge(B,V.getClassNameJson(s.classTotal))),B}),A=e.computed(()=>{const S={};if(!m.isInlineWidth)return S;const s=n.value;return!i.isEmpty(s.width)&&E(s.width)&&(S.width=i.isFinite(Number(s.width))?`${Number(s.width)}px`:`${s.width}`),!i.isEmpty(s.widthMin)&&E(s.widthMin)&&m.isUseScrollX&&(S.minWidth=i.isFinite(Number(s.widthMin))?`${Number(s.widthMin)}px`:`${s.widthMin}`),S}),E=S=>i.isString(S)||i.getTypeof(S)==="number"&&i.isFinite(S);return(S,s)=>{const B=e.resolveDirective("cltooltip");return!e.unref(i).isBoolean(l.tdInfo?.visible)||l.tdInfo.visible?(e.openBlock(),e.createElementBlock("td",{key:0,class:e.normalizeClass(w.value),style:e.normalizeStyle(A.value)},[e.renderSlot(S.$slots,"default"),e.unref(i).isNonEmptyString(l.tdInfo?.tipMsg)?e.withDirectives((e.openBlock(),e.createBlock(ct._sfc_main,{key:0,name:x.value.name,className:x.value.className,class:"td-tip-icon",role:"img","aria-label":I.value},null,8,["name","className","aria-label"])),[[B,{html:l.tdInfo.tipMsg,className:"tooltip-modal"}]]):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[],64))],6)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[],64))}}}),Ft=["aria-hidden"],Dt={key:0},Vt={key:0},De=99999999,Ve=e.defineComponent({name:"ClTableHead",__name:"Head",props:{columns:{type:Array,default:()=>[]},isOrder:{type:Boolean,default:!1},orderSort:{type:Array,default:()=>[]},isShowTotal:{type:Boolean,default:!1},totalInfo:{type:Object,default:()=>({})},keyIndex:String,width:{type:String,default:"none"},minWidth:{type:String,default:"none"},hoverIndex:{type:Number,default:-1},isUseScrollX:{type:Boolean,default:!1},isShowRadio:{type:Boolean,default:!1},isShowCheckbox:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},isShowCheckboxAll:{type:Boolean,default:!0},checkboxAllValue:{type:Boolean,default:!1},fixedType:{type:String,default:"",validator:l=>["","left","right"].indexOf(l)>-1},fixedLeftIndex:{type:Number,default:-1,validator:l=>l>=-1},fixedRightIndex:{type:Number,default:-1,validator:l=>l>=-1},isInlineWidth:{type:Boolean,default:!1},widthClassPrefix:{type:String,default:"width-"},widthMinClassPrefix:{type:String,default:"width-min-"}},emits:{onClickAll:()=>!0,onClickOrderBy:(l,m,x)=>!0,onHoverIn:l=>!0,onHoverOut:()=>!0},setup(l,{expose:m,emit:x}){const n=l,I=x,w=e.useTemplateRef("refElTable"),A=e.computed(()=>({"table-default":!0,"table-base":!0})),E=e.computed(()=>{const h={};return i.isEmpty(n.fixedType)?n.isUseScrollX&&i.isNonEmptyString(n.minWidth)&&n.minWidth!=="none"&&(h.minWidth=n.minWidth):i.isNonEmptyString(n.width)&&n.width!=="none"&&(h.width=n.width),h}),S=h=>h?i.isUndefined(h.title)?i.isUndefined(h.data)?"":h.data:h.title:"",s=(h,v)=>i.isUndefined(h)||!v?"":i.isEmpty(v.format)?h:i.getValueByFormat(h,v.format??"",v.formatExt),B=(h,v)=>!h||!v?"":s(h[v.data],v);e.watch(()=>n.isShowTotal,h=>{!h&&n.hoverIndex===De&&I("onHoverOut")});const X=()=>{I("onClickAll")},Z=(h,v,O)=>{I("onClickOrderBy",h,v,O)},Y=()=>{I("onHoverIn",De)},z=()=>{I("onHoverOut")};return m({getOffsetHeight:()=>w.value?w.value.offsetHeight:0,getRcWidth:()=>{let h=0;if((n.isShowRadio||n.isShowCheckbox)&&w.value){const v=w.value.querySelector(".th-rc");v&&(h=v.clientWidth)}return h},getPaddingLr:()=>{let h=0;if(!w.value)return h;const v=w.value.querySelectorAll("th:not(.th-rc)");for(let O=0;O<v.length;O++){const d=V.getStyle(v[O]),T=parseFloat(d.paddingLeft),q=parseFloat(d.paddingRight),_=i.isFinite(T)?T:0,K=i.isFinite(q)?q:0;h+=_+K}return h},getElTh:()=>w.value?w.value.querySelectorAll("th"):[],getTotalHeight:()=>{let h=0;if(n.isShowTotal&&w.value){const v=w.value.querySelector(".tr-total");v&&(h=v.clientHeight)}return h}}),(h,v)=>(e.openBlock(),e.createElementBlock("table",{class:e.normalizeClass(A.value),style:e.normalizeStyle(E.value),"aria-hidden":!e.unref(i).isEmpty(l.fixedType),ref_key:"refElTable",ref:w},[e.createElementVNode("thead",null,[e.createElementVNode("tr",null,[l.isShowRadio||l.isShowCheckbox?(e.openBlock(),e.createElementBlock("th",{key:0,class:e.normalizeClass({"th-rc":!0,"th-hidden":l.fixedRightIndex>-1}),scope:"col"},[l.isShowCheckbox&&l.isShowCheckboxAll?(e.openBlock(),e.createBlock(rt._sfc_main,{key:0,forId:e.unref(i).isNonEmptyString(l.keyIndex)?`${l.keyIndex}_${l.fixedType}_cb_all`:void 0,value:l.checkboxAllValue,disabled:l.disabled,onOnChange:X},null,8,["forId","value","disabled"])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[],64))],2)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[],64)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.columns,(O,d)=>(e.openBlock(),e.createBlock(Ht,{key:`${l.keyIndex}_${l.fixedType}_head_th_${d}`,thInfo:O,thIndex:d,isOrder:l.isOrder,disabled:l.disabled,orderSort:l.orderSort,isUseScrollX:l.isUseScrollX,fixedLeftIndex:l.fixedLeftIndex,fixedRightIndex:l.fixedRightIndex,isInlineWidth:l.isInlineWidth,widthClassPrefix:l.widthClassPrefix,widthMinClassPrefix:l.widthMinClassPrefix,onOnClickOrderBy:Z},{default:e.withCtx(()=>[e.renderSlot(h.$slots,`th_${O?.data??""}`,{data:O},()=>[e.createElementVNode("span",null,e.toDisplayString(S(O)),1)])]),_:2},1032,["thInfo","thIndex","isOrder","disabled","orderSort","isUseScrollX","fixedLeftIndex","fixedRightIndex","isInlineWidth","widthClassPrefix","widthMinClassPrefix"]))),128))])]),l.isShowTotal?(e.openBlock(),e.createElementBlock("tbody",Dt,[e.createElementVNode("tr",{class:e.normalizeClass({"tr-total":!0,"tr-hover":l.hoverIndex===De}),onMouseenter:Y,onMouseleave:z},[l.isShowRadio||l.isShowCheckbox?(e.openBlock(),e.createElementBlock("td",Vt)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[],64)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.columns,(O,d)=>(e.openBlock(),e.createBlock(Ue,{key:`${l.keyIndex}_${l.fixedType}_body_total_td_${d}`,isOrder:l.isOrder,tdIndex:d,tdInfo:O,isUseScrollX:l.isUseScrollX,fixedLeftIndex:l.fixedLeftIndex,fixedRightIndex:l.fixedRightIndex,isInlineWidth:l.isInlineWidth,widthClassPrefix:l.widthClassPrefix,widthMinClassPrefix:l.widthMinClassPrefix,useType:"total"},{default:e.withCtx(()=>[e.renderSlot(h.$slots,`total_${O?.data??""}`,{data:l.totalInfo},()=>[e.createTextVNode(e.toDisplayString(B(l.totalInfo,O)),1)])]),_:2},1032,["isOrder","tdIndex","tdInfo","isUseScrollX","fixedLeftIndex","fixedRightIndex","isInlineWidth","widthClassPrefix","widthMinClassPrefix"]))),128))],34)])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[],64))],14,Ft))}}),Xt=["id"],Ut=e.defineComponent({name:"ClTableTdChecked",__name:"TdChecked",props:{id:String,value:{type:Boolean,default:!1},className:String,disabled:{type:Boolean,default:!1},isShowRadio:{type:Boolean,default:!1},isShowCheckbox:{type:Boolean,default:!1},keyIndex:String,info:{type:Object,default:()=>({})}},setup(l){const m=l,x=m.id,n=e.computed(()=>S("cb")),I=e.computed(()=>S("rd")),w=e.computed(()=>m.value===!0),A=e.computed(()=>m.disabled===!0||i.isBoolean(m.info?.isDisabled)&&m.info.isDisabled),E=e.computed(()=>{const s={"th-rc":!0};return i.getJsonMerge(s,V.getClassNameJson(m.className))}),S=s=>i.isNonEmptyString(m.keyIndex)?`${m.keyIndex}_${s}`:void 0;return(s,B)=>l.isShowRadio||l.isShowCheckbox?(e.openBlock(),e.createElementBlock("td",{key:0,id:e.unref(x),class:e.normalizeClass(E.value)},[l.isShowCheckbox?(e.openBlock(),e.createBlock(rt._sfc_main,{key:0,forId:n.value,value:w.value,disabled:A.value},null,8,["forId","value","disabled"])):l.isShowRadio?(e.openBlock(),e.createBlock(Wt._sfc_main,{key:1,forId:I.value,name:I.value,value:w.value,disabled:A.value},null,8,["forId","name","value","disabled"])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[],64))],10,Xt)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[],64))}}),zt=["onClick","onMouseenter"],qt=["onMouseenter"],Jt=["colspan"],Yt={key:0,class:"panel-elastic-load",role:"status","aria-live":"polite"},jt={class:"elastic-load-container"},Kt=["data-elastic-id"],Gt=["onMouseenter"],Zt=["colspan"],Qt={class:"panel-elastic-load",role:"status","aria-live":"polite"},_t={class:"elastic-load-container"},el=["onMouseenter"],tl={key:2},ll=["colspan"],il={class:"panel-table-empty",role:"status"},Xe=e.defineComponent({name:"ClTableBody",__name:"Body",props:{columns:{type:Array,default:()=>[]},list:{type:Array,default:()=>[]},disabled:{type:Boolean,default:!1},isOrder:{type:Boolean,default:!1},selectValue:{type:Array,default:()=>[]},keyIndex:String,width:{type:String,default:"none"},minWidth:{type:String,default:"none"},hoverIndex:{type:Number,default:-1},hoverElasticIndex:{type:Number,default:-1},isUseScrollX:{type:Boolean,default:!1},colspanCount:{type:Number,default:1},isRunLoading:{type:Boolean,default:!1},isShowRadio:{type:Boolean,default:!1},isShowCheckbox:{type:Boolean,default:!1},isElastic:{type:Boolean,default:!1},elasticOpen:{type:Array,default:()=>[]},elasticLoading:{type:Array,default:()=>[]},elasticType:{type:String,default:"default",validator:l=>["default","sameDataStructure"].indexOf(l)>-1},elasticData:{type:Object,default:()=>({})},fixedType:{type:String,default:""},fixedLeftIndex:{type:Number,default:-1},fixedRightIndex:{type:Number,default:-1},isInlineWidth:{type:Boolean,default:!1},widthClassPrefix:{type:String,default:"width-"},widthMinClassPrefix:{type:String,default:"width-min-"},trIntervalNum:{type:Number,default:-1},isStriped:{type:Boolean,default:!1},emptyText:String},emits:{onClickTr:(l,m,x)=>!0,onHoverIn:(l,m)=>!0,onHoverOut:()=>!0},setup(l,{expose:m,emit:x}){const n=l,I=x,{optPageLanguage:w,getPageLanguage:A}=Pt.useLanguage();A("common");const E=e.useTemplateRef("refElTable"),S=e.ref(new Set),s=e.computed(()=>new Set((Array.isArray(n.selectValue)?n.selectValue:[]).filter(c=>!i.isUndefined(c)).map(c=>String(c)))),B=e.computed(()=>new Set((Array.isArray(n.elasticLoading)?n.elasticLoading:[]).filter(c=>!i.isUndefined(c)).map(c=>String(c)))),X=e.computed(()=>new Set((Array.isArray(n.elasticOpen)?n.elasticOpen:[]).filter(c=>!i.isUndefined(c)).map(c=>String(c)))),Z=e.computed(()=>{const c=Number(n.colspanCount);return i.isFinite(c)&&c>=1?Math.floor(c):1}),Y=e.computed(()=>({"table-default":!0,"table-base":!0,"table-empty":i.isEmpty(n.list)})),z=e.computed(()=>{const c={};return i.isNonEmptyString(n.fixedType)?i.isNonEmptyString(n.width)&&n.width!=="none"&&(c.width=n.width):n.isUseScrollX&&i.isNonEmptyString(n.minWidth)&&n.minWidth!=="none"&&(c.minWidth=n.minWidth),c}),$=(c,C,y)=>{I("onClickTr",c,C,y)},g=(c,C=-1)=>{I("onHoverIn",c,C)},k=()=>{I("onHoverOut")},W=(c,C)=>i.isEmpty(c)||!C?"":i.isEmpty(C.format)?c:i.getValueByFormat(c,C.format??"",C.formatExt),j=c=>{const C=n.elasticData||{};return Object.prototype.hasOwnProperty.call(C,c)?C[c]:[]},h=c=>!i.isEmpty(c)&&!i.isEmpty(c.id)&&s.value.has(c.id.toString()),v=c=>!i.isEmpty(c)&&!i.isEmpty(c.id)&&B.value.has(c.id.toString());return m({getWidth:()=>E.value?E.value.clientWidth:0,getHeight:()=>E.value?E.value.clientHeight:0,setElasticWidth:()=>{if(!E.value)return;const c=E.value.parentNode;if(!c)return;const C=E.value.querySelectorAll(".panel-elastic-load"),y=c.clientWidth;for(let p=0;p<C.length;p++)C[p].style.width=`${y}px`},setElasticHeight:c=>{if(!E.value)return;const C=E.value.querySelector(`[data-elastic-id="${CSS.escape(c)}"]`);if(C){const y=C.parentNode;if(y){C.style.height="",y.style.height="";const L=`${C.clientHeight}px`;C.style.height=L,y.style.height=L}const p=S.value;p.has(c)||(S.value=new Set(p).add(c))}},removeElasticAbsolute:c=>{if(S.value.has(c)){const C=new Set(S.value);C.delete(c),S.value=C}},clearElasticAbsolute:()=>{S.value.size>0&&(S.value=new Set)},setElasticLoadLeft:c=>{if(!E.value)return;const C=E.value.querySelectorAll(".panel-elastic-load"),y=i.isFinite(c)?Math.max(0,c):0;for(let p=0;p<C.length;p++)C[p].style.left=`${y}px`},setEmptyWidth:()=>{if(!E.value)return;const c=E.value.querySelector(".panel-table-empty");if(c){const C=E.value.parentNode;if(C){const y=C.clientWidth;c.style.width=`${y}px`}}},setEmptyLeft:c=>{const C=E.value?E.value.querySelector(".panel-table-empty"):null;if(C){const y=i.isFinite(c)?Math.max(0,c):0;C.style.left=`${y}px`}}}),(c,C)=>(e.openBlock(),e.createElementBlock("table",{class:e.normalizeClass(Y.value),style:e.normalizeStyle(z.value),ref_key:"refElTable",ref:E},[e.createElementVNode("tbody",null,[e.unref(i).isEmpty(l.list)?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[],64)):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(l.list,(y,p)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:`${l.keyIndex}_${l.fixedType}_body_tr_${p}`},[e.createElementVNode("tr",{class:e.normalizeClass({odd:l.isStriped&&p%2===0,"tr-customInterval-odd":l.isStriped&&l.trIntervalNum>0&&Math.floor(p/l.trIntervalNum)%2===0,"tr-customInterval-even":l.isStriped&&l.trIntervalNum>0&&Math.floor(p/l.trIntervalNum)%2===1,"tr-disabled":e.unref(i).isBoolean(y?.isDisabled)&&y.isDisabled,"tr-selected":h(y),"tr-hover":l.hoverIndex===p}),onClick:L=>$(L,y,p),onMouseenter:L=>g(p),onMouseleave:k},[l.isShowRadio||l.isShowCheckbox?(e.openBlock(),e.createBlock(Ut,{key:0,keyIndex:`${l.keyIndex}_${l.fixedType}_body_tr_${p}`,isShowRadio:l.isShowRadio,isShowCheckbox:l.isShowCheckbox,value:h(y),info:y,disabled:l.disabled},null,8,["keyIndex","isShowRadio","isShowCheckbox","value","info","disabled"])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[],64)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.columns,(L,R)=>(e.openBlock(),e.createBlock(Ue,{key:`${l.keyIndex}_${l.fixedType}_body_tr_${p}_td_${R}`,isOrder:l.isOrder,tdIndex:R,tdInfo:L,isUseScrollX:l.isUseScrollX,fixedLeftIndex:l.fixedLeftIndex,fixedRightIndex:l.fixedRightIndex,isInlineWidth:l.isInlineWidth,widthClassPrefix:l.widthClassPrefix,widthMinClassPrefix:l.widthMinClassPrefix},{default:e.withCtx(()=>[e.renderSlot(c.$slots,`td_${L?.data??""}`,{data:y,trIndex:p},()=>[e.createTextVNode(e.toDisplayString(W(y&&L?y[L.data]:void 0,L)),1)])]),_:2},1032,["isOrder","tdIndex","tdInfo","isUseScrollX","fixedLeftIndex","fixedRightIndex","isInlineWidth","widthClassPrefix","widthMinClassPrefix"]))),128))],42,zt),l.isElastic&&!e.unref(i).isEmpty(y?.id)&&X.value.has(y.id.toString())?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[l.elasticType==="default"?(e.openBlock(),e.createElementBlock("tr",{key:0,class:e.normalizeClass({"tr-elastic":!0,"tr-hover":l.hoverIndex===p}),onMouseenter:L=>g(p),onMouseleave:k},[e.createElementVNode("td",{colspan:Z.value,class:e.normalizeClass({"td-elastic-load":v(y)})},[v(y)?(e.openBlock(),e.createElementBlock("div",Yt,[e.createElementVNode("div",jt,[e.createVNode(nt._sfc_main,{theme:"circleBubble",size:"large"})])])):(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(["elastic-container",{"elastic-container-absolute":S.value.has(y.id.toString())}]),"data-elastic-id":y.id},[e.renderSlot(c.$slots,"tr_elastic_children",{data:y,trIndex:p})],10,Kt))],10,Jt)],42,qt)):l.elasticType==="sameDataStructure"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[v(y)?(e.openBlock(),e.createElementBlock("tr",{key:0,class:e.normalizeClass({"tr-elastic":!0,"tr-hover":l.hoverIndex===p}),onMouseenter:L=>g(p),onMouseleave:k},[e.createElementVNode("td",{colspan:Z.value,class:"td-elastic-load"},[e.createElementVNode("div",Qt,[e.createElementVNode("div",_t,[e.createVNode(nt._sfc_main,{theme:"circleBubble",size:"large"})])])],8,Zt)],42,Gt)):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(j(y.id.toString()),(L,R)=>(e.openBlock(),e.createElementBlock("tr",{key:`${l.keyIndex}_${l.fixedType}_body_tr_${p}_elastic_${R}`,class:e.normalizeClass({"tr-elastic-sameDataStructure":!0,odd:l.isStriped&&R%2===0,"tr-disabled":e.unref(i).isBoolean(L?.isDisabled)&&L.isDisabled,"tr-hover":l.hoverElasticIndex===R&&l.hoverIndex===p}),onMouseenter:H=>g(p,R),onMouseleave:k},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.columns,(H,ae)=>(e.openBlock(),e.createBlock(Ue,{key:`${l.keyIndex}_${l.fixedType}_body_tr_${p}_elastic_${R}_td_${ae}`,isOrder:l.isOrder,tdIndex:ae,tdInfo:H,isUseScrollX:l.isUseScrollX,fixedLeftIndex:l.fixedLeftIndex,fixedRightIndex:l.fixedRightIndex,isInlineWidth:l.isInlineWidth,widthClassPrefix:l.widthClassPrefix,widthMinClassPrefix:l.widthMinClassPrefix},{default:e.withCtx(()=>[e.renderSlot(c.$slots,`td_elastic_${H?.data??""}`,{data:L,trIndex:p,trElasticInx:R},()=>[e.createTextVNode(e.toDisplayString(W(L&&H?L[H.data]:void 0,H)),1)])]),_:2},1032,["isOrder","tdIndex","tdInfo","isUseScrollX","fixedLeftIndex","fixedRightIndex","isInlineWidth","widthClassPrefix","widthMinClassPrefix"]))),128))],42,el))),128))],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[],64))],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[],64))],64))),128)),e.unref(i).isEmpty(l.list)&&!l.isRunLoading&&!e.unref(i).isNonEmptyString(l.fixedType)?(e.openBlock(),e.createElementBlock("tr",tl,[e.createElementVNode("td",{colspan:Z.value,class:"td-empty"},[e.createElementVNode("div",il,e.toDisplayString(e.unref(i).isNonEmptyString(l.emptyText)?l.emptyText:e.unref(w).noResultsText),1)],8,ll)])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:3},[],64))])],6))}});function nl(l){if(!Array.isArray(l))return[];const m=[];return l.forEach(x=>{if(i.isEmpty(x))return;const n=x;!(i.isBoolean(n.isDisabled)?n.isDisabled:!1)&&!i.isEmpty(n.id)&&m.push(String(n.id))}),m}function al(l,m,x=!1){if(!Array.isArray(l)||l.length===0)return[];const n=[];return l.forEach(I=>{const w=String(I);m.includes(w)&&n.push(w)}),x&&n.length>1?[n[0]]:n}function ol(l,m){return m.length>0&&m.length===l.length}function sl(l,m){return l.filter(x=>!m.includes(x))}const rl=["id"],cl={class:"table-wrapper"},dl={key:0,class:"table-fixed-column-left"},ul={key:2,class:"table-fixed-column-right"},fl={key:0,class:"table-scroll-occupy-container"},hl={key:2,class:"table-fixed-column-scrollX"},ml={key:4,class:"table-fixed-head-load"},gl={key:0,class:"table-fixed-column-left"},yl={key:2,class:"table-fixed-column-right"},vl={key:1,class:"table-fixed-column-scrollX"},xl={key:2,class:"table-footer-wrapper"},Sl={key:0,class:"table-load",role:"status","aria-live":"polite"},kl={class:"table-load-wrapper"},ot=15,pl=30,Cl=180,wl=50,st=300,El=e.defineComponent({name:"ClTable",__name:"Index",props:{id:String,className:String,disabled:{type:Boolean,default:!1},columns:{type:Array,default:()=>[]},list:{type:Array,default:()=>[]},totalLength:Number,totalData:{type:Object,default:()=>({})},isServer:{type:Boolean,default:!0},isParamTriggerServer:{type:Boolean,default:!1},isLoading:{type:Boolean,default:!0},loadTheme:{type:String,default:"circleBubble"},loadColor:{type:String,default:"var(--cl-primary, #1088f0)"},isShowInitLoadIng:{type:Boolean,default:!0},isPaginate:{type:Boolean,default:!0},pageOffset:{type:Number,default:0},isPaginateLimit:{type:Boolean,default:!0},paginateLimit:{type:Number,default:10},paginateLimitData:{type:Array,default:()=>[]},isOrder:{type:Boolean,default:!1},orderSort:{type:Array,default:()=>[]},selectValue:{type:[String,Number],default:""},checkedRowType:{type:String,default:"none",validator:l=>["none","radio","checkbox"].indexOf(l)>-1},isShowCheckboxAll:{type:Boolean,default:!0},isScrollX:{type:Boolean,default:!1},isScrollXBottom:{type:Boolean,default:!1},isFixedHead:{type:Boolean,default:!1},scrollY:{type:Number,default:-1},fixedColumnLeftIndex:{type:Number,default:-1},fixedColumnRightIndex:{type:Number,default:-1},isInlineWidth:{type:Boolean,default:!1},widthClassPrefix:{type:String,default:"width-"},widthMinClassPrefix:{type:String,default:"width-min-"},isClickRowLinkage:{type:Boolean,default:!1},isElastic:{type:Boolean,default:!1},isElasticLoad:{type:Boolean,default:!0},rowClickKeyInvalid:{type:String,default:".tr-click-invalid"},rowClickKeyElastic:{type:String,default:".tr-click-elastic"},elasticIconCls:{type:Array,default:()=>[]},elasticType:{type:String,default:"default",validator:l=>["default","sameDataStructure"].indexOf(l)>-1},elasticData:{type:Object,default:()=>({})},trIntervalNum:{type:Number,default:-1},isStriped:{type:Boolean,default:!1},emptyText:String,isHead:{type:Boolean,default:!0}},emits:{onGetData:l=>!0,onClickRow:(l,m,x)=>!0,onClickElastic:(l,m,x,n,I)=>!0,onChangeChecked:(l,m,x)=>!0,onChangeParams:l=>!0},setup(l,{expose:m,emit:x}){const n=l,I=x,w=e.useSlots(),A=t=>{let a=[];if(n.isOrder){const o=i.isEmpty(t)?[]:t;let r=[0,"desc"];const u=i.isEmpty(n.columns)?[]:n.columns;for(let f=0;f<u.length;f+=1){const b=u[f];if(i.isEmpty(b))continue;const M=b.sort===void 0||b.sort===null?!0:b.sort===!0,N=i.isBoolean(b.visible)?b.visible:!0;if(M&&N){r=[f,"desc"];break}}if(o.length===0)a=r;else{const f=u[o[0]];if(i.isEmpty(f))a=r;else{const b=f.sort===void 0||f.sort===null?!0:f.sort===!0,M=i.isBoolean(f.visible)?f.visible:!0,N=Array.isArray(o)?o[0]:void 0,te=Array.isArray(o)&&(o[1]==="asc"||o[1]==="desc")?o[1]:void 0;a=b&&M&&!i.isUndefined(N)?[N,te??"desc"]:r}}}return a},E=()=>{let t=1;return n.paginateLimit>0&&n.pageOffset>=0&&(t=Math.floor(n.pageOffset/n.paginateLimit)+1),t},S=A(n.orderSort),s={dataJson:i.getJsonByList(n.list),changeNewPaginate:{pages:E(),limit:n.paginateLimit},changeNewSort:{orderIndex:S[0],orderBy:S[1]},sortLocalData:[],scrollBody:{left:0},scrollHead:{left:0},resizeEvent:null,timerBody:null,pendingCanceled:!1},B={observerBodyScrollY:null},X=`table-${i.getRandom(5)}`,Z=n.id,Y=e.useTemplateRef("refElHeadWrapper"),z=e.useTemplateRef("refElHeadContainer"),$=e.useTemplateRef("refElHeadMain"),g=e.useTemplateRef("refElHeadTable"),k=e.useTemplateRef("refElHeadFixedScrollX"),W=e.useTemplateRef("refElBodyWrapper"),j=e.useTemplateRef("refElBodyContainer"),h=e.useTemplateRef("refElBodyMain"),v=e.useTemplateRef("refElBodyTable"),O=e.useTemplateRef("refElBodyFixedScrollX"),d=e.reactive({isRunLoading:!1,isCheckedRadio:n.checkedRowType==="radio",isCheckedCheckbox:n.checkedRowType==="checkbox",colspanCount:0,hoverTrIndex:-1,hoverTrElasticIndex:-1,totalHeight:"0"}),T=e.ref([]),q=e.reactive({pages:s.changeNewPaginate.pages,limit:s.changeNewPaginate.limit}),_=e.ref(S),K=e.ref(!1),ce=()=>{const t=n.selectValue;return i.isNonEmptyString(t)?i.split(t):i.isNumber(t)?i.split(t.toString()):[]},U=e.ref(ce()),P=e.reactive({open:[],loading:[]}),c=e.reactive({isShow:!1,minWidth:"auto",posType:"left"}),C=e.ref(!1),y=e.reactive({totalWidth:"0",centerWidth:"0",leftColumnLength:0,leftWidth:"0",rightColumnLength:0,rightWidth:"0"}),p=e.reactive({isShow:!1,width:"auto",height:"auto"}),L=e.reactive({headHeight:0});let R=null,H=null,ae=0;const ve=e.computed(()=>Object.keys(w).filter(t=>t.indexOf("th_")===0)),xe=e.computed(()=>{const t=Object.keys(w).filter(a=>a.indexOf("td_")===0&&a.indexOf("td_elastic_")!==0);return n.isElastic&&t.push("tr_elastic_children"),t}),Se=e.computed(()=>Object.keys(w).filter(t=>t.indexOf("total_")===0)),ke=e.computed(()=>Object.keys(w).filter(t=>t.indexOf("td_elastic_")===0)),pe=e.computed(()=>n.isShowCheckboxAll&&T.value.length>0),oe=e.computed(()=>!i.isEmpty(n.totalData)&&T.value.length>0),ft=e.computed(()=>n.isServer?i.isFinite(n.totalLength)?n.totalLength:0:i.isFinite(n.totalLength)?n.totalLength:n.list?.length||0),J=e.computed(()=>n.isScrollX||n.isScrollXBottom),le=e.computed(()=>n.scrollY>0),F=e.computed(()=>n.isHead&&n.fixedColumnLeftIndex>-1&&J.value),D=e.computed(()=>n.isHead&&n.fixedColumnRightIndex>-1&&J.value&&n.fixedColumnRightIndex>n.fixedColumnLeftIndex+1),ht=e.computed(()=>{const t={"panel-table":!0,"table-disabled":n.disabled};return d.isRunLoading&&(t["table-loading"]=!0),i.osType().isMobile&&(t["table-mob"]=!0),i.getJsonMerge(t,V.getClassNameJson(n.className))}),mt=e.computed(()=>{const t={"table-head-wrapper":!0,"table-scrollY":le.value,"table-scroll-occupy-y":C.value};return p.isShow&&(t["table-fixed-head"]=!0),t}),gt=e.computed(()=>{const t={"table-head-container":!0};return n.isScrollX&&(t["table-scrollX"]=!0),(F.value||D.value)&&(t["table-fixed-column"]=!0,c.isShow?t[`table-scrollX-${c.posType}`]=!0:t["table-scrollX-none"]=!0),t}),yt=e.computed(()=>{const t={"table-body-wrapper":!0,"table-scrollY":le.value,"table-scrollX":n.isScrollX,"table-scrollX-bottom":c.isShow};return t["table-scroll-borderT0"]=c.isShow&&n.isScrollX,(F.value||D.value)&&(t["table-fixed-column"]=!0,c.isShow?t[`table-scrollX-${c.posType}`]=!0:t["table-scrollX-none"]=!0),t}),vt=e.computed(()=>{const t={};if((F.value||D.value)&&le.value){const a=c.isShow?Math.max(0,n.scrollY-ot):n.scrollY;t.maxHeight=`${a}px`}return t}),xt=e.computed(()=>{const t={};return F.value||D.value||le.value&&(t.maxHeight=`${n.scrollY}px`),t}),St=e.computed(()=>{const t={};return d.isRunLoading&&(t.height=`${L.headHeight}px`),t}),kt=t=>{I("onGetData",t)},pt=(t,a,o,r,u)=>{I("onClickElastic",t,a,o,r,u)},Ct=(t,a,o=!1)=>{I("onClickRow",t,a,o)},wt=(t,a,o)=>{I("onChangeChecked",t,a,o)},de=()=>{const t=me();I("onChangeParams",t)},Ce=()=>{e.nextTick(()=>{if($.value){const t=$.value.querySelector("thead");t&&(L.headHeight=t.offsetHeight)}}),d.isRunLoading=!0},ze=()=>{d.isRunLoading=!1},we=()=>{let t=0,a=0;(d.isCheckedRadio||d.isCheckedCheckbox)&&(t=1,g.value&&(a=g.value.getRcWidth())),(i.isEmpty(n.columns)?[]:n.columns).forEach(u=>{(i.isBoolean(u?.visible)?u.visible:!0)&&(t+=1,!i.isEmpty(u)&&!i.isEmpty(u.width)?a+=Number(u.width)||0:!i.isEmpty(u)&&!i.isEmpty(u.widthMin)&&(a+=Number(u.widthMin)||0))});const r=g.value?g.value.getPaddingLr():0;a+=r,d.colspanCount=t,J.value&&(c.minWidth=a>0?`${a}px`:"auto")},Ee=()=>new Promise((t,a)=>{e.nextTick(()=>{try{if(!v.value){t();return}const o=v.value.getWidth();y.totalWidth=`${o}px`;let r=o;if(F.value||D.value){const u=[],f=[];(i.isEmpty(n.columns)?[]:n.columns).forEach((G,re)=>{(i.isBoolean(G?.visible)?G.visible:!0)&&(F.value&&re<=n.fixedColumnLeftIndex&&u.push(G),D.value&&re>=n.fixedColumnRightIndex&&f.push(G))});const M=d.isCheckedRadio||d.isCheckedCheckbox,N=g.value?g.value.getElTh():[],te=N.length;let Q=u.length;const se=f.length;let lt=Q-1;const Rt=te-se;M&&(Q+=1,lt+=1);let Me=0,Ae=0;for(let G=0;G<te;G++){const re=N[G];if(!re)continue;const He=re.clientWidth;G<=lt&&(Me+=He),G>=Rt&&(Ae+=He)}F.value&&(y.leftColumnLength=u.length,y.leftWidth=`${Me}px`,r-=Me),D.value&&(y.rightColumnLength=f.length,y.rightWidth=`${Ae}px`,r-=Ae)}r=Math.max(0,r),y.centerWidth=`${r}px`,e.nextTick(()=>{t()})}catch(o){a(o)}})}),qe=()=>{e.nextTick(()=>{v.value&&v.value.setElasticWidth()})},Et=t=>{(F.value||D.value)&&v.value&&v.value.setElasticHeight(t)},Je=t=>{if(n.isElasticLoad){const a=i.getArrClone(P.loading);a.indexOf(t)===-1&&(a.push(t),P.loading=a)}},Ye=t=>{if(n.isElasticLoad){const a=i.getArrClone(P.loading),o=a.indexOf(t);o>-1&&(a.splice(o,1),P.loading=a,e.nextTick(()=>{Et(t)}))}},be=(t,a,o,r)=>{if(i.isEmpty(t)||i.isEmpty(t.id))return;const u=t.id.toString(),f=i.getArrClone(P.open),b=f.indexOf(u),M=b===-1;M?(f.push(u),Je(u)):(f.splice(b,1),Ye(u),(F.value||D.value)&&v.value&&v.value.removeElasticAbsolute(u)),It(o,M);const N=i.isBoolean(r)?r:!0;P.open=f,N&&pt(u,t,a,M,o),qe()},bt=()=>{const t=[],a=i.isEmpty(n.elasticIconCls)?[]:n.elasticIconCls;if(a.length===2){const o=T.value,r=P.open;o.forEach(u=>{if(!u){t.push(u);return}const f=i.getJsonClone(u);if(!i.isEmpty(f.id)){const b=f.id.toString();f._elasticIconCls=r.indexOf(b)>-1?a[1]:a[0]}t.push(f)})}t.length>0&&(T.value=t)},It=(t,a=!1)=>{if(t){const o=[],r=["elastic-expand","elastic-retract"];a?o.push("elastic-expand"):o.push("elastic-retract");const u=i.isEmpty(n.elasticIconCls)?[]:n.elasticIconCls;u.length===2&&(r.push(u[0]),r.push(u[1]),a?o.push(u[1]):o.push(u[0]));let f=V.getRemoveClass(t.className,r.join(" "));f=V.getAddClass(f,o),t.className=f}},ue=()=>nl(T.value),fe=(t=null)=>{const a=i.isUndefined(t)||t===null?U.value:t;return al(a,ue(),d.isCheckedRadio)},Ie=()=>{if(d.isCheckedCheckbox){const t=ue(),a=fe();K.value=ol(t,a)}},je=()=>{const t=[],a=fe(),o=ue(),r=sl(o,a);if(d.isCheckedCheckbox)a.forEach(u=>{const f=s.dataJson[u.toString()];i.isUndefined(f)||t.push(f)});else if(d.isCheckedRadio&&a.length>0){const u=s.dataJson[a[0]];i.isUndefined(u)||t.push(u)}return{checkedIds:a,unCheckedIds:r,checkedData:t}},Be=()=>{const t=je();wt(t.checkedIds.join(","),t.checkedData,{checkedIds:t.checkedIds,unCheckedIds:t.unCheckedIds})},Ke=t=>{if(i.isEmpty(t)||i.isEmpty(t.id))return;const a=t.id.toString(),o=U.value;let r=[];if(d.isCheckedCheckbox){const u=i.isExistValue(o,a);o.forEach(f=>{f!==a&&r.push(f)}),u||r.push(a),U.value=r,Ie(),Be()}else o.length>0&&o[0]===a||(r=[a],U.value=r,Be())},Te=()=>{if(J.value&&h.value&&v.value){const t=h.value.clientWidth,a=v.value.getWidth();c.isShow=a>t}},Le=()=>{if(le.value&&v.value){const t=v.value.getHeight();let a=t>n.scrollY;if(a||(F.value||D.value?j.value&&(a=t>j.value.clientHeight):h.value&&h.value.offsetHeight>=n.scrollY&&(a=t>h.value.clientHeight)),a&&oe.value&&g.value){const o=g.value.getTotalHeight()-(i.osType().isMobile?2:0);d.totalHeight=`${o}px`}C.value=a}},he=()=>{if((F.value||D.value)&&h.value&&v.value){let t=h.value.scrollLeft;const a=h.value.clientWidth,o=v.value.getWidth();let r="left";t>0&&(a+t>=o?r="right":r="center"),c.posType=r}},Ge=()=>{if(!W.value||!v.value)return;let t=$.value?$.value.scrollLeft:0;const a=W.value.clientWidth,o=v.value.getWidth();a+t>o&&(t=0),P.loading.length>0&&v.value.setElasticLoadLeft(t),T.value.length===0&&v.value.setEmptyLeft(t)},Ne=t=>{ae=t.target.scrollLeft,R===null&&(R=requestAnimationFrame(()=>{R=null;const a=ae;$.value&&($.value.scrollLeft=a),h.value&&(h.value.scrollLeft=a),k.value&&k.value.setScrollLeft(a),O.value&&O.value.setScrollLeft(a),he(),Ge()}))},Ze=t=>{const a=t.target,o=a.scrollLeft;a.scrollWidth-a.clientWidth-o<1&&h.value&&h.value.scrollLeft>o||(o!==s.scrollHead.left&&Ne(t),s.scrollHead.left=o)},Qe=t=>{const a=t.target.scrollLeft;a!==s.scrollBody.left&&Ne(t),s.scrollBody.left=a},Oe=()=>{if(n.isFixedHead&&Y.value&&!d.isRunLoading){let t=!1,a="auto",o="auto";const r=Y.value&&Y.value.parentNode?V.getPositionView(Y.value.parentNode):null;if(r&&r.top<0&&W.value&&z.value&&g.value){const u=W.value.clientHeight;if(r.top>(u-pl)*-1){t=!0;const f=W.value.offsetWidth,b=c.isShow&&n.isScrollX?z.value.offsetHeight:g.value.getOffsetHeight();a=`${f}px`,o=`${b}px`}}p.isShow=t,p.width=a,p.height=o}},Re=()=>{T.value.length===0&&e.nextTick(()=>{v.value&&v.value.setEmptyWidth()})},me=()=>{const t={};if(n.isPaginate){const{pages:a,limit:o}=s.changeNewPaginate;t.pages=a,t.limit=o,t.offset=(t.pages-1)*t.limit}if(n.isOrder){const{orderIndex:a,orderBy:o}=s.changeNewSort;t.orderIndex=a,t.orderBy=o;const r=n.columns[a];i.isUndefined(r)||(t.orderColumns=r.data)}return t},Bt=()=>{n.scrollY>0&&e.nextTick(()=>{if(!h.value)return;const t=h.value.querySelectorAll(".tr-selected");h.value.scrollTop=t&&t.length>0&&t[0].offsetTop>Cl?t[0].offsetTop-wl:0})},_e=(t={})=>{if(d.isCheckedRadio||d.isCheckedCheckbox){const a=ce();U.value=fe(a),Ie(),Bt()}n.isElastic&&((!i.isBoolean(t.isElasticCloseAll)||t.isElasticCloseAll)&&(P.open=[],(F.value||D.value)&&v.value&&v.value.clearElasticAbsolute()),P.loading=[],bt()),d.hoverTrIndex=-1,d.hoverTrElasticIndex=-1,e.nextTick(()=>{n.isPaginate&&(q.pages=s.changeNewPaginate.pages,q.limit=s.changeNewPaginate.limit),n.isOrder&&(_.value=A([s.changeNewSort.orderIndex,s.changeNewSort.orderBy])),ze(),we(),e.nextTick(()=>{Le(),Te(),Ee().then(()=>{he()}).catch(a=>{Fe.warn("ClTable","表格固定列分析失败",a)}),Re(),Oe()})})},et=(t,a)=>{const o=i.isEmpty(n.list)?[]:n.list;let r=[];if(a){if(n.isOrder){const u={},f=[];let b="string";if(!i.isUndefined(t.orderIndex)){const M=t.orderColumns,N=n.columns[t.orderIndex];if(!i.isUndefined(N))if(i.isEmpty(N.sortType))switch(N.format){case"int":case"float2":case"float3":b="number";break;case"date":case"dateTime":case"time":b="date";break;default:b="string"}else b=N.sortType;o.forEach(te=>{if(!te)return;let Q=te[M];Q=i.isUndefined(Q)||Q===null?"":Q;const se=Q.toString();i.isExistJsonKey(u,se)||(u[se]=[],f.push(Q)),u[se].push(i.getJsonClone(te))})}f.length>0&&(t.orderBy==="desc"?i.getArrDesc(f,b):i.getArrAsc(f,b)).forEach(N=>{r.push(...u[N.toString()])})}else r=i.getListClone(n.list);s.sortLocalData=r}else r=s.sortLocalData;if(n.isPaginate){const u=[],f=r.length,b=t.offset;let M=t.offset+t.limit;if(M=f<M?f:M,f&&f>=b&&f>0)for(let N=b;N<M;N+=1)u.push(i.getJsonClone(r[N]));return u}else return r},ee=(t={})=>{const a=me();U.value=[],K.value=!1,Ce(),n.isServer?(s.timerBody&&clearTimeout(s.timerBody),s.timerBody=setTimeout(()=>{s.timerBody=null,kt(a)},st)):(s.timerBody&&clearTimeout(s.timerBody),s.timerBody=setTimeout(()=>{s.timerBody=null;const o=i.isBoolean(t.isChangePage)?!t.isChangePage:!0;T.value=et(a,o),_e()},st))},Tt=()=>{J.value&&($.value&&$.value.addEventListener("scroll",Ze),h.value&&h.value.addEventListener("scroll",Qe))},Lt=()=>{if(le.value){const t=window,a=t.MutationObserver||t.WebKitMutationObserver||t.MozMutationObserver;if(!a)return;B.observerBodyScrollY=new a(()=>{Le()});const o=B.observerBodyScrollY;v.value&&v.value.$el&&o&&o.observe(v.value.$el,{childList:!0,subtree:!0})}},ge=()=>{Te(),Ee().then(()=>{he()}).catch(t=>{Fe.warn("ClTable","表格固定列分析失败",t)}),qe(),Re(),Ge(),e.nextTick(()=>{Oe()})},ye=()=>{H===null&&(H=requestAnimationFrame(()=>{H=null,Oe()}))},Nt=()=>{we(),e.nextTick(()=>{n.isServer?ee():i.isEmpty(n.list)?n.isShowInitLoadIng?Ce():e.nextTick(()=>{Re()}):(ee(),n.isShowInitLoadIng||(d.isRunLoading=!1))})};e.onMounted(()=>{e.nextTick(()=>{Nt(),Tt(),Lt(),s.resizeEvent=new it.Resize({isDelay:!0,callback:()=>{ge()}}),n.isFixedHead&&window.addEventListener("scroll",ye)})}),e.onActivated(()=>{n.isFixedHead&&window.addEventListener("scroll",ye),s.resizeEvent||(s.resizeEvent=new it.Resize({isDelay:!0,callback:()=>{ge()}})),ge(),s.pendingCanceled&&(s.pendingCanceled=!1,ee())}),e.onDeactivated(()=>{window.removeEventListener("scroll",ye),s.timerBody&&(clearTimeout(s.timerBody),s.timerBody=null,d.isRunLoading=!1,s.pendingCanceled=!0),s.resizeEvent&&(s.resizeEvent.destroy(),s.resizeEvent=null),R!==null&&(cancelAnimationFrame(R),R=null),H!==null&&(cancelAnimationFrame(H),H=null)}),e.onBeforeUnmount(()=>{s.timerBody&&(clearTimeout(s.timerBody),s.timerBody=null),B.observerBodyScrollY&&(B.observerBodyScrollY.disconnect(),B.observerBodyScrollY.takeRecords(),B.observerBodyScrollY=null),J.value&&($.value&&$.value.removeEventListener("scroll",Ze),h.value&&h.value.removeEventListener("scroll",Qe)),s.resizeEvent&&s.resizeEvent.destroy(),R!==null&&(cancelAnimationFrame(R),R=null),H!==null&&(cancelAnimationFrame(H),H=null),window.removeEventListener("scroll",ye)}),e.watch(()=>n.list,(t,a)=>{const o=i.isEmpty(t)?[]:t;if(s.timerBody&&(clearTimeout(s.timerBody),s.timerBody=null),s.dataJson=i.getJsonByList(o),n.isServer)T.value=i.getListClone(o);else if(n.isParamTriggerServer)T.value=i.getListClone(o,!0);else{s.changeNewPaginate.pages=1;const u=me();T.value=et(u,!0)}const r={};if(n.isElastic){let u=!1;if(a)if(o.length===a.length){const f=new Set(a.map(b=>b?.id));u=o.some(b=>b&&!f.has(b.id))}else u=!0;u||(r.isElasticCloseAll=!1)}_e(r)},{deep:!0}),e.watch(()=>n.columns,()=>{e.nextTick(()=>{we(),e.nextTick(()=>{Le(),Te(),Ee().then(()=>{he()}).catch(t=>{Fe.warn("ClTable","表格固定列分析失败",t)})})})},{deep:!0}),e.watch(()=>n.selectValue,()=>{const t=ce();U.value=fe(t),Ie()}),e.watch(()=>n.orderSort,(t,a)=>{if(t&&t.length>=2&&!(t[0]===s.changeNewSort.orderIndex&&t[1]===s.changeNewSort.orderBy)){const o=A(n.orderSort);s.changeNewPaginate.pages=1,q.pages=1,s.changeNewSort={orderIndex:o[0],orderBy:o[1]},_.value=o,!n.isServer&&n.isParamTriggerServer?de():ee({isChangePage:!1})}},{deep:!0}),e.watch([()=>n.pageOffset,()=>n.paginateLimit],([t,a],[o,r])=>{const u=E();s.changeNewPaginate.pages=u,s.changeNewPaginate.limit=a,q.pages=u,q.limit=a,!n.isServer&&n.isParamTriggerServer?de():ee({isChangePage:!0})});const We=()=>{if(n.disabled)return;const t=!K.value;let a=[];if(t){const o=ue(),r=U.value,u=[];o.forEach(f=>{i.isExistValue(r,f)||u.push(f)}),a=r.concat(u)}K.value=t,U.value=a,Be()},Pe=(t,a,o)=>{n.disabled||d.isRunLoading||(s.changeNewPaginate.pages=1,q.pages=1,s.changeNewSort.orderIndex=a,s.changeNewSort.orderBy=o,!n.isServer&&n.isParamTriggerServer?de():ee({isChangePage:!1}))},$e=(t,a,o)=>{if(!a||i.isEmpty(a)||i.isBoolean(a.isDisabled)&&a.isDisabled||n.disabled)return;const r=i.isNonEmptyString(n.rowClickKeyInvalid)?V.getParent(t.target,n.rowClickKeyInvalid,t.currentTarget,!1):void 0;if(i.isUndefined(r)){if(n.isElastic){const f=i.isNonEmptyString(n.rowClickKeyElastic)?V.getParent(t.target,n.rowClickKeyElastic,t.currentTarget,!1):void 0;if(i.isUndefined(f))n.isClickRowLinkage&&be(a,o);else{be(a,o,f);return}}let u=!1;if(d.isCheckedRadio||d.isCheckedCheckbox){let f=V.getParent(t.target,".th-rc",t.currentTarget,!1);f===t.currentTarget&&(f=null),i.isUndefined(f)?n.isClickRowLinkage&&Ke(a):(u=!0,Ke(a))}Ct(a,o,u)}},ie=(t,a=-1)=>{d.hoverTrIndex=t,d.hoverTrElasticIndex=a},ne=()=>{d.hoverTrIndex=-1,d.hoverTrElasticIndex=-1},Ot=(t,a)=>{n.disabled||d.isRunLoading||n.isPaginate&&(s.changeNewPaginate.pages=t,s.changeNewPaginate.limit=a,!n.isServer&&n.isParamTriggerServer?de():ee({isChangePage:!0}))},tt=t=>{Ne(t)};return m({getParamInfo:()=>me(),refresh:(t=!0)=>{d.isRunLoading||(t&&(s.changeNewPaginate.pages=1),ee())},getData:()=>{const t=e.toRaw(T.value);return i.getListClone(t)},getDataAll:()=>{if(n.isServer){const t=e.toRaw(T.value);return i.getListClone(t)}return i.getListClone(s.sortLocalData)},getSelectData:()=>{const t=je();return{ids:(t?.checkedIds||[]).join(","),list:t?.checkedData||[]}},loadStart:()=>{Ce()},loadStop:()=>{ze()},loadElasticStart:t=>{i.isUndefined(t)||t===null||Je(t.toString())},loadElasticStop:t=>{i.isUndefined(t)||t===null||Ye(t.toString())},closeElastic:(t,a,o)=>{if(i.isEmpty(t)||i.isEmpty(t.id))return;const r=t.id.toString();if(P.open.indexOf(r)===-1)return;const u=o||(h.value?h.value.querySelector(`[data-elastic-id="${CSS.escape(r)}"]`):null);be(t,a,u,!1)},refreshResize:()=>{ge()}}),(t,a)=>(e.openBlock(),e.createElementBlock("div",{id:e.unref(Z),class:e.normalizeClass(ht.value)},[e.createElementVNode("div",cl,[l.isHead?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("div",{class:e.normalizeClass(mt.value),style:e.normalizeStyle({width:p.width}),ref_key:"refElHeadWrapper",ref:Y},[e.createElementVNode("div",{class:e.normalizeClass(gt.value),ref_key:"refElHeadContainer",ref:z},[e.createElementVNode("div",{class:"table-head-main",ref_key:"refElHeadMain",ref:$},[e.createVNode(Ve,{minWidth:c.minWidth,columns:l.columns,isOrder:l.isOrder,orderSort:_.value,isShowTotal:oe.value,totalInfo:l.totalData,keyIndex:X,hoverIndex:d.hoverTrIndex,isUseScrollX:J.value,isShowRadio:d.isCheckedRadio,isShowCheckbox:d.isCheckedCheckbox,isShowCheckboxAll:pe.value,disabled:l.disabled,checkboxAllValue:K.value,isInlineWidth:l.isInlineWidth,widthClassPrefix:l.widthClassPrefix,widthMinClassPrefix:l.widthMinClassPrefix,onOnClickAll:We,onOnClickOrderBy:Pe,onOnHoverIn:ie,onOnHoverOut:ne,ref_key:"refElHeadTable",ref:g},e.createSlots({_:2},[e.renderList(ve.value,o=>({name:o,fn:e.withCtx(r=>[e.renderSlot(t.$slots,o,{data:r.data})])})),e.renderList(Se.value,o=>({name:o,fn:e.withCtx(r=>[e.renderSlot(t.$slots,o,{data:r.data})])}))]),1032,["minWidth","columns","isOrder","orderSort","isShowTotal","totalInfo","hoverIndex","isUseScrollX","isShowRadio","isShowCheckbox","isShowCheckboxAll","disabled","checkboxAllValue","isInlineWidth","widthClassPrefix","widthMinClassPrefix"])],512),F.value&&y.leftColumnLength>0?(e.openBlock(),e.createElementBlock("div",dl,[e.createElementVNode("div",{class:"table-fixed-column-left-container",style:e.normalizeStyle({width:y.leftWidth})},[e.createVNode(Ve,{fixedType:"left",fixedLeftIndex:l.fixedColumnLeftIndex,width:y.totalWidth,columns:l.columns,isOrder:l.isOrder,orderSort:_.value,isShowTotal:oe.value,totalInfo:l.totalData,keyIndex:X,hoverIndex:d.hoverTrIndex,isUseScrollX:J.value,isShowRadio:d.isCheckedRadio,isShowCheckbox:d.isCheckedCheckbox,isShowCheckboxAll:pe.value,disabled:l.disabled,checkboxAllValue:K.value,isInlineWidth:l.isInlineWidth,widthClassPrefix:l.widthClassPrefix,widthMinClassPrefix:l.widthMinClassPrefix,onOnClickAll:We,onOnClickOrderBy:Pe,onOnHoverIn:ie,onOnHoverOut:ne},e.createSlots({_:2},[e.renderList(ve.value,o=>({name:o,fn:e.withCtx(r=>[e.renderSlot(t.$slots,o,{data:r.data})])})),e.renderList(Se.value,o=>({name:o,fn:e.withCtx(r=>[e.renderSlot(t.$slots,o,{data:r.data})])}))]),1032,["fixedLeftIndex","width","columns","isOrder","orderSort","isShowTotal","totalInfo","hoverIndex","isUseScrollX","isShowRadio","isShowCheckbox","isShowCheckboxAll","disabled","checkboxAllValue","isInlineWidth","widthClassPrefix","widthMinClassPrefix"])],4)])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[],64)),D.value&&y.rightColumnLength>0?(e.openBlock(),e.createElementBlock("div",ul,[e.createElementVNode("div",{class:"table-fixed-column-right-container",style:e.normalizeStyle({width:y.rightWidth})},[e.createVNode(Ve,{fixedType:"right",fixedRightIndex:l.fixedColumnRightIndex,width:y.totalWidth,columns:l.columns,isOrder:l.isOrder,orderSort:_.value,keyIndex:X,hoverIndex:d.hoverTrIndex,isShowTotal:oe.value,totalInfo:l.totalData,isUseScrollX:J.value,isShowRadio:d.isCheckedRadio,isShowCheckbox:d.isCheckedCheckbox,isShowCheckboxAll:pe.value,disabled:l.disabled,checkboxAllValue:K.value,isInlineWidth:l.isInlineWidth,widthClassPrefix:l.widthClassPrefix,widthMinClassPrefix:l.widthMinClassPrefix,onOnClickAll:We,onOnClickOrderBy:Pe,onOnHoverIn:ie,onOnHoverOut:ne},e.createSlots({_:2},[e.renderList(ve.value,o=>({name:o,fn:e.withCtx(r=>[e.renderSlot(t.$slots,o,{data:r.data})])})),e.renderList(Se.value,o=>({name:o,fn:e.withCtx(r=>[e.renderSlot(t.$slots,o,{data:r.data})])}))]),1032,["fixedRightIndex","width","columns","isOrder","orderSort","hoverIndex","isShowTotal","totalInfo","isUseScrollX","isShowRadio","isShowCheckbox","isShowCheckboxAll","disabled","checkboxAllValue","isInlineWidth","widthClassPrefix","widthMinClassPrefix"])],4)])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:3},[],64))],2),C.value?(e.openBlock(),e.createElementBlock("div",fl,[a[0]||(a[0]=e.createElementVNode("div",null,null,-1)),oe.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:"table-scroll-occupy-total",style:e.normalizeStyle({height:d.totalHeight})},null,4)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[],64)),l.isScrollX?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass({"table-scroll-occupy-corner":c.isShow})},null,2)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:3},[],64))])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[],64)),l.isScrollX?e.withDirectives((e.openBlock(),e.createElementBlock("div",hl,[e.createVNode(at._sfc_main,{isShowLeft:F.value,isShowRight:D.value,leftWidth:y.leftWidth,centerWidth:y.centerWidth,rightWidth:y.rightWidth,isShowCorner:C.value,cornerType:"right-top",onOnScrollX:tt,ref_key:"refElHeadFixedScrollX",ref:k},null,8,["isShowLeft","isShowRight","leftWidth","centerWidth","rightWidth","isShowCorner"])],512)),[[e.vShow,c.isShow]]):(e.openBlock(),e.createElementBlock(e.Fragment,{key:3},[],64)),p.isShow&&d.isRunLoading?(e.openBlock(),e.createElementBlock("div",ml)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:5},[],64))],6),p.isShow?(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle({height:p.height,width:p.width})},null,4)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[],64))],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[],64)),e.createElementVNode("div",{class:e.normalizeClass(yt.value),ref_key:"refElBodyWrapper",ref:W},[e.createElementVNode("div",{class:"table-body-container",style:e.normalizeStyle(vt.value),ref_key:"refElBodyContainer",ref:j},[e.createElementVNode("div",{class:e.normalizeClass({"table-body-main":!0,"table-body-empty":T.value.length===0}),style:e.normalizeStyle(xt.value),ref_key:"refElBodyMain",ref:h},[e.createVNode(Xe,{minWidth:c.minWidth,columns:l.columns,list:T.value,disabled:l.disabled,isOrder:l.isOrder,selectValue:U.value,keyIndex:X,hoverIndex:d.hoverTrIndex,hoverElasticIndex:d.hoverTrElasticIndex,isUseScrollX:J.value,colspanCount:d.colspanCount,isRunLoading:d.isRunLoading,isShowRadio:d.isCheckedRadio,isShowCheckbox:d.isCheckedCheckbox,isElastic:l.isElastic,elasticOpen:P.open,elasticLoading:P.loading,elasticType:l.elasticType,elasticData:l.elasticData,trIntervalNum:l.trIntervalNum,isStriped:l.isStriped,emptyText:l.emptyText,isInlineWidth:l.isInlineWidth,widthClassPrefix:l.widthClassPrefix,widthMinClassPrefix:l.widthMinClassPrefix,onOnClickTr:$e,onOnHoverIn:ie,onOnHoverOut:ne,ref_key:"refElBodyTable",ref:v},e.createSlots({_:2},[e.renderList(xe.value,o=>({name:o,fn:e.withCtx(r=>[e.renderSlot(t.$slots,o,{data:r.data,trIndex:r.trIndex})])})),e.renderList(ke.value,o=>({name:o,fn:e.withCtx(r=>[e.renderSlot(t.$slots,o,{data:r.data,trIndex:r.trIndex,trElasticInx:r.trElasticInx})])}))]),1032,["minWidth","columns","list","disabled","isOrder","selectValue","hoverIndex","hoverElasticIndex","isUseScrollX","colspanCount","isRunLoading","isShowRadio","isShowCheckbox","isElastic","elasticOpen","elasticLoading","elasticType","elasticData","trIntervalNum","isStriped","emptyText","isInlineWidth","widthClassPrefix","widthMinClassPrefix"])],6),F.value&&y.leftColumnLength>0?(e.openBlock(),e.createElementBlock("div",gl,[e.createElementVNode("div",{class:"table-fixed-column-left-container",style:e.normalizeStyle({width:y.leftWidth})},[e.createVNode(Xe,{width:y.totalWidth,fixedType:"left",fixedLeftIndex:l.fixedColumnLeftIndex,columns:l.columns,list:T.value,disabled:l.disabled,isOrder:l.isOrder,selectValue:U.value,keyIndex:X,hoverIndex:d.hoverTrIndex,hoverElasticIndex:d.hoverTrElasticIndex,isUseScrollX:J.value,colspanCount:d.colspanCount,isRunLoading:d.isRunLoading,isShowRadio:d.isCheckedRadio,isShowCheckbox:d.isCheckedCheckbox,isElastic:l.isElastic,elasticOpen:P.open,elasticLoading:P.loading,elasticType:l.elasticType,elasticData:l.elasticData,trIntervalNum:l.trIntervalNum,isStriped:l.isStriped,emptyText:l.emptyText,isInlineWidth:l.isInlineWidth,widthClassPrefix:l.widthClassPrefix,widthMinClassPrefix:l.widthMinClassPrefix,onOnClickTr:$e,onOnHoverIn:ie,onOnHoverOut:ne},e.createSlots({_:2},[e.renderList(xe.value,o=>({name:o,fn:e.withCtx(r=>[e.renderSlot(t.$slots,o,{data:r.data,trIndex:r.trIndex})])})),e.renderList(ke.value,o=>({name:o,fn:e.withCtx(r=>[e.renderSlot(t.$slots,o,{data:r.data,trIndex:r.trIndex,trElasticInx:r.trElasticInx})])}))]),1032,["width","fixedLeftIndex","columns","list","disabled","isOrder","selectValue","hoverIndex","hoverElasticIndex","isUseScrollX","colspanCount","isRunLoading","isShowRadio","isShowCheckbox","isElastic","elasticOpen","elasticLoading","elasticType","elasticData","trIntervalNum","isStriped","emptyText","isInlineWidth","widthClassPrefix","widthMinClassPrefix"])],4)])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[],64)),D.value&&y.rightColumnLength>0?(e.openBlock(),e.createElementBlock("div",yl,[e.createElementVNode("div",{class:"table-fixed-column-right-container",style:e.normalizeStyle({width:y.rightWidth})},[e.createVNode(Xe,{width:y.totalWidth,fixedType:"right",fixedRightIndex:l.fixedColumnRightIndex,columns:l.columns,list:T.value,disabled:l.disabled,isOrder:l.isOrder,selectValue:U.value,keyIndex:X,hoverIndex:d.hoverTrIndex,hoverElasticIndex:d.hoverTrElasticIndex,isUseScrollX:J.value,colspanCount:d.colspanCount,isRunLoading:d.isRunLoading,isShowRadio:d.isCheckedRadio,isShowCheckbox:d.isCheckedCheckbox,isElastic:l.isElastic,elasticOpen:P.open,elasticLoading:P.loading,elasticType:l.elasticType,elasticData:l.elasticData,trIntervalNum:l.trIntervalNum,isStriped:l.isStriped,emptyText:l.emptyText,isInlineWidth:l.isInlineWidth,widthClassPrefix:l.widthClassPrefix,widthMinClassPrefix:l.widthMinClassPrefix,onOnClickTr:$e,onOnHoverIn:ie,onOnHoverOut:ne},e.createSlots({_:2},[e.renderList(xe.value,o=>({name:o,fn:e.withCtx(r=>[e.renderSlot(t.$slots,o,{data:r.data,trIndex:r.trIndex})])})),e.renderList(ke.value,o=>({name:o,fn:e.withCtx(r=>[e.renderSlot(t.$slots,o,{data:r.data,trIndex:r.trIndex,trElasticInx:r.trElasticInx})])}))]),1032,["width","fixedRightIndex","columns","list","disabled","isOrder","selectValue","hoverIndex","hoverElasticIndex","isUseScrollX","colspanCount","isRunLoading","isShowRadio","isShowCheckbox","isElastic","elasticOpen","elasticLoading","elasticType","elasticData","trIntervalNum","isStriped","emptyText","isInlineWidth","widthClassPrefix","widthMinClassPrefix"])],4)])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:3},[],64))],4),l.isScrollX&&T.value.length>0&&c.isShow?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[l.isScrollXBottom?(e.openBlock(),e.createElementBlock("div",{key:0,class:"table-fixed-column-scrollX",style:e.normalizeStyle({bottom:le.value?"-1px":"1px"})},[e.createVNode(at._sfc_main,{isShowLeft:F.value,isShowRight:D.value,leftWidth:y.leftWidth,centerWidth:y.centerWidth,rightWidth:y.rightWidth,isShowCorner:C.value,isShowCover:!1,cornerType:"right-bottom",onOnScrollX:tt,ref_key:"refElBodyFixedScrollX",ref:O},null,8,["isShowLeft","isShowRight","leftWidth","centerWidth","rightWidth","isShowCorner"])],4)):(e.openBlock(),e.createElementBlock("div",vl,[e.createElementVNode("div",{style:e.normalizeStyle({height:`${ot}px`})},null,4)]))],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[],64))],2),l.isPaginate&&T.value.length>0?(e.openBlock(),e.createElementBlock("div",xl,[a[1]||(a[1]=e.createElementVNode("div",null,null,-1)),e.createVNode(Mt._sfc_main,{currentPage:q.pages,limitValue:q.limit,limitData:l.paginateLimitData,isShowLimit:l.isPaginateLimit,totalCount:ft.value,disabled:l.disabled||d.isRunLoading,onOnChange:Ot},null,8,["currentPage","limitValue","limitData","isShowLimit","totalCount","disabled"])])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:3},[],64))]),d.isRunLoading?(e.openBlock(),e.createElementBlock("div",Sl,[e.createElementVNode("div",kl,[e.createElementVNode("div",{class:"table-load-head",style:e.normalizeStyle(St.value)},null,4),e.createElementVNode("div",{class:e.normalizeClass({"table-load-body":!0,"table-load-bg-gray":l.isLoading})},[e.createVNode($t._sfc_main,{isLoadIng:l.isLoading,size:"xxl",theme:l.loadTheme,color:l.loadColor||void 0},null,8,["isLoadIng","theme","color"])],2)])])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[],64))],10,rl))}});module.exports=El;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.panel-table{position:relative;cursor:default}.panel-table .table-head-wrapper,.panel-table .table-body-wrapper,.panel-table .table-body-container{position:relative}.panel-table .table-footer-wrapper{display:flex;flex-direction:row;align-items:center;justify-content:space-between;padding-top:5px;padding-bottom:5px}.panel-table .table-footer-wrapper>.panel-paginate{margin-left:5px}.table-default{margin:0;font-size:14px;width:100%;border-bottom:1px solid var(--cl-border-light, #dcdcdc)}.table-head-wrapper .table-default{border-bottom-width:0}.table-default>thead>tr>th,.table-default>tbody>tr>td{position:relative;box-sizing:content-box;word-break:break-all;line-height:1.42857143}.table-default>thead>tr>th{padding:16px 5px 5px;position:relative;border-top-width:0;border-bottom-width:0}.table-default>tbody>tr>td{padding:16px 5px;border-top:1px solid var(--cl-border-light, #dcdcdc)}.table-default>tbody>tr.odd,.table-default>tbody>tr.tr-customInterval-odd{background-color:var(--cl-bg-subtle, #fafafa)}.table-default>tbody>tr.tr-customInterval-even{background-color:var(--cl-bg, #ffffff)}.table-default>tbody>tr:hover,.table-default>tbody>tr.tr-hover{background-color:var(--cl-primary-light, #eff8ff);cursor:default}.table-default>thead>tr>th.th-sort,.table-default>tbody>tr>td.td-sort{padding-right:15px}.table-default>thead>tr>th.th-sort.th-sort-near,.table-default>tbody>tr>td.td-sort.td-sort-near{padding-right:5px}.table-default>thead>tr>th.th-sort>.th-title,.table-default>thead>tr>th.th-sort>.tr-sort-icon{cursor:pointer}.table-default>thead>tr>th.th-sort>.tr-sort-icon{position:absolute;right:0;line-height:20px;font-family:clIconFont;font-style:normal}.table-default>thead>tr>th.th-sort.th-sort-near>.tr-sort-icon{position:relative;top:auto;right:auto;margin-top:0}.table-default>thead>tr>th.th-sort.sort-none>.tr-sort-icon:after{opacity:.2;content:""}.table-default>thead>tr>th.th-sort.sort-asc>.tr-sort-icon:after{content:"";opacity:1;color:var(--cl-primary, #1088f0)}.table-default>thead>tr>th.th-sort.sort-desc>.tr-sort-icon:after{content:"";opacity:1;color:var(--cl-primary, #1088f0)}.table-default>thead>tr>th.th-hidden,.table-default>tbody>tr>td.td-hidden{visibility:hidden}.table-vertical-middle .table-default>tbody>tr>td{vertical-align:middle}.table-default>thead>tr>th.text-left,.table-default>tbody>tr>td.text-left{text-align:left}.table-default>thead>tr>th.text-center,.table-default>tbody>tr>td.text-center{text-align:center}.table-default>thead>tr>th.text-right,.table-default>tbody>tr>td.text-right{text-align:right}.th-tip>.th-tip-icon{color:var(--cl-border, #cfcfcf);margin-left:2px}.table-default>thead>tr>th.th-tip.th-tip-sideAlign,.table-default>tbody>tr>td.td-tip.td-tip-sideAlign{padding-right:17px}.table-default>thead>tr>th.th-tip.th-tip-sideAlign>.th-tip-icon{position:absolute;right:0;line-height:20px;margin-left:0}.table-default>thead>tr>th.th-sort.th-tip.th-tip-sideAlign,.table-default>tbody>tr>td.td-sort.td-tip.td-tip-sideAlign{padding-right:32px}.table-default>thead>tr>th.th-sort.th-tip>.th-tip-icon{right:15px}.table-default>thead>tr>th.th-sort.th-sort-near.th-tip.th-tip-sideAlign,.table-default>tbody>tr>td.td-sort.td-sort-near.td-tip.td-tip-sideAlign{padding-right:5px}.table-default>thead>tr>th.th-sort.th-sort-near.th-tip.th-tip-sideAlign>.th-tip-icon{position:relative;top:auto;right:auto}.table-default>tbody>tr>td.td-tip>.td-tip-icon{color:var(--cl-border, #cfcfcf);margin-left:2px}.table-default>tbody>tr>td.td-tip.td-tip-sideAlign{position:relative}.table-default>tbody>tr>td.td-tip.td-tip-sideAlign>.td-tip-icon{position:absolute;right:0;line-height:20px;margin-left:0}.table-default>tbody>tr>td.td-sort.td-tip>.td-tip-icon{right:15px}.table-default>tbody>tr>td.td-sort.td-sort-near.td-tip.td-tip-sideAlign>.td-tip-icon{position:relative;top:auto;right:auto}.table-default .td-empty{text-align:center;position:relative;height:21px}.table-default .td-empty>.panel-table-empty{position:absolute;inset:0;z-index:20;display:flex;flex-direction:row;align-items:center;justify-content:center}.table-default .th-rc{width:20px}.table-default .th-rc .checkbox label:before,.table-default .th-rc .checkbox label:after{top:1px;margin-left:-17px}.table-default .th-rc>.radio,.table-default .th-rc>.checkbox{width:19px;height:19px;display:inherit}.table-default>tbody>tr.tr-total,.table-default>tbody>tr.tr-total:hover,.table-default>tbody>tr.tr-total.tr-hover,.table-default>tbody>tr.tr-total.tr-hover:hover{background-color:var(--cl-primary-light, #eff8ff)}.table-default>tbody>tr.tr-total:last-child>td{border-bottom-width:0}.panel-table>.table-load{position:absolute;inset:0;z-index:99;display:none}.panel-table.table-loading>.table-load{display:block}.panel-table.table-loading .table-head-wrapper .table-default>thead>tr>th{word-break:normal}.panel-table.table-loading .table-body-wrapper{min-height:100px}.table-load>.table-load-wrapper{display:flex;flex-direction:column;align-items:flex-start;height:100%}.table-load>.table-load-wrapper>.table-load-head,.table-load>.table-load-wrapper>.table-load-body{background-color:#00000003}.table-load>.table-load-wrapper>.table-load-head{height:31px;width:100%;cursor:no-drop}.table-load>.table-load-wrapper>.table-load-body{flex:1;width:100%;position:relative}.table-load>.table-load-wrapper>.table-load-body.table-load-bg-gray{background-color:#f9f9f9}.panel-table.table-loading .table-fixed-head-load{position:absolute;inset:0;z-index:100;background-color:#00000003;cursor:no-drop}.panel-table.table-disabled .table-default>tbody>tr,.panel-table .table-default>tbody>tr.tr-disabled{cursor:no-drop;background-color:var(--cl-bg-muted, #f5f5f5)}.panel-table.table-disabled .table-default>thead>tr>th.th-disabled>.th-title,.panel-table.table-disabled .table-default>thead>tr>th.th-disabled>.tr-sort-icon{color:var(--cl-text-disabled, #c8c9cc);cursor:no-drop}.panel-table.table-disabled .table-default>thead>tr>th.th-disabled>.tr-sort-icon:after{color:var(--cl-text-disabled, #c8c9cc);cursor:no-drop}.panel-table.table-min-space .table-default>tbody>tr>td,.table-default.table-min-space>tbody>tr>td,.table-default>tbody>tr>td.td-min-space{padding-top:5px;padding-bottom:5px}.table-default>tbody>tr>td.td-p-tb-0{padding-top:0;padding-bottom:0}.table-default>tbody>tr>td>.td-min-space{margin-top:-11px!important;margin-bottom:-11px!important}.tr-click-elastic{cursor:pointer}.tr-elastic>td{padding:0!important}.tr-elastic>td.td-elastic-load{height:120px;position:relative}.tr-elastic>td.td-elastic-load>.panel-elastic-load{position:absolute;inset:0;background-color:#f7f7f7;z-index:20}.tr-elastic>td.td-elastic-load>.panel-elastic-load>.elastic-load-container{display:flex;flex-direction:row;align-items:center;justify-content:center;height:100%}.elastic-container{background-color:var(--cl-bg-muted, #f5f5f5);padding:8px 0}.elastic-container .table-bordered{border-width:0;border-radius:4px;margin:0;padding:0}.elastic-container .table-bordered th{border-width:0}.elastic-container .table-bordered>thead>tr>th{border-width:0;border-bottom:1px solid #dee2e6;padding:10px 12px}.elastic-container .table-bordered td{border-width:0}.elastic-container .table-bordered>tbody>tr>td{border-top:1px solid #dee2e6;padding:10px 5px}.elastic-container table.table-bordered>tbody>tr:first-child>td{border-width:0}.tr-elastic.tr-hover .elastic-container table.table-bordered>tbody>tr:hover{background-color:var(--cl-primary-light, #eff8ff);cursor:default}.panel-table ::-webkit-scrollbar{width:15px;height:15px}.panel-table ::-webkit-scrollbar-track{border-radius:0;border:1px solid var(--cl-border-light, #dcdcdc);background-color:var(--cl-bg-subtle, #fafafa)}.panel-table ::-webkit-scrollbar-thumb{border-radius:6px;border:4px solid transparent;background-clip:content-box;box-shadow:0 0 0 5px var(--cl-mask-light, rgba(0, 0, 0, .2)) inset}.panel-table ::-webkit-scrollbar-corner{background:var(--cl-bg-subtle, #fafafa);border-right:1px solid var(--cl-border-light, #dcdcdc);border-bottom:1px solid var(--cl-border-light, #dcdcdc);border-top:1px solid var(--cl-border-light, #dcdcdc)}.panel-table ::-webkit-scrollbar-track:horizontal{border-right-width:0;border-left-width:0}.panel-table ::-webkit-scrollbar-track:vertical{border-top-width:0;border-bottom-width:0}.panel-table ::-webkit-scrollbar-thumb:horizontal{border-right-width:0;border-left-width:0}.panel-table ::-webkit-scrollbar-thumb:vertical{border-top-width:0;border-bottom-width:0}.panel-table ::-webkit-scrollbar-thumb:hover{box-shadow:0 0 0 5px var(--cl-mask, rgba(0, 0, 0, .4)) inset}.panel-table .table-body-wrapper.table-scrollX .table-body-main::-webkit-scrollbar-track{border-width:0}.panel-table.table-mob ::-webkit-scrollbar{width:5px;height:5px}.panel-table.table-mob ::-webkit-scrollbar-thumb{border-radius:3px;border:2px solid transparent;background-clip:content-box;box-shadow:0 0 0 1px var(--cl-mask-light, rgba(0, 0, 0, .2)) inset}.panel-table.table-mob ::-webkit-scrollbar-track{border:0 solid transparent}.panel-table.table-mob .table-body-wrapper.table-scrollY.table-fixed-column .table-body-container::-webkit-scrollbar-track{border-left:1px solid var(--cl-border-light, #dcdcdc);border-right:1px solid var(--cl-border-light, #dcdcdc)}.panel-table .table-head-wrapper.table-scrollY,.panel-table .table-body-wrapper.table-scrollY{overflow-y:hidden}.panel-table .table-body-wrapper.table-scrollY .table-default{border-bottom-width:0}.panel-table .table-head-wrapper.table-scrollY.table-scroll-occupy-y{display:flex;flex-direction:row;align-items:stretch}.panel-table .table-head-wrapper.table-scrollY.table-scroll-occupy-y .table-head-container{flex:1}.table-scroll-occupy-container{width:15px;display:flex;flex-direction:column}.table-scroll-occupy-container>div:first-child{flex:1}.table-scroll-occupy-container>div:last-child{height:15px}.panel-table.table-mob .table-scroll-occupy-container{width:7px}.panel-table.table-mob .table-scroll-occupy-container>div:last-child{height:7px}.table-fixed-column.table-scrollX-none+.table-scroll-occupy-container>div:last-child{height:0}.table-scroll-occupy-container>div.table-scroll-occupy-corner{background:var(--cl-bg-subtle, #fafafa);border-right:1px solid var(--cl-border-light, #dcdcdc);border-top:1px solid var(--cl-border-light, #dcdcdc)}.table-scroll-occupy-container>.table-scroll-occupy-total{border-top:1px solid var(--cl-border-light, #dcdcdc);background-color:var(--cl-primary-light, #eff8ff)}.panel-table .table-body-wrapper.table-scrollY{border-top:1px solid var(--cl-border-light, #dcdcdc);border-bottom:1px solid var(--cl-border-light, #dcdcdc)}.panel-table .table-body-wrapper.table-scrollY.table-scroll-borderT0{border-top-width:0}.panel-table .table-body-wrapper.table-scrollY .table-default>tbody>tr:first-child>td{border-top-width:0}.panel-table .table-body-wrapper.table-scrollY .table-default>tbody>tr:last-child>td{border-bottom-width:0}.panel-table .table-body-wrapper.table-scrollY .table-body-main{overflow-y:auto}.panel-table .table-head-wrapper>.table-head-container,.panel-table .table-head-wrapper>.table-head-container>.table-head-main{overflow-x:hidden}.panel-table .table-body-wrapper.table-scrollX,.panel-table .table-body-wrapper.table-scrollX .table-body-main{overflow-x:hidden}.panel-table .table-head-wrapper>.table-head-container.table-scrollX>.table-head-main,.panel-table .table-body-wrapper.table-scrollX.table-scrollX-bottom .table-body-main{overflow-x:auto}.panel-table .table-body-wrapper.table-scroll-borderT0 .table-default>tbody>tr:first-child>td{border-top-width:0}.panel-table .table-fixed-column-scrollX{position:absolute;bottom:0;width:100%;background-color:var(--cl-bg, #ffffff);overflow:hidden;z-index:22}.panel-table .table-body-wrapper .table-fixed-column-scrollX{position:absolute}.panel-table .table-fixed-column{position:relative;overflow-y:hidden}.panel-table .table-fixed-column .table-fixed-column-left,.panel-table .table-fixed-column .table-fixed-column-right{position:absolute;top:0;z-index:11;box-shadow:0 0 10px var(--cl-shadow-color, rgba(0, 0, 0, .12));overflow:hidden}.panel-table .table-fixed-column .table-fixed-column-left{left:0}.panel-table .table-fixed-column .table-fixed-column-right{right:0}.panel-table .table-fixed-column.table-scrollX-none .table-fixed-column-left,.panel-table .table-fixed-column.table-scrollX-left .table-fixed-column-left,.panel-table .table-fixed-column.table-scrollX-none .table-fixed-column-right,.panel-table .table-fixed-column.table-scrollX-right .table-fixed-column-right{box-shadow:none}.panel-table .table-fixed-column-left .table-default>thead>tr>th,.panel-table .table-fixed-column-left .table-default>tbody>tr>td{background-color:var(--cl-bg, #ffffff)}.panel-table .table-fixed-column-right .table-default>thead>tr>th,.panel-table .table-fixed-column-right .table-default>tbody>tr>td{background-color:var(--cl-bg, #ffffff)}.panel-table .table-fixed-column-left .table-default>tbody>tr.tr-hover>td,.panel-table .table-fixed-column-right .table-default>tbody>tr.tr-hover>td{background-color:transparent}.table-default>tbody>tr.tr-selected,.table-default>tbody>tr.tr-selected:hover{background-color:var(--cl-primary-light, #eff8ff)}.panel-table .table-fixed-column-left .table-default>tbody>tr.odd>td,.panel-table .table-fixed-column-left .table-default>tbody>tr.tr-customInterval-odd>td,.panel-table .table-fixed-column-left .table-default>tbody>tr.tr-customInterval-even>td,.panel-table .table-fixed-column-right .table-default>tbody>tr.odd>td,.panel-table .table-fixed-column-right .table-default>tbody>tr.tr-customInterval-odd>td,.panel-table .table-fixed-column-right .table-default>tbody>tr.tr-customInterval-even>td{background-color:transparent}.panel-table .table-fixed-column-left .table-default>tbody>tr.tr-selected>td,.panel-table .table-fixed-column-right .table-default>tbody>tr.tr-selected>td{background-color:var(--cl-primary-light, #eff8ff)}.panel-table .table-fixed-column-left .table-default>tbody>tr.tr-disabled>td,.panel-table .table-fixed-column-right .table-default>tbody>tr.tr-disabled>td{background-color:var(--cl-bg-muted, #f5f5f5)}.panel-table .table-fixed-column-left>.table-fixed-column-left-container>.table-default{max-width:none}.panel-table .table-fixed-column-right>.table-fixed-column-right-container{overflow:hidden}.panel-table .table-fixed-column-right>.table-fixed-column-right-container>.table-default{max-width:none;float:right}.panel-table .table-fixed-column-left .table-default>tbody>tr.tr-total>td,.panel-table .table-fixed-column-right .table-default>tbody>tr.tr-total>td{background-color:var(--cl-primary-light, #eff8ff)}.panel-table .table-body-wrapper.table-scrollY.table-fixed-column .table-body-container{overflow-y:auto}.panel-table .table-body-wrapper.table-scrollY.table-fixed-column .table-body-main{overflow-y:hidden}.panel-table .table-body-wrapper.table-scrollX.table-fixed-column .table-body-main{overflow-x:hidden}.panel-table .table-body-wrapper.table-scrollX.table-fixed-column.table-scrollX-bottom .table-body-main{overflow-x:auto}.panel-table .table-body-wrapper.table-scrollX.table-scrollY.table-fixed-column .table-body-main{overflow-x:hidden}.panel-table .table-body-wrapper.table-scrollX.table-scrollY.table-fixed-column.table-scrollX-bottom .table-body-main{overflow-x:auto}.panel-table .table-body-wrapper.table-scrollX.table-fixed-column .table-body-main.table-body-empty{overflow-x:hidden}.panel-table .table-body-wrapper.table-scrollX.table-fixed-column.table-scrollX-none .table-fixed-column-scrollX{display:none}.panel-table .table-body-wrapper.table-scrollX.table-fixed-column .table-body-main .table-default.table-empty{margin-bottom:0}.panel-table .table-fixed-column .tr-elastic>td{position:relative}.panel-table .table-fixed-column .tr-elastic>td>.elastic-container{z-index:20}.panel-table .table-fixed-column .tr-elastic>td>.elastic-container.elastic-container-absolute{position:absolute;inset:0;background-color:var(--cl-bg, #ffffff)}.panel-table .table-fixed-column .tr-elastic:hover>td>.elastic-container.elastic-container-absolute,.panel-table .table-fixed-column .tr-elastic.tr-hover>td>.elastic-container.elastic-container-absolute{background-color:var(--cl-primary-light, #eff8ff)}.panel-table .table-fixed-column-left .tr-elastic>td>.elastic-container,.panel-table .table-fixed-column-right .tr-elastic>td>.elastic-container{z-index:0;visibility:hidden}.panel-table .table-head-wrapper.table-fixed-head{position:fixed;top:0;z-index:100;background-color:var(--cl-bg, #ffffff);box-shadow:0 4px 5px var(--cl-shadow-color, rgba(0, 0, 0, .12))}.panel-table.table-border-all .table-head-wrapper{border:1px solid var(--cl-border-light, #dcdcdc);border-top-left-radius:4px;border-top-right-radius:4px;border-bottom:none}.panel-table.table-border-all .table-default>thead>tr>th{padding-top:10px;padding-bottom:10px}.panel-table.table-border-all .panel-scroll-x-fence>.fenceScrollX-corner.fenceScrollX-corner-right-top{border-right-width:0}.panel-table.table-border-all .table-body-wrapper{border-left:1px solid var(--cl-border-light, #dcdcdc);border-right:1px solid var(--cl-border-light, #dcdcdc);border-bottom-left-radius:4px;border-bottom-right-radius:4px}.panel-table.table-border-all .table-head-wrapper.table-scrollY.table-scroll-occupy-y+.table-body-wrapper.table-scrollY{border-right:none}.panel-table.table-border-all .table-load>.table-load-wrapper>.table-load-body{border:1px solid var(--cl-border-light, #dcdcdc)}.panel-table td.text-center>.panel-group-link{justify-content:center}
|
|
1
|
+
.panel-table{position:relative;cursor:default}.panel-table .table-head-wrapper,.panel-table .table-body-wrapper,.panel-table .table-body-container{position:relative}.panel-table .table-footer-wrapper{display:flex;flex-direction:row;align-items:center;justify-content:space-between;padding-top:5px;padding-bottom:5px}.panel-table .table-footer-wrapper>.panel-paginate{margin-left:5px}.table-default{margin:0;font-size:14px;width:100%;border-bottom:1px solid var(--cl-border-light, #dcdcdc)}.table-head-wrapper .table-default{border-bottom-width:0}.table-default>thead>tr>th,.table-default>tbody>tr>td{position:relative;box-sizing:content-box;word-break:break-all;line-height:1.42857143}.table-default>thead>tr>th{padding:16px 5px 5px;position:relative;border-top-width:0;border-bottom-width:0}.table-default>tbody>tr>td{padding:16px 5px;border-top:1px solid var(--cl-border-light, #dcdcdc)}.table-default>tbody>tr.odd,.table-default>tbody>tr.tr-customInterval-odd{background-color:var(--cl-bg-subtle, #fafafa)}.table-default>tbody>tr.tr-customInterval-even{background-color:var(--cl-bg, #ffffff)}.table-default>tbody>tr:hover,.table-default>tbody>tr.tr-hover{background-color:var(--cl-primary-light, #eff8ff);cursor:default}.table-default>thead>tr>th.th-sort,.table-default>tbody>tr>td.td-sort{padding-right:15px}.table-default>thead>tr>th.th-sort.th-sort-near,.table-default>tbody>tr>td.td-sort.td-sort-near{padding-right:5px}.table-default>thead>tr>th.th-sort>.th-title,.table-default>thead>tr>th.th-sort>.tr-sort-icon{cursor:pointer}.table-default>thead>tr>th.th-sort>.tr-sort-icon{position:absolute;right:0;line-height:20px;font-family:clIconFont;font-style:normal}.table-default>thead>tr>th.th-sort.th-sort-near>.tr-sort-icon{position:relative;top:auto;right:auto;margin-top:0}.table-default>thead>tr>th.th-sort.sort-none>.tr-sort-icon:after{opacity:.2;content:""}.table-default>thead>tr>th.th-sort.sort-asc>.tr-sort-icon:after{content:"";opacity:1;color:var(--cl-primary, #1088f0)}.table-default>thead>tr>th.th-sort.sort-desc>.tr-sort-icon:after{content:"";opacity:1;color:var(--cl-primary, #1088f0)}.table-default>thead>tr>th.th-hidden,.table-default>tbody>tr>td.td-hidden{visibility:hidden}.table-vertical-middle .table-default>tbody>tr>td{vertical-align:middle}.table-default>thead>tr>th.text-left,.table-default>tbody>tr>td.text-left{text-align:left}.table-default>thead>tr>th.text-center,.table-default>tbody>tr>td.text-center{text-align:center}.table-default>thead>tr>th.text-right,.table-default>tbody>tr>td.text-right{text-align:right}.th-tip>.th-tip-icon{color:var(--cl-text-tertiary, #aaaaaa);margin-left:2px}.table-default>thead>tr>th.th-tip.th-tip-sideAlign,.table-default>tbody>tr>td.td-tip.td-tip-sideAlign{padding-right:17px}.table-default>thead>tr>th.th-tip.th-tip-sideAlign>.th-tip-icon{position:absolute;right:0;line-height:20px;margin-left:0}.table-default>thead>tr>th.th-sort.th-tip.th-tip-sideAlign,.table-default>tbody>tr>td.td-sort.td-tip.td-tip-sideAlign{padding-right:32px}.table-default>thead>tr>th.th-sort.th-tip>.th-tip-icon{right:15px}.table-default>thead>tr>th.th-sort.th-sort-near.th-tip.th-tip-sideAlign,.table-default>tbody>tr>td.td-sort.td-sort-near.td-tip.td-tip-sideAlign{padding-right:5px}.table-default>thead>tr>th.th-sort.th-sort-near.th-tip.th-tip-sideAlign>.th-tip-icon{position:relative;top:auto;right:auto}.table-default>tbody>tr>td.td-tip>.td-tip-icon{color:var(--cl-text-tertiary, #aaaaaa);margin-left:2px}.table-default>tbody>tr>td.td-tip.td-tip-sideAlign{position:relative}.table-default>tbody>tr>td.td-tip.td-tip-sideAlign>.td-tip-icon{position:absolute;right:0;line-height:20px;margin-left:0}.table-default>tbody>tr>td.td-sort.td-tip>.td-tip-icon{right:15px}.table-default>tbody>tr>td.td-sort.td-sort-near.td-tip.td-tip-sideAlign>.td-tip-icon{position:relative;top:auto;right:auto}.table-default .td-empty{text-align:center;position:relative;height:21px}.table-default .td-empty>.panel-table-empty{position:absolute;inset:0;z-index:20;display:flex;flex-direction:row;align-items:center;justify-content:center}.table-default .th-rc{width:20px}.table-default .th-rc .checkbox label:before,.table-default .th-rc .checkbox label:after{top:1px;margin-left:-17px}.table-default .th-rc>.radio,.table-default .th-rc>.checkbox{width:19px;height:19px;display:inherit}.table-default>tbody>tr.tr-total,.table-default>tbody>tr.tr-total:hover,.table-default>tbody>tr.tr-total.tr-hover,.table-default>tbody>tr.tr-total.tr-hover:hover{background-color:var(--cl-primary-light, #eff8ff)}.table-default>tbody>tr.tr-total:last-child>td{border-bottom-width:0}.panel-table>.table-load{position:absolute;inset:0;z-index:99;display:none}.panel-table.table-loading>.table-load{display:block}.panel-table.table-loading .table-head-wrapper .table-default>thead>tr>th{word-break:normal}.panel-table.table-loading .table-body-wrapper{min-height:100px}.table-load>.table-load-wrapper{display:flex;flex-direction:column;align-items:flex-start;height:100%}.table-load>.table-load-wrapper>.table-load-head,.table-load>.table-load-wrapper>.table-load-body{background-color:#00000003}.table-load>.table-load-wrapper>.table-load-head{height:31px;width:100%;cursor:no-drop}.table-load>.table-load-wrapper>.table-load-body{flex:1;width:100%;position:relative}.table-load>.table-load-wrapper>.table-load-body.table-load-bg-gray{background-color:#f9f9f9}.panel-table.table-loading .table-fixed-head-load{position:absolute;inset:0;z-index:100;background-color:#00000003;cursor:no-drop}.panel-table.table-disabled .table-default>tbody>tr,.panel-table .table-default>tbody>tr.tr-disabled{cursor:no-drop;background-color:var(--cl-bg-muted, #f5f5f5)}.panel-table.table-disabled .table-default>thead>tr>th.th-disabled>.th-title,.panel-table.table-disabled .table-default>thead>tr>th.th-disabled>.tr-sort-icon{color:var(--cl-text-disabled, #c8c9cc);cursor:no-drop}.panel-table.table-disabled .table-default>thead>tr>th.th-disabled>.tr-sort-icon:after{color:var(--cl-text-disabled, #c8c9cc);cursor:no-drop}.panel-table.table-min-space .table-default>tbody>tr>td,.table-default.table-min-space>tbody>tr>td,.table-default>tbody>tr>td.td-min-space{padding-top:5px;padding-bottom:5px}.table-default>tbody>tr>td.td-p-tb-0{padding-top:0;padding-bottom:0}.table-default>tbody>tr>td>.td-min-space{margin-top:-11px!important;margin-bottom:-11px!important}.tr-click-elastic{cursor:pointer}.tr-elastic>td{padding:0!important}.tr-elastic>td.td-elastic-load{height:120px;position:relative}.tr-elastic>td.td-elastic-load>.panel-elastic-load{position:absolute;inset:0;background-color:#f7f7f7;z-index:20}.tr-elastic>td.td-elastic-load>.panel-elastic-load>.elastic-load-container{display:flex;flex-direction:row;align-items:center;justify-content:center;height:100%}.elastic-container{background-color:var(--cl-bg-muted, #f5f5f5);padding:8px 0}.elastic-container .table-bordered{border-width:0;border-radius:4px;margin:0;padding:0}.elastic-container .table-bordered th{border-width:0}.elastic-container .table-bordered>thead>tr>th{border-width:0;border-bottom:1px solid #dee2e6;padding:10px 12px}.elastic-container .table-bordered td{border-width:0}.elastic-container .table-bordered>tbody>tr>td{border-top:1px solid #dee2e6;padding:10px 5px}.elastic-container table.table-bordered>tbody>tr:first-child>td{border-width:0}.tr-elastic.tr-hover .elastic-container table.table-bordered>tbody>tr:hover{background-color:var(--cl-primary-light, #eff8ff);cursor:default}.panel-table ::-webkit-scrollbar{width:15px;height:15px}.panel-table ::-webkit-scrollbar-track{border-radius:0;border:1px solid var(--cl-border-light, #dcdcdc);background-color:var(--cl-bg-subtle, #fafafa)}.panel-table ::-webkit-scrollbar-thumb{border-radius:6px;border:4px solid transparent;background-clip:content-box;box-shadow:0 0 0 5px var(--cl-mask-light, rgba(0, 0, 0, .2)) inset}.panel-table ::-webkit-scrollbar-corner{background:var(--cl-bg-subtle, #fafafa);border-right:1px solid var(--cl-border-light, #dcdcdc);border-bottom:1px solid var(--cl-border-light, #dcdcdc);border-top:1px solid var(--cl-border-light, #dcdcdc)}.panel-table ::-webkit-scrollbar-track:horizontal{border-right-width:0;border-left-width:0}.panel-table ::-webkit-scrollbar-track:vertical{border-top-width:0;border-bottom-width:0}.panel-table ::-webkit-scrollbar-thumb:horizontal{border-right-width:0;border-left-width:0}.panel-table ::-webkit-scrollbar-thumb:vertical{border-top-width:0;border-bottom-width:0}.panel-table ::-webkit-scrollbar-thumb:hover{box-shadow:0 0 0 5px var(--cl-mask, rgba(0, 0, 0, .4)) inset}.panel-table .table-body-wrapper.table-scrollX .table-body-main::-webkit-scrollbar-track{border-width:0}.panel-table.table-mob ::-webkit-scrollbar{width:5px;height:5px}.panel-table.table-mob ::-webkit-scrollbar-thumb{border-radius:3px;border:2px solid transparent;background-clip:content-box;box-shadow:0 0 0 1px var(--cl-mask-light, rgba(0, 0, 0, .2)) inset}.panel-table.table-mob ::-webkit-scrollbar-track{border:0 solid transparent}.panel-table.table-mob .table-body-wrapper.table-scrollY.table-fixed-column .table-body-container::-webkit-scrollbar-track{border-left:1px solid var(--cl-border-light, #dcdcdc);border-right:1px solid var(--cl-border-light, #dcdcdc)}.panel-table .table-head-wrapper.table-scrollY,.panel-table .table-body-wrapper.table-scrollY{overflow-y:hidden}.panel-table .table-body-wrapper.table-scrollY .table-default{border-bottom-width:0}.panel-table .table-head-wrapper.table-scrollY.table-scroll-occupy-y{display:flex;flex-direction:row;align-items:stretch}.panel-table .table-head-wrapper.table-scrollY.table-scroll-occupy-y .table-head-container{flex:1}.table-scroll-occupy-container{width:15px;display:flex;flex-direction:column}.table-scroll-occupy-container>div:first-child{flex:1}.table-scroll-occupy-container>div:last-child{height:15px}.panel-table.table-mob .table-scroll-occupy-container{width:7px}.panel-table.table-mob .table-scroll-occupy-container>div:last-child{height:7px}.table-fixed-column.table-scrollX-none+.table-scroll-occupy-container>div:last-child{height:0}.table-scroll-occupy-container>div.table-scroll-occupy-corner{background:var(--cl-bg-subtle, #fafafa);border-right:1px solid var(--cl-border-light, #dcdcdc);border-top:1px solid var(--cl-border-light, #dcdcdc)}.table-scroll-occupy-container>.table-scroll-occupy-total{border-top:1px solid var(--cl-border-light, #dcdcdc);background-color:var(--cl-primary-light, #eff8ff)}.panel-table .table-body-wrapper.table-scrollY{border-top:1px solid var(--cl-border-light, #dcdcdc);border-bottom:1px solid var(--cl-border-light, #dcdcdc)}.panel-table .table-body-wrapper.table-scrollY.table-scroll-borderT0{border-top-width:0}.panel-table .table-body-wrapper.table-scrollY .table-default>tbody>tr:first-child>td{border-top-width:0}.panel-table .table-body-wrapper.table-scrollY .table-default>tbody>tr:last-child>td{border-bottom-width:0}.panel-table .table-body-wrapper.table-scrollY .table-body-main{overflow-y:auto}.panel-table .table-head-wrapper>.table-head-container,.panel-table .table-head-wrapper>.table-head-container>.table-head-main{overflow-x:hidden}.panel-table .table-body-wrapper.table-scrollX,.panel-table .table-body-wrapper.table-scrollX .table-body-main{overflow-x:hidden}.panel-table .table-head-wrapper>.table-head-container.table-scrollX>.table-head-main,.panel-table .table-body-wrapper.table-scrollX.table-scrollX-bottom .table-body-main{overflow-x:auto}.panel-table .table-body-wrapper.table-scroll-borderT0 .table-default>tbody>tr:first-child>td{border-top-width:0}.panel-table .table-fixed-column-scrollX{position:absolute;bottom:0;width:100%;background-color:var(--cl-bg, #ffffff);overflow:hidden;z-index:22}.panel-table .table-body-wrapper .table-fixed-column-scrollX{position:absolute}.panel-table .table-fixed-column{position:relative;overflow-y:hidden}.panel-table .table-fixed-column .table-fixed-column-left,.panel-table .table-fixed-column .table-fixed-column-right{position:absolute;top:0;z-index:11;box-shadow:0 0 10px var(--cl-shadow-color, rgba(0, 0, 0, .12));overflow:hidden}.panel-table .table-fixed-column .table-fixed-column-left{left:0}.panel-table .table-fixed-column .table-fixed-column-right{right:0}.panel-table .table-fixed-column.table-scrollX-none .table-fixed-column-left,.panel-table .table-fixed-column.table-scrollX-left .table-fixed-column-left,.panel-table .table-fixed-column.table-scrollX-none .table-fixed-column-right,.panel-table .table-fixed-column.table-scrollX-right .table-fixed-column-right{box-shadow:none}.panel-table .table-fixed-column-left .table-default>thead>tr>th,.panel-table .table-fixed-column-left .table-default>tbody>tr>td{background-color:var(--cl-bg, #ffffff)}.panel-table .table-fixed-column-right .table-default>thead>tr>th,.panel-table .table-fixed-column-right .table-default>tbody>tr>td{background-color:var(--cl-bg, #ffffff)}.panel-table .table-fixed-column-left .table-default>tbody>tr.tr-hover>td,.panel-table .table-fixed-column-right .table-default>tbody>tr.tr-hover>td{background-color:transparent}.table-default>tbody>tr.tr-selected,.table-default>tbody>tr.tr-selected:hover{background-color:var(--cl-primary-light, #eff8ff)}.panel-table .table-fixed-column-left .table-default>tbody>tr.odd>td,.panel-table .table-fixed-column-left .table-default>tbody>tr.tr-customInterval-odd>td,.panel-table .table-fixed-column-left .table-default>tbody>tr.tr-customInterval-even>td,.panel-table .table-fixed-column-right .table-default>tbody>tr.odd>td,.panel-table .table-fixed-column-right .table-default>tbody>tr.tr-customInterval-odd>td,.panel-table .table-fixed-column-right .table-default>tbody>tr.tr-customInterval-even>td{background-color:transparent}.panel-table .table-fixed-column-left .table-default>tbody>tr.tr-selected>td,.panel-table .table-fixed-column-right .table-default>tbody>tr.tr-selected>td{background-color:var(--cl-primary-light, #eff8ff)}.panel-table .table-fixed-column-left .table-default>tbody>tr.tr-disabled>td,.panel-table .table-fixed-column-right .table-default>tbody>tr.tr-disabled>td{background-color:var(--cl-bg-muted, #f5f5f5)}.panel-table .table-fixed-column-left>.table-fixed-column-left-container>.table-default{max-width:none}.panel-table .table-fixed-column-right>.table-fixed-column-right-container{overflow:hidden}.panel-table .table-fixed-column-right>.table-fixed-column-right-container>.table-default{max-width:none;float:right}.panel-table .table-fixed-column-left .table-default>tbody>tr.tr-total>td,.panel-table .table-fixed-column-right .table-default>tbody>tr.tr-total>td{background-color:var(--cl-primary-light, #eff8ff)}.panel-table .table-body-wrapper.table-scrollY.table-fixed-column .table-body-container{overflow-y:auto}.panel-table .table-body-wrapper.table-scrollY.table-fixed-column .table-body-main{overflow-y:hidden}.panel-table .table-body-wrapper.table-scrollX.table-fixed-column .table-body-main{overflow-x:hidden}.panel-table .table-body-wrapper.table-scrollX.table-fixed-column.table-scrollX-bottom .table-body-main{overflow-x:auto}.panel-table .table-body-wrapper.table-scrollX.table-scrollY.table-fixed-column .table-body-main{overflow-x:hidden}.panel-table .table-body-wrapper.table-scrollX.table-scrollY.table-fixed-column.table-scrollX-bottom .table-body-main{overflow-x:auto}.panel-table .table-body-wrapper.table-scrollX.table-fixed-column .table-body-main.table-body-empty{overflow-x:hidden}.panel-table .table-body-wrapper.table-scrollX.table-fixed-column.table-scrollX-none .table-fixed-column-scrollX{display:none}.panel-table .table-body-wrapper.table-scrollX.table-fixed-column .table-body-main .table-default.table-empty{margin-bottom:0}.panel-table .table-fixed-column .tr-elastic>td{position:relative}.panel-table .table-fixed-column .tr-elastic>td>.elastic-container{z-index:20}.panel-table .table-fixed-column .tr-elastic>td>.elastic-container.elastic-container-absolute{position:absolute;inset:0;background-color:var(--cl-bg, #ffffff)}.panel-table .table-fixed-column .tr-elastic:hover>td>.elastic-container.elastic-container-absolute,.panel-table .table-fixed-column .tr-elastic.tr-hover>td>.elastic-container.elastic-container-absolute{background-color:var(--cl-primary-light, #eff8ff)}.panel-table .table-fixed-column-left .tr-elastic>td>.elastic-container,.panel-table .table-fixed-column-right .tr-elastic>td>.elastic-container{z-index:0;visibility:hidden}.panel-table .table-head-wrapper.table-fixed-head{position:fixed;top:0;z-index:100;background-color:var(--cl-bg, #ffffff);box-shadow:0 4px 5px var(--cl-shadow-color, rgba(0, 0, 0, .12))}.panel-table.table-border-all .table-head-wrapper{border:1px solid var(--cl-border-light, #dcdcdc);border-top-left-radius:4px;border-top-right-radius:4px;border-bottom:none}.panel-table.table-border-all .table-default>thead>tr>th{padding-top:10px;padding-bottom:10px}.panel-table.table-border-all .panel-scroll-x-fence>.fenceScrollX-corner.fenceScrollX-corner-right-top{border-right-width:0}.panel-table.table-border-all .table-body-wrapper{border-left:1px solid var(--cl-border-light, #dcdcdc);border-right:1px solid var(--cl-border-light, #dcdcdc);border-bottom-left-radius:4px;border-bottom-right-radius:4px}.panel-table.table-border-all .table-head-wrapper.table-scrollY.table-scroll-occupy-y+.table-body-wrapper.table-scrollY{border-right:none}.panel-table.table-border-all .table-load>.table-load-wrapper>.table-load-body{border:1px solid var(--cl-border-light, #dcdcdc)}.panel-table td.text-center>.panel-group-link{justify-content:center}
|
|
@@ -10,14 +10,14 @@ import st from "@cldemo/ui-kit/common/log";
|
|
|
10
10
|
import i from "@cldemo/ui-kit/common/base";
|
|
11
11
|
import Q from "@cldemo/ui-kit/common/Element";
|
|
12
12
|
import { Resize as Et } from "@cldemo/ui-kit/common/Element/Event";
|
|
13
|
-
import { _ as Nt } from "../Shared/One.vue_vue_type_script_setup_true_lang-
|
|
14
|
-
import { _ as Rt } from "../Shared/Index.vue_vue_type_script_setup_true_lang-
|
|
13
|
+
import { _ as Nt } from "../Shared/One.vue_vue_type_script_setup_true_lang-BL5CUHVm.js";
|
|
14
|
+
import { _ as Rt } from "../Shared/Index.vue_vue_type_script_setup_true_lang-Bt0l5FYh.js";
|
|
15
15
|
import { t as $t } from "../Shared/index-BGMnJZqC.js";
|
|
16
|
-
import { _ as di } from "../Shared/One.vue_vue_type_script_setup_true_lang-
|
|
16
|
+
import { _ as di } from "../Shared/One.vue_vue_type_script_setup_true_lang-D3hrzxgT.js";
|
|
17
17
|
import { _ as Tt } from "../Shared/Index.vue_vue_type_script_setup_true_lang-DROYOL5-.js";
|
|
18
18
|
import { a as ci } from "../Shared/language-CZZEj4e3.js";
|
|
19
19
|
import { _ as ui } from "../Shared/Ing.vue_vue_type_script_setup_true_lang-DLgw8gwh.js";
|
|
20
|
-
import { _ as fi } from "../Shared/Index.vue_vue_type_script_setup_true_lang-
|
|
20
|
+
import { _ as fi } from "../Shared/Index.vue_vue_type_script_setup_true_lang-CWwycVzt.js";
|
|
21
21
|
import { _ as Lt } from "../Shared/Index.vue_vue_type_script_setup_true_lang-sanF-ATY.js";
|
|
22
22
|
/* empty css */
|
|
23
23
|
const Pt = (t) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.panel-table-edit,.panel-table-edit .tableedit-table{width:100%}.panel-table-edit>.tableedit-table>thead>tr>th{padding:0 7px 3px;text-align:center;font-weight:400;border-bottom:1px solid var(--cl-bg-muted, #f5f5f5)}.panel-table-edit>.tableedit-table>tbody>tr>td{padding:0 3px 0 0;text-align:center;vertical-align:middle;border-bottom:1px solid var(--cl-bg-muted, #f5f5f5)}.panel-table-edit>.tableedit-table>thead>tr>th.text-left,.panel-table-edit>.tableedit-table>tbody>tr>td.text-left{text-align:left}.panel-table-edit>.tableedit-table>tbody>tr>td:not(:has(.dropdownLayer-dropdown)) .form-control{display:block;width:100%;height:38px;padding:7px;font-size:16px;line-height:1.5;color:#495057;background-color:transparent;background-clip:padding-box;border:0 solid var(--cl-border, #cfcfcf);border-radius:4px;box-sizing:border-box;text-align:center;cursor:pointer;transition:border-color var(--cl-transition-fast, .15s) ease-in-out,box-shadow var(--cl-transition-fast, .15s) ease-in-out}.panel-table-edit>.tableedit-table>tbody>tr>td:not(:has(.dropdownLayer-dropdown)) .form-control:focus{color:#495057;border-width:1px;outline:0;background-color:var(--cl-bg-muted, #f5f5f5)!important;box-shadow:0 1px 1px #6060601a inset,0 2px 8px #34343433;cursor:auto}.panel-table-edit>.tableedit-table>tbody>tr>td:not(:has(.dropdownLayer-dropdown)) .form-control[disabled]{border-width:0;background-color:transparent!important;opacity:1;cursor:default}.panel-table-edit>.tableedit-table>tbody>tr>td.text-left:not(:has(.dropdownLayer-dropdown)) .form-control{text-align:left}.panel-table-edit>.tableedit-table>tbody>tr>td>.panel-select,.panel-table-edit>.tableedit-table>tbody>tr>td>.panel-date-time{display:block!important}.panel-table-edit>.tableedit-table>tbody>tr>td>.panel-select .dropdownLayer-text,.panel-table-edit>.tableedit-table>tbody>tr>td>.panel-date-time .dropdownLayer-text{min-height:38px;display:flex;align-items:center}.panel-table-edit>.tableedit-table>tbody>tr>td>.panel-select .dropdownLayer-text>.dropdownLayer-text-container,.panel-table-edit>.tableedit-table>tbody>tr>td>.panel-date-time .dropdownLayer-text>.dropdownLayer-text-container{flex:1;min-width:0;min-height:38px;border-width:0;box-shadow:none}.panel-table-edit>.tableedit-table>tbody>tr>td>.panel-select .dropdownLayer-text>.dropdownLayer-text-container>.dropdownLayer-text-arrow,.panel-table-edit>.tableedit-table>tbody>tr>td>.panel-date-time .dropdownLayer-text>.dropdownLayer-text-container>.dropdownLayer-text-arrow{display:none}.panel-table-edit>.tableedit-table>tbody>tr>td>.panel-date-time .dropdownLayer-text>.dropdownLayer-text-container{padding-right:5px!important}.panel-table-edit>.tableedit-table>tbody>tr>td>.panel-select .dropdownLayer-text.dropdownLayer-text-open>.dropdownLayer-text-container,.panel-table-edit>.tableedit-table>tbody>tr>td>.panel-date-time .dropdownLayer-text.dropdownLayer-text-open>.dropdownLayer-text-container{border:1px solid var(--cl-border, #cfcfcf)!important;background-color:var(--cl-bg-muted, #f5f5f5)!important;box-shadow:0 1px 1px #6060601a inset,0 2px 8px #34343433!important;cursor:auto}.panel-table-edit>.tableedit-table>tbody>tr>td .form-control:not(:focus):hover+.input-clear-icon,.panel-table-edit>.tableedit-table>tbody>tr>td .input-container:not(:has(input:focus)):hover>.input-clear-icon{opacity:0}
|
|
1
|
+
.panel-table-edit,.panel-table-edit .tableedit-table{width:100%}.panel-table-edit>.tableedit-table>thead>tr>th{padding:0 7px 3px;text-align:center;font-weight:400;border-bottom:1px solid var(--cl-bg-muted, #f5f5f5)}.panel-table-edit>.tableedit-table>tbody>tr>td{padding:0 3px 0 0;text-align:center;vertical-align:middle;border-bottom:1px solid var(--cl-bg-muted, #f5f5f5)}.panel-table-edit>.tableedit-table>thead>tr>th.text-left,.panel-table-edit>.tableedit-table>tbody>tr>td.text-left{text-align:left}.panel-table-edit>.tableedit-table>tbody>tr>td:not(:has(.dropdownLayer-dropdown)) .form-control{display:block;width:100%;height:38px;padding:7px;font-size:16px;line-height:1.5;color:#495057;background-color:transparent;background-clip:padding-box;border:0 solid var(--cl-border, #cfcfcf);border-radius:4px;box-sizing:border-box;text-align:center;cursor:pointer;transition:border-color var(--cl-transition-fast, .15s) ease-in-out,box-shadow var(--cl-transition-fast, .15s) ease-in-out}.panel-table-edit>.tableedit-table>tbody>tr>td:not(:has(.dropdownLayer-dropdown)) .form-control:focus{color:#495057;border-width:1px;outline:0;background-color:var(--cl-bg-muted, #f5f5f5)!important;box-shadow:0 1px 1px #6060601a inset,0 2px 8px #34343433;cursor:auto}.panel-table-edit>.tableedit-table>tbody>tr>td:not(:has(.dropdownLayer-dropdown)) .form-control[disabled]{border-width:0;background-color:transparent!important;opacity:1;cursor:default}.panel-table-edit>.tableedit-table>tbody>tr>td.text-left:not(:has(.dropdownLayer-dropdown)) .form-control{text-align:left}.panel-table-edit>.tableedit-table>tbody>tr>td>.panel-select,.panel-table-edit>.tableedit-table>tbody>tr>td>.panel-date-time{display:block!important}.panel-table-edit>.tableedit-table>tbody>tr>td>.panel-select .dropdownLayer-text,.panel-table-edit>.tableedit-table>tbody>tr>td>.panel-date-time .dropdownLayer-text{min-height:38px;display:flex;align-items:center}.panel-table-edit>.tableedit-table>tbody>tr>td>.panel-select .dropdownLayer-text>.dropdownLayer-text-container,.panel-table-edit>.tableedit-table>tbody>tr>td>.panel-date-time .dropdownLayer-text>.dropdownLayer-text-container{flex:1;min-width:0;min-height:38px;border-width:0;box-shadow:none}.panel-table-edit>.tableedit-table>tbody>tr>td>.panel-select .dropdownLayer-text>.dropdownLayer-text-container>.dropdownLayer-text-arrow,.panel-table-edit>.tableedit-table>tbody>tr>td>.panel-date-time .dropdownLayer-text>.dropdownLayer-text-container>.dropdownLayer-text-arrow{display:none}.panel-table-edit>.tableedit-table>tbody>tr>td>.panel-date-time .dropdownLayer-text>.dropdownLayer-text-container{padding-right:5px!important}.panel-table-edit>.tableedit-table>tbody>tr>td>.panel-select .dropdownLayer-text.dropdownLayer-text-open>.dropdownLayer-text-container,.panel-table-edit>.tableedit-table>tbody>tr>td>.panel-date-time .dropdownLayer-text.dropdownLayer-text-open>.dropdownLayer-text-container{border:1px solid var(--cl-border-control, #cfcfcf)!important;background-color:var(--cl-bg-muted, #f5f5f5)!important;box-shadow:0 1px 1px #6060601a inset,0 2px 8px #34343433!important;cursor:auto}.panel-table-edit>.tableedit-table>tbody>tr>td .form-control:not(:focus):hover+.input-clear-icon,.panel-table-edit>.tableedit-table>tbody>tr>td .input-container:not(:has(input:focus)):hover>.input-clear-icon{opacity:0}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const t=require("vue"),d=require("@cldemo/ui-kit/common/base"),$=require("@cldemo/ui-kit/common/Element"),j=require("../Shared/language-BJ4aVgHI.js"),U=require("../Shared/Index.vue_vue_type_script_setup_true_lang-DBrrIpHb.js"),X=require("../Shared/Index.vue_vue_type_script_setup_true_lang-
|
|
1
|
+
"use strict";const t=require("vue"),d=require("@cldemo/ui-kit/common/base"),$=require("@cldemo/ui-kit/common/Element"),j=require("../Shared/language-BJ4aVgHI.js"),U=require("../Shared/Index.vue_vue_type_script_setup_true_lang-DBrrIpHb.js"),X=require("../Shared/Index.vue_vue_type_script_setup_true_lang-xONe0mSK.js"),K=["id"],P={key:0},G=["id","aria-selected","aria-controls","tabindex","onClick","onKeydown"],Q=["onClick"],Y=["id","aria-labelledby"],Z=t.defineComponent({name:"ClTabs",__name:"Index",props:{id:String,className:{type:String,default:""},classContent:{type:String,default:""},list:{type:Array,default:()=>[]},theme:{type:String,default:"default",validator:i=>["default","line","card","button"].indexOf(i)!==-1},active:String,disabledData:{type:Array,default:()=>[]},hideData:{type:Array,default:()=>[]},prefixName:String,isShowRemove:{type:Boolean,default:!1},removeReserve:{type:Number,default:1},isShowAdd:{type:Boolean,default:!1},addBtnText:String,tabMinNum:{type:Number,default:1},tabMaxNum:{type:Number,default:0},isHideTabHead:{type:Boolean,default:!1},getAddInfo:Function,checkChangeBefore:Function},emits:{onChange:(i,y)=>!0,onInit:(i,y,x)=>!0,onAdd:i=>!0,onRemove:i=>!0,onErrMsg:i=>!0},setup(i,{expose:y,emit:x}){const s=i,m=x,{optPageLanguage:h,getPageLanguage:B}=j.useLanguage();B("common");const u=t.useTemplateRef("refElNavUl"),l=t.reactive({keyIndex:`${d.getRandom(8)}`,showId:s.active}),c=t.ref([]),v=t.reactive({left:0,width:0}),b=t.reactive({isShow:!1,width:""}),I={currentTabsAutoIndex:0,isFirstInit:!1},g=t.ref(!1),_=`tabs-${d.getRandom(5)}`,A=s.id,T=t.computed(()=>{const e={"panel-tabs":!0};return e[`tabs-${s.theme}`]=!0,d.getJsonMerge(e,$.getClassNameJson(s.className))}),D=t.computed(()=>{const e={"tabs-content":!0};return d.getJsonMerge(e,$.getClassNameJson(s.classContent))}),L=()=>{const e=[],a=l.showId?l.showId.toString():"";let n={};c.value.forEach(o=>{const r=d.getJsonClone(o);o.tabId===a&&(n=r),e.push(r)}),m("onInit",l.showId||"",n,e)},M=(e,a)=>{t.nextTick(()=>{m("onChange",e,a)})},V=e=>{m("onAdd",e)},R=e=>{m("onRemove",e)},w=e=>{m("onErrMsg",e)},O=e=>{if(s.theme==="line"){const a=document.getElementById(`tab_${l.keyIndex}_${e}`);let n=0,o=0;a&&a.parentElement&&(n=a.parentElement.offsetLeft+10,o=a.parentElement.offsetWidth-20),v.left=n,v.width=o}},k=()=>{if(u.value){const e=u.value.offsetWidth;let a=0;const n=u.value.children,o=n.length;for(let f=0;f<o;f++){const p=n[f];p.classList.contains("tab-indicator")||(f===0&&(a+=p.offsetLeft),a+=p.offsetWidth)}const r=a>e;b.isShow=r,b.width=`${a}px`}},S=(e,a)=>{const n=d.getJsonClone(e),o=d.isNonEmptyString(n.id)?n.id:"-1";if(n.tabId=o==="-1"?d.getRandom(8):o,n.value=o,d.isEmpty(n.name)){const r=d.isNonEmptyString(s.prefixName)?s.prefixName:"";n.name=r+a.toString()}return n},F=e=>{const a=[];return d.isArray(e)&&e.forEach((n,o)=>{d.isObject(n)&&a.push(S(n,o+1))}),a},E=(e,a)=>{let n="";return a&&!d.isEmpty(a)&&e.forEach(o=>{o.tabId===a&&(n=a)}),d.isEmpty(n)&&e.length>0&&(n=e[0].tabId),n},N=()=>{const e=F(s.list);c.value=e,I.currentTabsAutoIndex=e.length,t.nextTick(()=>{l.showId=E(e,s.active||""),k(),!I.isFirstInit&&e.length>0&&(I.isFirstInit=!0,L())})};t.onMounted(()=>{t.nextTick(()=>{N()})}),t.onBeforeUnmount(()=>{}),t.watch([()=>s.active,()=>s.list],()=>{N()}),t.watch(()=>l.showId,(e,a)=>{e!==a&&O(l.showId||"")});const J=()=>c.value.filter(e=>s.disabledData.indexOf(e.tabId)===-1&&s.hideData.indexOf(e.tabId)===-1),W=(e,a)=>{const n=J(),o=n.findIndex(f=>f.tabId===l.showId);let r=o;if(e.key==="ArrowLeft")e.preventDefault(),r=o>0?o-1:n.length-1;else if(e.key==="ArrowRight")e.preventDefault(),r=o<n.length-1?o+1:0;else if(e.key==="Home")e.preventDefault(),r=0;else if(e.key==="End")e.preventDefault(),r=n.length-1;else return;r!==o&&n[r]&&C(n[r])},C=async e=>{if(!g.value&&s.disabledData.indexOf(e.tabId)===-1&&e.tabId!==l.showId){let a=!0;if(s.checkChangeBefore){g.value=!0;try{a=await s.checkChangeBefore(e.tabId,l.showId),a=d.isBoolean(a)?a:!0}catch(n){a=!0,w(`标签切换校验异常: ${String(n)}`)}finally{g.value=!1}}a&&(l.showId=e.tabId,M(e.tabId,e))}},q=e=>{if(s.disabledData.indexOf(e.tabId)===-1&&c.value.length>s.tabMinNum){const a=[];c.value.forEach(n=>{n.tabId!==e.tabId&&a.push(n)}),c.value=a,t.nextTick(()=>{k(),l.showId=E(a,l.showId||"")}),R(d.getJsonClone(e))}else w(`${h.value.checkAddMin}${s.tabMinNum}${h.value.count}`)},z=()=>{if(c.value.length<s.tabMaxNum||s.tabMaxNum<=0){let e={};if(s.getAddInfo){try{e=s.getAddInfo()}catch(r){e={},w(`新增标签数据获取异常: ${String(r)}`)}d.isObject(e)||(e={})}const a=d.isEmpty(e.name)?I.currentTabsAutoIndex+1:0,n=S(e,a);d.isEmpty(e.name)&&(I.currentTabsAutoIndex=a);const o=d.getListClone(c.value);o.push(n),c.value=o,t.nextTick(()=>{k(),l.showId=n.tabId,V(n)})}else w(`${h.value.checkAddMax}${s.tabMaxNum}${h.value.count}`)},H=e=>{const a=e.target;u.value&&a&&(u.value.scrollLeft=a.scrollLeft)};return y({getValue:()=>l.showId}),(e,a)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(T.value),id:t.unref(A)},[i.isHideTabHead?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",P,[t.createElementVNode("ul",{class:"tabs-nav",ref_key:"refElNavUl",ref:u,role:"tablist"},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(c.value,n=>t.withDirectives((t.openBlock(),t.createElementBlock("li",{key:`${_}-nav-${n.tabId}`,class:t.normalizeClass({"tab-nav":!0,"tab-active":n.tabId===l.showId,"tab-disabled":i.disabledData.indexOf(n.tabId)>-1||g.value})},[t.createElementVNode("a",{id:`tab_${l.keyIndex}_${n.tabId}`,class:"nav-link",href:"javascript:",role:"tab","aria-selected":n.tabId===l.showId,"aria-controls":`panel_${l.keyIndex}_${n.tabId}`,tabindex:n.tabId===l.showId?0:-1,onClick:o=>C(n),onKeydown:o=>W(o)},[t.renderSlot(e.$slots,`nav_${n.tabId}`,{data:n},()=>[t.createTextVNode(t.toDisplayString(n.name),1)])],40,G),i.isShowRemove&&c.value.length>i.removeReserve&&c.value.length>i.tabMinNum&&i.disabledData.indexOf(n.tabId)===-1?(t.openBlock(),t.createElementBlock("span",{key:0,class:"tab-remove",onClick:o=>q(n)},[t.createVNode(X._sfc_main,{name:"close"})],8,Q)):t.createCommentVNode("",!0)],2)),[[t.vShow,i.hideData.indexOf(n.tabId)===-1]])),128)),i.isShowAdd?(t.openBlock(),t.createElementBlock("li",{key:0,class:t.normalizeClass({"tab-add":!0,"tab-disabled":c.value.length>=i.tabMaxNum&&i.tabMaxNum>0})},[t.createElementVNode("a",{class:"nav-link",href:"javascript:",onClick:z},[t.renderSlot(e.$slots,"nav_add",{},()=>[t.createTextVNode(t.toDisplayString(i.addBtnText||t.unref(h).add),1)])])],2)):t.createCommentVNode("",!0),i.theme==="line"?(t.openBlock(),t.createElementBlock("li",{key:1,class:"tab-indicator",style:t.normalizeStyle({left:`${v.left}px`,width:`${v.width}px`})},null,4)):t.createCommentVNode("",!0)],512),b.isShow?(t.openBlock(),t.createBlock(U._sfc_main,{key:0,isShowLeft:!1,isShowRight:!1,centerWidth:b.width,onOnScrollX:H},null,8,["centerWidth"])):t.createCommentVNode("",!0)])),t.createElementVNode("div",{class:t.normalizeClass(D.value)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(c.value,n=>t.withDirectives((t.openBlock(),t.createElementBlock("div",{key:`${_}-content-${n.tabId}`,id:`panel_${l.keyIndex}_${n.tabId}`,class:t.normalizeClass({"tab-content":!0,"tab-active":n.tabId===l.showId}),role:"tabpanel","aria-labelledby":`tab_${l.keyIndex}_${n.tabId}`,tabindex:0},[t.renderSlot(e.$slots,`content_${n.tabId}`,{data:n})],10,Y)),[[t.vShow,i.hideData.indexOf(n.tabId)===-1]])),128))],2)],10,K))}});module.exports=Z;
|
|
@@ -6,7 +6,7 @@ import l from "@cldemo/ui-kit/common/base";
|
|
|
6
6
|
import K from "@cldemo/ui-kit/common/Element";
|
|
7
7
|
import { a as Ie } from "../Shared/language-CZZEj4e3.js";
|
|
8
8
|
import { _ as be } from "../Shared/Index.vue_vue_type_script_setup_true_lang-sanF-ATY.js";
|
|
9
|
-
import { _ as ge } from "../Shared/Index.vue_vue_type_script_setup_true_lang-
|
|
9
|
+
import { _ as ge } from "../Shared/Index.vue_vue_type_script_setup_true_lang-Bt0l5FYh.js";
|
|
10
10
|
const ve = ["id"], we = { key: 0 }, ye = ["id", "aria-selected", "aria-controls", "tabindex", "onClick", "onKeydown"], xe = ["onClick"], pe = ["id", "aria-labelledby"], Ae = /* @__PURE__ */ de({
|
|
11
11
|
name: "ClTabs",
|
|
12
12
|
__name: "Index",
|