@tplc/business 0.3.53 → 0.3.55
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 +31 -0
- package/components/lcb-action-view/lcb-action-view.vue +18 -1
- package/components/lcb-action-view/types.ts +2 -1
- package/components/lcb-operation-actions/BtnViews.vue +1 -0
- package/components/lcb-operation-actions/IconActionView.vue +11 -2
- package/components/lcb-operation-actions/lcb-operation-actions.vue +9 -1
- package/package.json +2 -2
- package/types/components/lcb-action-view/types.d.ts +2 -1
- package/types/components/lcb-operation-actions/IconActionView.vue.d.ts +2 -0
- package/utils/utils.ts +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,37 @@
|
|
|
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.3.55](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.3.49...v0.3.55) (2025-02-20)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### 🚀 Chore | 构建/工程依赖/工具
|
|
9
|
+
|
|
10
|
+
* **release:** 0.1.61 ([db6aaa3](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/db6aaa33beaa34a27285added8d94aa10f3a26da))
|
|
11
|
+
* **release:** 0.3.50 ([990e043](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/990e043fa2556ceeac9789823f12231d3f63fe22))
|
|
12
|
+
* **release:** 0.3.51 ([d32817b](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/d32817b1dc05971f680d1203cdec927ae3714ca9))
|
|
13
|
+
* **release:** 0.3.52 ([11a1487](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/11a1487b0fe414c742f589323c790ed6daf0b36d))
|
|
14
|
+
* **release:** 0.3.53 ([462f2d0](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/462f2d0703bf3d2f67e550c470e7a2c148efbdbb))
|
|
15
|
+
* **release:** 0.3.54 ([6b16cff](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/6b16cff1d635eec4aee009e029d9cba813fbf486))
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
### ✨ Features | 新功能
|
|
19
|
+
|
|
20
|
+
* cancel ([f63cd15](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/f63cd1541dac3a592233eb6479012d7869fde91d))
|
|
21
|
+
* map 初始化 ([4793f89](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/4793f89a6565eea9d089038627ca9fb49453c856))
|
|
22
|
+
* 二维码权限 ([93bc3ff](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/93bc3ff12f3b8db6b6a2e50355ce90501b362d86))
|
|
23
|
+
* 修改collapse viewmore hidden 样式 ([d366f1c](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/d366f1c423edb89a59546d2f5803df8d4f77f785))
|
|
24
|
+
* 同步字段 ([b34ceb2](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/b34ceb2c7d7bea820c31ebdfd0a98d8971647e09))
|
|
25
|
+
* 新增mapcatch ([cfa54e0](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/cfa54e0fc77933171a5dd2ae49a083f6cb990516))
|
|
26
|
+
* 新增popup safe判断 ([539a081](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/539a08168621193a6435431f5b4277875a50efe0))
|
|
27
|
+
* 比例尺调整 ([835e7c2](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/835e7c23faa7dea09697d9446c8a2ea1afa8bd42))
|
|
28
|
+
|
|
29
|
+
### [0.3.54](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.1.61...v0.3.54) (2025-02-19)
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
### ✨ Features | 新功能
|
|
33
|
+
|
|
34
|
+
* 修改collapse viewmore hidden 样式 ([d366f1c](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/d366f1c423edb89a59546d2f5803df8d4f77f785))
|
|
35
|
+
|
|
5
36
|
### [0.3.53](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.3.52...v0.3.53) (2025-02-17)
|
|
6
37
|
|
|
7
38
|
|
|
@@ -48,7 +48,7 @@ import { computed, ref } from 'vue'
|
|
|
48
48
|
import { LcbActionViewProps } from './types'
|
|
49
49
|
import { uploadFile } from '../../hooks/useUpload'
|
|
50
50
|
import mpHtml from 'mp-html/src/uni-app/components/mp-html/mp-html.vue'
|
|
51
|
-
import { getFinalUrl, onPageScrollSelector } from '../../utils/utils'
|
|
51
|
+
import { getFinalUrl, onPageScrollSelector, getExposed } from '../../utils/utils'
|
|
52
52
|
import SharePopup from '../lcb-nav/SharePopup/index.vue'
|
|
53
53
|
import { useTranslate } from '@tplc/wot'
|
|
54
54
|
const { translate } = useTranslate()
|
|
@@ -67,6 +67,7 @@ const emits = defineEmits<{
|
|
|
67
67
|
(e: 'avatar', value: string): void
|
|
68
68
|
(e: 'click', value: void): void
|
|
69
69
|
(e: 'refresh', value: void): void
|
|
70
|
+
(e: 'nav', value: void): void
|
|
70
71
|
}>()
|
|
71
72
|
|
|
72
73
|
const show = ref(false)
|
|
@@ -95,6 +96,7 @@ const onActionClick = async () => {
|
|
|
95
96
|
uni.navigateTo({
|
|
96
97
|
url: `${uni.$lcb.internalPages.webview}?url=${encodeURIComponent(url)}`,
|
|
97
98
|
})
|
|
99
|
+
emits('nav')
|
|
98
100
|
break
|
|
99
101
|
/** 小程序内页 */
|
|
100
102
|
case 2:
|
|
@@ -103,6 +105,7 @@ const onActionClick = async () => {
|
|
|
103
105
|
url,
|
|
104
106
|
})
|
|
105
107
|
}
|
|
108
|
+
emits('nav')
|
|
106
109
|
break
|
|
107
110
|
/** 跳转小程序 */
|
|
108
111
|
case 10:
|
|
@@ -112,6 +115,7 @@ const onActionClick = async () => {
|
|
|
112
115
|
path: url,
|
|
113
116
|
})
|
|
114
117
|
}
|
|
118
|
+
emits('nav')
|
|
115
119
|
break
|
|
116
120
|
/** 跳转半屏小程序 */
|
|
117
121
|
case 11:
|
|
@@ -121,6 +125,7 @@ const onActionClick = async () => {
|
|
|
121
125
|
path: url,
|
|
122
126
|
})
|
|
123
127
|
}
|
|
128
|
+
emits('nav')
|
|
124
129
|
break
|
|
125
130
|
/** 退出登录 */
|
|
126
131
|
case 13:
|
|
@@ -134,6 +139,7 @@ const onActionClick = async () => {
|
|
|
134
139
|
if (url) {
|
|
135
140
|
onPageScrollSelector(url)
|
|
136
141
|
}
|
|
142
|
+
|
|
137
143
|
break
|
|
138
144
|
case 17:
|
|
139
145
|
if (props.requestInfo)
|
|
@@ -147,6 +153,7 @@ const onActionClick = async () => {
|
|
|
147
153
|
url,
|
|
148
154
|
})
|
|
149
155
|
}
|
|
156
|
+
emits('nav')
|
|
150
157
|
break
|
|
151
158
|
/** 切换TAB页 */
|
|
152
159
|
case 22:
|
|
@@ -155,6 +162,7 @@ const onActionClick = async () => {
|
|
|
155
162
|
url,
|
|
156
163
|
})
|
|
157
164
|
}
|
|
165
|
+
emits('nav')
|
|
158
166
|
break
|
|
159
167
|
/** 重启进入某页面 */
|
|
160
168
|
case 23:
|
|
@@ -163,14 +171,17 @@ const onActionClick = async () => {
|
|
|
163
171
|
url,
|
|
164
172
|
})
|
|
165
173
|
}
|
|
174
|
+
emits('nav')
|
|
166
175
|
break
|
|
167
176
|
/** 回到上一层 */
|
|
168
177
|
case 24:
|
|
169
178
|
uni.navigateBack({})
|
|
179
|
+
emits('nav')
|
|
170
180
|
break
|
|
171
181
|
/** 关闭当前页面 */
|
|
172
182
|
case 25:
|
|
173
183
|
uni.navigateBack({})
|
|
184
|
+
emits('nav')
|
|
174
185
|
break
|
|
175
186
|
/** 关闭当前窗口 */
|
|
176
187
|
case 26:
|
|
@@ -179,6 +190,7 @@ const onActionClick = async () => {
|
|
|
179
190
|
url,
|
|
180
191
|
})
|
|
181
192
|
}
|
|
193
|
+
emits('nav')
|
|
182
194
|
break
|
|
183
195
|
/** 拨打电话 */
|
|
184
196
|
case 30:
|
|
@@ -189,6 +201,7 @@ const onActionClick = async () => {
|
|
|
189
201
|
break
|
|
190
202
|
case 105:
|
|
191
203
|
if (props.addressInfo) uni.openLocation(props.addressInfo)
|
|
204
|
+
emits('nav')
|
|
192
205
|
break
|
|
193
206
|
case 106:
|
|
194
207
|
showPoster.value = true
|
|
@@ -196,6 +209,10 @@ const onActionClick = async () => {
|
|
|
196
209
|
case 141:
|
|
197
210
|
show.value = true
|
|
198
211
|
break
|
|
212
|
+
case 241:
|
|
213
|
+
getExposed?.()?.reload?.()
|
|
214
|
+
uni.navigateBack()
|
|
215
|
+
break
|
|
199
216
|
default:
|
|
200
217
|
emits('click')
|
|
201
218
|
break
|
|
@@ -13,7 +13,7 @@ export type LcbActionViewProps = {
|
|
|
13
13
|
* 13: 退出登录 14: 小程序弹框 16: 小程序锚点 17 网络请求 21: 新窗口跳到页面 22: 切换TAB页 23: 重启进入某页面
|
|
14
14
|
* 24: 回到上一层 25: 关闭当前页面 26: 关闭当前窗口 30: 拨打电话
|
|
15
15
|
* 88: 授权手机号 101 用户头像 102 分享 103 意见反馈 104 打开授权设置页
|
|
16
|
-
* 105 查看地图 106 查看地图 141 二维码
|
|
16
|
+
* 105 查看地图 106 查看地图 141 二维码 241 返回并刷新上个页面
|
|
17
17
|
*/
|
|
18
18
|
jumpType?:
|
|
19
19
|
| 1
|
|
@@ -36,6 +36,7 @@ export type LcbActionViewProps = {
|
|
|
36
36
|
| 102
|
|
37
37
|
| 103
|
|
38
38
|
| 104
|
|
39
|
+
| 241
|
|
39
40
|
|
|
40
41
|
/** 小程序appid */
|
|
41
42
|
jumpAppid?: string
|
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<lcb-action-view
|
|
2
|
+
<lcb-action-view
|
|
3
|
+
v-bind="$props"
|
|
4
|
+
@refresh="$emit('refresh')"
|
|
5
|
+
@click="handleClick"
|
|
6
|
+
v-if="!popover"
|
|
7
|
+
@nav="$emit('cancel')"
|
|
8
|
+
>
|
|
3
9
|
<IconView :icon="icon" :iconName="iconName" :iconNameColor="iconNameColor" />
|
|
4
10
|
</lcb-action-view>
|
|
5
11
|
<IconView :icon="icon" :iconName="iconName" :iconNameColor="iconNameColor" v-else />
|
|
@@ -28,7 +34,7 @@ const props = defineProps<{
|
|
|
28
34
|
}
|
|
29
35
|
popover?: boolean
|
|
30
36
|
}>()
|
|
31
|
-
const emits = defineEmits(['refresh'])
|
|
37
|
+
const emits = defineEmits(['refresh', 'cancel'])
|
|
32
38
|
const current = ref(props.confirmFlag)
|
|
33
39
|
/** 如果icon是数组那就是类似收藏场景 按钮需要内部切换 */
|
|
34
40
|
const isIconList = props.iconUrl?.includes('[')
|
|
@@ -47,6 +53,9 @@ const handleClick = async () => {
|
|
|
47
53
|
...props.requestInfo.requestParams,
|
|
48
54
|
confirmFlag: current.value,
|
|
49
55
|
})
|
|
56
|
+
emits('refresh')
|
|
57
|
+
} else {
|
|
58
|
+
emits('cancel')
|
|
50
59
|
}
|
|
51
60
|
}
|
|
52
61
|
</script>
|
|
@@ -18,13 +18,20 @@
|
|
|
18
18
|
v-bind="child"
|
|
19
19
|
:key="child.content"
|
|
20
20
|
@click="link({ item: child }, index)"
|
|
21
|
+
@nav="$emit('cancel')"
|
|
21
22
|
>
|
|
22
23
|
{{ child.content }}
|
|
23
24
|
</lcb-action-view>
|
|
24
25
|
</view>
|
|
25
26
|
</template>
|
|
26
27
|
</wd-popover>
|
|
27
|
-
<IconActionView
|
|
28
|
+
<IconActionView
|
|
29
|
+
v-bind="item"
|
|
30
|
+
v-else
|
|
31
|
+
@refresh="$emit('refresh')"
|
|
32
|
+
@cancel="$emit('cancel')"
|
|
33
|
+
ref="popverRef"
|
|
34
|
+
/>
|
|
28
35
|
</block>
|
|
29
36
|
<view class="flex-1" v-if="!noIcons"></view>
|
|
30
37
|
<BtnViews
|
|
@@ -83,6 +90,7 @@ function link({ item }: { item: IPageBtn }, index: number) {
|
|
|
83
90
|
uni.navigateTo({
|
|
84
91
|
url: item.jumpUrl,
|
|
85
92
|
})
|
|
93
|
+
emits('cancel')
|
|
86
94
|
}
|
|
87
95
|
}
|
|
88
96
|
</script>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tplc/business",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.55",
|
|
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.61"
|
|
15
15
|
},
|
|
16
16
|
"engines": {
|
|
17
17
|
"node": ">=18",
|
|
@@ -12,7 +12,7 @@ export type LcbActionViewProps = {
|
|
|
12
12
|
* 13: 退出登录 14: 小程序弹框 16: 小程序锚点 17 网络请求 21: 新窗口跳到页面 22: 切换TAB页 23: 重启进入某页面
|
|
13
13
|
* 24: 回到上一层 25: 关闭当前页面 26: 关闭当前窗口 30: 拨打电话
|
|
14
14
|
* 88: 授权手机号 101 用户头像 102 分享 103 意见反馈 104 打开授权设置页
|
|
15
|
-
* 105 查看地图 106 查看地图 141 二维码
|
|
15
|
+
* 105 查看地图 106 查看地图 141 二维码 241 返回并刷新上个页面
|
|
16
16
|
*/
|
|
17
17
|
jumpType?:
|
|
18
18
|
| 1
|
|
@@ -35,6 +35,7 @@ export type LcbActionViewProps = {
|
|
|
35
35
|
| 102
|
|
36
36
|
| 103
|
|
37
37
|
| 104
|
|
38
|
+
| 241
|
|
38
39
|
/** 小程序appid */
|
|
39
40
|
jumpAppid?: string
|
|
40
41
|
/** 手机号 */
|
|
@@ -17,6 +17,7 @@ declare const _default: import('vue').DefineComponent<
|
|
|
17
17
|
import('vue').ComponentOptionsMixin,
|
|
18
18
|
import('vue').ComponentOptionsMixin,
|
|
19
19
|
{
|
|
20
|
+
cancel: (...args: any[]) => void
|
|
20
21
|
refresh: (...args: any[]) => void
|
|
21
22
|
},
|
|
22
23
|
string,
|
|
@@ -36,6 +37,7 @@ declare const _default: import('vue').DefineComponent<
|
|
|
36
37
|
}>
|
|
37
38
|
>
|
|
38
39
|
> & {
|
|
40
|
+
onCancel?: ((...args: any[]) => any) | undefined
|
|
39
41
|
onRefresh?: ((...args: any[]) => any) | undefined
|
|
40
42
|
},
|
|
41
43
|
{},
|
package/utils/utils.ts
CHANGED
|
@@ -14,7 +14,7 @@ export function formatJson(str: string | object | undefined, defVal = {}) {
|
|
|
14
14
|
export const getExposed = () => {
|
|
15
15
|
const pages = getCurrentPages()
|
|
16
16
|
const page = pages[pages.length - 2]
|
|
17
|
-
return page
|
|
17
|
+
return page?.$vm?.$?.exposed
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
export const getCurrentPage = () => {
|