@tplc/business 0.5.67 → 0.5.68

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,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.5.68](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/compare/v0.5.67...v0.5.68) (2025-12-03)
6
+
7
+
8
+ ### ✨ Features | 新功能
9
+
10
+ * area 支持 点击 支持布局调整 button 支持动态链接 接口 ([2fdcfc5](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/2fdcfc502f5acf9c2c23beea1cea1a3691ada41b))
11
+
5
12
  ### [0.5.67](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/compare/v0.5.64...v0.5.67) (2025-12-03)
6
13
 
7
14
 
@@ -8,6 +8,7 @@
8
8
  >
9
9
  <slot />
10
10
  </view>
11
+
11
12
  <button
12
13
  v-else
13
14
  @click.stop="onActionClick"
@@ -1,28 +1,29 @@
1
1
  <template>
2
- <lcb-block v-bind="$props" v-if="showArea">
3
- <lcb-action-view
4
- :customStyle="{
5
- display: display,
6
- gap: transformValueUnit(gap),
7
- overflowX: scrollX ? 'auto' : 'initial',
8
- ...innerStyle,
9
- }"
10
- customClass="h-full"
11
- v-bind="action"
12
- >
2
+ <lcb-action-view v-bind="action" v-if="showArea">
3
+ <lcb-block v-bind="$props">
13
4
  <view
14
- v-for="(item, index) in list"
15
- :key="item.id"
16
- class="slot-wrapper"
17
5
  :style="{
18
- ...getStyle(index),
19
- overflowX,
6
+ display: display,
7
+ gap: transformValueUnit(gap),
8
+ overflowX: scrollX ? 'auto' : 'initial',
9
+ ...innerStyle,
20
10
  }"
11
+ class="h-full"
21
12
  >
22
- <slot :item="item" />
13
+ <view
14
+ v-for="(item, index) in list"
15
+ :key="item.id"
16
+ class="slot-wrapper"
17
+ :style="{
18
+ ...getStyle(index),
19
+ overflowX,
20
+ }"
21
+ >
22
+ <slot :item="item" />
23
+ </view>
23
24
  </view>
24
- </lcb-action-view>
25
- </lcb-block>
25
+ </lcb-block>
26
+ </lcb-action-view>
26
27
  </template>
27
28
 
28
29
  <script setup lang="ts">
@@ -123,6 +124,10 @@ const showArea = computed(() => {
123
124
  }
124
125
  return true
125
126
  })
127
+
128
+ const handleClick = () => {
129
+ console.log('handleClick')
130
+ }
126
131
  </script>
127
132
 
128
133
  <style lang="scss" scoped>
@@ -5,7 +5,7 @@
5
5
  :key="index"
6
6
  class="flex-shrink-0"
7
7
  :style="{
8
- width: width ? transformValueUnit(width) : '100%',
8
+ width: childrenAutoWidth ? 'auto' : width ? transformValueUnit(width) : '100%',
9
9
  }"
10
10
  >
11
11
  <slot :data="item" :list="list" />
@@ -10,4 +10,5 @@ export interface LcbWrapperListProps extends LcbBlockProps {
10
10
  gridColumns?: number
11
11
  scrollX?: boolean
12
12
  list?: LcbAreaProps[]
13
+ childrenAutoWidth?: boolean
13
14
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tplc/business",
3
- "version": "0.5.67",
3
+ "version": "0.5.68",
4
4
  "keywords": [
5
5
  "业务组件"
6
6
  ],
@@ -66,10 +66,10 @@ declare const __VLS_component: import('vue').DefineComponent<
66
66
  | 'bottom-center'
67
67
  | 'bottom-right'
68
68
  gap: number
69
- border: boolean
70
69
  imageWidth: number
71
70
  borderRadius: number
72
71
  imageHeight: number
72
+ border: boolean
73
73
  dynamicScope: string
74
74
  itemVerticalPadding: number
75
75
  itemHorizontalPadding: number
@@ -68,13 +68,13 @@ declare const _default: import('vue').DefineComponent<
68
68
  marginHorizontal: number
69
69
  fontSize: number
70
70
  fontWeight: number
71
+ lineWidth: number
71
72
  justify:
72
73
  | 'justify-start'
73
74
  | 'justify-end'
74
75
  | 'justify-center'
75
76
  | 'justify-between'
76
77
  | 'justify-around'
77
- lineWidth: number
78
78
  iconType: 'icon' | 'img'
79
79
  hintColor: string
80
80
  hintFontSize: number
@@ -10,4 +10,5 @@ export interface LcbWrapperListProps extends LcbBlockProps {
10
10
  gridColumns?: number
11
11
  scrollX?: boolean
12
12
  list?: LcbAreaProps[]
13
+ childrenAutoWidth?: boolean
13
14
  }