@tplc/business 0.5.34 → 0.5.36

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,26 @@
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.36](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/compare/v0.5.35...v0.5.36) (2025-10-31)
6
+
7
+
8
+ ### ✨ Features | 新功能
9
+
10
+ * lcb-filter-grid 新增颜色 ([64d77bb](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/64d77bb7322550f794d0e599d94cd2bf11beb3c5))
11
+ * 调整form ([91b9c49](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/91b9c49d135935ac58b9ac046ce1d8c6f8adb7b2))
12
+
13
+ ### [0.5.35](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/compare/v0.5.34...v0.5.35) (2025-10-31)
14
+
15
+
16
+ ### 🐛 Bug Fixes | Bug 修复
17
+
18
+ * pay 兼容 ([e800b85](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/e800b85f79fdaa6cca409b80890059db7db7aa85))
19
+
20
+
21
+ ### ✨ Features | 新功能
22
+
23
+ * form 调整 ([6bcea25](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/6bcea25152244b93f7be003fb18359f82024e316))
24
+
5
25
  ### [0.5.34](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/compare/v0.5.30...v0.5.34) (2025-10-31)
6
26
 
7
27
 
@@ -16,7 +16,7 @@
16
16
  :style="{
17
17
  borderRadius: transformValueUnit(radius),
18
18
  padding: `${transformValueUnit(textPV)} ${transformValueUnit(textPH)}`,
19
- backgroundColor: current === index ? themeColor : textBgColor,
19
+ backgroundColor: current === index ? activeBgColor : textBgColor,
20
20
  boxShadow:
21
21
  shadowColor && shadowSize
22
22
  ? `${shadowColor} 0px ${shadowSize}rpx ${blurSize}rpx 0px `
@@ -28,8 +28,9 @@
28
28
  height: transformValueUnit(height),
29
29
  'border-radius': transformValueUnit(radius),
30
30
  textAlign,
31
- color: current === index ? '#fff' : color,
32
- fontSize: transformValueUnit(fontSize),
31
+ color: current === index ? activeColor : color,
32
+ fontSize:
33
+ current === index ? transformValueUnit(activeFontSize) : transformValueUnit(fontSize),
33
34
  }"
34
35
  >
35
36
  {{ item.title }}
@@ -50,7 +51,6 @@ defineOptions({
50
51
  styleIsolation: 'shared',
51
52
  },
52
53
  })
