@tplc/business 0.4.91 → 0.4.93
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 +34 -0
- package/components/lcb-action-view/lcb-action-view.vue +1 -2
- package/components/lcb-agreement-view/lcb-agreement-view.vue +1 -2
- package/components/lcb-button/lcb-button.vue +5 -4
- package/components/lcb-rich-text/lcb-rich-text.vue +5 -1
- package/components/lcb-title/lcb-title.vue +11 -0
- package/components/lcb-title/types.ts +4 -0
- package/components/lcb-vip/components/InfoDialog/index.vue +1 -2
- package/package.json +1 -1
- package/types/components/lcb-title/types.d.ts +3 -0
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,40 @@
|
|
|
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.4.93](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.4.85...v0.4.93) (2025-05-06)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### 🚀 Chore | 构建/工程依赖/工具
|
|
9
|
+
|
|
10
|
+
* **release:** 0.4.86 ([416e508](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/416e5084cc7fe91ac3bd27201eda28027e4ce7b6))
|
|
11
|
+
* **release:** 0.4.87 ([d1d32ca](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/d1d32ca85286418367c70f1f5c5f2933b69c358f))
|
|
12
|
+
* **release:** 0.4.88 ([bfb7500](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/bfb75004afa0b47aca4115a468d127c2049e14af))
|
|
13
|
+
* **release:** 0.4.89 ([d87ae1a](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/d87ae1a87f7138c08eba028dd3926f31a9b27f92))
|
|
14
|
+
* **release:** 0.4.90 ([b57342f](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/b57342f17e79532fdf84e376362b374ab8459673))
|
|
15
|
+
* **release:** 0.4.91 ([ce06293](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/ce062932e8a0526c85ec660e999357152fc11bdd))
|
|
16
|
+
* **release:** 0.4.92 ([6be6b53](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/6be6b53fd98e316f0e8095aecce447021bbfee5a))
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
### ✨ Features | 新功能
|
|
20
|
+
|
|
21
|
+
* nav 支持动态参数 ([996d6e7](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/996d6e762bdf73c65a6fa4f27146f0982cd63c74))
|
|
22
|
+
* notsyle ([a188815](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/a1888152e522c59a96d0ee54e091bd1ea75222b6))
|
|
23
|
+
* 支持依赖值反选 ([458c055](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/458c055285e156fce1f2c2df8276df85681cf02d))
|
|
24
|
+
* 支持图片 ([aa756b1](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/aa756b181a530f9748c56d631eebe0b04d2f847a))
|
|
25
|
+
* 新增nav ([3e05736](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/3e05736e996ae5e2e69cdf8e127f21386aa96c6e))
|
|
26
|
+
* 新增数据 ([d5bec0e](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/d5bec0eadb0854d2145ab9aa032c0cc558b1ef11))
|
|
27
|
+
* 新增配置title ([f51f370](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/f51f370c0528339cf98e759ddf06123192127ee3))
|
|
28
|
+
* 新增页面 ([82aaddd](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/82aaddda0c747c03af1ac59a89aff8eee70bbc25))
|
|
29
|
+
* 暂时支持template ([8d413fe](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/8d413fee8ea18d86167b733f66fea8a59eaf7c49))
|
|
30
|
+
* 跳转布局问题 ([1b5d4ba](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/1b5d4bab4a59318bae79fdd4a435b5a32208ddcf))
|
|
31
|
+
|
|
32
|
+
### [0.4.92](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.4.91...v0.4.92) (2025-05-05)
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
### ✨ Features | 新功能
|
|
36
|
+
|
|
37
|
+
* 新增nav ([3e05736](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/3e05736e996ae5e2e69cdf8e127f21386aa96c6e))
|
|
38
|
+
|
|
5
39
|
### [0.4.91](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.4.90...v0.4.91) (2025-05-05)
|
|
6
40
|
|
|
7
41
|
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
{{ title }}
|
|
40
40
|
</view>
|
|
41
41
|
<view class="p-3 max-h-50vh overflow-y-auto" v-if="content">
|
|
42
|
-
<
|
|
42
|
+
<lcb-rich-text :content="content" />
|
|
43
43
|
</view>
|
|
44
44
|
<view v-if="jumpType === 141" class="pt-6 pb-5 box-border flex-col-center gap-3">
|
|
45
45
|
<wd-qr-code :value="jumpUrl" :canvas-id="`id_${jumpUrl}`" :size="160" />
|
|
@@ -58,7 +58,6 @@
|
|
|
58
58
|
import { computed, ref, inject, Ref, onMounted } from 'vue'
|
|
59
59
|
import { LcbActionViewProps } from './types'
|
|
60
60
|
import { uploadFile } from '../../hooks/useUpload'
|
|
61
|
-
import mpHtml from 'mp-html/src/uni-app/components/mp-html/mp-html.vue'
|
|
62
61
|
import { getFinalUrl, onPageScrollSelector, getExposed } from '../../utils/utils'
|
|
63
62
|
import SharePopup from '../lcb-nav/SharePopup/index.vue'
|
|
64
63
|
import { useTranslate } from '@tplc/wot'
|
|
@@ -6,14 +6,13 @@
|
|
|
6
6
|
<view class="agreement-popup">
|
|
7
7
|
<view class="title">{{ data?.name }}</view>
|
|
8
8
|
<view class="max-h-60vh overflow-y-auto w-full">
|
|
9
|
-
<
|
|
9
|
+
<lcb-rich-text :content="data?.content" />
|
|
10
10
|
</view>
|
|
11
11
|
</view>
|
|
12
12
|
</wd-popup>
|
|
13
13
|
</template>
|
|
14
14
|
|
|
15
15
|
<script setup lang="ts">
|
|
16
|
-
import mpHtml from 'mp-html/src/uni-app/components/mp-html/mp-html.vue'
|
|
17
16
|
import { useRequest } from 'vue-hooks-plus'
|
|
18
17
|
import { getAgreementDetail } from './api'
|
|
19
18
|
import { ref } from 'vue'
|
|
@@ -39,6 +39,7 @@ import { computed, inject, Ref } from 'vue'
|
|
|
39
39
|
import { LcbButtonProps } from './types'
|
|
40
40
|
import { PAGE_PROVIDE_KEY } from '../../constants'
|
|
41
41
|
import { getFlexStyle, transformValueUnit } from '../../utils/transform'
|
|
42
|
+
import { get } from 'lodash-es'
|
|
42
43
|
defineOptions({
|
|
43
44
|
name: 'LcbButton',
|
|
44
45
|
options: {
|
|
@@ -61,9 +62,9 @@ const dynamicValue = computed(() => {
|
|
|
61
62
|
let value = ''
|
|
62
63
|
if (props.dynamicKey) {
|
|
63
64
|
if (props.keyFromUser) {
|
|
64
|
-
value = userStore?.userInfo
|
|
65
|
+
value = get(userStore?.userInfo, props.dynamicKey)
|
|
65
66
|
} else {
|
|
66
|
-
value = pageInfo.value
|
|
67
|
+
value = get(pageInfo.value, props.dynamicKey)
|
|
67
68
|
}
|
|
68
69
|
}
|
|
69
70
|
return value
|
|
@@ -76,9 +77,9 @@ const innerValue = computed(() => {
|
|
|
76
77
|
if (props.text && props.text.includes('${')) {
|
|
77
78
|
value = props.text.replace(/\$\{([^}]+)\}/g, (_, p) => {
|
|
78
79
|
if (props.keyFromUser) {
|
|
79
|
-
return userStore?.userInfo
|
|
80
|
+
return get(userStore?.userInfo, p) ?? props.textDefaultValue ?? ''
|
|
80
81
|
} else {
|
|
81
|
-
return pageInfo.value
|
|
82
|
+
return get(pageInfo.value, p) ?? props.textDefaultValue ?? ''
|
|
82
83
|
}
|
|
83
84
|
})
|
|
84
85
|
}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<lcb-block v-bind="$props">
|
|
3
|
-
<mp-html :content="
|
|
3
|
+
<mp-html :content="htmlContent" />
|
|
4
4
|
</lcb-block>
|
|
5
5
|
</template>
|
|
6
6
|
|
|
7
7
|
<script setup lang="ts">
|
|
8
|
+
import { computed } from 'vue'
|
|
8
9
|
import { LcbRichTextProps } from './types'
|
|
9
10
|
import mpHtml from 'mp-html/src/uni-app/components/mp-html/mp-html.vue'
|
|
10
11
|
defineOptions({
|
|
@@ -16,6 +17,9 @@ defineOptions({
|
|
|
16
17
|
},
|
|
17
18
|
})
|
|
18
19
|
const props = withDefaults(defineProps<LcbRichTextProps>(), {})
|
|
20
|
+
const htmlContent = computed(() => {
|
|
21
|
+
return props.content?.replace(/<p>\s*<\/p>/g, '<br/>')
|
|
22
|
+
})
|
|
19
23
|
</script>
|
|
20
24
|
|
|
21
25
|
<style lang="scss" scoped></style>
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
v-bind="{
|
|
4
4
|
...$props,
|
|
5
5
|
}"
|
|
6
|
+
v-if="showTitle"
|
|
6
7
|
>
|
|
7
8
|
<lcb-action-view :customClass="`!flex ${justify} !leading-none`" v-bind="action">
|
|
8
9
|
<view
|
|
@@ -64,6 +65,7 @@
|
|
|
64
65
|
import { LcbTitleProps } from './types'
|
|
65
66
|
import { transformValueUnit } from '../../utils/transform'
|
|
66
67
|
import { computed, inject } from 'vue'
|
|
68
|
+
import { get } from 'lodash-es'
|
|
67
69
|
const themeColor = inject('theme-color', '#3875FF')
|
|
68
70
|
defineOptions({
|
|
69
71
|
name: 'LcbTitle',
|
|
@@ -97,4 +99,13 @@ const props = withDefaults(defineProps<LcbTitleProps>(), {
|
|
|
97
99
|
const customStyle = computed(() => {
|
|
98
100
|
return props.iconRight ? `margin-right:${transformValueUnit(props.iconRight)}` : ''
|
|
99
101
|
})
|
|
102
|
+
const showTitle = computed(() => {
|
|
103
|
+
if (props.visibleKeyFromUser) {
|
|
104
|
+
const userInfo = uni.$lcb.userStore?.()?.userInfo
|
|
105
|
+
return props.visibleKeyReverse
|
|
106
|
+
? !get(userInfo, props.visibleKeyFromUser)
|
|
107
|
+
: get(userInfo, props.visibleKeyFromUser)
|
|
108
|
+
}
|
|
109
|
+
return true
|
|
110
|
+
})
|
|
100
111
|
</script>
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
>
|
|
8
8
|
<view class="pop-view flex justify-center flex-col items-center" v-if="modelValue">
|
|
9
9
|
<view class="text-4 mb-4 font-500">{{ modelValue.userRightsTitle }}</view>
|
|
10
|
-
<
|
|
10
|
+
<lcb-rich-text :content="modelValue.userRightsContent" v-if="modelValue.userRightsContent" />
|
|
11
11
|
<wd-qr-code
|
|
12
12
|
custom-class="!mt-5"
|
|
13
13
|
:size="130"
|
|
@@ -38,7 +38,6 @@
|
|
|
38
38
|
</template>
|
|
39
39
|
|
|
40
40
|
<script setup lang="ts">
|
|
41
|
-
import mpHtml from 'mp-html/src/uni-app/components/mp-html/mp-html.vue'
|
|
42
41
|
import { ref, watch } from 'vue'
|
|
43
42
|
import { UserLevelRightsList } from '../../api'
|
|
44
43
|
const show = ref(false)
|
package/package.json
CHANGED