centui 0.0.0-stage → 3.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +433 -0
- package/README.md +54 -2
- package/dist/ActionBar-Bs5fkyFH.cjs +1 -0
- package/dist/ActionBar-CF1zMUMC.js +56 -0
- package/dist/ActivityIndicator-BOZRJBDn.cjs +1 -0
- package/dist/ActivityIndicator-Cp20c1E0.js +162 -0
- package/dist/Agree-ZswFiFNy.cjs +1 -0
- package/dist/Agree-lAcOo38C.js +43 -0
- package/dist/Amount-B2StZGGW.js +56 -0
- package/dist/Amount-CU7Oc4vv.cjs +1 -0
- package/dist/Bill-DDVs3Lu3.cjs +1 -0
- package/dist/Bill-qQ4LdkmR.js +58 -0
- package/dist/Button-Bu8liJQE.cjs +1 -0
- package/dist/Button-D7e-cuA1.js +60 -0
- package/dist/Captcha-BEF-de8-.cjs +1 -0
- package/dist/Captcha-CgpynYTc.js +283 -0
- package/dist/Cashier-CJLfQOXm.js +363 -0
- package/dist/Cashier-CLJngM0n.cjs +1 -0
- package/dist/CellItem-BHEh4Cp-.js +71 -0
- package/dist/CellItem-J0LkwZNL.cjs +1 -0
- package/dist/Chart-BINJAx7V.js +135 -0
- package/dist/Chart-DJ0Q1g1P.cjs +1 -0
- package/dist/CheckBox-D5bCJUXD.js +55 -0
- package/dist/CheckBox-DDeCshDK.cjs +1 -0
- package/dist/CheckBoxBase-BIPGJ-TD.js +43 -0
- package/dist/CheckBoxBase-CobK6-tL.cjs +1 -0
- package/dist/CheckList-BsKo_Fl3.cjs +1 -0
- package/dist/CheckList-ViiCo4yi.js +195 -0
- package/dist/Codebox-BLPrFnIv.js +188 -0
- package/dist/Codebox-yLkdTU7w.cjs +1 -0
- package/dist/DatePicker-CCU6gqG3.cjs +1 -0
- package/dist/DatePicker-CYvPJatt.js +175 -0
- package/dist/DetailItem-D6-zbZmd.js +21 -0
- package/dist/DetailItem-DDJXXao0.cjs +1 -0
- package/dist/Dialog-208_XUAL.cjs +1 -0
- package/dist/Dialog-Bb7Gth3j.js +148 -0
- package/dist/DropMenu-5TA_6bas.js +95 -0
- package/dist/DropMenu-D_ZMGOOi.cjs +1 -0
- package/dist/Field-0hdNWFNm.js +50 -0
- package/dist/Field-DDmHa4zB.cjs +1 -0
- package/dist/FieldItem-D79w330m.js +87 -0
- package/dist/FieldItem-UFKrl_5J.cjs +1 -0
- package/dist/Icon-83WWqE5z.cjs +31 -0
- package/dist/Icon-BgCtu0ZV.js +117 -0
- package/dist/ImageReader-DjshA_hh.cjs +1 -0
- package/dist/ImageReader-hUb5CEbV.js +122 -0
- package/dist/ImageViewer-BCEK4DOF.cjs +1 -0
- package/dist/ImageViewer-_dTRCIsV.js +68 -0
- package/dist/InputItem-DO5Yo_IH.cjs +1 -0
- package/dist/InputItem-yHsLFvKt.js +327 -0
- package/dist/Landscape-BsHyoM4N.cjs +1 -0
- package/dist/Landscape-Dd0abEy1.js +73 -0
- package/dist/LicensePlate-CTcAIbcb.js +201 -0
- package/dist/LicensePlate-CfwpVw0G.cjs +1 -0
- package/dist/NoticeBar-CV355FeO.cjs +1 -0
- package/dist/NoticeBar-G5aKL6VO.js +92 -0
- package/dist/NumberKeyboard-BWpxsbYt.cjs +1 -0
- package/dist/NumberKeyboard-B_TJXxki.js +335 -0
- package/dist/Picker-BOEGTBaN.cjs +1 -0
- package/dist/Picker-CA-JQ_OC.js +493 -0
- package/dist/Popup-Ca1jPi0t.cjs +1 -0
- package/dist/Popup-qLk-BsRS.js +116 -0
- package/dist/PopupTitleBar-9P4RUMC1.js +84 -0
- package/dist/PopupTitleBar-Bfl49eYJ.cjs +1 -0
- package/dist/Progress-CT-LHaQ0.cjs +1 -0
- package/dist/Progress-Clet0W_n.js +65 -0
- package/dist/Radio-B_MxJ65X.cjs +1 -0
- package/dist/Radio-DY-ZX0BP.js +67 -0
- package/dist/RadioGroup-B00aqM9e.js +84 -0
- package/dist/RadioGroup-B6ukqnm5.cjs +1 -0
- package/dist/RadioList-D-9PITpr.cjs +1 -0
- package/dist/RadioList-DNGsEzgf.js +125 -0
- package/dist/ResultPage-DUs8ok5R.js +64 -0
- package/dist/ResultPage-YQWDaFmz.cjs +1 -0
- package/dist/Roller-BznN57fL.js +91 -0
- package/dist/Roller-DALhjhfg.cjs +1 -0
- package/dist/RollerSuccess-BbMzNlkv.cjs +1 -0
- package/dist/RollerSuccess-CTh43Rh0.js +65 -0
- package/dist/Ruler-Bhf5J7hU.js +136 -0
- package/dist/Ruler-CEzB0oqG.cjs +1 -0
- package/dist/ScrollView-BNY62f7B.js +228 -0
- package/dist/ScrollView-BnadVBJC.cjs +1 -0
- package/dist/ScrollViewMore-BL1vpyMj.cjs +1 -0
- package/dist/ScrollViewMore-DBhoiI1X.js +54 -0
- package/dist/Selector-DOU8Af55.js +209 -0
- package/dist/Selector-DnFvOGbv.cjs +1 -0
- package/dist/Skeleton--SCiydNl.cjs +1 -0
- package/dist/Skeleton-DqA5IxL5.js +54 -0
- package/dist/Slider-BB2Nhpys.js +100 -0
- package/dist/Slider-vV7_nULf.cjs +1 -0
- package/dist/Stepper-BnDhL8IO.js +137 -0
- package/dist/Stepper-n_mc16V2.cjs +1 -0
- package/dist/Steps-BPQwab3T.js +157 -0
- package/dist/Steps-Dfpmgl8B.cjs +1 -0
- package/dist/SwiperItem-BY5cUoGn.cjs +1 -0
- package/dist/SwiperItem-BydyBdYU.js +323 -0
- package/dist/Switch-B1rsBY-M.js +31 -0
- package/dist/Switch-CghubImq.cjs +1 -0
- package/dist/TabPane-BCVsdptu.cjs +1 -0
- package/dist/TabPane-Q7oUFzmP.js +237 -0
- package/dist/TabPicker-BcL9assY.cjs +1 -0
- package/dist/TabPicker-BicPrto7.js +173 -0
- package/dist/Tag-C7ygxOwU.js +78 -0
- package/dist/Tag-CIA2npnD.cjs +1 -0
- package/dist/TextareaItem-Dl-PCLl-.js +168 -0
- package/dist/TextareaItem-Du5nl7tv.cjs +1 -0
- package/dist/Tip-DHPmevlv.js +165 -0
- package/dist/Tip-De_3tKtb.cjs +1 -0
- package/dist/Transition-B-baX512.js +14 -0
- package/dist/Transition-Bwbqr4Xr.cjs +1 -0
- package/dist/WaterMark-CgkuQjv3.js +103 -0
- package/dist/WaterMark-M81jg6T5.cjs +1 -0
- package/dist/action-bar.cjs +1 -0
- package/dist/action-bar.d.ts +1 -0
- package/dist/action-bar.js +1 -0
- package/dist/action-sheet-BjaReHkr.cjs +1 -0
- package/dist/action-sheet-Da8dHevy.js +121 -0
- package/dist/action-sheet.cjs +1 -0
- package/dist/action-sheet.d.ts +2 -0
- package/dist/action-sheet.js +1 -0
- package/dist/activity-indicator.cjs +1 -0
- package/dist/activity-indicator.d.ts +1 -0
- package/dist/activity-indicator.js +4 -0
- package/dist/agree.cjs +1 -0
- package/dist/agree.d.ts +1 -0
- package/dist/agree.js +1 -0
- package/dist/amount.cjs +1 -0
- package/dist/amount.d.ts +1 -0
- package/dist/amount.js +1 -0
- package/dist/bill.cjs +1 -0
- package/dist/bill.d.ts +1 -0
- package/dist/bill.js +1 -0
- package/dist/button.cjs +1 -0
- package/dist/button.d.ts +1 -0
- package/dist/button.js +1 -0
- package/dist/captcha.cjs +1 -0
- package/dist/captcha.d.ts +1 -0
- package/dist/captcha.js +1 -0
- package/dist/cashier.cjs +1 -0
- package/dist/cashier.d.ts +1 -0
- package/dist/cashier.js +1 -0
- package/dist/cell-item.cjs +1 -0
- package/dist/cell-item.d.ts +1 -0
- package/dist/cell-item.js +1 -0
- package/dist/chart.cjs +1 -0
- package/dist/chart.d.ts +1 -0
- package/dist/chart.js +1 -0
- package/dist/check-base.cjs +1 -0
- package/dist/check-base.d.ts +1 -0
- package/dist/check-base.js +1 -0
- package/dist/check.cjs +1 -0
- package/dist/check.d.ts +1 -0
- package/dist/check.js +3 -0
- package/dist/codebox.cjs +1 -0
- package/dist/codebox.d.ts +1 -0
- package/dist/codebox.js +1 -0
- package/dist/components/action-bar/ActionBar.vue.d.ts +34 -0
- package/dist/components/action-bar/index.d.ts +2 -0
- package/dist/components/action-sheet/ActionSheet.vue.d.ts +49 -0
- package/dist/components/action-sheet/index.d.ts +25 -0
- package/dist/components/activity-indicator/ActivityIndicator.vue.d.ts +31 -0
- package/dist/components/activity-indicator/Carousel.vue.d.ts +10 -0
- package/dist/components/activity-indicator/CarouselCircle.vue.d.ts +12 -0
- package/dist/components/activity-indicator/Roller.vue.d.ts +37 -0
- package/dist/components/activity-indicator/RollerSuccess.vue.d.ts +14 -0
- package/dist/components/activity-indicator/Spinning.vue.d.ts +10 -0
- package/dist/components/activity-indicator/index.d.ts +5 -0
- package/dist/components/agree/Agree.vue.d.ts +35 -0
- package/dist/components/agree/index.d.ts +1 -0
- package/dist/components/amount/Amount.vue.d.ts +25 -0
- package/dist/components/amount/index.d.ts +1 -0
- package/dist/components/bill/Bill.vue.d.ts +33 -0
- package/dist/components/bill/index.d.ts +1 -0
- package/dist/components/button/Button.vue.d.ts +38 -0
- package/dist/components/button/index.d.ts +1 -0
- package/dist/components/captcha/Captcha.vue.d.ts +76 -0
- package/dist/components/captcha/index.d.ts +1 -0
- package/dist/components/cashier/Cashier.vue.d.ts +101 -0
- package/dist/components/cashier/CashierChannel.vue.d.ts +58 -0
- package/dist/components/cashier/CashierChannelButton.vue.d.ts +14 -0
- package/dist/components/cashier/CashierChannelItem.vue.d.ts +30 -0
- package/dist/components/cashier/index.d.ts +4 -0
- package/dist/components/cell-item/CellItem.vue.d.ts +38 -0
- package/dist/components/cell-item/index.d.ts +1 -0
- package/dist/components/chart/Chart.vue.d.ts +30 -0
- package/dist/components/chart/index.d.ts +2 -0
- package/dist/components/check/Check.vue.d.ts +38 -0
- package/dist/components/check/CheckBox.vue.d.ts +31 -0
- package/dist/components/check/CheckGroup.vue.d.ts +27 -0
- package/dist/components/check/CheckList.vue.d.ts +58 -0
- package/dist/components/check/index.d.ts +6 -0
- package/dist/components/check/shared.d.ts +52 -0
- package/dist/components/check-base/CheckBoxBase.vue.d.ts +25 -0
- package/dist/components/check-base/index.d.ts +1 -0
- package/dist/components/codebox/Codebox.vue.d.ts +58 -0
- package/dist/components/codebox/index.d.ts +1 -0
- package/dist/components/date-picker/DatePicker.vue.d.ts +70 -0
- package/dist/components/date-picker/index.d.ts +1 -0
- package/dist/components/detail-item/DetailItem.vue.d.ts +22 -0
- package/dist/components/detail-item/index.d.ts +1 -0
- package/dist/components/dialog/Dialog.vue.d.ts +88 -0
- package/dist/components/dialog/index.d.ts +40 -0
- package/dist/components/drop-menu/DropMenu.vue.d.ts +55 -0
- package/dist/components/drop-menu/index.d.ts +1 -0
- package/dist/components/field/Field.vue.d.ts +30 -0
- package/dist/components/field/index.d.ts +1 -0
- package/dist/components/field-item/FieldItem.vue.d.ts +42 -0
- package/dist/components/field-item/index.d.ts +1 -0
- package/dist/components/icon/Icon.vue.d.ts +20 -0
- package/dist/components/icon/default-svg-list.d.ts +2 -0
- package/dist/components/icon/index.d.ts +1 -0
- package/dist/components/icon/load-sprite.d.ts +6 -0
- package/dist/components/image-reader/ImageReader.vue.d.ts +46 -0
- package/dist/components/image-reader/index.d.ts +1 -0
- package/dist/components/image-viewer/ImageViewer.vue.d.ts +25 -0
- package/dist/components/image-viewer/index.d.ts +1 -0
- package/dist/components/index.d.ts +3 -0
- package/dist/components/input-item/InputItem.vue.d.ts +97 -0
- package/dist/components/input-item/cursor.d.ts +7 -0
- package/dist/components/input-item/index.d.ts +1 -0
- package/dist/components/landscape/Landscape.vue.d.ts +38 -0
- package/dist/components/landscape/index.d.ts +1 -0
- package/dist/components/license-plate/LicensePlate.vue.d.ts +32 -0
- package/dist/components/license-plate/LicensePlateInput.vue.d.ts +14 -0
- package/dist/components/license-plate/LicensePlateKeyboard.vue.d.ts +30 -0
- package/dist/components/license-plate/index.d.ts +3 -0
- package/dist/components/notice-bar/NoticeBar.vue.d.ts +44 -0
- package/dist/components/notice-bar/index.d.ts +1 -0
- package/dist/components/number-keyboard/KeyboardBoard.vue.d.ts +33 -0
- package/dist/components/number-keyboard/KeyboardKey.vue.d.ts +19 -0
- package/dist/components/number-keyboard/NumberKeyboard.vue.d.ts +59 -0
- package/dist/components/number-keyboard/index.d.ts +3 -0
- package/dist/components/picker/Picker.vue.d.ts +64 -0
- package/dist/components/picker/PickerColumn.vue.d.ts +64 -0
- package/dist/components/picker/index.d.ts +3 -0
- package/dist/components/popup/Popup.vue.d.ts +50 -0
- package/dist/components/popup/PopupTitleBar.vue.d.ts +45 -0
- package/dist/components/popup/index.d.ts +2 -0
- package/dist/components/progress/Progress.vue.d.ts +39 -0
- package/dist/components/progress/index.d.ts +1 -0
- package/dist/components/radio/Radio.vue.d.ts +39 -0
- package/dist/components/radio/RadioBox.vue.d.ts +31 -0
- package/dist/components/radio/RadioGroup.vue.d.ts +24 -0
- package/dist/components/radio/index.d.ts +3 -0
- package/dist/components/radio-list/RadioList.vue.d.ts +72 -0
- package/dist/components/radio-list/index.d.ts +2 -0
- package/dist/components/result-page/ResultPage.vue.d.ts +28 -0
- package/dist/components/result-page/index.d.ts +1 -0
- package/dist/components/ruler/Ruler.vue.d.ts +34 -0
- package/dist/components/ruler/index.d.ts +1 -0
- package/dist/components/scroll-view/ScrollView.vue.d.ts +84 -0
- package/dist/components/scroll-view/ScrollViewMore.vue.d.ts +12 -0
- package/dist/components/scroll-view/ScrollViewRefresh.vue.d.ts +20 -0
- package/dist/components/scroll-view/index.d.ts +3 -0
- package/dist/components/selector/Selector.vue.d.ts +88 -0
- package/dist/components/selector/index.d.ts +2 -0
- package/dist/components/skeleton/Skeleton.vue.d.ts +30 -0
- package/dist/components/skeleton/index.d.ts +1 -0
- package/dist/components/slider/Slider.vue.d.ts +24 -0
- package/dist/components/slider/index.d.ts +1 -0
- package/dist/components/stepper/Stepper.vue.d.ts +32 -0
- package/dist/components/stepper/index.d.ts +1 -0
- package/dist/components/steps/Steps.vue.d.ts +56 -0
- package/dist/components/steps/index.d.ts +2 -0
- package/dist/components/swiper/Swiper.vue.d.ts +57 -0
- package/dist/components/swiper/SwiperItem.vue.d.ts +26 -0
- package/dist/components/swiper/index.d.ts +2 -0
- package/dist/components/switch/Switch.vue.d.ts +16 -0
- package/dist/components/switch/index.d.ts +1 -0
- package/dist/components/tab-picker/TabPicker.vue.d.ts +78 -0
- package/dist/components/tab-picker/index.d.ts +1 -0
- package/dist/components/tabs/TabBar.vue.d.ts +50 -0
- package/dist/components/tabs/TabPane.vue.d.ts +31 -0
- package/dist/components/tabs/Tabs.vue.d.ts +34 -0
- package/dist/components/tabs/index.d.ts +3 -0
- package/dist/components/tag/Tag.vue.d.ts +39 -0
- package/dist/components/tag/index.d.ts +1 -0
- package/dist/components/textarea-item/TextareaItem.vue.d.ts +80 -0
- package/dist/components/textarea-item/index.d.ts +1 -0
- package/dist/components/tip/Tip.vue.d.ts +98 -0
- package/dist/components/tip/TipContent.vue.d.ts +33 -0
- package/dist/components/tip/index.d.ts +2 -0
- package/dist/components/toast/Toast.vue.d.ts +45 -0
- package/dist/components/toast/index.d.ts +129 -0
- package/dist/components/transition/Transition.vue.d.ts +13 -0
- package/dist/components/transition/index.d.ts +1 -0
- package/dist/components/water-mark/WaterMark.vue.d.ts +35 -0
- package/dist/components/water-mark/index.d.ts +1 -0
- package/dist/cursor-BIPoNm8V.js +11 -0
- package/dist/cursor-tQE3LcbU.cjs +1 -0
- package/dist/date-picker.cjs +1 -0
- package/dist/date-picker.d.ts +1 -0
- package/dist/date-picker.js +1 -0
- package/dist/detail-item.cjs +1 -0
- package/dist/detail-item.d.ts +1 -0
- package/dist/detail-item.js +1 -0
- package/dist/dialog-C38EDWGJ.cjs +1 -0
- package/dist/dialog-DdNA6YSe.js +91 -0
- package/dist/dialog.cjs +1 -0
- package/dist/dialog.d.ts +2 -0
- package/dist/dialog.js +3 -0
- package/dist/drop-menu.cjs +1 -0
- package/dist/drop-menu.d.ts +1 -0
- package/dist/drop-menu.js +1 -0
- package/dist/field-item.cjs +1 -0
- package/dist/field-item.d.ts +1 -0
- package/dist/field-item.js +1 -0
- package/dist/field.cjs +1 -0
- package/dist/field.d.ts +1 -0
- package/dist/field.js +1 -0
- package/dist/icon.cjs +1 -0
- package/dist/icon.d.ts +1 -0
- package/dist/icon.js +1 -0
- package/dist/image-reader.cjs +1 -0
- package/dist/image-reader.d.ts +1 -0
- package/dist/image-reader.js +1 -0
- package/dist/image-viewer.cjs +1 -0
- package/dist/image-viewer.d.ts +1 -0
- package/dist/image-viewer.js +1 -0
- package/dist/index.cjs +1 -0
- package/dist/index.d.ts +64 -0
- package/dist/index.js +61 -0
- package/dist/input-item.cjs +1 -0
- package/dist/input-item.d.ts +1 -0
- package/dist/input-item.js +1 -0
- package/dist/landscape.cjs +1 -0
- package/dist/landscape.d.ts +1 -0
- package/dist/landscape.js +1 -0
- package/dist/license-plate.cjs +1 -0
- package/dist/license-plate.d.ts +1 -0
- package/dist/license-plate.js +1 -0
- package/dist/notice-bar.cjs +1 -0
- package/dist/notice-bar.d.ts +1 -0
- package/dist/notice-bar.js +1 -0
- package/dist/number-keyboard.cjs +1 -0
- package/dist/number-keyboard.d.ts +1 -0
- package/dist/number-keyboard.js +1 -0
- package/dist/picker.cjs +1 -0
- package/dist/picker.d.ts +1 -0
- package/dist/picker.js +1 -0
- package/dist/popup.cjs +1 -0
- package/dist/popup.d.ts +1 -0
- package/dist/popup.js +3 -0
- package/dist/progress.cjs +1 -0
- package/dist/progress.d.ts +1 -0
- package/dist/progress.js +1 -0
- package/dist/radio-list.cjs +1 -0
- package/dist/radio-list.d.ts +1 -0
- package/dist/radio-list.js +1 -0
- package/dist/radio.cjs +1 -0
- package/dist/radio.d.ts +1 -0
- package/dist/radio.js +3 -0
- package/dist/result-page.cjs +1 -0
- package/dist/result-page.d.ts +1 -0
- package/dist/result-page.js +1 -0
- package/dist/ruler.cjs +1 -0
- package/dist/ruler.d.ts +1 -0
- package/dist/ruler.js +1 -0
- package/dist/scroll-view.cjs +1 -0
- package/dist/scroll-view.d.ts +1 -0
- package/dist/scroll-view.js +3 -0
- package/dist/selector.cjs +1 -0
- package/dist/selector.d.ts +1 -0
- package/dist/selector.js +1 -0
- package/dist/shared-C9XlLe7F.js +36 -0
- package/dist/shared-k9cbQbvK.cjs +1 -0
- package/dist/skeleton.cjs +1 -0
- package/dist/skeleton.d.ts +1 -0
- package/dist/skeleton.js +1 -0
- package/dist/slider.cjs +1 -0
- package/dist/slider.d.ts +1 -0
- package/dist/slider.js +1 -0
- package/dist/stepper.cjs +1 -0
- package/dist/stepper.d.ts +1 -0
- package/dist/stepper.js +1 -0
- package/dist/steps.cjs +1 -0
- package/dist/steps.d.ts +1 -0
- package/dist/steps.js +1 -0
- package/dist/swiper.cjs +1 -0
- package/dist/swiper.d.ts +1 -0
- package/dist/swiper.js +1 -0
- package/dist/switch.cjs +1 -0
- package/dist/switch.d.ts +1 -0
- package/dist/switch.js +1 -0
- package/dist/tab-picker.cjs +1 -0
- package/dist/tab-picker.d.ts +1 -0
- package/dist/tab-picker.js +1 -0
- package/dist/tabs.cjs +1 -0
- package/dist/tabs.d.ts +1 -0
- package/dist/tabs.js +1 -0
- package/dist/tag.cjs +1 -0
- package/dist/tag.d.ts +1 -0
- package/dist/tag.js +1 -0
- package/dist/textarea-item.cjs +1 -0
- package/dist/textarea-item.d.ts +1 -0
- package/dist/textarea-item.js +1 -0
- package/dist/tip.cjs +1 -0
- package/dist/tip.d.ts +1 -0
- package/dist/tip.js +1 -0
- package/dist/toast-ByIFvpMs.js +146 -0
- package/dist/toast-C1K2_cOo.cjs +1 -0
- package/dist/toast.cjs +1 -0
- package/dist/toast.d.ts +2 -0
- package/dist/toast.js +1 -0
- package/dist/transition.cjs +1 -0
- package/dist/transition.d.ts +1 -0
- package/dist/transition.js +1 -0
- package/dist/water-mark.cjs +1 -0
- package/dist/water-mark.d.ts +1 -0
- package/dist/water-mark.js +1 -0
- package/package.json +296 -3
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
import { t as e } from "./Roller-BznN57fL.js";
|
|
2
|
+
import { t } from "./Icon-BgCtu0ZV.js";
|
|
3
|
+
import { Fragment as n, computed as r, createBlock as i, createCommentVNode as a, createElementBlock as o, createElementVNode as s, createVNode as c, defineComponent as l, normalizeClass as u, normalizeStyle as d, openBlock as f, renderList as p, renderSlot as m } from "vue";
|
|
4
|
+
// src/components/activity-indicator/Spinning.vue
|
|
5
|
+
var h = /* @__PURE__ */ l({
|
|
6
|
+
name: "cu-activity-indicator-spinning",
|
|
7
|
+
__name: "Spinning",
|
|
8
|
+
props: {
|
|
9
|
+
size: { default: 70 },
|
|
10
|
+
color: { default: "dark" }
|
|
11
|
+
},
|
|
12
|
+
setup(e) {
|
|
13
|
+
return (n, r) => (f(), o("div", { class: u(["cu-activity-indicator-spinning", { dark: e.color === "dark" }]) }, [c(t, {
|
|
14
|
+
class: "cu-activity-indicator-svg",
|
|
15
|
+
name: "spinner",
|
|
16
|
+
style: d({
|
|
17
|
+
width: `${e.size}px`,
|
|
18
|
+
height: `${e.size}px`
|
|
19
|
+
})
|
|
20
|
+
}, null, 8, ["style"])], 2));
|
|
21
|
+
}
|
|
22
|
+
}), g = [
|
|
23
|
+
"cx",
|
|
24
|
+
"cy",
|
|
25
|
+
"r"
|
|
26
|
+
], _ = ["values"], v = ["values"], y = /* @__PURE__ */ l({
|
|
27
|
+
name: "cu-activity-indicator-carousel-circle",
|
|
28
|
+
__name: "CarouselCircle",
|
|
29
|
+
props: {
|
|
30
|
+
size: { default: 30 },
|
|
31
|
+
index: { default: 0 },
|
|
32
|
+
animateValues: { default: () => [] }
|
|
33
|
+
},
|
|
34
|
+
setup(e) {
|
|
35
|
+
let t = e, n = r(() => t.index * t.size * 1.5 + t.size / 2), i = r(() => t.animateValues.join(";")), a = r(() => t.animateValues.map((e) => e * t.size / 2).join(";"));
|
|
36
|
+
return (t, r) => (f(), o("circle", {
|
|
37
|
+
cx: n.value,
|
|
38
|
+
cy: e.size / 2,
|
|
39
|
+
r: e.size / 2
|
|
40
|
+
}, [s("animate", {
|
|
41
|
+
attributeName: "fill-opacity",
|
|
42
|
+
attributeType: "XML",
|
|
43
|
+
begin: "0s",
|
|
44
|
+
dur: "1s",
|
|
45
|
+
values: i.value,
|
|
46
|
+
calcMode: "linear",
|
|
47
|
+
repeatCount: "indefinite"
|
|
48
|
+
}, null, 8, _), s("animate", {
|
|
49
|
+
attributeName: "r",
|
|
50
|
+
attributeType: "XML",
|
|
51
|
+
begin: "0s",
|
|
52
|
+
dur: "1s",
|
|
53
|
+
values: a.value,
|
|
54
|
+
calcMode: "linear",
|
|
55
|
+
repeatCount: "indefinite"
|
|
56
|
+
}, null, 8, v)], 8, g));
|
|
57
|
+
}
|
|
58
|
+
}), b = { class: "cu-activity-indicator-carousel" }, x = ["viewBox", "fill"], S = /* @__PURE__ */ l({
|
|
59
|
+
name: "cu-activity-indicator-carousel",
|
|
60
|
+
__name: "Carousel",
|
|
61
|
+
props: {
|
|
62
|
+
size: { default: 30 },
|
|
63
|
+
color: { default: "#2F86F6" }
|
|
64
|
+
},
|
|
65
|
+
setup(e) {
|
|
66
|
+
let t = e, i = [
|
|
67
|
+
[
|
|
68
|
+
1,
|
|
69
|
+
.8,
|
|
70
|
+
.6,
|
|
71
|
+
.6,
|
|
72
|
+
.6,
|
|
73
|
+
.8,
|
|
74
|
+
1
|
|
75
|
+
],
|
|
76
|
+
[
|
|
77
|
+
.6,
|
|
78
|
+
.8,
|
|
79
|
+
1,
|
|
80
|
+
.8,
|
|
81
|
+
.6,
|
|
82
|
+
.6,
|
|
83
|
+
.6
|
|
84
|
+
],
|
|
85
|
+
[
|
|
86
|
+
.6,
|
|
87
|
+
.6,
|
|
88
|
+
.6,
|
|
89
|
+
.8,
|
|
90
|
+
1,
|
|
91
|
+
.8,
|
|
92
|
+
.6
|
|
93
|
+
]
|
|
94
|
+
], a = r(() => {
|
|
95
|
+
let e = i.length;
|
|
96
|
+
return e * t.size + (e - 1) * t.size / 2;
|
|
97
|
+
}), s = r(() => `0 0 ${a.value} ${t.size}`);
|
|
98
|
+
return (t, r) => (f(), o("div", b, [(f(), o("svg", {
|
|
99
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
100
|
+
viewBox: s.value,
|
|
101
|
+
fill: e.color,
|
|
102
|
+
style: d({
|
|
103
|
+
width: `${a.value}px`,
|
|
104
|
+
height: `${e.size}px`
|
|
105
|
+
}),
|
|
106
|
+
class: "cu-activity-indicator-svg carouseling"
|
|
107
|
+
}, [(f(), o(n, null, p(i, (t, n) => c(y, {
|
|
108
|
+
key: `carousel-circle-${n}`,
|
|
109
|
+
size: e.size,
|
|
110
|
+
index: n,
|
|
111
|
+
"animate-values": t
|
|
112
|
+
}, null, 8, [
|
|
113
|
+
"size",
|
|
114
|
+
"index",
|
|
115
|
+
"animate-values"
|
|
116
|
+
])), 64))], 12, x))]));
|
|
117
|
+
}
|
|
118
|
+
}), C = { class: "indicator-loading" }, w = /* @__PURE__ */ l({
|
|
119
|
+
name: "cu-activity-indicator",
|
|
120
|
+
__name: "ActivityIndicator",
|
|
121
|
+
props: {
|
|
122
|
+
type: { default: "roller" },
|
|
123
|
+
size: { default: 70 },
|
|
124
|
+
width: { default: void 0 },
|
|
125
|
+
color: { default: void 0 },
|
|
126
|
+
textColor: { default: "#999" },
|
|
127
|
+
textSize: { default: void 0 },
|
|
128
|
+
vertical: {
|
|
129
|
+
type: Boolean,
|
|
130
|
+
default: !1
|
|
131
|
+
}
|
|
132
|
+
},
|
|
133
|
+
setup(t) {
|
|
134
|
+
let n = t, c = r(() => n.color ?? (n.type === "spinner" ? "dark" : "#2F86F6"));
|
|
135
|
+
return (n, r) => (f(), o("div", { class: u(["cu-activity-indicator", t.type]) }, [s("div", { class: u(["indicator-container", { vertical: t.vertical }]) }, [s("div", C, [t.type === "roller" ? (f(), i(e, {
|
|
136
|
+
key: 0,
|
|
137
|
+
size: t.size,
|
|
138
|
+
color: c.value,
|
|
139
|
+
width: t.width
|
|
140
|
+
}, null, 8, [
|
|
141
|
+
"size",
|
|
142
|
+
"color",
|
|
143
|
+
"width"
|
|
144
|
+
])) : t.type === "spinner" ? (f(), i(h, {
|
|
145
|
+
key: 1,
|
|
146
|
+
size: t.size,
|
|
147
|
+
color: c.value
|
|
148
|
+
}, null, 8, ["size", "color"])) : t.type === "carousel" ? (f(), i(S, {
|
|
149
|
+
key: 2,
|
|
150
|
+
size: t.size,
|
|
151
|
+
color: c.value
|
|
152
|
+
}, null, 8, ["size", "color"])) : a("", !0)]), n.$slots.default ? (f(), o("div", {
|
|
153
|
+
key: 0,
|
|
154
|
+
style: d({
|
|
155
|
+
fontSize: `${t.textSize}px`,
|
|
156
|
+
color: t.textColor
|
|
157
|
+
}),
|
|
158
|
+
class: "cu-activity-indicator-text indicator-text"
|
|
159
|
+
}, [m(n.$slots, "default")], 4)) : a("", !0)], 2)], 2));
|
|
160
|
+
}
|
|
161
|
+
});
|
|
162
|
+
export { S as n, h as r, w as t };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require("./Icon-83WWqE5z.cjs");let t=require("vue");var n={class:`cu-agree-icon-container`},r={key:0},i={key:1},a={class:`cu-agree-content`},o=(0,t.defineComponent)({name:`cu-agree`,__name:`Agree`,props:{modelValue:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},size:{default:`md`},iconType:{default:`circle`}},emits:[`update:modelValue`,`change`],setup(o,{emit:s}){let c=o,l=s;function u(e){c.disabled||(l(`update:modelValue`,!c.modelValue),l(`change`,e))}return(s,c)=>((0,t.openBlock)(),(0,t.createElementBlock)(`div`,{class:(0,t.normalizeClass)([`cu-agree`,[o.disabled?`disabled`:``]])},[(0,t.createElementVNode)(`div`,{class:(0,t.normalizeClass)([`cu-agree-icon`,[o.modelValue?`checked`:``]]),onClick:c[0]||=e=>u(e)},[(0,t.createElementVNode)(`div`,n,[(0,t.renderSlot)(s.$slots,`icon`,{checked:o.modelValue},()=>[o.iconType===`square`?((0,t.openBlock)(),(0,t.createElementBlock)(`span`,r,[(0,t.createVNode)(e.t,{name:`square-checked`,size:o.size},null,8,[`size`]),(0,t.createVNode)(e.t,{name:`square-check`,size:o.size},null,8,[`size`])])):((0,t.openBlock)(),(0,t.createElementBlock)(`span`,i,[(0,t.createVNode)(e.t,{name:`checked`,size:o.size},null,8,[`size`]),(0,t.createVNode)(e.t,{name:`check`,size:o.size},null,8,[`size`])]))])])],2),(0,t.createElementVNode)(`div`,a,[(0,t.renderSlot)(s.$slots,`default`)])],2))}});Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return o}});
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { t as e } from "./Icon-BgCtu0ZV.js";
|
|
2
|
+
import { createElementBlock as t, createElementVNode as n, createVNode as r, defineComponent as i, normalizeClass as a, openBlock as o, renderSlot as s } from "vue";
|
|
3
|
+
// src/components/agree/Agree.vue?vue&type=script&setup=true&lang.ts
|
|
4
|
+
var c = { class: "cu-agree-icon-container" }, l = { key: 0 }, u = { key: 1 }, d = { class: "cu-agree-content" }, f = /* @__PURE__ */ i({
|
|
5
|
+
name: "cu-agree",
|
|
6
|
+
__name: "Agree",
|
|
7
|
+
props: {
|
|
8
|
+
modelValue: {
|
|
9
|
+
type: Boolean,
|
|
10
|
+
default: !1
|
|
11
|
+
},
|
|
12
|
+
disabled: {
|
|
13
|
+
type: Boolean,
|
|
14
|
+
default: !1
|
|
15
|
+
},
|
|
16
|
+
size: { default: "md" },
|
|
17
|
+
iconType: { default: "circle" }
|
|
18
|
+
},
|
|
19
|
+
emits: ["update:modelValue", "change"],
|
|
20
|
+
setup(i, { emit: f }) {
|
|
21
|
+
let p = i, m = f;
|
|
22
|
+
function h(e) {
|
|
23
|
+
p.disabled || (m("update:modelValue", !p.modelValue), m("change", e));
|
|
24
|
+
}
|
|
25
|
+
return (f, p) => (o(), t("div", { class: a(["cu-agree", [i.disabled ? "disabled" : ""]]) }, [n("div", {
|
|
26
|
+
class: a(["cu-agree-icon", [i.modelValue ? "checked" : ""]]),
|
|
27
|
+
onClick: p[0] ||= (e) => h(e)
|
|
28
|
+
}, [n("div", c, [s(f.$slots, "icon", { checked: i.modelValue }, () => [i.iconType === "square" ? (o(), t("span", l, [r(e, {
|
|
29
|
+
name: "square-checked",
|
|
30
|
+
size: i.size
|
|
31
|
+
}, null, 8, ["size"]), r(e, {
|
|
32
|
+
name: "square-check",
|
|
33
|
+
size: i.size
|
|
34
|
+
}, null, 8, ["size"])])) : (o(), t("span", u, [r(e, {
|
|
35
|
+
name: "checked",
|
|
36
|
+
size: i.size
|
|
37
|
+
}, null, 8, ["size"]), r(e, {
|
|
38
|
+
name: "check",
|
|
39
|
+
size: i.size
|
|
40
|
+
}, null, 8, ["size"])]))])])], 2), n("div", d, [s(f.$slots, "default")])], 2));
|
|
41
|
+
}
|
|
42
|
+
});
|
|
43
|
+
export { f as t };
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { Fragment as e, computed as t, createElementBlock as n, createTextVNode as r, defineComponent as i, normalizeClass as a, onBeforeUnmount as o, onMounted as s, openBlock as c, ref as l, toDisplayString as u, watch as d } from "vue";
|
|
2
|
+
import { formatNumberWithSeparator as f, numberToChineseCapital as p, toFixedPrecision as m } from "@centui/core";
|
|
3
|
+
import { Animate as h } from "@centui/core/web";
|
|
4
|
+
// src/components/amount/Amount.vue
|
|
5
|
+
var g = /* @__PURE__ */ i({
|
|
6
|
+
name: "cu-amount",
|
|
7
|
+
__name: "Amount",
|
|
8
|
+
props: {
|
|
9
|
+
value: { default: 0 },
|
|
10
|
+
precision: { default: 2 },
|
|
11
|
+
isRoundUp: {
|
|
12
|
+
type: Boolean,
|
|
13
|
+
default: !0
|
|
14
|
+
},
|
|
15
|
+
hasSeparator: {
|
|
16
|
+
type: Boolean,
|
|
17
|
+
default: !1
|
|
18
|
+
},
|
|
19
|
+
separator: { default: "," },
|
|
20
|
+
isAnimated: {
|
|
21
|
+
type: Boolean,
|
|
22
|
+
default: !1
|
|
23
|
+
},
|
|
24
|
+
transition: {
|
|
25
|
+
type: Boolean,
|
|
26
|
+
default: !1
|
|
27
|
+
},
|
|
28
|
+
isCapital: {
|
|
29
|
+
type: Boolean,
|
|
30
|
+
default: !1
|
|
31
|
+
},
|
|
32
|
+
duration: { default: 1e3 }
|
|
33
|
+
},
|
|
34
|
+
setup(i) {
|
|
35
|
+
let g = i, _ = l(0), v = l(!1), y = 0, b = t(() => g.precision > 0 ? g.precision : 0), x = t(() => {
|
|
36
|
+
let e = m(_.value, b.value, g.isRoundUp);
|
|
37
|
+
return g.hasSeparator ? f(e, g.separator) : e;
|
|
38
|
+
}), S = t(() => p(m(_.value, 4, g.isRoundUp)));
|
|
39
|
+
d(() => g.value, (e, t) => {
|
|
40
|
+
v.value && (g.isAnimated || g.transition) ? C(t, e) : _.value = e;
|
|
41
|
+
}, { immediate: !0 }), s(() => {
|
|
42
|
+
v.value = !0;
|
|
43
|
+
}), o(() => {
|
|
44
|
+
y &&= (h.stop(y), 0);
|
|
45
|
+
});
|
|
46
|
+
function C(e = 0, t = 0) {
|
|
47
|
+
y &&= (h.stop(y), 0), y = h.start((n) => {
|
|
48
|
+
n === 1 ? _.value = t : _.value = e + (t - e) * n;
|
|
49
|
+
}, () => !0, () => {
|
|
50
|
+
y = 0;
|
|
51
|
+
}, g.duration);
|
|
52
|
+
}
|
|
53
|
+
return (t, o) => (c(), n("span", { class: a(["cu-amount", { numerical: !i.isCapital }]) }, [i.isCapital ? (c(), n(e, { key: 1 }, [r(u(S.value), 1)], 64)) : (c(), n(e, { key: 0 }, [r(u(x.value), 1)], 64))], 2));
|
|
54
|
+
}
|
|
55
|
+
});
|
|
56
|
+
export { g as t };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
let e=require("vue"),t=require("@centui/core"),n=require("@centui/core/web");var r=(0,e.defineComponent)({name:`cu-amount`,__name:`Amount`,props:{value:{default:0},precision:{default:2},isRoundUp:{type:Boolean,default:!0},hasSeparator:{type:Boolean,default:!1},separator:{default:`,`},isAnimated:{type:Boolean,default:!1},transition:{type:Boolean,default:!1},isCapital:{type:Boolean,default:!1},duration:{default:1e3}},setup(r){let i=r,a=(0,e.ref)(0),o=(0,e.ref)(!1),s=0,c=(0,e.computed)(()=>i.precision>0?i.precision:0),l=(0,e.computed)(()=>{let e=(0,t.toFixedPrecision)(a.value,c.value,i.isRoundUp);return i.hasSeparator?(0,t.formatNumberWithSeparator)(e,i.separator):e}),u=(0,e.computed)(()=>(0,t.numberToChineseCapital)((0,t.toFixedPrecision)(a.value,4,i.isRoundUp)));(0,e.watch)(()=>i.value,(e,t)=>{o.value&&(i.isAnimated||i.transition)?d(t,e):a.value=e},{immediate:!0}),(0,e.onMounted)(()=>{o.value=!0}),(0,e.onBeforeUnmount)(()=>{s&&=(n.Animate.stop(s),0)});function d(e=0,t=0){s&&=(n.Animate.stop(s),0),s=n.Animate.start(n=>{n===1?a.value=t:a.value=e+(t-e)*n},()=>!0,()=>{s=0},i.duration)}return(t,n)=>((0,e.openBlock)(),(0,e.createElementBlock)(`span`,{class:(0,e.normalizeClass)([`cu-amount`,{numerical:!r.isCapital}])},[r.isCapital?((0,e.openBlock)(),(0,e.createElementBlock)(e.Fragment,{key:1},[(0,e.createTextVNode)((0,e.toDisplayString)(u.value),1)],64)):((0,e.openBlock)(),(0,e.createElementBlock)(e.Fragment,{key:0},[(0,e.createTextVNode)((0,e.toDisplayString)(l.value),1)],64))],2))}});Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return r}});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require("./WaterMark-M81jg6T5.cjs");let t=require("vue");var n={class:`cu-bill-header`},r=[`textContent`],i={key:1,class:`cu-bill-no`},a={class:`cu-bill-content`},o={class:`cu-bill-detail`},s={key:0,class:`cu-bill-footer`},c=(0,t.defineComponent)({name:`cu-bill`,__name:`Bill`,props:{title:{default:``},no:{default:``},waterMark:{default:``}},setup(c){let l=(0,t.useSlots)();function u(e){let n=l[e];return n?n(...e===`watermark`?[{coord:{row:1,col:1}}]:[]).some(e=>{if(!e||typeof e!=`object`)return!1;let n=e;if(n.type===t.Comment)return!1;if(n.type===t.Fragment){let e=n.children;return Array.isArray(e)&&e.length>0}return!0}):!1}let d=(0,t.computed)(()=>u(`header`)),f=(0,t.computed)(()=>u(`footer`)),p=(0,t.computed)(()=>u(`watermark`));return(l,u)=>((0,t.openBlock)(),(0,t.createBlock)(e.t,{class:`cu-bill`,content:c.waterMark},(0,t.createSlots)({default:(0,t.withCtx)(()=>[(0,t.createElementVNode)(`header`,n,[d.value?(0,t.renderSlot)(l.$slots,`header`,{},void 0,void 0,1):((0,t.openBlock)(),(0,t.createElementBlock)(t.Fragment,{key:0},[c.title?((0,t.openBlock)(),(0,t.createElementBlock)(`h4`,{key:0,class:`cu-bill-title`,textContent:(0,t.toDisplayString)(c.title)},null,8,r)):(0,t.createCommentVNode)(``,!0),c.no?((0,t.openBlock)(),(0,t.createElementBlock)(`div`,i,`NO.`+(0,t.toDisplayString)(c.no),1)):(0,t.createCommentVNode)(``,!0)],64))]),u[0]||=(0,t.createElementVNode)(`div`,{class:`cu-bill-neck`},[(0,t.createElementVNode)(`span`)],-1),(0,t.createElementVNode)(`div`,a,[(0,t.createElementVNode)(`div`,o,[(0,t.renderSlot)(l.$slots,`default`)]),f.value?((0,t.openBlock)(),(0,t.createElementBlock)(`footer`,s,[(0,t.renderSlot)(l.$slots,`footer`)])):(0,t.createCommentVNode)(``,!0)])]),_:2},[p.value?{name:`watermark`,fn:(0,t.withCtx)(({coord:e})=>[(0,t.renderSlot)(l.$slots,`watermark`,{coord:e})]),key:`0`}:void 0]),1032,[`content`]))}});Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return c}});
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { t as e } from "./WaterMark-CgkuQjv3.js";
|
|
2
|
+
import { Comment as t, Fragment as n, computed as r, createBlock as i, createCommentVNode as a, createElementBlock as o, createElementVNode as s, createSlots as c, defineComponent as l, openBlock as u, renderSlot as d, toDisplayString as f, useSlots as p, withCtx as m } from "vue";
|
|
3
|
+
// src/components/bill/Bill.vue?vue&type=script&setup=true&lang.ts
|
|
4
|
+
var h = { class: "cu-bill-header" }, g = ["textContent"], _ = {
|
|
5
|
+
key: 1,
|
|
6
|
+
class: "cu-bill-no"
|
|
7
|
+
}, v = { class: "cu-bill-content" }, y = { class: "cu-bill-detail" }, b = {
|
|
8
|
+
key: 0,
|
|
9
|
+
class: "cu-bill-footer"
|
|
10
|
+
}, x = /* @__PURE__ */ l({
|
|
11
|
+
name: "cu-bill",
|
|
12
|
+
__name: "Bill",
|
|
13
|
+
props: {
|
|
14
|
+
title: { default: "" },
|
|
15
|
+
no: { default: "" },
|
|
16
|
+
waterMark: { default: "" }
|
|
17
|
+
},
|
|
18
|
+
setup(l) {
|
|
19
|
+
let x = p();
|
|
20
|
+
function S(e) {
|
|
21
|
+
let r = x[e];
|
|
22
|
+
return r ? r(...e === "watermark" ? [{ coord: {
|
|
23
|
+
row: 1,
|
|
24
|
+
col: 1
|
|
25
|
+
} }] : []).some((e) => {
|
|
26
|
+
if (!e || typeof e != "object") return !1;
|
|
27
|
+
let r = e;
|
|
28
|
+
if (r.type === t) return !1;
|
|
29
|
+
if (r.type === n) {
|
|
30
|
+
let e = r.children;
|
|
31
|
+
return Array.isArray(e) && e.length > 0;
|
|
32
|
+
}
|
|
33
|
+
return !0;
|
|
34
|
+
}) : !1;
|
|
35
|
+
}
|
|
36
|
+
let C = r(() => S("header")), w = r(() => S("footer")), T = r(() => S("watermark"));
|
|
37
|
+
return (t, r) => (u(), i(e, {
|
|
38
|
+
class: "cu-bill",
|
|
39
|
+
content: l.waterMark
|
|
40
|
+
}, c({
|
|
41
|
+
default: m(() => [
|
|
42
|
+
s("header", h, [C.value ? d(t.$slots, "header", {}, void 0, void 0, 1) : (u(), o(n, { key: 0 }, [l.title ? (u(), o("h4", {
|
|
43
|
+
key: 0,
|
|
44
|
+
class: "cu-bill-title",
|
|
45
|
+
textContent: f(l.title)
|
|
46
|
+
}, null, 8, g)) : a("", !0), l.no ? (u(), o("div", _, "NO." + f(l.no), 1)) : a("", !0)], 64))]),
|
|
47
|
+
r[0] ||= s("div", { class: "cu-bill-neck" }, [s("span")], -1),
|
|
48
|
+
s("div", v, [s("div", y, [d(t.$slots, "default")]), w.value ? (u(), o("footer", b, [d(t.$slots, "footer")])) : a("", !0)])
|
|
49
|
+
]),
|
|
50
|
+
_: 2
|
|
51
|
+
}, [T.value ? {
|
|
52
|
+
name: "watermark",
|
|
53
|
+
fn: m(({ coord: e }) => [d(t.$slots, "watermark", { coord: e })]),
|
|
54
|
+
key: "0"
|
|
55
|
+
} : void 0]), 1032, ["content"]));
|
|
56
|
+
}
|
|
57
|
+
});
|
|
58
|
+
export { x as t };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require("./Roller-DALhjhfg.cjs"),t=require("./Icon-83WWqE5z.cjs");let n=require("vue");var r=[`type`,`disabled`],i={class:`cu-button-inner`},a={class:`cu-button-content`},o=(0,n.defineComponent)({name:`cu-button`,__name:`Button`,props:{type:{default:`default`},nativeType:{default:`button`},icon:{default:``},iconSvg:{type:Boolean,default:!1},size:{default:`large`},plain:{type:Boolean,default:!1},round:{type:Boolean,default:!1},inline:{type:Boolean,default:!1},inactive:{type:Boolean,default:!1},loading:{type:Boolean,default:!1}},setup(o){return(s,c)=>((0,n.openBlock)(),(0,n.createElementBlock)(`button`,{type:o.nativeType,class:(0,n.normalizeClass)([`cu-button`,[o.type,o.inactive?`inactive`:`active`,o.inline?`inline`:`block`,o.round?`round`:``,o.plain?`plain`:``,o.size===`small`?`small`:``]]),disabled:o.inactive||o.type===`disabled`},[(0,n.createElementVNode)(`div`,i,[o.loading?((0,n.openBlock)(),(0,n.createBlock)(e.t,{key:0,class:`cu-button-loading`})):o.icon?((0,n.openBlock)(),(0,n.createBlock)(t.t,{key:1,name:o.icon,svg:o.iconSvg},null,8,[`name`,`svg`])):(0,n.createCommentVNode)(``,!0),(0,n.createElementVNode)(`div`,a,[(0,n.renderSlot)(s.$slots,`default`)])])],10,r))}});Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return o}});
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { t as e } from "./Roller-BznN57fL.js";
|
|
2
|
+
import { t } from "./Icon-BgCtu0ZV.js";
|
|
3
|
+
import { createBlock as n, createCommentVNode as r, createElementBlock as i, createElementVNode as a, defineComponent as o, normalizeClass as s, openBlock as c, renderSlot as l } from "vue";
|
|
4
|
+
// src/components/button/Button.vue?vue&type=script&setup=true&lang.ts
|
|
5
|
+
var u = ["type", "disabled"], d = { class: "cu-button-inner" }, f = { class: "cu-button-content" }, p = /* @__PURE__ */ o({
|
|
6
|
+
name: "cu-button",
|
|
7
|
+
__name: "Button",
|
|
8
|
+
props: {
|
|
9
|
+
type: { default: "default" },
|
|
10
|
+
nativeType: { default: "button" },
|
|
11
|
+
icon: { default: "" },
|
|
12
|
+
iconSvg: {
|
|
13
|
+
type: Boolean,
|
|
14
|
+
default: !1
|
|
15
|
+
},
|
|
16
|
+
size: { default: "large" },
|
|
17
|
+
plain: {
|
|
18
|
+
type: Boolean,
|
|
19
|
+
default: !1
|
|
20
|
+
},
|
|
21
|
+
round: {
|
|
22
|
+
type: Boolean,
|
|
23
|
+
default: !1
|
|
24
|
+
},
|
|
25
|
+
inline: {
|
|
26
|
+
type: Boolean,
|
|
27
|
+
default: !1
|
|
28
|
+
},
|
|
29
|
+
inactive: {
|
|
30
|
+
type: Boolean,
|
|
31
|
+
default: !1
|
|
32
|
+
},
|
|
33
|
+
loading: {
|
|
34
|
+
type: Boolean,
|
|
35
|
+
default: !1
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
setup(o) {
|
|
39
|
+
return (p, m) => (c(), i("button", {
|
|
40
|
+
type: o.nativeType,
|
|
41
|
+
class: s(["cu-button", [
|
|
42
|
+
o.type,
|
|
43
|
+
o.inactive ? "inactive" : "active",
|
|
44
|
+
o.inline ? "inline" : "block",
|
|
45
|
+
o.round ? "round" : "",
|
|
46
|
+
o.plain ? "plain" : "",
|
|
47
|
+
o.size === "small" ? "small" : ""
|
|
48
|
+
]]),
|
|
49
|
+
disabled: o.inactive || o.type === "disabled"
|
|
50
|
+
}, [a("div", d, [o.loading ? (c(), n(e, {
|
|
51
|
+
key: 0,
|
|
52
|
+
class: "cu-button-loading"
|
|
53
|
+
})) : o.icon ? (c(), n(t, {
|
|
54
|
+
key: 1,
|
|
55
|
+
name: o.icon,
|
|
56
|
+
svg: o.iconSvg
|
|
57
|
+
}, null, 8, ["name", "svg"])) : r("", !0), a("div", f, [l(p.$slots, "default")])])], 10, u));
|
|
58
|
+
}
|
|
59
|
+
});
|
|
60
|
+
export { p as t };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require("./Popup-Ca1jPi0t.cjs"),t=require("./PopupTitleBar-Bfl49eYJ.cjs"),n=require("./Dialog-208_XUAL.cjs"),r=require("./Codebox-yLkdTU7w.cjs");let i=require("vue"),a=require("@centui/core");var o={class:`cu-captcha`},s={class:`cu-captcha-content`},c=[`textContent`],l={class:`cu-captcha-message`},u={class:`cu-captcha-footer`},d=[`textContent`],f=[`textContent`],p=[`textContent`,`disabled`],m={class:`cu-captcha-half-container`},h={class:`cu-captcha-half-content`},g=[`textContent`],_=[`textContent`],v=[`textContent`,`disabled`],y={class:`cu-captcha-content`},b=[`textContent`],x={class:`cu-captcha-message`},S={class:`cu-captcha-footer`},C=[`textContent`],w=[`textContent`],T=[`textContent`,`disabled`],E=(0,i.defineComponent)({name:`cu-captcha`,__name:`Captcha`,props:{modelValue:{type:Boolean,default:!1},title:{default:void 0},subtitle:{default:void 0},brief:{default:``},maxlength:{default:4},mask:{type:Boolean,default:!1},system:{type:Boolean,default:!1},autoSend:{type:Boolean,default:!0},autoCountdown:{type:Boolean,default:!0},count:{default:60},countNormalText:{default:()=>String((0,a.t)(`md.captcha.sendCaptcha`))},countActiveText:{default:()=>String((0,a.t)(`md.captcha.countdown`))},isView:{type:Boolean,default:!1},type:{default:`dialog`},inputType:{default:`tel`},disableSend:{type:Boolean,default:!1}},emits:[`update:modelValue`,`show`,`hide`,`submit`,`send`],setup(a,{expose:E,emit:D}){let O=a,k=D,A=(0,i.ref)(null),j=(0,i.ref)(``),M=(0,i.ref)(!1),N=(0,i.ref)(``),P=(0,i.ref)(!1),F=(0,i.ref)(!1),I=(0,i.ref)(O.countNormalText),L=(0,i.ref)(!1),R=(0,i.ref)(0),z=(0,i.computed)(()=>O.isView||O.type===`inline`),B=(0,i.computed)(()=>N.value!==``&&!O.disableSend);(0,i.watch)(()=>O.modelValue,e=>{e&&(j.value=``,F.value||(F.value=!0,J()))}),(0,i.watch)(j,e=>{e&&N.value&&(N.value=``)}),(0,i.onMounted)(()=>{V()&&O.type===`halfScreen`&&(R.value=document.documentElement.clientHeight||document.body.clientHeight,window.addEventListener(`resize`,H,!1)),(O.modelValue||z.value)&&(F.value=!0,J())}),(0,i.onBeforeUnmount)(()=>{V()&&O.type===`halfScreen`&&window.removeEventListener(`resize`,H),Y&&=(clearInterval(Y),null)});function V(){let e=window.navigator.userAgent.toLocaleLowerCase();return/android/.test(e)}function H(){let e=document.documentElement.clientHeight||document.body.clientHeight;R.value<e?L.value=!1:L.value=!0,R.value=e}function U(e){k(`update:modelValue`,e)}function W(){M.value=!0,A.value?.focus(),k(`show`)}function G(){M.value=!1,A.value?.blur(),k(`hide`)}function K(e){k(`submit`,e)}function q(){O.autoCountdown&&X(),k(`send`,X)}function J(){O.autoSend&&q()}let Y=null;function X(){if(!O.count)return;Y&&clearInterval(Y);let e=Date.now(),t=O.count;P.value=!0,I.value=O.countActiveText.replace(`{$1}`,String(t)),Y=setInterval(()=>{t<=1?Z():(t=O.count-Math.floor((Date.now()-e)/1e3),I.value=O.countActiveText.replace(`{$1}`,String(t)))},1e3)}function Z(){P.value=!1,I.value=O.countNormalText,Y&&clearInterval(Y)}function Q(e){Promise.resolve().then(()=>{N.value=e})}function $(){k(`update:modelValue`,!1)}return E({countdown:X,resetcount:Z,setError:Q,close:$,listenResize:H}),(E,D)=>(0,i.withDirectives)(((0,i.openBlock)(),(0,i.createElementBlock)(`div`,o,[z.value?((0,i.openBlock)(),(0,i.createElementBlock)(i.Fragment,{key:0},[(0,i.createElementVNode)(`div`,s,[a.title?((0,i.openBlock)(),(0,i.createElementBlock)(`h2`,{key:0,class:`cu-captcha-title`,textContent:(0,i.toDisplayString)(a.title)},null,8,c)):(0,i.createCommentVNode)(``,!0),(0,i.createElementVNode)(`div`,l,[(0,i.renderSlot)(E.$slots,`default`)])]),(0,i.createVNode)(r.t,{ref_key:`codebox`,ref:A,modelValue:j.value,"onUpdate:modelValue":D[0]||=e=>j.value=e,maxlength:a.maxlength,system:a.system,mask:a.mask,closable:!1,"is-view":!0,justify:!0,autofocus:!1,"input-type":a.inputType,onSubmit:K},{default:(0,i.withCtx)(()=>[(0,i.createElementVNode)(`footer`,u,[N.value?((0,i.openBlock)(),(0,i.createElementBlock)(`div`,{key:0,class:`cu-captcha-error`,textContent:(0,i.toDisplayString)(N.value)},null,8,d)):((0,i.openBlock)(),(0,i.createElementBlock)(`div`,{key:1,class:`cu-captcha-brief`,textContent:(0,i.toDisplayString)(a.brief)},null,8,f)),a.count?((0,i.openBlock)(),(0,i.createElementBlock)(`button`,{key:2,class:`cu-captcha-btn`,textContent:(0,i.toDisplayString)(I.value),disabled:P.value,onClick:q},null,8,p)):(0,i.createCommentVNode)(``,!0)])]),_:1},8,[`modelValue`,`maxlength`,`system`,`mask`,`input-type`])],64)):(0,i.createCommentVNode)(``,!0),a.type===`halfScreen`?((0,i.openBlock)(),(0,i.createBlock)(e.t,{key:1,"model-value":a.modelValue,"has-mask":!0,position:`bottom`,"mask-closable":!1,"onUpdate:modelValue":U,onShow:W,onHide:G},{default:(0,i.withCtx)(()=>[(0,i.createElementVNode)(`div`,m,[(0,i.createVNode)(t.t,{"only-close":``,"large-radius":``,title:a.title,describe:a.subtitle,"title-align":`left`,onCancel:$},null,8,[`title`,`describe`]),(0,i.createElementVNode)(`div`,h,[(0,i.renderSlot)(E.$slots,`default`)]),(0,i.createVNode)(r.t,{ref_key:`codebox`,ref:A,modelValue:j.value,"onUpdate:modelValue":D[1]||=e=>j.value=e,maxlength:a.maxlength,system:a.system,mask:a.mask,disabled:a.disableSend,closable:!1,"is-view":!0,justify:!0,autofocus:!1,"input-type":a.inputType,"is-error-style":B.value,onSubmit:K},{default:(0,i.withCtx)(()=>[(0,i.createElementVNode)(`footer`,{class:(0,i.normalizeClass)([`cu-captcha-footer`,{halfStyle:L.value}])},[N.value?((0,i.openBlock)(),(0,i.createElementBlock)(`div`,{key:0,class:`cu-captcha-error`,textContent:(0,i.toDisplayString)(N.value)},null,8,g)):((0,i.openBlock)(),(0,i.createElementBlock)(`div`,{key:1,class:`cu-captcha-brief`,textContent:(0,i.toDisplayString)(a.brief)},null,8,_)),a.count?((0,i.openBlock)(),(0,i.createElementBlock)(`button`,{key:2,class:(0,i.normalizeClass)([`cu-captcha-btn`,[a.disableSend&&`is-disabled-send`]]),textContent:(0,i.toDisplayString)(I.value),disabled:P.value,onClick:q},null,10,v)):(0,i.createCommentVNode)(``,!0)],2)]),_:1},8,[`modelValue`,`maxlength`,`system`,`mask`,`disabled`,`input-type`,`is-error-style`])])]),_:3},8,[`model-value`])):(0,i.createCommentVNode)(``,!0),a.type===`dialog`?((0,i.openBlock)(),(0,i.createBlock)(n.t,{key:2,"model-value":a.modelValue,closable:!0,"append-to":!1,"onUpdate:modelValue":U,onShow:W,onHide:G},{default:(0,i.withCtx)(()=>[(0,i.createElementVNode)(`div`,y,[a.title?((0,i.openBlock)(),(0,i.createElementBlock)(`h2`,{key:0,class:`cu-captcha-title`,textContent:(0,i.toDisplayString)(a.title)},null,8,b)):(0,i.createCommentVNode)(``,!0),(0,i.createElementVNode)(`div`,x,[(0,i.renderSlot)(E.$slots,`default`)])]),(0,i.createVNode)(r.t,{ref_key:`codebox`,ref:A,modelValue:j.value,"onUpdate:modelValue":D[2]||=e=>j.value=e,maxlength:a.maxlength,system:a.system,closable:!1,mask:a.mask,justify:!0,autofocus:!1,"input-type":a.inputType,onSubmit:K},{default:(0,i.withCtx)(()=>[(0,i.createElementVNode)(`footer`,S,[N.value?((0,i.openBlock)(),(0,i.createElementBlock)(`div`,{key:0,class:`cu-captcha-error`,textContent:(0,i.toDisplayString)(N.value)},null,8,C)):((0,i.openBlock)(),(0,i.createElementBlock)(`div`,{key:1,class:`cu-captcha-brief`,textContent:(0,i.toDisplayString)(a.brief)},null,8,w)),a.count?((0,i.openBlock)(),(0,i.createElementBlock)(`button`,{key:2,class:`cu-captcha-btn`,textContent:(0,i.toDisplayString)(I.value),disabled:P.value,onClick:q},null,8,T)):(0,i.createCommentVNode)(``,!0)])]),_:1},8,[`modelValue`,`maxlength`,`system`,`mask`,`input-type`])]),_:3},8,[`model-value`])):(0,i.createCommentVNode)(``,!0)],512)),[[i.vShow,z.value||a.modelValue||M.value]])}});Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return E}});
|