dpzvc3-ui 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +20 -0
- package/README.md +175 -0
- package/build-style.js +58 -0
- package/dist/dpzvc3.esm.js +17676 -0
- package/dist/dpzvc3.esm.js.map +1 -0
- package/dist/dpzvc3.esm.min.js +2 -0
- package/dist/dpzvc3.esm.min.js.map +1 -0
- package/dist/dpzvc3.js +15200 -0
- package/dist/dpzvc3.js.map +1 -0
- package/dist/dpzvc3.min.js +2 -0
- package/dist/dpzvc3.min.js.map +1 -0
- package/dist/styles/base/font.css +1 -0
- package/dist/styles/base/reset.css +1 -0
- package/dist/styles/base/variable.css +0 -0
- package/dist/styles/components/actionSheet.css +1 -0
- package/dist/styles/components/badge.css +1 -0
- package/dist/styles/components/button.css +1 -0
- package/dist/styles/components/card.css +1 -0
- package/dist/styles/components/cell-swipe.css +1 -0
- package/dist/styles/components/cell.css +1 -0
- package/dist/styles/components/checkBox.css +1 -0
- package/dist/styles/components/editor.css +1 -0
- package/dist/styles/components/header.css +1 -0
- package/dist/styles/components/indicator.css +1 -0
- package/dist/styles/components/loadmore.css +1 -0
- package/dist/styles/components/message.css +1 -0
- package/dist/styles/components/modal.css +1 -0
- package/dist/styles/components/number.css +1 -0
- package/dist/styles/components/picker.css +1 -0
- package/dist/styles/components/popup.css +1 -0
- package/dist/styles/components/progress.css +1 -0
- package/dist/styles/components/prompt.css +1 -0
- package/dist/styles/components/radioBox.css +1 -0
- package/dist/styles/components/slide-Bar.css +1 -0
- package/dist/styles/components/spinner.css +1 -0
- package/dist/styles/components/swipe.css +1 -0
- package/dist/styles/components/switchBar.css +1 -0
- package/dist/styles/components/tab.css +1 -0
- package/dist/styles/components/text.css +1 -0
- package/dist/styles/components/toTop.css +1 -0
- package/dist/styles/components/upload.css +1 -0
- package/dist/styles/dpzvc3.css +1 -0
- package/dist/styles/utils/1px.css +1 -0
- package/dist/styles/utils/animation.css +1 -0
- package/dist/styles/utils/nowrap.css +1 -0
- package/dist-prod/91.9d79b442ec3131707419.js +3 -0
- package/dist-prod/91.9d79b442ec3131707419.js.LICENSE.txt +25 -0
- package/dist-prod/91.9d79b442ec3131707419.js.map +1 -0
- package/dist-prod/actionsheet.e2f7c32d0120f5147a4f.chunk.js +2 -0
- package/dist-prod/actionsheet.e2f7c32d0120f5147a4f.chunk.js.map +1 -0
- package/dist-prod/badge.6038c4ccc54ffb56a645.chunk.js +2 -0
- package/dist-prod/badge.6038c4ccc54ffb56a645.chunk.js.map +1 -0
- package/dist-prod/button.28b491339fbba29c3f16.chunk.js +2 -0
- package/dist-prod/button.28b491339fbba29c3f16.chunk.js.map +1 -0
- package/dist-prod/card.3ad847f07bebc1391125.chunk.js +2 -0
- package/dist-prod/card.3ad847f07bebc1391125.chunk.js.map +1 -0
- package/dist-prod/cell.8920796a9ebd2d84bbd3.chunk.js +2 -0
- package/dist-prod/cell.8920796a9ebd2d84bbd3.chunk.js.map +1 -0
- package/dist-prod/cellswipe.53b0178e4638c201dcf1.chunk.js +2 -0
- package/dist-prod/cellswipe.53b0178e4638c201dcf1.chunk.js.map +1 -0
- package/dist-prod/checkbox.87403976981ee0f64f4a.chunk.js +2 -0
- package/dist-prod/checkbox.87403976981ee0f64f4a.chunk.js.map +1 -0
- package/dist-prod/guide.5195c74796a7a0e37f7b.chunk.js +2 -0
- package/dist-prod/guide.5195c74796a7a0e37f7b.chunk.js.map +1 -0
- package/dist-prod/header.e3cecc6d60f801c1c105.chunk.js +2 -0
- package/dist-prod/header.e3cecc6d60f801c1c105.chunk.js.map +1 -0
- package/dist-prod/index.html +19 -0
- package/dist-prod/indicator.6b0c7a91ca254c3586e8.chunk.js +2 -0
- package/dist-prod/indicator.6b0c7a91ca254c3586e8.chunk.js.map +1 -0
- package/dist-prod/loadmore.ba86c35311fc68ee215b.chunk.js +2 -0
- package/dist-prod/loadmore.ba86c35311fc68ee215b.chunk.js.map +1 -0
- package/dist-prod/main.2e9aaa9095e329ea2d7b.js +2 -0
- package/dist-prod/main.2e9aaa9095e329ea2d7b.js.map +1 -0
- package/dist-prod/message.e57fa263a214006f7191.chunk.js +2 -0
- package/dist-prod/message.e57fa263a214006f7191.chunk.js.map +1 -0
- package/dist-prod/modal.1172c8ba7d90503fc8e8.chunk.js +2 -0
- package/dist-prod/modal.1172c8ba7d90503fc8e8.chunk.js.map +1 -0
- package/dist-prod/picker.4ff114161c5c3f8df57a.chunk.js +2 -0
- package/dist-prod/picker.4ff114161c5c3f8df57a.chunk.js.map +1 -0
- package/dist-prod/popup.8f92c027932e4d47fa59.chunk.js +2 -0
- package/dist-prod/popup.8f92c027932e4d47fa59.chunk.js.map +1 -0
- package/dist-prod/progress.1e0d785044aecadc5615.chunk.js +2 -0
- package/dist-prod/progress.1e0d785044aecadc5615.chunk.js.map +1 -0
- package/dist-prod/prompt.c2b442c3dd0e6d8319bc.chunk.js +2 -0
- package/dist-prod/prompt.c2b442c3dd0e6d8319bc.chunk.js.map +1 -0
- package/dist-prod/radiobox.479703c69b75d473e85d.chunk.js +2 -0
- package/dist-prod/radiobox.479703c69b75d473e85d.chunk.js.map +1 -0
- package/dist-prod/rater.939e0e7e770728f684c3.chunk.js +2 -0
- package/dist-prod/rater.939e0e7e770728f684c3.chunk.js.map +1 -0
- package/dist-prod/slidebar.3d3f48a631f03a2210c9.chunk.js +2 -0
- package/dist-prod/slidebar.3d3f48a631f03a2210c9.chunk.js.map +1 -0
- package/dist-prod/spinner.f20e3bd8cec27d26afe0.chunk.js +2 -0
- package/dist-prod/spinner.f20e3bd8cec27d26afe0.chunk.js.map +1 -0
- package/dist-prod/swipe.2e5b0acc3bbb2bf49dd5.chunk.js +2 -0
- package/dist-prod/swipe.2e5b0acc3bbb2bf49dd5.chunk.js.map +1 -0
- package/dist-prod/switchbar.56d03d96c275ff4c65a1.chunk.js +2 -0
- package/dist-prod/switchbar.56d03d96c275ff4c65a1.chunk.js.map +1 -0
- package/dist-prod/tab.4c391211c41b7d12b585.chunk.js +2 -0
- package/dist-prod/tab.4c391211c41b7d12b585.chunk.js.map +1 -0
- package/dist-prod/text.ee2804ba87e6a460aa7d.chunk.js +2 -0
- package/dist-prod/text.ee2804ba87e6a460aa7d.chunk.js.map +1 -0
- package/dist-prod/totop.c6f9dce152bb6abe5cb2.chunk.js +2 -0
- package/dist-prod/totop.c6f9dce152bb6abe5cb2.chunk.js.map +1 -0
- package/dist-prod/upload.ec7a954970889869d93e.chunk.js +2 -0
- package/dist-prod/upload.ec7a954970889869d93e.chunk.js.map +1 -0
- package/images/IMG_2614 2 2.JPG +0 -0
- package/images/IMG_2614.JPG +0 -0
- package/images/IMG_2615 2.JPG +0 -0
- package/images/IMG_2615.JPG +0 -0
- package/package.json +113 -0
- package/postcss.config.js +5 -0
- package/src/components/Indicator/Indicator.vue +82 -0
- package/src/components/Indicator/index.js +86 -0
- package/src/components/Text/Number.vue +167 -0
- package/src/components/Text/index.js +7 -0
- package/src/components/Text/textBar.vue +122 -0
- package/src/components/action-sheet/actionSheet.vue +93 -0
- package/src/components/action-sheet/index.js +5 -0
- package/src/components/app.vue +61 -0
- package/src/components/badge/badge.vue +80 -0
- package/src/components/badge/index.js +5 -0
- package/src/components/button/button.vue +111 -0
- package/src/components/button/index.js +5 -0
- package/src/components/card/card.vue +49 -0
- package/src/components/card/index.js +5 -0
- package/src/components/cell/cell.vue +93 -0
- package/src/components/cell/index.js +5 -0
- package/src/components/cell-swipe/cell-swipe.vue +169 -0
- package/src/components/cell-swipe/index.js +5 -0
- package/src/components/checkBox/checkbox-group.vue +74 -0
- package/src/components/checkBox/checkbox.vue +117 -0
- package/src/components/checkBox/index.js +8 -0
- package/src/components/header/header.vue +130 -0
- package/src/components/header/index.js +5 -0
- package/src/components/loadMore/index.js +5 -0
- package/src/components/loadMore/loadmore.vue +258 -0
- package/src/components/message/confirm.js +60 -0
- package/src/components/message/index.js +111 -0
- package/src/components/message/message.vue +137 -0
- package/src/components/message/messageGroup.vue +82 -0
- package/src/components/modal/confirm.js +122 -0
- package/src/components/modal/index.js +52 -0
- package/src/components/modal/modal.vue +138 -0
- package/src/components/picker/area-picker/area-picker.vue +230 -0
- package/src/components/picker/area-picker/props.js +17 -0
- package/src/components/picker/date-picker/date-picker.vue +191 -0
- package/src/components/picker/date-picker/props.js +24 -0
- package/src/components/picker/index.js +5 -0
- package/src/components/picker/normal-picker/normal-picker.vue +120 -0
- package/src/components/picker/normal-picker/props.js +20 -0
- package/src/components/picker/picker-slot.vue +217 -0
- package/src/components/picker/picker.vue +111 -0
- package/src/components/popup/index.js +5 -0
- package/src/components/popup/popup.vue +91 -0
- package/src/components/progress/index.js +5 -0
- package/src/components/progress/progress.vue +86 -0
- package/src/components/prompt/confirm.js +91 -0
- package/src/components/prompt/index.js +53 -0
- package/src/components/prompt/prompt.vue +125 -0
- package/src/components/radioBox/index.js +8 -0
- package/src/components/radioBox/radiobox-group.vue +66 -0
- package/src/components/radioBox/radiobox.vue +88 -0
- package/src/components/rater/index.js +5 -0
- package/src/components/rater/rater.vue +118 -0
- package/src/components/slideBar/index.js +6 -0
- package/src/components/slideBar/slideBar.vue +207 -0
- package/src/components/spinner/behavior/blade.vue +42 -0
- package/src/components/spinner/behavior/double-bounce.vue +38 -0
- package/src/components/spinner/behavior/fading-circle.vue +55 -0
- package/src/components/spinner/behavior/snake.vue +41 -0
- package/src/components/spinner/behavior/triple-bounce.vue +52 -0
- package/src/components/spinner/index.js +5 -0
- package/src/components/spinner/props.js +28 -0
- package/src/components/spinner/spinner.vue +78 -0
- package/src/components/swipe/index.js +5 -0
- package/src/components/swipe/swipe.vue +281 -0
- package/src/components/switchbar/index.js +5 -0
- package/src/components/switchbar/switchbar.vue +79 -0
- package/src/components/tab/index.js +6 -0
- package/src/components/tab/tab.vue +89 -0
- package/src/components/toTop/index.js +5 -0
- package/src/components/toTop/topTop.vue +78 -0
- package/src/components/upload/index.js +5 -0
- package/src/components/upload/upload.vue +166 -0
- package/src/config/config.js +16 -0
- package/src/directives/clickoutside.js +42 -0
- package/src/directives/tranferDom.js +66 -0
- package/src/index.js +149 -0
- package/src/lib/MegaPixImage.js +163 -0
- package/src/lib/MegaPixImageOld.js +153 -0
- package/src/lib/exif-js.js +235 -0
- package/src/lib/exif.js +789 -0
- package/src/main.js +31 -0
- package/src/mixin/emitter.js +72 -0
- package/src/mixin/input.js +41 -0
- package/src/router.js +36 -0
- package/src/styles/base/font.less +99 -0
- package/src/styles/base/reset.less +135 -0
- package/src/styles/base/variable.less +108 -0
- package/src/styles/components/actionSheet.less +43 -0
- package/src/styles/components/badge.less +81 -0
- package/src/styles/components/button.less +124 -0
- package/src/styles/components/card.less +31 -0
- package/src/styles/components/cell-swipe.less +20 -0
- package/src/styles/components/cell.less +75 -0
- package/src/styles/components/checkBox.less +113 -0
- package/src/styles/components/editor.less +3 -0
- package/src/styles/components/header.less +72 -0
- package/src/styles/components/indicator.less +39 -0
- package/src/styles/components/loadmore.less +48 -0
- package/src/styles/components/message.less +57 -0
- package/src/styles/components/modal.less +84 -0
- package/src/styles/components/number.less +60 -0
- package/src/styles/components/picker.less +152 -0
- package/src/styles/components/popup.less +46 -0
- package/src/styles/components/progress.less +52 -0
- package/src/styles/components/prompt.less +37 -0
- package/src/styles/components/radioBox.less +138 -0
- package/src/styles/components/slide-Bar.less +149 -0
- package/src/styles/components/spinner.less +329 -0
- package/src/styles/components/swipe.less +125 -0
- package/src/styles/components/switchBar.less +88 -0
- package/src/styles/components/tab.less +71 -0
- package/src/styles/components/text.less +82 -0
- package/src/styles/components/toTop.less +28 -0
- package/src/styles/components/upload.less +23 -0
- package/src/styles/index.less +38 -0
- package/src/styles/utils/1px.less +206 -0
- package/src/styles/utils/animation.less +165 -0
- package/src/styles/utils/nowrap.less +19 -0
- package/src/template/index.ejs +40 -0
- package/src/utils/util.js +202 -0
- package/src/vconsole-resources.min.js +6 -0
- package/src/vconsole-sources.min.js +6 -0
- package/src/vconsole.min.js +7 -0
- package/src/views/ActionSheet.vue +46 -0
- package/src/views/Badge.vue +51 -0
- package/src/views/Button.vue +69 -0
- package/src/views/Card.vue +88 -0
- package/src/views/Cell.vue +30 -0
- package/src/views/CellSwipe.vue +68 -0
- package/src/views/CheckBox.vue +77 -0
- package/src/views/Header.vue +70 -0
- package/src/views/Indicator.vue +82 -0
- package/src/views/LoadMore.vue +73 -0
- package/src/views/Message.vue +61 -0
- package/src/views/Modal.vue +69 -0
- package/src/views/Picker.vue +140 -0
- package/src/views/Popup.vue +97 -0
- package/src/views/Progress.vue +47 -0
- package/src/views/Prompt.vue +43 -0
- package/src/views/RadioBox.vue +68 -0
- package/src/views/Rater.vue +49 -0
- package/src/views/SlideBar.vue +55 -0
- package/src/views/Spinner.vue +15 -0
- package/src/views/Swipe.vue +59 -0
- package/src/views/SwitchBar.vue +47 -0
- package/src/views/Tab.vue +53 -0
- package/src/views/Text.vue +93 -0
- package/src/views/ToTop.vue +17 -0
- package/src/views/Upload.vue +61 -0
- package/src/views/guide.vue +164 -0
- package/src/views/index.vue +554 -0
- package/webpack.base.config.js +65 -0
- package/webpack.dev.config.js +42 -0
- package/webpack.dist.dev.config.js +75 -0
- package/webpack.dist.prod.config.js +89 -0
- package/webpack.prod.config.js +51 -0
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
.dpzvc3-upload {
|
|
2
|
+
position: relative;
|
|
3
|
+
|
|
4
|
+
&-wrapper {
|
|
5
|
+
width: 100%;
|
|
6
|
+
height: 100%;
|
|
7
|
+
background: #39f;
|
|
8
|
+
color: #ffffff;
|
|
9
|
+
line-height: 50px;
|
|
10
|
+
text-align: center;
|
|
11
|
+
border-radius: 10px;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
input[type=file] {
|
|
15
|
+
position: absolute;
|
|
16
|
+
left: 0;
|
|
17
|
+
top: 0;
|
|
18
|
+
opacity: 0;
|
|
19
|
+
width: 100%;
|
|
20
|
+
height: 100%;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
// base
|
|
2
|
+
@import "base/variable.less";
|
|
3
|
+
@import "base/reset.less";
|
|
4
|
+
|
|
5
|
+
// utils
|
|
6
|
+
@import "utils/animation.less";
|
|
7
|
+
@import "utils/nowrap.less";
|
|
8
|
+
@import "utils/1px.less";
|
|
9
|
+
|
|
10
|
+
// components
|
|
11
|
+
@import "components/header.less";
|
|
12
|
+
@import "components/actionsheet.less";
|
|
13
|
+
@import "components/message.less";
|
|
14
|
+
@import "components/picker.less";
|
|
15
|
+
@import "components/tab.less";
|
|
16
|
+
@import "components/modal.less";
|
|
17
|
+
@import "components/prompt.less";
|
|
18
|
+
@import "components/slide-Bar.less";
|
|
19
|
+
@import "components/button.less";
|
|
20
|
+
@import "components/checkBox.less";
|
|
21
|
+
@import "components/radioBox.less";
|
|
22
|
+
@import "components/editor.less";
|
|
23
|
+
@import "components/number.less";
|
|
24
|
+
@import "components/text.less";
|
|
25
|
+
@import "components/swipe.less";
|
|
26
|
+
@import "components/switchBar.less";
|
|
27
|
+
@import "components/upload.less";
|
|
28
|
+
@import "components/spinner.less";
|
|
29
|
+
@import "components/loadmore.less";
|
|
30
|
+
@import "components/popup.less";
|
|
31
|
+
@import "components/indicator.less";
|
|
32
|
+
@import "components/progress.less";
|
|
33
|
+
@import "components/toTop.less";
|
|
34
|
+
@import "components/cell.less";
|
|
35
|
+
@import "components/cell-swipe.less";
|
|
36
|
+
@import "components/badge.less";
|
|
37
|
+
@import "components/card.less";
|
|
38
|
+
@import "base/font.less";
|
|
@@ -0,0 +1,206 @@
|
|
|
1
|
+
// 使用1px类时,需要注意 如果是absolute定位的,在引入mx-1px后,需要重新写入absolute定位
|
|
2
|
+
@import "../base/variable.less";
|
|
3
|
+
|
|
4
|
+
.dpzvc3-1px {
|
|
5
|
+
&-all {
|
|
6
|
+
.dpzvc3-1px(@BorderColor);
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
&-top {
|
|
10
|
+
.dpzvc3-1px-side(@BorderColor, top, before);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
&-bottom {
|
|
14
|
+
.dpzvc3-1px-side(@BorderColor, bottom, after);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
&-left {
|
|
18
|
+
.dpzvc3-1px-side(@BorderColor, left, before);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
&-right {
|
|
22
|
+
.dpzvc3-1px-side(@BorderColor, right, after);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
&-left-right {
|
|
26
|
+
.dpzvc3-1px-side(@BorderColor, left, before);
|
|
27
|
+
.dpzvc3-1px-side(@BorderColor, right, after);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
&-top-bottom {
|
|
31
|
+
.dpzvc3-1px-side(@BorderColor, top, before);
|
|
32
|
+
.dpzvc3-1px-side(@BorderColor, bottom, after);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
&-left-top {
|
|
36
|
+
.dpzvc3-1px-side(@BorderColor, left, before);
|
|
37
|
+
.dpzvc3-1px-side(@BorderColor, top, after);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
&-left-bottom {
|
|
41
|
+
.dpzvc3-1px-side(@BorderColor, left, before);
|
|
42
|
+
.dpzvc3-1px-side(@BorderColor, bottom, after);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
&-right-top {
|
|
46
|
+
.dpzvc3-1px-side(@BorderColor, right, before);
|
|
47
|
+
.dpzvc3-1px-side(@BorderColor, top, after);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
&-right-bottom {
|
|
51
|
+
.dpzvc3-1px-side(@BorderColor, right, before);
|
|
52
|
+
.dpzvc3-1px-side(@BorderColor, bottom, after);
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
// @mixin
|
|
57
|
+
.dpzvc3-1px(@color: #ccc) {
|
|
58
|
+
position: relative;
|
|
59
|
+
border-color: @color;
|
|
60
|
+
|
|
61
|
+
&:before {
|
|
62
|
+
position: absolute;
|
|
63
|
+
content: "";
|
|
64
|
+
width: 100%;
|
|
65
|
+
height: 100%;
|
|
66
|
+
top: 0;
|
|
67
|
+
left: 0;
|
|
68
|
+
transform-origin: 0 0;
|
|
69
|
+
box-sizing: border-box;
|
|
70
|
+
pointer-events: none;
|
|
71
|
+
border: 1px solid;
|
|
72
|
+
border-color: inherit;
|
|
73
|
+
border-radius: inherit;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
@media screen and (-webkit-min-device-pixel-ratio:1.5) {
|
|
77
|
+
&:before {
|
|
78
|
+
width: 150%;
|
|
79
|
+
height: 150%;
|
|
80
|
+
transform: scale(0.6667);
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
@media screen and (-webkit-min-device-pixel-ratio: 2) {
|
|
85
|
+
&:before {
|
|
86
|
+
width: 200%;
|
|
87
|
+
height: 200%;
|
|
88
|
+
transform: scale(0.5);
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
.dpzvc3-1px-side-base(@color, @pseudo) {
|
|
94
|
+
position: relative;
|
|
95
|
+
border-color: @color;
|
|
96
|
+
|
|
97
|
+
&:@{pseudo} {
|
|
98
|
+
position: absolute;
|
|
99
|
+
content: "";
|
|
100
|
+
transform-origin: 0 0;
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
.dpzvc3-1px-side(@color: #ccc, @direction: top, @pseudo: before) when (@direction =top) {
|
|
105
|
+
.dpzvc3-1px-side-base(@color, @pseudo);
|
|
106
|
+
|
|
107
|
+
&:@{pseudo} {
|
|
108
|
+
width: 100%;
|
|
109
|
+
height: 1px;
|
|
110
|
+
top: 0;
|
|
111
|
+
left: 0;
|
|
112
|
+
border-top: 1px solid;
|
|
113
|
+
border-color: inherit;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
.dpzvc3-1px-device-fix(@pseudo, "Y");
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
.dpzvc3-1px-side(@color: #ccc, @direction: top, @pseudo: before) when (@direction =bottom) {
|
|
120
|
+
.dpzvc3-1px-side-base(@color, @pseudo);
|
|
121
|
+
|
|
122
|
+
&:@{pseudo} {
|
|
123
|
+
width: 100%;
|
|
124
|
+
height: 1px;
|
|
125
|
+
bottom: -1px;
|
|
126
|
+
left: 0;
|
|
127
|
+
border-bottom: 1px solid;
|
|
128
|
+
border-color: inherit;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
.dpzvc3-1px-device-fix(@pseudo, "Y");
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
.dpzvc3-1px-side(@color: #ccc, @direction: top, @pseudo: before) when (@direction =left) {
|
|
135
|
+
.dpzvc3-1px-side-base(@color, @pseudo);
|
|
136
|
+
|
|
137
|
+
&:@{pseudo} {
|
|
138
|
+
width: 1px;
|
|
139
|
+
height: 100%;
|
|
140
|
+
top: 0;
|
|
141
|
+
left: 0;
|
|
142
|
+
border-left: 1px solid;
|
|
143
|
+
border-color: inherit;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
.dpzvc3-1px-device-fix(@pseudo, "X");
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
.dpzvc3-1px-side(@color: #ccc, @direction: top, @pseudo: before) when (@direction =right) {
|
|
150
|
+
.dpzvc3-1px-side-base(@color, @pseudo);
|
|
151
|
+
|
|
152
|
+
&:@{pseudo} {
|
|
153
|
+
width: 1px;
|
|
154
|
+
height: 100%;
|
|
155
|
+
top: 0;
|
|
156
|
+
right: -1px;
|
|
157
|
+
border-right: 1px solid;
|
|
158
|
+
border-color: inherit;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
.dpzvc3-1px-device-fix(@pseudo, "X");
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
.dpzvc3-1px-device-fix(@pseudo, @transform) when (@transform ="X") {
|
|
165
|
+
@media screen and (-webkit-min-device-pixel-ratio: 1.5) {
|
|
166
|
+
&:@{pseudo} {
|
|
167
|
+
transform: scaleX(0.6667);
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
@media screen and (-webkit-min-device-pixel-ratio: 2) {
|
|
172
|
+
&:@{pseudo} {
|
|
173
|
+
transform: scaleX(0.5);
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
@media screen and (-webkit-min-device-pixel-ratio: 3) {
|
|
178
|
+
&:@{pseudo} {
|
|
179
|
+
transform: scaleX(0.333);
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
;
|
|
185
|
+
|
|
186
|
+
.dpzvc3-1px-device-fix(@pseudo, @transform) when (@transform ="Y") {
|
|
187
|
+
@media screen and (-webkit-min-device-pixel-ratio: 1.5) {
|
|
188
|
+
&:@{pseudo} {
|
|
189
|
+
transform: scaleY(0.6667);
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
@media screen and (-webkit-min-device-pixel-ratio: 2) {
|
|
194
|
+
&:@{pseudo} {
|
|
195
|
+
transform: scaleY(0.5);
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
@media screen and (-webkit-min-device-pixel-ratio: 3) {
|
|
200
|
+
&:@{pseudo} {
|
|
201
|
+
transform: scaleY(0.333);
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
;
|
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
.dpzvc3-ani {
|
|
2
|
+
&-fade {
|
|
3
|
+
|
|
4
|
+
&-enter-from,
|
|
5
|
+
&-leave-to {
|
|
6
|
+
opacity: 0;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
&-enter-to,
|
|
10
|
+
&-leave-from {
|
|
11
|
+
opacity: 1;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
&-enter-active,
|
|
15
|
+
&-leave-active {
|
|
16
|
+
transition: opacity .3s ease;
|
|
17
|
+
will-change: opacity;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
&-bottom {
|
|
22
|
+
|
|
23
|
+
&-enter-from,
|
|
24
|
+
&-leave-to {
|
|
25
|
+
transform: translate3d(0, 100%, 0);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
&-enter-to,
|
|
29
|
+
&-leave-from {
|
|
30
|
+
transform: translate3d(0, 0, 0);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
&-enter-active,
|
|
34
|
+
&-leave-active {
|
|
35
|
+
transition: transform .3s ease-out 100ms;
|
|
36
|
+
will-change: transform;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
&-scale {
|
|
41
|
+
|
|
42
|
+
&-enter-from,
|
|
43
|
+
&-leave-to {
|
|
44
|
+
transform: translate3d(-50%, -50%, 0) scale(.9);
|
|
45
|
+
opacity: .2;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
&-enter-to,
|
|
49
|
+
&-leave-from {
|
|
50
|
+
transform: translate3d(-50%, -50%, 0) scale(1);
|
|
51
|
+
opacity: 1;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
&-enter-active,
|
|
55
|
+
&-leave-active {
|
|
56
|
+
transition: all .3s ease-in;
|
|
57
|
+
will-change: transform, opacity;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
&-top {
|
|
62
|
+
|
|
63
|
+
&-enter-from,
|
|
64
|
+
&-leave-to {
|
|
65
|
+
transform: translate3d(0, -100%, 0);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
&-enter-to,
|
|
69
|
+
&-leave-from {
|
|
70
|
+
transform: translate3d(0, 0, 0);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
&-enter-active,
|
|
74
|
+
&-leave-active {
|
|
75
|
+
transition: transform .3s ease-out 100ms;
|
|
76
|
+
will-change: transform;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
&-left {
|
|
81
|
+
|
|
82
|
+
&-enter-from,
|
|
83
|
+
&-leave-to {
|
|
84
|
+
transform: translate3d(-100%, 0, 0);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
&-enter-to,
|
|
88
|
+
&-leave-from {
|
|
89
|
+
transform: translate3d(0, 0, 0);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
&-enter-active,
|
|
93
|
+
&-leave-active {
|
|
94
|
+
transition: all .3s ease;
|
|
95
|
+
will-change: transform;
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
&-right {
|
|
100
|
+
|
|
101
|
+
&-enter-from,
|
|
102
|
+
&-leave-to {
|
|
103
|
+
transform: translate3d(100%, 0, 0);
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
&-enter-to,
|
|
107
|
+
&-leave-from {
|
|
108
|
+
transform: translate3d(0, 0, 0);
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
&-enter-active,
|
|
112
|
+
&-leave-active {
|
|
113
|
+
transition: all .3s ease;
|
|
114
|
+
will-change: transform;
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
&-slide-up {
|
|
119
|
+
|
|
120
|
+
&-enter-from,
|
|
121
|
+
&-leave-to {
|
|
122
|
+
transform: translate3d(0, 100%, 0);
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
&-enter-to,
|
|
126
|
+
&-leave-from {
|
|
127
|
+
transform: translate3d(0, 0, 0);
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
&-enter-active,
|
|
131
|
+
&-leave-active {
|
|
132
|
+
transition: all .3s ease;
|
|
133
|
+
will-change: transform;
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
&-slide-down {
|
|
138
|
+
|
|
139
|
+
&-enter-from,
|
|
140
|
+
&-leave-to {
|
|
141
|
+
transform: translate3d(0, -100%, 0);
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
&-enter-to,
|
|
145
|
+
&-leave-from {
|
|
146
|
+
transform: translate3d(0, 0, 0);
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
&-enter-active,
|
|
150
|
+
&-leave-active {
|
|
151
|
+
transition: all .3s ease;
|
|
152
|
+
will-change: transform;
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
@keyframes rotate {
|
|
158
|
+
0% {
|
|
159
|
+
transform: rotate(0deg) translateZ(0deg);
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
100% {
|
|
163
|
+
transform: rotate(360deg) translateZ(0deg);
|
|
164
|
+
}
|
|
165
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
.dpzvc3-nowrap {
|
|
2
|
+
max-width: 100%;
|
|
3
|
+
overflow: hidden;
|
|
4
|
+
white-space: nowrap;
|
|
5
|
+
text-overflow: ellipsis;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.dpzvc3-nowrap(@n, @i: 1) when (@i <=@n) {
|
|
9
|
+
.dpzvc3-nowrap-@{i} {
|
|
10
|
+
.dpzvc3-nowrap();
|
|
11
|
+
display: -webkit-box;
|
|
12
|
+
-webkit-box-orient: vertical;
|
|
13
|
+
-webkit-line-clamp: @i;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.dpzvc3-nowrap(@n, (@i+1));
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.dpzvc3-nowrap(5);
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="zh-CN">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8">
|
|
5
|
+
<title>丁平中vc移动端组件</title>
|
|
6
|
+
<meta name="viewport"
|
|
7
|
+
content="width=device-width,
|
|
8
|
+
initial-scale=1.0,
|
|
9
|
+
maximum-scale=1.0,
|
|
10
|
+
minimum-scale=1.0">
|
|
11
|
+
<style>
|
|
12
|
+
html, body {
|
|
13
|
+
width: 100%;
|
|
14
|
+
height: 100%;
|
|
15
|
+
margin: 0;
|
|
16
|
+
}
|
|
17
|
+
</style>
|
|
18
|
+
</head>
|
|
19
|
+
<body>
|
|
20
|
+
<div id="app"></div>
|
|
21
|
+
|
|
22
|
+
<script>
|
|
23
|
+
(function (doc, win) {
|
|
24
|
+
var docEl = doc.documentElement;
|
|
25
|
+
|
|
26
|
+
function recalc() {
|
|
27
|
+
var clientWidth = docEl.clientWidth;
|
|
28
|
+
if (!clientWidth) return;
|
|
29
|
+
|
|
30
|
+
if (clientWidth > 750) clientWidth = 750;
|
|
31
|
+
|
|
32
|
+
docEl.style.fontSize = 100 * (clientWidth / 375) + 'px';
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
win.addEventListener('resize', recalc);
|
|
36
|
+
doc.addEventListener('DOMContentLoaded', recalc);
|
|
37
|
+
})(document, window);
|
|
38
|
+
</script>
|
|
39
|
+
</body>
|
|
40
|
+
</html>
|