dpzvc3-ui 3.1.4 → 3.1.6
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/README.md +1 -1
- package/dist/dpzvc3.esm.js +5 -4
- 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 +5 -4
- package/dist/dpzvc3.js.map +1 -1
- package/dist/dpzvc3.min.js +1 -1
- package/dist/dpzvc3.min.js.map +1 -1
- package/dist/types/components/actionSheet/index.d.ts +6 -1
- package/dist/types/components/actionSheet/index.d.ts.map +1 -1
- package/dist/types/index.d.ts +2 -2
- package/package.json +7 -2
- package/build-style.js +0 -58
- package/dist-prod/91.05c8ec5277a15f939b0f.js +0 -3
- package/dist-prod/91.05c8ec5277a15f939b0f.js.LICENSE.txt +0 -25
- package/dist-prod/91.05c8ec5277a15f939b0f.js.map +0 -1
- package/dist-prod/actionsheet.0d67b6b08a62cf9360be.chunk.js +0 -2
- package/dist-prod/actionsheet.0d67b6b08a62cf9360be.chunk.js.map +0 -1
- package/dist-prod/badge.16ab5c05734fe1530701.chunk.js +0 -2
- package/dist-prod/badge.16ab5c05734fe1530701.chunk.js.map +0 -1
- package/dist-prod/button.39ac33aa7aaccc24b6a1.chunk.js +0 -2
- package/dist-prod/button.39ac33aa7aaccc24b6a1.chunk.js.map +0 -1
- package/dist-prod/card.16ed7eafe471bcc60ec6.chunk.js +0 -2
- package/dist-prod/card.16ed7eafe471bcc60ec6.chunk.js.map +0 -1
- package/dist-prod/cell.70ff74fba57e27df7f5a.chunk.js +0 -2
- package/dist-prod/cell.70ff74fba57e27df7f5a.chunk.js.map +0 -1
- package/dist-prod/cellswipe.f3ec62abd60729d8bc5a.chunk.js +0 -2
- package/dist-prod/cellswipe.f3ec62abd60729d8bc5a.chunk.js.map +0 -1
- package/dist-prod/checkbox.05c63a947ac98293c9f2.chunk.js +0 -2
- package/dist-prod/checkbox.05c63a947ac98293c9f2.chunk.js.map +0 -1
- package/dist-prod/guide.24f1968a568f20fbc84b.chunk.js +0 -2
- package/dist-prod/guide.24f1968a568f20fbc84b.chunk.js.map +0 -1
- package/dist-prod/header.eb10433dd892738ee95a.chunk.js +0 -2
- package/dist-prod/header.eb10433dd892738ee95a.chunk.js.map +0 -1
- package/dist-prod/index.html +0 -19
- package/dist-prod/indicator.0c09e3f238791cb478e0.chunk.js +0 -2
- package/dist-prod/indicator.0c09e3f238791cb478e0.chunk.js.map +0 -1
- package/dist-prod/loadmore.9bad88767cc43603f473.chunk.js +0 -2
- package/dist-prod/loadmore.9bad88767cc43603f473.chunk.js.map +0 -1
- package/dist-prod/main.662ad15361e7f3d20234.js +0 -2
- package/dist-prod/main.662ad15361e7f3d20234.js.map +0 -1
- package/dist-prod/message.de17fea3de4daa70bab4.chunk.js +0 -2
- package/dist-prod/message.de17fea3de4daa70bab4.chunk.js.map +0 -1
- package/dist-prod/modal.f9ec857acd9fbdf53f3b.chunk.js +0 -2
- package/dist-prod/modal.f9ec857acd9fbdf53f3b.chunk.js.map +0 -1
- package/dist-prod/picker.bca059ef59e3c42a401f.chunk.js +0 -2
- package/dist-prod/picker.bca059ef59e3c42a401f.chunk.js.map +0 -1
- package/dist-prod/popup.538422c7e188363a468d.chunk.js +0 -2
- package/dist-prod/popup.538422c7e188363a468d.chunk.js.map +0 -1
- package/dist-prod/progress.240de4b633002f573030.chunk.js +0 -2
- package/dist-prod/progress.240de4b633002f573030.chunk.js.map +0 -1
- package/dist-prod/prompt.dcda0b05ea02d59106b7.chunk.js +0 -2
- package/dist-prod/prompt.dcda0b05ea02d59106b7.chunk.js.map +0 -1
- package/dist-prod/radiobox.7c10f77aba5ae04b2e5c.chunk.js +0 -2
- package/dist-prod/radiobox.7c10f77aba5ae04b2e5c.chunk.js.map +0 -1
- package/dist-prod/rater.d46ae462c598c458e5a8.chunk.js +0 -2
- package/dist-prod/rater.d46ae462c598c458e5a8.chunk.js.map +0 -1
- package/dist-prod/slidebar.833e75b9eb0abef92453.chunk.js +0 -2
- package/dist-prod/slidebar.833e75b9eb0abef92453.chunk.js.map +0 -1
- package/dist-prod/spinner.6afb4f84cc29f0e2f8eb.chunk.js +0 -2
- package/dist-prod/spinner.6afb4f84cc29f0e2f8eb.chunk.js.map +0 -1
- package/dist-prod/swipe.3fe6ee6638765ec52d94.chunk.js +0 -2
- package/dist-prod/swipe.3fe6ee6638765ec52d94.chunk.js.map +0 -1
- package/dist-prod/switchbar.f24c76a03120f1bd961a.chunk.js +0 -2
- package/dist-prod/switchbar.f24c76a03120f1bd961a.chunk.js.map +0 -1
- package/dist-prod/tab.29f19483f699b7811259.chunk.js +0 -2
- package/dist-prod/tab.29f19483f699b7811259.chunk.js.map +0 -1
- package/dist-prod/text.a6e4251f772d23843e2b.chunk.js +0 -2
- package/dist-prod/text.a6e4251f772d23843e2b.chunk.js.map +0 -1
- package/dist-prod/totop.713c5ab7f7dbcffbf2a3.chunk.js +0 -2
- package/dist-prod/totop.713c5ab7f7dbcffbf2a3.chunk.js.map +0 -1
- package/dist-prod/upload.0638581e551ed9afaba2.chunk.js +0 -2
- package/dist-prod/upload.0638581e551ed9afaba2.chunk.js.map +0 -1
- package/postcss.config.js +0 -5
- package/src/components/Indicator/Indicator.tsx +0 -67
- package/src/components/Indicator/Indicator.vue +0 -82
- package/src/components/Indicator/index.ts +0 -111
- package/src/components/Indicator/types.ts +0 -15
- package/src/components/Text/index.ts +0 -14
- package/src/components/Text/textBar.tsx +0 -104
- package/src/components/Text/types.ts +0 -13
- package/src/components/actionSheet/actionSheet.d.ts +0 -16
- package/src/components/actionSheet/actionSheet.tsx +0 -86
- package/src/components/actionSheet/index.ts +0 -6
- package/src/components/actionSheet/types.ts +0 -10
- package/src/components/app.vue +0 -59
- package/src/components/badge/badge.tsx +0 -80
- package/src/components/badge/index.ts +0 -12
- package/src/components/badge/types.ts +0 -8
- package/src/components/button/button.tsx +0 -105
- package/src/components/button/index.ts +0 -13
- package/src/components/button/types.ts +0 -13
- package/src/components/card/card.d.ts +0 -16
- package/src/components/card/card.tsx +0 -38
- package/src/components/card/index.ts +0 -12
- package/src/components/card/types.ts +0 -3
- package/src/components/cell/cell.tsx +0 -89
- package/src/components/cell/index.ts +0 -12
- package/src/components/cell/types.ts +0 -8
- package/src/components/cellSwipe/cellSwipe.tsx +0 -188
- package/src/components/cellSwipe/index.ts +0 -13
- package/src/components/cellSwipe/types.ts +0 -17
- package/src/components/checkBox/checkbox-group.tsx +0 -75
- package/src/components/checkBox/checkbox.tsx +0 -107
- package/src/components/checkBox/index.ts +0 -29
- package/src/components/checkBox/types.ts +0 -32
- package/src/components/header/header.tsx +0 -119
- package/src/components/header/index.ts +0 -13
- package/src/components/header/types.ts +0 -7
- package/src/components/loadMore/index.ts +0 -14
- package/src/components/loadMore/loadMore.tsx +0 -265
- package/src/components/loadMore/types.ts +0 -26
- package/src/components/message/confirm.ts +0 -104
- package/src/components/message/index.ts +0 -113
- package/src/components/message/message.tsx +0 -100
- package/src/components/message/messageGroup.tsx +0 -59
- package/src/components/message/types.ts +0 -48
- package/src/components/modal/confirm.ts +0 -123
- package/src/components/modal/index.ts +0 -68
- package/src/components/modal/modal.tsx +0 -248
- package/src/components/modal/types.ts +0 -51
- package/src/components/number/Number.tsx +0 -143
- package/src/components/number/index.ts +0 -10
- package/src/components/number/types.ts +0 -13
- package/src/components/picker/area-picker/area-picker.vue +0 -230
- package/src/components/picker/area-picker/props.js +0 -17
- package/src/components/picker/date-picker/date-picker.vue +0 -191
- package/src/components/picker/date-picker/props.js +0 -24
- package/src/components/picker/index.ts +0 -12
- package/src/components/picker/normal-picker/normal-picker.vue +0 -120
- package/src/components/picker/normal-picker/props.js +0 -20
- package/src/components/picker/picker-slot.vue +0 -217
- package/src/components/picker/picker.tsx +0 -112
- package/src/components/picker/types.ts +0 -17
- package/src/components/popup/index.ts +0 -12
- package/src/components/popup/popup.d.ts +0 -16
- package/src/components/popup/popup.tsx +0 -68
- package/src/components/popup/types.ts +0 -9
- package/src/components/progress/index.ts +0 -12
- package/src/components/progress/progress.tsx +0 -81
- package/src/components/progress/types.ts +0 -9
- package/src/components/prompt/confirm.ts +0 -104
- package/src/components/prompt/index.ts +0 -50
- package/src/components/prompt/prompt.tsx +0 -161
- package/src/components/prompt/types.ts +0 -45
- package/src/components/radioBox/index.ts +0 -34
- package/src/components/radioBox/radiobox-group.tsx +0 -66
- package/src/components/radioBox/radiobox-group1.vue +0 -66
- package/src/components/radioBox/radiobox.tsx +0 -115
- package/src/components/radioBox/radiobox1.vue +0 -89
- package/src/components/radioBox/types.ts +0 -24
- package/src/components/rater/index.ts +0 -12
- package/src/components/rater/rater.d.ts +0 -16
- package/src/components/rater/raters.tsx +0 -101
- package/src/components/rater/types.ts +0 -10
- package/src/components/slideBar/index.ts +0 -13
- package/src/components/slideBar/slideBar.tsx +0 -288
- package/src/components/slideBar/types.ts +0 -20
- package/src/components/spinner/behavior/blade.vue +0 -42
- package/src/components/spinner/behavior/double-bounce.vue +0 -38
- package/src/components/spinner/behavior/fading-circle.vue +0 -55
- package/src/components/spinner/behavior/snake.vue +0 -41
- package/src/components/spinner/behavior/triple-bounce.vue +0 -52
- package/src/components/spinner/index.ts +0 -13
- package/src/components/spinner/props.js +0 -28
- package/src/components/spinner/spinner.tsx +0 -85
- package/src/components/spinner/types.ts +0 -20
- package/src/components/swipe/index.ts +0 -13
- package/src/components/swipe/swipe.tsx +0 -292
- package/src/components/swipe/types.ts +0 -21
- package/src/components/switchbar/index.ts +0 -13
- package/src/components/switchbar/switchbar.tsx +0 -58
- package/src/components/switchbar/types.ts +0 -6
- package/src/components/tab/index.ts +0 -12
- package/src/components/tab/tab.tsx +0 -71
- package/src/components/tab/types.ts +0 -15
- package/src/components/toTop/index.ts +0 -13
- package/src/components/toTop/toTop.tsx +0 -54
- package/src/components/toTop/types.ts +0 -7
- package/src/components/upload/index.ts +0 -13
- package/src/components/upload/types.ts +0 -9
- package/src/components/upload/upload.tsx +0 -180
- package/src/config/config.js +0 -16
- package/src/directives/clickoutside.js +0 -42
- package/src/directives/tranferDom.js +0 -66
- package/src/index.d.ts +0 -131
- package/src/index.ts +0 -136
- package/src/lib/MegaPixImage.js +0 -164
- package/src/lib/MegaPixImageOld.js +0 -153
- package/src/lib/exif-js.js +0 -235
- package/src/lib/exif.js +0 -789
- package/src/lib/lib.js +0 -22
- package/src/main.ts +0 -33
- package/src/mixin/emitter.js +0 -72
- package/src/mixin/input.js +0 -41
- package/src/router.ts +0 -36
- package/src/shims-vue.d.ts +0 -37
- package/src/styles/base/font.less +0 -99
- package/src/styles/base/reset.less +0 -135
- package/src/styles/base/variable.less +0 -108
- package/src/styles/components/actionSheet.less +0 -43
- package/src/styles/components/badge.less +0 -81
- package/src/styles/components/button.less +0 -124
- package/src/styles/components/card.less +0 -31
- package/src/styles/components/cell-swipe.less +0 -20
- package/src/styles/components/cell.less +0 -75
- package/src/styles/components/checkBox.less +0 -113
- package/src/styles/components/editor.less +0 -3
- package/src/styles/components/header.less +0 -72
- package/src/styles/components/indicator.less +0 -39
- package/src/styles/components/loadmore.less +0 -48
- package/src/styles/components/message.less +0 -57
- package/src/styles/components/modal.less +0 -84
- package/src/styles/components/number.less +0 -60
- package/src/styles/components/picker.less +0 -152
- package/src/styles/components/popup.less +0 -46
- package/src/styles/components/progress.less +0 -52
- package/src/styles/components/prompt.less +0 -37
- package/src/styles/components/radioBox.less +0 -142
- package/src/styles/components/rater.less +0 -16
- package/src/styles/components/slide-Bar.less +0 -149
- package/src/styles/components/spinner.less +0 -329
- package/src/styles/components/swipe.less +0 -125
- package/src/styles/components/switchBar.less +0 -88
- package/src/styles/components/tab.less +0 -71
- package/src/styles/components/text.less +0 -82
- package/src/styles/components/toTop.less +0 -28
- package/src/styles/components/upload.less +0 -23
- package/src/styles/index.less +0 -39
- package/src/styles/utils/1px.less +0 -206
- package/src/styles/utils/animation.less +0 -165
- package/src/styles/utils/nowrap.less +0 -19
- package/src/template/index.ejs +0 -40
- package/src/types/index.d.ts +0 -127
- package/src/types/js-shims.d.ts +0 -36
- package/src/utils/test.ts +0 -2
- package/src/utils/util.ts +0 -168
- package/src/utils/util1.js +0 -202
- package/src/vconsole-resources.min.js +0 -6
- package/src/vconsole-sources.min.js +0 -6
- package/src/vconsole.min.js +0 -7
- package/src/views/ActionSheet.vue +0 -46
- package/src/views/Badge/Badge.less +0 -12
- package/src/views/Badge/Badge.tsx +0 -23
- package/src/views/Badge.vue +0 -53
- package/src/views/Button.vue +0 -69
- package/src/views/Card.vue +0 -89
- package/src/views/Cell.vue +0 -31
- package/src/views/CellSwipe.vue +0 -80
- package/src/views/CheckBox.vue +0 -78
- package/src/views/Header.vue +0 -71
- package/src/views/Indicator.vue +0 -82
- package/src/views/LoadMore.vue +0 -76
- package/src/views/Message.vue +0 -61
- package/src/views/Modal.vue +0 -69
- package/src/views/Picker.vue +0 -142
- package/src/views/Popup.vue +0 -103
- package/src/views/Progress.vue +0 -49
- package/src/views/Prompt.vue +0 -43
- package/src/views/RadioBox.vue +0 -70
- package/src/views/Rater.vue +0 -53
- package/src/views/SlideBar.vue +0 -62
- package/src/views/Spinner.vue +0 -27
- package/src/views/Swipe.vue +0 -59
- package/src/views/SwitchBar.vue +0 -49
- package/src/views/Tab.vue +0 -55
- package/src/views/Text.vue +0 -97
- package/src/views/ToTop.vue +0 -31
- package/src/views/Upload.vue +0 -65
- package/src/views/guide.vue +0 -164
- package/src/views/index.vue +0 -554
- package/tsconfig.build.json +0 -31
- package/tsconfig.json +0 -41
- package/webpack.base.config.js +0 -85
- package/webpack.dev.config.js +0 -43
- package/webpack.dist.dev.config.js +0 -76
- package/webpack.dist.prod.config.js +0 -90
- package/webpack.prod.config.js +0 -52
package/src/views/RadioBox.vue
DELETED
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="RadioBox">
|
|
3
|
-
<p>Radio组合</p>
|
|
4
|
-
<div class="item">
|
|
5
|
-
<RadioBoxGroup v-model="radio">
|
|
6
|
-
<RadioBox label="中国" />
|
|
7
|
-
<RadioBox label="美国" />
|
|
8
|
-
<RadioBox label="日本" />
|
|
9
|
-
</RadioBoxGroup>
|
|
10
|
-
</div>
|
|
11
|
-
<div class="item">
|
|
12
|
-
value: {{ radio }}
|
|
13
|
-
</div>
|
|
14
|
-
|
|
15
|
-
<p>单个Radio</p>
|
|
16
|
-
<RadioBox
|
|
17
|
-
v-model="checked"
|
|
18
|
-
label="苹果"
|
|
19
|
-
/>
|
|
20
|
-
<div class="item">
|
|
21
|
-
checked: {{ checked }}
|
|
22
|
-
</div>
|
|
23
|
-
|
|
24
|
-
<p>禁用的Radio</p>
|
|
25
|
-
<div class="item">
|
|
26
|
-
<RadioBox
|
|
27
|
-
label="玩具"
|
|
28
|
-
:disable="true"
|
|
29
|
-
/>
|
|
30
|
-
</div>
|
|
31
|
-
</div>
|
|
32
|
-
</template>
|
|
33
|
-
|
|
34
|
-
<script lang="ts">
|
|
35
|
-
import { defineComponent, ref } from 'vue'
|
|
36
|
-
import type { RadioBoxProps, RadioGroupProps } from '../components/radioBox/types'
|
|
37
|
-
// import { RadioBox, RadioBoxGroup } from '../components/radioBox'
|
|
38
|
-
export default defineComponent({
|
|
39
|
-
name: 'ViewRadioBox',
|
|
40
|
-
// components: { RadioBox, RadioBoxGroup },
|
|
41
|
-
setup () {
|
|
42
|
-
const checked = ref<RadioBoxProps['modelValue']>(false)
|
|
43
|
-
const radio = ref<RadioGroupProps['modelValue']>('')
|
|
44
|
-
|
|
45
|
-
return {
|
|
46
|
-
checked,
|
|
47
|
-
radio
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
})
|
|
51
|
-
</script>
|
|
52
|
-
|
|
53
|
-
<style lang="less" scoped>
|
|
54
|
-
.RadioBox {
|
|
55
|
-
padding-top: 100px;
|
|
56
|
-
|
|
57
|
-
p {
|
|
58
|
-
width: 100%;
|
|
59
|
-
font-weight: bold;
|
|
60
|
-
font-size: 16px;
|
|
61
|
-
margin: 20px 0;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
.item {
|
|
65
|
-
width: 100%;
|
|
66
|
-
display: flex;
|
|
67
|
-
justify-content: center;
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
</style>
|
package/src/views/Rater.vue
DELETED
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="Rater">
|
|
3
|
-
<p>可点击评分</p>
|
|
4
|
-
<Rater
|
|
5
|
-
v-model="rate"
|
|
6
|
-
:max="5"
|
|
7
|
-
/>
|
|
8
|
-
<span>{{ rate }}</span>
|
|
9
|
-
|
|
10
|
-
<p>不可点击评分</p>
|
|
11
|
-
<Rater
|
|
12
|
-
v-model="disabledRate"
|
|
13
|
-
:disabled="true"
|
|
14
|
-
/>
|
|
15
|
-
<span>{{ disabledRate }}</span>
|
|
16
|
-
</div>
|
|
17
|
-
</template>
|
|
18
|
-
|
|
19
|
-
<script lang="ts">
|
|
20
|
-
import { defineComponent, ref } from 'vue'
|
|
21
|
-
// import Rater from '../components/rater/'
|
|
22
|
-
export default defineComponent({
|
|
23
|
-
name: 'ViewRater',
|
|
24
|
-
// components: { Rater },
|
|
25
|
-
setup () {
|
|
26
|
-
const rate = ref(0)
|
|
27
|
-
const disabledRate = ref(4.5)
|
|
28
|
-
|
|
29
|
-
return {
|
|
30
|
-
rate,
|
|
31
|
-
disabledRate
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
})
|
|
35
|
-
</script>
|
|
36
|
-
|
|
37
|
-
<style lang="less" scoped>
|
|
38
|
-
.Rater {
|
|
39
|
-
width: 100%;
|
|
40
|
-
padding-top: 50px;
|
|
41
|
-
display: flex;
|
|
42
|
-
flex-direction: column;
|
|
43
|
-
justify-content: center;
|
|
44
|
-
align-items: center;
|
|
45
|
-
|
|
46
|
-
p {
|
|
47
|
-
text-indent: 10px;
|
|
48
|
-
font-weight: bold;
|
|
49
|
-
font-size: 14px;
|
|
50
|
-
margin: 10px 0;
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
</style>
|
package/src/views/SlideBar.vue
DELETED
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="SlideBar">
|
|
3
|
-
<Slide-bar
|
|
4
|
-
:list="items"
|
|
5
|
-
:flex="false"
|
|
6
|
-
:index="index"
|
|
7
|
-
height="100%"
|
|
8
|
-
scroll-height="50px"
|
|
9
|
-
:is-fixed-header="true"
|
|
10
|
-
@on-change="changeIndex"
|
|
11
|
-
>
|
|
12
|
-
<!-- 具名插槽语法 Vue3 -->
|
|
13
|
-
<template #slot-item-0>
|
|
14
|
-
<div style="height:100%; flex: 1; background:red; overflow: scroll;">
|
|
15
|
-
<div style="height: 40px; width: 100%; background-color: blue;" />
|
|
16
|
-
<div style="height: 40px; width: 100%; background-color: blue;" />
|
|
17
|
-
<div style="height: 40px; width: 100%; background-color: blue;" />
|
|
18
|
-
<div style="height: 40px; width: 100%; background-color: blue;" />
|
|
19
|
-
<div style="height: 40px; width: 100%; background-color: blue;" />
|
|
20
|
-
</div>
|
|
21
|
-
</template>
|
|
22
|
-
|
|
23
|
-
<template #slot-item-1>
|
|
24
|
-
<div style="height:200px; flex:1; background:yellow;" />
|
|
25
|
-
</template>
|
|
26
|
-
|
|
27
|
-
<template #slot-item-2>
|
|
28
|
-
<div style="height:200px; flex:1; background:black;" />
|
|
29
|
-
</template>
|
|
30
|
-
</Slide-bar>
|
|
31
|
-
</div>
|
|
32
|
-
</template>
|
|
33
|
-
|
|
34
|
-
<script lang="ts">
|
|
35
|
-
import { defineComponent, ref } from 'vue'
|
|
36
|
-
import type { SlideBarProps } from '@/components/slideBar/types'
|
|
37
|
-
// import SlideBar from '@/components/slideBar'
|
|
38
|
-
export default defineComponent({
|
|
39
|
-
name: 'ViewSlideBar',
|
|
40
|
-
components: {
|
|
41
|
-
// SlideBar
|
|
42
|
-
},
|
|
43
|
-
setup () {
|
|
44
|
-
const items = ref<SlideBarProps['list']>([
|
|
45
|
-
{ name: '选项一' },
|
|
46
|
-
{ name: '选项二' },
|
|
47
|
-
{ name: '选项三' }
|
|
48
|
-
])
|
|
49
|
-
const index = ref<SlideBarProps['index']>(1)
|
|
50
|
-
const changeIndex = (index: number) => {
|
|
51
|
-
console.log(index)
|
|
52
|
-
}
|
|
53
|
-
return { items, index, changeIndex }
|
|
54
|
-
}
|
|
55
|
-
})
|
|
56
|
-
</script>
|
|
57
|
-
|
|
58
|
-
<style lang="less" scoped>
|
|
59
|
-
.SlideBar {
|
|
60
|
-
width: 100%;
|
|
61
|
-
}
|
|
62
|
-
</style>
|
package/src/views/Spinner.vue
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="Spinner">
|
|
3
|
-
<Spinner
|
|
4
|
-
:type="type"
|
|
5
|
-
/>
|
|
6
|
-
</div>
|
|
7
|
-
</template>
|
|
8
|
-
|
|
9
|
-
<script lang="ts">
|
|
10
|
-
import { defineComponent, ref } from 'vue'
|
|
11
|
-
// import Spinner from '../components/spinner'
|
|
12
|
-
import type { SpinnerProps } from '../components/spinner'
|
|
13
|
-
export default defineComponent({
|
|
14
|
-
name: 'ViewSpinner',
|
|
15
|
-
// components: { Spinner },
|
|
16
|
-
setup () {
|
|
17
|
-
const type = ref<SpinnerProps['type']>('double-bounce')
|
|
18
|
-
return {
|
|
19
|
-
type
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
})
|
|
23
|
-
</script>
|
|
24
|
-
|
|
25
|
-
<style scoped>
|
|
26
|
-
|
|
27
|
-
</style>
|
package/src/views/Swipe.vue
DELETED
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="swipe">
|
|
3
|
-
<Swipe
|
|
4
|
-
:multiple="false"
|
|
5
|
-
:list="files"
|
|
6
|
-
>
|
|
7
|
-
<template #default="props">
|
|
8
|
-
<img
|
|
9
|
-
:src="props.item.image"
|
|
10
|
-
:alt="props.item.name"
|
|
11
|
-
>
|
|
12
|
-
</template>
|
|
13
|
-
</Swipe>
|
|
14
|
-
</div>
|
|
15
|
-
</template>
|
|
16
|
-
|
|
17
|
-
<script lang="ts">
|
|
18
|
-
import { defineComponent, ref } from 'vue'
|
|
19
|
-
// import Swipe from '../components/swipe'
|
|
20
|
-
import type { SwipeProps } from '../components/swipe'
|
|
21
|
-
export default defineComponent({
|
|
22
|
-
name: 'ViewSwipe',
|
|
23
|
-
// components: { Swipe },
|
|
24
|
-
setup () {
|
|
25
|
-
const files = ref<SwipeProps['list']>([
|
|
26
|
-
{
|
|
27
|
-
id: 521,
|
|
28
|
-
ad_id: 10,
|
|
29
|
-
name: '玩转大数据分析!Spark2.X+Python 精华实战课程',
|
|
30
|
-
image: 'https://www.189.cn/upfiles/189v2/jt/images/2024/0/ce687527-56e0-4c0f-89f7-2688a45441ea.jpg',
|
|
31
|
-
link: 'https://edu.hellobi.com/course/222'
|
|
32
|
-
},
|
|
33
|
-
{
|
|
34
|
-
id: 506,
|
|
35
|
-
ad_id: 10,
|
|
36
|
-
name: '数据分析报告制作秘籍升级版',
|
|
37
|
-
image: 'https://www.189.cn/upfiles/189v2/jt/images/2020/9/5436bb73-fdd8-414e-9e15-32fae4996e37.jpg',
|
|
38
|
-
link: 'https://edu.hellobi.com/course/132'
|
|
39
|
-
},
|
|
40
|
-
{
|
|
41
|
-
id: 504,
|
|
42
|
-
ad_id: 10,
|
|
43
|
-
name: '独一无二的数据仓库建模指引系列教程升级版(连载中)',
|
|
44
|
-
image: 'https://www.189.cn/upfiles/189v2/jt/images/2019/9/0223427c-7e00-4521-91f7-56dce455766b.jpg',
|
|
45
|
-
link: 'https://edu.hellobi.com/course/102'
|
|
46
|
-
}
|
|
47
|
-
])
|
|
48
|
-
|
|
49
|
-
return { files }
|
|
50
|
-
}
|
|
51
|
-
})
|
|
52
|
-
</script>
|
|
53
|
-
|
|
54
|
-
<style lang="less" scoped>
|
|
55
|
-
.swipe {
|
|
56
|
-
// padding-top: 100px;
|
|
57
|
-
width: 100%;
|
|
58
|
-
}
|
|
59
|
-
</style>
|
package/src/views/SwitchBar.vue
DELETED
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="SwitchBar">
|
|
3
|
-
<SwitchBar
|
|
4
|
-
v-model="checkLarge"
|
|
5
|
-
size="large"
|
|
6
|
-
/>
|
|
7
|
-
<span>large</span>
|
|
8
|
-
<SwitchBar
|
|
9
|
-
v-model="checkSmall"
|
|
10
|
-
size="small"
|
|
11
|
-
/>
|
|
12
|
-
<span>small</span>
|
|
13
|
-
</div>
|
|
14
|
-
</template>
|
|
15
|
-
|
|
16
|
-
<script lang="ts">
|
|
17
|
-
import { defineComponent, ref } from 'vue'
|
|
18
|
-
// import SwitchBar from '../components/switchbar'
|
|
19
|
-
import type { SwitchBarProps } from '../components/switchbar/types'
|
|
20
|
-
export default defineComponent({
|
|
21
|
-
name: 'ViewSwitchBar',
|
|
22
|
-
// components: { SwitchBar },
|
|
23
|
-
setup () {
|
|
24
|
-
const checkLarge = ref<SwitchBarProps['modelValue']>(false)
|
|
25
|
-
const checkSmall = ref<SwitchBarProps['modelValue']>(false)
|
|
26
|
-
|
|
27
|
-
return {
|
|
28
|
-
checkLarge,
|
|
29
|
-
checkSmall
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
})
|
|
33
|
-
</script>
|
|
34
|
-
|
|
35
|
-
<style lang="less" scoped>
|
|
36
|
-
.SwitchBar {
|
|
37
|
-
padding-top: 100px;
|
|
38
|
-
display: flex;
|
|
39
|
-
justify-content: space-around;
|
|
40
|
-
align-items: center;
|
|
41
|
-
height: 100%;
|
|
42
|
-
|
|
43
|
-
span {
|
|
44
|
-
font-weight: bold;
|
|
45
|
-
font-size: 14px;
|
|
46
|
-
// align-self: flex-start;
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
</style>
|
package/src/views/Tab.vue
DELETED
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="Tab">
|
|
3
|
-
<Tab
|
|
4
|
-
:items="items"
|
|
5
|
-
:index="index"
|
|
6
|
-
:border="hasBorder"
|
|
7
|
-
:styles="styles"
|
|
8
|
-
/>
|
|
9
|
-
</div>
|
|
10
|
-
</template>
|
|
11
|
-
|
|
12
|
-
<script lang="ts">
|
|
13
|
-
import { defineComponent, ref } from 'vue'
|
|
14
|
-
// import Tab from '../components/tab'
|
|
15
|
-
import type { TabProps } from '../components/tab/types'
|
|
16
|
-
export default defineComponent({
|
|
17
|
-
name: 'ViewTab',
|
|
18
|
-
// components: { Tab },
|
|
19
|
-
setup () {
|
|
20
|
-
const items = ref<TabProps['items']>([
|
|
21
|
-
{
|
|
22
|
-
path: '/guide',
|
|
23
|
-
name: '首页',
|
|
24
|
-
iconCur: '<span class="iconfont icon-shangcheng"></span>',
|
|
25
|
-
icon: '<span class="iconfont icon-shangcheng"></span>'
|
|
26
|
-
},
|
|
27
|
-
{
|
|
28
|
-
path: '/guide',
|
|
29
|
-
name: '首页',
|
|
30
|
-
iconCur: '<span class="iconfont icon-shangcheng"></span>',
|
|
31
|
-
icon: '<span class="iconfont icon-shangcheng"></span>'
|
|
32
|
-
}
|
|
33
|
-
])
|
|
34
|
-
|
|
35
|
-
const index = ref<TabProps['index']>(0)
|
|
36
|
-
const hasBorder = ref<TabProps['border']>(true)
|
|
37
|
-
const styles = ref<TabProps['styles']>({
|
|
38
|
-
bottom: 0
|
|
39
|
-
})
|
|
40
|
-
|
|
41
|
-
return {
|
|
42
|
-
items,
|
|
43
|
-
index,
|
|
44
|
-
hasBorder,
|
|
45
|
-
styles
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
})
|
|
49
|
-
</script>
|
|
50
|
-
|
|
51
|
-
<style scoped>
|
|
52
|
-
.Tab {
|
|
53
|
-
height: 100%;
|
|
54
|
-
}
|
|
55
|
-
</style>
|
package/src/views/Text.vue
DELETED
|
@@ -1,97 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="Text">
|
|
3
|
-
<!-- Number 示例 -->
|
|
4
|
-
<div class="item">
|
|
5
|
-
<p class="title">
|
|
6
|
-
Number
|
|
7
|
-
</p>
|
|
8
|
-
<Number
|
|
9
|
-
v-model="number"
|
|
10
|
-
:min="min"
|
|
11
|
-
:max="max"
|
|
12
|
-
:step="step"
|
|
13
|
-
/>
|
|
14
|
-
<span class="value">value: {{ number }}</span>
|
|
15
|
-
</div>
|
|
16
|
-
|
|
17
|
-
<!-- TextBar 普通输入框 -->
|
|
18
|
-
<div class="item">
|
|
19
|
-
<p class="title">
|
|
20
|
-
TextBar
|
|
21
|
-
</p>
|
|
22
|
-
<TextBar
|
|
23
|
-
v-model="text"
|
|
24
|
-
type="text"
|
|
25
|
-
/>
|
|
26
|
-
<span class="value">value: {{ text }}</span>
|
|
27
|
-
</div>
|
|
28
|
-
|
|
29
|
-
<!-- TextBar 多行输入框 -->
|
|
30
|
-
<div class="item">
|
|
31
|
-
<p class="title">
|
|
32
|
-
TextBar
|
|
33
|
-
</p>
|
|
34
|
-
<TextBar
|
|
35
|
-
v-model="texts"
|
|
36
|
-
type="textarea"
|
|
37
|
-
:maxlength="9"
|
|
38
|
-
/>
|
|
39
|
-
<span class="value">value: {{ texts }}</span>
|
|
40
|
-
</div>
|
|
41
|
-
</div>
|
|
42
|
-
</template>
|
|
43
|
-
|
|
44
|
-
<script lang="ts">
|
|
45
|
-
import { defineComponent, ref } from 'vue'
|
|
46
|
-
// import TextBar from '../components/Text'
|
|
47
|
-
// import Number from '../components/number'
|
|
48
|
-
import type { TextBarProps } from '../components/Text/types'
|
|
49
|
-
import type { NumberProps } from '../components/number/types'
|
|
50
|
-
export default defineComponent({
|
|
51
|
-
name: 'ViewText',
|
|
52
|
-
// components: { Number },
|
|
53
|
-
// components: { TextBar },
|
|
54
|
-
setup () {
|
|
55
|
-
const number = ref<NumberProps['modelValue']>(0)
|
|
56
|
-
const min = ref<NumberProps['min']>(0)
|
|
57
|
-
const max = ref<NumberProps['max']>(10)
|
|
58
|
-
const step = ref<NumberProps['step']>(2)
|
|
59
|
-
// const focus = ref<NumberProps['focus']>(true)
|
|
60
|
-
const text = ref<TextBarProps['modelValue']>('请输入')
|
|
61
|
-
const texts = ref<TextBarProps['modelValue']>('正在输入....')
|
|
62
|
-
|
|
63
|
-
return {
|
|
64
|
-
number,
|
|
65
|
-
min,
|
|
66
|
-
max,
|
|
67
|
-
step,
|
|
68
|
-
focus,
|
|
69
|
-
text,
|
|
70
|
-
texts
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
})
|
|
74
|
-
</script>
|
|
75
|
-
|
|
76
|
-
<style lang="less" scoped>
|
|
77
|
-
.Text {
|
|
78
|
-
height: 100%;
|
|
79
|
-
display: flex;
|
|
80
|
-
flex-direction: column;
|
|
81
|
-
justify-content: space-around;
|
|
82
|
-
align-items: center;
|
|
83
|
-
|
|
84
|
-
.item {
|
|
85
|
-
width: 50%;
|
|
86
|
-
|
|
87
|
-
.title {
|
|
88
|
-
margin-bottom: 10px;
|
|
89
|
-
font-weight: bold;
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
.value {
|
|
93
|
-
margin-top: 10px;
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
</style>
|
package/src/views/ToTop.vue
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="ToTop">
|
|
3
|
-
<ToTop
|
|
4
|
-
:bottom="bottom"
|
|
5
|
-
:right="50"
|
|
6
|
-
:duration="500"
|
|
7
|
-
/>
|
|
8
|
-
</div>
|
|
9
|
-
</template>
|
|
10
|
-
|
|
11
|
-
<script lang="ts">
|
|
12
|
-
import { defineComponent, ref } from 'vue'
|
|
13
|
-
// import ToTop from '@/components/toTop'
|
|
14
|
-
import type { ToTopProps } from '@/components/toTop/types'
|
|
15
|
-
export default defineComponent({
|
|
16
|
-
name: 'ViewToTop',
|
|
17
|
-
components: {
|
|
18
|
-
// ToTop
|
|
19
|
-
},
|
|
20
|
-
setup () {
|
|
21
|
-
const bottom = ref<ToTopProps['bottom']>(100)
|
|
22
|
-
return { bottom }
|
|
23
|
-
}
|
|
24
|
-
})
|
|
25
|
-
</script>
|
|
26
|
-
|
|
27
|
-
<style lang="less" scoped>
|
|
28
|
-
.ToTop {
|
|
29
|
-
height:200%;
|
|
30
|
-
}
|
|
31
|
-
</style>
|
package/src/views/Upload.vue
DELETED
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="Upload">
|
|
3
|
-
<Upload
|
|
4
|
-
ref="upload"
|
|
5
|
-
:multiple="true"
|
|
6
|
-
@on-change-file="onChangeFile"
|
|
7
|
-
/>
|
|
8
|
-
|
|
9
|
-
<template v-if="files.length">
|
|
10
|
-
<img
|
|
11
|
-
v-for="(item, index) in files"
|
|
12
|
-
:key="index"
|
|
13
|
-
:src="item.base64"
|
|
14
|
-
>
|
|
15
|
-
</template>
|
|
16
|
-
</div>
|
|
17
|
-
</template>
|
|
18
|
-
|
|
19
|
-
<script lang="ts">
|
|
20
|
-
import { ref, defineComponent } from 'vue'
|
|
21
|
-
// import Upload from '@/components/upload'
|
|
22
|
-
// import type { UploadProps } from '@/components/upload/types'
|
|
23
|
-
export default defineComponent({
|
|
24
|
-
name: 'ViewUpload',
|
|
25
|
-
components: {
|
|
26
|
-
// Upload
|
|
27
|
-
},
|
|
28
|
-
setup () {
|
|
29
|
-
const files = ref<Array<{ base64: string, clearBase64: string }>>([])
|
|
30
|
-
const upload = ref(null)
|
|
31
|
-
|
|
32
|
-
const onChangeFile = (newFiles: any[]) => {
|
|
33
|
-
files.value = newFiles
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
return {
|
|
37
|
-
files,
|
|
38
|
-
upload,
|
|
39
|
-
onChangeFile
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
})
|
|
43
|
-
</script>
|
|
44
|
-
|
|
45
|
-
<style lang="less" scoped>
|
|
46
|
-
.Upload {
|
|
47
|
-
height: 100%;
|
|
48
|
-
|
|
49
|
-
.upload-box {
|
|
50
|
-
width: 200px;
|
|
51
|
-
height: 100px;
|
|
52
|
-
background: #008cee;
|
|
53
|
-
color: #ffffff;
|
|
54
|
-
text-align: center;
|
|
55
|
-
line-height: 100px;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
// img {
|
|
59
|
-
// width: 100px;
|
|
60
|
-
// height: 100px;
|
|
61
|
-
// margin: 5px;
|
|
62
|
-
// object-fit: cover;
|
|
63
|
-
// }
|
|
64
|
-
}
|
|
65
|
-
</style>
|