@tplc/business 0.4.115 → 0.4.117
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 -8
- package/components/lcb-button/lcb-button.vue +11 -1
- package/components/lcb-button/types.ts +1 -0
- package/components/lcb-search/lcb-search.vue +8 -0
- package/package.json +1 -1
- package/types/components/lcb-button/lcb-button.vue.d.ts +3 -0
- package/types/components/lcb-button/types.d.ts +1 -0
package/CHANGELOG.md
CHANGED
|
@@ -2,21 +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.4.
|
|
5
|
+
### [0.4.117](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.4.116...v0.4.117) (2025-05-15)
|
|
6
6
|
|
|
7
|
+
### [0.4.116](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.4.115...v0.4.116) (2025-05-15)
|
|
7
8
|
|
|
8
|
-
### 🚀 Chore | 构建/工程依赖/工具
|
|
9
9
|
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
### ✨ Features | 新功能
|
|
11
|
+
|
|
12
|
+
* 新增button enablePreview ([ab91670](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/ab91670293731aa12ce7f76a6dc2e8f63c77a3dd))
|
|
13
|
+
|
|
14
|
+
### [0.4.115](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.4.114...v0.4.115) (2025-05-15)
|
|
12
15
|
|
|
13
16
|
|
|
14
17
|
### ✨ Features | 新功能
|
|
15
18
|
|
|
16
|
-
* history 根据productName唯一 ([27149ba](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/27149ba0de8dd19cb84be79703d9915222634a99))
|
|
17
|
-
* propmt ([7904ba7](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/7904ba753b23dd38ca995c64a2a9c269ad9c95de))
|
|
18
|
-
* wec ([86e30e1](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/86e30e1b610da8c4441b264cf2e0cefe35739af6))
|
|
19
|
-
* 动态参数抽离 ([0082963](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/008296339ba898c05f241c8e78f54ddb39214f8b))
|
|
20
19
|
* 动态图片跳转 ([2061cc9](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/2061cc92205af00523e94825b3aef32102fabe17))
|
|
21
20
|
|
|
22
21
|
### [0.4.114](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.4.113...v0.4.114) (2025-05-14)
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
...innerItemStyle,
|
|
17
17
|
}"
|
|
18
18
|
>
|
|
19
|
-
<lcb-action-view v-bind="actionProps" @avatar="onAvatar">
|
|
19
|
+
<lcb-action-view v-bind="actionProps" @avatar="onAvatar" @click="handleClick">
|
|
20
20
|
<view class="!flex items-center justify-center" :style="`gap: ${iconGap}rpx`">
|
|
21
21
|
<wd-icon
|
|
22
22
|
v-if="icon"
|
|
@@ -61,6 +61,7 @@ const props = withDefaults(defineProps<LcbButtonProps>(), {
|
|
|
61
61
|
color: '#ffffff',
|
|
62
62
|
backgroundColor: 'var(--wot-color-theme)',
|
|
63
63
|
hideWhenDynamicKeyNotExist: false,
|
|
64
|
+
enablePreview: false,
|
|
64
65
|
iconGap: 4,
|
|
65
66
|
iconSize: 24,
|
|
66
67
|
})
|
|
@@ -78,6 +79,15 @@ const dynamicValue = computed(() => {
|
|
|
78
79
|
}
|
|
79
80
|
return value
|
|
80
81
|
})
|
|
82
|
+
|
|
83
|
+
const handleClick = () => {
|
|
84
|
+
if (props.mode === 'image' && innerValue.value && props.enablePreview) {
|
|
85
|
+
uni.previewImage({
|
|
86
|
+
urls: [innerValue.value],
|
|
87
|
+
current: innerValue.value,
|
|
88
|
+
})
|
|
89
|
+
}
|
|
90
|
+
}
|
|
81
91
|
const innerValue = computed(() => {
|
|
82
92
|
if (props.mode === 'image') {
|
|
83
93
|
return dynamicValue.value || props.url
|
|
@@ -193,6 +193,14 @@ const onSearch = async () => {
|
|
|
193
193
|
productName: form?.value?.keywords || '',
|
|
194
194
|
} as unknown as ProductInfo)
|
|
195
195
|
} else {
|
|
196
|
+
if (form?.value?.keywords) {
|
|
197
|
+
searchHistoryRef.value?.saveHistory({
|
|
198
|
+
link: {
|
|
199
|
+
jumpUrl: `/pages/lowcode/lowcode?pageType=${options.jumpPageType}&keywords=${form?.value?.keywords || ''}`,
|
|
200
|
+
},
|
|
201
|
+
productName: form?.value?.keywords || '',
|
|
202
|
+
} as unknown as ProductInfo)
|
|
203
|
+
}
|
|
196
204
|
uni.$emit(`${getPreviousPageId()}_filter_change`, {
|
|
197
205
|
keywords: form?.value?.keywords || '',
|
|
198
206
|
})
|
package/package.json
CHANGED
|
@@ -6,6 +6,7 @@ declare const _default: import('vue').DefineComponent<
|
|
|
6
6
|
color: string
|
|
7
7
|
backgroundColor: string
|
|
8
8
|
hideWhenDynamicKeyNotExist: boolean
|
|
9
|
+
enablePreview: boolean
|
|
9
10
|
iconGap: number
|
|
10
11
|
iconSize: number
|
|
11
12
|
}
|
|
@@ -27,6 +28,7 @@ declare const _default: import('vue').DefineComponent<
|
|
|
27
28
|
color: string
|
|
28
29
|
backgroundColor: string
|
|
29
30
|
hideWhenDynamicKeyNotExist: boolean
|
|
31
|
+
enablePreview: boolean
|
|
30
32
|
iconGap: number
|
|
31
33
|
iconSize: number
|
|
32
34
|
}
|
|
@@ -36,6 +38,7 @@ declare const _default: import('vue').DefineComponent<
|
|
|
36
38
|
{
|
|
37
39
|
backgroundColor: string
|
|
38
40
|
color: string
|
|
41
|
+
enablePreview: boolean
|
|
39
42
|
iconSize: number
|
|
40
43
|
iconGap: number
|
|
41
44
|
hideWhenDynamicKeyNotExist: boolean
|