@tplc/business 0.3.36 → 0.3.37

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,8 @@
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.3.37](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.3.36...v0.3.37) (2025-02-11)
6
+
5
7
  ### [0.3.36](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.3.35...v0.3.36) (2025-02-11)
6
8
 
7
9
 
@@ -29,7 +29,7 @@ defineOptions({
29
29
  withDefaults(defineProps<LcbOperationActionsProps>(), {
30
30
  size: 'small',
31
31
  })
32
- const emits = defineEmits(['refresh'])
32
+ const emits = defineEmits(['refresh', 'cancel'])
33
33
  const getBtnProps = (item: IPageBtn) => {
34
34
  return {
35
35
  type: item.styleContent?.buttonType?.includes?.('theme') ? 'primary' : 'info',
@@ -82,6 +82,8 @@ async function link({ item }: { item: IPageBtn }) {
82
82
  })
83
83
  },
84
84
  })
85
+ } else {
86
+ emits('cancel')
85
87
  }
86
88
  }
87
89
  </script>
@@ -27,7 +27,12 @@
27
27
  <IconActionView v-bind="item" v-else @refresh="$emit('refresh')" ref="popverRef" />
28
28
  </block>
29
29
  <view class="flex-1" v-if="!noIcons"></view>
30
- <BtnViews :button-list="buttonList" @refresh="emits('refresh')" :size="size" />
30
+ <BtnViews
31
+ :button-list="buttonList"
32
+ @refresh="emits('refresh')"
33
+ @cancel="emits('cancel')"
34
+ :size="size"
35
+ />
31
36
  </view>
32
37
  <wd-message-box />
33
38
  </view>
@@ -48,7 +53,7 @@ defineOptions({
48
53
  },
49
54
  })
50
55
  defineProps<LcbOperationActionsProps>()
51
- const emits = defineEmits(['refresh'])
56
+ const emits = defineEmits(['refresh', 'cancel'])
52
57
  const popverRef = ref()
53
58
  const message = useMessage()
54
59
  const getMenu = (list: IPageBtn[]) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tplc/business",
3
- "version": "0.3.36",
3
+ "version": "0.3.37",
4
4
  "keywords": [
5
5
  "业务组件"
6
6
  ],
@@ -14,6 +14,7 @@ declare const _default: import('vue').DefineComponent<
14
14
  import('vue').ComponentOptionsMixin,
15
15
  {
16
16
  refresh: (...args: any[]) => void
17
+ cancel: (...args: any[]) => void
17
18
  },
18
19
  string,
19
20
  import('vue').PublicProps,
@@ -27,6 +28,7 @@ declare const _default: import('vue').DefineComponent<
27
28
  >
28
29
  >
29
30
  > & {
31
+ onCancel?: ((...args: any[]) => any) | undefined
30
32
  onRefresh?: ((...args: any[]) => any) | undefined
31
33
  },
32
34
  {
@@ -9,10 +9,12 @@ declare const _default: import('vue').DefineComponent<
9
9
  import('vue').ComponentOptionsMixin,
10
10
  {
11
11
  refresh: (...args: any[]) => void
12
+ cancel: (...args: any[]) => void
12
13
  },
13
14
  string,
14
15
  import('vue').PublicProps,
15
16
  Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToOption<LcbOperationActionsProps>>> & {
17
+ onCancel?: ((...args: any[]) => any) | undefined
16
18
  onRefresh?: ((...args: any[]) => any) | undefined
17
19
  },
18
20
  {},