@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 @@
|
|
|
1
|
+
{"version":3,"file":"Index.vue_vue_type_script_setup_true_lang-C4XFCLbD.js","sources":["../../../src/libs/Element/Link/Index.vue"],"sourcesContent":["<template>\n <template v-if=\"url && optIsLink\">\n <span\n v-if=\"disabled\"\n :class=\"clsParent\"\n >\n <slot></slot>\n </span>\n <template v-else>\n <a\n v-if=\"isOutside\"\n :class=\"clsParent\"\n :href=\"url.toString()\"\n :target=\"isTargetBlank ? '_blank' : ''\"\n @click=\"onClick\"\n @mouseenter=\"onHoverIn\"\n @mouseleave=\"onHoverOut\"\n >\n <span>\n <slot></slot>\n </span>\n </a>\n <template v-else>\n <a\n v-if=\"isTargetBlank\"\n :class=\"clsParent\"\n :href=\"url.toString()\"\n target=\"_blank\"\n @click.stop=\"onClick\"\n @mouseenter=\"onHoverIn\"\n @mouseleave=\"onHoverOut\"\n >\n <span>\n <slot></slot>\n </span>\n </a>\n <router-link\n v-else\n :class=\"clsParent\"\n :to=\"url\"\n @click.stop=\"onClick\"\n >\n <span\n @mouseenter=\"onHoverIn\"\n @mouseleave=\"onHoverOut\"\n >\n <slot></slot>\n </span>\n </router-link>\n </template>\n </template>\n </template>\n <a\n v-else\n :class=\"clsParent\"\n href=\"javascript:\"\n @click=\"onClick\"\n @mouseenter=\"onHoverIn\"\n @mouseleave=\"onHoverOut\"\n >\n <span>\n <slot></slot>\n </span>\n </a>\n</template>\n\n<script setup lang=\"ts\">\nimport './Index.css'\nimport { computed } from 'vue'\nimport CommonBase from '../../Common/base'\n\n// defineOptions\ndefineOptions({ name: 'ClLink' })\n\n// props\nconst props = defineProps({\n wavesColor: {\n type: String,\n default: 'black',\n validator: (value: string) => {\n return ['black', 'white'].indexOf(value) !== -1\n }\n },\n url: {\n type: [String, Object],\n default: ''\n },\n className: {\n type: String,\n default: ''\n },\n disabled: {\n type: Boolean,\n default: false\n },\n isUnderline: {\n type: Boolean,\n default: false\n },\n isLight: {\n type: Boolean,\n default: false\n },\n isWaves: {\n type: Boolean,\n default: false\n },\n isTargetBlank: {\n type: Boolean,\n default: false\n },\n isOutside: {\n type: Boolean,\n default: false\n },\n isStopPropagation: {\n type: Boolean,\n default: false\n },\n})\n\n// emit\nconst emit = defineEmits<{\n (e: 'onClick', event: any): void\n (e: 'onHoverIn', event: any): void\n (e: 'onHoverOut', event: any): void\n}>()\n\n// computed\nconst optIsLink = computed(() => {\n return !CommonBase.isEmpty(props.url)\n})\n\nconst clsParent = computed(() => {\n const clsTemp: any = {\n 'btn-link': true,\n 'btn-link-disabled': props.disabled,\n 'always-light': props.isLight,\n 'underline-none': !props.isUnderline,\n }\n if (!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// emit 外部使用的事件\nconst _emitClick = (event: any) => {\n emit('onClick', event)\n}\n\nconst _emitHoverIn = (event: any) => {\n emit('onHoverIn', event)\n}\n\nconst _emitHoverOut = (event: any) => {\n emit('onHoverOut', event)\n}\n\n// 内部触发的事件 on\nconst onClick = (event: any) => {\n if (!props.disabled) {\n _emitClick(event)\n if (props.isStopPropagation) {\n event.preventDefault()\n event.stopPropagation()\n }\n }\n}\n\nconst onHoverIn = (event: any) => {\n if (!props.disabled) {\n _emitHoverIn(event)\n }\n}\n\nconst onHoverOut = (event: any) => {\n if (!props.disabled) {\n _emitHoverOut(event)\n }\n}\n</script>\n"],"names":["props","__props","emit","__emit","optIsLink","computed","CommonBase","clsParent","clsTemp","cls","_emitClick","event","_emitHoverIn","_emitHoverOut","onClick","onHoverIn","onHoverOut","_createElementBlock","_Fragment","_renderSlot","_ctx","_createElementVNode","_createBlock","_component_router_link"],"mappings":"goBA2EA,MAAMA,EAAQC,EA+CRC,EAAOC,EAOPC,EAAYC,EAAAA,SAAS,IAClB,CAACC,EAAAA,WAAW,QAAQN,EAAM,GAAG,CACrC,EAEKO,EAAYF,EAAAA,SAAS,IAAM,CAC/B,MAAMG,EAAe,CACnB,WAAY,GACZ,oBAAqBR,EAAM,SAC3B,eAAgBA,EAAM,QACtB,iBAAkB,CAACA,EAAM,WAAA,EAE3B,OAAKM,EAAAA,WAAW,QAAQN,EAAM,SAAS,GACrCA,EAAM,WAAW,MAAM,GAAG,EAAE,QAASS,GAAQ,CACtCH,EAAAA,WAAW,QAAQG,CAAG,IACzBD,EAAQC,CAAG,EAAI,GAEnB,CAAC,EAEID,CACT,CAAC,EAGKE,EAAcC,GAAe,CACjCT,EAAK,UAAWS,CAAK,CACvB,EAEMC,EAAgBD,GAAe,CACnCT,EAAK,YAAaS,CAAK,CACzB,EAEME,EAAiBF,GAAe,CACpCT,EAAK,aAAcS,CAAK,CAC1B,EAGMG,EAAWH,GAAe,CACzBX,EAAM,WACTU,EAAWC,CAAK,EACZX,EAAM,oBACRW,EAAM,eAAA,EACNA,EAAM,gBAAA,GAGZ,EAEMI,EAAaJ,GAAe,CAC3BX,EAAM,UACTY,EAAaD,CAAK,CAEtB,EAEMK,EAAcL,GAAe,CAC5BX,EAAM,UACTa,EAAcF,CAAK,CAEvB,0DAvLkB,OAAAV,EAAA,KAAOG,EAAA,qBAAvBa,EAAAA,mBAkDWC,EAAAA,SAAA,CAAA,IAAA,CAAA,EAAA,CAhDDjB,EAAA,wBADRgB,EAAAA,mBAKO,OAAA,OAHJ,uBAAOV,EAAA,KAAS,CAAA,GAEjBY,aAAaC,EAAA,OAAA,SAAA,CAAA,qBAEfH,EAAAA,mBA0CWC,EAAAA,SAAA,CAAA,IAAA,GAAA,CAxCDjB,EAAA,yBADRgB,EAAAA,mBAYI,IAAA,OAVD,uBAAOV,EAAA,KAAS,EAChB,KAAMN,EAAA,IAAI,SAAA,EACV,OAAQA,EAAA,cAAa,SAAA,GACrB,QAAAa,EACA,aAAYC,EACZ,aAAYC,CAAA,GAEbK,EAAAA,mBAEO,OAAA,KAAA,CADLF,aAAaC,EAAA,OAAA,SAAA,CAAA,0BAGjBH,EAAAA,mBA2BWC,WAAA,CAAA,IAAA,GAAA,CAzBDjB,EAAA,6BADRgB,EAAAA,mBAYI,IAAA,OAVD,uBAAOV,EAAA,KAAS,EAChB,KAAMN,EAAA,IAAI,SAAA,EACX,OAAO,SACN,wBAAYa,EAAO,CAAA,MAAA,CAAA,EACnB,aAAYC,EACZ,aAAYC,CAAA,GAEbK,EAAAA,mBAEO,OAAA,KAAA,CADLF,aAAaC,EAAA,OAAA,SAAA,CAAA,0BAGjBE,EAAAA,YAYcC,EAAA,OAVX,uBAAOhB,EAAA,KAAS,EAChB,GAAIN,EAAA,IACJ,wBAAYa,EAAO,CAAA,MAAA,CAAA,CAAA,qBAEpB,IAKO,CALPO,EAAAA,mBAKO,OAAA,CAJJ,aAAYN,EACZ,aAAYC,CAAA,GAEbG,aAAaC,EAAA,OAAA,SAAA,CAAA,iEAMvBH,EAAAA,mBAWI,IAAA,OATD,uBAAOV,EAAA,KAAS,EACjB,KAAK,cACJ,QAAAO,EACA,aAAYC,EACZ,aAAYC,CAAA,GAEbK,EAAAA,mBAEO,OAAA,KAAA,CADLF,aAAaC,EAAA,OAAA,SAAA,CAAA"}
|
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
import { defineComponent as H, ref as y, reactive as A, computed as $, watch as D, onMounted as M, nextTick as k, openBlock as c, createElementBlock as r, normalizeClass as w, renderSlot as N, createCommentVNode as h, Fragment as z, renderList as J, withModifiers as P, normalizeStyle as V, toDisplayString as K } from "vue";
|
|
2
|
+
import { C as n } from "./base-PQGakkrl.js";
|
|
3
|
+
const j = ["onClick"], q = ["innerHTML"], G = { key: 1 }, O = ["onClick"], Z = /* @__PURE__ */ H({
|
|
4
|
+
name: "ClTags",
|
|
5
|
+
__name: "Index",
|
|
6
|
+
props: {
|
|
7
|
+
className: String,
|
|
8
|
+
list: {
|
|
9
|
+
type: Array,
|
|
10
|
+
default: () => []
|
|
11
|
+
},
|
|
12
|
+
disabled: {
|
|
13
|
+
type: Boolean,
|
|
14
|
+
default: !1
|
|
15
|
+
},
|
|
16
|
+
isRemove: {
|
|
17
|
+
type: Boolean,
|
|
18
|
+
default: !0
|
|
19
|
+
},
|
|
20
|
+
showTextFormat: String,
|
|
21
|
+
// "${id} ${name}"
|
|
22
|
+
isRemoveAll: {
|
|
23
|
+
type: Boolean,
|
|
24
|
+
default: !1
|
|
25
|
+
},
|
|
26
|
+
theme: {
|
|
27
|
+
type: String,
|
|
28
|
+
default: "default"
|
|
29
|
+
// default | code
|
|
30
|
+
},
|
|
31
|
+
isFormatHtml: {
|
|
32
|
+
type: Boolean,
|
|
33
|
+
default: !1
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
emits: ["onRemove", "onClickTag"],
|
|
37
|
+
setup(u, { expose: C, emit: I }) {
|
|
38
|
+
const a = u, d = I, S = `tag-${n.getRandom(8)}`, v = y(a.disabled), o = y([]), l = A({
|
|
39
|
+
status: 0,
|
|
40
|
+
// 1:初始,2:过渡中 0:结束
|
|
41
|
+
startColor: "#FFFF80",
|
|
42
|
+
endColor: "rgba(0, 0, 0, 0)",
|
|
43
|
+
hID: ""
|
|
44
|
+
}), T = $(() => {
|
|
45
|
+
const { className: e, theme: s } = a, t = {
|
|
46
|
+
"panel-tags": !0
|
|
47
|
+
};
|
|
48
|
+
return s !== "default" && (t[`tags-${s}`] = !0), a.isRemoveAll && o.value.length > 0 && (t["tags-region"] = !0), n.isEmpty(e) || e.split(" ").forEach((i) => {
|
|
49
|
+
n.isEmpty(i) || (t[i] = !0);
|
|
50
|
+
}), t;
|
|
51
|
+
}), F = (e) => {
|
|
52
|
+
const { theme: s } = a;
|
|
53
|
+
let t = {};
|
|
54
|
+
return s === "default" ? (t = {
|
|
55
|
+
tag: !0,
|
|
56
|
+
"tag-disabled": e.isShowDisabled,
|
|
57
|
+
"tag-remove": a.isRemove && !e.isShowDisabled
|
|
58
|
+
}, t["tag-hlight"] = e.id.toString() === l.hID && l.status === 2) : s === "code" && (t["tag-code"] = !0), t;
|
|
59
|
+
}, R = (e) => {
|
|
60
|
+
const s = {};
|
|
61
|
+
if (e.id.toString() === l.hID)
|
|
62
|
+
switch (l.status) {
|
|
63
|
+
case 1:
|
|
64
|
+
s["background-color"] = l.startColor;
|
|
65
|
+
break;
|
|
66
|
+
case 2:
|
|
67
|
+
s["background-color"] = l.endColor;
|
|
68
|
+
break;
|
|
69
|
+
}
|
|
70
|
+
return s;
|
|
71
|
+
}, p = (e) => n.isEmpty(a.showTextFormat) ? e.name : n.convertStringFormat(a.showTextFormat, e), b = (e) => {
|
|
72
|
+
const s = v.value;
|
|
73
|
+
let t = !1;
|
|
74
|
+
s ? t = !0 : t = n.isBoolean(e.isDisabled) ? e.isDisabled : !1, e.isShowDisabled = t;
|
|
75
|
+
}, m = (e) => {
|
|
76
|
+
const s = [];
|
|
77
|
+
return e.forEach((t) => {
|
|
78
|
+
const i = n.getJsonClone(t);
|
|
79
|
+
b(i), s.push(i);
|
|
80
|
+
}), s;
|
|
81
|
+
}, f = (e) => {
|
|
82
|
+
v.value = e;
|
|
83
|
+
const s = m(o.value);
|
|
84
|
+
o.value = s;
|
|
85
|
+
}, L = (e) => {
|
|
86
|
+
l.hID = e.toString(), l.status = 1, k(() => {
|
|
87
|
+
setTimeout(() => {
|
|
88
|
+
l.status = 2;
|
|
89
|
+
}, 10), setTimeout(() => {
|
|
90
|
+
l.status = 0, l.hID = "";
|
|
91
|
+
}, 1500);
|
|
92
|
+
});
|
|
93
|
+
}, _ = () => {
|
|
94
|
+
const e = m(a.list);
|
|
95
|
+
o.value = e;
|
|
96
|
+
};
|
|
97
|
+
D(
|
|
98
|
+
() => a.disabled,
|
|
99
|
+
(e) => {
|
|
100
|
+
f(e);
|
|
101
|
+
}
|
|
102
|
+
), D(
|
|
103
|
+
() => a.list,
|
|
104
|
+
(e) => {
|
|
105
|
+
const s = m(e);
|
|
106
|
+
o.value = s;
|
|
107
|
+
},
|
|
108
|
+
{ deep: !0 }
|
|
109
|
+
), M(() => {
|
|
110
|
+
k(() => {
|
|
111
|
+
_();
|
|
112
|
+
});
|
|
113
|
+
});
|
|
114
|
+
const x = (e, s) => {
|
|
115
|
+
d("onClickTag", s);
|
|
116
|
+
}, B = (e, s, t) => {
|
|
117
|
+
e.preventDefault(), e.stopPropagation(), a.isRemove && !s.isShowDisabled && (o.value.splice(t, 1), d("onRemove", s.id.toString()));
|
|
118
|
+
}, E = () => {
|
|
119
|
+
o.value = [], d("onRemove", "");
|
|
120
|
+
};
|
|
121
|
+
return C({
|
|
122
|
+
setDisabled: (e = !0) => {
|
|
123
|
+
f(e);
|
|
124
|
+
},
|
|
125
|
+
addInfo: (e) => {
|
|
126
|
+
const s = n.getListExistValue(o.value, e.name, "name");
|
|
127
|
+
if (n.isEmpty(s)) {
|
|
128
|
+
const t = n.getJsonClone(e);
|
|
129
|
+
b(t), o.value.push(t);
|
|
130
|
+
} else
|
|
131
|
+
L(s.info.id);
|
|
132
|
+
},
|
|
133
|
+
getData: () => o.value
|
|
134
|
+
}), (e, s) => (c(), r("div", {
|
|
135
|
+
class: w(T.value)
|
|
136
|
+
}, [
|
|
137
|
+
o.value.length > 0 ? N(e.$slots, "head", { key: 0 }) : h("", !0),
|
|
138
|
+
(c(!0), r(z, null, J(o.value, (t, i) => (c(), r("span", {
|
|
139
|
+
key: `${S}-list-${i}-${t.id}`,
|
|
140
|
+
class: w(F(t)),
|
|
141
|
+
style: V(R(t)),
|
|
142
|
+
onClick: P((g) => x(g, t), ["stop"])
|
|
143
|
+
}, [
|
|
144
|
+
t.isHtml || u.isFormatHtml ? (c(), r("span", {
|
|
145
|
+
key: 0,
|
|
146
|
+
innerHTML: p(t)
|
|
147
|
+
}, null, 8, q)) : (c(), r("span", G, K(p(t)), 1)),
|
|
148
|
+
u.isRemove && !t.isShowDisabled ? (c(), r("i", {
|
|
149
|
+
key: 2,
|
|
150
|
+
class: "tag-close clIconFont clIcon-close",
|
|
151
|
+
onClick: (g) => B(g, t, i)
|
|
152
|
+
}, null, 8, O)) : h("", !0)
|
|
153
|
+
], 14, j))), 128)),
|
|
154
|
+
u.isRemoveAll && o.value.length > 0 && !u.disabled ? (c(), r("i", {
|
|
155
|
+
key: 1,
|
|
156
|
+
class: "tag-closeAll clIconFont clIcon-close",
|
|
157
|
+
onClick: E
|
|
158
|
+
})) : h("", !0)
|
|
159
|
+
], 2));
|
|
160
|
+
}
|
|
161
|
+
});
|
|
162
|
+
export {
|
|
163
|
+
Z as _
|
|
164
|
+
};
|
|
165
|
+
//# sourceMappingURL=Index.vue_vue_type_script_setup_true_lang-C4rRquU-.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Index.vue_vue_type_script_setup_true_lang-C4rRquU-.js","sources":["../../../src/libs/Element/Tags/Index.vue"],"sourcesContent":["<template>\n <div :class=\"clsParent\">\n <template v-if=\"optNewList.length > 0\">\n <slot name=\"head\"></slot>\n </template>\n <span\n v-for=\"(info, inx) in optNewList\"\n :key=\"`${optKeyIndex}-list-${inx}-${info.id}`\"\n :class=\"clsTag(info)\"\n :style=\"styTag(info)\"\n @click.stop=\"onClickTag($event, info)\"\n >\n <span v-if=\"info.isHtml || isFormatHtml\" v-html=\"optFunShowTextLabel(info)\"></span>\n <span v-else>{{ optFunShowTextLabel(info) }}</span>\n <i\n v-if=\"isRemove && !info.isShowDisabled\"\n class=\"tag-close clIconFont clIcon-close\"\n @click=\"onRemoveItem($event, info, inx)\"\n ></i>\n </span>\n <i\n v-if=\"isRemoveAll && optNewList.length > 0 && !disabled\"\n class=\"tag-closeAll clIconFont clIcon-close\"\n @click=\"onRemoveAll\"\n ></i>\n </div>\n</template>\n\n<script setup lang=\"ts\">\nimport { ref, reactive, computed, watch, onMounted, nextTick } from 'vue'\nimport CommonBase from '../../Common/base'\nimport './Index.css'\n\ndefineOptions({ name: 'ClTags' })\n\nconst props = defineProps({\n className: String,\n\n list: {\n type: Array,\n default: () => []\n },\n disabled: {\n type: Boolean,\n default: false\n },\n isRemove: {\n type: Boolean,\n default: true\n },\n showTextFormat: String, // \"${id} ${name}\"\n isRemoveAll: {\n type: Boolean,\n default: false\n },\n theme: {\n type: String,\n default: 'default' // default | code\n },\n isFormatHtml: {\n type: Boolean,\n default: false\n }\n})\n\nconst emit = defineEmits(['onRemove', 'onClickTag'])\n\nconst optKeyIndex = `tag-${CommonBase.getRandom(8)}`\nconst optIsShowDisabled = ref(props.disabled)\nconst optNewList = ref<any[]>([])\n\nconst optHlight = reactive({\n status: 0, // 1:初始,2:过渡中 0:结束\n startColor: '#FFFF80',\n endColor: 'rgba(0, 0, 0, 0)',\n hID: ''\n})\n\nconst clsParent = computed(() => {\n const { className, theme } = props\n const cls: Record<string, boolean> = {\n 'panel-tags': true\n }\n if (theme !== 'default') {\n cls[`tags-${theme}`] = true\n }\n if (props.isRemoveAll && optNewList.value.length > 0) {\n cls['tags-region'] = true\n }\n if (!CommonBase.isEmpty(className)) {\n className!.split(' ').forEach((c: string) => {\n if (!CommonBase.isEmpty(c)) {\n cls[c] = true\n }\n })\n }\n return cls\n})\n\nconst clsTag = (info: any) => {\n const { theme } = props\n let cls: Record<string, boolean> = {}\n if (theme === 'default') {\n cls = {\n tag: true,\n 'tag-disabled': info.isShowDisabled,\n 'tag-remove': props.isRemove && !info.isShowDisabled\n }\n cls['tag-hlight'] = info.id.toString() === optHlight.hID && optHlight.status === 2\n } else if (theme === 'code') {\n cls['tag-code'] = true\n }\n return cls\n}\n\nconst styTag = (info: any) => {\n const sty: Record<string, string | undefined> = {}\n if (info.id.toString() === optHlight.hID) {\n switch (optHlight.status) {\n case 1:\n sty['background-color'] = optHlight.startColor\n break\n case 2:\n sty['background-color'] = optHlight.endColor\n break\n case 0:\n break\n }\n }\n return sty\n}\n\nconst optFunShowTextLabel = (info: any) => {\n return CommonBase.isEmpty(props.showTextFormat)\n ? info.name\n : CommonBase.convertStringFormat(props.showTextFormat as string, info)\n}\n\n// 内部方法\nconst _convertListInfoDisabled = (item: any) => {\n const disabled = optIsShowDisabled.value\n let isItemDisabled = false\n if (disabled) {\n isItemDisabled = true\n } else {\n isItemDisabled = CommonBase.isBoolean(item.isDisabled) ? item.isDisabled : false\n }\n item.isShowDisabled = isItemDisabled\n}\n\nconst _convertList = (list: any[]) => {\n const newList: any[] = []\n list.forEach((item: any) => {\n const newItem = CommonBase.getJsonClone(item)\n _convertListInfoDisabled(newItem)\n newList.push(newItem)\n })\n return newList\n}\n\nconst _changeDisabled = (isDisabled: boolean) => {\n optIsShowDisabled.value = isDisabled\n const newList = _convertList(optNewList.value)\n optNewList.value = newList\n}\n\nconst _bindHlight = (id: any) => {\n optHlight.hID = id.toString()\n optHlight.status = 1\n nextTick(() => {\n setTimeout(() => {\n optHlight.status = 2\n }, 10)\n setTimeout(() => {\n optHlight.status = 0\n optHlight.hID = ''\n }, 1500)\n })\n}\n\nconst _initMain = () => {\n const newList = _convertList(props.list)\n optNewList.value = newList\n}\n\n// watch\nwatch(\n () => props.disabled,\n (newValue: boolean) => {\n _changeDisabled(newValue)\n }\n)\n\nwatch(\n () => props.list,\n (newValue: any[]) => {\n const newList = _convertList(newValue)\n optNewList.value = newList\n },\n { deep: true }\n)\n\n// 生命周期\nonMounted(() => {\n nextTick(() => {\n _initMain()\n })\n})\n\n// 事件\nconst onClickTag = (_event: MouseEvent, info: any) => {\n emit('onClickTag', info)\n}\n\nconst onRemoveItem = (event: MouseEvent, info: any, inx: number) => {\n event.preventDefault()\n event.stopPropagation()\n if (props.isRemove && !info.isShowDisabled) {\n optNewList.value.splice(inx, 1)\n emit('onRemove', info.id.toString())\n }\n}\n\nconst onRemoveAll = () => {\n optNewList.value = []\n emit('onRemove', '')\n}\n\n// 外部调用\nconst setDisabled = (isDisabled = true) => {\n _changeDisabled(isDisabled)\n}\n\nconst addInfo = (item: any) => {\n const existInfo = CommonBase.getListExistValue(optNewList.value, item.name, 'name')\n if (CommonBase.isEmpty(existInfo)) {\n const newItem = CommonBase.getJsonClone(item)\n _convertListInfoDisabled(newItem)\n optNewList.value.push(newItem)\n } else {\n _bindHlight(existInfo.info.id)\n }\n}\n\nconst getData = () => {\n return optNewList.value\n}\n\ndefineExpose({\n setDisabled,\n addInfo,\n getData\n})\n</script>\n"],"names":["props","__props","emit","__emit","optKeyIndex","CommonBase","optIsShowDisabled","ref","optNewList","optHlight","reactive","clsParent","computed","className","theme","cls","c","clsTag","info","styTag","sty","optFunShowTextLabel","_convertListInfoDisabled","item","disabled","isItemDisabled","_convertList","list","newList","newItem","_changeDisabled","isDisabled","_bindHlight","id","nextTick","_initMain","watch","newValue","onMounted","onClickTag","_event","onRemoveItem","event","inx","onRemoveAll","__expose","existInfo","_createElementBlock","_renderSlot","_ctx","_openBlock","_Fragment","_renderList","_normalizeClass","_normalizeStyle","_withModifiers","$event","_hoisted_3","_toDisplayString"],"mappings":"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"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";const e=require("vue"),a=require("./base-iCmnU-fv.js"),p={key:0,class:"card-head"},u={key:0,class:"card-head-flex"},f={class:"card-title"},h={key:1,class:"card-title"},B={key:2,class:"card-explain"},y={key:1,class:"card-footer"},k=e.defineComponent({name:"ClCard",__name:"Index",props:{className:{},classBody:{},theme:{},isInnerPadZero:{type:Boolean},isHeadFlex:{type:Boolean}},setup(n){const l=e.useSlots(),t=n,c=e.computed(()=>typeof l.headTitle<"u"),d=e.computed(()=>typeof l.headExplain<"u"),r=e.computed(()=>typeof l.foot<"u"),i=e.computed(()=>{const o={"card-box":!0};return a.CommonBase.isEmpty(t.className)||t.className?.split(" ").forEach(s=>{a.CommonBase.isEmpty(s)||(o[s]=!0)}),o[`card-${t.theme||"default"}`]=!0,o}),m=e.computed(()=>{const o={"card-body":!0,"card-body-padding-0":t.isInnerPadZero||!1};return a.CommonBase.isEmpty(t.classBody)||t.classBody?.split(" ").forEach(s=>{a.CommonBase.isEmpty(s)||(o[s]=!0)}),o});return(o,s)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(i.value)},[c.value?(e.openBlock(),e.createElementBlock("div",p,[n.isHeadFlex?(e.openBlock(),e.createElementBlock("div",u,[e.createElementVNode("div",f,[e.renderSlot(o.$slots,"headTitle")]),e.renderSlot(o.$slots,"headFlex")])):(e.openBlock(),e.createElementBlock("div",h,[e.renderSlot(o.$slots,"headTitle")])),d.value?(e.openBlock(),e.createElementBlock("div",B,[e.renderSlot(o.$slots,"headExplain")])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(m.value)},[e.renderSlot(o.$slots,"default")],2),r.value?(e.openBlock(),e.createElementBlock("div",y,[e.renderSlot(o.$slots,"foot")])):e.createCommentVNode("",!0)],2))}});exports._sfc_main=k;
|
|
2
|
+
//# sourceMappingURL=Index.vue_vue_type_script_setup_true_lang-CIdipm_Z.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Index.vue_vue_type_script_setup_true_lang-CIdipm_Z.js","sources":["../../../src/libs/Web/Card/Index.vue"],"sourcesContent":["<template>\n <div :class=\"clsParent\">\n <div\n class=\"card-head\"\n v-if=\"optIsShowHead\"\n >\n <div\n v-if=\"isHeadFlex\"\n class=\"card-head-flex\"\n >\n <div class=\"card-title\">\n <slot name=\"headTitle\"></slot>\n </div>\n <slot name=\"headFlex\"></slot>\n </div>\n <div\n v-else\n class=\"card-title\"\n >\n <slot name=\"headTitle\"></slot>\n </div>\n <div\n class=\"card-explain\"\n v-if=\"optIsShowExplain\"\n >\n <slot name=\"headExplain\"></slot>\n </div>\n </div>\n <div :class=\"clsBody\">\n <slot></slot>\n </div>\n <div\n class=\"card-footer\"\n v-if=\"optIsShowFoot\"\n >\n <slot name=\"foot\"></slot>\n </div>\n </div>\n</template>\n\n<script setup lang=\"ts\">\nimport './Index.css'\nimport { computed, useSlots } from 'vue'\nimport CommonBase from '../../Common/base'\n\n// defineOptions\ndefineOptions({ name: 'ClCard' })\n\n// slots\nconst slots = useSlots()\n\n// props\nconst props = defineProps<{\n className?: string\n classBody?: string\n theme?: string\n isInnerPadZero?: boolean\n isHeadFlex?: boolean\n}>()\n\n// computed\nconst optIsShowHead = computed(() => {\n return typeof slots.headTitle !== 'undefined'\n})\n\nconst optIsShowExplain = computed(() => {\n return typeof slots.headExplain !== 'undefined'\n})\n\nconst optIsShowFoot = computed(() => {\n return typeof slots.foot !== 'undefined'\n})\n\nconst clsParent = computed(() => {\n const clsTemp: any = {\n 'card-box': true,\n }\n if (!CommonBase.isEmpty(props.className)) {\n props.className?.split(' ').forEach((cls) => {\n if (!CommonBase.isEmpty(cls)) {\n clsTemp[cls] = true\n }\n })\n }\n clsTemp[`card-${props.theme || 'default'}`] = true\n return clsTemp\n})\n\nconst clsBody = computed(() => {\n const clsTemp: any = {\n 'card-body': true,\n 'card-body-padding-0': props.isInnerPadZero || false,\n }\n if (!CommonBase.isEmpty(props.classBody)) {\n props.classBody?.split(' ').forEach((cls) => {\n if (!CommonBase.isEmpty(cls)) {\n clsTemp[cls] = true\n }\n })\n }\n return clsTemp\n})\n</script>\n"],"names":["slots","useSlots","props","__props","optIsShowHead","computed","optIsShowExplain","optIsShowFoot","clsParent","clsTemp","CommonBase","cls","clsBody","_createElementBlock","_openBlock","_hoisted_1","_hoisted_2","_createElementVNode","_hoisted_3","_renderSlot","_ctx","_hoisted_4","_hoisted_5","_hoisted_6"],"mappings":"gZAiDA,MAAMA,EAAQC,EAAAA,SAAA,EAGRC,EAAQC,EASRC,EAAgBC,EAAAA,SAAS,IACtB,OAAOL,EAAM,UAAc,GACnC,EAEKM,EAAmBD,EAAAA,SAAS,IACzB,OAAOL,EAAM,YAAgB,GACrC,EAEKO,EAAgBF,EAAAA,SAAS,IACtB,OAAOL,EAAM,KAAS,GAC9B,EAEKQ,EAAYH,EAAAA,SAAS,IAAM,CAC/B,MAAMI,EAAe,CACnB,WAAY,EAAA,EAEd,OAAKC,EAAAA,WAAW,QAAQR,EAAM,SAAS,GACrCA,EAAM,WAAW,MAAM,GAAG,EAAE,QAASS,GAAQ,CACtCD,EAAAA,WAAW,QAAQC,CAAG,IACzBF,EAAQE,CAAG,EAAI,GAEnB,CAAC,EAEHF,EAAQ,QAAQP,EAAM,OAAS,SAAS,EAAE,EAAI,GACvCO,CACT,CAAC,EAEKG,EAAUP,EAAAA,SAAS,IAAM,CAC7B,MAAMI,EAAe,CACnB,YAAa,GACb,sBAAuBP,EAAM,gBAAkB,EAAA,EAEjD,OAAKQ,EAAAA,WAAW,QAAQR,EAAM,SAAS,GACrCA,EAAM,WAAW,MAAM,GAAG,EAAE,QAASS,GAAQ,CACtCD,EAAAA,WAAW,QAAQC,CAAG,IACzBF,EAAQE,CAAG,EAAI,GAEnB,CAAC,EAEIF,CACT,CAAC,8BApGCI,EAAAA,mBAoCM,MAAA,CApCA,uBAAOL,EAAA,KAAS,CAAA,GAGZJ,EAAA,OAFRU,EAAAA,UAAA,EAAAD,EAAAA,mBAyBM,MAzBNE,EAyBM,CApBIZ,EAAA,YADRW,EAAAA,UAAA,EAAAD,EAAAA,mBAQM,MARNG,EAQM,CAJJC,EAAAA,mBAEM,MAFNC,EAEM,CADJC,aAA8BC,EAAA,OAAA,WAAA,CAAA,GAEhCD,aAA6BC,EAAA,OAAA,UAAA,CAAA,KAE/BN,EAAAA,UAAA,EAAAD,qBAKM,MALNQ,EAKM,CADJF,aAA8BC,EAAA,OAAA,WAAA,CAAA,IAIxBd,EAAA,OAFRQ,EAAAA,UAAA,EAAAD,EAAAA,mBAKM,MALNS,EAKM,CADJH,aAAgCC,EAAA,OAAA,aAAA,CAAA,+DAGpCH,EAAAA,mBAEM,MAAA,CAFA,uBAAOL,EAAA,KAAO,CAAA,GAClBO,aAAaC,EAAA,OAAA,SAAA,CAAA,KAIPb,EAAA,OAFRO,EAAAA,UAAA,EAAAD,EAAAA,mBAKM,MALNU,EAKM,CADJJ,aAAyBC,EAAA,OAAA,MAAA,CAAA"}
|
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
import { defineComponent as M, ref as g, reactive as R, computed as h, watch as F, onMounted as P, nextTick as v, openBlock as x, createElementBlock as E, normalizeStyle as z, normalizeClass as A, withDirectives as $, createElementVNode as U, vModelText as j, withModifiers as q, createCommentVNode as G } from "vue";
|
|
2
|
+
import { C as n } from "./base-PQGakkrl.js";
|
|
3
|
+
const J = ["name", "placeholder", "disabled"], ee = /* @__PURE__ */ M({
|
|
4
|
+
name: "ClInputTextarea",
|
|
5
|
+
__name: "Index",
|
|
6
|
+
props: {
|
|
7
|
+
value: {
|
|
8
|
+
type: String,
|
|
9
|
+
default: ""
|
|
10
|
+
},
|
|
11
|
+
className: {
|
|
12
|
+
type: String,
|
|
13
|
+
default: ""
|
|
14
|
+
},
|
|
15
|
+
width: {
|
|
16
|
+
type: String,
|
|
17
|
+
default: ""
|
|
18
|
+
},
|
|
19
|
+
height: {
|
|
20
|
+
type: String,
|
|
21
|
+
default: "100px"
|
|
22
|
+
},
|
|
23
|
+
name: {
|
|
24
|
+
type: String,
|
|
25
|
+
default: ""
|
|
26
|
+
},
|
|
27
|
+
placeholder: {
|
|
28
|
+
type: String,
|
|
29
|
+
default: ""
|
|
30
|
+
},
|
|
31
|
+
disabled: {
|
|
32
|
+
type: Boolean,
|
|
33
|
+
default: !1
|
|
34
|
+
},
|
|
35
|
+
isClean: {
|
|
36
|
+
type: Boolean,
|
|
37
|
+
default: !1
|
|
38
|
+
},
|
|
39
|
+
isAutoHeight: {
|
|
40
|
+
type: Boolean,
|
|
41
|
+
default: !1
|
|
42
|
+
},
|
|
43
|
+
changDelayTime: {
|
|
44
|
+
type: Number,
|
|
45
|
+
default: 200
|
|
46
|
+
},
|
|
47
|
+
heightMax: {
|
|
48
|
+
type: String,
|
|
49
|
+
default: ""
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
emits: ["update:value", "onChange", "onInit", "onKeydownEnter", "onKeyupEnter", "onFocus", "onBlur", "onChangeDelay"],
|
|
53
|
+
setup(p, { expose: C, emit: D }) {
|
|
54
|
+
const a = p, o = D, u = g(null), r = R({
|
|
55
|
+
height: a.height || "100px"
|
|
56
|
+
}), s = g(a.value || ""), l = {
|
|
57
|
+
lastValue: a.value || "",
|
|
58
|
+
prevDelayValue: a.value || "",
|
|
59
|
+
valueDelayRun: !1
|
|
60
|
+
}, V = h(() => {
|
|
61
|
+
let e = a.name;
|
|
62
|
+
return n.isEmpty(e) && (e = `textarea_${n.getRandom(8)}`), e;
|
|
63
|
+
}), T = h(() => a.isClean && !a.disabled && !n.isEmpty(s.value)), k = h(() => {
|
|
64
|
+
const e = {
|
|
65
|
+
"panel-textarea": !0,
|
|
66
|
+
"box-width": !0,
|
|
67
|
+
"textarea-clean": a.isClean
|
|
68
|
+
};
|
|
69
|
+
return a.className && !n.isEmpty(a.className) && a.className.split(" ").forEach((t) => {
|
|
70
|
+
n.isEmpty(t) || (e[t] = !0);
|
|
71
|
+
}), e;
|
|
72
|
+
}), _ = h(() => {
|
|
73
|
+
const { width: e, heightMax: t } = a, i = {};
|
|
74
|
+
return n.isEmpty(e) || (i.width = e), n.isEmpty(r.height) || (i.height = r.height), t && !n.isEmpty(t) && (i["max-height"] = t), i;
|
|
75
|
+
}), m = () => {
|
|
76
|
+
if (a.isAutoHeight) {
|
|
77
|
+
const e = u.value;
|
|
78
|
+
if (e) {
|
|
79
|
+
e.style.height = a.height || "100px";
|
|
80
|
+
const t = e.scrollHeight + e.scrollTop + (e.offsetHeight - e.clientHeight);
|
|
81
|
+
e.style.height = "100%", r.height = t > 0 ? `${t}px` : a.height || "100px";
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
}, y = () => {
|
|
85
|
+
u.value?.focus();
|
|
86
|
+
}, d = (e) => {
|
|
87
|
+
e !== l.lastValue && (l.lastValue = e, o("update:value", e), o("onChange", e), w(e));
|
|
88
|
+
};
|
|
89
|
+
let c;
|
|
90
|
+
const w = (e) => {
|
|
91
|
+
c && (clearTimeout(c), c = null), l.valueDelayRun = !0, c = setTimeout(() => {
|
|
92
|
+
l.valueDelayRun = !1, l.prevDelayValue !== e && (l.prevDelayValue = e, o("onChangeDelay", e));
|
|
93
|
+
}, a.changDelayTime || 200);
|
|
94
|
+
}, B = () => {
|
|
95
|
+
v(() => {
|
|
96
|
+
o("onInit");
|
|
97
|
+
});
|
|
98
|
+
};
|
|
99
|
+
F(
|
|
100
|
+
() => a.value,
|
|
101
|
+
(e, t) => {
|
|
102
|
+
e !== t && (s.value = e || "", l.lastValue = e || "", m(), l.valueDelayRun || (l.prevDelayValue = e || ""));
|
|
103
|
+
}
|
|
104
|
+
), P(() => {
|
|
105
|
+
v(() => {
|
|
106
|
+
B();
|
|
107
|
+
});
|
|
108
|
+
});
|
|
109
|
+
const I = (e) => {
|
|
110
|
+
const t = e.target.value;
|
|
111
|
+
m(), d(t);
|
|
112
|
+
}, S = (e) => {
|
|
113
|
+
e.key === "Enter" && o("onKeydownEnter", e);
|
|
114
|
+
}, H = (e) => {
|
|
115
|
+
e.key === "Enter" && o("onKeyupEnter", e);
|
|
116
|
+
}, N = () => {
|
|
117
|
+
s.value = "", d(""), y();
|
|
118
|
+
}, b = () => {
|
|
119
|
+
o("onFocus");
|
|
120
|
+
}, K = () => {
|
|
121
|
+
o("onBlur");
|
|
122
|
+
}, f = () => n.trim(s.value);
|
|
123
|
+
return C({
|
|
124
|
+
getValue: f,
|
|
125
|
+
getValueData: () => ({ value: f(), show: s.value }),
|
|
126
|
+
setValue: (e) => {
|
|
127
|
+
const t = n.isEmpty(e) ? "" : e;
|
|
128
|
+
l.lastValue = t, l.prevDelayValue = t, s.value = t, m();
|
|
129
|
+
},
|
|
130
|
+
initHeight: () => {
|
|
131
|
+
r.height = a.height || "100px";
|
|
132
|
+
},
|
|
133
|
+
focus: () => {
|
|
134
|
+
y();
|
|
135
|
+
},
|
|
136
|
+
getParentElement: () => u.value?.parentElement || null
|
|
137
|
+
}), (e, t) => (x(), E("div", {
|
|
138
|
+
class: A(k.value),
|
|
139
|
+
style: z(_.value)
|
|
140
|
+
}, [
|
|
141
|
+
$(U("textarea", {
|
|
142
|
+
ref_key: "refElTextarea",
|
|
143
|
+
ref: u,
|
|
144
|
+
class: "form-control text-area",
|
|
145
|
+
"onUpdate:modelValue": t[0] || (t[0] = (i) => s.value = i),
|
|
146
|
+
name: V.value,
|
|
147
|
+
placeholder: p.placeholder,
|
|
148
|
+
disabled: p.disabled,
|
|
149
|
+
onInput: I,
|
|
150
|
+
onKeydown: S,
|
|
151
|
+
onKeyup: H,
|
|
152
|
+
onFocus: b,
|
|
153
|
+
onBlur: K
|
|
154
|
+
}, null, 40, J), [
|
|
155
|
+
[j, s.value]
|
|
156
|
+
]),
|
|
157
|
+
T.value ? (x(), E("i", {
|
|
158
|
+
key: 0,
|
|
159
|
+
class: "textarea-clear-icon clIconFont clIcon-close-circle-fill",
|
|
160
|
+
onClick: q(N, ["stop"])
|
|
161
|
+
})) : G("", !0)
|
|
162
|
+
], 6));
|
|
163
|
+
}
|
|
164
|
+
});
|
|
165
|
+
export {
|
|
166
|
+
ee as _
|
|
167
|
+
};
|
|
168
|
+
//# sourceMappingURL=Index.vue_vue_type_script_setup_true_lang-CNa69faz.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Index.vue_vue_type_script_setup_true_lang-CNa69faz.js","sources":["../../../src/libs/Element/InputTextarea/Index.vue"],"sourcesContent":["<template>\n <div :class=\"clsParent\" :style=\"styParent\">\n <textarea ref=\"refElTextarea\" class=\"form-control text-area\" v-model=\"optTextValue\" :name=\"optElName\"\n :placeholder=\"placeholder\" :disabled=\"disabled\" @input=\"onInputText\" @keydown=\"onKeydown\" @keyup=\"onKeyup\"\n @focus=\"onFocus\" @blur=\"onBlur\"></textarea>\n <i v-if=\"optIsShowClean\" class=\"textarea-clear-icon clIconFont clIcon-close-circle-fill\"\n @click.stop=\"onClear\"></i>\n </div>\n</template>\n\n<script setup lang=\"ts\">\nimport { ref, reactive, computed, watch, nextTick, onMounted } from 'vue'\nimport CommonBase from '../../Common/base'\nimport './Index.css'\n\ndefineOptions({ name: 'ClInputTextarea' })\n\nconst props = defineProps({\n value: {\n type: String,\n default: ''\n },\n className: {\n type: String,\n default: ''\n },\n width: {\n type: String,\n default: ''\n },\n height: {\n type: String,\n default: '100px'\n },\n name: {\n type: String,\n default: ''\n },\n placeholder: {\n type: String,\n default: ''\n },\n disabled: {\n type: Boolean,\n default: false\n },\n isClean: {\n type: Boolean,\n default: false\n },\n isAutoHeight: {\n type: Boolean,\n default: false\n },\n changDelayTime: {\n type: Number,\n default: 200\n },\n heightMax: {\n type: String,\n default: ''\n },\n})\n\nconst emit = defineEmits<{\n (e: 'update:value', value: string): void\n (e: 'onChange', value: string): void\n (e: 'onInit'): void\n (e: 'onKeydownEnter', event: KeyboardEvent): void\n (e: 'onKeyupEnter', event: KeyboardEvent): void\n (e: 'onFocus'): void\n (e: 'onBlur'): void\n (e: 'onChangeDelay', value: string): void\n}>()\n\nconst refElTextarea = ref<HTMLTextAreaElement | null>(null)\nconst optBase = reactive({\n height: props.height || '100px',\n})\nconst optTextValue = ref(props.value || '')\nconst _pageData: any = {\n lastValue: props.value || '',\n prevDelayValue: props.value || '',\n valueDelayRun: false,\n}\n\nconst optElName = computed(() => {\n let name = props.name\n if (CommonBase.isEmpty(name)) {\n name = `textarea_${CommonBase.getRandom(8)}`\n }\n return name\n})\n\nconst optIsShowClean = computed(() => {\n return props.isClean && !props.disabled && !CommonBase.isEmpty(optTextValue.value)\n})\n\nconst clsParent = computed(() => {\n const clsTemp: any = {\n 'panel-textarea': true,\n 'box-width': true,\n 'textarea-clean': props.isClean,\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\nconst styParent = computed(() => {\n const { width, heightMax } = props\n const sty: any = {}\n if (!CommonBase.isEmpty(width)) {\n sty.width = width\n }\n if (!CommonBase.isEmpty(optBase.height)) {\n sty.height = optBase.height\n }\n if (heightMax && !CommonBase.isEmpty(heightMax)) {\n sty['max-height'] = heightMax\n }\n return sty\n})\n\nconst _calculationHeight = () => {\n if (props.isAutoHeight) {\n const el = refElTextarea.value\n if (el) {\n el.style.height = props.height || '100px'\n const height = el.scrollHeight + el.scrollTop + (el.offsetHeight - el.clientHeight)\n el.style.height = '100%'\n optBase.height = height > 0 ? `${height}px` : (props.height || '100px')\n }\n }\n}\n\nconst _focus = () => {\n refElTextarea.value?.focus()\n}\n\nconst _emitChange = (value: string) => {\n if (value !== _pageData.lastValue) {\n _pageData.lastValue = value\n emit('update:value', value)\n emit('onChange', value)\n _emitChangeDelay(value)\n }\n}\n\nlet _valueTimerDelay: any\nconst _emitChangeDelay = (value: string) => {\n if (_valueTimerDelay) {\n clearTimeout(_valueTimerDelay)\n _valueTimerDelay = null\n }\n _pageData.valueDelayRun = true\n _valueTimerDelay = setTimeout(() => {\n _pageData.valueDelayRun = false\n if (_pageData.prevDelayValue !== value) {\n _pageData.prevDelayValue = value\n emit('onChangeDelay', value)\n }\n }, props.changDelayTime || 200)\n}\n\nconst _initMain = () => {\n nextTick(() => {\n emit('onInit')\n })\n}\n\nwatch(\n () => props.value,\n (newValue, oldValue) => {\n if (newValue !== oldValue) {\n optTextValue.value = newValue || ''\n _pageData.lastValue = newValue || ''\n _calculationHeight()\n if (!_pageData.valueDelayRun) {\n _pageData.prevDelayValue = newValue || ''\n }\n }\n },\n)\n\nonMounted(() => {\n nextTick(() => {\n _initMain()\n })\n})\n\nconst onInputText = (e: Event) => {\n const value = (e.target as HTMLTextAreaElement).value\n _calculationHeight()\n _emitChange(value)\n}\n\nconst onKeydown = (e: KeyboardEvent) => {\n const keyCode = e.key\n if (keyCode === 'Enter') {\n emit('onKeydownEnter', e)\n }\n}\n\nconst onKeyup = (e: KeyboardEvent) => {\n const keyCode = e.key\n if (keyCode === 'Enter') {\n emit('onKeyupEnter', e)\n }\n}\n\nconst onClear = () => {\n optTextValue.value = ''\n _emitChange('')\n _focus()\n}\n\nconst onFocus = () => {\n emit('onFocus')\n}\n\nconst onBlur = () => {\n emit('onBlur')\n}\n\nexport interface ClInputTextareaExpose {\n getValue: () => string\n getValueData: () => { value: string; show: string }\n setValue: (value: string) => void\n initHeight: () => void\n focus: () => void\n getParentElement: () => HTMLElement | null\n}\n\nconst getValue = () => {\n return CommonBase.trim(optTextValue.value)\n}\n\nconst getValueData = () => {\n return { value: getValue(), show: optTextValue.value }\n}\n\nconst setValue = (value: any) => {\n const newValue = CommonBase.isEmpty(value) ? '' : value\n _pageData.lastValue = newValue\n _pageData.prevDelayValue = newValue\n optTextValue.value = newValue\n _calculationHeight()\n}\n\nconst initHeight = () => {\n optBase.height = props.height || '100px'\n}\n\nconst focus = () => {\n _focus()\n}\n\nconst getParentElement = () => {\n return refElTextarea.value?.parentElement || null\n}\n\ndefineExpose({\n getValue,\n getValueData,\n setValue,\n initHeight,\n focus,\n getParentElement,\n})\n</script>\n"],"names":["props","__props","emit","__emit","refElTextarea","ref","optBase","reactive","optTextValue","_pageData","optElName","computed","name","CommonBase","optIsShowClean","clsParent","clsTemp","cls","styParent","width","heightMax","sty","_calculationHeight","el","height","_focus","_emitChange","value","_emitChangeDelay","_valueTimerDelay","_initMain","nextTick","watch","newValue","oldValue","onMounted","onInputText","onKeydown","onKeyup","onClear","onFocus","onBlur","getValue","__expose","_createElementBlock","_createElementVNode","$event"],"mappings":"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"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";const e=require("vue"),i=require("./base-iCmnU-fv.js"),p=require("./Index.vue_vue_type_script_setup_true_lang-DxWcQL_8.js"),f={class:"loadScreen-container"},h={class:"loadScreen-main"},y={key:0,class:"loadScreen-text"},C=e.defineComponent({name:"ClLoadScreen",__name:"Index",setup(v,{expose:d}){const c=e.ref(null),o=e.reactive({text:""});let n=null;const s=()=>document.querySelector("body"),a=()=>document.querySelector("body>.panel-loadScreen"),l=()=>{const t=a();return!i.CommonBase.isUndefined(t)},_=()=>{l()?n&&(clearTimeout(n),n=null):s().appendChild(c.value)},u=t=>{l()&&(n=setTimeout(()=>{const r=a();r&&s().removeChild(r)},t))},m=t=>{_(),o.text=i.CommonBase.isEmpty(t)?"":t};return d({show:t=>{m(t||"")},hide:(t=0)=>{u(t)}}),(t,r)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"refElTopParent",ref:c,class:"panel-loadScreen"},[e.createElementVNode("div",f,[e.createElementVNode("div",h,[o.text.length>0?(e.openBlock(),e.createElementBlock("span",y,e.toDisplayString(o.text),1)):e.createCommentVNode("",!0),e.createElementVNode("span",null,[e.createVNode(p._sfc_main)])])])],512))}});exports._sfc_main=C;
|
|
2
|
+
//# sourceMappingURL=Index.vue_vue_type_script_setup_true_lang-CPWxeZzn.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Index.vue_vue_type_script_setup_true_lang-CPWxeZzn.js","sources":["../../../src/libs/Element/LoadScreen/Index.vue"],"sourcesContent":["<template>\n <div ref=\"refElTopParent\" class=\"panel-loadScreen\">\n <div class=\"loadScreen-container\">\n <div class=\"loadScreen-main\">\n <span v-if=\"optBase.text.length > 0\" class=\"loadScreen-text\">{{ optBase.text }}</span>\n <span>\n <cl-load></cl-load>\n </span>\n </div>\n </div>\n </div>\n</template>\n\n<script setup lang=\"ts\">\nimport { ref, reactive } from 'vue'\nimport CommonBase from '../../Common/base'\nimport ClLoad from '../Load/Index.vue'\nimport './Index.css'\n\ndefineOptions({ name: 'ClLoadScreen' })\n\nconst refElTopParent = ref<HTMLElement | null>(null)\n\nconst optBase = reactive({\n text: ''\n})\n\nlet _timeOutDestroyContainer: ReturnType<typeof setTimeout> | null = null\n\nconst _getBody = (): HTMLElement => {\n return document.querySelector('body') as HTMLElement\n}\n\nconst _getTopEl = (): HTMLElement | null => {\n return document.querySelector('body>.panel-loadScreen')\n}\n\nconst _checkContainer = (): boolean => {\n const el = _getTopEl()\n return !CommonBase.isUndefined(el)\n}\n\nconst _creatorContainer = () => {\n if (!_checkContainer()) {\n _getBody().appendChild(refElTopParent.value!)\n } else {\n if (_timeOutDestroyContainer) {\n clearTimeout(_timeOutDestroyContainer)\n _timeOutDestroyContainer = null\n }\n }\n}\n\nconst _destroyContainer = (t: number) => {\n if (_checkContainer()) {\n _timeOutDestroyContainer = setTimeout(() => {\n const el = _getTopEl()\n if (el) {\n _getBody().removeChild(el)\n }\n }, t)\n }\n}\n\nconst _creatorItem = (text: string) => {\n _creatorContainer()\n optBase.text = CommonBase.isEmpty(text) ? '' : text\n}\n\nconst show = (text?: string) => {\n _creatorItem(text || '')\n}\n\nconst hide = (t: number = 0) => {\n _destroyContainer(t)\n}\n\ndefineExpose({\n show,\n hide\n})\n</script>\n"],"names":["refElTopParent","ref","optBase","reactive","_timeOutDestroyContainer","_getBody","_getTopEl","_checkContainer","el","CommonBase","_creatorContainer","_destroyContainer","_creatorItem","text","__expose","_createElementBlock","_createElementVNode","_hoisted_1","_hoisted_2","_openBlock","_hoisted_3","_toDisplayString","_createVNode","ClLoad"],"mappings":"oTAqBA,MAAMA,EAAiBC,EAAAA,IAAwB,IAAI,EAE7CC,EAAUC,EAAAA,SAAS,CACvB,KAAM,EAAA,CACP,EAED,IAAIC,EAAiE,KAErE,MAAMC,EAAW,IACR,SAAS,cAAc,MAAM,EAGhCC,EAAY,IACT,SAAS,cAAc,wBAAwB,EAGlDC,EAAkB,IAAe,CACrC,MAAMC,EAAKF,EAAA,EACX,MAAO,CAACG,EAAAA,WAAW,YAAYD,CAAE,CACnC,EAEME,EAAoB,IAAM,CACzBH,IAGCH,IACF,aAAaA,CAAwB,EACrCA,EAA2B,MAJ7BC,IAAW,YAAYL,EAAe,KAAM,CAOhD,EAEMW,EAAqB,GAAc,CACnCJ,MACFH,EAA2B,WAAW,IAAM,CAC1C,MAAMI,EAAKF,EAAA,EACPE,GACFH,EAAA,EAAW,YAAYG,CAAE,CAE7B,EAAG,CAAC,EAER,EAEMI,EAAgBC,GAAiB,CACrCH,EAAA,EACAR,EAAQ,KAAOO,EAAAA,WAAW,QAAQI,CAAI,EAAI,GAAKA,CACjD,EAUA,OAAAC,EAAa,CACX,KATYD,GAAkB,CAC9BD,EAAaC,GAAQ,EAAE,CACzB,EAQE,KANW,CAAC,EAAY,IAAM,CAC9BF,EAAkB,CAAC,CACrB,CAIE,CACD,wBA/ECI,EAAAA,mBASM,MAAA,SATG,iBAAJ,IAAIf,EAAiB,MAAM,kBAAA,GAC9BgB,EAAAA,mBAOM,MAPNC,EAOM,CANJD,EAAAA,mBAKM,MALNE,EAKM,CAJQhB,EAAQ,KAAK,OAAM,GAA/BiB,EAAAA,UAAA,EAAAJ,EAAAA,mBAAsF,OAAtFK,EAAsFC,EAAAA,gBAAtBnB,EAAQ,IAAI,EAAA,CAAA,+BAC5Ec,EAAAA,mBAEO,OAAA,KAAA,CADLM,EAAAA,YAAmBC,EAAAA,SAAA,CAAA"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";const e=require("vue"),h=require("./BaseTransition.vue_vue_type_script_setup_true_lang-DEXehdBc.js"),C=require("./base-iCmnU-fv.js"),n=require("../Element/ClButton.cjs"),y={key:0,class:"modal-header"},w={class:"modal-title"},L={class:"modal-body"},E={key:1,class:"modal-footer"},v={key:2,class:"modal-footer-hide"},g=e.defineComponent({name:"ClModal",__name:"Index",props:{posSubmitClose:{type:String,default:"CloseSubmit",validator:t=>["CloseSubmit","SubmitClose"].indexOf(t)!==-1},className:{type:String,default:""},width:{type:String,default:"600px"},titleName:{type:String,default:""},isBackClick:{type:Boolean,default:!0},isShowHeader:{type:Boolean,default:!0},isShowFooter:{type:Boolean,default:!0},isShowSubmit:{type:Boolean,default:!0},isShowSubmitLoad:{type:Boolean,default:!0},closeLabel:{type:String,default:""},submitLabel:{type:String,default:""},classTransitionEnter:{type:String,default:"animated fadeInDown"}},emits:["onSubmit","onClose"],setup(t,{expose:S,emit:k}){const c=t,u=k,i=e.ref(null),l=e.ref(null),o=e.reactive({isLoadBackClick:!0,disabledSubmit:!1}),B=()=>{u("onSubmit")},r=()=>{u("onClose")},m=()=>{i.value&&i.value.hide()},b=()=>{c.isShowSubmitLoad&&(o.isLoadBackClick=!1),B()},d=()=>{m(),r()},f=()=>{r()};return S({show:()=>{o.disabledSubmit=!1,i.value&&i.value.show()},hide:()=>{o.isLoadBackClick=!0,c.isShowSubmitLoad&&l.value&&l.value.loadStop(),m()},loadStop:()=>{o.isLoadBackClick=!0,c.isShowSubmitLoad&&l.value&&l.value.loadStop()},disabledSubmit:a=>{const s=C.CommonBase.isBoolean(a)?a:!0;o.disabledSubmit=s}}),(a,s)=>(e.openBlock(),e.createBlock(h._sfc_main,{className:t.className,isBackClick:t.isBackClick&&o.isLoadBackClick,classTransitionEnter:t.classTransitionEnter,width:t.width,onOnClickBack:f,ref_key:"refElTransition",ref:i},{default:e.withCtx(()=>[t.isShowHeader?(e.openBlock(),e.createElementBlock("div",y,[e.createElementVNode("h4",w,e.toDisplayString(t.titleName),1),e.createElementVNode("button",{type:"button",class:"close",onClick:d},[...s[0]||(s[0]=[e.createElementVNode("i",{class:"clIconFont clIcon-close"},null,-1)])])])):e.createCommentVNode("",!0),e.createElementVNode("div",L,[e.renderSlot(a.$slots,"default")]),t.isShowFooter?(e.openBlock(),e.createElementBlock("div",E,[t.posSubmitClose==="CloseSubmit"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createVNode(n,{label:t.closeLabel||"取消",color:"grayLight",onOnClick:d},null,8,["label"]),t.isShowSubmit?(e.openBlock(),e.createBlock(n,{key:0,ref_key:"refElBtnSubmit",ref:l,disabled:o.disabledSubmit,isShowLoad:t.isShowSubmitLoad,isShowBackDrop:!0,label:t.submitLabel||"提交",onOnClick:b},null,8,["disabled","isShowLoad","label"])):e.createCommentVNode("",!0)],64)):t.posSubmitClose==="SubmitClose"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[t.isShowSubmit?(e.openBlock(),e.createBlock(n,{key:0,ref_key:"refElBtnSubmit",ref:l,disabled:o.disabledSubmit,isShowLoad:t.isShowSubmitLoad,isShowBackDrop:!0,label:t.submitLabel||"提交",onOnClick:b},null,8,["disabled","isShowLoad","label"])):e.createCommentVNode("",!0),e.createVNode(n,{label:t.closeLabel||"取消",color:"grayLight",onOnClick:d},null,8,["label"])],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[],64))])):(e.openBlock(),e.createElementBlock("div",v))]),_:3},8,["className","isBackClick","classTransitionEnter","width"]))}});exports._sfc_main=g;
|
|
2
|
+
//# sourceMappingURL=Index.vue_vue_type_script_setup_true_lang-CVPvV5cZ.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Index.vue_vue_type_script_setup_true_lang-CVPvV5cZ.js","sources":["../../../src/libs/Element/Modal/Index.vue"],"sourcesContent":["<template>\n <cl-modal-transition\n :className=\"className\"\n :isBackClick=\"isBackClick && optBase.isLoadBackClick\"\n :classTransitionEnter=\"classTransitionEnter\"\n :width=\"width\"\n @onClickBack=\"onClickBack\"\n ref=\"refElTransition\"\n >\n <div\n v-if=\"isShowHeader\"\n class=\"modal-header\"\n >\n <h4 class=\"modal-title\">{{titleName}}</h4>\n <button\n type=\"button\"\n class=\"close\"\n @click=\"onClose\"\n ><i class=\"clIconFont clIcon-close\"></i></button>\n </div>\n <div class=\"modal-body\">\n <slot></slot>\n </div>\n <div\n class=\"modal-footer\"\n v-if=\"isShowFooter\"\n >\n <template v-if=\"posSubmitClose==='CloseSubmit'\">\n <cl-button\n :label=\"closeLabel||'取消'\"\n color=\"grayLight\"\n @onClick=\"onClose\"\n ></cl-button>\n <cl-button\n ref=\"refElBtnSubmit\"\n v-if=\"isShowSubmit\"\n :disabled=\"optBase.disabledSubmit\"\n :isShowLoad=\"isShowSubmitLoad\"\n :isShowBackDrop=\"true\"\n :label=\"submitLabel||'提交'\"\n @onClick=\"onSubmit\"\n ></cl-button>\n </template>\n <template v-else-if=\"posSubmitClose==='SubmitClose'\">\n <cl-button\n ref=\"refElBtnSubmit\"\n v-if=\"isShowSubmit\"\n :disabled=\"optBase.disabledSubmit\"\n :isShowLoad=\"isShowSubmitLoad\"\n :isShowBackDrop=\"true\"\n :label=\"submitLabel||'提交'\"\n @onClick=\"onSubmit\"\n ></cl-button>\n <cl-button\n :label=\"closeLabel||'取消'\"\n color=\"grayLight\"\n @onClick=\"onClose\"\n ></cl-button>\n </template>\n <template v-else></template>\n </div>\n <div\n v-else\n class=\"modal-footer-hide\"\n ></div>\n </cl-modal-transition>\n</template>\n\n<script setup lang=\"ts\">\nimport './Index.css'\nimport { reactive, ref } from 'vue'\nimport CommonBase from '../../Common/base'\nimport ClModalTransition from './BaseTransition.vue'\nimport ClButton from '../Button/Index.vue'\n\n// defineOptions\ndefineOptions({ name: 'ClModal' })\n\n// props\nconst props = defineProps({\n posSubmitClose: {\n type: String,\n default: 'CloseSubmit',\n validator: (value: string) => {\n return ['CloseSubmit', 'SubmitClose'].indexOf(value) !== -1\n }\n },\n className: {\n type: String,\n default: ''\n },\n width: {\n type: String,\n default: '600px'\n },\n titleName: {\n type: String,\n default: ''\n },\n isBackClick: {\n type: Boolean,\n default: true\n },\n isShowHeader: {\n type: Boolean,\n default: true\n },\n isShowFooter: {\n type: Boolean,\n default: true\n },\n isShowSubmit: {\n type: Boolean,\n default: true\n },\n isShowSubmitLoad: {\n type: Boolean,\n default: true\n },\n closeLabel: {\n type: String,\n default: ''\n },\n submitLabel: {\n type: String,\n default: ''\n },\n classTransitionEnter: {\n type: String,\n default: 'animated fadeInDown'\n },\n})\n\n// emit\nconst emit = defineEmits<{\n (e: 'onSubmit'): void\n (e: 'onClose'): void\n}>()\n\n// refs\nconst refElTransition = ref<HTMLElement | null>(null)\nconst refElBtnSubmit = ref<HTMLElement | null>(null)\n\n// reactive\nconst optBase:any = reactive({\n isLoadBackClick: true,\n disabledSubmit: false,\n})\n\n// emit 外部使用的事件\nconst _emitClickSubmit = () => {\n emit('onSubmit')\n}\n\nconst _emitClickClose = () => {\n emit('onClose')\n}\n\n// 内部方法\nconst _closeHide = () => {\n if (refElTransition.value) {\n // @ts-ignore\n refElTransition.value.hide()\n }\n}\n\n// 内部触发的事件 on\nconst onSubmit = () => {\n if (props.isShowSubmitLoad) {\n optBase.isLoadBackClick = false\n }\n _emitClickSubmit()\n}\n\nconst onClose = () => {\n _closeHide()\n _emitClickClose()\n}\n\nconst onClickBack = () => {\n _emitClickClose()\n}\n\n// 外部调用\nconst show = () => {\n optBase.disabledSubmit = false\n if (refElTransition.value) {\n // @ts-ignore\n refElTransition.value.show()\n }\n}\n\nconst hide = () => {\n optBase.isLoadBackClick = true\n if (props.isShowSubmitLoad && refElBtnSubmit.value) {\n // @ts-ignore\n refElBtnSubmit.value.loadStop()\n }\n _closeHide()\n}\n\nconst loadStop = () => {\n optBase.isLoadBackClick = true\n if (props.isShowSubmitLoad && refElBtnSubmit.value) {\n // @ts-ignore\n refElBtnSubmit.value.loadStop()\n }\n}\n\nconst disabledSubmit = (b?: boolean) => {\n const isDisabled = CommonBase.isBoolean(b) ? b : true\n optBase.disabledSubmit = isDisabled\n}\n\n// 暴露给外部的方法\nexport interface ClModalExpose {\n show: () => void\n hide: () => void\n loadStop: () => void\n disabledSubmit: (b: boolean) => void\n}\n\ndefineExpose({\n show,\n hide,\n loadStop,\n disabledSubmit\n})\n</script>\n"],"names":["props","__props","emit","__emit","refElTransition","ref","refElBtnSubmit","optBase","reactive","_emitClickSubmit","_emitClickClose","_closeHide","onSubmit","onClose","onClickBack","__expose","b","isDisabled","CommonBase","_createBlock","ClModalTransition","_openBlock","_createElementBlock","_hoisted_1","_createElementVNode","_hoisted_2","_toDisplayString","_hoisted_3","_renderSlot","_ctx","_hoisted_4","_Fragment","_createVNode","ClButton","_hoisted_5"],"mappings":"m+BA+EA,MAAMA,EAAQC,EAuDRC,EAAOC,EAMPC,EAAkBC,EAAAA,IAAwB,IAAI,EAC9CC,EAAiBD,EAAAA,IAAwB,IAAI,EAG7CE,EAAcC,EAAAA,SAAS,CAC3B,gBAAiB,GACjB,eAAgB,EAAA,CACjB,EAGKC,EAAmB,IAAM,CAC7BP,EAAK,UAAU,CACjB,EAEMQ,EAAkB,IAAM,CAC5BR,EAAK,SAAS,CAChB,EAGMS,EAAa,IAAM,CACnBP,EAAgB,OAElBA,EAAgB,MAAM,KAAA,CAE1B,EAGMQ,EAAW,IAAM,CACjBZ,EAAM,mBACRO,EAAQ,gBAAkB,IAE5BE,EAAA,CACF,EAEMI,EAAU,IAAM,CACpBF,EAAA,EACAD,EAAA,CACF,EAEMI,EAAc,IAAM,CACxBJ,EAAA,CACF,EAyCA,OAAAK,EAAa,CACX,KAvCW,IAAM,CACjBR,EAAQ,eAAiB,GACrBH,EAAgB,OAElBA,EAAgB,MAAM,KAAA,CAE1B,EAkCE,KAhCW,IAAM,CACjBG,EAAQ,gBAAkB,GACtBP,EAAM,kBAAoBM,EAAe,OAE3CA,EAAe,MAAM,SAAA,EAEvBK,EAAA,CACF,EA0BE,SAxBe,IAAM,CACrBJ,EAAQ,gBAAkB,GACtBP,EAAM,kBAAoBM,EAAe,OAE3CA,EAAe,MAAM,SAAA,CAEzB,EAmBE,eAjBsBU,GAAgB,CACtC,MAAMC,EAAaC,EAAAA,WAAW,UAAUF,CAAC,EAAIA,EAAI,GACjDT,EAAQ,eAAiBU,CAC3B,CAcE,CACD,wBAlOCE,EAAAA,YAgEsBC,YAAA,CA/DnB,UAAWnB,EAAA,UACX,YAAaA,EAAA,aAAgBM,EAAQ,gBACrC,qBAAsBN,EAAA,qBACtB,MAAOA,EAAA,MACP,cAAaa,UACV,kBAAJ,IAAIV,CAAA,qBAEJ,IAUM,CATEH,EAAA,cADRoB,EAAAA,UAAA,EAAAC,EAAAA,mBAUM,MAVNC,EAUM,CANJC,EAAAA,mBAA0C,KAA1CC,EAA0CC,EAAAA,gBAAhBzB,EAAA,SAAS,EAAA,CAAA,EACnCuB,EAAAA,mBAIiD,SAAA,CAH/C,KAAK,SACL,MAAM,QACL,QAAOX,CAAA,mBACTW,EAAAA,mBAAuC,IAAA,CAApC,MAAM,yBAAA,EAAyB,KAAA,EAAA,CAAA,oCAErCA,EAAAA,mBAEM,MAFNG,EAEM,CADJC,aAAaC,EAAA,OAAA,SAAA,CAAA,GAIP5B,EAAA,cAFRoB,EAAAA,UAAA,EAAAC,EAAAA,mBAqCM,MArCNQ,EAqCM,CAjCY7B,EAAA,iBAAc,6BAA9BqB,EAAAA,mBAeWS,WAAA,CAAA,IAAA,GAAA,CAdTC,EAAAA,YAIaC,EAAA,CAHV,MAAOhC,EAAA,YAAU,KAClB,MAAM,YACL,UAASY,CAAA,oBAIJZ,EAAA,4BAFRkB,EAAAA,YAQac,EAAA,eAPP,iBAAJ,IAAI3B,EAEH,SAAUC,EAAQ,eAClB,WAAYN,EAAA,iBACZ,eAAgB,GAChB,MAAOA,EAAA,aAAW,KAClB,UAASW,CAAA,+EAGOX,EAAA,iBAAc,6BAAnCqB,EAAAA,mBAeWS,EAAAA,SAAA,CAAA,IAAA,GAAA,CAZD9B,EAAA,4BAFRkB,EAAAA,YAQac,EAAA,eAPP,iBAAJ,IAAI3B,EAEH,SAAUC,EAAQ,eAClB,WAAYN,EAAA,iBACZ,eAAgB,GAChB,MAAOA,EAAA,aAAW,KAClB,UAASW,CAAA,yEAEZoB,EAAAA,YAIaC,EAAA,CAHV,MAAOhC,EAAA,YAAU,KAClB,MAAM,YACL,UAASY,CAAA,yCAGdS,qBAA4BS,EAAAA,SAAA,CAAA,IAAA,CAAA,EAAA,CAAA,EAAA,EAAA,EAAA,KAE9BV,EAAAA,UAAA,EAAAC,qBAGO,MAHPY,CAGO,EAAA"}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { defineComponent as u, onMounted as c, watch as p, computed as s, openBlock as d, createElementBlock as f, normalizeStyle as y, normalizeClass as g, toDisplayString as N } from "vue";
|
|
2
|
+
import { C as r } from "./base-PQGakkrl.js";
|
|
3
|
+
const b = /* @__PURE__ */ u({
|
|
4
|
+
name: "ClBadge",
|
|
5
|
+
__name: "Index",
|
|
6
|
+
props: {
|
|
7
|
+
className: String,
|
|
8
|
+
// desc: 自定义CSS类名
|
|
9
|
+
color: {
|
|
10
|
+
type: String,
|
|
11
|
+
default: "default"
|
|
12
|
+
// enum: default, green, red, yellow, black, gray (可自定义) | desc: 颜色主题
|
|
13
|
+
},
|
|
14
|
+
colorSty: String,
|
|
15
|
+
// desc: 自定义颜色样式
|
|
16
|
+
num: [String, Number],
|
|
17
|
+
// desc: 显示的数字
|
|
18
|
+
maxNum: {
|
|
19
|
+
type: Number,
|
|
20
|
+
default: -1
|
|
21
|
+
// desc: 最大显示数字,超过显示 maxNum+
|
|
22
|
+
},
|
|
23
|
+
isHideZero: {
|
|
24
|
+
type: Boolean,
|
|
25
|
+
default: !0
|
|
26
|
+
// desc: 是否隐藏数字为0的徽章
|
|
27
|
+
},
|
|
28
|
+
isDot: {
|
|
29
|
+
type: Boolean,
|
|
30
|
+
default: !1
|
|
31
|
+
// desc: 是否显示为圆点
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
setup(a) {
|
|
35
|
+
const t = a, n = () => {
|
|
36
|
+
r.isEmpty(t.num) && !t.isDot && console.warn('[ClBadge] Warning: Either "num" prop or "isDot" prop is required. When "num" is not provided, "isDot" must be true.');
|
|
37
|
+
};
|
|
38
|
+
c(() => {
|
|
39
|
+
n();
|
|
40
|
+
}), p(() => [t.num, t.isDot], () => {
|
|
41
|
+
n();
|
|
42
|
+
});
|
|
43
|
+
const i = s(() => {
|
|
44
|
+
let e = "";
|
|
45
|
+
if (!r.isEmpty(t.num)) {
|
|
46
|
+
const o = Number(t.num);
|
|
47
|
+
o === 0 && t.isHideZero ? e = "" : o > (t.maxNum ?? -1) && (t.maxNum ?? -1) > 0 ? e = `${t.maxNum}+` : e = o.toString();
|
|
48
|
+
}
|
|
49
|
+
return e;
|
|
50
|
+
}), m = s(() => {
|
|
51
|
+
const e = {
|
|
52
|
+
badge: !0
|
|
53
|
+
};
|
|
54
|
+
return r.isEmpty(t.color) || (e[`bg-${t.color}`] = !0), t.className && !r.isEmpty(t.className) && t.className.split(" ").forEach((o) => {
|
|
55
|
+
r.isEmpty(o) || (e[o] = !0);
|
|
56
|
+
}), t.isDot && (e["badge-dot"] = !0), e;
|
|
57
|
+
}), l = s(() => {
|
|
58
|
+
const e = {};
|
|
59
|
+
return r.isEmpty(t.colorSty) || (e["background-color"] = `${t.colorSty} !important`), e;
|
|
60
|
+
});
|
|
61
|
+
return (e, o) => (d(), f("span", {
|
|
62
|
+
class: g(m.value),
|
|
63
|
+
style: y(l.value)
|
|
64
|
+
}, N(i.value), 7));
|
|
65
|
+
}
|
|
66
|
+
});
|
|
67
|
+
export {
|
|
68
|
+
b as _
|
|
69
|
+
};
|
|
70
|
+
//# sourceMappingURL=Index.vue_vue_type_script_setup_true_lang-CejRfZxl.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Index.vue_vue_type_script_setup_true_lang-CejRfZxl.js","sources":["../../../src/libs/Element/Badge/Index.vue"],"sourcesContent":["<template>\n <span\n :class=\"clsParent\"\n :style=\"styParent\"\n >{{optTextNum}}</span>\n</template>\n\n<script setup lang=\"ts\">\nimport { computed, watch, onMounted } from 'vue'\nimport './Index.css'\nimport CommonBase from '../../Common/base'\n\n// defineOptions\ndefineOptions({\n name: 'ClBadge'\n})\n\n// props\nconst props = defineProps({\n className: String, // desc: 自定义CSS类名\n color: {\n type: String,\n default: 'default' // enum: default, green, red, yellow, black, gray (可自定义) | desc: 颜色主题\n },\n colorSty: String, // desc: 自定义颜色样式\n num: [String, Number], // desc: 显示的数字\n maxNum: {\n type: Number,\n default: -1 // desc: 最大显示数字,超过显示 maxNum+\n },\n isHideZero: {\n type: Boolean,\n default: true // desc: 是否隐藏数字为0的徽章\n },\n isDot: {\n type: Boolean,\n default: false // desc: 是否显示为圆点\n }\n})\n\n// 验证:num 或者 isDot 必须传一个值\nconst validateProps = () => {\n if (CommonBase.isEmpty(props.num) && !props.isDot) {\n console.warn('[ClBadge] Warning: Either \"num\" prop or \"isDot\" prop is required. When \"num\" is not provided, \"isDot\" must be true.')\n }\n}\n\nonMounted(() => {\n validateProps()\n})\n\nwatch(() => [props.num, props.isDot], () => {\n validateProps()\n})\n\n// computed\nconst optTextNum = computed(() => {\n let v = ''\n if (!CommonBase.isEmpty(props.num)) {\n const n = Number(props.num)\n if (n === 0 && props.isHideZero) {\n v = ''\n } else if (n > (props.maxNum ?? -1) && (props.maxNum ?? -1) > 0) {\n v = `${props.maxNum}+`\n } else {\n v = n.toString()\n }\n }\n return v\n})\n\nconst clsParent = computed(() => {\n const cls: any = {\n badge: true,\n }\n if (!CommonBase.isEmpty(props.color)) {\n cls[`bg-${props.color}`] = 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 if (props.isDot) {\n cls['badge-dot'] = true\n }\n return cls\n})\n\nconst styParent = computed(() => {\n const sty: any = {}\n if (!CommonBase.isEmpty(props.colorSty)) {\n sty['background-color'] = `${props.colorSty} !important`\n }\n return sty\n})\n</script>"],"names":["props","__props","validateProps","CommonBase","onMounted","watch","optTextNum","computed","v","n","clsParent","cls","c","styParent","sty","_createElementBlock"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkBA,UAAMA,IAAQC,GAuBRC,IAAgB,MAAM;AAC1B,MAAIC,EAAW,QAAQH,EAAM,GAAG,KAAK,CAACA,EAAM,SAC1C,QAAQ,KAAK,qHAAqH;AAAA,IAEtI;AAEA,IAAAI,EAAU,MAAM;AACd,MAAAF,EAAA;AAAA,IACF,CAAC,GAEDG,EAAM,MAAM,CAACL,EAAM,KAAKA,EAAM,KAAK,GAAG,MAAM;AAC1C,MAAAE,EAAA;AAAA,IACF,CAAC;AAGD,UAAMI,IAAaC,EAAS,MAAM;AAChC,UAAIC,IAAI;AACR,UAAI,CAACL,EAAW,QAAQH,EAAM,GAAG,GAAG;AAClC,cAAMS,IAAI,OAAOT,EAAM,GAAG;AAC1B,QAAIS,MAAM,KAAKT,EAAM,aACnBQ,IAAI,KACKC,KAAKT,EAAM,UAAU,QAAQA,EAAM,UAAU,MAAM,IAC5DQ,IAAI,GAAGR,EAAM,MAAM,MAEnBQ,IAAIC,EAAE,SAAA;AAAA,MAEV;AACA,aAAOD;AAAA,IACT,CAAC,GAEKE,IAAYH,EAAS,MAAM;AAC/B,YAAMI,IAAW;AAAA,QACf,OAAO;AAAA,MAAA;AAET,aAAKR,EAAW,QAAQH,EAAM,KAAK,MACjCW,EAAI,MAAMX,EAAM,KAAK,EAAE,IAAI,KAEzBA,EAAM,aAAa,CAACG,EAAW,QAAQH,EAAM,SAAS,KACxDA,EAAM,UAAU,MAAM,GAAG,EAAE,QAAQ,CAACY,MAAM;AACxC,QAAKT,EAAW,QAAQS,CAAC,MACvBD,EAAIC,CAAC,IAAI;AAAA,MAEb,CAAC,GAECZ,EAAM,UACRW,EAAI,WAAW,IAAI,KAEdA;AAAA,IACT,CAAC,GAEKE,IAAYN,EAAS,MAAM;AAC/B,YAAMO,IAAW,CAAA;AACjB,aAAKX,EAAW,QAAQH,EAAM,QAAQ,MACpCc,EAAI,kBAAkB,IAAI,GAAGd,EAAM,QAAQ,gBAEtCc;AAAA,IACT,CAAC;2BAhGGC,EAGsB,QAAA;AAAA,MAFjB,SAAOL,EAAA,KAAS;AAAA,MAChB,SAAOG,EAAA,KAAS;AAAA,IAAA,KAClBP,EAAA,KAAU,GAAA,CAAA;AAAA;;"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";const n=require("vue"),i=require("./base-iCmnU-fv.js"),j=require("./Index.vue_vue_type_script_setup_true_lang-Dd2V82en.js"),G=require("./drag-CzE5R222.js");require("js-cookie");require("decimal.js");const J=n.defineComponent({name:"ClInputnumberButton",__name:"Button",props:{className:{},isDisabled:{type:Boolean},checkDownBeforeCallback:{type:Function}},emits:["onLongDownStart","onLongDownEnd"],setup(a,{emit:x}){const o=a,B=x,f=n.ref(null),r={longDownInterval:null,isMoveBoundary:!1},m=n.computed(()=>{const s={"inputNumber-controls":!0},d=o.className;return d&&!i.CommonBase.isEmpty(d)&&d.split(" ").forEach(u=>{i.CommonBase.isEmpty(u)||(s[u]=!0)}),s["inputNumber-controls-disabled"]=o.isDisabled||!1,s}),p=()=>{B("onLongDownStart")},v=()=>{B("onLongDownEnd")},E=()=>{let s=!0;return o.checkDownBeforeCallback&&(s=o.checkDownBeforeCallback()),s},D=()=>{r.longDownInterval&&(clearInterval(r.longDownInterval),r.longDownInterval=null)},y=()=>{p(),D(),r.longDownInterval=setInterval(()=>{o.isDisabled?S():p()},200)},_=s=>{f.value===s.target||f.value?.contains(s.target)?r.isMoveBoundary&&(r.isMoveBoundary=!1,y()):(D(),r.isMoveBoundary=!0)},S=()=>{D(),v()},T=()=>{const s={start(d){let u=!1;return d.buttons===1&&(u=E(),u&&(o.isDisabled||y())),u},ing:d=>{_(d)},end:()=>{S()}};f.value&&new G.Drag(f.value,s)};return n.onMounted(()=>{n.nextTick(()=>{T()})}),(s,d)=>(n.openBlock(),n.createElementBlock("span",{ref_key:"refElButton",ref:f,class:n.normalizeClass(m.value)},[n.renderSlot(s.$slots,"icon")],2))}}),Q=n.defineComponent({name:"ClInputNumber",components:{ClInput:j._sfc_main,ClInputnumberButton:J},__name:"Index",props:{size:{type:String,default:"large",validator:a=>["","large","small"].indexOf(a)!==-1},btnShowType:{type:String,default:"fixed",validator:a=>["fixed","focus"].indexOf(a)!==-1},btnTheme:{type:String,default:"leftRight",validator:a=>["leftRight","upDown"].indexOf(a)!==-1},value:{type:[String,Number],default:""},placeholder:{type:String,default:""},className:{type:String,default:""},disabled:{type:Boolean,default:!1},isClean:{type:Boolean,default:!0},isTextRead:{type:Boolean,default:!1},min:{type:Number,default:void 0},max:{type:Number,default:void 0},isLoop:{type:Boolean,default:!1},decimal:{type:Number,default:0},fillZeroCount:{type:Number,default:0},btnStep:{type:Number,default:1},btnClsIconSub:{type:String,default:""},btnClsIconAdd:{type:String,default:""},operateBtnDownBeforeCallback:Function,calculationOperateValueCallback:Function},emits:["update:value","onChange"],setup(a,{emit:x}){const o=a,B=x,f=n.ref(null),r=n.reactive({isHover:!1,isFocus:!1}),m=n.ref(""),p=n.reactive({subtractDisabled:!1,addDisabled:!1}),v={upDown:{subtract:"clIconFont clIcon-angle-up",add:"clIconFont clIcon-angle-down"},leftRight:{subtract:"clIconFont clIcon-minus",add:"clIconFont clIcon-plus"},btnShowFixed:o.btnShowType==="fixed",btnShowFocus:o.btnShowType==="focus"},E=n.computed(()=>!i.CommonBase.isUndefined(K.textPrepend)),D=n.computed(()=>{const t=o.decimal||0,e=(o.btnStep||1).toString();let l=t;if(e.indexOf(".")>-1){const c=e.split(".")[1].length;t<c&&(l=c)}return l}),y=n.computed(()=>(o.fillZeroCount||0)>0),_=n.computed(()=>{const t={"panel-inputNumber":!0,"inputNumber-disabled":o.disabled||!1},{className:e,size:l}=o;return e&&!i.CommonBase.isEmpty(e)&&e.split(" ").forEach(c=>{i.CommonBase.isEmpty(c)||(t[c]=!0)}),t[`inputNumber-btn-${o.btnTheme||"leftRight"}`]=!0,t[`inputNumber-btn-${o.btnShowType||"fixed"}`]=!0,t["inputNumber-hover"]=r.isHover,t["inputNumber-focus"]=r.isFocus,t[`inputNumber-${l||"large"}`]=!0,t}),S=n.computed(()=>{const t={};let e="";if(o.btnClsIconSub&&!i.CommonBase.isEmpty(o.btnClsIconSub))e=o.btnClsIconSub;else{const l=o.btnTheme||"leftRight";v[l]&&(e=v[l].subtract)}return e.length>0&&(t[e]=!0),t}),T=n.computed(()=>{const t={};let e="";if(o.btnClsIconAdd&&!i.CommonBase.isEmpty(o.btnClsIconAdd))e=o.btnClsIconAdd;else{const l=o.btnTheme||"leftRight";v[l]&&(e=v[l].add)}return e.length>0&&(t[e]=!0),t}),s=()=>{const t=m.value;B("update:value",t),B("onChange",t)},d=t=>{t===m.value&&f.value?.setValue(t),m.value=t},u=(t,e)=>{let l,c=!1,C=!1;if(o.calculationOperateValueCallback){const w=o.calculationOperateValueCallback({value:t,type:e});l=w.value,c=w.subtractDisabled,C=w.addDisabled}else{const w=i.CommonBase.isEmpty(t)?0:Number(t),h=o.min,I=o.max,{isLoop:N=!1}=o,F=i.CommonBase.isUndefined(h),R=i.CommonBase.isUndefined(I),Z=o.btnStep||1;let b=w;if(e&&!i.CommonBase.isEmpty(e)){b+=Z*(e==="subtract"?-1:1);const V=b.toString();if(V.indexOf(".")>-1){const H=V.split(".")[1].length,$=D.value;$.toString().length<H&&(b=Number(b.toFixed($)))}}!F&&b<=h?(N||(c=!0),l=b<h&&N&&!R?I:h):!R&&b>=I?(N||(C=!0),l=b>I&&N&&!F?h:I):l=b}y.value&&(l=i.CommonBase.getFillZero(l)),d(l.toString()),p.subtractDisabled=c,p.addDisabled=C},g=t=>{r.isFocus=t,t&&f.value?.focus()},M=()=>{u(o.value)};n.onMounted(()=>{n.nextTick(()=>{M()})}),n.watch(()=>o.value,(t,e)=>{t!==e&&t!==m.value&&u(t)});let k;const q=t=>{o.disabled||(k&&(clearTimeout(k),k=null),k=setTimeout(()=>{i.CommonBase.isEmpty(t)?(d(""),p.subtractDisabled=!1,p.addDisabled=!1):u(t),s()},100))},z=t=>{if(!o.disabled&&!o.isTextRead){let e=t.keyCode;i.CommonBase.isUndefined(e)||(e=e.toString(),e==="37"||e==="40"?(u(m.value,"subtract"),g(!0)):(e==="38"||e==="39")&&(u(m.value,"add"),g(!0)))}},A=t=>{if(!o.disabled&&!o.isTextRead){let e=t.keyCode;i.CommonBase.isUndefined(e)||(e=e.toString(),(e==="37"||e==="40"||e==="38"||e==="39")&&(g(!0),s()))}},P=()=>{g(!0)},U=()=>{g(!1)},L=t=>{u(m.value,t),g(!0)},O=()=>{s(),g(!0)},K=n.useSlots();return(t,e)=>{const l=n.resolveComponent("cl-input"),c=n.resolveComponent("cl-inputnumber-button");return n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(_.value)},[n.createVNode(l,{ref_key:"refElInput",ref:f,value:m.value,placeholder:a.placeholder,disabled:a.disabled,isReadonly:a.isTextRead,isClean:a.isClean,isNumber:!y.value,decimal:D.value,theme:"icon",onOnChange:q,onOnKeydown:z,onOnKeyup:A,onOnFocus:P,onOnBlur:U},n.createSlots({_:2},[E.value?{name:"prepend",fn:n.withCtx(()=>[n.renderSlot(t.$slots,"textPrepend")]),key:"0"}:void 0]),1032,["value","placeholder","disabled","isReadonly","isClean","isNumber","decimal"]),n.createVNode(c,{className:"inputNumber-subtract",isDisabled:a.disabled||p.subtractDisabled,checkDownBeforeCallback:a.operateBtnDownBeforeCallback,onOnLongDownStart:e[0]||(e[0]=C=>L("subtract")),onOnLongDownEnd:e[1]||(e[1]=C=>O())},{icon:n.withCtx(()=>[n.createElementVNode("i",{class:n.normalizeClass(S.value)},null,2)]),_:1},8,["isDisabled","checkDownBeforeCallback"]),n.createVNode(c,{className:"inputNumber-add",isDisabled:a.disabled||p.addDisabled,checkDownBeforeCallback:a.operateBtnDownBeforeCallback,onOnLongDownStart:e[2]||(e[2]=C=>L("add")),onOnLongDownEnd:e[3]||(e[3]=C=>O())},{icon:n.withCtx(()=>[n.createElementVNode("i",{class:n.normalizeClass(T.value)},null,2)]),_:1},8,["isDisabled","checkDownBeforeCallback"])],2)}}});exports._sfc_main=Q;
|
|
2
|
+
//# sourceMappingURL=Index.vue_vue_type_script_setup_true_lang-Cjhn8JLr.js.map
|