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,554 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div style="position: absolute; left: 0; right: 0; top: 0; bottom: 0; background: #fff;">
|
|
3
|
+
<!--<dpzvc3-header title="asdasdsssssssssssssssssssssssssssssssssssssssssssssssss"></dpzvc3-header>-->
|
|
4
|
+
|
|
5
|
+
<Header title="aaaa" />
|
|
6
|
+
<div style="height: 50px;" />
|
|
7
|
+
<div style="min-height: 50px; background: pink; padding: 0 10px;">
|
|
8
|
+
<div><i class="dpzvc3-icono-back" /></div>
|
|
9
|
+
</div>
|
|
10
|
+
<Picker
|
|
11
|
+
v-model="visible"
|
|
12
|
+
type="AreaPicker"
|
|
13
|
+
@normal-change="normalChange"
|
|
14
|
+
@sure="pickerSure"
|
|
15
|
+
@cancle="pickerCancle"
|
|
16
|
+
/>
|
|
17
|
+
<v-button
|
|
18
|
+
:loading="disable"
|
|
19
|
+
@on-click="popup = true"
|
|
20
|
+
>
|
|
21
|
+
确定
|
|
22
|
+
</v-button>
|
|
23
|
+
<h1>111111111111</h1>
|
|
24
|
+
<!--<tab></tab>-->
|
|
25
|
+
<p>{{ address }}</p>
|
|
26
|
+
<v-button @click.native="showMessage">
|
|
27
|
+
asdasssssdaaaaaasdadd
|
|
28
|
+
</v-button>
|
|
29
|
+
<CheckBox-group
|
|
30
|
+
v-model="data"
|
|
31
|
+
:vertical="visible"
|
|
32
|
+
>
|
|
33
|
+
<CheckBox
|
|
34
|
+
label="aaa"
|
|
35
|
+
:disable="visible"
|
|
36
|
+
/>
|
|
37
|
+
<CheckBox label="bbb" />
|
|
38
|
+
<CheckBox label="ccc" />
|
|
39
|
+
</CheckBox-group>
|
|
40
|
+
<CheckBox
|
|
41
|
+
v-model="checked"
|
|
42
|
+
label="ddd"
|
|
43
|
+
/>
|
|
44
|
+
<Radio
|
|
45
|
+
v-model="checked"
|
|
46
|
+
label="1111"
|
|
47
|
+
/>
|
|
48
|
+
<Radio-group
|
|
49
|
+
v-model="radio"
|
|
50
|
+
:vertical="visible"
|
|
51
|
+
>
|
|
52
|
+
<Radio
|
|
53
|
+
:disable="visible"
|
|
54
|
+
label="1111"
|
|
55
|
+
/>
|
|
56
|
+
<Radio label="222" />
|
|
57
|
+
<Radio label="333" />
|
|
58
|
+
</Radio-group>
|
|
59
|
+
<span>{{ data }}</span>
|
|
60
|
+
<span>{{ radio }}</span>
|
|
61
|
+
|
|
62
|
+
<Slide-bar
|
|
63
|
+
:list="items"
|
|
64
|
+
:flex="false"
|
|
65
|
+
index="1"
|
|
66
|
+
:can-drag="false"
|
|
67
|
+
height="100%"
|
|
68
|
+
scroll-height="50px"
|
|
69
|
+
:is-fixed-header="true"
|
|
70
|
+
>
|
|
71
|
+
<div
|
|
72
|
+
slot="slot-item-0"
|
|
73
|
+
style="height:100%;flex: 1;background:red;overflow: scroll"
|
|
74
|
+
>
|
|
75
|
+
<div style="height: 40px;width: 100%;background-color: blue;" />
|
|
76
|
+
<div style="height: 40px;width: 100%;background-color: blue;" />
|
|
77
|
+
<div style="height: 40px;width: 100%;background-color: blue;" />
|
|
78
|
+
<div style="height: 40px;width: 100%;background-color: blue;" />
|
|
79
|
+
<div style="height: 40px;width: 100%;background-color: blue;" />
|
|
80
|
+
</div>
|
|
81
|
+
<div
|
|
82
|
+
slot="slot-item-1"
|
|
83
|
+
style="height:100%;flex: 1;background:yellow"
|
|
84
|
+
>
|
|
85
|
+
<Load-more
|
|
86
|
+
ref="more"
|
|
87
|
+
:refresh="topMethod"
|
|
88
|
+
height="100%"
|
|
89
|
+
:load-more="topMethod"
|
|
90
|
+
:has-more="hasMore"
|
|
91
|
+
@on-change-up-status="getStatus"
|
|
92
|
+
>
|
|
93
|
+
<div
|
|
94
|
+
v-for="item in loadmore"
|
|
95
|
+
style="width: 100%;height: 50px;"
|
|
96
|
+
>
|
|
97
|
+
{{ item }}
|
|
98
|
+
</div>
|
|
99
|
+
</Load-more>
|
|
100
|
+
</div>
|
|
101
|
+
<div
|
|
102
|
+
slot="slot-item-2"
|
|
103
|
+
style="height:100%;flex: 1;background:black"
|
|
104
|
+
/>
|
|
105
|
+
</Slide-bar>
|
|
106
|
+
<!--<Tab :items="items" v-model="maskCloseble"></Tab>-->
|
|
107
|
+
|
|
108
|
+
<Swipe
|
|
109
|
+
:multiple="false"
|
|
110
|
+
:list="files"
|
|
111
|
+
>
|
|
112
|
+
<template scope="props">
|
|
113
|
+
<div>
|
|
114
|
+
<span>{{ props.item.id }}</span>
|
|
115
|
+
<img :src="props.item.image">
|
|
116
|
+
<span v-text="props.index" />
|
|
117
|
+
</div>
|
|
118
|
+
</template>
|
|
119
|
+
</Swipe>
|
|
120
|
+
|
|
121
|
+
<TextBar
|
|
122
|
+
v-model="texts"
|
|
123
|
+
type="textarea"
|
|
124
|
+
:maxlength="9"
|
|
125
|
+
/>
|
|
126
|
+
<span>{{ texts }}</span>
|
|
127
|
+
<Number
|
|
128
|
+
v-model="number"
|
|
129
|
+
:min="1"
|
|
130
|
+
:max="10"
|
|
131
|
+
:focus="true"
|
|
132
|
+
/>
|
|
133
|
+
<span>{{ number }}</span>
|
|
134
|
+
<Upload
|
|
135
|
+
ref="upload"
|
|
136
|
+
:multiple="true"
|
|
137
|
+
@on-change-file="onChangeFile"
|
|
138
|
+
/>
|
|
139
|
+
<img
|
|
140
|
+
v-for="item in files"
|
|
141
|
+
:src="item.base64"
|
|
142
|
+
>
|
|
143
|
+
<SwitchBar
|
|
144
|
+
v-model="check"
|
|
145
|
+
size="large"
|
|
146
|
+
/>
|
|
147
|
+
<span>{{ check }}</span>
|
|
148
|
+
<SwitchBar size="large" />
|
|
149
|
+
|
|
150
|
+
<v-button
|
|
151
|
+
:inline="true"
|
|
152
|
+
width="40%"
|
|
153
|
+
type="warning"
|
|
154
|
+
:loading="loading"
|
|
155
|
+
@click.native="load"
|
|
156
|
+
/>
|
|
157
|
+
<v-button
|
|
158
|
+
:inline="true"
|
|
159
|
+
disabled
|
|
160
|
+
width="40%"
|
|
161
|
+
type="success"
|
|
162
|
+
:loading="loading"
|
|
163
|
+
@click.native="load"
|
|
164
|
+
/>
|
|
165
|
+
<Rater
|
|
166
|
+
v-model="rate"
|
|
167
|
+
disabled
|
|
168
|
+
/>
|
|
169
|
+
{{ rate }}
|
|
170
|
+
|
|
171
|
+
<Spinner
|
|
172
|
+
type="blade"
|
|
173
|
+
size="60"
|
|
174
|
+
/>
|
|
175
|
+
<Action-sheet
|
|
176
|
+
v-model="popup"
|
|
177
|
+
:items="actionSheet"
|
|
178
|
+
/>
|
|
179
|
+
<Progress v-model="progress" />
|
|
180
|
+
<ToTop />
|
|
181
|
+
<Cell
|
|
182
|
+
title="标题"
|
|
183
|
+
label="小标题"
|
|
184
|
+
value="说明文字"
|
|
185
|
+
has-mask
|
|
186
|
+
/>
|
|
187
|
+
<CellSwipe
|
|
188
|
+
:right="right"
|
|
189
|
+
title="标题"
|
|
190
|
+
has-mask
|
|
191
|
+
/>
|
|
192
|
+
<CellSwipe
|
|
193
|
+
:left="left"
|
|
194
|
+
:right="right"
|
|
195
|
+
title="标题"
|
|
196
|
+
has-mask
|
|
197
|
+
/>
|
|
198
|
+
<CellSwipe
|
|
199
|
+
:left="left"
|
|
200
|
+
:right="right"
|
|
201
|
+
title="标题"
|
|
202
|
+
has-mask
|
|
203
|
+
/>
|
|
204
|
+
<CellSwipe
|
|
205
|
+
:left="left"
|
|
206
|
+
:right="right"
|
|
207
|
+
title="标题"
|
|
208
|
+
has-mask
|
|
209
|
+
/>
|
|
210
|
+
<CellSwipe
|
|
211
|
+
:left="left"
|
|
212
|
+
:right="right"
|
|
213
|
+
title="标题"
|
|
214
|
+
has-mask
|
|
215
|
+
/>
|
|
216
|
+
<CellSwipe
|
|
217
|
+
:left="left"
|
|
218
|
+
:right="right"
|
|
219
|
+
title="标题"
|
|
220
|
+
has-mask
|
|
221
|
+
/>
|
|
222
|
+
<Badge
|
|
223
|
+
number="10"
|
|
224
|
+
max="99"
|
|
225
|
+
:dot="false"
|
|
226
|
+
>
|
|
227
|
+
<div style="width: 45px;height: 45px;background-color: red" />
|
|
228
|
+
</Badge>
|
|
229
|
+
<Card />
|
|
230
|
+
</div>
|
|
231
|
+
</template>
|
|
232
|
+
|
|
233
|
+
<script>
|
|
234
|
+
|
|
235
|
+
export default {
|
|
236
|
+
filters: {},
|
|
237
|
+
directives: {},
|
|
238
|
+
components: {},
|
|
239
|
+
data () {
|
|
240
|
+
return {
|
|
241
|
+
left: [
|
|
242
|
+
{
|
|
243
|
+
content: 'btn1',
|
|
244
|
+
style: {
|
|
245
|
+
backgroundColor: '#eee',
|
|
246
|
+
color: '#fff'
|
|
247
|
+
},
|
|
248
|
+
handleClick: function () {
|
|
249
|
+
console.log('btn1')
|
|
250
|
+
}
|
|
251
|
+
},
|
|
252
|
+
{
|
|
253
|
+
content: 'btn2',
|
|
254
|
+
style: {
|
|
255
|
+
backgroundColor: 'red',
|
|
256
|
+
color: '#fff'
|
|
257
|
+
},
|
|
258
|
+
handleClick: function () {
|
|
259
|
+
console.log('btn2')
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
],
|
|
263
|
+
right: [
|
|
264
|
+
{
|
|
265
|
+
content: 'btn1',
|
|
266
|
+
style: {
|
|
267
|
+
backgroundColor: '#eee',
|
|
268
|
+
color: '#fff'
|
|
269
|
+
},
|
|
270
|
+
handleClick: function () {
|
|
271
|
+
console.log('btn1')
|
|
272
|
+
}
|
|
273
|
+
},
|
|
274
|
+
{
|
|
275
|
+
content: 'btn2',
|
|
276
|
+
style: {
|
|
277
|
+
backgroundColor: 'red',
|
|
278
|
+
color: '#fff'
|
|
279
|
+
},
|
|
280
|
+
handleClick: function () {
|
|
281
|
+
console.log('btn2')
|
|
282
|
+
}
|
|
283
|
+
}
|
|
284
|
+
],
|
|
285
|
+
badge: true,
|
|
286
|
+
progress: 40,
|
|
287
|
+
loadmore: [1, 1, 1],
|
|
288
|
+
popup: false,
|
|
289
|
+
inita: [9, 1, 1],
|
|
290
|
+
listss: [
|
|
291
|
+
{
|
|
292
|
+
target: 'a',
|
|
293
|
+
list: [{ value: 'w', code: 1 }, { value: 2, code: 2 }, { value: 3, code: 3 }, {
|
|
294
|
+
value: 4,
|
|
295
|
+
code: 4
|
|
296
|
+
}, { value: 5, code: 5 }, { value: 6, code: 6 }, { value: 7, code: 7 }, {
|
|
297
|
+
value: 8,
|
|
298
|
+
code: 8
|
|
299
|
+
}, { value: 'c', code: 9 }, { value: 0, code: 0 }]
|
|
300
|
+
},
|
|
301
|
+
{
|
|
302
|
+
target: 'b',
|
|
303
|
+
list: [{ value: 'e', code: 1 }, { value: 2, code: 2 }, { value: 3, code: 3 }, {
|
|
304
|
+
value: 4,
|
|
305
|
+
code: 4
|
|
306
|
+
}, { value: 5, code: 5 }, { value: 6, code: 6 }, { value: 7, code: 7 }, {
|
|
307
|
+
value: 8,
|
|
308
|
+
code: 8
|
|
309
|
+
}, { value: 9, code: 9 }, { value: 0, code: 0 }]
|
|
310
|
+
},
|
|
311
|
+
{
|
|
312
|
+
target: 'c',
|
|
313
|
+
list: [{ value: 'r', code: 1 }, { value: 2, code: 2 }, { value: 3, code: 3 }, {
|
|
314
|
+
value: 4,
|
|
315
|
+
code: 4
|
|
316
|
+
}, { value: 5, code: 5 }, { value: 6, code: 6 }, { value: 7, code: 7 }, {
|
|
317
|
+
value: 8,
|
|
318
|
+
code: 8
|
|
319
|
+
}, { value: 9, code: 9 }, { value: 0, code: 0 }]
|
|
320
|
+
}
|
|
321
|
+
],
|
|
322
|
+
|
|
323
|
+
loading: false,
|
|
324
|
+
rate: 4.0,
|
|
325
|
+
check: false,
|
|
326
|
+
files: [],
|
|
327
|
+
number: 1,
|
|
328
|
+
msgTip: '',
|
|
329
|
+
texts: 1,
|
|
330
|
+
list: [
|
|
331
|
+
|
|
332
|
+
{
|
|
333
|
+
image: 'https://vuefe.cn/images/logo.png',
|
|
334
|
+
spec: '1111',
|
|
335
|
+
onClick: function (item, index) {
|
|
336
|
+
console.log(item)
|
|
337
|
+
}
|
|
338
|
+
},
|
|
339
|
+
{
|
|
340
|
+
image: 'https://vuefe.cn/images/logo.png',
|
|
341
|
+
spec: '2222'
|
|
342
|
+
},
|
|
343
|
+
|
|
344
|
+
{
|
|
345
|
+
image: 'https://vuefe.cn/images/logo.png',
|
|
346
|
+
spec: '3333'
|
|
347
|
+
},
|
|
348
|
+
{
|
|
349
|
+
image: 'https://vuefe.cn/images/logo.png',
|
|
350
|
+
spec: '5555'
|
|
351
|
+
},
|
|
352
|
+
|
|
353
|
+
{
|
|
354
|
+
image: 'https://vuefe.cn/images/logo.png',
|
|
355
|
+
spec: '121231'
|
|
356
|
+
},
|
|
357
|
+
{
|
|
358
|
+
image: 'https://vuefe.cn/images/logo.png',
|
|
359
|
+
spec: '0000'
|
|
360
|
+
}
|
|
361
|
+
|
|
362
|
+
],
|
|
363
|
+
|
|
364
|
+
pcd: '河北省/唐山市/路南区',
|
|
365
|
+
dates: '2017/07/08',
|
|
366
|
+
showAddressPicker: false,
|
|
367
|
+
items: [],
|
|
368
|
+
|
|
369
|
+
lists: [
|
|
370
|
+
{
|
|
371
|
+
text: 'aaa',
|
|
372
|
+
onClick: this.callback
|
|
373
|
+
|
|
374
|
+
},
|
|
375
|
+
{
|
|
376
|
+
text: 'bbb',
|
|
377
|
+
onClick: function () {
|
|
378
|
+
console.log('bbb')
|
|
379
|
+
}
|
|
380
|
+
}
|
|
381
|
+
],
|
|
382
|
+
|
|
383
|
+
visible: true,
|
|
384
|
+
indicator: true,
|
|
385
|
+
maskCloseble: true,
|
|
386
|
+
address: '',
|
|
387
|
+
data: [],
|
|
388
|
+
checked: true,
|
|
389
|
+
radio: '1111',
|
|
390
|
+
theme: 'twilight',
|
|
391
|
+
mode: 'javascript',
|
|
392
|
+
text: 'test',
|
|
393
|
+
disable: false,
|
|
394
|
+
actionSheet: [
|
|
395
|
+
{ text: 'aaa' },
|
|
396
|
+
{ text: 'bbb' },
|
|
397
|
+
{ text: 'ccc' }
|
|
398
|
+
],
|
|
399
|
+
hasMore: true
|
|
400
|
+
}
|
|
401
|
+
},
|
|
402
|
+
mounted () {
|
|
403
|
+
// this.$Message.loading({showLeft:false,text:'加载中...',duration:0,position:'center'})
|
|
404
|
+
this.$Modal.info({ showHead: false, body: '加中...', title: 'a' })
|
|
405
|
+
setTimeout(() => {
|
|
406
|
+
this.files = [{ id: 521, ad_id: 10, name: '\u73a9\u8f6c\u5927\u6570\u636e\u5206\u6790\uff01Spark2.X+Python \u7cbe\u534e\u5b9e\u6218\u8bfe\u7a0b', image: 'https:\/\/o74ly5e8r.qnssl.com\/9MhSVW1gJD.png', background: { color: '' }, link: 'https:\/\/edu.hellobi.com\/course\/222', sort: 0, meta: '', created_at: '2017-12-21 09:48:29', updated_at: '2017-12-21 09:48:29', deleted_at: null }, { id: 506, ad_id: 10, name: '\u6570\u636e\u5206\u6790\u62a5\u544a\u5236\u4f5c\u79d8\u7c4d\u5347\u7ea7\u7248', image: 'https:\/\/o74ly5e8r.qnssl.com\/EAbxDnBMcX.png', background: { color: '' }, link: 'https:\/\/edu.hellobi.com\/course\/132', sort: 1, meta: '', created_at: '2017-10-31 09:43:15', updated_at: '2017-12-21 09:46:16', deleted_at: null }, { id: 504, ad_id: 10, name: '\u72ec\u4e00\u65e0\u4e8c\u7684\u6570\u636e\u4ed3\u5e93\u5efa\u6a21\u6307\u5357\u7cfb\u5217\u6559\u7a0b\u5347\u7ea7\u7248 \uff08\u8fde\u8f7d\u4e2d\uff09', image: 'https:\/\/o74ly5e8r.qnssl.com\/dmJqsjtLNS.png', background: { color: '' }, link: 'https:\/\/edu.hellobi.com\/course\/102', sort: 2, meta: '', created_at: '2017-10-18 09:35:05', updated_at: '2017-12-21 09:50:03', deleted_at: null }]
|
|
407
|
+
}, 2000)
|
|
408
|
+
|
|
409
|
+
setInterval(() => {
|
|
410
|
+
this.progress += 8
|
|
411
|
+
}, 1000)
|
|
412
|
+
setTimeout(() => {
|
|
413
|
+
this.items = [
|
|
414
|
+
{
|
|
415
|
+
|
|
416
|
+
name: '首页',
|
|
417
|
+
icon: '',
|
|
418
|
+
iconCur: '',
|
|
419
|
+
path: '/index'
|
|
420
|
+
}, {
|
|
421
|
+
name: '商品',
|
|
422
|
+
icon: '',
|
|
423
|
+
|
|
424
|
+
iconCur: '',
|
|
425
|
+
path: '/list'
|
|
426
|
+
}, {
|
|
427
|
+
name: '晒单',
|
|
428
|
+
icon: '',
|
|
429
|
+
iconCur: '',
|
|
430
|
+
path: '/shareOrder'
|
|
431
|
+
}
|
|
432
|
+
]
|
|
433
|
+
}, 1000)
|
|
434
|
+
},
|
|
435
|
+
beforeDestroy () {
|
|
436
|
+
|
|
437
|
+
},
|
|
438
|
+
methods: {
|
|
439
|
+
|
|
440
|
+
normalChange (val) {
|
|
441
|
+
console.log(val)
|
|
442
|
+
},
|
|
443
|
+
async a (a) {
|
|
444
|
+
await setTimeout(() => {
|
|
445
|
+
console.log(a.c)
|
|
446
|
+
console.log(a.b)
|
|
447
|
+
})
|
|
448
|
+
},
|
|
449
|
+
|
|
450
|
+
load () {
|
|
451
|
+
this.loading = !this.loading
|
|
452
|
+
},
|
|
453
|
+
onChangeFile (val) {
|
|
454
|
+
this.files = val
|
|
455
|
+
},
|
|
456
|
+
onLoad (val) {
|
|
457
|
+
|
|
458
|
+
},
|
|
459
|
+
valida (val) {
|
|
460
|
+
if (val != 'a') {
|
|
461
|
+
return false
|
|
462
|
+
}
|
|
463
|
+
|
|
464
|
+
return true
|
|
465
|
+
},
|
|
466
|
+
getConfirm (val) {
|
|
467
|
+
val ? this.msgTip = '成功' : this.msgTip = '失败'
|
|
468
|
+
},
|
|
469
|
+
getVal (val) {
|
|
470
|
+
console.log(val)
|
|
471
|
+
},
|
|
472
|
+
topMethod () {
|
|
473
|
+
this.loadmore.push(...[2, 2])
|
|
474
|
+
this.$refs.more.onLoadOff()
|
|
475
|
+
// this.hasMore = true;
|
|
476
|
+
},
|
|
477
|
+
pickerSure (value) {
|
|
478
|
+
// this.address = `${province} ${city} ${district}`
|
|
479
|
+
console.log(value)
|
|
480
|
+
},
|
|
481
|
+
pickerCancle () {
|
|
482
|
+
console.log('您取消了选择')
|
|
483
|
+
this.disable = true
|
|
484
|
+
},
|
|
485
|
+
ok () {
|
|
486
|
+
console.log(this.radio)
|
|
487
|
+
},
|
|
488
|
+
close () {
|
|
489
|
+
console.log('asdasdasd')
|
|
490
|
+
},
|
|
491
|
+
newTip () {
|
|
492
|
+
// this.$Notice.open({desc: 'asdasd', onClose: this.close, duration: 4, styles: {right: '0'}})
|
|
493
|
+
},
|
|
494
|
+
callback (item, index) {
|
|
495
|
+
console.log('asdasdasd')
|
|
496
|
+
},
|
|
497
|
+
callback2 (item, index) {
|
|
498
|
+
console.log(item.text)
|
|
499
|
+
},
|
|
500
|
+
getStatus (val) {
|
|
501
|
+
console.log(val)
|
|
502
|
+
},
|
|
503
|
+
showMessage () {
|
|
504
|
+
console.log('a')
|
|
505
|
+
this.$Message.show({ text: 'asdasdasdasd', duration: 0 })
|
|
506
|
+
this.$Message.show({ text: 'ascx', duration: 0 })
|
|
507
|
+
|
|
508
|
+
setTimeout(() => {
|
|
509
|
+
this.$Message.destroy()
|
|
510
|
+
}, 2000)
|
|
511
|
+
}
|
|
512
|
+
|
|
513
|
+
}
|
|
514
|
+
}
|
|
515
|
+
</script>
|
|
516
|
+
|
|
517
|
+
<style>
|
|
518
|
+
html, body {
|
|
519
|
+
height: 100%
|
|
520
|
+
}
|
|
521
|
+
|
|
522
|
+
.dpzvc3-slideBar {
|
|
523
|
+
height: 100%;
|
|
524
|
+
}
|
|
525
|
+
|
|
526
|
+
@font-face {
|
|
527
|
+
font-family: "ifont";
|
|
528
|
+
/*src: url('font/iconfont.eot'); !* IE9*!*/
|
|
529
|
+
/*src: url('font/iconfont.eot?#iefix') format('embedded-opentype'), !* IE6-IE8 *!*/
|
|
530
|
+
/*url('font/iconfont.woff') format('woff'), !* chrome、firefox *!*/
|
|
531
|
+
/*url('font/iconfont.ttf') format('truetype'), !* chrome、firefox、opera、Safari, Android, iOS 4.2+*!*/
|
|
532
|
+
/*url('font/iconfont.svg#iconfont') format('svg'); !* iOS 4.1- *!*/
|
|
533
|
+
/*src: url('//at.alicdn.com/t/font_gm9v3xai12z6ko6r.eot');*/
|
|
534
|
+
/*src: url('//at.alicdn.com/t/font_gm9v3xai12z6ko6r.eot?#iefix') format('embedded-opentype'),*/
|
|
535
|
+
/*url('//at.alicdn.com/t/font_gm9v3xai12z6ko6r.woff') format('woff'),*/
|
|
536
|
+
/*url('//at.alicdn.com/t/font_gm9v3xai12z6ko6r.ttf') format('truetype'),*/
|
|
537
|
+
/*url('//at.alicdn.com/t/font_gm9v3xai12z6ko6r.svg#iconfont') format('svg');*/
|
|
538
|
+
src: url('//at.alicdn.com/t/font_mrhpq9yw1ssxxbt9.eot');
|
|
539
|
+
src: url('//at.alicdn.com/t/font_mrhpq9yw1ssxxbt9.eot?#iefix') format('embedded-opentype'),
|
|
540
|
+
url('//at.alicdn.com/t/font_mrhpq9yw1ssxxbt9.woff') format('woff'),
|
|
541
|
+
url('//at.alicdn.com/t/font_mrhpq9yw1ssxxbt9.ttf') format('truetype'),
|
|
542
|
+
url('//at.alicdn.com/t/font_mrhpq9yw1ssxxbt9.svg#iconfont') format('svg');
|
|
543
|
+
}
|
|
544
|
+
|
|
545
|
+
.ifont {
|
|
546
|
+
margin: 0 3px;
|
|
547
|
+
font-family: "ifont" !important;
|
|
548
|
+
font-size: 16px;
|
|
549
|
+
font-style: normal;
|
|
550
|
+
-webkit-font-smoothing: antialiased;
|
|
551
|
+
-webkit-text-stroke-width: 0.2px;
|
|
552
|
+
-moz-osx-font-smoothing: grayscale;
|
|
553
|
+
}
|
|
554
|
+
</style>
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
const path = require('path')
|
|
2
|
+
const webpack = require('webpack')
|
|
3
|
+
const { VueLoaderPlugin } = require('vue-loader')
|
|
4
|
+
const ESLintPlugin = require('eslint-webpack-plugin')
|
|
5
|
+
|
|
6
|
+
module.exports = {
|
|
7
|
+
entry: {
|
|
8
|
+
main: path.resolve(__dirname, 'src/main.js')
|
|
9
|
+
},
|
|
10
|
+
output: {
|
|
11
|
+
path: path.resolve(__dirname, 'dist'),
|
|
12
|
+
filename: '[name].[contenthash:8].js',
|
|
13
|
+
publicPath: '/'
|
|
14
|
+
},
|
|
15
|
+
resolve: {
|
|
16
|
+
extensions: ['.js', '.vue', '.json'],
|
|
17
|
+
alias: {
|
|
18
|
+
vue$: 'vue/dist/vue.esm-bundler.js', // ✅ Vue 3 正确写法
|
|
19
|
+
'@': path.resolve(__dirname, 'src')
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
module: {
|
|
23
|
+
rules: [
|
|
24
|
+
{
|
|
25
|
+
test: /\.vue$/,
|
|
26
|
+
loader: 'vue-loader'
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
test: /\.js$/,
|
|
30
|
+
exclude: /node_modules/,
|
|
31
|
+
use: 'babel-loader'
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
test: /\.css$/,
|
|
35
|
+
use: ['vue-style-loader', 'css-loader', 'postcss-loader']
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
test: /\.less$/,
|
|
39
|
+
use: ['vue-style-loader', 'css-loader', 'postcss-loader', 'less-loader']
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
test: /\.(png|jpe?g|gif|svg|eot|ttf|woff2?)$/,
|
|
43
|
+
type: 'asset',
|
|
44
|
+
generator: {
|
|
45
|
+
filename: 'assets/[name].[hash:7][ext]'
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
]
|
|
49
|
+
},
|
|
50
|
+
plugins: [
|
|
51
|
+
new VueLoaderPlugin(),
|
|
52
|
+
new webpack.DefinePlugin({
|
|
53
|
+
__VUE_OPTIONS_API__: true,
|
|
54
|
+
__VUE_PROD_DEVTOOLS__: false
|
|
55
|
+
}),
|
|
56
|
+
new ESLintPlugin({
|
|
57
|
+
extensions: ['js', 'vue'],
|
|
58
|
+
emitWarning: true,
|
|
59
|
+
emitError: true,
|
|
60
|
+
failOnWarning: false,
|
|
61
|
+
failOnError: true
|
|
62
|
+
})
|
|
63
|
+
],
|
|
64
|
+
devtool: 'source-map'
|
|
65
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
const path = require('path')
|
|
2
|
+
const { merge } = require('webpack-merge')
|
|
3
|
+
const HtmlWebpackPlugin = require('html-webpack-plugin')
|
|
4
|
+
const baseConfig = require('./webpack.base.config.js')
|
|
5
|
+
|
|
6
|
+
module.exports = merge(baseConfig, {
|
|
7
|
+
mode: 'development',
|
|
8
|
+
|
|
9
|
+
entry: {
|
|
10
|
+
main: path.resolve(__dirname, 'src/main.js')
|
|
11
|
+
},
|
|
12
|
+
|
|
13
|
+
output: {
|
|
14
|
+
filename: '[name].js',
|
|
15
|
+
chunkFilename: '[name].chunk.js',
|
|
16
|
+
publicPath: '/'
|
|
17
|
+
},
|
|
18
|
+
|
|
19
|
+
devtool: 'eval-cheap-module-source-map',
|
|
20
|
+
|
|
21
|
+
devServer: {
|
|
22
|
+
static: { directory: path.resolve(__dirname, 'dist-dev') },
|
|
23
|
+
compress: true,
|
|
24
|
+
hot: true,
|
|
25
|
+
historyApiFallback: true,
|
|
26
|
+
port: 3000,
|
|
27
|
+
client: {
|
|
28
|
+
overlay: {
|
|
29
|
+
warnings: false,
|
|
30
|
+
errors: true
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
|
|
35
|
+
plugins: [
|
|
36
|
+
new HtmlWebpackPlugin({
|
|
37
|
+
template: path.resolve(__dirname, 'src/template/index.ejs'),
|
|
38
|
+
inject: true,
|
|
39
|
+
filename: 'index.html'
|
|
40
|
+
})
|
|
41
|
+
]
|
|
42
|
+
})
|