@cldemo/ui-kit 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/COMPONENT_CATALOG.md +210 -0
- package/LICENSE +21 -0
- package/README.md +120 -0
- package/buildLibs/all/index.cjs +99 -0
- package/buildLibs/all/index.cjs.map +1 -0
- package/buildLibs/all/index.d.ts +83 -0
- package/buildLibs/all/index.js +168 -0
- package/buildLibs/all/index.js.map +1 -0
- package/buildLibs/common/Element/Event/drag.d.ts +24 -0
- package/buildLibs/common/Element/Event/index.d.ts +9 -0
- package/buildLibs/common/Element/Event/resize.d.ts +20 -0
- package/buildLibs/common/Element/index.d.ts +104 -0
- package/buildLibs/common/Element_Event_drag-DeZYlveu.js +430 -0
- package/buildLibs/common/Element_Event_drag-DeZYlveu.js.map +1 -0
- package/buildLibs/common/Element_Event_drag-L_ZT9whD.cjs +3 -0
- package/buildLibs/common/Element_Event_drag-L_ZT9whD.cjs.map +1 -0
- package/buildLibs/common/Element_Event_resize-DA_sUt40.cjs +2 -0
- package/buildLibs/common/Element_Event_resize-DA_sUt40.cjs.map +1 -0
- package/buildLibs/common/Element_Event_resize-DqH_UT2k.js +49 -0
- package/buildLibs/common/Element_Event_resize-DqH_UT2k.js.map +1 -0
- package/buildLibs/common/Tools/animateEasing.d.ts +27 -0
- package/buildLibs/common/Tools/cookie.d.ts +8 -0
- package/buildLibs/common/Tools/delayFun.d.ts +9 -0
- package/buildLibs/common/Tools/index.d.ts +15 -0
- package/buildLibs/common/Tools/localStorage.d.ts +9 -0
- package/buildLibs/common/Tools/number.d.ts +8 -0
- package/buildLibs/common/Tools_animateEasing-C6TmrmvZ.cjs +2 -0
- package/buildLibs/common/Tools_animateEasing-C6TmrmvZ.cjs.map +1 -0
- package/buildLibs/common/Tools_animateEasing-D0lY_Vn8.js +50 -0
- package/buildLibs/common/Tools_animateEasing-D0lY_Vn8.js.map +1 -0
- package/buildLibs/common/Tools_cookie-CCTgXZb7.cjs +2 -0
- package/buildLibs/common/Tools_cookie-CCTgXZb7.cjs.map +1 -0
- package/buildLibs/common/Tools_cookie-DKctMXdK.js +31 -0
- package/buildLibs/common/Tools_cookie-DKctMXdK.js.map +1 -0
- package/buildLibs/common/Tools_delayFun-CA1ktv1L.js +21 -0
- package/buildLibs/common/Tools_delayFun-CA1ktv1L.js.map +1 -0
- package/buildLibs/common/Tools_delayFun-DYTkzlXE.cjs +2 -0
- package/buildLibs/common/Tools_delayFun-DYTkzlXE.cjs.map +1 -0
- package/buildLibs/common/Tools_localStorage-Cbecy4gj.cjs +2 -0
- package/buildLibs/common/Tools_localStorage-Cbecy4gj.cjs.map +1 -0
- package/buildLibs/common/Tools_localStorage-DVvhtzhL.js +48 -0
- package/buildLibs/common/Tools_localStorage-DVvhtzhL.js.map +1 -0
- package/buildLibs/common/Tools_number-Bh6hGO5U.cjs +2 -0
- package/buildLibs/common/Tools_number-Bh6hGO5U.cjs.map +1 -0
- package/buildLibs/common/Tools_number-C_MjN473.js +22 -0
- package/buildLibs/common/Tools_number-C_MjN473.js.map +1 -0
- package/buildLibs/common/axios-DZoeNi6y.cjs +2 -0
- package/buildLibs/common/axios-DZoeNi6y.cjs.map +1 -0
- package/buildLibs/common/axios-DqkFEq4Y.js +242 -0
- package/buildLibs/common/axios-DqkFEq4Y.js.map +1 -0
- package/buildLibs/common/axios.d.ts +28 -0
- package/buildLibs/common/base-PQGakkrl.js +808 -0
- package/buildLibs/common/base-PQGakkrl.js.map +1 -0
- package/buildLibs/common/base-iCmnU-fv.cjs +2 -0
- package/buildLibs/common/base-iCmnU-fv.cjs.map +1 -0
- package/buildLibs/common/base.d.ts +222 -0
- package/buildLibs/common/day-BzMalBXj.cjs +2 -0
- package/buildLibs/common/day-BzMalBXj.cjs.map +1 -0
- package/buildLibs/common/day-Dm_AnEZp.js +75 -0
- package/buildLibs/common/day-Dm_AnEZp.js.map +1 -0
- package/buildLibs/common/day.d.ts +25 -0
- package/buildLibs/common/echart-BtfUJ8lE.js +498 -0
- package/buildLibs/common/echart-BtfUJ8lE.js.map +1 -0
- package/buildLibs/common/echart-Cs3rQ-e9.cjs +2 -0
- package/buildLibs/common/echart-Cs3rQ-e9.cjs.map +1 -0
- package/buildLibs/common/echart.d.ts +82 -0
- package/buildLibs/common/i18n/en.d.ts +111 -0
- package/buildLibs/common/i18n/index.d.ts +25 -0
- package/buildLibs/common/i18n/zh_CN.d.ts +111 -0
- package/buildLibs/common/i18n_en-BHhFEbi6.js +114 -0
- package/buildLibs/common/i18n_en-BHhFEbi6.js.map +1 -0
- package/buildLibs/common/i18n_en-D-5antzy.cjs +2 -0
- package/buildLibs/common/i18n_en-D-5antzy.cjs.map +1 -0
- package/buildLibs/common/i18n_zh_CN-COzQ8Los.js +114 -0
- package/buildLibs/common/i18n_zh_CN-COzQ8Los.js.map +1 -0
- package/buildLibs/common/i18n_zh_CN-DTZIQXOQ.cjs +2 -0
- package/buildLibs/common/i18n_zh_CN-DTZIQXOQ.cjs.map +1 -0
- package/buildLibs/common/index.cjs +2 -0
- package/buildLibs/common/index.cjs.map +1 -0
- package/buildLibs/common/index.d.ts +10 -0
- package/buildLibs/common/index.js +124 -0
- package/buildLibs/common/index.js.map +1 -0
- package/buildLibs/common/promise-BtoePzHD.cjs +2 -0
- package/buildLibs/common/promise-BtoePzHD.cjs.map +1 -0
- package/buildLibs/common/promise-CPiVqqqL.js +44 -0
- package/buildLibs/common/promise-CPiVqqqL.js.map +1 -0
- package/buildLibs/common/promise.d.ts +14 -0
- package/buildLibs/common/tooltip-De0atcAJ.js +215 -0
- package/buildLibs/common/tooltip-De0atcAJ.js.map +1 -0
- package/buildLibs/common/tooltip-Dj_ol2ax.cjs +2 -0
- package/buildLibs/common/tooltip-Dj_ol2ax.cjs.map +1 -0
- package/buildLibs/common/tooltip.d.ts +37 -0
- package/buildLibs/mobile/index.cjs +56 -0
- package/buildLibs/mobile/index.cjs.map +1 -0
- package/buildLibs/mobile/index.d.ts +47 -0
- package/buildLibs/mobile/index.js +96 -0
- package/buildLibs/mobile/index.js.map +1 -0
- package/buildLibs/resolver/index.cjs +2 -0
- package/buildLibs/resolver/index.cjs.map +1 -0
- package/buildLibs/resolver/index.js +82 -0
- package/buildLibs/resolver/index.js.map +1 -0
- package/buildLibs/resolver/resolver.d.ts +7 -0
- package/buildLibs/utils/Element/ClAnchorNav.cjs +2 -0
- package/buildLibs/utils/Element/ClAnchorNav.cjs.map +1 -0
- package/buildLibs/utils/Element/ClAnchorNav.css +1 -0
- package/buildLibs/utils/Element/ClAnchorNav.d.ts +3 -0
- package/buildLibs/utils/Element/ClAnchorNav.js +55 -0
- package/buildLibs/utils/Element/ClAnchorNav.js.map +1 -0
- package/buildLibs/utils/Element/ClBadge.cjs +2 -0
- package/buildLibs/utils/Element/ClBadge.cjs.map +1 -0
- package/buildLibs/utils/Element/ClBadge.d.ts +3 -0
- package/buildLibs/utils/Element/ClBadge.js +5 -0
- package/buildLibs/utils/Element/ClBadge.js.map +1 -0
- package/buildLibs/utils/Element/ClButton.cjs +2 -0
- package/buildLibs/utils/Element/ClButton.cjs.map +1 -0
- package/buildLibs/utils/Element/ClButton.css +1 -0
- package/buildLibs/utils/Element/ClButton.d.ts +3 -0
- package/buildLibs/utils/Element/ClButton.js +226 -0
- package/buildLibs/utils/Element/ClButton.js.map +1 -0
- package/buildLibs/utils/Element/ClCheckbox.cjs +2 -0
- package/buildLibs/utils/Element/ClCheckbox.cjs.map +1 -0
- package/buildLibs/utils/Element/ClCheckbox.d.ts +3 -0
- package/buildLibs/utils/Element/ClCheckbox.js +205 -0
- package/buildLibs/utils/Element/ClCheckbox.js.map +1 -0
- package/buildLibs/utils/Element/ClCheckboxOne.d.ts +3 -0
- package/buildLibs/utils/Element/ClClipboard.cjs +2 -0
- package/buildLibs/utils/Element/ClClipboard.cjs.map +1 -0
- package/buildLibs/utils/Element/ClClipboard.d.ts +3 -0
- package/buildLibs/utils/Element/ClClipboard.js +5 -0
- package/buildLibs/utils/Element/ClClipboard.js.map +1 -0
- package/buildLibs/utils/Element/ClCountup.cjs +2 -0
- package/buildLibs/utils/Element/ClCountup.cjs.map +1 -0
- package/buildLibs/utils/Element/ClCountup.d.ts +3 -0
- package/buildLibs/utils/Element/ClCountup.js +56 -0
- package/buildLibs/utils/Element/ClCountup.js.map +1 -0
- package/buildLibs/utils/Element/ClCropper.cjs +2 -0
- package/buildLibs/utils/Element/ClCropper.cjs.map +1 -0
- package/buildLibs/utils/Element/ClCropper.d.ts +3 -0
- package/buildLibs/utils/Element/ClCropper.js +5 -0
- package/buildLibs/utils/Element/ClCropper.js.map +1 -0
- package/buildLibs/utils/Element/ClCropperPreview.css +1 -0
- package/buildLibs/utils/Element/ClDarg.cjs +7 -0
- package/buildLibs/utils/Element/ClDarg.cjs.map +1 -0
- package/buildLibs/utils/Element/ClDarg.css +1 -0
- package/buildLibs/utils/Element/ClDarg.d.ts +3 -0
- package/buildLibs/utils/Element/ClDarg.js +1554 -0
- package/buildLibs/utils/Element/ClDarg.js.map +1 -0
- package/buildLibs/utils/Element/ClEllipsis.cjs +2 -0
- package/buildLibs/utils/Element/ClEllipsis.cjs.map +1 -0
- package/buildLibs/utils/Element/ClEllipsis.css +1 -0
- package/buildLibs/utils/Element/ClEllipsis.d.ts +3 -0
- package/buildLibs/utils/Element/ClEllipsis.js +99 -0
- package/buildLibs/utils/Element/ClEllipsis.js.map +1 -0
- package/buildLibs/utils/Element/ClForm.cjs +2 -0
- package/buildLibs/utils/Element/ClForm.cjs.map +1 -0
- package/buildLibs/utils/Element/ClForm.css +1 -0
- package/buildLibs/utils/Element/ClForm.d.ts +3 -0
- package/buildLibs/utils/Element/ClForm.js +139 -0
- package/buildLibs/utils/Element/ClForm.js.map +1 -0
- package/buildLibs/utils/Element/ClFormGroup.cjs +2 -0
- package/buildLibs/utils/Element/ClFormGroup.cjs.map +1 -0
- package/buildLibs/utils/Element/ClFormGroup.css +1 -0
- package/buildLibs/utils/Element/ClFormGroup.d.ts +3 -0
- package/buildLibs/utils/Element/ClFormGroup.js +76 -0
- package/buildLibs/utils/Element/ClFormGroup.js.map +1 -0
- package/buildLibs/utils/Element/ClFormValidate.d.ts +3 -0
- package/buildLibs/utils/Element/ClIconFont.cjs +2 -0
- package/buildLibs/utils/Element/ClIconFont.cjs.map +1 -0
- package/buildLibs/utils/Element/ClIconFont.d.ts +3 -0
- package/buildLibs/utils/Element/ClIconFont.js +5 -0
- package/buildLibs/utils/Element/ClIconFont.js.map +1 -0
- package/buildLibs/utils/Element/ClImage.cjs +2 -0
- package/buildLibs/utils/Element/ClImage.cjs.map +1 -0
- package/buildLibs/utils/Element/ClImage.css +1 -0
- package/buildLibs/utils/Element/ClImage.d.ts +3 -0
- package/buildLibs/utils/Element/ClImage.js +195 -0
- package/buildLibs/utils/Element/ClImage.js.map +1 -0
- package/buildLibs/utils/Element/ClInput.cjs +2 -0
- package/buildLibs/utils/Element/ClInput.cjs.map +1 -0
- package/buildLibs/utils/Element/ClInput.d.ts +3 -0
- package/buildLibs/utils/Element/ClInput.js +5 -0
- package/buildLibs/utils/Element/ClInput.js.map +1 -0
- package/buildLibs/utils/Element/ClInputCaptcha.cjs +2 -0
- package/buildLibs/utils/Element/ClInputCaptcha.cjs.map +1 -0
- package/buildLibs/utils/Element/ClInputCaptcha.css +1 -0
- package/buildLibs/utils/Element/ClInputCaptcha.d.ts +3 -0
- package/buildLibs/utils/Element/ClInputCaptcha.js +111 -0
- package/buildLibs/utils/Element/ClInputCaptcha.js.map +1 -0
- package/buildLibs/utils/Element/ClInputNumber.cjs +2 -0
- package/buildLibs/utils/Element/ClInputNumber.cjs.map +1 -0
- package/buildLibs/utils/Element/ClInputNumber.d.ts +3 -0
- package/buildLibs/utils/Element/ClInputNumber.js +5 -0
- package/buildLibs/utils/Element/ClInputNumber.js.map +1 -0
- package/buildLibs/utils/Element/ClInputSearch.cjs +2 -0
- package/buildLibs/utils/Element/ClInputSearch.cjs.map +1 -0
- package/buildLibs/utils/Element/ClInputSearch.d.ts +3 -0
- package/buildLibs/utils/Element/ClInputSearch.js +5 -0
- package/buildLibs/utils/Element/ClInputSearch.js.map +1 -0
- package/buildLibs/utils/Element/ClInputTag.css +1 -0
- package/buildLibs/utils/Element/ClInputTextarea.cjs +2 -0
- package/buildLibs/utils/Element/ClInputTextarea.cjs.map +1 -0
- package/buildLibs/utils/Element/ClInputTextarea.d.ts +3 -0
- package/buildLibs/utils/Element/ClInputTextarea.js +5 -0
- package/buildLibs/utils/Element/ClInputTextarea.js.map +1 -0
- package/buildLibs/utils/Element/ClInputnumberButton.d.ts +3 -0
- package/buildLibs/utils/Element/ClLink.cjs +2 -0
- package/buildLibs/utils/Element/ClLink.cjs.map +1 -0
- package/buildLibs/utils/Element/ClLink.d.ts +3 -0
- package/buildLibs/utils/Element/ClLink.js +5 -0
- package/buildLibs/utils/Element/ClLink.js.map +1 -0
- package/buildLibs/utils/Element/ClLoad.cjs +2 -0
- package/buildLibs/utils/Element/ClLoad.cjs.map +1 -0
- package/buildLibs/utils/Element/ClLoad.d.ts +3 -0
- package/buildLibs/utils/Element/ClLoad.js +5 -0
- package/buildLibs/utils/Element/ClLoad.js.map +1 -0
- package/buildLibs/utils/Element/ClLoadFullCenter.d.ts +3 -0
- package/buildLibs/utils/Element/ClLoadIng.d.ts +3 -0
- package/buildLibs/utils/Element/ClLoadScreen.cjs +2 -0
- package/buildLibs/utils/Element/ClLoadScreen.cjs.map +1 -0
- package/buildLibs/utils/Element/ClLoadScreen.d.ts +3 -0
- package/buildLibs/utils/Element/ClLoadScreen.js +5 -0
- package/buildLibs/utils/Element/ClLoadScreen.js.map +1 -0
- package/buildLibs/utils/Element/ClLoadWarp.d.ts +3 -0
- package/buildLibs/utils/Element/ClModal.cjs +2 -0
- package/buildLibs/utils/Element/ClModal.cjs.map +1 -0
- package/buildLibs/utils/Element/ClModal.d.ts +3 -0
- package/buildLibs/utils/Element/ClModal.js +5 -0
- package/buildLibs/utils/Element/ClModal.js.map +1 -0
- package/buildLibs/utils/Element/ClProgress.cjs +2 -0
- package/buildLibs/utils/Element/ClProgress.cjs.map +1 -0
- package/buildLibs/utils/Element/ClProgress.css +1 -0
- package/buildLibs/utils/Element/ClProgress.d.ts +3 -0
- package/buildLibs/utils/Element/ClProgress.js +219 -0
- package/buildLibs/utils/Element/ClProgress.js.map +1 -0
- package/buildLibs/utils/Element/ClRadio.cjs +2 -0
- package/buildLibs/utils/Element/ClRadio.cjs.map +1 -0
- package/buildLibs/utils/Element/ClRadio.d.ts +3 -0
- package/buildLibs/utils/Element/ClRadio.js +176 -0
- package/buildLibs/utils/Element/ClRadio.js.map +1 -0
- package/buildLibs/utils/Element/ClRadioOne.d.ts +3 -0
- package/buildLibs/utils/Element/ClSlider.cjs +2 -0
- package/buildLibs/utils/Element/ClSlider.cjs.map +1 -0
- package/buildLibs/utils/Element/ClSlider.css +1 -0
- package/buildLibs/utils/Element/ClSlider.d.ts +3 -0
- package/buildLibs/utils/Element/ClSlider.js +721 -0
- package/buildLibs/utils/Element/ClSlider.js.map +1 -0
- package/buildLibs/utils/Element/ClSwitchery.cjs +2 -0
- package/buildLibs/utils/Element/ClSwitchery.cjs.map +1 -0
- package/buildLibs/utils/Element/ClSwitchery.css +1 -0
- package/buildLibs/utils/Element/ClSwitchery.d.ts +3 -0
- package/buildLibs/utils/Element/ClSwitchery.js +429 -0
- package/buildLibs/utils/Element/ClSwitchery.js.map +1 -0
- package/buildLibs/utils/Element/ClTags.cjs +2 -0
- package/buildLibs/utils/Element/ClTags.cjs.map +1 -0
- package/buildLibs/utils/Element/ClTags.d.ts +3 -0
- package/buildLibs/utils/Element/ClTags.js +5 -0
- package/buildLibs/utils/Element/ClTags.js.map +1 -0
- package/buildLibs/utils/Element/ClTransitionSlideupdown.d.ts +3 -0
- package/buildLibs/utils/Element/ClWaterfall.cjs +2 -0
- package/buildLibs/utils/Element/ClWaterfall.cjs.map +1 -0
- package/buildLibs/utils/Element/ClWaterfall.css +1 -0
- package/buildLibs/utils/Element/ClWaterfall.d.ts +3 -0
- package/buildLibs/utils/Element/ClWaterfall.js +167 -0
- package/buildLibs/utils/Element/ClWaterfall.js.map +1 -0
- package/buildLibs/utils/Element/ClWaterfallImage.d.ts +3 -0
- package/buildLibs/utils/Element/__provide__/Clipboard.cjs +2 -0
- package/buildLibs/utils/Element/__provide__/Clipboard.cjs.map +1 -0
- package/buildLibs/utils/Element/__provide__/Clipboard.d.ts +2 -0
- package/buildLibs/utils/Element/__provide__/Clipboard.js +62 -0
- package/buildLibs/utils/Element/__provide__/Clipboard.js.map +1 -0
- package/buildLibs/utils/Element/__provide__/LoadScreen.cjs +2 -0
- package/buildLibs/utils/Element/__provide__/LoadScreen.cjs.map +1 -0
- package/buildLibs/utils/Element/__provide__/LoadScreen.d.ts +2 -0
- package/buildLibs/utils/Element/__provide__/LoadScreen.js +17 -0
- package/buildLibs/utils/Element/__provide__/LoadScreen.js.map +1 -0
- package/buildLibs/utils/Element/__provide__/languagePack.cjs +2 -0
- package/buildLibs/utils/Element/__provide__/languagePack.cjs.map +1 -0
- package/buildLibs/utils/Element/__provide__/languagePack.d.ts +2 -0
- package/buildLibs/utils/Element/__provide__/languagePack.js +29 -0
- package/buildLibs/utils/Element/__provide__/languagePack.js.map +1 -0
- package/buildLibs/utils/Mobile/ClCell.cjs +2 -0
- package/buildLibs/utils/Mobile/ClCell.cjs.map +1 -0
- package/buildLibs/utils/Mobile/ClCell.css +1 -0
- package/buildLibs/utils/Mobile/ClCell.d.ts +3 -0
- package/buildLibs/utils/Mobile/ClCell.js +130 -0
- package/buildLibs/utils/Mobile/ClCell.js.map +1 -0
- package/buildLibs/utils/Mobile/ClPullToRefresh.cjs +2 -0
- package/buildLibs/utils/Mobile/ClPullToRefresh.cjs.map +1 -0
- package/buildLibs/utils/Mobile/ClPullToRefresh.css +1 -0
- package/buildLibs/utils/Mobile/ClPullToRefresh.d.ts +3 -0
- package/buildLibs/utils/Mobile/ClPullToRefresh.js +195 -0
- package/buildLibs/utils/Mobile/ClPullToRefresh.js.map +1 -0
- package/buildLibs/utils/Shared/Alert.css +1 -0
- package/buildLibs/utils/Shared/Base.css +1 -0
- package/buildLibs/utils/Shared/Base.vue_vue_type_script_setup_true_lang-C_-WLPmH.js +2 -0
- package/buildLibs/utils/Shared/Base.vue_vue_type_script_setup_true_lang-C_-WLPmH.js.map +1 -0
- package/buildLibs/utils/Shared/Base.vue_vue_type_script_setup_true_lang-Duh9tbur.js +354 -0
- package/buildLibs/utils/Shared/Base.vue_vue_type_script_setup_true_lang-Duh9tbur.js.map +1 -0
- package/buildLibs/utils/Shared/BaseTransition.css +1 -0
- package/buildLibs/utils/Shared/BaseTransition.vue_vue_type_script_setup_true_lang-DEXehdBc.js +2 -0
- package/buildLibs/utils/Shared/BaseTransition.vue_vue_type_script_setup_true_lang-DEXehdBc.js.map +1 -0
- package/buildLibs/utils/Shared/BaseTransition.vue_vue_type_script_setup_true_lang-DLAYzSgX.js +121 -0
- package/buildLibs/utils/Shared/BaseTransition.vue_vue_type_script_setup_true_lang-DLAYzSgX.js.map +1 -0
- package/buildLibs/utils/Shared/Highlight.css +1 -0
- package/buildLibs/utils/Shared/Index.css +1 -0
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-AhjUdZHr.js +233 -0
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-AhjUdZHr.js.map +1 -0
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-B3Jxjv3S.js +75 -0
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-B3Jxjv3S.js.map +1 -0
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-BSTGdmJD.js +2 -0
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-BSTGdmJD.js.map +1 -0
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-BWdaQyLA.js +2 -0
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-BWdaQyLA.js.map +1 -0
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-BYmK-TqX.js +2 -0
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-BYmK-TqX.js.map +1 -0
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-B_jfFc6B.js +143 -0
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-B_jfFc6B.js.map +1 -0
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-BjRPiJPA.js +2 -0
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-BjRPiJPA.js.map +1 -0
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-Bv5Aqano.js +24 -0
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-Bv5Aqano.js.map +1 -0
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-BvGrVSSF.js +1146 -0
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-BvGrVSSF.js.map +1 -0
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-BxtgFrvB.js +336 -0
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-BxtgFrvB.js.map +1 -0
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-C1ANWb2_.js +2 -0
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-C1ANWb2_.js.map +1 -0
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-C4XFCLbD.js +2 -0
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-C4XFCLbD.js.map +1 -0
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-C4rRquU-.js +165 -0
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-C4rRquU-.js.map +1 -0
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-CIdipm_Z.js +2 -0
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-CIdipm_Z.js.map +1 -0
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-CNa69faz.js +168 -0
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-CNa69faz.js.map +1 -0
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-CPWxeZzn.js +2 -0
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-CPWxeZzn.js.map +1 -0
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-CVPvV5cZ.js +2 -0
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-CVPvV5cZ.js.map +1 -0
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-CejRfZxl.js +70 -0
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-CejRfZxl.js.map +1 -0
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-Cjhn8JLr.js +2 -0
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-Cjhn8JLr.js.map +1 -0
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-Cuv5NgcY.js +84 -0
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-Cuv5NgcY.js.map +1 -0
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-D5cJAhwe.js +2 -0
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-D5cJAhwe.js.map +1 -0
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-DKAxas3I.js +98 -0
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-DKAxas3I.js.map +1 -0
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-DWw1B8Z2.js +342 -0
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-DWw1B8Z2.js.map +1 -0
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-Da4Z8GsB.js +166 -0
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-Da4Z8GsB.js.map +1 -0
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-Dd2V82en.js +2 -0
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-Dd2V82en.js.map +1 -0
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-DfYsa_hk.js +2 -0
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-DfYsa_hk.js.map +1 -0
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-DlCXpiu6.js +384 -0
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-DlCXpiu6.js.map +1 -0
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-DpxHzkjC.js +462 -0
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-DpxHzkjC.js.map +1 -0
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-Ds2Q0eNQ.js +2 -0
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-Ds2Q0eNQ.js.map +1 -0
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-DxWcQL_8.js +2 -0
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-DxWcQL_8.js.map +1 -0
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-HDdyVujM.js +2 -0
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-HDdyVujM.js.map +1 -0
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-SO7WBNgE.js +2 -0
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-SO7WBNgE.js.map +1 -0
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-_Zu2nb2q.js +593 -0
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-_Zu2nb2q.js.map +1 -0
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-gzy5AIqr.js +54 -0
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-gzy5AIqr.js.map +1 -0
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-inXYfqWx.js +144 -0
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-inXYfqWx.js.map +1 -0
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-p08PZCov.js +2 -0
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-p08PZCov.js.map +1 -0
- package/buildLibs/utils/Shared/Index10.css +1 -0
- package/buildLibs/utils/Shared/Index11.css +1 -0
- package/buildLibs/utils/Shared/Index12.css +1 -0
- package/buildLibs/utils/Shared/Index13.css +1 -0
- package/buildLibs/utils/Shared/Index14.css +1 -0
- package/buildLibs/utils/Shared/Index15.css +1 -0
- package/buildLibs/utils/Shared/Index16.css +1 -0
- package/buildLibs/utils/Shared/Index17.css +1 -0
- package/buildLibs/utils/Shared/Index18.css +1 -0
- package/buildLibs/utils/Shared/Index19.css +1 -0
- package/buildLibs/utils/Shared/Index2.css +1 -0
- package/buildLibs/utils/Shared/Index3.css +1 -0
- package/buildLibs/utils/Shared/Index4.css +1 -0
- package/buildLibs/utils/Shared/Index5.css +1 -0
- package/buildLibs/utils/Shared/Index6.css +1 -0
- package/buildLibs/utils/Shared/Index7.css +1 -0
- package/buildLibs/utils/Shared/Index8.css +1 -0
- package/buildLibs/utils/Shared/Index9.css +1 -0
- package/buildLibs/utils/Shared/Ing-C_3NkQxd.js +43 -0
- package/buildLibs/utils/Shared/Ing-C_3NkQxd.js.map +1 -0
- package/buildLibs/utils/Shared/Ing-D_cd5IxY.js +2 -0
- package/buildLibs/utils/Shared/Ing-D_cd5IxY.js.map +1 -0
- package/buildLibs/utils/Shared/Ing.css +1 -0
- package/buildLibs/utils/Shared/List.vue_vue_type_script_setup_true_lang-Dr6PppOP.js +2 -0
- package/buildLibs/utils/Shared/List.vue_vue_type_script_setup_true_lang-Dr6PppOP.js.map +1 -0
- package/buildLibs/utils/Shared/List.vue_vue_type_script_setup_true_lang-DzmylhZ6.js +141 -0
- package/buildLibs/utils/Shared/List.vue_vue_type_script_setup_true_lang-DzmylhZ6.js.map +1 -0
- package/buildLibs/utils/Shared/Notify.css +1 -0
- package/buildLibs/utils/Shared/One.vue_vue_type_script_setup_true_lang-BuNRS-9u.js +87 -0
- package/buildLibs/utils/Shared/One.vue_vue_type_script_setup_true_lang-BuNRS-9u.js.map +1 -0
- package/buildLibs/utils/Shared/One.vue_vue_type_script_setup_true_lang-E9U8wdGT.js +2 -0
- package/buildLibs/utils/Shared/One.vue_vue_type_script_setup_true_lang-E9U8wdGT.js.map +1 -0
- package/buildLibs/utils/Shared/Popup.vue_vue_type_script_setup_true_lang-CbaTn8Yz.js +109 -0
- package/buildLibs/utils/Shared/Popup.vue_vue_type_script_setup_true_lang-CbaTn8Yz.js.map +1 -0
- package/buildLibs/utils/Shared/Popup.vue_vue_type_script_setup_true_lang-D6uynoJZ.js +2 -0
- package/buildLibs/utils/Shared/Popup.vue_vue_type_script_setup_true_lang-D6uynoJZ.js.map +1 -0
- package/buildLibs/utils/Shared/Tooltip.css +1 -0
- package/buildLibs/utils/Shared/Waves.css +7 -0
- package/buildLibs/utils/Shared/_plugin-vue_export-helper-BHFhmbuH.js +2 -0
- package/buildLibs/utils/Shared/_plugin-vue_export-helper-BHFhmbuH.js.map +1 -0
- package/buildLibs/utils/Shared/_plugin-vue_export-helper-CHgC5LLL.js +10 -0
- package/buildLibs/utils/Shared/_plugin-vue_export-helper-CHgC5LLL.js.map +1 -0
- package/buildLibs/utils/Shared/base-PQGakkrl.js +808 -0
- package/buildLibs/utils/Shared/base-PQGakkrl.js.map +1 -0
- package/buildLibs/utils/Shared/base-iCmnU-fv.js +2 -0
- package/buildLibs/utils/Shared/base-iCmnU-fv.js.map +1 -0
- package/buildLibs/utils/Shared/day-Bz9LfelO.js +75 -0
- package/buildLibs/utils/Shared/day-Bz9LfelO.js.map +1 -0
- package/buildLibs/utils/Shared/day-CvcvgKjb.js +2 -0
- package/buildLibs/utils/Shared/day-CvcvgKjb.js.map +1 -0
- package/buildLibs/utils/Shared/drag-CzE5R222.js +2 -0
- package/buildLibs/utils/Shared/drag-CzE5R222.js.map +1 -0
- package/buildLibs/utils/Shared/drag-CzfhSB0g.js +42 -0
- package/buildLibs/utils/Shared/drag-CzfhSB0g.js.map +1 -0
- package/buildLibs/utils/Shared/index-BnerInzC.js +432 -0
- package/buildLibs/utils/Shared/index-BnerInzC.js.map +1 -0
- package/buildLibs/utils/Shared/index-C1R9HAvS.js +320 -0
- package/buildLibs/utils/Shared/index-C1R9HAvS.js.map +1 -0
- package/buildLibs/utils/Shared/index-CVBh8iTg.js +2 -0
- package/buildLibs/utils/Shared/index-CVBh8iTg.js.map +1 -0
- package/buildLibs/utils/Shared/index-Ul6uY51t.js +3 -0
- package/buildLibs/utils/Shared/index-Ul6uY51t.js.map +1 -0
- package/buildLibs/utils/Shared/language-D6gRWx8H.js +2 -0
- package/buildLibs/utils/Shared/language-D6gRWx8H.js.map +1 -0
- package/buildLibs/utils/Shared/language-DxTlvFs2.js +18 -0
- package/buildLibs/utils/Shared/language-DxTlvFs2.js.map +1 -0
- package/buildLibs/utils/Shared/resize-COkswDOq.js +2 -0
- package/buildLibs/utils/Shared/resize-COkswDOq.js.map +1 -0
- package/buildLibs/utils/Shared/resize-kOWxHVSP.js +54 -0
- package/buildLibs/utils/Shared/resize-kOWxHVSP.js.map +1 -0
- package/buildLibs/utils/Shared/vue-virtual-scroller.css +1 -0
- package/buildLibs/utils/Web/ClBreadcrumb.cjs +2 -0
- package/buildLibs/utils/Web/ClBreadcrumb.cjs.map +1 -0
- package/buildLibs/utils/Web/ClBreadcrumb.css +1 -0
- package/buildLibs/utils/Web/ClBreadcrumb.d.ts +3 -0
- package/buildLibs/utils/Web/ClBreadcrumb.js +82 -0
- package/buildLibs/utils/Web/ClBreadcrumb.js.map +1 -0
- package/buildLibs/utils/Web/ClCalendar.cjs +2 -0
- package/buildLibs/utils/Web/ClCalendar.cjs.map +1 -0
- package/buildLibs/utils/Web/ClCalendar.css +1 -0
- package/buildLibs/utils/Web/ClCalendar.d.ts +3 -0
- package/buildLibs/utils/Web/ClCalendar.js +179 -0
- package/buildLibs/utils/Web/ClCalendar.js.map +1 -0
- package/buildLibs/utils/Web/ClCard.cjs +2 -0
- package/buildLibs/utils/Web/ClCard.cjs.map +1 -0
- package/buildLibs/utils/Web/ClCard.d.ts +3 -0
- package/buildLibs/utils/Web/ClCard.js +5 -0
- package/buildLibs/utils/Web/ClCard.js.map +1 -0
- package/buildLibs/utils/Web/ClCardLegend.cjs +2 -0
- package/buildLibs/utils/Web/ClCardLegend.cjs.map +1 -0
- package/buildLibs/utils/Web/ClCardLegend.css +1 -0
- package/buildLibs/utils/Web/ClCardLegend.d.ts +3 -0
- package/buildLibs/utils/Web/ClCardLegend.js +128 -0
- package/buildLibs/utils/Web/ClCardLegend.js.map +1 -0
- package/buildLibs/utils/Web/ClCollapse.cjs +2 -0
- package/buildLibs/utils/Web/ClCollapse.cjs.map +1 -0
- package/buildLibs/utils/Web/ClCollapse.css +1 -0
- package/buildLibs/utils/Web/ClCollapse.d.ts +3 -0
- package/buildLibs/utils/Web/ClCollapse.js +111 -0
- package/buildLibs/utils/Web/ClCollapse.js.map +1 -0
- package/buildLibs/utils/Web/ClColorpicker.cjs +2 -0
- package/buildLibs/utils/Web/ClColorpicker.cjs.map +1 -0
- package/buildLibs/utils/Web/ClColorpicker.css +1 -0
- package/buildLibs/utils/Web/ClColorpicker.d.ts +3 -0
- package/buildLibs/utils/Web/ClColorpicker.js +1130 -0
- package/buildLibs/utils/Web/ClColorpicker.js.map +1 -0
- package/buildLibs/utils/Web/ClCropperPreview.cjs +2 -0
- package/buildLibs/utils/Web/ClCropperPreview.cjs.map +1 -0
- package/buildLibs/utils/Web/ClCropperPreview.d.ts +3 -0
- package/buildLibs/utils/Web/ClCropperPreview.js +175 -0
- package/buildLibs/utils/Web/ClCropperPreview.js.map +1 -0
- package/buildLibs/utils/Web/ClDatetime.cjs +2 -0
- package/buildLibs/utils/Web/ClDatetime.cjs.map +1 -0
- package/buildLibs/utils/Web/ClDatetime.css +1 -0
- package/buildLibs/utils/Web/ClDatetime.d.ts +3 -0
- package/buildLibs/utils/Web/ClDatetime.js +2002 -0
- package/buildLibs/utils/Web/ClDatetime.js.map +1 -0
- package/buildLibs/utils/Web/ClDropdownmenu.cjs +2 -0
- package/buildLibs/utils/Web/ClDropdownmenu.cjs.map +1 -0
- package/buildLibs/utils/Web/ClDropdownmenu.css +1 -0
- package/buildLibs/utils/Web/ClDropdownmenu.d.ts +3 -0
- package/buildLibs/utils/Web/ClDropdownmenu.js +75 -0
- package/buildLibs/utils/Web/ClDropdownmenu.js.map +1 -0
- package/buildLibs/utils/Web/ClDropdownmenuItem.d.ts +3 -0
- package/buildLibs/utils/Web/ClDropdownpopup.cjs +2 -0
- package/buildLibs/utils/Web/ClDropdownpopup.cjs.map +1 -0
- package/buildLibs/utils/Web/ClDropdownpopup.css +1 -0
- package/buildLibs/utils/Web/ClDropdownpopup.d.ts +3 -0
- package/buildLibs/utils/Web/ClDropdownpopup.js +89 -0
- package/buildLibs/utils/Web/ClDropdownpopup.js.map +1 -0
- package/buildLibs/utils/Web/ClEcharts.cjs +2 -0
- package/buildLibs/utils/Web/ClEcharts.cjs.map +1 -0
- package/buildLibs/utils/Web/ClEcharts.css +1 -0
- package/buildLibs/utils/Web/ClEcharts.d.ts +3 -0
- package/buildLibs/utils/Web/ClEcharts.js +297 -0
- package/buildLibs/utils/Web/ClEcharts.js.map +1 -0
- package/buildLibs/utils/Web/ClFileupload.cjs +2 -0
- package/buildLibs/utils/Web/ClFileupload.cjs.map +1 -0
- package/buildLibs/utils/Web/ClFileupload.d.ts +3 -0
- package/buildLibs/utils/Web/ClFileupload.js +5 -0
- package/buildLibs/utils/Web/ClFileupload.js.map +1 -0
- package/buildLibs/utils/Web/ClInputTag.cjs +6 -0
- package/buildLibs/utils/Web/ClInputTag.cjs.map +1 -0
- package/buildLibs/utils/Web/ClInputTag.d.ts +3 -0
- package/buildLibs/utils/Web/ClInputTag.js +854 -0
- package/buildLibs/utils/Web/ClInputTag.js.map +1 -0
- package/buildLibs/utils/Web/ClPaginate.cjs +2 -0
- package/buildLibs/utils/Web/ClPaginate.cjs.map +1 -0
- package/buildLibs/utils/Web/ClPaginate.css +1 -0
- package/buildLibs/utils/Web/ClPaginate.d.ts +3 -0
- package/buildLibs/utils/Web/ClPaginate.js +167 -0
- package/buildLibs/utils/Web/ClPaginate.js.map +1 -0
- package/buildLibs/utils/Web/ClPortlet.cjs +2 -0
- package/buildLibs/utils/Web/ClPortlet.cjs.map +1 -0
- package/buildLibs/utils/Web/ClPortlet.css +1 -0
- package/buildLibs/utils/Web/ClPortlet.d.ts +3 -0
- package/buildLibs/utils/Web/ClPortlet.js +47 -0
- package/buildLibs/utils/Web/ClPortlet.js.map +1 -0
- package/buildLibs/utils/Web/ClPreview.cjs +2 -0
- package/buildLibs/utils/Web/ClPreview.cjs.map +1 -0
- package/buildLibs/utils/Web/ClPreview.js +5 -0
- package/buildLibs/utils/Web/ClPreview.js.map +1 -0
- package/buildLibs/utils/Web/ClPreviewexample.cjs +2 -0
- package/buildLibs/utils/Web/ClPreviewexample.cjs.map +1 -0
- package/buildLibs/utils/Web/ClPreviewexample.d.ts +3 -0
- package/buildLibs/utils/Web/ClPreviewexample.js +5 -0
- package/buildLibs/utils/Web/ClPreviewexample.js.map +1 -0
- package/buildLibs/utils/Web/ClScrollXFence.cjs +2 -0
- package/buildLibs/utils/Web/ClScrollXFence.cjs.map +1 -0
- package/buildLibs/utils/Web/ClScrollXFence.css +1 -0
- package/buildLibs/utils/Web/ClScrollXFence.d.ts +3 -0
- package/buildLibs/utils/Web/ClScrollXFence.js +107 -0
- package/buildLibs/utils/Web/ClScrollXFence.js.map +1 -0
- package/buildLibs/utils/Web/ClSelect.cjs +2 -0
- package/buildLibs/utils/Web/ClSelect.cjs.map +1 -0
- package/buildLibs/utils/Web/ClSelect.d.ts +3 -0
- package/buildLibs/utils/Web/ClSelect.js +5 -0
- package/buildLibs/utils/Web/ClSelect.js.map +1 -0
- package/buildLibs/utils/Web/ClSelectCascade.cjs +2 -0
- package/buildLibs/utils/Web/ClSelectCascade.cjs.map +1 -0
- package/buildLibs/utils/Web/ClSelectCascade.css +1 -0
- package/buildLibs/utils/Web/ClSelectCascade.d.ts +3 -0
- package/buildLibs/utils/Web/ClSelectCascade.js +222 -0
- package/buildLibs/utils/Web/ClSelectCascade.js.map +1 -0
- package/buildLibs/utils/Web/ClSelectTag.cjs +2 -0
- package/buildLibs/utils/Web/ClSelectTag.cjs.map +1 -0
- package/buildLibs/utils/Web/ClSelectTag.css +1 -0
- package/buildLibs/utils/Web/ClSelectTag.d.ts +3 -0
- package/buildLibs/utils/Web/ClSelectTag.js +249 -0
- package/buildLibs/utils/Web/ClSelectTag.js.map +1 -0
- package/buildLibs/utils/Web/ClSelectTree.cjs +2 -0
- package/buildLibs/utils/Web/ClSelectTree.cjs.map +1 -0
- package/buildLibs/utils/Web/ClSelectTree.css +1 -0
- package/buildLibs/utils/Web/ClSelectTree.d.ts +3 -0
- package/buildLibs/utils/Web/ClSelectTree.js +190 -0
- package/buildLibs/utils/Web/ClSelectTree.js.map +1 -0
- package/buildLibs/utils/Web/ClSelectmove.cjs +2 -0
- package/buildLibs/utils/Web/ClSelectmove.cjs.map +1 -0
- package/buildLibs/utils/Web/ClSelectmove.css +1 -0
- package/buildLibs/utils/Web/ClSelectmove.d.ts +3 -0
- package/buildLibs/utils/Web/ClSelectmove.js +1090 -0
- package/buildLibs/utils/Web/ClSelectmove.js.map +1 -0
- package/buildLibs/utils/Web/ClSidemenu.cjs +2 -0
- package/buildLibs/utils/Web/ClSidemenu.cjs.map +1 -0
- package/buildLibs/utils/Web/ClSidemenu.css +1 -0
- package/buildLibs/utils/Web/ClSidemenu.d.ts +3 -0
- package/buildLibs/utils/Web/ClSidemenu.js +190 -0
- package/buildLibs/utils/Web/ClSidemenu.js.map +1 -0
- package/buildLibs/utils/Web/ClTable.cjs +2 -0
- package/buildLibs/utils/Web/ClTable.cjs.map +1 -0
- package/buildLibs/utils/Web/ClTable.css +1 -0
- package/buildLibs/utils/Web/ClTable.d.ts +3 -0
- package/buildLibs/utils/Web/ClTable.js +1914 -0
- package/buildLibs/utils/Web/ClTable.js.map +1 -0
- package/buildLibs/utils/Web/ClTabs.cjs +2 -0
- package/buildLibs/utils/Web/ClTabs.cjs.map +1 -0
- package/buildLibs/utils/Web/ClTabs.css +1 -0
- package/buildLibs/utils/Web/ClTabs.d.ts +3 -0
- package/buildLibs/utils/Web/ClTabs.js +276 -0
- package/buildLibs/utils/Web/ClTabs.js.map +1 -0
- package/buildLibs/utils/Web/ClTree.cjs +2 -0
- package/buildLibs/utils/Web/ClTree.cjs.map +1 -0
- package/buildLibs/utils/Web/ClTree.css +1 -0
- package/buildLibs/utils/Web/ClTree.d.ts +3 -0
- package/buildLibs/utils/Web/ClTree.js +416 -0
- package/buildLibs/utils/Web/ClTree.js.map +1 -0
- package/buildLibs/utils/Web/ClWeekhour.cjs +2 -0
- package/buildLibs/utils/Web/ClWeekhour.cjs.map +1 -0
- package/buildLibs/utils/Web/ClWeekhour.css +1 -0
- package/buildLibs/utils/Web/ClWeekhour.d.ts +3 -0
- package/buildLibs/utils/Web/ClWeekhour.js +679 -0
- package/buildLibs/utils/Web/ClWeekhour.js.map +1 -0
- package/buildLibs/utils/Web/ClXeditable.cjs +2 -0
- package/buildLibs/utils/Web/ClXeditable.cjs.map +1 -0
- package/buildLibs/utils/Web/ClXeditable.css +1 -0
- package/buildLibs/utils/Web/ClXeditable.d.ts +3 -0
- package/buildLibs/utils/Web/ClXeditable.js +593 -0
- package/buildLibs/utils/Web/ClXeditable.js.map +1 -0
- package/buildLibs/utils/Web/__directive__/Highlight.cjs +4 -0
- package/buildLibs/utils/Web/__directive__/Highlight.cjs.map +1 -0
- package/buildLibs/utils/Web/__directive__/Highlight.d.ts +2 -0
- package/buildLibs/utils/Web/__directive__/Highlight.js +3625 -0
- package/buildLibs/utils/Web/__directive__/Highlight.js.map +1 -0
- package/buildLibs/utils/Web/__directive__/Tooltip.cjs +2 -0
- package/buildLibs/utils/Web/__directive__/Tooltip.cjs.map +1 -0
- package/buildLibs/utils/Web/__directive__/Tooltip.d.ts +2 -0
- package/buildLibs/utils/Web/__directive__/Tooltip.js +356 -0
- package/buildLibs/utils/Web/__directive__/Tooltip.js.map +1 -0
- package/buildLibs/utils/Web/__directive__/Waves.cjs +9 -0
- package/buildLibs/utils/Web/__directive__/Waves.cjs.map +1 -0
- package/buildLibs/utils/Web/__directive__/Waves.d.ts +2 -0
- package/buildLibs/utils/Web/__directive__/Waves.js +256 -0
- package/buildLibs/utils/Web/__directive__/Waves.js.map +1 -0
- package/buildLibs/utils/Web/__provide__/Alert.cjs +2 -0
- package/buildLibs/utils/Web/__provide__/Alert.cjs.map +1 -0
- package/buildLibs/utils/Web/__provide__/Alert.d.ts +2 -0
- package/buildLibs/utils/Web/__provide__/Alert.js +236 -0
- package/buildLibs/utils/Web/__provide__/Alert.js.map +1 -0
- package/buildLibs/utils/Web/__provide__/Notify.cjs +2 -0
- package/buildLibs/utils/Web/__provide__/Notify.cjs.map +1 -0
- package/buildLibs/utils/Web/__provide__/Notify.d.ts +2 -0
- package/buildLibs/utils/Web/__provide__/Notify.js +235 -0
- package/buildLibs/utils/Web/__provide__/Notify.js.map +1 -0
- package/buildLibs/utils/Web/__provide__/Preview.cjs +2 -0
- package/buildLibs/utils/Web/__provide__/Preview.cjs.map +1 -0
- package/buildLibs/utils/Web/__provide__/Preview.d.ts +2 -0
- package/buildLibs/utils/Web/__provide__/Preview.js +26 -0
- package/buildLibs/utils/Web/__provide__/Preview.js.map +1 -0
- package/buildLibs/web/index.cjs +97 -0
- package/buildLibs/web/index.cjs.map +1 -0
- package/buildLibs/web/index.d.ts +81 -0
- package/buildLibs/web/index.js +164 -0
- package/buildLibs/web/index.js.map +1 -0
- package/docs/components/Element/AnchorNav.md +19 -0
- package/docs/components/Element/Badge.md +24 -0
- package/docs/components/Element/Button.md +45 -0
- package/docs/components/Element/Checkbox.md +48 -0
- package/docs/components/Element/Clipboard.md +34 -0
- package/docs/components/Element/Countup.md +12 -0
- package/docs/components/Element/Cropper.md +46 -0
- package/docs/components/Element/Darg.md +30 -0
- package/docs/components/Element/Ellipsis.md +12 -0
- package/docs/components/Element/Form.md +25 -0
- package/docs/components/Element/FormGroup.md +29 -0
- package/docs/components/Element/IconFont.md +12 -0
- package/docs/components/Element/Image.md +18 -0
- package/docs/components/Element/Input.md +65 -0
- package/docs/components/Element/InputCaptcha.md +27 -0
- package/docs/components/Element/InputNumber.md +51 -0
- package/docs/components/Element/InputSearch.md +43 -0
- package/docs/components/Element/InputTextarea.md +52 -0
- package/docs/components/Element/Link.md +41 -0
- package/docs/components/Element/Load.md +20 -0
- package/docs/components/Element/LoadScreen.md +19 -0
- package/docs/components/Element/Modal.md +51 -0
- package/docs/components/Element/Progress.md +28 -0
- package/docs/components/Element/Radio.md +41 -0
- package/docs/components/Element/Slider.md +33 -0
- package/docs/components/Element/Switchery.md +42 -0
- package/docs/components/Element/Tags.md +39 -0
- package/docs/components/Element/Waterfall.md +36 -0
- package/docs/components/Mobile/Cell.md +49 -0
- package/docs/components/Mobile/PullToRefresh.md +52 -0
- package/docs/components/Web/Breadcrumb.md +26 -0
- package/docs/components/Web/Calendar.md +34 -0
- package/docs/components/Web/Card.md +22 -0
- package/docs/components/Web/CardLegend.md +20 -0
- package/docs/components/Web/Collapse.md +26 -0
- package/docs/components/Web/Colorpicker.md +41 -0
- package/docs/components/Web/CropperPreview.md +43 -0
- package/docs/components/Web/Datetime.md +52 -0
- package/docs/components/Web/Dropdownmenu.md +33 -0
- package/docs/components/Web/Dropdownpopup.md +47 -0
- package/docs/components/Web/Echarts.md +43 -0
- package/docs/components/Web/Fileupload.md +60 -0
- package/docs/components/Web/InputTag.md +56 -0
- package/docs/components/Web/Paginate.md +30 -0
- package/docs/components/Web/Portlet.md +27 -0
- package/docs/components/Web/Preview.md +19 -0
- package/docs/components/Web/Previewexample.md +39 -0
- package/docs/components/Web/ScrollXFence.md +38 -0
- package/docs/components/Web/Select.md +56 -0
- package/docs/components/Web/SelectCascade.md +37 -0
- package/docs/components/Web/SelectTag.md +43 -0
- package/docs/components/Web/SelectTree.md +44 -0
- package/docs/components/Web/Selectmove.md +58 -0
- package/docs/components/Web/Sidemenu.md +25 -0
- package/docs/components/Web/Table.md +78 -0
- package/docs/components/Web/Tabs.md +47 -0
- package/docs/components/Web/Tree.md +44 -0
- package/docs/components/Web/Weekhour.md +29 -0
- package/docs/components/Web/Xeditable.md +52 -0
- package/docs/tools/CommonAxios.md +17 -0
- package/docs/tools/CommonBase.md +79 -0
- package/docs/tools/CommonDay.md +18 -0
- package/docs/tools/CommonEchart.md +19 -0
- package/docs/tools/CommonElement.md +42 -0
- package/docs/tools/CommonElementEvent.md +30 -0
- package/docs/tools/CommonI18n.md +18 -0
- package/docs/tools/CommonPromise.md +16 -0
- package/docs/tools/CommonTools.md +43 -0
- package/docs/tools/CommonTooltip.md +38 -0
- package/package.json +123 -0
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
import { defineComponent as g, ref as p, reactive as S, computed as m, watch as y, nextTick as f, onMounted as E, resolveDirective as U, withDirectives as T, openBlock as u, createElementBlock as h, normalizeClass as B, createTextVNode as H, toDisplayString as w } from "vue";
|
|
2
|
+
import { C as P } from "../Shared/base-PQGakkrl.js";
|
|
3
|
+
import { tooltipDirectives as k } from "../Web/__directive__/Tooltip.js";
|
|
4
|
+
const C = ["title"], W = /* @__PURE__ */ g({
|
|
5
|
+
name: "ClEllipsis",
|
|
6
|
+
directives: {
|
|
7
|
+
cltooltip: k
|
|
8
|
+
},
|
|
9
|
+
__name: "Index",
|
|
10
|
+
props: {
|
|
11
|
+
className: {},
|
|
12
|
+
text: {},
|
|
13
|
+
isUseTooltip: { type: Boolean },
|
|
14
|
+
tooltipTheme: {},
|
|
15
|
+
tooltipPosition: {},
|
|
16
|
+
tooltipTrigger: {},
|
|
17
|
+
tooltipIsHtml: { type: Boolean },
|
|
18
|
+
tooltipHtml: {},
|
|
19
|
+
isAutoTooltip: { type: Boolean },
|
|
20
|
+
isShowTitle: { type: Boolean }
|
|
21
|
+
},
|
|
22
|
+
setup(t) {
|
|
23
|
+
const e = t, n = p(null), a = p(null), o = S({
|
|
24
|
+
isPosParent: !1,
|
|
25
|
+
isPosSpan: !1,
|
|
26
|
+
isUseTooltip: !1
|
|
27
|
+
}), v = m(() => {
|
|
28
|
+
let i = "";
|
|
29
|
+
return e.isUseTooltip || o.isUseTooltip ? i = "" : i = e.isShowTitle && e.text || "", i;
|
|
30
|
+
}), x = m(() => {
|
|
31
|
+
const i = {
|
|
32
|
+
"panel-ellipsis": !0,
|
|
33
|
+
"ellipsis-txt-title": !0
|
|
34
|
+
};
|
|
35
|
+
return e.className && !P.isEmpty(e.className) && e.className.split(" ").forEach((l) => {
|
|
36
|
+
P.isEmpty(l) || (i[l] = !0);
|
|
37
|
+
}), i;
|
|
38
|
+
}), c = () => {
|
|
39
|
+
if (e.isUseTooltip && e.text && e.text.length > 0 && n.value && a.value) {
|
|
40
|
+
const i = n.value.clientWidth, l = a.value.offsetWidth;
|
|
41
|
+
if (i > 0 && l > 0) {
|
|
42
|
+
const s = i >= l, r = i < l;
|
|
43
|
+
e.isAutoTooltip ? o.isUseTooltip = r : o.isUseTooltip = !0, o.isPosSpan = s, o.isPosParent = r;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}, d = () => {
|
|
47
|
+
c();
|
|
48
|
+
};
|
|
49
|
+
return y(
|
|
50
|
+
() => e.text,
|
|
51
|
+
() => {
|
|
52
|
+
f(() => {
|
|
53
|
+
c();
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
), E(() => {
|
|
57
|
+
f(() => {
|
|
58
|
+
d();
|
|
59
|
+
});
|
|
60
|
+
}), (i, l) => {
|
|
61
|
+
const s = U("cltooltip");
|
|
62
|
+
return T((u(), h("div", {
|
|
63
|
+
ref_key: "refElParent",
|
|
64
|
+
ref: n,
|
|
65
|
+
class: B(x.value)
|
|
66
|
+
}, [
|
|
67
|
+
T((u(), h("span", {
|
|
68
|
+
ref_key: "refElSpan",
|
|
69
|
+
ref: a,
|
|
70
|
+
title: v.value
|
|
71
|
+
}, [
|
|
72
|
+
H(w(t.text), 1)
|
|
73
|
+
], 8, C)), [
|
|
74
|
+
[s, {
|
|
75
|
+
init: t.isShowTitle && o.isUseTooltip && o.isPosSpan,
|
|
76
|
+
html: t.tooltipHtml || t.text,
|
|
77
|
+
theme: t.tooltipTheme,
|
|
78
|
+
position: t.tooltipPosition,
|
|
79
|
+
trigger: t.tooltipTrigger,
|
|
80
|
+
isHtml: t.tooltipIsHtml
|
|
81
|
+
}]
|
|
82
|
+
])
|
|
83
|
+
], 2)), [
|
|
84
|
+
[s, {
|
|
85
|
+
init: t.isShowTitle && o.isUseTooltip && o.isPosParent,
|
|
86
|
+
html: t.tooltipHtml || t.text,
|
|
87
|
+
theme: t.tooltipTheme,
|
|
88
|
+
position: t.tooltipPosition,
|
|
89
|
+
trigger: t.tooltipTrigger,
|
|
90
|
+
isHtml: t.tooltipIsHtml
|
|
91
|
+
}]
|
|
92
|
+
]);
|
|
93
|
+
};
|
|
94
|
+
}
|
|
95
|
+
});
|
|
96
|
+
export {
|
|
97
|
+
W as default
|
|
98
|
+
};
|
|
99
|
+
//# sourceMappingURL=ClEllipsis.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ClEllipsis.js","sources":["../../../src/libs/Element/Ellipsis/Index.vue"],"sourcesContent":["<template>\n <div\n ref=\"refElParent\"\n :class=\"clsParent\"\n v-cltooltip=\"{\n init:isShowTitle&&optBase.isUseTooltip&&optBase.isPosParent,\n html:tooltipHtml||text,\n theme:tooltipTheme,\n position:tooltipPosition,\n trigger:tooltipTrigger,\n isHtml:tooltipIsHtml\n }\"\n ><span\n ref=\"refElSpan\"\n :title=\"optTitle\"\n v-cltooltip=\"{\n init:isShowTitle&&optBase.isUseTooltip&&optBase.isPosSpan,\n html:tooltipHtml||text,\n theme:tooltipTheme,\n position:tooltipPosition,\n trigger:tooltipTrigger,\n isHtml:tooltipIsHtml\n }\"\n >{{text}}</span></div>\n</template>\n\n<script setup lang=\"ts\">\nimport './Index.css'\nimport { ref, reactive, computed, watch, onMounted, nextTick } from 'vue'\nimport CommonBase from '../../Common/base'\nimport { tooltipDirectives } from '../../Web/Tooltip'\n\n// defineOptions\ndefineOptions({\n name: 'ClEllipsis',\n directives: {\n cltooltip: tooltipDirectives\n }\n})\n\n// props\nconst props = defineProps<{\n className?: string\n text?: string\n isUseTooltip?: boolean\n tooltipTheme?: string\n tooltipPosition?: string\n tooltipTrigger?: string\n tooltipIsHtml?: boolean\n tooltipHtml?: string\n isAutoTooltip?: boolean\n isShowTitle?: boolean\n}>()\n\n// 常量 / 变量定义\nconst refElParent = ref<HTMLElement | null>(null)\nconst refElSpan = ref<HTMLElement | null>(null)\n\nconst optBase = reactive({\n isPosParent: false,\n isPosSpan: false,\n isUseTooltip: false,\n})\n\n// computed\nconst optTitle = computed(() => {\n let title = ''\n if (props.isUseTooltip || optBase.isUseTooltip) {\n title = ''\n } else {\n title = props.isShowTitle ? props.text || '' : ''\n }\n return title\n})\n\nconst clsParent = computed(() => {\n const cls: any = {\n 'panel-ellipsis': true,\n 'ellipsis-txt-title': true,\n }\n if (props.className && !CommonBase.isEmpty(props.className)) {\n props.className.split(' ').forEach((c) => {\n if (!CommonBase.isEmpty(c)) {\n cls[c] = true\n }\n })\n }\n return cls\n})\n\n// 内部调用方法\nconst _initTipPos = () => {\n if (props.isUseTooltip && props.text && props.text.length > 0) {\n if (refElParent.value && refElSpan.value) {\n const pW = refElParent.value.clientWidth\n const cW = refElSpan.value.offsetWidth\n if (pW > 0 && cW > 0) {\n const isPosSpan = pW >= cW\n const isPosParent = pW < cW\n\n if (props.isAutoTooltip) {\n optBase.isUseTooltip = isPosParent\n } else {\n optBase.isUseTooltip = true\n }\n optBase.isPosSpan = isPosSpan\n optBase.isPosParent = isPosParent\n }\n }\n }\n}\n\nconst _initMain = () => {\n _initTipPos()\n}\n\n// watch\nwatch(\n () => props.text,\n () => {\n nextTick(() => {\n _initTipPos()\n })\n },\n)\n\n// 生命周期\nonMounted(() => {\n nextTick(() => {\n _initMain()\n })\n})\n</script>"],"names":["props","__props","refElParent","ref","refElSpan","optBase","reactive","optTitle","computed","title","clsParent","cls","CommonBase","c","_initTipPos","pW","cW","isPosSpan","isPosParent","_initMain","watch","nextTick","onMounted","_createElementBlock"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAyCA,UAAMA,IAAQC,GAcRC,IAAcC,EAAwB,IAAI,GAC1CC,IAAYD,EAAwB,IAAI,GAExCE,IAAUC,EAAS;AAAA,MACvB,aAAa;AAAA,MACb,WAAW;AAAA,MACX,cAAc;AAAA,IAAA,CACf,GAGKC,IAAWC,EAAS,MAAM;AAC9B,UAAIC,IAAQ;AACZ,aAAIT,EAAM,gBAAgBK,EAAQ,eAChCI,IAAQ,KAERA,IAAQT,EAAM,eAAcA,EAAM,QAAQ,IAErCS;AAAA,IACT,CAAC,GAEKC,IAAYF,EAAS,MAAM;AAC/B,YAAMG,IAAW;AAAA,QACf,kBAAkB;AAAA,QAClB,sBAAsB;AAAA,MAAA;AAExB,aAAIX,EAAM,aAAa,CAACY,EAAW,QAAQZ,EAAM,SAAS,KACxDA,EAAM,UAAU,MAAM,GAAG,EAAE,QAAQ,CAACa,MAAM;AACxC,QAAKD,EAAW,QAAQC,CAAC,MACvBF,EAAIE,CAAC,IAAI;AAAA,MAEb,CAAC,GAEIF;AAAA,IACT,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BA,EAAA;AAAA,oBAAmCA,EAAA;AAAA,mBAAqCA,EAAA;AAAA,kBAAmCA,EAAA;AAAA,QAAA;;;;;"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";const i=require("vue"),a=require("../Shared/base-iCmnU-fv.js"),d=require("../Shared/index-Ul6uY51t.js");require("js-cookie");require("decimal.js");class S{startTime;startPos;endPos;duration;runEasing;runIngFun;lastPos;lastInterval;timeAnimate;constructor(s){this.startTime=0,this.startPos=0,this.endPos=0,this.duration=0,this.runEasing=null,this.runIngFun=s.runIngCallback,this.lastPos=0,this.lastInterval=0}_easing={linear:(s,t,r,l)=>r*s/l+t,easeInCubic:(s,t,r,l)=>r*(s/=l)*s*s+t,easeOutCubic:(s,t,r,l)=>r*((s=s/l-1)*s*s+1)+t};start(s,t,r,l="linear"){const o=this;return new Promise(f=>{this.startTime=+new Date,this.startPos=s,this.endPos=t,this.duration=r,this.runEasing=o._easing[l],o.timeAnimate=a.CommonBase.requestAnimationFrame(function p(){o.step()===!1?(o.stop(),f(o.lastInterval)):o.timeAnimate=a.CommonBase.requestAnimationFrame(p)})})}step(){const s=+new Date;if(s>=this.startTime+this.duration)return this.runIngFun(this.endPos),!1;const t=this.runEasing(s-this.startTime,this.startPos,this.endPos-this.startPos,this.duration);return this.lastInterval=Math.abs(t-this.lastPos),this.lastPos=t,this.runIngFun(t),!0}stop(){this.timeAnimate&&a.CommonBase.cancelAnimationFrame(this.timeAnimate)}}const A=i.defineComponent({name:"ClForm",__name:"Index",props:{theme:{},className:{},isAwaitRun:{type:Boolean},preScroll:{},pElError:{},isScrollToErr:{type:Boolean}},setup(E,{expose:s}){const t=E,r=i.ref(null),l=i.reactive({isRun:!t.isAwaitRun}),o={_scrollUpAnimate:null,parentScroll:null,isScrollWindow:!0},f=i.computed(()=>{const e={"data-cl-validate":""};return l.isRun&&(e["data-run"]=""),a.CommonBase.isEmpty(t.theme)||(e["data-theme"]=t.theme),e}),p=i.computed(()=>{const e={"panel-form":!0,"form-validate":!0};return t.className&&!a.CommonBase.isEmpty(t.className)&&t.className.split(" ").forEach(n=>{a.CommonBase.isEmpty(n)||(e[n]=!0)}),e}),h=e=>{let n=!0;return l.isRun&&!a.CommonBase.isUndefined(e)&&r.value?.contains(e)&&e.runValidate&&(n=e.runValidate()),n},P=()=>{const e=r.value?.querySelectorAll("[data-validate-error]");if(!a.CommonBase.isUndefined(e)&&e.length&&e.length>0){let n=e[0];const{preScroll:m,pElError:c}=t,u=!a.CommonBase.isEmpty(n.pElError),C=!a.CommonBase.isEmpty(c);if(u||C){const v=d.CommonElement.getParent(n,u?n.pElError:c,r.value);a.CommonBase.isUndefined(v)||(n=v)}let g=d.CommonElement.getOffset(n,o.isScrollWindow?null:o.parentScroll).top-10;m&&!a.CommonBase.isUndefined(m)&&(g-=m),o._scrollUpAnimate.start(o.parentScroll.scrollTop,g,200)}},B=()=>{const e=d.CommonElement.getParentScrollList(r.value,null,!1);o.isScrollWindow=e.length===0,o.parentScroll=o.isScrollWindow?document.documentElement:e[0].children[0],o._scrollUpAnimate=new S({runIngCallback:n=>{o.parentScroll.scrollTop=n}})};return i.onMounted(()=>{i.nextTick(()=>{B()})}),s({validate:e=>d.CommonPromise.promiseFun(n=>{let m=!0;a.CommonBase.isUndefined(e)?(l.isRun=!0,i.nextTick(()=>{const c=r.value?.querySelectorAll("[data-validate-el]");!a.CommonBase.isUndefined(c)&&c.length&&c.length>0&&c.forEach(u=>{h(u)||(m=!1)}),m||t.isScrollToErr&&i.nextTick(()=>{P()}),n(m)})):(m=h(e),n(m))}),reset:()=>{l.isRun=!1,r.value?.removeAttribute("data-run");const e=r.value?.querySelectorAll("[data-validate-el]");!a.CommonBase.isUndefined(e)&&e.length&&e.length>0&&e.forEach(n=>{n.runReset&&n.runReset()})}}),(e,n)=>(i.openBlock(),i.createElementBlock("form",i.mergeProps({ref_key:"refElTop",ref:r,autocomplete:"off",class:p.value},f.value),[i.renderSlot(e.$slots,"default")],16))}});module.exports=A;
|
|
2
|
+
//# sourceMappingURL=ClForm.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ClForm.cjs","sources":["../../../src/libs/Common/Tools/animateEasing.ts","../../../src/libs/Element/Form/Index.vue"],"sourcesContent":["import CommonBase from \"../base\";\nclass AnimateEasing {\n startTime: number;\n startPos: number;\n endPos: number;\n duration: number;\n runEasing: any;\n\n runIngFun: any;\n\n lastPos: number;\n lastInterval: number;\n\n timeAnimate: any;\n constructor(option: any) {\n this.startTime = 0;\n this.startPos = 0;\n this.endPos = 0;\n this.duration = 0;\n this.runEasing = null;\n\n this.runIngFun = option.runIngCallback;\n\n this.lastPos = 0;\n this.lastInterval = 0;\n }\n\n _easing = {\n /**\n * t:动画已经消耗的时间\n * b:初始位置\n * c:目标位置\n * d:动画持续的总时间\n */\n linear: (t: number, b: number, c: number, d: number) => c * t / d + b,\n easeInCubic: (t: number, b: number, c: number, d: number) => c * (t /= d) * t * t + b, // eslint-disable-line\n easeOutCubic: (t: number, b: number, c: number, d: number) => c * ((t = t / d - 1) * t * t + 1) + b,// eslint-disable-line\n };\n\n start(startPos: number, endPos: number, duration: number, easing = \"linear\") {\n const self: any = this;\n return new Promise((resolve) => {\n this.startTime = +new Date();\n this.startPos = startPos;\n this.endPos = endPos;\n this.duration = duration;\n this.runEasing = self._easing[easing];\n self.timeAnimate = CommonBase.requestAnimationFrame(function fnCb() {\n const stepResult = self.step();\n if (stepResult === false) {\n self.stop();\n resolve(self.lastInterval);\n } else {\n self.timeAnimate = CommonBase.requestAnimationFrame(fnCb);\n }\n });\n });\n }\n\n step() {\n const t = +new Date();\n if (t >= this.startTime + this.duration) {\n this.runIngFun(this.endPos);\n return false;\n }\n const pos = this.runEasing(t - this.startTime, this.startPos, this.endPos - this.startPos, this.duration);\n this.lastInterval = Math.abs(pos - this.lastPos);\n this.lastPos = pos;\n this.runIngFun(pos);\n return true;\n }\n\n stop() {\n if (this.timeAnimate) {\n CommonBase.cancelAnimationFrame(this.timeAnimate);\n }\n }\n}\nexport default AnimateEasing;\n","<template>\n <form ref=\"refElTop\" autocomplete=\"off\" :class=\"clsParent\" v-bind=\"optParent\">\n <slot></slot>\n </form>\n</template>\n\n<script setup lang=\"ts\">\nimport './Index.css'\nimport { ref, reactive, computed, onMounted, nextTick } from 'vue'\nimport CommonBase from '../../Common/base'\nimport CommonPromise from '../../Common/promise'\nimport CommonElement from '../../Common/Element/index'\nimport { AnimateEasing } from '../../Common/Tools/index'\n\n// defineOptions\ndefineOptions({\n name: 'ClForm'\n})\n\n// props\nconst props = defineProps<{\n theme?: string\n className?: string\n isAwaitRun?: boolean\n preScroll?: number\n pElError?: string\n isScrollToErr?: boolean\n}>()\n\n// 常量 / 变量定义\nconst refElTop = ref<HTMLFormElement | null>(null)\nconst optBase = reactive({ isRun: !props.isAwaitRun })\nconst _pageData: any = {\n _scrollUpAnimate: null,\n parentScroll: null,\n isScrollWindow: true,\n}\n\n// computed\nconst optParent = computed(() => {\n const temp: any = {\n 'data-cl-validate': '',\n }\n if (optBase.isRun) {\n temp['data-run'] = ''\n }\n if (!CommonBase.isEmpty(props.theme)) {\n temp['data-theme'] = props.theme\n }\n return temp\n})\n\nconst clsParent = computed(() => {\n const clsTemp: any = {\n 'panel-form': true,\n 'form-validate': true,\n }\n if (props.className && !CommonBase.isEmpty(props.className)) {\n props.className.split(' ').forEach((cls) => {\n if (!CommonBase.isEmpty(cls)) {\n clsTemp[cls] = true\n }\n })\n }\n return clsTemp\n})\n\n// 内部调用方法\nconst _validateEl = (el: any) => {\n let result = true\n if (optBase.isRun && !CommonBase.isUndefined(el) && refElTop.value?.contains(el)) {\n if (el.runValidate) {\n result = el.runValidate()\n }\n }\n return result\n}\n\nconst _runScrollErrorEl = () => {\n const errEl: any = refElTop.value?.querySelectorAll('[data-validate-error]')\n if (!CommonBase.isUndefined(errEl) && errEl.length && errEl.length > 0) {\n let el = errEl[0]\n const { preScroll, pElError } = props\n\n const isErrElP = !CommonBase.isEmpty(el.pElError)\n const isErrElF = !CommonBase.isEmpty(pElError)\n if (isErrElP || isErrElF) {\n const tempEL = CommonElement.getParent(el, isErrElP ? el.pElError : pElError, refElTop.value)\n if (!CommonBase.isUndefined(tempEL)) {\n el = tempEL\n }\n }\n const elOffset = CommonElement.getOffset(el, _pageData.isScrollWindow ? null : _pageData.parentScroll)\n let end = elOffset.top - 10\n if (preScroll && !CommonBase.isUndefined(preScroll)) {\n end -= preScroll\n }\n _pageData._scrollUpAnimate.start(_pageData.parentScroll.scrollTop, end, 200)\n }\n}\n\nconst _initMain = () => {\n const pScrolls = CommonElement.getParentScrollList(refElTop.value, null, false)\n _pageData.isScrollWindow = pScrolls.length === 0\n _pageData.parentScroll = _pageData.isScrollWindow ? document.documentElement : pScrolls[0].children[0]\n _pageData._scrollUpAnimate = new AnimateEasing({\n runIngCallback: (pos: any) => {\n _pageData.parentScroll.scrollTop = pos\n },\n })\n}\n\n// 生命周期\nonMounted(() => {\n nextTick(() => {\n _initMain()\n })\n})\n\n// 开放给外部使用的方法\nconst validate = (el?: any) => {\n return CommonPromise.promiseFun((resolve: any) => {\n let result = true\n if (CommonBase.isUndefined(el)) {\n optBase.isRun = true\n nextTick(() => {\n const validateEl: any = refElTop.value?.querySelectorAll('[data-validate-el]')\n if (!CommonBase.isUndefined(validateEl) && validateEl.length && validateEl.length > 0) {\n validateEl.forEach((e: any) => {\n const check = _validateEl(e)\n if (!check) {\n result = false\n }\n })\n }\n if (!result) {\n if (props.isScrollToErr) {\n nextTick(() => {\n _runScrollErrorEl()\n })\n }\n }\n resolve(result)\n })\n } else {\n result = _validateEl(el)\n resolve(result)\n }\n })\n}\n\nconst reset = () => {\n optBase.isRun = false\n refElTop.value?.removeAttribute('data-run')\n const validateEl:any = refElTop.value?.querySelectorAll('[data-validate-el]')\n if (!CommonBase.isUndefined(validateEl) && validateEl.length && validateEl.length > 0) {\n validateEl.forEach((e: any) => {\n if (e.runReset) {\n e.runReset()\n }\n })\n }\n}\n\n// 导出类型定义\nexport interface ClFormExpose {\n validate: (el?: HTMLElement) => Promise<boolean>\n reset: () => void\n}\n\n// defineExpose\ndefineExpose({\n validate,\n reset\n})\n</script>"],"names":["AnimateEasing","option","t","b","c","d","startPos","endPos","duration","easing","self","resolve","CommonBase","fnCb","pos","props","__props","refElTop","ref","optBase","reactive","_pageData","optParent","computed","temp","clsParent","clsTemp","cls","_validateEl","el","result","_runScrollErrorEl","errEl","preScroll","pElError","isErrElP","isErrElF","tempEL","CommonElement","end","_initMain","pScrolls","onMounted","nextTick","__expose","CommonPromise","validateEl","e","_openBlock","_createElementBlock","_mergeProps","_renderSlot","_ctx"],"mappings":"gKACA,MAAMA,CAAc,CAChB,UACA,SACA,OACA,SACA,UAEA,UAEA,QACA,aAEA,YACA,YAAYC,EAAa,CACrB,KAAK,UAAY,EACjB,KAAK,SAAW,EAChB,KAAK,OAAS,EACd,KAAK,SAAW,EAChB,KAAK,UAAY,KAEjB,KAAK,UAAYA,EAAO,eAExB,KAAK,QAAU,EACf,KAAK,aAAe,CACxB,CAEA,QAAU,CAON,OAAQ,CAACC,EAAWC,EAAWC,EAAWC,IAAcD,EAAIF,EAAIG,EAAIF,EACpE,YAAa,CAACD,EAAWC,EAAWC,EAAWC,IAAcD,GAAKF,GAAKG,GAAKH,EAAIA,EAAIC,EACpF,aAAc,CAACD,EAAWC,EAAWC,EAAWC,IAAcD,IAAMF,EAAIA,EAAIG,EAAI,GAAKH,EAAIA,EAAI,GAAKC,CAAA,EAGtG,MAAMG,EAAkBC,EAAgBC,EAAkBC,EAAS,SAAU,CACzE,MAAMC,EAAY,KAClB,OAAO,IAAI,QAASC,GAAY,CAC5B,KAAK,UAAY,CAAC,IAAI,KACtB,KAAK,SAAWL,EAChB,KAAK,OAASC,EACd,KAAK,SAAWC,EAChB,KAAK,UAAYE,EAAK,QAAQD,CAAM,EACpCC,EAAK,YAAcE,EAAAA,WAAW,sBAAsB,SAASC,GAAO,CAC7CH,EAAK,KAAA,IACL,IACfA,EAAK,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bH,EAAA,CACF,CAAC,CACH,CAAC,EAsDDI,EAAa,CACX,SApDgBf,GACTgB,EAAAA,cAAc,WAAYlC,GAAiB,CAChD,IAAImB,EAAS,GACTlB,EAAAA,WAAW,YAAYiB,CAAE,GAC3BV,EAAQ,MAAQ,GAChBwB,EAAAA,SAAS,IAAM,CACb,MAAMG,EAAkB7B,EAAS,OAAO,iBAAiB,oBAAoB,EACzE,CAACL,EAAAA,WAAW,YAAYkC,CAAU,GAAKA,EAAW,QAAUA,EAAW,OAAS,GAClFA,EAAW,QAASC,GAAW,CACfnB,EAAYmB,CAAC,IAEzBjB,EAAS,GAEb,CAAC,EAEEA,GACCf,EAAM,eACR4B,EAAAA,SAAS,IAAM,CACbZ,EAAA,CACF,CAAC,EAGLpB,EAAQmB,CAAM,CAChB,CAAC,IAEDA,EAASF,EAAYC,CAAE,EACvBlB,EAAQmB,CAAM,EAElB,CAAC,EAyBD,MAtBY,IAAM,CAClBX,EAAQ,MAAQ,GAChBF,EAAS,OAAO,gBAAgB,UAAU,EAC1C,MAAM6B,EAAiB7B,EAAS,OAAO,iBAAiB,oBAAoB,EACxE,CAACL,EAAAA,WAAW,YAAYkC,CAAU,GAAKA,EAAW,QAAUA,EAAW,OAAS,GAClFA,EAAW,QAASC,GAAW,CACzBA,EAAE,UACJA,EAAE,SAAA,CAEN,CAAC,CAEL,CAWE,CACD,UA7KCC,YAAA,EAAAC,qBAEO,OAFPC,EAAAA,WAEO,SAFG,WAAJ,IAAIjC,EAAW,aAAa,MAAO,MAAOQ,EAAA,KAAA,EAAmBH,EAAA,KAAS,EAAA,CAC1E6B,aAAaC,EAAA,OAAA,SAAA,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.panel-form{position:relative}.panel-validate-element{display:flex;flex-direction:row;align-items:center;flex-wrap:wrap}.panel-validate-errors{color:red!important;cursor:default!important}.panel-validate-errors.validate-errors-tip{margin-left:5px}.validate-errors-tip>.error-tip-el{cursor:default}.panel-validate-errors.validate-errors-text{margin-left:5px}.panel-validate-errors.validate-errors-li>.error-li-el{list-style:none;padding:5px 0 0;margin:0}.panel-validate-element.validate-msg-top>.panel-validate-errors{align-self:flex-start;margin-top:5px}.panel-validate-element[data-validate-error] .panel-input input[type=text].form-control,.panel-validate-element[data-validate-error] .panel-input .input-group-text,.panel-validate-element[data-validate-error] .panel-input input[type=password].form-control,.panel-validate-element[data-validate-error] input[type=text].form-control,.panel-validate-element[data-validate-error] .panel-textarea textarea.text-area{border-color:red!important}.panel-validate-element[data-validate-error] .panel-input.input-bottomLine>div{border-color:red!important}.panel-validate-element[data-validate-error] .panel-input-captcha{border-color:red!important}.panel-validate-element[data-validate-error] .panel-select .select-inText>.dropdownLayer-text-container,.panel-validate-element[data-validate-error] .panel-select .select-inDropdown.dropdownLayer-dropdown-open,.panel-validate-element[data-validate-error] .panel-select .select-inTag.select-inTag-open{border-color:red!important;transition:border-color .3s linear}.panel-validate-element[data-validate-error] .panel-select .dropdownLayer-text-container>.dropdownLayer-text-arrow{color:red!important}.panel-validate-element[data-validate-error] .panel-radio .radio label:before{border-color:red}.panel-validate-element[data-validate-error] .panel-checkbox .checkbox label:before{border-color:red}.panel-validate-element[data-validate-error] .panel-selectTag>.selectTag-container>.selectTag-item{border-color:red!important}.panel-validate-element[data-validate-error] .panel-fileUpload>.fileUpload-default{border-color:red!important;transition:border-color .3s linear}.panel-validate-element[data-validate-error] .panel-fileUpload>.fileUpload-button .btn-default{border-color:red!important;transition:border-color .3s linear}.panel-validate-element[data-validate-error] .panel-fileUpload .panel-btn-parent .btn{border-color:red!important}.panel-validate-element[data-validate-error] .panel-table.table-border-all .table-head-wrapper,.panel-validate-element[data-validate-error] .panel-table.table-border-all .table-body-wrapper{border-color:red!important;transition:border-color .3s linear}.panel-validate-element[data-validate-error] .panel-table.table-border-all ::-webkit-scrollbar-track{border-right-color:red!important}.panel-validate-element[data-validate-error] .panel-datetime .dropdownLayer-text>.dropdownLayer-text-container,.panel-validate-element[data-validate-error] .panel-datetime .dropdownLayer-dropdown.dropdownLayer-dropdown-open{border-color:red!important;transition:border-color .3s linear}.panel-validate-element[data-validate-error] .dropdownLayer-dropdown-arrow.dropdownLayer-dropdown-theme-list.dropdownLayer-dropdown.dropdownLayer-dropdown-down>.arrow{border-bottom-color:red!important}.panel-validate-element[data-validate-error] .panel-datetime.dropdownLayer-arrow>.dropdownLayer-dropdown:before{border-bottom-color:red!important}.panel-validate-element[data-validate-error] .panel-datetime.datetime-range .calendar-range>.calendar-text>.time-input-base>.form-control{border-color:#cfcfcf!important}.panel-validate-element[data-validate-error] .panel-selectmove>.selectmove-search .panel-input.input-icon>div{border-color:red!important;transition:border-color .3s linear}.panel-validate-element[data-validate-error] .panel-selectmove>.selectmove-body>.selectmove-tree>.selectmove-tree-item{border-color:red!important;transition:border-color .3s linear}.panel-validate-element[data-validate-error] .panel-selectmove>.selectmove-body>.selectmove-result .selectmove-result-container{border-color:red!important;transition:border-color .3s linear}.panel-validate-element[data-validate-error] .panel-colorPicker>.dropdownLayer-text,.panel-validate-element[data-validate-error] .panel-colorPicker .dropdownLayer-dropdown.dropdownLayer-dropdown-open{border-color:red!important;transition:border-color .3s linear}.panel-validate-element[data-validate-error] .panel-colorPicker>.dropdownLayer-dropdown-arrow.dropdownLayer-dropdown-theme-popup.dropdownLayer-dropdown.dropdownLayer-dropdown-down>.arrow{border-bottom-color:red}.panel-validate-element[data-validate-error] .panel-inputTag .inputTag-container.inputTag-multiple{border-color:red}.panel-validate-element[data-validate-error] .panel-selectCascade>.selectCascade-item>.panel-validate-element[data-validate-success]>.panel-select .select-inText>.dropdownLayer-text-container,.panel-validate-element[data-validate-error] .panel-selectCascade>.selectCascade-item>.panel-validate-element[data-validate-success]>.panel-select .select-inDropdown.dropdownLayer-dropdown-open,.panel-validate-element[data-validate-error] .panel-selectCascade>.selectCascade-item>.panel-validate-element[data-validate-success]>.panel-select .select-inTag.select-inTag-open{border-color:#cfcfcf!important}.panel-validate-element[data-validate-error] .panel-selectCascade>.selectCascade-item>.panel-validate-element[data-validate-success] .panel-select .dropdownLayer-text-container>.dropdownLayer-text-arrow{color:#cfcfcf!important}
|
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
import { defineComponent as T, ref as C, reactive as I, computed as S, onMounted as y, nextTick as d, openBlock as R, createElementBlock as w, mergeProps as F, renderSlot as U } from "vue";
|
|
2
|
+
import { C as i } from "../Shared/base-PQGakkrl.js";
|
|
3
|
+
import { C as h, a as k } from "../Shared/index-BnerInzC.js";
|
|
4
|
+
import "js-cookie";
|
|
5
|
+
import "decimal.js";
|
|
6
|
+
class b {
|
|
7
|
+
startTime;
|
|
8
|
+
startPos;
|
|
9
|
+
endPos;
|
|
10
|
+
duration;
|
|
11
|
+
runEasing;
|
|
12
|
+
runIngFun;
|
|
13
|
+
lastPos;
|
|
14
|
+
lastInterval;
|
|
15
|
+
timeAnimate;
|
|
16
|
+
constructor(n) {
|
|
17
|
+
this.startTime = 0, this.startPos = 0, this.endPos = 0, this.duration = 0, this.runEasing = null, this.runIngFun = n.runIngCallback, this.lastPos = 0, this.lastInterval = 0;
|
|
18
|
+
}
|
|
19
|
+
_easing = {
|
|
20
|
+
/**
|
|
21
|
+
* t:动画已经消耗的时间
|
|
22
|
+
* b:初始位置
|
|
23
|
+
* c:目标位置
|
|
24
|
+
* d:动画持续的总时间
|
|
25
|
+
*/
|
|
26
|
+
linear: (n, e, r, l) => r * n / l + e,
|
|
27
|
+
easeInCubic: (n, e, r, l) => r * (n /= l) * n * n + e,
|
|
28
|
+
// eslint-disable-line
|
|
29
|
+
easeOutCubic: (n, e, r, l) => r * ((n = n / l - 1) * n * n + 1) + e
|
|
30
|
+
// eslint-disable-line
|
|
31
|
+
};
|
|
32
|
+
start(n, e, r, l = "linear") {
|
|
33
|
+
const a = this;
|
|
34
|
+
return new Promise((m) => {
|
|
35
|
+
this.startTime = +/* @__PURE__ */ new Date(), this.startPos = n, this.endPos = e, this.duration = r, this.runEasing = a._easing[l], a.timeAnimate = i.requestAnimationFrame(function f() {
|
|
36
|
+
a.step() === !1 ? (a.stop(), m(a.lastInterval)) : a.timeAnimate = i.requestAnimationFrame(f);
|
|
37
|
+
});
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
step() {
|
|
41
|
+
const n = +/* @__PURE__ */ new Date();
|
|
42
|
+
if (n >= this.startTime + this.duration)
|
|
43
|
+
return this.runIngFun(this.endPos), !1;
|
|
44
|
+
const e = this.runEasing(n - this.startTime, this.startPos, this.endPos - this.startPos, this.duration);
|
|
45
|
+
return this.lastInterval = Math.abs(e - this.lastPos), this.lastPos = e, this.runIngFun(e), !0;
|
|
46
|
+
}
|
|
47
|
+
stop() {
|
|
48
|
+
this.timeAnimate && i.cancelAnimationFrame(this.timeAnimate);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
const L = /* @__PURE__ */ T({
|
|
52
|
+
name: "ClForm",
|
|
53
|
+
__name: "Index",
|
|
54
|
+
props: {
|
|
55
|
+
theme: {},
|
|
56
|
+
className: {},
|
|
57
|
+
isAwaitRun: { type: Boolean },
|
|
58
|
+
preScroll: {},
|
|
59
|
+
pElError: {},
|
|
60
|
+
isScrollToErr: { type: Boolean }
|
|
61
|
+
},
|
|
62
|
+
setup(E, { expose: n }) {
|
|
63
|
+
const e = E, r = C(null), l = I({ isRun: !e.isAwaitRun }), a = {
|
|
64
|
+
_scrollUpAnimate: null,
|
|
65
|
+
parentScroll: null,
|
|
66
|
+
isScrollWindow: !0
|
|
67
|
+
}, m = S(() => {
|
|
68
|
+
const t = {
|
|
69
|
+
"data-cl-validate": ""
|
|
70
|
+
};
|
|
71
|
+
return l.isRun && (t["data-run"] = ""), i.isEmpty(e.theme) || (t["data-theme"] = e.theme), t;
|
|
72
|
+
}), f = S(() => {
|
|
73
|
+
const t = {
|
|
74
|
+
"panel-form": !0,
|
|
75
|
+
"form-validate": !0
|
|
76
|
+
};
|
|
77
|
+
return e.className && !i.isEmpty(e.className) && e.className.split(" ").forEach((s) => {
|
|
78
|
+
i.isEmpty(s) || (t[s] = !0);
|
|
79
|
+
}), t;
|
|
80
|
+
}), p = (t) => {
|
|
81
|
+
let s = !0;
|
|
82
|
+
return l.isRun && !i.isUndefined(t) && r.value?.contains(t) && t.runValidate && (s = t.runValidate()), s;
|
|
83
|
+
}, A = () => {
|
|
84
|
+
const t = r.value?.querySelectorAll("[data-validate-error]");
|
|
85
|
+
if (!i.isUndefined(t) && t.length && t.length > 0) {
|
|
86
|
+
let s = t[0];
|
|
87
|
+
const { preScroll: o, pElError: c } = e, u = !i.isEmpty(s.pElError), g = !i.isEmpty(c);
|
|
88
|
+
if (u || g) {
|
|
89
|
+
const P = h.getParent(s, u ? s.pElError : c, r.value);
|
|
90
|
+
i.isUndefined(P) || (s = P);
|
|
91
|
+
}
|
|
92
|
+
let v = h.getOffset(s, a.isScrollWindow ? null : a.parentScroll).top - 10;
|
|
93
|
+
o && !i.isUndefined(o) && (v -= o), a._scrollUpAnimate.start(a.parentScroll.scrollTop, v, 200);
|
|
94
|
+
}
|
|
95
|
+
}, _ = () => {
|
|
96
|
+
const t = h.getParentScrollList(r.value, null, !1);
|
|
97
|
+
a.isScrollWindow = t.length === 0, a.parentScroll = a.isScrollWindow ? document.documentElement : t[0].children[0], a._scrollUpAnimate = new b({
|
|
98
|
+
runIngCallback: (s) => {
|
|
99
|
+
a.parentScroll.scrollTop = s;
|
|
100
|
+
}
|
|
101
|
+
});
|
|
102
|
+
};
|
|
103
|
+
return y(() => {
|
|
104
|
+
d(() => {
|
|
105
|
+
_();
|
|
106
|
+
});
|
|
107
|
+
}), n({
|
|
108
|
+
validate: (t) => k.promiseFun((s) => {
|
|
109
|
+
let o = !0;
|
|
110
|
+
i.isUndefined(t) ? (l.isRun = !0, d(() => {
|
|
111
|
+
const c = r.value?.querySelectorAll("[data-validate-el]");
|
|
112
|
+
!i.isUndefined(c) && c.length && c.length > 0 && c.forEach((u) => {
|
|
113
|
+
p(u) || (o = !1);
|
|
114
|
+
}), o || e.isScrollToErr && d(() => {
|
|
115
|
+
A();
|
|
116
|
+
}), s(o);
|
|
117
|
+
})) : (o = p(t), s(o));
|
|
118
|
+
}),
|
|
119
|
+
reset: () => {
|
|
120
|
+
l.isRun = !1, r.value?.removeAttribute("data-run");
|
|
121
|
+
const t = r.value?.querySelectorAll("[data-validate-el]");
|
|
122
|
+
!i.isUndefined(t) && t.length && t.length > 0 && t.forEach((s) => {
|
|
123
|
+
s.runReset && s.runReset();
|
|
124
|
+
});
|
|
125
|
+
}
|
|
126
|
+
}), (t, s) => (R(), w("form", F({
|
|
127
|
+
ref_key: "refElTop",
|
|
128
|
+
ref: r,
|
|
129
|
+
autocomplete: "off",
|
|
130
|
+
class: f.value
|
|
131
|
+
}, m.value), [
|
|
132
|
+
U(t.$slots, "default")
|
|
133
|
+
], 16));
|
|
134
|
+
}
|
|
135
|
+
});
|
|
136
|
+
export {
|
|
137
|
+
L as default
|
|
138
|
+
};
|
|
139
|
+
//# sourceMappingURL=ClForm.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ClForm.js","sources":["../../../src/libs/Common/Tools/animateEasing.ts","../../../src/libs/Element/Form/Index.vue"],"sourcesContent":["import CommonBase from \"../base\";\nclass AnimateEasing {\n startTime: number;\n startPos: number;\n endPos: number;\n duration: number;\n runEasing: any;\n\n runIngFun: any;\n\n lastPos: number;\n lastInterval: number;\n\n timeAnimate: any;\n constructor(option: any) {\n this.startTime = 0;\n this.startPos = 0;\n this.endPos = 0;\n this.duration = 0;\n this.runEasing = null;\n\n this.runIngFun = option.runIngCallback;\n\n this.lastPos = 0;\n this.lastInterval = 0;\n }\n\n _easing = {\n /**\n * t:动画已经消耗的时间\n * b:初始位置\n * c:目标位置\n * d:动画持续的总时间\n */\n linear: (t: number, b: number, c: number, d: number) => c * t / d + b,\n easeInCubic: (t: number, b: number, c: number, d: number) => c * (t /= d) * t * t + b, // eslint-disable-line\n easeOutCubic: (t: number, b: number, c: number, d: number) => c * ((t = t / d - 1) * t * t + 1) + b,// eslint-disable-line\n };\n\n start(startPos: number, endPos: number, duration: number, easing = \"linear\") {\n const self: any = this;\n return new Promise((resolve) => {\n this.startTime = +new Date();\n this.startPos = startPos;\n this.endPos = endPos;\n this.duration = duration;\n this.runEasing = self._easing[easing];\n self.timeAnimate = CommonBase.requestAnimationFrame(function fnCb() {\n const stepResult = self.step();\n if (stepResult === false) {\n self.stop();\n resolve(self.lastInterval);\n } else {\n self.timeAnimate = CommonBase.requestAnimationFrame(fnCb);\n }\n });\n });\n }\n\n step() {\n const t = +new Date();\n if (t >= this.startTime + this.duration) {\n this.runIngFun(this.endPos);\n return false;\n }\n const pos = this.runEasing(t - this.startTime, this.startPos, this.endPos - this.startPos, this.duration);\n this.lastInterval = Math.abs(pos - this.lastPos);\n this.lastPos = pos;\n this.runIngFun(pos);\n return true;\n }\n\n stop() {\n if (this.timeAnimate) {\n CommonBase.cancelAnimationFrame(this.timeAnimate);\n }\n }\n}\nexport default AnimateEasing;\n","<template>\n <form ref=\"refElTop\" autocomplete=\"off\" :class=\"clsParent\" v-bind=\"optParent\">\n <slot></slot>\n </form>\n</template>\n\n<script setup lang=\"ts\">\nimport './Index.css'\nimport { ref, reactive, computed, onMounted, nextTick } from 'vue'\nimport CommonBase from '../../Common/base'\nimport CommonPromise from '../../Common/promise'\nimport CommonElement from '../../Common/Element/index'\nimport { AnimateEasing } from '../../Common/Tools/index'\n\n// defineOptions\ndefineOptions({\n name: 'ClForm'\n})\n\n// props\nconst props = defineProps<{\n theme?: string\n className?: string\n isAwaitRun?: boolean\n preScroll?: number\n pElError?: string\n isScrollToErr?: boolean\n}>()\n\n// 常量 / 变量定义\nconst refElTop = ref<HTMLFormElement | null>(null)\nconst optBase = reactive({ isRun: !props.isAwaitRun })\nconst _pageData: any = {\n _scrollUpAnimate: null,\n parentScroll: null,\n isScrollWindow: true,\n}\n\n// computed\nconst optParent = computed(() => {\n const temp: any = {\n 'data-cl-validate': '',\n }\n if (optBase.isRun) {\n temp['data-run'] = ''\n }\n if (!CommonBase.isEmpty(props.theme)) {\n temp['data-theme'] = props.theme\n }\n return temp\n})\n\nconst clsParent = computed(() => {\n const clsTemp: any = {\n 'panel-form': true,\n 'form-validate': true,\n }\n if (props.className && !CommonBase.isEmpty(props.className)) {\n props.className.split(' ').forEach((cls) => {\n if (!CommonBase.isEmpty(cls)) {\n clsTemp[cls] = true\n }\n })\n }\n return clsTemp\n})\n\n// 内部调用方法\nconst _validateEl = (el: any) => {\n let result = true\n if (optBase.isRun && !CommonBase.isUndefined(el) && refElTop.value?.contains(el)) {\n if (el.runValidate) {\n result = el.runValidate()\n }\n }\n return result\n}\n\nconst _runScrollErrorEl = () => {\n const errEl: any = refElTop.value?.querySelectorAll('[data-validate-error]')\n if (!CommonBase.isUndefined(errEl) && errEl.length && errEl.length > 0) {\n let el = errEl[0]\n const { preScroll, pElError } = props\n\n const isErrElP = !CommonBase.isEmpty(el.pElError)\n const isErrElF = !CommonBase.isEmpty(pElError)\n if (isErrElP || isErrElF) {\n const tempEL = CommonElement.getParent(el, isErrElP ? el.pElError : pElError, refElTop.value)\n if (!CommonBase.isUndefined(tempEL)) {\n el = tempEL\n }\n }\n const elOffset = CommonElement.getOffset(el, _pageData.isScrollWindow ? null : _pageData.parentScroll)\n let end = elOffset.top - 10\n if (preScroll && !CommonBase.isUndefined(preScroll)) {\n end -= preScroll\n }\n _pageData._scrollUpAnimate.start(_pageData.parentScroll.scrollTop, end, 200)\n }\n}\n\nconst _initMain = () => {\n const pScrolls = CommonElement.getParentScrollList(refElTop.value, null, false)\n _pageData.isScrollWindow = pScrolls.length === 0\n _pageData.parentScroll = _pageData.isScrollWindow ? document.documentElement : pScrolls[0].children[0]\n _pageData._scrollUpAnimate = new AnimateEasing({\n runIngCallback: (pos: any) => {\n _pageData.parentScroll.scrollTop = pos\n },\n })\n}\n\n// 生命周期\nonMounted(() => {\n nextTick(() => {\n _initMain()\n })\n})\n\n// 开放给外部使用的方法\nconst validate = (el?: any) => {\n return CommonPromise.promiseFun((resolve: any) => {\n let result = true\n if (CommonBase.isUndefined(el)) {\n optBase.isRun = true\n nextTick(() => {\n const validateEl: any = refElTop.value?.querySelectorAll('[data-validate-el]')\n if (!CommonBase.isUndefined(validateEl) && validateEl.length && validateEl.length > 0) {\n validateEl.forEach((e: any) => {\n const check = _validateEl(e)\n if (!check) {\n result = false\n }\n })\n }\n if (!result) {\n if (props.isScrollToErr) {\n nextTick(() => {\n _runScrollErrorEl()\n })\n }\n }\n resolve(result)\n })\n } else {\n result = _validateEl(el)\n resolve(result)\n }\n })\n}\n\nconst reset = () => {\n optBase.isRun = false\n refElTop.value?.removeAttribute('data-run')\n const validateEl:any = refElTop.value?.querySelectorAll('[data-validate-el]')\n if (!CommonBase.isUndefined(validateEl) && validateEl.length && validateEl.length > 0) {\n validateEl.forEach((e: any) => {\n if (e.runReset) {\n e.runReset()\n }\n })\n }\n}\n\n// 导出类型定义\nexport interface ClFormExpose {\n validate: (el?: HTMLElement) => Promise<boolean>\n reset: () => void\n}\n\n// defineExpose\ndefineExpose({\n validate,\n reset\n})\n</script>"],"names":["AnimateEasing","option","t","b","c","d","startPos","endPos","duration","easing","self","resolve","CommonBase","fnCb","pos","props","__props","refElTop","ref","optBase","reactive","_pageData","optParent","computed","temp","clsParent","clsTemp","cls","_validateEl","el","result","_runScrollErrorEl","errEl","preScroll","pElError","isErrElP","isErrElF","tempEL","CommonElement","end","_initMain","pScrolls","onMounted","nextTick","__expose","CommonPromise","validateEl","e","_openBlock","_createElementBlock","_mergeProps","_renderSlot","_ctx"],"mappings":";;;;;AACA,MAAMA,EAAc;AAAA,EAChB;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EAEA;AAAA,EAEA;AAAA,EACA;AAAA,EAEA;AAAA,EACA,YAAYC,GAAa;AACrB,SAAK,YAAY,GACjB,KAAK,WAAW,GAChB,KAAK,SAAS,GACd,KAAK,WAAW,GAChB,KAAK,YAAY,MAEjB,KAAK,YAAYA,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QAAQ,CAACC,MAAW;AAE7B,YADcnB,EAAYmB,CAAC,MAEzBjB,IAAS;AAAA,UAEb,CAAC,GAEEA,KACCf,EAAM,iBACR4B,EAAS,MAAM;AACb,YAAAZ,EAAA;AAAA,UACF,CAAC,GAGLpB,EAAQmB,CAAM;AAAA,QAChB,CAAC,MAEDA,IAASF,EAAYC,CAAE,GACvBlB,EAAQmB,CAAM;AAAA,MAElB,CAAC;AAAA,MAyBD,OAtBY,MAAM;AAClB,QAAAX,EAAQ,QAAQ,IAChBF,EAAS,OAAO,gBAAgB,UAAU;AAC1C,cAAM6B,IAAiB7B,EAAS,OAAO,iBAAiB,oBAAoB;AAC5E,QAAI,CAACL,EAAW,YAAYkC,CAAU,KAAKA,EAAW,UAAUA,EAAW,SAAS,KAClFA,EAAW,QAAQ,CAACC,MAAW;AAC7B,UAAIA,EAAE,YACJA,EAAE,SAAA;AAAA,QAEN,CAAC;AAAA,MAEL;AAAA,IAWE,CACD,cA7KCC,EAAA,GAAAC,EAEO,QAFPC,EAEO;AAAA,eAFG;AAAA,MAAJ,KAAIjC;AAAA,MAAW,cAAa;AAAA,MAAO,OAAOQ,EAAA;AAAA,IAAA,GAAmBH,EAAA,KAAS,GAAA;AAAA,MAC1E6B,EAAaC,EAAA,QAAA,SAAA;AAAA,IAAA;;;"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";const e=require("vue"),a=require("../Shared/base-iCmnU-fv.js"),m={key:0,class:"tip-must"},u={class:"control-label-text"},p=e.defineComponent({name:"ClFormGroup",__name:"Index",props:{colRatio:{type:String,default:"2:10"},className:{type:String,default:""},label:String,isTipMust:{type:Boolean,default:!1},isPlaintext:{type:Boolean,default:!1}},setup(n){const o=n,r=e.computed(()=>{const t={"form-group":!0,"form-group-plaintext":o.isPlaintext,row:!0};return a.CommonBase.isEmpty(o.className)||o.className.split(" ").forEach(l=>{a.CommonBase.isEmpty(l)||(t[l]=!0)}),t}),c=e.computed(()=>{let t="2";const l=o.colRatio.split(":");l.length>0&&(t=l[0]);const s={"control-label":!0};return s[`col-sm-${t}`]=!0,s[`col-${t}`]=!0,s}),i=e.computed(()=>{let t="10";const l=o.colRatio.split(":");l.length>1&&(t=l[1]);const s={};return s[`col-sm-${t}`]=!0,s[`col-${t}`]=!0,s});return(t,l)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(r.value)},[e.createElementVNode("div",{class:e.normalizeClass(c.value)},[e.createElementVNode("span",null,[n.isTipMust?(e.openBlock(),e.createElementBlock("span",m,"*")):e.createCommentVNode("",!0),e.createElementVNode("span",u,e.toDisplayString(n.label),1),e.renderSlot(t.$slots,"labelExtend")])],2),e.createElementVNode("div",{class:e.normalizeClass(i.value)},[e.renderSlot(t.$slots,"default")],2)],2))}});module.exports=p;
|
|
2
|
+
//# sourceMappingURL=ClFormGroup.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ClFormGroup.cjs","sources":["../../../src/libs/Element/FormGroup/Index.vue"],"sourcesContent":["<template>\n <div :class=\"clsParent\">\n <div :class=\"clsLabel\">\n <span>\n <span class=\"tip-must\" v-if=\"isTipMust\">*</span>\n <span class=\"control-label-text\">{{ label }}</span>\n <slot name=\"labelExtend\"></slot>\n </span>\n </div>\n <div :class=\"clsContent\">\n <slot></slot>\n </div>\n </div>\n</template>\n\n<script setup lang=\"ts\">\nimport { computed } from 'vue'\nimport CommonBase from '../../Common/base'\n\ndefineOptions({ name: 'ClFormGroup' })\n\nconst props = defineProps({\n colRatio: {\n type: String,\n default: '2:10'\n },\n className: {\n type: String,\n default: ''\n },\n label: String,\n isTipMust: {\n type: Boolean,\n default: false\n },\n isPlaintext: {\n type: Boolean,\n default: false\n }\n})\n\nconst clsParent = computed(() => {\n const clsTemp: Record<string, boolean> = {\n 'form-group': true,\n 'form-group-plaintext': props.isPlaintext,\n row: true\n }\n if (!CommonBase.isEmpty(props.className)) {\n props.className.split(' ').forEach((cls: string) => {\n if (!CommonBase.isEmpty(cls)) {\n clsTemp[cls] = true\n }\n })\n }\n return clsTemp\n})\n\nconst clsLabel = computed(() => {\n let r = '2'\n const temp: string[] = props.colRatio.split(':')\n if (temp.length > 0) {\n r = temp[0]\n }\n const clsTemp: Record<string, boolean> = {\n 'control-label': true\n }\n clsTemp[`col-sm-${r}`] = true\n clsTemp[`col-${r}`] = true\n return clsTemp\n})\n\nconst clsContent = computed(() => {\n let r = '10'\n const temp: string[] = props.colRatio.split(':')\n if (temp.length > 1) {\n r = temp[1]\n }\n const clsTemp: Record<string, boolean> = {}\n clsTemp[`col-sm-${r}`] = true\n clsTemp[`col-${r}`] = true\n return clsTemp\n})\n</script>\n\n<style src=\"./Index.css\"></style>\n"],"names":["props","__props","clsParent","computed","clsTemp","CommonBase","cls","clsLabel","r","temp","clsContent","_createElementBlock","_createElementVNode","_hoisted_1","_hoisted_2","_toDisplayString","_renderSlot","_ctx"],"mappings":"8WAqBA,MAAMA,EAAQC,EAoBRC,EAAYC,EAAAA,SAAS,IAAM,CAC/B,MAAMC,EAAmC,CACvC,aAAc,GACd,uBAAwBJ,EAAM,YAC9B,IAAK,EAAA,EAEP,OAAKK,EAAAA,WAAW,QAAQL,EAAM,SAAS,GACrCA,EAAM,UAAU,MAAM,GAAG,EAAE,QAASM,GAAgB,CAC7CD,EAAAA,WAAW,QAAQC,CAAG,IACzBF,EAAQE,CAAG,EAAI,GAEnB,CAAC,EAEIF,CACT,CAAC,EAEKG,EAAWJ,EAAAA,SAAS,IAAM,CAC9B,IAAIK,EAAI,IACR,MAAMC,EAAiBT,EAAM,SAAS,MAAM,GAAG,EAC3CS,EAAK,OAAS,IAChBD,EAAIC,EAAK,CAAC,GAEZ,MAAML,EAAmC,CACvC,gBAAiB,EAAA,EAEnB,OAAAA,EAAQ,UAAUI,CAAC,EAAE,EAAI,GACzBJ,EAAQ,OAAOI,CAAC,EAAE,EAAI,GACfJ,CACT,CAAC,EAEKM,EAAaP,EAAAA,SAAS,IAAM,CAChC,IAAIK,EAAI,KACR,MAAMC,EAAiBT,EAAM,SAAS,MAAM,GAAG,EAC3CS,EAAK,OAAS,IAChBD,EAAIC,EAAK,CAAC,GAEZ,MAAML,EAAmC,CAAA,EACzC,OAAAA,EAAQ,UAAUI,CAAC,EAAE,EAAI,GACzBJ,EAAQ,OAAOI,CAAC,EAAE,EAAI,GACfJ,CACT,CAAC,8BAhFCO,EAAAA,mBAWM,MAAA,CAXA,uBAAOT,EAAA,KAAS,CAAA,GACpBU,EAAAA,mBAMM,MAAA,CANA,uBAAOL,EAAA,KAAQ,CAAA,GACnBK,EAAAA,mBAIO,OAAA,KAAA,CAHwBX,EAAA,yBAA7BU,qBAAgD,OAAhDE,EAAwC,GAAC,+BACzCD,EAAAA,mBAAmD,OAAnDE,EAAmDC,EAAAA,gBAAfd,EAAA,KAAK,EAAA,CAAA,EACzCe,aAAgCC,EAAA,OAAA,aAAA,CAAA,OAGpCL,EAAAA,mBAEM,MAAA,CAFA,uBAAOF,EAAA,KAAU,CAAA,GACrBM,aAAaC,EAAA,OAAA,SAAA,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.form-horizontal .form-group{color:#616672;margin-bottom:20px;margin-right:-15px;margin-left:-15px}.form-horizontal .form-group .control-label{padding-right:5px;color:#2c3343;font-weight:400}.form-horizontal .form-group .tip-must{margin-right:3px;display:inline-block;color:red;font-weight:700}.form-horizontal .form-group .control-label{display:inline-block;margin-bottom:0;text-align:right;padding-top:7px}.form-horizontal .form-group .control-label .control-label-text{display:inline-block;vertical-align:top}.form-horizontal .form-group .box-width{width:500px}.modal-body .form-horizontal .form-group .box-width{width:300px}.modal-body .select-inDropdown .select-inDropdown-search>.panel-input-search .panel-input.box-width{width:auto}.form-horizontal .form-group.form-group-button-actions{margin-bottom:20px;padding:20px}.form-group.form-group-plaintext>.control-label{color:#848d98;font-weight:inherit}.form-group.form-group-plaintext>div{color:#2c3343;font-weight:400;padding-top:7px}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { defineComponent as g, computed as n, openBlock as c, createElementBlock as i, normalizeClass as r, createElementVNode as o, createCommentVNode as y, toDisplayString as C, renderSlot as m } from "vue";
|
|
2
|
+
import { C as p } from "../Shared/base-PQGakkrl.js";
|
|
3
|
+
const b = {
|
|
4
|
+
key: 0,
|
|
5
|
+
class: "tip-must"
|
|
6
|
+
}, h = { class: "control-label-text" }, E = /* @__PURE__ */ g({
|
|
7
|
+
name: "ClFormGroup",
|
|
8
|
+
__name: "Index",
|
|
9
|
+
props: {
|
|
10
|
+
colRatio: {
|
|
11
|
+
type: String,
|
|
12
|
+
default: "2:10"
|
|
13
|
+
},
|
|
14
|
+
className: {
|
|
15
|
+
type: String,
|
|
16
|
+
default: ""
|
|
17
|
+
},
|
|
18
|
+
label: String,
|
|
19
|
+
isTipMust: {
|
|
20
|
+
type: Boolean,
|
|
21
|
+
default: !1
|
|
22
|
+
},
|
|
23
|
+
isPlaintext: {
|
|
24
|
+
type: Boolean,
|
|
25
|
+
default: !1
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
setup(a) {
|
|
29
|
+
const s = a, u = n(() => {
|
|
30
|
+
const t = {
|
|
31
|
+
"form-group": !0,
|
|
32
|
+
"form-group-plaintext": s.isPlaintext,
|
|
33
|
+
row: !0
|
|
34
|
+
};
|
|
35
|
+
return p.isEmpty(s.className) || s.className.split(" ").forEach((e) => {
|
|
36
|
+
p.isEmpty(e) || (t[e] = !0);
|
|
37
|
+
}), t;
|
|
38
|
+
}), f = n(() => {
|
|
39
|
+
let t = "2";
|
|
40
|
+
const e = s.colRatio.split(":");
|
|
41
|
+
e.length > 0 && (t = e[0]);
|
|
42
|
+
const l = {
|
|
43
|
+
"control-label": !0
|
|
44
|
+
};
|
|
45
|
+
return l[`col-sm-${t}`] = !0, l[`col-${t}`] = !0, l;
|
|
46
|
+
}), d = n(() => {
|
|
47
|
+
let t = "10";
|
|
48
|
+
const e = s.colRatio.split(":");
|
|
49
|
+
e.length > 1 && (t = e[1]);
|
|
50
|
+
const l = {};
|
|
51
|
+
return l[`col-sm-${t}`] = !0, l[`col-${t}`] = !0, l;
|
|
52
|
+
});
|
|
53
|
+
return (t, e) => (c(), i("div", {
|
|
54
|
+
class: r(u.value)
|
|
55
|
+
}, [
|
|
56
|
+
o("div", {
|
|
57
|
+
class: r(f.value)
|
|
58
|
+
}, [
|
|
59
|
+
o("span", null, [
|
|
60
|
+
a.isTipMust ? (c(), i("span", b, "*")) : y("", !0),
|
|
61
|
+
o("span", h, C(a.label), 1),
|
|
62
|
+
m(t.$slots, "labelExtend")
|
|
63
|
+
])
|
|
64
|
+
], 2),
|
|
65
|
+
o("div", {
|
|
66
|
+
class: r(d.value)
|
|
67
|
+
}, [
|
|
68
|
+
m(t.$slots, "default")
|
|
69
|
+
], 2)
|
|
70
|
+
], 2));
|
|
71
|
+
}
|
|
72
|
+
});
|
|
73
|
+
export {
|
|
74
|
+
E as default
|
|
75
|
+
};
|
|
76
|
+
//# sourceMappingURL=ClFormGroup.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ClFormGroup.js","sources":["../../../src/libs/Element/FormGroup/Index.vue"],"sourcesContent":["<template>\n <div :class=\"clsParent\">\n <div :class=\"clsLabel\">\n <span>\n <span class=\"tip-must\" v-if=\"isTipMust\">*</span>\n <span class=\"control-label-text\">{{ label }}</span>\n <slot name=\"labelExtend\"></slot>\n </span>\n </div>\n <div :class=\"clsContent\">\n <slot></slot>\n </div>\n </div>\n</template>\n\n<script setup lang=\"ts\">\nimport { computed } from 'vue'\nimport CommonBase from '../../Common/base'\n\ndefineOptions({ name: 'ClFormGroup' })\n\nconst props = defineProps({\n colRatio: {\n type: String,\n default: '2:10'\n },\n className: {\n type: String,\n default: ''\n },\n label: String,\n isTipMust: {\n type: Boolean,\n default: false\n },\n isPlaintext: {\n type: Boolean,\n default: false\n }\n})\n\nconst clsParent = computed(() => {\n const clsTemp: Record<string, boolean> = {\n 'form-group': true,\n 'form-group-plaintext': props.isPlaintext,\n row: true\n }\n if (!CommonBase.isEmpty(props.className)) {\n props.className.split(' ').forEach((cls: string) => {\n if (!CommonBase.isEmpty(cls)) {\n clsTemp[cls] = true\n }\n })\n }\n return clsTemp\n})\n\nconst clsLabel = computed(() => {\n let r = '2'\n const temp: string[] = props.colRatio.split(':')\n if (temp.length > 0) {\n r = temp[0]\n }\n const clsTemp: Record<string, boolean> = {\n 'control-label': true\n }\n clsTemp[`col-sm-${r}`] = true\n clsTemp[`col-${r}`] = true\n return clsTemp\n})\n\nconst clsContent = computed(() => {\n let r = '10'\n const temp: string[] = props.colRatio.split(':')\n if (temp.length > 1) {\n r = temp[1]\n }\n const clsTemp: Record<string, boolean> = {}\n clsTemp[`col-sm-${r}`] = true\n clsTemp[`col-${r}`] = true\n return clsTemp\n})\n</script>\n\n<style src=\"./Index.css\"></style>\n"],"names":["props","__props","clsParent","computed","clsTemp","CommonBase","cls","clsLabel","r","temp","clsContent","_createElementBlock","_createElementVNode","_hoisted_1","_hoisted_2","_toDisplayString","_renderSlot","_ctx"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAqBA,UAAMA,IAAQC,GAoBRC,IAAYC,EAAS,MAAM;AAC/B,YAAMC,IAAmC;AAAA,QACvC,cAAc;AAAA,QACd,wBAAwBJ,EAAM;AAAA,QAC9B,KAAK;AAAA,MAAA;AAEP,aAAKK,EAAW,QAAQL,EAAM,SAAS,KACrCA,EAAM,UAAU,MAAM,GAAG,EAAE,QAAQ,CAACM,MAAgB;AAClD,QAAKD,EAAW,QAAQC,CAAG,MACzBF,EAAQE,CAAG,IAAI;AAAA,MAEnB,CAAC,GAEIF;AAAA,IACT,CAAC,GAEKG,IAAWJ,EAAS,MAAM;AAC9B,UAAIK,IAAI;AACR,YAAMC,IAAiBT,EAAM,SAAS,MAAM,GAAG;AAC/C,MAAIS,EAAK,SAAS,MAChBD,IAAIC,EAAK,CAAC;AAEZ,YAAML,IAAmC;AAAA,QACvC,iBAAiB;AAAA,MAAA;AAEnB,aAAAA,EAAQ,UAAUI,CAAC,EAAE,IAAI,IACzBJ,EAAQ,OAAOI,CAAC,EAAE,IAAI,IACfJ;AAAA,IACT,CAAC,GAEKM,IAAaP,EAAS,MAAM;AAChC,UAAIK,IAAI;AACR,YAAMC,IAAiBT,EAAM,SAAS,MAAM,GAAG;AAC/C,MAAIS,EAAK,SAAS,MAChBD,IAAIC,EAAK,CAAC;AAEZ,YAAML,IAAmC,CAAA;AACzC,aAAAA,EAAQ,UAAUI,CAAC,EAAE,IAAI,IACzBJ,EAAQ,OAAOI,CAAC,EAAE,IAAI,IACfJ;AAAA,IACT,CAAC;2BAhFCO,EAWM,OAAA;AAAA,MAXA,SAAOT,EAAA,KAAS;AAAA,IAAA;MACpBU,EAMM,OAAA;AAAA,QANA,SAAOL,EAAA,KAAQ;AAAA,MAAA;QACnBK,EAIO,QAAA,MAAA;AAAA,UAHwBX,EAAA,kBAA7BU,EAAgD,QAAhDE,GAAwC,GAAC;UACzCD,EAAmD,QAAnDE,GAAmDC,EAAfd,EAAA,KAAK,GAAA,CAAA;AAAA,UACzCe,EAAgCC,EAAA,QAAA,aAAA;AAAA,QAAA;;MAGpCL,EAEM,OAAA;AAAA,QAFA,SAAOF,EAAA,KAAU;AAAA,MAAA;QACrBM,EAAaC,EAAA,QAAA,SAAA;AAAA,MAAA;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ClIconFont.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ClIconFont.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";const o=require("vue"),n=require("../Shared/base-iCmnU-fv.js"),m={loading:"data:image/gif;base64,R0lGODlhEAAQAPQAAP///wAAAPDw8IqKiuDg4EZGRnp6egAAAFhYWCQkJKysrL6+vhQUFJycnAQEBDY2NmhoaAAAAAAA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DSlzcdzseV7w8vjbuXPnHm9vbzfBmdYa/w9EjfpsyTUyMFuRjYrbyEDUSM2WXCMDsxXZqLjnfQb+A8eWU0/QfZYsAAAAAElFTkSuQmCC",attr:{timeOutId:"data-lazy-timeout-id"}};class d{options={loading:m.loading,error:m.error,observerOptions:{rootMargin:"0px",threshold:0},log:!1,callback:{}};_images=new WeakMap;constructor(A){this.config(A)}config(A={}){this.options=n.CommonBase.getJsonMergeDeep(this.options,A)}_initValue(A,t){let e="",i=this.options.loading,s=this.options.error,r=this.options.callback,a=this.options.delay;return n.CommonBase.isObject(A)?(e=A.src,i=A.loading||this.options.loading,s=A.error||this.options.error,r=A.callback||this.options.callback,a=A.delay||this.options.delay):n.CommonBase.isString(A)?e=A:n.CommonBase.isUndefined(A)&&(e=t&&t.src||""),{src:e,loading:i,error:s,callback:r,delay:a}}mount(A,t){if(n.CommonBase.isUndefined(A))return;const e=typeof t=="string"?t:t.value,{src:i,loading:s,error:r,callback:a,delay:C}=this._initValue(e,A);this._setCallback(A,"loading",a),A.setAttribute("src",s||m.loading),this._checkIntersectionObserver()||(this._setImageSrc(A,i,r,a),this._log(()=>{throw new Error("Not support IntersectionObserver!")})),this._initIntersectionObserver(A,i,r,a,C)}update(A,t){if(n.CommonBase.isUndefined(A))return;this._realObserver(A)?.unobserve(A);const e=typeof t=="string"?t:t.value,{src:i,error:s,callback:r,delay:a}=this._initValue(e,A);this._initIntersectionObserver(A,i,s,r,a)}unmount(A){n.CommonBase.isUndefined(A)||(this._realObserver(A)?.unobserve(A),this._images.delete(A))}_setImageSrc(A,t,e,i){if(A.tagName.toLowerCase()==="img"){const s=A;n.CommonBase.isEmpty(t)?(s.onload=null,this._setCallback(s,"error",i),this._realObserver(s)?.disconnect(),e&&s.setAttribute("src",e)):(t&&s.getAttribute("src")!==t&&s.setAttribute("src",t),this.options.isCrossOrigin&&(s.crossOrigin="Anonymous"),s.onload=()=>{t&&this._setCallback(s,"loaded",i)},s.onerror=()=>{s.onload=null,this._setCallback(s,"error",i),this._realObserver(s)?.disconnect(),e&&s.getAttribute("src")!==e&&s.setAttribute("src",e),this._log(()=>{throw new Error(`Image failed to load!And failed src was: ${t} `)})})}else A.style.backgroundImage=`url('${t}')`}_setCallback(A,t,e){switch(A?.setAttribute("lazy",t),t){case"loading":e?.loading&&e.loading(A);break;case"loaded":e?.loaded&&e.loaded(A);break;case"error":e?.error&&e.error(A);break}}_realObserver(A){return this._images.get(A)}_checkIntersectionObserver(){return typeof window<"u"&&window!==null&&"IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype?("isIntersecting"in window.IntersectionObserverEntry.prototype||Object.defineProperty(window.IntersectionObserverEntry.prototype,"isIntersecting",{get(){return this.intersectionRatio>0}}),!0):!1}_initIntersectionObserver(A,t,e,i,s){const r=this.options.observerOptions;this._images.set(A,new IntersectionObserver(a=>{Array.prototype.forEach.call(a,C=>{s&&s>0?this._delayedIntersectionCallback(A,C,s,t,e,i):this._intersectionCallback(A,C,t,e,i)})},r)),this._realObserver(A)?.observe(A)}_intersectionCallback(A,t,e,i,s){t.isIntersecting&&(this._realObserver(A)?.unobserve(t.target),this._setImageSrc(A,e,i,s))}_delayedIntersectionCallback(A,t,e,i,s,r){if(t.isIntersecting){if(t.target.hasAttribute(m.attr.timeOutId))return;const a=setTimeout(()=>{this._intersectionCallback(A,t,i,s,r),t.target.removeAttribute(m.attr.timeOutId)},e);t.target.setAttribute(m.attr.timeOutId,String(a))}else t.target.hasAttribute(m.attr.timeOutId)&&(clearTimeout(Number(t.target.getAttribute(m.attr.timeOutId))),t.target.removeAttribute(m.attr.timeOutId))}_log(A){this.options.log&&A()}}const u=(l,A,t)=>{const e=new d(t);o.onMounted(()=>{o.nextTick(()=>{l.value&&e.mount(l.value,A)})}),o.onUnmounted(()=>{l.value&&e.unmount(l.value)}),o.watch(A,i=>{A.value&&l.value&&e.update(l.value,i)})},B=o.defineComponent({name:"ClImage",__name:"Index",props:{className:{},src:{},height:{},width:{},isCircle:{type:Boolean},fit:{},isCrossOrigin:{type:Boolean}},emits:["onInit"],setup(l,{emit:A}){const t=l,e=A,i=o.ref(t.src),s=o.ref(null),r=()=>{e("onInit")};u(s,i,{callback:{loaded:()=>{r()},error:()=>{r()}},isCrossOrigin:t.isCrossOrigin});const a=o.computed(()=>{const g={"panel-imageBox":!0,"imageBox-circle":t.isCircle};return t.className&&!n.CommonBase.isEmpty(t.className)&&t.className.split(" ").forEach(c=>{n.CommonBase.isEmpty(c)||(g[c]=!0)}),g}),C=o.computed(()=>{const{width:g,height:c}=t,E={};return g&&!n.CommonBase.isEmpty(g)&&(E.width=g),c&&!n.CommonBase.isEmpty(c)&&(E.height=c),E}),h=o.computed(()=>{const{width:g,height:c,fit:E}=t,I={};return E&&!n.CommonBase.isEmpty(E)&&(I["object-fit"]=E,g&&!n.CommonBase.isEmpty(g)&&(I.width=g),c&&!n.CommonBase.isEmpty(c)&&(I.height=c)),I});return o.watch(()=>t.src,g=>{i.value=g}),(g,c)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(a.value),style:o.normalizeStyle(C.value)},[o.createElementVNode("img",{ref_key:"refElImage",ref:s,alt:"",style:o.normalizeStyle(h.value)},null,4)],6))}});module.exports=B;
|
|
2
|
+
//# sourceMappingURL=ClImage.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ClImage.cjs","sources":["../../../src/libs/Element/LazyImage/lazy.ts","../../../src/libs/Element/LazyImage/use.ts","../../../src/libs/Element/Image/Index.vue"],"sourcesContent":["import CommonBase from \"../../Common/base\";\nimport { LazyOptionInfo } from \"./interfaceItem\";\nconst defOption = {\n loading: \"data:image/gif;base64,R0lGODlhEAAQAPQAAP///wAAAPDw8IqKiuDg4EZGRnp6egAAAFhYWCQkJKysrL6+vhQUFJycnAQEBDY2NmhoaAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH/C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EDUSM2WXCMDsxXZqLjnfQb+A8eWU0/QfZYsAAAAAElFTkSuQmCC\",\n attr: {\n timeOutId: \"data-lazy-timeout-id\",\n },\n isCrossOrigin: false,\n};\nclass Lazy {\n public options: LazyOptionInfo = {\n loading: defOption.loading,\n error: defOption.error,\n observerOptions: {\n rootMargin: \"0px\",\n threshold: 0,\n },\n log: false,\n callback: {},\n };\n private _images = new WeakMap();\n constructor(options?: LazyOptionInfo) {\n this.config(options);\n }\n public config(options = {}): void {\n this.options = CommonBase.getJsonMergeDeep(this.options, options);\n }\n private _initValue(value: any, el: any) {\n let src = \"\";\n let loading = this.options.loading;\n let error = this.options.error;\n let callback = this.options.callback;\n let delay = this.options.delay;\n if (CommonBase.isObject(value)) {\n src = value.src;\n loading = value.loading || this.options.loading;\n error = value.error || this.options.error;\n callback = value.callback || this.options.callback;\n delay = value.delay || this.options.delay;\n } else if (CommonBase.isString(value)) {\n src = value;\n }\n else if (CommonBase.isUndefined(value)) {\n src = el && el.src || \"\";\n }\n return {\n src,\n loading,\n error,\n callback,\n delay,\n };\n }\n public mount(el: HTMLElement, binding: any): void {\n if (CommonBase.isUndefined(el)) return;\n const value = typeof binding === \"string\" ? binding : binding.value;\n const { src, loading, error, callback, delay } = this._initValue(value, el);\n this._setCallback(el, \"loading\", callback);\n el.setAttribute(\"src\", loading || defOption.loading);\n if (!this._checkIntersectionObserver()) {\n this._setImageSrc(el, src, error, callback);\n this._log(() => {\n throw new Error(\"Not support IntersectionObserver!\");\n });\n }\n this._initIntersectionObserver(el, src, error, callback, delay);\n }\n public update(el: HTMLElement, binding: any): void {\n if (CommonBase.isUndefined(el)) return;\n this._realObserver(el)?.unobserve(el);\n const value = typeof binding === \"string\" ? binding : binding.value;\n const { src, error, callback, delay } = this._initValue(value, el);\n this._initIntersectionObserver(el, src, error, callback, delay);\n }\n public unmount(el: HTMLElement): void {\n if (CommonBase.isUndefined(el)) return;\n this._realObserver(el)?.unobserve(el);\n this._images.delete(el);\n }\n\n private _setImageSrc(el: HTMLElement, src: string, error?: string, callback?: any): void {\n if (el.tagName.toLowerCase() === \"img\") {\n const elImage = el as HTMLImageElement;\n if (CommonBase.isEmpty(src)) {\n\n elImage.onload = null;\n this._setCallback(elImage, \"error\", callback);\n this._realObserver(elImage)?.disconnect();\n if (error) {\n elImage.setAttribute(\"src\", error);\n }\n } else {\n if (src) {\n const preSrc = elImage.getAttribute(\"src\");\n if (preSrc !== src) elImage.setAttribute(\"src\", src);\n }\n if (this.options.isCrossOrigin) {\n elImage.crossOrigin = \"Anonymous\";\n }\n elImage.onload = () => {\n if (src) {\n this._setCallback(elImage, \"loaded\", callback);\n }\n };\n elImage.onerror = () => {\n // Fix onload trigger twice, clear onload event\n // Reload on update\n elImage.onload = null;\n this._setCallback(elImage, \"error\", callback);\n this._realObserver(elImage)?.disconnect();\n if (error) {\n const newImageSrc = elImage.getAttribute(\"src\");\n if (newImageSrc !== error) elImage.setAttribute(\"src\", error);\n }\n this._log(() => { throw new Error(`Image failed to load!And failed src was: ${src} `); });\n };\n }\n }\n else {\n el.style.backgroundImage = `url('${src}')`;\n }\n }\n private _setCallback(el: HTMLElement, type: string, callback?: any): void {\n el?.setAttribute(\"lazy\", type);\n switch (type) {\n case \"loading\":\n if (callback?.loading) callback.loading(el);\n break;\n case \"loaded\":\n if (callback?.loaded) callback.loaded(el);\n break;\n case \"error\":\n if (callback?.error) callback.error(el);\n break;\n default:\n break;\n }\n }\n private _realObserver(el: HTMLElement) {\n return this._images.get(el);\n }\n private _checkIntersectionObserver(): boolean {\n const inBrowser = typeof window !== \"undefined\" && window !== null;\n if (inBrowser\n && \"IntersectionObserver\" in window\n && \"IntersectionObserverEntry\" in window\n && \"intersectionRatio\" in window.IntersectionObserverEntry.prototype) {\n if (!(\"isIntersecting\" in window.IntersectionObserverEntry.prototype)) {\n Object.defineProperty(window.IntersectionObserverEntry.prototype,\n \"isIntersecting\", {\n get() {\n return this.intersectionRatio > 0;\n },\n });\n }\n return true;\n }\n return false;\n }\n private _initIntersectionObserver(el: HTMLElement, src: string, error?: string, callback?: any, delay?: number): void {\n const observerOptions = this.options.observerOptions;\n this._images.set(el, new IntersectionObserver((entries) => {\n Array.prototype.forEach.call(entries, (entry) => {\n if (delay && delay > 0)\n this._delayedIntersectionCallback(el, entry, delay, src, error, callback);\n else\n this._intersectionCallback(el, entry, src, error, callback);\n });\n }, observerOptions));\n this._realObserver(el)?.observe(el);\n }\n private _intersectionCallback(el: HTMLElement, entry: IntersectionObserverEntry, src: string, error?: string, callback?: any): void {\n if (entry.isIntersecting) {\n this._realObserver(el)?.unobserve(entry.target);\n this._setImageSrc(el, src, error, callback);\n }\n }\n\n private _delayedIntersectionCallback(el: HTMLElement, entry: IntersectionObserverEntry, delay: number, src: string, error?: string, callback?: any): void {\n if (entry.isIntersecting) {\n if (entry.target.hasAttribute(defOption.attr.timeOutId))\n return;\n\n const timeoutId = setTimeout(() => {\n this._intersectionCallback(el, entry, src, error, callback);\n entry.target.removeAttribute(defOption.attr.timeOutId);\n }, delay);\n entry.target.setAttribute(defOption.attr.timeOutId, String(timeoutId));\n }\n else {\n if (entry.target.hasAttribute(defOption.attr.timeOutId)) {\n clearTimeout(Number(entry.target.getAttribute(defOption.attr.timeOutId)));\n entry.target.removeAttribute(defOption.attr.timeOutId);\n }\n }\n }\n private _log(callback: () => void): void {\n if (this.options.log) callback();\n\n }\n}\nexport default Lazy;","import { onMounted, onUnmounted, nextTick, watch, Ref } from \"vue\";\nimport Lazy from \"./lazy\";\nimport { LazyOptionInfo } from \"./interfaceItem\";\n\nexport const useLazyload = (refEl: Ref<HTMLElement | null>, src: Ref<string>, options?: LazyOptionInfo) => {\n const lazy = new Lazy(options);\n onMounted(() => {\n nextTick(() => {\n if (refEl.value) {\n lazy.mount(refEl.value, src);\n }\n });\n });\n onUnmounted(() => {\n if (refEl.value) {\n lazy.unmount(refEl.value);\n }\n });\n watch(src, (newVal: string) => {\n if (src.value && refEl.value) {\n lazy.update(refEl.value, newVal);\n }\n });\n};","<template>\n <div\n :class=\"clsParent\"\n :style=\"styParent\"\n >\n <img\n ref=\"refElImage\"\n alt=\"\"\n :style=\"styImg\"\n >\n </div>\n</template>\n\n<script setup lang=\"ts\">\nimport './Index.css'\nimport { ref, computed, watch } from 'vue'\nimport CommonBase from '../../Common/base'\nimport { useLazyload } from '../LazyImage/use'\n\n// defineOptions\ndefineOptions({\n name: 'ClImage'\n})\n\n// props\nconst props = defineProps<{\n className?: string\n src: string\n height?: string\n width?: string\n isCircle?: boolean\n fit?: string\n isCrossOrigin?: boolean\n}>()\n\n// emit\nconst emit = defineEmits<{\n (e: 'onInit'): void\n}>()\n\n// 常量 / 变量定义\nconst optSrcUrl = ref(props.src)\nconst refElImage = ref<HTMLImageElement | null>(null)\n\n// 内部调用方法\nconst _emitInit = () => {\n emit('onInit')\n}\n\nuseLazyload(refElImage, optSrcUrl, {\n callback: {\n loaded: () => {\n _emitInit()\n },\n error: () => {\n _emitInit()\n },\n },\n isCrossOrigin: props.isCrossOrigin,\n})\n\n// computed\nconst clsParent = computed(() => {\n const cls: any = {\n 'panel-imageBox': true,\n 'imageBox-circle': props.isCircle,\n }\n if (props.className && !CommonBase.isEmpty(props.className)) {\n props.className.split(' ').forEach((c) => {\n if (!CommonBase.isEmpty(c)) {\n cls[c] = true\n }\n })\n }\n return cls\n})\n\nconst styParent = computed(() => {\n const { width, height } = props\n const sty: any = {}\n if (width && !CommonBase.isEmpty(width)) {\n sty.width = width\n }\n if (height && !CommonBase.isEmpty(height)) {\n sty.height = height\n }\n return sty\n})\n\nconst styImg = computed(() => {\n const { width, height, fit } = props\n const sty: any = {}\n if (fit && !CommonBase.isEmpty(fit)) {\n sty['object-fit'] = fit\n if (width && !CommonBase.isEmpty(width)) {\n sty.width = width\n }\n if (height && !CommonBase.isEmpty(height)) {\n sty.height = height\n }\n }\n return sty\n})\n\n// watch\nwatch(\n () => props.src,\n (newValue) => {\n optSrcUrl.value = newValue\n },\n)\n\n</script>"],"names":["defOption","Lazy","options","CommonBase","value","el","src","loading","error","callback","delay","binding","elImage","type","observerOptions","entries","entry","timeoutId","useLazyload","refEl","lazy","onMounted","nextTick","onUnmounted","watch","newVal","props","__props","emit","__emit","optSrcUrl","ref","refElImage","_emitInit","clsParent","computed","cls","styParent","width","height","sty","styImg","fit","newValue","_createElementBlock","_createElementVNode"],"mappings":"4EAEMA,EAAY,CACd,QAAS,67EACT,MAAO,6gEACP,KAAM,CACF,UAAW,sBAAA,CAGnB,EACA,MAAMC,CAAK,CACA,QAA0B,CAC7B,QAASD,EAAU,QACnB,MAAOA,EAAU,MACjB,gBAAiB,CACb,WAAY,MACZ,UAAW,CAAA,EAEf,IAAK,GACL,SAAU,CAAA,CAAC,EAEP,YAAc,QACtB,YAAYE,EAA0B,CAClC,KAAK,OAAOA,CAAO,CACvB,CACO,OAAOA,EAAU,GAAU,CAC9B,KAAK,QAAUC,EAAAA,WAAW,iBAAiB,KAAK,QAASD,CAAO,CACpE,CACQ,WAAWE,EAAYC,EAAS,CACpC,IAAIC,EAAM,GACNC,EAAU,KAAK,QAAQ,QACvBC,EAAQ,KAAK,QAAQ,MACrBC,EAAW,KAAK,QAAQ,SACxBC,EAAQ,KAAK,QAAQ,MACzB,OAAIP,EAAAA,WAAW,SAASC,CAAK,GACzBE,EAAMF,EAAM,IACZG,EAAUH,EAAM,SAAW,KAAK,QAAQ,QACxCI,EAAQJ,EAAM,OAAS,KAAK,QAAQ,MACpCK,EAAWL,EAAM,UAAY,KAAK,QAAQ,SAC1CM,EAAQN,EAAM,OAAS,KAAK,QAAQ,OAC7BD,EAAAA,WAAW,SAASC,CAAK,EAChCE,EAAMF,EAEDD,EAAAA,WAAW,YAAYC,CAAK,IACjCE,EAAMD,GAAMA,EAAG,KAAO,IAEnB,CACH,IAAAC,EACA,QAAAC,EACA,MAAAC,EACA,SAAAC,EACA,MAAAC,CAAA,CAER,CACO,MAAML,EAAiBM,EAAoB,CAC9C,GAAIR,EAAAA,WAAW,YAAYE,CAAE,EAAG,O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EAAQ,IAAAG,CAAA,EAAQhB,EACzBc,EAAW,CAAA,EACjB,OAAIE,GAAO,CAACvC,EAAAA,WAAW,QAAQuC,CAAG,IAChCF,EAAI,YAAY,EAAIE,EAChBJ,GAAS,CAACnC,EAAAA,WAAW,QAAQmC,CAAK,IACpCE,EAAI,MAAQF,GAEVC,GAAU,CAACpC,EAAAA,WAAW,QAAQoC,CAAM,IACtCC,EAAI,OAASD,IAGVC,CACT,CAAC,EAGDhB,OAAAA,EAAAA,MACE,IAAME,EAAM,IACXiB,GAAa,CACZb,EAAU,MAAQa,CACpB,CAAA,wBA5GEC,EAAAA,mBASM,MAAA,CARD,uBAAOV,EAAA,KAAS,EAChB,uBAAOG,EAAA,KAAS,CAAA,GAEjBQ,EAAAA,mBAIC,MAAA,SAHO,aAAJ,IAAIb,EACJ,IAAI,GACH,uBAAOS,EAAA,KAAM,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.panel-imageBox{position:relative;display:flex;flex-direction:row;align-items:center;justify-content:center;cursor:default}.panel-imageBox>img{max-height:100%;max-width:100%}.panel-imageBox.imageBox-circle>img{border-radius:50%}.panel-imageBox>img[lazy=loading]{height:auto!important;width:auto!important}.panel-imageBox>img[lazy=error]{height:auto!important;width:auto!important}
|