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
|
@@ -1,167 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div
|
|
3
|
-
:class="classes"
|
|
4
|
-
:style="containerStyle"
|
|
5
|
-
>
|
|
6
|
-
<!-- 减按钮 -->
|
|
7
|
-
<div
|
|
8
|
-
:class="reduceClasses"
|
|
9
|
-
:style="getChangeStyle"
|
|
10
|
-
@click="change('reduce', downDisabled)"
|
|
11
|
-
>
|
|
12
|
-
<slot name="reduce">
|
|
13
|
-
-
|
|
14
|
-
</slot>
|
|
15
|
-
</div>
|
|
16
|
-
|
|
17
|
-
<!-- 输入框 -->
|
|
18
|
-
<div :class="wrapperClasses">
|
|
19
|
-
<input
|
|
20
|
-
type="number"
|
|
21
|
-
:style="inputStyle"
|
|
22
|
-
:min="min"
|
|
23
|
-
:max="max"
|
|
24
|
-
:step="step"
|
|
25
|
-
:value="currentValue"
|
|
26
|
-
:autocomplete="autocomplete"
|
|
27
|
-
@input="changeInput"
|
|
28
|
-
@focus="focusInput"
|
|
29
|
-
@blur="blurInput"
|
|
30
|
-
@change="onChangeInput"
|
|
31
|
-
@keyup.38="change('reduce', downDisabled)"
|
|
32
|
-
@keyup.40="change('add', upDisabled)"
|
|
33
|
-
>
|
|
34
|
-
</div>
|
|
35
|
-
|
|
36
|
-
<!-- 加按钮 -->
|
|
37
|
-
<div
|
|
38
|
-
:class="addtionClasses"
|
|
39
|
-
:style="getChangeStyle"
|
|
40
|
-
@click="change('add', upDisabled)"
|
|
41
|
-
>
|
|
42
|
-
<slot name="add">
|
|
43
|
-
+
|
|
44
|
-
</slot>
|
|
45
|
-
</div>
|
|
46
|
-
</div>
|
|
47
|
-
</template>
|
|
48
|
-
|
|
49
|
-
<script>
|
|
50
|
-
import { defineComponent, ref, computed, watch, onMounted } from 'vue'
|
|
51
|
-
import Input from '../../mixin/input'
|
|
52
|
-
|
|
53
|
-
const prefixCls = 'dpzvc3-number'
|
|
54
|
-
|
|
55
|
-
export default defineComponent({
|
|
56
|
-
name: 'Dpzvc3Number',
|
|
57
|
-
mixins: [Input],
|
|
58
|
-
props: {
|
|
59
|
-
min: { type: [Number, String], default: -Infinity },
|
|
60
|
-
max: { type: [Number, String], default: Infinity },
|
|
61
|
-
modelValue: [Number, String],
|
|
62
|
-
step: { type: Number, default: 1 },
|
|
63
|
-
width: { type: Number, default: 60 },
|
|
64
|
-
height: { type: Number, default: 35 },
|
|
65
|
-
numberStyle: { type: Object, default: () => ({}) },
|
|
66
|
-
containerStyle: { type: Object, default: () => ({}) }
|
|
67
|
-
},
|
|
68
|
-
emits: ['update:modelValue', 'input', 'on-input'],
|
|
69
|
-
setup (props, { emit }) {
|
|
70
|
-
const currentValue = ref(props.modelValue)
|
|
71
|
-
const upDisabled = ref(false)
|
|
72
|
-
const downDisabled = ref(false)
|
|
73
|
-
|
|
74
|
-
// 计算类名
|
|
75
|
-
const classes = computed(() => [prefixCls])
|
|
76
|
-
const reduceClasses = computed(() => [
|
|
77
|
-
`${prefixCls}-changevalue`,
|
|
78
|
-
'left',
|
|
79
|
-
{ disabled: downDisabled.value }
|
|
80
|
-
])
|
|
81
|
-
const addtionClasses = computed(() => [
|
|
82
|
-
`${prefixCls}-changevalue`,
|
|
83
|
-
'right',
|
|
84
|
-
{ disabled: upDisabled.value }
|
|
85
|
-
])
|
|
86
|
-
const wrapperClasses = computed(() => [`${prefixCls}-wrapper`])
|
|
87
|
-
const getChangeStyle = computed(() => ({
|
|
88
|
-
width: `${props.height}px`,
|
|
89
|
-
height: `${props.height}px`,
|
|
90
|
-
lineHeight: `${props.height}px`
|
|
91
|
-
}))
|
|
92
|
-
const inputStyle = computed(() => ({
|
|
93
|
-
...props.numberStyle,
|
|
94
|
-
width: `${props.width}px`,
|
|
95
|
-
height: `${props.height}px`
|
|
96
|
-
}))
|
|
97
|
-
|
|
98
|
-
// 改变值时计算按钮状态
|
|
99
|
-
function changeVal (val) {
|
|
100
|
-
const numberVal = Number(val)
|
|
101
|
-
if (!isNaN(numberVal) || numberVal === 0) {
|
|
102
|
-
upDisabled.value = numberVal + props.step > props.max
|
|
103
|
-
downDisabled.value = numberVal - props.step < props.min
|
|
104
|
-
} else {
|
|
105
|
-
upDisabled.value = true
|
|
106
|
-
downDisabled.value = true
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
function setValue (val) {
|
|
111
|
-
currentValue.value = val
|
|
112
|
-
emit('input', val)
|
|
113
|
-
emit('update:modelValue', val)
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
// 输入框事件
|
|
117
|
-
function changeInput (e) {
|
|
118
|
-
let val = e.target.value.trim()
|
|
119
|
-
val = Number(val)
|
|
120
|
-
if (val < props.min) val = props.min
|
|
121
|
-
if (val > props.max) val = props.max
|
|
122
|
-
setValue(val)
|
|
123
|
-
e.target.value = currentValue.value
|
|
124
|
-
emit('on-input', e)
|
|
125
|
-
emit('update:modelValue', val)
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
// 点击加减按钮
|
|
129
|
-
function change (type, disabled) {
|
|
130
|
-
if (disabled) return
|
|
131
|
-
let val = Number(currentValue.value)
|
|
132
|
-
if (isNaN(val)) return
|
|
133
|
-
if (type === 'reduce') val -= props.step
|
|
134
|
-
else if (type === 'add') val += props.step
|
|
135
|
-
if (val < props.min) val = props.min
|
|
136
|
-
if (val > props.max) val = props.max
|
|
137
|
-
setValue(val)
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
watch(() => props.modelValue, (val) => {
|
|
141
|
-
currentValue.value = val
|
|
142
|
-
})
|
|
143
|
-
|
|
144
|
-
watch(currentValue, (val) => {
|
|
145
|
-
changeVal(val)
|
|
146
|
-
})
|
|
147
|
-
|
|
148
|
-
onMounted(() => {
|
|
149
|
-
changeVal(currentValue.value)
|
|
150
|
-
})
|
|
151
|
-
|
|
152
|
-
return {
|
|
153
|
-
currentValue,
|
|
154
|
-
upDisabled,
|
|
155
|
-
downDisabled,
|
|
156
|
-
classes,
|
|
157
|
-
reduceClasses,
|
|
158
|
-
addtionClasses,
|
|
159
|
-
wrapperClasses,
|
|
160
|
-
getChangeStyle,
|
|
161
|
-
inputStyle,
|
|
162
|
-
changeInput,
|
|
163
|
-
change
|
|
164
|
-
}
|
|
165
|
-
}
|
|
166
|
-
})
|
|
167
|
-
</script>
|
|
@@ -1,122 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div
|
|
3
|
-
:class="classes"
|
|
4
|
-
:style="styles"
|
|
5
|
-
>
|
|
6
|
-
<!-- 普通输入框 -->
|
|
7
|
-
<label
|
|
8
|
-
v-if="type !== 'textarea'"
|
|
9
|
-
:class="inputClasses"
|
|
10
|
-
:style="inputStyles"
|
|
11
|
-
>
|
|
12
|
-
<input
|
|
13
|
-
:type="type"
|
|
14
|
-
:autofocus="autofocus"
|
|
15
|
-
:value="currentVal"
|
|
16
|
-
:placeholder="placeholder"
|
|
17
|
-
:readonly="readonly"
|
|
18
|
-
:maxlength="maxlength"
|
|
19
|
-
:autocomplete="autocomplete"
|
|
20
|
-
:name="name"
|
|
21
|
-
:disabled="disable"
|
|
22
|
-
@input="changeInput"
|
|
23
|
-
@blur="blurInput"
|
|
24
|
-
@focus="focusInput"
|
|
25
|
-
@keyup.enter="enterInput"
|
|
26
|
-
@change="onChangeInput"
|
|
27
|
-
>
|
|
28
|
-
</label>
|
|
29
|
-
|
|
30
|
-
<!-- 多行文本框 -->
|
|
31
|
-
<label
|
|
32
|
-
v-else
|
|
33
|
-
:class="textareaClasses"
|
|
34
|
-
>
|
|
35
|
-
<textarea
|
|
36
|
-
:type="type"
|
|
37
|
-
:autofocus="autofocus"
|
|
38
|
-
:value="currentVal"
|
|
39
|
-
:placeholder="placeholder"
|
|
40
|
-
:readonly="readonly"
|
|
41
|
-
:maxlength="maxlength"
|
|
42
|
-
:name="name"
|
|
43
|
-
:rows="rows"
|
|
44
|
-
:disabled="disable"
|
|
45
|
-
@input="changeInput"
|
|
46
|
-
@blur="blurInput"
|
|
47
|
-
@focus="focusInput"
|
|
48
|
-
@keyup.enter="enterInput"
|
|
49
|
-
@change="onChangeInput"
|
|
50
|
-
/>
|
|
51
|
-
</label>
|
|
52
|
-
</div>
|
|
53
|
-
</template>
|
|
54
|
-
|
|
55
|
-
<script>
|
|
56
|
-
import { defineComponent, ref, computed, watch } from 'vue'
|
|
57
|
-
import Input from '../../mixin/input'
|
|
58
|
-
|
|
59
|
-
const prefixCls = 'dpzvc3-textBar'
|
|
60
|
-
|
|
61
|
-
export default defineComponent({
|
|
62
|
-
name: 'TextBar',
|
|
63
|
-
mixins: [Input],
|
|
64
|
-
props: {
|
|
65
|
-
rows: Number,
|
|
66
|
-
autofocus: { type: Boolean, default: true },
|
|
67
|
-
type: { type: String, default: 'text' },
|
|
68
|
-
modelValue: { type: [String, Number], default: '' },
|
|
69
|
-
placeholder: { type: [String, Number], default: '请输入' },
|
|
70
|
-
inputStyles: Object,
|
|
71
|
-
maxlength: Number,
|
|
72
|
-
name: String,
|
|
73
|
-
readonly: { type: Boolean, default: false }
|
|
74
|
-
},
|
|
75
|
-
emits: ['update:modelValue', 'input', 'on-input', 'on-enter'],
|
|
76
|
-
setup (props, { emit }) {
|
|
77
|
-
const currentVal = ref(props.modelValue)
|
|
78
|
-
|
|
79
|
-
// 类名
|
|
80
|
-
const classes = computed(() => [prefixCls])
|
|
81
|
-
const inputClasses = computed(() => [`${prefixCls}-input`])
|
|
82
|
-
const textareaClasses = computed(() => [`${prefixCls}-textarea`])
|
|
83
|
-
|
|
84
|
-
// 监听 props.value 改变
|
|
85
|
-
watch(
|
|
86
|
-
() => props.modelValue,
|
|
87
|
-
(val) => {
|
|
88
|
-
currentVal.value = val
|
|
89
|
-
}
|
|
90
|
-
)
|
|
91
|
-
|
|
92
|
-
// 监听内部值变化
|
|
93
|
-
watch(currentVal, (val) => {
|
|
94
|
-
emit('input', val)
|
|
95
|
-
emit('on-input', val)
|
|
96
|
-
emit('update:modelValue', val)
|
|
97
|
-
})
|
|
98
|
-
|
|
99
|
-
// 输入事件
|
|
100
|
-
function changeInput (e) {
|
|
101
|
-
currentVal.value = e.target.value
|
|
102
|
-
emit('input', currentVal.value)
|
|
103
|
-
emit('on-input', e)
|
|
104
|
-
emit('update:modelValue', currentVal.value)
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
// 回车事件
|
|
108
|
-
function enterInput (e) {
|
|
109
|
-
emit('on-enter', e)
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
return {
|
|
113
|
-
currentVal,
|
|
114
|
-
classes,
|
|
115
|
-
inputClasses,
|
|
116
|
-
textareaClasses,
|
|
117
|
-
changeInput,
|
|
118
|
-
enterInput
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
})
|
|
122
|
-
</script>
|
|
@@ -1,98 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div>
|
|
3
|
-
<Popup
|
|
4
|
-
v-model="visible"
|
|
5
|
-
position="bottom"
|
|
6
|
-
:styles="{ background: 'transparent' }"
|
|
7
|
-
>
|
|
8
|
-
<div :class="classes">
|
|
9
|
-
<ul :class="wrapperClasses">
|
|
10
|
-
<li
|
|
11
|
-
v-for="(item, key) in actions"
|
|
12
|
-
:key="key"
|
|
13
|
-
:class="wrapperActionClass"
|
|
14
|
-
@click="emit(item, key)"
|
|
15
|
-
>
|
|
16
|
-
<span>{{ item.text }}</span>
|
|
17
|
-
</li>
|
|
18
|
-
</ul>
|
|
19
|
-
<a
|
|
20
|
-
v-if="cancleText"
|
|
21
|
-
href="javascript:;"
|
|
22
|
-
:class="cancleClass"
|
|
23
|
-
@click="cancleClick"
|
|
24
|
-
>{{ cancleText }}</a>
|
|
25
|
-
</div>
|
|
26
|
-
</Popup>
|
|
27
|
-
</div>
|
|
28
|
-
</template>
|
|
29
|
-
|
|
30
|
-
<script>
|
|
31
|
-
import { ref, computed, watch, defineComponent } from 'vue'
|
|
32
|
-
import Popup from '../popup'
|
|
33
|
-
|
|
34
|
-
const prefixCls = 'dpzvc3-actionSheet'
|
|
35
|
-
|
|
36
|
-
export default defineComponent({
|
|
37
|
-
name: 'ActionSheet',
|
|
38
|
-
components: { Popup },
|
|
39
|
-
props: {
|
|
40
|
-
modelValue: { // Vue 3 v-model 默认绑定 modelValue
|
|
41
|
-
type: Boolean,
|
|
42
|
-
default: false
|
|
43
|
-
},
|
|
44
|
-
items: {
|
|
45
|
-
type: Array,
|
|
46
|
-
default: () => []
|
|
47
|
-
},
|
|
48
|
-
cancleText: {
|
|
49
|
-
type: String,
|
|
50
|
-
default: '取消'
|
|
51
|
-
}
|
|
52
|
-
},
|
|
53
|
-
setup (props, { emit }) {
|
|
54
|
-
// 内部状态
|
|
55
|
-
const visible = ref(props.modelValue)
|
|
56
|
-
const actions = ref(props.items)
|
|
57
|
-
|
|
58
|
-
// 同步 props.modelValue
|
|
59
|
-
watch(() => props.modelValue, (val) => {
|
|
60
|
-
visible.value = val
|
|
61
|
-
})
|
|
62
|
-
|
|
63
|
-
// 监听 visible 改变,通知父组件
|
|
64
|
-
// watch(visible, (val) => {
|
|
65
|
-
// emit('update:modelValue', val)
|
|
66
|
-
// })
|
|
67
|
-
|
|
68
|
-
// 样式类
|
|
69
|
-
const classes = computed(() => [prefixCls])
|
|
70
|
-
const wrapperClasses = computed(() => [`${prefixCls}-wrapper`])
|
|
71
|
-
const wrapperActionClass = computed(() => [`${prefixCls}-wrapper-action`])
|
|
72
|
-
const cancleClass = computed(() => [`${prefixCls}-cancle`])
|
|
73
|
-
|
|
74
|
-
// 点击事件
|
|
75
|
-
const emitAction = (item, index) => {
|
|
76
|
-
if (item.onClick && typeof item.onClick === 'function') {
|
|
77
|
-
item.onClick(item, index)
|
|
78
|
-
}
|
|
79
|
-
// visible.value = false
|
|
80
|
-
emit('update:modelValue', false)
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
const cancleClick = () => {
|
|
84
|
-
emit('update:modelValue', false)
|
|
85
|
-
}
|
|
86
|
-
return {
|
|
87
|
-
visible,
|
|
88
|
-
actions,
|
|
89
|
-
classes,
|
|
90
|
-
wrapperClasses,
|
|
91
|
-
wrapperActionClass,
|
|
92
|
-
cancleClass,
|
|
93
|
-
cancleClick,
|
|
94
|
-
emit: emitAction
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
})
|
|
98
|
-
</script>
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div
|
|
3
|
-
:class="classes"
|
|
4
|
-
:style="{ width: cardWidth }"
|
|
5
|
-
>
|
|
6
|
-
<div :class="headerClass">
|
|
7
|
-
<slot name="header" />
|
|
8
|
-
</div>
|
|
9
|
-
<div :class="contentClass">
|
|
10
|
-
<slot>
|
|
11
|
-
<div class="main" />
|
|
12
|
-
</slot>
|
|
13
|
-
</div>
|
|
14
|
-
<div :class="footerClass">
|
|
15
|
-
<slot name="footer" />
|
|
16
|
-
</div>
|
|
17
|
-
</div>
|
|
18
|
-
</template>
|
|
19
|
-
|
|
20
|
-
<script>
|
|
21
|
-
import { defineComponent, computed } from 'vue'
|
|
22
|
-
|
|
23
|
-
const prefixCls = 'dpzvc3-card'
|
|
24
|
-
|
|
25
|
-
export default defineComponent({
|
|
26
|
-
name: 'Dpzvc3Card',
|
|
27
|
-
props: {
|
|
28
|
-
width: {
|
|
29
|
-
type: String,
|
|
30
|
-
default: '100%'
|
|
31
|
-
}
|
|
32
|
-
},
|
|
33
|
-
setup (props) {
|
|
34
|
-
const classes = computed(() => [prefixCls])
|
|
35
|
-
const headerClass = computed(() => [`${prefixCls}-header`, 'dpzvc3-1px-bottom'])
|
|
36
|
-
const contentClass = computed(() => [`${prefixCls}-content`])
|
|
37
|
-
const footerClass = computed(() => [`${prefixCls}-footer`, 'dpzvc3-1px-top'])
|
|
38
|
-
const cardWidth = computed(() => props.width)
|
|
39
|
-
return {
|
|
40
|
-
classes,
|
|
41
|
-
headerClass,
|
|
42
|
-
contentClass,
|
|
43
|
-
footerClass,
|
|
44
|
-
cardWidth
|
|
45
|
-
// 不返回 width,模板直接用 props.width
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
})
|
|
49
|
-
</script>
|
|
@@ -1,113 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div
|
|
3
|
-
:href="toLink"
|
|
4
|
-
:class="classes"
|
|
5
|
-
@click.prevent="handleClick"
|
|
6
|
-
@touchstart="cellTouchStart"
|
|
7
|
-
@touchmove="cellTouchMove"
|
|
8
|
-
@touchend="cellTouchEnd"
|
|
9
|
-
>
|
|
10
|
-
<span
|
|
11
|
-
v-if="hasMask"
|
|
12
|
-
:class="maskClass"
|
|
13
|
-
/>
|
|
14
|
-
<div :class="leftClasses">
|
|
15
|
-
<slot name="left" />
|
|
16
|
-
</div>
|
|
17
|
-
<div :class="wrapperClasses">
|
|
18
|
-
<div :class="titleClass">
|
|
19
|
-
<slot name="icon" />
|
|
20
|
-
<slot name="title">
|
|
21
|
-
<span v-text="title" />
|
|
22
|
-
<span
|
|
23
|
-
:class="labelClass"
|
|
24
|
-
v-text="label"
|
|
25
|
-
/>
|
|
26
|
-
</slot>
|
|
27
|
-
</div>
|
|
28
|
-
<div :class="valueClass">
|
|
29
|
-
<slot name="value">
|
|
30
|
-
<span v-text="value" />
|
|
31
|
-
</slot>
|
|
32
|
-
</div>
|
|
33
|
-
</div>
|
|
34
|
-
<div :class="rightClasses">
|
|
35
|
-
<slot name="right" />
|
|
36
|
-
</div>
|
|
37
|
-
</div>
|
|
38
|
-
</template>
|
|
39
|
-
|
|
40
|
-
<script>
|
|
41
|
-
import { computed, defineComponent } from 'vue'
|
|
42
|
-
import { useRouter } from 'vue-router'
|
|
43
|
-
|
|
44
|
-
const prefixCls = 'dpzvc3-cell'
|
|
45
|
-
|
|
46
|
-
export default defineComponent({
|
|
47
|
-
name: 'Dpzvc3Cell',
|
|
48
|
-
props: {
|
|
49
|
-
title: String,
|
|
50
|
-
value: {},
|
|
51
|
-
label: String,
|
|
52
|
-
link: String,
|
|
53
|
-
hasMask: Boolean
|
|
54
|
-
},
|
|
55
|
-
emits: ['touchstart', 'touchmove', 'touchend', 'click'],
|
|
56
|
-
setup (props, { emit }) {
|
|
57
|
-
const router = useRouter()
|
|
58
|
-
|
|
59
|
-
// 计算链接
|
|
60
|
-
const toLink = computed(() => {
|
|
61
|
-
if (!props.link) return ''
|
|
62
|
-
// Vue 3 router.resolve 替代 Vue 2 match
|
|
63
|
-
const resolved = router.resolve(props.link)
|
|
64
|
-
return resolved.matched.length ? resolved.href : props.link
|
|
65
|
-
})
|
|
66
|
-
|
|
67
|
-
// 样式类
|
|
68
|
-
const classes = computed(() => [`${prefixCls}`])
|
|
69
|
-
const maskClass = computed(() => [`${prefixCls}-mask`])
|
|
70
|
-
const leftClasses = computed(() => [`${prefixCls}-left`])
|
|
71
|
-
const rightClasses = computed(() => [`${prefixCls}-right`])
|
|
72
|
-
const wrapperClasses = computed(() => [`${prefixCls}-main`, 'dpzvc3-1px-top'])
|
|
73
|
-
const titleClass = computed(() => [`${prefixCls}-main-title`])
|
|
74
|
-
const valueClass = computed(() => [`${prefixCls}-main-value`])
|
|
75
|
-
const labelClass = computed(() => [`${prefixCls}-main-label`])
|
|
76
|
-
|
|
77
|
-
// 点击跳转
|
|
78
|
-
const handleClick = (e) => {
|
|
79
|
-
if (props.link) { router.push(props.link) } else {
|
|
80
|
-
emit('click', e)
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
// 定义touchstart,touchmove,touchend事件
|
|
85
|
-
const cellTouchStart = (e) => {
|
|
86
|
-
emit('touchstart', e)
|
|
87
|
-
}
|
|
88
|
-
const cellTouchMove = (e) => {
|
|
89
|
-
emit('touchmove', e)
|
|
90
|
-
}
|
|
91
|
-
const cellTouchEnd = (e) => {
|
|
92
|
-
emit('touchend', e)
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
return {
|
|
96
|
-
toLink,
|
|
97
|
-
classes,
|
|
98
|
-
maskClass,
|
|
99
|
-
leftClasses,
|
|
100
|
-
rightClasses,
|
|
101
|
-
wrapperClasses,
|
|
102
|
-
titleClass,
|
|
103
|
-
valueClass,
|
|
104
|
-
labelClass,
|
|
105
|
-
handleClick,
|
|
106
|
-
emit,
|
|
107
|
-
cellTouchStart,
|
|
108
|
-
cellTouchMove,
|
|
109
|
-
cellTouchEnd
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
})
|
|
113
|
-
</script>
|