@tplc/business 0.0.20 → 0.0.24

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.
Files changed (50) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/action.d.ts +2 -1
  3. package/components/lcb-action-view/lcb-action-view.vue +5 -2
  4. package/components/lcb-action-view/types.ts +3 -2
  5. package/components/lcb-banner/lcb-banner.vue +1 -0
  6. package/components/lcb-banner-block/lcb-banner-block.vue +11 -11
  7. package/components/lcb-banner-block/types.ts +1 -1
  8. package/components/lcb-block/lcb-block.vue +1 -0
  9. package/components/lcb-grid/lcb-grid.vue +10 -8
  10. package/components/lcb-grid/types.ts +1 -1
  11. package/components/lcb-home-search/lcb-home-search.vue +18 -10
  12. package/components/lcb-home-search/types.ts +2 -1
  13. package/components/lcb-image/Image/index.vue +1 -0
  14. package/components/lcb-image/lcb-image.vue +12 -8
  15. package/components/lcb-image/types.ts +1 -1
  16. package/components/lcb-img-nav/lcb-img-nav.vue +23 -37
  17. package/components/lcb-img-nav/types.ts +4 -0
  18. package/components/lcb-nav/lcb-nav.vue +53 -15
  19. package/components/lcb-nav/types.ts +1 -2
  20. package/components/lcb-notice/Item/index.vue +112 -0
  21. package/components/lcb-notice/lcb-notice.vue +76 -0
  22. package/components/lcb-notice/types.ts +27 -0
  23. package/components/lcb-user-order/lcb-user-order.vue +31 -48
  24. package/components/lcb-user-order/types.ts +12 -0
  25. package/components/lcb-user-top/Nums/index.vue +20 -0
  26. package/components/lcb-user-top/lcb-user-top.vue +72 -81
  27. package/components/lcb-user-top/types.ts +18 -2
  28. package/components/lcb-video/lcb-video.vue +2 -2
  29. package/global.d.ts +1 -0
  30. package/package.json +2 -2
  31. package/types/components/lcb-action-view/types.d.ts +3 -2
  32. package/types/components/lcb-banner-block/types.d.ts +1 -1
  33. package/types/components/lcb-grid/types.d.ts +1 -1
  34. package/types/components/lcb-home-search/lcb-home-search.vue.d.ts +3 -0
  35. package/types/components/lcb-home-search/types.d.ts +2 -1
  36. package/types/components/lcb-image/lcb-image.vue.d.ts +0 -1
  37. package/types/components/lcb-image/types.d.ts +1 -1
  38. package/types/components/lcb-img-nav/types.d.ts +2 -0
  39. package/types/components/lcb-nav/Search/index.vue.d.ts +1 -1
  40. package/types/components/lcb-nav/lcb-nav.vue.d.ts +1 -1
  41. package/types/components/lcb-nav/types.d.ts +1 -2
  42. package/types/components/lcb-notice/Item/index.vue.d.ts +56 -0
  43. package/types/components/lcb-notice/lcb-notice.vue.d.ts +68 -0
  44. package/types/components/lcb-notice/types.d.ts +24 -0
  45. package/types/components/lcb-user-order/types.d.ts +7 -0
  46. package/types/components/lcb-user-top/Nums/index.vue.d.ts +28 -0
  47. package/types/components/lcb-user-top/lcb-user-top.vue.d.ts +0 -2
  48. package/types/components/lcb-user-top/types.d.ts +16 -2
  49. package/types/utils/transform.d.ts +1 -1
  50. package/utils/transform.ts +1 -1
@@ -55,13 +55,13 @@ declare const _default: import('vue').DefineComponent<
55
55
  fixed: boolean
56
56
  title: string
57
57
  styleGroup: 1 | 2 | 3 | 4
58
+ back: boolean
58
59
  topStyle: 1 | 2
59
60
  immersionMode: 1 | 2
60
61
  colorMode: 'custom' | 'default'
61
62
  backColor: string
62
63
  backgroundType: 'img' | 'color'
63
64
  contentColor: string
64
- back: boolean
65
65
  capsuleMode: 'light' | 'dark'
66
66
  titleMode: 'text' | 'img'
67
67
  logoImg: string
