@tplc/business 0.3.35 → 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,16 @@
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
+
7
+ ### [0.3.36](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.3.35...v0.3.36) (2025-02-11)
8
+
9
+
10
+ ### ✨ Features | 新功能
11
+
12
+ * 兼容popup 多次 ([a613b56](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/a613b5636f3f8354960e3d116155a1b36b80aaae))
13
+ * 还差pop 嵌套问题 ([053c621](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/053c621898385b93683218c69ae18fcdad7486d9))
14
+
5
15
  ### [0.3.35](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.3.34...v0.3.35) (2025-02-10)
6
16
 
7
17
  ### [0.3.34](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.3.33...v0.3.34) (2025-02-10)
@@ -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[]) => {
@@ -1,5 +1,10 @@
1
1
  <template>
2
- <wd-popup v-model="show" custom-style="background:transparent" @close="onClose" closable>
2
+ <wd-popup
3
+ v-model="show"
4
+ custom-style="background:transparent;transform: none;margin:auto;left:10%;top:30%"
5
+ @close="onClose"
6
+ closable
7
+ >
3
8
  <view class="pop-view flex justify-center flex-col items-center" v-if="modelValue">
4
9
  <view class="text-4 mb-4 font-500">{{ modelValue.userRightsTitle }}</view>
5
10
  <mp-html :content="modelValue.userRightsContent" v-if="modelValue.userRightsContent" />
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tplc/business",
3
- "version": "0.3.35",
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
  {},