53
- const themeColor = inject('theme-color', '#3875FF')
54
54
  const props = withDefaults(defineProps<LcbFilterGridProps>(), {
55
55
  marginHorizontal: 24,
56
56
  height: 100,
@@ -59,6 +59,9 @@ const props = withDefaults(defineProps<LcbFilterGridProps>(), {
59
59
  textAlign: 'center',
60
60
  imgRadius: 8,
61
61
  fontSize: 28,
62
+ activeColor: '#fff',
63
+ activeFontSize: 28,
64
+ activeBgColor: 'var(--wot-color-theme)',
62
65
  })
63
66
  const { syncForm } = useSyncForm(props.dynamicScope)
64
67
  const current = ref(-1)
@@ -15,4 +15,7 @@ export interface LcbFilterGridProps extends LcbBlockProps {
15
15
  textPV?: number
16
16
  borderColor?: string
17
17
  dynamicScope?: string
18
+ activeColor?: string
19
+ activeFontSize?: number
20
+ activeBgColor?: string
18
21
  }
@@ -171,7 +171,10 @@
171
171
  </block>
172
172
  </wd-cell-group>
173
173
  <lcb-gap safeAreaBottom :height="200" v-if="bottomFixed" />
174
- <view :class="{ 'bottom-fixed': bottomFixed, 'mt-3': !bottomFixed }">
174
+ <view
175
+ :class="{ 'bottom-fixed': bottomFixed, 'mt-3': !bottomFixed }"
176
+ v-if="submitText || agreementType"
177
+ >
175
178
  <view class="text-center text-3 mt-3" v-if="agreementType && fields">
176
179
  <wd-checkbox v-model="form.agreement">
177
180
  <view class="flex">
@@ -192,7 +195,7 @@
192
195
  block
193
196
  size="large"
194
197
  custom-class="!w-90% mt-3"
195
- v-if="fields"
198
+ v-if="fields && submitText"
196
199
  >
197
200
  {{ t(submitText) }}
198
201
  </wd-button>
@@ -218,9 +221,10 @@ defineOptions({
218
221
  },
219
222
  })
220
223
  const { translate: t } = useTranslate()
221
- const form = ref({
222
- agreement: false,
224
+ const form = defineModel<Record<string, any>>({
225
+ default: { agreement: false },
223
226
  })
227
+
224
228
  const imgList = ref({})
225
229
  const formRef = ref()
226
230
  const props = withDefaults(defineProps<LcbFormProps>(), {
@@ -229,7 +233,7 @@ const props = withDefaults(defineProps<LcbFormProps>(), {
229
233
  bottomFixed: true,
230
234
  vertical: false,
231
235
  })
232
- const fields = ref<LcbFormField[]>()
236
+ const fields = ref<LcbFormField[]>(props.fields)
233
237
  const customInputs = ref<Record<string, string>>({})
234
238
  const customField = 'custom'
235
239
  watch(
@@ -377,7 +381,7 @@ watch(
377
381
  margin-right: 8rpx;
378
382
  max-width: 100% !important;
379
383
  height: auto !important;
380
- text-align: left !important;
384
+ text-align: center !important;
381
385
  white-space: break-spaces !important;
382
386
  }
383
387
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tplc/business",
3
- "version": "0.5.34",
3
+ "version": "0.5.36",
4
4
  "keywords": [
5
5
  "业务组件"
6
6
  ],
@@ -10,6 +10,9 @@ declare const _default: import('vue').DefineComponent<
10
10
  textAlign: string
11
11
  imgRadius: number
12
12
  fontSize: number
13
+ activeColor: string
14
+ activeFontSize: number
15
+ activeBgColor: string
13
16
  }
14
17
  >,
15
18
  {},
@@ -33,6 +36,9 @@ declare const _default: import('vue').DefineComponent<
33
36
  textAlign: string
34
37
  imgRadius: number
35
38
  fontSize: number
39
+ activeColor: string
40
+ activeFontSize: number
41
+ activeBgColor: string
36
42
  }
37
43
  >
38
44
  >
@@ -44,6 +50,9 @@ declare const _default: import('vue').DefineComponent<
44
50
  textAlign: 'left' | 'center' | 'right'
45
51
  gap: number
46
52
  cols: number
53
+ activeColor: string
54
+ activeFontSize: number
55
+ activeBgColor: string
47
56
  },
48
57
  {}
49
58
  >
@@ -14,4 +14,7 @@ export interface LcbFilterGridProps extends LcbBlockProps {
14
14
  textPV?: number
15
15
  borderColor?: string
16
16
  dynamicScope?: string
17
+ activeColor?: string
18
+ activeFontSize?: number
19
+ activeBgColor?: string
17
20
  }
@@ -1,7 +1,11 @@
1
1
  import { LcbFormProps } from './types'
2
+ declare let __VLS_typeProps: LcbFormProps
3
+ type __VLS_PublicProps = {
4
+ modelValue?: Record<string, any>
5
+ } & typeof __VLS_typeProps
2
6
  declare const _default: import('vue').DefineComponent<
3
7
  __VLS_WithDefaults<
4
- __VLS_TypePropsToOption<LcbFormProps>,
8
+ __VLS_TypePropsToOption<__VLS_PublicProps>,
5
9
  {
6
10
  submitText: string
7
11
  affirmText: string
@@ -15,13 +19,15 @@ declare const _default: import('vue').DefineComponent<
15
19
  {},
16
20
  import('vue').ComponentOptionsMixin,
17
21
  import('vue').ComponentOptionsMixin,
18
- {},
22
+ {
23
+ 'update:modelValue': (modelValue: Record<string, any>) => void
24
+ },
19
25
  string,
20
26
  import('vue').PublicProps,
21
27
  Readonly<
22
28
  import('vue').ExtractPropTypes<
23
29
  __VLS_WithDefaults<
24
- __VLS_TypePropsToOption<LcbFormProps>,
30
+ __VLS_TypePropsToOption<__VLS_PublicProps>,
25
31
  {
26
32
  submitText: string
27
33
  affirmText: string
@@ -30,7 +36,9 @@ declare const _default: import('vue').DefineComponent<
30
36
  }
31
37
  >
32
38
  >
33
- >,
39
+ > & {
40
+ 'onUpdate:modelValue'?: ((modelValue: Record<string, any>) => any) | undefined
41
+ },
34
42
  {
35
43
  vertical: boolean
36
44
  submitText: string