@cldemo/ui-kit 1.0.5 → 1.0.7
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/package.json +2 -2
- package/buildLibs/all/index.cjs +0 -99
- package/buildLibs/all/index.cjs.map +0 -1
- package/buildLibs/all/index.d.ts +0 -83
- package/buildLibs/all/index.js +0 -168
- package/buildLibs/all/index.js.map +0 -1
- package/buildLibs/common/Element/Event/drag.d.ts +0 -24
- package/buildLibs/common/Element/Event/index.d.ts +0 -9
- package/buildLibs/common/Element/Event/resize.d.ts +0 -20
- package/buildLibs/common/Element/index.d.ts +0 -104
- package/buildLibs/common/Element_Event_drag-DeZYlveu.js +0 -430
- package/buildLibs/common/Element_Event_drag-DeZYlveu.js.map +0 -1
- package/buildLibs/common/Element_Event_drag-L_ZT9whD.cjs +0 -3
- package/buildLibs/common/Element_Event_drag-L_ZT9whD.cjs.map +0 -1
- package/buildLibs/common/Element_Event_resize-DA_sUt40.cjs +0 -2
- package/buildLibs/common/Element_Event_resize-DA_sUt40.cjs.map +0 -1
- package/buildLibs/common/Element_Event_resize-DqH_UT2k.js +0 -49
- package/buildLibs/common/Element_Event_resize-DqH_UT2k.js.map +0 -1
- package/buildLibs/common/Tools/animateEasing.d.ts +0 -27
- package/buildLibs/common/Tools/cookie.d.ts +0 -8
- package/buildLibs/common/Tools/delayFun.d.ts +0 -9
- package/buildLibs/common/Tools/index.d.ts +0 -15
- package/buildLibs/common/Tools/localStorage.d.ts +0 -9
- package/buildLibs/common/Tools/number.d.ts +0 -8
- package/buildLibs/common/Tools_animateEasing-C6TmrmvZ.cjs +0 -2
- package/buildLibs/common/Tools_animateEasing-C6TmrmvZ.cjs.map +0 -1
- package/buildLibs/common/Tools_animateEasing-D0lY_Vn8.js +0 -50
- package/buildLibs/common/Tools_animateEasing-D0lY_Vn8.js.map +0 -1
- package/buildLibs/common/Tools_cookie-CCTgXZb7.cjs +0 -2
- package/buildLibs/common/Tools_cookie-CCTgXZb7.cjs.map +0 -1
- package/buildLibs/common/Tools_cookie-DKctMXdK.js +0 -31
- package/buildLibs/common/Tools_cookie-DKctMXdK.js.map +0 -1
- package/buildLibs/common/Tools_delayFun-CA1ktv1L.js +0 -21
- package/buildLibs/common/Tools_delayFun-CA1ktv1L.js.map +0 -1
- package/buildLibs/common/Tools_delayFun-DYTkzlXE.cjs +0 -2
- package/buildLibs/common/Tools_delayFun-DYTkzlXE.cjs.map +0 -1
- package/buildLibs/common/Tools_localStorage-Cbecy4gj.cjs +0 -2
- package/buildLibs/common/Tools_localStorage-Cbecy4gj.cjs.map +0 -1
- package/buildLibs/common/Tools_localStorage-DVvhtzhL.js +0 -48
- package/buildLibs/common/Tools_localStorage-DVvhtzhL.js.map +0 -1
- package/buildLibs/common/Tools_number-Bh6hGO5U.cjs +0 -2
- package/buildLibs/common/Tools_number-Bh6hGO5U.cjs.map +0 -1
- package/buildLibs/common/Tools_number-C_MjN473.js +0 -22
- package/buildLibs/common/Tools_number-C_MjN473.js.map +0 -1
- package/buildLibs/common/axios-DZoeNi6y.cjs +0 -2
- package/buildLibs/common/axios-DZoeNi6y.cjs.map +0 -1
- package/buildLibs/common/axios-DqkFEq4Y.js +0 -242
- package/buildLibs/common/axios-DqkFEq4Y.js.map +0 -1
- package/buildLibs/common/axios.d.ts +0 -28
- package/buildLibs/common/base-PQGakkrl.js +0 -808
- package/buildLibs/common/base-PQGakkrl.js.map +0 -1
- package/buildLibs/common/base-iCmnU-fv.cjs +0 -2
- package/buildLibs/common/base-iCmnU-fv.cjs.map +0 -1
- package/buildLibs/common/base.d.ts +0 -222
- package/buildLibs/common/day-BzMalBXj.cjs +0 -2
- package/buildLibs/common/day-BzMalBXj.cjs.map +0 -1
- package/buildLibs/common/day-Dm_AnEZp.js +0 -75
- package/buildLibs/common/day-Dm_AnEZp.js.map +0 -1
- package/buildLibs/common/day.d.ts +0 -25
- package/buildLibs/common/echart-BtfUJ8lE.js +0 -498
- package/buildLibs/common/echart-BtfUJ8lE.js.map +0 -1
- package/buildLibs/common/echart-Cs3rQ-e9.cjs +0 -2
- package/buildLibs/common/echart-Cs3rQ-e9.cjs.map +0 -1
- package/buildLibs/common/echart.d.ts +0 -82
- package/buildLibs/common/i18n/en.d.ts +0 -111
- package/buildLibs/common/i18n/index.d.ts +0 -25
- package/buildLibs/common/i18n/zh_CN.d.ts +0 -111
- package/buildLibs/common/i18n_en-BHhFEbi6.js +0 -114
- package/buildLibs/common/i18n_en-BHhFEbi6.js.map +0 -1
- package/buildLibs/common/i18n_en-D-5antzy.cjs +0 -2
- package/buildLibs/common/i18n_en-D-5antzy.cjs.map +0 -1
- package/buildLibs/common/i18n_zh_CN-COzQ8Los.js +0 -114
- package/buildLibs/common/i18n_zh_CN-COzQ8Los.js.map +0 -1
- package/buildLibs/common/i18n_zh_CN-DTZIQXOQ.cjs +0 -2
- package/buildLibs/common/i18n_zh_CN-DTZIQXOQ.cjs.map +0 -1
- package/buildLibs/common/index.cjs +0 -2
- package/buildLibs/common/index.cjs.map +0 -1
- package/buildLibs/common/index.d.ts +0 -10
- package/buildLibs/common/index.js +0 -124
- package/buildLibs/common/index.js.map +0 -1
- package/buildLibs/common/promise-BtoePzHD.cjs +0 -2
- package/buildLibs/common/promise-BtoePzHD.cjs.map +0 -1
- package/buildLibs/common/promise-CPiVqqqL.js +0 -44
- package/buildLibs/common/promise-CPiVqqqL.js.map +0 -1
- package/buildLibs/common/promise.d.ts +0 -14
- package/buildLibs/common/tooltip-De0atcAJ.js +0 -215
- package/buildLibs/common/tooltip-De0atcAJ.js.map +0 -1
- package/buildLibs/common/tooltip-Dj_ol2ax.cjs +0 -2
- package/buildLibs/common/tooltip-Dj_ol2ax.cjs.map +0 -1
- package/buildLibs/common/tooltip.d.ts +0 -37
- package/buildLibs/mobile/index.cjs +0 -56
- package/buildLibs/mobile/index.cjs.map +0 -1
- package/buildLibs/mobile/index.d.ts +0 -47
- package/buildLibs/mobile/index.js +0 -96
- package/buildLibs/mobile/index.js.map +0 -1
- package/buildLibs/resolver/index.cjs +0 -2
- package/buildLibs/resolver/index.cjs.map +0 -1
- package/buildLibs/resolver/index.js +0 -82
- package/buildLibs/resolver/index.js.map +0 -1
- package/buildLibs/resolver/resolver.d.ts +0 -7
- package/buildLibs/utils/Element/ClAnchorNav.cjs +0 -2
- package/buildLibs/utils/Element/ClAnchorNav.cjs.map +0 -1
- package/buildLibs/utils/Element/ClAnchorNav.css +0 -1
- package/buildLibs/utils/Element/ClAnchorNav.d.ts +0 -3
- package/buildLibs/utils/Element/ClAnchorNav.js +0 -55
- package/buildLibs/utils/Element/ClAnchorNav.js.map +0 -1
- package/buildLibs/utils/Element/ClBadge.cjs +0 -2
- package/buildLibs/utils/Element/ClBadge.cjs.map +0 -1
- package/buildLibs/utils/Element/ClBadge.d.ts +0 -3
- package/buildLibs/utils/Element/ClBadge.js +0 -5
- package/buildLibs/utils/Element/ClBadge.js.map +0 -1
- package/buildLibs/utils/Element/ClButton.cjs +0 -2
- package/buildLibs/utils/Element/ClButton.cjs.map +0 -1
- package/buildLibs/utils/Element/ClButton.css +0 -1
- package/buildLibs/utils/Element/ClButton.d.ts +0 -3
- package/buildLibs/utils/Element/ClButton.js +0 -226
- package/buildLibs/utils/Element/ClButton.js.map +0 -1
- package/buildLibs/utils/Element/ClCheckbox.cjs +0 -2
- package/buildLibs/utils/Element/ClCheckbox.cjs.map +0 -1
- package/buildLibs/utils/Element/ClCheckbox.d.ts +0 -3
- package/buildLibs/utils/Element/ClCheckbox.js +0 -205
- package/buildLibs/utils/Element/ClCheckbox.js.map +0 -1
- package/buildLibs/utils/Element/ClCheckboxOne.d.ts +0 -3
- package/buildLibs/utils/Element/ClClipboard.cjs +0 -2
- package/buildLibs/utils/Element/ClClipboard.cjs.map +0 -1
- package/buildLibs/utils/Element/ClClipboard.d.ts +0 -3
- package/buildLibs/utils/Element/ClClipboard.js +0 -5
- package/buildLibs/utils/Element/ClClipboard.js.map +0 -1
- package/buildLibs/utils/Element/ClCountup.cjs +0 -2
- package/buildLibs/utils/Element/ClCountup.cjs.map +0 -1
- package/buildLibs/utils/Element/ClCountup.d.ts +0 -3
- package/buildLibs/utils/Element/ClCountup.js +0 -56
- package/buildLibs/utils/Element/ClCountup.js.map +0 -1
- package/buildLibs/utils/Element/ClCropper.cjs +0 -2
- package/buildLibs/utils/Element/ClCropper.cjs.map +0 -1
- package/buildLibs/utils/Element/ClCropper.d.ts +0 -3
- package/buildLibs/utils/Element/ClCropper.js +0 -5
- package/buildLibs/utils/Element/ClCropper.js.map +0 -1
- package/buildLibs/utils/Element/ClCropperPreview.css +0 -1
- package/buildLibs/utils/Element/ClDarg.cjs +0 -7
- package/buildLibs/utils/Element/ClDarg.cjs.map +0 -1
- package/buildLibs/utils/Element/ClDarg.css +0 -1
- package/buildLibs/utils/Element/ClDarg.d.ts +0 -3
- package/buildLibs/utils/Element/ClDarg.js +0 -1554
- package/buildLibs/utils/Element/ClDarg.js.map +0 -1
- package/buildLibs/utils/Element/ClEllipsis.cjs +0 -2
- package/buildLibs/utils/Element/ClEllipsis.cjs.map +0 -1
- package/buildLibs/utils/Element/ClEllipsis.css +0 -1
- package/buildLibs/utils/Element/ClEllipsis.d.ts +0 -3
- package/buildLibs/utils/Element/ClEllipsis.js +0 -99
- package/buildLibs/utils/Element/ClEllipsis.js.map +0 -1
- package/buildLibs/utils/Element/ClForm.cjs +0 -2
- package/buildLibs/utils/Element/ClForm.cjs.map +0 -1
- package/buildLibs/utils/Element/ClForm.css +0 -1
- package/buildLibs/utils/Element/ClForm.d.ts +0 -3
- package/buildLibs/utils/Element/ClForm.js +0 -139
- package/buildLibs/utils/Element/ClForm.js.map +0 -1
- package/buildLibs/utils/Element/ClFormGroup.cjs +0 -2
- package/buildLibs/utils/Element/ClFormGroup.cjs.map +0 -1
- package/buildLibs/utils/Element/ClFormGroup.css +0 -1
- package/buildLibs/utils/Element/ClFormGroup.d.ts +0 -3
- package/buildLibs/utils/Element/ClFormGroup.js +0 -76
- package/buildLibs/utils/Element/ClFormGroup.js.map +0 -1
- package/buildLibs/utils/Element/ClFormValidate.d.ts +0 -3
- package/buildLibs/utils/Element/ClIconFont.cjs +0 -2
- package/buildLibs/utils/Element/ClIconFont.cjs.map +0 -1
- package/buildLibs/utils/Element/ClIconFont.d.ts +0 -3
- package/buildLibs/utils/Element/ClIconFont.js +0 -5
- package/buildLibs/utils/Element/ClIconFont.js.map +0 -1
- package/buildLibs/utils/Element/ClImage.cjs +0 -2
- package/buildLibs/utils/Element/ClImage.cjs.map +0 -1
- package/buildLibs/utils/Element/ClImage.css +0 -1
- package/buildLibs/utils/Element/ClImage.d.ts +0 -3
- package/buildLibs/utils/Element/ClImage.js +0 -195
- package/buildLibs/utils/Element/ClImage.js.map +0 -1
- package/buildLibs/utils/Element/ClInput.cjs +0 -2
- package/buildLibs/utils/Element/ClInput.cjs.map +0 -1
- package/buildLibs/utils/Element/ClInput.d.ts +0 -3
- package/buildLibs/utils/Element/ClInput.js +0 -5
- package/buildLibs/utils/Element/ClInput.js.map +0 -1
- package/buildLibs/utils/Element/ClInputCaptcha.cjs +0 -2
- package/buildLibs/utils/Element/ClInputCaptcha.cjs.map +0 -1
- package/buildLibs/utils/Element/ClInputCaptcha.css +0 -1
- package/buildLibs/utils/Element/ClInputCaptcha.d.ts +0 -3
- package/buildLibs/utils/Element/ClInputCaptcha.js +0 -111
- package/buildLibs/utils/Element/ClInputCaptcha.js.map +0 -1
- package/buildLibs/utils/Element/ClInputNumber.cjs +0 -2
- package/buildLibs/utils/Element/ClInputNumber.cjs.map +0 -1
- package/buildLibs/utils/Element/ClInputNumber.d.ts +0 -3
- package/buildLibs/utils/Element/ClInputNumber.js +0 -5
- package/buildLibs/utils/Element/ClInputNumber.js.map +0 -1
- package/buildLibs/utils/Element/ClInputSearch.cjs +0 -2
- package/buildLibs/utils/Element/ClInputSearch.cjs.map +0 -1
- package/buildLibs/utils/Element/ClInputSearch.d.ts +0 -3
- package/buildLibs/utils/Element/ClInputSearch.js +0 -5
- package/buildLibs/utils/Element/ClInputSearch.js.map +0 -1
- package/buildLibs/utils/Element/ClInputTag.css +0 -1
- package/buildLibs/utils/Element/ClInputTextarea.cjs +0 -2
- package/buildLibs/utils/Element/ClInputTextarea.cjs.map +0 -1
- package/buildLibs/utils/Element/ClInputTextarea.d.ts +0 -3
- package/buildLibs/utils/Element/ClInputTextarea.js +0 -5
- package/buildLibs/utils/Element/ClInputTextarea.js.map +0 -1
- package/buildLibs/utils/Element/ClInputnumberButton.d.ts +0 -3
- package/buildLibs/utils/Element/ClLink.cjs +0 -2
- package/buildLibs/utils/Element/ClLink.cjs.map +0 -1
- package/buildLibs/utils/Element/ClLink.d.ts +0 -3
- package/buildLibs/utils/Element/ClLink.js +0 -5
- package/buildLibs/utils/Element/ClLink.js.map +0 -1
- package/buildLibs/utils/Element/ClLoad.cjs +0 -2
- package/buildLibs/utils/Element/ClLoad.cjs.map +0 -1
- package/buildLibs/utils/Element/ClLoad.d.ts +0 -3
- package/buildLibs/utils/Element/ClLoad.js +0 -5
- package/buildLibs/utils/Element/ClLoad.js.map +0 -1
- package/buildLibs/utils/Element/ClLoadFullCenter.d.ts +0 -3
- package/buildLibs/utils/Element/ClLoadIng.d.ts +0 -3
- package/buildLibs/utils/Element/ClLoadScreen.cjs +0 -2
- package/buildLibs/utils/Element/ClLoadScreen.cjs.map +0 -1
- package/buildLibs/utils/Element/ClLoadScreen.d.ts +0 -3
- package/buildLibs/utils/Element/ClLoadScreen.js +0 -5
- package/buildLibs/utils/Element/ClLoadScreen.js.map +0 -1
- package/buildLibs/utils/Element/ClLoadWarp.d.ts +0 -3
- package/buildLibs/utils/Element/ClModal.cjs +0 -2
- package/buildLibs/utils/Element/ClModal.cjs.map +0 -1
- package/buildLibs/utils/Element/ClModal.d.ts +0 -3
- package/buildLibs/utils/Element/ClModal.js +0 -5
- package/buildLibs/utils/Element/ClModal.js.map +0 -1
- package/buildLibs/utils/Element/ClProgress.cjs +0 -2
- package/buildLibs/utils/Element/ClProgress.cjs.map +0 -1
- package/buildLibs/utils/Element/ClProgress.css +0 -1
- package/buildLibs/utils/Element/ClProgress.d.ts +0 -3
- package/buildLibs/utils/Element/ClProgress.js +0 -219
- package/buildLibs/utils/Element/ClProgress.js.map +0 -1
- package/buildLibs/utils/Element/ClRadio.cjs +0 -2
- package/buildLibs/utils/Element/ClRadio.cjs.map +0 -1
- package/buildLibs/utils/Element/ClRadio.d.ts +0 -3
- package/buildLibs/utils/Element/ClRadio.js +0 -176
- package/buildLibs/utils/Element/ClRadio.js.map +0 -1
- package/buildLibs/utils/Element/ClRadioOne.d.ts +0 -3
- package/buildLibs/utils/Element/ClSlider.cjs +0 -2
- package/buildLibs/utils/Element/ClSlider.cjs.map +0 -1
- package/buildLibs/utils/Element/ClSlider.css +0 -1
- package/buildLibs/utils/Element/ClSlider.d.ts +0 -3
- package/buildLibs/utils/Element/ClSlider.js +0 -721
- package/buildLibs/utils/Element/ClSlider.js.map +0 -1
- package/buildLibs/utils/Element/ClSwitchery.cjs +0 -2
- package/buildLibs/utils/Element/ClSwitchery.cjs.map +0 -1
- package/buildLibs/utils/Element/ClSwitchery.css +0 -1
- package/buildLibs/utils/Element/ClSwitchery.d.ts +0 -3
- package/buildLibs/utils/Element/ClSwitchery.js +0 -429
- package/buildLibs/utils/Element/ClSwitchery.js.map +0 -1
- package/buildLibs/utils/Element/ClTags.cjs +0 -2
- package/buildLibs/utils/Element/ClTags.cjs.map +0 -1
- package/buildLibs/utils/Element/ClTags.d.ts +0 -3
- package/buildLibs/utils/Element/ClTags.js +0 -5
- package/buildLibs/utils/Element/ClTags.js.map +0 -1
- package/buildLibs/utils/Element/ClTransitionSlideupdown.d.ts +0 -3
- package/buildLibs/utils/Element/ClWaterfall.cjs +0 -2
- package/buildLibs/utils/Element/ClWaterfall.cjs.map +0 -1
- package/buildLibs/utils/Element/ClWaterfall.css +0 -1
- package/buildLibs/utils/Element/ClWaterfall.d.ts +0 -3
- package/buildLibs/utils/Element/ClWaterfall.js +0 -167
- package/buildLibs/utils/Element/ClWaterfall.js.map +0 -1
- package/buildLibs/utils/Element/ClWaterfallImage.d.ts +0 -3
- package/buildLibs/utils/Element/__provide__/Clipboard.cjs +0 -2
- package/buildLibs/utils/Element/__provide__/Clipboard.cjs.map +0 -1
- package/buildLibs/utils/Element/__provide__/Clipboard.d.ts +0 -2
- package/buildLibs/utils/Element/__provide__/Clipboard.js +0 -62
- package/buildLibs/utils/Element/__provide__/Clipboard.js.map +0 -1
- package/buildLibs/utils/Element/__provide__/LoadScreen.cjs +0 -2
- package/buildLibs/utils/Element/__provide__/LoadScreen.cjs.map +0 -1
- package/buildLibs/utils/Element/__provide__/LoadScreen.d.ts +0 -2
- package/buildLibs/utils/Element/__provide__/LoadScreen.js +0 -17
- package/buildLibs/utils/Element/__provide__/LoadScreen.js.map +0 -1
- package/buildLibs/utils/Element/__provide__/languagePack.cjs +0 -2
- package/buildLibs/utils/Element/__provide__/languagePack.cjs.map +0 -1
- package/buildLibs/utils/Element/__provide__/languagePack.d.ts +0 -2
- package/buildLibs/utils/Element/__provide__/languagePack.js +0 -29
- package/buildLibs/utils/Element/__provide__/languagePack.js.map +0 -1
- package/buildLibs/utils/Mobile/ClCell.cjs +0 -2
- package/buildLibs/utils/Mobile/ClCell.cjs.map +0 -1
- package/buildLibs/utils/Mobile/ClCell.css +0 -1
- package/buildLibs/utils/Mobile/ClCell.d.ts +0 -3
- package/buildLibs/utils/Mobile/ClCell.js +0 -130
- package/buildLibs/utils/Mobile/ClCell.js.map +0 -1
- package/buildLibs/utils/Mobile/ClPullToRefresh.cjs +0 -2
- package/buildLibs/utils/Mobile/ClPullToRefresh.cjs.map +0 -1
- package/buildLibs/utils/Mobile/ClPullToRefresh.css +0 -1
- package/buildLibs/utils/Mobile/ClPullToRefresh.d.ts +0 -3
- package/buildLibs/utils/Mobile/ClPullToRefresh.js +0 -195
- package/buildLibs/utils/Mobile/ClPullToRefresh.js.map +0 -1
- package/buildLibs/utils/Shared/Alert.css +0 -1
- package/buildLibs/utils/Shared/Base.css +0 -1
- package/buildLibs/utils/Shared/Base.vue_vue_type_script_setup_true_lang-C_-WLPmH.js +0 -2
- package/buildLibs/utils/Shared/Base.vue_vue_type_script_setup_true_lang-C_-WLPmH.js.map +0 -1
- package/buildLibs/utils/Shared/Base.vue_vue_type_script_setup_true_lang-Duh9tbur.js +0 -354
- package/buildLibs/utils/Shared/Base.vue_vue_type_script_setup_true_lang-Duh9tbur.js.map +0 -1
- package/buildLibs/utils/Shared/BaseTransition.css +0 -1
- package/buildLibs/utils/Shared/BaseTransition.vue_vue_type_script_setup_true_lang-DEXehdBc.js +0 -2
- package/buildLibs/utils/Shared/BaseTransition.vue_vue_type_script_setup_true_lang-DEXehdBc.js.map +0 -1
- package/buildLibs/utils/Shared/BaseTransition.vue_vue_type_script_setup_true_lang-DLAYzSgX.js +0 -121
- package/buildLibs/utils/Shared/BaseTransition.vue_vue_type_script_setup_true_lang-DLAYzSgX.js.map +0 -1
- package/buildLibs/utils/Shared/Highlight.css +0 -1
- package/buildLibs/utils/Shared/Index.css +0 -1
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-AhjUdZHr.js +0 -233
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-AhjUdZHr.js.map +0 -1
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-B3Jxjv3S.js +0 -75
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-B3Jxjv3S.js.map +0 -1
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-BSTGdmJD.js +0 -2
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-BSTGdmJD.js.map +0 -1
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-BWdaQyLA.js +0 -2
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-BWdaQyLA.js.map +0 -1
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-BYmK-TqX.js +0 -2
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-BYmK-TqX.js.map +0 -1
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-B_jfFc6B.js +0 -143
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-B_jfFc6B.js.map +0 -1
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-BjRPiJPA.js +0 -2
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-BjRPiJPA.js.map +0 -1
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-Bv5Aqano.js +0 -24
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-Bv5Aqano.js.map +0 -1
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-BvGrVSSF.js +0 -1146
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-BvGrVSSF.js.map +0 -1
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-BxtgFrvB.js +0 -336
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-BxtgFrvB.js.map +0 -1
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-C1ANWb2_.js +0 -2
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-C1ANWb2_.js.map +0 -1
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-C4XFCLbD.js +0 -2
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-C4XFCLbD.js.map +0 -1
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-C4rRquU-.js +0 -165
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-C4rRquU-.js.map +0 -1
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-CIdipm_Z.js +0 -2
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-CIdipm_Z.js.map +0 -1
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-CNa69faz.js +0 -168
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-CNa69faz.js.map +0 -1
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-CPWxeZzn.js +0 -2
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-CPWxeZzn.js.map +0 -1
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-CVPvV5cZ.js +0 -2
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-CVPvV5cZ.js.map +0 -1
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-CejRfZxl.js +0 -70
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-CejRfZxl.js.map +0 -1
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-Cjhn8JLr.js +0 -2
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-Cjhn8JLr.js.map +0 -1
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-Cuv5NgcY.js +0 -84
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-Cuv5NgcY.js.map +0 -1
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-D5cJAhwe.js +0 -2
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-D5cJAhwe.js.map +0 -1
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-DKAxas3I.js +0 -98
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-DKAxas3I.js.map +0 -1
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-DWw1B8Z2.js +0 -342
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-DWw1B8Z2.js.map +0 -1
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-Da4Z8GsB.js +0 -166
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-Da4Z8GsB.js.map +0 -1
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-Dd2V82en.js +0 -2
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-Dd2V82en.js.map +0 -1
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-DfYsa_hk.js +0 -2
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-DfYsa_hk.js.map +0 -1
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-DlCXpiu6.js +0 -384
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-DlCXpiu6.js.map +0 -1
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-DpxHzkjC.js +0 -462
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-DpxHzkjC.js.map +0 -1
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-Ds2Q0eNQ.js +0 -2
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-Ds2Q0eNQ.js.map +0 -1
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-DxWcQL_8.js +0 -2
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-DxWcQL_8.js.map +0 -1
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-HDdyVujM.js +0 -2
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-HDdyVujM.js.map +0 -1
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-SO7WBNgE.js +0 -2
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-SO7WBNgE.js.map +0 -1
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-_Zu2nb2q.js +0 -593
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-_Zu2nb2q.js.map +0 -1
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-gzy5AIqr.js +0 -54
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-gzy5AIqr.js.map +0 -1
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-inXYfqWx.js +0 -144
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-inXYfqWx.js.map +0 -1
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-p08PZCov.js +0 -2
- package/buildLibs/utils/Shared/Index.vue_vue_type_script_setup_true_lang-p08PZCov.js.map +0 -1
- package/buildLibs/utils/Shared/Index10.css +0 -1
- package/buildLibs/utils/Shared/Index11.css +0 -1
- package/buildLibs/utils/Shared/Index12.css +0 -1
- package/buildLibs/utils/Shared/Index13.css +0 -1
- package/buildLibs/utils/Shared/Index14.css +0 -1
- package/buildLibs/utils/Shared/Index15.css +0 -1
- package/buildLibs/utils/Shared/Index16.css +0 -1
- package/buildLibs/utils/Shared/Index17.css +0 -1
- package/buildLibs/utils/Shared/Index18.css +0 -1
- package/buildLibs/utils/Shared/Index19.css +0 -1
- package/buildLibs/utils/Shared/Index2.css +0 -1
- package/buildLibs/utils/Shared/Index3.css +0 -1
- package/buildLibs/utils/Shared/Index4.css +0 -1
- package/buildLibs/utils/Shared/Index5.css +0 -1
- package/buildLibs/utils/Shared/Index6.css +0 -1
- package/buildLibs/utils/Shared/Index7.css +0 -1
- package/buildLibs/utils/Shared/Index8.css +0 -1
- package/buildLibs/utils/Shared/Index9.css +0 -1
- package/buildLibs/utils/Shared/Ing-C_3NkQxd.js +0 -43
- package/buildLibs/utils/Shared/Ing-C_3NkQxd.js.map +0 -1
- package/buildLibs/utils/Shared/Ing-D_cd5IxY.js +0 -2
- package/buildLibs/utils/Shared/Ing-D_cd5IxY.js.map +0 -1
- package/buildLibs/utils/Shared/Ing.css +0 -1
- package/buildLibs/utils/Shared/List.vue_vue_type_script_setup_true_lang-Dr6PppOP.js +0 -2
- package/buildLibs/utils/Shared/List.vue_vue_type_script_setup_true_lang-Dr6PppOP.js.map +0 -1
- package/buildLibs/utils/Shared/List.vue_vue_type_script_setup_true_lang-DzmylhZ6.js +0 -141
- package/buildLibs/utils/Shared/List.vue_vue_type_script_setup_true_lang-DzmylhZ6.js.map +0 -1
- package/buildLibs/utils/Shared/Notify.css +0 -1
- package/buildLibs/utils/Shared/One.vue_vue_type_script_setup_true_lang-BuNRS-9u.js +0 -87
- package/buildLibs/utils/Shared/One.vue_vue_type_script_setup_true_lang-BuNRS-9u.js.map +0 -1
- package/buildLibs/utils/Shared/One.vue_vue_type_script_setup_true_lang-E9U8wdGT.js +0 -2
- package/buildLibs/utils/Shared/One.vue_vue_type_script_setup_true_lang-E9U8wdGT.js.map +0 -1
- package/buildLibs/utils/Shared/Popup.vue_vue_type_script_setup_true_lang-CbaTn8Yz.js +0 -109
- package/buildLibs/utils/Shared/Popup.vue_vue_type_script_setup_true_lang-CbaTn8Yz.js.map +0 -1
- package/buildLibs/utils/Shared/Popup.vue_vue_type_script_setup_true_lang-D6uynoJZ.js +0 -2
- package/buildLibs/utils/Shared/Popup.vue_vue_type_script_setup_true_lang-D6uynoJZ.js.map +0 -1
- package/buildLibs/utils/Shared/Tooltip.css +0 -1
- package/buildLibs/utils/Shared/Waves.css +0 -7
- package/buildLibs/utils/Shared/_plugin-vue_export-helper-BHFhmbuH.js +0 -2
- package/buildLibs/utils/Shared/_plugin-vue_export-helper-BHFhmbuH.js.map +0 -1
- package/buildLibs/utils/Shared/_plugin-vue_export-helper-CHgC5LLL.js +0 -10
- package/buildLibs/utils/Shared/_plugin-vue_export-helper-CHgC5LLL.js.map +0 -1
- package/buildLibs/utils/Shared/base-PQGakkrl.js +0 -808
- package/buildLibs/utils/Shared/base-PQGakkrl.js.map +0 -1
- package/buildLibs/utils/Shared/base-iCmnU-fv.js +0 -2
- package/buildLibs/utils/Shared/base-iCmnU-fv.js.map +0 -1
- package/buildLibs/utils/Shared/day-Bz9LfelO.js +0 -75
- package/buildLibs/utils/Shared/day-Bz9LfelO.js.map +0 -1
- package/buildLibs/utils/Shared/day-CvcvgKjb.js +0 -2
- package/buildLibs/utils/Shared/day-CvcvgKjb.js.map +0 -1
- package/buildLibs/utils/Shared/drag-CzE5R222.js +0 -2
- package/buildLibs/utils/Shared/drag-CzE5R222.js.map +0 -1
- package/buildLibs/utils/Shared/drag-CzfhSB0g.js +0 -42
- package/buildLibs/utils/Shared/drag-CzfhSB0g.js.map +0 -1
- package/buildLibs/utils/Shared/index-BnerInzC.js +0 -432
- package/buildLibs/utils/Shared/index-BnerInzC.js.map +0 -1
- package/buildLibs/utils/Shared/index-C1R9HAvS.js +0 -320
- package/buildLibs/utils/Shared/index-C1R9HAvS.js.map +0 -1
- package/buildLibs/utils/Shared/index-CVBh8iTg.js +0 -2
- package/buildLibs/utils/Shared/index-CVBh8iTg.js.map +0 -1
- package/buildLibs/utils/Shared/index-Ul6uY51t.js +0 -3
- package/buildLibs/utils/Shared/index-Ul6uY51t.js.map +0 -1
- package/buildLibs/utils/Shared/language-D6gRWx8H.js +0 -2
- package/buildLibs/utils/Shared/language-D6gRWx8H.js.map +0 -1
- package/buildLibs/utils/Shared/language-DxTlvFs2.js +0 -18
- package/buildLibs/utils/Shared/language-DxTlvFs2.js.map +0 -1
- package/buildLibs/utils/Shared/resize-COkswDOq.js +0 -2
- package/buildLibs/utils/Shared/resize-COkswDOq.js.map +0 -1
- package/buildLibs/utils/Shared/resize-kOWxHVSP.js +0 -54
- package/buildLibs/utils/Shared/resize-kOWxHVSP.js.map +0 -1
- package/buildLibs/utils/Shared/vue-virtual-scroller.css +0 -1
- package/buildLibs/utils/Web/ClBreadcrumb.cjs +0 -2
- package/buildLibs/utils/Web/ClBreadcrumb.cjs.map +0 -1
- package/buildLibs/utils/Web/ClBreadcrumb.css +0 -1
- package/buildLibs/utils/Web/ClBreadcrumb.d.ts +0 -3
- package/buildLibs/utils/Web/ClBreadcrumb.js +0 -82
- package/buildLibs/utils/Web/ClBreadcrumb.js.map +0 -1
- package/buildLibs/utils/Web/ClCalendar.cjs +0 -2
- package/buildLibs/utils/Web/ClCalendar.cjs.map +0 -1
- package/buildLibs/utils/Web/ClCalendar.css +0 -1
- package/buildLibs/utils/Web/ClCalendar.d.ts +0 -3
- package/buildLibs/utils/Web/ClCalendar.js +0 -179
- package/buildLibs/utils/Web/ClCalendar.js.map +0 -1
- package/buildLibs/utils/Web/ClCard.cjs +0 -2
- package/buildLibs/utils/Web/ClCard.cjs.map +0 -1
- package/buildLibs/utils/Web/ClCard.d.ts +0 -3
- package/buildLibs/utils/Web/ClCard.js +0 -5
- package/buildLibs/utils/Web/ClCard.js.map +0 -1
- package/buildLibs/utils/Web/ClCardLegend.cjs +0 -2
- package/buildLibs/utils/Web/ClCardLegend.cjs.map +0 -1
- package/buildLibs/utils/Web/ClCardLegend.css +0 -1
- package/buildLibs/utils/Web/ClCardLegend.d.ts +0 -3
- package/buildLibs/utils/Web/ClCardLegend.js +0 -128
- package/buildLibs/utils/Web/ClCardLegend.js.map +0 -1
- package/buildLibs/utils/Web/ClCollapse.cjs +0 -2
- package/buildLibs/utils/Web/ClCollapse.cjs.map +0 -1
- package/buildLibs/utils/Web/ClCollapse.css +0 -1
- package/buildLibs/utils/Web/ClCollapse.d.ts +0 -3
- package/buildLibs/utils/Web/ClCollapse.js +0 -111
- package/buildLibs/utils/Web/ClCollapse.js.map +0 -1
- package/buildLibs/utils/Web/ClColorpicker.cjs +0 -2
- package/buildLibs/utils/Web/ClColorpicker.cjs.map +0 -1
- package/buildLibs/utils/Web/ClColorpicker.css +0 -1
- package/buildLibs/utils/Web/ClColorpicker.d.ts +0 -3
- package/buildLibs/utils/Web/ClColorpicker.js +0 -1130
- package/buildLibs/utils/Web/ClColorpicker.js.map +0 -1
- package/buildLibs/utils/Web/ClCropperPreview.cjs +0 -2
- package/buildLibs/utils/Web/ClCropperPreview.cjs.map +0 -1
- package/buildLibs/utils/Web/ClCropperPreview.d.ts +0 -3
- package/buildLibs/utils/Web/ClCropperPreview.js +0 -175
- package/buildLibs/utils/Web/ClCropperPreview.js.map +0 -1
- package/buildLibs/utils/Web/ClDatetime.cjs +0 -2
- package/buildLibs/utils/Web/ClDatetime.cjs.map +0 -1
- package/buildLibs/utils/Web/ClDatetime.css +0 -1
- package/buildLibs/utils/Web/ClDatetime.d.ts +0 -3
- package/buildLibs/utils/Web/ClDatetime.js +0 -2002
- package/buildLibs/utils/Web/ClDatetime.js.map +0 -1
- package/buildLibs/utils/Web/ClDropdownmenu.cjs +0 -2
- package/buildLibs/utils/Web/ClDropdownmenu.cjs.map +0 -1
- package/buildLibs/utils/Web/ClDropdownmenu.css +0 -1
- package/buildLibs/utils/Web/ClDropdownmenu.d.ts +0 -3
- package/buildLibs/utils/Web/ClDropdownmenu.js +0 -75
- package/buildLibs/utils/Web/ClDropdownmenu.js.map +0 -1
- package/buildLibs/utils/Web/ClDropdownmenuItem.d.ts +0 -3
- package/buildLibs/utils/Web/ClDropdownpopup.cjs +0 -2
- package/buildLibs/utils/Web/ClDropdownpopup.cjs.map +0 -1
- package/buildLibs/utils/Web/ClDropdownpopup.css +0 -1
- package/buildLibs/utils/Web/ClDropdownpopup.d.ts +0 -3
- package/buildLibs/utils/Web/ClDropdownpopup.js +0 -89
- package/buildLibs/utils/Web/ClDropdownpopup.js.map +0 -1
- package/buildLibs/utils/Web/ClEcharts.cjs +0 -2
- package/buildLibs/utils/Web/ClEcharts.cjs.map +0 -1
- package/buildLibs/utils/Web/ClEcharts.css +0 -1
- package/buildLibs/utils/Web/ClEcharts.d.ts +0 -3
- package/buildLibs/utils/Web/ClEcharts.js +0 -297
- package/buildLibs/utils/Web/ClEcharts.js.map +0 -1
- package/buildLibs/utils/Web/ClFileupload.cjs +0 -2
- package/buildLibs/utils/Web/ClFileupload.cjs.map +0 -1
- package/buildLibs/utils/Web/ClFileupload.d.ts +0 -3
- package/buildLibs/utils/Web/ClFileupload.js +0 -5
- package/buildLibs/utils/Web/ClFileupload.js.map +0 -1
- package/buildLibs/utils/Web/ClInputTag.cjs +0 -6
- package/buildLibs/utils/Web/ClInputTag.cjs.map +0 -1
- package/buildLibs/utils/Web/ClInputTag.d.ts +0 -3
- package/buildLibs/utils/Web/ClInputTag.js +0 -854
- package/buildLibs/utils/Web/ClInputTag.js.map +0 -1
- package/buildLibs/utils/Web/ClPaginate.cjs +0 -2
- package/buildLibs/utils/Web/ClPaginate.cjs.map +0 -1
- package/buildLibs/utils/Web/ClPaginate.css +0 -1
- package/buildLibs/utils/Web/ClPaginate.d.ts +0 -3
- package/buildLibs/utils/Web/ClPaginate.js +0 -167
- package/buildLibs/utils/Web/ClPaginate.js.map +0 -1
- package/buildLibs/utils/Web/ClPortlet.cjs +0 -2
- package/buildLibs/utils/Web/ClPortlet.cjs.map +0 -1
- package/buildLibs/utils/Web/ClPortlet.css +0 -1
- package/buildLibs/utils/Web/ClPortlet.d.ts +0 -3
- package/buildLibs/utils/Web/ClPortlet.js +0 -47
- package/buildLibs/utils/Web/ClPortlet.js.map +0 -1
- package/buildLibs/utils/Web/ClPreview.cjs +0 -2
- package/buildLibs/utils/Web/ClPreview.cjs.map +0 -1
- package/buildLibs/utils/Web/ClPreview.js +0 -5
- package/buildLibs/utils/Web/ClPreview.js.map +0 -1
- package/buildLibs/utils/Web/ClPreviewexample.cjs +0 -2
- package/buildLibs/utils/Web/ClPreviewexample.cjs.map +0 -1
- package/buildLibs/utils/Web/ClPreviewexample.d.ts +0 -3
- package/buildLibs/utils/Web/ClPreviewexample.js +0 -5
- package/buildLibs/utils/Web/ClPreviewexample.js.map +0 -1
- package/buildLibs/utils/Web/ClScrollXFence.cjs +0 -2
- package/buildLibs/utils/Web/ClScrollXFence.cjs.map +0 -1
- package/buildLibs/utils/Web/ClScrollXFence.css +0 -1
- package/buildLibs/utils/Web/ClScrollXFence.d.ts +0 -3
- package/buildLibs/utils/Web/ClScrollXFence.js +0 -107
- package/buildLibs/utils/Web/ClScrollXFence.js.map +0 -1
- package/buildLibs/utils/Web/ClSelect.cjs +0 -2
- package/buildLibs/utils/Web/ClSelect.cjs.map +0 -1
- package/buildLibs/utils/Web/ClSelect.d.ts +0 -3
- package/buildLibs/utils/Web/ClSelect.js +0 -5
- package/buildLibs/utils/Web/ClSelect.js.map +0 -1
- package/buildLibs/utils/Web/ClSelectCascade.cjs +0 -2
- package/buildLibs/utils/Web/ClSelectCascade.cjs.map +0 -1
- package/buildLibs/utils/Web/ClSelectCascade.css +0 -1
- package/buildLibs/utils/Web/ClSelectCascade.d.ts +0 -3
- package/buildLibs/utils/Web/ClSelectCascade.js +0 -222
- package/buildLibs/utils/Web/ClSelectCascade.js.map +0 -1
- package/buildLibs/utils/Web/ClSelectTag.cjs +0 -2
- package/buildLibs/utils/Web/ClSelectTag.cjs.map +0 -1
- package/buildLibs/utils/Web/ClSelectTag.css +0 -1
- package/buildLibs/utils/Web/ClSelectTag.d.ts +0 -3
- package/buildLibs/utils/Web/ClSelectTag.js +0 -249
- package/buildLibs/utils/Web/ClSelectTag.js.map +0 -1
- package/buildLibs/utils/Web/ClSelectTree.cjs +0 -2
- package/buildLibs/utils/Web/ClSelectTree.cjs.map +0 -1
- package/buildLibs/utils/Web/ClSelectTree.css +0 -1
- package/buildLibs/utils/Web/ClSelectTree.d.ts +0 -3
- package/buildLibs/utils/Web/ClSelectTree.js +0 -190
- package/buildLibs/utils/Web/ClSelectTree.js.map +0 -1
- package/buildLibs/utils/Web/ClSelectmove.cjs +0 -2
- package/buildLibs/utils/Web/ClSelectmove.cjs.map +0 -1
- package/buildLibs/utils/Web/ClSelectmove.css +0 -1
- package/buildLibs/utils/Web/ClSelectmove.d.ts +0 -3
- package/buildLibs/utils/Web/ClSelectmove.js +0 -1090
- package/buildLibs/utils/Web/ClSelectmove.js.map +0 -1
- package/buildLibs/utils/Web/ClSidemenu.cjs +0 -2
- package/buildLibs/utils/Web/ClSidemenu.cjs.map +0 -1
- package/buildLibs/utils/Web/ClSidemenu.css +0 -1
- package/buildLibs/utils/Web/ClSidemenu.d.ts +0 -3
- package/buildLibs/utils/Web/ClSidemenu.js +0 -190
- package/buildLibs/utils/Web/ClSidemenu.js.map +0 -1
- package/buildLibs/utils/Web/ClTable.cjs +0 -2
- package/buildLibs/utils/Web/ClTable.cjs.map +0 -1
- package/buildLibs/utils/Web/ClTable.css +0 -1
- package/buildLibs/utils/Web/ClTable.d.ts +0 -3
- package/buildLibs/utils/Web/ClTable.js +0 -1914
- package/buildLibs/utils/Web/ClTable.js.map +0 -1
- package/buildLibs/utils/Web/ClTabs.cjs +0 -2
- package/buildLibs/utils/Web/ClTabs.cjs.map +0 -1
- package/buildLibs/utils/Web/ClTabs.css +0 -1
- package/buildLibs/utils/Web/ClTabs.d.ts +0 -3
- package/buildLibs/utils/Web/ClTabs.js +0 -276
- package/buildLibs/utils/Web/ClTabs.js.map +0 -1
- package/buildLibs/utils/Web/ClTree.cjs +0 -2
- package/buildLibs/utils/Web/ClTree.cjs.map +0 -1
- package/buildLibs/utils/Web/ClTree.css +0 -1
- package/buildLibs/utils/Web/ClTree.d.ts +0 -3
- package/buildLibs/utils/Web/ClTree.js +0 -416
- package/buildLibs/utils/Web/ClTree.js.map +0 -1
- package/buildLibs/utils/Web/ClWeekhour.cjs +0 -2
- package/buildLibs/utils/Web/ClWeekhour.cjs.map +0 -1
- package/buildLibs/utils/Web/ClWeekhour.css +0 -1
- package/buildLibs/utils/Web/ClWeekhour.d.ts +0 -3
- package/buildLibs/utils/Web/ClWeekhour.js +0 -679
- package/buildLibs/utils/Web/ClWeekhour.js.map +0 -1
- package/buildLibs/utils/Web/ClXeditable.cjs +0 -2
- package/buildLibs/utils/Web/ClXeditable.cjs.map +0 -1
- package/buildLibs/utils/Web/ClXeditable.css +0 -1
- package/buildLibs/utils/Web/ClXeditable.d.ts +0 -3
- package/buildLibs/utils/Web/ClXeditable.js +0 -593
- package/buildLibs/utils/Web/ClXeditable.js.map +0 -1
- package/buildLibs/utils/Web/__directive__/Highlight.cjs +0 -4
- package/buildLibs/utils/Web/__directive__/Highlight.cjs.map +0 -1
- package/buildLibs/utils/Web/__directive__/Highlight.d.ts +0 -2
- package/buildLibs/utils/Web/__directive__/Highlight.js +0 -3625
- package/buildLibs/utils/Web/__directive__/Highlight.js.map +0 -1
- package/buildLibs/utils/Web/__directive__/Tooltip.cjs +0 -2
- package/buildLibs/utils/Web/__directive__/Tooltip.cjs.map +0 -1
- package/buildLibs/utils/Web/__directive__/Tooltip.d.ts +0 -2
- package/buildLibs/utils/Web/__directive__/Tooltip.js +0 -356
- package/buildLibs/utils/Web/__directive__/Tooltip.js.map +0 -1
- package/buildLibs/utils/Web/__directive__/Waves.cjs +0 -9
- package/buildLibs/utils/Web/__directive__/Waves.cjs.map +0 -1
- package/buildLibs/utils/Web/__directive__/Waves.d.ts +0 -2
- package/buildLibs/utils/Web/__directive__/Waves.js +0 -256
- package/buildLibs/utils/Web/__directive__/Waves.js.map +0 -1
- package/buildLibs/utils/Web/__provide__/Alert.cjs +0 -2
- package/buildLibs/utils/Web/__provide__/Alert.cjs.map +0 -1
- package/buildLibs/utils/Web/__provide__/Alert.d.ts +0 -2
- package/buildLibs/utils/Web/__provide__/Alert.js +0 -236
- package/buildLibs/utils/Web/__provide__/Alert.js.map +0 -1
- package/buildLibs/utils/Web/__provide__/Notify.cjs +0 -2
- package/buildLibs/utils/Web/__provide__/Notify.cjs.map +0 -1
- package/buildLibs/utils/Web/__provide__/Notify.d.ts +0 -2
- package/buildLibs/utils/Web/__provide__/Notify.js +0 -235
- package/buildLibs/utils/Web/__provide__/Notify.js.map +0 -1
- package/buildLibs/utils/Web/__provide__/Preview.cjs +0 -2
- package/buildLibs/utils/Web/__provide__/Preview.cjs.map +0 -1
- package/buildLibs/utils/Web/__provide__/Preview.d.ts +0 -2
- package/buildLibs/utils/Web/__provide__/Preview.js +0 -26
- package/buildLibs/utils/Web/__provide__/Preview.js.map +0 -1
- package/buildLibs/web/index.cjs +0 -97
- package/buildLibs/web/index.cjs.map +0 -1
- package/buildLibs/web/index.d.ts +0 -81
- package/buildLibs/web/index.js +0 -164
- package/buildLibs/web/index.js.map +0 -1
|
@@ -1,236 +0,0 @@
|
|
|
1
|
-
import { defineComponent as Q, ref as w, reactive as y, watch as R, openBlock as n, createElementBlock as m, createVNode as W, withCtx as X, createElementVNode as g, normalizeClass as Y, createCommentVNode as b, toDisplayString as O, createBlock as F, nextTick as Z, createApp as ee } from "vue";
|
|
2
|
-
import { C as c } from "../../Shared/base-PQGakkrl.js";
|
|
3
|
-
import { _ as oe } from "../../Shared/BaseTransition.vue_vue_type_script_setup_true_lang-DLAYzSgX.js";
|
|
4
|
-
import H from "../../Element/ClButton.js";
|
|
5
|
-
const ce = { class: "alert-body" }, le = {
|
|
6
|
-
key: 0,
|
|
7
|
-
class: "alert-icon"
|
|
8
|
-
}, te = {
|
|
9
|
-
key: 1,
|
|
10
|
-
class: "alert-title"
|
|
11
|
-
}, ne = {
|
|
12
|
-
key: 2,
|
|
13
|
-
class: "alert-text"
|
|
14
|
-
}, se = ["innerHTML"], ie = { key: 1 }, ae = {
|
|
15
|
-
key: 3,
|
|
16
|
-
class: "alert-operate"
|
|
17
|
-
}, re = /* @__PURE__ */ Q({
|
|
18
|
-
name: "ClAlert",
|
|
19
|
-
__name: "Alert",
|
|
20
|
-
props: {
|
|
21
|
-
isBackClick: { type: Boolean },
|
|
22
|
-
submitLabel: {},
|
|
23
|
-
submitColor: {},
|
|
24
|
-
cancelLabel: {},
|
|
25
|
-
cancelColor: {}
|
|
26
|
-
},
|
|
27
|
-
setup(h, { expose: C }) {
|
|
28
|
-
const i = h, s = w(null), l = w(null), a = w(null), r = y({
|
|
29
|
-
isLoadBackClick: !0
|
|
30
|
-
}), o = y({
|
|
31
|
-
isBackClick: !1,
|
|
32
|
-
clsIcon: "",
|
|
33
|
-
isShowIcon: !1,
|
|
34
|
-
title: "",
|
|
35
|
-
isShowTitle: !1,
|
|
36
|
-
text: "",
|
|
37
|
-
html: "",
|
|
38
|
-
isShowTextHtml: !1,
|
|
39
|
-
isShowText: !1,
|
|
40
|
-
submitLabel: "",
|
|
41
|
-
submitIcon: "",
|
|
42
|
-
submitColor: "default",
|
|
43
|
-
cancelLabel: "",
|
|
44
|
-
cancelIcon: "",
|
|
45
|
-
cancelColor: "grayLight",
|
|
46
|
-
isShowSubmit: !1,
|
|
47
|
-
isShowSubmitLoad: !1,
|
|
48
|
-
isShowCancel: !1,
|
|
49
|
-
isShowOperate: !1,
|
|
50
|
-
isShow: !1
|
|
51
|
-
}), t = y({
|
|
52
|
-
submit: null,
|
|
53
|
-
cancel: null
|
|
54
|
-
});
|
|
55
|
-
let S = null;
|
|
56
|
-
const _ = {
|
|
57
|
-
icon: {
|
|
58
|
-
info: "clIconFont clIcon-info-circle color-default",
|
|
59
|
-
success: "clIconFont clIcon-check-circle color-green",
|
|
60
|
-
error: "clIconFont clIcon-exclamation-circle color-red",
|
|
61
|
-
warn: "clIconFont clIcon-warn-fill color-yellow",
|
|
62
|
-
doubt: "clIconFont clIcon-question-circle color-cyan"
|
|
63
|
-
}
|
|
64
|
-
}, L = () => document.querySelector("body"), I = () => document.querySelector("body>.panel-alert"), B = () => {
|
|
65
|
-
const e = I();
|
|
66
|
-
return !c.isUndefined(e);
|
|
67
|
-
}, N = () => {
|
|
68
|
-
B() ? (clearTimeout(S), S = null) : L()?.appendChild(s.value);
|
|
69
|
-
}, A = () => {
|
|
70
|
-
Z(() => {
|
|
71
|
-
B() && (S = setTimeout(() => {
|
|
72
|
-
const e = I();
|
|
73
|
-
L()?.removeChild(e);
|
|
74
|
-
}, 2 * 1e3));
|
|
75
|
-
});
|
|
76
|
-
}, M = (e) => {
|
|
77
|
-
const d = c.isBoolean(e.isBackClick) ? e.isBackClick : i.isBackClick ?? !0;
|
|
78
|
-
let u = "";
|
|
79
|
-
c.isEmpty(e.iconType) || (u = c.isExistJsonKey(_.icon, e.iconType) ? _.icon[e.iconType] : ""), c.isEmpty(u) && !c.isEmpty(e.icon) && (u = e.icon);
|
|
80
|
-
const k = !c.isEmpty(u), p = !c.isEmpty(e.title), T = !c.isEmpty(e.html), E = !c.isEmpty(e.text) || T, J = c.isEmpty(e.submitLabel) ? i.submitLabel || "确定" : e.submitLabel, z = c.isEmpty(e.submitColor) ? i.submitColor || "default" : e.submitColor, j = c.isEmpty(e.cancelLabel) ? i.cancelLabel || "取消" : e.cancelLabel, K = c.isEmpty(e.cancelColor) ? i.cancelColor || "grayLight" : e.cancelColor, x = c.isBoolean(e.isSubmit) ? e.isSubmit : !1, U = c.isBoolean(e.isLoad) ? e.isLoad : !1, v = c.isBoolean(e.isCancel) ? e.isCancel : !1, $ = x || v, G = p || E;
|
|
81
|
-
return {
|
|
82
|
-
isBackClick: d,
|
|
83
|
-
clsIcon: u,
|
|
84
|
-
isShowIcon: k,
|
|
85
|
-
title: e.title,
|
|
86
|
-
isShowTitle: p,
|
|
87
|
-
text: e.text,
|
|
88
|
-
html: e.html,
|
|
89
|
-
isShowTextHtml: T,
|
|
90
|
-
isShowText: E,
|
|
91
|
-
submitLabel: J,
|
|
92
|
-
submitIcon: e.submitIcon,
|
|
93
|
-
submitColor: z,
|
|
94
|
-
isShowSubmit: x,
|
|
95
|
-
isShowSubmitLoad: U,
|
|
96
|
-
cancelLabel: j,
|
|
97
|
-
cancelIcon: e.cancelIcon,
|
|
98
|
-
cancelColor: K,
|
|
99
|
-
isShowCancel: v,
|
|
100
|
-
isShowOperate: $,
|
|
101
|
-
isShow: G
|
|
102
|
-
};
|
|
103
|
-
}, P = (e) => {
|
|
104
|
-
const d = M(e);
|
|
105
|
-
if (N(), d.isShow) {
|
|
106
|
-
for (const [u, k] of Object.entries(d))
|
|
107
|
-
o[u] = k;
|
|
108
|
-
t.submit = e.submitCallback, t.cancel = e.cancelCallback, l.value.show();
|
|
109
|
-
} else
|
|
110
|
-
t.submit = null, t.cancel = null, l.value.hide(), o.isShow = !1;
|
|
111
|
-
}, f = () => {
|
|
112
|
-
l.value.hide(), r.isLoadBackClick = !0, o.isShow = !1;
|
|
113
|
-
};
|
|
114
|
-
R(
|
|
115
|
-
() => o.isShow,
|
|
116
|
-
(e) => {
|
|
117
|
-
e || A();
|
|
118
|
-
}
|
|
119
|
-
);
|
|
120
|
-
const V = () => {
|
|
121
|
-
o.isShowSubmitLoad && (r.isLoadBackClick = !1), c.isFunction(t.submit) ? t.submit() : f();
|
|
122
|
-
}, q = () => {
|
|
123
|
-
f(), c.isFunction(t.cancel) && t.cancel();
|
|
124
|
-
}, D = () => {
|
|
125
|
-
f(), c.isFunction(t.cancel) && t.cancel();
|
|
126
|
-
};
|
|
127
|
-
return C({
|
|
128
|
-
open: (e) => {
|
|
129
|
-
P(e);
|
|
130
|
-
},
|
|
131
|
-
hide: () => {
|
|
132
|
-
o.isShowSubmitLoad && a.value?.loadStop(), f();
|
|
133
|
-
},
|
|
134
|
-
reset: () => {
|
|
135
|
-
o.isShowSubmitLoad && a.value?.loadStop();
|
|
136
|
-
}
|
|
137
|
-
}), (e, d) => (n(), m("div", {
|
|
138
|
-
class: "panel-alert",
|
|
139
|
-
ref_key: "refElTopParent",
|
|
140
|
-
ref: s
|
|
141
|
-
}, [
|
|
142
|
-
W(oe, {
|
|
143
|
-
isBackClick: o.isBackClick && r.isLoadBackClick,
|
|
144
|
-
classTransitionEnter: "animated zoomIn",
|
|
145
|
-
width: "500px",
|
|
146
|
-
onOnClickBack: D,
|
|
147
|
-
ref_key: "refElTransition",
|
|
148
|
-
ref: l
|
|
149
|
-
}, {
|
|
150
|
-
default: X(() => [
|
|
151
|
-
g("div", ce, [
|
|
152
|
-
o.isShowIcon ? (n(), m("div", le, [
|
|
153
|
-
g("i", {
|
|
154
|
-
class: Y(o.clsIcon)
|
|
155
|
-
}, null, 2)
|
|
156
|
-
])) : b("", !0),
|
|
157
|
-
o.isShowTitle ? (n(), m("div", te, O(o.title), 1)) : b("", !0),
|
|
158
|
-
o.isShowText ? (n(), m("div", ne, [
|
|
159
|
-
o.isShowTextHtml ? (n(), m("div", {
|
|
160
|
-
key: 0,
|
|
161
|
-
innerHTML: o.html
|
|
162
|
-
}, null, 8, se)) : (n(), m("div", ie, O(o.text), 1))
|
|
163
|
-
])) : b("", !0),
|
|
164
|
-
o.isShowOperate ? (n(), m("div", ae, [
|
|
165
|
-
o.isShowSubmit ? (n(), F(H, {
|
|
166
|
-
key: 0,
|
|
167
|
-
ref_key: "refElBtnSubmit",
|
|
168
|
-
ref: a,
|
|
169
|
-
className: "alert-submit",
|
|
170
|
-
isShowLoad: o.isShowSubmitLoad,
|
|
171
|
-
isShowBackDrop: !0,
|
|
172
|
-
label: o.submitLabel,
|
|
173
|
-
icon: o.submitIcon,
|
|
174
|
-
color: o.submitColor,
|
|
175
|
-
onOnClick: V
|
|
176
|
-
}, null, 8, ["isShowLoad", "label", "icon", "color"])) : b("", !0),
|
|
177
|
-
o.isShowCancel ? (n(), F(H, {
|
|
178
|
-
key: 1,
|
|
179
|
-
className: "alert-cancel",
|
|
180
|
-
label: o.cancelLabel,
|
|
181
|
-
icon: o.cancelIcon,
|
|
182
|
-
color: o.cancelColor,
|
|
183
|
-
onOnClick: q
|
|
184
|
-
}, null, 8, ["label", "icon", "color"])) : b("", !0)
|
|
185
|
-
])) : b("", !0)
|
|
186
|
-
])
|
|
187
|
-
]),
|
|
188
|
-
_: 1
|
|
189
|
-
}, 8, ["isBackClick"])
|
|
190
|
-
], 512));
|
|
191
|
-
}
|
|
192
|
-
}), Se = (h = {}) => {
|
|
193
|
-
const C = ee(re, h), i = document.createElement("div"), s = C.mount(i);
|
|
194
|
-
return {
|
|
195
|
-
alert: (l, a = {}) => {
|
|
196
|
-
const r = c.getJsonMerge(
|
|
197
|
-
{
|
|
198
|
-
isSubmit: !0
|
|
199
|
-
},
|
|
200
|
-
a,
|
|
201
|
-
{
|
|
202
|
-
title: l,
|
|
203
|
-
isCancel: !1,
|
|
204
|
-
cancelCallback: null
|
|
205
|
-
}
|
|
206
|
-
);
|
|
207
|
-
s.open(r);
|
|
208
|
-
},
|
|
209
|
-
confirm: (l, a) => {
|
|
210
|
-
const r = c.getJsonMerge(
|
|
211
|
-
{
|
|
212
|
-
isSubmit: !0,
|
|
213
|
-
isCancel: !0
|
|
214
|
-
},
|
|
215
|
-
a,
|
|
216
|
-
{
|
|
217
|
-
title: l
|
|
218
|
-
}
|
|
219
|
-
);
|
|
220
|
-
s.open(r);
|
|
221
|
-
},
|
|
222
|
-
custom: (l) => {
|
|
223
|
-
s.open(l);
|
|
224
|
-
},
|
|
225
|
-
close: () => {
|
|
226
|
-
s.hide();
|
|
227
|
-
},
|
|
228
|
-
reset: () => {
|
|
229
|
-
s.reset();
|
|
230
|
-
}
|
|
231
|
-
};
|
|
232
|
-
};
|
|
233
|
-
export {
|
|
234
|
-
Se as default
|
|
235
|
-
};
|
|
236
|
-
//# sourceMappingURL=Alert.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Alert.js","sources":["../../../../src/libs/Web/Alert/Alert.vue","../../../../src/libs/Web/Alert/index.ts"],"sourcesContent":["<template>\n <div class=\"panel-alert\" ref=\"refElTopParent\">\n <ClModalBaseTransition :isBackClick=\"optItemInfo.isBackClick && optBase.isLoadBackClick\"\n classTransitionEnter=\"animated zoomIn\" width=\"500px\" @onClickBack=\"onClickBack\" ref=\"refElTransition\">\n <div class=\"alert-body\">\n <div v-if=\"optItemInfo.isShowIcon\" class=\"alert-icon\"><i :class=\"optItemInfo.clsIcon\"></i></div>\n <div v-if=\"optItemInfo.isShowTitle\" class=\"alert-title\">{{ optItemInfo.title }}</div>\n <div v-if=\"optItemInfo.isShowText\" class=\"alert-text\">\n <div v-if=\"optItemInfo.isShowTextHtml\" v-html=\"optItemInfo.html\"></div>\n <div v-else>{{ optItemInfo.text }}</div>\n </div>\n <div v-if=\"optItemInfo.isShowOperate\" class=\"alert-operate\">\n <ClButton ref=\"refElBtnSubmit\" v-if=\"optItemInfo.isShowSubmit\" className=\"alert-submit\"\n :isShowLoad=\"optItemInfo.isShowSubmitLoad\" :isShowBackDrop=\"true\" :label=\"optItemInfo.submitLabel\"\n :icon=\"optItemInfo.submitIcon\" :color=\"optItemInfo.submitColor\" @onClick=\"onSubmit\"></ClButton>\n <ClButton v-if=\"optItemInfo.isShowCancel\" className=\"alert-cancel\" :label=\"optItemInfo.cancelLabel\"\n :icon=\"optItemInfo.cancelIcon\" :color=\"optItemInfo.cancelColor\" @onClick=\"onCancel\"></ClButton>\n </div>\n </div>\n </ClModalBaseTransition>\n </div>\n</template>\n\n<script setup lang=\"ts\">\nimport './Index.css'\nimport { ref, reactive, watch, nextTick } from 'vue'\nimport CommonBase from '../../Common/base'\nimport ClModalBaseTransition from '../../Element/Modal/BaseTransition.vue'\nimport ClButton from '../../Element/Button/Index.vue'\n\n// defineOptions\ndefineOptions({ name: 'ClAlert' })\n\n// props\nconst props = defineProps<{\n isBackClick?: boolean\n submitLabel?: string\n submitColor?: string\n cancelLabel?: string\n cancelColor?: string\n}>()\n\n// refs\nconst refElTopParent = ref<HTMLElement | null>(null)\nconst refElTransition = ref<any>(null)\nconst refElBtnSubmit = ref<any>(null)\n\n// reactive\nconst optBase = reactive({\n isLoadBackClick: true,\n})\n\nconst optItemInfo = reactive({\n isBackClick: false,\n clsIcon: '',\n isShowIcon: false,\n title: '',\n isShowTitle: false,\n text: '',\n html: '',\n isShowTextHtml: false,\n isShowText: false,\n submitLabel: '',\n submitIcon: '',\n submitColor: 'default',\n cancelLabel: '',\n cancelIcon: '',\n cancelColor: 'grayLight',\n isShowSubmit: false,\n isShowSubmitLoad: false,\n isShowCancel: false,\n isShowOperate: false,\n isShow: false,\n})\n\n// 内部数据\nconst _funItemInfo = reactive({\n submit: null as any,\n cancel: null as any,\n})\n\nlet _timeOutDestroyContainer: any = null\n\n// 常量\nconst defaultAlertCommon: any = {\n icon: {\n info: 'clIconFont clIcon-info-circle color-default',\n success: 'clIconFont clIcon-check-circle color-green',\n error: 'clIconFont clIcon-exclamation-circle color-red',\n warn: 'clIconFont clIcon-warn-fill color-yellow',\n doubt: 'clIconFont clIcon-question-circle color-cyan',\n },\n}\n\n// 内部方法\nconst _getBody = () => {\n const el = document.querySelector('body')\n return el\n}\n\nconst _getTopEl = () => {\n const el = document.querySelector('body>.panel-alert')\n return el\n}\n\nconst _checkContainer = () => {\n const el = _getTopEl()\n return !CommonBase.isUndefined(el)\n}\n\nconst _creatorContainer = () => {\n if (!_checkContainer()) {\n _getBody()?.appendChild(refElTopParent.value!)\n } else {\n clearTimeout(_timeOutDestroyContainer)\n _timeOutDestroyContainer = null\n }\n}\n\nconst _destroyContainer = () => {\n nextTick(() => {\n if (_checkContainer()) {\n _timeOutDestroyContainer = setTimeout(() => {\n const el = _getTopEl()\n _getBody()?.removeChild(el!)\n }, 2 * 1000)\n }\n })\n}\n\nconst _analysisItemProps = (opt: any) => {\n const isBackClick = CommonBase.isBoolean(opt.isBackClick) ? opt.isBackClick : props.isBackClick ?? true\n\n let clsIcon = ''\n if (!CommonBase.isEmpty(opt.iconType)) {\n clsIcon = CommonBase.isExistJsonKey(defaultAlertCommon.icon, opt.iconType)\n ? defaultAlertCommon.icon[opt.iconType]\n : ''\n }\n if (CommonBase.isEmpty(clsIcon) && !CommonBase.isEmpty(opt.icon)) {\n clsIcon = opt.icon\n }\n const isShowIcon = !CommonBase.isEmpty(clsIcon)\n\n const isShowTitle = !CommonBase.isEmpty(opt.title)\n\n const isShowTextHtml = !CommonBase.isEmpty(opt.html)\n const isShowText = !CommonBase.isEmpty(opt.text) || isShowTextHtml\n\n const submitLabel = CommonBase.isEmpty(opt.submitLabel)\n ? props.submitLabel || '确定'\n : opt.submitLabel\n const submitColor = CommonBase.isEmpty(opt.submitColor) ? props.submitColor || 'default' : opt.submitColor\n const cancelLabel = CommonBase.isEmpty(opt.cancelLabel)\n ? props.cancelLabel || '取消'\n : opt.cancelLabel\n const cancelColor = CommonBase.isEmpty(opt.cancelColor) ? props.cancelColor || 'grayLight' : opt.cancelColor\n\n const isShowSubmit = CommonBase.isBoolean(opt.isSubmit) ? opt.isSubmit : false\n const isShowSubmitLoad = CommonBase.isBoolean(opt.isLoad) ? opt.isLoad : false\n const isShowCancel = CommonBase.isBoolean(opt.isCancel) ? opt.isCancel : false\n const isShowOperate = isShowSubmit || isShowCancel\n\n const isShow = isShowTitle || isShowText\n return {\n isBackClick,\n clsIcon,\n isShowIcon,\n title: opt.title,\n isShowTitle,\n text: opt.text,\n html: opt.html,\n isShowTextHtml,\n isShowText,\n submitLabel,\n submitIcon: opt.submitIcon,\n submitColor,\n isShowSubmit,\n isShowSubmitLoad,\n cancelLabel,\n cancelIcon: opt.cancelIcon,\n cancelColor,\n isShowCancel,\n isShowOperate,\n isShow,\n }\n}\n\nconst _creatorItem = (optExt: any) => {\n const newOptions = _analysisItemProps(optExt)\n _creatorContainer()\n if (newOptions.isShow) {\n for (const [ko, vo] of Object.entries(newOptions)) {\n // @ts-ignore\n optItemInfo[ko] = vo\n }\n _funItemInfo.submit = optExt.submitCallback\n _funItemInfo.cancel = optExt.cancelCallback\n refElTransition.value.show()\n } else {\n _funItemInfo.submit = null\n _funItemInfo.cancel = null\n refElTransition.value.hide()\n optItemInfo.isShow = false\n }\n}\n\nconst _closeHide = () => {\n refElTransition.value.hide()\n optBase.isLoadBackClick = true\n optItemInfo.isShow = false\n}\n\n// watch\nwatch(\n () => optItemInfo.isShow,\n (newValue: boolean) => {\n if (!newValue) {\n _destroyContainer()\n }\n }\n)\n\n// 内部触发的事件 on\nconst onSubmit = () => {\n if (optItemInfo.isShowSubmitLoad) {\n optBase.isLoadBackClick = false\n }\n if (CommonBase.isFunction(_funItemInfo.submit)) {\n _funItemInfo.submit()\n } else {\n _closeHide()\n }\n}\n\nconst onCancel = () => {\n _closeHide()\n if (CommonBase.isFunction(_funItemInfo.cancel)) {\n _funItemInfo.cancel()\n }\n}\n\nconst onClickBack = () => {\n _closeHide()\n if (CommonBase.isFunction(_funItemInfo.cancel)) {\n _funItemInfo.cancel()\n }\n}\n\n// 外部调用\nconst open = (opt: any) => {\n _creatorItem(opt)\n}\n\nconst hide = () => {\n if (optItemInfo.isShowSubmitLoad) {\n refElBtnSubmit.value?.loadStop()\n }\n _closeHide()\n}\n\nconst reset = () => {\n if (optItemInfo.isShowSubmitLoad) {\n refElBtnSubmit.value?.loadStop()\n }\n}\n\n// 暴露给外部的方法\nexport interface ClAlertExpose {\n open: () => void\n hide: () => void\n reset: () => void\n}\n\ndefineExpose({\n open,\n hide,\n reset\n})\n</script>\n","import { createApp } from \"vue\";\nimport ElementAlert from \"./Alert.vue\";\nimport CommonBase from \"../../Common/base\";\n\nexport default (options = {}) => {\n const VNotify = createApp(ElementAlert, options);\n const tempParent = document.createElement(\"div\");\n const alert: any = VNotify.mount(tempParent);\n return {\n alert: (title: string, optExt = {}) => {\n const opt = CommonBase.getJsonMerge(\n {\n isSubmit: true,\n },\n optExt,\n {\n title,\n isCancel: false,\n cancelCallback: null,\n }\n );\n alert.open(opt);\n },\n confirm: (title: string, optExt: any) => {\n const opt = CommonBase.getJsonMerge(\n {\n isSubmit: true,\n isCancel: true,\n },\n optExt,\n {\n title,\n }\n );\n alert.open(opt);\n },\n custom: (opt: any) => {\n alert.open(opt);\n },\n close: () => {\n alert.hide();\n },\n reset: () => {\n alert.reset();\n },\n };\n};\n"],"names":["props","__props","refElTopParent","ref","refElTransition","refElBtnSubmit","optBase","reactive","optItemInfo","_funItemInfo","_timeOutDestroyContainer","defaultAlertCommon","_getBody","_getTopEl","_checkContainer","el","CommonBase","_creatorContainer","_destroyContainer","nextTick","_analysisItemProps","opt","isBackClick","clsIcon","isShowIcon","isShowTitle","isShowTextHtml","isShowText","submitLabel","submitColor","cancelLabel","cancelColor","isShowSubmit","isShowSubmitLoad","isShowCancel","isShowOperate","isShow","_creatorItem","optExt","newOptions","ko","vo","_closeHide","watch","newValue","onSubmit","onCancel","onClickBack","__expose","_createElementBlock","_createVNode","ClModalBaseTransition","_createElementVNode","_hoisted_1","_openBlock","_hoisted_2","_normalizeClass","_hoisted_3","_toDisplayString","_hoisted_4","_hoisted_6","_hoisted_7","_createBlock","ClButton","index","options","VNotify","createApp","ElementAlert","tempParent","alert","title"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAkCA,UAAMA,IAAQC,GASRC,IAAiBC,EAAwB,IAAI,GAC7CC,IAAkBD,EAAS,IAAI,GAC/BE,IAAiBF,EAAS,IAAI,GAG9BG,IAAUC,EAAS;AAAA,MACvB,iBAAiB;AAAA,IAAA,CAClB,GAEKC,IAAcD,EAAS;AAAA,MAC3B,aAAa;AAAA,MACb,SAAS;AAAA,MACT,YAAY;AAAA,MACZ,OAAO;AAAA,MACP,aAAa;AAAA,MACb,MAAM;AAAA,MACN,MAAM;AAAA,MACN,gBAAgB;AAAA,MAChB,YAAY;AAAA,MACZ,aAAa;AAAA,MACb,YAAY;AAAA,MACZ,aAAa;AAAA,MACb,aAAa;AAAA,MACb,YAAY;AAAA,MACZ,aAAa;AAAA,MACb,cAAc;AAAA,MACd,kBAAkB;AAAA,MAClB,cAAc;AAAA,MACd,eAAe;AAAA,MACf,QAAQ;AAAA,IAAA,CACT,GAGKE,IAAeF,EAAS;AAAA,MAC5B,QAAQ;AAAA,MACR,QAAQ;AAAA,IAAA,CACT;AAED,QAAIG,IAAgC;AAGpC,UAAMC,IAA0B;AAAA,MAC9B,MAAM;AAAA,QACJ,MAAM;AAAA,QACN,SAAS;AAAA,QACT,OAAO;AAAA,QACP,MAAM;AAAA,QACN,OAAO;AAAA,MAAA;AAAA,IACT,GAIIC,IAAW,MACJ,SAAS,cAAc,MAAM,GAIpCC,IAAY,MACL,SAAS,cAAc,mBAAmB,GAIjDC,IAAkB,MAAM;AAC5B,YAAMC,IAAKF,EAAA;AACX,aAAO,CAACG,EAAW,YAAYD,CAAE;AAAA,IACnC,GAEME,IAAoB,MAAM;AAC9B,MAAKH,OAGH,aAAaJ,CAAwB,GACrCA,IAA2B,QAH3BE,KAAY,YAAYV,EAAe,KAAM;AA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AAKjD,CAAG;AAAA,IAClB;AAAA,IACA,QAAQ,CAACA,MAAa;AAClB,MAAAiD,EAAM,KAAKjD,CAAG;AAAA,IAClB;AAAA,IACA,OAAO,MAAM;AACT,MAAAiD,EAAM,KAAA;AAAA,IACV;AAAA,IACA,OAAO,MAAM;AACT,MAAAA,EAAM,MAAA;AAAA,IACV;AAAA,EAAA;AAER;"}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";const e=require("vue"),c=require("../../Shared/base-iCmnU-fv.js"),D={class:"notify-item"},P={class:"notify-icon"},x={class:"notify-text"},L=["innerHTML"],S=e.defineComponent({name:"ClNotifyItem",__name:"Notify",props:{isShow:{type:Boolean},itemInfo:{}},emits:["onMouseOver","onMouseOut","onDestroy"],setup(l,{emit:y}){const d=l,r=y,n=e.ref(!1),i=e.computed(()=>({progress:!0,"progress-hide":n.value})),a=e.computed(()=>({"progress-bar":!0,"progress-countdown":!n.value})),m=()=>{n.value=!0,r("onMouseOver",d.itemInfo.key)},C=()=>{n.value=!1,r("onMouseOut",d.itemInfo.key)},u=()=>{r("onDestroy",d.itemInfo.key)};return(v,g)=>(e.openBlock(),e.createBlock(e.Transition,{name:"notify","enter-active-class":l.itemInfo.clsTransitionEnter,"leave-active-class":l.itemInfo.clsTransitionLeave},{default:e.withCtx(()=>[l.isShow?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(l.itemInfo.clsContainer),onClick:u,onMouseover:m,onMouseout:C},[e.createElementVNode("div",D,[e.createElementVNode("div",P,[e.createElementVNode("i",{class:e.normalizeClass(l.itemInfo.icon)},null,2)]),e.createElementVNode("div",x,[e.createElementVNode("div",{innerHTML:l.itemInfo.text},null,8,L)]),e.createElementVNode("button",{type:"button",class:"notify-close",title:"关闭",onClick:u},[...g[0]||(g[0]=[e.createElementVNode("i",{class:"clIconFont clIcon-close"},null,-1)])])]),l.itemInfo.isProgress?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(i.value)},[e.createElementVNode("div",{class:e.normalizeClass(a.value)},null,2)],2)):e.createCommentVNode("",!0)],34)):e.createCommentVNode("",!0)]),_:1},8,["enter-active-class","leave-active-class"]))}}),$=e.defineComponent({name:"ClNotify",__name:"Notifys",props:{position:{},isProgress:{type:Boolean}},setup(l,{expose:y}){const d=l,r=e.ref(null),n=e.ref([]),i=e.reactive({"top-right":[],"top-center":[],"bottom-right":[]}),a=e.reactive({icon:{info:"clIcon-info",success:"clIcon-check",error:"clIcon-exclamation",warn:"clIcon-warn-fill"},delay:5,autoHide:!0,showDuration:!0,isClickHide:!0}),m=e.reactive({});let C=null;const u={type:["info","success","error","warn"],position:["top-right","top-center","bottom-right"]},v=()=>document.querySelector("body"),g=()=>document.querySelector("body>.panel-notify"),B=()=>{const o=g();return!c.CommonBase.isUndefined(o)},M=()=>{B()?(clearTimeout(C),C=null):v()?.appendChild(r.value)},h=()=>{e.nextTick(()=>{B()&&(C=setTimeout(()=>{const o=g();o&&v()?.removeChild(o)},2*1e3))})},N=o=>{let s={},t=-1;const f=o.split("_")[1];return i[f].forEach((p,k)=>{p.key===o&&(s=p,t=k)}),{info:s,inx:t,pos:f}},I=o=>{const s=N(o);if(s.inx>-1){const t=n.value.indexOf(o);n.value.splice(t,1),e.nextTick(()=>{i[s.pos].splice(s.inx,1),i[s.pos].length===0&&(i[s.pos]=[]),n.value.length===0&&(n.value=[],h())})}},T=o=>{m[o]=setTimeout(()=>{I(o)},a.delay*1e3)},_=o=>{let s="animated fadeInDown",t="animated fadeOutRight";switch(o){case"top-right":s="animated fadeInDown",t="animated fadeOutRight";break;case"top-center":s="animated fadeInDown",t="animated fadeOut";break;case"bottom-right":s="animated fadeInUp",t="animated fadeOutRight";break}return{clsTransitionEnter:s,clsTransitionLeave:t}},w=o=>{if(!c.CommonBase.isEmpty(o)&&!c.CommonBase.isEmpty(o.msg)){M();const s=c.CommonBase.isExistValue(u.type,o.type)?o.type:u.type[0],t={type:s,text:o.msg,position:d.position||"top-right",isProgress:d.isProgress||!1};c.CommonBase.isEmpty(o)||(c.CommonBase.isEmpty(o.position)||(t.position=o.position),c.CommonBase.isBoolean(o.isProgress)&&(t.isProgress=o.isProgress),c.CommonBase.isEmpty(o.className)||(t.className=o.className)),t.position=c.CommonBase.isExistValue(u.position,t.position)?t.position:u.position[0],t.clsContainer={"notify-container":!0,"notify-progress":t.isProgress},t.clsContainer[`notify-${s}`]=!0,t.className&&(t.clsContainer[t.className]=!0);const f=_(t.position);t.clsTransitionEnter=f.clsTransitionEnter,t.clsTransitionLeave=f.clsTransitionLeave;const p=c.CommonBase.isExistJsonKey(a.icon,s)?a.icon[s]:u.icon[s];t.icon=`clIconFont ${p}`;const k=c.CommonBase.getRandom(7),E=`notify_${t.position}_item_${k}`;t.key=E,i[t.position].push(t),e.nextTick(()=>{n.value.push(t.key),T(E)})}},O=o=>{m[o]&&(clearTimeout(m[o]),m[o]=null)},V=o=>{T(o)},b=o=>{m[o]&&(clearTimeout(m[o]),m[o]=null),I(o)};return y({addCustom:o=>{w(o)},destroy:()=>{u.position.forEach(o=>{i[o]=[]}),n.value=[],h()}}),(o,s)=>(e.openBlock(),e.createElementBlock("div",{class:"panel-notify",ref_key:"refElTopParent",ref:r},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i,(t,f)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:`notify-${f}`},[t.length>0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(`notify-wrapper notify-${f}`)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t,p=>(e.openBlock(),e.createBlock(S,{key:p.key,isShow:n.value.includes(p.key),itemInfo:p,onOnDestroy:b,onOnMouseOver:O,onOnMouseOut:V},null,8,["isShow","itemInfo"]))),128))],2)):e.createCommentVNode("",!0)],64))),128))],512))}}),z=(l={})=>{const y=e.createApp($,l),d=document.createElement("div"),r=y.mount(d);return{info:(n,i={})=>{const a=c.CommonBase.getJsonMerge(i,{type:"info",msg:n});r.addCustom(a)},success:(n,i={})=>{const a=c.CommonBase.getJsonMerge(i,{type:"success",msg:n});r.addCustom(a)},error:(n,i={})=>{const a=c.CommonBase.getJsonMerge(i,{type:"error",msg:n});r.addCustom(a)},warn:(n,i={})=>{const a=c.CommonBase.getJsonMerge(i,{type:"warn",msg:n});r.addCustom(a)},custom:n=>{r.addCustom(n)},destroy:()=>{r.destroy()}}};module.exports=z;
|
|
2
|
-
//# sourceMappingURL=Notify.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Notify.cjs","sources":["../../../../src/libs/Web/Notify/Notify.vue","../../../../src/libs/Web/Notify/Notifys.vue","../../../../src/libs/Web/Notify/index.ts"],"sourcesContent":["<template>\n <transition\n name=\"notify\"\n :enter-active-class=\"itemInfo.clsTransitionEnter\"\n :leave-active-class=\"itemInfo.clsTransitionLeave\"\n >\n <div\n v-if=\"isShow\"\n :class=\"itemInfo.clsContainer\"\n @click=\"onDestroyInfo\"\n @mouseover=\"onMouseOver\"\n @mouseout=\"onMouseOut\"\n >\n <div class=\"notify-item\">\n <div class=\"notify-icon\"><i :class=\"itemInfo.icon\"></i></div>\n <div class=\"notify-text\">\n <div v-html=\"itemInfo.text\"></div>\n </div>\n <button\n type=\"button\"\n class=\"notify-close\"\n title=\"关闭\"\n @click=\"onDestroyInfo\"\n ><i class=\"clIconFont clIcon-close\"></i></button>\n </div>\n <div\n v-if=\"itemInfo.isProgress\"\n :class=\"clsProgress\"\n >\n <div :class=\"clsProgressBar\"></div>\n </div>\n </div>\n </transition>\n</template>\n\n<script setup lang=\"ts\">\nimport { computed, ref } from 'vue'\n\n// defineOptions\ndefineOptions({ name: 'ClNotifyItem' })\n\n// props\nconst props = defineProps<{\n isShow: boolean\n itemInfo: any\n}>()\n\n// emit\nconst emit = defineEmits<{\n (e: 'onMouseOver', key: string): void\n (e: 'onMouseOut', key: string): void\n (e: 'onDestroy', key: string): void\n}>()\n\n// reactive\nconst optMouseType = ref(false)\n\n// computed\nconst clsProgress = computed(() => {\n const cls: any = {\n progress: true,\n 'progress-hide': optMouseType.value,\n }\n return cls\n})\n\nconst clsProgressBar = computed(() => {\n const cls: any = {\n 'progress-bar': true,\n 'progress-countdown': !optMouseType.value,\n }\n return cls\n})\n\n// 内部触发的事件 on\nconst onMouseOver = () => {\n optMouseType.value = true\n emit('onMouseOver', props.itemInfo.key)\n}\n\nconst onMouseOut = () => {\n optMouseType.value = false\n emit('onMouseOut', props.itemInfo.key)\n}\n\nconst onDestroyInfo = () => {\n emit('onDestroy', props.itemInfo.key)\n}\n</script>\n","<template>\n <div\n class=\"panel-notify\"\n ref=\"refElTopParent\"\n >\n <template\n v-for=\"(msgList, msgPosition) in optMsgList\"\n :key=\"`notify-${msgPosition}`\"\n >\n <div\n v-if=\"msgList.length > 0\"\n :class=\"`notify-wrapper notify-${msgPosition}`\"\n >\n <ClNotifyItem\n v-for=\"item in msgList\"\n :key=\"item.key\"\n :isShow=\"optShowKeys.includes(item.key)\"\n :itemInfo=\"item\"\n @onDestroy=\"onDestroyItem\"\n @onMouseOver=\"onMouseOver\"\n @onMouseOut=\"onMouseOut\"\n ></ClNotifyItem>\n </div>\n </template>\n </div>\n</template>\n\n<script setup lang=\"ts\">\nimport './Index.css'\nimport { ref, reactive, nextTick } from 'vue'\nimport CommonBase from '../../Common/base'\nimport ClNotifyItem from './Notify.vue'\n\n// defineOptions\ndefineOptions({ name: 'ClNotify' })\n\n// props\nconst props = defineProps<{\n position?: string\n isProgress?: boolean\n}>()\n\n// refs\nconst refElTopParent = ref<HTMLElement | null>(null)\n\n// reactive\nconst optShowKeys = ref<string[]>([])\nconst optMsgList:any = reactive({\n 'top-right': [],\n 'top-center': [],\n 'bottom-right': [],\n})\n\nconst optModal:any = reactive({\n icon: {\n info: 'clIcon-info',\n success: 'clIcon-check',\n error: 'clIcon-exclamation',\n warn: 'clIcon-warn-fill',\n },\n delay: 5,\n autoHide: true,\n showDuration: true,\n isClickHide: true,\n})\n\nconst optTimeOutDelays = reactive<any>({})\nlet _timeOutDestroyContainer: any = null\n\n// 常量\nconst defaultNotifyCommon:any = {\n type: ['info', 'success', 'error', 'warn'],\n position: ['top-right', 'top-center', 'bottom-right'],\n}\n\n// 内部方法\nconst _getBody = () => {\n const el = document.querySelector('body')\n return el\n}\n\nconst _getTopEl = () => {\n const el = document.querySelector('body>.panel-notify')\n return el\n}\n\nconst _checkContainer = () => {\n const el = _getTopEl()\n return !CommonBase.isUndefined(el)\n}\n\nconst _creatorContainer = () => {\n if (!_checkContainer()) {\n _getBody()?.appendChild(refElTopParent.value!)\n } else {\n clearTimeout(_timeOutDestroyContainer)\n _timeOutDestroyContainer = null\n }\n}\n\nconst _destroyContainer = () => {\n nextTick(() => {\n if (_checkContainer()) {\n _timeOutDestroyContainer = setTimeout(() => {\n const el = _getTopEl()\n if (el) {\n _getBody()?.removeChild(el)\n }\n }, 2 * 1000)\n }\n })\n}\n\nconst _getMsgItem = (key: string) => {\n let selectInfo: any = {}\n let inx = -1\n const pos = key.split('_')[1]\n optMsgList[pos].forEach((info: any, i: number) => {\n if (info.key === key) {\n selectInfo = info\n inx = i\n }\n })\n return { info: selectInfo, inx, pos }\n}\n\nconst _removeItem = (key: string) => {\n const selectInfo = _getMsgItem(key)\n if (selectInfo.inx > -1) {\n const showIndex = optShowKeys.value.indexOf(key)\n optShowKeys.value.splice(showIndex, 1)\n nextTick(() => {\n optMsgList[selectInfo.pos].splice(selectInfo.inx, 1)\n if (optMsgList[selectInfo.pos].length === 0) {\n optMsgList[selectInfo.pos] = []\n }\n if (optShowKeys.value.length === 0) {\n optShowKeys.value = []\n _destroyContainer()\n }\n })\n }\n}\n\nconst _removeByDelay = (key: string) => {\n optTimeOutDelays[key] = setTimeout(() => {\n _removeItem(key)\n }, optModal.delay * 1000)\n}\n\nconst _getTransitionCls = (position: string) => {\n let clsTransitionEnter = 'animated fadeInDown'\n let clsTransitionLeave = 'animated fadeOutRight'\n switch (position) {\n case 'top-right':\n clsTransitionEnter = 'animated fadeInDown'\n clsTransitionLeave = 'animated fadeOutRight'\n break\n case 'top-center':\n clsTransitionEnter = 'animated fadeInDown'\n clsTransitionLeave = 'animated fadeOut'\n break\n case 'bottom-right':\n clsTransitionEnter = 'animated fadeInUp'\n clsTransitionLeave = 'animated fadeOutRight'\n break\n }\n return { clsTransitionEnter, clsTransitionLeave }\n}\n\nconst _creatorItem = (optExt: any) => {\n if (!CommonBase.isEmpty(optExt) && !CommonBase.isEmpty(optExt.msg)) {\n _creatorContainer()\n const newType = CommonBase.isExistValue(defaultNotifyCommon.type, optExt.type)\n ? optExt.type\n : defaultNotifyCommon.type[0]\n const options: any = {\n type: newType,\n text: optExt.msg,\n position: props.position || 'top-right',\n isProgress: props.isProgress || false,\n }\n\n if (!CommonBase.isEmpty(optExt)) {\n if (!CommonBase.isEmpty(optExt.position)) {\n options.position = optExt.position\n }\n if (CommonBase.isBoolean(optExt.isProgress)) {\n options.isProgress = optExt.isProgress\n }\n if (!CommonBase.isEmpty(optExt.className)) {\n options.className = optExt.className\n }\n }\n options.position = CommonBase.isExistValue(defaultNotifyCommon.position, options.position)\n ? options.position\n : defaultNotifyCommon.position[0]\n\n options.clsContainer = {\n 'notify-container': true,\n 'notify-progress': options.isProgress,\n }\n options.clsContainer[`notify-${newType}`] = true\n if (options.className) {\n options.clsContainer[options.className] = true\n }\n\n const itemTransitionCls = _getTransitionCls(options.position)\n options.clsTransitionEnter = itemTransitionCls.clsTransitionEnter\n options.clsTransitionLeave = itemTransitionCls.clsTransitionLeave\n\n const icon = CommonBase.isExistJsonKey(optModal.icon, newType)\n ? optModal.icon[newType]\n : defaultNotifyCommon.icon[newType]\n options.icon = `clIconFont ${icon}`\n\n const ind = CommonBase.getRandom(7)\n const notifyKey = `notify_${options.position}_item_${ind}`\n options.key = notifyKey\n\n optMsgList[options.position].push(options)\n nextTick(() => {\n optShowKeys.value.push(options.key)\n _removeByDelay(notifyKey)\n })\n }\n}\n\n// 内部触发的事件 on\nconst onMouseOver = (itemKey: string) => {\n if (optTimeOutDelays[itemKey]) {\n clearTimeout(optTimeOutDelays[itemKey])\n optTimeOutDelays[itemKey] = null\n }\n}\n\nconst onMouseOut = (itemKey: string) => {\n _removeByDelay(itemKey)\n}\n\nconst onDestroyItem = (itemKey: string) => {\n if (optTimeOutDelays[itemKey]) {\n clearTimeout(optTimeOutDelays[itemKey])\n optTimeOutDelays[itemKey] = null\n }\n _removeItem(itemKey)\n}\n\n// 外部调用\nconst addCustom = (opt: any) => {\n _creatorItem(opt)\n}\n\nconst destroy = () => {\n defaultNotifyCommon.position.forEach((p: string) => {\n optMsgList[p] = []\n })\n optShowKeys.value = []\n _destroyContainer()\n}\n\n// 暴露给外部的方法\nexport interface ClNotifyExpose {\n addCustom: (options: {\n title?: string\n content: string\n type?: 'success' | 'error' | 'warning' | 'info'\n duration?: number\n isShowClose?: boolean\n }) => void\n destroy: () => void\n}\n\ndefineExpose({\n addCustom,\n destroy\n})\n</script>\n","import { createApp } from \"vue\";\nimport ElementNotify from \"./Notifys.vue\";\nimport CommonBase from \"../../Common/base\";\n\nexport default (options = {}) => {\n const VNotify = createApp(ElementNotify, options);\n const tempParent = document.createElement(\"div\");\n const notify: any = VNotify.mount(tempParent);\n return {\n info: (msg: string, optExt = {}) => {\n const opt = CommonBase.getJsonMerge(optExt, { type: \"info\", msg });\n notify.addCustom(opt);\n },\n success: (msg: string, optExt = {}) => {\n const opt = CommonBase.getJsonMerge(optExt, { type: \"success\", msg });\n notify.addCustom(opt);\n },\n error: (msg: string, optExt = {}) => {\n const opt = CommonBase.getJsonMerge(optExt, { type: \"error\", msg });\n notify.addCustom(opt);\n },\n warn: (msg: string, optExt = {}) => {\n const opt = CommonBase.getJsonMerge(optExt, { type: \"warn\", msg });\n notify.addCustom(opt);\n },\n custom: (opt: any) => {\n notify.addCustom(opt);\n },\n destroy: () => {\n notify.destroy();\n },\n };\n};\n"],"names":["props","__props","emit","__emit","optMouseType","ref","clsProgress","computed","clsProgressBar","onMouseOver","onMouseOut","onDestroyInfo","_createBlock","_Transition","_createElementBlock","_normalizeClass","_createElementVNode","_hoisted_1","_hoisted_2","_hoisted_3","refElTopParent","optShowKeys","optMsgList","reactive","optModal","optTimeOutDelays","_timeOutDestroyContainer","defaultNotifyCommon","_getBody","_getTopEl","_checkContainer","el","CommonBase","_creatorContainer","_destroyContainer","nextTick","_getMsgItem","key","selectInfo","inx","pos","info","i","_removeItem","showIndex","_removeByDelay","_getTransitionCls","position","clsTransitionEnter","clsTransitionLeave","_creatorItem","optExt","newType","options","itemTransitionCls","icon","ind","notifyKey","itemKey","onDestroyItem","__expose","opt","p","_openBlock","_Fragment","_renderList","msgList","msgPosition","item","ClNotifyItem","index","VNotify","createApp","ElementNotify","tempParent","notify","msg"],"mappings":"2UA0CA,MAAMA,EAAQC,EAMRC,EAAOC,EAOPC,EAAeC,EAAAA,IAAI,EAAK,EAGxBC,EAAcC,EAAAA,SAAS,KACV,CACf,SAAU,GACV,gBAAiBH,EAAa,KAAA,EAGjC,EAEKI,EAAiBD,EAAAA,SAAS,KACb,CACf,eAAgB,GAChB,qBAAsB,CAACH,EAAa,KAAA,EAGvC,EAGKK,EAAc,IAAM,CACxBL,EAAa,MAAQ,GACrBF,EAAK,cAAeF,EAAM,SAAS,GAAG,CACxC,EAEMU,EAAa,IAAM,CACvBN,EAAa,MAAQ,GACrBF,EAAK,aAAcF,EAAM,SAAS,GAAG,CACvC,EAEMW,EAAgB,IAAM,CAC1BT,EAAK,YAAaF,EAAM,SAAS,GAAG,CACtC,8BAtFEY,EAAAA,YA+BaC,aAAA,CA9BX,KAAK,SACJ,qBAAoBZ,EAAA,SAAS,mBAC7B,qBAAoBA,EAAA,SAAS,kBAAA,qBAE9B,IAyBM,CAxBEA,EAAA,sBADRa,EAAAA,mBAyBM,MAAA,OAvBH,MAAKC,EAAAA,eAAEd,EAAA,SAAS,YAAY,EAC5B,QAAOU,EACP,YAAWF,EACX,WAAUC,CAAA,GAEXM,EAAAA,mBAWM,MAXNC,E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AA,WAPCC,EAARE,kBADTxD,EAAAA,YAQgByD,EAAA,CANb,IAAKD,EAAK,IACV,OAAQ/C,EAAA,MAAY,SAAS+C,EAAK,GAAG,EACrC,SAAUA,EACV,YAAWT,EACX,cAAalD,EACb,aAAYC,CAAA,gGChBvB4D,EAAe,CAACjB,EAAU,CAAA,IAAO,CAC7B,MAAMkB,EAAUC,EAAAA,UAAUC,EAAepB,CAAO,EAC1CqB,EAAa,SAAS,cAAc,KAAK,EACzCC,EAAcJ,EAAQ,MAAMG,CAAU,EAC5C,MAAO,CACH,KAAM,CAACE,EAAazB,EAAS,KAAO,CAChC,MAAMU,EAAM7B,EAAAA,WAAW,aAAamB,EAAQ,CAAE,KAAM,OAAQ,IAAAyB,EAAK,EACjED,EAAO,UAAUd,CAAG,CACxB,EACA,QAAS,CAACe,EAAazB,EAAS,KAAO,CACnC,MAAMU,EAAM7B,EAAAA,WAAW,aAAamB,EAAQ,CAAE,KAAM,UAAW,IAAAyB,EAAK,EACpED,EAAO,UAAUd,CAAG,CACxB,EACA,MAAO,CAACe,EAAazB,EAAS,KAAO,CACjC,MAAMU,EAAM7B,EAAAA,WAAW,aAAamB,EAAQ,CAAE,KAAM,QAAS,IAAAyB,EAAK,EAClED,EAAO,UAAUd,CAAG,CACxB,EACA,KAAM,CAACe,EAAazB,EAAS,KAAO,CAChC,MAAMU,EAAM7B,EAAAA,WAAW,aAAamB,EAAQ,CAAE,KAAM,OAAQ,IAAAyB,EAAK,EACjED,EAAO,UAAUd,CAAG,CACxB,EACA,OAASA,GAAa,CAClBc,EAAO,UAAUd,CAAG,CACxB,EACA,QAAS,IAAM,CACXc,EAAO,QAAA,CACX,CAAA,CAER"}
|
|
@@ -1,235 +0,0 @@
|
|
|
1
|
-
import { defineComponent as S, ref as O, computed as x, openBlock as f, createBlock as $, Transition as z, withCtx as A, createElementBlock as g, normalizeClass as T, createElementVNode as y, createCommentVNode as N, reactive as M, Fragment as _, renderList as L, nextTick as w, createApp as j } from "vue";
|
|
2
|
-
import { C as i } from "../../Shared/base-PQGakkrl.js";
|
|
3
|
-
const G = { class: "notify-item" }, Q = { class: "notify-icon" }, W = { class: "notify-text" }, X = ["innerHTML"], Y = /* @__PURE__ */ S({
|
|
4
|
-
name: "ClNotifyItem",
|
|
5
|
-
__name: "Notify",
|
|
6
|
-
props: {
|
|
7
|
-
isShow: { type: Boolean },
|
|
8
|
-
itemInfo: {}
|
|
9
|
-
},
|
|
10
|
-
emits: ["onMouseOver", "onMouseOut", "onDestroy"],
|
|
11
|
-
setup(a, { emit: v }) {
|
|
12
|
-
const m = a, r = v, t = O(!1), s = x(() => ({
|
|
13
|
-
progress: !0,
|
|
14
|
-
"progress-hide": t.value
|
|
15
|
-
})), c = x(() => ({
|
|
16
|
-
"progress-bar": !0,
|
|
17
|
-
"progress-countdown": !t.value
|
|
18
|
-
})), l = () => {
|
|
19
|
-
t.value = !0, r("onMouseOver", m.itemInfo.key);
|
|
20
|
-
}, h = () => {
|
|
21
|
-
t.value = !1, r("onMouseOut", m.itemInfo.key);
|
|
22
|
-
}, u = () => {
|
|
23
|
-
r("onDestroy", m.itemInfo.key);
|
|
24
|
-
};
|
|
25
|
-
return (I, C) => (f(), $(z, {
|
|
26
|
-
name: "notify",
|
|
27
|
-
"enter-active-class": a.itemInfo.clsTransitionEnter,
|
|
28
|
-
"leave-active-class": a.itemInfo.clsTransitionLeave
|
|
29
|
-
}, {
|
|
30
|
-
default: A(() => [
|
|
31
|
-
a.isShow ? (f(), g("div", {
|
|
32
|
-
key: 0,
|
|
33
|
-
class: T(a.itemInfo.clsContainer),
|
|
34
|
-
onClick: u,
|
|
35
|
-
onMouseover: l,
|
|
36
|
-
onMouseout: h
|
|
37
|
-
}, [
|
|
38
|
-
y("div", G, [
|
|
39
|
-
y("div", Q, [
|
|
40
|
-
y("i", {
|
|
41
|
-
class: T(a.itemInfo.icon)
|
|
42
|
-
}, null, 2)
|
|
43
|
-
]),
|
|
44
|
-
y("div", W, [
|
|
45
|
-
y("div", {
|
|
46
|
-
innerHTML: a.itemInfo.text
|
|
47
|
-
}, null, 8, X)
|
|
48
|
-
]),
|
|
49
|
-
y("button", {
|
|
50
|
-
type: "button",
|
|
51
|
-
class: "notify-close",
|
|
52
|
-
title: "关闭",
|
|
53
|
-
onClick: u
|
|
54
|
-
}, [...C[0] || (C[0] = [
|
|
55
|
-
y("i", { class: "clIconFont clIcon-close" }, null, -1)
|
|
56
|
-
])])
|
|
57
|
-
]),
|
|
58
|
-
a.itemInfo.isProgress ? (f(), g("div", {
|
|
59
|
-
key: 0,
|
|
60
|
-
class: T(s.value)
|
|
61
|
-
}, [
|
|
62
|
-
y("div", {
|
|
63
|
-
class: T(c.value)
|
|
64
|
-
}, null, 2)
|
|
65
|
-
], 2)) : N("", !0)
|
|
66
|
-
], 34)) : N("", !0)
|
|
67
|
-
]),
|
|
68
|
-
_: 1
|
|
69
|
-
}, 8, ["enter-active-class", "leave-active-class"]));
|
|
70
|
-
}
|
|
71
|
-
}), Z = /* @__PURE__ */ S({
|
|
72
|
-
name: "ClNotify",
|
|
73
|
-
__name: "Notifys",
|
|
74
|
-
props: {
|
|
75
|
-
position: {},
|
|
76
|
-
isProgress: { type: Boolean }
|
|
77
|
-
},
|
|
78
|
-
setup(a, { expose: v }) {
|
|
79
|
-
const m = a, r = O(null), t = O([]), s = M({
|
|
80
|
-
"top-right": [],
|
|
81
|
-
"top-center": [],
|
|
82
|
-
"bottom-right": []
|
|
83
|
-
}), c = M({
|
|
84
|
-
icon: {
|
|
85
|
-
info: "clIcon-info",
|
|
86
|
-
success: "clIcon-check",
|
|
87
|
-
error: "clIcon-exclamation",
|
|
88
|
-
warn: "clIcon-warn-fill"
|
|
89
|
-
},
|
|
90
|
-
delay: 5,
|
|
91
|
-
autoHide: !0,
|
|
92
|
-
showDuration: !0,
|
|
93
|
-
isClickHide: !0
|
|
94
|
-
}), l = M({});
|
|
95
|
-
let h = null;
|
|
96
|
-
const u = {
|
|
97
|
-
type: ["info", "success", "error", "warn"],
|
|
98
|
-
position: ["top-right", "top-center", "bottom-right"]
|
|
99
|
-
}, I = () => document.querySelector("body"), C = () => document.querySelector("body>.panel-notify"), D = () => {
|
|
100
|
-
const e = C();
|
|
101
|
-
return !i.isUndefined(e);
|
|
102
|
-
}, J = () => {
|
|
103
|
-
D() ? (clearTimeout(h), h = null) : I()?.appendChild(r.value);
|
|
104
|
-
}, P = () => {
|
|
105
|
-
w(() => {
|
|
106
|
-
D() && (h = setTimeout(() => {
|
|
107
|
-
const e = C();
|
|
108
|
-
e && I()?.removeChild(e);
|
|
109
|
-
}, 2 * 1e3));
|
|
110
|
-
});
|
|
111
|
-
}, V = (e) => {
|
|
112
|
-
let n = {}, o = -1;
|
|
113
|
-
const d = e.split("_")[1];
|
|
114
|
-
return s[d].forEach((p, k) => {
|
|
115
|
-
p.key === e && (n = p, o = k);
|
|
116
|
-
}), { info: n, inx: o, pos: d };
|
|
117
|
-
}, b = (e) => {
|
|
118
|
-
const n = V(e);
|
|
119
|
-
if (n.inx > -1) {
|
|
120
|
-
const o = t.value.indexOf(e);
|
|
121
|
-
t.value.splice(o, 1), w(() => {
|
|
122
|
-
s[n.pos].splice(n.inx, 1), s[n.pos].length === 0 && (s[n.pos] = []), t.value.length === 0 && (t.value = [], P());
|
|
123
|
-
});
|
|
124
|
-
}
|
|
125
|
-
}, B = (e) => {
|
|
126
|
-
l[e] = setTimeout(() => {
|
|
127
|
-
b(e);
|
|
128
|
-
}, c.delay * 1e3);
|
|
129
|
-
}, H = (e) => {
|
|
130
|
-
let n = "animated fadeInDown", o = "animated fadeOutRight";
|
|
131
|
-
switch (e) {
|
|
132
|
-
case "top-right":
|
|
133
|
-
n = "animated fadeInDown", o = "animated fadeOutRight";
|
|
134
|
-
break;
|
|
135
|
-
case "top-center":
|
|
136
|
-
n = "animated fadeInDown", o = "animated fadeOut";
|
|
137
|
-
break;
|
|
138
|
-
case "bottom-right":
|
|
139
|
-
n = "animated fadeInUp", o = "animated fadeOutRight";
|
|
140
|
-
break;
|
|
141
|
-
}
|
|
142
|
-
return { clsTransitionEnter: n, clsTransitionLeave: o };
|
|
143
|
-
}, R = (e) => {
|
|
144
|
-
if (!i.isEmpty(e) && !i.isEmpty(e.msg)) {
|
|
145
|
-
J();
|
|
146
|
-
const n = i.isExistValue(u.type, e.type) ? e.type : u.type[0], o = {
|
|
147
|
-
type: n,
|
|
148
|
-
text: e.msg,
|
|
149
|
-
position: m.position || "top-right",
|
|
150
|
-
isProgress: m.isProgress || !1
|
|
151
|
-
};
|
|
152
|
-
i.isEmpty(e) || (i.isEmpty(e.position) || (o.position = e.position), i.isBoolean(e.isProgress) && (o.isProgress = e.isProgress), i.isEmpty(e.className) || (o.className = e.className)), o.position = i.isExistValue(u.position, o.position) ? o.position : u.position[0], o.clsContainer = {
|
|
153
|
-
"notify-container": !0,
|
|
154
|
-
"notify-progress": o.isProgress
|
|
155
|
-
}, o.clsContainer[`notify-${n}`] = !0, o.className && (o.clsContainer[o.className] = !0);
|
|
156
|
-
const d = H(o.position);
|
|
157
|
-
o.clsTransitionEnter = d.clsTransitionEnter, o.clsTransitionLeave = d.clsTransitionLeave;
|
|
158
|
-
const p = i.isExistJsonKey(c.icon, n) ? c.icon[n] : u.icon[n];
|
|
159
|
-
o.icon = `clIconFont ${p}`;
|
|
160
|
-
const k = i.getRandom(7), E = `notify_${o.position}_item_${k}`;
|
|
161
|
-
o.key = E, s[o.position].push(o), w(() => {
|
|
162
|
-
t.value.push(o.key), B(E);
|
|
163
|
-
});
|
|
164
|
-
}
|
|
165
|
-
}, F = (e) => {
|
|
166
|
-
l[e] && (clearTimeout(l[e]), l[e] = null);
|
|
167
|
-
}, q = (e) => {
|
|
168
|
-
B(e);
|
|
169
|
-
}, U = (e) => {
|
|
170
|
-
l[e] && (clearTimeout(l[e]), l[e] = null), b(e);
|
|
171
|
-
};
|
|
172
|
-
return v({
|
|
173
|
-
addCustom: (e) => {
|
|
174
|
-
R(e);
|
|
175
|
-
},
|
|
176
|
-
destroy: () => {
|
|
177
|
-
u.position.forEach((e) => {
|
|
178
|
-
s[e] = [];
|
|
179
|
-
}), t.value = [], P();
|
|
180
|
-
}
|
|
181
|
-
}), (e, n) => (f(), g("div", {
|
|
182
|
-
class: "panel-notify",
|
|
183
|
-
ref_key: "refElTopParent",
|
|
184
|
-
ref: r
|
|
185
|
-
}, [
|
|
186
|
-
(f(!0), g(_, null, L(s, (o, d) => (f(), g(_, {
|
|
187
|
-
key: `notify-${d}`
|
|
188
|
-
}, [
|
|
189
|
-
o.length > 0 ? (f(), g("div", {
|
|
190
|
-
key: 0,
|
|
191
|
-
class: T(`notify-wrapper notify-${d}`)
|
|
192
|
-
}, [
|
|
193
|
-
(f(!0), g(_, null, L(o, (p) => (f(), $(Y, {
|
|
194
|
-
key: p.key,
|
|
195
|
-
isShow: t.value.includes(p.key),
|
|
196
|
-
itemInfo: p,
|
|
197
|
-
onOnDestroy: U,
|
|
198
|
-
onOnMouseOver: F,
|
|
199
|
-
onOnMouseOut: q
|
|
200
|
-
}, null, 8, ["isShow", "itemInfo"]))), 128))
|
|
201
|
-
], 2)) : N("", !0)
|
|
202
|
-
], 64))), 128))
|
|
203
|
-
], 512));
|
|
204
|
-
}
|
|
205
|
-
}), ne = (a = {}) => {
|
|
206
|
-
const v = j(Z, a), m = document.createElement("div"), r = v.mount(m);
|
|
207
|
-
return {
|
|
208
|
-
info: (t, s = {}) => {
|
|
209
|
-
const c = i.getJsonMerge(s, { type: "info", msg: t });
|
|
210
|
-
r.addCustom(c);
|
|
211
|
-
},
|
|
212
|
-
success: (t, s = {}) => {
|
|
213
|
-
const c = i.getJsonMerge(s, { type: "success", msg: t });
|
|
214
|
-
r.addCustom(c);
|
|
215
|
-
},
|
|
216
|
-
error: (t, s = {}) => {
|
|
217
|
-
const c = i.getJsonMerge(s, { type: "error", msg: t });
|
|
218
|
-
r.addCustom(c);
|
|
219
|
-
},
|
|
220
|
-
warn: (t, s = {}) => {
|
|
221
|
-
const c = i.getJsonMerge(s, { type: "warn", msg: t });
|
|
222
|
-
r.addCustom(c);
|
|
223
|
-
},
|
|
224
|
-
custom: (t) => {
|
|
225
|
-
r.addCustom(t);
|
|
226
|
-
},
|
|
227
|
-
destroy: () => {
|
|
228
|
-
r.destroy();
|
|
229
|
-
}
|
|
230
|
-
};
|
|
231
|
-
};
|
|
232
|
-
export {
|
|
233
|
-
ne as default
|
|
234
|
-
};
|
|
235
|
-
//# sourceMappingURL=Notify.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Notify.js","sources":["../../../../src/libs/Web/Notify/Notify.vue","../../../../src/libs/Web/Notify/Notifys.vue","../../../../src/libs/Web/Notify/index.ts"],"sourcesContent":["<template>\n <transition\n name=\"notify\"\n :enter-active-class=\"itemInfo.clsTransitionEnter\"\n :leave-active-class=\"itemInfo.clsTransitionLeave\"\n >\n <div\n v-if=\"isShow\"\n :class=\"itemInfo.clsContainer\"\n @click=\"onDestroyInfo\"\n @mouseover=\"onMouseOver\"\n @mouseout=\"onMouseOut\"\n >\n <div class=\"notify-item\">\n <div class=\"notify-icon\"><i :class=\"itemInfo.icon\"></i></div>\n <div class=\"notify-text\">\n <div v-html=\"itemInfo.text\"></div>\n </div>\n <button\n type=\"button\"\n class=\"notify-close\"\n title=\"关闭\"\n @click=\"onDestroyInfo\"\n ><i class=\"clIconFont clIcon-close\"></i></button>\n </div>\n <div\n v-if=\"itemInfo.isProgress\"\n :class=\"clsProgress\"\n >\n <div :class=\"clsProgressBar\"></div>\n </div>\n </div>\n </transition>\n</template>\n\n<script setup lang=\"ts\">\nimport { computed, ref } from 'vue'\n\n// defineOptions\ndefineOptions({ name: 'ClNotifyItem' })\n\n// props\nconst props = defineProps<{\n isShow: boolean\n itemInfo: any\n}>()\n\n// emit\nconst emit = defineEmits<{\n (e: 'onMouseOver', key: string): void\n (e: 'onMouseOut', key: string): void\n (e: 'onDestroy', key: string): void\n}>()\n\n// reactive\nconst optMouseType = ref(false)\n\n// computed\nconst clsProgress = computed(() => {\n const cls: any = {\n progress: true,\n 'progress-hide': optMouseType.value,\n }\n return cls\n})\n\nconst clsProgressBar = computed(() => {\n const cls: any = {\n 'progress-bar': true,\n 'progress-countdown': !optMouseType.value,\n }\n return cls\n})\n\n// 内部触发的事件 on\nconst onMouseOver = () => {\n optMouseType.value = true\n emit('onMouseOver', props.itemInfo.key)\n}\n\nconst onMouseOut = () => {\n optMouseType.value = false\n emit('onMouseOut', props.itemInfo.key)\n}\n\nconst onDestroyInfo = () => {\n emit('onDestroy', props.itemInfo.key)\n}\n</script>\n","<template>\n <div\n class=\"panel-notify\"\n ref=\"refElTopParent\"\n >\n <template\n v-for=\"(msgList, msgPosition) in optMsgList\"\n :key=\"`notify-${msgPosition}`\"\n >\n <div\n v-if=\"msgList.length > 0\"\n :class=\"`notify-wrapper notify-${msgPosition}`\"\n >\n <ClNotifyItem\n v-for=\"item in msgList\"\n :key=\"item.key\"\n :isShow=\"optShowKeys.includes(item.key)\"\n :itemInfo=\"item\"\n @onDestroy=\"onDestroyItem\"\n @onMouseOver=\"onMouseOver\"\n @onMouseOut=\"onMouseOut\"\n ></ClNotifyItem>\n </div>\n </template>\n </div>\n</template>\n\n<script setup lang=\"ts\">\nimport './Index.css'\nimport { ref, reactive, nextTick } from 'vue'\nimport CommonBase from '../../Common/base'\nimport ClNotifyItem from './Notify.vue'\n\n// defineOptions\ndefineOptions({ name: 'ClNotify' })\n\n// props\nconst props = defineProps<{\n position?: string\n isProgress?: boolean\n}>()\n\n// refs\nconst refElTopParent = ref<HTMLElement | null>(null)\n\n// reactive\nconst optShowKeys = ref<string[]>([])\nconst optMsgList:any = reactive({\n 'top-right': [],\n 'top-center': [],\n 'bottom-right': [],\n})\n\nconst optModal:any = reactive({\n icon: {\n info: 'clIcon-info',\n success: 'clIcon-check',\n error: 'clIcon-exclamation',\n warn: 'clIcon-warn-fill',\n },\n delay: 5,\n autoHide: true,\n showDuration: true,\n isClickHide: true,\n})\n\nconst optTimeOutDelays = reactive<any>({})\nlet _timeOutDestroyContainer: any = null\n\n// 常量\nconst defaultNotifyCommon:any = {\n type: ['info', 'success', 'error', 'warn'],\n position: ['top-right', 'top-center', 'bottom-right'],\n}\n\n// 内部方法\nconst _getBody = () => {\n const el = document.querySelector('body')\n return el\n}\n\nconst _getTopEl = () => {\n const el = document.querySelector('body>.panel-notify')\n return el\n}\n\nconst _checkContainer = () => {\n const el = _getTopEl()\n return !CommonBase.isUndefined(el)\n}\n\nconst _creatorContainer = () => {\n if (!_checkContainer()) {\n _getBody()?.appendChild(refElTopParent.value!)\n } else {\n clearTimeout(_timeOutDestroyContainer)\n _timeOutDestroyContainer = null\n }\n}\n\nconst _destroyContainer = () => {\n nextTick(() => {\n if (_checkContainer()) {\n _timeOutDestroyContainer = setTimeout(() => {\n const el = _getTopEl()\n if (el) {\n _getBody()?.removeChild(el)\n }\n }, 2 * 1000)\n }\n })\n}\n\nconst _getMsgItem = (key: string) => {\n let selectInfo: any = {}\n let inx = -1\n const pos = key.split('_')[1]\n optMsgList[pos].forEach((info: any, i: number) => {\n if (info.key === key) {\n selectInfo = info\n inx = i\n }\n })\n return { info: selectInfo, inx, pos }\n}\n\nconst _removeItem = (key: string) => {\n const selectInfo = _getMsgItem(key)\n if (selectInfo.inx > -1) {\n const showIndex = optShowKeys.value.indexOf(key)\n optShowKeys.value.splice(showIndex, 1)\n nextTick(() => {\n optMsgList[selectInfo.pos].splice(selectInfo.inx, 1)\n if (optMsgList[selectInfo.pos].length === 0) {\n optMsgList[selectInfo.pos] = []\n }\n if (optShowKeys.value.length === 0) {\n optShowKeys.value = []\n _destroyContainer()\n }\n })\n }\n}\n\nconst _removeByDelay = (key: string) => {\n optTimeOutDelays[key] = setTimeout(() => {\n _removeItem(key)\n }, optModal.delay * 1000)\n}\n\nconst _getTransitionCls = (position: string) => {\n let clsTransitionEnter = 'animated fadeInDown'\n let clsTransitionLeave = 'animated fadeOutRight'\n switch (position) {\n case 'top-right':\n clsTransitionEnter = 'animated fadeInDown'\n clsTransitionLeave = 'animated fadeOutRight'\n break\n case 'top-center':\n clsTransitionEnter = 'animated fadeInDown'\n clsTransitionLeave = 'animated fadeOut'\n break\n case 'bottom-right':\n clsTransitionEnter = 'animated fadeInUp'\n clsTransitionLeave = 'animated fadeOutRight'\n break\n }\n return { clsTransitionEnter, clsTransitionLeave }\n}\n\nconst _creatorItem = (optExt: any) => {\n if (!CommonBase.isEmpty(optExt) && !CommonBase.isEmpty(optExt.msg)) {\n _creatorContainer()\n const newType = CommonBase.isExistValue(defaultNotifyCommon.type, optExt.type)\n ? optExt.type\n : defaultNotifyCommon.type[0]\n const options: any = {\n type: newType,\n text: optExt.msg,\n position: props.position || 'top-right',\n isProgress: props.isProgress || false,\n }\n\n if (!CommonBase.isEmpty(optExt)) {\n if (!CommonBase.isEmpty(optExt.position)) {\n options.position = optExt.position\n }\n if (CommonBase.isBoolean(optExt.isProgress)) {\n options.isProgress = optExt.isProgress\n }\n if (!CommonBase.isEmpty(optExt.className)) {\n options.className = optExt.className\n }\n }\n options.position = CommonBase.isExistValue(defaultNotifyCommon.position, options.position)\n ? options.position\n : defaultNotifyCommon.position[0]\n\n options.clsContainer = {\n 'notify-container': true,\n 'notify-progress': options.isProgress,\n }\n options.clsContainer[`notify-${newType}`] = true\n if (options.className) {\n options.clsContainer[options.className] = true\n }\n\n const itemTransitionCls = _getTransitionCls(options.position)\n options.clsTransitionEnter = itemTransitionCls.clsTransitionEnter\n options.clsTransitionLeave = itemTransitionCls.clsTransitionLeave\n\n const icon = CommonBase.isExistJsonKey(optModal.icon, newType)\n ? optModal.icon[newType]\n : defaultNotifyCommon.icon[newType]\n options.icon = `clIconFont ${icon}`\n\n const ind = CommonBase.getRandom(7)\n const notifyKey = `notify_${options.position}_item_${ind}`\n options.key = notifyKey\n\n optMsgList[options.position].push(options)\n nextTick(() => {\n optShowKeys.value.push(options.key)\n _removeByDelay(notifyKey)\n })\n }\n}\n\n// 内部触发的事件 on\nconst onMouseOver = (itemKey: string) => {\n if (optTimeOutDelays[itemKey]) {\n clearTimeout(optTimeOutDelays[itemKey])\n optTimeOutDelays[itemKey] = null\n }\n}\n\nconst onMouseOut = (itemKey: string) => {\n _removeByDelay(itemKey)\n}\n\nconst onDestroyItem = (itemKey: string) => {\n if (optTimeOutDelays[itemKey]) {\n clearTimeout(optTimeOutDelays[itemKey])\n optTimeOutDelays[itemKey] = null\n }\n _removeItem(itemKey)\n}\n\n// 外部调用\nconst addCustom = (opt: any) => {\n _creatorItem(opt)\n}\n\nconst destroy = () => {\n defaultNotifyCommon.position.forEach((p: string) => {\n optMsgList[p] = []\n })\n optShowKeys.value = []\n _destroyContainer()\n}\n\n// 暴露给外部的方法\nexport interface ClNotifyExpose {\n addCustom: (options: {\n title?: string\n content: string\n type?: 'success' | 'error' | 'warning' | 'info'\n duration?: number\n isShowClose?: boolean\n }) => void\n destroy: () => void\n}\n\ndefineExpose({\n addCustom,\n destroy\n})\n</script>\n","import { createApp } from \"vue\";\nimport ElementNotify from \"./Notifys.vue\";\nimport CommonBase from \"../../Common/base\";\n\nexport default (options = {}) => {\n const VNotify = createApp(ElementNotify, options);\n const tempParent = document.createElement(\"div\");\n const notify: any = VNotify.mount(tempParent);\n return {\n info: (msg: string, optExt = {}) => {\n const opt = CommonBase.getJsonMerge(optExt, { type: \"info\", msg });\n notify.addCustom(opt);\n },\n success: (msg: string, optExt = {}) => {\n const opt = CommonBase.getJsonMerge(optExt, { type: \"success\", msg });\n notify.addCustom(opt);\n },\n error: (msg: string, optExt = {}) => {\n const opt = CommonBase.getJsonMerge(optExt, { type: \"error\", msg });\n notify.addCustom(opt);\n },\n warn: (msg: string, optExt = {}) => {\n const opt = CommonBase.getJsonMerge(optExt, { type: \"warn\", msg });\n notify.addCustom(opt);\n },\n custom: (opt: any) => {\n notify.addCustom(opt);\n },\n destroy: () => {\n notify.destroy();\n },\n };\n};\n"],"names":["props","__props","emit","__emit","optMouseType","ref","clsProgress","computed","clsProgressBar","onMouseOver","onMouseOut","onDestroyInfo","_createBlock","_Transition","_createElementBlock","_normalizeClass","_createElementVNode","_hoisted_1","_hoisted_2","_hoisted_3","refElTopParent","optShowKeys","optMsgList","reactive","optModal","optTimeOutDelays","_timeOutDestroyContainer","defaultNotifyCommon","_getBody","_getTopEl","_checkContainer","el","CommonBase","_creatorContainer","_destroyContainer","nextTick","_getMsgItem","key","selectInfo","inx","pos","info","i","_removeItem","showIndex","_removeByDelay","_getTransitionCls","position","clsTransitionEnter","clsTransitionLeave","_creatorItem","optExt","newType","options","itemTransitionCls","icon","ind","notifyKey","itemKey","onDestroyItem","__expose","opt","p","_openBlock","_Fragment","_renderList","msgList","msgPosition","item","ClNotifyItem","index","VNotify","createApp","ElementNotify","tempParent","notify","msg"],"mappings":";;;;;;;;;;;AA0CA,UAAMA,IAAQC,GAMRC,IAAOC,GAOPC,IAAeC,EAAI,EAAK,GAGxBC,IAAcC,EAAS,OACV;AAAA,MACf,UAAU;AAAA,MACV,iBAAiBH,EAAa;AAAA,IAAA,EAGjC,GAEKI,IAAiBD,EAAS,OACb;AAAA,MACf,gBAAgB;AAAA,MAChB,sBAAsB,CAACH,EAAa;AAAA,IAAA,EAGvC,GAGKK,IAAc,MAAM;AACxB,MAAAL,EAAa,QAAQ,IACrBF,EAAK,eAAeF,EAAM,SAAS,GAAG;AAAA,IACxC,GAEMU,IAAa,MAAM;AACvB,MAAAN,EAAa,QAAQ,IACrBF,EAAK,cAAcF,EAAM,SAAS,GAAG;AAAA,IACvC,GAEMW,IAAgB,MAAM;AAC1B,MAAAT,EAAK,aAAaF,EAAM,SAAS,GAAG;AAAA,IACtC;2BAtFEY,EA+BaC,GAAA;AAAA,MA9BX,MAAK;AAAA,MACJ,sBAAoBZ,EAAA,SAAS;AAAA,MAC7B,sBAAoBA,EAAA,SAAS;AAAA,IAAA;iBAE9B,MAyBM;AAAA,QAxBEA,EAAA,eADRa,EAyBM,OAAA;AAAA;UAvBH,OAAKC,EAAEd,EAAA,SAAS,YAAY;AAAA,UAC5B,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S,OAAO;AACjC,YAAMU,IAAM7B,EAAW,aAAamB,GAAQ,EAAE,MAAM,SAAS,KAAAyB,GAAK;AAClE,MAAAD,EAAO,UAAUd,CAAG;AAAA,IACxB;AAAA,IACA,MAAM,CAACe,GAAazB,IAAS,OAAO;AAChC,YAAMU,IAAM7B,EAAW,aAAamB,GAAQ,EAAE,MAAM,QAAQ,KAAAyB,GAAK;AACjE,MAAAD,EAAO,UAAUd,CAAG;AAAA,IACxB;AAAA,IACA,QAAQ,CAACA,MAAa;AAClB,MAAAc,EAAO,UAAUd,CAAG;AAAA,IACxB;AAAA,IACA,SAAS,MAAM;AACX,MAAAc,EAAO,QAAA;AAAA,IACX;AAAA,EAAA;AAER;"}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";const p=require("vue"),u=require("../../Shared/Index.vue_vue_type_script_setup_true_lang-BjRPiJPA.js"),n=require("../../Shared/base-iCmnU-fv.js"),m=(r={})=>{const c=p.createApp(u._sfc_main,r),i=document.createElement("div"),t=c.mount(i);return{image:(e,o={})=>{const s=n.CommonBase.getJsonMerge(o,{type:"image",src:e});t.show(s)},video:(e,o={})=>{const s=n.CommonBase.getJsonMerge(o,{type:"video",src:e});t.show(s)},show:e=>{t.show(e)},destroy:()=>{t.destroy()}}};module.exports=m;
|
|
2
|
-
//# sourceMappingURL=Preview.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Preview.cjs","sources":["../../../../src/libs/Web/Preview/index.ts"],"sourcesContent":["import { createApp } from 'vue'\nimport ElementPreview from './Index.vue'\nimport CommonBase from '../../Common/base'\n\nexport default (options = {}) => {\n const VPreview = createApp(ElementPreview, options)\n const tempParent = document.createElement('div')\n const preview: any = VPreview.mount(tempParent)\n return {\n image: (src: string | string[], optExt = {}) => {\n const opt = CommonBase.getJsonMerge(optExt, { type: 'image', src })\n preview.show(opt)\n },\n video: (src: string | string[], optExt = {}) => {\n const opt = CommonBase.getJsonMerge(optExt, { type: 'video', src })\n preview.show(opt)\n },\n show: (opt: any) => {\n preview.show(opt)\n },\n destroy: () => {\n preview.destroy()\n },\n }\n}\n"],"names":["index","options","VPreview","createApp","ElementPreview","tempParent","preview","src","optExt","opt","CommonBase"],"mappings":"+JAIAA,EAAe,CAACC,EAAU,CAAA,IAAO,CAC/B,MAAMC,EAAWC,EAAAA,UAAUC,EAAAA,UAAgBH,CAAO,EAC5CI,EAAa,SAAS,cAAc,KAAK,EACzCC,EAAeJ,EAAS,MAAMG,CAAU,EAC9C,MAAO,CACL,MAAO,CAACE,EAAwBC,EAAS,KAAO,CAC9C,MAAMC,EAAMC,EAAAA,WAAW,aAAaF,EAAQ,CAAE,KAAM,QAAS,IAAAD,EAAK,EAClED,EAAQ,KAAKG,CAAG,CAClB,EACA,MAAO,CAACF,EAAwBC,EAAS,KAAO,CAC9C,MAAMC,EAAMC,EAAAA,WAAW,aAAaF,EAAQ,CAAE,KAAM,QAAS,IAAAD,EAAK,EAClED,EAAQ,KAAKG,CAAG,CAClB,EACA,KAAOA,GAAa,CAClBH,EAAQ,KAAKG,CAAG,CAClB,EACA,QAAS,IAAM,CACbH,EAAQ,QAAA,CACV,CAAA,CAEJ"}
|