@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 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)
@@ -44,7 +44,7 @@ const onActionClick = () => {
44
44
  case 1:
45
45
  if (url)
46
46
  uni.navigateTo({
47
- url: `/pages/webview/index?url=${encodeURIComponent(url)}`,
47
+ url: `/pages/system/webview?url=${encodeURIComponent(url)}`,
48
48
  })
49
49
  break
50
50
  /** 小程序内页 */
@@ -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>
@@ -0,0 +1,3 @@
1
+ export interface LcbAdvertProps {
2
+ pageType?: string
3
+ }
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.50",
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.22"
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
+ }
@@ -0,0 +1,3 @@
1
+ export interface LcbAdvertProps {
2
+ pageType?: string
3
+ }
@@ -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'
@@ -32,10 +32,10 @@ declare const _default: import('vue').DefineComponent<
32
32
  >
33
33
  >,
34
34
  {
35
+ imageRadius: number
36
+ radius: number
35
37
  marginHorizontal: number
36
38
  backgroundColor: string
37
- radius: number
38
- imageRadius: number
39
39
  },
40
40
  {}
41
41
  >
@@ -30,9 +30,9 @@ declare const _default: import('vue').DefineComponent<
30
30
  >
31
31
  >,
32
32
  {
33
+ radius: number
33
34
  placeholder: string
34
35
  marginHorizontal: number
35
- radius: number
36
36
  },
37
37
  {}
38
38
  >
@@ -32,9 +32,9 @@ declare const _default: import('vue').DefineComponent<
32
32
  >
33
33
  >,
34
34
  {
35
- marginHorizontal: number
36
- radius: number
37
35
  height: number
36
+ radius: number
37
+ marginHorizontal: number
38
38
  cols: number
39
39
  },
40
40
  {}
@@ -34,10 +34,10 @@ declare const _default: import('vue').DefineComponent<
34
34
  >
35
35
  >,
36
36
  {
37
+ radius: number
37
38
  placeholder: string
38
39
  marginHorizontal: number
39
40
  backgroundColor: string
40
- radius: number
41
41
  btnText: string
42
42
  },
43
43
  {}
@@ -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: 'horizontal' | 'list' | 'grid' | 'waterfall'
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
- styleGroup: 1 | 2 | 3 | 4
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
  },
@@ -35,8 +35,8 @@ declare const _default: import('vue').DefineComponent<
35
35
  >,
36
36
  {
37
37
  title: string
38
- marginHorizontal: number
39
38
  color: string
39
+ marginHorizontal: number
40
40
  fontSize: number
41
41
  fontWeight: number
42
42
  },