@@ -1,7 +1,6 @@
1
1
  export interface ICapsule {
2
2
  icon: string
3
- action?: 'translate' | 'scanCode' | 'link' | 'home'
4
- link?: string
3
+ action: 'translate' | 'scanCode' | 'search' | 'home' | 'setting' | 'back'
5
4
  }
6
5
  export interface NavTitleProps {
7
6
  /** 模式 */
@@ -0,0 +1,56 @@
1
+ import { NoticeBarItemProps } from '../types'
2
+ declare const _default: import('vue').DefineComponent<
3
+ __VLS_WithDefaults<
4
+ __VLS_TypePropsToOption<NoticeBarItemProps>,
5
+ {
6
+ textSpeed: number
7
+ }
8
+ >,
9
+ {},
10
+ unknown,
11
+ {},
12
+ {},
13
+ import('vue').ComponentOptionsMixin,
14
+ import('vue').ComponentOptionsMixin,
15
+ {},
16
+ string,
17
+ import('vue').PublicProps,
18
+ Readonly<
19
+ import('vue').ExtractPropTypes<
20
+ __VLS_WithDefaults<
21
+ __VLS_TypePropsToOption<NoticeBarItemProps>,
22
+ {
23
+ textSpeed: number
24
+ }
25
+ >
26
+ >
27
+ >,
28
+ {
29
+ textSpeed: number
30
+ },
31
+ {}
32
+ >
33
+ export default _default
34
+ type __VLS_WithDefaults<P, D> = {
35
+ [K in keyof Pick<P, keyof P>]: K extends keyof D
36
+ ? __VLS_Prettify<
37
+ P[K] & {
38
+ default: D[K]
39
+ }
40
+ >
41
+ : P[K]
42
+ }
43
+ type __VLS_Prettify<T> = {
44
+ [K in keyof T]: T[K]
45
+ } & {}
46
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T
47
+ type __VLS_TypePropsToOption<T> = {
48
+ [K in keyof T]-?: {} extends Pick<T, K>
49
+ ? {
50
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>
51
+ }
52
+ : {
53
+ type: import('vue').PropType<T[K]>
54
+ required: true
55
+ }
56
+ }
@@ -0,0 +1,68 @@
1
+ import { LcbNoticeBarProps } from './types'
2
+ declare let __VLS_typeProps: LcbNoticeBarProps
3
+ declare const interval: import('vue').ModelRef<number, string>
4
+ type __VLS_PublicProps = {
5
+ modelValue?: any
6
+ interval?: NonNullable<(typeof interval)['value']>
7
+ } & typeof __VLS_typeProps
8
+ declare const _default: import('vue').DefineComponent<
9
+ __VLS_WithDefaults<
10
+ __VLS_TypePropsToOption<__VLS_PublicProps>,
11
+ {
12
+ textSpeed: number
13
+ }
14
+ >,
15
+ {},
16
+ unknown,
17
+ {},
18
+ {},
19
+ import('vue').ComponentOptionsMixin,
20
+ import('vue').ComponentOptionsMixin,
21
+ {
22
+ 'update:modelValue': (modelValue: any) => void
23
+ 'update:interval': (interval: number) => void
24
+ },
25
+ string,
26
+ import('vue').PublicProps,
27
+ Readonly<
28
+ import('vue').ExtractPropTypes<
29
+ __VLS_WithDefaults<
30
+ __VLS_TypePropsToOption<__VLS_PublicProps>,
31
+ {
32
+ textSpeed: number
33
+ }
34
+ >
35
+ >
36
+ > & {
37
+ 'onUpdate:modelValue'?: ((modelValue: any) => any) | undefined
38
+ 'onUpdate:interval'?: ((interval: number) => any) | undefined
39
+ },
40
+ {
41
+ textSpeed: number
42
+ },
43
+ {}
44
+ >
45
+ export default _default
46
+ type __VLS_WithDefaults<P, D> = {
47
+ [K in keyof Pick<P, keyof P>]: K extends keyof D
48
+ ? __VLS_Prettify<
49
+ P[K] & {
50
+ default: D[K]
51
+ }
52
+ >
53
+ : P[K]
54
+ }
55
+ type __VLS_Prettify<T> = {
56
+ [K in keyof T]: T[K]
57
+ } & {}
58
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T
59
+ type __VLS_TypePropsToOption<T> = {
60
+ [K in keyof T]-?: {} extends Pick<T, K>
61
+ ? {
62
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>
63
+ }
64
+ : {
65
+ type: import('vue').PropType<T[K]>
66
+ required: true
67
+ }
68
+ }
@@ -0,0 +1,24 @@
1
+ import { LcbActionViewProps } from '../../components/lcb-action-view/types'
2
+ interface NoticeItem {
3
+ id?: number
4
+ noticeContent?: string
5
+ icon?: string
6
+ link?: LcbActionViewProps
7
+ }
8
+ export interface LcbNoticeBarProps {
9
+ items?: Partial<NoticeItem>[]
10
+ vertical?: boolean
11
+ iconType?: number
12
+ direction?: string
13
+ textSpeed?: number
14
+ }
15
+ export interface NoticeBarItemProps {
16
+ idx?: number
17
+ current?: number
18
+ text?: string
19
+ lens?: number
20
+ iconType?: number
21
+ item?: NoticeItem
22
+ textSpeed?: number
23
+ }
24
+ export {}
@@ -4,6 +4,7 @@ export interface IIconList {
4
4
  iconTitle?: string
5
5
  iconName?: string
6
6
  iconUpload?: string
7
+ status?: any
7
8
  }
8
9
  export interface LcbUserOrderProps {
9
10
  marginTop?: number
@@ -29,6 +30,7 @@ export interface LcbUserOrderProps {
29
30
  iconType1?: 0 | 1
30
31
  iconName1?: string
31
32
  iconUpload1?: string
33
+ iconShow1?: boolean
32
34
  iconTitle2?: string
33
35
  iconType2?: 0 | 1
34
36
  iconName2?: string
@@ -39,6 +41,11 @@ export interface LcbUserOrderProps {
39
41
  iconName3?: string
40
42
  iconUpload3?: string
41
43
  iconShow3?: boolean
44
+ iconTitle4?: string
45
+ iconType4?: 0 | 1
46
+ iconName4?: string
47
+ iconUpload4?: string
48
+ iconShow4?: boolean
42
49
  iconTitle5?: string
43
50
  iconType5?: 0 | 1
44
51
  iconName5?: string
@@ -0,0 +1,28 @@
1
+ import { NumsItemProps } from '../types'
2
+ declare const _default: import('vue').DefineComponent<
3
+ __VLS_TypePropsToOption<NumsItemProps>,
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<NumsItemProps>>>,
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
+ }
@@ -54,8 +54,6 @@ declare const _default: import('vue').DefineComponent<
54
54
  {
55
55
  paddingTop: number
56
56
  paddingBottom: number
57
- paddingLeft: number
58
- paddingRight: number
59
57
  iconName: string
60
58
  textColor: string
61
59
  iconType: 0 | 1
@@ -1,8 +1,7 @@
1
1
  export interface LcbUserTopProps {
2
2
  paddingTop?: number
3
3
  paddingBottom?: number
4
- paddingLeft?: number
5
- paddingRight?: number
4
+ paddingHorizontal?: number
6
5
  photoUrl?: string
7
6
  photoRound?: boolean
8
7
  photoSize?: number
@@ -22,4 +21,19 @@ export interface LcbUserTopProps {
22
21
  valuesCard?: boolean
23
22
  coupons?: boolean
24
23
  presales?: boolean
24
+ memberPoints?: boolean
25
+ numsSize?: number
26
+ numsColor?: string
27
+ titleSize?: number
28
+ titleColor?: string
29
+ numsMarginTop?: number
30
+ numsPadLR?: number
31
+ }
32
+ export interface NumsItemProps {
33
+ numsSize?: number
34
+ numsColor?: string
35
+ titleSize?: number
36
+ titleColor?: string
37
+ value?: number
38
+ title?: string
25
39
  }
@@ -1 +1 @@
1
- export declare const transformValueUnit: (value?: number, uni?: string) => string | undefined
1
+ export declare const transformValueUnit: (value?: number, uni?: string) => string
@@ -1,3 +1,3 @@
1
1
  export const transformValueUnit = (value?: number, uni = 'rpx') => {
2
- return typeof value === 'number' ? value + uni : value
2
+ return typeof value === 'number' ? value + uni : '0rpx'
3
3
  }