@tplc/business 0.0.50 → 0.0.52
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/CHANGELOG.md +15 -0
- package/components/lcb-action-view/lcb-action-view.vue +1 -1
- package/components/lcb-advert/lcb-advert.vue +78 -0
- package/components/lcb-advert/types.ts +3 -0
- package/global.d.ts +1 -0
- package/package.json +2 -2
- package/types/components/lcb-advert/lcb-advert.vue.d.ts +28 -0
- package/types/components/lcb-advert/types.d.ts +3 -0
- package/types/components/lcb-area-picker/lcb-area-picker.vue.d.ts +1 -1
- package/types/components/lcb-banner-block/lcb-banner-block.vue.d.ts +2 -2
- package/types/components/lcb-calendar-search/lcb-calendar-search.vue.d.ts +1 -1
- package/types/components/lcb-grid/lcb-grid.vue.d.ts +2 -2
- package/types/components/lcb-home-search/lcb-home-search.vue.d.ts +1 -1
- package/types/components/lcb-list/lcb-list.vue.d.ts +1 -1
- package/types/components/lcb-notice/lcb-notice.vue.d.ts +2 -2
- package/types/components/lcb-swiper/lcb-swiper.vue.d.ts +2 -2
- package/types/components/lcb-title/lcb-title.vue.d.ts +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,21 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
### [0.0.52](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.1.23...v0.0.52) (2024-10-29)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### ✨ Features | 新功能
|
|
9
|
+
|
|
10
|
+
* 更新跳转地址 ([acaa3f8](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/acaa3f800e3d21f650db037ff67fd432e7ffee01))
|
|
11
|
+
|
|
12
|
+
### [0.0.51](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.0.50...v0.0.51) (2024-10-29)
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### ✨ Features | 新功能
|
|
16
|
+
|
|
17
|
+
* 新增advert ([2a802dd](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/2a802dd128977e1b0862d4104b3fb7fa3c1f2cb7))
|
|
18
|
+
* 禁止遮罩 ([9645223](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/964522335b472745016ab8a15460e74a46dbcce0))
|
|
19
|
+
|
|
5
20
|
### [0.0.50](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.1.22...v0.0.50) (2024-10-29)
|
|
6
21
|
|
|
7
22
|
### [0.0.49](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.1.6...v0.0.49) (2024-10-29)
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<wd-popup v-model="show" custom-class="!bg-transparent" :close-on-click-modal="false">
|
|
3
|
+
<view class="h-fit w-325px flex flex-col card-swiper">
|
|
4
|
+
<wd-swiper
|
|
5
|
+
value-key="adContent"
|
|
6
|
+
custom-indicator-class="custom-indicator-class"
|
|
7
|
+
action
|
|
8
|
+
v-bind="{
|
|
9
|
+
list: adverts,
|
|
10
|
+
height: '555px',
|
|
11
|
+
imgWidth: '325px',
|
|
12
|
+
radius: '20px',
|
|
13
|
+
autoplay: false,
|
|
14
|
+
imageRadius: '20px',
|
|
15
|
+
indicatorPosition: 'bottom',
|
|
16
|
+
indicator: { type: 'dots' },
|
|
17
|
+
}"
|
|
18
|
+
/>
|
|
19
|
+
<wd-icon
|
|
20
|
+
name="close-circle"
|
|
21
|
+
size="48rpx"
|
|
22
|
+
custom-class="mt-12 mx-auto"
|
|
23
|
+
color="#fff"
|
|
24
|
+
@click="show = false"
|
|
25
|
+
/>
|
|
26
|
+
</view>
|
|
27
|
+
</wd-popup>
|
|
28
|
+
</template>
|
|
29
|
+
|
|
30
|
+
<script setup lang="ts">
|
|
31
|
+
import { AdvertItem, getAdvertList } from '../lcb-notice/api'
|
|
32
|
+
import { PAGE_TYPE_PROVIDE_KEY } from '../../constants'
|
|
33
|
+
import { inject, onMounted, ref } from 'vue'
|
|
34
|
+
import { LcbAdvertProps } from './types'
|
|
35
|
+
|
|
36
|
+
defineOptions({
|
|
37
|
+
name: 'LcbAdvert',
|
|
38
|
+
options: {
|
|
39
|
+
addGlobalClass: true,
|
|
40
|
+
virtualHost: true,
|
|
41
|
+
styleIsolation: 'shared',
|
|
42
|
+
},
|
|
43
|
+
})
|
|
44
|
+
const props = defineProps<LcbAdvertProps>()
|
|
45
|
+
const pageType = inject(PAGE_TYPE_PROVIDE_KEY, props.pageType) as string
|
|
46
|
+
const adverts = ref<AdvertItem[]>([])
|
|
47
|
+
const show = ref(false)
|
|
48
|
+
onMounted(async () => {
|
|
49
|
+
const { data } = await getAdvertList({
|
|
50
|
+
type: 2,
|
|
51
|
+
pageType,
|
|
52
|
+
})
|
|
53
|
+
adverts.value = data
|
|
54
|
+
if (data.length) {
|
|
55
|
+
show.value = true
|
|
56
|
+
}
|
|
57
|
+
})
|
|
58
|
+
</script>
|
|
59
|
+
|
|
60
|
+
<style lang="scss" scoped>
|
|
61
|
+
@import '@tplc/wot/components/common/abstracts/variable';
|
|
62
|
+
.card-swiper {
|
|
63
|
+
:deep(.custom-indicator-class) {
|
|
64
|
+
bottom: -20px;
|
|
65
|
+
.wd-swiper-nav__item--dots {
|
|
66
|
+
width: 8px;
|
|
67
|
+
height: 8px;
|
|
68
|
+
margin: 0 4px;
|
|
69
|
+
}
|
|
70
|
+
.wd-swiper-nav__item--dots {
|
|
71
|
+
background-color: #fff;
|
|
72
|
+
}
|
|
73
|
+
.wd-swiper-nav__item--dots.is-active {
|
|
74
|
+
background-color: $-color-theme;
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
</style>
|
package/global.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ declare module 'vue' {
|
|
|
2
2
|
// Helper for Volar
|
|
3
3
|
export interface GlobalComponents {
|
|
4
4
|
'lcb-action-view': (typeof import('./types/components/lcb-action-view/lcb-action-view.vue'))['default']
|
|
5
|
+
'lcb-advert': (typeof import('./types/components/lcb-advert/lcb-advert.vue'))['default']
|
|
5
6
|
'lcb-area-picker': (typeof import('./types/components/lcb-area-picker/lcb-area-picker.vue'))['default']
|
|
6
7
|
'lcb-banner': (typeof import('./types/components/lcb-banner/lcb-banner.vue'))['default']
|
|
7
8
|
'lcb-banner-block': (typeof import('./types/components/lcb-banner-block/lcb-banner-block.vue'))['default']
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tplc/business",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.52",
|
|
4
4
|
"keywords": [
|
|
5
5
|
"业务组件"
|
|
6
6
|
],
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
},
|
|
12
12
|
"peerDependencies": {
|
|
13
13
|
"vue": ">=3.2.47",
|
|
14
|
-
"@tplc/wot": "0.1.
|
|
14
|
+
"@tplc/wot": "0.1.23"
|
|
15
15
|
},
|
|
16
16
|
"engines": {
|
|
17
17
|
"node": ">=18",
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { LcbAdvertProps } from './types'
|
|
2
|
+
declare const _default: import('vue').DefineComponent<
|
|
3
|
+
__VLS_TypePropsToOption<LcbAdvertProps>,
|
|
4
|
+
{},
|
|
5
|
+
unknown,
|
|
6
|
+
{},
|
|
7
|
+
{},
|
|
8
|
+
import('vue').ComponentOptionsMixin,
|
|
9
|
+
import('vue').ComponentOptionsMixin,
|
|
10
|
+
{},
|
|
11
|
+
string,
|
|
12
|
+
import('vue').PublicProps,
|
|
13
|
+
Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToOption<LcbAdvertProps>>>,
|
|
14
|
+
{},
|
|
15
|
+
{}
|
|
16
|
+
>
|
|
17
|
+
export default _default
|
|
18
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T
|
|
19
|
+
type __VLS_TypePropsToOption<T> = {
|
|
20
|
+
[K in keyof T]-?: {} extends Pick<T, K>
|
|
21
|
+
? {
|
|
22
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>
|
|
23
|
+
}
|
|
24
|
+
: {
|
|
25
|
+
type: import('vue').PropType<T[K]>
|
|
26
|
+
required: true
|
|
27
|
+
}
|
|
28
|
+
}
|
|
@@ -36,8 +36,8 @@ declare const __VLS_component: import('vue').DefineComponent<
|
|
|
36
36
|
>
|
|
37
37
|
>
|
|
38
38
|
> & {
|
|
39
|
-
onConfirm?: ((payload: AreaOptions[]) => any) | undefined
|
|
40
39
|
'onUpdate:modelValue'?: ((modelValue: string[]) => any) | undefined
|
|
40
|
+
onConfirm?: ((payload: AreaOptions[]) => any) | undefined
|
|
41
41
|
},
|
|
42
42
|
{
|
|
43
43
|
mode: 'city' | 'area'
|
|
@@ -22,7 +22,7 @@ declare const __VLS_component: import('vue').DefineComponent<
|
|
|
22
22
|
import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<LcbListProps>, any>>
|
|
23
23
|
>,
|
|
24
24
|
{
|
|
25
|
-
listType: '
|
|
25
|
+
listType: 'list' | 'horizontal' | 'grid' | 'waterfall'
|
|
26
26
|
pageFilterType: string
|
|
27
27
|
pageListProps: import('./components/FilterList/type').PageListProps
|
|
28
28
|
border: boolean
|
|
@@ -40,11 +40,11 @@ declare const _default: import('vue').DefineComponent<
|
|
|
40
40
|
>
|
|
41
41
|
>,
|
|
42
42
|
{
|
|
43
|
+
direction: import('@tplc/wot/types/components/wd-notice-bar/types').NoticeBarScrollDirection
|
|
44
|
+
color: string
|
|
43
45
|
paddingVertical: number
|
|
44
46
|
backgroundColor: string
|
|
45
|
-
color: string
|
|
46
47
|
borderColor: string
|
|
47
|
-
direction: import('@tplc/wot/types/components/wd-notice-bar/types').NoticeBarScrollDirection
|
|
48
48
|
iconSize: number
|
|
49
49
|
speed: number
|
|
50
50
|
rightArrow: boolean
|
|
@@ -70,11 +70,10 @@ declare const _default: import('vue').DefineComponent<
|
|
|
70
70
|
>
|
|
71
71
|
>,
|
|
72
72
|
{
|
|
73
|
-
|
|
73
|
+
duration: number
|
|
74
74
|
autoplay: boolean
|
|
75
75
|
direction: 'horizontal' | 'vertical'
|
|
76
76
|
displayMultipleItems: number
|
|
77
|
-
duration: number
|
|
78
77
|
height: number
|
|
79
78
|
loop: boolean
|
|
80
79
|
indicatorPosition:
|
|
@@ -87,6 +86,7 @@ declare const _default: import('vue').DefineComponent<
|
|
|
87
86
|
| 'bottom-right'
|
|
88
87
|
| 'right'
|
|
89
88
|
indicator: boolean
|
|
89
|
+
styleGroup: 1 | 2 | 3 | 4
|
|
90
90
|
borderRadius: number
|
|
91
91
|
indicatorType: 'dots' | 'dots-bar' | 'fraction'
|
|
92
92
|
},
|