dpzvc3-ui 3.0.7 → 3.1.1
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/dist/dpzvc3.esm.js +6585 -9367
- package/dist/dpzvc3.esm.js.map +1 -1
- package/dist/dpzvc3.esm.min.js +1 -1
- package/dist/dpzvc3.esm.min.js.map +1 -1
- package/dist/dpzvc3.js +6071 -7684
- package/dist/dpzvc3.js.map +1 -1
- package/dist/dpzvc3.min.js +1 -1
- package/dist/dpzvc3.min.js.map +1 -1
- package/dist/styles/components/radioBox.css +1 -1
- package/dist/styles/components/rater.css +1 -0
- package/dist/styles/dpzvc3.css +1 -1
- package/dist/types/components/Indicator/types.d.ts +16 -0
- package/dist/types/components/Indicator/types.d.ts.map +1 -0
- package/dist/types/components/Prompt/types.d.ts +37 -0
- package/dist/types/components/Prompt/types.d.ts.map +1 -0
- package/dist/types/components/Text/index.d.ts +12 -0
- package/dist/types/components/Text/index.d.ts.map +1 -0
- package/dist/types/components/Text/textBar.d.ts +84 -0
- package/dist/types/components/Text/textBar.d.ts.map +1 -0
- package/dist/types/components/Text/types.d.ts +13 -0
- package/dist/types/components/Text/types.d.ts.map +1 -0
- package/dist/types/components/actionSheet/actionSheet.d.ts +42 -0
- package/dist/types/components/actionSheet/actionSheet.d.ts.map +1 -0
- package/dist/types/components/actionSheet/index.d.ts +7 -0
- package/dist/types/components/actionSheet/index.d.ts.map +1 -0
- package/dist/types/components/actionSheet/types.d.ts +11 -0
- package/dist/types/components/actionSheet/types.d.ts.map +1 -0
- package/dist/types/components/badge/badge.d.ts +51 -0
- package/dist/types/components/badge/badge.d.ts.map +1 -0
- package/dist/types/components/badge/index.d.ts +12 -0
- package/dist/types/components/badge/index.d.ts.map +1 -0
- package/dist/types/components/badge/types.d.ts +8 -0
- package/dist/types/components/badge/types.d.ts.map +1 -0
- package/dist/types/components/button/button.d.ts +103 -0
- package/dist/types/components/button/button.d.ts.map +1 -0
- package/dist/types/components/button/index.d.ts +12 -0
- package/dist/types/components/button/index.d.ts.map +1 -0
- package/dist/types/components/button/types.d.ts +13 -0
- package/dist/types/components/button/types.d.ts.map +1 -0
- package/dist/types/components/card/card.d.ts +18 -0
- package/dist/types/components/card/card.d.ts.map +1 -0
- package/dist/types/components/card/index.d.ts +12 -0
- package/dist/types/components/card/index.d.ts.map +1 -0
- package/dist/types/components/card/types.d.ts +4 -0
- package/dist/types/components/card/types.d.ts.map +1 -0
- package/dist/types/components/cell/cell.d.ts +24 -0
- package/dist/types/components/cell/cell.d.ts.map +1 -0
- package/dist/types/components/cell/index.d.ts +12 -0
- package/dist/types/components/cell/index.d.ts.map +1 -0
- package/dist/types/components/cell/types.d.ts +8 -0
- package/dist/types/components/cell/types.d.ts.map +1 -0
- package/dist/types/components/cellSwipe/cellSwipe.d.ts +37 -0
- package/dist/types/components/cellSwipe/cellSwipe.d.ts.map +1 -0
- package/dist/types/components/cellSwipe/index.d.ts +12 -0
- package/dist/types/components/cellSwipe/index.d.ts.map +1 -0
- package/dist/types/components/cellSwipe/types.d.ts +15 -0
- package/dist/types/components/cellSwipe/types.d.ts.map +1 -0
- package/dist/types/components/checkBox/checkbox-group.d.ts +38 -0
- package/dist/types/components/checkBox/checkbox-group.d.ts.map +1 -0
- package/dist/types/components/checkBox/checkbox.d.ts +36 -0
- package/dist/types/components/checkBox/checkbox.d.ts.map +1 -0
- package/dist/types/components/checkBox/index.d.ts +14 -0
- package/dist/types/components/checkBox/index.d.ts.map +1 -0
- package/dist/types/components/checkBox/types.d.ts +22 -0
- package/dist/types/components/checkBox/types.d.ts.map +1 -0
- package/dist/types/components/header/header.d.ts +47 -0
- package/dist/types/components/header/header.d.ts.map +1 -0
- package/dist/types/components/header/index.d.ts +12 -0
- package/dist/types/components/header/index.d.ts.map +1 -0
- package/dist/types/components/header/types.d.ts +7 -0
- package/dist/types/components/header/types.d.ts.map +1 -0
- package/dist/types/components/loadMore/index.d.ts +12 -0
- package/dist/types/components/loadMore/index.d.ts.map +1 -0
- package/dist/types/components/loadMore/loadMore.d.ts +150 -0
- package/dist/types/components/loadMore/loadMore.d.ts.map +1 -0
- package/dist/types/components/loadMore/types.d.ts +23 -0
- package/dist/types/components/loadMore/types.d.ts.map +1 -0
- package/dist/types/components/message/types.d.ts +32 -0
- package/dist/types/components/message/types.d.ts.map +1 -0
- package/dist/types/components/modal/types.d.ts +33 -0
- package/dist/types/components/modal/types.d.ts.map +1 -0
- package/dist/types/components/number/Number.d.ts +77 -0
- package/dist/types/components/number/Number.d.ts.map +1 -0
- package/dist/types/components/number/index.d.ts +9 -0
- package/dist/types/components/number/index.d.ts.map +1 -0
- package/dist/types/components/number/types.d.ts +12 -0
- package/dist/types/components/number/types.d.ts.map +1 -0
- package/dist/types/components/picker/index.d.ts +12 -0
- package/dist/types/components/picker/index.d.ts.map +1 -0
- package/dist/types/components/picker/picker.d.ts +237 -0
- package/dist/types/components/picker/picker.d.ts.map +1 -0
- package/dist/types/components/picker/types.d.ts +17 -0
- package/dist/types/components/picker/types.d.ts.map +1 -0
- package/dist/types/components/popup/index.d.ts +12 -0
- package/dist/types/components/popup/index.d.ts.map +1 -0
- package/dist/types/components/popup/popup.d.ts +71 -0
- package/dist/types/components/popup/popup.d.ts.map +1 -0
- package/dist/types/components/popup/types.d.ts +10 -0
- package/dist/types/components/popup/types.d.ts.map +1 -0
- package/dist/types/components/progress/index.d.ts +12 -0
- package/dist/types/components/progress/index.d.ts.map +1 -0
- package/dist/types/components/progress/progress.d.ts +36 -0
- package/dist/types/components/progress/progress.d.ts.map +1 -0
- package/dist/types/components/progress/types.d.ts +9 -0
- package/dist/types/components/progress/types.d.ts.map +1 -0
- package/dist/types/components/radioBox/index.d.ts +14 -0
- package/dist/types/components/radioBox/index.d.ts.map +1 -0
- package/dist/types/components/radioBox/radiobox-group.d.ts +31 -0
- package/dist/types/components/radioBox/radiobox-group.d.ts.map +1 -0
- package/dist/types/components/radioBox/radiobox.d.ts +38 -0
- package/dist/types/components/radioBox/radiobox.d.ts.map +1 -0
- package/dist/types/components/radioBox/types.d.ts +18 -0
- package/dist/types/components/radioBox/types.d.ts.map +1 -0
- package/dist/types/components/rater/index.d.ts +12 -0
- package/dist/types/components/rater/index.d.ts.map +1 -0
- package/dist/types/components/rater/raters.d.ts +83 -0
- package/dist/types/components/rater/raters.d.ts.map +1 -0
- package/dist/types/components/rater/types.d.ts +11 -0
- package/dist/types/components/rater/types.d.ts.map +1 -0
- package/dist/types/components/slideBar/index.d.ts +12 -0
- package/dist/types/components/slideBar/index.d.ts.map +1 -0
- package/dist/types/components/slideBar/slideBar.d.ts +46 -0
- package/dist/types/components/slideBar/slideBar.d.ts.map +1 -0
- package/dist/types/components/slideBar/types.d.ts +19 -0
- package/dist/types/components/slideBar/types.d.ts.map +1 -0
- package/dist/types/components/spinner/index.d.ts +12 -0
- package/dist/types/components/spinner/index.d.ts.map +1 -0
- package/dist/types/components/spinner/spinner.d.ts +36 -0
- package/dist/types/components/spinner/spinner.d.ts.map +1 -0
- package/dist/types/components/spinner/types.d.ts +7 -0
- package/dist/types/components/spinner/types.d.ts.map +1 -0
- package/dist/types/components/swipe/index.d.ts +12 -0
- package/dist/types/components/swipe/index.d.ts.map +1 -0
- package/dist/types/components/swipe/swipe.d.ts +99 -0
- package/dist/types/components/swipe/swipe.d.ts.map +1 -0
- package/dist/types/components/swipe/types.d.ts +20 -0
- package/dist/types/components/swipe/types.d.ts.map +1 -0
- package/dist/types/components/switchbar/index.d.ts +12 -0
- package/dist/types/components/switchbar/index.d.ts.map +1 -0
- package/dist/types/components/switchbar/switchbar.d.ts +38 -0
- package/dist/types/components/switchbar/switchbar.d.ts.map +1 -0
- package/dist/types/components/switchbar/types.d.ts +6 -0
- package/dist/types/components/switchbar/types.d.ts.map +1 -0
- package/dist/types/components/tab/index.d.ts +12 -0
- package/dist/types/components/tab/index.d.ts.map +1 -0
- package/dist/types/components/tab/tab.d.ts +54 -0
- package/dist/types/components/tab/tab.d.ts.map +1 -0
- package/dist/types/components/tab/types.d.ts +14 -0
- package/dist/types/components/tab/types.d.ts.map +1 -0
- package/dist/types/components/toTop/index.d.ts +12 -0
- package/dist/types/components/toTop/index.d.ts.map +1 -0
- package/dist/types/components/toTop/toTop.d.ts +18 -0
- package/dist/types/components/toTop/toTop.d.ts.map +1 -0
- package/dist/types/components/toTop/types.d.ts +7 -0
- package/dist/types/components/toTop/types.d.ts.map +1 -0
- package/dist/types/components/upload/index.d.ts +12 -0
- package/dist/types/components/upload/index.d.ts.map +1 -0
- package/dist/types/components/upload/types.d.ts +9 -0
- package/dist/types/components/upload/types.d.ts.map +1 -0
- package/dist/types/components/upload/upload.d.ts +19 -0
- package/dist/types/components/upload/upload.d.ts.map +1 -0
- package/dist/types/index.d.ts +164 -0
- package/dist/types/lib/MegaPixImage.d.ts +9 -0
- package/dist/types/lib/MegaPixImage.d.ts.map +1 -0
- package/dist/types/lib/lib.d.ts +3 -0
- package/dist/types/lib/lib.d.ts.map +1 -0
- package/dist/types/utils/util.d.ts +31 -0
- package/dist/types/utils/util.d.ts.map +1 -0
- package/dist-prod/91.05c8ec5277a15f939b0f.js +3 -0
- package/dist-prod/{91.e2fdec39667928bf57b9.js.map → 91.05c8ec5277a15f939b0f.js.map} +1 -1
- package/dist-prod/actionsheet.0d67b6b08a62cf9360be.chunk.js +2 -0
- package/dist-prod/actionsheet.0d67b6b08a62cf9360be.chunk.js.map +1 -0
- package/dist-prod/badge.16ab5c05734fe1530701.chunk.js +2 -0
- package/dist-prod/badge.16ab5c05734fe1530701.chunk.js.map +1 -0
- package/dist-prod/button.39ac33aa7aaccc24b6a1.chunk.js +2 -0
- package/dist-prod/button.39ac33aa7aaccc24b6a1.chunk.js.map +1 -0
- package/dist-prod/card.16ed7eafe471bcc60ec6.chunk.js +2 -0
- package/dist-prod/card.16ed7eafe471bcc60ec6.chunk.js.map +1 -0
- package/dist-prod/cell.70ff74fba57e27df7f5a.chunk.js +2 -0
- package/dist-prod/cell.70ff74fba57e27df7f5a.chunk.js.map +1 -0
- package/dist-prod/cellswipe.f3ec62abd60729d8bc5a.chunk.js +2 -0
- package/dist-prod/cellswipe.f3ec62abd60729d8bc5a.chunk.js.map +1 -0
- package/dist-prod/checkbox.05c63a947ac98293c9f2.chunk.js +2 -0
- package/dist-prod/checkbox.05c63a947ac98293c9f2.chunk.js.map +1 -0
- package/dist-prod/guide.24f1968a568f20fbc84b.chunk.js +2 -0
- package/dist-prod/guide.24f1968a568f20fbc84b.chunk.js.map +1 -0
- package/dist-prod/header.eb10433dd892738ee95a.chunk.js +2 -0
- package/dist-prod/header.eb10433dd892738ee95a.chunk.js.map +1 -0
- package/dist-prod/index.html +1 -1
- package/dist-prod/indicator.0c09e3f238791cb478e0.chunk.js +2 -0
- package/dist-prod/indicator.0c09e3f238791cb478e0.chunk.js.map +1 -0
- package/dist-prod/loadmore.9bad88767cc43603f473.chunk.js +2 -0
- package/dist-prod/loadmore.9bad88767cc43603f473.chunk.js.map +1 -0
- package/dist-prod/main.662ad15361e7f3d20234.js +2 -0
- package/dist-prod/main.662ad15361e7f3d20234.js.map +1 -0
- package/dist-prod/message.de17fea3de4daa70bab4.chunk.js +2 -0
- package/dist-prod/message.de17fea3de4daa70bab4.chunk.js.map +1 -0
- package/dist-prod/modal.f9ec857acd9fbdf53f3b.chunk.js +2 -0
- package/dist-prod/modal.f9ec857acd9fbdf53f3b.chunk.js.map +1 -0
- package/dist-prod/picker.bca059ef59e3c42a401f.chunk.js +2 -0
- package/dist-prod/picker.bca059ef59e3c42a401f.chunk.js.map +1 -0
- package/dist-prod/popup.538422c7e188363a468d.chunk.js +2 -0
- package/dist-prod/popup.538422c7e188363a468d.chunk.js.map +1 -0
- package/dist-prod/progress.240de4b633002f573030.chunk.js +2 -0
- package/dist-prod/progress.240de4b633002f573030.chunk.js.map +1 -0
- package/dist-prod/prompt.dcda0b05ea02d59106b7.chunk.js +2 -0
- package/dist-prod/prompt.dcda0b05ea02d59106b7.chunk.js.map +1 -0
- package/dist-prod/radiobox.7c10f77aba5ae04b2e5c.chunk.js +2 -0
- package/dist-prod/radiobox.7c10f77aba5ae04b2e5c.chunk.js.map +1 -0
- package/dist-prod/rater.d46ae462c598c458e5a8.chunk.js +2 -0
- package/dist-prod/rater.d46ae462c598c458e5a8.chunk.js.map +1 -0
- package/dist-prod/slidebar.833e75b9eb0abef92453.chunk.js +2 -0
- package/dist-prod/slidebar.833e75b9eb0abef92453.chunk.js.map +1 -0
- package/dist-prod/spinner.6afb4f84cc29f0e2f8eb.chunk.js +2 -0
- package/dist-prod/spinner.6afb4f84cc29f0e2f8eb.chunk.js.map +1 -0
- package/dist-prod/swipe.3fe6ee6638765ec52d94.chunk.js +2 -0
- package/dist-prod/swipe.3fe6ee6638765ec52d94.chunk.js.map +1 -0
- package/dist-prod/switchbar.f24c76a03120f1bd961a.chunk.js +2 -0
- package/dist-prod/switchbar.f24c76a03120f1bd961a.chunk.js.map +1 -0
- package/dist-prod/tab.29f19483f699b7811259.chunk.js +2 -0
- package/dist-prod/tab.29f19483f699b7811259.chunk.js.map +1 -0
- package/dist-prod/text.a6e4251f772d23843e2b.chunk.js +2 -0
- package/dist-prod/text.a6e4251f772d23843e2b.chunk.js.map +1 -0
- package/dist-prod/totop.713c5ab7f7dbcffbf2a3.chunk.js +2 -0
- package/dist-prod/totop.713c5ab7f7dbcffbf2a3.chunk.js.map +1 -0
- package/dist-prod/upload.0638581e551ed9afaba2.chunk.js +2 -0
- package/dist-prod/upload.0638581e551ed9afaba2.chunk.js.map +1 -0
- package/package.json +12 -3
- package/src/components/Indicator/Indicator.tsx +67 -0
- package/src/components/Indicator/index.ts +111 -0
- package/src/components/Indicator/types.ts +15 -0
- package/src/components/Text/index.ts +14 -0
- package/src/components/Text/textBar.tsx +104 -0
- package/src/components/Text/types.ts +13 -0
- package/src/components/actionSheet/actionSheet.d.ts +16 -0
- package/src/components/actionSheet/actionSheet.tsx +86 -0
- package/src/components/{action-sheet/index.js → actionSheet/index.ts} +1 -0
- package/src/components/actionSheet/types.ts +10 -0
- package/src/components/badge/{badge.vue → badge.tsx} +31 -31
- package/src/components/badge/index.ts +12 -0
- package/src/components/badge/types.ts +8 -0
- package/src/components/button/{button.vue → button.tsx} +46 -52
- package/src/components/button/index.ts +13 -0
- package/src/components/button/types.ts +13 -0
- package/src/components/card/card.d.ts +16 -0
- package/src/components/card/card.tsx +38 -0
- package/src/components/card/index.ts +12 -0
- package/src/components/card/types.ts +3 -0
- package/src/components/cell/cell.tsx +89 -0
- package/src/components/cell/index.ts +12 -0
- package/src/components/cell/types.ts +8 -0
- package/src/components/cellSwipe/cellSwipe.tsx +188 -0
- package/src/components/cellSwipe/index.ts +13 -0
- package/src/components/cellSwipe/types.ts +17 -0
- package/src/components/checkBox/checkbox-group.tsx +75 -0
- package/src/components/checkBox/checkbox.tsx +107 -0
- package/src/components/checkBox/index.ts +29 -0
- package/src/components/checkBox/types.ts +32 -0
- package/src/components/header/header.tsx +119 -0
- package/src/components/header/index.ts +13 -0
- package/src/components/header/types.ts +7 -0
- package/src/components/loadMore/index.ts +14 -0
- package/src/components/loadMore/loadMore.tsx +265 -0
- package/src/components/loadMore/types.ts +26 -0
- package/src/components/message/confirm.ts +104 -0
- package/src/components/message/{index.js → index.ts} +20 -18
- package/src/components/message/message.tsx +100 -0
- package/src/components/message/messageGroup.tsx +59 -0
- package/src/components/message/types.ts +48 -0
- package/src/components/modal/{confirm.js → confirm.ts} +8 -7
- package/src/components/modal/index.ts +68 -0
- package/src/components/modal/modal.tsx +248 -0
- package/src/components/modal/types.ts +51 -0
- package/src/components/number/Number.tsx +143 -0
- package/src/components/number/index.ts +10 -0
- package/src/components/number/types.ts +13 -0
- package/src/components/picker/index.ts +12 -0
- package/src/components/picker/picker.tsx +112 -0
- package/src/components/picker/types.ts +17 -0
- package/src/components/popup/index.ts +12 -0
- package/src/components/popup/popup.d.ts +16 -0
- package/src/components/popup/popup.tsx +68 -0
- package/src/components/popup/types.ts +9 -0
- package/src/components/progress/index.ts +12 -0
- package/src/components/progress/progress.tsx +81 -0
- package/src/components/progress/types.ts +9 -0
- package/src/components/prompt/{confirm.js → confirm.ts} +27 -14
- package/src/components/prompt/index.ts +50 -0
- package/src/components/prompt/prompt.tsx +161 -0
- package/src/components/prompt/types.ts +45 -0
- package/src/components/radioBox/index.ts +34 -0
- package/src/components/radioBox/radiobox-group.tsx +66 -0
- package/src/components/radioBox/radiobox.tsx +115 -0
- package/src/components/radioBox/types.ts +24 -0
- package/src/components/rater/index.ts +12 -0
- package/src/components/rater/rater.d.ts +16 -0
- package/src/components/rater/raters.tsx +101 -0
- package/src/components/rater/types.ts +10 -0
- package/src/components/slideBar/index.ts +13 -0
- package/src/components/slideBar/slideBar.tsx +288 -0
- package/src/components/slideBar/types.ts +20 -0
- package/src/components/spinner/index.ts +13 -0
- package/src/components/spinner/spinner.tsx +85 -0
- package/src/components/spinner/types.ts +20 -0
- package/src/components/swipe/index.ts +13 -0
- package/src/components/swipe/swipe.tsx +292 -0
- package/src/components/swipe/types.ts +21 -0
- package/src/components/switchbar/index.ts +13 -0
- package/src/components/switchbar/switchbar.tsx +58 -0
- package/src/components/switchbar/types.ts +6 -0
- package/src/components/tab/index.ts +12 -0
- package/src/components/tab/tab.tsx +71 -0
- package/src/components/tab/types.ts +15 -0
- package/src/components/toTop/index.ts +13 -0
- package/src/components/toTop/toTop.tsx +54 -0
- package/src/components/toTop/types.ts +7 -0
- package/src/components/upload/index.ts +13 -0
- package/src/components/upload/types.ts +9 -0
- package/src/components/upload/upload.tsx +180 -0
- package/src/index.ts +173 -0
- package/src/lib/MegaPixImage.js +1 -0
- package/src/{main.js → main.ts} +4 -2
- package/src/shims-vue.d.ts +37 -0
- package/src/styles/components/radioBox.less +5 -1
- package/src/styles/components/rater.less +16 -0
- package/src/styles/index.less +1 -0
- package/src/types/index.d.ts +164 -0
- package/src/types/js-shims.d.ts +36 -0
- package/src/utils/test.ts +2 -0
- package/src/utils/util.ts +168 -0
- package/src/utils/{util.js → util1.js} +2 -2
- package/src/views/ActionSheet.vue +7 -7
- package/src/views/Badge/Badge.less +12 -0
- package/src/views/Badge/Badge.tsx +23 -0
- package/src/views/Badge.vue +4 -2
- package/src/views/Button.vue +17 -17
- package/src/views/Card.vue +2 -1
- package/src/views/Cell.vue +6 -5
- package/src/views/CellSwipe.vue +51 -39
- package/src/views/CheckBox.vue +7 -6
- package/src/views/Header.vue +8 -7
- package/src/views/Indicator.vue +15 -15
- package/src/views/LoadMore.vue +13 -10
- package/src/views/Message.vue +14 -14
- package/src/views/Modal.vue +10 -10
- package/src/views/Picker.vue +19 -17
- package/src/views/Popup.vue +47 -41
- package/src/views/Progress.vue +8 -6
- package/src/views/Prompt.vue +5 -5
- package/src/views/RadioBox.vue +6 -4
- package/src/views/Rater.vue +7 -3
- package/src/views/SlideBar.vue +9 -5
- package/src/views/Spinner.vue +17 -5
- package/src/views/Swipe.vue +5 -3
- package/src/views/SwitchBar.vue +6 -4
- package/src/views/Tab.vue +8 -6
- package/src/views/Text.vue +14 -10
- package/src/views/ToTop.vue +19 -5
- package/src/views/Upload.vue +8 -4
- package/tsconfig.build.json +30 -0
- package/tsconfig.json +39 -0
- package/webpack.base.config.js +22 -2
- package/webpack.dev.config.js +2 -1
- package/webpack.dist.dev.config.js +3 -2
- package/webpack.dist.prod.config.js +3 -2
- package/webpack.prod.config.js +2 -1
- package/dist-prod/91.e2fdec39667928bf57b9.js +0 -3
- package/dist-prod/actionsheet.e2f7c32d0120f5147a4f.chunk.js +0 -2
- package/dist-prod/actionsheet.e2f7c32d0120f5147a4f.chunk.js.map +0 -1
- package/dist-prod/badge.6038c4ccc54ffb56a645.chunk.js +0 -2
- package/dist-prod/badge.6038c4ccc54ffb56a645.chunk.js.map +0 -1
- package/dist-prod/button.28b491339fbba29c3f16.chunk.js +0 -2
- package/dist-prod/button.28b491339fbba29c3f16.chunk.js.map +0 -1
- package/dist-prod/card.3ad847f07bebc1391125.chunk.js +0 -2
- package/dist-prod/card.3ad847f07bebc1391125.chunk.js.map +0 -1
- package/dist-prod/cell.8920796a9ebd2d84bbd3.chunk.js +0 -2
- package/dist-prod/cell.8920796a9ebd2d84bbd3.chunk.js.map +0 -1
- package/dist-prod/cellswipe.04240414bed39e28e7b9.chunk.js +0 -2
- package/dist-prod/cellswipe.04240414bed39e28e7b9.chunk.js.map +0 -1
- package/dist-prod/checkbox.87403976981ee0f64f4a.chunk.js +0 -2
- package/dist-prod/checkbox.87403976981ee0f64f4a.chunk.js.map +0 -1
- package/dist-prod/guide.5195c74796a7a0e37f7b.chunk.js +0 -2
- package/dist-prod/guide.5195c74796a7a0e37f7b.chunk.js.map +0 -1
- package/dist-prod/header.e3cecc6d60f801c1c105.chunk.js +0 -2
- package/dist-prod/header.e3cecc6d60f801c1c105.chunk.js.map +0 -1
- package/dist-prod/indicator.6b0c7a91ca254c3586e8.chunk.js +0 -2
- package/dist-prod/indicator.6b0c7a91ca254c3586e8.chunk.js.map +0 -1
- package/dist-prod/loadmore.ba86c35311fc68ee215b.chunk.js +0 -2
- package/dist-prod/loadmore.ba86c35311fc68ee215b.chunk.js.map +0 -1
- package/dist-prod/main.717f5c8b51911571fb82.js +0 -2
- package/dist-prod/main.717f5c8b51911571fb82.js.map +0 -1
- package/dist-prod/message.e57fa263a214006f7191.chunk.js +0 -2
- package/dist-prod/message.e57fa263a214006f7191.chunk.js.map +0 -1
- package/dist-prod/modal.1172c8ba7d90503fc8e8.chunk.js +0 -2
- package/dist-prod/modal.1172c8ba7d90503fc8e8.chunk.js.map +0 -1
- package/dist-prod/picker.4ff114161c5c3f8df57a.chunk.js +0 -2
- package/dist-prod/picker.4ff114161c5c3f8df57a.chunk.js.map +0 -1
- package/dist-prod/popup.8f92c027932e4d47fa59.chunk.js +0 -2
- package/dist-prod/popup.8f92c027932e4d47fa59.chunk.js.map +0 -1
- package/dist-prod/progress.1e0d785044aecadc5615.chunk.js +0 -2
- package/dist-prod/progress.1e0d785044aecadc5615.chunk.js.map +0 -1
- package/dist-prod/prompt.c2b442c3dd0e6d8319bc.chunk.js +0 -2
- package/dist-prod/prompt.c2b442c3dd0e6d8319bc.chunk.js.map +0 -1
- package/dist-prod/radiobox.479703c69b75d473e85d.chunk.js +0 -2
- package/dist-prod/radiobox.479703c69b75d473e85d.chunk.js.map +0 -1
- package/dist-prod/rater.939e0e7e770728f684c3.chunk.js +0 -2
- package/dist-prod/rater.939e0e7e770728f684c3.chunk.js.map +0 -1
- package/dist-prod/slidebar.d7ad5de495550613661f.chunk.js +0 -2
- package/dist-prod/slidebar.d7ad5de495550613661f.chunk.js.map +0 -1
- package/dist-prod/spinner.f20e3bd8cec27d26afe0.chunk.js +0 -2
- package/dist-prod/spinner.f20e3bd8cec27d26afe0.chunk.js.map +0 -1
- package/dist-prod/swipe.75b7d741be73c0064982.chunk.js +0 -2
- package/dist-prod/swipe.75b7d741be73c0064982.chunk.js.map +0 -1
- package/dist-prod/switchbar.56d03d96c275ff4c65a1.chunk.js +0 -2
- package/dist-prod/switchbar.56d03d96c275ff4c65a1.chunk.js.map +0 -1
- package/dist-prod/tab.4c391211c41b7d12b585.chunk.js +0 -2
- package/dist-prod/tab.4c391211c41b7d12b585.chunk.js.map +0 -1
- package/dist-prod/text.ee2804ba87e6a460aa7d.chunk.js +0 -2
- package/dist-prod/text.ee2804ba87e6a460aa7d.chunk.js.map +0 -1
- package/dist-prod/totop.c6f9dce152bb6abe5cb2.chunk.js +0 -2
- package/dist-prod/totop.c6f9dce152bb6abe5cb2.chunk.js.map +0 -1
- package/dist-prod/upload.a9b44c8a72fe70980a1e.chunk.js +0 -2
- package/dist-prod/upload.a9b44c8a72fe70980a1e.chunk.js.map +0 -1
- package/src/components/Indicator/index.js +0 -86
- package/src/components/Text/Number.vue +0 -167
- package/src/components/Text/index.js +0 -7
- package/src/components/Text/textBar.vue +0 -122
- package/src/components/action-sheet/actionSheet.vue +0 -98
- package/src/components/badge/index.js +0 -5
- package/src/components/button/index.js +0 -5
- package/src/components/card/card.vue +0 -49
- package/src/components/card/index.js +0 -5
- package/src/components/cell/cell.vue +0 -113
- package/src/components/cell/index.js +0 -5
- package/src/components/cell-swipe/cell-swipe.vue +0 -168
- package/src/components/cell-swipe/index.js +0 -5
- package/src/components/checkBox/checkbox-group.vue +0 -74
- package/src/components/checkBox/checkbox.vue +0 -117
- package/src/components/checkBox/index.js +0 -8
- package/src/components/header/header.vue +0 -131
- package/src/components/header/index.js +0 -5
- package/src/components/loadMore/index.js +0 -5
- package/src/components/loadMore/loadmore.vue +0 -258
- package/src/components/message/confirm.js +0 -60
- package/src/components/message/message.vue +0 -137
- package/src/components/message/messageGroup.vue +0 -82
- package/src/components/modal/index.js +0 -52
- package/src/components/modal/modal.vue +0 -138
- package/src/components/picker/index.js +0 -5
- package/src/components/picker/picker.vue +0 -111
- package/src/components/popup/index.js +0 -5
- package/src/components/popup/popup.vue +0 -91
- package/src/components/progress/index.js +0 -5
- package/src/components/progress/progress.vue +0 -86
- package/src/components/prompt/index.js +0 -53
- package/src/components/prompt/prompt.vue +0 -125
- package/src/components/radioBox/index.js +0 -8
- package/src/components/rater/index.js +0 -5
- package/src/components/rater/rater.vue +0 -118
- package/src/components/slideBar/index.js +0 -6
- package/src/components/slideBar/slideBar.vue +0 -225
- package/src/components/spinner/index.js +0 -5
- package/src/components/spinner/spinner.vue +0 -78
- package/src/components/swipe/index.js +0 -5
- package/src/components/swipe/swipe.vue +0 -289
- package/src/components/switchbar/index.js +0 -5
- package/src/components/switchbar/switchbar.vue +0 -79
- package/src/components/tab/index.js +0 -6
- package/src/components/tab/tab.vue +0 -89
- package/src/components/toTop/index.js +0 -5
- package/src/components/toTop/topTop.vue +0 -78
- package/src/components/upload/index.js +0 -5
- package/src/components/upload/upload.vue +0 -166
- package/src/index.js +0 -149
- /package/dist-prod/{91.e2fdec39667928bf57b9.js.LICENSE.txt → 91.05c8ec5277a15f939b0f.js.LICENSE.txt} +0 -0
- /package/src/components/radioBox/{radiobox-group.vue → radiobox-group1.vue} +0 -0
- /package/src/components/radioBox/{radiobox.vue → radiobox1.vue} +0 -0
- /package/src/{router.js → router.ts} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"upload.0638581e551ed9afaba2.chunk.js","mappings":"8IAEMA,EAAa,CCDZC,MAAM,UDEPC,EAAa,CAAC,OCmBpB,SAAeC,EAAAA,EAAAA,IAAgB,CAC7BC,KAAM,aACNC,WAAY,CACV,EAEFC,MAAI,WACF,IAAMC,GAAQC,EAAAA,EAAAA,IAAoD,IAC5DC,GAASD,EAAAA,EAAAA,IAAI,MAMnB,MAAO,CACLD,MAAAA,EACAE,OAAAA,EACAC,aAPmB,SAACC,GACpBJ,EAAMK,MAAQD,CAChB,EAOF,I,QCjCF,MAEA,GAFiC,E,QAAA,GAAgB,EAAQ,CAAC,CAAC,SFFrD,SAAiBE,EAAUC,EAAYC,EAAYC,EAAYC,EAAWC,GAC9E,IAAMC,GAAoBC,EAAAA,EAAAA,IAAkB,UAAU,GAEtD,OAAQC,EAAAA,EAAAA,OCPRC,EAAAA,EAAAA,IAcM,MAdNtB,EAcM,EAbJuB,EAAAA,EAAAA,IAIEJ,EAAA,CAHAX,IAAI,SACHgB,UAAU,EACVC,eAAgBZ,EAAAH,cDQhB,KAAM,EAAe,CAAC,mBCLTG,EAAAN,MAAMmB,SDOjBL,EAAAA,EAAAA,KAAW,ICNdC,EAAAA,EAAAA,IAICK,EAAAA,GAAA,CAAAC,IAAA,IAAAC,EAAAA,EAAAA,IAHyBhB,EAAAN,MAAK,SAArBuB,EAAMC,GDMZ,OAAQV,EAAAA,EAAAA,OCPZC,EAAAA,EAAAA,IAIC,OAFEM,IAAKG,EACLC,IAAKF,EAAKG,QDON,KAAM,EAAe/B,EAC1B,GAAI,OACJgC,EAAAA,EAAAA,IAAoB,QAAQ,IAEpC,GEhB4E,CAAC,YAAY,oB,cCJzF,IAAIC,EAAU,EAAQ,MACnBA,EAAQC,aAAYD,EAAUA,EAAQE,SACnB,iBAAZF,IAAsBA,EAAU,CAAC,CAACG,EAAOC,GAAIJ,EAAS,MAC7DA,EAAQK,SAAQF,EAAOG,QAAUN,EAAQK,SAG/BE,EADH,UACO,WAAYP,GAAS,EAAM,CAAC,E,0FCNzCQ,E,MAA0B,GAA4B,KAE1DA,EAAwBC,KAAK,CAACN,EAAOC,GAAI,gQAWA,GAAG,CAAC,QAAU,EAAE,QAAU,CAAC,yBAAyB,oCAAoC,MAAQ,GAAG,SAAW,2GAA2G,eAAiB,CAAC,uTAAuT,+NAA+N,WAAa,MAEvzB,S","sources":["webpack://dpzvc3-ui/../../%E5%89%8D%E7%AB%AF%E5%AD%A6%E4%B9%A0%E8%B5%84%E6%96%99/dpzvc3/src/views/Upload.vue?a55e","webpack://dpzvc3-ui/../../%E5%89%8D%E7%AB%AF%E5%AD%A6%E4%B9%A0%E8%B5%84%E6%96%99/dpzvc3/src/views/Upload.vue","webpack://dpzvc3-ui/./src/views/Upload.vue","webpack://dpzvc3-ui/./src/views/Upload.vue?93fe","webpack://dpzvc3-ui/./src/views/Upload.vue?4ceb"],"sourcesContent":["import { resolveComponent as _resolveComponent, createVNode as _createVNode, renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode } from \"vue\"\n\nconst _hoisted_1 = { class: \"Upload\" }\nconst _hoisted_2 = [\"src\"]\n\nexport function render(_ctx: any,_cache: any,$props: any,$setup: any,$data: any,$options: any) {\n const _component_Upload = _resolveComponent(\"Upload\", true)!\n\n return (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n _createVNode(_component_Upload, {\n ref: \"upload\",\n multiple: true,\n onOnChangeFile: _ctx.onChangeFile\n }, null, 8 /* PROPS */, [\"onOnChangeFile\"]),\n (_ctx.files.length)\n ? (_openBlock(true), _createElementBlock(_Fragment, { key: 0 }, _renderList(_ctx.files, (item, index) => {\n return (_openBlock(), _createElementBlock(\"img\", {\n key: index,\n src: item.base64\n }, null, 8 /* PROPS */, _hoisted_2))\n }), 128 /* KEYED_FRAGMENT */))\n : _createCommentVNode(\"v-if\", true)\n ]))\n}","<template>\n <div class=\"Upload\">\n <Upload\n ref=\"upload\"\n :multiple=\"true\"\n @on-change-file=\"onChangeFile\"\n />\n\n <template v-if=\"files.length\">\n <img\n v-for=\"(item, index) in files\"\n :key=\"index\"\n :src=\"item.base64\"\n >\n </template>\n </div>\n</template>\n\n<script lang=\"ts\">\nimport { ref, defineComponent } from 'vue'\n// import Upload from '@/components/upload'\n// import type { UploadProps } from '@/components/upload/types'\nexport default defineComponent({\n name: 'ViewUpload',\n components: {\n // Upload\n },\n setup () {\n const files = ref<Array<{ base64: string, clearBase64: string }>>([])\n const upload = ref(null)\n\n const onChangeFile = (newFiles: any[]) => {\n files.value = newFiles\n }\n\n return {\n files,\n upload,\n onChangeFile\n }\n }\n})\n</script>\n\n<style lang=\"less\" scoped>\n.Upload {\n height: 100%;\n\n .upload-box {\n width: 200px;\n height: 100px;\n background: #008cee;\n color: #ffffff;\n text-align: center;\n line-height: 100px;\n }\n\n // img {\n // width: 100px;\n // height: 100px;\n // margin: 5px;\n // object-fit: cover;\n // }\n}\n</style>\n","import { render } from \"./Upload.vue?vue&type=template&id=5116d252&scoped=true&ts=true\"\nimport script from \"./Upload.vue?vue&type=script&lang=ts\"\nexport * from \"./Upload.vue?vue&type=script&lang=ts\"\n\nimport \"./Upload.vue?vue&type=style&index=0&id=5116d252&lang=less&scoped=true\"\n\nimport exportComponent from \"../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-5116d252\"]])\n\nexport default __exports__","// style-loader: Adds some css to the DOM by adding a <style> tag\n\n// load the styles\nvar content = require(\"!!../../node_modules/css-loader/dist/cjs.js!../../node_modules/vue-loader/dist/stylePostLoader.js!../../node_modules/postcss-loader/dist/cjs.js!../../node_modules/less-loader/dist/cjs.js!../../node_modules/vue-loader/dist/index.js??ruleSet[1].rules[9].use[0]!./Upload.vue?vue&type=style&index=0&id=5116d252&lang=less&scoped=true\");\nif(content.__esModule) content = content.default;\nif(typeof content === 'string') content = [[module.id, content, '']];\nif(content.locals) module.exports = content.locals;\n// add the styles to the DOM\nvar add = require(\"!../../node_modules/vue-style-loader/lib/addStylesClient.js\").default\nvar update = add(\"3983d9c4\", content, true, {});","// Imports\nimport ___CSS_LOADER_API_SOURCEMAP_IMPORT___ from \"../../node_modules/css-loader/dist/runtime/sourceMaps.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../../node_modules/css-loader/dist/runtime/api.js\";\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, `.Upload[data-v-5116d252] {\n height: 100%;\n}\n.Upload .upload-box[data-v-5116d252] {\n width: 200px;\n height: 100px;\n background: #008cee;\n color: #ffffff;\n text-align: center;\n line-height: 100px;\n}\n/*# sourceMappingURL=Upload.css.map */`, \"\",{\"version\":3,\"sources\":[\"webpack://./Upload.vue\",\"webpack://./src/views/Upload.vue\"],\"names\":[],\"mappings\":\"AACA;EACE,YAAA;ACAF;ADDA;EAII,YAAA;EACA,aAAA;EACA,mBAAA;EACA,cAAA;EACA,kBAAA;EACA,kBAAA;ACAJ;AACA,qCAAqC\",\"sourcesContent\":[\"\\n.Upload {\\n height: 100%;\\n\\n .upload-box {\\n width: 200px;\\n height: 100px;\\n background: #008cee;\\n color: #ffffff;\\n text-align: center;\\n line-height: 100px;\\n }\\n\\n // img {\\n // width: 100px;\\n // height: 100px;\\n // margin: 5px;\\n // object-fit: cover;\\n // }\\n}\\n\",\".Upload {\\n height: 100%;\\n}\\n.Upload .upload-box {\\n width: 200px;\\n height: 100px;\\n background: #008cee;\\n color: #ffffff;\\n text-align: center;\\n line-height: 100px;\\n}\\n/*# sourceMappingURL=Upload.css.map */\"],\"sourceRoot\":\"\"}]);\n// Exports\nexport default ___CSS_LOADER_EXPORT___;\n"],"names":["_hoisted_1","class","_hoisted_2","defineComponent","name","components","setup","files","ref","upload","onChangeFile","newFiles","value","_ctx","_cache","$props","$setup","$data","$options","_component_Upload","_resolveComponent","_openBlock","_createElementBlock","_createVNode","multiple","onOnChangeFile","length","_Fragment","key","_renderList","item","index","src","base64","_createCommentVNode","content","__esModule","default","module","id","locals","exports","add","___CSS_LOADER_EXPORT___","push"],"ignoreList":[],"sourceRoot":""}
|
package/package.json
CHANGED
|
@@ -1,16 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dpzvc3-ui",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.1.1",
|
|
4
4
|
"description": "Vue3组件库",
|
|
5
5
|
"main": "dist/dpzvc3.js",
|
|
6
6
|
"module": "dist/dpzvc3.esm.js",
|
|
7
|
+
"types": "dist/types/index.d.ts",
|
|
7
8
|
"scripts": {
|
|
8
9
|
"init": "webpack --progress --config webpack.dev.config.js",
|
|
9
10
|
"dev": "webpack serve --config webpack.dev.config.js --open",
|
|
10
11
|
"build:style": "gulp --gulpfile build-style.js",
|
|
11
12
|
"build:dev": "webpack --config webpack.dist.dev.config.js",
|
|
12
13
|
"build:prod": "webpack --config webpack.dist.prod.config.js",
|
|
13
|
-
"build": "
|
|
14
|
+
"build:types": "tsc --project tsconfig.build.json && cp src/types/index.d.ts dist/types/index.d.ts",
|
|
15
|
+
"build": "npm run build:style && npm run build:dev && npm run build:prod && npm run build:types",
|
|
14
16
|
"dist": "webpack --progress --config webpack.prod.config.js",
|
|
15
17
|
"prepare": "husky"
|
|
16
18
|
},
|
|
@@ -39,7 +41,11 @@
|
|
|
39
41
|
"@babel/core": "^7.28.5",
|
|
40
42
|
"@babel/plugin-transform-runtime": "^7.28.5",
|
|
41
43
|
"@babel/preset-env": "^7.28.5",
|
|
44
|
+
"@babel/preset-typescript": "^7.28.5",
|
|
42
45
|
"@babel/runtime": "^7.28.4",
|
|
46
|
+
"@typescript-eslint/eslint-plugin": "^8.51.0",
|
|
47
|
+
"@typescript-eslint/parser": "^8.51.0",
|
|
48
|
+
"@vue/babel-plugin-jsx": "^2.0.1",
|
|
43
49
|
"@vue/compiler-sfc": "^3.5.26",
|
|
44
50
|
"@vue/eslint-config-standard": "^8.0.1",
|
|
45
51
|
"autoprefixer": "^10.4.23",
|
|
@@ -85,8 +91,11 @@
|
|
|
85
91
|
"postcss-loader": "^6.2.1",
|
|
86
92
|
"style-loader": "^3.3.4",
|
|
87
93
|
"terser-webpack-plugin": "^4.2.3",
|
|
94
|
+
"ts-loader": "^9.5.4",
|
|
95
|
+
"typescript": "^5.9.3",
|
|
88
96
|
"url-loader": "^0.5.9",
|
|
89
97
|
"vue": "^3.5.26",
|
|
98
|
+
"vue-eslint-parser": "^10.2.0",
|
|
90
99
|
"vue-hot-reload-api": "^1.3.3",
|
|
91
100
|
"vue-html-loader": "^1.2.3",
|
|
92
101
|
"vue-loader": "^17.4.2",
|
|
@@ -110,4 +119,4 @@
|
|
|
110
119
|
"eslint --max-warnings=0"
|
|
111
120
|
]
|
|
112
121
|
}
|
|
113
|
-
}
|
|
122
|
+
}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { defineComponent, ref, watch, computed, PropType } from 'vue'
|
|
2
|
+
import Spinner from '../spinner'
|
|
3
|
+
import type { IndicatorProps } from './types'
|
|
4
|
+
export type { IndicatorProps }
|
|
5
|
+
const prefixCls = 'dpzvc3-Indicator'
|
|
6
|
+
|
|
7
|
+
export default defineComponent({
|
|
8
|
+
name: 'Dpzvc3Indicator',
|
|
9
|
+
props: {
|
|
10
|
+
modelValue: {
|
|
11
|
+
type: Boolean,
|
|
12
|
+
default: false
|
|
13
|
+
},
|
|
14
|
+
color: {
|
|
15
|
+
type: String,
|
|
16
|
+
default: '#ffffff'
|
|
17
|
+
},
|
|
18
|
+
type: {
|
|
19
|
+
type: String as PropType<IndicatorProps['type']>,
|
|
20
|
+
default: 'snake'
|
|
21
|
+
},
|
|
22
|
+
size: {
|
|
23
|
+
type: [Number, String] as PropType<number | string>,
|
|
24
|
+
default: 45
|
|
25
|
+
},
|
|
26
|
+
text: {
|
|
27
|
+
type: String,
|
|
28
|
+
default: '加载中...'
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
emits: ['update:modelValue'],
|
|
32
|
+
setup(props, { emit }) {
|
|
33
|
+
const visible = ref(props.modelValue)
|
|
34
|
+
|
|
35
|
+
// watch modelValue 更新 visible
|
|
36
|
+
watch(
|
|
37
|
+
() => props.modelValue,
|
|
38
|
+
val => {
|
|
39
|
+
visible.value = val
|
|
40
|
+
}
|
|
41
|
+
)
|
|
42
|
+
|
|
43
|
+
// watch visible 更新 v-model
|
|
44
|
+
watch(visible, val => {
|
|
45
|
+
emit('update:modelValue', val)
|
|
46
|
+
})
|
|
47
|
+
|
|
48
|
+
const classes = computed(() => [prefixCls])
|
|
49
|
+
const containerClasses = computed(() => [`${prefixCls}-container`])
|
|
50
|
+
const wrapperClasses = computed(() => [`${prefixCls}-wrapper`])
|
|
51
|
+
|
|
52
|
+
return () => (
|
|
53
|
+
<div>
|
|
54
|
+
{visible.value && (
|
|
55
|
+
<div class={classes.value} onTouchmove={(e: any) => e.preventDefault()}>
|
|
56
|
+
<div class={containerClasses.value}>
|
|
57
|
+
<div class={wrapperClasses.value}>
|
|
58
|
+
<Spinner size={props.size} type={props.type} color={props.color} />
|
|
59
|
+
<span style={{ color: props.color }}>{props.text}</span>
|
|
60
|
+
</div>
|
|
61
|
+
</div>
|
|
62
|
+
</div>
|
|
63
|
+
)}
|
|
64
|
+
</div>
|
|
65
|
+
)
|
|
66
|
+
}
|
|
67
|
+
})
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Indicator - Vue 3 版本
|
|
3
|
+
*/
|
|
4
|
+
import { createVNode, render } from 'vue'
|
|
5
|
+
import Indicator from './Indicator'
|
|
6
|
+
import type { IndicatorProps, IndicatorInstance } from './types'
|
|
7
|
+
type containerE = HTMLElement | null
|
|
8
|
+
let instance: any = null
|
|
9
|
+
|
|
10
|
+
let container:containerE
|
|
11
|
+
|
|
12
|
+
function createInstance (props = {}) {
|
|
13
|
+
container = document.createElement('div')
|
|
14
|
+
document.body.appendChild(container)
|
|
15
|
+
|
|
16
|
+
const defaultProps = {
|
|
17
|
+
size: 45,
|
|
18
|
+
type: 'snake',
|
|
19
|
+
color: '#ffffff',
|
|
20
|
+
text: '加载中...',
|
|
21
|
+
visible: false,
|
|
22
|
+
...props
|
|
23
|
+
}
|
|
24
|
+
const vnode = createVNode(Indicator, {
|
|
25
|
+
...defaultProps,
|
|
26
|
+
onRemove: destroyInstance
|
|
27
|
+
})
|
|
28
|
+
render(vnode, container)
|
|
29
|
+
instance = vnode.component
|
|
30
|
+
return instance
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
function destroyInstance () {
|
|
34
|
+
if (!instance || !container) return
|
|
35
|
+
render(null, container)
|
|
36
|
+
if (container.parentNode) {
|
|
37
|
+
container.parentNode.removeChild(container)
|
|
38
|
+
}
|
|
39
|
+
instance = null
|
|
40
|
+
container = null
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
function open (options:IndicatorProps) {
|
|
44
|
+
if (!instance) {
|
|
45
|
+
createInstance(options)
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
// 更新 props
|
|
49
|
+
if (instance) {
|
|
50
|
+
Object.keys(options).forEach(key => {
|
|
51
|
+
instance.props[key] = options[key as keyof IndicatorProps]
|
|
52
|
+
})
|
|
53
|
+
instance.props.modelValue = true
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
function close () {
|
|
58
|
+
if (!instance) return
|
|
59
|
+
instance.props.modelValue = false
|
|
60
|
+
destroyInstance()
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
/* ================== 对外 API ================== */
|
|
64
|
+
|
|
65
|
+
// Indicator.open = open
|
|
66
|
+
// Indicator.remove = close
|
|
67
|
+
|
|
68
|
+
// Indicator.snake = function (props:IndicatorProps) {
|
|
69
|
+
// props.type = 'snake'
|
|
70
|
+
// open(props)
|
|
71
|
+
// }
|
|
72
|
+
|
|
73
|
+
// Indicator.blade = function (props:IndicatorProps) {
|
|
74
|
+
// props.type = 'blade'
|
|
75
|
+
// open(props)
|
|
76
|
+
// }
|
|
77
|
+
|
|
78
|
+
// Indicator.circle = function (props:IndicatorProps) {
|
|
79
|
+
// props.type = 'fading-circle'
|
|
80
|
+
// open(props)
|
|
81
|
+
// }
|
|
82
|
+
|
|
83
|
+
// Indicator.bounce = function (props:IndicatorProps) {
|
|
84
|
+
// props.type = 'double-bounce'
|
|
85
|
+
// open(props)
|
|
86
|
+
// }
|
|
87
|
+
// export default Indicator
|
|
88
|
+
|
|
89
|
+
const Indicators: IndicatorInstance = {
|
|
90
|
+
open,
|
|
91
|
+
remove: close,
|
|
92
|
+
snake: (props: IndicatorProps = {}) =>{
|
|
93
|
+
props.type = 'snake'
|
|
94
|
+
open(props)
|
|
95
|
+
},
|
|
96
|
+
blade: (props: IndicatorProps = {}) => {
|
|
97
|
+
props.type = 'blade'
|
|
98
|
+
open(props)
|
|
99
|
+
},
|
|
100
|
+
circle: (props: IndicatorProps = {}) => {
|
|
101
|
+
props.type = 'fading-circle'
|
|
102
|
+
open(props)
|
|
103
|
+
},
|
|
104
|
+
bounce: (props: IndicatorProps = {}) => {
|
|
105
|
+
props.type = 'double-bounce'
|
|
106
|
+
open(props)
|
|
107
|
+
},
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
|
|
111
|
+
export default Indicators
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
|
|
2
|
+
export interface IndicatorProps {
|
|
3
|
+
modelValue?: boolean
|
|
4
|
+
color?: string
|
|
5
|
+
type?: 'snake' | 'blade' | 'fading-circle' | 'double-bounce'
|
|
6
|
+
size?: number | string
|
|
7
|
+
text?: string
|
|
8
|
+
}
|
|
9
|
+
type IndicatorType = 'snake' | 'blade' | 'circle' | 'bounce'
|
|
10
|
+
export type IndicatorInstance = {
|
|
11
|
+
[k in IndicatorType]: (options: IndicatorProps) => any
|
|
12
|
+
} & {
|
|
13
|
+
open: (options: IndicatorProps) => any,
|
|
14
|
+
remove: () => void,
|
|
15
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Created by admin on 2025/9/24.
|
|
3
|
+
*/
|
|
4
|
+
import type { App } from 'vue'
|
|
5
|
+
import Text from './textBar'
|
|
6
|
+
// import Number from './Number'
|
|
7
|
+
// Text.Number = Number
|
|
8
|
+
Text.install = (app: App): void => {
|
|
9
|
+
app.component('TextBar', Text); // 注册全局组件
|
|
10
|
+
}
|
|
11
|
+
type IWithInstall<T> = T & { install(app: App): void };
|
|
12
|
+
const _Text=Text as IWithInstall<typeof Text>;
|
|
13
|
+
export default _Text
|
|
14
|
+
export type { TextBarProps } from './types'
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
// src/components/textBar/textBar.tsx
|
|
2
|
+
import { defineComponent, ref, computed, watch, PropType } from 'vue'
|
|
3
|
+
import type { TextBarProps } from './types'
|
|
4
|
+
|
|
5
|
+
export type { TextBarProps }
|
|
6
|
+
|
|
7
|
+
const prefixCls = 'dpzvc3-textBar'
|
|
8
|
+
|
|
9
|
+
export default defineComponent({
|
|
10
|
+
name: 'TextBar',
|
|
11
|
+
props: {
|
|
12
|
+
modelValue: { type: [String, Number] as PropType<string | number>, default: '' },
|
|
13
|
+
type: { type: String, default: 'text' },
|
|
14
|
+
placeholder: { type: [String, Number] as PropType<string | number>, default: '请输入' },
|
|
15
|
+
rows: Number,
|
|
16
|
+
autofocus: { type: Boolean, default: true },
|
|
17
|
+
inputStyles: { type: Object as PropType<Record<string, any>>, default: () => ({}) },
|
|
18
|
+
maxlength: Number,
|
|
19
|
+
name: String,
|
|
20
|
+
readonly: { type: Boolean, default: false },
|
|
21
|
+
disable: { type: Boolean, default: false }
|
|
22
|
+
},
|
|
23
|
+
emits: ['update:modelValue', 'input', 'on-input', 'on-enter', 'on-change'],
|
|
24
|
+
setup(props, { emit }) {
|
|
25
|
+
const currentVal = ref(props.modelValue)
|
|
26
|
+
|
|
27
|
+
watch(() => props.modelValue, val => {
|
|
28
|
+
currentVal.value = val
|
|
29
|
+
})
|
|
30
|
+
|
|
31
|
+
watch(currentVal, val => {
|
|
32
|
+
emit('input', val)
|
|
33
|
+
emit('on-input', val)
|
|
34
|
+
emit('update:modelValue', val)
|
|
35
|
+
})
|
|
36
|
+
|
|
37
|
+
const classes = computed(() => [prefixCls])
|
|
38
|
+
const inputClasses = computed(() => [`${prefixCls}-input`])
|
|
39
|
+
const textareaClasses = computed(() => [`${prefixCls}-textarea`])
|
|
40
|
+
|
|
41
|
+
// 输入事件
|
|
42
|
+
const changeInput = (e: Event) => {
|
|
43
|
+
const target = e.target as HTMLInputElement | HTMLTextAreaElement
|
|
44
|
+
currentVal.value = target.value
|
|
45
|
+
emit('input', currentVal.value)
|
|
46
|
+
emit('on-input', e)
|
|
47
|
+
emit('update:modelValue', currentVal.value)
|
|
48
|
+
emit('on-change', e)
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
// 回车事件
|
|
52
|
+
const enterInput = (e: KeyboardEvent) => {
|
|
53
|
+
emit('on-enter', e)
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
return () => {
|
|
57
|
+
if (props.type !== 'textarea') {
|
|
58
|
+
return (
|
|
59
|
+
<div class={classes.value} style={props.inputStyles}>
|
|
60
|
+
<label class={inputClasses.value} style={props.inputStyles}>
|
|
61
|
+
<input
|
|
62
|
+
type={props.type}
|
|
63
|
+
autofocus={props.autofocus}
|
|
64
|
+
value={currentVal.value}
|
|
65
|
+
placeholder={String(props.placeholder)}
|
|
66
|
+
readonly={props.readonly}
|
|
67
|
+
maxlength={props.maxlength}
|
|
68
|
+
name={props.name}
|
|
69
|
+
disabled={props.disable}
|
|
70
|
+
onInput={changeInput}
|
|
71
|
+
onBlur={changeInput}
|
|
72
|
+
onFocus={changeInput}
|
|
73
|
+
onKeyup={(e:any) => e.key === 'Enter' && enterInput(e)}
|
|
74
|
+
onChange={changeInput}
|
|
75
|
+
/>
|
|
76
|
+
</label>
|
|
77
|
+
</div>
|
|
78
|
+
)
|
|
79
|
+
} else {
|
|
80
|
+
return (
|
|
81
|
+
<div class={classes.value} style={props.inputStyles}>
|
|
82
|
+
<label class={textareaClasses.value}>
|
|
83
|
+
<textarea
|
|
84
|
+
autofocus={props.autofocus}
|
|
85
|
+
value={currentVal.value}
|
|
86
|
+
placeholder={String(props.placeholder)}
|
|
87
|
+
readonly={props.readonly}
|
|
88
|
+
maxlength={props.maxlength}
|
|
89
|
+
name={props.name}
|
|
90
|
+
rows={props.rows}
|
|
91
|
+
disabled={props.disable}
|
|
92
|
+
onInput={changeInput}
|
|
93
|
+
onBlur={changeInput}
|
|
94
|
+
onFocus={changeInput}
|
|
95
|
+
onKeyup={(e: any) => e.key === 'Enter' && enterInput(e)}
|
|
96
|
+
onChange={changeInput}
|
|
97
|
+
/>
|
|
98
|
+
</label>
|
|
99
|
+
</div>
|
|
100
|
+
)
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
})
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
// src/components/textBar/types.ts
|
|
2
|
+
export interface TextBarProps {
|
|
3
|
+
modelValue?: string | number
|
|
4
|
+
type?: string
|
|
5
|
+
placeholder?: string | number
|
|
6
|
+
rows?: number
|
|
7
|
+
autofocus?: boolean
|
|
8
|
+
inputStyles?: Record<string, any>
|
|
9
|
+
maxlength?: number
|
|
10
|
+
name?: string
|
|
11
|
+
readonly?: boolean
|
|
12
|
+
disable?: boolean
|
|
13
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
// src/components/badge/badge.d.ts
|
|
2
|
+
|
|
3
|
+
import type { App } from 'vue'
|
|
4
|
+
import type { ActionSheetProps } from './types' // 引入同级 types.ts 中的 BadgeProps
|
|
5
|
+
|
|
6
|
+
/** Badge 组件实例类型,带 install 方法 */
|
|
7
|
+
declare const ActionSheet: {
|
|
8
|
+
/** Vue 组件本身 */
|
|
9
|
+
new (): any
|
|
10
|
+
/** props 类型引用 */
|
|
11
|
+
__props?: ActionSheetProp
|
|
12
|
+
/** install 方法,用于全量注册 */
|
|
13
|
+
install(app: App): void
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export default ActionSheet
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
// src/components/action-sheet/action-sheet.tsx
|
|
2
|
+
import { defineComponent, ref, computed, watch, PropType } from 'vue'
|
|
3
|
+
import Popup from '../popup'
|
|
4
|
+
// import type { PopupProps } from '../popup/types'
|
|
5
|
+
import type { ActionSheetProps } from './types'
|
|
6
|
+
export type { ActionSheetProps }
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
export type ActionItem = {
|
|
10
|
+
text: string
|
|
11
|
+
onClick?: (item: ActionItem, index: number) => void
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
// export type ActionSheetProps = {
|
|
15
|
+
// modelValue?: boolean
|
|
16
|
+
// items?: ActionItem[]
|
|
17
|
+
// cancleText?: string
|
|
18
|
+
// }
|
|
19
|
+
|
|
20
|
+
const prefixCls = 'dpzvc3-actionSheet'
|
|
21
|
+
|
|
22
|
+
export default defineComponent({
|
|
23
|
+
name: 'ActionSheet',
|
|
24
|
+
props: {
|
|
25
|
+
modelValue: { type: Boolean, default: false },
|
|
26
|
+
items: { type: Array as PropType<ActionItem[]>, default: () => [] },
|
|
27
|
+
cancleText: { type: String, default: '取消' }
|
|
28
|
+
},
|
|
29
|
+
emits: ['update:modelValue'],
|
|
30
|
+
setup(props, { emit }) {
|
|
31
|
+
const visible = ref(props.modelValue)
|
|
32
|
+
const actions = ref(props.items)
|
|
33
|
+
|
|
34
|
+
// 同步 props.modelValue
|
|
35
|
+
watch(() => props.modelValue, val => { visible.value = val })
|
|
36
|
+
// 同步 actions
|
|
37
|
+
watch(() => props.items, val => { actions.value = val })
|
|
38
|
+
|
|
39
|
+
const classes = computed(() => [prefixCls])
|
|
40
|
+
const wrapperClasses = computed(() => [`${prefixCls}-wrapper`])
|
|
41
|
+
const wrapperActionClass = computed(() => [`${prefixCls}-wrapper-action`])
|
|
42
|
+
const cancleClass = computed(() => [`${prefixCls}-cancle`])
|
|
43
|
+
|
|
44
|
+
const emitAction = (item: ActionItem, index: number) => {
|
|
45
|
+
item.onClick?.(item, index)
|
|
46
|
+
emit('update:modelValue', false)
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
const cancleClick = () => {
|
|
50
|
+
emit('update:modelValue', false)
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
return () => (
|
|
54
|
+
<div>
|
|
55
|
+
<Popup
|
|
56
|
+
v-model={visible.value}
|
|
57
|
+
position="bottom"
|
|
58
|
+
styles={{ background: 'transparent' }}
|
|
59
|
+
>
|
|
60
|
+
<div class={classes.value}>
|
|
61
|
+
<ul class={wrapperClasses.value}>
|
|
62
|
+
{actions.value.map((item, index) => (
|
|
63
|
+
<li
|
|
64
|
+
key={index}
|
|
65
|
+
class={wrapperActionClass.value}
|
|
66
|
+
onClick={() => emitAction(item, index)}
|
|
67
|
+
>
|
|
68
|
+
<span>{item.text}</span>
|
|
69
|
+
</li>
|
|
70
|
+
))}
|
|
71
|
+
</ul>
|
|
72
|
+
{props.cancleText && (
|
|
73
|
+
<a
|
|
74
|
+
href="javascript:;"
|
|
75
|
+
class={cancleClass.value}
|
|
76
|
+
onClick={cancleClick}
|
|
77
|
+
>
|
|
78
|
+
{props.cancleText}
|
|
79
|
+
</a>
|
|
80
|
+
)}
|
|
81
|
+
</div>
|
|
82
|
+
</Popup>
|
|
83
|
+
</div>
|
|
84
|
+
)
|
|
85
|
+
}
|
|
86
|
+
})
|
|
@@ -1,30 +1,19 @@
|
|
|
1
|
-
|
|
2
|
-
<span :class="classes">
|
|
3
|
-
<slot />
|
|
4
|
-
<sup
|
|
5
|
-
v-show="visible"
|
|
6
|
-
:class="supClasses"
|
|
7
|
-
>{{ displayCount }}</sup>
|
|
8
|
-
</span>
|
|
9
|
-
</template>
|
|
1
|
+
import { defineComponent, computed, ref, watch,PropType } from 'vue'
|
|
10
2
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
const prefixCls = 'dpzvc3-badge'
|
|
3
|
+
import type { BadgeProps } from './types'
|
|
4
|
+
export type { BadgeProps }
|
|
15
5
|
|
|
16
6
|
export default defineComponent({
|
|
17
7
|
name: 'Dpzvc3Badge',
|
|
8
|
+
|
|
18
9
|
props: {
|
|
19
10
|
type: {
|
|
20
|
-
type: String
|
|
21
|
-
default: 'danger'
|
|
22
|
-
validator: (val) => ['normal', 'danger', 'warning', 'success'].includes(val)
|
|
11
|
+
type: String as PropType<BadgeProps['type']>,
|
|
12
|
+
default: 'danger'
|
|
23
13
|
},
|
|
24
14
|
size: {
|
|
25
|
-
type: String
|
|
26
|
-
default: 'normal'
|
|
27
|
-
validator: (val) => ['small', 'normal', 'large'].includes(val)
|
|
15
|
+
type: String as PropType<BadgeProps['size']>,
|
|
16
|
+
default: 'normal'
|
|
28
17
|
},
|
|
29
18
|
dot: {
|
|
30
19
|
type: Boolean,
|
|
@@ -34,12 +23,15 @@ export default defineComponent({
|
|
|
34
23
|
type: [Number, String],
|
|
35
24
|
default: 99
|
|
36
25
|
},
|
|
37
|
-
number:
|
|
26
|
+
number: {
|
|
27
|
+
type: [Number, String]
|
|
28
|
+
}
|
|
38
29
|
},
|
|
39
|
-
|
|
30
|
+
|
|
31
|
+
setup (props, { slots }) {
|
|
32
|
+
const prefixCls = 'dpzvc3-badge'
|
|
40
33
|
const visible = ref(true)
|
|
41
34
|
|
|
42
|
-
// 监听 number 来控制 visible
|
|
43
35
|
watch(
|
|
44
36
|
() => props.number,
|
|
45
37
|
(val) => {
|
|
@@ -55,6 +47,7 @@ export default defineComponent({
|
|
|
55
47
|
)
|
|
56
48
|
|
|
57
49
|
const classes = computed(() => [prefixCls])
|
|
50
|
+
|
|
58
51
|
const supClasses = computed(() => [
|
|
59
52
|
`${prefixCls}-${props.type}`,
|
|
60
53
|
{
|
|
@@ -66,15 +59,22 @@ export default defineComponent({
|
|
|
66
59
|
const displayCount = computed(() => {
|
|
67
60
|
if (props.dot) return ''
|
|
68
61
|
const num = Number(props.number)
|
|
69
|
-
return num <= Number(props.max) ? String(num) :
|
|
62
|
+
return num <= Number(props.max) ? String(num) : `${props.max}+`
|
|
70
63
|
})
|
|
71
64
|
|
|
72
|
-
return
|
|
73
|
-
classes
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
65
|
+
return () => (
|
|
66
|
+
<span class={classes.value}>
|
|
67
|
+
{slots.default?.()}
|
|
68
|
+
{visible.value && (
|
|
69
|
+
<sup class={supClasses.value}>
|
|
70
|
+
{displayCount.value}
|
|
71
|
+
</sup>
|
|
72
|
+
)}
|
|
73
|
+
</span>
|
|
74
|
+
)
|
|
75
|
+
// h('span', { class: classes.value }, [
|
|
76
|
+
// slots.default ? slots.default() : null,
|
|
77
|
+
// visible.value ? h('sup', { class: supClasses.value }, displayCount.value) : null
|
|
78
|
+
// ])
|
|
78
79
|
}
|
|
79
|
-
})
|
|
80
|
-
</script>
|
|
80
|
+
})
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Created by admin on 2025/11/4.
|
|
3
|
+
*/
|
|
4
|
+
import type { App } from 'vue'
|
|
5
|
+
import Badge from './badge'
|
|
6
|
+
Badge.install = (app: App): void => {
|
|
7
|
+
app.component('Badge', Badge); // 注册全局组件
|
|
8
|
+
}
|
|
9
|
+
type IWithInstall<T> = T & { install(app: App): void };
|
|
10
|
+
const _Badge=Badge as IWithInstall<typeof Badge>;
|
|
11
|
+
export default _Badge
|
|
12
|
+
export type { BadgeProps } from './types'
|