@tplc/business 0.5.52 → 0.5.53

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 CHANGED
@@ -2,6 +2,33 @@
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.5.53](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/compare/v0.5.46...v0.5.53) (2025-11-20)
6
+
7
+
8
+ ### 🐛 Bug Fixes | Bug 修复
9
+
10
+ * 修改block ([9abe6cf](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/9abe6cfd208f1b62bf806c5e91fd96a3b4d7cf53))
11
+
12
+
13
+ ### 🚀 Chore | 构建/工程依赖/工具
14
+
15
+ * **release:** 0.5.47 ([2f256cb](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/2f256cb03886a9f77fe0166b38b5b091489a7e7a))
16
+ * **release:** 0.5.48 ([9649f8d](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/9649f8dc7621f0b31689b5cc064bfdd0232f7eb8))
17
+ * **release:** 0.5.49 ([7c0d99d](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/7c0d99dac0fd7ad1cbd6df801b094692da703269))
18
+ * **release:** 0.5.50 ([3325457](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/3325457ae21ca7a2df1b253a71bdf527dece849e))
19
+ * **release:** 0.5.51 ([5c79704](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/5c797046dd407ef9282cd8de5cbcf25e15888c71))
20
+ * **release:** 0.5.52 ([0c95b73](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/0c95b731137dd1476b78770a52d664183255e773))
21
+
22
+
23
+ ### ✨ Features | 新功能
24
+
25
+ * home search tabs允许为空 ([9678a10](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/9678a10bb5f4a8b5c5948410d5db4482d8589bcc))
26
+ * 兼容数据结构 ([ebf4369](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/ebf4369e46a5a51b5b172ec3db89382036a8a02a))
27
+ * 新增compareType ([dc2fb5e](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/dc2fb5ec5a2982a53cd6b880c0a5cba31f333c0c))
28
+ * 新增lcb-light-map ([b18d767](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/b18d767059fccadf5f55400d5fc34e352fa4c55d))
29
+ * 调整预览 ([ed2baed](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/ed2baedafa3b05a54803aec024c190185c76902e))
30
+ * 逻辑处理 ([8576a3c](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/8576a3ce1f0144980cae7ce25e3f944a87b51c80))
31
+
5
32
  ### [0.5.52](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/compare/v0.5.51...v0.5.52) (2025-11-15)
6
33
 
7
34
 
@@ -105,7 +105,6 @@
105
105
  <wd-checkbox-group
106
106
  v-else-if="field.frontInputType === 'checkbox'"
107
107
  v-model="form[field.field]"
108
- v-bind="field.props"
109
108
  >
110
109
  <wd-checkbox
111
110
  v-for="item in getColumns(field.frontInputContent)"
@@ -221,9 +220,10 @@ defineOptions({
221
220
  },
222
221
  })
223
222
  const { translate: t } = useTranslate()
224
- const form = defineModel<Record<string, any>>({
223
+ const formData = defineModel<Record<string, any>>({
225
224
  default: { agreement: false },
226
225
  })
226
+ const form = ref(formData.value || { agreement: false })
227
227
 
228
228
  const imgList = ref({})
229
229
  const formRef = ref()
@@ -369,6 +369,13 @@ watch(
369
369
  },
370
370
  { deep: true },
371
371
  )
372
+ watch(
373
+ form,
374
+ (newVal) => {
375
+ formData.value = newVal
376
+ },
377
+ { deep: true },
378
+ )
372
379
  </script>
373
380
 
374
381
  <style lang="scss">
@@ -18,7 +18,12 @@
18
18
  borderRadius: transformValueUnit(imageRadius),
19
19
  }"
20
20
  >
21
- <lcb-action-view v-bind="item.link" custom-class="w-full" v-if="item.url">
21
+ <lcb-action-view
22
+ v-bind="item.link"
23
+ custom-class="w-full"
24
+ v-if="item.url"
25
+ @click="onPreview(item.url)"
26
+ >
22
27
  <wd-img
23
28
  :width="`${styleGroup == 3 ? transformValueUnit(imageSize) : '100%'}`"
24
29
  :src="item.url"
@@ -65,7 +70,13 @@ const props = withDefaults(defineProps<LcbImageProps>(), {
65
70
  imageMargin: 0,
66
71
  })
67
72
  const imagesHeight = ref<number[]>([])
68
-
73
+ const onPreview = (url: string) => {
74
+ if (props.enablePreview) {
75
+ uni.previewImage({
76
+ urls: [url],
77
+ })
78
+ }
79
+ }
69
80
  function getRealSize(size: number = 0) {
70
81
  const mode = props.styleGroup
71
82
  const lens = props.items?.length || 1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tplc/business",
3
- "version": "0.5.52",
3
+ "version": "0.5.53",
4
4
  "keywords": [
5
5
  "业务组件"
6
6
  ],