@tplc/business 0.0.64 → 0.0.66
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 +14 -0
- package/components/lcb-title/lcb-title.vue +32 -6
- package/components/lcb-title/types.ts +11 -3
- package/components/lcb-vip/components/InfoDialog/index.vue +6 -4
- package/components/lcb-vip/lcb-vip.vue +1 -1
- package/package.json +2 -2
- package/types/components/lcb-title/lcb-title.vue.d.ts +18 -0
- package/types/components/lcb-title/types.d.ts +9 -3
- package/types/components/lcb-vip/components/InfoDialog/index.vue.d.ts +2 -0
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,20 @@
|
|
|
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.66](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.1.28...v0.0.66) (2024-11-21)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### ✨ Features | 新功能
|
|
9
|
+
|
|
10
|
+
* wd-qr-code 新增class 调整项 ([ff1d67c](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/ff1d67cf638dcf29371d071203f087bdd3994282))
|
|
11
|
+
|
|
12
|
+
### [0.0.65](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.0.64...v0.0.65) (2024-11-21)
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### 🐛 Bug Fixes | Bug 修复
|
|
16
|
+
|
|
17
|
+
* lcb-vip 调整地址调整 ([08547c0](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/08547c0bf975af2adb65e4e1effdb132149803e3))
|
|
18
|
+
|
|
5
19
|
### [0.0.64](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.0.63...v0.0.64) (2024-11-21)
|
|
6
20
|
|
|
7
21
|
|
|
@@ -4,24 +4,44 @@
|
|
|
4
4
|
...$props,
|
|
5
5
|
}"
|
|
6
6
|
>
|
|
7
|
-
<lcb-action-view :customClass="`!flex
|
|
8
|
-
<
|
|
7
|
+
<lcb-action-view :customClass="`!flex ${justify} !leading-none`" v-bind="action">
|
|
8
|
+
<view
|
|
9
9
|
:style="{
|
|
10
10
|
fontWeight,
|
|
11
11
|
}"
|
|
12
12
|
>
|
|
13
13
|
{{ title }}
|
|
14
|
-
</
|
|
15
|
-
<
|
|
14
|
+
</view>
|
|
15
|
+
<view
|
|
16
|
+
class="ml-3"
|
|
17
|
+
v-if="hint"
|
|
18
|
+
:style="{
|
|
19
|
+
fontSize: transformValueUnit(hintFontSize),
|
|
20
|
+
color: hintColor,
|
|
21
|
+
alignSelf: hintVerticalAlign,
|
|
22
|
+
}"
|
|
23
|
+
>
|
|
16
24
|
{{ hint }}
|
|
17
|
-
</
|
|
18
|
-
<
|
|
25
|
+
</view>
|
|
26
|
+
<view
|
|
27
|
+
v-if="moreText"
|
|
28
|
+
class="flex-1 flex justify-end items-center"
|
|
29
|
+
:style="{
|
|
30
|
+
fontSize: transformValueUnit(moreFontSize),
|
|
31
|
+
color: moreColor,
|
|
32
|
+
alignSelf: moreVerticalAlign,
|
|
33
|
+
}"
|
|
34
|
+
>
|
|
35
|
+
更多
|
|
36
|
+
<wd-icon name="xiangyou" classPrefix="lcb" :size="transformValueUnit(moreFontSize)" />
|
|
37
|
+
</view>
|
|
19
38
|
</lcb-action-view>
|
|
20
39
|
</lcb-block>
|
|
21
40
|
</template>
|
|
22
41
|
|
|
23
42
|
<script setup lang="ts">
|
|
24
43
|
import { LcbTitleProps } from './types'
|
|
44
|
+
import { transformValueUnit } from '../../utils/transform'
|
|
25
45
|
defineOptions({
|
|
26
46
|
name: 'LcbTitle',
|
|
27
47
|
options: {
|
|
@@ -37,6 +57,12 @@ withDefaults(defineProps<LcbTitleProps>(), {
|
|
|
37
57
|
color: '#333',
|
|
38
58
|
title: '标题',
|
|
39
59
|
justify: 'justify-start',
|
|
60
|
+
moreFontSize: 24,
|
|
61
|
+
moreColor: '#999',
|
|
62
|
+
moreVerticalAlign: 'center',
|
|
63
|
+
hintFontSize: 24,
|
|
64
|
+
hintColor: '#666',
|
|
65
|
+
hintVerticalAlign: 'end',
|
|
40
66
|
})
|
|
41
67
|
</script>
|
|
42
68
|
<style lang="scss" scoped></style>
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
import { LcbActionViewProps } from '../lcb-action-view/types'
|
|
2
2
|
import { LcbBlockProps } from '../lcb-block/types'
|
|
3
3
|
export interface LcbTitleProps extends LcbBlockProps {
|
|
4
|
-
title: string
|
|
5
4
|
/** 副标题 */
|
|
6
|
-
|
|
5
|
+
title: string
|
|
7
6
|
fontWeight?: number
|
|
8
|
-
showMore?: boolean
|
|
9
7
|
action?: LcbActionViewProps
|
|
10
8
|
justify?:
|
|
11
9
|
| 'justify-start'
|
|
@@ -13,4 +11,14 @@ export interface LcbTitleProps extends LcbBlockProps {
|
|
|
13
11
|
| 'justify-center'
|
|
14
12
|
| 'justify-between'
|
|
15
13
|
| 'justify-around'
|
|
14
|
+
|
|
15
|
+
hint?: string
|
|
16
|
+
hintColor?: string
|
|
17
|
+
hintFontSize?: number
|
|
18
|
+
hintVerticalAlign?: 'end' | 'center'
|
|
19
|
+
|
|
20
|
+
moreColor?: string
|
|
21
|
+
moreFontSize?: number
|
|
22
|
+
moreText?: string
|
|
23
|
+
moreVerticalAlign?: 'end' | 'center'
|
|
16
24
|
}
|
|
@@ -4,19 +4,19 @@
|
|
|
4
4
|
<view class="text-4 mb-4 font-500">{{ data.userRightsTitle }}</view>
|
|
5
5
|
<mp-html :content="data.userRightsContent" v-if="data.userRightsContent" />
|
|
6
6
|
<wd-qr-code
|
|
7
|
-
custom-class="!mt-
|
|
8
|
-
:size="
|
|
7
|
+
custom-class="!mt-5"
|
|
8
|
+
:size="130"
|
|
9
9
|
canvasId="qrCode"
|
|
10
10
|
:value="data.qrCode"
|
|
11
11
|
v-if="data.qrCode"
|
|
12
12
|
/>
|
|
13
|
-
<view class="text-3 text-#969696 mt-
|
|
13
|
+
<view class="text-3 text-#969696 mt-3.5" v-if="data.qrCodeTips">{{ data.qrCodeTips }}</view>
|
|
14
14
|
<wd-button
|
|
15
15
|
type="primary"
|
|
16
16
|
plain
|
|
17
17
|
custom-class="!rounded-10rpx !mt-4 "
|
|
18
18
|
@click="onDrawdown"
|
|
19
|
-
v-if="['voucher', 'cashVoucher'].includes(data.userRightsType)"
|
|
19
|
+
v-if="['voucher', 'cashVoucher'].includes(data.userRightsType) && !hiddenDrawdown"
|
|
20
20
|
>
|
|
21
21
|
{{ translate('领取') }}
|
|
22
22
|
</wd-button>
|
|
@@ -33,6 +33,7 @@ const { translate } = useTranslate()
|
|
|
33
33
|
const show = ref(false)
|
|
34
34
|
const props = defineProps<{
|
|
35
35
|
data?: UserLevelRightsList
|
|
36
|
+
hiddenDrawdown?: boolean
|
|
36
37
|
}>()
|
|
37
38
|
watch(
|
|
38
39
|
() => props.data,
|
|
@@ -53,5 +54,6 @@ const onDrawdown = () => {
|
|
|
53
54
|
color: #000000;
|
|
54
55
|
background: #ffffff;
|
|
55
56
|
border-radius: 40rpx;
|
|
57
|
+
box-sizing: border-box;
|
|
56
58
|
}
|
|
57
59
|
</style>
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
<wd-icon classPrefix="lcb" name="xiangyou" size="24rpx" />
|
|
24
24
|
</view>
|
|
25
25
|
<view
|
|
26
|
-
class="absolute text-2.5 w-662rpx leading-8 bottom-2.5 left-2.5 flex items-center gap-0.5"
|
|
26
|
+
class="absolute text-2.5 w-662rpx leading-8 bottom-2.5 left-2.5 flex items-center gap-0.5 px-2.5 box-border"
|
|
27
27
|
@click="navigateTo('/pages-sub/vip/upgrade-guide')"
|
|
28
28
|
>
|
|
29
29
|
<view class="flex-1 truncate">
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tplc/business",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.66",
|
|
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.28"
|
|
15
15
|
},
|
|
16
16
|
"engines": {
|
|
17
17
|
"node": ">=18",
|
|
@@ -9,6 +9,12 @@ declare const _default: import('vue').DefineComponent<
|
|
|
9
9
|
color: string
|
|
10
10
|
title: string
|
|
11
11
|
justify: string
|
|
12
|
+
moreFontSize: number
|
|
13
|
+
moreColor: string
|
|
14
|
+
moreVerticalAlign: string
|
|
15
|
+
hintFontSize: number
|
|
16
|
+
hintColor: string
|
|
17
|
+
hintVerticalAlign: string
|
|
12
18
|
}
|
|
13
19
|
>,
|
|
14
20
|
{},
|
|
@@ -31,6 +37,12 @@ declare const _default: import('vue').DefineComponent<
|
|
|
31
37
|
color: string
|
|
32
38
|
title: string
|
|
33
39
|
justify: string
|
|
40
|
+
moreFontSize: number
|
|
41
|
+
moreColor: string
|
|
42
|
+
moreVerticalAlign: string
|
|
43
|
+
hintFontSize: number
|
|
44
|
+
hintColor: string
|
|
45
|
+
hintVerticalAlign: string
|
|
34
46
|
}
|
|
35
47
|
>
|
|
36
48
|
>
|
|
@@ -47,6 +59,12 @@ declare const _default: import('vue').DefineComponent<
|
|
|
47
59
|
| 'justify-between'
|
|
48
60
|
| 'justify-around'
|
|
49
61
|
fontWeight: number
|
|
62
|
+
hintColor: string
|
|
63
|
+
hintFontSize: number
|
|
64
|
+
hintVerticalAlign: 'end' | 'center'
|
|
65
|
+
moreColor: string
|
|
66
|
+
moreFontSize: number
|
|
67
|
+
moreVerticalAlign: 'end' | 'center'
|
|
50
68
|
},
|
|
51
69
|
{}
|
|
52
70
|
>
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
import { LcbActionViewProps } from '../lcb-action-view/types'
|
|
2
2
|
import { LcbBlockProps } from '../lcb-block/types'
|
|
3
3
|
export interface LcbTitleProps extends LcbBlockProps {
|
|
4
|
-
title: string
|
|
5
4
|
/** 副标题 */
|
|
6
|
-
|
|
5
|
+
title: string
|
|
7
6
|
fontWeight?: number
|
|
8
|
-
showMore?: boolean
|
|
9
7
|
action?: LcbActionViewProps
|
|
10
8
|
justify?:
|
|
11
9
|
| 'justify-start'
|
|
@@ -13,4 +11,12 @@ export interface LcbTitleProps extends LcbBlockProps {
|
|
|
13
11
|
| 'justify-center'
|
|
14
12
|
| 'justify-between'
|
|
15
13
|
| 'justify-around'
|
|
14
|
+
hint?: string
|
|
15
|
+
hintColor?: string
|
|
16
|
+
hintFontSize?: number
|
|
17
|
+
hintVerticalAlign?: 'end' | 'center'
|
|
18
|
+
moreColor?: string
|
|
19
|
+
moreFontSize?: number
|
|
20
|
+
moreText?: string
|
|
21
|
+
moreVerticalAlign?: 'end' | 'center'
|
|
16
22
|
}
|
|
@@ -2,6 +2,7 @@ import { UserLevelRightsList } from '../../api'
|
|
|
2
2
|
declare const _default: import('vue').DefineComponent<
|
|
3
3
|
__VLS_TypePropsToOption<{
|
|
4
4
|
data?: UserLevelRightsList
|
|
5
|
+
hiddenDrawdown?: boolean
|
|
5
6
|
}>,
|
|
6
7
|
{},
|
|
7
8
|
unknown,
|
|
@@ -16,6 +17,7 @@ declare const _default: import('vue').DefineComponent<
|
|
|
16
17
|
import('vue').ExtractPropTypes<
|
|
17
18
|
__VLS_TypePropsToOption<{
|
|
18
19
|
data?: UserLevelRightsList
|
|
20
|
+
hiddenDrawdown?: boolean
|
|
19
21
|
}>
|
|
20
22
|
>
|
|
21
23
|
>,
|