@tplc/business 0.7.65 → 0.7.67
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 +25 -0
- package/components/lcb-calendar-search/lcb-calendar-search.vue +17 -12
- package/components/lcb-nav/SharePopup/index.vue +3 -0
- package/components/lcb-tabs/components/Imgs/index.vue +6 -1
- package/components/lcb-tabs/components/Tabs/index.vue +6 -1
- package/components/lcb-tabs/components/Tags/index.vue +6 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,31 @@
|
|
|
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.7.67](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/compare/v0.7.66...v0.7.67) (2026-01-13)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### 🚀 Chore | 构建/工程依赖/工具
|
|
9
|
+
|
|
10
|
+
* **docs:** update documentation for various components and add new entries to .gitignore ([dc265e8](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/dc265e89fa9a366abb4a93095b8c0a7668e8de2a))
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### 🐛 Bug Fixes | Bug 修复
|
|
14
|
+
|
|
15
|
+
* **lcb-tabs:** add error handling for JSON parsing in syncForm calls ([3dac339](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/3dac3394071fd10da4f94986034c06566ef67db8))
|
|
16
|
+
* **SharePopup:** add immediate option to watch for data updates ([6e02b88](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/6e02b88dce5cf048fbc309285e6f947ad938032d))
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
### ♻️ Code Refactoring | 代码重构
|
|
20
|
+
|
|
21
|
+
* **lcb-calendar-search:** streamline placeholder styling by consolidating styles into a computed property ([d02956a](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/d02956a41847e799fafb932413450c195c1b4b69))
|
|
22
|
+
|
|
23
|
+
### [0.7.66](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/compare/v0.7.65...v0.7.66) (2026-01-12)
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
### ✨ Features | 新功能
|
|
27
|
+
|
|
28
|
+
* **lcb-img-nav:** update demo page with enhanced layout and new navigation title ([0578991](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/05789916afa8448fa3c38d677ac74437f351fc62))
|
|
29
|
+
|
|
5
30
|
### [0.7.65](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/compare/v0.7.64...v0.7.65) (2026-01-12)
|
|
6
31
|
|
|
7
32
|
|
|
@@ -36,6 +36,8 @@
|
|
|
36
36
|
:value="form.keywords"
|
|
37
37
|
@blur="onSearch"
|
|
38
38
|
@submit="onSearch"
|
|
39
|
+
:style="placeholderStyle"
|
|
40
|
+
:placeholder-style="`color: ${placeholderStyle.color}`"
|
|
39
41
|
v-if="mode === 'search'"
|
|
40
42
|
/>
|
|
41
43
|
|
|
@@ -43,16 +45,7 @@
|
|
|
43
45
|
v-else
|
|
44
46
|
v-bind="inputLink"
|
|
45
47
|
custom-class="!w-full !truncate !pr-2"
|
|
46
|
-
:customStyle="
|
|
47
|
-
fontSize: placeholderFontSize ? `${placeholderFontSize}rpx` : undefined,
|
|
48
|
-
fontWeight: placeholderFontWeight,
|
|
49
|
-
fontFamily: placeholderFontFamily,
|
|
50
|
-
color: placeholderColor
|
|
51
|
-
? placeholderColor
|
|
52
|
-
: form.keywords
|
|
53
|
-
? 'var(--content-color)'
|
|
54
|
-
: '#969696',
|
|
55
|
-
}"
|
|
48
|
+
:customStyle="placeholderStyle"
|
|
56
49
|
:url-params="urlParams"
|
|
57
50
|
>
|
|
58
51
|
{{ form.keywords || placeholder }}
|
|
@@ -84,14 +77,26 @@ defineOptions({
|
|
|
84
77
|
styleIsolation: 'shared',
|
|
85
78
|
},
|
|
86
79
|
})
|
|
87
|
-
withDefaults(defineProps<LcbCalendarSearchProps>(), {
|
|
80
|
+
const props = withDefaults(defineProps<LcbCalendarSearchProps>(), {
|
|
88
81
|
paddingHorizontal: 24,
|
|
89
82
|
radius: 16,
|
|
90
83
|
placeholder: '城市|地点|品牌',
|
|
91
84
|
icon: 'search',
|
|
92
85
|
mode: 'search',
|
|
93
86
|
})
|
|
94
|
-
|
|
87
|
+
const placeholderStyle = computed(() => {
|
|
88
|
+
return {
|
|
89
|
+
fontSize: props.placeholderFontSize ? `${props.placeholderFontSize}rpx` : undefined,
|
|
90
|
+
fontWeight: props.placeholderFontWeight,
|
|
91
|
+
fontFamily: props.placeholderFontFamily,
|
|
92
|
+
placeholderColor: props.placeholderColor,
|
|
93
|
+
color: props.placeholderColor
|
|
94
|
+
? props.placeholderColor
|
|
95
|
+
: form.value.keywords
|
|
96
|
+
? 'var(--content-color)'
|
|
97
|
+
: '#969696',
|
|
98
|
+
}
|
|
99
|
+
})
|
|
95
100
|
const form = inject(FORM_KEY) as Ref<Record<string, any>>
|
|
96
101
|
const addressCity = ref<LcbAddress | undefined>(
|
|
97
102
|
(form.value.cityId || form.value.areaId || form.value.provinceId
|
|
@@ -74,7 +74,12 @@ watch(
|
|
|
74
74
|
)
|
|
75
75
|
const handleTagClick = (name: string, index: number) => {
|
|
76
76
|
current.value = index
|
|
77
|
-
|
|
77
|
+
try {
|
|
78
|
+
const params = JSON.parse(name)
|
|
79
|
+
syncForm(params)
|
|
80
|
+
} catch (error) {
|
|
81
|
+
console.warn(error)
|
|
82
|
+
}
|
|
78
83
|
}
|
|
79
84
|
handleTagClick(props.items?.[current.value].name, current.value)
|
|
80
85
|
</script>
|
|
@@ -49,7 +49,12 @@ const { syncForm } = useSyncForm({
|
|
|
49
49
|
visibleScope: props.visibleScope,
|
|
50
50
|
})
|
|
51
51
|
const handleChange = (e: { name: string }) => {
|
|
52
|
-
|
|
52
|
+
try {
|
|
53
|
+
const params = JSON.parse(e.name)
|
|
54
|
+
syncForm(params)
|
|
55
|
+
} catch (error) {
|
|
56
|
+
console.warn(error)
|
|
57
|
+
}
|
|
53
58
|
}
|
|
54
59
|
watch(
|
|
55
60
|
() => [props.lineWidth, props.lineHeight, props.slidable, props.slidableNum],
|
|
@@ -60,7 +60,12 @@ defineOptions({
|
|
|
60
60
|
})
|
|
61
61
|
const handleTagClick = (name: string, index: number) => {
|
|
62
62
|
current.value = index
|
|
63
|
-
|
|
63
|
+
try {
|
|
64
|
+
const params = JSON.parse(name)
|
|
65
|
+
syncForm(params)
|
|
66
|
+
} catch (error) {
|
|
67
|
+
console.warn(error)
|
|
68
|
+
}
|
|
64
69
|
}
|
|
65
70
|
handleTagClick(props.items[current.value]?.name, current.value)
|
|
66
71
|
</script>
|