@tplc/wot 0.1.29 → 0.1.31

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,30 @@
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.1.31](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.0.70...v0.1.31) (2024-11-22)
6
+
7
+
8
+ ### 🚀 Chore | 构建/工程依赖/工具
9
+
10
+ * **release:** 0.0.71 ([7422a19](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/7422a19335b0a2249f8bd9799dfa9679d55f0188))
11
+ * **release:** 0.0.72 ([ca650c1](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/ca650c155cd8eb5cbf7bc51f64b2772b5c5b6fb6))
12
+ * **release:** 0.0.73 ([fbce655](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/fbce655f7b60fa1a779be42e61b80638d4bcd948))
13
+
14
+
15
+ ### 🐛 Bug Fixes | Bug 修复
16
+
17
+ * lcb-nav 兼容page-scroll-top ([e809efd](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/e809efddf1559a42c48140cae80e4081542fa123))
18
+ * 修复lcb-city-select 小程序无法选中锚点 ([93b3d2f](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/93b3d2f31bab14d4dc85abbd835e8c659a917dde))
19
+ * 修复lcb-home-search ([7810778](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/78107780e9660739e0d426810fb5b86eb9fa0201))
20
+
21
+
22
+ ### ✨ Features | 新功能
23
+
24
+ * overlay inject ([e4880dc](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/e4880dc9008191dbdf42b0c6c720be04d9ed4ca8))
25
+ * filter 兼容h5 ([d858f86](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/d858f86274e06e00e1b9247fde5d1f3c54d003f4))
26
+
27
+ ### [0.1.30](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.0.67...v0.1.30) (2024-11-21)
28
+
5
29
  ### [0.1.29](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.1.24...v0.1.29) (2024-11-21)
6
30
 
7
31
 
@@ -23,13 +23,22 @@ export default {
23
23
  </script>
24
24
 
25
25
  <script lang="ts" setup>
26
+ import { inject, watch } from 'vue'
26
27
  import useLockScroll from '../composables/useLockScroll'
27
28
  import { overlayProps } from './types'
28
29
 
29
30
  const props = defineProps(overlayProps)
30
31
 
31
32
  const emit = defineEmits(['click'])
32
-
33
+ const popupProvide = inject('wd-popup', {
34
+ value: false,
35
+ })
36
+ watch(
37
+ () => props.show,
38
+ (val) => {
39
+ popupProvide.value = val
40
+ },
41
+ )
33
42
  function handleClick() {
34
43
  emit('click')
35
44
  }
@@ -35,7 +35,6 @@ export default {
35
35
  import { computed, onBeforeMount, ref, watch } from 'vue'
36
36
  import { isObj, requestAnimationFrame } from '../common/util'
37
37
  import { popupProps } from './types'
38
- import { usePopup } from '../composables/usePopup'
39
38
 
40
39
  const props = defineProps(popupProps)
41
40
  const emit = defineEmits([
@@ -85,8 +84,6 @@ const safeBottom = ref<number>(0)
85
84
 
86
85
  const name = ref<string>('') // 动画名
87
86
 
88
- const [showPopup] = usePopup()
89
-
90
87
  const style = computed(() => {
91
88
  return `z-index: ${props.zIndex}; padding-bottom: ${safeBottom.value}px; -webkit-transition-duration: ${
92
89
  currentDuration.value
@@ -122,7 +119,6 @@ watch(
122
119
  () => props.modelValue,
123
120
  (newVal) => {
124
121
  observermodelValue(newVal)
125
- showPopup.value = newVal
126
122
  },
127
123
  { deep: true, immediate: true },
128
124
  )
package/index.ts CHANGED
@@ -17,8 +17,6 @@ export { useMessage } from './components/wd-message-box'
17
17
  // useQueue
18
18
  export { useQueue } from './components/composables/useQueue'
19
19
 
20
- export { usePopup } from './components/composables/usePopup'
21
-
22
20
  // Notify
23
21
  export * from './components/wd-notify'
24
22
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "id": "@tplc/wot",
3
3
  "name": "@tplc/wot",
4
- "version": "0.1.29",
4
+ "version": "0.1.31",
5
5
  "keywords": [
6
6
  "wot-design-uni",
7
7
  "国际化",
@@ -1,6 +0,0 @@
1
- import { ref } from 'vue'
2
-
3
- const showPopup = ref(false)
4
- export const usePopup = () => {
5
- return [showPopup]
6
- }
@@ -1 +0,0 @@
1
- export declare const usePopup: () => import('vue').Ref<boolean>[]