@tplc/business 0.3.53 → 0.3.54
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 +7 -0
- package/components/lcb-action-view/lcb-action-view.vue +13 -0
- 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-operation-actions/IconActionView.vue.d.ts +2 -0
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,13 @@
|
|
|
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.54](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.1.61...v0.3.54) (2025-02-19)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### ✨ Features | 新功能
|
|
9
|
+
|
|
10
|
+
* 修改collapse viewmore hidden 样式 ([d366f1c](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/d366f1c423edb89a59546d2f5803df8d4f77f785))
|
|
11
|
+
|
|
5
12
|
### [0.3.53](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.3.52...v0.3.53) (2025-02-17)
|
|
6
13
|
|
|
7
14
|
|
|
@@ -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
|
|
@@ -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.54",
|
|
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",
|
|
@@ -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
|
{},
|